@takecasper/acuity-design-system 2.4.4 → 2.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1,31 +1,31 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./assets/index.css');const i=require("react/jsx-runtime"),se=require("react"),Sn=require("@headlessui/react"),Bd=require("@mui/icons-material/Add"),B=require("@mui/material"),Wd=require("@mui/icons-material/FileUploadOutlined"),qd=require("@mui/icons-material/Menu"),ge=require("@mui/material/styles"),Ud=require("@mui/utils/useLazyRef"),Gt=require("@mui/system/RtlProvider"),Kd=require("@mui/utils/useEnhancedEffect"),re=require("@mui/utils"),Xd=require("@mui/utils/composeClasses"),Fn=require("@mui/material/InputBase"),Yd=require("@mui/utils/useTimeout"),oa=require("@mui/material/Autocomplete"),Zd=require("@mui/utils/resolveProps"),Qd=require("@mui/material/MenuList"),Jd=require("@mui/material/ClickAwayListener"),ef=require("@mui/material/Grow"),tf=require("@mui/material/Paper"),nf=require("@mui/material/Popper"),rf=require("@mui/utils/useEventCallback"),of=require("@mui/material/MenuItem"),ze=require("@mui/material/utils"),sf=require("@mui/utils/useOnMount"),Ge=require("@mui/system"),lf=require("react-dom"),af=require("@mui/material/ListItemIcon"),cf=require("@mui/material/ListItemText"),uf=require("@mui/material/Badge"),df=require("@mui/material/Checkbox"),ff=require("@mui/material/Divider"),hf=require("@mui/material/TextField"),gf=require("@mui/material/FormControl"),mf=require("@mui/material/Select"),pf=require("@mui/material/Button"),bf=require("@mui/material/IconButton"),Cf=require("@mui/material/InputAdornment"),Jo=require("@mui/material/Tooltip"),wf=require("@mui/material/InputLabel"),xf=require("@mui/material/Chip"),yf=require("@mui/material/FormControlLabel"),vf=require("@mui/material/Unstable_TrapFocus"),es=require("@mui/material/TablePagination"),Sf=require("@mui/material/LinearProgress"),kf=require("@mui/material/CircularProgress"),If=require("@mui/utils/useForkRef"),Mf=require("@mui/material/Skeleton"),Ef=require("@mui/icons-material/EditOutlined"),Pf=require("@mui/icons-material/HotelClassOutlined"),Tf=require("@mui/icons-material/SettingsOutlined"),Ff=require("@mui/material/Table"),jf=require("@mui/material/TableBody"),Of=require("@mui/material/TableCell"),Rf=require("@mui/material/TableHead"),Lf=require("@mui/material/TableRow"),Df=require("@mui/material/TableSortLabel"),Hf=require("@mui/icons-material/Clear"),_f=require("@mui/icons-material/Search"),Af=require("@mui/icons-material/IndeterminateCheckBoxOutlined"),Vf=require("@mui/icons-material/MoreVert"),Kt=require("react-toastify"),Nf=require("@mui/icons-material/CheckRounded"),$f=require("@mui/icons-material/CloseRounded"),zf=require("@mui/icons-material/ErrorRounded"),Gf=require("@mui/icons-material/InfoRounded"),Bf=require("@mui/icons-material/WarningRounded"),Wf=require("@mui/icons-material/Warning"),qf=require("@mui/icons-material/KeyboardVoiceOutlined"),Uf=require("@mui/icons-material/VideocamOffOutlined"),Kf=require("@mui/icons-material/Check"),Xf=require("@mui/icons-material/Close"),Yf=require("@mui/icons-material/MicNone"),Zf=require("@mui/icons-material/AccessTimeFilled"),Qf=require("react-markdown"),Jf=require("@mui/icons-material/FormatBold"),eh=require("@mui/icons-material/FormatItalicOutlined"),th=require("@mui/icons-material/FormatListBulleted"),nh=require("@mui/icons-material/FormatListNumbered"),rh=require("@mui/icons-material/KeyboardArrowDown"),oh=require("@tiptap/markdown"),Eo=require("@tiptap/react"),sh=require("@tiptap/starter-kit"),lh=require("@mui/icons-material/Replay"),ih=require("@mui/icons-material/StopCircle"),ah=require("@mui/icons-material/VolumeUp"),ch=require("@emotion/react"),uh=require("@emotion/styled"),dh=require("@mui/icons-material/CloudCircle"),fh=require("@mui/icons-material/RocketLaunch"),hh=require("@mui/icons-material/VideoCameraFrontOutlined"),ie=e=>e&&e.__esModule?e:{default:e};function sa(e){if(e&&e.__esModule)return e;const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const g=sa(se),la=ie(Bd),gh=ie(Wd),mh=ie(qd),Bt=ie(Ud),ia=ie(Kd),Xe=ie(Xd),aa=ie(Fn),wn=ie(Yd),ca=ie(oa),ph=ie(Zd),ps=ie(Qd),ua=ie(Jd),bh=ie(ef),da=ie(tf),bs=ie(nf),Ch=ie(rf),Xt=ie(of),fa=ie(sf),wh=sa(lf),_n=ie(af),An=ie(cf),xh=ie(uf),yh=ie(df),vh=ie(ff),ha=ie(hf),Sh=ie(gf),kh=ie(mf),Ih=ie(pf),ga=ie(bf),Mh=ie(Cf),ma=ie(Jo),Eh=ie(wf),Ph=ie(xf),gl=ie(yf),Th=ie(vf),Fh=ie(es),jh=ie(Sf),Oh=ie(kf),Rh=ie(If),Lh=ie(Mf),Dh=ie(Ef),Hh=ie(Pf),_h=ie(Tf),Ah=ie(Ff),Po=ie(jf),bt=ie(Of),Vh=ie(Rf),dr=ie(Lf),Nh=ie(Df),$h=ie(Hf),zh=ie(_f),Gh=ie(Af),Bh=ie(Vf),Wh=ie(Nf),qh=ie($f),Uh=ie(zf),Kh=ie(Gf),Xh=ie(Bf),Yh=ie(Wf),Zh=ie(qf),Qh=ie(Uf),Jh=ie(Kf),ml=ie(Xf),eg=ie(Yf),tg=ie(Zf),ng=ie(Qf),rg=ie(Jf),og=ie(eh),sg=ie(th),lg=ie(nh),ig=ie(rh),ag=ie(sh),cg=ie(lh),ug=ie(ih),dg=ie(ah),pa=ie(uh),fg=ie(dh),hg=ie(fh),gg=ie(hh),Cs=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s="",filled:l=!1})=>{const a=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${a}`,role:s||(a?"graphics-document":"img"),children:[!a&&i.jsx("title",{children:r}),i.jsx("path",{d:"M12 22C14.6522 22 17.1957 20.9464 19.0711 19.0711C20.9464 17.1957 22 14.6522 22 12C22 9.34784 20.9464 6.8043 19.0711 4.92893C17.1957 3.05357 14.6522 2 12 2C9.34784 2 6.8043 3.05357 4.92893 4.92893C3.05357 6.8043 2 9.34784 2 12C2 14.6522 3.05357 17.1957 4.92893 19.0711C6.8043 20.9464 9.34784 22 12 22Z",stroke:l?"transparent":"currentColor",fill:l?"#157393":"none",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round"}),i.jsx("path",{d:"M12 17.5553V13.1108",stroke:l?"white":"currentColor",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round"}),i.jsx("path",{d:"M12 8.7333C11.8527 8.7333 11.7114 8.67477 11.6072 8.57058C11.503 8.4664 11.4445 8.32509 11.4445 8.17775C11.4445 8.03041 11.503 7.8891 11.6072 7.78491C11.7114 7.68072 11.8527 7.62219 12 7.62219",stroke:l?"white":"currentColor",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round"}),i.jsx("path",{d:"M12 8.7333C12.1473 8.7333 12.2887 8.67477 12.3928 8.57058C12.497 8.4664 12.5556 8.32509 12.5556 8.17775C12.5556 8.03041 12.497 7.8891 12.3928 7.78491C12.2887 7.68072 12.1473 7.62219 12 7.62219",stroke:l?"white":"currentColor",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round"})]})},ws=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s="",filled:l=!1})=>{const a=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"#000000",className:n,"aria-hidden":`${a}`,role:s||(a?"graphics-document":"img"),children:[!a&&i.jsx("title",{children:r}),i.jsx("path",{d:"M10.8715 2.54037C11.0072 2.37168 11.1791 2.23557 11.3743 2.14206C11.5696 2.04854 11.7833 2 11.9998 2C12.2163 2 12.4301 2.04854 12.6253 2.14206C12.8206 2.23557 12.9924 2.37168 13.1281 2.54037L14.4714 4.21147C14.6235 4.40106 14.821 4.54927 15.0455 4.64243C15.27 4.73559 15.5144 4.7707 15.756 4.74452L17.8882 4.51264C18.1041 4.48866 18.3225 4.51354 18.5275 4.58543C18.7324 4.65731 18.9185 4.77437 19.0721 4.92793C19.2256 5.08149 19.3427 5.26762 19.4146 5.47255C19.4865 5.67747 19.5113 5.89594 19.4874 6.11178L19.2555 8.24397C19.2293 8.48564 19.2644 8.73001 19.3576 8.95453C19.4507 9.17905 19.5989 9.37648 19.7885 9.52862L21.4596 10.8719C21.6283 11.0076 21.7644 11.1794 21.8579 11.3747C21.9515 11.5699 22 11.7837 22 12.0002C22 12.2167 21.9515 12.4304 21.8579 12.6257C21.7644 12.8209 21.6283 12.9928 21.4596 13.1285L19.7832 14.4655C19.5937 14.6179 19.4455 14.8155 19.3524 15.0402C19.2592 15.2648 19.2241 15.5093 19.2502 15.7511L19.482 17.8832C19.5062 18.0991 19.4814 18.3177 19.4096 18.5227C19.3378 18.7277 19.2207 18.9139 19.0671 19.0675C18.9135 19.2211 18.7273 19.3381 18.5223 19.41C18.3173 19.4818 18.0988 19.5065 17.8829 19.4824L15.7507 19.2505C15.509 19.2242 15.2646 19.2593 15.0401 19.3525C14.8156 19.4456 14.6181 19.5939 14.4661 19.7836L13.1281 21.4484C12.9925 21.6173 12.8207 21.7535 12.6254 21.8471C12.4302 21.9407 12.2164 21.9893 11.9998 21.9893C11.7833 21.9893 11.5695 21.9407 11.3742 21.8471C11.1789 21.7535 11.0072 21.6173 10.8715 21.4484L9.52915 19.7782C9.37682 19.5886 9.17922 19.4404 8.95456 19.3473C8.7299 19.2541 8.48541 19.219 8.24361 19.2452L6.11142 19.4771C5.89551 19.5014 5.6769 19.4767 5.47181 19.405C5.26673 19.3332 5.08045 19.2162 4.92681 19.0625C4.77318 18.9089 4.65613 18.7226 4.58436 18.5175C4.5126 18.3124 4.48796 18.0938 4.51228 17.8779L4.74416 15.7457C4.77033 15.5039 4.73522 15.2594 4.64207 15.0348C4.54891 14.8101 4.40071 14.6125 4.21111 14.4602L2.54089 13.1178C2.37207 12.9822 2.23582 12.8104 2.14221 12.6151C2.0486 12.4199 2 12.2061 2 11.9895C2 11.773 2.0486 11.5592 2.14221 11.3639C2.23582 11.1686 2.37207 10.9969 2.54089 10.8612L4.21111 9.51795C4.40076 9.36588 4.54902 9.16845 4.64219 8.94391C4.73536 8.71938 4.77043 8.47498 4.74416 8.23331L4.51228 6.10112C4.48813 5.88525 4.51289 5.6667 4.58471 5.4617C4.65654 5.2567 4.77359 5.07049 4.92719 4.91689C5.08079 4.76329 5.267 4.64624 5.472 4.57441C5.67701 4.50259 5.89555 4.47783 6.11142 4.50198L8.24361 4.73385C8.4854 4.75995 8.72987 4.7248 8.95452 4.63165C9.17916 4.5385 9.37677 4.39034 9.52915 4.20081L10.8715 2.54037Z",stroke:l?"transparent":"currentColor",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",fill:l?"#387F14":"none"}),i.jsx("path",{d:"M15.3314 9.99585L11.7946 14.7115C11.7373 14.7878 11.6643 14.8509 11.5805 14.8966C11.4967 14.9422 11.404 14.9693 11.3089 14.9761C11.2137 14.9828 11.1181 14.969 11.0288 14.9356C10.9394 14.9023 10.8582 14.8501 10.7907 14.7826L8.66827 12.6611",stroke:l?"white":"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})},xs=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s="",filled:l=!1})=>{const a=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${a}`,role:s||(a?"graphics-document":"img"),children:[!a&&i.jsx("title",{children:r}),i.jsx("path",{d:"M13.3508 3.46672C13.2268 3.21422 13.0345 3.00155 12.7957 2.85282C12.557 2.70408 12.2813 2.62524 12 2.62524C11.7187 2.62524 11.443 2.70408 11.2042 2.85282C10.9655 3.00155 10.7732 3.21422 10.6492 3.46672L2.75501 19.5484C2.65998 19.7417 2.61579 19.956 2.6266 20.1711C2.63741 20.3863 2.70286 20.5951 2.81678 20.7779C2.9307 20.9607 3.08933 21.1115 3.2777 21.216C3.46606 21.3205 3.67794 21.3752 3.89334 21.375H20.1067C20.3221 21.3752 20.5339 21.3205 20.7223 21.216C20.9107 21.1115 21.0693 20.9607 21.1832 20.7779C21.2972 20.5951 21.3626 20.3863 21.3734 20.1711C21.3842 19.956 21.34 19.7417 21.245 19.5484L13.3508 3.46672Z",stroke:l?"transparent":"currentColor",fill:l?"#816E09":"none",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round"}),i.jsx("path",{d:"M12 18.25C11.8274 18.25 11.6875 18.1101 11.6875 17.9375C11.6875 17.7649 11.8274 17.625 12 17.625",stroke:l?"white":"currentColor",strokeWidth:o}),i.jsx("path",{d:"M12 18.25C12.1726 18.25 12.3125 18.1101 12.3125 17.9375C12.3125 17.7649 12.1726 17.625 12 17.625",stroke:l?"white":"currentColor",strokeWidth:o}),i.jsx("path",{d:"M12 15.125V8.875",stroke:l?"white":"currentColor",strokeWidth:o,strokeMiterlimit:"10",strokeLinecap:"round"})]})},ys=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s="",filled:l=!1})=>{const a=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"#000000",className:n,"aria-hidden":`${a}`,role:s||(a?"graphics-document":"img"),children:[!a&&i.jsx("title",{children:r}),i.jsx("path",{d:"M12 22C14.6522 22 17.1957 20.9464 19.0711 19.0711C20.9464 17.1957 22 14.6522 22 12C22 9.34784 20.9464 6.8043 19.0711 4.92893C17.1957 3.05357 14.6522 2 12 2C9.34784 2 6.8043 3.05357 4.92893 4.92893C3.05357 6.8043 2 9.34784 2 12C2 14.6522 3.05357 17.1957 4.92893 19.0711C6.8043 20.9464 9.34784 22 12 22Z",stroke:l?"transparent":"currentColor",fill:l?"#A90508":"none",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round"}),i.jsx("path",{d:"M15.3344 8.66663L8.66666 15.3333",stroke:l?"white":"currentColor",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round"}),i.jsx("path",{d:"M8.66666 8.66663L15.3344 15.3333",stroke:l?"white":"currentColor",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round"})]})},mg=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s=""})=>{const l=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M2.625 21.3741L21.375 2.62415",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M21.375 21.3741L2.625 2.62415",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},pg=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s=""})=>{const l=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M20.4917 3.50831C20.2079 3.22568 19.8709 3.00208 19.5002 2.85044C19.1294 2.69879 18.7324 2.62211 18.3318 2.62483C17.9313 2.62754 17.5353 2.70959 17.1667 2.86624C16.798 3.02288 16.4641 3.25103 16.1842 3.53748L4.10083 15.6208L2.625 21.375L8.37917 19.8991L20.4625 7.81581C20.749 7.53587 20.9771 7.20193 21.1337 6.8333C21.2904 6.46468 21.3724 6.06866 21.3752 5.66814C21.3779 5.26762 21.3012 4.87053 21.1495 4.49982C20.9979 4.1291 20.7743 3.79211 20.4917 3.50831Z",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M15.8383 3.8833L20.1167 8.16163",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M14.0933 5.6283L18.3717 9.90663",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M4.10083 15.6208L8.38333 19.895",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},bg=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s=""})=>{const l=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M2 2V22.0007",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M2 3.33301H21.334C21.4625 3.33314 21.5881 3.37038 21.6959 3.44023C21.8037 3.51008 21.889 3.60958 21.9416 3.72676C21.9942 3.84394 22.0118 3.97381 21.9923 4.10077C21.9728 4.22772 21.9171 4.34634 21.8318 4.44238L18.2717 8.4443C18.0545 8.68843 17.9345 9.0038 17.9345 9.33055C17.9345 9.6573 18.0545 9.97268 18.2717 10.2168L21.8274 14.2214C21.9127 14.3174 21.9684 14.4361 21.9879 14.563C22.0073 14.69 21.9897 14.8198 21.9371 14.937C21.8845 15.0542 21.7992 15.1537 21.6915 15.2235C21.5837 15.2934 21.458 15.3306 21.3296 15.3308H2",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},Cg=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s=""})=>{const l=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M10.2221 20.6666C10.335 21.0512 10.5695 21.3889 10.8903 21.6292C11.2112 21.8694 11.6013 21.9992 12.0021 21.9992C12.4029 21.9992 12.793 21.8694 13.1139 21.6292C13.4348 21.3889 13.6692 21.0512 13.7821 20.6666",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M12 4V2",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M12 4C13.7681 4 15.4638 4.70238 16.714 5.95262C17.9643 7.20286 18.6667 8.89856 18.6667 10.6667C18.6667 16.9298 20 18 20 18H4C4 18 5.33333 16.2969 5.33333 10.6667C5.33333 8.89856 6.03571 7.20286 7.28595 5.95262C8.5362 4.70238 10.2319 4 12 4V4Z",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},wg=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s=""})=>{const l=!(r&&r.length>0);return e==="16"&&t==="16"?i.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,"aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M6.88898 13.6672C6.95954 13.9076 7.10608 14.1187 7.30663 14.2688C7.50719 14.419 7.75099 14.5001 8.00152 14.5001C8.25205 14.5001 8.49585 14.419 8.6964 14.2688C8.89696 14.1187 9.04349 13.9076 9.11406 13.6672",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M8.00018 3.25005V2",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M8.00019 3.25012C9.1053 3.25012 10.1651 3.68913 10.9466 4.47056C11.728 5.25199 12.167 6.31183 12.167 7.41694C12.167 11.3315 13.0004 12.0005 13.0004 12.0005H3C3 12.0005 3.83336 10.936 3.83336 7.41694C3.83336 6.31183 4.27237 5.25199 5.0538 4.47056C5.83523 3.68913 6.89508 3.25012 8.00019 3.25012V3.25012Z",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("circle",{cx:"11.8",cy:"6.11104",r:"2.3",fill:"#BA1E50",stroke:"white"})]}):i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M10.2221 20.6666C10.335 21.0512 10.5695 21.3889 10.8903 21.6292C11.2112 21.8694 11.6013 21.9992 12.0021 21.9992C12.4029 21.9992 12.793 21.8694 13.1139 21.6292C13.4348 21.3889 13.6692 21.0512 13.7821 20.6666",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M12 4V2",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M12 4C13.7681 4 15.4638 4.70238 16.714 5.95262C17.9643 7.20286 18.6667 8.89856 18.6667 10.6667C18.6667 16.9298 20 18 20 18H4C4 18 5.33333 16.2969 5.33333 10.6667C5.33333 8.89856 6.03571 7.20286 7.28595 5.95262C8.5362 4.70238 10.2319 4 12 4V4Z",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("circle",{cx:"18",cy:"8",r:"4",fill:"#BA1E50",stroke:"white",strokeWidth:"2"})]})},xg=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s=""})=>{const l=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M9.33325 9.33315C9.33335 8.84429 9.46782 8.36486 9.72198 7.94726C9.97614 7.52966 10.3402 7.18996 10.7744 6.96528C11.2085 6.74062 11.6962 6.63962 12.1838 6.67335C12.6716 6.70706 13.1406 6.8742 13.5397 7.15648C13.9389 7.43877 14.2527 7.82534 14.4469 8.27394C14.6413 8.72255 14.7085 9.21592 14.6413 9.70015C14.5741 10.1844 14.3751 10.6408 14.0661 11.0196C13.757 11.3984 13.3497 11.6848 12.8888 11.8478C12.6287 11.9398 12.4036 12.1101 12.2444 12.3353C12.0852 12.5607 11.9997 12.8297 11.9999 13.1056V13.9998",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M12.0001 17.3333C11.816 17.3333 11.6667 17.184 11.6667 17C11.6667 16.8159 11.816 16.6666 12.0001 16.6666",strokeWidth:o,stroke:"currentColor"}),i.jsx("path",{d:"M12 17.3333C12.1841 17.3333 12.3333 17.184 12.3333 17C12.3333 16.8159 12.1841 16.6666 12 16.6666",strokeWidth:o,stroke:"currentColor"}),i.jsx("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47716 17.5228 2 12 2C6.47716 2 2 6.47716 2 12C2 17.5228 6.47716 22 12 22Z",strokeWidth:o,strokeMiterlimit:"10",stroke:"currentColor"})]})},yg=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s=""})=>{const l=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M9.1042 3.96154L9.83189 2.08308C9.95462 1.76503 10.1705 1.49146 10.4514 1.29821C10.7322 1.10495 11.0648 1.00101 11.4057 1H12.7934C13.1343 1.00101 13.467 1.10495 13.7478 1.29821C14.0286 1.49146 14.2446 1.76503 14.3673 2.08308L15.095 3.96154L17.5657 5.38308L19.5627 5.07846C19.8952 5.03333 20.2336 5.08806 20.5349 5.23572C20.8363 5.38337 21.0869 5.61727 21.255 5.90769L21.9319 7.09231C22.1054 7.38736 22.1853 7.72807 22.1611 8.06948C22.1369 8.41089 22.0098 8.73694 21.7965 9.00462L20.5611 10.5785V13.4215L21.8304 14.9954C22.0437 15.2631 22.1708 15.5891 22.1949 15.9305C22.2191 16.2719 22.1392 16.6126 21.9657 16.9077L21.2888 18.0923C21.1207 18.3827 20.8701 18.6166 20.5688 18.7643C20.2674 18.9119 19.929 18.9667 19.5965 18.9215L17.5996 18.6169L15.1288 20.0385L14.4011 21.9169C14.2784 22.235 14.0625 22.5085 13.7817 22.7018C13.5008 22.8951 13.1682 22.999 12.8273 23H11.4057C11.0648 22.999 10.7322 22.8951 10.4514 22.7018C10.1705 22.5085 9.95462 22.235 9.83189 21.9169L9.1042 20.0385L6.63343 18.6169L4.63651 18.9215C4.304 18.9667 3.96558 18.9119 3.66425 18.7643C3.36292 18.6166 3.11229 18.3827 2.9442 18.0923L2.26728 16.9077C2.09382 16.6126 2.0139 16.2719 2.03807 15.9305C2.06224 15.5891 2.18937 15.2631 2.40266 14.9954L3.63805 13.4215V10.5785L2.36882 9.00462C2.15552 8.73694 2.0284 8.41089 2.00423 8.06948C1.98006 7.72807 2.05997 7.38736 2.23343 7.09231L2.91036 5.90769C3.07844 5.61727 3.32907 5.38337 3.6304 5.23572C3.93173 5.08806 4.27015 5.03333 4.60266 5.07846L6.59959 5.38308L9.1042 3.96154ZM8.71497 12C8.71497 12.6694 8.91348 13.3238 9.28538 13.8804C9.65729 14.437 10.1859 14.8708 10.8044 15.127C11.4228 15.3832 12.1033 15.4502 12.7599 15.3196C13.4164 15.189 14.0195 14.8666 14.4929 14.3933C14.9662 13.9199 15.2886 13.3169 15.4192 12.6603C15.5498 12.0038 15.4827 11.3232 15.2266 10.7048C14.9704 10.0863 14.5366 9.5577 13.98 9.1858C13.4234 8.81389 12.769 8.61538 12.0996 8.61538C11.2019 8.61538 10.341 8.97198 9.7063 9.60672C9.07156 10.2415 8.71497 11.1023 8.71497 12V12Z",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},vg=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s=""})=>{const l=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M2.00003 5H22V19H2.00003V5Z",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M21.6772 5.51294L13.921 11.3593C13.3703 11.7745 12.6949 11.9997 12 11.9997C11.3052 11.9997 10.6298 11.7745 10.0791 11.3593L2.32291 5.51294",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},Sg=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s=""})=>{const l=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M12 22C17.5228 22 22 17.5229 22 12.0001C22 6.47721 17.5228 2 12 2C6.47716 2 2 6.47721 2 12.0001C2 17.5229 6.47716 22 12 22Z",strokeWidth:o,strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M6.88889 11.9554H16.9334",strokeWidth:o,strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},kg=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s=""})=>{const l=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,"aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M2 5.6366H22",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M14.0454 2H9.95446C9.5928 2 9.24595 2.14367 8.99022 2.3994C8.73449 2.65513 8.59082 3.00198 8.59082 3.36364V5.63636H15.409V3.36364C15.409 3.00198 15.2653 2.65513 15.0096 2.3994C14.7539 2.14367 14.407 2 14.0454 2Z",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M9.95453 17.2275V10.4093",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M14.0455 17.2275V10.4093",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M18.2364 20.7457C18.2111 21.0873 18.0573 21.4067 17.8059 21.6395C17.5546 21.8723 17.2244 22.0012 16.8818 22.0002H7.11818C6.77561 22.0012 6.4454 21.8723 6.19406 21.6395C5.94273 21.4067 5.78893 21.0873 5.76364 20.7457L4.5 5.6366H19.5L18.2364 20.7457Z",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},Ig=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s=""})=>{const l=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M21.375 8.09253L12.4417 17.025C12.3837 17.0831 12.3148 17.1291 12.2391 17.1605C12.1632 17.192 12.082 17.2082 12 17.2082C11.918 17.2082 11.8368 17.192 11.7609 17.1605C11.6852 17.1291 11.6163 17.0831 11.5583 17.025L2.625 8.09253",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},Mg=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s=""})=>{const l=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M20.125 5.125H3.875C3.18464 5.125 2.625 5.68464 2.625 6.375V20.125C2.625 20.8153 3.18464 21.375 3.875 21.375H20.125C20.8153 21.375 21.375 20.8153 21.375 20.125V6.375C21.375 5.68464 20.8153 5.125 20.125 5.125Z",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M2.625 10.125H21.375",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M7.625 7V2.625",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M16.375 7V2.625",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M6.6875 13.875C6.51491 13.875 6.375 13.7351 6.375 13.5625C6.375 13.3899 6.51491 13.25 6.6875 13.25",strokeWidth:o,stroke:"currentColor"}),i.jsx("path",{d:"M6.6875 13.875C6.86009 13.875 7 13.7351 7 13.5625C7 13.3899 6.86009 13.25 6.6875 13.25",strokeWidth:o,stroke:"currentColor"}),i.jsx("path",{d:"M6.6875 18.25C6.51491 18.25 6.375 18.1101 6.375 17.9375C6.375 17.7649 6.51491 17.625 6.6875 17.625",strokeWidth:o,stroke:"currentColor"}),i.jsx("path",{d:"M6.6875 18.25C6.86009 18.25 7 18.1101 7 17.9375C7 17.7649 6.86009 17.625 6.6875 17.625",strokeWidth:o,stroke:"currentColor"}),i.jsx("path",{d:"M12 13.875C11.8274 13.875 11.6875 13.7351 11.6875 13.5625C11.6875 13.3899 11.8274 13.25 12 13.25",strokeWidth:o,stroke:"currentColor"}),i.jsx("path",{d:"M12 13.875C12.1726 13.875 12.3125 13.7351 12.3125 13.5625C12.3125 13.3899 12.1726 13.25 12 13.25",strokeWidth:o,stroke:"currentColor"}),i.jsx("path",{d:"M12 18.25C11.8274 18.25 11.6875 18.1101 11.6875 17.9375C11.6875 17.7649 11.8274 17.625 12 17.625",strokeWidth:o,stroke:"currentColor"}),i.jsx("path",{d:"M12 18.25C12.1726 18.25 12.3125 18.1101 12.3125 17.9375C12.3125 17.7649 12.1726 17.625 12 17.625",strokeWidth:o,stroke:"currentColor"}),i.jsx("path",{d:"M17.3125 13.875C17.1399 13.875 17 13.7351 17 13.5625C17 13.3899 17.1399 13.25 17.3125 13.25",strokeWidth:o,stroke:"currentColor"}),i.jsx("path",{d:"M17.3125 13.875C17.4851 13.875 17.625 13.7351 17.625 13.5625C17.625 13.3899 17.4851 13.25 17.3125 13.25",strokeWidth:o,stroke:"currentColor"}),i.jsx("path",{d:"M17.3125 18.25C17.1399 18.25 17 18.1101 17 17.9375C17 17.7649 17.1399 17.625 17.3125 17.625",strokeWidth:o,stroke:"currentColor"}),i.jsx("path",{d:"M17.3125 18.25C17.4851 18.25 17.625 18.1101 17.625 17.9375C17.625 17.7649 17.4851 17.625 17.3125 17.625",strokeWidth:o,stroke:"currentColor"})]})},Eg=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s=""})=>{const l=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M17.2667 20.9723L12 17.2856L6.73333 20.9723C6.6397 21.0378 6.52988 21.0764 6.41584 21.0839C6.3018 21.0914 6.18789 21.0674 6.08651 21.0147C5.98512 20.9619 5.90015 20.8824 5.84082 20.7847C5.78149 20.687 5.75007 20.5749 5.75 20.4606V4.16064C5.75 3.82912 5.8817 3.51118 6.11612 3.27676C6.35054 3.04234 6.66848 2.91064 7 2.91064H17C17.3315 2.91064 17.6495 3.04234 17.8839 3.27676C18.1183 3.51118 18.25 3.82912 18.25 4.16064V20.4606C18.2499 20.5749 18.2185 20.687 18.1592 20.7847C18.0999 20.8824 18.0149 20.9619 17.9135 21.0147C17.8121 21.0674 17.6982 21.0914 17.5842 21.0839C17.4701 21.0764 17.3603 21.0378 17.2667 20.9723Z",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M9.5 2.91162V19.0358",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M14.5 2.91162V19.0358",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},Pg=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s=""})=>{const l=!(r&&r.length>0);return e==="16"&&t==="16"?i.jsxs("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,"aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M11.7377 15.4192L7.97053 12.7822L4.20336 15.4192C4.13638 15.4661 4.05784 15.4937 3.97627 15.499C3.89469 15.5044 3.81322 15.4873 3.7407 15.4495C3.66818 15.4118 3.6074 15.3549 3.56496 15.285C3.52252 15.2152 3.50005 15.135 3.5 15.0532V3.39411C3.5 3.15697 3.5942 2.92955 3.76188 2.76188C3.92955 2.5942 4.15697 2.5 4.39411 2.5H11.5469C11.7841 2.5 12.0115 2.5942 12.1792 2.76188C12.3469 2.92955 12.4411 3.15697 12.4411 3.39411V15.0532C12.441 15.135 12.4185 15.2152 12.3761 15.285C12.3337 15.3549 12.2729 15.4118 12.2004 15.4495C12.1278 15.4873 12.0464 15.5044 11.9648 15.499C11.8832 15.4937 11.8047 15.4661 11.7377 15.4192Z",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M6.18231 2.50098V14.0343",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M9.75873 2.50098V14.0343",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("circle",{cx:"12.8",cy:"3.11104",r:"2.3",fill:"#BA1E50",stroke:"white"})]}):i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M17.2667 21.9723L12 18.2856L6.73333 21.9723C6.6397 22.0378 6.52988 22.0764 6.41584 22.0839C6.3018 22.0914 6.18789 22.0674 6.08651 22.0147C5.98512 21.9619 5.90015 21.8824 5.84082 21.7847C5.78149 21.687 5.75007 21.5749 5.75 21.4606V5.16064C5.75 4.82912 5.8817 4.51118 6.11612 4.27676C6.35054 4.04234 6.66848 3.91064 7 3.91064H17C17.3315 3.91064 17.6495 4.04234 17.8839 4.27676C18.1183 4.51118 18.25 4.82912 18.25 5.16064V21.4606C18.2499 21.5749 18.2185 21.687 18.1592 21.7847C18.0999 21.8824 18.0149 21.9619 17.9135 22.0147C17.8121 22.0674 17.6982 22.0914 17.5842 22.0839C17.4701 22.0764 17.3603 22.0378 17.2667 21.9723Z",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M9.5 3.91162V20.0358",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M14.5 3.91162V20.0358",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("circle",{cx:"19",cy:"5",r:"4",fill:"#BA1E50",stroke:"white",strokeWidth:"2"})]})},Tg=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s=""})=>{const l=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M3.22667 13.1308C4.01013 14.9742 5.49382 16.431 7.35134 17.1805C9.20886 17.9301 11.2881 17.911 13.1315 17.1276C14.975 16.3441 16.4317 14.8604 17.1813 13.0029C17.9308 11.1454 17.9118 9.06617 17.1283 7.2227C16.3449 5.37922 14.8612 3.92248 13.0037 3.17294C11.1461 2.42339 9.06694 2.44244 7.22347 3.2259C5.38 4.00936 3.92325 5.49305 3.17371 7.35057C2.42416 9.20809 2.44322 11.2873 3.22667 13.1308Z",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M15.5175 15.5167L21.375 21.3751",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},Fg=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s=""})=>{const l=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M17.3333 5.01583C18.7245 4.79227 20.1306 4.67518 21.5396 4.66561C21.6606 4.66375 21.7775 4.70975 21.8649 4.79361C21.9506 4.87667 21.9993 4.99071 22 5.11006V19.1261C21.9976 19.3705 21.8 19.5681 21.5556 19.5705C14.184 19.6621 12 21.9989 12 21.9989V7.09406C12 7.09406 9.81778 4.75983 2.46044 4.66561C2.33876 4.66328 2.22112 4.70931 2.13333 4.79361C2.04829 4.87697 2.00026 4.99097 2 5.11006V19.1261C2.00241 19.3705 2.19999 19.5681 2.44444 19.5705C9.816 19.6621 12 21.9989 12 21.9989",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M12 21.5609C12.1404 20.4089 12.6507 19.3334 13.4542 18.496C14.4882 17.3807 15.8441 16.6154 17.3333 16.3067V2.43734C17.3306 2.29208 17.2542 2.15817 17.1307 2.08178C16.9997 1.99949 16.8395 1.97808 16.6916 2.02312C15.4443 2.38152 14.3226 3.08277 13.4542 4.04712C12.6511 4.88407 12.1408 5.95882 12 7.11023",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},jg=({width:e="24",height:t="24",className:n="",title:r="",role:o=""})=>{const s=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"#000000",xmlns:"http://www.w3.org/2000/svg",className:n,"aria-hidden":`${s}`,role:o||(s?"graphics-document":"img"),children:[!s&&i.jsx("title",{children:r}),i.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",fill:"currentColor",stroke:"currentColor",d:"M20.5002 6.50003H3.50002C3.10219 6.50003 2.72065 6.342 2.43934 6.06069C2.15804 5.77938 2 5.39785 2 5.00002C2 4.60219 2.15804 4.22065 2.43934 3.93934C2.72065 3.65804 3.10219 3.5 3.50002 3.5H20.5002C20.898 3.5 21.2796 3.65804 21.5609 3.93934C21.8422 4.22065 22.0002 4.60219 22.0002 5.00002C22.0002 5.39785 21.8422 5.77938 21.5609 6.06069C21.2796 6.342 20.898 6.50003 20.5002 6.50003ZM20.5002 13.5001H3.50002C3.10219 13.5001 2.72065 13.3421 2.43934 13.0608C2.15804 12.7795 2 12.3979 2 12.0001C2 11.6023 2.15804 11.2207 2.43934 10.9394C2.72065 10.6581 3.10219 10.5001 3.50002 10.5001H20.5002C20.898 10.5001 21.2796 10.6581 21.5609 10.9394C21.8422 11.2207 22.0002 11.6023 22.0002 12.0001C22.0002 12.3979 21.8422 12.7795 21.5609 13.0608C21.2796 13.3421 20.898 13.5001 20.5002 13.5001ZM3.50002 20.5002H20.5002C20.898 20.5002 21.2796 20.3422 21.5609 20.0608C21.8422 19.7795 22.0002 19.398 22.0002 19.0002C22.0002 18.6023 21.8422 18.2208 21.5609 17.9395C21.2796 17.6582 20.898 17.5002 20.5002 17.5002H3.50002C3.10219 17.5002 2.72065 17.6582 2.43934 17.9395C2.15804 18.2208 2 18.6023 2 19.0002C2 19.398 2.15804 19.7795 2.43934 20.0608C2.72065 20.3422 3.10219 20.5002 3.50002 20.5002Z"})]})},Og=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s=""})=>{const l=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M12 8V16",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M8 12H16",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M2 12C2 13.3132 2.25866 14.6136 2.7612 15.8268C3.26375 17.0401 4.00035 18.1425 4.92893 19.0711C5.85752 19.9997 6.95991 20.7362 8.17317 21.2388C9.38642 21.7413 10.6868 22 12 22C13.3132 22 14.6136 21.7413 15.8268 21.2388C17.0401 20.7362 18.1425 19.9997 19.0711 19.0711C19.9997 18.1425 20.7362 17.0401 21.2388 15.8268C21.7413 14.6136 22 13.3132 22 12C22 10.6868 21.7413 9.38642 21.2388 8.17317C20.7362 6.95991 19.9997 5.85752 19.0711 4.92893C18.1425 4.00035 17.0401 3.26375 15.8268 2.7612C14.6136 2.25866 13.3132 2 12 2C10.6868 2 9.38642 2.25866 8.17317 2.7612C6.95991 3.26375 5.85752 4.00035 4.92893 4.92893C4.00035 5.85752 3.26375 6.95991 2.7612 8.17317C2.25866 9.38642 2 10.6868 2 12Z",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},Rg=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s=""})=>{const l=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"#000000",xmlns:"http://www.w3.org/2000/svg",className:n,"aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M9.70831 14.1025L21.375 2.625",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M21.375 9.18417V2.625H14.7083",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M12.1042 6.79163H3.35417C3.16078 6.79163 2.97531 6.86845 2.83857 7.00519C2.70182 7.14194 2.625 7.32741 2.625 7.52079V20.6458C2.625 20.8392 2.70182 21.0246 2.83857 21.1614C2.97531 21.2981 3.16078 21.375 3.35417 21.375H16.4792C16.6726 21.375 16.858 21.2981 16.9948 21.1614C17.1315 21.0246 17.2083 20.8392 17.2083 20.6458V11.8958",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},Lg=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s=""})=>{const l=!(r&&r.length>0);return e==="16"&&t==="16"?i.jsxs("svg",{width:"19",height:"17",viewBox:"0 0 19 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,"aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M11.7333 4.11082C12.7071 3.95432 13.6914 3.87236 14.6777 3.86566C14.7624 3.86436 14.8443 3.89656 14.9054 3.95526C14.9654 4.0134 14.9995 4.09323 15 4.17677V13.988C14.9983 14.1591 14.86 14.2974 14.6889 14.2991C9.5288 14.3632 8 15.999 8 15.999V5.56557C8 5.56557 6.47244 3.93162 1.32231 3.86566C1.23713 3.86403 1.15478 3.89625 1.09333 3.95526C1.0338 4.01361 1.00018 4.09341 1 4.17677V13.988C1.00169 14.1591 1.13999 14.2974 1.31111 14.2991C6.4712 14.3632 8 15.999 8 15.999",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M8 15.6926C8.09831 14.8862 8.4555 14.1334 9.01796 13.5472C9.74172 12.7665 10.6909 12.2308 11.7333 12.0147V2.30614C11.7314 2.20446 11.678 2.11072 11.5915 2.05725C11.4998 1.99964 11.3877 1.98466 11.2841 2.01618C10.411 2.26706 9.62585 2.75794 9.01796 3.43298C8.45574 4.01885 8.09857 4.77117 8 5.57716",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("circle",{cx:"15.8",cy:"3.11104",r:"2.3",fill:"#BA1E50",stroke:"white"})]}):i.jsxs("svg",{width:"29",height:"24",viewBox:"0 0 29 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M17.3333 5.01583C18.7245 4.79227 20.1306 4.67518 21.5396 4.66561C21.6606 4.66375 21.7775 4.70975 21.8649 4.79361C21.9506 4.87667 21.9993 4.99071 22 5.11006V19.1261C21.9976 19.3705 21.8 19.5681 21.5556 19.5705C14.184 19.6621 12 21.9989 12 21.9989V7.09406C12 7.09406 9.81778 4.75983 2.46044 4.66561C2.33876 4.66328 2.22112 4.70931 2.13333 4.79361C2.04829 4.87697 2.00026 4.99097 2 5.11006V19.1261C2.00241 19.3705 2.19999 19.5681 2.44444 19.5705C9.816 19.6621 12 21.9989 12 21.9989",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M12 21.5609C12.1404 20.4089 12.6507 19.3334 13.4542 18.496C14.4882 17.3807 15.8441 16.6154 17.3333 16.3067V2.43734C17.3306 2.29208 17.2542 2.15817 17.1307 2.08178C16.9997 1.99949 16.8395 1.97808 16.6916 2.02312C15.4443 2.38152 14.3226 3.08277 13.4542 4.04712C12.6511 4.88407 12.1408 5.95882 12 7.11023",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("circle",{cx:"24",cy:"5",r:"4",fill:"#BA1E50",stroke:"white",strokeWidth:"2"})]})},Dg=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s=""})=>{const l=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",className:n,fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M12 22C14.6522 22 17.1957 20.9464 19.0711 19.0711C20.9464 17.1957 22 14.6522 22 12C22 9.34784 20.9464 6.8043 19.0711 4.92893C17.1957 3.05357 14.6522 2 12 2C9.34784 2 6.8043 3.05357 4.92893 4.92893C3.05357 6.8043 2 9.34784 2 12C2 14.6522 3.05357 17.1957 4.92893 19.0711C6.8043 20.9464 9.34784 22 12 22Z",stroke:"currentColor",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round"}),i.jsx("path",{d:"M15.5 9L11 15L8 12",stroke:"currentColor",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round"})]})},Hg=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s=""})=>{const l=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M4.9375 9.4375H19C19 9.4375 19.9375 9.4375 19.9375 10.375V21.625C19.9375 21.625 19.9375 22.5625 19 22.5625H4.9375C4.9375 22.5625 4 22.5625 4 21.625V10.375C4 10.375 4 9.4375 4.9375 9.4375Z",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M6.8125 6.15625C6.8125 4.78873 7.35575 3.47721 8.32273 2.51023C9.28971 1.54325 10.6012 1 11.9688 1C13.3363 1 14.6478 1.54325 15.6148 2.51023C16.5818 3.47721 17.125 4.78873 17.125 6.15625V9.4375",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M11.0312 14.5938C11.0312 14.8424 11.13 15.0808 11.3058 15.2567C11.4817 15.4325 11.7201 15.5312 11.9688 15.5312C12.2174 15.5312 12.4558 15.4325 12.6317 15.2567C12.8075 15.0808 12.9062 14.8424 12.9062 14.5938C12.9062 14.3451 12.8075 14.1067 12.6317 13.9308C12.4558 13.755 12.2174 13.6562 11.9688 13.6562C11.7201 13.6562 11.4817 13.755 11.3058 13.9308C11.13 14.1067 11.0312 14.3451 11.0312 14.5938Z",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M11.9688 15.5312V18.3438",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},_g=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s=""})=>{const l=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M11.0312 14.5938C11.0312 14.8424 11.13 15.0808 11.3058 15.2567C11.4817 15.4325 11.7201 15.5312 11.9688 15.5312C12.2174 15.5312 12.4558 15.4325 12.6317 15.2567C12.8075 15.0808 12.9062 14.8424 12.9062 14.5938C12.9062 14.3451 12.8075 14.1067 12.6317 13.9308C12.4558 13.755 12.2174 13.6562 11.9688 13.6562C11.7201 13.6562 11.4817 13.755 11.3058 13.9308C11.13 14.1067 11.0312 14.3451 11.0312 14.5938Z",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M11.9688 15.5312V18.3438",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M4.9375 9.4375H19C19 9.4375 19.9375 9.4375 19.9375 10.375V21.625C19.9375 21.625 19.9375 22.5625 19 22.5625H4.9375C4.9375 22.5625 4 22.5625 4 21.625V10.375C4 10.375 4 9.4375 4.9375 9.4375Z",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M6.8125 6.15625C6.8125 4.78873 7.35575 3.47721 8.32273 2.51023C9.28971 1.54325 10.6012 1 11.9688 1C13.3363 1 14.6478 1.54325 15.6148 2.51023C16.5818 3.47721 17.125 4.78873 17.125 6.15625V9.4375H6.8125V6.15625Z",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})};function ba(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=ba(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Pe(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=ba(e))&&(r&&(r+=" "),r+=t);return r}const pl=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,bl=Pe,Be=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return bl(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:s}=t,l=Object.keys(o).map(u=>{const d=n==null?void 0:n[u],h=s==null?void 0:s[u];if(d===null)return null;const m=pl(d)||pl(h);return o[u][m]}),a=n&&Object.entries(n).reduce((u,d)=>{let[h,m]=d;return m===void 0||(u[h]=m),u},{}),c=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,d)=>{let{class:h,className:m,...p}=d;return Object.entries(p).every(b=>{let[x,w]=b;return Array.isArray(w)?w.includes({...s,...a}[x]):{...s,...a}[x]===w})?[...u,h,m]:u},[]);return bl(e,l,c,n==null?void 0:n.class,n==null?void 0:n.className)},Ag=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},Vg=(e,t)=>({classGroupId:e,validator:t}),Ca=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),qr="-",Cl=[],Ng="arbitrary..",$g=e=>{const t=Gg(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{if(l.startsWith("[")&&l.endsWith("]"))return zg(l);const a=l.split(qr),c=a[0]===""&&a.length>1?1:0;return wa(a,c,t)},getConflictingClassGroupIds:(l,a)=>{if(a){const c=r[l],u=n[l];return c?u?Ag(u,c):c:u||Cl}return n[l]||Cl}}},wa=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const o=e[t],s=n.nextPart.get(o);if(s){const u=wa(e,t+1,s);if(u)return u}const l=n.validators;if(l===null)return;const a=t===0?e.join(qr):e.slice(t).join(qr),c=l.length;for(let u=0;u<c;u++){const d=l[u];if(d.validator(a))return d.classGroupId}},zg=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?Ng+r:void 0})(),Gg=e=>{const{theme:t,classGroups:n}=e;return Bg(n,t)},Bg=(e,t)=>{const n=Ca();for(const r in e){const o=e[r];vs(o,n,r,t)}return n},vs=(e,t,n,r)=>{const o=e.length;for(let s=0;s<o;s++){const l=e[s];Wg(l,t,n,r)}},Wg=(e,t,n,r)=>{if(typeof e=="string"){qg(e,t,n);return}if(typeof e=="function"){Ug(e,t,n,r);return}Kg(e,t,n,r)},qg=(e,t,n)=>{const r=e===""?t:xa(t,e);r.classGroupId=n},Ug=(e,t,n,r)=>{if(Xg(e)){vs(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Vg(n,e))},Kg=(e,t,n,r)=>{const o=Object.entries(e),s=o.length;for(let l=0;l<s;l++){const[a,c]=o[l];vs(c,xa(t,a),n,r)}},xa=(e,t)=>{let n=e;const r=t.split(qr),o=r.length;for(let s=0;s<o;s++){const l=r[s];let a=n.nextPart.get(l);a||(a=Ca(),n.nextPart.set(l,a)),n=a}return n},Xg=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Yg=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const o=(s,l)=>{n[s]=l,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(s){let l=n[s];if(l!==void 0)return l;if((l=r[s])!==void 0)return o(s,l),l},set(s,l){s in n?n[s]=l:o(s,l)}}},ts="!",wl=":",Zg=[],xl=(e,t,n,r,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:o}),Qg=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const s=[];let l=0,a=0,c=0,u;const d=o.length;for(let x=0;x<d;x++){const w=o[x];if(l===0&&a===0){if(w===wl){s.push(o.slice(c,x)),c=x+1;continue}if(w==="/"){u=x;continue}}w==="["?l++:w==="]"?l--:w==="("?a++:w===")"&&a--}const h=s.length===0?o:o.slice(c);let m=h,p=!1;h.endsWith(ts)?(m=h.slice(0,-1),p=!0):h.startsWith(ts)&&(m=h.slice(1),p=!0);const b=u&&u>c?u-c:void 0;return xl(s,p,m,b)};if(t){const o=t+wl,s=r;r=l=>l.startsWith(o)?s(l.slice(o.length)):xl(Zg,!1,l,void 0,!0)}if(n){const o=r;r=s=>n({className:s,parseClassName:o})}return r},Jg=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let o=[];for(let s=0;s<n.length;s++){const l=n[s],a=l[0]==="[",c=t.has(l);a||c?(o.length>0&&(o.sort(),r.push(...o),o=[]),r.push(l)):o.push(l)}return o.length>0&&(o.sort(),r.push(...o)),r}},em=e=>({cache:Yg(e.cacheSize),parseClassName:Qg(e),sortModifiers:Jg(e),postfixLookupClassGroupIds:tm(e),...$g(e)}),tm=e=>{const t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let r=0;r<n.length;r++)t[n[r]]=!0;return t},nm=/\s+/,rm=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:s,postfixLookupClassGroupIds:l}=t,a=[],c=e.trim().split(nm);let u="";for(let d=c.length-1;d>=0;d-=1){const h=c[d],{isExternal:m,modifiers:p,hasImportantModifier:b,baseClassName:x,maybePostfixModifierPosition:w}=n(h);if(m){u=h+(u.length>0?" "+u:u);continue}let k=!!w,v;if(k){const N=x.substring(0,w);v=r(N);const M=v&&l[v]?r(x):void 0;M&&M!==v&&(v=M,k=!1)}else v=r(x);if(!v){if(!k){u=h+(u.length>0?" "+u:u);continue}if(v=r(x),!v){u=h+(u.length>0?" "+u:u);continue}k=!1}const F=p.length===0?"":p.length===1?p[0]:s(p).join(":"),j=b?F+ts:F,y=j+v;if(a.indexOf(y)>-1)continue;a.push(y);const A=o(v,k);for(let N=0;N<A.length;++N){const M=A[N];a.push(j+M)}u=h+(u.length>0?" "+u:u)}return u},om=(...e)=>{let t=0,n,r,o="";for(;t<e.length;)(n=e[t++])&&(r=ya(n))&&(o&&(o+=" "),o+=r);return o},ya=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=ya(e[r]))&&(n&&(n+=" "),n+=t);return n},sm=(e,...t)=>{let n,r,o,s;const l=c=>{const u=t.reduce((d,h)=>h(d),e());return n=em(u),r=n.cache.get,o=n.cache.set,s=a,a(c)},a=c=>{const u=r(c);if(u)return u;const d=rm(c,n);return o(c,d),d};return s=l,(...c)=>s(om(...c))},lm=[],st=e=>{const t=n=>n[e]||lm;return t.isThemeGetter=!0,t},va=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Sa=/^\((?:(\w[\w-]*):)?(.+)\)$/i,im=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,am=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,cm=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,um=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,dm=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,fm=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,en=e=>im.test(e),Ee=e=>!!e&&!Number.isNaN(Number(e)),_t=e=>!!e&&Number.isInteger(Number(e)),To=e=>e.endsWith("%")&&Ee(e.slice(0,-1)),qt=e=>am.test(e),ka=()=>!0,hm=e=>cm.test(e)&&!um.test(e),Ss=()=>!1,gm=e=>dm.test(e),mm=e=>fm.test(e),pm=e=>!de(e)&&!he(e),bm=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),Cm=e=>un(e,Ea,Ss),de=e=>va.test(e),hn=e=>un(e,Pa,hm),yl=e=>un(e,Mm,Ee),wm=e=>un(e,Fa,ka),xm=e=>un(e,Ta,Ss),vl=e=>un(e,Ia,Ss),ym=e=>un(e,Ma,mm),Rr=e=>un(e,ja,gm),he=e=>Sa.test(e),rr=e=>xn(e,Pa),vm=e=>xn(e,Ta),Sl=e=>xn(e,Ia),Sm=e=>xn(e,Ea),km=e=>xn(e,Ma),Lr=e=>xn(e,ja,!0),Im=e=>xn(e,Fa,!0),un=(e,t,n)=>{const r=va.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},xn=(e,t,n=!1)=>{const r=Sa.exec(e);return r?r[1]?t(r[1]):n:!1},Ia=e=>e==="position"||e==="percentage",Ma=e=>e==="image"||e==="url",Ea=e=>e==="length"||e==="size"||e==="bg-size",Pa=e=>e==="length",Mm=e=>e==="number",Ta=e=>e==="family-name",Fa=e=>e==="number"||e==="weight",ja=e=>e==="shadow",Em=()=>{const e=st("color"),t=st("font"),n=st("text"),r=st("font-weight"),o=st("tracking"),s=st("leading"),l=st("breakpoint"),a=st("container"),c=st("spacing"),u=st("radius"),d=st("shadow"),h=st("inset-shadow"),m=st("text-shadow"),p=st("drop-shadow"),b=st("blur"),x=st("perspective"),w=st("aspect"),k=st("ease"),v=st("animate"),F=()=>["auto","avoid","all","avoid-page","page","left","right","column"],j=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],y=()=>[...j(),he,de],A=()=>["auto","hidden","clip","visible","scroll"],N=()=>["auto","contain","none"],M=()=>[he,de,c],P=()=>[en,"full","auto",...M()],R=()=>[_t,"none","subgrid",he,de],_=()=>["auto",{span:["full",_t,he,de]},_t,he,de],O=()=>[_t,"auto",he,de],D=()=>["auto","min","max","fr",he,de],V=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],E=()=>["start","end","center","stretch","center-safe","end-safe"],T=()=>["auto",...M()],L=()=>[en,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...M()],$=()=>[en,"screen","full","dvw","lvw","svw","min","max","fit",...M()],G=()=>[en,"screen","full","lh","dvh","lvh","svh","min","max","fit",...M()],S=()=>[e,he,de],H=()=>[...j(),Sl,vl,{position:[he,de]}],z=()=>["no-repeat",{repeat:["","x","y","space","round"]}],q=()=>["auto","cover","contain",Sm,Cm,{size:[he,de]}],U=()=>[To,rr,hn],Q=()=>["","none","full",u,he,de],X=()=>["",Ee,rr,hn],W=()=>["solid","dashed","dotted","double"],K=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Y=()=>[Ee,To,Sl,vl],J=()=>["","none",b,he,de],ne=()=>["none",Ee,he,de],Z=()=>["none",Ee,he,de],oe=()=>[Ee,he,de],ee=()=>[en,"full",...M()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[qt],breakpoint:[qt],color:[ka],container:[qt],"drop-shadow":[qt],ease:["in","out","in-out"],font:[pm],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[qt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[qt],shadow:[qt],spacing:["px",Ee],text:[qt],"text-shadow":[qt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",en,de,he,w]}],container:["container"],"container-type":[{"@container":["","normal","size",he,de]}],"container-named":[bm],columns:[{columns:[Ee,de,he,a]}],"break-after":[{"break-after":F()}],"break-before":[{"break-before":F()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:y()}],overflow:[{overflow:A()}],"overflow-x":[{"overflow-x":A()}],"overflow-y":[{"overflow-y":A()}],overscroll:[{overscroll:N()}],"overscroll-x":[{"overscroll-x":N()}],"overscroll-y":[{"overscroll-y":N()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:P()}],"inset-x":[{"inset-x":P()}],"inset-y":[{"inset-y":P()}],start:[{"inset-s":P(),start:P()}],end:[{"inset-e":P(),end:P()}],"inset-bs":[{"inset-bs":P()}],"inset-be":[{"inset-be":P()}],top:[{top:P()}],right:[{right:P()}],bottom:[{bottom:P()}],left:[{left:P()}],visibility:["visible","invisible","collapse"],z:[{z:[_t,"auto",he,de]}],basis:[{basis:[en,"full","auto",a,...M()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ee,en,"auto","initial","none",de]}],grow:[{grow:["",Ee,he,de]}],shrink:[{shrink:["",Ee,he,de]}],order:[{order:[_t,"first","last","none",he,de]}],"grid-cols":[{"grid-cols":R()}],"col-start-end":[{col:_()}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":R()}],"row-start-end":[{row:_()}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":D()}],"auto-rows":[{"auto-rows":D()}],gap:[{gap:M()}],"gap-x":[{"gap-x":M()}],"gap-y":[{"gap-y":M()}],"justify-content":[{justify:[...V(),"normal"]}],"justify-items":[{"justify-items":[...E(),"normal"]}],"justify-self":[{"justify-self":["auto",...E()]}],"align-content":[{content:["normal",...V()]}],"align-items":[{items:[...E(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...E(),{baseline:["","last"]}]}],"place-content":[{"place-content":V()}],"place-items":[{"place-items":[...E(),"baseline"]}],"place-self":[{"place-self":["auto",...E()]}],p:[{p:M()}],px:[{px:M()}],py:[{py:M()}],ps:[{ps:M()}],pe:[{pe:M()}],pbs:[{pbs:M()}],pbe:[{pbe:M()}],pt:[{pt:M()}],pr:[{pr:M()}],pb:[{pb:M()}],pl:[{pl:M()}],m:[{m:T()}],mx:[{mx:T()}],my:[{my:T()}],ms:[{ms:T()}],me:[{me:T()}],mbs:[{mbs:T()}],mbe:[{mbe:T()}],mt:[{mt:T()}],mr:[{mr:T()}],mb:[{mb:T()}],ml:[{ml:T()}],"space-x":[{"space-x":M()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":M()}],"space-y-reverse":["space-y-reverse"],size:[{size:L()}],"inline-size":[{inline:["auto",...$()]}],"min-inline-size":[{"min-inline":["auto",...$()]}],"max-inline-size":[{"max-inline":["none",...$()]}],"block-size":[{block:["auto",...G()]}],"min-block-size":[{"min-block":["auto",...G()]}],"max-block-size":[{"max-block":["none",...G()]}],w:[{w:[a,"screen",...L()]}],"min-w":[{"min-w":[a,"screen","none",...L()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[l]},...L()]}],h:[{h:["screen","lh",...L()]}],"min-h":[{"min-h":["screen","lh","none",...L()]}],"max-h":[{"max-h":["screen","lh",...L()]}],"font-size":[{text:["base",n,rr,hn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Im,wm]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",To,de]}],"font-family":[{font:[vm,xm,t]}],"font-features":[{"font-features":[de]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,he,de]}],"line-clamp":[{"line-clamp":[Ee,"none",he,yl]}],leading:[{leading:[s,...M()]}],"list-image":[{"list-image":["none",he,de]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",he,de]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:S()}],"text-color":[{text:S()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...W(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ee,"from-font","auto",he,hn]}],"text-decoration-color":[{decoration:S()}],"underline-offset":[{"underline-offset":[Ee,"auto",he,de]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:M()}],"tab-size":[{tab:[_t,he,de]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",he,de]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",he,de]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:H()}],"bg-repeat":[{bg:z()}],"bg-size":[{bg:q()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},_t,he,de],radial:["",he,de],conic:[_t,he,de]},km,ym]}],"bg-color":[{bg:S()}],"gradient-from-pos":[{from:U()}],"gradient-via-pos":[{via:U()}],"gradient-to-pos":[{to:U()}],"gradient-from":[{from:S()}],"gradient-via":[{via:S()}],"gradient-to":[{to:S()}],rounded:[{rounded:Q()}],"rounded-s":[{"rounded-s":Q()}],"rounded-e":[{"rounded-e":Q()}],"rounded-t":[{"rounded-t":Q()}],"rounded-r":[{"rounded-r":Q()}],"rounded-b":[{"rounded-b":Q()}],"rounded-l":[{"rounded-l":Q()}],"rounded-ss":[{"rounded-ss":Q()}],"rounded-se":[{"rounded-se":Q()}],"rounded-ee":[{"rounded-ee":Q()}],"rounded-es":[{"rounded-es":Q()}],"rounded-tl":[{"rounded-tl":Q()}],"rounded-tr":[{"rounded-tr":Q()}],"rounded-br":[{"rounded-br":Q()}],"rounded-bl":[{"rounded-bl":Q()}],"border-w":[{border:X()}],"border-w-x":[{"border-x":X()}],"border-w-y":[{"border-y":X()}],"border-w-s":[{"border-s":X()}],"border-w-e":[{"border-e":X()}],"border-w-bs":[{"border-bs":X()}],"border-w-be":[{"border-be":X()}],"border-w-t":[{"border-t":X()}],"border-w-r":[{"border-r":X()}],"border-w-b":[{"border-b":X()}],"border-w-l":[{"border-l":X()}],"divide-x":[{"divide-x":X()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":X()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...W(),"hidden","none"]}],"divide-style":[{divide:[...W(),"hidden","none"]}],"border-color":[{border:S()}],"border-color-x":[{"border-x":S()}],"border-color-y":[{"border-y":S()}],"border-color-s":[{"border-s":S()}],"border-color-e":[{"border-e":S()}],"border-color-bs":[{"border-bs":S()}],"border-color-be":[{"border-be":S()}],"border-color-t":[{"border-t":S()}],"border-color-r":[{"border-r":S()}],"border-color-b":[{"border-b":S()}],"border-color-l":[{"border-l":S()}],"divide-color":[{divide:S()}],"outline-style":[{outline:[...W(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ee,he,de]}],"outline-w":[{outline:["",Ee,rr,hn]}],"outline-color":[{outline:S()}],shadow:[{shadow:["","none",d,Lr,Rr]}],"shadow-color":[{shadow:S()}],"inset-shadow":[{"inset-shadow":["none",h,Lr,Rr]}],"inset-shadow-color":[{"inset-shadow":S()}],"ring-w":[{ring:X()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:S()}],"ring-offset-w":[{"ring-offset":[Ee,hn]}],"ring-offset-color":[{"ring-offset":S()}],"inset-ring-w":[{"inset-ring":X()}],"inset-ring-color":[{"inset-ring":S()}],"text-shadow":[{"text-shadow":["none",m,Lr,Rr]}],"text-shadow-color":[{"text-shadow":S()}],opacity:[{opacity:[Ee,he,de]}],"mix-blend":[{"mix-blend":[...K(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":K()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Ee]}],"mask-image-linear-from-pos":[{"mask-linear-from":Y()}],"mask-image-linear-to-pos":[{"mask-linear-to":Y()}],"mask-image-linear-from-color":[{"mask-linear-from":S()}],"mask-image-linear-to-color":[{"mask-linear-to":S()}],"mask-image-t-from-pos":[{"mask-t-from":Y()}],"mask-image-t-to-pos":[{"mask-t-to":Y()}],"mask-image-t-from-color":[{"mask-t-from":S()}],"mask-image-t-to-color":[{"mask-t-to":S()}],"mask-image-r-from-pos":[{"mask-r-from":Y()}],"mask-image-r-to-pos":[{"mask-r-to":Y()}],"mask-image-r-from-color":[{"mask-r-from":S()}],"mask-image-r-to-color":[{"mask-r-to":S()}],"mask-image-b-from-pos":[{"mask-b-from":Y()}],"mask-image-b-to-pos":[{"mask-b-to":Y()}],"mask-image-b-from-color":[{"mask-b-from":S()}],"mask-image-b-to-color":[{"mask-b-to":S()}],"mask-image-l-from-pos":[{"mask-l-from":Y()}],"mask-image-l-to-pos":[{"mask-l-to":Y()}],"mask-image-l-from-color":[{"mask-l-from":S()}],"mask-image-l-to-color":[{"mask-l-to":S()}],"mask-image-x-from-pos":[{"mask-x-from":Y()}],"mask-image-x-to-pos":[{"mask-x-to":Y()}],"mask-image-x-from-color":[{"mask-x-from":S()}],"mask-image-x-to-color":[{"mask-x-to":S()}],"mask-image-y-from-pos":[{"mask-y-from":Y()}],"mask-image-y-to-pos":[{"mask-y-to":Y()}],"mask-image-y-from-color":[{"mask-y-from":S()}],"mask-image-y-to-color":[{"mask-y-to":S()}],"mask-image-radial":[{"mask-radial":[he,de]}],"mask-image-radial-from-pos":[{"mask-radial-from":Y()}],"mask-image-radial-to-pos":[{"mask-radial-to":Y()}],"mask-image-radial-from-color":[{"mask-radial-from":S()}],"mask-image-radial-to-color":[{"mask-radial-to":S()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":j()}],"mask-image-conic-pos":[{"mask-conic":[Ee]}],"mask-image-conic-from-pos":[{"mask-conic-from":Y()}],"mask-image-conic-to-pos":[{"mask-conic-to":Y()}],"mask-image-conic-from-color":[{"mask-conic-from":S()}],"mask-image-conic-to-color":[{"mask-conic-to":S()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:H()}],"mask-repeat":[{mask:z()}],"mask-size":[{mask:q()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",he,de]}],filter:[{filter:["","none",he,de]}],blur:[{blur:J()}],brightness:[{brightness:[Ee,he,de]}],contrast:[{contrast:[Ee,he,de]}],"drop-shadow":[{"drop-shadow":["","none",p,Lr,Rr]}],"drop-shadow-color":[{"drop-shadow":S()}],grayscale:[{grayscale:["",Ee,he,de]}],"hue-rotate":[{"hue-rotate":[Ee,he,de]}],invert:[{invert:["",Ee,he,de]}],saturate:[{saturate:[Ee,he,de]}],sepia:[{sepia:["",Ee,he,de]}],"backdrop-filter":[{"backdrop-filter":["","none",he,de]}],"backdrop-blur":[{"backdrop-blur":J()}],"backdrop-brightness":[{"backdrop-brightness":[Ee,he,de]}],"backdrop-contrast":[{"backdrop-contrast":[Ee,he,de]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ee,he,de]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ee,he,de]}],"backdrop-invert":[{"backdrop-invert":["",Ee,he,de]}],"backdrop-opacity":[{"backdrop-opacity":[Ee,he,de]}],"backdrop-saturate":[{"backdrop-saturate":[Ee,he,de]}],"backdrop-sepia":[{"backdrop-sepia":["",Ee,he,de]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":M()}],"border-spacing-x":[{"border-spacing-x":M()}],"border-spacing-y":[{"border-spacing-y":M()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",he,de]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ee,"initial",he,de]}],ease:[{ease:["linear","initial",k,he,de]}],delay:[{delay:[Ee,he,de]}],animate:[{animate:["none",v,he,de]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[x,he,de]}],"perspective-origin":[{"perspective-origin":y()}],rotate:[{rotate:ne()}],"rotate-x":[{"rotate-x":ne()}],"rotate-y":[{"rotate-y":ne()}],"rotate-z":[{"rotate-z":ne()}],scale:[{scale:Z()}],"scale-x":[{"scale-x":Z()}],"scale-y":[{"scale-y":Z()}],"scale-z":[{"scale-z":Z()}],"scale-3d":["scale-3d"],skew:[{skew:oe()}],"skew-x":[{"skew-x":oe()}],"skew-y":[{"skew-y":oe()}],transform:[{transform:[he,de,"","none","gpu","cpu"]}],"transform-origin":[{origin:y()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ee()}],"translate-x":[{"translate-x":ee()}],"translate-y":[{"translate-y":ee()}],"translate-z":[{"translate-z":ee()}],"translate-none":["translate-none"],zoom:[{zoom:[_t,he,de]}],accent:[{accent:S()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:S()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",he,de]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":S()}],"scrollbar-track-color":[{"scrollbar-track":S()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":M()}],"scroll-mx":[{"scroll-mx":M()}],"scroll-my":[{"scroll-my":M()}],"scroll-ms":[{"scroll-ms":M()}],"scroll-me":[{"scroll-me":M()}],"scroll-mbs":[{"scroll-mbs":M()}],"scroll-mbe":[{"scroll-mbe":M()}],"scroll-mt":[{"scroll-mt":M()}],"scroll-mr":[{"scroll-mr":M()}],"scroll-mb":[{"scroll-mb":M()}],"scroll-ml":[{"scroll-ml":M()}],"scroll-p":[{"scroll-p":M()}],"scroll-px":[{"scroll-px":M()}],"scroll-py":[{"scroll-py":M()}],"scroll-ps":[{"scroll-ps":M()}],"scroll-pe":[{"scroll-pe":M()}],"scroll-pbs":[{"scroll-pbs":M()}],"scroll-pbe":[{"scroll-pbe":M()}],"scroll-pt":[{"scroll-pt":M()}],"scroll-pr":[{"scroll-pr":M()}],"scroll-pb":[{"scroll-pb":M()}],"scroll-pl":[{"scroll-pl":M()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",he,de]}],fill:[{fill:["none",...S()]}],"stroke-w":[{stroke:[Ee,rr,hn,yl]}],stroke:[{stroke:["none",...S()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},rt=sm(Em);function Oa(){return Math.floor(Math.random()*1e7)}const Ra=(e,t,n,r,o)=>{const s=`preflight ${n}`;return{settings:i.jsx(yg,{width:e,height:t,className:s,title:r,role:o}),questionCircle:i.jsx(xg,{width:e,height:t,className:s,title:r,role:o}),notifications:i.jsx(Cg,{width:e,height:t,className:s,title:r,role:o}),flag:i.jsx(bg,{width:e,height:t,className:s,title:r,role:o}),edit:i.jsx(pg,{width:e,height:t,className:s,title:r,role:o}),infoCircle:i.jsx(Cs,{width:e,height:t,className:s,title:r,role:o}),delete:i.jsx(kg,{width:e,height:t,className:s,title:r,role:o}),resourceCenter:i.jsx(Fg,{width:e,height:t,className:s,title:r,role:o}),search:i.jsx(Tg,{width:e,height:t,className:s,title:r,role:o}),error:i.jsx(ys,{width:e,height:t,className:s,title:r,role:o}),warning:i.jsx(xs,{width:e,height:t,className:s,title:r,role:o}),dropdown:i.jsx(Ig,{width:e,height:t,className:s,title:r,role:o}),calendar:i.jsx(Mg,{width:e,height:t,className:s,title:r,role:o}),bookmark:i.jsx(Eg,{width:e,height:t,className:s,title:r,role:o}),menu:i.jsx(jg,{width:e,height:t,className:s,title:r,role:o}),add:i.jsx(Og,{width:e,height:t,className:s,title:r,role:o}),exclude:i.jsx(Sg,{width:e,height:t,className:s,title:r,role:o}),email:i.jsx(vg,{width:e,height:t,className:s,title:r,role:o}),close:i.jsx(mg,{width:e,height:t,className:s,title:r,role:o}),checkCircle:i.jsx(ws,{width:e,height:t,className:s,title:r,role:o}),linkNewTab:i.jsx(Rg,{width:e,height:t,className:s,title:r,role:o}),lockOpened:i.jsx(Hg,{width:e,height:t,className:s,title:r,role:o}),lockClosed:i.jsx(_g,{width:e,height:t,className:s,title:r,role:o}),check:i.jsx(Dg,{width:e,height:t,className:s,title:r,role:o})}},La=(e,t,n,r,o)=>{const s=`preflight ${n}`;return{notifications:i.jsx(wg,{width:e,height:t,className:s,title:r,role:o}),resourceCenter:i.jsx(Lg,{width:e,height:t,className:s,title:r,role:o}),bookmark:i.jsx(Pg,{width:e,height:t,className:s,title:r,role:o})}},Da=(e,t,n,r,o,s)=>{const l=`preflight ${n}`;return{infoCircle:i.jsx(Cs,{width:e,height:t,className:l,title:r,role:o,filled:s}),error:i.jsx(ys,{width:e,height:t,className:l,title:r,role:o,filled:s}),warning:i.jsx(xs,{width:e,height:t,className:l,title:r,role:o,filled:s}),checkCircle:i.jsx(ws,{width:e,height:t,className:l,title:r,role:o,filled:s})}},$t=({size:e="small",name:t,hasIndicator:n=!1,className:r,altText:o,role:s=void 0,filled:l=!1})=>{const a={small:{width:"16",height:"16"},medium:{width:"24",height:"24"}},c=Ra(a[e].width,a[e].height,r,o,s),u=La(a[e].width,a[e].height,r,o,s),d=Da(a[e].width,a[e].height,r,o,s,l),h=n&&!l?u[t]||c[t]:l&&d[t]||c[t];return i.jsx(i.Fragment,{children:h})};Object.keys(Ra()).sort((e,t)=>e.localeCompare(t));Object.keys(La()).sort((e,t)=>e.localeCompare(t));Object.keys(Da()).sort((e,t)=>e.localeCompare(t));const pr=(...e)=>rt(Pe(...e)),Pm=Be("ds:rounded-full ds:border-t-acuity-blue ds:border-x-acuity-blue ds:border-b-neutrals-transparent ds:border-solid ds:animate-spin",{variants:{size:{small:["ds:w-4","ds:h-4","ds:border"],medium:["ds:w-5","ds:h-5","ds:border-2"],large:["ds:w-7","ds:h-7","ds:border-[3px]"],"extra-large":["ds:w-[6.5rem]","ds:h-[6.5rem]","ds:border-[6px]"]}}}),Tm=Be("preflight ds:inline-block ds:rounded ds:focus-visible:outline-hidden ds:focus-visible:ring-2 ds:focus-visible:ring-acuity-blue",{variants:{size:{small:"ds:p-1",medium:"ds:p-2",large:"ds:p-3","extra-large":"ds:p-4"}}}),Ur=({size:e="medium",focusable:t=!0,label:n="",ariaLive:r="assertive",className:o="",spinnerClassName:s=""})=>i.jsx("div",{tabIndex:t?0:void 0,"aria-label":n,"aria-live":r,className:t?pr(Tm({size:e}),o):`preflight ds:rounded ${o}`,role:"status",children:i.jsx("div",{className:pr(Pm({size:e}),s)})}),Ha=(e,t,n)=>{if(t){e.preventDefault();return}n(e)},ao=(e,t,n)=>{if(t){e.preventDefault();return}n(e)},Fm=(e,t,n)=>{if(t){e.preventDefault();return}n(e)},jm=(e,t,n)=>{if(t&&e.key!=="Tab"){e.preventDefault();return}n(e)},Om=(e,t,n)=>{if(t){e.preventDefault();return}n(e)},Rm=Be(["preflight","ds:font-sans!","ds:rounded","ds:text-base","ds:font-semibold","ds:border","ds:transition","ds:duration-100","ds:text-nowrap","ds:focus-visible:border","ds:focus-visible:ring-2","ds:focus-visible:outline-hidden","ds:focus-visible:ring-offset-2"],{variants:{variant:{default:["ds:p-[10px]","ds:relative","ds:group"],small:["ds:p-1"]},isTransparent:{false:"",true:""},disabled:{false:["ds:text-neutrals-black","ds:hover:bg-neutrals-transparent-light","ds:hover:border-neutrals-transparent","ds:active:bg-neutrals-transparent-medium","ds:active:border-neutrals-transparent","ds:focus-visible:bg-neutrals-transparent-light","ds:focus-visible:border-neutrals-dark","ds:focus-visible:ring-neutrals-black"],true:["ds:bg-neutrals-transparent-light","ds:text-neutrals-dark","ds:border-neutrals-transparent","ds:cursor-not-allowed","ds:focus-visible:border-neutrals-light","ds:focus-visible:ring-neutrals-black"]}},compoundVariants:[{isTransparent:!0,disabled:!1,className:["ds:bg-neutrals-transparent","ds:border-neutrals-transparent"]},{isTransparent:!1,disabled:!1,className:["ds:bg-neutrals-white","ds:border-neutrals-white"]}]}),co=({variant:e="default",label:t="",disabled:n=!1,className:r="",onClick:o,iconName:s,iconSize:l="medium",hasIndicator:a=!1,hasTooltip:c=!0,isTransparent:u=!0,iconColor:d="",stateful:h=!1,...m})=>{const p=h||n;return i.jsxs("button",{onClick:b=>ao(b,p,o),"aria-disabled":p,"aria-label":t,"aria-pressed":h,"aria-live":h?"assertive":"off",className:pr(Rm({variant:e,isTransparent:u,disabled:p}),r),...m,children:[h&&e==="default"?i.jsx(Ur,{size:"medium",focusable:!1,label:t,ariaLive:"off"}):i.jsx($t,{size:e==="small"?"small":l,name:s!=null?s:"edit",hasIndicator:a,className:n?"ds:text-neutrals-dark":d&&d!==""?d:"ds:text-neutrals-black",altText:t}),e==="default"&&c&&i.jsx("div",{"aria-hidden":"true",className:`${p?"ds:group-hover:hidden":"ds:group-hover:block ds:group-active:block"} ds:absolute ds:left-1/2 ds:top-[3.5rem] ds:z-10 ds:hidden ds:-translate-x-1/2 ds:cursor-default ds:text-nowrap ds:rounded ds:bg-neutrals-darker ds:px-2 ds:py-1 ds:text-sm ds:font-normal ds:text-neutrals-white ds:transition-all ds:duration-100 ds:group-focus-visible:block`,children:t})]})},Lm=Be(["preflight","ds:flex","ds:w-full","ds:flex-row","ds:justify-between","ds:rounded","ds:pl-5","ds:pr-[14px]","ds:py-4","ds:font-sans!"],{variants:{variant:{success:["ds:bg-success-green-lightest","ds:text-success-green-darkest"],info:["ds:bg-information-blue-lightest","ds:text-information-blue-darkest"],warning:["ds:bg-warning-yellow-lightest","ds:text-neutrals-darker"],error:["ds:bg-danger-red-lightest","ds:text-danger-red-darkest"]}}}),Dm=e=>rt(Lm(e)),Hm=Be("",{variants:{variant:{success:"ds:text-success-green-dark",info:"ds:text-information-blue-dark",warning:"ds:text-warning-yellow-darkest",error:"ds:text-danger-red-dark"}}}),kl=e=>rt(Hm(e)),_m=Be("",{variants:{variant:{success:["ds:text-success-green-darkest","ds:stroke-success-green-darkest"],info:["ds:text-information-blue-darkest","ds:stroke-information-blue-darkest"],warning:["ds:text-neutrals-darker","ds:stroke-neutrals-darker"],error:["ds:text-danger-red-darkest","ds:stroke-danger-red-darkest"]}}}),kn=e=>rt(_m(e)),_a=({variant:e="info",isDismissible:t=!0,showIcon:n=!0,titleSize:r="large",title:o="",description:s="",content:l=void 0,closeAriaLabel:a="Close button",id:c="alert_"+Oa().toString(),handleClose:u,className:d="",...h})=>{const m={success:i.jsx(ws,{className:kn({variant:e})}),info:i.jsx(Cs,{className:kn({variant:e})}),warning:i.jsx(xs,{className:kn({variant:e})}),error:i.jsx(ys,{className:kn({variant:e})})},p=()=>l!==void 0&&s!==""&&!(r!=="none"||o!==""),b=()=>r==="large"?"ds:flex-col ds:flex ds:gap-3":r==="small"?"ds:flex-row ds:flex ds:gap-3":"ds:flex";return i.jsxs("div",{id:c,className:rt(Dm({variant:e}),d),...h,children:[i.jsxs("div",{className:"ds:flex ds:flex-row",children:[n&&i.jsx("div",{className:`ds:flex ds:pr-2 ${r==="large"&&o!==""&&"ds:h-[1.75rem] ds:items-center"}`,children:m[e]}),i.jsxs("div",{className:`ds:flex ds:flex-col ${r!=="none"&&o!==""?"ds:gap-3":"ds:justify-center"}`,children:[i.jsxs("div",{className:b(),children:[r!=="none"&&o!==""&&i.jsx("h1",{className:r==="large"?"ds:text-xl ds:font-semibold":"ds:hidden",children:o}),i.jsxs("div",{className:kl({variant:e}),children:[r!=="none"&&o!==""&&i.jsx("span",{className:`${kn({variant:e})} ${r==="small"&&o!==""?"ds:pr-2 ds:text-base ds:font-semibold":"ds:hidden"}`,children:o}),i.jsx("span",{className:`${r==="none"||o===""?"ds:mb-3":""}`,children:s})]})]}),l&&i.jsx("div",{className:`${kl({variant:e})} ${p()?"ds:mt-3":""}`,children:l})]})]}),t===!0&&i.jsx("div",{className:"ds:-mt-2 ds:h-5",children:i.jsx(co,{variant:"default",iconSize:"small",iconName:"close",hasTooltip:!1,label:a,disabled:!1,iconColor:kn({variant:e}),onClick:u})})]})},Aa=["preflight","ds:font-sans!","ds:rounded","ds:text-base","ds:font-semibold","ds:border","ds:transition","ds:duration-100","ds:text-nowrap","ds:focus-visible:ring-2","ds:focus-visible:outline-hidden","ds:focus-visible:ring-offset-2"],Am=["ds:bg-neutrals-lighter!","ds:text-neutrals-dark!","ds:border-neutrals-light!","ds:cursor-not-allowed!","ds:hover:bg-neutrals-lighter!","ds:hover:border-neutrals-light!","ds:hover:text-neutrals-dark!","ds:focus-visible:ring-neutrals-black!","ds:focus-visible:border-neutrals-light!"],Vm=[...Aa,"ds:p-1","ds:bg-neutrals-lighter!","ds:text-neutrals-dark!","ds:cursor-not-allowed!","ds:border-neutrals-lighter","ds:focus:border-neutrals-light","ds:focus-visible:ring-neutrals-black","ds:focus-visible:border-neutrals-light!","ds:active:border-neutrals-lighter"],Nm=Be(Aa,{variants:{variant:{primary:["ds:py-3","ds:px-4","ds:text-neutrals-white","ds:bg-acuity-blue","ds:border-acuity-blue","ds:hover:bg-acuity-blue-dark","ds:hover:border-acuity-blue-dark","ds:active:bg-acuity-blue-darkest","ds:active:border-acuity-blue-darkest","ds:active:text-neutrals-white","ds:focus-visible:text-neutrals-black","ds:focus-visible:bg-acuity-blue-light","ds:focus-visible:border-acuity-blue"],secondary:["ds:py-3","ds:px-4","ds:text-neutrals-black","ds:bg-neutrals-white","ds:border-neutrals","ds:hover:bg-neutrals-lighter","ds:hover:border-neutrals-darker","ds:active:bg-neutrals-dark","ds:active:border-neutrals-dark","ds:active:text-neutrals-white","ds:focus-visible:text-neutrals-black","ds:focus-visible:bg-neutrals-lighter","ds:focus-visible:border-neutrals-black","ds:focus-visible:ring-neutrals-black"],danger:["ds:py-3","ds:px-4","ds:text-neutrals-white","ds:bg-danger-red","ds:border-danger-red","ds:hover:bg-danger-red-dark","ds:hover:border-danger-red-dark","ds:active:bg-danger-red-darkest","ds:active:border-danger-red-darkest","ds:active:text-neutrals-white","ds:focus-visible:text-neutrals-black","ds:focus-visible:bg-danger-red-lighter","ds:focus-visible:border-danger-red-darkest"],inline:["ds:p-1","ds:text-neutrals-black","ds:bg-neutrals-white","ds:border-neutrals-white","ds:hover:bg-neutrals-lighter","ds:hover:border-neutrals-lighter","ds:active:bg-neutrals-dark","ds:active:border-neutrals-dark","ds:active:text-neutrals-white","ds:focus-visible:text-neutrals-black","ds:focus-visible:bg-neutrals-lighter","ds:focus-visible:border-neutrals-dark","ds:focus-visible:ring-neutrals-black"]},disabled:{true:Am,false:[]}},compoundVariants:[{variant:"primary",disabled:!1,class:"ds:focus-visible:ring-acuity-blue"},{variant:"danger",disabled:!1,class:"ds:focus-visible:ring-danger-red-darkest"},{variant:["primary","danger"],disabled:!0,class:"ds:focus-visible:ring-neutrals-black"}]}),$m=(e,t,n)=>e==="inline"&&t===!0?pr(Vm):pr(Nm({variant:e,disabled:t}),n),Va=({variant:e="primary",text:t,label:n="",disabled:r=!1,className:o="",onClick:s,iconName:l,iconIndicator:a=!1,leadingIcon:c=!1,trailingIcon:u=!1,stateful:d=!1,...h})=>{const m=d||r;return i.jsx(i.Fragment,{children:i.jsx("button",{"aria-disabled":m,"aria-pressed":d,onClick:p=>ao(p,m,s),className:$m(e,m,o),"aria-label":n,"aria-live":d?"assertive":"off",...h,children:i.jsxs("div",{className:"ds:flex ds:flex-wrap ds:content-center ds:justify-center",children:[c&&(d?i.jsx(Ur,{size:"small",className:"ds:mr-2 ds:self-center",spinnerClassName:"ds:border-t-current ds:border-x-current ds:border-b-transparent",focusable:!1,label:n,ariaLive:"off"}):i.jsx($t,{size:"small",name:l!=null?l:"edit",hasIndicator:a,className:"ds:mr-2 ds:self-center",altText:""})),i.jsx("span",{children:t}),u&&(d?i.jsx(Ur,{size:"small",className:"ds:ml-2 ds:self-center",spinnerClassName:"ds:border-t-current ds:border-x-current ds:border-b-transparent",focusable:!1,ariaLive:"off",label:n}):i.jsx($t,{size:"small",name:l!=null?l:"edit",hasIndicator:a,className:"ds:ml-2 ds:self-center",altText:""}))]})})})},zm=({content:e=void 0,iconName:t=void 0,title:n="",footer:r=void 0,className:o="",...s})=>i.jsxs("div",{...s,className:rt("preflight ds:flex ds:flex-col ds:items-start ds:gap-6 ds:rounded-lg ds:border ds:border-neutrals-light ds:p-5",o),children:[n&&i.jsxs("div",{className:"ds:flex ds:flex-row ds:items-center ds:gap-3",children:[t&&i.jsx($t,{size:"medium",name:t,className:"ds:text-neutrals-darker",hasIndicator:!1,altText:t}),i.jsx(Is,{size:"small",text:n,hasMarginBottom:!1})]}),e&&i.jsx("div",{className:"ds:w-full ds:text-base",children:e}),r&&i.jsx("div",{children:r})]}),Gm=Be(["preflight","ds:h-4","ds:w-4","ds:focus:ring-acuity-blue","ds:border-neutrals","ds:border","ds:border-solid"],{variants:{disabled:{false:["ds:text-acuity-blue","ds:bg-neutrals-white","ds:hover:border-acuity-blue","ds:hover:bg-acuity-blue-lightest","ds:hover:text-acuity-blue-dark","ds:active:border-acuity-blue-darkest","ds:active:bg-acuity-blue-darkest","ds:active:text-acuity-blue-darkest","ds:cursor-pointer"],true:["ds:text-neutrals","ds:bg-neutrals-lighter"]}}}),Na=e=>rt(Gm(e)),Bm=Be(["preflight","ds:font-sans!","ds:ml-2","ds:text-base"],{variants:{disabled:{false:"ds:cursor-pointer",true:"ds:text-neutrals"}}}),$a=e=>rt(Bm(e)),ks={variants:{state:{default:["ds:border-neutrals","ds:text-neutrals-darker","ds:focus:border-acuity-blue","ds:focus:ring-acuity-blue","ds:focus:ring-offset-2","ds:focus:ring-2"],error:["ds:border-danger-red","ds:text-danger-red-darkest","ds:focus:border-danger-red","ds:focus:ring-danger-red-dark","ds:focus:ring-offset-2","ds:focus:ring-2"],success:["ds:border-success-green","ds:text-neutrals-darker","ds:focus:border-success-green","ds:focus:ring-success-green-dark","ds:focus:ring-offset-2","ds:focus:ring-2"]},disabled:{true:["ds:border-neutrals!","ds:text-neutrals-darker!","ds:bg-neutrals-lighter!","ds:focus:border-neutrals!","ds:focus:ring-neutrals-dark!","ds:cursor-not-allowed"]}}},Wm=({id:e,label:t="",name:n="",checked:r=!1,disabled:o=!1,indeterminate:s=!1,onChange:l=()=>{},onClick:a=()=>{},...c})=>{const u=c["aria-label"]||t||"checkbox_"+e;return i.jsxs("div",{className:"ds:flex",children:[i.jsx("input",{id:e,name:n,"aria-label":u,"aria-disabled":o,type:"checkbox",className:`ds:form-checkbox ds:mt-1 ${Na({disabled:o})} ds:rounded`,checked:r,ref:d=>{d&&(d.indeterminate=s)},onClick:d=>ao(d,o,a),onChange:d=>Ha(d,o,l),...c}),t&&i.jsx("label",{htmlFor:e,className:$a({disabled:o}),children:t})]})},qm=e=>["Zero","One","Two","Three","Four","Five","Six","Seven","Eight","Nine"][e]||e.toString(),Um=({children:e,className:t="",onClick:n,successTitle:r,successDescription:o,errorTitle:s,buttonText:l,...a})=>{const c="formValidation_"+Oa().toString(),[u,d]=se.useState(!1),[h,m]=se.useState(!1),[p,b]=se.useState(""),[x,w]=se.useState(!0),[k,v]=se.useState(""),[F,j]=se.useState("success"),y=32,A=se.useMemo(()=>g.default.Children.toArray(e).filter(O=>g.default.isValidElement(O)),[e]),N=O=>{n(O),w(!1),m(!0),R(c)},M=O=>D=>{O&&O(D),x||d(!0)},P=g.default.Children.map(e,O=>{if(g.default.isValidElement(O)){const V=O;return g.default.cloneElement(V,{onBlur:M(V.props.onBlur)})}return O}),R=se.useCallback(O=>{const D=document.getElementById(O);if(D){const V=D.getBoundingClientRect().top+window.scrollY;window.scrollTo({top:V-y,behavior:"smooth"})}},[y]),_=se.useCallback(O=>{s?v(s):O==1?v("An error was found in the information you submitted"):v(`${qm(O)} errors were found in the information you submitted`)},[s]);return se.useEffect(()=>{if(u||h){const O=A.filter(D=>D.props.state=="error");O.length==0?u?w(!0):(j("success"),b(o),v(r)):u&&F=="success"?w(!0):(j("error"),b(i.jsx("ul",{children:O.map((D,V)=>i.jsx("li",{children:i.jsxs("span",{onClick:()=>R("label_"+D.props.id),children:[O.length>1?`${V+1}. `:"",D.props.message]})},D.props.id))})),_(O.length)),d(!1),m(!1)}},[A,R,_,o,r,u,h,F]),i.jsxs("div",{className:`prelight ${t}`,id:c,...a,children:[!x&&i.jsx("div",{className:"preflight ds:mb-6 ds:rounded",children:i.jsx(_a,{description:p,isDismissible:F=="success",title:k,titleSize:F=="success"?"small":"large",variant:F,handleClose:()=>{w(!0)}})}),P,i.jsx(Va,{text:l,onClick:N})]})},yn="large",Bn="medium",Wn="small",qn="extra-large",Il="h1",Km="h2",Xm="h3",Ym="div";function Zm(e){return{[yn]:Il,[Bn]:Km,[Wn]:Xm,[qn]:Ym}[e]||Il}const Qm=Be("preflight ds:font-sans!",{variants:{size:{[Wn]:"ds:mb-3",[Bn]:"ds:mb-5",[yn]:"ds:mb-5",[qn]:"ds:mb-6"}}}),Dr=Be("ds:text-neutrals-darker ds:font-sans!",{variants:{size:{[Wn]:"ds:text-xl ds:font-semibold",[Bn]:"ds:text-2xl ds:font-semibold",[yn]:"ds:text-3xl ds:font-bold",[qn]:"ds:text-4xl ds:font-semibold"}}}),Jm=Be("ds:mt-0 ds:font-bold ds:text-neutrals-dark",{variants:{size:{[Wn]:"ds:mb-1 ds:text-sm",[Bn]:"ds:mb-2 ds:text-sm",[yn]:"ds:mb-2 ds:text-base",[qn]:"ds:mb-3 ds:text-base"}}}),ep=Be("ds:mb-0 ds:text-neutrals-dark",{variants:{size:{[Wn]:"ds:mt-1 ds:text-base",[Bn]:"ds:mt-2 ds:text-base",[yn]:"ds:mt-2 ds:text-base",[qn]:"ds:mt-3 ds:text-base"}}}),tp=Be("ds:text-neutrals-light",{variants:{size:{[Wn]:"ds:mt-2",[Bn]:"ds:mt-2",[yn]:"ds:mt-2",[qn]:"ds:mt-3"}}}),Is=({size:e=yn,className:t="",text:n="",descriptionTop:r="",descriptionBottom:o="",hasHorizontalRule:s=!1,hasMarginBottom:l=!0,headingTag:a,...c})=>{const u=r?i.jsx("p",{className:Jm({size:e}),children:r}):null,d=o?i.jsx("p",{className:ep({size:e}),children:o}):null,h=s?i.jsx("hr",{className:tp({size:e})}):null,m=l?Qm({size:e}):"preflight",p={div:i.jsx("div",{className:Dr({size:e}),children:n}),h3:i.jsx("h3",{className:Dr({size:e}),children:n}),h2:i.jsx("h2",{className:Dr({size:e}),children:n}),h1:i.jsx("h1",{className:Dr({size:e}),children:n})};return i.jsxs("div",{className:rt(m,t),...c,children:[u,p[a||Zm(e)],d,h]})},np=({label:e="",name:t,id:n,disabled:r=!1,onChange:o=()=>{},onClick:s=()=>{},...l})=>i.jsxs("div",{className:"ds:flex ds:h-4 ds:items-center",children:[i.jsx("input",{id:n,name:t,type:"radio",className:`ds:form-radio ${Na({disabled:r})}`,"aria-disabled":r,onChange:a=>Ha(a,r,o),onClick:a=>ao(a,r,s),...l}),i.jsx("label",{htmlFor:n,className:$a({disabled:r}),children:e})]}),rp=Be(["preflight","ds:font-sans!","ds:inline-flex","ds:items-center","ds:gap-1","ds:cursor-pointer","ds:text-acuity-blue","ds:active:text-acuity-blue-darkest","ds:focus-visible:outline-hidden","ds:focus-visible:border-2","ds:focus-visible:rounded","ds:focus-visible:border-acuity-blue","ds:focus-visible:px-[2px]","ds:focus-visible:py-[2px]","ds:focus-visible:-mx-[4px]","ds:focus-visible:-my-[4px]"],{variants:{type:{default:["ds:font-bold","ds:hover:underline"],inline:["ds:underline","ds:hover:no-underline","ds:active:no-underline","ds:visited:text-[#551A8B]"]}}}),op=({text:e,href:t,type:n="default",iconName:r,...o})=>i.jsxs("a",{href:t,type:n,className:rt(rp({type:n})),...o,children:[e,r&&i.jsx($t,{altText:e,name:r,size:"small"})]}),sp=({open:e=!1,onClose:t,title:n="",backdrop:r="static",content:o,footer:s,icon:l=!1,iconComponent:a,iconName:c=void 0,dismissible:u=!0,horizontalRule:d=!0})=>{const h=()=>a?i.jsx(i.Fragment,{children:a}):l&&c?i.jsx($t,{name:c,size:"medium"}):null,m=()=>r==="dismissible"?t():!0;return i.jsx(Sn.Transition,{appear:!0,show:e,as:se.Fragment,children:i.jsxs(Sn.Dialog,{as:"div",onClose:m,static:!0,className:"preflight ds:relative ds:z-20 ds:focus:outline-hidden",children:[r!=="none"&&i.jsx(Sn.TransitionChild,{as:se.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:i.jsx("div",{className:"ds:fixed ds:inset-0 ds:bg-neutrals-transparent-medium ds:transition-opacity","aria-hidden":"true"})}),i.jsx("div",{className:"ds:fixed ds:inset-0 ds:z-20 ds:w-screen ds:overflow-y-auto",children:i.jsx("div",{className:"ds:flex ds:min-h-full ds:items-center ds:justify-center ds:p-4",children:i.jsx(Sn.TransitionChild,{as:se.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",enterTo:"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 translate-y-0 sm:scale-100",leaveTo:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",children:i.jsxs(Sn.DialogPanel,{className:"ds:flex ds:max-h-[90vh] ds:min-w-full ds:max-w-full ds:transform ds:flex-col ds:rounded-lg ds:bg-neutrals-white ds:text-left ds:shadow-modal ds:sm:min-w-[15rem] ds:sm:max-w-[55%]",children:[i.jsxs("div",{className:`ds:flex ds:items-center ds:py-4 ${u?"ds:pl-5 ds:pr-3":"ds:px-5"}`,children:[l&&i.jsx("div",{className:"ds:mr-3",children:h()}),i.jsx(Sn.DialogTitle,{as:"div",className:"ds:flex-grow",children:i.jsx(Is,{text:n,headingTag:"h2",size:"medium",hasMarginBottom:!1})}),u&&i.jsx(co,{variant:"default",iconSize:"small",iconName:"close",hasTooltip:!1,label:"Close",disabled:!1,onClick:()=>t()})]}),d&&i.jsx("hr",{className:"ds:border-neutrals-light"}),o&&i.jsx("div",{className:`ds:h-auto ds:max-h-[48.6rem] ds:grow ds:overflow-y-auto ds:px-5 ${s?"ds:py-4":"ds:pb-5 ds:pt-4"}`,children:o}),s&&i.jsx("div",{className:"ds:flex ds:justify-end ds:gap-x-4 ds:px-5 ds:py-4",children:s})]})})})})]})})},lp=Be(["preflight","ds:rounded-xl","ds:border","ds:px-2","ds:py-1","ds:inline-flex","ds:items-center"],{variants:{color:{default:["ds:border-neutrals-light"],gray:["ds:bg-neutrals-lighter","ds:border-neutrals-lighter"],blue:["ds:bg-information-blue-lightest","ds:text-information-blue-darkest","ds:border-information-blue-lightest"],green:["ds:bg-success-green-lightest","ds:text-success-green-darkest","ds:border-success-green-lightest"],yellow:["ds:bg-warning-yellow-lightest","ds:text-warning-yellow-darkest","ds:border-warning-yellow-lightest"],red:["ds:bg-danger-red-lightest","ds:text-danger-red-darkest","ds:border-danger-red-lightest"]},type:{regular:["ds:text-base"],small:["ds:text-sm"]}}}),za=({label:e,type:t="regular",color:n="default",dismissible:r=!1,dismissLabel:o="",className:s="",onDismiss:l,...a})=>{const c=a["aria-label"]||e;return i.jsxs("div",{className:rt(lp({color:n,type:t}),s),"aria-label":c,...a,children:[i.jsx("div",{className:"ds:max-w-[200px] ds:truncate ds:leading-6",children:e}),r&&i.jsx(co,{variant:"small",iconName:"close",label:o||"dismiss",disabled:!1,onClick:()=>l&&l(),className:"ds:ms-1",isTransparent:!0})]})},ip=Be(["preflight","ds:transition","ds:duration-100","ds:text-nowrap","ds:font-sans!","ds:text-base","ds:p-2","ds:active:text-neutrals-white","ds:focus-visible:ring-neutrals-black","ds:focus-visible:ring-2","ds:focus-visible:outline-hidden","ds:focus-visible:ring-offset-2"],{variants:{isNested:{true:["ds:rounded-xl","ds:my-2","ds:mx-1","ds:border","ds:border-neutrals-lighter","ds:hover:bg-neutrals-light","ds:active:bg-neutrals-dark","ds:focus-visible:ring-neutrals-black","ds:focus-visible:ring-2","ds:focus-visible:outline-hidden","ds:focus-visible:ring-offset-2","ds:focus-visible:bg-neutrals-white"],false:["ds:rounded","ds:rounded-b-none","ds:border-b-2","ds:border-b-neutrals-white","ds:my-1","ds:mr-2","ds:hover:bg-acuity-green-lighter","ds:hover:border-b-acuity-green-lighter","ds:active:bg-acuity-green-darkest","ds:active:border-b-acuity-green-darkest","ds:focus-visible:bg-acuity-green-lightest","ds:focus-visible:border-b-acuity-green-lightest"]}}}),ap=({title:e,id:t,handleClick:n,isActive:r,isNested:o=!1,badgeText:s="",className:l="",...a})=>{const c=(u,d,h)=>rt(ip({isNested:u}),d&&!u&&"ds:border-b-acuity-green!",d&&u&&"ds:bg-neutrals-white ds:border-neutrals!",h);return i.jsxs("button",{className:c(o,r,l),role:"tab",id:`tab-${t}`,"aria-controls":`panel-${t}`,"aria-selected":r,onClick:n,...a,children:[e,s&&i.jsx(za,{label:s,className:"ds:ml-2 ds:h-5 ds:bg-neutrals-white ds:text-neutrals-black"})]})},cp=({id:e,children:t,hidden:n})=>i.jsx("div",{role:"tabpanel",id:`panel-${e}`,"aria-labelledby":`tab-${e}`,hidden:n,className:"preflight",children:t}),up=({children:e,handleTabChange:t,activeTabIndex:n,isNested:r,className:o="",...s})=>{const l=g.default.Children.toArray(e).filter(a=>{var c,u;return g.default.isValidElement(a)&&!!((c=a.props)!=null&&c.id)&&!!((u=a.props)!=null&&u.title)});return l.length<g.default.Children.toArray(e).length&&console.error("You can only pass <Tab> components with defined id and title as children of the <Tabs> component."),i.jsxs("div",{className:`preflight ${o}`,...s,children:[i.jsx("div",{role:"tablist",className:`preflight ds:mb-5 ds:rounded ${r&&"ds:mb-4! ds:bg-neutrals-lighter ds:px-2"}`,children:l.map((a,c)=>i.jsx(ap,{handleClick:()=>t(c),isActive:n===c,badgeText:a.props.badgeText,isNested:r,...a.props},`tab-${c}`))}),l.map((a,c)=>i.jsx(cp,{id:a.props.id,hidden:n!==c,children:a.props.children},`panel-${c}`))]})},dp=({children:e})=>e,fp=Be(["preflight","ds:font-sans!","ds:text-base","ds:cursor-pointer","ds:w-[fit-content]"],{variants:{state:{default:["ds:text-neutrals-black"],error:["ds:text-danger-red-darkest"],success:["ds:text-success-green-darkest"]},disabled:{true:"ds:text-neutrals-dark!"}}}),hp=e=>rt(fp(e)),Ga=({id:e,state:t="default",disabled:n=!1,htmlFor:r,value:o="",optionalityLabel:s=""})=>i.jsxs("label",{id:e,htmlFor:r,className:hp({state:t,disabled:n}),children:[o,s&&i.jsx("span",{className:"ds:text-sm ds:text-neutrals-darker",children:` (${s})`})]}),gp=Be(["preflight","group","ds:flex","ds:flex-col","ds:container"],{variants:{state:{default:["ds:focus-within:[&>label]:text-acuity-blue"],error:["ds:focus-within:[&>label]:text-danger-red-darkest"],success:["ds:focus-within:[&>label]:text-success-green-darkest"]},hasMarginBottom:{true:""}},compoundVariants:[{state:"default",hasMarginBottom:!0,className:["ds:mb-6"]}]}),mp=e=>rt(gp(e)),pp=Be(["ds:font-sans!","ds:text-base"],{variants:{state:{default:["ds:text-neutrals-black","ds:mt-2"],error:["ds:text-danger-red","ds:mt-2"],success:["ds:text-success-green-dark","ds:truncate","ds:text-sm","ds:mt-1"]},hasMarginBottom:{true:["ds:mb-6"],false:["ds:mb-0"]},disabled:{true:"ds:text-neutrals-dark!"}}}),bp=e=>rt(pp(e)),Ms=({id:e,state:t="default",disabled:n=!1,label:r="",optionalityLabel:o="",helpText:s=[],message:l="",child:a,isTextarea:c=!1,className:u="",hasMarginBottom:d=!0})=>{let h=null;switch(t){case"error":h={name:"error",color:"ds:text-danger-red"};break;case"success":h={name:"checkCircle",color:"ds:text-success-green"};break}const m=r?"label_"+e:void 0,p=s&&s.length>0?"helptext_"+e:void 0;return i.jsxs("div",{className:rt(mp({state:t,hasMarginBottom:d}),u),children:[r&&i.jsx(Ga,{id:m,htmlFor:e,value:r,optionalityLabel:o,disabled:n}),s&&s.length>1&&i.jsx("ul",{id:p,className:"ds:mt-2 ds:pb-1 ds:pl-6",children:s==null?void 0:s.map((b,x)=>i.jsx("li",{className:"ds:list-disc ds:text-neutrals-dark",children:b},x))}),s&&s.length===1&&i.jsx("p",{id:p,className:"ds:mt-2 ds:pb-1 ds:text-neutrals-dark",children:s}),i.jsxs("div",{className:"ds:mt-2 ds:flex ds:gap-2",children:[i.jsx("div",{className:c?"":"ds:w-[calc(100%-2rem)]",children:a}),i.jsx("div",{className:"ds:pt-2",children:h&&i.jsx($t,{name:h.name,size:"medium",className:h.color,role:"graphics-symbol"})})]}),h&&i.jsx("p",{className:bp({state:t,hasMarginBottom:d}),children:l})]})},Cp=Be(["preflight","ds:form-input","ds:rounded","ds:p-2","ds:border!","ds:font-sans!"],ks),wp=e=>rt(Cp(e)),Ba=({state:e="default",rows:t=2,cols:n=50,isResizable:r=!0,disabled:o=!1,...s})=>i.jsx("textarea",{"aria-invalid":e=="error",rows:t,cols:n,readOnly:o,className:wp({disabled:o,state:e}),style:{resize:r?"both":"none"},...s}),xp=({id:e,state:t="default",label:n,rows:r=2,cols:o=50,isResizable:s=!0,optionalityLabel:l="",helpText:a=[],message:c="",disabled:u=!1,className:d="",hasMarginBottom:h=!0,onBlur:m,...p})=>i.jsx(Ms,{id:e,state:t,disabled:u,label:n,optionalityLabel:l,helpText:a,message:c,isTextarea:!0,className:d,hasMarginBottom:h,child:i.jsx(Ba,{id:e,"aria-labelledby":n?"label_"+e:void 0,"aria-describedby":a&&a.length>0?"helptext_"+e:void 0,state:t,rows:r,cols:o,isResizable:s,disabled:u,onBlur:m,...p})}),yp=Be(["preflight","ds:form-input","ds:h-[40px]","ds:rounded","ds:p-2","ds:border!","ds:font-sans!","ds:container"],ks),vp=e=>rt(yp(e)),Wa=se.forwardRef(({state:e="default",disabled:t=!1,type:n="text",...r},o)=>i.jsx("input",{"aria-disabled":t,readOnly:t,type:n,className:vp({disabled:t,state:e}),ref:o,...r})),Sp=se.forwardRef(({id:e,state:t="default",disabled:n=!1,type:r="text",label:o,optionalityLabel:s="",helpText:l=[],message:a="",className:c="",hasMarginBottom:u=!0,onBlur:d,...h},m)=>i.jsx(Ms,{id:e,state:t,disabled:n,label:o,optionalityLabel:s,helpText:l,message:a,className:c,hasMarginBottom:u,child:i.jsx(Wa,{id:e,"aria-labelledby":o?"label_"+e:void 0,"aria-describedby":l&&l.length>0?"helptext_"+e:void 0,type:r,state:t,disabled:n,ref:m,onBlur:d,...h})})),kp=Be(["preflight","ds:form-select","ds:h-[40px]","ds:rounded","ds:p-2","ds:border!","ds:font-sans!","ds:container","ds:bg-[center_right_0.25rem]"],ks),Ip=e=>kp(e),Mp=`url('data:image/svg+xml,<svg width="16" height="16" viewBox="5 -5 15 35" fill="none" xmlns="http://www.w3.org/2000/svg" stroke="%23949494" ><path d="M21.375 8.09253L12.4417 17.025C12.3837 17.0831 12.3148 17.1291 12.2391 17.1605C12.1632 17.192 12.082 17.2082 12 17.2082C11.918 17.2082 11.8368 17.192 11.7609 17.1605C11.6852 17.1291 11.6163 17.0831 11.5583 17.025L2.625 8.09253" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" stroke="%23000000" /></svg>')`,qa=se.forwardRef(({state:e="default",disabled:t=!1,className:n="",...r},o)=>{const{onClick:s,onKeyDown:l,onMouseDown:a,...c}=r;return i.jsx("select",{ref:o,"aria-disabled":t,style:{backgroundImage:Mp},className:rt(Ip({disabled:t,state:e}),n),onClick:u=>Fm(u,t,s!=null?s:(()=>{})),onKeyDown:u=>jm(u,t,l!=null?l:(()=>{})),onMouseDown:u=>Om(u,t,a!=null?a:(()=>{})),...c,children:r.children})}),Ep=se.forwardRef(({id:e,state:t="default",disabled:n=!1,label:r,optionalityLabel:o="",helpText:s=[],message:l="",className:a="",hasMarginBottom:c=!0,onBlur:u,...d},h)=>i.jsx(Ms,{id:e,state:t,disabled:n,label:r,optionalityLabel:o,helpText:s,message:l,className:a,hasMarginBottom:c,child:i.jsx(qa,{id:e,"aria-labelledby":r?"label_"+e:void 0,"aria-describedby":s&&s.length>0?"helptext_"+e:void 0,state:t,disabled:n,onBlur:u,ref:h,...d})})),Pp=Be("ds:overflow-hidden ds:bg-neutrals-light",{variants:{size:{small:["ds:h-2","ds:rounded-sm"],large:["ds:h-4","ds:rounded"]}}}),Tp=Be("",{variants:{size:{small:["ds:h-2","ds:rounded-sm"],large:["ds:h-4","ds:rounded"]},state:{"in-progress":["ds:bg-acuity-blue"],error:["ds:bg-danger-red-dark"],success:["ds:bg-success-green"],indeterminate:["ds:bg-acuity-blue","ds:animate-progress"]}}}),Fp=Be("ds:w-[3rem] ds:justify-end ds:flex ds:items-center ds:text-neutrals-dark",{variants:{size:{small:"ds:text-sm",large:""}}}),jp=Be("ds:text-sm",{variants:{state:{error:"ds:text-danger-red",success:"ds:text-neutrals-dark",indeterminate:"ds:text-neutrals-dark","in-progress":"ds:text-neutrals-dark"}}}),Op=({size:e="large",label:t="",helperMessage:n="",className:r="",state:o="indeterminate",maxValue:s=100,value:l=0,hideIcon:a=!1,...c})=>{const u=()=>{let m=Math.round(l/s*100);return m<0?m=0:m>100&&(m=100),o!=="in-progress"?"100%":`${m}%`},d=()=>{if(a)return null;switch(o){case"in-progress":return u();case"error":return i.jsx($t,{name:"error",size:e==="small"?"small":"medium",className:"ds:float-right ds:text-danger-red-dark",role:"graphics-symbol",filled:!0});case"success":return i.jsx($t,{name:"checkCircle",size:e==="small"?"small":"medium",className:"ds:float-right ds:text-success-green-dark",role:"graphics-symbol",filled:!0});case"indeterminate":default:return null}},h=()=>o==="in-progress"||o==="indeterminate"?i.jsxs("div",{className:"ds:ml-1 ds:mt-2 ds:flex ds:w-[15px] ds:items-center ds:space-x-[2px]",children:[i.jsx("div",{className:"ds:h-[3px] ds:w-[3px] ds:animate-blink ds:rounded-full ds:bg-neutrals-black [animation-delay:-0.2s]"}),i.jsx("div",{className:"ds:h-[3px] ds:w-[3px] ds:animate-blink ds:rounded-full ds:bg-neutrals-black [animation-delay:-0.15s]"}),i.jsx("div",{className:"ds:h-[3px] ds:w-[3px] ds:animate-blink ds:rounded-full ds:bg-neutrals-black"})]}):null;return i.jsxs("div",{className:rt("preflight ds:min-w-[4.875rem]",r),...c,children:[i.jsxs("div",{className:"ds:flex ds:h-5 ds:items-center ds:justify-between",children:[i.jsxs("div",{className:"progress-bar-label ds:flex ds:max-w-[calc(100%-3rem)] ds:overflow-hidden",children:[i.jsx("p",{className:"ds:overflow-hidden ds:text-nowrap",children:t}),h()]}),i.jsx("div",{"aria-hidden":!0,className:Fp({size:e}),children:d()})]}),i.jsx("div",{role:"progressbar",className:"ds:mb-1 ds:mt-1","aria-label":t,"aria-valuemin":0,"aria-valuenow":l,"aria-valuemax":s,"aria-valuetext":u(),children:i.jsx("div",{className:Pp({size:e}),children:i.jsx("div",{style:{width:u()},className:Tp({size:e,state:o})})})}),i.jsx("p",{className:jp({state:o}),children:n})]})},Rp=({text:e,onClick:t})=>i.jsx("div",{className:"bg-neutral-lighter/30 flex w-full items-center rounded-xl px-4 py-2",children:i.jsx("div",{className:"ml-5",children:i.jsxs(B.ButtonBase,{className:"focus-visible:outline-primary flex items-center rounded focus-visible:outline-2 focus-visible:outline-offset-2",onClick:t,children:[i.jsx(B.Box,{component:"span",className:"flex h-8 w-8 items-center justify-center rounded-md",sx:{bgcolor:"primary.main",color:"primary.contrastText"},children:i.jsx(la.default,{})}),i.jsx("span",{className:"text-primary ml-5 text-sm font-bold select-none hover:underline",children:e})]})})}),Ml=6,Lp=({defaultValue:e="",inputLabel:t,isLoading:n,label:r,labelCancel:o="Cancel",labelSubmit:s="Add",placeholder:l,selectDefaultValue:a,selectOptions:c=[],showInput:u,withInput:d,withSelect:h,onCancel:m,onClick:p,onSelectChange:b,onSubmit:x,"data-testid":w})=>{const[k,v]=se.useState(!!u),[F,j]=se.useState(),[y,A]=se.useState(e),[N,M]=se.useState(a),P=se.useId(),R=()=>{v(!1),m==null||m()},_=()=>{d?v(!0):p==null||p()},O=V=>{if(V.preventDefault(),y.trim().length<Ml){j(`Must be at least ${Ml} characters`);return}j(void 0),x==null||x(y,N).then(()=>v(!1))},D=V=>{M(V),b==null||b(V)};return i.jsx("div",{className:"bg-neutral-lighter/40 flex w-full items-center rounded-xl px-8",children:k?i.jsxs("form",{className:"flex w-full py-2",onSubmit:O,children:[i.jsxs("div",{className:"flex w-full",children:[i.jsx("label",{className:"sr-only",htmlFor:P,children:t||l}),i.jsx(B.TextField,{autoFocus:!0,className:"w-1/2 rounded-xl bg-white",error:!!F,helperText:F,id:P,placeholder:l,size:"small",value:y,variant:"outlined",onChange:V=>A(V.target.value)}),h&&i.jsx(B.Select,{className:"ml-4 bg-white",size:"small",value:N,onChange:V=>D(V.target.value),children:c.map(V=>i.jsx(B.MenuItem,{value:V.value,children:V.label},String(V.value)))})]}),i.jsxs("div",{className:"flex gap-2 py-2",children:[i.jsx(B.Button,{className:"h-min",color:"primary",loading:n,type:"submit",variant:"contained",children:s}),i.jsx(B.Button,{className:"h-min",color:"primary",type:"button",variant:"outlined",onClick:R,children:o})]})]}):i.jsxs("button",{className:"flex cursor-pointer items-center border-none bg-transparent py-4","data-testid":w,style:{fontFamily:"inherit"},type:"button",onClick:_,children:[i.jsx("span",{"aria-hidden":"true",className:"bg-primary hover:bg-primary-dark flex h-8 w-8 items-center justify-center rounded-md text-white shadow-sm transition-colors",children:i.jsx(la.default,{})}),r&&i.jsx("span",{className:"text-primary ml-4 text-sm font-bold select-none hover:underline",children:r})]})})},Dp=({accept:e,description:t,buttonLabel:n,onFileDrop:r})=>{const o=se.useId(),[s,l]=se.useState(!1),a=se.useCallback(h=>{var b;if(e.includes("image/*")&&h.type.startsWith("image/")||e.includes("video/*")&&h.type.startsWith("video/")||e.includes("application/pdf")&&h.type==="application/pdf")return!0;const m=e.split(",").map(x=>x.trim().toLowerCase()),p=`.${(b=h.name.split(".").pop())==null?void 0:b.toLowerCase()}`;return m.includes(p)},[e]),c=se.useCallback(h=>{h.preventDefault(),h.stopPropagation(),l(h.type==="dragenter"||h.type==="dragover")},[]),u=se.useCallback(h=>{var p;h.preventDefault(),h.stopPropagation(),l(!1);const m=(p=h.dataTransfer.files)==null?void 0:p[0];m&&a(m)&&r(m)},[r,a]),d=h=>{var p;const m=(p=h.target.files)==null?void 0:p[0];m&&a(m)&&(r(m),h.target.value="")};return i.jsxs(B.Box,{sx:{aspectRatio:"2 / 1",border:"2px dashed",borderColor:s?"primary.main":"#D9D9D9",borderRadius:2,display:"flex",alignItems:"center",justifyContent:"center",textAlign:"center",cursor:"pointer",transition:h=>h.transitions.create("all",{duration:h.transitions.duration.standard}),userSelect:"none"},onDragEnter:c,onDragLeave:c,onDragOver:c,onDrop:u,children:[i.jsx("input",{accept:e,id:o,style:{display:"none"},type:"file",onChange:d}),i.jsxs(B.Box,{component:"label",htmlFor:o,sx:{width:"100%",height:"100%",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",cursor:"pointer"},children:[i.jsx(B.Box,{sx:{width:36,height:36,display:"flex",alignItems:"center",justifyContent:"center",border:"1px solid rgba(51, 51, 51, 0.10)",borderRadius:1,mb:5},children:i.jsx(gh.default,{})}),i.jsx(B.Typography,{sx:{color:"text.secondary",mb:5},variant:"body2",children:t}),i.jsx(B.Button,{component:"span",sx:{minWidth:100,borderRadius:"1rem",fontSize:"1rem",fontWeight:700},variant:"contained",onKeyDown:h=>{var m;(h.key==="Enter"||h.key===" ")&&(h.preventDefault(),(m=document.getElementById(o))==null||m.click())},children:n})]})]})},Hp=({isOpen:e,severity:t,title:n,message:r,onClose:o})=>e?i.jsxs(B.Alert,{severity:t,onClose:o,children:[i.jsx(B.Typography,{sx:{mt:"-2px",fontSize:"1rem",fontWeight:700},children:n}),i.jsx(B.Typography,{sx:{mt:1,fontSize:"0.875rem"},children:r})]}):null,Es=se.createContext(null),Ua=()=>se.useContext(Es),Ka=({children:e,isOpen:t,onClose:n})=>{const r=ge.useTheme(),o=Ua(),s=se.useRef(null);return i.jsxs(i.Fragment,{children:[i.jsx(B.Backdrop,{open:t,sx:{position:"absolute",inset:0,backgroundColor:"rgba(0,0,0,0.25)",pointerEvents:t?"auto":"none",zIndex:r.zIndex.drawer},onClick:n}),i.jsx(B.Slide,{mountOnEnter:!0,unmountOnExit:!0,container:o?l=>{var a;return(a=o.current)!=null?a:l}:void 0,direction:"right",in:t,children:i.jsx(B.Paper,{"aria-modal":"true",elevation:8,role:"dialog",sx:{position:"absolute",left:0,top:0,bottom:0,width:"300px",borderRadius:0,display:"flex",flexDirection:"column",zIndex:r.zIndex.drawer+1},children:i.jsx(B.Box,{ref:s,sx:{overflow:"auto",flex:1},children:i.jsx(B.Box,{sx:{display:"flex",flexDirection:"column",height:"100%",pt:"1rem",pr:1.5,pl:2},children:e})})})})]})},_p=256,Ap=({children:e,navigationSlot:t,logoSlot:n,mobileLogoSlot:r,headerSlot:o,sideDrawerSlot:s,sideDrawerWidth:l=400,isSideDrawerOpen:a=!1,backgroundColor:c})=>{var b,x,w,k;const u=ge.useTheme(),[d,h]=se.useState(!1),m=se.useRef(null);return B.useMediaQuery(u.breakpoints.up("md"))&&d&&h(!1),i.jsxs(B.Box,{sx:{height:"100vh",maxHeight:"100vh",display:"flex",flexDirection:"row",padding:"1rem 1rem 1rem 0",overflow:"hidden",bgcolor:(x=c!=null?c:(b=u.palette.neutral)==null?void 0:b.lighter)!=null?x:"#F5F5F5",transition:u.transitions.create("margin-right",{easing:u.transitions.easing.sharp,duration:a?u.transitions.duration.enteringScreen:u.transitions.duration.leavingScreen}),marginRight:a?`${l}px`:0,[u.breakpoints.down("sm")]:{padding:0,marginRight:0}},children:[i.jsxs(B.Box,{component:"nav","aria-label":"Main navigation",sx:{width:`${_p}px`,flexShrink:0,display:"flex",flexDirection:"column",px:2,py:"1rem",[u.breakpoints.down("md")]:{display:"none"}},children:[n&&i.jsx(B.Box,{sx:{mb:2},children:n}),t]}),i.jsxs(B.Box,{sx:{flex:1,display:"flex",flexDirection:"column",borderRadius:"8px",overflow:"hidden",bgcolor:(k=(w=u.palette.common)==null?void 0:w.white)!=null?k:"#FFFFFF"},children:[i.jsx(B.AppBar,{color:"transparent",elevation:0,position:"static",sx:{display:"none",[u.breakpoints.down("md")]:{display:"flex"}},children:i.jsxs(B.Toolbar,{variant:"dense",sx:{justifyContent:"space-between",px:{xs:"15px",sm:"1rem"}},children:[i.jsxs(B.Box,{sx:{display:"flex",alignItems:"center",gap:1},children:[i.jsx(B.IconButton,{"aria-label":"Open navigation menu",size:"small",onClick:()=>h(!0),children:i.jsx(mh.default,{})}),r]}),o&&i.jsx(B.Box,{sx:{display:"flex",alignItems:"center",gap:1},children:o})]})}),i.jsx(B.AppBar,{color:"transparent",elevation:0,position:"static",sx:{[u.breakpoints.down("md")]:{display:"none"}},children:i.jsx(B.Toolbar,{variant:"dense",sx:{justifyContent:"flex-end",px:"2em"},children:o&&i.jsx(B.Box,{sx:{display:"flex",alignItems:"center",gap:1},children:o})})}),i.jsx(Es.Provider,{value:m,children:i.jsxs(B.Box,{ref:m,sx:{flex:1,overflow:"auto",position:"relative"},children:[i.jsxs(Ka,{isOpen:d,onClose:()=>h(!1),children:[r&&i.jsx(B.Box,{sx:{mb:2},children:r}),t]}),e]})})]}),s]})},Ps=g.createContext(void 0);process.env.NODE_ENV!=="production"&&(Ps.displayName="GridApiContext");function ke(){const e=g.useContext(Ps);if(e===void 0)throw new Error(["MUI X: Could not find the Data Grid context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the Data Grid."].join(`
2
- `));return e}const Ts=g.createContext(void 0);process.env.NODE_ENV!=="production"&&(Ts.displayName="GridRootPropsContext");const ue=()=>{const e=g.useContext(Ts);if(!e)throw new Error("MUI X: useGridRootProps should only be used inside the DataGrid, DataGridPro or DataGridPremium component.");return e};function C(){return C=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},C.apply(null,arguments)}function Xa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Hr={exports:{}},_r={exports:{}},Ne={};/** @license React v16.13.1
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./assets/index.css');const i=require("react/jsx-runtime"),re=require("react"),Sn=require("@headlessui/react"),Wd=require("@mui/icons-material/Add"),B=require("@mui/material"),qd=require("@mui/icons-material/FileUploadOutlined"),Ud=require("@mui/icons-material/Menu"),ge=require("@mui/material/styles"),Kd=require("@mui/utils/useLazyRef"),Gt=require("@mui/system/RtlProvider"),Xd=require("@mui/utils/useEnhancedEffect"),oe=require("@mui/utils"),Yd=require("@mui/utils/composeClasses"),Fn=require("@mui/material/InputBase"),Zd=require("@mui/utils/useTimeout"),sa=require("@mui/material/Autocomplete"),Qd=require("@mui/utils/resolveProps"),Jd=require("@mui/material/MenuList"),ef=require("@mui/material/ClickAwayListener"),tf=require("@mui/material/Grow"),nf=require("@mui/material/Paper"),rf=require("@mui/material/Popper"),of=require("@mui/utils/useEventCallback"),sf=require("@mui/material/MenuItem"),ze=require("@mui/material/utils"),lf=require("@mui/utils/useOnMount"),Ge=require("@mui/system"),af=require("react-dom"),cf=require("@mui/material/ListItemIcon"),uf=require("@mui/material/ListItemText"),df=require("@mui/material/Badge"),ff=require("@mui/material/Checkbox"),hf=require("@mui/material/Divider"),gf=require("@mui/material/TextField"),mf=require("@mui/material/FormControl"),pf=require("@mui/material/Select"),bf=require("@mui/material/Button"),Cf=require("@mui/material/IconButton"),wf=require("@mui/material/InputAdornment"),Jo=require("@mui/material/Tooltip"),xf=require("@mui/material/InputLabel"),yf=require("@mui/material/Chip"),vf=require("@mui/material/FormControlLabel"),Sf=require("@mui/material/Unstable_TrapFocus"),es=require("@mui/material/TablePagination"),kf=require("@mui/material/LinearProgress"),If=require("@mui/material/CircularProgress"),Mf=require("@mui/utils/useForkRef"),Ef=require("@mui/material/Skeleton"),Pf=require("@mui/icons-material/EditOutlined"),Tf=require("@mui/icons-material/HotelClassOutlined"),Ff=require("@mui/icons-material/SettingsOutlined"),jf=require("@mui/material/Table"),Of=require("@mui/material/TableBody"),Rf=require("@mui/material/TableCell"),Lf=require("@mui/material/TableHead"),Df=require("@mui/material/TableRow"),Hf=require("@mui/material/TableSortLabel"),_f=require("@mui/icons-material/Clear"),Af=require("@mui/icons-material/Search"),Vf=require("@mui/icons-material/IndeterminateCheckBoxOutlined"),Nf=require("@mui/icons-material/MoreVert"),Kt=require("react-toastify"),$f=require("@mui/icons-material/CheckRounded"),zf=require("@mui/icons-material/CloseRounded"),Gf=require("@mui/icons-material/ErrorRounded"),Bf=require("@mui/icons-material/InfoRounded"),Wf=require("@mui/icons-material/WarningRounded"),qf=require("@mui/icons-material/Warning"),Uf=require("@mui/icons-material/KeyboardVoiceOutlined"),Kf=require("@mui/icons-material/VideocamOffOutlined"),Xf=require("@mui/icons-material/Check"),Yf=require("@mui/icons-material/Close"),Zf=require("@mui/icons-material/MicNone"),Qf=require("@mui/icons-material/AccessTimeFilled"),Jf=require("react-markdown"),eh=require("@mui/icons-material/FormatBold"),th=require("@mui/icons-material/FormatItalicOutlined"),nh=require("@mui/icons-material/FormatListBulleted"),rh=require("@mui/icons-material/FormatListNumbered"),oh=require("@mui/icons-material/KeyboardArrowDown"),sh=require("@tiptap/markdown"),Eo=require("@tiptap/react"),lh=require("@tiptap/starter-kit"),ih=require("@mui/icons-material/Replay"),ah=require("@mui/icons-material/StopCircle"),ch=require("@mui/icons-material/VolumeUp"),uh=require("@emotion/react"),dh=require("@emotion/styled"),fh=require("@mui/icons-material/CloudCircle"),hh=require("@mui/icons-material/RocketLaunch"),gh=require("@mui/icons-material/VideoCameraFrontOutlined"),ie=e=>e&&e.__esModule?e:{default:e};function la(e){if(e&&e.__esModule)return e;const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const g=la(re),ia=ie(Wd),mh=ie(qd),ph=ie(Ud),Bt=ie(Kd),aa=ie(Xd),Xe=ie(Yd),ca=ie(Fn),wn=ie(Zd),ua=ie(sa),bh=ie(Qd),ps=ie(Jd),da=ie(ef),Ch=ie(tf),fa=ie(nf),bs=ie(rf),wh=ie(of),Xt=ie(sf),ha=ie(lf),xh=la(af),_n=ie(cf),An=ie(uf),yh=ie(df),vh=ie(ff),Sh=ie(hf),ga=ie(gf),kh=ie(mf),Ih=ie(pf),Mh=ie(bf),ma=ie(Cf),Eh=ie(wf),pa=ie(Jo),Ph=ie(xf),Th=ie(yf),gl=ie(vf),Fh=ie(Sf),jh=ie(es),Oh=ie(kf),Rh=ie(If),Lh=ie(Mf),Dh=ie(Ef),Hh=ie(Pf),_h=ie(Tf),Ah=ie(Ff),Vh=ie(jf),Po=ie(Of),bt=ie(Rf),Nh=ie(Lf),dr=ie(Df),$h=ie(Hf),zh=ie(_f),Gh=ie(Af),Bh=ie(Vf),Wh=ie(Nf),qh=ie($f),Uh=ie(zf),Kh=ie(Gf),Xh=ie(Bf),Yh=ie(Wf),Zh=ie(qf),Qh=ie(Uf),Jh=ie(Kf),eg=ie(Xf),ml=ie(Yf),tg=ie(Zf),ng=ie(Qf),rg=ie(Jf),og=ie(eh),sg=ie(th),lg=ie(nh),ig=ie(rh),ag=ie(oh),cg=ie(lh),ug=ie(ih),dg=ie(ah),fg=ie(ch),ba=ie(dh),hg=ie(fh),gg=ie(hh),mg=ie(gh),Cs=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s="",filled:l=!1})=>{const a=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${a}`,role:s||(a?"graphics-document":"img"),children:[!a&&i.jsx("title",{children:r}),i.jsx("path",{d:"M12 22C14.6522 22 17.1957 20.9464 19.0711 19.0711C20.9464 17.1957 22 14.6522 22 12C22 9.34784 20.9464 6.8043 19.0711 4.92893C17.1957 3.05357 14.6522 2 12 2C9.34784 2 6.8043 3.05357 4.92893 4.92893C3.05357 6.8043 2 9.34784 2 12C2 14.6522 3.05357 17.1957 4.92893 19.0711C6.8043 20.9464 9.34784 22 12 22Z",stroke:l?"transparent":"currentColor",fill:l?"#157393":"none",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round"}),i.jsx("path",{d:"M12 17.5553V13.1108",stroke:l?"white":"currentColor",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round"}),i.jsx("path",{d:"M12 8.7333C11.8527 8.7333 11.7114 8.67477 11.6072 8.57058C11.503 8.4664 11.4445 8.32509 11.4445 8.17775C11.4445 8.03041 11.503 7.8891 11.6072 7.78491C11.7114 7.68072 11.8527 7.62219 12 7.62219",stroke:l?"white":"currentColor",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round"}),i.jsx("path",{d:"M12 8.7333C12.1473 8.7333 12.2887 8.67477 12.3928 8.57058C12.497 8.4664 12.5556 8.32509 12.5556 8.17775C12.5556 8.03041 12.497 7.8891 12.3928 7.78491C12.2887 7.68072 12.1473 7.62219 12 7.62219",stroke:l?"white":"currentColor",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round"})]})},ws=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s="",filled:l=!1})=>{const a=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"#000000",className:n,"aria-hidden":`${a}`,role:s||(a?"graphics-document":"img"),children:[!a&&i.jsx("title",{children:r}),i.jsx("path",{d:"M10.8715 2.54037C11.0072 2.37168 11.1791 2.23557 11.3743 2.14206C11.5696 2.04854 11.7833 2 11.9998 2C12.2163 2 12.4301 2.04854 12.6253 2.14206C12.8206 2.23557 12.9924 2.37168 13.1281 2.54037L14.4714 4.21147C14.6235 4.40106 14.821 4.54927 15.0455 4.64243C15.27 4.73559 15.5144 4.7707 15.756 4.74452L17.8882 4.51264C18.1041 4.48866 18.3225 4.51354 18.5275 4.58543C18.7324 4.65731 18.9185 4.77437 19.0721 4.92793C19.2256 5.08149 19.3427 5.26762 19.4146 5.47255C19.4865 5.67747 19.5113 5.89594 19.4874 6.11178L19.2555 8.24397C19.2293 8.48564 19.2644 8.73001 19.3576 8.95453C19.4507 9.17905 19.5989 9.37648 19.7885 9.52862L21.4596 10.8719C21.6283 11.0076 21.7644 11.1794 21.8579 11.3747C21.9515 11.5699 22 11.7837 22 12.0002C22 12.2167 21.9515 12.4304 21.8579 12.6257C21.7644 12.8209 21.6283 12.9928 21.4596 13.1285L19.7832 14.4655C19.5937 14.6179 19.4455 14.8155 19.3524 15.0402C19.2592 15.2648 19.2241 15.5093 19.2502 15.7511L19.482 17.8832C19.5062 18.0991 19.4814 18.3177 19.4096 18.5227C19.3378 18.7277 19.2207 18.9139 19.0671 19.0675C18.9135 19.2211 18.7273 19.3381 18.5223 19.41C18.3173 19.4818 18.0988 19.5065 17.8829 19.4824L15.7507 19.2505C15.509 19.2242 15.2646 19.2593 15.0401 19.3525C14.8156 19.4456 14.6181 19.5939 14.4661 19.7836L13.1281 21.4484C12.9925 21.6173 12.8207 21.7535 12.6254 21.8471C12.4302 21.9407 12.2164 21.9893 11.9998 21.9893C11.7833 21.9893 11.5695 21.9407 11.3742 21.8471C11.1789 21.7535 11.0072 21.6173 10.8715 21.4484L9.52915 19.7782C9.37682 19.5886 9.17922 19.4404 8.95456 19.3473C8.7299 19.2541 8.48541 19.219 8.24361 19.2452L6.11142 19.4771C5.89551 19.5014 5.6769 19.4767 5.47181 19.405C5.26673 19.3332 5.08045 19.2162 4.92681 19.0625C4.77318 18.9089 4.65613 18.7226 4.58436 18.5175C4.5126 18.3124 4.48796 18.0938 4.51228 17.8779L4.74416 15.7457C4.77033 15.5039 4.73522 15.2594 4.64207 15.0348C4.54891 14.8101 4.40071 14.6125 4.21111 14.4602L2.54089 13.1178C2.37207 12.9822 2.23582 12.8104 2.14221 12.6151C2.0486 12.4199 2 12.2061 2 11.9895C2 11.773 2.0486 11.5592 2.14221 11.3639C2.23582 11.1686 2.37207 10.9969 2.54089 10.8612L4.21111 9.51795C4.40076 9.36588 4.54902 9.16845 4.64219 8.94391C4.73536 8.71938 4.77043 8.47498 4.74416 8.23331L4.51228 6.10112C4.48813 5.88525 4.51289 5.6667 4.58471 5.4617C4.65654 5.2567 4.77359 5.07049 4.92719 4.91689C5.08079 4.76329 5.267 4.64624 5.472 4.57441C5.67701 4.50259 5.89555 4.47783 6.11142 4.50198L8.24361 4.73385C8.4854 4.75995 8.72987 4.7248 8.95452 4.63165C9.17916 4.5385 9.37677 4.39034 9.52915 4.20081L10.8715 2.54037Z",stroke:l?"transparent":"currentColor",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",fill:l?"#387F14":"none"}),i.jsx("path",{d:"M15.3314 9.99585L11.7946 14.7115C11.7373 14.7878 11.6643 14.8509 11.5805 14.8966C11.4967 14.9422 11.404 14.9693 11.3089 14.9761C11.2137 14.9828 11.1181 14.969 11.0288 14.9356C10.9394 14.9023 10.8582 14.8501 10.7907 14.7826L8.66827 12.6611",stroke:l?"white":"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})},xs=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s="",filled:l=!1})=>{const a=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${a}`,role:s||(a?"graphics-document":"img"),children:[!a&&i.jsx("title",{children:r}),i.jsx("path",{d:"M13.3508 3.46672C13.2268 3.21422 13.0345 3.00155 12.7957 2.85282C12.557 2.70408 12.2813 2.62524 12 2.62524C11.7187 2.62524 11.443 2.70408 11.2042 2.85282C10.9655 3.00155 10.7732 3.21422 10.6492 3.46672L2.75501 19.5484C2.65998 19.7417 2.61579 19.956 2.6266 20.1711C2.63741 20.3863 2.70286 20.5951 2.81678 20.7779C2.9307 20.9607 3.08933 21.1115 3.2777 21.216C3.46606 21.3205 3.67794 21.3752 3.89334 21.375H20.1067C20.3221 21.3752 20.5339 21.3205 20.7223 21.216C20.9107 21.1115 21.0693 20.9607 21.1832 20.7779C21.2972 20.5951 21.3626 20.3863 21.3734 20.1711C21.3842 19.956 21.34 19.7417 21.245 19.5484L13.3508 3.46672Z",stroke:l?"transparent":"currentColor",fill:l?"#816E09":"none",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round"}),i.jsx("path",{d:"M12 18.25C11.8274 18.25 11.6875 18.1101 11.6875 17.9375C11.6875 17.7649 11.8274 17.625 12 17.625",stroke:l?"white":"currentColor",strokeWidth:o}),i.jsx("path",{d:"M12 18.25C12.1726 18.25 12.3125 18.1101 12.3125 17.9375C12.3125 17.7649 12.1726 17.625 12 17.625",stroke:l?"white":"currentColor",strokeWidth:o}),i.jsx("path",{d:"M12 15.125V8.875",stroke:l?"white":"currentColor",strokeWidth:o,strokeMiterlimit:"10",strokeLinecap:"round"})]})},ys=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s="",filled:l=!1})=>{const a=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"#000000",className:n,"aria-hidden":`${a}`,role:s||(a?"graphics-document":"img"),children:[!a&&i.jsx("title",{children:r}),i.jsx("path",{d:"M12 22C14.6522 22 17.1957 20.9464 19.0711 19.0711C20.9464 17.1957 22 14.6522 22 12C22 9.34784 20.9464 6.8043 19.0711 4.92893C17.1957 3.05357 14.6522 2 12 2C9.34784 2 6.8043 3.05357 4.92893 4.92893C3.05357 6.8043 2 9.34784 2 12C2 14.6522 3.05357 17.1957 4.92893 19.0711C6.8043 20.9464 9.34784 22 12 22Z",stroke:l?"transparent":"currentColor",fill:l?"#A90508":"none",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round"}),i.jsx("path",{d:"M15.3344 8.66663L8.66666 15.3333",stroke:l?"white":"currentColor",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round"}),i.jsx("path",{d:"M8.66666 8.66663L15.3344 15.3333",stroke:l?"white":"currentColor",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round"})]})},pg=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s=""})=>{const l=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M2.625 21.3741L21.375 2.62415",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M21.375 21.3741L2.625 2.62415",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},bg=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s=""})=>{const l=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M20.4917 3.50831C20.2079 3.22568 19.8709 3.00208 19.5002 2.85044C19.1294 2.69879 18.7324 2.62211 18.3318 2.62483C17.9313 2.62754 17.5353 2.70959 17.1667 2.86624C16.798 3.02288 16.4641 3.25103 16.1842 3.53748L4.10083 15.6208L2.625 21.375L8.37917 19.8991L20.4625 7.81581C20.749 7.53587 20.9771 7.20193 21.1337 6.8333C21.2904 6.46468 21.3724 6.06866 21.3752 5.66814C21.3779 5.26762 21.3012 4.87053 21.1495 4.49982C20.9979 4.1291 20.7743 3.79211 20.4917 3.50831Z",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M15.8383 3.8833L20.1167 8.16163",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M14.0933 5.6283L18.3717 9.90663",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M4.10083 15.6208L8.38333 19.895",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},Cg=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s=""})=>{const l=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M2 2V22.0007",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M2 3.33301H21.334C21.4625 3.33314 21.5881 3.37038 21.6959 3.44023C21.8037 3.51008 21.889 3.60958 21.9416 3.72676C21.9942 3.84394 22.0118 3.97381 21.9923 4.10077C21.9728 4.22772 21.9171 4.34634 21.8318 4.44238L18.2717 8.4443C18.0545 8.68843 17.9345 9.0038 17.9345 9.33055C17.9345 9.6573 18.0545 9.97268 18.2717 10.2168L21.8274 14.2214C21.9127 14.3174 21.9684 14.4361 21.9879 14.563C22.0073 14.69 21.9897 14.8198 21.9371 14.937C21.8845 15.0542 21.7992 15.1537 21.6915 15.2235C21.5837 15.2934 21.458 15.3306 21.3296 15.3308H2",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},wg=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s=""})=>{const l=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M10.2221 20.6666C10.335 21.0512 10.5695 21.3889 10.8903 21.6292C11.2112 21.8694 11.6013 21.9992 12.0021 21.9992C12.4029 21.9992 12.793 21.8694 13.1139 21.6292C13.4348 21.3889 13.6692 21.0512 13.7821 20.6666",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M12 4V2",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M12 4C13.7681 4 15.4638 4.70238 16.714 5.95262C17.9643 7.20286 18.6667 8.89856 18.6667 10.6667C18.6667 16.9298 20 18 20 18H4C4 18 5.33333 16.2969 5.33333 10.6667C5.33333 8.89856 6.03571 7.20286 7.28595 5.95262C8.5362 4.70238 10.2319 4 12 4V4Z",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},xg=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s=""})=>{const l=!(r&&r.length>0);return e==="16"&&t==="16"?i.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,"aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M6.88898 13.6672C6.95954 13.9076 7.10608 14.1187 7.30663 14.2688C7.50719 14.419 7.75099 14.5001 8.00152 14.5001C8.25205 14.5001 8.49585 14.419 8.6964 14.2688C8.89696 14.1187 9.04349 13.9076 9.11406 13.6672",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M8.00018 3.25005V2",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M8.00019 3.25012C9.1053 3.25012 10.1651 3.68913 10.9466 4.47056C11.728 5.25199 12.167 6.31183 12.167 7.41694C12.167 11.3315 13.0004 12.0005 13.0004 12.0005H3C3 12.0005 3.83336 10.936 3.83336 7.41694C3.83336 6.31183 4.27237 5.25199 5.0538 4.47056C5.83523 3.68913 6.89508 3.25012 8.00019 3.25012V3.25012Z",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("circle",{cx:"11.8",cy:"6.11104",r:"2.3",fill:"#BA1E50",stroke:"white"})]}):i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M10.2221 20.6666C10.335 21.0512 10.5695 21.3889 10.8903 21.6292C11.2112 21.8694 11.6013 21.9992 12.0021 21.9992C12.4029 21.9992 12.793 21.8694 13.1139 21.6292C13.4348 21.3889 13.6692 21.0512 13.7821 20.6666",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M12 4V2",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M12 4C13.7681 4 15.4638 4.70238 16.714 5.95262C17.9643 7.20286 18.6667 8.89856 18.6667 10.6667C18.6667 16.9298 20 18 20 18H4C4 18 5.33333 16.2969 5.33333 10.6667C5.33333 8.89856 6.03571 7.20286 7.28595 5.95262C8.5362 4.70238 10.2319 4 12 4V4Z",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("circle",{cx:"18",cy:"8",r:"4",fill:"#BA1E50",stroke:"white",strokeWidth:"2"})]})},yg=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s=""})=>{const l=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M9.33325 9.33315C9.33335 8.84429 9.46782 8.36486 9.72198 7.94726C9.97614 7.52966 10.3402 7.18996 10.7744 6.96528C11.2085 6.74062 11.6962 6.63962 12.1838 6.67335C12.6716 6.70706 13.1406 6.8742 13.5397 7.15648C13.9389 7.43877 14.2527 7.82534 14.4469 8.27394C14.6413 8.72255 14.7085 9.21592 14.6413 9.70015C14.5741 10.1844 14.3751 10.6408 14.0661 11.0196C13.757 11.3984 13.3497 11.6848 12.8888 11.8478C12.6287 11.9398 12.4036 12.1101 12.2444 12.3353C12.0852 12.5607 11.9997 12.8297 11.9999 13.1056V13.9998",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M12.0001 17.3333C11.816 17.3333 11.6667 17.184 11.6667 17C11.6667 16.8159 11.816 16.6666 12.0001 16.6666",strokeWidth:o,stroke:"currentColor"}),i.jsx("path",{d:"M12 17.3333C12.1841 17.3333 12.3333 17.184 12.3333 17C12.3333 16.8159 12.1841 16.6666 12 16.6666",strokeWidth:o,stroke:"currentColor"}),i.jsx("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47716 17.5228 2 12 2C6.47716 2 2 6.47716 2 12C2 17.5228 6.47716 22 12 22Z",strokeWidth:o,strokeMiterlimit:"10",stroke:"currentColor"})]})},vg=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s=""})=>{const l=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M9.1042 3.96154L9.83189 2.08308C9.95462 1.76503 10.1705 1.49146 10.4514 1.29821C10.7322 1.10495 11.0648 1.00101 11.4057 1H12.7934C13.1343 1.00101 13.467 1.10495 13.7478 1.29821C14.0286 1.49146 14.2446 1.76503 14.3673 2.08308L15.095 3.96154L17.5657 5.38308L19.5627 5.07846C19.8952 5.03333 20.2336 5.08806 20.5349 5.23572C20.8363 5.38337 21.0869 5.61727 21.255 5.90769L21.9319 7.09231C22.1054 7.38736 22.1853 7.72807 22.1611 8.06948C22.1369 8.41089 22.0098 8.73694 21.7965 9.00462L20.5611 10.5785V13.4215L21.8304 14.9954C22.0437 15.2631 22.1708 15.5891 22.1949 15.9305C22.2191 16.2719 22.1392 16.6126 21.9657 16.9077L21.2888 18.0923C21.1207 18.3827 20.8701 18.6166 20.5688 18.7643C20.2674 18.9119 19.929 18.9667 19.5965 18.9215L17.5996 18.6169L15.1288 20.0385L14.4011 21.9169C14.2784 22.235 14.0625 22.5085 13.7817 22.7018C13.5008 22.8951 13.1682 22.999 12.8273 23H11.4057C11.0648 22.999 10.7322 22.8951 10.4514 22.7018C10.1705 22.5085 9.95462 22.235 9.83189 21.9169L9.1042 20.0385L6.63343 18.6169L4.63651 18.9215C4.304 18.9667 3.96558 18.9119 3.66425 18.7643C3.36292 18.6166 3.11229 18.3827 2.9442 18.0923L2.26728 16.9077C2.09382 16.6126 2.0139 16.2719 2.03807 15.9305C2.06224 15.5891 2.18937 15.2631 2.40266 14.9954L3.63805 13.4215V10.5785L2.36882 9.00462C2.15552 8.73694 2.0284 8.41089 2.00423 8.06948C1.98006 7.72807 2.05997 7.38736 2.23343 7.09231L2.91036 5.90769C3.07844 5.61727 3.32907 5.38337 3.6304 5.23572C3.93173 5.08806 4.27015 5.03333 4.60266 5.07846L6.59959 5.38308L9.1042 3.96154ZM8.71497 12C8.71497 12.6694 8.91348 13.3238 9.28538 13.8804C9.65729 14.437 10.1859 14.8708 10.8044 15.127C11.4228 15.3832 12.1033 15.4502 12.7599 15.3196C13.4164 15.189 14.0195 14.8666 14.4929 14.3933C14.9662 13.9199 15.2886 13.3169 15.4192 12.6603C15.5498 12.0038 15.4827 11.3232 15.2266 10.7048C14.9704 10.0863 14.5366 9.5577 13.98 9.1858C13.4234 8.81389 12.769 8.61538 12.0996 8.61538C11.2019 8.61538 10.341 8.97198 9.7063 9.60672C9.07156 10.2415 8.71497 11.1023 8.71497 12V12Z",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},Sg=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s=""})=>{const l=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M2.00003 5H22V19H2.00003V5Z",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M21.6772 5.51294L13.921 11.3593C13.3703 11.7745 12.6949 11.9997 12 11.9997C11.3052 11.9997 10.6298 11.7745 10.0791 11.3593L2.32291 5.51294",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},kg=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s=""})=>{const l=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M12 22C17.5228 22 22 17.5229 22 12.0001C22 6.47721 17.5228 2 12 2C6.47716 2 2 6.47721 2 12.0001C2 17.5229 6.47716 22 12 22Z",strokeWidth:o,strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M6.88889 11.9554H16.9334",strokeWidth:o,strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},Ig=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s=""})=>{const l=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,"aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M2 5.6366H22",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M14.0454 2H9.95446C9.5928 2 9.24595 2.14367 8.99022 2.3994C8.73449 2.65513 8.59082 3.00198 8.59082 3.36364V5.63636H15.409V3.36364C15.409 3.00198 15.2653 2.65513 15.0096 2.3994C14.7539 2.14367 14.407 2 14.0454 2Z",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M9.95453 17.2275V10.4093",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M14.0455 17.2275V10.4093",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M18.2364 20.7457C18.2111 21.0873 18.0573 21.4067 17.8059 21.6395C17.5546 21.8723 17.2244 22.0012 16.8818 22.0002H7.11818C6.77561 22.0012 6.4454 21.8723 6.19406 21.6395C5.94273 21.4067 5.78893 21.0873 5.76364 20.7457L4.5 5.6366H19.5L18.2364 20.7457Z",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},Mg=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s=""})=>{const l=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M21.375 8.09253L12.4417 17.025C12.3837 17.0831 12.3148 17.1291 12.2391 17.1605C12.1632 17.192 12.082 17.2082 12 17.2082C11.918 17.2082 11.8368 17.192 11.7609 17.1605C11.6852 17.1291 11.6163 17.0831 11.5583 17.025L2.625 8.09253",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},Eg=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s=""})=>{const l=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M20.125 5.125H3.875C3.18464 5.125 2.625 5.68464 2.625 6.375V20.125C2.625 20.8153 3.18464 21.375 3.875 21.375H20.125C20.8153 21.375 21.375 20.8153 21.375 20.125V6.375C21.375 5.68464 20.8153 5.125 20.125 5.125Z",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M2.625 10.125H21.375",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M7.625 7V2.625",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M16.375 7V2.625",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M6.6875 13.875C6.51491 13.875 6.375 13.7351 6.375 13.5625C6.375 13.3899 6.51491 13.25 6.6875 13.25",strokeWidth:o,stroke:"currentColor"}),i.jsx("path",{d:"M6.6875 13.875C6.86009 13.875 7 13.7351 7 13.5625C7 13.3899 6.86009 13.25 6.6875 13.25",strokeWidth:o,stroke:"currentColor"}),i.jsx("path",{d:"M6.6875 18.25C6.51491 18.25 6.375 18.1101 6.375 17.9375C6.375 17.7649 6.51491 17.625 6.6875 17.625",strokeWidth:o,stroke:"currentColor"}),i.jsx("path",{d:"M6.6875 18.25C6.86009 18.25 7 18.1101 7 17.9375C7 17.7649 6.86009 17.625 6.6875 17.625",strokeWidth:o,stroke:"currentColor"}),i.jsx("path",{d:"M12 13.875C11.8274 13.875 11.6875 13.7351 11.6875 13.5625C11.6875 13.3899 11.8274 13.25 12 13.25",strokeWidth:o,stroke:"currentColor"}),i.jsx("path",{d:"M12 13.875C12.1726 13.875 12.3125 13.7351 12.3125 13.5625C12.3125 13.3899 12.1726 13.25 12 13.25",strokeWidth:o,stroke:"currentColor"}),i.jsx("path",{d:"M12 18.25C11.8274 18.25 11.6875 18.1101 11.6875 17.9375C11.6875 17.7649 11.8274 17.625 12 17.625",strokeWidth:o,stroke:"currentColor"}),i.jsx("path",{d:"M12 18.25C12.1726 18.25 12.3125 18.1101 12.3125 17.9375C12.3125 17.7649 12.1726 17.625 12 17.625",strokeWidth:o,stroke:"currentColor"}),i.jsx("path",{d:"M17.3125 13.875C17.1399 13.875 17 13.7351 17 13.5625C17 13.3899 17.1399 13.25 17.3125 13.25",strokeWidth:o,stroke:"currentColor"}),i.jsx("path",{d:"M17.3125 13.875C17.4851 13.875 17.625 13.7351 17.625 13.5625C17.625 13.3899 17.4851 13.25 17.3125 13.25",strokeWidth:o,stroke:"currentColor"}),i.jsx("path",{d:"M17.3125 18.25C17.1399 18.25 17 18.1101 17 17.9375C17 17.7649 17.1399 17.625 17.3125 17.625",strokeWidth:o,stroke:"currentColor"}),i.jsx("path",{d:"M17.3125 18.25C17.4851 18.25 17.625 18.1101 17.625 17.9375C17.625 17.7649 17.4851 17.625 17.3125 17.625",strokeWidth:o,stroke:"currentColor"})]})},Pg=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s=""})=>{const l=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M17.2667 20.9723L12 17.2856L6.73333 20.9723C6.6397 21.0378 6.52988 21.0764 6.41584 21.0839C6.3018 21.0914 6.18789 21.0674 6.08651 21.0147C5.98512 20.9619 5.90015 20.8824 5.84082 20.7847C5.78149 20.687 5.75007 20.5749 5.75 20.4606V4.16064C5.75 3.82912 5.8817 3.51118 6.11612 3.27676C6.35054 3.04234 6.66848 2.91064 7 2.91064H17C17.3315 2.91064 17.6495 3.04234 17.8839 3.27676C18.1183 3.51118 18.25 3.82912 18.25 4.16064V20.4606C18.2499 20.5749 18.2185 20.687 18.1592 20.7847C18.0999 20.8824 18.0149 20.9619 17.9135 21.0147C17.8121 21.0674 17.6982 21.0914 17.5842 21.0839C17.4701 21.0764 17.3603 21.0378 17.2667 20.9723Z",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M9.5 2.91162V19.0358",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M14.5 2.91162V19.0358",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},Tg=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s=""})=>{const l=!(r&&r.length>0);return e==="16"&&t==="16"?i.jsxs("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,"aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M11.7377 15.4192L7.97053 12.7822L4.20336 15.4192C4.13638 15.4661 4.05784 15.4937 3.97627 15.499C3.89469 15.5044 3.81322 15.4873 3.7407 15.4495C3.66818 15.4118 3.6074 15.3549 3.56496 15.285C3.52252 15.2152 3.50005 15.135 3.5 15.0532V3.39411C3.5 3.15697 3.5942 2.92955 3.76188 2.76188C3.92955 2.5942 4.15697 2.5 4.39411 2.5H11.5469C11.7841 2.5 12.0115 2.5942 12.1792 2.76188C12.3469 2.92955 12.4411 3.15697 12.4411 3.39411V15.0532C12.441 15.135 12.4185 15.2152 12.3761 15.285C12.3337 15.3549 12.2729 15.4118 12.2004 15.4495C12.1278 15.4873 12.0464 15.5044 11.9648 15.499C11.8832 15.4937 11.8047 15.4661 11.7377 15.4192Z",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M6.18231 2.50098V14.0343",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M9.75873 2.50098V14.0343",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("circle",{cx:"12.8",cy:"3.11104",r:"2.3",fill:"#BA1E50",stroke:"white"})]}):i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M17.2667 21.9723L12 18.2856L6.73333 21.9723C6.6397 22.0378 6.52988 22.0764 6.41584 22.0839C6.3018 22.0914 6.18789 22.0674 6.08651 22.0147C5.98512 21.9619 5.90015 21.8824 5.84082 21.7847C5.78149 21.687 5.75007 21.5749 5.75 21.4606V5.16064C5.75 4.82912 5.8817 4.51118 6.11612 4.27676C6.35054 4.04234 6.66848 3.91064 7 3.91064H17C17.3315 3.91064 17.6495 4.04234 17.8839 4.27676C18.1183 4.51118 18.25 4.82912 18.25 5.16064V21.4606C18.2499 21.5749 18.2185 21.687 18.1592 21.7847C18.0999 21.8824 18.0149 21.9619 17.9135 22.0147C17.8121 22.0674 17.6982 22.0914 17.5842 22.0839C17.4701 22.0764 17.3603 22.0378 17.2667 21.9723Z",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M9.5 3.91162V20.0358",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M14.5 3.91162V20.0358",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("circle",{cx:"19",cy:"5",r:"4",fill:"#BA1E50",stroke:"white",strokeWidth:"2"})]})},Fg=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s=""})=>{const l=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M3.22667 13.1308C4.01013 14.9742 5.49382 16.431 7.35134 17.1805C9.20886 17.9301 11.2881 17.911 13.1315 17.1276C14.975 16.3441 16.4317 14.8604 17.1813 13.0029C17.9308 11.1454 17.9118 9.06617 17.1283 7.2227C16.3449 5.37922 14.8612 3.92248 13.0037 3.17294C11.1461 2.42339 9.06694 2.44244 7.22347 3.2259C5.38 4.00936 3.92325 5.49305 3.17371 7.35057C2.42416 9.20809 2.44322 11.2873 3.22667 13.1308Z",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M15.5175 15.5167L21.375 21.3751",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},jg=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s=""})=>{const l=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M17.3333 5.01583C18.7245 4.79227 20.1306 4.67518 21.5396 4.66561C21.6606 4.66375 21.7775 4.70975 21.8649 4.79361C21.9506 4.87667 21.9993 4.99071 22 5.11006V19.1261C21.9976 19.3705 21.8 19.5681 21.5556 19.5705C14.184 19.6621 12 21.9989 12 21.9989V7.09406C12 7.09406 9.81778 4.75983 2.46044 4.66561C2.33876 4.66328 2.22112 4.70931 2.13333 4.79361C2.04829 4.87697 2.00026 4.99097 2 5.11006V19.1261C2.00241 19.3705 2.19999 19.5681 2.44444 19.5705C9.816 19.6621 12 21.9989 12 21.9989",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M12 21.5609C12.1404 20.4089 12.6507 19.3334 13.4542 18.496C14.4882 17.3807 15.8441 16.6154 17.3333 16.3067V2.43734C17.3306 2.29208 17.2542 2.15817 17.1307 2.08178C16.9997 1.99949 16.8395 1.97808 16.6916 2.02312C15.4443 2.38152 14.3226 3.08277 13.4542 4.04712C12.6511 4.88407 12.1408 5.95882 12 7.11023",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},Og=({width:e="24",height:t="24",className:n="",title:r="",role:o=""})=>{const s=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"#000000",xmlns:"http://www.w3.org/2000/svg",className:n,"aria-hidden":`${s}`,role:o||(s?"graphics-document":"img"),children:[!s&&i.jsx("title",{children:r}),i.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",fill:"currentColor",stroke:"currentColor",d:"M20.5002 6.50003H3.50002C3.10219 6.50003 2.72065 6.342 2.43934 6.06069C2.15804 5.77938 2 5.39785 2 5.00002C2 4.60219 2.15804 4.22065 2.43934 3.93934C2.72065 3.65804 3.10219 3.5 3.50002 3.5H20.5002C20.898 3.5 21.2796 3.65804 21.5609 3.93934C21.8422 4.22065 22.0002 4.60219 22.0002 5.00002C22.0002 5.39785 21.8422 5.77938 21.5609 6.06069C21.2796 6.342 20.898 6.50003 20.5002 6.50003ZM20.5002 13.5001H3.50002C3.10219 13.5001 2.72065 13.3421 2.43934 13.0608C2.15804 12.7795 2 12.3979 2 12.0001C2 11.6023 2.15804 11.2207 2.43934 10.9394C2.72065 10.6581 3.10219 10.5001 3.50002 10.5001H20.5002C20.898 10.5001 21.2796 10.6581 21.5609 10.9394C21.8422 11.2207 22.0002 11.6023 22.0002 12.0001C22.0002 12.3979 21.8422 12.7795 21.5609 13.0608C21.2796 13.3421 20.898 13.5001 20.5002 13.5001ZM3.50002 20.5002H20.5002C20.898 20.5002 21.2796 20.3422 21.5609 20.0608C21.8422 19.7795 22.0002 19.398 22.0002 19.0002C22.0002 18.6023 21.8422 18.2208 21.5609 17.9395C21.2796 17.6582 20.898 17.5002 20.5002 17.5002H3.50002C3.10219 17.5002 2.72065 17.6582 2.43934 17.9395C2.15804 18.2208 2 18.6023 2 19.0002C2 19.398 2.15804 19.7795 2.43934 20.0608C2.72065 20.3422 3.10219 20.5002 3.50002 20.5002Z"})]})},Rg=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s=""})=>{const l=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M12 8V16",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M8 12H16",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M2 12C2 13.3132 2.25866 14.6136 2.7612 15.8268C3.26375 17.0401 4.00035 18.1425 4.92893 19.0711C5.85752 19.9997 6.95991 20.7362 8.17317 21.2388C9.38642 21.7413 10.6868 22 12 22C13.3132 22 14.6136 21.7413 15.8268 21.2388C17.0401 20.7362 18.1425 19.9997 19.0711 19.0711C19.9997 18.1425 20.7362 17.0401 21.2388 15.8268C21.7413 14.6136 22 13.3132 22 12C22 10.6868 21.7413 9.38642 21.2388 8.17317C20.7362 6.95991 19.9997 5.85752 19.0711 4.92893C18.1425 4.00035 17.0401 3.26375 15.8268 2.7612C14.6136 2.25866 13.3132 2 12 2C10.6868 2 9.38642 2.25866 8.17317 2.7612C6.95991 3.26375 5.85752 4.00035 4.92893 4.92893C4.00035 5.85752 3.26375 6.95991 2.7612 8.17317C2.25866 9.38642 2 10.6868 2 12Z",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},Lg=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s=""})=>{const l=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"#000000",xmlns:"http://www.w3.org/2000/svg",className:n,"aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M9.70831 14.1025L21.375 2.625",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M21.375 9.18417V2.625H14.7083",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M12.1042 6.79163H3.35417C3.16078 6.79163 2.97531 6.86845 2.83857 7.00519C2.70182 7.14194 2.625 7.32741 2.625 7.52079V20.6458C2.625 20.8392 2.70182 21.0246 2.83857 21.1614C2.97531 21.2981 3.16078 21.375 3.35417 21.375H16.4792C16.6726 21.375 16.858 21.2981 16.9948 21.1614C17.1315 21.0246 17.2083 20.8392 17.2083 20.6458V11.8958",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},Dg=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s=""})=>{const l=!(r&&r.length>0);return e==="16"&&t==="16"?i.jsxs("svg",{width:"19",height:"17",viewBox:"0 0 19 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,"aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M11.7333 4.11082C12.7071 3.95432 13.6914 3.87236 14.6777 3.86566C14.7624 3.86436 14.8443 3.89656 14.9054 3.95526C14.9654 4.0134 14.9995 4.09323 15 4.17677V13.988C14.9983 14.1591 14.86 14.2974 14.6889 14.2991C9.5288 14.3632 8 15.999 8 15.999V5.56557C8 5.56557 6.47244 3.93162 1.32231 3.86566C1.23713 3.86403 1.15478 3.89625 1.09333 3.95526C1.0338 4.01361 1.00018 4.09341 1 4.17677V13.988C1.00169 14.1591 1.13999 14.2974 1.31111 14.2991C6.4712 14.3632 8 15.999 8 15.999",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M8 15.6926C8.09831 14.8862 8.4555 14.1334 9.01796 13.5472C9.74172 12.7665 10.6909 12.2308 11.7333 12.0147V2.30614C11.7314 2.20446 11.678 2.11072 11.5915 2.05725C11.4998 1.99964 11.3877 1.98466 11.2841 2.01618C10.411 2.26706 9.62585 2.75794 9.01796 3.43298C8.45574 4.01885 8.09857 4.77117 8 5.57716",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("circle",{cx:"15.8",cy:"3.11104",r:"2.3",fill:"#BA1E50",stroke:"white"})]}):i.jsxs("svg",{width:"29",height:"24",viewBox:"0 0 29 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M17.3333 5.01583C18.7245 4.79227 20.1306 4.67518 21.5396 4.66561C21.6606 4.66375 21.7775 4.70975 21.8649 4.79361C21.9506 4.87667 21.9993 4.99071 22 5.11006V19.1261C21.9976 19.3705 21.8 19.5681 21.5556 19.5705C14.184 19.6621 12 21.9989 12 21.9989V7.09406C12 7.09406 9.81778 4.75983 2.46044 4.66561C2.33876 4.66328 2.22112 4.70931 2.13333 4.79361C2.04829 4.87697 2.00026 4.99097 2 5.11006V19.1261C2.00241 19.3705 2.19999 19.5681 2.44444 19.5705C9.816 19.6621 12 21.9989 12 21.9989",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M12 21.5609C12.1404 20.4089 12.6507 19.3334 13.4542 18.496C14.4882 17.3807 15.8441 16.6154 17.3333 16.3067V2.43734C17.3306 2.29208 17.2542 2.15817 17.1307 2.08178C16.9997 1.99949 16.8395 1.97808 16.6916 2.02312C15.4443 2.38152 14.3226 3.08277 13.4542 4.04712C12.6511 4.88407 12.1408 5.95882 12 7.11023",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("circle",{cx:"24",cy:"5",r:"4",fill:"#BA1E50",stroke:"white",strokeWidth:"2"})]})},Hg=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s=""})=>{const l=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",className:n,fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M12 22C14.6522 22 17.1957 20.9464 19.0711 19.0711C20.9464 17.1957 22 14.6522 22 12C22 9.34784 20.9464 6.8043 19.0711 4.92893C17.1957 3.05357 14.6522 2 12 2C9.34784 2 6.8043 3.05357 4.92893 4.92893C3.05357 6.8043 2 9.34784 2 12C2 14.6522 3.05357 17.1957 4.92893 19.0711C6.8043 20.9464 9.34784 22 12 22Z",stroke:"currentColor",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round"}),i.jsx("path",{d:"M15.5 9L11 15L8 12",stroke:"currentColor",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round"})]})},_g=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s=""})=>{const l=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M4.9375 9.4375H19C19 9.4375 19.9375 9.4375 19.9375 10.375V21.625C19.9375 21.625 19.9375 22.5625 19 22.5625H4.9375C4.9375 22.5625 4 22.5625 4 21.625V10.375C4 10.375 4 9.4375 4.9375 9.4375Z",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M6.8125 6.15625C6.8125 4.78873 7.35575 3.47721 8.32273 2.51023C9.28971 1.54325 10.6012 1 11.9688 1C13.3363 1 14.6478 1.54325 15.6148 2.51023C16.5818 3.47721 17.125 4.78873 17.125 6.15625V9.4375",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M11.0312 14.5938C11.0312 14.8424 11.13 15.0808 11.3058 15.2567C11.4817 15.4325 11.7201 15.5312 11.9688 15.5312C12.2174 15.5312 12.4558 15.4325 12.6317 15.2567C12.8075 15.0808 12.9062 14.8424 12.9062 14.5938C12.9062 14.3451 12.8075 14.1067 12.6317 13.9308C12.4558 13.755 12.2174 13.6562 11.9688 13.6562C11.7201 13.6562 11.4817 13.755 11.3058 13.9308C11.13 14.1067 11.0312 14.3451 11.0312 14.5938Z",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M11.9688 15.5312V18.3438",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},Ag=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s=""})=>{const l=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M11.0312 14.5938C11.0312 14.8424 11.13 15.0808 11.3058 15.2567C11.4817 15.4325 11.7201 15.5312 11.9688 15.5312C12.2174 15.5312 12.4558 15.4325 12.6317 15.2567C12.8075 15.0808 12.9062 14.8424 12.9062 14.5938C12.9062 14.3451 12.8075 14.1067 12.6317 13.9308C12.4558 13.755 12.2174 13.6562 11.9688 13.6562C11.7201 13.6562 11.4817 13.755 11.3058 13.9308C11.13 14.1067 11.0312 14.3451 11.0312 14.5938Z",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M11.9688 15.5312V18.3438",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M4.9375 9.4375H19C19 9.4375 19.9375 9.4375 19.9375 10.375V21.625C19.9375 21.625 19.9375 22.5625 19 22.5625H4.9375C4.9375 22.5625 4 22.5625 4 21.625V10.375C4 10.375 4 9.4375 4.9375 9.4375Z",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M6.8125 6.15625C6.8125 4.78873 7.35575 3.47721 8.32273 2.51023C9.28971 1.54325 10.6012 1 11.9688 1C13.3363 1 14.6478 1.54325 15.6148 2.51023C16.5818 3.47721 17.125 4.78873 17.125 6.15625V9.4375H6.8125V6.15625Z",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})};function Ca(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Ca(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Pe(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Ca(e))&&(r&&(r+=" "),r+=t);return r}const pl=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,bl=Pe,Be=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return bl(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:s}=t,l=Object.keys(o).map(u=>{const d=n==null?void 0:n[u],f=s==null?void 0:s[u];if(d===null)return null;const m=pl(d)||pl(f);return o[u][m]}),a=n&&Object.entries(n).reduce((u,d)=>{let[f,m]=d;return m===void 0||(u[f]=m),u},{}),c=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,d)=>{let{class:f,className:m,...p}=d;return Object.entries(p).every(b=>{let[x,w]=b;return Array.isArray(w)?w.includes({...s,...a}[x]):{...s,...a}[x]===w})?[...u,f,m]:u},[]);return bl(e,l,c,n==null?void 0:n.class,n==null?void 0:n.className)},Vg=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},Ng=(e,t)=>({classGroupId:e,validator:t}),wa=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),qr="-",Cl=[],$g="arbitrary..",zg=e=>{const t=Bg(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{if(l.startsWith("[")&&l.endsWith("]"))return Gg(l);const a=l.split(qr),c=a[0]===""&&a.length>1?1:0;return xa(a,c,t)},getConflictingClassGroupIds:(l,a)=>{if(a){const c=r[l],u=n[l];return c?u?Vg(u,c):c:u||Cl}return n[l]||Cl}}},xa=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const o=e[t],s=n.nextPart.get(o);if(s){const u=xa(e,t+1,s);if(u)return u}const l=n.validators;if(l===null)return;const a=t===0?e.join(qr):e.slice(t).join(qr),c=l.length;for(let u=0;u<c;u++){const d=l[u];if(d.validator(a))return d.classGroupId}},Gg=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?$g+r:void 0})(),Bg=e=>{const{theme:t,classGroups:n}=e;return Wg(n,t)},Wg=(e,t)=>{const n=wa();for(const r in e){const o=e[r];vs(o,n,r,t)}return n},vs=(e,t,n,r)=>{const o=e.length;for(let s=0;s<o;s++){const l=e[s];qg(l,t,n,r)}},qg=(e,t,n,r)=>{if(typeof e=="string"){Ug(e,t,n);return}if(typeof e=="function"){Kg(e,t,n,r);return}Xg(e,t,n,r)},Ug=(e,t,n)=>{const r=e===""?t:ya(t,e);r.classGroupId=n},Kg=(e,t,n,r)=>{if(Yg(e)){vs(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Ng(n,e))},Xg=(e,t,n,r)=>{const o=Object.entries(e),s=o.length;for(let l=0;l<s;l++){const[a,c]=o[l];vs(c,ya(t,a),n,r)}},ya=(e,t)=>{let n=e;const r=t.split(qr),o=r.length;for(let s=0;s<o;s++){const l=r[s];let a=n.nextPart.get(l);a||(a=wa(),n.nextPart.set(l,a)),n=a}return n},Yg=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Zg=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const o=(s,l)=>{n[s]=l,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(s){let l=n[s];if(l!==void 0)return l;if((l=r[s])!==void 0)return o(s,l),l},set(s,l){s in n?n[s]=l:o(s,l)}}},ts="!",wl=":",Qg=[],xl=(e,t,n,r,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:o}),Jg=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const s=[];let l=0,a=0,c=0,u;const d=o.length;for(let x=0;x<d;x++){const w=o[x];if(l===0&&a===0){if(w===wl){s.push(o.slice(c,x)),c=x+1;continue}if(w==="/"){u=x;continue}}w==="["?l++:w==="]"?l--:w==="("?a++:w===")"&&a--}const f=s.length===0?o:o.slice(c);let m=f,p=!1;f.endsWith(ts)?(m=f.slice(0,-1),p=!0):f.startsWith(ts)&&(m=f.slice(1),p=!0);const b=u&&u>c?u-c:void 0;return xl(s,p,m,b)};if(t){const o=t+wl,s=r;r=l=>l.startsWith(o)?s(l.slice(o.length)):xl(Qg,!1,l,void 0,!0)}if(n){const o=r;r=s=>n({className:s,parseClassName:o})}return r},em=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let o=[];for(let s=0;s<n.length;s++){const l=n[s],a=l[0]==="[",c=t.has(l);a||c?(o.length>0&&(o.sort(),r.push(...o),o=[]),r.push(l)):o.push(l)}return o.length>0&&(o.sort(),r.push(...o)),r}},tm=e=>({cache:Zg(e.cacheSize),parseClassName:Jg(e),sortModifiers:em(e),postfixLookupClassGroupIds:nm(e),...zg(e)}),nm=e=>{const t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let r=0;r<n.length;r++)t[n[r]]=!0;return t},rm=/\s+/,om=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:s,postfixLookupClassGroupIds:l}=t,a=[],c=e.trim().split(rm);let u="";for(let d=c.length-1;d>=0;d-=1){const f=c[d],{isExternal:m,modifiers:p,hasImportantModifier:b,baseClassName:x,maybePostfixModifierPosition:w}=n(f);if(m){u=f+(u.length>0?" "+u:u);continue}let S=!!w,v;if(S){const N=x.substring(0,w);v=r(N);const M=v&&l[v]?r(x):void 0;M&&M!==v&&(v=M,S=!1)}else v=r(x);if(!v){if(!S){u=f+(u.length>0?" "+u:u);continue}if(v=r(x),!v){u=f+(u.length>0?" "+u:u);continue}S=!1}const F=p.length===0?"":p.length===1?p[0]:s(p).join(":"),j=b?F+ts:F,y=j+v;if(a.indexOf(y)>-1)continue;a.push(y);const A=o(v,S);for(let N=0;N<A.length;++N){const M=A[N];a.push(j+M)}u=f+(u.length>0?" "+u:u)}return u},sm=(...e)=>{let t=0,n,r,o="";for(;t<e.length;)(n=e[t++])&&(r=va(n))&&(o&&(o+=" "),o+=r);return o},va=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=va(e[r]))&&(n&&(n+=" "),n+=t);return n},lm=(e,...t)=>{let n,r,o,s;const l=c=>{const u=t.reduce((d,f)=>f(d),e());return n=tm(u),r=n.cache.get,o=n.cache.set,s=a,a(c)},a=c=>{const u=r(c);if(u)return u;const d=om(c,n);return o(c,d),d};return s=l,(...c)=>s(sm(...c))},im=[],st=e=>{const t=n=>n[e]||im;return t.isThemeGetter=!0,t},Sa=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ka=/^\((?:(\w[\w-]*):)?(.+)\)$/i,am=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,cm=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,um=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,dm=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,fm=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,hm=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,en=e=>am.test(e),Ee=e=>!!e&&!Number.isNaN(Number(e)),_t=e=>!!e&&Number.isInteger(Number(e)),To=e=>e.endsWith("%")&&Ee(e.slice(0,-1)),qt=e=>cm.test(e),Ia=()=>!0,gm=e=>um.test(e)&&!dm.test(e),Ss=()=>!1,mm=e=>fm.test(e),pm=e=>hm.test(e),bm=e=>!de(e)&&!he(e),Cm=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),wm=e=>un(e,Pa,Ss),de=e=>Sa.test(e),hn=e=>un(e,Ta,gm),yl=e=>un(e,Em,Ee),xm=e=>un(e,ja,Ia),ym=e=>un(e,Fa,Ss),vl=e=>un(e,Ma,Ss),vm=e=>un(e,Ea,pm),Rr=e=>un(e,Oa,mm),he=e=>ka.test(e),rr=e=>xn(e,Ta),Sm=e=>xn(e,Fa),Sl=e=>xn(e,Ma),km=e=>xn(e,Pa),Im=e=>xn(e,Ea),Lr=e=>xn(e,Oa,!0),Mm=e=>xn(e,ja,!0),un=(e,t,n)=>{const r=Sa.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},xn=(e,t,n=!1)=>{const r=ka.exec(e);return r?r[1]?t(r[1]):n:!1},Ma=e=>e==="position"||e==="percentage",Ea=e=>e==="image"||e==="url",Pa=e=>e==="length"||e==="size"||e==="bg-size",Ta=e=>e==="length",Em=e=>e==="number",Fa=e=>e==="family-name",ja=e=>e==="number"||e==="weight",Oa=e=>e==="shadow",Pm=()=>{const e=st("color"),t=st("font"),n=st("text"),r=st("font-weight"),o=st("tracking"),s=st("leading"),l=st("breakpoint"),a=st("container"),c=st("spacing"),u=st("radius"),d=st("shadow"),f=st("inset-shadow"),m=st("text-shadow"),p=st("drop-shadow"),b=st("blur"),x=st("perspective"),w=st("aspect"),S=st("ease"),v=st("animate"),F=()=>["auto","avoid","all","avoid-page","page","left","right","column"],j=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],y=()=>[...j(),he,de],A=()=>["auto","hidden","clip","visible","scroll"],N=()=>["auto","contain","none"],M=()=>[he,de,c],P=()=>[en,"full","auto",...M()],R=()=>[_t,"none","subgrid",he,de],_=()=>["auto",{span:["full",_t,he,de]},_t,he,de],O=()=>[_t,"auto",he,de],D=()=>["auto","min","max","fr",he,de],V=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],E=()=>["start","end","center","stretch","center-safe","end-safe"],T=()=>["auto",...M()],L=()=>[en,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...M()],$=()=>[en,"screen","full","dvw","lvw","svw","min","max","fit",...M()],G=()=>[en,"screen","full","lh","dvh","lvh","svh","min","max","fit",...M()],k=()=>[e,he,de],H=()=>[...j(),Sl,vl,{position:[he,de]}],z=()=>["no-repeat",{repeat:["","x","y","space","round"]}],q=()=>["auto","cover","contain",km,wm,{size:[he,de]}],U=()=>[To,rr,hn],Q=()=>["","none","full",u,he,de],X=()=>["",Ee,rr,hn],W=()=>["solid","dashed","dotted","double"],K=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Y=()=>[Ee,To,Sl,vl],J=()=>["","none",b,he,de],ne=()=>["none",Ee,he,de],Z=()=>["none",Ee,he,de],se=()=>[Ee,he,de],ee=()=>[en,"full",...M()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[qt],breakpoint:[qt],color:[Ia],container:[qt],"drop-shadow":[qt],ease:["in","out","in-out"],font:[bm],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[qt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[qt],shadow:[qt],spacing:["px",Ee],text:[qt],"text-shadow":[qt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",en,de,he,w]}],container:["container"],"container-type":[{"@container":["","normal","size",he,de]}],"container-named":[Cm],columns:[{columns:[Ee,de,he,a]}],"break-after":[{"break-after":F()}],"break-before":[{"break-before":F()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:y()}],overflow:[{overflow:A()}],"overflow-x":[{"overflow-x":A()}],"overflow-y":[{"overflow-y":A()}],overscroll:[{overscroll:N()}],"overscroll-x":[{"overscroll-x":N()}],"overscroll-y":[{"overscroll-y":N()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:P()}],"inset-x":[{"inset-x":P()}],"inset-y":[{"inset-y":P()}],start:[{"inset-s":P(),start:P()}],end:[{"inset-e":P(),end:P()}],"inset-bs":[{"inset-bs":P()}],"inset-be":[{"inset-be":P()}],top:[{top:P()}],right:[{right:P()}],bottom:[{bottom:P()}],left:[{left:P()}],visibility:["visible","invisible","collapse"],z:[{z:[_t,"auto",he,de]}],basis:[{basis:[en,"full","auto",a,...M()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ee,en,"auto","initial","none",de]}],grow:[{grow:["",Ee,he,de]}],shrink:[{shrink:["",Ee,he,de]}],order:[{order:[_t,"first","last","none",he,de]}],"grid-cols":[{"grid-cols":R()}],"col-start-end":[{col:_()}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":R()}],"row-start-end":[{row:_()}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":D()}],"auto-rows":[{"auto-rows":D()}],gap:[{gap:M()}],"gap-x":[{"gap-x":M()}],"gap-y":[{"gap-y":M()}],"justify-content":[{justify:[...V(),"normal"]}],"justify-items":[{"justify-items":[...E(),"normal"]}],"justify-self":[{"justify-self":["auto",...E()]}],"align-content":[{content:["normal",...V()]}],"align-items":[{items:[...E(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...E(),{baseline:["","last"]}]}],"place-content":[{"place-content":V()}],"place-items":[{"place-items":[...E(),"baseline"]}],"place-self":[{"place-self":["auto",...E()]}],p:[{p:M()}],px:[{px:M()}],py:[{py:M()}],ps:[{ps:M()}],pe:[{pe:M()}],pbs:[{pbs:M()}],pbe:[{pbe:M()}],pt:[{pt:M()}],pr:[{pr:M()}],pb:[{pb:M()}],pl:[{pl:M()}],m:[{m:T()}],mx:[{mx:T()}],my:[{my:T()}],ms:[{ms:T()}],me:[{me:T()}],mbs:[{mbs:T()}],mbe:[{mbe:T()}],mt:[{mt:T()}],mr:[{mr:T()}],mb:[{mb:T()}],ml:[{ml:T()}],"space-x":[{"space-x":M()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":M()}],"space-y-reverse":["space-y-reverse"],size:[{size:L()}],"inline-size":[{inline:["auto",...$()]}],"min-inline-size":[{"min-inline":["auto",...$()]}],"max-inline-size":[{"max-inline":["none",...$()]}],"block-size":[{block:["auto",...G()]}],"min-block-size":[{"min-block":["auto",...G()]}],"max-block-size":[{"max-block":["none",...G()]}],w:[{w:[a,"screen",...L()]}],"min-w":[{"min-w":[a,"screen","none",...L()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[l]},...L()]}],h:[{h:["screen","lh",...L()]}],"min-h":[{"min-h":["screen","lh","none",...L()]}],"max-h":[{"max-h":["screen","lh",...L()]}],"font-size":[{text:["base",n,rr,hn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Mm,xm]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",To,de]}],"font-family":[{font:[Sm,ym,t]}],"font-features":[{"font-features":[de]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,he,de]}],"line-clamp":[{"line-clamp":[Ee,"none",he,yl]}],leading:[{leading:[s,...M()]}],"list-image":[{"list-image":["none",he,de]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",he,de]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:k()}],"text-color":[{text:k()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...W(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ee,"from-font","auto",he,hn]}],"text-decoration-color":[{decoration:k()}],"underline-offset":[{"underline-offset":[Ee,"auto",he,de]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:M()}],"tab-size":[{tab:[_t,he,de]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",he,de]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",he,de]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:H()}],"bg-repeat":[{bg:z()}],"bg-size":[{bg:q()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},_t,he,de],radial:["",he,de],conic:[_t,he,de]},Im,vm]}],"bg-color":[{bg:k()}],"gradient-from-pos":[{from:U()}],"gradient-via-pos":[{via:U()}],"gradient-to-pos":[{to:U()}],"gradient-from":[{from:k()}],"gradient-via":[{via:k()}],"gradient-to":[{to:k()}],rounded:[{rounded:Q()}],"rounded-s":[{"rounded-s":Q()}],"rounded-e":[{"rounded-e":Q()}],"rounded-t":[{"rounded-t":Q()}],"rounded-r":[{"rounded-r":Q()}],"rounded-b":[{"rounded-b":Q()}],"rounded-l":[{"rounded-l":Q()}],"rounded-ss":[{"rounded-ss":Q()}],"rounded-se":[{"rounded-se":Q()}],"rounded-ee":[{"rounded-ee":Q()}],"rounded-es":[{"rounded-es":Q()}],"rounded-tl":[{"rounded-tl":Q()}],"rounded-tr":[{"rounded-tr":Q()}],"rounded-br":[{"rounded-br":Q()}],"rounded-bl":[{"rounded-bl":Q()}],"border-w":[{border:X()}],"border-w-x":[{"border-x":X()}],"border-w-y":[{"border-y":X()}],"border-w-s":[{"border-s":X()}],"border-w-e":[{"border-e":X()}],"border-w-bs":[{"border-bs":X()}],"border-w-be":[{"border-be":X()}],"border-w-t":[{"border-t":X()}],"border-w-r":[{"border-r":X()}],"border-w-b":[{"border-b":X()}],"border-w-l":[{"border-l":X()}],"divide-x":[{"divide-x":X()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":X()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...W(),"hidden","none"]}],"divide-style":[{divide:[...W(),"hidden","none"]}],"border-color":[{border:k()}],"border-color-x":[{"border-x":k()}],"border-color-y":[{"border-y":k()}],"border-color-s":[{"border-s":k()}],"border-color-e":[{"border-e":k()}],"border-color-bs":[{"border-bs":k()}],"border-color-be":[{"border-be":k()}],"border-color-t":[{"border-t":k()}],"border-color-r":[{"border-r":k()}],"border-color-b":[{"border-b":k()}],"border-color-l":[{"border-l":k()}],"divide-color":[{divide:k()}],"outline-style":[{outline:[...W(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ee,he,de]}],"outline-w":[{outline:["",Ee,rr,hn]}],"outline-color":[{outline:k()}],shadow:[{shadow:["","none",d,Lr,Rr]}],"shadow-color":[{shadow:k()}],"inset-shadow":[{"inset-shadow":["none",f,Lr,Rr]}],"inset-shadow-color":[{"inset-shadow":k()}],"ring-w":[{ring:X()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:k()}],"ring-offset-w":[{"ring-offset":[Ee,hn]}],"ring-offset-color":[{"ring-offset":k()}],"inset-ring-w":[{"inset-ring":X()}],"inset-ring-color":[{"inset-ring":k()}],"text-shadow":[{"text-shadow":["none",m,Lr,Rr]}],"text-shadow-color":[{"text-shadow":k()}],opacity:[{opacity:[Ee,he,de]}],"mix-blend":[{"mix-blend":[...K(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":K()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Ee]}],"mask-image-linear-from-pos":[{"mask-linear-from":Y()}],"mask-image-linear-to-pos":[{"mask-linear-to":Y()}],"mask-image-linear-from-color":[{"mask-linear-from":k()}],"mask-image-linear-to-color":[{"mask-linear-to":k()}],"mask-image-t-from-pos":[{"mask-t-from":Y()}],"mask-image-t-to-pos":[{"mask-t-to":Y()}],"mask-image-t-from-color":[{"mask-t-from":k()}],"mask-image-t-to-color":[{"mask-t-to":k()}],"mask-image-r-from-pos":[{"mask-r-from":Y()}],"mask-image-r-to-pos":[{"mask-r-to":Y()}],"mask-image-r-from-color":[{"mask-r-from":k()}],"mask-image-r-to-color":[{"mask-r-to":k()}],"mask-image-b-from-pos":[{"mask-b-from":Y()}],"mask-image-b-to-pos":[{"mask-b-to":Y()}],"mask-image-b-from-color":[{"mask-b-from":k()}],"mask-image-b-to-color":[{"mask-b-to":k()}],"mask-image-l-from-pos":[{"mask-l-from":Y()}],"mask-image-l-to-pos":[{"mask-l-to":Y()}],"mask-image-l-from-color":[{"mask-l-from":k()}],"mask-image-l-to-color":[{"mask-l-to":k()}],"mask-image-x-from-pos":[{"mask-x-from":Y()}],"mask-image-x-to-pos":[{"mask-x-to":Y()}],"mask-image-x-from-color":[{"mask-x-from":k()}],"mask-image-x-to-color":[{"mask-x-to":k()}],"mask-image-y-from-pos":[{"mask-y-from":Y()}],"mask-image-y-to-pos":[{"mask-y-to":Y()}],"mask-image-y-from-color":[{"mask-y-from":k()}],"mask-image-y-to-color":[{"mask-y-to":k()}],"mask-image-radial":[{"mask-radial":[he,de]}],"mask-image-radial-from-pos":[{"mask-radial-from":Y()}],"mask-image-radial-to-pos":[{"mask-radial-to":Y()}],"mask-image-radial-from-color":[{"mask-radial-from":k()}],"mask-image-radial-to-color":[{"mask-radial-to":k()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":j()}],"mask-image-conic-pos":[{"mask-conic":[Ee]}],"mask-image-conic-from-pos":[{"mask-conic-from":Y()}],"mask-image-conic-to-pos":[{"mask-conic-to":Y()}],"mask-image-conic-from-color":[{"mask-conic-from":k()}],"mask-image-conic-to-color":[{"mask-conic-to":k()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:H()}],"mask-repeat":[{mask:z()}],"mask-size":[{mask:q()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",he,de]}],filter:[{filter:["","none",he,de]}],blur:[{blur:J()}],brightness:[{brightness:[Ee,he,de]}],contrast:[{contrast:[Ee,he,de]}],"drop-shadow":[{"drop-shadow":["","none",p,Lr,Rr]}],"drop-shadow-color":[{"drop-shadow":k()}],grayscale:[{grayscale:["",Ee,he,de]}],"hue-rotate":[{"hue-rotate":[Ee,he,de]}],invert:[{invert:["",Ee,he,de]}],saturate:[{saturate:[Ee,he,de]}],sepia:[{sepia:["",Ee,he,de]}],"backdrop-filter":[{"backdrop-filter":["","none",he,de]}],"backdrop-blur":[{"backdrop-blur":J()}],"backdrop-brightness":[{"backdrop-brightness":[Ee,he,de]}],"backdrop-contrast":[{"backdrop-contrast":[Ee,he,de]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ee,he,de]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ee,he,de]}],"backdrop-invert":[{"backdrop-invert":["",Ee,he,de]}],"backdrop-opacity":[{"backdrop-opacity":[Ee,he,de]}],"backdrop-saturate":[{"backdrop-saturate":[Ee,he,de]}],"backdrop-sepia":[{"backdrop-sepia":["",Ee,he,de]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":M()}],"border-spacing-x":[{"border-spacing-x":M()}],"border-spacing-y":[{"border-spacing-y":M()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",he,de]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ee,"initial",he,de]}],ease:[{ease:["linear","initial",S,he,de]}],delay:[{delay:[Ee,he,de]}],animate:[{animate:["none",v,he,de]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[x,he,de]}],"perspective-origin":[{"perspective-origin":y()}],rotate:[{rotate:ne()}],"rotate-x":[{"rotate-x":ne()}],"rotate-y":[{"rotate-y":ne()}],"rotate-z":[{"rotate-z":ne()}],scale:[{scale:Z()}],"scale-x":[{"scale-x":Z()}],"scale-y":[{"scale-y":Z()}],"scale-z":[{"scale-z":Z()}],"scale-3d":["scale-3d"],skew:[{skew:se()}],"skew-x":[{"skew-x":se()}],"skew-y":[{"skew-y":se()}],transform:[{transform:[he,de,"","none","gpu","cpu"]}],"transform-origin":[{origin:y()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ee()}],"translate-x":[{"translate-x":ee()}],"translate-y":[{"translate-y":ee()}],"translate-z":[{"translate-z":ee()}],"translate-none":["translate-none"],zoom:[{zoom:[_t,he,de]}],accent:[{accent:k()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:k()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",he,de]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":k()}],"scrollbar-track-color":[{"scrollbar-track":k()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":M()}],"scroll-mx":[{"scroll-mx":M()}],"scroll-my":[{"scroll-my":M()}],"scroll-ms":[{"scroll-ms":M()}],"scroll-me":[{"scroll-me":M()}],"scroll-mbs":[{"scroll-mbs":M()}],"scroll-mbe":[{"scroll-mbe":M()}],"scroll-mt":[{"scroll-mt":M()}],"scroll-mr":[{"scroll-mr":M()}],"scroll-mb":[{"scroll-mb":M()}],"scroll-ml":[{"scroll-ml":M()}],"scroll-p":[{"scroll-p":M()}],"scroll-px":[{"scroll-px":M()}],"scroll-py":[{"scroll-py":M()}],"scroll-ps":[{"scroll-ps":M()}],"scroll-pe":[{"scroll-pe":M()}],"scroll-pbs":[{"scroll-pbs":M()}],"scroll-pbe":[{"scroll-pbe":M()}],"scroll-pt":[{"scroll-pt":M()}],"scroll-pr":[{"scroll-pr":M()}],"scroll-pb":[{"scroll-pb":M()}],"scroll-pl":[{"scroll-pl":M()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",he,de]}],fill:[{fill:["none",...k()]}],"stroke-w":[{stroke:[Ee,rr,hn,yl]}],stroke:[{stroke:["none",...k()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},rt=lm(Pm);function Ra(){return Math.floor(Math.random()*1e7)}const La=(e,t,n,r,o)=>{const s=`preflight ${n}`;return{settings:i.jsx(vg,{width:e,height:t,className:s,title:r,role:o}),questionCircle:i.jsx(yg,{width:e,height:t,className:s,title:r,role:o}),notifications:i.jsx(wg,{width:e,height:t,className:s,title:r,role:o}),flag:i.jsx(Cg,{width:e,height:t,className:s,title:r,role:o}),edit:i.jsx(bg,{width:e,height:t,className:s,title:r,role:o}),infoCircle:i.jsx(Cs,{width:e,height:t,className:s,title:r,role:o}),delete:i.jsx(Ig,{width:e,height:t,className:s,title:r,role:o}),resourceCenter:i.jsx(jg,{width:e,height:t,className:s,title:r,role:o}),search:i.jsx(Fg,{width:e,height:t,className:s,title:r,role:o}),error:i.jsx(ys,{width:e,height:t,className:s,title:r,role:o}),warning:i.jsx(xs,{width:e,height:t,className:s,title:r,role:o}),dropdown:i.jsx(Mg,{width:e,height:t,className:s,title:r,role:o}),calendar:i.jsx(Eg,{width:e,height:t,className:s,title:r,role:o}),bookmark:i.jsx(Pg,{width:e,height:t,className:s,title:r,role:o}),menu:i.jsx(Og,{width:e,height:t,className:s,title:r,role:o}),add:i.jsx(Rg,{width:e,height:t,className:s,title:r,role:o}),exclude:i.jsx(kg,{width:e,height:t,className:s,title:r,role:o}),email:i.jsx(Sg,{width:e,height:t,className:s,title:r,role:o}),close:i.jsx(pg,{width:e,height:t,className:s,title:r,role:o}),checkCircle:i.jsx(ws,{width:e,height:t,className:s,title:r,role:o}),linkNewTab:i.jsx(Lg,{width:e,height:t,className:s,title:r,role:o}),lockOpened:i.jsx(_g,{width:e,height:t,className:s,title:r,role:o}),lockClosed:i.jsx(Ag,{width:e,height:t,className:s,title:r,role:o}),check:i.jsx(Hg,{width:e,height:t,className:s,title:r,role:o})}},Da=(e,t,n,r,o)=>{const s=`preflight ${n}`;return{notifications:i.jsx(xg,{width:e,height:t,className:s,title:r,role:o}),resourceCenter:i.jsx(Dg,{width:e,height:t,className:s,title:r,role:o}),bookmark:i.jsx(Tg,{width:e,height:t,className:s,title:r,role:o})}},Ha=(e,t,n,r,o,s)=>{const l=`preflight ${n}`;return{infoCircle:i.jsx(Cs,{width:e,height:t,className:l,title:r,role:o,filled:s}),error:i.jsx(ys,{width:e,height:t,className:l,title:r,role:o,filled:s}),warning:i.jsx(xs,{width:e,height:t,className:l,title:r,role:o,filled:s}),checkCircle:i.jsx(ws,{width:e,height:t,className:l,title:r,role:o,filled:s})}},$t=({size:e="small",name:t,hasIndicator:n=!1,className:r,altText:o,role:s=void 0,filled:l=!1})=>{const a={small:{width:"16",height:"16"},medium:{width:"24",height:"24"}},c=La(a[e].width,a[e].height,r,o,s),u=Da(a[e].width,a[e].height,r,o,s),d=Ha(a[e].width,a[e].height,r,o,s,l),f=n&&!l?u[t]||c[t]:l&&d[t]||c[t];return i.jsx(i.Fragment,{children:f})};Object.keys(La()).sort((e,t)=>e.localeCompare(t));Object.keys(Da()).sort((e,t)=>e.localeCompare(t));Object.keys(Ha()).sort((e,t)=>e.localeCompare(t));const pr=(...e)=>rt(Pe(...e)),Tm=Be("ds:rounded-full ds:border-t-acuity-blue ds:border-x-acuity-blue ds:border-b-neutrals-transparent ds:border-solid ds:animate-spin",{variants:{size:{small:["ds:w-4","ds:h-4","ds:border"],medium:["ds:w-5","ds:h-5","ds:border-2"],large:["ds:w-7","ds:h-7","ds:border-[3px]"],"extra-large":["ds:w-[6.5rem]","ds:h-[6.5rem]","ds:border-[6px]"]}}}),Fm=Be("preflight ds:inline-block ds:rounded ds:focus-visible:outline-hidden ds:focus-visible:ring-2 ds:focus-visible:ring-acuity-blue",{variants:{size:{small:"ds:p-1",medium:"ds:p-2",large:"ds:p-3","extra-large":"ds:p-4"}}}),Ur=({size:e="medium",focusable:t=!0,label:n="",ariaLive:r="assertive",className:o="",spinnerClassName:s=""})=>i.jsx("div",{tabIndex:t?0:void 0,"aria-label":n,"aria-live":r,className:t?pr(Fm({size:e}),o):`preflight ds:rounded ${o}`,role:"status",children:i.jsx("div",{className:pr(Tm({size:e}),s)})}),_a=(e,t,n)=>{if(t){e.preventDefault();return}n(e)},ao=(e,t,n)=>{if(t){e.preventDefault();return}n(e)},jm=(e,t,n)=>{if(t){e.preventDefault();return}n(e)},Om=(e,t,n)=>{if(t&&e.key!=="Tab"){e.preventDefault();return}n(e)},Rm=(e,t,n)=>{if(t){e.preventDefault();return}n(e)},Lm=Be(["preflight","ds:font-sans!","ds:rounded","ds:text-base","ds:font-semibold","ds:border","ds:transition","ds:duration-100","ds:text-nowrap","ds:focus-visible:border","ds:focus-visible:ring-2","ds:focus-visible:outline-hidden","ds:focus-visible:ring-offset-2"],{variants:{variant:{default:["ds:p-[10px]","ds:relative","ds:group"],small:["ds:p-1"]},isTransparent:{false:"",true:""},disabled:{false:["ds:text-neutrals-black","ds:hover:bg-neutrals-transparent-light","ds:hover:border-neutrals-transparent","ds:active:bg-neutrals-transparent-medium","ds:active:border-neutrals-transparent","ds:focus-visible:bg-neutrals-transparent-light","ds:focus-visible:border-neutrals-dark","ds:focus-visible:ring-neutrals-black"],true:["ds:bg-neutrals-transparent-light","ds:text-neutrals-dark","ds:border-neutrals-transparent","ds:cursor-not-allowed","ds:focus-visible:border-neutrals-light","ds:focus-visible:ring-neutrals-black"]}},compoundVariants:[{isTransparent:!0,disabled:!1,className:["ds:bg-neutrals-transparent","ds:border-neutrals-transparent"]},{isTransparent:!1,disabled:!1,className:["ds:bg-neutrals-white","ds:border-neutrals-white"]}]}),co=({variant:e="default",label:t="",disabled:n=!1,className:r="",onClick:o,iconName:s,iconSize:l="medium",hasIndicator:a=!1,hasTooltip:c=!0,isTransparent:u=!0,iconColor:d="",stateful:f=!1,...m})=>{const p=f||n;return i.jsxs("button",{onClick:b=>ao(b,p,o),"aria-disabled":p,"aria-label":t,"aria-pressed":f,"aria-live":f?"assertive":"off",className:pr(Lm({variant:e,isTransparent:u,disabled:p}),r),...m,children:[f&&e==="default"?i.jsx(Ur,{size:"medium",focusable:!1,label:t,ariaLive:"off"}):i.jsx($t,{size:e==="small"?"small":l,name:s!=null?s:"edit",hasIndicator:a,className:n?"ds:text-neutrals-dark":d&&d!==""?d:"ds:text-neutrals-black",altText:t}),e==="default"&&c&&i.jsx("div",{"aria-hidden":"true",className:`${p?"ds:group-hover:hidden":"ds:group-hover:block ds:group-active:block"} ds:absolute ds:left-1/2 ds:top-[3.5rem] ds:z-10 ds:hidden ds:-translate-x-1/2 ds:cursor-default ds:text-nowrap ds:rounded ds:bg-neutrals-darker ds:px-2 ds:py-1 ds:text-sm ds:font-normal ds:text-neutrals-white ds:transition-all ds:duration-100 ds:group-focus-visible:block`,children:t})]})},Dm=Be(["preflight","ds:flex","ds:w-full","ds:flex-row","ds:justify-between","ds:rounded","ds:pl-5","ds:pr-[14px]","ds:py-4","ds:font-sans!"],{variants:{variant:{success:["ds:bg-success-green-lightest","ds:text-success-green-darkest"],info:["ds:bg-information-blue-lightest","ds:text-information-blue-darkest"],warning:["ds:bg-warning-yellow-lightest","ds:text-neutrals-darker"],error:["ds:bg-danger-red-lightest","ds:text-danger-red-darkest"]}}}),Hm=e=>rt(Dm(e)),_m=Be("",{variants:{variant:{success:"ds:text-success-green-dark",info:"ds:text-information-blue-dark",warning:"ds:text-warning-yellow-darkest",error:"ds:text-danger-red-dark"}}}),kl=e=>rt(_m(e)),Am=Be("",{variants:{variant:{success:["ds:text-success-green-darkest","ds:stroke-success-green-darkest"],info:["ds:text-information-blue-darkest","ds:stroke-information-blue-darkest"],warning:["ds:text-neutrals-darker","ds:stroke-neutrals-darker"],error:["ds:text-danger-red-darkest","ds:stroke-danger-red-darkest"]}}}),kn=e=>rt(Am(e)),Aa=({variant:e="info",isDismissible:t=!0,showIcon:n=!0,titleSize:r="large",title:o="",description:s="",content:l=void 0,closeAriaLabel:a="Close button",id:c="alert_"+Ra().toString(),handleClose:u,className:d="",...f})=>{const m={success:i.jsx(ws,{className:kn({variant:e})}),info:i.jsx(Cs,{className:kn({variant:e})}),warning:i.jsx(xs,{className:kn({variant:e})}),error:i.jsx(ys,{className:kn({variant:e})})},p=()=>l!==void 0&&s!==""&&!(r!=="none"||o!==""),b=()=>r==="large"?"ds:flex-col ds:flex ds:gap-3":r==="small"?"ds:flex-row ds:flex ds:gap-3":"ds:flex";return i.jsxs("div",{id:c,className:rt(Hm({variant:e}),d),...f,children:[i.jsxs("div",{className:"ds:flex ds:flex-row",children:[n&&i.jsx("div",{className:`ds:flex ds:pr-2 ${r==="large"&&o!==""&&"ds:h-[1.75rem] ds:items-center"}`,children:m[e]}),i.jsxs("div",{className:`ds:flex ds:flex-col ${r!=="none"&&o!==""?"ds:gap-3":"ds:justify-center"}`,children:[i.jsxs("div",{className:b(),children:[r!=="none"&&o!==""&&i.jsx("h1",{className:r==="large"?"ds:text-xl ds:font-semibold":"ds:hidden",children:o}),i.jsxs("div",{className:kl({variant:e}),children:[r!=="none"&&o!==""&&i.jsx("span",{className:`${kn({variant:e})} ${r==="small"&&o!==""?"ds:pr-2 ds:text-base ds:font-semibold":"ds:hidden"}`,children:o}),i.jsx("span",{className:`${r==="none"||o===""?"ds:mb-3":""}`,children:s})]})]}),l&&i.jsx("div",{className:`${kl({variant:e})} ${p()?"ds:mt-3":""}`,children:l})]})]}),t===!0&&i.jsx("div",{className:"ds:-mt-2 ds:h-5",children:i.jsx(co,{variant:"default",iconSize:"small",iconName:"close",hasTooltip:!1,label:a,disabled:!1,iconColor:kn({variant:e}),onClick:u})})]})},Va=["preflight","ds:font-sans!","ds:rounded","ds:text-base","ds:font-semibold","ds:border","ds:transition","ds:duration-100","ds:text-nowrap","ds:focus-visible:ring-2","ds:focus-visible:outline-hidden","ds:focus-visible:ring-offset-2"],Vm=["ds:bg-neutrals-lighter!","ds:text-neutrals-dark!","ds:border-neutrals-light!","ds:cursor-not-allowed!","ds:hover:bg-neutrals-lighter!","ds:hover:border-neutrals-light!","ds:hover:text-neutrals-dark!","ds:focus-visible:ring-neutrals-black!","ds:focus-visible:border-neutrals-light!"],Nm=[...Va,"ds:p-1","ds:bg-neutrals-lighter!","ds:text-neutrals-dark!","ds:cursor-not-allowed!","ds:border-neutrals-lighter","ds:focus:border-neutrals-light","ds:focus-visible:ring-neutrals-black","ds:focus-visible:border-neutrals-light!","ds:active:border-neutrals-lighter"],$m=Be(Va,{variants:{variant:{primary:["ds:py-3","ds:px-4","ds:text-neutrals-white","ds:bg-acuity-blue","ds:border-acuity-blue","ds:hover:bg-acuity-blue-dark","ds:hover:border-acuity-blue-dark","ds:active:bg-acuity-blue-darkest","ds:active:border-acuity-blue-darkest","ds:active:text-neutrals-white","ds:focus-visible:text-neutrals-black","ds:focus-visible:bg-acuity-blue-light","ds:focus-visible:border-acuity-blue"],secondary:["ds:py-3","ds:px-4","ds:text-neutrals-black","ds:bg-neutrals-white","ds:border-neutrals","ds:hover:bg-neutrals-lighter","ds:hover:border-neutrals-darker","ds:active:bg-neutrals-dark","ds:active:border-neutrals-dark","ds:active:text-neutrals-white","ds:focus-visible:text-neutrals-black","ds:focus-visible:bg-neutrals-lighter","ds:focus-visible:border-neutrals-black","ds:focus-visible:ring-neutrals-black"],danger:["ds:py-3","ds:px-4","ds:text-neutrals-white","ds:bg-danger-red","ds:border-danger-red","ds:hover:bg-danger-red-dark","ds:hover:border-danger-red-dark","ds:active:bg-danger-red-darkest","ds:active:border-danger-red-darkest","ds:active:text-neutrals-white","ds:focus-visible:text-neutrals-black","ds:focus-visible:bg-danger-red-lighter","ds:focus-visible:border-danger-red-darkest"],inline:["ds:p-1","ds:text-neutrals-black","ds:bg-neutrals-white","ds:border-neutrals-white","ds:hover:bg-neutrals-lighter","ds:hover:border-neutrals-lighter","ds:active:bg-neutrals-dark","ds:active:border-neutrals-dark","ds:active:text-neutrals-white","ds:focus-visible:text-neutrals-black","ds:focus-visible:bg-neutrals-lighter","ds:focus-visible:border-neutrals-dark","ds:focus-visible:ring-neutrals-black"]},disabled:{true:Vm,false:[]}},compoundVariants:[{variant:"primary",disabled:!1,class:"ds:focus-visible:ring-acuity-blue"},{variant:"danger",disabled:!1,class:"ds:focus-visible:ring-danger-red-darkest"},{variant:["primary","danger"],disabled:!0,class:"ds:focus-visible:ring-neutrals-black"}]}),zm=(e,t,n)=>e==="inline"&&t===!0?pr(Nm):pr($m({variant:e,disabled:t}),n),Na=({variant:e="primary",text:t,label:n="",disabled:r=!1,className:o="",onClick:s,iconName:l,iconIndicator:a=!1,leadingIcon:c=!1,trailingIcon:u=!1,stateful:d=!1,...f})=>{const m=d||r;return i.jsx(i.Fragment,{children:i.jsx("button",{"aria-disabled":m,"aria-pressed":d,onClick:p=>ao(p,m,s),className:zm(e,m,o),"aria-label":n,"aria-live":d?"assertive":"off",...f,children:i.jsxs("div",{className:"ds:flex ds:flex-wrap ds:content-center ds:justify-center",children:[c&&(d?i.jsx(Ur,{size:"small",className:"ds:mr-2 ds:self-center",spinnerClassName:"ds:border-t-current ds:border-x-current ds:border-b-transparent",focusable:!1,label:n,ariaLive:"off"}):i.jsx($t,{size:"small",name:l!=null?l:"edit",hasIndicator:a,className:"ds:mr-2 ds:self-center",altText:""})),i.jsx("span",{children:t}),u&&(d?i.jsx(Ur,{size:"small",className:"ds:ml-2 ds:self-center",spinnerClassName:"ds:border-t-current ds:border-x-current ds:border-b-transparent",focusable:!1,ariaLive:"off",label:n}):i.jsx($t,{size:"small",name:l!=null?l:"edit",hasIndicator:a,className:"ds:ml-2 ds:self-center",altText:""}))]})})})},Gm=({content:e=void 0,iconName:t=void 0,title:n="",footer:r=void 0,className:o="",...s})=>i.jsxs("div",{...s,className:rt("preflight ds:flex ds:flex-col ds:items-start ds:gap-6 ds:rounded-lg ds:border ds:border-neutrals-light ds:p-5",o),children:[n&&i.jsxs("div",{className:"ds:flex ds:flex-row ds:items-center ds:gap-3",children:[t&&i.jsx($t,{size:"medium",name:t,className:"ds:text-neutrals-darker",hasIndicator:!1,altText:t}),i.jsx(Is,{size:"small",text:n,hasMarginBottom:!1})]}),e&&i.jsx("div",{className:"ds:w-full ds:text-base",children:e}),r&&i.jsx("div",{children:r})]}),Bm=Be(["preflight","ds:h-4","ds:w-4","ds:focus:ring-acuity-blue","ds:border-neutrals","ds:border","ds:border-solid"],{variants:{disabled:{false:["ds:text-acuity-blue","ds:bg-neutrals-white","ds:hover:border-acuity-blue","ds:hover:bg-acuity-blue-lightest","ds:hover:text-acuity-blue-dark","ds:active:border-acuity-blue-darkest","ds:active:bg-acuity-blue-darkest","ds:active:text-acuity-blue-darkest","ds:cursor-pointer"],true:["ds:text-neutrals","ds:bg-neutrals-lighter"]}}}),$a=e=>rt(Bm(e)),Wm=Be(["preflight","ds:font-sans!","ds:ml-2","ds:text-base"],{variants:{disabled:{false:"ds:cursor-pointer",true:"ds:text-neutrals"}}}),za=e=>rt(Wm(e)),ks={variants:{state:{default:["ds:border-neutrals","ds:text-neutrals-darker","ds:focus:border-acuity-blue","ds:focus:ring-acuity-blue","ds:focus:ring-offset-2","ds:focus:ring-2"],error:["ds:border-danger-red","ds:text-danger-red-darkest","ds:focus:border-danger-red","ds:focus:ring-danger-red-dark","ds:focus:ring-offset-2","ds:focus:ring-2"],success:["ds:border-success-green","ds:text-neutrals-darker","ds:focus:border-success-green","ds:focus:ring-success-green-dark","ds:focus:ring-offset-2","ds:focus:ring-2"]},disabled:{true:["ds:border-neutrals!","ds:text-neutrals-darker!","ds:bg-neutrals-lighter!","ds:focus:border-neutrals!","ds:focus:ring-neutrals-dark!","ds:cursor-not-allowed"]}}},qm=({id:e,label:t="",name:n="",checked:r=!1,disabled:o=!1,indeterminate:s=!1,onChange:l=()=>{},onClick:a=()=>{},...c})=>{const u=c["aria-label"]||t||"checkbox_"+e;return i.jsxs("div",{className:"ds:flex",children:[i.jsx("input",{id:e,name:n,"aria-label":u,"aria-disabled":o,type:"checkbox",className:`ds:form-checkbox ds:mt-1 ${$a({disabled:o})} ds:rounded`,checked:r,ref:d=>{d&&(d.indeterminate=s)},onClick:d=>ao(d,o,a),onChange:d=>_a(d,o,l),...c}),t&&i.jsx("label",{htmlFor:e,className:za({disabled:o}),children:t})]})},Um=e=>["Zero","One","Two","Three","Four","Five","Six","Seven","Eight","Nine"][e]||e.toString(),Km=({children:e,className:t="",onClick:n,successTitle:r,successDescription:o,errorTitle:s,buttonText:l,...a})=>{const c="formValidation_"+Ra().toString(),[u,d]=re.useState(!1),[f,m]=re.useState(!1),[p,b]=re.useState(""),[x,w]=re.useState(!0),[S,v]=re.useState(""),[F,j]=re.useState("success"),y=32,A=re.useMemo(()=>g.default.Children.toArray(e).filter(O=>g.default.isValidElement(O)),[e]),N=O=>{n(O),w(!1),m(!0),R(c)},M=O=>D=>{O&&O(D),x||d(!0)},P=g.default.Children.map(e,O=>{if(g.default.isValidElement(O)){const V=O;return g.default.cloneElement(V,{onBlur:M(V.props.onBlur)})}return O}),R=re.useCallback(O=>{const D=document.getElementById(O);if(D){const V=D.getBoundingClientRect().top+window.scrollY;window.scrollTo({top:V-y,behavior:"smooth"})}},[y]),_=re.useCallback(O=>{s?v(s):O==1?v("An error was found in the information you submitted"):v(`${Um(O)} errors were found in the information you submitted`)},[s]);return re.useEffect(()=>{if(u||f){const O=A.filter(D=>D.props.state=="error");O.length==0?u?w(!0):(j("success"),b(o),v(r)):u&&F=="success"?w(!0):(j("error"),b(i.jsx("ul",{children:O.map((D,V)=>i.jsx("li",{children:i.jsxs("span",{onClick:()=>R("label_"+D.props.id),children:[O.length>1?`${V+1}. `:"",D.props.message]})},D.props.id))})),_(O.length)),d(!1),m(!1)}},[A,R,_,o,r,u,f,F]),i.jsxs("div",{className:`prelight ${t}`,id:c,...a,children:[!x&&i.jsx("div",{className:"preflight ds:mb-6 ds:rounded",children:i.jsx(Aa,{description:p,isDismissible:F=="success",title:S,titleSize:F=="success"?"small":"large",variant:F,handleClose:()=>{w(!0)}})}),P,i.jsx(Na,{text:l,onClick:N})]})},yn="large",Bn="medium",Wn="small",qn="extra-large",Il="h1",Xm="h2",Ym="h3",Zm="div";function Qm(e){return{[yn]:Il,[Bn]:Xm,[Wn]:Ym,[qn]:Zm}[e]||Il}const Jm=Be("preflight ds:font-sans!",{variants:{size:{[Wn]:"ds:mb-3",[Bn]:"ds:mb-5",[yn]:"ds:mb-5",[qn]:"ds:mb-6"}}}),Dr=Be("ds:text-neutrals-darker ds:font-sans!",{variants:{size:{[Wn]:"ds:text-xl ds:font-semibold",[Bn]:"ds:text-2xl ds:font-semibold",[yn]:"ds:text-3xl ds:font-bold",[qn]:"ds:text-4xl ds:font-semibold"}}}),ep=Be("ds:mt-0 ds:font-bold ds:text-neutrals-dark",{variants:{size:{[Wn]:"ds:mb-1 ds:text-sm",[Bn]:"ds:mb-2 ds:text-sm",[yn]:"ds:mb-2 ds:text-base",[qn]:"ds:mb-3 ds:text-base"}}}),tp=Be("ds:mb-0 ds:text-neutrals-dark",{variants:{size:{[Wn]:"ds:mt-1 ds:text-base",[Bn]:"ds:mt-2 ds:text-base",[yn]:"ds:mt-2 ds:text-base",[qn]:"ds:mt-3 ds:text-base"}}}),np=Be("ds:text-neutrals-light",{variants:{size:{[Wn]:"ds:mt-2",[Bn]:"ds:mt-2",[yn]:"ds:mt-2",[qn]:"ds:mt-3"}}}),Is=({size:e=yn,className:t="",text:n="",descriptionTop:r="",descriptionBottom:o="",hasHorizontalRule:s=!1,hasMarginBottom:l=!0,headingTag:a,...c})=>{const u=r?i.jsx("p",{className:ep({size:e}),children:r}):null,d=o?i.jsx("p",{className:tp({size:e}),children:o}):null,f=s?i.jsx("hr",{className:np({size:e})}):null,m=l?Jm({size:e}):"preflight",p={div:i.jsx("div",{className:Dr({size:e}),children:n}),h3:i.jsx("h3",{className:Dr({size:e}),children:n}),h2:i.jsx("h2",{className:Dr({size:e}),children:n}),h1:i.jsx("h1",{className:Dr({size:e}),children:n})};return i.jsxs("div",{className:rt(m,t),...c,children:[u,p[a||Qm(e)],d,f]})},rp=({label:e="",name:t,id:n,disabled:r=!1,onChange:o=()=>{},onClick:s=()=>{},...l})=>i.jsxs("div",{className:"ds:flex ds:h-4 ds:items-center",children:[i.jsx("input",{id:n,name:t,type:"radio",className:`ds:form-radio ${$a({disabled:r})}`,"aria-disabled":r,onChange:a=>_a(a,r,o),onClick:a=>ao(a,r,s),...l}),i.jsx("label",{htmlFor:n,className:za({disabled:r}),children:e})]}),op=Be(["preflight","ds:font-sans!","ds:inline-flex","ds:items-center","ds:gap-1","ds:cursor-pointer","ds:text-acuity-blue","ds:active:text-acuity-blue-darkest","ds:focus-visible:outline-hidden","ds:focus-visible:border-2","ds:focus-visible:rounded","ds:focus-visible:border-acuity-blue","ds:focus-visible:px-[2px]","ds:focus-visible:py-[2px]","ds:focus-visible:-mx-[4px]","ds:focus-visible:-my-[4px]"],{variants:{type:{default:["ds:font-bold","ds:hover:underline"],inline:["ds:underline","ds:hover:no-underline","ds:active:no-underline","ds:visited:text-[#551A8B]"]}}}),sp=({text:e,href:t,type:n="default",iconName:r,...o})=>i.jsxs("a",{href:t,type:n,className:rt(op({type:n})),...o,children:[e,r&&i.jsx($t,{altText:e,name:r,size:"small"})]}),lp=({open:e=!1,onClose:t,title:n="",backdrop:r="static",content:o,footer:s,icon:l=!1,iconComponent:a,iconName:c=void 0,dismissible:u=!0,horizontalRule:d=!0})=>{const f=()=>a?i.jsx(i.Fragment,{children:a}):l&&c?i.jsx($t,{name:c,size:"medium"}):null,m=()=>r==="dismissible"?t():!0;return i.jsx(Sn.Transition,{appear:!0,show:e,as:re.Fragment,children:i.jsxs(Sn.Dialog,{as:"div",onClose:m,static:!0,className:"preflight ds:relative ds:z-20 ds:focus:outline-hidden",children:[r!=="none"&&i.jsx(Sn.TransitionChild,{as:re.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:i.jsx("div",{className:"ds:fixed ds:inset-0 ds:bg-neutrals-transparent-medium ds:transition-opacity","aria-hidden":"true"})}),i.jsx("div",{className:"ds:fixed ds:inset-0 ds:z-20 ds:w-screen ds:overflow-y-auto",children:i.jsx("div",{className:"ds:flex ds:min-h-full ds:items-center ds:justify-center ds:p-4",children:i.jsx(Sn.TransitionChild,{as:re.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",enterTo:"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 translate-y-0 sm:scale-100",leaveTo:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",children:i.jsxs(Sn.DialogPanel,{className:"ds:flex ds:max-h-[90vh] ds:min-w-full ds:max-w-full ds:transform ds:flex-col ds:rounded-lg ds:bg-neutrals-white ds:text-left ds:shadow-modal ds:sm:min-w-[15rem] ds:sm:max-w-[55%]",children:[i.jsxs("div",{className:`ds:flex ds:items-center ds:py-4 ${u?"ds:pl-5 ds:pr-3":"ds:px-5"}`,children:[l&&i.jsx("div",{className:"ds:mr-3",children:f()}),i.jsx(Sn.DialogTitle,{as:"div",className:"ds:flex-grow",children:i.jsx(Is,{text:n,headingTag:"h2",size:"medium",hasMarginBottom:!1})}),u&&i.jsx(co,{variant:"default",iconSize:"small",iconName:"close",hasTooltip:!1,label:"Close",disabled:!1,onClick:()=>t()})]}),d&&i.jsx("hr",{className:"ds:border-neutrals-light"}),o&&i.jsx("div",{className:`ds:h-auto ds:max-h-[48.6rem] ds:grow ds:overflow-y-auto ds:px-5 ${s?"ds:py-4":"ds:pb-5 ds:pt-4"}`,children:o}),s&&i.jsx("div",{className:"ds:flex ds:justify-end ds:gap-x-4 ds:px-5 ds:py-4",children:s})]})})})})]})})},ip=Be(["preflight","ds:rounded-xl","ds:border","ds:px-2","ds:py-1","ds:inline-flex","ds:items-center"],{variants:{color:{default:["ds:border-neutrals-light"],gray:["ds:bg-neutrals-lighter","ds:border-neutrals-lighter"],blue:["ds:bg-information-blue-lightest","ds:text-information-blue-darkest","ds:border-information-blue-lightest"],green:["ds:bg-success-green-lightest","ds:text-success-green-darkest","ds:border-success-green-lightest"],yellow:["ds:bg-warning-yellow-lightest","ds:text-warning-yellow-darkest","ds:border-warning-yellow-lightest"],red:["ds:bg-danger-red-lightest","ds:text-danger-red-darkest","ds:border-danger-red-lightest"]},type:{regular:["ds:text-base"],small:["ds:text-sm"]}}}),Ga=({label:e,type:t="regular",color:n="default",dismissible:r=!1,dismissLabel:o="",className:s="",onDismiss:l,...a})=>{const c=a["aria-label"]||e;return i.jsxs("div",{className:rt(ip({color:n,type:t}),s),"aria-label":c,...a,children:[i.jsx("div",{className:"ds:max-w-[200px] ds:truncate ds:leading-6",children:e}),r&&i.jsx(co,{variant:"small",iconName:"close",label:o||"dismiss",disabled:!1,onClick:()=>l&&l(),className:"ds:ms-1",isTransparent:!0})]})},ap=Be(["preflight","ds:transition","ds:duration-100","ds:text-nowrap","ds:font-sans!","ds:text-base","ds:p-2","ds:active:text-neutrals-white","ds:focus-visible:ring-neutrals-black","ds:focus-visible:ring-2","ds:focus-visible:outline-hidden","ds:focus-visible:ring-offset-2"],{variants:{isNested:{true:["ds:rounded-xl","ds:my-2","ds:mx-1","ds:border","ds:border-neutrals-lighter","ds:hover:bg-neutrals-light","ds:active:bg-neutrals-dark","ds:focus-visible:ring-neutrals-black","ds:focus-visible:ring-2","ds:focus-visible:outline-hidden","ds:focus-visible:ring-offset-2","ds:focus-visible:bg-neutrals-white"],false:["ds:rounded","ds:rounded-b-none","ds:border-b-2","ds:border-b-neutrals-white","ds:my-1","ds:mr-2","ds:hover:bg-acuity-green-lighter","ds:hover:border-b-acuity-green-lighter","ds:active:bg-acuity-green-darkest","ds:active:border-b-acuity-green-darkest","ds:focus-visible:bg-acuity-green-lightest","ds:focus-visible:border-b-acuity-green-lightest"]}}}),cp=({title:e,id:t,handleClick:n,isActive:r,isNested:o=!1,badgeText:s="",className:l="",...a})=>{const c=(u,d,f)=>rt(ap({isNested:u}),d&&!u&&"ds:border-b-acuity-green!",d&&u&&"ds:bg-neutrals-white ds:border-neutrals!",f);return i.jsxs("button",{className:c(o,r,l),role:"tab",id:`tab-${t}`,"aria-controls":`panel-${t}`,"aria-selected":r,onClick:n,...a,children:[e,s&&i.jsx(Ga,{label:s,className:"ds:ml-2 ds:h-5 ds:bg-neutrals-white ds:text-neutrals-black"})]})},up=({id:e,children:t,hidden:n})=>i.jsx("div",{role:"tabpanel",id:`panel-${e}`,"aria-labelledby":`tab-${e}`,hidden:n,className:"preflight",children:t}),dp=({children:e,handleTabChange:t,activeTabIndex:n,isNested:r,className:o="",...s})=>{const l=g.default.Children.toArray(e).filter(a=>{var c,u;return g.default.isValidElement(a)&&!!((c=a.props)!=null&&c.id)&&!!((u=a.props)!=null&&u.title)});return l.length<g.default.Children.toArray(e).length&&console.error("You can only pass <Tab> components with defined id and title as children of the <Tabs> component."),i.jsxs("div",{className:`preflight ${o}`,...s,children:[i.jsx("div",{role:"tablist",className:`preflight ds:mb-5 ds:rounded ${r&&"ds:mb-4! ds:bg-neutrals-lighter ds:px-2"}`,children:l.map((a,c)=>i.jsx(cp,{handleClick:()=>t(c),isActive:n===c,badgeText:a.props.badgeText,isNested:r,...a.props},`tab-${c}`))}),l.map((a,c)=>i.jsx(up,{id:a.props.id,hidden:n!==c,children:a.props.children},`panel-${c}`))]})},fp=({children:e})=>e,hp=Be(["preflight","ds:font-sans!","ds:text-base","ds:cursor-pointer","ds:w-[fit-content]"],{variants:{state:{default:["ds:text-neutrals-black"],error:["ds:text-danger-red-darkest"],success:["ds:text-success-green-darkest"]},disabled:{true:"ds:text-neutrals-dark!"}}}),gp=e=>rt(hp(e)),Ba=({id:e,state:t="default",disabled:n=!1,htmlFor:r,value:o="",optionalityLabel:s=""})=>i.jsxs("label",{id:e,htmlFor:r,className:gp({state:t,disabled:n}),children:[o,s&&i.jsx("span",{className:"ds:text-sm ds:text-neutrals-darker",children:` (${s})`})]}),mp=Be(["preflight","group","ds:flex","ds:flex-col","ds:container"],{variants:{state:{default:["ds:focus-within:[&>label]:text-acuity-blue"],error:["ds:focus-within:[&>label]:text-danger-red-darkest"],success:["ds:focus-within:[&>label]:text-success-green-darkest"]},hasMarginBottom:{true:""}},compoundVariants:[{state:"default",hasMarginBottom:!0,className:["ds:mb-6"]}]}),pp=e=>rt(mp(e)),bp=Be(["ds:font-sans!","ds:text-base"],{variants:{state:{default:["ds:text-neutrals-black","ds:mt-2"],error:["ds:text-danger-red","ds:mt-2"],success:["ds:text-success-green-dark","ds:truncate","ds:text-sm","ds:mt-1"]},hasMarginBottom:{true:["ds:mb-6"],false:["ds:mb-0"]},disabled:{true:"ds:text-neutrals-dark!"}}}),Cp=e=>rt(bp(e)),Ms=({id:e,state:t="default",disabled:n=!1,label:r="",optionalityLabel:o="",helpText:s=[],message:l="",child:a,isTextarea:c=!1,className:u="",hasMarginBottom:d=!0})=>{let f=null;switch(t){case"error":f={name:"error",color:"ds:text-danger-red"};break;case"success":f={name:"checkCircle",color:"ds:text-success-green"};break}const m=r?"label_"+e:void 0,p=s&&s.length>0?"helptext_"+e:void 0;return i.jsxs("div",{className:rt(pp({state:t,hasMarginBottom:d}),u),children:[r&&i.jsx(Ba,{id:m,htmlFor:e,value:r,optionalityLabel:o,disabled:n}),s&&s.length>1&&i.jsx("ul",{id:p,className:"ds:mt-2 ds:pb-1 ds:pl-6",children:s==null?void 0:s.map((b,x)=>i.jsx("li",{className:"ds:list-disc ds:text-neutrals-dark",children:b},x))}),s&&s.length===1&&i.jsx("p",{id:p,className:"ds:mt-2 ds:pb-1 ds:text-neutrals-dark",children:s}),i.jsxs("div",{className:"ds:mt-2 ds:flex ds:gap-2",children:[i.jsx("div",{className:c?"":"ds:w-[calc(100%-2rem)]",children:a}),i.jsx("div",{className:"ds:pt-2",children:f&&i.jsx($t,{name:f.name,size:"medium",className:f.color,role:"graphics-symbol"})})]}),f&&i.jsx("p",{className:Cp({state:t,hasMarginBottom:d}),children:l})]})},wp=Be(["preflight","ds:form-input","ds:rounded","ds:p-2","ds:border!","ds:font-sans!"],ks),xp=e=>rt(wp(e)),Wa=({state:e="default",rows:t=2,cols:n=50,isResizable:r=!0,disabled:o=!1,...s})=>i.jsx("textarea",{"aria-invalid":e=="error",rows:t,cols:n,readOnly:o,className:xp({disabled:o,state:e}),style:{resize:r?"both":"none"},...s}),yp=({id:e,state:t="default",label:n,rows:r=2,cols:o=50,isResizable:s=!0,optionalityLabel:l="",helpText:a=[],message:c="",disabled:u=!1,className:d="",hasMarginBottom:f=!0,onBlur:m,...p})=>i.jsx(Ms,{id:e,state:t,disabled:u,label:n,optionalityLabel:l,helpText:a,message:c,isTextarea:!0,className:d,hasMarginBottom:f,child:i.jsx(Wa,{id:e,"aria-labelledby":n?"label_"+e:void 0,"aria-describedby":a&&a.length>0?"helptext_"+e:void 0,state:t,rows:r,cols:o,isResizable:s,disabled:u,onBlur:m,...p})}),vp=Be(["preflight","ds:form-input","ds:h-[40px]","ds:rounded","ds:p-2","ds:border!","ds:font-sans!","ds:container"],ks),Sp=e=>rt(vp(e)),qa=re.forwardRef(({state:e="default",disabled:t=!1,type:n="text",...r},o)=>i.jsx("input",{"aria-disabled":t,readOnly:t,type:n,className:Sp({disabled:t,state:e}),ref:o,...r})),kp=re.forwardRef(({id:e,state:t="default",disabled:n=!1,type:r="text",label:o,optionalityLabel:s="",helpText:l=[],message:a="",className:c="",hasMarginBottom:u=!0,onBlur:d,...f},m)=>i.jsx(Ms,{id:e,state:t,disabled:n,label:o,optionalityLabel:s,helpText:l,message:a,className:c,hasMarginBottom:u,child:i.jsx(qa,{id:e,"aria-labelledby":o?"label_"+e:void 0,"aria-describedby":l&&l.length>0?"helptext_"+e:void 0,type:r,state:t,disabled:n,ref:m,onBlur:d,...f})})),Ip=Be(["preflight","ds:form-select","ds:h-[40px]","ds:rounded","ds:p-2","ds:border!","ds:font-sans!","ds:container","ds:bg-[center_right_0.25rem]"],ks),Mp=e=>Ip(e),Ep=`url('data:image/svg+xml,<svg width="16" height="16" viewBox="5 -5 15 35" fill="none" xmlns="http://www.w3.org/2000/svg" stroke="%23949494" ><path d="M21.375 8.09253L12.4417 17.025C12.3837 17.0831 12.3148 17.1291 12.2391 17.1605C12.1632 17.192 12.082 17.2082 12 17.2082C11.918 17.2082 11.8368 17.192 11.7609 17.1605C11.6852 17.1291 11.6163 17.0831 11.5583 17.025L2.625 8.09253" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" stroke="%23000000" /></svg>')`,Ua=re.forwardRef(({state:e="default",disabled:t=!1,className:n="",...r},o)=>{const{onClick:s,onKeyDown:l,onMouseDown:a,...c}=r;return i.jsx("select",{ref:o,"aria-disabled":t,style:{backgroundImage:Ep},className:rt(Mp({disabled:t,state:e}),n),onClick:u=>jm(u,t,s!=null?s:(()=>{})),onKeyDown:u=>Om(u,t,l!=null?l:(()=>{})),onMouseDown:u=>Rm(u,t,a!=null?a:(()=>{})),...c,children:r.children})}),Pp=re.forwardRef(({id:e,state:t="default",disabled:n=!1,label:r,optionalityLabel:o="",helpText:s=[],message:l="",className:a="",hasMarginBottom:c=!0,onBlur:u,...d},f)=>i.jsx(Ms,{id:e,state:t,disabled:n,label:r,optionalityLabel:o,helpText:s,message:l,className:a,hasMarginBottom:c,child:i.jsx(Ua,{id:e,"aria-labelledby":r?"label_"+e:void 0,"aria-describedby":s&&s.length>0?"helptext_"+e:void 0,state:t,disabled:n,onBlur:u,ref:f,...d})})),Tp=Be("ds:overflow-hidden ds:bg-neutrals-light",{variants:{size:{small:["ds:h-2","ds:rounded-sm"],large:["ds:h-4","ds:rounded"]}}}),Fp=Be("",{variants:{size:{small:["ds:h-2","ds:rounded-sm"],large:["ds:h-4","ds:rounded"]},state:{"in-progress":["ds:bg-acuity-blue"],error:["ds:bg-danger-red-dark"],success:["ds:bg-success-green"],indeterminate:["ds:bg-acuity-blue","ds:animate-progress"]}}}),jp=Be("ds:w-[3rem] ds:justify-end ds:flex ds:items-center ds:text-neutrals-dark",{variants:{size:{small:"ds:text-sm",large:""}}}),Op=Be("ds:text-sm",{variants:{state:{error:"ds:text-danger-red",success:"ds:text-neutrals-dark",indeterminate:"ds:text-neutrals-dark","in-progress":"ds:text-neutrals-dark"}}}),Rp=({size:e="large",label:t="",helperMessage:n="",className:r="",state:o="indeterminate",maxValue:s=100,value:l=0,hideIcon:a=!1,...c})=>{const u=()=>{let m=Math.round(l/s*100);return m<0?m=0:m>100&&(m=100),o!=="in-progress"?"100%":`${m}%`},d=()=>{if(a)return null;switch(o){case"in-progress":return u();case"error":return i.jsx($t,{name:"error",size:e==="small"?"small":"medium",className:"ds:float-right ds:text-danger-red-dark",role:"graphics-symbol",filled:!0});case"success":return i.jsx($t,{name:"checkCircle",size:e==="small"?"small":"medium",className:"ds:float-right ds:text-success-green-dark",role:"graphics-symbol",filled:!0});case"indeterminate":default:return null}},f=()=>o==="in-progress"||o==="indeterminate"?i.jsxs("div",{className:"ds:ml-1 ds:mt-2 ds:flex ds:w-[15px] ds:items-center ds:space-x-[2px]",children:[i.jsx("div",{className:"ds:h-[3px] ds:w-[3px] ds:animate-blink ds:rounded-full ds:bg-neutrals-black [animation-delay:-0.2s]"}),i.jsx("div",{className:"ds:h-[3px] ds:w-[3px] ds:animate-blink ds:rounded-full ds:bg-neutrals-black [animation-delay:-0.15s]"}),i.jsx("div",{className:"ds:h-[3px] ds:w-[3px] ds:animate-blink ds:rounded-full ds:bg-neutrals-black"})]}):null;return i.jsxs("div",{className:rt("preflight ds:min-w-[4.875rem]",r),...c,children:[i.jsxs("div",{className:"ds:flex ds:h-5 ds:items-center ds:justify-between",children:[i.jsxs("div",{className:"progress-bar-label ds:flex ds:max-w-[calc(100%-3rem)] ds:overflow-hidden",children:[i.jsx("p",{className:"ds:overflow-hidden ds:text-nowrap",children:t}),f()]}),i.jsx("div",{"aria-hidden":!0,className:jp({size:e}),children:d()})]}),i.jsx("div",{role:"progressbar",className:"ds:mb-1 ds:mt-1","aria-label":t,"aria-valuemin":0,"aria-valuenow":l,"aria-valuemax":s,"aria-valuetext":u(),children:i.jsx("div",{className:Tp({size:e}),children:i.jsx("div",{style:{width:u()},className:Fp({size:e,state:o})})})}),i.jsx("p",{className:Op({state:o}),children:n})]})},Lp=({text:e,onClick:t})=>i.jsx("div",{className:"bg-neutral-lighter/30 flex w-full items-center rounded-xl px-4 py-2",children:i.jsx("div",{className:"ml-5",children:i.jsxs(B.ButtonBase,{className:"focus-visible:outline-primary flex items-center rounded focus-visible:outline-2 focus-visible:outline-offset-2",onClick:t,children:[i.jsx(B.Box,{component:"span",className:"flex h-8 w-8 items-center justify-center rounded-md",sx:{bgcolor:"primary.main",color:"primary.contrastText"},children:i.jsx(ia.default,{})}),i.jsx("span",{className:"text-primary ml-5 text-sm font-bold select-none hover:underline",children:e})]})})}),Ml=6,Dp=({defaultValue:e="",inputLabel:t,isLoading:n,label:r,labelCancel:o="Cancel",labelSubmit:s="Add",placeholder:l,selectDefaultValue:a,selectOptions:c=[],showInput:u,withInput:d,withSelect:f,onCancel:m,onClick:p,onSelectChange:b,onSubmit:x,"data-testid":w})=>{const[S,v]=re.useState(!!u),[F,j]=re.useState(),[y,A]=re.useState(e),[N,M]=re.useState(a),P=re.useId(),R=()=>{v(!1),m==null||m()},_=()=>{d?v(!0):p==null||p()},O=V=>{if(V.preventDefault(),y.trim().length<Ml){j(`Must be at least ${Ml} characters`);return}j(void 0),x==null||x(y,N).then(()=>v(!1))},D=V=>{M(V),b==null||b(V)};return i.jsx("div",{className:"bg-neutral-lighter/40 flex w-full items-center rounded-xl px-8",children:S?i.jsxs("form",{className:"flex w-full py-2",onSubmit:O,children:[i.jsxs("div",{className:"flex w-full",children:[i.jsx("label",{className:"sr-only",htmlFor:P,children:t||l}),i.jsx(B.TextField,{autoFocus:!0,className:"w-1/2 rounded-xl bg-white",error:!!F,helperText:F,id:P,placeholder:l,size:"small",value:y,variant:"outlined",onChange:V=>A(V.target.value)}),f&&i.jsx(B.Select,{className:"ml-4 bg-white",size:"small",value:N,onChange:V=>D(V.target.value),children:c.map(V=>i.jsx(B.MenuItem,{value:V.value,children:V.label},String(V.value)))})]}),i.jsxs("div",{className:"flex gap-2 py-2",children:[i.jsx(B.Button,{className:"h-min",color:"primary",loading:n,type:"submit",variant:"contained",children:s}),i.jsx(B.Button,{className:"h-min",color:"primary",type:"button",variant:"outlined",onClick:R,children:o})]})]}):i.jsxs("button",{className:"flex cursor-pointer items-center border-none bg-transparent py-4","data-testid":w,style:{fontFamily:"inherit"},type:"button",onClick:_,children:[i.jsx("span",{"aria-hidden":"true",className:"bg-primary hover:bg-primary-dark flex h-8 w-8 items-center justify-center rounded-md text-white shadow-sm transition-colors",children:i.jsx(ia.default,{})}),r&&i.jsx("span",{className:"text-primary ml-4 text-sm font-bold select-none hover:underline",children:r})]})})},Hp=({accept:e,description:t,buttonLabel:n,onFileDrop:r})=>{const o=re.useId(),[s,l]=re.useState(!1),a=re.useCallback(f=>{var b;if(e.includes("image/*")&&f.type.startsWith("image/")||e.includes("video/*")&&f.type.startsWith("video/")||e.includes("application/pdf")&&f.type==="application/pdf")return!0;const m=e.split(",").map(x=>x.trim().toLowerCase()),p=`.${(b=f.name.split(".").pop())==null?void 0:b.toLowerCase()}`;return m.includes(p)},[e]),c=re.useCallback(f=>{f.preventDefault(),f.stopPropagation(),l(f.type==="dragenter"||f.type==="dragover")},[]),u=re.useCallback(f=>{var p;f.preventDefault(),f.stopPropagation(),l(!1);const m=(p=f.dataTransfer.files)==null?void 0:p[0];m&&a(m)&&r(m)},[r,a]),d=f=>{var p;const m=(p=f.target.files)==null?void 0:p[0];m&&a(m)&&(r(m),f.target.value="")};return i.jsxs(B.Box,{sx:{aspectRatio:"2 / 1",border:"2px dashed",borderColor:s?"primary.main":"#D9D9D9",borderRadius:2,display:"flex",alignItems:"center",justifyContent:"center",textAlign:"center",cursor:"pointer",transition:f=>f.transitions.create("all",{duration:f.transitions.duration.standard}),userSelect:"none"},onDragEnter:c,onDragLeave:c,onDragOver:c,onDrop:u,children:[i.jsx("input",{accept:e,id:o,style:{display:"none"},type:"file",onChange:d}),i.jsxs(B.Box,{component:"label",htmlFor:o,sx:{width:"100%",height:"100%",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",cursor:"pointer"},children:[i.jsx(B.Box,{sx:{width:36,height:36,display:"flex",alignItems:"center",justifyContent:"center",border:"1px solid rgba(51, 51, 51, 0.10)",borderRadius:1,mb:5},children:i.jsx(mh.default,{})}),i.jsx(B.Typography,{sx:{color:"text.secondary",mb:5},variant:"body2",children:t}),i.jsx(B.Button,{component:"span",sx:{minWidth:100,borderRadius:"1rem",fontSize:"1rem",fontWeight:700},variant:"contained",onKeyDown:f=>{var m;(f.key==="Enter"||f.key===" ")&&(f.preventDefault(),(m=document.getElementById(o))==null||m.click())},children:n})]})]})},_p=({isOpen:e,severity:t,title:n,message:r,onClose:o})=>e?i.jsxs(B.Alert,{severity:t,onClose:o,children:[i.jsx(B.Typography,{sx:{mt:"-2px",fontSize:"1rem",fontWeight:700},children:n}),i.jsx(B.Typography,{sx:{mt:1,fontSize:"0.875rem"},children:r})]}):null,Es=re.createContext(null),Ka=()=>re.useContext(Es),Xa=({children:e,isOpen:t,onClose:n,ariaLabel:r="Navigation menu"})=>{const o=Ka(),s=re.useRef(null),l=re.useCallback(()=>{var u,d,f;return(f=(d=o==null?void 0:o.current)!=null?d:(u=s.current)==null?void 0:u.parentElement)!=null?f:null},[o]),a=re.useCallback(u=>{const d=u==null?void 0:u.parentElement;!u||!d||u.offsetParent!==d||(u.style.top=`${d.scrollTop}px`,u.style.bottom=`${-d.scrollTop}px`)},[]),c=re.useCallback(u=>{u.focus({preventScroll:!0})},[]);return i.jsxs(i.Fragment,{children:[i.jsx("span",{ref:s,hidden:!0}),i.jsx(B.Drawer,{ref:a,anchor:"left",container:l,elevation:8,ModalProps:{disableAutoFocus:!0},open:t,slotProps:{backdrop:{sx:{position:"absolute",backgroundColor:"rgba(0,0,0,0.25)"}},paper:{role:"dialog","aria-modal":!0,"aria-label":r,tabIndex:-1,sx:{position:"absolute",width:"300px"}},transition:{onEnter:c}},sx:{position:"absolute"},onClose:n,children:i.jsx(B.Box,{sx:{overflow:"auto",flex:1},children:i.jsx(B.Box,{sx:{display:"flex",flexDirection:"column",height:"100%",pt:"1rem",pr:1.5,pl:2},children:e})})})]})},Ap=256,Vp=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])','[contenteditable]:not([contenteditable="false"])'].join(", "),El=e=>e?Array.from(e.querySelectorAll(Vp)).filter(t=>t.tabIndex>=0&&t.getClientRects().length>0):[],Np=e=>{const t=document.activeElement,n=e==null?void 0:e.closest('[role="dialog"]');return t===document.body||!!(n!=null&&n.contains(t))},$p=(e,t)=>{var a;const n=t!=null&&t.matches("nav")?t:t==null?void 0:t.querySelector("nav");if(!n)return;const r=El(e),o=r.findIndex(c=>c===document.activeElement),s=r.length?El(n).slice(-r.length):[],l=(a=s[o])!=null?a:s[0];if(l){l.focus();return}n.hasAttribute("tabindex")||(n.tabIndex=-1,n.addEventListener("blur",()=>n.removeAttribute("tabindex"),{once:!0})),n.focus()},zp=({children:e,navigationSlot:t,logoSlot:n,mobileLogoSlot:r,headerSlot:o,sideDrawerSlot:s,sideDrawerWidth:l=400,isSideDrawerOpen:a=!1,backgroundColor:c,navigationAriaLabel:u="Main navigation"})=>{var F,j,y,A;const d=ge.useTheme(),[f,m]=re.useState(!1),p=re.useRef(null),b=B.useMediaQuery(d.breakpoints.up("md")),x=re.useRef(null),w=re.useRef(null),S=re.useRef(null),v=re.useRef(!1);return b&&f&&m(!1),re.useEffect(()=>{var M;const N=v.current&&!f;v.current=f,!(!N||!Np(S.current))&&(b?$p(S.current,x.current):(M=w.current)==null||M.focus())},[b,f]),i.jsxs(B.Box,{sx:{height:"100vh",maxHeight:"100vh",display:"flex",flexDirection:"row",padding:"1rem 1rem 1rem 0",overflow:"hidden",bgcolor:(j=c!=null?c:(F=d.palette.neutral)==null?void 0:F.lighter)!=null?j:"#F5F5F5",transition:d.transitions.create("margin-right",{easing:d.transitions.easing.sharp,duration:a?d.transitions.duration.enteringScreen:d.transitions.duration.leavingScreen}),marginRight:a?`${l}px`:0,[d.breakpoints.down("sm")]:{padding:0,marginRight:0}},children:[i.jsxs(B.Box,{sx:{width:`${Ap}px`,flexShrink:0,display:"flex",flexDirection:"column",px:2,py:"1rem",[d.breakpoints.down("md")]:{display:"none"}},children:[n&&i.jsx(B.Box,{sx:{mb:2},children:n}),i.jsx(B.Box,{ref:x,component:"nav","aria-label":u,sx:{flex:1,display:"flex",flexDirection:"column",minHeight:0},children:t})]}),i.jsxs(B.Box,{sx:{flex:1,display:"flex",flexDirection:"column",borderRadius:"8px",overflow:"hidden",bgcolor:(A=(y=d.palette.common)==null?void 0:y.white)!=null?A:"#FFFFFF"},children:[i.jsx(B.AppBar,{color:"transparent",elevation:0,position:"static",sx:{display:"none",[d.breakpoints.down("md")]:{display:"flex"}},children:i.jsxs(B.Toolbar,{variant:"dense",sx:{justifyContent:"space-between",px:{xs:"15px",sm:"1rem"}},children:[i.jsxs(B.Box,{sx:{display:"flex",alignItems:"center",gap:1},children:[i.jsx(B.IconButton,{ref:w,"aria-label":"Open navigation menu",size:"small",onClick:()=>m(!0),children:i.jsx(ph.default,{})}),r]}),o&&i.jsx(B.Box,{sx:{display:"flex",alignItems:"center",gap:1},children:o})]})}),i.jsx(B.AppBar,{color:"transparent",elevation:0,position:"static",sx:{[d.breakpoints.down("md")]:{display:"none"}},children:i.jsx(B.Toolbar,{variant:"dense",sx:{justifyContent:"flex-end",px:"2em"},children:o&&i.jsx(B.Box,{sx:{display:"flex",alignItems:"center",gap:1},children:o})})}),i.jsx(Es.Provider,{value:p,children:i.jsxs(B.Box,{ref:p,sx:{flex:1,overflow:"auto",position:"relative"},children:[i.jsxs(Xa,{isOpen:f,onClose:()=>m(!1),children:[r&&i.jsx(B.Box,{sx:{mb:2},children:r}),i.jsx(B.Box,{ref:S,"aria-label":u,component:"nav",sx:{flex:1,display:"flex",flexDirection:"column",minHeight:0},children:t})]}),e]})})]}),s]})},Ps=g.createContext(void 0);process.env.NODE_ENV!=="production"&&(Ps.displayName="GridApiContext");function ke(){const e=g.useContext(Ps);if(e===void 0)throw new Error(["MUI X: Could not find the Data Grid context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the Data Grid."].join(`
2
+ `));return e}const Ts=g.createContext(void 0);process.env.NODE_ENV!=="production"&&(Ts.displayName="GridRootPropsContext");const ue=()=>{const e=g.useContext(Ts);if(!e)throw new Error("MUI X: useGridRootProps should only be used inside the DataGrid, DataGridPro or DataGridPremium component.");return e};function C(){return C=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},C.apply(null,arguments)}function Ya(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Hr={exports:{}},_r={exports:{}},Ne={};/** @license React v16.13.1
3
3
  * react-is.production.min.js
4
4
  *
5
5
  * Copyright (c) Facebook, Inc. and its affiliates.
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var El;function Vp(){if(El)return Ne;El=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,k=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function F(y){if(typeof y=="object"&&y!==null){var A=y.$$typeof;switch(A){case t:switch(y=y.type,y){case c:case u:case r:case s:case o:case h:return y;default:switch(y=y&&y.$$typeof,y){case a:case d:case b:case p:case l:return y;default:return A}}case n:return A}}}function j(y){return F(y)===u}return Ne.AsyncMode=c,Ne.ConcurrentMode=u,Ne.ContextConsumer=a,Ne.ContextProvider=l,Ne.Element=t,Ne.ForwardRef=d,Ne.Fragment=r,Ne.Lazy=b,Ne.Memo=p,Ne.Portal=n,Ne.Profiler=s,Ne.StrictMode=o,Ne.Suspense=h,Ne.isAsyncMode=function(y){return j(y)||F(y)===c},Ne.isConcurrentMode=j,Ne.isContextConsumer=function(y){return F(y)===a},Ne.isContextProvider=function(y){return F(y)===l},Ne.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===t},Ne.isForwardRef=function(y){return F(y)===d},Ne.isFragment=function(y){return F(y)===r},Ne.isLazy=function(y){return F(y)===b},Ne.isMemo=function(y){return F(y)===p},Ne.isPortal=function(y){return F(y)===n},Ne.isProfiler=function(y){return F(y)===s},Ne.isStrictMode=function(y){return F(y)===o},Ne.isSuspense=function(y){return F(y)===h},Ne.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===r||y===u||y===s||y===o||y===h||y===m||typeof y=="object"&&y!==null&&(y.$$typeof===b||y.$$typeof===p||y.$$typeof===l||y.$$typeof===a||y.$$typeof===d||y.$$typeof===w||y.$$typeof===k||y.$$typeof===v||y.$$typeof===x)},Ne.typeOf=F,Ne}var $e={};/** @license React v16.13.1
9
+ */var Pl;function Gp(){if(Pl)return Ne;Pl=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function F(y){if(typeof y=="object"&&y!==null){var A=y.$$typeof;switch(A){case t:switch(y=y.type,y){case c:case u:case r:case s:case o:case f:return y;default:switch(y=y&&y.$$typeof,y){case a:case d:case b:case p:case l:return y;default:return A}}case n:return A}}}function j(y){return F(y)===u}return Ne.AsyncMode=c,Ne.ConcurrentMode=u,Ne.ContextConsumer=a,Ne.ContextProvider=l,Ne.Element=t,Ne.ForwardRef=d,Ne.Fragment=r,Ne.Lazy=b,Ne.Memo=p,Ne.Portal=n,Ne.Profiler=s,Ne.StrictMode=o,Ne.Suspense=f,Ne.isAsyncMode=function(y){return j(y)||F(y)===c},Ne.isConcurrentMode=j,Ne.isContextConsumer=function(y){return F(y)===a},Ne.isContextProvider=function(y){return F(y)===l},Ne.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===t},Ne.isForwardRef=function(y){return F(y)===d},Ne.isFragment=function(y){return F(y)===r},Ne.isLazy=function(y){return F(y)===b},Ne.isMemo=function(y){return F(y)===p},Ne.isPortal=function(y){return F(y)===n},Ne.isProfiler=function(y){return F(y)===s},Ne.isStrictMode=function(y){return F(y)===o},Ne.isSuspense=function(y){return F(y)===f},Ne.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===r||y===u||y===s||y===o||y===f||y===m||typeof y=="object"&&y!==null&&(y.$$typeof===b||y.$$typeof===p||y.$$typeof===l||y.$$typeof===a||y.$$typeof===d||y.$$typeof===w||y.$$typeof===S||y.$$typeof===v||y.$$typeof===x)},Ne.typeOf=F,Ne}var $e={};/** @license React v16.13.1
10
10
  * react-is.development.js
11
11
  *
12
12
  * Copyright (c) Facebook, Inc. and its affiliates.
13
13
  *
14
14
  * This source code is licensed under the MIT license found in the
15
15
  * LICENSE file in the root directory of this source tree.
16
- */var Pl;function Np(){return Pl||(Pl=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,k=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function F(Z){return typeof Z=="string"||typeof Z=="function"||Z===r||Z===u||Z===s||Z===o||Z===h||Z===m||typeof Z=="object"&&Z!==null&&(Z.$$typeof===b||Z.$$typeof===p||Z.$$typeof===l||Z.$$typeof===a||Z.$$typeof===d||Z.$$typeof===w||Z.$$typeof===k||Z.$$typeof===v||Z.$$typeof===x)}function j(Z){if(typeof Z=="object"&&Z!==null){var oe=Z.$$typeof;switch(oe){case t:var ee=Z.type;switch(ee){case c:case u:case r:case s:case o:case h:return ee;default:var ae=ee&&ee.$$typeof;switch(ae){case a:case d:case b:case p:case l:return ae;default:return oe}}case n:return oe}}}var y=c,A=u,N=a,M=l,P=t,R=d,_=r,O=b,D=p,V=n,E=s,T=o,L=h,$=!1;function G(Z){return $||($=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),S(Z)||j(Z)===c}function S(Z){return j(Z)===u}function H(Z){return j(Z)===a}function z(Z){return j(Z)===l}function q(Z){return typeof Z=="object"&&Z!==null&&Z.$$typeof===t}function U(Z){return j(Z)===d}function Q(Z){return j(Z)===r}function X(Z){return j(Z)===b}function W(Z){return j(Z)===p}function K(Z){return j(Z)===n}function Y(Z){return j(Z)===s}function J(Z){return j(Z)===o}function ne(Z){return j(Z)===h}$e.AsyncMode=y,$e.ConcurrentMode=A,$e.ContextConsumer=N,$e.ContextProvider=M,$e.Element=P,$e.ForwardRef=R,$e.Fragment=_,$e.Lazy=O,$e.Memo=D,$e.Portal=V,$e.Profiler=E,$e.StrictMode=T,$e.Suspense=L,$e.isAsyncMode=G,$e.isConcurrentMode=S,$e.isContextConsumer=H,$e.isContextProvider=z,$e.isElement=q,$e.isForwardRef=U,$e.isFragment=Q,$e.isLazy=X,$e.isMemo=W,$e.isPortal=K,$e.isProfiler=Y,$e.isStrictMode=J,$e.isSuspense=ne,$e.isValidElementType=F,$e.typeOf=j})()),$e}var Tl;function Ya(){return Tl||(Tl=1,process.env.NODE_ENV==="production"?_r.exports=Vp():_r.exports=Np()),_r.exports}/*
16
+ */var Tl;function Bp(){return Tl||(Tl=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function F(Z){return typeof Z=="string"||typeof Z=="function"||Z===r||Z===u||Z===s||Z===o||Z===f||Z===m||typeof Z=="object"&&Z!==null&&(Z.$$typeof===b||Z.$$typeof===p||Z.$$typeof===l||Z.$$typeof===a||Z.$$typeof===d||Z.$$typeof===w||Z.$$typeof===S||Z.$$typeof===v||Z.$$typeof===x)}function j(Z){if(typeof Z=="object"&&Z!==null){var se=Z.$$typeof;switch(se){case t:var ee=Z.type;switch(ee){case c:case u:case r:case s:case o:case f:return ee;default:var ae=ee&&ee.$$typeof;switch(ae){case a:case d:case b:case p:case l:return ae;default:return se}}case n:return se}}}var y=c,A=u,N=a,M=l,P=t,R=d,_=r,O=b,D=p,V=n,E=s,T=o,L=f,$=!1;function G(Z){return $||($=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),k(Z)||j(Z)===c}function k(Z){return j(Z)===u}function H(Z){return j(Z)===a}function z(Z){return j(Z)===l}function q(Z){return typeof Z=="object"&&Z!==null&&Z.$$typeof===t}function U(Z){return j(Z)===d}function Q(Z){return j(Z)===r}function X(Z){return j(Z)===b}function W(Z){return j(Z)===p}function K(Z){return j(Z)===n}function Y(Z){return j(Z)===s}function J(Z){return j(Z)===o}function ne(Z){return j(Z)===f}$e.AsyncMode=y,$e.ConcurrentMode=A,$e.ContextConsumer=N,$e.ContextProvider=M,$e.Element=P,$e.ForwardRef=R,$e.Fragment=_,$e.Lazy=O,$e.Memo=D,$e.Portal=V,$e.Profiler=E,$e.StrictMode=T,$e.Suspense=L,$e.isAsyncMode=G,$e.isConcurrentMode=k,$e.isContextConsumer=H,$e.isContextProvider=z,$e.isElement=q,$e.isForwardRef=U,$e.isFragment=Q,$e.isLazy=X,$e.isMemo=W,$e.isPortal=K,$e.isProfiler=Y,$e.isStrictMode=J,$e.isSuspense=ne,$e.isValidElementType=F,$e.typeOf=j})()),$e}var Fl;function Za(){return Fl||(Fl=1,process.env.NODE_ENV==="production"?_r.exports=Gp():_r.exports=Bp()),_r.exports}/*
17
17
  object-assign
18
18
  (c) Sindre Sorhus
19
19
  @license MIT
20
- */var Fo,Fl;function $p(){if(Fl)return Fo;Fl=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function o(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var l={},a=0;a<10;a++)l["_"+String.fromCharCode(a)]=a;var c=Object.getOwnPropertyNames(l).map(function(d){return l[d]});if(c.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(d){u[d]=d}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch(d){return!1}}return Fo=o()?Object.assign:function(s,l){for(var a,c=r(s),u,d=1;d<arguments.length;d++){a=Object(arguments[d]);for(var h in a)t.call(a,h)&&(c[h]=a[h]);if(e){u=e(a);for(var m=0;m<u.length;m++)n.call(a,u[m])&&(c[u[m]]=a[u[m]])}}return c},Fo}var jo,jl;function Fs(){if(jl)return jo;jl=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return jo=e,jo}var Oo,Ol;function Za(){return Ol||(Ol=1,Oo=Function.call.bind(Object.prototype.hasOwnProperty)),Oo}var Ro,Rl;function zp(){if(Rl)return Ro;Rl=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Fs(),n={},r=Za();e=function(s){var l="Warning: "+s;typeof console!="undefined"&&console.error(l);try{throw new Error(l)}catch(a){}}}function o(s,l,a,c,u){if(process.env.NODE_ENV!=="production"){for(var d in s)if(r(s,d)){var h;try{if(typeof s[d]!="function"){var m=Error((c||"React class")+": "+a+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw m.name="Invariant Violation",m}h=s[d](l,d,c,a,null,t)}catch(b){h=b}if(h&&!(h instanceof Error)&&e((c||"React class")+": type specification of "+a+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof h+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),h instanceof Error&&!(h.message in n)){n[h.message]=!0;var p=u?u():"";e("Failed "+a+" type: "+h.message+(p!=null?p:""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Ro=o,Ro}var Lo,Ll;function Gp(){if(Ll)return Lo;Ll=1;var e=Ya(),t=$p(),n=Fs(),r=Za(),o=zp(),s=function(){};process.env.NODE_ENV!=="production"&&(s=function(a){var c="Warning: "+a;typeof console!="undefined"&&console.error(c);try{throw new Error(c)}catch(u){}});function l(){return null}return Lo=function(a,c){var u=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function h(S){var H=S&&(u&&S[u]||S[d]);if(typeof H=="function")return H}var m="<<anonymous>>",p={array:k("array"),bigint:k("bigint"),bool:k("boolean"),func:k("function"),number:k("number"),object:k("object"),string:k("string"),symbol:k("symbol"),any:v(),arrayOf:F,element:j(),elementType:y(),instanceOf:A,node:R(),objectOf:M,oneOf:N,oneOfType:P,shape:O,exact:D};function b(S,H){return S===H?S!==0||1/S===1/H:S!==S&&H!==H}function x(S,H){this.message=S,this.data=H&&typeof H=="object"?H:{},this.stack=""}x.prototype=Error.prototype;function w(S){if(process.env.NODE_ENV!=="production")var H={},z=0;function q(Q,X,W,K,Y,J,ne){if(K=K||m,J=J||W,ne!==n){if(c){var Z=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 Z.name="Invariant Violation",Z}else if(process.env.NODE_ENV!=="production"&&typeof console!="undefined"){var oe=K+":"+W;!H[oe]&&z<3&&(s("You are manually calling a React.PropTypes validation function for the `"+J+"` prop on `"+K+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),H[oe]=!0,z++)}}return X[W]==null?Q?X[W]===null?new x("The "+Y+" `"+J+"` is marked as required "+("in `"+K+"`, but its value is `null`.")):new x("The "+Y+" `"+J+"` is marked as required in "+("`"+K+"`, but its value is `undefined`.")):null:S(X,W,K,Y,J)}var U=q.bind(null,!1);return U.isRequired=q.bind(null,!0),U}function k(S){function H(z,q,U,Q,X,W){var K=z[q],Y=T(K);if(Y!==S){var J=L(K);return new x("Invalid "+Q+" `"+X+"` of type "+("`"+J+"` supplied to `"+U+"`, expected ")+("`"+S+"`."),{expectedType:S})}return null}return w(H)}function v(){return w(l)}function F(S){function H(z,q,U,Q,X){if(typeof S!="function")return new x("Property `"+X+"` of component `"+U+"` has invalid PropType notation inside arrayOf.");var W=z[q];if(!Array.isArray(W)){var K=T(W);return new x("Invalid "+Q+" `"+X+"` of type "+("`"+K+"` supplied to `"+U+"`, expected an array."))}for(var Y=0;Y<W.length;Y++){var J=S(W,Y,U,Q,X+"["+Y+"]",n);if(J instanceof Error)return J}return null}return w(H)}function j(){function S(H,z,q,U,Q){var X=H[z];if(!a(X)){var W=T(X);return new x("Invalid "+U+" `"+Q+"` of type "+("`"+W+"` supplied to `"+q+"`, expected a single ReactElement."))}return null}return w(S)}function y(){function S(H,z,q,U,Q){var X=H[z];if(!e.isValidElementType(X)){var W=T(X);return new x("Invalid "+U+" `"+Q+"` of type "+("`"+W+"` supplied to `"+q+"`, expected a single ReactElement type."))}return null}return w(S)}function A(S){function H(z,q,U,Q,X){if(!(z[q]instanceof S)){var W=S.name||m,K=G(z[q]);return new x("Invalid "+Q+" `"+X+"` of type "+("`"+K+"` supplied to `"+U+"`, expected ")+("instance of `"+W+"`."))}return null}return w(H)}function N(S){if(!Array.isArray(S))return process.env.NODE_ENV!=="production"&&(arguments.length>1?s("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):s("Invalid argument supplied to oneOf, expected an array.")),l;function H(z,q,U,Q,X){for(var W=z[q],K=0;K<S.length;K++)if(b(W,S[K]))return null;var Y=JSON.stringify(S,function(ne,Z){var oe=L(Z);return oe==="symbol"?String(Z):Z});return new x("Invalid "+Q+" `"+X+"` of value `"+String(W)+"` "+("supplied to `"+U+"`, expected one of "+Y+"."))}return w(H)}function M(S){function H(z,q,U,Q,X){if(typeof S!="function")return new x("Property `"+X+"` of component `"+U+"` has invalid PropType notation inside objectOf.");var W=z[q],K=T(W);if(K!=="object")return new x("Invalid "+Q+" `"+X+"` of type "+("`"+K+"` supplied to `"+U+"`, expected an object."));for(var Y in W)if(r(W,Y)){var J=S(W,Y,U,Q,X+"."+Y,n);if(J instanceof Error)return J}return null}return w(H)}function P(S){if(!Array.isArray(S))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var H=0;H<S.length;H++){var z=S[H];if(typeof z!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+$(z)+" at index "+H+"."),l}function q(U,Q,X,W,K){for(var Y=[],J=0;J<S.length;J++){var ne=S[J],Z=ne(U,Q,X,W,K,n);if(Z==null)return null;Z.data&&r(Z.data,"expectedType")&&Y.push(Z.data.expectedType)}var oe=Y.length>0?", expected one of type ["+Y.join(", ")+"]":"";return new x("Invalid "+W+" `"+K+"` supplied to "+("`"+X+"`"+oe+"."))}return w(q)}function R(){function S(H,z,q,U,Q){return V(H[z])?null:new x("Invalid "+U+" `"+Q+"` supplied to "+("`"+q+"`, expected a ReactNode."))}return w(S)}function _(S,H,z,q,U){return new x((S||"React class")+": "+H+" type `"+z+"."+q+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+U+"`.")}function O(S){function H(z,q,U,Q,X){var W=z[q],K=T(W);if(K!=="object")return new x("Invalid "+Q+" `"+X+"` of type `"+K+"` "+("supplied to `"+U+"`, expected `object`."));for(var Y in S){var J=S[Y];if(typeof J!="function")return _(U,Q,X,Y,L(J));var ne=J(W,Y,U,Q,X+"."+Y,n);if(ne)return ne}return null}return w(H)}function D(S){function H(z,q,U,Q,X){var W=z[q],K=T(W);if(K!=="object")return new x("Invalid "+Q+" `"+X+"` of type `"+K+"` "+("supplied to `"+U+"`, expected `object`."));var Y=t({},z[q],S);for(var J in Y){var ne=S[J];if(r(S,J)&&typeof ne!="function")return _(U,Q,X,J,L(ne));if(!ne)return new x("Invalid "+Q+" `"+X+"` key `"+J+"` supplied to `"+U+"`.\nBad object: "+JSON.stringify(z[q],null," ")+`
21
- Valid keys: `+JSON.stringify(Object.keys(S),null," "));var Z=ne(W,J,U,Q,X+"."+J,n);if(Z)return Z}return null}return w(H)}function V(S){switch(typeof S){case"number":case"string":case"undefined":return!0;case"boolean":return!S;case"object":if(Array.isArray(S))return S.every(V);if(S===null||a(S))return!0;var H=h(S);if(H){var z=H.call(S),q;if(H!==S.entries){for(;!(q=z.next()).done;)if(!V(q.value))return!1}else for(;!(q=z.next()).done;){var U=q.value;if(U&&!V(U[1]))return!1}}else return!1;return!0;default:return!1}}function E(S,H){return S==="symbol"?!0:H?H["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&H instanceof Symbol:!1}function T(S){var H=typeof S;return Array.isArray(S)?"array":S instanceof RegExp?"object":E(H,S)?"symbol":H}function L(S){if(typeof S=="undefined"||S===null)return""+S;var H=T(S);if(H==="object"){if(S instanceof Date)return"date";if(S instanceof RegExp)return"regexp"}return H}function $(S){var H=L(S);switch(H){case"array":case"object":return"an "+H;case"boolean":case"date":case"regexp":return"a "+H;default:return H}}function G(S){return!S.constructor||!S.constructor.name?m:S.constructor.name}return p.checkPropTypes=o,p.resetWarningCache=o.resetWarningCache,p.PropTypes=p,p},Lo}var Do,Dl;function Bp(){if(Dl)return Do;Dl=1;var e=Fs();function t(){}function n(){}return n.resetWarningCache=t,Do=function(){function r(l,a,c,u,d,h){if(h!==e){var m=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 m.name="Invariant Violation",m}}r.isRequired=r;function o(){return r}var s={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return s.PropTypes=s,s},Do}var Hl;function Wp(){if(Hl)return Hr.exports;if(Hl=1,process.env.NODE_ENV!=="production"){var e=Ya(),t=!0;Hr.exports=Gp()(e.isElement,t)}else Hr.exports=Bp()();return Hr.exports}var qp=Wp();const f=Xa(qp),Up=parseInt(g.version,10),je=e=>{var t;if(Up>=19){const n=r=>{var o;return e(r,(o=r.ref)!=null?o:null)};return n.displayName=(t=e.displayName)!=null?t:e.name,n}return g.forwardRef(e)};var Kp=(e,t,n)=>{if(t.length===1&&t[0]===n){let r=!1;try{const o={};e(o)===o&&(r=!0)}catch(o){}if(r){let o;try{throw new Error}catch(s){({stack:o}=s)}console.warn(`The result function returned its own inputs without modification. e.g
20
+ */var Fo,jl;function Wp(){if(jl)return Fo;jl=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function o(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var l={},a=0;a<10;a++)l["_"+String.fromCharCode(a)]=a;var c=Object.getOwnPropertyNames(l).map(function(d){return l[d]});if(c.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(d){u[d]=d}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch(d){return!1}}return Fo=o()?Object.assign:function(s,l){for(var a,c=r(s),u,d=1;d<arguments.length;d++){a=Object(arguments[d]);for(var f in a)t.call(a,f)&&(c[f]=a[f]);if(e){u=e(a);for(var m=0;m<u.length;m++)n.call(a,u[m])&&(c[u[m]]=a[u[m]])}}return c},Fo}var jo,Ol;function Fs(){if(Ol)return jo;Ol=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return jo=e,jo}var Oo,Rl;function Qa(){return Rl||(Rl=1,Oo=Function.call.bind(Object.prototype.hasOwnProperty)),Oo}var Ro,Ll;function qp(){if(Ll)return Ro;Ll=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Fs(),n={},r=Qa();e=function(s){var l="Warning: "+s;typeof console!="undefined"&&console.error(l);try{throw new Error(l)}catch(a){}}}function o(s,l,a,c,u){if(process.env.NODE_ENV!=="production"){for(var d in s)if(r(s,d)){var f;try{if(typeof s[d]!="function"){var m=Error((c||"React class")+": "+a+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw m.name="Invariant Violation",m}f=s[d](l,d,c,a,null,t)}catch(b){f=b}if(f&&!(f instanceof Error)&&e((c||"React class")+": type specification of "+a+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in n)){n[f.message]=!0;var p=u?u():"";e("Failed "+a+" type: "+f.message+(p!=null?p:""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Ro=o,Ro}var Lo,Dl;function Up(){if(Dl)return Lo;Dl=1;var e=Za(),t=Wp(),n=Fs(),r=Qa(),o=qp(),s=function(){};process.env.NODE_ENV!=="production"&&(s=function(a){var c="Warning: "+a;typeof console!="undefined"&&console.error(c);try{throw new Error(c)}catch(u){}});function l(){return null}return Lo=function(a,c){var u=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function f(k){var H=k&&(u&&k[u]||k[d]);if(typeof H=="function")return H}var m="<<anonymous>>",p={array:S("array"),bigint:S("bigint"),bool:S("boolean"),func:S("function"),number:S("number"),object:S("object"),string:S("string"),symbol:S("symbol"),any:v(),arrayOf:F,element:j(),elementType:y(),instanceOf:A,node:R(),objectOf:M,oneOf:N,oneOfType:P,shape:O,exact:D};function b(k,H){return k===H?k!==0||1/k===1/H:k!==k&&H!==H}function x(k,H){this.message=k,this.data=H&&typeof H=="object"?H:{},this.stack=""}x.prototype=Error.prototype;function w(k){if(process.env.NODE_ENV!=="production")var H={},z=0;function q(Q,X,W,K,Y,J,ne){if(K=K||m,J=J||W,ne!==n){if(c){var Z=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 Z.name="Invariant Violation",Z}else if(process.env.NODE_ENV!=="production"&&typeof console!="undefined"){var se=K+":"+W;!H[se]&&z<3&&(s("You are manually calling a React.PropTypes validation function for the `"+J+"` prop on `"+K+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),H[se]=!0,z++)}}return X[W]==null?Q?X[W]===null?new x("The "+Y+" `"+J+"` is marked as required "+("in `"+K+"`, but its value is `null`.")):new x("The "+Y+" `"+J+"` is marked as required in "+("`"+K+"`, but its value is `undefined`.")):null:k(X,W,K,Y,J)}var U=q.bind(null,!1);return U.isRequired=q.bind(null,!0),U}function S(k){function H(z,q,U,Q,X,W){var K=z[q],Y=T(K);if(Y!==k){var J=L(K);return new x("Invalid "+Q+" `"+X+"` of type "+("`"+J+"` supplied to `"+U+"`, expected ")+("`"+k+"`."),{expectedType:k})}return null}return w(H)}function v(){return w(l)}function F(k){function H(z,q,U,Q,X){if(typeof k!="function")return new x("Property `"+X+"` of component `"+U+"` has invalid PropType notation inside arrayOf.");var W=z[q];if(!Array.isArray(W)){var K=T(W);return new x("Invalid "+Q+" `"+X+"` of type "+("`"+K+"` supplied to `"+U+"`, expected an array."))}for(var Y=0;Y<W.length;Y++){var J=k(W,Y,U,Q,X+"["+Y+"]",n);if(J instanceof Error)return J}return null}return w(H)}function j(){function k(H,z,q,U,Q){var X=H[z];if(!a(X)){var W=T(X);return new x("Invalid "+U+" `"+Q+"` of type "+("`"+W+"` supplied to `"+q+"`, expected a single ReactElement."))}return null}return w(k)}function y(){function k(H,z,q,U,Q){var X=H[z];if(!e.isValidElementType(X)){var W=T(X);return new x("Invalid "+U+" `"+Q+"` of type "+("`"+W+"` supplied to `"+q+"`, expected a single ReactElement type."))}return null}return w(k)}function A(k){function H(z,q,U,Q,X){if(!(z[q]instanceof k)){var W=k.name||m,K=G(z[q]);return new x("Invalid "+Q+" `"+X+"` of type "+("`"+K+"` supplied to `"+U+"`, expected ")+("instance of `"+W+"`."))}return null}return w(H)}function N(k){if(!Array.isArray(k))return process.env.NODE_ENV!=="production"&&(arguments.length>1?s("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):s("Invalid argument supplied to oneOf, expected an array.")),l;function H(z,q,U,Q,X){for(var W=z[q],K=0;K<k.length;K++)if(b(W,k[K]))return null;var Y=JSON.stringify(k,function(ne,Z){var se=L(Z);return se==="symbol"?String(Z):Z});return new x("Invalid "+Q+" `"+X+"` of value `"+String(W)+"` "+("supplied to `"+U+"`, expected one of "+Y+"."))}return w(H)}function M(k){function H(z,q,U,Q,X){if(typeof k!="function")return new x("Property `"+X+"` of component `"+U+"` has invalid PropType notation inside objectOf.");var W=z[q],K=T(W);if(K!=="object")return new x("Invalid "+Q+" `"+X+"` of type "+("`"+K+"` supplied to `"+U+"`, expected an object."));for(var Y in W)if(r(W,Y)){var J=k(W,Y,U,Q,X+"."+Y,n);if(J instanceof Error)return J}return null}return w(H)}function P(k){if(!Array.isArray(k))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var H=0;H<k.length;H++){var z=k[H];if(typeof z!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+$(z)+" at index "+H+"."),l}function q(U,Q,X,W,K){for(var Y=[],J=0;J<k.length;J++){var ne=k[J],Z=ne(U,Q,X,W,K,n);if(Z==null)return null;Z.data&&r(Z.data,"expectedType")&&Y.push(Z.data.expectedType)}var se=Y.length>0?", expected one of type ["+Y.join(", ")+"]":"";return new x("Invalid "+W+" `"+K+"` supplied to "+("`"+X+"`"+se+"."))}return w(q)}function R(){function k(H,z,q,U,Q){return V(H[z])?null:new x("Invalid "+U+" `"+Q+"` supplied to "+("`"+q+"`, expected a ReactNode."))}return w(k)}function _(k,H,z,q,U){return new x((k||"React class")+": "+H+" type `"+z+"."+q+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+U+"`.")}function O(k){function H(z,q,U,Q,X){var W=z[q],K=T(W);if(K!=="object")return new x("Invalid "+Q+" `"+X+"` of type `"+K+"` "+("supplied to `"+U+"`, expected `object`."));for(var Y in k){var J=k[Y];if(typeof J!="function")return _(U,Q,X,Y,L(J));var ne=J(W,Y,U,Q,X+"."+Y,n);if(ne)return ne}return null}return w(H)}function D(k){function H(z,q,U,Q,X){var W=z[q],K=T(W);if(K!=="object")return new x("Invalid "+Q+" `"+X+"` of type `"+K+"` "+("supplied to `"+U+"`, expected `object`."));var Y=t({},z[q],k);for(var J in Y){var ne=k[J];if(r(k,J)&&typeof ne!="function")return _(U,Q,X,J,L(ne));if(!ne)return new x("Invalid "+Q+" `"+X+"` key `"+J+"` supplied to `"+U+"`.\nBad object: "+JSON.stringify(z[q],null," ")+`
21
+ Valid keys: `+JSON.stringify(Object.keys(k),null," "));var Z=ne(W,J,U,Q,X+"."+J,n);if(Z)return Z}return null}return w(H)}function V(k){switch(typeof k){case"number":case"string":case"undefined":return!0;case"boolean":return!k;case"object":if(Array.isArray(k))return k.every(V);if(k===null||a(k))return!0;var H=f(k);if(H){var z=H.call(k),q;if(H!==k.entries){for(;!(q=z.next()).done;)if(!V(q.value))return!1}else for(;!(q=z.next()).done;){var U=q.value;if(U&&!V(U[1]))return!1}}else return!1;return!0;default:return!1}}function E(k,H){return k==="symbol"?!0:H?H["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&H instanceof Symbol:!1}function T(k){var H=typeof k;return Array.isArray(k)?"array":k instanceof RegExp?"object":E(H,k)?"symbol":H}function L(k){if(typeof k=="undefined"||k===null)return""+k;var H=T(k);if(H==="object"){if(k instanceof Date)return"date";if(k instanceof RegExp)return"regexp"}return H}function $(k){var H=L(k);switch(H){case"array":case"object":return"an "+H;case"boolean":case"date":case"regexp":return"a "+H;default:return H}}function G(k){return!k.constructor||!k.constructor.name?m:k.constructor.name}return p.checkPropTypes=o,p.resetWarningCache=o.resetWarningCache,p.PropTypes=p,p},Lo}var Do,Hl;function Kp(){if(Hl)return Do;Hl=1;var e=Fs();function t(){}function n(){}return n.resetWarningCache=t,Do=function(){function r(l,a,c,u,d,f){if(f!==e){var m=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 m.name="Invariant Violation",m}}r.isRequired=r;function o(){return r}var s={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return s.PropTypes=s,s},Do}var _l;function Xp(){if(_l)return Hr.exports;if(_l=1,process.env.NODE_ENV!=="production"){var e=Za(),t=!0;Hr.exports=Up()(e.isElement,t)}else Hr.exports=Kp()();return Hr.exports}var Yp=Xp();const h=Ya(Yp),Zp=parseInt(g.version,10),je=e=>{var t;if(Zp>=19){const n=r=>{var o;return e(r,(o=r.ref)!=null?o:null)};return n.displayName=(t=e.displayName)!=null?t:e.name,n}return g.forwardRef(e)};var Qp=(e,t,n)=>{if(t.length===1&&t[0]===n){let r=!1;try{const o={};e(o)===o&&(r=!0)}catch(o){}if(r){let o;try{throw new Error}catch(s){({stack:o}=s)}console.warn(`The result function returned its own inputs without modification. e.g
22
22
  \`createSelector([state => state.todos], todos => todos)\`
23
23
  This could lead to inefficient memoization and unnecessary re-renders.
24
- Ensure transformation logic is in the result function, and extraction logic is in the input selectors.`,{stack:o})}}},Xp=(e,t,n)=>{const{memoize:r,memoizeOptions:o}=t,{inputSelectorResults:s,inputSelectorResultsCopy:l}=e,a=r(()=>({}),...o);if(!(a.apply(null,s)===a.apply(null,l))){let u;try{throw new Error}catch(d){({stack:u}=d)}console.warn(`An input selector returned a different result when passed same arguments.
24
+ Ensure transformation logic is in the result function, and extraction logic is in the input selectors.`,{stack:o})}}},Jp=(e,t,n)=>{const{memoize:r,memoizeOptions:o}=t,{inputSelectorResults:s,inputSelectorResultsCopy:l}=e,a=r(()=>({}),...o);if(!(a.apply(null,s)===a.apply(null,l))){let u;try{throw new Error}catch(d){({stack:u}=d)}console.warn(`An input selector returned a different result when passed same arguments.
25
25
  This means your output selector will likely run more frequently than intended.
26
26
  Avoid returning a new reference inside your input selector, e.g.
27
- \`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)\``,{arguments:n,firstInputs:s,secondInputs:l,stack:u})}},Yp={inputStabilityCheck:"once",identityFunctionCheck:"once"},Kr=Symbol("NOT_FOUND");function Zp(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function Qp(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var _l=e=>Array.isArray(e)?e:[e];function Jp(e){const t=Array.isArray(e[0])?e[0]:e;return Qp(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function Al(e,t){const n=[],{length:r}=e;for(let o=0;o<r;o++)n.push(e[o].apply(null,t));return n}var e1=(e,t)=>{const{identityFunctionCheck:n,inputStabilityCheck:r}={...Yp,...t};return{identityFunctionCheck:{shouldRun:n==="always"||n==="once"&&e,run:Kp},inputStabilityCheck:{shouldRun:r==="always"||r==="once"&&e,run:Xp}}};function t1(e){let t;return{get(n){return t&&e(t.key,n)?t.value:Kr},put(n,r){t={key:n,value:r}},getEntries(){return t?[t]:[]},clear(){t=void 0}}}function n1(e,t){let n=[];function r(a){const c=n.findIndex(u=>t(a,u.key));if(c>-1){const u=n[c];return c>0&&(n.splice(c,1),n.unshift(u)),u.value}return Kr}function o(a,c){r(a)===Kr&&(n.unshift({key:a,value:c}),n.length>e&&n.pop())}function s(){return n}function l(){n=[]}return{get:r,put:o,getEntries:s,clear:l}}var r1=(e,t)=>e===t;function o1(e){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;const{length:o}=n;for(let s=0;s<o;s++)if(!e(n[s],r[s]))return!1;return!0}}function Qa(e,t){const n=typeof t=="object"?t:{equalityCheck:t},{equalityCheck:r=r1,maxSize:o=1,resultEqualityCheck:s}=n,l=o1(r);let a=0;const c=o<=1?t1(l):n1(o,l);function u(){let d=c.get(arguments);if(d===Kr){if(d=e.apply(null,arguments),a++,s){const m=c.getEntries().find(p=>s(p.value,d));m&&(d=m.value,a!==0&&a--)}c.put(arguments,d)}return d}return u.clearCache=()=>{c.clear(),u.resetResultsCount()},u.resultsCount=()=>a,u.resetResultsCount=()=>{a=0},u}var s1=class{constructor(e){this.value=e}deref(){return this.value}},l1=()=>typeof WeakRef=="undefined"?s1:WeakRef,Ja=l1(),i1=0,Vl=1;function Ar(){return{s:i1,v:void 0,o:null,p:null}}function a1(e){return e instanceof Ja?e.deref():e}function ec(e,t={}){let n=Ar();const{resultEqualityCheck:r}=t;let o,s=0;function l(){let a=n;const{length:c}=arguments;for(let h=0,m=c;h<m;h++){const p=arguments[h];if(typeof p=="function"||typeof p=="object"&&p!==null){let b=a.o;b===null&&(a.o=b=new WeakMap);const x=b.get(p);x===void 0?(a=Ar(),b.set(p,a)):a=x}else{let b=a.p;b===null&&(a.p=b=new Map);const x=b.get(p);x===void 0?(a=Ar(),b.set(p,a)):a=x}}const u=a;let d;if(a.s===Vl)d=a.v;else if(d=e.apply(null,arguments),s++,r){const h=a1(o);h!=null&&r(h,d)&&(d=h,s!==0&&s--),o=typeof d=="object"&&d!==null||typeof d=="function"?new Ja(d):d}return u.s=Vl,u.v=d,d}return l.clearCache=()=>{n=Ar(),l.resetResultsCount()},l.resultsCount=()=>s,l.resetResultsCount=()=>{s=0},l}function tc(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...o)=>{let s=0,l=0,a,c={},u=o.pop();typeof u=="object"&&(c=u,u=o.pop()),Zp(u,`createSelector expects an output function after the inputs, but received: [${typeof u}]`);const d={...n,...c},{memoize:h,memoizeOptions:m=[],argsMemoize:p=ec,argsMemoizeOptions:b=[]}=d,x=_l(m),w=_l(b),k=Jp(o),v=h(function(){return s++,u.apply(null,arguments)},...x);let F=!0;const j=p(function(){l++;const A=Al(k,arguments);if(a=v.apply(null,A),process.env.NODE_ENV!=="production"){const{devModeChecks:N={}}=d,{identityFunctionCheck:M,inputStabilityCheck:P}=e1(F,N);if(M.shouldRun&&M.run(u,A,a),P.shouldRun){const R=Al(k,arguments);P.run({inputSelectorResults:A,inputSelectorResultsCopy:R},{memoize:h,memoizeOptions:x},arguments)}F&&(F=!1)}return a},...w);return Object.assign(j,{resultFunc:u,memoizedResultFunc:v,dependencies:k,dependencyRecomputations:()=>l,resetDependencyRecomputations:()=>{l=0},lastResult:()=>a,recomputations:()=>s,resetRecomputations:()=>{s=0},memoize:h,argsMemoize:p})};return Object.assign(r,{withTypes:()=>r}),r}var c1=tc(ec);const Nl=new Set;function kt(e,t="warning"){if(process.env.NODE_ENV==="production")return;const n=Array.isArray(e)?e.join(`
28
- `):e;Nl.has(n)||(Nl.add(n),t==="error"?console.error(n):console.warn(n))}const u1=Object.is;function nc(e,t){if(e===t)return!0;if(!(e instanceof Object)||!(t instanceof Object))return!1;let n=0,r=0;for(const o in e)if(n+=1,!u1(e[o],t[o])||!(o in t))return!1;for(const o in t)r+=1;return n===r}var Vr={exports:{}},Ho={};/**
27
+ \`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)\``,{arguments:n,firstInputs:s,secondInputs:l,stack:u})}},e1={inputStabilityCheck:"once",identityFunctionCheck:"once"},Kr=Symbol("NOT_FOUND");function t1(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function n1(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var Al=e=>Array.isArray(e)?e:[e];function r1(e){const t=Array.isArray(e[0])?e[0]:e;return n1(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function Vl(e,t){const n=[],{length:r}=e;for(let o=0;o<r;o++)n.push(e[o].apply(null,t));return n}var o1=(e,t)=>{const{identityFunctionCheck:n,inputStabilityCheck:r}={...e1,...t};return{identityFunctionCheck:{shouldRun:n==="always"||n==="once"&&e,run:Qp},inputStabilityCheck:{shouldRun:r==="always"||r==="once"&&e,run:Jp}}};function s1(e){let t;return{get(n){return t&&e(t.key,n)?t.value:Kr},put(n,r){t={key:n,value:r}},getEntries(){return t?[t]:[]},clear(){t=void 0}}}function l1(e,t){let n=[];function r(a){const c=n.findIndex(u=>t(a,u.key));if(c>-1){const u=n[c];return c>0&&(n.splice(c,1),n.unshift(u)),u.value}return Kr}function o(a,c){r(a)===Kr&&(n.unshift({key:a,value:c}),n.length>e&&n.pop())}function s(){return n}function l(){n=[]}return{get:r,put:o,getEntries:s,clear:l}}var i1=(e,t)=>e===t;function a1(e){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;const{length:o}=n;for(let s=0;s<o;s++)if(!e(n[s],r[s]))return!1;return!0}}function Ja(e,t){const n=typeof t=="object"?t:{equalityCheck:t},{equalityCheck:r=i1,maxSize:o=1,resultEqualityCheck:s}=n,l=a1(r);let a=0;const c=o<=1?s1(l):l1(o,l);function u(){let d=c.get(arguments);if(d===Kr){if(d=e.apply(null,arguments),a++,s){const m=c.getEntries().find(p=>s(p.value,d));m&&(d=m.value,a!==0&&a--)}c.put(arguments,d)}return d}return u.clearCache=()=>{c.clear(),u.resetResultsCount()},u.resultsCount=()=>a,u.resetResultsCount=()=>{a=0},u}var c1=class{constructor(e){this.value=e}deref(){return this.value}},u1=()=>typeof WeakRef=="undefined"?c1:WeakRef,ec=u1(),d1=0,Nl=1;function Ar(){return{s:d1,v:void 0,o:null,p:null}}function f1(e){return e instanceof ec?e.deref():e}function tc(e,t={}){let n=Ar();const{resultEqualityCheck:r}=t;let o,s=0;function l(){let a=n;const{length:c}=arguments;for(let f=0,m=c;f<m;f++){const p=arguments[f];if(typeof p=="function"||typeof p=="object"&&p!==null){let b=a.o;b===null&&(a.o=b=new WeakMap);const x=b.get(p);x===void 0?(a=Ar(),b.set(p,a)):a=x}else{let b=a.p;b===null&&(a.p=b=new Map);const x=b.get(p);x===void 0?(a=Ar(),b.set(p,a)):a=x}}const u=a;let d;if(a.s===Nl)d=a.v;else if(d=e.apply(null,arguments),s++,r){const f=f1(o);f!=null&&r(f,d)&&(d=f,s!==0&&s--),o=typeof d=="object"&&d!==null||typeof d=="function"?new ec(d):d}return u.s=Nl,u.v=d,d}return l.clearCache=()=>{n=Ar(),l.resetResultsCount()},l.resultsCount=()=>s,l.resetResultsCount=()=>{s=0},l}function nc(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...o)=>{let s=0,l=0,a,c={},u=o.pop();typeof u=="object"&&(c=u,u=o.pop()),t1(u,`createSelector expects an output function after the inputs, but received: [${typeof u}]`);const d={...n,...c},{memoize:f,memoizeOptions:m=[],argsMemoize:p=tc,argsMemoizeOptions:b=[]}=d,x=Al(m),w=Al(b),S=r1(o),v=f(function(){return s++,u.apply(null,arguments)},...x);let F=!0;const j=p(function(){l++;const A=Vl(S,arguments);if(a=v.apply(null,A),process.env.NODE_ENV!=="production"){const{devModeChecks:N={}}=d,{identityFunctionCheck:M,inputStabilityCheck:P}=o1(F,N);if(M.shouldRun&&M.run(u,A,a),P.shouldRun){const R=Vl(S,arguments);P.run({inputSelectorResults:A,inputSelectorResultsCopy:R},{memoize:f,memoizeOptions:x},arguments)}F&&(F=!1)}return a},...w);return Object.assign(j,{resultFunc:u,memoizedResultFunc:v,dependencies:S,dependencyRecomputations:()=>l,resetDependencyRecomputations:()=>{l=0},lastResult:()=>a,recomputations:()=>s,resetRecomputations:()=>{s=0},memoize:f,argsMemoize:p})};return Object.assign(r,{withTypes:()=>r}),r}var h1=nc(tc);const $l=new Set;function kt(e,t="warning"){if(process.env.NODE_ENV==="production")return;const n=Array.isArray(e)?e.join(`
28
+ `):e;$l.has(n)||($l.add(n),t==="error"?console.error(n):console.warn(n))}const g1=Object.is;function rc(e,t){if(e===t)return!0;if(!(e instanceof Object)||!(t instanceof Object))return!1;let n=0,r=0;for(const o in e)if(n+=1,!g1(e[o],t[o])||!(o in t))return!1;for(const o in t)r+=1;return n===r}var Vr={exports:{}},Ho={};/**
29
29
  * @license React
30
30
  * use-sync-external-store-shim.production.js
31
31
  *
@@ -33,7 +33,7 @@ Avoid returning a new reference inside your input selector, e.g.
33
33
  *
34
34
  * This source code is licensed under the MIT license found in the
35
35
  * LICENSE file in the root directory of this source tree.
36
- */var $l;function d1(){if($l)return Ho;$l=1;var e=g.default;function t(h,m){return h===m&&(h!==0||1/h===1/m)||h!==h&&m!==m}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,s=e.useLayoutEffect,l=e.useDebugValue;function a(h,m){var p=m(),b=r({inst:{value:p,getSnapshot:m}}),x=b[0].inst,w=b[1];return s(function(){x.value=p,x.getSnapshot=m,c(x)&&w({inst:x})},[h,p,m]),o(function(){return c(x)&&w({inst:x}),h(function(){c(x)&&w({inst:x})})},[h]),l(p),p}function c(h){var m=h.getSnapshot;h=h.value;try{var p=m();return!n(h,p)}catch(b){return!0}}function u(h,m){return m()}var d=typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"?u:a;return Ho.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:d,Ho}var _o={};/**
36
+ */var zl;function m1(){if(zl)return Ho;zl=1;var e=g.default;function t(f,m){return f===m&&(f!==0||1/f===1/m)||f!==f&&m!==m}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,s=e.useLayoutEffect,l=e.useDebugValue;function a(f,m){var p=m(),b=r({inst:{value:p,getSnapshot:m}}),x=b[0].inst,w=b[1];return s(function(){x.value=p,x.getSnapshot=m,c(x)&&w({inst:x})},[f,p,m]),o(function(){return c(x)&&w({inst:x}),f(function(){c(x)&&w({inst:x})})},[f]),l(p),p}function c(f){var m=f.getSnapshot;f=f.value;try{var p=m();return!n(f,p)}catch(b){return!0}}function u(f,m){return m()}var d=typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"?u:a;return Ho.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:d,Ho}var _o={};/**
37
37
  * @license React
38
38
  * use-sync-external-store-shim.development.js
39
39
  *
@@ -41,7 +41,7 @@ Avoid returning a new reference inside your input selector, e.g.
41
41
  *
42
42
  * This source code is licensed under the MIT license found in the
43
43
  * LICENSE file in the root directory of this source tree.
44
- */var zl;function f1(){return zl||(zl=1,process.env.NODE_ENV!=="production"&&(function(){function e(p,b){return p===b&&(p!==0||1/p===1/b)||p!==p&&b!==b}function t(p,b){d||o.startTransition===void 0||(d=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var x=b();if(!h){var w=b();s(x,w)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),h=!0)}w=l({inst:{value:x,getSnapshot:b}});var k=w[0].inst,v=w[1];return c(function(){k.value=x,k.getSnapshot=b,n(k)&&v({inst:k})},[p,x,b]),a(function(){return n(k)&&v({inst:k}),p(function(){n(k)&&v({inst:k})})},[p]),u(x),x}function n(p){var b=p.getSnapshot;p=p.value;try{var x=b();return!s(p,x)}catch(w){return!0}}function r(p,b){return b()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=g.default,s=typeof Object.is=="function"?Object.is:e,l=o.useState,a=o.useEffect,c=o.useLayoutEffect,u=o.useDebugValue,d=!1,h=!1,m=typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"?r:t;_o.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:m,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),_o}var Gl;function h1(){return Gl||(Gl=1,process.env.NODE_ENV==="production"?Vr.exports=d1():Vr.exports=f1()),Vr.exports}var js=h1();function rc(e){return e.acceptsApiRef}function Bl(e,t){return rc(t)?t(e):t(e.current.state)}function Ao(e,t,n,r){return rc(t)?t(e,n):t(e.current.state,r)}const oc=Object.is,Os=nc,g1=(e,t)=>e===t?!0:e.length===t.length&&e.every((n,r)=>n===t[r]),m1=(e,t)=>{let n=Object.is;return t instanceof Array?n=g1:t instanceof Object&&(n=Os),n(e,t)},sc=()=>({state:null,equals:null,selector:null,args:void 0}),Xr=[],lc=()=>null,te=(e,t,n=oc)=>{process.env.NODE_ENV!=="production"&&(e.current.state||kt(["MUI X: `useGridSelector` has been called before the initialization of the state.","This hook can only be used inside the context of the grid."]));const r=Bt.default(sc),o=r.current.selector!==null,[s,l]=g.useState(o?null:Bl(e,t));r.current.state=s,r.current.equals=n,r.current.selector=t;const a=g.useCallback(()=>(r.current.subscription||(r.current.subscription=e.current.store.subscribe(()=>{const u=Bl(e,r.current.selector);r.current.equals(r.current.state,u)||(r.current.state=u,l(u))})),null),Xr),c=g.useCallback(()=>()=>{r.current.subscription&&(r.current.subscription(),r.current.subscription=void 0)},Xr);return js.useSyncExternalStore(c,a,lc),s},br=(e,t,n=void 0,r=oc)=>{process.env.NODE_ENV!=="production"&&(e.current.state||kt(["MUI X: `useGridSelector` has been called before the initialization of the state.","This hook can only be used inside the context of the grid."]));const o=Bt.default(sc),s=o.current.selector!==null,[l,a]=g.useState(s?null:Ao(e,t,n,e.current.instanceId));o.current.state=l,o.current.equals=r,o.current.selector=t;const c=o.current.args;if(o.current.args=n,s&&!m1(c,n)){const h=Ao(e,o.current.selector,o.current.args,e.current.instanceId);o.current.equals(o.current.state,h)||(o.current.state=h,a(h))}const u=g.useCallback(()=>(o.current.subscription||(o.current.subscription=e.current.store.subscribe(()=>{const h=Ao(e,o.current.selector,o.current.args,e.current.instanceId);o.current.equals(o.current.state,h)||(o.current.state=h,a(h))})),null),Xr),d=g.useCallback(()=>()=>{o.current.subscription&&(o.current.subscription(),o.current.subscription=void 0)},Xr);return js.useSyncExternalStore(d,u,lc),l},p1=tc({memoize:Qa,memoizeOptions:{maxSize:1,equalityCheck:Object.is}}),Wl=new WeakMap;function Ot(e){return"current"in e&&"instanceId"in e.current}const Rt={id:"default"},be=(e,t,n,r,o,s,...l)=>{if(l.length>0)throw new Error("Unsupported number of selectors");let a;if(e&&t&&n&&r&&o&&s)a=(c,u)=>{const d=Ot(c),h=u!=null?u:d?c.current.instanceId:Rt,m=d?c.current.state:c,p=e(m,h),b=t(m,h),x=n(m,h),w=r(m,h),k=o(m,h);return s(p,b,x,w,k)};else if(e&&t&&n&&r&&o)a=(c,u)=>{const d=Ot(c),h=u!=null?u:d?c.current.instanceId:Rt,m=d?c.current.state:c,p=e(m,h),b=t(m,h),x=n(m,h),w=r(m,h);return o(p,b,x,w)};else if(e&&t&&n&&r)a=(c,u)=>{const d=Ot(c),h=u!=null?u:d?c.current.instanceId:Rt,m=d?c.current.state:c,p=e(m,h),b=t(m,h),x=n(m,h);return r(p,b,x)};else if(e&&t&&n)a=(c,u)=>{const d=Ot(c),h=u!=null?u:d?c.current.instanceId:Rt,m=d?c.current.state:c,p=e(m,h),b=t(m,h);return n(p,b)};else if(e&&t)a=(c,u)=>{const d=Ot(c),h=u!=null?u:d?c.current.instanceId:Rt,m=d?c.current.state:c,p=e(m,h);return t(p)};else throw new Error("Missing arguments");return a.acceptsApiRef=!0,a},Sr=(e,t,n,r,o,s,...l)=>{if(l.length>0)throw new Error("Unsupported number of selectors");let a;if(e&&t&&n&&r&&o&&s)a=(c,u,d)=>{const h=Ot(c),m=d!=null?d:h?c.current.instanceId:Rt,p=h?c.current.state:c,b=e(p,u,m),x=t(p,u,m),w=n(p,u,m),k=r(p,u,m),v=o(p,u,m);return s(b,x,w,k,v,u)};else if(e&&t&&n&&r&&o)a=(c,u,d)=>{const h=Ot(c),m=d!=null?d:h?c.current.instanceId:Rt,p=h?c.current.state:c,b=e(p,u,m),x=t(p,u,m),w=n(p,u,m),k=r(p,u,m);return o(b,x,w,k,u)};else if(e&&t&&n&&r)a=(c,u,d)=>{const h=Ot(c),m=d!=null?d:h?c.current.instanceId:Rt,p=h?c.current.state:c,b=e(p,u,m),x=t(p,u,m),w=n(p,u,m);return r(b,x,w,u)};else if(e&&t&&n)a=(c,u,d)=>{const h=Ot(c),m=d!=null?d:h?c.current.instanceId:Rt,p=h?c.current.state:c,b=e(p,u,m),x=t(p,u,m);return n(b,x,u)};else if(e&&t)a=(c,u,d)=>{const h=Ot(c),m=d!=null?d:h?c.current.instanceId:Rt,p=h?c.current.state:c,b=e(p,u,m);return t(b,u)};else throw new Error("Missing arguments");return a.acceptsApiRef=!0,a},Le=(...e)=>{const t=(n,r)=>{const o=Ot(n),s=o?n.current.instanceId:r!=null?r:Rt,l=o?n.current.state:n;process.env.NODE_ENV!=="production"&&s.id==="default"&&kt(["MUI X: A selector was called without passing the instance ID, which may impact the performance of the grid.","To fix, call it with `apiRef`, for example `mySelector(apiRef)`, or pass the instance ID explicitly, for example `mySelector(state, apiRef.current.instanceId)`."]);const a=Wl.get(s),c=a!=null?a:new Map,u=c==null?void 0:c.get(e);if(c&&u)return u(l,s);const d=p1(...e);return a||Wl.set(s,c),c.set(e,d),d(l,s)};return t.acceptsApiRef=!0,t},at=e=>e.dimensions,uo=be(at,e=>e.columnsTotalWidth),Rs=e=>e.dimensions.rowHeight,b1=e=>e.dimensions.contentSize.height,C1=e=>e.dimensions.hasScrollX,w1=e=>e.dimensions.hasScrollY,ic=e=>e.dimensions.columnsTotalWidth<e.dimensions.viewportOuterSize.width,x1=e=>e.dimensions.headerHeight,y1=e=>e.dimensions.groupHeaderHeight,ac=e=>e.dimensions.hasScrollY?e.dimensions.scrollbarSize:0,v1=e=>{const t=e.dimensions.hasScrollX?e.dimensions.scrollbarSize:0,n=e.dimensions.viewportOuterSize.height-e.dimensions.minimumSize.height>0;return!(t===0&&!n)};function Zt(e){return g.memo(e,nc)}const S1={noRowsLabel:"No rows",noResultsOverlayLabel:"No results found.",toolbarDensity:"Density",toolbarDensityLabel:"Density",toolbarDensityCompact:"Compact",toolbarDensityStandard:"Standard",toolbarDensityComfortable:"Comfortable",toolbarColumns:"Columns",toolbarColumnsLabel:"Select columns",toolbarFilters:"Filters",toolbarFiltersLabel:"Show filters",toolbarFiltersTooltipHide:"Hide filters",toolbarFiltersTooltipShow:"Show filters",toolbarFiltersTooltipActive:e=>e!==1?`${e} active filters`:`${e} active filter`,toolbarQuickFilterPlaceholder:"Search…",toolbarQuickFilterLabel:"Search",toolbarQuickFilterDeleteIconLabel:"Clear",toolbarExport:"Export",toolbarExportLabel:"Export",toolbarExportCSV:"Download as CSV",toolbarExportPrint:"Print",toolbarExportExcel:"Download as Excel",columnsManagementSearchTitle:"Search",columnsManagementNoColumns:"No columns",columnsManagementShowHideAllText:"Show/Hide All",columnsManagementReset:"Reset",columnsManagementDeleteIconLabel:"Clear",filterPanelAddFilter:"Add filter",filterPanelRemoveAll:"Remove all",filterPanelDeleteIconLabel:"Delete",filterPanelLogicOperator:"Logic operator",filterPanelOperator:"Operator",filterPanelOperatorAnd:"And",filterPanelOperatorOr:"Or",filterPanelColumns:"Columns",filterPanelInputLabel:"Value",filterPanelInputPlaceholder:"Filter value",filterOperatorContains:"contains",filterOperatorDoesNotContain:"does not contain",filterOperatorEquals:"equals",filterOperatorDoesNotEqual:"does not equal",filterOperatorStartsWith:"starts with",filterOperatorEndsWith:"ends with",filterOperatorIs:"is",filterOperatorNot:"is not",filterOperatorAfter:"is after",filterOperatorOnOrAfter:"is on or after",filterOperatorBefore:"is before",filterOperatorOnOrBefore:"is on or before",filterOperatorIsEmpty:"is empty",filterOperatorIsNotEmpty:"is not empty",filterOperatorIsAnyOf:"is any of","filterOperator=":"=","filterOperator!=":"!=","filterOperator>":">","filterOperator>=":">=","filterOperator<":"<","filterOperator<=":"<=",headerFilterOperatorContains:"Contains",headerFilterOperatorDoesNotContain:"Does not contain",headerFilterOperatorEquals:"Equals",headerFilterOperatorDoesNotEqual:"Does not equal",headerFilterOperatorStartsWith:"Starts with",headerFilterOperatorEndsWith:"Ends with",headerFilterOperatorIs:"Is",headerFilterOperatorNot:"Is not",headerFilterOperatorAfter:"Is after",headerFilterOperatorOnOrAfter:"Is on or after",headerFilterOperatorBefore:"Is before",headerFilterOperatorOnOrBefore:"Is on or before",headerFilterOperatorIsEmpty:"Is empty",headerFilterOperatorIsNotEmpty:"Is not empty",headerFilterOperatorIsAnyOf:"Is any of","headerFilterOperator=":"Equals","headerFilterOperator!=":"Not equals","headerFilterOperator>":"Greater than","headerFilterOperator>=":"Greater than or equal to","headerFilterOperator<":"Less than","headerFilterOperator<=":"Less than or equal to",filterValueAny:"any",filterValueTrue:"true",filterValueFalse:"false",columnMenuLabel:"Menu",columnMenuAriaLabel:e=>`${e} column menu`,columnMenuShowColumns:"Show columns",columnMenuManageColumns:"Manage columns",columnMenuFilter:"Filter",columnMenuHideColumn:"Hide column",columnMenuUnsort:"Unsort",columnMenuSortAsc:"Sort by ASC",columnMenuSortDesc:"Sort by DESC",columnHeaderFiltersTooltipActive:e=>e!==1?`${e} active filters`:`${e} active filter`,columnHeaderFiltersLabel:"Show filters",columnHeaderSortIconLabel:"Sort",footerRowSelected:e=>e!==1?`${e.toLocaleString()} rows selected`:`${e.toLocaleString()} row selected`,footerTotalRows:"Total Rows:",footerTotalVisibleRows:(e,t)=>`${e.toLocaleString()} of ${t.toLocaleString()}`,checkboxSelectionHeaderName:"Checkbox selection",checkboxSelectionSelectAllRows:"Select all rows",checkboxSelectionUnselectAllRows:"Unselect all rows",checkboxSelectionSelectRow:"Select row",checkboxSelectionUnselectRow:"Unselect row",booleanCellTrueLabel:"yes",booleanCellFalseLabel:"no",actionsCellMore:"more",pinToLeft:"Pin to left",pinToRight:"Pin to right",unpin:"Unpin",treeDataGroupingHeaderName:"Group",treeDataExpand:"see children",treeDataCollapse:"hide children",groupingColumnHeaderName:"Group",groupColumn:e=>`Group by ${e}`,unGroupColumn:e=>`Stop grouping by ${e}`,detailPanelToggle:"Detail panel toggle",expandDetailPanel:"Expand",collapseDetailPanel:"Collapse",MuiTablePagination:{},rowReorderingHeaderName:"Row reordering",aggregationMenuItemHeader:"Aggregation",aggregationFunctionLabelSum:"sum",aggregationFunctionLabelAvg:"avg",aggregationFunctionLabelMin:"min",aggregationFunctionLabelMax:"max",aggregationFunctionLabelSize:"size"};function Te(e){return re.unstable_generateUtilityClass("MuiDataGrid",e)}const I=re.unstable_generateUtilityClasses("MuiDataGrid",["actionsCell","aggregationColumnHeader","aggregationColumnHeader--alignLeft","aggregationColumnHeader--alignCenter","aggregationColumnHeader--alignRight","aggregationColumnHeaderLabel","autoHeight","autosizing","booleanCell","cell--editable","cell--editing","cell--flex","cell--textCenter","cell--textLeft","cell--textRight","cell--rangeTop","cell--rangeBottom","cell--rangeLeft","cell--rangeRight","cell--pinnedLeft","cell--pinnedRight","cell--selectionMode","cell","cellCheckbox","cellEmpty","cellSkeleton","cellOffsetLeft","checkboxInput","columnHeader","columnHeader--alignCenter","columnHeader--alignLeft","columnHeader--alignRight","columnHeader--dragging","columnHeader--moving","columnHeader--numeric","columnHeader--sortable","columnHeader--sorted","columnHeader--filtered","columnHeader--pinnedLeft","columnHeader--pinnedRight","columnHeader--last","columnHeader--lastUnpinned","columnHeader--siblingFocused","columnHeaderCheckbox","columnHeaderDraggableContainer","columnHeaderTitle","columnHeaderTitleContainer","columnHeaderTitleContainerContent","columnHeader--filledGroup","columnHeader--emptyGroup","columnHeaders","columnSeparator--resizable","columnSeparator--resizing","columnSeparator--sideLeft","columnSeparator--sideRight","columnSeparator","columnsManagement","columnsManagementRow","columnsManagementHeader","columnsManagementSearchInput","columnsManagementFooter","container--top","container--bottom","detailPanel","detailPanels","detailPanelToggleCell","detailPanelToggleCell--expanded","footerCell","panel","panelHeader","panelWrapper","panelContent","panelFooter","paper","editBooleanCell","editInputCell","filler","filler--borderBottom","filler--pinnedLeft","filler--pinnedRight","filterForm","filterFormDeleteIcon","filterFormLogicOperatorInput","filterFormColumnInput","filterFormOperatorInput","filterFormValueInput","filterIcon","footerContainer","headerFilterRow","iconButtonContainer","iconSeparator","main","main--hasPinnedRight","main--hasSkeletonLoadingOverlay","menu","menuIcon","menuIconButton","menuOpen","menuList","overlay","overlayWrapper","overlayWrapperInner","root","root--densityStandard","root--densityComfortable","root--densityCompact","root--disableUserSelection","root--noToolbar","row","row--editable","row--editing","row--firstVisible","row--lastVisible","row--dragging","row--dynamicHeight","row--detailPanelExpanded","row--borderBottom","rowReorderCellPlaceholder","rowCount","rowReorderCellContainer","rowReorderCell","rowReorderCell--draggable","rowSkeleton","scrollArea--left","scrollArea--right","scrollArea--up","scrollArea--down","scrollArea","scrollbar","scrollbar--vertical","scrollbar--horizontal","scrollbarFiller","scrollbarFiller--header","scrollbarFiller--borderTop","scrollbarFiller--borderBottom","scrollbarFiller--pinnedRight","selectedRowCount","sortButton","sortIcon","toolbarContainer","toolbarFilterList","virtualScroller","virtualScroller--hasScrollX","virtualScrollerContent","virtualScrollerContent--overflowed","virtualScrollerRenderZone","pinnedColumns","withVerticalBorder","withBorderColor","cell--withRightBorder","cell--withLeftBorder","columnHeader--withRightBorder","columnHeader--withLeftBorder","treeDataGroupingCell","treeDataGroupingCellToggle","treeDataGroupingCellLoadingContainer","groupingCriteriaCell","groupingCriteriaCellToggle","groupingCriteriaCellLoadingContainer","pinnedRows","pinnedRows--top","pinnedRows--bottom","pinnedRowsRenderZone"]),ql=1e3;class k1{constructor(t=ql){this.timeouts=new Map,this.cleanupTimeout=ql,this.cleanupTimeout=t}register(t,n,r){this.timeouts||(this.timeouts=new Map);const o=setTimeout(()=>{typeof n=="function"&&n(),this.timeouts.delete(r.cleanupToken)},this.cleanupTimeout);this.timeouts.set(r.cleanupToken,o)}unregister(t){const n=this.timeouts.get(t.cleanupToken);n&&(this.timeouts.delete(t.cleanupToken),clearTimeout(n))}reset(){this.timeouts&&(this.timeouts.forEach((t,n)=>{this.unregister({cleanupToken:n})}),this.timeouts=void 0)}}class I1{constructor(){this.registry=new FinalizationRegistry(t=>{typeof t=="function"&&t()})}register(t,n,r){this.registry.register(t,n,r)}unregister(t){this.registry.unregister(t)}reset(){}}var wt=(function(e){return e.DataGrid="DataGrid",e.DataGridPro="DataGridPro",e.DataGridPremium="DataGridPremium",e})(wt||{});class M1{}function E1(e){let t=0;return function(r,o,s,l){e.registry===null&&(e.registry=typeof FinalizationRegistry!="undefined"?new I1:new k1);const[a]=g.useState(new M1),c=g.useRef(null),u=g.useRef(null);u.current=s;const d=g.useRef(null);if(!c.current&&u.current){const h=(m,p,b)=>{var x;p&&!p.defaultMuiPrevented&&((x=u.current)==null||x.call(u,m,p,b))};c.current=r.current.subscribeEvent(o,h,l),t+=1,d.current={cleanupToken:t},e.registry.register(a,()=>{var m;(m=c.current)==null||m.call(c),c.current=null,d.current=null},d.current)}else!u.current&&c.current&&(c.current(),c.current=null,d.current&&(e.registry.unregister(d.current),d.current=null));g.useEffect(()=>{if(!c.current&&u.current){const h=(m,p,b)=>{var x;p&&!p.defaultMuiPrevented&&((x=u.current)==null||x.call(u,m,p,b))};c.current=r.current.subscribeEvent(o,h,l)}return d.current&&e.registry&&(e.registry.unregister(d.current),d.current=null),()=>{var h;(h=c.current)==null||h.call(c),c.current=null}},[r,o,l])}}const P1={registry:null},le=E1(P1),T1={isFirst:!0};function Ae(e,t,n){le(e,t,n,T1)}const F1=.7,j1=1.3,O1={compact:F1,comfortable:j1,standard:1},Rn=e=>e.density,Un=be(Rn,e=>O1[e]);function me(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}const R1=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","isValidating","debounceMs","isProcessingProps","onValueChange"],L1=e=>{const{classes:t}=e,n={root:["editInputCell"]};return re.unstable_composeClasses(n,Te,t)},D1=ge.styled(aa.default,{name:"MuiDataGrid",slot:"EditInputCell",overridesResolver:(e,t)=>t.editInputCell})(({theme:e})=>C({},e.typography.body2,{padding:"1px 0","& input":{padding:"0 16px",height:"100%"}})),cc=je((e,t)=>{const n=ue(),{id:r,value:o,field:s,colDef:l,hasFocus:a,debounceMs:c=200,isProcessingProps:u,onValueChange:d}=e,h=me(e,R1),m=ke(),p=g.useRef(null),[b,x]=g.useState(o),w=L1(n),k=g.useCallback(async F=>{const j=F.target.value;d&&await d(F,j);const y=m.current.getColumn(s);let A=j;y.valueParser&&(A=y.valueParser(j,m.current.getRow(r),y,m)),x(A),m.current.setEditCellValue({id:r,field:s,value:A,debounceMs:c,unstable_skipValueParser:!0},F)},[m,c,s,r,d]),v=m.current.unstable_getEditCellMeta(r,s);return g.useEffect(()=>{(v==null?void 0:v.changeReason)!=="debouncedSetEditCellValue"&&x(o)},[v,o]),re.unstable_useEnhancedEffect(()=>{a&&p.current.focus()},[a]),i.jsx(D1,C({inputRef:p,className:w.root,ownerState:n,fullWidth:!0,type:l.type==="number"?l.type:"text",value:b!=null?b:"",onChange:k,endAdornment:u?i.jsx(n.slots.loadIcon,{fontSize:"small",color:"action"}):void 0},h,{ref:t}))});process.env.NODE_ENV!=="production"&&(cc.propTypes={api:f.object.isRequired,cellMode:f.oneOf(["edit","view"]).isRequired,changeReason:f.oneOf(["debouncedSetEditCellValue","setEditCellValue"]),colDef:f.object.isRequired,debounceMs:f.number,field:f.string.isRequired,formattedValue:f.any,hasFocus:f.bool.isRequired,id:f.oneOfType([f.number,f.string]).isRequired,isEditable:f.bool,isProcessingProps:f.bool,isValidating:f.bool,onValueChange:f.func,row:f.any.isRequired,rowNode:f.object.isRequired,tabIndex:f.oneOf([-1,0]).isRequired,value:f.any});const H1=e=>i.jsx(cc,C({},e)),Mt=e=>e.rows,kr=be(Mt,e=>e.totalRowCount),_1=be(Mt,e=>e.loading),A1=be(Mt,e=>e.totalTopLevelRowCount),vt=be(Mt,e=>e.dataRowIdToModelLookup),Ul=be(Mt,e=>e.dataRowIdToIdLookup),nt=be(Mt,e=>e.tree),V1=be(Mt,e=>e.groupsToFetch),N1=be(Mt,e=>e.groupingName),Kl=be(Mt,e=>e.treeDepths),vn=Le(Mt,e=>{var n;const t=Object.entries(e.treeDepths);return t.length===0?1:((n=t.filter(([,r])=>r>0).map(([r])=>Number(r)).sort((r,o)=>o-r)[0])!=null?n:0)+1}),fr=be(Mt,e=>e.dataRowIds),$1=be(Mt,e=>e==null?void 0:e.additionalRowGroups),Kn=Le($1,e=>{var n,r,o,s;const t=e==null?void 0:e.pinnedRows;return{bottom:(r=(n=t==null?void 0:t.bottom)==null?void 0:n.map(l=>{var a;return{id:l.id,model:(a=l.model)!=null?a:{}}}))!=null?r:[],top:(s=(o=t==null?void 0:t.top)==null?void 0:o.map(l=>{var a;return{id:l.id,model:(a=l.model)!=null?a:{}}}))!=null?s:[]}}),uc=be(Kn,e=>{var t,n;return(((t=e==null?void 0:e.top)==null?void 0:t.length)||0)+(((n=e==null?void 0:e.bottom)==null?void 0:n.length)||0)}),dc=(e,t)=>t&&e.length>1?(process.env.NODE_ENV!=="production"&&kt(["MUI X: The `sortModel` can only contain a single item when the `disableMultipleColumnsSorting` prop is set to `true`.","If you are using the community version of the Data Grid, this prop is always `true`."],"error"),[e[0]]):e,Xl=(e,t)=>n=>C({},n,{sorting:C({},n.sorting,{sortModel:dc(e,t)})}),z1=e=>e==="desc",G1=(e,t)=>{const n=t.current.getColumn(e.field);if(!n||e.sort===null)return null;let r;return n.getSortComparator?r=n.getSortComparator(e.sort):r=z1(e.sort)?(...s)=>-1*n.sortComparator(...s):n.sortComparator,r?{getSortCellParams:s=>({id:s,field:n.field,rowNode:nt(t)[s],value:t.current.getCellValue(s,n.field),api:t.current}),comparator:r}:null},B1=(e,t,n)=>e.reduce((r,o,s)=>{if(r!==0)return r;const l=t.params[s],a=n.params[s];return r=o.comparator(l.value,a.value,l,a),r},0),W1=(e,t)=>{const n=e.map(r=>G1(r,t)).filter(r=>!!r);return n.length===0?null:r=>r.map(o=>({node:o,params:n.map(s=>s.getSortCellParams(o.id))})).sort((o,s)=>B1(n,o,s)).map(o=>o.node.id)},Yl=(e,t)=>{const n=e.indexOf(t);return!t||n===-1||n+1===e.length?e[0]:e[n+1]},Ls=(e,t)=>e==null&&t!=null?-1:t==null&&e!=null?1:e==null&&t==null?0:null,q1=new Intl.Collator,U1=(e,t)=>{const n=Ls(e,t);return n!==null?n:typeof e=="string"?q1.compare(e.toString(),t.toString()):e-t},fc=(e,t)=>{const n=Ls(e,t);return n!==null?n:Number(e)-Number(t)},hc=(e,t)=>{const n=Ls(e,t);return n!==null?n:e>t?1:e<t?-1:0},K1=["item","applyValue","type","apiRef","focusElementRef","tabIndex","disabled","isFilterActive","clearButton","InputProps","variant"];function Ct(e){var j;const{item:t,applyValue:n,type:r,apiRef:o,focusElementRef:s,tabIndex:l,disabled:a,clearButton:c,InputProps:u,variant:d="standard"}=e,h=me(e,K1),m=wn.default(),[p,b]=g.useState(Vo(t.value)),[x,w]=g.useState(!1),k=re.unstable_useId(),v=ue(),F=g.useCallback(y=>{const A=Vo(y.target.value);b(A),w(!0),m.start(v.filterDebounceMs,()=>{const N=C({},t,{value:r==="number"&&!Number.isNaN(Number(A))?Number(A):A,fromInput:k});n(N),w(!1)})},[m,v.filterDebounceMs,t,r,k,n]);return g.useEffect(()=>{(t.fromInput!==k||t.value==null)&&b(Vo(t.value))},[k,t]),i.jsx(v.slots.baseTextField,C({id:k,label:o.current.getLocaleText("filterPanelInputLabel"),placeholder:o.current.getLocaleText("filterPanelInputPlaceholder"),value:p!=null?p:"",onChange:F,variant:d,type:r||"text",InputProps:C({},x||c?{endAdornment:x?i.jsx(v.slots.loadIcon,{fontSize:"small",color:"action"}):c}:{},{disabled:a},u,{inputProps:C({tabIndex:l},u==null?void 0:u.inputProps)}),InputLabelProps:{shrink:!0},inputRef:s},h,(j=v.slotProps)==null?void 0:j.baseTextField))}function Vo(e){if(!(e==null||e===""))return String(e)}process.env.NODE_ENV!=="production"&&(Ct.propTypes={apiRef:f.shape({current:f.object.isRequired}).isRequired,applyValue:f.func.isRequired,clearButton:f.node,focusElementRef:f.oneOfType([f.func,f.object]),isFilterActive:f.bool,item:f.shape({field:f.string.isRequired,id:f.oneOfType([f.number,f.string]),operator:f.string.isRequired,value:f.any}).isRequired});function gc(e){return typeof e=="number"&&!Number.isNaN(e)}function X1(e){return typeof e=="function"}function Ds(e){return typeof e=="object"&&e!==null}function Y1(){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 Yr(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}const xt=(e,t,n)=>Math.max(t,Math.min(n,e));function Zl(e,t){return Array.from({length:t-e}).map((n,r)=>e+r)}function sn(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)){const o=e.length;if(o!==t.length)return!1;for(let s=0;s<o;s+=1)if(!sn(e[s],t[s]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;const o=Array.from(e.entries());for(let s=0;s<o.length;s+=1)if(!t.has(o[s][0]))return!1;for(let s=0;s<o.length;s+=1){const l=o[s];if(!sn(l[1],t.get(l[0])))return!1}return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;const o=Array.from(e.entries());for(let s=0;s<o.length;s+=1)if(!t.has(o[s][0]))return!1;return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){const o=e.length;if(o!==t.length)return!1;for(let s=0;s<o;s+=1)if(e[s]!==t[s])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const n=Object.keys(e),r=n.length;if(r!==Object.keys(t).length)return!1;for(let o=0;o<r;o+=1)if(!Object.prototype.hasOwnProperty.call(t,n[o]))return!1;for(let o=0;o<r;o+=1){const s=n[o];if(!sn(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Z1(e){return()=>{let t=e+=1831565813;return t=Math.imul(t^t>>>15,t|1),t^=t+Math.imul(t^t>>>7,t|61),((t^t>>>14)>>>0)/4294967296}}function Q1(e){const t=Z1(e);return(n,r)=>n+(r-n)*t()}function mc(e){return typeof structuredClone=="function"?structuredClone(e):JSON.parse(JSON.stringify(e))}const mn=(e,t)=>n=>{e&&t(n)},J1=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant"],eb=["key"];function Hs(e){const{item:t,applyValue:n,type:r,apiRef:o,focusElementRef:s,color:l,error:a,helperText:c,size:u,variant:d="standard"}=e,h=me(e,J1),m={color:l,error:a,helperText:c,size:u,variant:d},[p,b]=g.useState(t.value||[]),x=re.unstable_useId(),w=ue();g.useEffect(()=>{var F;const v=(F=t.value)!=null?F:[];b(v.map(String))},[t.value]);const k=g.useCallback((v,F)=>{b(F.map(String)),n(C({},t,{value:[...F.map(j=>r==="number"?Number(j):j)]}))},[n,t,r]);return i.jsx(ca.default,C({multiple:!0,freeSolo:!0,options:[],filterOptions:(v,F)=>{const{inputValue:j}=F;return j==null||j===""?[]:[j]},id:x,value:p,onChange:k,renderTags:(v,F)=>v.map((j,y)=>{const A=F({index:y}),{key:N}=A,M=me(A,eb);return i.jsx(w.slots.baseChip,C({variant:"outlined",size:"small",label:j},M),N)}),renderInput:v=>{var F;return i.jsx(w.slots.baseTextField,C({},v,{label:o.current.getLocaleText("filterPanelInputLabel"),placeholder:o.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:C({},v.InputLabelProps,{shrink:!0}),inputRef:s,type:r||"text"},m,(F=w.slotProps)==null?void 0:F.baseTextField))}},h))}process.env.NODE_ENV!=="production"&&(Hs.propTypes={apiRef:f.shape({current:f.object.isRequired}).isRequired,applyValue:f.func.isRequired,focusElementRef:f.oneOfType([f.func,f.object]),item:f.shape({field:f.string.isRequired,id:f.oneOfType([f.number,f.string]),operator:f.string.isRequired,value:f.any}).isRequired,type:f.oneOf(["date","datetime-local","number","text"])});var zt=(function(e){return e.Cell="cell",e.Row="row",e})(zt||{}),_e=(function(e){return e.Edit="edit",e.View="view",e})(_e||{}),We=(function(e){return e.Edit="edit",e.View="view",e})(We||{}),mt=(function(e){return e.And="and",e.Or="or",e})(mt||{}),Ut=(function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e.pasteKeyDown="pasteKeyDown",e})(Ut||{}),Ft=(function(e){return e.cellFocusOut="cellFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e})(Ft||{}),nn=(function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e})(nn||{}),At=(function(e){return e.rowFocusOut="rowFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e})(At||{});function pc(e){return e.field!==void 0}const bc={filteredRowsLookup:{},filteredChildrenCountLookup:{},filteredDescendantCountLookup:{}},Cr=()=>({items:[],logicOperator:mt.And,quickFilterValues:[],quickFilterLogicOperator:mt.And});function Cc(e){return{current:e.current.getPublicApi()}}let rn=(function(e){return e.LEFT="left",e.RIGHT="right",e})({});const Zr={left:[],right:[]},wc=e=>e.isRtl,Nt=e=>e.columns,Yt=be(Nt,e=>e.orderedFields),Qt=be(Nt,e=>e.lookup),It=Le(Yt,Qt,(e,t)=>e.map(n=>t[n])),St=be(Nt,e=>e.columnVisibilityModel),Ke=Le(It,St,(e,t)=>e.filter(n=>t[n.field]!==!1)),Xn=Le(Ke,e=>e.map(t=>t.field)),xc=e=>e.pinnedColumns;Le(xc,Yt,wc,(e,t,n)=>yc(e,t,n));const Yn=Le(Nt,xc,Xn,wc,(e,t,n,r)=>{const o=yc(t,n,r);return{left:o.left.map(l=>e.lookup[l]),right:o.right.map(l=>e.lookup[l])}});function yc(e,t,n){var a,c;if(!Array.isArray(e.left)&&!Array.isArray(e.right)||((a=e.left)==null?void 0:a.length)===0&&((c=e.right)==null?void 0:c.length)===0)return Zr;const r=(u,d)=>Array.isArray(u)?u.filter(h=>d.includes(h)):[],o=r(e.left,t),s=t.filter(u=>!o.includes(u)),l=r(e.right,s);return n?{left:l,right:o}:{left:o,right:l}}const dn=Le(Ke,e=>{const t=[];let n=0;for(let r=0;r<e.length;r+=1)t.push(n),n+=e[r].computedWidth;return t}),vc=Le(It,e=>e.filter(t=>t.filterable)),tb=Le(It,e=>e.reduce((t,n)=>(n.filterable&&(t[n.field]=n),t),{})),nb=Le(It,e=>e.some(t=>t.colSpan!==void 0));let or;function rb(){if(or!==void 0)return or;try{or=new Function("return true")()}catch(e){or=!1}return or}const ns=(e,t)=>{const n=C({},e);if(n.id==null&&(n.id=Math.round(Math.random()*1e5)),n.operator==null){const r=Qt(t)[n.field];n.operator=r&&r.filterOperators[0].value}return n},_s=(e,t,n)=>{const r=e.items.length>1;let o;r&&t?(process.env.NODE_ENV!=="production"&&kt(["MUI X: The `filterModel` can only contain a single item when the `disableMultipleColumnsFiltering` prop is set to `true`.","If you are using the community version of the Data Grid, this prop is always `true`."],"error"),o=[e.items[0]]):o=e.items;const s=r&&o.some(a=>a.id==null),l=o.some(a=>a.operator==null);return process.env.NODE_ENV!=="production"&&s&&kt("MUI X: The `id` field is required on `filterModel.items` when you use multiple filters.","error"),process.env.NODE_ENV!=="production"&&l&&kt("MUI X: The `operator` field is required on `filterModel.items`, one or more of your filtering item has no `operator` provided.","error"),l||s?C({},e,{items:o.map(a=>ns(a,n))}):e.items!==o?C({},e,{items:o}):e},Ql=(e,t,n)=>r=>C({},r,{filterModel:_s(e,t,n)}),wr=e=>typeof e=="string"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e,Sc=(e,t)=>{var d;if(!e.field||!e.operator)return null;const n=t.current.getColumn(e.field);if(!n)return null;let r;if(n.valueParser){const h=n.valueParser;r=Array.isArray(e.value)?(d=e.value)==null?void 0:d.map(m=>h(m,void 0,n,t)):h(e.value,void 0,n,t)}else r=e.value;const{ignoreDiacritics:o}=t.current.rootProps;o&&(r=wr(r));const s=C({},e,{value:r}),l=n.filterOperators;if(!(l!=null&&l.length))throw new Error(`MUI X: No filter operators found for column '${n.field}'.`);const a=l.find(h=>h.value===s.operator);if(!a)throw new Error(`MUI X: No filter operator found for column '${n.field}' and operator value '${s.operator}'.`);const c=Cc(t),u=a.getApplyFilterFn(s,n);return typeof u!="function"?null:{item:s,fn:h=>{let m=t.current.getRowValue(h,n);return o&&(m=wr(m)),u(m,h,n,c)}}};let Jl=1;const ob=(e,t,n)=>{const{items:r}=e,o=r.map(a=>Sc(a,t)).filter(a=>!!a);if(o.length===0)return null;if(n||!rb())return(a,c)=>{const u={};for(let d=0;d<o.length;d+=1){const h=o[d];(!c||c(h.item.field))&&(u[h.item.id]=h.fn(a))}return u};const s=new Function("appliers","row","shouldApplyFilter",`"use strict";
44
+ */var Gl;function p1(){return Gl||(Gl=1,process.env.NODE_ENV!=="production"&&(function(){function e(p,b){return p===b&&(p!==0||1/p===1/b)||p!==p&&b!==b}function t(p,b){d||o.startTransition===void 0||(d=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var x=b();if(!f){var w=b();s(x,w)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}w=l({inst:{value:x,getSnapshot:b}});var S=w[0].inst,v=w[1];return c(function(){S.value=x,S.getSnapshot=b,n(S)&&v({inst:S})},[p,x,b]),a(function(){return n(S)&&v({inst:S}),p(function(){n(S)&&v({inst:S})})},[p]),u(x),x}function n(p){var b=p.getSnapshot;p=p.value;try{var x=b();return!s(p,x)}catch(w){return!0}}function r(p,b){return b()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=g.default,s=typeof Object.is=="function"?Object.is:e,l=o.useState,a=o.useEffect,c=o.useLayoutEffect,u=o.useDebugValue,d=!1,f=!1,m=typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"?r:t;_o.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:m,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),_o}var Bl;function b1(){return Bl||(Bl=1,process.env.NODE_ENV==="production"?Vr.exports=m1():Vr.exports=p1()),Vr.exports}var js=b1();function oc(e){return e.acceptsApiRef}function Wl(e,t){return oc(t)?t(e):t(e.current.state)}function Ao(e,t,n,r){return oc(t)?t(e,n):t(e.current.state,r)}const sc=Object.is,Os=rc,C1=(e,t)=>e===t?!0:e.length===t.length&&e.every((n,r)=>n===t[r]),w1=(e,t)=>{let n=Object.is;return t instanceof Array?n=C1:t instanceof Object&&(n=Os),n(e,t)},lc=()=>({state:null,equals:null,selector:null,args:void 0}),Xr=[],ic=()=>null,te=(e,t,n=sc)=>{process.env.NODE_ENV!=="production"&&(e.current.state||kt(["MUI X: `useGridSelector` has been called before the initialization of the state.","This hook can only be used inside the context of the grid."]));const r=Bt.default(lc),o=r.current.selector!==null,[s,l]=g.useState(o?null:Wl(e,t));r.current.state=s,r.current.equals=n,r.current.selector=t;const a=g.useCallback(()=>(r.current.subscription||(r.current.subscription=e.current.store.subscribe(()=>{const u=Wl(e,r.current.selector);r.current.equals(r.current.state,u)||(r.current.state=u,l(u))})),null),Xr),c=g.useCallback(()=>()=>{r.current.subscription&&(r.current.subscription(),r.current.subscription=void 0)},Xr);return js.useSyncExternalStore(c,a,ic),s},br=(e,t,n=void 0,r=sc)=>{process.env.NODE_ENV!=="production"&&(e.current.state||kt(["MUI X: `useGridSelector` has been called before the initialization of the state.","This hook can only be used inside the context of the grid."]));const o=Bt.default(lc),s=o.current.selector!==null,[l,a]=g.useState(s?null:Ao(e,t,n,e.current.instanceId));o.current.state=l,o.current.equals=r,o.current.selector=t;const c=o.current.args;if(o.current.args=n,s&&!w1(c,n)){const f=Ao(e,o.current.selector,o.current.args,e.current.instanceId);o.current.equals(o.current.state,f)||(o.current.state=f,a(f))}const u=g.useCallback(()=>(o.current.subscription||(o.current.subscription=e.current.store.subscribe(()=>{const f=Ao(e,o.current.selector,o.current.args,e.current.instanceId);o.current.equals(o.current.state,f)||(o.current.state=f,a(f))})),null),Xr),d=g.useCallback(()=>()=>{o.current.subscription&&(o.current.subscription(),o.current.subscription=void 0)},Xr);return js.useSyncExternalStore(d,u,ic),l},x1=nc({memoize:Ja,memoizeOptions:{maxSize:1,equalityCheck:Object.is}}),ql=new WeakMap;function Ot(e){return"current"in e&&"instanceId"in e.current}const Rt={id:"default"},be=(e,t,n,r,o,s,...l)=>{if(l.length>0)throw new Error("Unsupported number of selectors");let a;if(e&&t&&n&&r&&o&&s)a=(c,u)=>{const d=Ot(c),f=u!=null?u:d?c.current.instanceId:Rt,m=d?c.current.state:c,p=e(m,f),b=t(m,f),x=n(m,f),w=r(m,f),S=o(m,f);return s(p,b,x,w,S)};else if(e&&t&&n&&r&&o)a=(c,u)=>{const d=Ot(c),f=u!=null?u:d?c.current.instanceId:Rt,m=d?c.current.state:c,p=e(m,f),b=t(m,f),x=n(m,f),w=r(m,f);return o(p,b,x,w)};else if(e&&t&&n&&r)a=(c,u)=>{const d=Ot(c),f=u!=null?u:d?c.current.instanceId:Rt,m=d?c.current.state:c,p=e(m,f),b=t(m,f),x=n(m,f);return r(p,b,x)};else if(e&&t&&n)a=(c,u)=>{const d=Ot(c),f=u!=null?u:d?c.current.instanceId:Rt,m=d?c.current.state:c,p=e(m,f),b=t(m,f);return n(p,b)};else if(e&&t)a=(c,u)=>{const d=Ot(c),f=u!=null?u:d?c.current.instanceId:Rt,m=d?c.current.state:c,p=e(m,f);return t(p)};else throw new Error("Missing arguments");return a.acceptsApiRef=!0,a},Sr=(e,t,n,r,o,s,...l)=>{if(l.length>0)throw new Error("Unsupported number of selectors");let a;if(e&&t&&n&&r&&o&&s)a=(c,u,d)=>{const f=Ot(c),m=d!=null?d:f?c.current.instanceId:Rt,p=f?c.current.state:c,b=e(p,u,m),x=t(p,u,m),w=n(p,u,m),S=r(p,u,m),v=o(p,u,m);return s(b,x,w,S,v,u)};else if(e&&t&&n&&r&&o)a=(c,u,d)=>{const f=Ot(c),m=d!=null?d:f?c.current.instanceId:Rt,p=f?c.current.state:c,b=e(p,u,m),x=t(p,u,m),w=n(p,u,m),S=r(p,u,m);return o(b,x,w,S,u)};else if(e&&t&&n&&r)a=(c,u,d)=>{const f=Ot(c),m=d!=null?d:f?c.current.instanceId:Rt,p=f?c.current.state:c,b=e(p,u,m),x=t(p,u,m),w=n(p,u,m);return r(b,x,w,u)};else if(e&&t&&n)a=(c,u,d)=>{const f=Ot(c),m=d!=null?d:f?c.current.instanceId:Rt,p=f?c.current.state:c,b=e(p,u,m),x=t(p,u,m);return n(b,x,u)};else if(e&&t)a=(c,u,d)=>{const f=Ot(c),m=d!=null?d:f?c.current.instanceId:Rt,p=f?c.current.state:c,b=e(p,u,m);return t(b,u)};else throw new Error("Missing arguments");return a.acceptsApiRef=!0,a},Le=(...e)=>{const t=(n,r)=>{const o=Ot(n),s=o?n.current.instanceId:r!=null?r:Rt,l=o?n.current.state:n;process.env.NODE_ENV!=="production"&&s.id==="default"&&kt(["MUI X: A selector was called without passing the instance ID, which may impact the performance of the grid.","To fix, call it with `apiRef`, for example `mySelector(apiRef)`, or pass the instance ID explicitly, for example `mySelector(state, apiRef.current.instanceId)`."]);const a=ql.get(s),c=a!=null?a:new Map,u=c==null?void 0:c.get(e);if(c&&u)return u(l,s);const d=x1(...e);return a||ql.set(s,c),c.set(e,d),d(l,s)};return t.acceptsApiRef=!0,t},at=e=>e.dimensions,uo=be(at,e=>e.columnsTotalWidth),Rs=e=>e.dimensions.rowHeight,y1=e=>e.dimensions.contentSize.height,v1=e=>e.dimensions.hasScrollX,S1=e=>e.dimensions.hasScrollY,ac=e=>e.dimensions.columnsTotalWidth<e.dimensions.viewportOuterSize.width,k1=e=>e.dimensions.headerHeight,I1=e=>e.dimensions.groupHeaderHeight,cc=e=>e.dimensions.hasScrollY?e.dimensions.scrollbarSize:0,M1=e=>{const t=e.dimensions.hasScrollX?e.dimensions.scrollbarSize:0,n=e.dimensions.viewportOuterSize.height-e.dimensions.minimumSize.height>0;return!(t===0&&!n)};function Zt(e){return g.memo(e,rc)}const E1={noRowsLabel:"No rows",noResultsOverlayLabel:"No results found.",toolbarDensity:"Density",toolbarDensityLabel:"Density",toolbarDensityCompact:"Compact",toolbarDensityStandard:"Standard",toolbarDensityComfortable:"Comfortable",toolbarColumns:"Columns",toolbarColumnsLabel:"Select columns",toolbarFilters:"Filters",toolbarFiltersLabel:"Show filters",toolbarFiltersTooltipHide:"Hide filters",toolbarFiltersTooltipShow:"Show filters",toolbarFiltersTooltipActive:e=>e!==1?`${e} active filters`:`${e} active filter`,toolbarQuickFilterPlaceholder:"Search…",toolbarQuickFilterLabel:"Search",toolbarQuickFilterDeleteIconLabel:"Clear",toolbarExport:"Export",toolbarExportLabel:"Export",toolbarExportCSV:"Download as CSV",toolbarExportPrint:"Print",toolbarExportExcel:"Download as Excel",columnsManagementSearchTitle:"Search",columnsManagementNoColumns:"No columns",columnsManagementShowHideAllText:"Show/Hide All",columnsManagementReset:"Reset",columnsManagementDeleteIconLabel:"Clear",filterPanelAddFilter:"Add filter",filterPanelRemoveAll:"Remove all",filterPanelDeleteIconLabel:"Delete",filterPanelLogicOperator:"Logic operator",filterPanelOperator:"Operator",filterPanelOperatorAnd:"And",filterPanelOperatorOr:"Or",filterPanelColumns:"Columns",filterPanelInputLabel:"Value",filterPanelInputPlaceholder:"Filter value",filterOperatorContains:"contains",filterOperatorDoesNotContain:"does not contain",filterOperatorEquals:"equals",filterOperatorDoesNotEqual:"does not equal",filterOperatorStartsWith:"starts with",filterOperatorEndsWith:"ends with",filterOperatorIs:"is",filterOperatorNot:"is not",filterOperatorAfter:"is after",filterOperatorOnOrAfter:"is on or after",filterOperatorBefore:"is before",filterOperatorOnOrBefore:"is on or before",filterOperatorIsEmpty:"is empty",filterOperatorIsNotEmpty:"is not empty",filterOperatorIsAnyOf:"is any of","filterOperator=":"=","filterOperator!=":"!=","filterOperator>":">","filterOperator>=":">=","filterOperator<":"<","filterOperator<=":"<=",headerFilterOperatorContains:"Contains",headerFilterOperatorDoesNotContain:"Does not contain",headerFilterOperatorEquals:"Equals",headerFilterOperatorDoesNotEqual:"Does not equal",headerFilterOperatorStartsWith:"Starts with",headerFilterOperatorEndsWith:"Ends with",headerFilterOperatorIs:"Is",headerFilterOperatorNot:"Is not",headerFilterOperatorAfter:"Is after",headerFilterOperatorOnOrAfter:"Is on or after",headerFilterOperatorBefore:"Is before",headerFilterOperatorOnOrBefore:"Is on or before",headerFilterOperatorIsEmpty:"Is empty",headerFilterOperatorIsNotEmpty:"Is not empty",headerFilterOperatorIsAnyOf:"Is any of","headerFilterOperator=":"Equals","headerFilterOperator!=":"Not equals","headerFilterOperator>":"Greater than","headerFilterOperator>=":"Greater than or equal to","headerFilterOperator<":"Less than","headerFilterOperator<=":"Less than or equal to",filterValueAny:"any",filterValueTrue:"true",filterValueFalse:"false",columnMenuLabel:"Menu",columnMenuAriaLabel:e=>`${e} column menu`,columnMenuShowColumns:"Show columns",columnMenuManageColumns:"Manage columns",columnMenuFilter:"Filter",columnMenuHideColumn:"Hide column",columnMenuUnsort:"Unsort",columnMenuSortAsc:"Sort by ASC",columnMenuSortDesc:"Sort by DESC",columnHeaderFiltersTooltipActive:e=>e!==1?`${e} active filters`:`${e} active filter`,columnHeaderFiltersLabel:"Show filters",columnHeaderSortIconLabel:"Sort",footerRowSelected:e=>e!==1?`${e.toLocaleString()} rows selected`:`${e.toLocaleString()} row selected`,footerTotalRows:"Total Rows:",footerTotalVisibleRows:(e,t)=>`${e.toLocaleString()} of ${t.toLocaleString()}`,checkboxSelectionHeaderName:"Checkbox selection",checkboxSelectionSelectAllRows:"Select all rows",checkboxSelectionUnselectAllRows:"Unselect all rows",checkboxSelectionSelectRow:"Select row",checkboxSelectionUnselectRow:"Unselect row",booleanCellTrueLabel:"yes",booleanCellFalseLabel:"no",actionsCellMore:"more",pinToLeft:"Pin to left",pinToRight:"Pin to right",unpin:"Unpin",treeDataGroupingHeaderName:"Group",treeDataExpand:"see children",treeDataCollapse:"hide children",groupingColumnHeaderName:"Group",groupColumn:e=>`Group by ${e}`,unGroupColumn:e=>`Stop grouping by ${e}`,detailPanelToggle:"Detail panel toggle",expandDetailPanel:"Expand",collapseDetailPanel:"Collapse",MuiTablePagination:{},rowReorderingHeaderName:"Row reordering",aggregationMenuItemHeader:"Aggregation",aggregationFunctionLabelSum:"sum",aggregationFunctionLabelAvg:"avg",aggregationFunctionLabelMin:"min",aggregationFunctionLabelMax:"max",aggregationFunctionLabelSize:"size"};function Te(e){return oe.unstable_generateUtilityClass("MuiDataGrid",e)}const I=oe.unstable_generateUtilityClasses("MuiDataGrid",["actionsCell","aggregationColumnHeader","aggregationColumnHeader--alignLeft","aggregationColumnHeader--alignCenter","aggregationColumnHeader--alignRight","aggregationColumnHeaderLabel","autoHeight","autosizing","booleanCell","cell--editable","cell--editing","cell--flex","cell--textCenter","cell--textLeft","cell--textRight","cell--rangeTop","cell--rangeBottom","cell--rangeLeft","cell--rangeRight","cell--pinnedLeft","cell--pinnedRight","cell--selectionMode","cell","cellCheckbox","cellEmpty","cellSkeleton","cellOffsetLeft","checkboxInput","columnHeader","columnHeader--alignCenter","columnHeader--alignLeft","columnHeader--alignRight","columnHeader--dragging","columnHeader--moving","columnHeader--numeric","columnHeader--sortable","columnHeader--sorted","columnHeader--filtered","columnHeader--pinnedLeft","columnHeader--pinnedRight","columnHeader--last","columnHeader--lastUnpinned","columnHeader--siblingFocused","columnHeaderCheckbox","columnHeaderDraggableContainer","columnHeaderTitle","columnHeaderTitleContainer","columnHeaderTitleContainerContent","columnHeader--filledGroup","columnHeader--emptyGroup","columnHeaders","columnSeparator--resizable","columnSeparator--resizing","columnSeparator--sideLeft","columnSeparator--sideRight","columnSeparator","columnsManagement","columnsManagementRow","columnsManagementHeader","columnsManagementSearchInput","columnsManagementFooter","container--top","container--bottom","detailPanel","detailPanels","detailPanelToggleCell","detailPanelToggleCell--expanded","footerCell","panel","panelHeader","panelWrapper","panelContent","panelFooter","paper","editBooleanCell","editInputCell","filler","filler--borderBottom","filler--pinnedLeft","filler--pinnedRight","filterForm","filterFormDeleteIcon","filterFormLogicOperatorInput","filterFormColumnInput","filterFormOperatorInput","filterFormValueInput","filterIcon","footerContainer","headerFilterRow","iconButtonContainer","iconSeparator","main","main--hasPinnedRight","main--hasSkeletonLoadingOverlay","menu","menuIcon","menuIconButton","menuOpen","menuList","overlay","overlayWrapper","overlayWrapperInner","root","root--densityStandard","root--densityComfortable","root--densityCompact","root--disableUserSelection","root--noToolbar","row","row--editable","row--editing","row--firstVisible","row--lastVisible","row--dragging","row--dynamicHeight","row--detailPanelExpanded","row--borderBottom","rowReorderCellPlaceholder","rowCount","rowReorderCellContainer","rowReorderCell","rowReorderCell--draggable","rowSkeleton","scrollArea--left","scrollArea--right","scrollArea--up","scrollArea--down","scrollArea","scrollbar","scrollbar--vertical","scrollbar--horizontal","scrollbarFiller","scrollbarFiller--header","scrollbarFiller--borderTop","scrollbarFiller--borderBottom","scrollbarFiller--pinnedRight","selectedRowCount","sortButton","sortIcon","toolbarContainer","toolbarFilterList","virtualScroller","virtualScroller--hasScrollX","virtualScrollerContent","virtualScrollerContent--overflowed","virtualScrollerRenderZone","pinnedColumns","withVerticalBorder","withBorderColor","cell--withRightBorder","cell--withLeftBorder","columnHeader--withRightBorder","columnHeader--withLeftBorder","treeDataGroupingCell","treeDataGroupingCellToggle","treeDataGroupingCellLoadingContainer","groupingCriteriaCell","groupingCriteriaCellToggle","groupingCriteriaCellLoadingContainer","pinnedRows","pinnedRows--top","pinnedRows--bottom","pinnedRowsRenderZone"]),Ul=1e3;class P1{constructor(t=Ul){this.timeouts=new Map,this.cleanupTimeout=Ul,this.cleanupTimeout=t}register(t,n,r){this.timeouts||(this.timeouts=new Map);const o=setTimeout(()=>{typeof n=="function"&&n(),this.timeouts.delete(r.cleanupToken)},this.cleanupTimeout);this.timeouts.set(r.cleanupToken,o)}unregister(t){const n=this.timeouts.get(t.cleanupToken);n&&(this.timeouts.delete(t.cleanupToken),clearTimeout(n))}reset(){this.timeouts&&(this.timeouts.forEach((t,n)=>{this.unregister({cleanupToken:n})}),this.timeouts=void 0)}}class T1{constructor(){this.registry=new FinalizationRegistry(t=>{typeof t=="function"&&t()})}register(t,n,r){this.registry.register(t,n,r)}unregister(t){this.registry.unregister(t)}reset(){}}var wt=(function(e){return e.DataGrid="DataGrid",e.DataGridPro="DataGridPro",e.DataGridPremium="DataGridPremium",e})(wt||{});class F1{}function j1(e){let t=0;return function(r,o,s,l){e.registry===null&&(e.registry=typeof FinalizationRegistry!="undefined"?new T1:new P1);const[a]=g.useState(new F1),c=g.useRef(null),u=g.useRef(null);u.current=s;const d=g.useRef(null);if(!c.current&&u.current){const f=(m,p,b)=>{var x;p&&!p.defaultMuiPrevented&&((x=u.current)==null||x.call(u,m,p,b))};c.current=r.current.subscribeEvent(o,f,l),t+=1,d.current={cleanupToken:t},e.registry.register(a,()=>{var m;(m=c.current)==null||m.call(c),c.current=null,d.current=null},d.current)}else!u.current&&c.current&&(c.current(),c.current=null,d.current&&(e.registry.unregister(d.current),d.current=null));g.useEffect(()=>{if(!c.current&&u.current){const f=(m,p,b)=>{var x;p&&!p.defaultMuiPrevented&&((x=u.current)==null||x.call(u,m,p,b))};c.current=r.current.subscribeEvent(o,f,l)}return d.current&&e.registry&&(e.registry.unregister(d.current),d.current=null),()=>{var f;(f=c.current)==null||f.call(c),c.current=null}},[r,o,l])}}const O1={registry:null},le=j1(O1),R1={isFirst:!0};function Ae(e,t,n){le(e,t,n,R1)}const L1=.7,D1=1.3,H1={compact:L1,comfortable:D1,standard:1},Rn=e=>e.density,Un=be(Rn,e=>H1[e]);function me(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}const _1=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","isValidating","debounceMs","isProcessingProps","onValueChange"],A1=e=>{const{classes:t}=e,n={root:["editInputCell"]};return oe.unstable_composeClasses(n,Te,t)},V1=ge.styled(ca.default,{name:"MuiDataGrid",slot:"EditInputCell",overridesResolver:(e,t)=>t.editInputCell})(({theme:e})=>C({},e.typography.body2,{padding:"1px 0","& input":{padding:"0 16px",height:"100%"}})),uc=je((e,t)=>{const n=ue(),{id:r,value:o,field:s,colDef:l,hasFocus:a,debounceMs:c=200,isProcessingProps:u,onValueChange:d}=e,f=me(e,_1),m=ke(),p=g.useRef(null),[b,x]=g.useState(o),w=A1(n),S=g.useCallback(async F=>{const j=F.target.value;d&&await d(F,j);const y=m.current.getColumn(s);let A=j;y.valueParser&&(A=y.valueParser(j,m.current.getRow(r),y,m)),x(A),m.current.setEditCellValue({id:r,field:s,value:A,debounceMs:c,unstable_skipValueParser:!0},F)},[m,c,s,r,d]),v=m.current.unstable_getEditCellMeta(r,s);return g.useEffect(()=>{(v==null?void 0:v.changeReason)!=="debouncedSetEditCellValue"&&x(o)},[v,o]),oe.unstable_useEnhancedEffect(()=>{a&&p.current.focus()},[a]),i.jsx(V1,C({inputRef:p,className:w.root,ownerState:n,fullWidth:!0,type:l.type==="number"?l.type:"text",value:b!=null?b:"",onChange:S,endAdornment:u?i.jsx(n.slots.loadIcon,{fontSize:"small",color:"action"}):void 0},f,{ref:t}))});process.env.NODE_ENV!=="production"&&(uc.propTypes={api:h.object.isRequired,cellMode:h.oneOf(["edit","view"]).isRequired,changeReason:h.oneOf(["debouncedSetEditCellValue","setEditCellValue"]),colDef:h.object.isRequired,debounceMs:h.number,field:h.string.isRequired,formattedValue:h.any,hasFocus:h.bool.isRequired,id:h.oneOfType([h.number,h.string]).isRequired,isEditable:h.bool,isProcessingProps:h.bool,isValidating:h.bool,onValueChange:h.func,row:h.any.isRequired,rowNode:h.object.isRequired,tabIndex:h.oneOf([-1,0]).isRequired,value:h.any});const N1=e=>i.jsx(uc,C({},e)),Mt=e=>e.rows,kr=be(Mt,e=>e.totalRowCount),$1=be(Mt,e=>e.loading),z1=be(Mt,e=>e.totalTopLevelRowCount),vt=be(Mt,e=>e.dataRowIdToModelLookup),Kl=be(Mt,e=>e.dataRowIdToIdLookup),nt=be(Mt,e=>e.tree),G1=be(Mt,e=>e.groupsToFetch),B1=be(Mt,e=>e.groupingName),Xl=be(Mt,e=>e.treeDepths),vn=Le(Mt,e=>{var n;const t=Object.entries(e.treeDepths);return t.length===0?1:((n=t.filter(([,r])=>r>0).map(([r])=>Number(r)).sort((r,o)=>o-r)[0])!=null?n:0)+1}),fr=be(Mt,e=>e.dataRowIds),W1=be(Mt,e=>e==null?void 0:e.additionalRowGroups),Kn=Le(W1,e=>{var n,r,o,s;const t=e==null?void 0:e.pinnedRows;return{bottom:(r=(n=t==null?void 0:t.bottom)==null?void 0:n.map(l=>{var a;return{id:l.id,model:(a=l.model)!=null?a:{}}}))!=null?r:[],top:(s=(o=t==null?void 0:t.top)==null?void 0:o.map(l=>{var a;return{id:l.id,model:(a=l.model)!=null?a:{}}}))!=null?s:[]}}),dc=be(Kn,e=>{var t,n;return(((t=e==null?void 0:e.top)==null?void 0:t.length)||0)+(((n=e==null?void 0:e.bottom)==null?void 0:n.length)||0)}),fc=(e,t)=>t&&e.length>1?(process.env.NODE_ENV!=="production"&&kt(["MUI X: The `sortModel` can only contain a single item when the `disableMultipleColumnsSorting` prop is set to `true`.","If you are using the community version of the Data Grid, this prop is always `true`."],"error"),[e[0]]):e,Yl=(e,t)=>n=>C({},n,{sorting:C({},n.sorting,{sortModel:fc(e,t)})}),q1=e=>e==="desc",U1=(e,t)=>{const n=t.current.getColumn(e.field);if(!n||e.sort===null)return null;let r;return n.getSortComparator?r=n.getSortComparator(e.sort):r=q1(e.sort)?(...s)=>-1*n.sortComparator(...s):n.sortComparator,r?{getSortCellParams:s=>({id:s,field:n.field,rowNode:nt(t)[s],value:t.current.getCellValue(s,n.field),api:t.current}),comparator:r}:null},K1=(e,t,n)=>e.reduce((r,o,s)=>{if(r!==0)return r;const l=t.params[s],a=n.params[s];return r=o.comparator(l.value,a.value,l,a),r},0),X1=(e,t)=>{const n=e.map(r=>U1(r,t)).filter(r=>!!r);return n.length===0?null:r=>r.map(o=>({node:o,params:n.map(s=>s.getSortCellParams(o.id))})).sort((o,s)=>K1(n,o,s)).map(o=>o.node.id)},Zl=(e,t)=>{const n=e.indexOf(t);return!t||n===-1||n+1===e.length?e[0]:e[n+1]},Ls=(e,t)=>e==null&&t!=null?-1:t==null&&e!=null?1:e==null&&t==null?0:null,Y1=new Intl.Collator,Z1=(e,t)=>{const n=Ls(e,t);return n!==null?n:typeof e=="string"?Y1.compare(e.toString(),t.toString()):e-t},hc=(e,t)=>{const n=Ls(e,t);return n!==null?n:Number(e)-Number(t)},gc=(e,t)=>{const n=Ls(e,t);return n!==null?n:e>t?1:e<t?-1:0},Q1=["item","applyValue","type","apiRef","focusElementRef","tabIndex","disabled","isFilterActive","clearButton","InputProps","variant"];function Ct(e){var j;const{item:t,applyValue:n,type:r,apiRef:o,focusElementRef:s,tabIndex:l,disabled:a,clearButton:c,InputProps:u,variant:d="standard"}=e,f=me(e,Q1),m=wn.default(),[p,b]=g.useState(Vo(t.value)),[x,w]=g.useState(!1),S=oe.unstable_useId(),v=ue(),F=g.useCallback(y=>{const A=Vo(y.target.value);b(A),w(!0),m.start(v.filterDebounceMs,()=>{const N=C({},t,{value:r==="number"&&!Number.isNaN(Number(A))?Number(A):A,fromInput:S});n(N),w(!1)})},[m,v.filterDebounceMs,t,r,S,n]);return g.useEffect(()=>{(t.fromInput!==S||t.value==null)&&b(Vo(t.value))},[S,t]),i.jsx(v.slots.baseTextField,C({id:S,label:o.current.getLocaleText("filterPanelInputLabel"),placeholder:o.current.getLocaleText("filterPanelInputPlaceholder"),value:p!=null?p:"",onChange:F,variant:d,type:r||"text",InputProps:C({},x||c?{endAdornment:x?i.jsx(v.slots.loadIcon,{fontSize:"small",color:"action"}):c}:{},{disabled:a},u,{inputProps:C({tabIndex:l},u==null?void 0:u.inputProps)}),InputLabelProps:{shrink:!0},inputRef:s},f,(j=v.slotProps)==null?void 0:j.baseTextField))}function Vo(e){if(!(e==null||e===""))return String(e)}process.env.NODE_ENV!=="production"&&(Ct.propTypes={apiRef:h.shape({current:h.object.isRequired}).isRequired,applyValue:h.func.isRequired,clearButton:h.node,focusElementRef:h.oneOfType([h.func,h.object]),isFilterActive:h.bool,item:h.shape({field:h.string.isRequired,id:h.oneOfType([h.number,h.string]),operator:h.string.isRequired,value:h.any}).isRequired});function mc(e){return typeof e=="number"&&!Number.isNaN(e)}function J1(e){return typeof e=="function"}function Ds(e){return typeof e=="object"&&e!==null}function eb(){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 Yr(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}const xt=(e,t,n)=>Math.max(t,Math.min(n,e));function Ql(e,t){return Array.from({length:t-e}).map((n,r)=>e+r)}function sn(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)){const o=e.length;if(o!==t.length)return!1;for(let s=0;s<o;s+=1)if(!sn(e[s],t[s]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;const o=Array.from(e.entries());for(let s=0;s<o.length;s+=1)if(!t.has(o[s][0]))return!1;for(let s=0;s<o.length;s+=1){const l=o[s];if(!sn(l[1],t.get(l[0])))return!1}return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;const o=Array.from(e.entries());for(let s=0;s<o.length;s+=1)if(!t.has(o[s][0]))return!1;return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){const o=e.length;if(o!==t.length)return!1;for(let s=0;s<o;s+=1)if(e[s]!==t[s])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const n=Object.keys(e),r=n.length;if(r!==Object.keys(t).length)return!1;for(let o=0;o<r;o+=1)if(!Object.prototype.hasOwnProperty.call(t,n[o]))return!1;for(let o=0;o<r;o+=1){const s=n[o];if(!sn(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function tb(e){return()=>{let t=e+=1831565813;return t=Math.imul(t^t>>>15,t|1),t^=t+Math.imul(t^t>>>7,t|61),((t^t>>>14)>>>0)/4294967296}}function nb(e){const t=tb(e);return(n,r)=>n+(r-n)*t()}function pc(e){return typeof structuredClone=="function"?structuredClone(e):JSON.parse(JSON.stringify(e))}const mn=(e,t)=>n=>{e&&t(n)},rb=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant"],ob=["key"];function Hs(e){const{item:t,applyValue:n,type:r,apiRef:o,focusElementRef:s,color:l,error:a,helperText:c,size:u,variant:d="standard"}=e,f=me(e,rb),m={color:l,error:a,helperText:c,size:u,variant:d},[p,b]=g.useState(t.value||[]),x=oe.unstable_useId(),w=ue();g.useEffect(()=>{var F;const v=(F=t.value)!=null?F:[];b(v.map(String))},[t.value]);const S=g.useCallback((v,F)=>{b(F.map(String)),n(C({},t,{value:[...F.map(j=>r==="number"?Number(j):j)]}))},[n,t,r]);return i.jsx(ua.default,C({multiple:!0,freeSolo:!0,options:[],filterOptions:(v,F)=>{const{inputValue:j}=F;return j==null||j===""?[]:[j]},id:x,value:p,onChange:S,renderTags:(v,F)=>v.map((j,y)=>{const A=F({index:y}),{key:N}=A,M=me(A,ob);return i.jsx(w.slots.baseChip,C({variant:"outlined",size:"small",label:j},M),N)}),renderInput:v=>{var F;return i.jsx(w.slots.baseTextField,C({},v,{label:o.current.getLocaleText("filterPanelInputLabel"),placeholder:o.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:C({},v.InputLabelProps,{shrink:!0}),inputRef:s,type:r||"text"},m,(F=w.slotProps)==null?void 0:F.baseTextField))}},f))}process.env.NODE_ENV!=="production"&&(Hs.propTypes={apiRef:h.shape({current:h.object.isRequired}).isRequired,applyValue:h.func.isRequired,focusElementRef:h.oneOfType([h.func,h.object]),item:h.shape({field:h.string.isRequired,id:h.oneOfType([h.number,h.string]),operator:h.string.isRequired,value:h.any}).isRequired,type:h.oneOf(["date","datetime-local","number","text"])});var zt=(function(e){return e.Cell="cell",e.Row="row",e})(zt||{}),_e=(function(e){return e.Edit="edit",e.View="view",e})(_e||{}),We=(function(e){return e.Edit="edit",e.View="view",e})(We||{}),mt=(function(e){return e.And="and",e.Or="or",e})(mt||{}),Ut=(function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e.pasteKeyDown="pasteKeyDown",e})(Ut||{}),Ft=(function(e){return e.cellFocusOut="cellFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e})(Ft||{}),nn=(function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e})(nn||{}),At=(function(e){return e.rowFocusOut="rowFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e})(At||{});function bc(e){return e.field!==void 0}const Cc={filteredRowsLookup:{},filteredChildrenCountLookup:{},filteredDescendantCountLookup:{}},Cr=()=>({items:[],logicOperator:mt.And,quickFilterValues:[],quickFilterLogicOperator:mt.And});function wc(e){return{current:e.current.getPublicApi()}}let rn=(function(e){return e.LEFT="left",e.RIGHT="right",e})({});const Zr={left:[],right:[]},xc=e=>e.isRtl,Nt=e=>e.columns,Yt=be(Nt,e=>e.orderedFields),Qt=be(Nt,e=>e.lookup),It=Le(Yt,Qt,(e,t)=>e.map(n=>t[n])),St=be(Nt,e=>e.columnVisibilityModel),Ke=Le(It,St,(e,t)=>e.filter(n=>t[n.field]!==!1)),Xn=Le(Ke,e=>e.map(t=>t.field)),yc=e=>e.pinnedColumns;Le(yc,Yt,xc,(e,t,n)=>vc(e,t,n));const Yn=Le(Nt,yc,Xn,xc,(e,t,n,r)=>{const o=vc(t,n,r);return{left:o.left.map(l=>e.lookup[l]),right:o.right.map(l=>e.lookup[l])}});function vc(e,t,n){var a,c;if(!Array.isArray(e.left)&&!Array.isArray(e.right)||((a=e.left)==null?void 0:a.length)===0&&((c=e.right)==null?void 0:c.length)===0)return Zr;const r=(u,d)=>Array.isArray(u)?u.filter(f=>d.includes(f)):[],o=r(e.left,t),s=t.filter(u=>!o.includes(u)),l=r(e.right,s);return n?{left:l,right:o}:{left:o,right:l}}const dn=Le(Ke,e=>{const t=[];let n=0;for(let r=0;r<e.length;r+=1)t.push(n),n+=e[r].computedWidth;return t}),Sc=Le(It,e=>e.filter(t=>t.filterable)),sb=Le(It,e=>e.reduce((t,n)=>(n.filterable&&(t[n.field]=n),t),{})),lb=Le(It,e=>e.some(t=>t.colSpan!==void 0));let or;function ib(){if(or!==void 0)return or;try{or=new Function("return true")()}catch(e){or=!1}return or}const ns=(e,t)=>{const n=C({},e);if(n.id==null&&(n.id=Math.round(Math.random()*1e5)),n.operator==null){const r=Qt(t)[n.field];n.operator=r&&r.filterOperators[0].value}return n},_s=(e,t,n)=>{const r=e.items.length>1;let o;r&&t?(process.env.NODE_ENV!=="production"&&kt(["MUI X: The `filterModel` can only contain a single item when the `disableMultipleColumnsFiltering` prop is set to `true`.","If you are using the community version of the Data Grid, this prop is always `true`."],"error"),o=[e.items[0]]):o=e.items;const s=r&&o.some(a=>a.id==null),l=o.some(a=>a.operator==null);return process.env.NODE_ENV!=="production"&&s&&kt("MUI X: The `id` field is required on `filterModel.items` when you use multiple filters.","error"),process.env.NODE_ENV!=="production"&&l&&kt("MUI X: The `operator` field is required on `filterModel.items`, one or more of your filtering item has no `operator` provided.","error"),l||s?C({},e,{items:o.map(a=>ns(a,n))}):e.items!==o?C({},e,{items:o}):e},Jl=(e,t,n)=>r=>C({},r,{filterModel:_s(e,t,n)}),wr=e=>typeof e=="string"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e,kc=(e,t)=>{var d;if(!e.field||!e.operator)return null;const n=t.current.getColumn(e.field);if(!n)return null;let r;if(n.valueParser){const f=n.valueParser;r=Array.isArray(e.value)?(d=e.value)==null?void 0:d.map(m=>f(m,void 0,n,t)):f(e.value,void 0,n,t)}else r=e.value;const{ignoreDiacritics:o}=t.current.rootProps;o&&(r=wr(r));const s=C({},e,{value:r}),l=n.filterOperators;if(!(l!=null&&l.length))throw new Error(`MUI X: No filter operators found for column '${n.field}'.`);const a=l.find(f=>f.value===s.operator);if(!a)throw new Error(`MUI X: No filter operator found for column '${n.field}' and operator value '${s.operator}'.`);const c=wc(t),u=a.getApplyFilterFn(s,n);return typeof u!="function"?null:{item:s,fn:f=>{let m=t.current.getRowValue(f,n);return o&&(m=wr(m)),u(m,f,n,c)}}};let ei=1;const ab=(e,t,n)=>{const{items:r}=e,o=r.map(a=>kc(a,t)).filter(a=>!!a);if(o.length===0)return null;if(n||!ib())return(a,c)=>{const u={};for(let d=0;d<o.length;d+=1){const f=o[d];(!c||c(f.item.field))&&(u[f.item.id]=f.fn(a))}return u};const s=new Function("appliers","row","shouldApplyFilter",`"use strict";
45
45
  ${o.map((a,c)=>`const shouldApply${c} = !shouldApplyFilter || shouldApplyFilter(${JSON.stringify(a.item.field)});`).join(`
46
46
  `)}
47
47
 
@@ -50,44 +50,44 @@ ${o.map((a,c)=>` ${JSON.stringify(String(a.item.id))}: !shouldApply${c} ? false
50
50
  `)}
51
51
  };
52
52
 
53
- return result$$;`.replaceAll("$$",String(Jl)));return Jl+=1,(a,c)=>s(o,a,c)},kc=e=>{var t;return(t=e.quickFilterExcludeHiddenColumns)!=null?t:!0},sb=(e,t)=>{var a,c;const n=(c=(a=e.quickFilterValues)==null?void 0:a.filter(Boolean))!=null?c:[];if(n.length===0)return null;const r=kc(e)?Xn(t):Yt(t),o=[],{ignoreDiacritics:s}=t.current.rootProps,l=Cc(t);return r.forEach(u=>{const d=t.current.getColumn(u),h=d==null?void 0:d.getApplyQuickFilterFn;h&&o.push({column:d,appliers:n.map(m=>{const p=s?wr(m):m;return{fn:h(p,d,l)}})})}),function(d,h){const m={};e:for(let p=0;p<n.length;p+=1){const b=n[p];for(let x=0;x<o.length;x+=1){const{column:w,appliers:k}=o[x],{field:v}=w;if(h&&!h(v))continue;const F=k[p];let j=t.current.getRowValue(d,w);if(F.fn===null)continue;if(s&&(j=wr(j)),F.fn(j,d,w,l)){m[b]=!0;continue e}}m[b]=!1}return m}},lb=(e,t,n)=>{const r=ob(e,t,n),o=sb(e,t);return function(l,a,c){var u,d;c.passingFilterItems=(u=r==null?void 0:r(l,a))!=null?u:null,c.passingQuickFilterValues=(d=o==null?void 0:o(l,a))!=null?d:null}},ei=e=>e!=null,ib=(e,t,n)=>(e.cleanedFilterItems||(e.cleanedFilterItems=n.filter(r=>Sc(r,t)!==null)),e.cleanedFilterItems),ab=(e,t,n,r,o)=>{var c,u;const s=ib(o,r,n.items),l=e.filter(ei),a=t.filter(ei);if(l.length>0){const d=m=>l.some(p=>p[m.id]);if(((c=n.logicOperator)!=null?c:Cr().logicOperator)===mt.And){if(!s.every(d))return!1}else if(!s.some(d))return!1}if(a.length>0&&n.quickFilterValues!=null){const d=m=>a.some(p=>p[m]);if(((u=n.quickFilterLogicOperator)!=null?u:Cr().quickFilterLogicOperator)===mt.And){if(!n.quickFilterValues.every(d))return!1}else if(!n.quickFilterValues.some(d))return!1}return!0},cb=e=>{if(!e)return null;const t=new RegExp(Yr(e),"i");return(n,r,o,s)=>{let l=s.current.getRowFormattedValue(r,o);return s.current.ignoreDiacritics&&(l=wr(l)),l!=null?t.test(l.toString()):!1}},ti=(e,t)=>n=>{if(!n.value)return null;const r=e?n.value:n.value.trim(),o=new RegExp(Yr(r),"i");return s=>{if(s==null)return t;const l=o.test(String(s));return t?!l:l}},ni=(e,t)=>n=>{if(!n.value)return null;const r=e?n.value:n.value.trim(),o=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return s=>{if(s==null)return t;const l=o.compare(r,s.toString())===0;return t?!l:l}},ri=e=>()=>t=>{const n=t===""||t==null;return e?!n:n},ub=(e=!1)=>[{value:"contains",getApplyFilterFn:ti(e,!1),InputComponent:Ct},{value:"doesNotContain",getApplyFilterFn:ti(e,!0),InputComponent:Ct},{value:"equals",getApplyFilterFn:ni(e,!1),InputComponent:Ct},{value:"doesNotEqual",getApplyFilterFn:ni(e,!0),InputComponent:Ct},{value:"startsWith",getApplyFilterFn:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`^${Yr(n)}.*$`,"i");return o=>o!=null?r.test(o.toString()):!1},InputComponent:Ct},{value:"endsWith",getApplyFilterFn:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`.*${Yr(n)}$`,"i");return o=>o!=null?r.test(o.toString()):!1},InputComponent:Ct},{value:"isEmpty",getApplyFilterFn:ri(!1),requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:ri(!0),requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFn:t=>{if(!Array.isArray(t.value)||t.value.length===0)return null;const n=e?t.value:t.value.map(o=>o.trim()),r=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return o=>o!=null?n.some(s=>r.compare(s,o.toString()||"")===0):!1},InputComponent:Hs}],Lt={width:100,minWidth:50,maxWidth:1/0,hideable:!0,sortable:!0,resizable:!0,filterable:!0,groupable:!0,pinnable:!0,aggregable:!0,editable:!1,sortComparator:U1,type:"string",align:"left",filterOperators:ub(),renderEditCell:H1,getApplyQuickFilterFn:cb},db=["open","target","onClose","children","position","className","onExited"],fb=e=>{const{classes:t}=e,n={root:["menu"]};return re.unstable_composeClasses(n,Te,t)},hb=ge.styled(bs.default,{name:"MuiDataGrid",slot:"Menu",overridesResolver:(e,t)=>t.menu})(({theme:e})=>({zIndex:e.zIndex.modal,[`& .${I.menuList}`]:{outline:0}})),gb={"bottom-start":"top left","bottom-end":"top right"};function fo(e){var x;const{open:t,target:n,onClose:r,children:o,position:s,className:l,onExited:a}=e,c=me(e,db),u=ke(),d=ue(),h=fb(d),m=g.useRef(null);re.unstable_useEnhancedEffect(()=>{var w,k;t?m.current=document.activeElement instanceof HTMLElement?document.activeElement:null:((k=(w=m.current)==null?void 0:w.focus)==null||k.call(w),m.current=null)},[t]),g.useEffect(()=>{const w=t?"menuOpen":"menuClose";u.current.publishEvent(w,{target:n})},[u,t,n]);const p=w=>k=>{w&&w(),a&&a(k)},b=w=>{w.target&&(n===w.target||n!=null&&n.contains(w.target))||r(w)};return i.jsx(hb,C({as:d.slots.basePopper,className:Pe(h.root,l),ownerState:d,open:t,anchorEl:n,transition:!0,placement:s},c,(x=d.slotProps)==null?void 0:x.basePopper,{children:({TransitionProps:w,placement:k})=>i.jsx(ua.default,{onClickAway:b,mouseEvent:"onMouseDown",children:i.jsx(bh.default,C({},w,{style:{transformOrigin:gb[k]},onExited:p(w==null?void 0:w.onExited),children:i.jsx(da.default,{children:o})}))})}))}process.env.NODE_ENV!=="production"&&(fo.propTypes={children:f.node,onClose:f.func.isRequired,onExited:f.func,open:f.bool.isRequired,position:f.oneOf(["bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),target:re.HTMLElementType});const mb=["api","colDef","id","hasFocus","isEditable","field","value","formattedValue","row","rowNode","cellMode","tabIndex","position","focusElementRef"],pb=e=>typeof e.getActions=="function";function Ic(e){var T;const{colDef:t,id:n,hasFocus:r,tabIndex:o,position:s="bottom-end",focusElementRef:l}=e,a=me(e,mb),[c,u]=g.useState(-1),[d,h]=g.useState(!1),m=ke(),p=g.useRef(null),b=g.useRef(null),x=g.useRef(!1),w=g.useRef({}),k=Gt.useRtl(),v=re.unstable_useId(),F=re.unstable_useId(),j=ue();if(!pb(t))throw new Error("MUI X: Missing the `getActions` property in the `GridColDef`.");const y=t.getActions(m.current.getRowParams(n)),A=y.filter(L=>!L.props.showInMenu),N=y.filter(L=>L.props.showInMenu),M=A.length+(N.length?1:0);g.useLayoutEffect(()=>{r||Object.entries(w.current).forEach(([L,$])=>{$==null||$.stop({},()=>{delete w.current[L]})})},[r]),g.useEffect(()=>{if(c<0||!p.current||c>=p.current.children.length)return;p.current.children[c].focus({preventScroll:!0})},[c]),g.useEffect(()=>{r||(u(-1),x.current=!1)},[r]),g.useImperativeHandle(l,()=>({focus(){if(!x.current){const L=y.findIndex($=>!$.props.disabled);u(L)}}}),[y]),g.useEffect(()=>{c>=M&&u(M-1)},[c,M]);const P=()=>{h(!0),u(M-1),x.current=!0},R=()=>{h(!1)},_=L=>{L.stopPropagation(),L.preventDefault(),d?R():P()},O=L=>$=>{w.current[L]=$},D=(L,$)=>G=>{u(L),x.current=!0,$&&$(G)},V=L=>{if(M<=1)return;const $=(S,H)=>{var U;if(S<0||S>y.length)return S;const q=(H==="left"?-1:1)*(k?-1:1);return(U=y[S+q])!=null&&U.props.disabled?$(S+q,H):S+q};let G=c;L.key==="ArrowRight"?G=$(c,"right"):L.key==="ArrowLeft"&&(G=$(c,"left")),!(G<0||G>=M)&&G!==c&&(L.preventDefault(),L.stopPropagation(),u(G))},E=L=>{L.key==="Tab"&&L.preventDefault(),["Tab","Escape"].includes(L.key)&&R()};return i.jsxs("div",C({role:"menu",ref:p,tabIndex:-1,className:I.actionsCell,onKeyDown:V},a,{children:[A.map((L,$)=>g.cloneElement(L,{key:$,touchRippleRef:O($),onClick:D($,L.props.onClick),tabIndex:c===$?o:-1})),N.length>0&&F&&i.jsx(j.slots.baseIconButton,C({ref:b,id:F,"aria-label":m.current.getLocaleText("actionsCellMore"),"aria-haspopup":"menu","aria-expanded":d,"aria-controls":d?v:void 0,role:"menuitem",size:"small",onClick:_,touchRippleRef:O(F),tabIndex:c===A.length?o:-1},(T=j.slotProps)==null?void 0:T.baseIconButton,{children:i.jsx(j.slots.moreActionsIcon,{fontSize:"small"})})),N.length>0&&i.jsx(fo,{open:d,target:b.current,position:s,onClose:R,children:i.jsx(ps.default,{id:v,className:I.menuList,onKeyDown:E,"aria-labelledby":F,variant:"menu",autoFocusItem:!0,children:N.map((L,$)=>g.cloneElement(L,{key:$,closeMenu:R}))})})]}))}process.env.NODE_ENV!=="production"&&(Ic.propTypes={api:f.object,cellMode:f.oneOf(["edit","view"]).isRequired,colDef:f.object.isRequired,field:f.string.isRequired,focusElementRef:f.oneOfType([f.func,f.shape({current:f.shape({focus:f.func.isRequired})})]),formattedValue:f.any,hasFocus:f.bool.isRequired,id:f.oneOfType([f.number,f.string]).isRequired,isEditable:f.bool,position:f.oneOf(["bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),row:f.any.isRequired,rowNode:f.object.isRequired,tabIndex:f.oneOf([-1,0]).isRequired,value:f.any});const bb=e=>i.jsx(Ic,C({},e)),ho="actions",Cb=C({},Lt,{sortable:!1,filterable:!1,aggregable:!1,width:100,display:"flex",align:"center",headerAlign:"center",headerName:"",disableColumnMenu:!0,disableExport:!0,renderCell:bb,getApplyQuickFilterFn:void 0}),ft="auto-generated-group-node-root",Nn=Symbol("mui.id_autogenerated"),wb=()=>({type:"group",id:ft,depth:-1,groupingField:null,groupingKey:null,isAutoGenerated:!0,children:[],childrenFromPath:{},childrenExpanded:!0,parent:null});function xb(e,t,n="A row was provided without id in the rows prop:"){if(e==null)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.",n,JSON.stringify(t)].join(`
54
- `))}const go=(e,t,n)=>{const r=t?t(e):e.id;return xb(r,e,n),r},zr=({rows:e,getRowId:t,loading:n,rowCount:r})=>{const o={type:"full",rows:[]},s={},l={};for(let a=0;a<e.length;a+=1){const c=e[a],u=go(c,t);s[u]=c,l[u]=u,o.rows.push(u)}return{rowsBeforePartialUpdates:e,loadingPropBeforePartialUpdates:n,rowCountPropBeforePartialUpdates:r,updates:o,dataRowIdToIdLookup:l,dataRowIdToModelLookup:s}},Mc=({tree:e,rowCountProp:t=0})=>{const n=e[ft];return Math.max(t,n.children.length+(n.footerId==null?0:1))},Ec=({apiRef:e,rowCountProp:t=0,loadingProp:n,previousTree:r,previousTreeDepths:o,previousGroupsToFetch:s})=>{const l=e.current.caches.rows,{tree:a,treeDepths:c,dataRowIds:u,groupingName:d,groupsToFetch:h=[]}=e.current.applyStrategyProcessor("rowTreeCreation",{previousTree:r,previousTreeDepths:o,updates:l.updates,dataRowIdToIdLookup:l.dataRowIdToIdLookup,dataRowIdToModelLookup:l.dataRowIdToModelLookup,previousGroupsToFetch:s}),m=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:a,treeDepths:c,dataRowIdToIdLookup:l.dataRowIdToIdLookup,dataRowIds:u,dataRowIdToModelLookup:l.dataRowIdToModelLookup});return e.current.caches.rows.updates={type:"partial",actions:{insert:[],modify:[],remove:[]},idToActionLookup:{}},C({},m,{totalRowCount:Math.max(t,m.dataRowIds.length),totalTopLevelRowCount:Mc({tree:m.tree,rowCountProp:t}),groupingName:d,loading:n,groupsToFetch:h})},$n=e=>e.type==="skeletonRow"||e.type==="footer"||e.type==="group"&&e.isAutoGenerated||e.type==="pinnedRow"&&e.isAutoGenerated,As=(e,t,n)=>{const r=e[t];if(r.type!=="group")return[];const o=[];for(let s=0;s<r.children.length;s+=1){const l=r.children[s];(!n||!$n(e[l]))&&o.push(l);const a=As(e,l,n);for(let c=0;c<a.length;c+=1)o.push(a[c])}return!n&&r.footerId!=null&&o.push(r.footerId),o},oi=({previousCache:e,getRowId:t,updates:n,groupKeys:r})=>{var d,h,m;if(e.updates.type==="full")throw new Error("MUI X: Unable to prepare a partial update if a full update is not applied yet.");const o=new Map;n.forEach(p=>{const b=go(p,t,"A row was provided without id when calling updateRows():");o.has(b)?o.set(b,C({},o.get(b),p)):o.set(b,p)});const s={type:"partial",actions:{insert:[...(d=e.updates.actions.insert)!=null?d:[]],modify:[...(h=e.updates.actions.modify)!=null?h:[]],remove:[...(m=e.updates.actions.remove)!=null?m:[]]},idToActionLookup:C({},e.updates.idToActionLookup),groupKeys:r},l=C({},e.dataRowIdToModelLookup),a=C({},e.dataRowIdToIdLookup),c={insert:{},modify:{},remove:{}};o.forEach((p,b)=>{const x=s.idToActionLookup[b];if(p._action==="delete"){if(x==="remove"||!l[b])return;x!=null&&(c[x][b]=!0),s.actions.remove.push(b),delete l[b],delete a[b];return}const w=l[b];if(w){x==="remove"?(c.remove[b]=!0,s.actions.modify.push(b)):x==null&&s.actions.modify.push(b),l[b]=C({},w,p);return}x==="remove"?(c.remove[b]=!0,s.actions.insert.push(b)):x==null&&s.actions.insert.push(b),l[b]=p,a[b]=b});const u=Object.keys(c);for(let p=0;p<u.length;p+=1){const b=u[p],x=c[b];Object.keys(x).length>0&&(s.actions[b]=s.actions[b].filter(w=>!x[w]))}return{dataRowIdToModelLookup:l,dataRowIdToIdLookup:a,updates:s,rowsBeforePartialUpdates:e.rowsBeforePartialUpdates,loadingPropBeforePartialUpdates:e.loadingPropBeforePartialUpdates,rowCountPropBeforePartialUpdates:e.rowCountPropBeforePartialUpdates}},Pc="var(--DataGrid-overlayHeight, calc(var(--height) * 2))";function si(e,t,n){const r=[];return t.forEach(o=>{const s=go(o,n,"A row was provided without id when calling updateRows():"),l=e.current.getRowNode(s);if((l==null?void 0:l.type)==="pinnedRow"){const a=e.current.caches.pinnedRows,c=a.idLookup[s];c&&(a.idLookup[s]=C({},c,o))}else r.push(o)}),r}let li=!1;const Tc=(e,t,n)=>typeof e=="number"&&e>0?e:(process.env.NODE_ENV!=="production"&&!li&&typeof e!="undefined"&&e!==null&&(console.warn(n),li=!0),t),yb=["MUI X: The `rowHeight` prop should be a number greater than 0.","The default value will be used instead."].join(`
55
- `),vb=["MUI X: The `getRowHeight` prop should return a number greater than 0 or 'auto'.","The default value will be used instead."].join(`
56
- `),Sb="__tree_data_group__",Fc="__row_group_by_columns_group__",mo="__detail_panel_toggle__";let Ie=(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 kb=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","hasFocus","tabIndex","hideDescendantCount"],Ib=e=>{const{classes:t}=e,n={root:["booleanCell"]};return Xe.default(n,Te,t)};function jc(e){const{value:t,rowNode:n}=e,r=me(e,kb),o=ke(),s=ue(),l={classes:s.classes},a=Ib(l),u=te(o,vn)>0&&n.type==="group"&&s.treeData===!1,d=g.useMemo(()=>t?s.slots.booleanCellTrueIcon:s.slots.booleanCellFalseIcon,[s.slots.booleanCellFalseIcon,s.slots.booleanCellTrueIcon,t]);return u&&t===void 0?null:i.jsx(d,C({fontSize:"small",className:a.root,titleAccess:o.current.getLocaleText(t?"booleanCellTrueLabel":"booleanCellFalseLabel"),"data-value":!!t},r))}process.env.NODE_ENV!=="production"&&(jc.propTypes={api:f.object.isRequired,cellMode:f.oneOf(["edit","view"]).isRequired,colDef:f.object.isRequired,field:f.string.isRequired,focusElementRef:f.oneOfType([f.func,f.shape({current:f.shape({focus:f.func.isRequired})})]),formattedValue:f.any,hasFocus:f.bool.isRequired,hideDescendantCount:f.bool,id:f.oneOfType([f.number,f.string]).isRequired,isEditable:f.bool,row:f.any.isRequired,rowNode:f.object.isRequired,tabIndex:f.oneOf([-1,0]).isRequired,value:f.any});const Mb=g.memo(jc),Eb=e=>e.field!==Fc&&$n(e.rowNode)?"":i.jsx(Mb,C({},e)),Pb=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange"],Tb=e=>{const{classes:t}=e,n={root:["editBooleanCell"]};return re.unstable_composeClasses(n,Te,t)};function Oc(e){var k;const{id:t,value:n,field:r,className:o,hasFocus:s,onValueChange:l}=e,a=me(e,Pb),c=ke(),u=g.useRef(null),d=re.unstable_useId(),[h,m]=g.useState(n),p=ue(),b={classes:p.classes},x=Tb(b),w=g.useCallback(async v=>{const F=v.target.checked;l&&await l(v,F),m(F),await c.current.setEditCellValue({id:t,field:r,value:F},v)},[c,r,t,l]);return g.useEffect(()=>{m(n)},[n]),re.unstable_useEnhancedEffect(()=>{s&&u.current.focus()},[s]),i.jsx("label",C({htmlFor:d,className:Pe(x.root,o)},a,{children:i.jsx(p.slots.baseCheckbox,C({id:d,inputRef:u,checked:!!h,onChange:w,size:"small"},(k=p.slotProps)==null?void 0:k.baseCheckbox))}))}process.env.NODE_ENV!=="production"&&(Oc.propTypes={api:f.object.isRequired,cellMode:f.oneOf(["edit","view"]).isRequired,changeReason:f.oneOf(["debouncedSetEditCellValue","setEditCellValue"]),colDef:f.object.isRequired,field:f.string.isRequired,formattedValue:f.any,hasFocus:f.bool.isRequired,id:f.oneOfType([f.number,f.string]).isRequired,isEditable:f.bool,isProcessingProps:f.bool,isValidating:f.bool,onValueChange:f.func,row:f.any.isRequired,rowNode:f.object.isRequired,tabIndex:f.oneOf([-1,0]).isRequired,value:f.any});const Fb=e=>i.jsx(Oc,C({},e)),jb=["item","applyValue","apiRef","focusElementRef","isFilterActive","clearButton","tabIndex","label","variant","InputLabelProps"],Gr=e=>{if(String(e).toLowerCase()==="true")return!0;if(String(e).toLowerCase()==="false")return!1},Ob=ge.styled("div")({display:"flex",alignItems:"center",width:"100%","& button":{margin:"auto 0px 5px 5px"}});function Rc(e){var j,y,A,N;const{item:t,applyValue:n,apiRef:r,focusElementRef:o,clearButton:s,tabIndex:l,label:a,variant:c="standard"}=e,u=me(e,jb),[d,h]=g.useState(Gr(t.value)),m=ue(),p=re.unstable_useId(),b=re.unstable_useId(),x=((j=m.slotProps)==null?void 0:j.baseSelect)||{},w=(y=x.native)!=null?y:!1,k=((A=m.slotProps)==null?void 0:A.baseSelectOption)||{},v=g.useCallback(M=>{const P=Gr(M.target.value);h(P),n(C({},t,{value:P}))},[n,t]);g.useEffect(()=>{h(Gr(t.value))},[t.value]);const F=a!=null?a:r.current.getLocaleText("filterPanelInputLabel");return i.jsxs(Ob,{children:[i.jsxs(m.slots.baseFormControl,{fullWidth:!0,children:[i.jsx(m.slots.baseInputLabel,C({},(N=m.slotProps)==null?void 0:N.baseInputLabel,{id:p,shrink:!0,variant:c,children:F})),i.jsxs(m.slots.baseSelect,C({labelId:p,id:b,label:F,value:d===void 0?"":String(d),onChange:v,variant:c,notched:c==="outlined"?!0:void 0,native:w,displayEmpty:!0,inputProps:{ref:o,tabIndex:l}},u,x,{children:[i.jsx(m.slots.baseSelectOption,C({},k,{native:w,value:"",children:r.current.getLocaleText("filterValueAny")})),i.jsx(m.slots.baseSelectOption,C({},k,{native:w,value:"true",children:r.current.getLocaleText("filterValueTrue")})),i.jsx(m.slots.baseSelectOption,C({},k,{native:w,value:"false",children:r.current.getLocaleText("filterValueFalse")}))]}))]}),s]})}process.env.NODE_ENV!=="production"&&(Rc.propTypes={apiRef:f.shape({current:f.object.isRequired}).isRequired,applyValue:f.func.isRequired,clearButton:f.node,focusElementRef:re.refType,isFilterActive:f.bool,item:f.shape({field:f.string.isRequired,id:f.oneOfType([f.number,f.string]),operator:f.string.isRequired,value:f.any}).isRequired});const Rb=()=>[{value:"is",getApplyFilterFn:e=>{const t=Gr(e.value);return t===void 0?null:n=>!!n===t},InputComponent:Rc}],Lb=(e,t,n,r)=>e?r.current.getLocaleText("booleanCellTrueLabel"):r.current.getLocaleText("booleanCellFalseLabel"),Db=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}},Lc=C({},Lt,{type:"boolean",display:"flex",align:"center",headerAlign:"center",renderCell:Eb,renderEditCell:Fb,sortComparator:fc,valueFormatter:Lb,filterOperators:Rb(),getApplyQuickFilterFn:void 0,aggregable:!1,pastedValueParser:e=>Db(e)}),Dc=e=>e.sorting,Zn=be(Dc,e=>e.sortedRows),Vs=Le(Zn,vt,nt,(e,t,n)=>e.reduce((r,o)=>{const s=t[o];if(s)r.push({id:o,model:s});else{const l=n[o];l&&$n(l)&&r.push({id:o,model:{[Nn]:o}})}return r},[])),jt=be(Dc,e=>e.sortModel),Hb=Le(jt,e=>e.reduce((n,r,o)=>(n[r.field]={sortDirection:r.sort,sortIndex:e.length>1?o+1:void 0},n),{}));Le(Zn,e=>e.reduce((t,n,r)=>(t[n]=r,t),Object.create(null)));const po=e=>e.filter,ut=be(po,e=>e.filterModel),_b=be(ut,e=>e.quickFilterValues),Ab=e=>e.visibleRowsLookup,Qn=be(po,e=>e.filteredRowsLookup);be(po,e=>e.filteredChildrenCountLookup);be(po,e=>e.filteredDescendantCountLookup);const fn=Le(Ab,Vs,vn,ut,_b,(e,t,n,r,o)=>n<2&&!r.items.length&&!(o!=null&&o.length)?t:t.filter(s=>e[s.id]!==!1)),Vn=Le(fn,e=>e.map(t=>t.id)),Hc=Le(Qn,Vs,(e,t)=>t.filter(n=>e[n.id]!==!1)),_c=Le(Hc,e=>e.map(t=>t.id));Le(Vn,nt,(e,t)=>{const n={};let r=0;return e.reduce((o,s)=>{const l=t[s];return n[l.depth]||(n[l.depth]=0),l.depth>r&&(n[l.depth]=0),r=l.depth,n[l.depth]+=1,o[s]=n[l.depth],o},{})});const Ac=Le(fn,nt,vn,(e,t,n)=>n<2?e:e.filter(r=>{var o;return((o=t[r.id])==null?void 0:o.depth)===0})),Ns=be(fn,e=>e.length),$s=be(Ac,e=>e.length),Vb=be(Hc,e=>e.length);be(Vb,$s,(e,t)=>e-t);const Vc=Le(ut,Qt,(e,t)=>{var n;return(n=e.items)==null?void 0:n.filter(r=>{var l,a;if(!r.field)return!1;const o=t[r.field];if(!(o!=null&&o.filterOperators)||((l=o==null?void 0:o.filterOperators)==null?void 0:l.length)===0)return!1;const s=o.filterOperators.find(c=>c.value===r.operator);return s?!s.InputComponent||r.value!=null&&((a=r.value)==null?void 0:a.toString())!=="":!1})}),Nb=Le(Vc,e=>e.reduce((n,r)=>(n[r.field]?n[r.field].push(r):n[r.field]=[r],n),{})),pt=e=>e.rowSelection,$b=be(pt,e=>e.length),zb=Le(pt,vt,(e,t)=>new Map(e.map(n=>[n,t[n]]))),ln=Le(pt,e=>e.reduce((t,n)=>(t[n]=n,t),{}));function Nc(e,t){var c;const n=nt(e),r=Zn(e),o=Qn(e),s=n[t];if(!s||s.type!=="group")return[];const l=[],a=r.findIndex(u=>u===t)+1;for(let u=a;u<r.length&&((c=n[r[u]])==null?void 0:c.depth)>s.depth;u+=1){const d=r[u];o[d]!==!1&&e.current.isRowSelectable(d)&&l.push(d)}return l}function Gb(e,t){return be(nt,Zn,Qn,ln,(n,r,o,s)=>{var d;const l=n[e];if(!l||l.type!=="group")return{isIndeterminate:!1,isChecked:s[e]===e};if(s[e]===e)return{isIndeterminate:!1,isChecked:!0};let a=0,c=0;const u=r.findIndex(h=>h===e)+1;for(let h=u;h<r.length&&((d=n[r[h]])==null?void 0:d.depth)>l.depth;h+=1){const m=r[h];o[m]!==!1&&(a+=1,s[m]!==void 0&&(c+=1))}return{isIndeterminate:c>0&&(c<a||s[e]===void 0),isChecked:t?c>0:s[e]===e}})}function zs(e){return e.signature===wt.DataGrid?e.checkboxSelection&&e.disableMultipleRowSelection!==!0:!e.disableMultipleRowSelection}const Bb=(e,t)=>{const n=[];let r=t;for(;r!=null&&r!==ft;){const o=e[r];if(!o)return n;n.push(r),r=o.parent}return n},Wb=(e,t,n)=>{const r=e[n];if(!r)return[];const o=r.parent;return o==null?[]:e[o].children.filter(l=>l!==n&&t[l]!==!1)},sr=(e,t,n,r,o,s,l=new Set(pt(e.current.state)))=>{const a=Qn(e),c=new Set([]);if(!(!r&&!o||a[n]===!1)){if(r){const u=t[n];(u==null?void 0:u.type)==="group"&&Nc(e,n).forEach(h=>{s(h),c.add(h)})}if(o){const u=h=>{if(!l.has(h)&&!c.has(h))return!1;const m=t[h];return m?m.type!=="group"?!0:m.children.every(u):!1},d=h=>{const m=Wb(t,a,h);if(m.length===0||m.every(u)){const p=t[h],b=p==null?void 0:p.parent;b!=null&&b!==ft&&e.current.isRowSelectable(b)&&(s(b),c.add(b),d(b))}};d(n)}}},ii=(e,t,n,r,o,s)=>{const l=ln(e);if(!(!o&&!r)&&(o&&Bb(t,n).forEach(c=>{l[c]===c&&s(c)}),r)){const a=t[n];(a==null?void 0:a.type)==="group"&&Nc(e,n).forEach(u=>{s(u)})}},qb=["field","id","formattedValue","row","rowNode","colDef","isEditable","cellMode","hasFocus","tabIndex","api"],Ub=e=>{const{classes:t}=e,n={root:["checkboxInput"]};return re.unstable_composeClasses(n,Te,t)},$c=je(function(t,n){var M,P,R;const{field:r,id:o,rowNode:s,hasFocus:l,tabIndex:a}=t,c=me(t,qb),u=ke(),d=ue(),h={classes:d.classes},m=Ub(h),p=g.useRef(null),b=g.useRef(null),x=re.unstable_useForkRef(p,n),w=_=>{const O={value:_.target.checked,id:o};u.current.publishEvent("rowSelectionCheckboxChange",O,_)};g.useLayoutEffect(()=>{if(a===0){const _=u.current.getCellElement(o,r);_&&(_.tabIndex=-1)}},[u,a,o,r]),g.useEffect(()=>{var _;if(l){const O=(_=p.current)==null?void 0:_.querySelector("input");O==null||O.focus({preventScroll:!0})}else b.current&&b.current.stop({})},[l]);const k=g.useCallback(_=>{_.key===" "&&_.stopPropagation()},[]),v=u.current.isRowSelectable(o),F=Gb(o,(P=(M=d.rowSelectionPropagation)==null?void 0:M.parents)!=null?P:!1),{isIndeterminate:j,isChecked:y}=te(u,F,Os);if(s.type==="footer"||s.type==="pinnedRow")return null;const A=d.indeterminateCheckboxAction==="select"?y&&!j:y,N=u.current.getLocaleText(A?"checkboxSelectionUnselectRow":"checkboxSelectionSelectRow");return i.jsx(d.slots.baseCheckbox,C({tabIndex:a,checked:A,onChange:w,className:m.root,inputProps:{"aria-label":N,name:"select_row"},onKeyDown:k,indeterminate:j,disabled:!v,touchRippleRef:b},(R=d.slotProps)==null?void 0:R.baseCheckbox,c,{ref:x}))});process.env.NODE_ENV!=="production"&&($c.propTypes={api:f.object.isRequired,cellMode:f.oneOf(["edit","view"]).isRequired,colDef:f.object.isRequired,field:f.string.isRequired,focusElementRef:f.oneOfType([f.func,f.shape({current:f.shape({focus:f.func.isRequired})})]),formattedValue:f.any,hasFocus:f.bool.isRequired,id:f.oneOfType([f.number,f.string]).isRequired,isEditable:f.bool,row:f.any.isRequired,rowNode:f.object.isRequired,tabIndex:f.oneOf([-1,0]).isRequired,value:f.any});const Kb=$c,bo=e=>e.focus,gt=be(bo,e=>e.cell),Xb=be(bo,e=>e.columnHeader);be(bo,e=>e.columnHeaderFilter);const Qr=be(bo,e=>e.columnGroupHeader),Co=e=>e.tabIndex,Gs=be(Co,e=>e.cell),zc=be(Co,e=>e.columnHeader);be(Co,e=>e.columnHeaderFilter);const Yb=be(Co,e=>e.columnGroupHeader);function Se(e,t,n){const r=g.useRef(!0);ia.default(()=>{r.current=!1,e.current.register(n,t)},[e,n,t]),r.current&&e.current.register(n,t)}function ct(e,t){const n=g.useRef(null);if(n.current)return n.current;const r=e.current.getLogger(t);return n.current=r,r}const Gc=(e,t,n,r,o)=>{const s=ct(e,"useNativeEventListener");Ae(e,"rootMount",()=>{const l=typeof t=="function"?t():t.current;if(!(!l||!n||!r))return s.debug(`Binding native ${n} event`),l.addEventListener(n,r,o),()=>{s.debug(`Clearing native ${n} event`),l.removeEventListener(n,r,o)}})},Ir=e=>{const t=g.useRef(!0);t.current&&(t.current=!1,e())},Zb=()=>{},Qb=(e,t)=>{const n=g.useRef(!1);re.unstable_useEnhancedEffect(()=>n.current||!e?Zb:(n.current=!0,t()),[n.current||e])},Jb=100,eC=e=>e?0:100,Bc=(e,t,n)=>t>0&&e>0?Math.ceil(e/t):e===-1?n+2:0,Wc=e=>({page:0,pageSize:e?0:100}),tC=(e,t=0)=>t===0?e:Math.max(Math.min(e,t-1),0),qc=(e,t)=>{if(t===wt.DataGrid&&e>Jb)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(`
57
- `))},nC=-1,Mr=e=>e.pagination,Uc=be(Mr,e=>e.enabled&&e.paginationMode==="client"),ht=be(Mr,e=>e.paginationModel),Ln=be(Mr,e=>e.rowCount),hr=be(Mr,e=>e.meta),rC=be(ht,e=>e.page),Kc=be(ht,e=>e.pageSize),Xc=be(ht,Ln,(e,t)=>Bc(t,e.pageSize,e.page)),Bs=Le(Uc,ht,nt,vn,fn,Ac,(e,t,n,r,o,s)=>{var b;if(!e)return null;const l=s.length,a=Math.min(t.pageSize*t.page,l-1),c=t.pageSize===nC?l-1:Math.min(a+t.pageSize-1,l-1);if(a===-1||c===-1)return null;if(r<2)return{firstRowIndex:a,lastRowIndex:c};const u=s[a],d=c-a+1,h=o.findIndex(x=>x.id===u.id);let m=h,p=0;for(;m<o.length&&p<=d;){const x=o[m],w=(b=n[x.id])==null?void 0:b.depth;w===void 0?m+=1:((p<d||w>0)&&(m+=1),w===0&&(p+=1))}return{firstRowIndex:h,lastRowIndex:m-1}}),oC=Le(fn,Bs,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),Yc=Le(Vn,Bs,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),Er=Le(Uc,Bs,oC,fn,(e,t,n,r)=>e?{rows:n,range:t,rowToIndexMap:n.reduce((o,s,l)=>(o.set(s.model,l),o),new Map)}:{rows:r,range:r.length===0?null:{firstRowIndex:0,lastRowIndex:r.length-1},rowToIndexMap:r.reduce((o,s,l)=>(o.set(s.model,l),o),new Map)}),sC=["field","colDef"],lC=e=>{const{classes:t}=e,n={root:["checkboxInput"]};return Xe.default(n,Te,t)},Zc=je(function(t,n){var M;const r=me(t,sC),[,o]=g.useState(!1),s=ke(),l=ue(),a={classes:l.classes},c=lC(a),u=te(s,zc),d=te(s,pt),h=te(s,Vn),m=te(s,Yc),p=g.useMemo(()=>typeof l.isRowSelectable!="function"?d:d.filter(P=>l.keepNonExistentRowsSelected?!0:s.current.getRow(P)?l.isRowSelectable(s.current.getRowParams(P)):!1),[s,l.isRowSelectable,d,l.keepNonExistentRowsSelected]),b=g.useMemo(()=>(!l.pagination||!l.checkboxSelectionVisibleOnly||l.paginationMode==="server"?h:m).reduce((R,_)=>(R[_]=!0,R),{}),[l.pagination,l.paginationMode,l.checkboxSelectionVisibleOnly,m,h]),x=g.useMemo(()=>p.filter(P=>b[P]).length,[p,b]),w=x>0&&x<Object.keys(b).length,k=x>0,v=P=>{const R={value:P.target.checked};s.current.publishEvent("headerSelectionCheckboxChange",R)},F=u!==null&&u.field===t.field?0:-1;g.useLayoutEffect(()=>{const P=s.current.getColumnHeaderElement(t.field);F===0&&P&&(P.tabIndex=-1)},[F,s,t.field]);const j=g.useCallback(P=>{P.key===" "&&s.current.publishEvent("headerSelectionCheckboxChange",{value:!k})},[s,k]),y=g.useCallback(()=>{o(P=>!P)},[]);g.useEffect(()=>s.current.subscribeEvent("rowSelectionChange",y),[s,y]);const A=l.indeterminateCheckboxAction==="select"?k&&!w:k,N=s.current.getLocaleText(A?"checkboxSelectionUnselectAllRows":"checkboxSelectionSelectAllRows");return i.jsx(l.slots.baseCheckbox,C({indeterminate:w,checked:A,onChange:v,className:c.root,inputProps:{"aria-label":N,name:"select_all_rows"},tabIndex:F,onKeyDown:j,disabled:!zs(l)},(M=l.slotProps)==null?void 0:M.baseCheckbox,r,{ref:n}))});process.env.NODE_ENV!=="production"&&(Zc.propTypes={colDef:f.object.isRequired,field:f.string.isRequired});const Pr=(e,t)=>Nn in t?t[Nn]:e.props.getRowId?e.props.getRowId(t):t.id,yt="__check__",Jn=C({},Lc,{type:"custom",field:yt,width:50,resizable:!1,sortable:!1,filterable:!1,aggregable:!1,disableColumnMenu:!0,disableReorder:!0,disableExport:!0,getApplyQuickFilterFn:void 0,display:"flex",valueGetter:(e,t,n,r)=>{const o=ln(r),s=Pr(r.current.state,t);return o[s]!==void 0},renderHeader:e=>i.jsx(Zc,C({},e)),renderCell:e=>i.jsx(Kb,C({},e))}),iC=["item","applyValue","type","apiRef","focusElementRef","InputProps","isFilterActive","clearButton","tabIndex","disabled"];function ai(e,t){if(e==null)return"";const n=new Date(e);return Number.isNaN(n.getTime())?"":t==="date"?n.toISOString().substring(0,10):t==="datetime-local"?(n.setMinutes(n.getMinutes()-n.getTimezoneOffset()),n.toISOString().substring(0,19)):n.toISOString().substring(0,10)}function gn(e){var F;const{item:t,applyValue:n,type:r,apiRef:o,focusElementRef:s,InputProps:l,clearButton:a,tabIndex:c,disabled:u}=e,d=me(e,iC),h=wn.default(),[m,p]=g.useState(()=>ai(t.value,r)),[b,x]=g.useState(!1),w=re.unstable_useId(),k=ue(),v=g.useCallback(j=>{h.clear();const y=j.target.value;p(y),x(!0),h.start(k.filterDebounceMs,()=>{const A=new Date(y);n(C({},t,{value:Number.isNaN(A.getTime())?void 0:A})),x(!1)})},[n,t,k.filterDebounceMs,h]);return g.useEffect(()=>{const j=ai(t.value,r);p(j)},[t.value,r]),i.jsx(k.slots.baseTextField,C({fullWidth:!0,id:w,label:o.current.getLocaleText("filterPanelInputLabel"),placeholder:o.current.getLocaleText("filterPanelInputPlaceholder"),value:m,onChange:v,variant:"standard",type:r||"text",InputLabelProps:{shrink:!0},inputRef:s,InputProps:C({},b||a?{endAdornment:b?i.jsx(k.slots.loadIcon,{fontSize:"small",color:"action"}):a}:{},{disabled:u},l,{inputProps:C({max:r==="datetime-local"?"9999-12-31T23:59":"9999-12-31",tabIndex:c},l==null?void 0:l.inputProps)})},d,(F=k.slotProps)==null?void 0:F.baseTextField))}process.env.NODE_ENV!=="production"&&(gn.propTypes={apiRef:f.shape({current:f.object.isRequired}).isRequired,applyValue:f.func.isRequired,clearButton:f.node,focusElementRef:f.oneOfType([f.func,f.object]),isFilterActive:f.bool,item:f.shape({field:f.string.isRequired,id:f.oneOfType([f.number,f.string]),operator:f.string.isRequired,value:f.any}).isRequired});function In(e,t,n,r){if(!e.value)return null;const o=new Date(e.value);n?o.setSeconds(0,0):(o.setMinutes(o.getMinutes()+o.getTimezoneOffset()),o.setHours(0,0,0,0));const s=o.getTime();return l=>{if(!l)return!1;if(r)return t(l.getTime(),s);const a=new Date(l);return n?a.setSeconds(0,0):a.setHours(0,0,0,0),t(a.getTime(),s)}}const Qc=e=>[{value:"is",getApplyFilterFn:t=>In(t,(n,r)=>n===r,e),InputComponent:gn,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"not",getApplyFilterFn:t=>In(t,(n,r)=>n!==r,e),InputComponent:gn,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"after",getApplyFilterFn:t=>In(t,(n,r)=>n>r,e),InputComponent:gn,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrAfter",getApplyFilterFn:t=>In(t,(n,r)=>n>=r,e),InputComponent:gn,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"before",getApplyFilterFn:t=>In(t,(n,r)=>n<r,e,!e),InputComponent:gn,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrBefore",getApplyFilterFn:t=>In(t,(n,r)=>n<=r,e),InputComponent:gn,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"isEmpty",getApplyFilterFn:()=>t=>t==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:()=>t=>t!=null,requiresFilterValue:!1}],aC=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","inputProps","isValidating","isProcessingProps","onValueChange"],cC=ge.styled(aa.default)({fontSize:"inherit"}),uC=e=>{const{classes:t}=e,n={root:["editInputCell"]};return re.unstable_composeClasses(n,Te,t)};function Jc(e){const{id:t,value:n,field:r,colDef:o,hasFocus:s,inputProps:l,onValueChange:a}=e,c=me(e,aC),u=o.type==="dateTime",d=ke(),h=g.useRef(null),m=g.useMemo(()=>{let j;n==null?j=null:n instanceof Date?j=n:j=new Date((n!=null?n:"").toString());let y;return j==null||Number.isNaN(j.getTime())?y="":y=new Date(j.getTime()-j.getTimezoneOffset()*60*1e3).toISOString().substr(0,u?16:10),{parsed:j,formatted:y}},[n,u]),[p,b]=g.useState(m),w={classes:ue().classes},k=uC(w),v=g.useCallback(j=>{if(j==="")return null;const[y,A]=j.split("T"),[N,M,P]=y.split("-"),R=new Date;if(R.setFullYear(Number(N),Number(M)-1,Number(P)),R.setHours(0,0,0,0),A){const[_,O]=A.split(":");R.setHours(Number(_),Number(O),0,0)}return R},[]),F=g.useCallback(async j=>{const y=j.target.value,A=v(y);a&&await a(j,A),b({parsed:A,formatted:y}),d.current.setEditCellValue({id:t,field:r,value:A},j)},[d,r,t,a,v]);return g.useEffect(()=>{b(j=>{var y,A;return m.parsed!==j.parsed&&((y=m.parsed)==null?void 0:y.getTime())!==((A=j.parsed)==null?void 0:A.getTime())?m:j})},[m]),re.unstable_useEnhancedEffect(()=>{s&&h.current.focus()},[s]),i.jsx(cC,C({inputRef:h,fullWidth:!0,className:k.root,type:u?"datetime-local":"date",inputProps:C({max:u?"9999-12-31T23:59":"9999-12-31"},l),value:p.formatted,onChange:F},c))}process.env.NODE_ENV!=="production"&&(Jc.propTypes={api:f.object.isRequired,cellMode:f.oneOf(["edit","view"]).isRequired,changeReason:f.oneOf(["debouncedSetEditCellValue","setEditCellValue"]),colDef:f.object.isRequired,field:f.string.isRequired,formattedValue:f.any,hasFocus:f.bool.isRequired,id:f.oneOfType([f.number,f.string]).isRequired,isEditable:f.bool,isProcessingProps:f.bool,isValidating:f.bool,onValueChange:f.func,row:f.any.isRequired,rowNode:f.object.isRequired,tabIndex:f.oneOf([-1,0]).isRequired,value:f.any});const eu=e=>i.jsx(Jc,C({},e));function tu({value:e,columnType:t,rowId:n,field:r}){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: ${n}, field: "${r}".`].join(`
58
- `))}const dC=(e,t,n,r)=>{if(!e)return"";const o=Pr(r.current.state,t);return tu({value:e,columnType:"date",rowId:o,field:n.field}),e.toLocaleDateString()},fC=(e,t,n,r)=>{if(!e)return"";const o=Pr(r.current.state,t);return tu({value:e,columnType:"dateTime",rowId:o,field:n.field}),e.toLocaleString()},hC=C({},Lt,{type:"date",sortComparator:hc,valueFormatter:dC,filterOperators:Qc(),renderEditCell:eu,pastedValueParser:e=>new Date(e)}),gC=C({},Lt,{type:"dateTime",sortComparator:hc,valueFormatter:fC,filterOperators:Qc(!0),renderEditCell:eu,pastedValueParser:e=>new Date(e)}),on=e=>e==null?null:Number(e),mC=e=>e==null||Number.isNaN(e)||e===""?null:t=>on(t)===on(e),pC=()=>[{value:"=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>on(t)===e.value,InputComponent:Ct,InputComponentProps:{type:"number"}},{value:"!=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>on(t)!==e.value,InputComponent:Ct,InputComponentProps:{type:"number"}},{value:">",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:on(t)>e.value,InputComponent:Ct,InputComponentProps:{type:"number"}},{value:">=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:on(t)>=e.value,InputComponent:Ct,InputComponentProps:{type:"number"}},{value:"<",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:on(t)<e.value,InputComponent:Ct,InputComponentProps:{type:"number"}},{value:"<=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:on(t)<=e.value,InputComponent:Ct,InputComponentProps:{type:"number"}},{value:"isEmpty",getApplyFilterFn:()=>e=>e==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:()=>e=>e!=null,requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFn:e=>!Array.isArray(e.value)||e.value.length===0?null:t=>t!=null&&e.value.includes(Number(t)),InputComponent:Hs,InputComponentProps:{type:"number"}}],bC=C({},Lt,{type:"number",align:"right",headerAlign:"right",sortComparator:fc,valueParser:e=>e===""?null:Number(e),valueFormatter:e=>gc(e)?e.toLocaleString():e||"",filterOperators:pC(),getApplyQuickFilterFn:mC});function zn(e){return(e==null?void 0:e.type)==="singleSelect"}function pn(e,t){if(e)return typeof e.valueOptions=="function"?e.valueOptions(C({field:e.field},t)):e.valueOptions}function Jr(e,t,n){if(t===void 0)return;const r=t.find(o=>{const s=n(o);return String(s)===String(e)});return n(r)}const CC=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange","initialOpen"],wC=["MenuProps"];function xC(e){return!!e.key}function nu(e){var O,D,V;const t=ue(),{id:n,value:r,field:o,row:s,colDef:l,hasFocus:a,error:c,onValueChange:u,initialOpen:d=t.editMode===zt.Cell}=e,h=me(e,CC),m=ke(),p=g.useRef(null),b=g.useRef(null),[x,w]=g.useState(d),v=(D=(((O=t.slotProps)==null?void 0:O.baseSelect)||{}).native)!=null?D:!1,F=((V=t.slotProps)==null?void 0:V.baseSelect)||{},{MenuProps:j}=F,y=me(F,wC);if(re.unstable_useEnhancedEffect(()=>{var E;a&&((E=b.current)==null||E.focus())},[a]),!zn(l))return null;const A=pn(l,{id:n,row:s});if(!A)return null;const N=l.getOptionValue,M=l.getOptionLabel,P=async E=>{if(!zn(l)||!A)return;w(!1);const T=E.target,L=Jr(T.value,A,N);u&&await u(E,L),await m.current.setEditCellValue({id:n,field:o,value:L},E)},R=(E,T)=>{if(t.editMode===zt.Row){w(!1);return}if(T==="backdropClick"||E.key==="Escape"){const L=m.current.getCellParams(n,o);m.current.publishEvent("cellEditStop",C({},L,{reason:E.key==="Escape"?Ft.escapeKeyDown:Ft.cellFocusOut}))}},_=E=>{xC(E)&&E.key==="Enter"||w(!0)};return!A||!l?null:i.jsx(t.slots.baseSelect,C({ref:p,inputRef:b,value:r,onChange:P,open:x,onOpen:_,MenuProps:C({onClose:R},j),error:c,native:v,fullWidth:!0},h,y,{children:A.map(E=>{var L;const T=N(E);return se.createElement(t.slots.baseSelectOption,C({},((L=t.slotProps)==null?void 0:L.baseSelectOption)||{},{native:v,key:T,value:T}),M(E))})}))}process.env.NODE_ENV!=="production"&&(nu.propTypes={api:f.object.isRequired,cellMode:f.oneOf(["edit","view"]).isRequired,changeReason:f.oneOf(["debouncedSetEditCellValue","setEditCellValue"]),colDef:f.object.isRequired,field:f.string.isRequired,formattedValue:f.any,hasFocus:f.bool.isRequired,id:f.oneOfType([f.number,f.string]).isRequired,initialOpen:f.bool,isEditable:f.bool,isProcessingProps:f.bool,isValidating:f.bool,onValueChange:f.func,row:f.any.isRequired,rowNode:f.object.isRequired,tabIndex:f.oneOf([-1,0]).isRequired,value:f.any});const yC=e=>i.jsx(nu,C({},e)),vC=["item","applyValue","type","apiRef","focusElementRef","placeholder","tabIndex","label","variant","isFilterActive","clearButton","InputLabelProps"],SC=({column:e,OptionComponent:t,getOptionLabel:n,getOptionValue:r,isSelectNative:o,baseSelectOptionProps:s})=>["",...pn(e)||[]].map(a=>{const c=r(a);let u=n(a);return u===""&&(u=" "),se.createElement(t,C({},s,{native:o,key:c,value:c}),u)}),kC=ge.styled("div")({display:"flex",alignItems:"flex-end",width:"100%","& button":{margin:"auto 0px 5px 5px"}});function rs(e){var N,M,P,R,_,O,D;const{item:t,applyValue:n,type:r,apiRef:o,focusElementRef:s,placeholder:l,tabIndex:a,label:c,variant:u="standard",clearButton:d}=e,h=me(e,vC),m=(N=t.value)!=null?N:"",p=re.unstable_useId(),b=re.unstable_useId(),x=ue(),w=(R=(P=(M=x.slotProps)==null?void 0:M.baseSelect)==null?void 0:P.native)!=null?R:!1;let k=null;if(t.field){const V=o.current.getColumn(t.field);zn(V)&&(k=V)}const v=k==null?void 0:k.getOptionValue,F=k==null?void 0:k.getOptionLabel,j=g.useMemo(()=>pn(k),[k]),y=g.useCallback(V=>{let E=V.target.value;E=Jr(E,j,v),n(C({},t,{value:E}))},[j,v,n,t]);if(!zn(k))return null;const A=c!=null?c:o.current.getLocaleText("filterPanelInputLabel");return i.jsxs(kC,{children:[i.jsxs(x.slots.baseFormControl,{fullWidth:!0,children:[i.jsx(x.slots.baseInputLabel,C({},(_=x.slotProps)==null?void 0:_.baseInputLabel,{id:b,htmlFor:p,shrink:!0,variant:u,children:A})),i.jsx(x.slots.baseSelect,C({id:p,label:A,labelId:b,value:m,onChange:y,variant:u,type:r||"text",inputProps:{tabIndex:a,ref:s,placeholder:l!=null?l:o.current.getLocaleText("filterPanelInputPlaceholder")},native:w,notched:u==="outlined"?!0:void 0},h,(O=x.slotProps)==null?void 0:O.baseSelect,{children:SC({column:k,OptionComponent:x.slots.baseSelectOption,getOptionLabel:F,getOptionValue:v,isSelectNative:w,baseSelectOptionProps:(D=x.slotProps)==null?void 0:D.baseSelectOption})}))]}),d]})}process.env.NODE_ENV!=="production"&&(rs.propTypes={apiRef:f.shape({current:f.object.isRequired}).isRequired,applyValue:f.func.isRequired,clearButton:f.node,focusElementRef:f.oneOfType([f.func,f.object]),isFilterActive:f.bool,item:f.shape({field:f.string.isRequired,id:f.oneOfType([f.number,f.string]),operator:f.string.isRequired,value:f.any}).isRequired});const IC=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant"],MC=["key"],EC=oa.createFilterOptions();function ru(e){const{item:t,applyValue:n,apiRef:r,focusElementRef:o,color:s,error:l,helperText:a,size:c,variant:u="standard"}=e,d=me(e,IC),h={color:s,error:l,helperText:a,size:c,variant:u},m=re.unstable_useId(),p=ue();let b=null;if(t.field){const y=r.current.getColumn(t.field);zn(y)&&(b=y)}const x=b==null?void 0:b.getOptionValue,w=b==null?void 0:b.getOptionLabel,k=g.useCallback((y,A)=>x(y)===x(A),[x]),v=g.useMemo(()=>pn(b)||[],[b]),F=g.useMemo(()=>Array.isArray(t.value)?t.value.reduce((y,A)=>{const N=v.find(M=>x(M)===A);return N!=null&&y.push(N),y},[]):[],[x,t.value,v]),j=g.useCallback((y,A)=>{n(C({},t,{value:A.map(x)}))},[n,t,x]);return i.jsx(ca.default,C({multiple:!0,options:v,isOptionEqualToValue:k,filterOptions:EC,id:m,value:F,onChange:j,getOptionLabel:w,renderTags:(y,A)=>y.map((N,M)=>{const P=A({index:M}),{key:R}=P,_=me(P,MC);return i.jsx(p.slots.baseChip,C({variant:"outlined",size:"small",label:w(N)},_),R)}),renderInput:y=>{var A;return i.jsx(p.slots.baseTextField,C({},y,{label:r.current.getLocaleText("filterPanelInputLabel"),placeholder:r.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:C({},y.InputLabelProps,{shrink:!0}),inputRef:o,type:"singleSelect"},h,(A=p.slotProps)==null?void 0:A.baseTextField))}},d))}process.env.NODE_ENV!=="production"&&(ru.propTypes={apiRef:f.shape({current:f.object.isRequired}).isRequired,applyValue:f.func.isRequired,focusElementRef:f.oneOfType([f.func,f.object]),item:f.shape({field:f.string.isRequired,id:f.oneOfType([f.number,f.string]),operator:f.string.isRequired,value:f.any}).isRequired,type:f.oneOf(["singleSelect"])});const Mn=e=>e==null||!Ds(e)?e:e.value,PC=()=>[{value:"is",getApplyFilterFn:e=>e.value==null||e.value===""?null:t=>Mn(t)===Mn(e.value),InputComponent:rs},{value:"not",getApplyFilterFn:e=>e.value==null||e.value===""?null:t=>Mn(t)!==Mn(e.value),InputComponent:rs},{value:"isAnyOf",getApplyFilterFn:e=>{if(!Array.isArray(e.value)||e.value.length===0)return null;const t=e.value.map(Mn);return n=>t.includes(Mn(n))},InputComponent:ru}],TC=e=>typeof e[0]=="object",FC=e=>Ds(e)?e.value:e,jC=e=>Ds(e)?e.label:String(e),OC=C({},Lt,{type:"singleSelect",getOptionLabel:jC,getOptionValue:FC,valueFormatter(e,t,n,r){const o=Pr(r.current.state,t);if(!zn(n))return"";const s=pn(n,{id:o,row:t});if(e==null)return"";if(!s)return e;if(!TC(s))return n.getOptionLabel(e);const l=s.find(a=>n.getOptionValue(a)===e);return l?n.getOptionLabel(l):""},renderEditCell:yC,filterOperators:PC(),pastedValueParser:(e,t,n)=>{const r=n,o=pn(r)||[],s=r.getOptionValue;if(o.find(a=>s(a)===e))return e}}),RC="string",LC=()=>({string:Lt,number:bC,date:hC,dateTime:gC,boolean:Lc,singleSelect:OC,[ho]:Cb,custom:Lt}),Ws=e=>e.headerFiltering,DC=be(Ws,e=>{var t;return(t=e==null?void 0:e.enabled)!=null?t:!1}),HC=be(Ws,e=>e.editing),_C=be(Ws,e=>e.menuOpen),wo=e=>e.columnGrouping,ou=Le(wo,e=>{var t;return(t=e==null?void 0:e.unwrappedGroupingModel)!=null?t:{}}),su=Le(wo,e=>{var t;return(t=e==null?void 0:e.lookup)!=null?t:{}}),AC=Le(wo,e=>{var t;return(t=e==null?void 0:e.headerStructure)!=null?t:[]}),Tr=be(wo,e=>{var t;return(t=e==null?void 0:e.maxDepth)!=null?t:0}),lu=["maxWidth","minWidth","width","flex"],No=LC();function VC({initialFreeSpace:e,totalFlexUnits:t,flexColumns:n}){const r=new Set(n.map(l=>l.field)),o={all:{},frozenFields:[],freeze:l=>{const a=o.all[l];a&&a.frozen!==!0&&(o.all[l].frozen=!0,o.frozenFields.push(l))}};function s(){if(o.frozenFields.length===r.size)return;const l={min:{},max:{}};let a=e,c=t,u=0;o.frozenFields.forEach(d=>{a-=o.all[d].computedWidth,c-=o.all[d].flex});for(let d=0;d<n.length;d+=1){const h=n[d];if(o.all[h.field]&&o.all[h.field].frozen===!0)continue;let p=a/c*h.flex;p<h.minWidth?(u+=h.minWidth-p,p=h.minWidth,l.min[h.field]=!0):p>h.maxWidth&&(u+=h.maxWidth-p,p=h.maxWidth,l.max[h.field]=!0),o.all[h.field]={frozen:!1,computedWidth:p,flex:h.flex}}u<0?Object.keys(l.max).forEach(d=>{o.freeze(d)}):u>0?Object.keys(l.min).forEach(d=>{o.freeze(d)}):n.forEach(({field:d})=>{o.freeze(d)}),s()}return s(),o.all}const os=(e,t)=>{const n={};let r=0,o=0;const s=[];e.orderedFields.forEach(c=>{let u=e.lookup[c],d=0,h=!1;e.columnVisibilityModel[c]!==!1&&(u.flex&&u.flex>0?(r+=u.flex,h=!0):d=xt(u.width||Lt.width,u.minWidth||Lt.minWidth,u.maxWidth||Lt.maxWidth),o+=d),u.computedWidth!==d&&(u=C({},u,{computedWidth:d})),h&&s.push(u),n[c]=u});const l=t===void 0?0:t.viewportOuterSize.width-(t.hasScrollY?t.scrollbarSize:0),a=Math.max(l-o,0);if(r>0&&l>0){const c=VC({initialFreeSpace:a,totalFlexUnits:r,flexColumns:s});Object.keys(c).forEach(u=>{n[u].computedWidth=c[u].computedWidth})}return C({},e,{lookup:n})},NC=(e,t)=>{if(!t)return e;const{orderedFields:n=[],dimensions:r={}}=t,o=Object.keys(r);if(o.length===0&&n.length===0)return e;const s={},l=[];for(let d=0;d<n.length;d+=1){const h=n[d];e.lookup[h]&&(s[h]=!0,l.push(h))}const a=l.length===0?e.orderedFields:[...l,...e.orderedFields.filter(d=>!s[d])],c=C({},e.lookup);for(let d=0;d<o.length;d+=1){const h=o[d],m=C({},c[h],{hasBeenResized:!0});Object.entries(r[h]).forEach(([p,b])=>{m[p]=b===-1?1/0:b}),c[h]=m}return C({},e,{orderedFields:a,lookup:c})};function ci(e){let t=No[RC];return e&&No[e]&&(t=No[e]),t}const jn=({apiRef:e,columnsToUpsert:t,initialState:n,columnVisibilityModel:r=St(e),keepOnlyColumnsToUpsert:o=!1})=>{var d,h,m;const s=!e.current.state.columns;let l;if(s)l={orderedFields:[],lookup:{},columnVisibilityModel:r};else{const p=Nt(e.current.state);l={orderedFields:o?[]:[...p.orderedFields],lookup:C({},p.lookup),columnVisibilityModel:r}}let a={};o&&!s&&(a=Object.keys(l.lookup).reduce((p,b)=>C({},p,{[b]:!1}),{})),t.forEach(p=>{const{field:b}=p;a[b]=!0;let x=l.lookup[b];x==null?(x=C({},ci(p.type),{field:b,hasBeenResized:!1}),l.orderedFields.push(b)):o&&l.orderedFields.push(b),x&&x.type!==p.type&&(x=C({},ci(p.type),{field:b}));let w=x.hasBeenResized;lu.forEach(k=>{p[k]!==void 0&&(w=!0,p[k]===-1&&(p[k]=1/0))}),l.lookup[b]=ph.default(x,C({},p,{hasBeenResized:w}))}),o&&!s&&Object.keys(l.lookup).forEach(p=>{a[p]||delete l.lookup[p]});const c=e.current.unstable_applyPipeProcessors("hydrateColumns",l),u=NC(c,n);return os(u,(m=(h=(d=e.current).getRootDimensions)==null?void 0:h.call(d))!=null?m:void 0)};function $C({firstColumnToRender:e,apiRef:t,firstRowToRender:n,lastRowToRender:r,visibleRows:o}){let s=e,l=!1;for(;!l;){l=!0;for(let a=n;a<r;a+=1)if(o[a]){const u=o[a].id,d=t.current.unstable_getCellColSpanInfo(u,s);if(d&&d.spannedByColSpan&&d.leftVisibleCellIndex<s){s=d.leftVisibleCellIndex,l=!1;break}}}return s}function xo(e,t){var c,u;if(t.unstable_listView)return 0;const n=Un(e),r=Tr(e),o=DC(e),s=Math.floor(t.columnHeaderHeight*n),l=Math.floor(((c=t.columnGroupHeaderHeight)!=null?c:t.columnHeaderHeight)*n),a=o?Math.floor(((u=t.headerFilterHeight)!=null?u:t.columnHeaderHeight)*n):0;return s+l*r+a}const er=e=>e.rowsMeta,eo=1,iu=1.5,zC=e=>{const{scrollDirection:t,classes:n}=e,r={root:["scrollArea",`scrollArea--${t}`]};return re.unstable_composeClasses(r,Te,n)},GC=Ge.styled("div",{name:"MuiDataGrid",slot:"ScrollArea",overridesResolver:(e,t)=>[{[`&.${I["scrollArea--left"]}`]:t["scrollArea--left"]},{[`&.${I["scrollArea--right"]}`]:t["scrollArea--right"]},{[`&.${I["scrollArea--up"]}`]:t["scrollArea--up"]},{[`&.${I["scrollArea--down"]}`]:t["scrollArea--down"]},t.scrollArea]})(()=>({position:"absolute",zIndex:101,[`&.${I["scrollArea--left"]}`]:{top:0,left:0,width:20,bottom:0},[`&.${I["scrollArea--right"]}`]:{top:0,right:0,width:20,bottom:0},[`&.${I["scrollArea--up"]}`]:{top:0,left:0,right:0,height:20},[`&.${I["scrollArea--down"]}`]:{bottom:0,left:0,right:0,height:20}})),BC=Sr(at,(e,t)=>t==="left"?e.leftPinnedWidth:t==="right"?e.rightPinnedWidth+(e.hasScrollX?e.scrollbarSize:0):0);function WC(e){const t=ke(),[n,r]=g.useState("none");return le(t,"columnHeaderDragStart",()=>r("horizontal")),le(t,"columnHeaderDragEnd",()=>r("none")),le(t,"rowDragStart",()=>r("vertical")),le(t,"rowDragEnd",()=>r("none")),n==="none"?null:n==="horizontal"?i.jsx(qC,C({},e)):i.jsx(UC,C({},e))}function qC(e){const{scrollDirection:t,scrollPosition:n}=e,r=g.useRef(null),o=ke(),s=wn.default(),l=te(o,Un),a=te(o,uo),c=br(o,BC,t),u=()=>{const x=at(o.current.state);if(t==="left")return n.current.left>0;if(t==="right"){const w=a-x.viewportInnerSize.width;return n.current.left<w}return!1},d=ue(),h=xo(o,d),m=Math.floor(d.columnHeaderHeight*l),p=C({height:m,top:h-m},t==="left"?{left:c}:{},t==="right"?{right:c}:{}),b=re.unstable_useEventCallback(x=>{let w;if(x.preventDefault(),t==="left")w=x.clientX-r.current.getBoundingClientRect().right;else if(t==="right")w=Math.max(1,x.clientX-r.current.getBoundingClientRect().left);else throw new Error("MUI X: Wrong drag direction");w=(w-eo)*iu+eo,s.start(0,()=>{o.current.scroll({left:n.current.left+w,top:n.current.top})})});return i.jsx(au,C({},e,{ref:r,getCanScrollMore:u,style:p,handleDragOver:b}))}function UC(e){const{scrollDirection:t,scrollPosition:n}=e,r=g.useRef(null),o=ke(),s=wn.default(),l=te(o,er),a=()=>{const m=at(o.current.state);if(t==="up")return n.current.top>0;if(t==="down"){const b=(l.currentPageTotalHeight||0)-m.viewportInnerSize.height-m.scrollbarSize;return n.current.top<b}return!1},c=ue(),u=xo(o,c),d={top:t==="up"?u:void 0,bottom:t==="down"?0:void 0},h=re.unstable_useEventCallback(m=>{let p;if(m.preventDefault(),t==="up")p=m.clientY-r.current.getBoundingClientRect().bottom;else if(t==="down")p=Math.max(1,m.clientY-r.current.getBoundingClientRect().top);else throw new Error("MUI X: Wrong drag direction");p=(p-eo)*iu+eo,s.start(0,()=>{o.current.scroll({left:n.current.left,top:n.current.top+p})})});return i.jsx(au,C({},e,{ref:r,getCanScrollMore:a,style:d,handleDragOver:h}))}const au=je(function(t,n){const{scrollDirection:r,getCanScrollMore:o,style:s,handleDragOver:l}=t,a=ke(),[c,u]=g.useState(o),d=ue(),h=C({},d,{scrollDirection:r}),m=zC(h);return le(a,"scrollPositionChange",()=>{u(o)}),c?i.jsx(GC,{ref:n,className:m.root,ownerState:h,onDragOver:l,style:s}):null}),Nr=Zt(WC);var lr={},$o={exports:{}},zo={exports:{}},ui;function KC(){return ui||(ui=1,(function(e){function t(n){"@babel/helpers - typeof";return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(zo)),zo.exports}var di;function XC(){return di||(di=1,(function(e){var t=KC().default;function n(r,o){if(typeof WeakMap=="function")var s=new WeakMap,l=new WeakMap;return(e.exports=n=function(c,u){if(!u&&c&&c.__esModule)return c;var d,h,m={__proto__:null,default:c};if(c===null||t(c)!="object"&&typeof c!="function")return m;if(d=u?l:s){if(d.has(c))return d.get(c);d.set(c,m)}for(var p in c)p!=="default"&&{}.hasOwnProperty.call(c,p)&&((h=(d=Object.defineProperty)&&Object.getOwnPropertyDescriptor(c,p))&&(h.get||h.set)?d(m,p,h):m[p]=c[p]);return m},e.exports.__esModule=!0,e.exports.default=e.exports)(r,o)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})($o)),$o.exports}var fi;function YC(){if(fi)return lr;fi=1;var e=XC().default;Object.defineProperty(lr,"__esModule",{value:!0}),lr.default=void 0;var t=e(g.default);return lr.default=parseInt(t.version,10),lr}var ZC=YC();const QC=Xa(ZC),qs=g.createContext(void 0);process.env.NODE_ENV!=="production"&&(qs.displayName="GridPrivateApiContext");function Et(){const e=g.useContext(qs);if(e===void 0)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(`
59
- `));return e}const an=(e,t)=>Er(e),Us=(e,t)=>te(e,Er),JC=typeof navigator!="undefined"?navigator.userAgent.toLowerCase():"empty",ew=JC.includes("firefox"),yo=e=>e.virtualization;be(yo,e=>e.enabled);const cu=be(yo,e=>e.enabledForColumns),tw=be(yo,e=>e.enabledForRows),Fr=be(yo,e=>e.renderContext),nw=Le(e=>e.virtualization.renderContext.firstColumnIndex,e=>e.virtualization.renderContext.lastColumnIndex,(e,t)=>({firstColumnIndex:e,lastColumnIndex:t})),ss={firstRowIndex:0,lastRowIndex:0,firstColumnIndex:0,lastColumnIndex:0},rw=(e,t)=>{const{disableVirtualization:n,autoHeight:r}=t;return C({},e,{virtualization:{enabled:!n,enabledForColumns:!n,enabledForRows:!n&&!r,renderContext:ss}})};function ow(e,t){const n=s=>{e.current.setState(l=>C({},l,{virtualization:C({},l.virtualization,{enabled:s,enabledForColumns:s,enabledForRows:s&&!t.autoHeight})}))};Se(e,{unstable_setVirtualization:n,unstable_setColumnVirtualization:s=>{e.current.setState(l=>C({},l,{virtualization:C({},l.virtualization,{enabledForColumns:s})}))}},"public"),g.useEffect(()=>{n(!t.disableVirtualization)},[t.disableVirtualization,t.autoHeight])}const Ks=e=>e.rowSpanning,uu=be(Ks,e=>e.hiddenCells),sw=be(Ks,e=>e.spannedCells),lw=be(Ks,e=>e.hiddenCellOriginMap),Gn=e=>e.listViewColumn,iw=c1(gt,Fr,Er,Ke,vt,(e,t,n,r,o)=>{if(!e)return!1;const s=o[e.id];if(!s)return!1;const l=n.rowToIndexMap.get(s),a=r.slice(t.firstColumnIndex,t.lastColumnIndex).findIndex(u=>u.field===e.field);return!(l!==void 0&&a!==-1&&l>=t.firstRowIndex&&l<=t.lastRowIndex)}),du=Le(iw,Ke,Er,vt,gt,(e,t,n,r,o)=>{if(!e)return null;const s=r[o.id];if(!s)return null;const l=n.rowToIndexMap.get(s);if(l===void 0)return null;const a=t.findIndex(c=>c.field===o.field);return a===-1?null:C({},o,{rowIndex:l,columnIndex:a})});function Dn(e,t){return Math.round(e*10**t)/10**t}const to=typeof window!="undefined"&&/jsdom|HappyDOM/.test(window.navigator.userAgent),Go=50;var et=(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})(et||{});const hi={top:0,left:0},aw=Object.freeze(new Map),cw=(e,t,n,r,o)=>({direction:et.NONE,buffer:hu(e,et.NONE,t,n,r,o)}),uw=()=>{var Z,oe;const e=Et(),t=ue(),{unstable_listView:n}=t,r=te(e,()=>n?[Gn(e.current.state)]:Ke(e)),o=te(e,tw)&&!to,s=te(e,cu)&&!to,l=te(e,Kn),a=Yn(e),c=n?Zr:a,u=l.bottom.length>0,[d,h]=g.useState(aw),m=Gt.useRtl(),p=te(e,ln),b=Us(e),x=e.current.mainElementRef,w=e.current.virtualScrollerRef,k=e.current.virtualScrollbarVerticalRef,v=e.current.virtualScrollbarHorizontalRef,F=te(e,nb),j=g.useRef(!1),y=te(e,Rs),A=te(e,b1),N=te(e,uo),M=te(e,dw),P=te(e,ac),R=te(e,ic),_=g.useRef(null),O=g.useCallback(ee=>{if(x.current=ee,!ee)return;const ae=ee.getBoundingClientRect();let fe={width:Dn(ae.width,1),height:Dn(ae.height,1)};if((!_.current||fe.width!==_.current.width&&fe.height!==_.current.height)&&(_.current=fe,e.current.publishEvent("resize",fe)),typeof ResizeObserver=="undefined")return;const xe=new ResizeObserver(pe=>{const Me=pe[0];if(!Me)return;const Re={width:Dn(Me.contentRect.width,1),height:Dn(Me.contentRect.height,1)};Re.width===fe.width&&Re.height===fe.height||(e.current.publishEvent("resize",Re),fe=Re)});if(xe.observe(ee),QC>=19)return()=>{x.current=null,xe.disconnect()}},[e,x]),D=g.useRef((oe=(Z=t.initialState)==null?void 0:Z.scroll)!=null?oe:hi),V=g.useRef(!1),E=g.useRef(hi),T=g.useRef(ss),L=te(e,Fr),$=te(e,du),G=wn.default(),S=g.useRef(void 0),H=Bt.default(()=>cw(m,t.rowBufferPx,t.columnBufferPx,y*15,Go*6)).current,z=g.useCallback(ee=>{if(bi(ee,e.current.state.virtualization.renderContext))return;const ae=ee.firstRowIndex!==T.current.firstRowIndex||ee.lastRowIndex!==T.current.lastRowIndex;e.current.setState(xe=>C({},xe,{virtualization:C({},xe.virtualization,{renderContext:ee})})),at(e.current.state).isReady&&ae&&(T.current=ee,e.current.publishEvent("renderedRowsIntervalChange",ee)),E.current=D.current},[e]),q=re.unstable_useEventCallback(()=>{const ee=w.current;if(!ee)return;const ae=at(e.current.state),fe=Math.ceil(ae.minimumSize.height-ae.viewportOuterSize.height),xe=Math.ceil(ae.minimumSize.width-ae.viewportInnerSize.width),pe={top:xt(ee.scrollTop,0,fe),left:m?xt(ee.scrollLeft,-xe,0):xt(ee.scrollLeft,0,xe)},Me=pe.left-D.current.left,Re=pe.top-D.current.top,Je=Me!==0||Re!==0;D.current=pe;const De=Je?gw(Me,Re):et.NONE,Oe=Math.abs(D.current.top-E.current.top),Ye=Math.abs(D.current.left-E.current.left),qe=Oe>=y||Ye>=Go,we=H.direction!==De;if(!(qe||we))return L;if(we)switch(De){case et.NONE:case et.LEFT:case et.RIGHT:S.current=void 0;break;default:S.current=L;break}H.direction=De,H.buffer=hu(m,De,t.rowBufferPx,t.columnBufferPx,y*15,Go*6);const ve=gi(e,t,o,s),ce=mi(ve,D.current,H);return bi(ce,L)||(wh.flushSync(()=>{z(ce)}),G.start(1e3,q)),ce}),U=()=>{if(!at(e.current.state).isReady&&(o||s))return;const ee=gi(e,t,o,s),ae=mi(ee,D.current,H);S.current=void 0,z(ae)},Q=re.unstable_useEventCallback(()=>{if(V.current){V.current=!1;return}const ee=q();e.current.publishEvent("scrollPositionChange",{top:D.current.top,left:D.current.left,renderContext:ee})}),X=re.unstable_useEventCallback(ee=>{e.current.publishEvent("virtualScrollerWheel",{},ee)}),W=re.unstable_useEventCallback(ee=>{e.current.publishEvent("virtualScrollerTouchMove",{},ee)}),K=(ee={})=>{var ve,ce;if(!ee.rows&&!b.range)return[];const ae=nt(e);let fe=L;ee.renderContext&&(fe=ee.renderContext,fe.firstColumnIndex=L.firstColumnIndex,fe.lastColumnIndex=L.lastColumnIndex);const xe=!u&&ee.position===void 0||u&&ee.position==="bottom",pe=ee.position!==void 0;let Me;switch(ee.position){case"top":Me=0;break;case"bottom":Me=l.top.length+b.rows.length;break;case void 0:Me=l.top.length;break}const Re=(ve=ee.rows)!=null?ve:b.rows,Je=fe.firstRowIndex,De=Math.min(fe.lastRowIndex,Re.length),Oe=ee.rows?Zl(0,ee.rows.length):Zl(Je,De);let Ye=-1;!pe&&$&&($.rowIndex<Je&&(Oe.unshift($.rowIndex),Ye=$.rowIndex),$.rowIndex>De&&(Oe.push($.rowIndex),Ye=$.rowIndex));const qe=[],we=(ce=t.slotProps)==null?void 0:ce.row,He=dn(e);return Oe.forEach(ye=>{var ul,dl,fl;const{id:Ce,model:Ze}=Re[ye];if(!ae[Ce])return;const ot=(((ul=b==null?void 0:b.range)==null?void 0:ul.firstRowIndex)||0)+Me+ye;if(F){const Mo=c.left.length,hl=r.length-c.right.length;e.current.calculateColSpan({rowId:Ce,minFirstColumn:Mo,maxLastColumn:hl,columns:r}),c.left.length>0&&e.current.calculateColSpan({rowId:Ce,minFirstColumn:0,maxLastColumn:c.left.length,columns:r}),c.right.length>0&&e.current.calculateColSpan({rowId:Ce,minFirstColumn:r.length-c.right.length,maxLastColumn:r.length,columns:r})}const Qe=e.current.rowHasAutoHeight(Ce)?"auto":e.current.unstable_getRowHeight(Ce);let Pt;p[Ce]==null?Pt=!1:Pt=e.current.isRowSelectable(Ce);let Tt=!1;ee.position===void 0&&(Tt=ye===0);let Dt=!1;const Ht=ye===Re.length-1;if(xe)if(pe)Dt=Ht;else{const Mo=b.rows.length-1;ye===Mo&&(Dt=!0)}let Fe=fe;S.current&&ye>=S.current.firstRowIndex&&ye<S.current.lastRowIndex&&(Fe=S.current);const Ve=ye===Ye,dt=($==null?void 0:$.rowIndex)===ot,Wt=fu(He,Fe,c.left.length),ko=Ht&&ee.position==="top",Io=Fe.firstColumnIndex,Or=Fe.lastColumnIndex;if(qe.push(i.jsx(t.slots.row,C({row:Ze,rowId:Ce,index:ot,selected:Pt,offsetLeft:Wt,columnsTotalWidth:N,rowHeight:Qe,pinnedColumns:c,visibleColumns:r,firstColumnIndex:Io,lastColumnIndex:Or,focusedColumnIndex:dt?$.columnIndex:void 0,isFirstVisible:Tt,isLastVisible:Dt,isNotVisible:Ve,showBottomBorder:ko,scrollbarWidth:P,gridHasFiller:R},we),Ce)),Ve)return;const nr=d.get(Ce);nr&&qe.push(nr),ee.position===void 0&&Ht&&qe.push((fl=(dl=e.current).getInfiniteLoadingTriggerElement)==null?void 0:fl.call(dl,{lastRowId:Ce}))}),qe},Y=g.useMemo(()=>({overflowX:!M||n?"hidden":void 0,overflowY:t.autoHeight?"hidden":void 0}),[M,t.autoHeight,n]),J=g.useMemo(()=>{const ee={width:M?N:"auto",flexBasis:A,flexShrink:0};return ee.flexBasis===0&&(ee.flexBasis=Pc),ee},[N,A,M]),ne=g.useCallback(ee=>{ee&&e.current.publishEvent("virtualScrollerContentSizeChange",{columnsTotalWidth:N,contentHeight:A})},[e,N,A]);return re.unstable_useEnhancedEffect(()=>{var ee,ae;j.current&&((ae=(ee=e.current).updateRenderContext)==null||ae.call(ee))},[e,s,o]),re.unstable_useEnhancedEffect(()=>{n&&(w.current.scrollLeft=0)},[n,w]),Qb(L!==ss,()=>{var ee;if(e.current.publishEvent("scrollPositionChange",{top:D.current.top,left:D.current.left,renderContext:L}),j.current=!0,(ee=t.initialState)!=null&&ee.scroll&&w.current){const ae=w.current,{top:fe,left:xe}=t.initialState.scroll,pe={top:!(fe>0),left:!(xe>0)};if(!pe.left&&N&&(ae.scrollLeft=xe,V.current=!0,pe.left=!0),!pe.top&&A&&(ae.scrollTop=fe,V.current=!0,pe.top=!0),!pe.top||!pe.left){const Me=e.current.subscribeEvent("virtualScrollerContentSizeChange",Re=>{!pe.left&&Re.columnsTotalWidth&&(ae.scrollLeft=xe,V.current=!0,pe.left=!0),!pe.top&&Re.contentHeight&&(ae.scrollTop=fe,V.current=!0,pe.top=!0),pe.left&&pe.top&&Me()});return Me}}}),e.current.register("private",{updateRenderContext:U}),Ae(e,"sortedRowsSet",U),Ae(e,"paginationModelChange",U),Ae(e,"columnsChange",U),{renderContext:L,setPanels:h,getRows:K,getContainerProps:()=>({ref:O}),getScrollerProps:()=>({ref:w,onScroll:Q,onWheel:X,onTouchMove:W,style:Y,role:"presentation",tabIndex:ew?-1:void 0}),getContentProps:()=>({style:J,role:"presentation",ref:ne}),getRenderZoneProps:()=>({role:"rowgroup"}),getScrollbarVerticalProps:()=>({ref:k,scrollPosition:D}),getScrollbarHorizontalProps:()=>({ref:v,scrollPosition:D}),getScrollAreaProps:()=>({scrollPosition:D})}};function dw(e){return e.dimensions.viewportOuterSize.width>0&&e.dimensions.columnsTotalWidth>e.dimensions.viewportOuterSize.width}function gi(e,t,n,r){var d,h;const o=at(e.current.state),s=an(e),l=t.unstable_listView?[Gn(e.current.state)]:Ke(e),a=lw(e),c=e.current.state.rows.dataRowIds.at(-1),u=l.at(-1);return{enabledForRows:n,enabledForColumns:r,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:c!==void 0?e.current.unstable_getRowHeight(c):0,lastColumnWidth:(d=u==null?void 0:u.computedWidth)!=null?d:0,rowsMeta:er(e.current.state),columnPositions:dn(e),rows:s.rows,range:s.range,pinnedColumns:Yn(e),visibleColumns:l,hiddenCellsOriginMap:a,listView:(h=t.unstable_listView)!=null?h:!1,virtualizeColumnsWithAutoRowHeight:t.virtualizeColumnsWithAutoRowHeight}}function mi(e,t,n){const r={firstRowIndex:0,lastRowIndex:e.rows.length,firstColumnIndex:0,lastColumnIndex:e.visibleColumns.length},{top:o,left:s}=t,l=Math.abs(s)+e.leftPinnedWidth;if(e.enabledForRows){let c=Math.min(pi(e,o,{atStart:!0,lastPosition:e.rowsMeta.positions[e.rowsMeta.positions.length-1]+e.lastRowHeight}),e.rowsMeta.positions.length-1);const u=e.hiddenCellsOriginMap[c];if(u){const h=Math.min(...Object.values(u));c=Math.min(c,h)}const d=e.autoHeight?c+e.rows.length:pi(e,o+e.viewportInnerHeight);r.firstRowIndex=c,r.lastRowIndex=d}if(e.listView)return C({},r,{lastColumnIndex:1});if(e.enabledForColumns){let c=0,u=e.columnPositions.length,d=!1;const[h,m]=ls({firstIndex:r.firstRowIndex,lastIndex:r.lastRowIndex,minFirstIndex:0,maxLastIndex:e.rows.length,bufferBefore:n.buffer.rowBefore,bufferAfter:n.buffer.rowAfter,positions:e.rowsMeta.positions,lastSize:e.lastRowHeight});if(!e.virtualizeColumnsWithAutoRowHeight)for(let p=h;p<m&&!d;p+=1){const b=e.rows[p];d=e.apiRef.current.rowHasAutoHeight(b.id)}(!d||e.virtualizeColumnsWithAutoRowHeight)&&(c=cn(l,e.columnPositions,{atStart:!0,lastPosition:e.columnsTotalWidth}),u=cn(l+e.viewportInnerWidth,e.columnPositions)),r.firstColumnIndex=c,r.lastColumnIndex=u}return fw(e,r,n)}function pi(e,t,n){var l,a;const r=e.apiRef.current.getLastMeasuredRowIndex();let o=r===1/0;(l=e.range)!=null&&l.lastRowIndex&&!o&&(o=r>=e.range.lastRowIndex);const s=xt(r-(((a=e.range)==null?void 0:a.firstRowIndex)||0),0,e.rowsMeta.positions.length);return o||e.rowsMeta.positions[s]>=t?cn(t,e.rowsMeta.positions,n):hw(t,e.rowsMeta.positions,s,n)}function fw(e,t,n){const[r,o]=ls({firstIndex:t.firstRowIndex,lastIndex:t.lastRowIndex,minFirstIndex:0,maxLastIndex:e.rows.length,bufferBefore:n.buffer.rowBefore,bufferAfter:n.buffer.rowAfter,positions:e.rowsMeta.positions,lastSize:e.lastRowHeight}),[s,l]=ls({firstIndex:t.firstColumnIndex,lastIndex:t.lastColumnIndex,minFirstIndex:e.pinnedColumns.left.length,maxLastIndex:e.visibleColumns.length-e.pinnedColumns.right.length,bufferBefore:n.buffer.columnBefore,bufferAfter:n.buffer.columnAfter,positions:e.columnPositions,lastSize:e.lastColumnWidth}),a=$C({firstColumnToRender:s,apiRef:e.apiRef,firstRowToRender:r,lastRowToRender:o,visibleRows:e.rows});return{firstRowIndex:r,lastRowIndex:o,firstColumnIndex:a,lastColumnIndex:l}}function cn(e,t,n=void 0,r=0,o=t.length){if(t.length<=0)return-1;if(r>=o)return r;const s=r+Math.floor((o-r)/2),l=t[s];let a;if(n!=null&&n.atStart){const c=(s===t.length-1?n.lastPosition:t[s+1])-l;a=e-c<l}else a=e<=l;return a?cn(e,t,n,r,s):cn(e,t,n,s+1,o)}function hw(e,t,n,r=void 0){let o=1;for(;n<t.length&&Math.abs(t[n])<e;)n+=o,o*=2;return cn(e,t,r,Math.floor(n/2),Math.min(n,t.length))}function ls({firstIndex:e,lastIndex:t,bufferBefore:n,bufferAfter:r,minFirstIndex:o,maxLastIndex:s,positions:l,lastSize:a}){const c=l[e]-n,u=l[t]+r,d=cn(c,l,{atStart:!0,lastPosition:l[l.length-1]+a}),h=cn(u,l);return[xt(d,o,s),xt(h,o,s)]}function bi(e,t){return e===t?!0:e.firstRowIndex===t.firstRowIndex&&e.lastRowIndex===t.lastRowIndex&&e.firstColumnIndex===t.firstColumnIndex&&e.lastColumnIndex===t.lastColumnIndex}function fu(e,t,n){var o,s;const r=((o=e[t.firstColumnIndex])!=null?o:0)-((s=e[n])!=null?s:0);return Math.abs(r)}function gw(e,t){return e===0&&t===0?et.NONE:Math.abs(t)>=Math.abs(e)?t>0?et.DOWN:et.UP:e>0?et.RIGHT:et.LEFT}function hu(e,t,n,r,o,s){if(e)switch(t){case et.LEFT:t=et.RIGHT;break;case et.RIGHT:t=et.LEFT;break}switch(t){case et.NONE:return{rowAfter:n,rowBefore:n,columnAfter:r,columnBefore:r};case et.LEFT:return{rowAfter:0,rowBefore:0,columnAfter:0,columnBefore:s};case et.RIGHT:return{rowAfter:0,rowBefore:0,columnAfter:s,columnBefore:0};case et.UP:return{rowAfter:0,rowBefore:o,columnAfter:0,columnBefore:0};case et.DOWN:return{rowAfter:o,rowBefore:0,columnAfter:0,columnBefore:0};default:throw new Error("unreachable")}}const mw=()=>{var h,m;const e=ke(),t=ue(),n=te(e,kr),r=te(e,Ns),o=te(e,uc),s=n===0&&o===0,l=te(e,_1),a=!l&&s,c=!l&&n>0&&r===0;let u=null,d=null;return a&&(u="noRowsOverlay"),c&&(u="noResultsOverlay"),l&&(u="loadingOverlay",d=((m=(h=t.slotProps)==null?void 0:h.loadingOverlay)==null?void 0:m[s?"noRowsVariant":"variant"])||null),{overlayType:u,loadingOverlayVariant:d}},pw=Ge.styled("div",{name:"MuiDataGrid",slot:"OverlayWrapper",shouldForwardProp:e=>e!=="overlayType"&&e!=="loadingOverlayVariant",overridesResolver:(e,t)=>t.overlayWrapper})(({overlayType:e,loadingOverlayVariant:t})=>t!=="skeleton"?{position:"sticky",top:"var(--DataGrid-headersTotalHeight)",left:0,width:0,height:0,zIndex:e==="loadingOverlay"?5:4}:{}),bw=Ge.styled("div",{name:"MuiDataGrid",slot:"OverlayWrapperInner",shouldForwardProp:e=>e!=="overlayType"&&e!=="loadingOverlayVariant",overridesResolver:(e,t)=>t.overlayWrapperInner})({}),Cw=e=>{const{classes:t}=e,n={root:["overlayWrapper"],inner:["overlayWrapperInner"]};return Xe.default(n,Te,t)};function gu(e){const t=ke(),n=ue(),r=te(t,at);let o=Math.max(r.viewportOuterSize.height-r.topContainerHeight-r.bottomContainerHeight-(r.hasScrollX?r.scrollbarSize:0),0);o===0&&(o=Pc);const s=Cw(C({},e,{classes:n.classes}));return i.jsx(pw,C({className:Pe(s.root)},e,{children:i.jsx(bw,C({className:Pe(s.inner),style:{height:o,width:r.viewportOuterSize.width}},e))}))}process.env.NODE_ENV!=="production"&&(gu.propTypes={loadingOverlayVariant:f.oneOf(["circular-progress","linear-progress","skeleton"]),overlayType:f.oneOf(["loadingOverlay","noResultsOverlay","noRowsOverlay"])});process.env.NODE_ENV!=="production"&&(mu.propTypes={loadingOverlayVariant:f.oneOf(["circular-progress","linear-progress","skeleton"]),overlayType:f.oneOf(["loadingOverlay","noResultsOverlay","noRowsOverlay"])});function mu(e){var s,l;const{overlayType:t}=e,n=ue();if(!t)return null;const r=(s=n.slots)==null?void 0:s[t],o=(l=n.slotProps)==null?void 0:l[t];return i.jsx(gu,C({},e,{children:i.jsx(r,C({},o))}))}const Br=e=>e.columnMenu;function ww(){var w;const e=Et(),t=ue(),n=te(e,Ke),r=te(e,Nb),o=te(e,Hb),s=te(e,zc),l=te(e,()=>Gs(e)===null),a=te(e,Yb),c=te(e,Xb),u=te(e,Qr),d=te(e,Tr),h=te(e,Br),m=te(e,St),p=te(e,AC),b=!(a===null&&s===null&&l),x=e.current.columnHeadersContainerRef;return i.jsx(t.slots.columnHeaders,C({ref:x,visibleColumns:n,filterColumnLookup:r,sortColumnLookup:o,columnHeaderTabIndexState:s,columnGroupHeaderTabIndexState:a,columnHeaderFocus:c,columnGroupHeaderFocus:u,headerGroupingMaxDepth:d,columnMenuState:h,columnVisibility:m,columnGroupsHeaderStructure:p,hasOtherElementInTabSequence:b},(w=t.slotProps)==null?void 0:w.columnHeaders))}const xw=Zt(ww),Xs=g.createContext(void 0);process.env.NODE_ENV!=="production"&&(Xs.displayName="GridConfigurationContext");const Ys=()=>{const e=g.useContext(Xs);if(e===void 0)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(`
60
- `));return e},yw=Ge.styled("div")({position:"absolute",top:"var(--DataGrid-headersTotalHeight)",left:0,width:"calc(100% - (var(--DataGrid-hasScrollY) * var(--DataGrid-scrollbarSize)))"}),vw=Ge.styled("div",{name:"MuiDataGrid",slot:"Main",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.main,n.hasPinnedRight&&t["main--hasPinnedRight"],n.loadingOverlayVariant==="skeleton"&&t["main--hasSkeletonLoadingOverlay"]]}})({flexGrow:1,position:"relative",overflow:"hidden",display:"flex",flexDirection:"column"}),Sw=je((e,t)=>{var l;const{ownerState:n}=e,r=ue(),s=Ys().hooks.useGridAriaAttributes();return i.jsxs(vw,C({ownerState:n,className:e.className,tabIndex:-1},s,(l=r.slotProps)==null?void 0:l.main,{ref:t,children:[i.jsx(yw,{role:"presentation","data-id":"gridPanelAnchor"}),e.children]}))}),kw=()=>{const e={root:["topContainer"]};return Xe.default(e,Te,{})},Iw=Ge.styled("div")({position:"sticky",zIndex:40,top:0});function Mw(e){const t=kw();return i.jsx(Iw,C({},e,{className:Pe(t.root,I["container--top"]),role:"presentation"}))}const Ew=()=>{const e={root:["bottomContainer"]};return Xe.default(e,Te,{})},Pw=Ge.styled("div")({position:"sticky",zIndex:40,bottom:"calc(var(--DataGrid-hasScrollX) * var(--DataGrid-scrollbarSize))"});function Tw(e){const t=Ew();return i.jsx(Pw,C({},e,{className:Pe(t.root,I["container--bottom"]),role:"presentation"}))}const Fw=(e,t)=>{const{classes:n}=e,r={root:["virtualScrollerContent",t&&"virtualScrollerContent--overflowed"]};return Xe.default(r,Te,n)},jw=Ge.styled("div",{name:"MuiDataGrid",slot:"VirtualScrollerContent",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.virtualScrollerContent,n.overflowedContent&&t["virtualScrollerContent--overflowed"]]}})({}),Ow=je(function(t,n){var a;const r=ue(),o=!r.autoHeight&&((a=t.style)==null?void 0:a.minHeight)==="auto",s=Fw(r,o),l={classes:r.classes,overflowedContent:o};return i.jsx(jw,C({},t,{ownerState:l,className:Pe(s.root,t.className),ref:n}))}),Rw=Ge.styled("div")({display:"flex",flexDirection:"row",width:"var(--DataGrid-rowWidth)",boxSizing:"border-box"}),pu=Ge.styled("div")({position:"sticky",height:"100%",boxSizing:"border-box",borderTop:"1px solid var(--rowBorderColor)",backgroundColor:"var(--DataGrid-pinnedBackground)"}),Lw=Ge.styled(pu)({left:0,borderRight:"1px solid var(--rowBorderColor)"}),Dw=Ge.styled(pu)({right:0,borderLeft:"1px solid var(--rowBorderColor)"}),Hw=Ge.styled("div")({flexGrow:1,borderTop:"1px solid var(--rowBorderColor)"});function _w({rowsLength:e}){const t=ke(),{viewportOuterSize:n,minimumSize:r,hasScrollX:o,hasScrollY:s,scrollbarSize:l,leftPinnedWidth:a,rightPinnedWidth:c}=te(t,at),u=o?l:0,d=n.height-r.height>0;return u===0&&!d?null:i.jsxs(Rw,{className:I.filler,role:"presentation",style:{height:u,"--rowBorderColor":e===0?"transparent":"var(--DataGrid-rowBorderColor)"},children:[a>0&&i.jsx(Lw,{className:I["filler--pinnedLeft"],style:{width:a}}),i.jsx(Hw,{}),c>0&&i.jsx(Dw,{className:I["filler--pinnedRight"],style:{width:c+(s?l:0)}})]})}const Aw=Zt(_w),Vw=["className"],Nw=e=>{const{classes:t}=e,n={root:["virtualScrollerRenderZone"]};return Xe.default(n,Te,t)},$w=Ge.styled("div",{name:"MuiDataGrid",slot:"VirtualScrollerRenderZone",overridesResolver:(e,t)=>t.virtualScrollerRenderZone})({position:"absolute",display:"flex",flexDirection:"column"}),zw=je(function(t,n){const{className:r}=t,o=me(t,Vw),s=ke(),l=ue(),a=Nw(l),c=te(s,()=>{var h;const u=Fr(s);return(h=er(s.current.state).positions[u.firstRowIndex])!=null?h:0});return i.jsx($w,C({className:Pe(a.root,r),ownerState:l,style:{transform:`translate3d(0, ${c}px, 0)`}},o,{ref:n}))}),Gw={includeHeaders:!0,includeOutliers:!1,outliersFactor:1.5,expand:!1,disableColumnVirtualization:!0},it=e=>e.editRows,bu=Sr(it,(e,{rowId:t,editMode:n})=>n===zt.Row&&!!e[t]),Bw=Sr(it,(e,{rowId:t,field:n})=>{var r,o;return(o=(r=e[t])==null?void 0:r[n])!=null?o:null}),xr=e=>e.preferencePanel,Ww=Sr(xr,(e,t)=>!!(e.open&&e.labelId===t));var bn=(function(e){return e.filters="filters",e.columns="columns",e})(bn||{});const qw=(e,t)=>{const{classes:n}=e,r={root:["scrollbar",`scrollbar--${t}`],content:["scrollbarContent"]};return re.unstable_composeClasses(r,Te,n)},Cu=Ge.styled("div")({position:"absolute",display:"inline-block",zIndex:60,"&:hover":{zIndex:70},"--size":"calc(max(var(--DataGrid-scrollbarSize), 14px))"}),Uw=Ge.styled(Cu)({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"}),Kw=Ge.styled(Cu)({width:"100%",height:"var(--size)",overflowY:"hidden",overflowX:"auto",outline:0,"& > div":{height:"var(--size)"},bottom:"0px"}),Ci=je(function(t,n){const r=Et(),o=ue(),s=g.useRef(!1),l=g.useRef(0),a=g.useRef(null),c=g.useRef(null),u=qw(o,t.position),d=te(r,at),h=t.position==="vertical"?"height":"width",m=t.position==="vertical"?"scrollTop":"scrollLeft",p=t.position==="vertical"?"top":"left",b=t.position==="vertical"?d.hasScrollX:d.hasScrollY,x=d.minimumSize[h]+(b?d.scrollbarSize:0),k=(t.position==="vertical"?d.viewportInnerSize.height:d.viewportOuterSize.width)*(x/d.viewportOuterSize[h]),v=re.unstable_useEventCallback(()=>{const y=a.current,A=t.scrollPosition.current;if(!y||A[p]===l.current)return;if(l.current=A[p],s.current){s.current=!1;return}s.current=!0;const N=A[p]/x;y[m]=N*k}),F=re.unstable_useEventCallback(()=>{const y=r.current.virtualScrollerRef.current,A=a.current;if(!A)return;if(s.current){s.current=!1;return}s.current=!0;const N=A[m]/k;y[m]=N*x});fa.default(()=>{const y=r.current.virtualScrollerRef.current,A=a.current,N={passive:!0};return y.addEventListener("scroll",v,N),A.addEventListener("scroll",F,N),()=>{y.removeEventListener("scroll",v,N),A.removeEventListener("scroll",F,N)}}),g.useEffect(()=>{c.current.style.setProperty(h,`${k}px`)},[k,h]);const j=t.position==="vertical"?Uw:Kw;return i.jsx(j,{ref:re.unstable_useForkRef(n,a),className:u.root,style:t.position==="vertical"&&o.unstable_listView?{height:"100%",top:0}:void 0,tabIndex:-1,"aria-hidden":"true",onFocus:y=>{y.target.blur()},children:i.jsx("div",{ref:c,className:u.content})})}),Xw=e=>{const{classes:t,hasScrollX:n,hasPinnedRight:r,loadingOverlayVariant:o}=e,s={root:["main",r&&"main--hasPinnedRight",o==="skeleton"&&"main--hasSkeletonLoadingOverlay"],scroller:["virtualScroller",n&&"virtualScroller--hasScrollX"]};return Xe.default(s,Te,t)},Yw=Ge.styled("div",{name:"MuiDataGrid",slot:"VirtualScroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.virtualScroller,n.hasScrollX&&t["virtualScroller--hasScrollX"]]}})({position:"relative",height:"100%",flexGrow:1,overflow:"scroll",scrollbarWidth:"none",display:"flex",flexDirection:"column","&::-webkit-scrollbar":{display:"none"},"@media print":{overflow:"hidden"},zIndex:0}),Zw=e=>e.dimensions.rightPinnedWidth>0;function Qw(e){const t=ke(),n=ue(),r=te(t,w1),o=te(t,C1),s=te(t,Zw),l=te(t,v1),a=mw(),c={classes:n.classes,hasScrollX:o,hasPinnedRight:s,loadingOverlayVariant:a.loadingOverlayVariant},u=Xw(c),d=uw(),{getContainerProps:h,getScrollerProps:m,getContentProps:p,getRenderZoneProps:b,getScrollbarVerticalProps:x,getScrollbarHorizontalProps:w,getRows:k,getScrollAreaProps:v}=d,F=k();return i.jsxs(Sw,C({className:u.root},h(),{ownerState:c,children:[i.jsx(Nr,C({scrollDirection:"left"},v())),i.jsx(Nr,C({scrollDirection:"right"},v())),i.jsx(Nr,C({scrollDirection:"up"},v())),i.jsx(Nr,C({scrollDirection:"down"},v())),i.jsxs(Yw,C({className:u.scroller},m(),{ownerState:c,children:[i.jsxs(Mw,{children:[!n.unstable_listView&&i.jsx(xw,{}),i.jsx(n.slots.pinnedRows,{position:"top",virtualScroller:d})]}),i.jsx(mu,C({},a)),i.jsx(Ow,C({},p(),{children:i.jsxs(zw,C({},b(),{children:[F,i.jsx(n.slots.detailPanels,{virtualScroller:d})]}))})),l&&i.jsx(Aw,{rowsLength:F.length}),i.jsx(Tw,{children:i.jsx(n.slots.pinnedRows,{position:"bottom",virtualScroller:d})})]})),o&&!n.unstable_listView&&i.jsx(Ci,C({position:"horizontal"},w())),r&&i.jsx(Ci,C({position:"vertical"},x())),e.children]}))}function Jw(){var t;const e=ue();return e.hideFooter?null:i.jsx(e.slots.footer,C({},(t=e.slotProps)==null?void 0:t.footer))}let Bo;function Zs(){return Bo===void 0&&document.createElement("div").focus({get preventScroll(){return Bo=!0,!1}}),Bo}function e0({defaultSlots:e,slots:t}){const n=t;if(!n||Object.keys(n).length===0)return e;const r=C({},e);return Object.keys(n).forEach(o=>{const s=o;n[s]!==void 0&&(r[s]=n[s])}),r}function t0(e){var o,s;if((o=e.slotProps)!=null&&o.root)return e;const t=Object.keys(e);if(!t.some(l=>l.startsWith("aria-")||l.startsWith("data-")))return e;const n={},r=(s=e.forwardedProps)!=null?s:{};for(let l=0;l<t.length;l+=1){const a=t[l];a.startsWith("aria-")||a.startsWith("data-")?r[a]=e[a]:n[a]=e[a]}return n.forwardedProps=r,n}function n0(e){return g.useMemo(()=>t0(e),[e])}const r0=[e=>e.autoPageSize&&e.autoHeight&&["MUI X: `<DataGrid autoPageSize={true} autoHeight={true} />` are not valid props.","You cannot use both the `autoPageSize` and `autoHeight` props at the same time because `autoHeight` scales the height of the Data Grid according to the `pageSize`.","","Please remove one of these two props."].join(`
53
+ return result$$;`.replaceAll("$$",String(ei)));return ei+=1,(a,c)=>s(o,a,c)},Ic=e=>{var t;return(t=e.quickFilterExcludeHiddenColumns)!=null?t:!0},cb=(e,t)=>{var a,c;const n=(c=(a=e.quickFilterValues)==null?void 0:a.filter(Boolean))!=null?c:[];if(n.length===0)return null;const r=Ic(e)?Xn(t):Yt(t),o=[],{ignoreDiacritics:s}=t.current.rootProps,l=wc(t);return r.forEach(u=>{const d=t.current.getColumn(u),f=d==null?void 0:d.getApplyQuickFilterFn;f&&o.push({column:d,appliers:n.map(m=>{const p=s?wr(m):m;return{fn:f(p,d,l)}})})}),function(d,f){const m={};e:for(let p=0;p<n.length;p+=1){const b=n[p];for(let x=0;x<o.length;x+=1){const{column:w,appliers:S}=o[x],{field:v}=w;if(f&&!f(v))continue;const F=S[p];let j=t.current.getRowValue(d,w);if(F.fn===null)continue;if(s&&(j=wr(j)),F.fn(j,d,w,l)){m[b]=!0;continue e}}m[b]=!1}return m}},ub=(e,t,n)=>{const r=ab(e,t,n),o=cb(e,t);return function(l,a,c){var u,d;c.passingFilterItems=(u=r==null?void 0:r(l,a))!=null?u:null,c.passingQuickFilterValues=(d=o==null?void 0:o(l,a))!=null?d:null}},ti=e=>e!=null,db=(e,t,n)=>(e.cleanedFilterItems||(e.cleanedFilterItems=n.filter(r=>kc(r,t)!==null)),e.cleanedFilterItems),fb=(e,t,n,r,o)=>{var c,u;const s=db(o,r,n.items),l=e.filter(ti),a=t.filter(ti);if(l.length>0){const d=m=>l.some(p=>p[m.id]);if(((c=n.logicOperator)!=null?c:Cr().logicOperator)===mt.And){if(!s.every(d))return!1}else if(!s.some(d))return!1}if(a.length>0&&n.quickFilterValues!=null){const d=m=>a.some(p=>p[m]);if(((u=n.quickFilterLogicOperator)!=null?u:Cr().quickFilterLogicOperator)===mt.And){if(!n.quickFilterValues.every(d))return!1}else if(!n.quickFilterValues.some(d))return!1}return!0},hb=e=>{if(!e)return null;const t=new RegExp(Yr(e),"i");return(n,r,o,s)=>{let l=s.current.getRowFormattedValue(r,o);return s.current.ignoreDiacritics&&(l=wr(l)),l!=null?t.test(l.toString()):!1}},ni=(e,t)=>n=>{if(!n.value)return null;const r=e?n.value:n.value.trim(),o=new RegExp(Yr(r),"i");return s=>{if(s==null)return t;const l=o.test(String(s));return t?!l:l}},ri=(e,t)=>n=>{if(!n.value)return null;const r=e?n.value:n.value.trim(),o=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return s=>{if(s==null)return t;const l=o.compare(r,s.toString())===0;return t?!l:l}},oi=e=>()=>t=>{const n=t===""||t==null;return e?!n:n},gb=(e=!1)=>[{value:"contains",getApplyFilterFn:ni(e,!1),InputComponent:Ct},{value:"doesNotContain",getApplyFilterFn:ni(e,!0),InputComponent:Ct},{value:"equals",getApplyFilterFn:ri(e,!1),InputComponent:Ct},{value:"doesNotEqual",getApplyFilterFn:ri(e,!0),InputComponent:Ct},{value:"startsWith",getApplyFilterFn:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`^${Yr(n)}.*$`,"i");return o=>o!=null?r.test(o.toString()):!1},InputComponent:Ct},{value:"endsWith",getApplyFilterFn:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`.*${Yr(n)}$`,"i");return o=>o!=null?r.test(o.toString()):!1},InputComponent:Ct},{value:"isEmpty",getApplyFilterFn:oi(!1),requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:oi(!0),requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFn:t=>{if(!Array.isArray(t.value)||t.value.length===0)return null;const n=e?t.value:t.value.map(o=>o.trim()),r=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return o=>o!=null?n.some(s=>r.compare(s,o.toString()||"")===0):!1},InputComponent:Hs}],Lt={width:100,minWidth:50,maxWidth:1/0,hideable:!0,sortable:!0,resizable:!0,filterable:!0,groupable:!0,pinnable:!0,aggregable:!0,editable:!1,sortComparator:Z1,type:"string",align:"left",filterOperators:gb(),renderEditCell:N1,getApplyQuickFilterFn:hb},mb=["open","target","onClose","children","position","className","onExited"],pb=e=>{const{classes:t}=e,n={root:["menu"]};return oe.unstable_composeClasses(n,Te,t)},bb=ge.styled(bs.default,{name:"MuiDataGrid",slot:"Menu",overridesResolver:(e,t)=>t.menu})(({theme:e})=>({zIndex:e.zIndex.modal,[`& .${I.menuList}`]:{outline:0}})),Cb={"bottom-start":"top left","bottom-end":"top right"};function fo(e){var x;const{open:t,target:n,onClose:r,children:o,position:s,className:l,onExited:a}=e,c=me(e,mb),u=ke(),d=ue(),f=pb(d),m=g.useRef(null);oe.unstable_useEnhancedEffect(()=>{var w,S;t?m.current=document.activeElement instanceof HTMLElement?document.activeElement:null:((S=(w=m.current)==null?void 0:w.focus)==null||S.call(w),m.current=null)},[t]),g.useEffect(()=>{const w=t?"menuOpen":"menuClose";u.current.publishEvent(w,{target:n})},[u,t,n]);const p=w=>S=>{w&&w(),a&&a(S)},b=w=>{w.target&&(n===w.target||n!=null&&n.contains(w.target))||r(w)};return i.jsx(bb,C({as:d.slots.basePopper,className:Pe(f.root,l),ownerState:d,open:t,anchorEl:n,transition:!0,placement:s},c,(x=d.slotProps)==null?void 0:x.basePopper,{children:({TransitionProps:w,placement:S})=>i.jsx(da.default,{onClickAway:b,mouseEvent:"onMouseDown",children:i.jsx(Ch.default,C({},w,{style:{transformOrigin:Cb[S]},onExited:p(w==null?void 0:w.onExited),children:i.jsx(fa.default,{children:o})}))})}))}process.env.NODE_ENV!=="production"&&(fo.propTypes={children:h.node,onClose:h.func.isRequired,onExited:h.func,open:h.bool.isRequired,position:h.oneOf(["bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),target:oe.HTMLElementType});const wb=["api","colDef","id","hasFocus","isEditable","field","value","formattedValue","row","rowNode","cellMode","tabIndex","position","focusElementRef"],xb=e=>typeof e.getActions=="function";function Mc(e){var T;const{colDef:t,id:n,hasFocus:r,tabIndex:o,position:s="bottom-end",focusElementRef:l}=e,a=me(e,wb),[c,u]=g.useState(-1),[d,f]=g.useState(!1),m=ke(),p=g.useRef(null),b=g.useRef(null),x=g.useRef(!1),w=g.useRef({}),S=Gt.useRtl(),v=oe.unstable_useId(),F=oe.unstable_useId(),j=ue();if(!xb(t))throw new Error("MUI X: Missing the `getActions` property in the `GridColDef`.");const y=t.getActions(m.current.getRowParams(n)),A=y.filter(L=>!L.props.showInMenu),N=y.filter(L=>L.props.showInMenu),M=A.length+(N.length?1:0);g.useLayoutEffect(()=>{r||Object.entries(w.current).forEach(([L,$])=>{$==null||$.stop({},()=>{delete w.current[L]})})},[r]),g.useEffect(()=>{if(c<0||!p.current||c>=p.current.children.length)return;p.current.children[c].focus({preventScroll:!0})},[c]),g.useEffect(()=>{r||(u(-1),x.current=!1)},[r]),g.useImperativeHandle(l,()=>({focus(){if(!x.current){const L=y.findIndex($=>!$.props.disabled);u(L)}}}),[y]),g.useEffect(()=>{c>=M&&u(M-1)},[c,M]);const P=()=>{f(!0),u(M-1),x.current=!0},R=()=>{f(!1)},_=L=>{L.stopPropagation(),L.preventDefault(),d?R():P()},O=L=>$=>{w.current[L]=$},D=(L,$)=>G=>{u(L),x.current=!0,$&&$(G)},V=L=>{if(M<=1)return;const $=(k,H)=>{var U;if(k<0||k>y.length)return k;const q=(H==="left"?-1:1)*(S?-1:1);return(U=y[k+q])!=null&&U.props.disabled?$(k+q,H):k+q};let G=c;L.key==="ArrowRight"?G=$(c,"right"):L.key==="ArrowLeft"&&(G=$(c,"left")),!(G<0||G>=M)&&G!==c&&(L.preventDefault(),L.stopPropagation(),u(G))},E=L=>{L.key==="Tab"&&L.preventDefault(),["Tab","Escape"].includes(L.key)&&R()};return i.jsxs("div",C({role:"menu",ref:p,tabIndex:-1,className:I.actionsCell,onKeyDown:V},a,{children:[A.map((L,$)=>g.cloneElement(L,{key:$,touchRippleRef:O($),onClick:D($,L.props.onClick),tabIndex:c===$?o:-1})),N.length>0&&F&&i.jsx(j.slots.baseIconButton,C({ref:b,id:F,"aria-label":m.current.getLocaleText("actionsCellMore"),"aria-haspopup":"menu","aria-expanded":d,"aria-controls":d?v:void 0,role:"menuitem",size:"small",onClick:_,touchRippleRef:O(F),tabIndex:c===A.length?o:-1},(T=j.slotProps)==null?void 0:T.baseIconButton,{children:i.jsx(j.slots.moreActionsIcon,{fontSize:"small"})})),N.length>0&&i.jsx(fo,{open:d,target:b.current,position:s,onClose:R,children:i.jsx(ps.default,{id:v,className:I.menuList,onKeyDown:E,"aria-labelledby":F,variant:"menu",autoFocusItem:!0,children:N.map((L,$)=>g.cloneElement(L,{key:$,closeMenu:R}))})})]}))}process.env.NODE_ENV!=="production"&&(Mc.propTypes={api:h.object,cellMode:h.oneOf(["edit","view"]).isRequired,colDef:h.object.isRequired,field:h.string.isRequired,focusElementRef:h.oneOfType([h.func,h.shape({current:h.shape({focus:h.func.isRequired})})]),formattedValue:h.any,hasFocus:h.bool.isRequired,id:h.oneOfType([h.number,h.string]).isRequired,isEditable:h.bool,position:h.oneOf(["bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),row:h.any.isRequired,rowNode:h.object.isRequired,tabIndex:h.oneOf([-1,0]).isRequired,value:h.any});const yb=e=>i.jsx(Mc,C({},e)),ho="actions",vb=C({},Lt,{sortable:!1,filterable:!1,aggregable:!1,width:100,display:"flex",align:"center",headerAlign:"center",headerName:"",disableColumnMenu:!0,disableExport:!0,renderCell:yb,getApplyQuickFilterFn:void 0}),ft="auto-generated-group-node-root",Nn=Symbol("mui.id_autogenerated"),Sb=()=>({type:"group",id:ft,depth:-1,groupingField:null,groupingKey:null,isAutoGenerated:!0,children:[],childrenFromPath:{},childrenExpanded:!0,parent:null});function kb(e,t,n="A row was provided without id in the rows prop:"){if(e==null)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.",n,JSON.stringify(t)].join(`
54
+ `))}const go=(e,t,n)=>{const r=t?t(e):e.id;return kb(r,e,n),r},zr=({rows:e,getRowId:t,loading:n,rowCount:r})=>{const o={type:"full",rows:[]},s={},l={};for(let a=0;a<e.length;a+=1){const c=e[a],u=go(c,t);s[u]=c,l[u]=u,o.rows.push(u)}return{rowsBeforePartialUpdates:e,loadingPropBeforePartialUpdates:n,rowCountPropBeforePartialUpdates:r,updates:o,dataRowIdToIdLookup:l,dataRowIdToModelLookup:s}},Ec=({tree:e,rowCountProp:t=0})=>{const n=e[ft];return Math.max(t,n.children.length+(n.footerId==null?0:1))},Pc=({apiRef:e,rowCountProp:t=0,loadingProp:n,previousTree:r,previousTreeDepths:o,previousGroupsToFetch:s})=>{const l=e.current.caches.rows,{tree:a,treeDepths:c,dataRowIds:u,groupingName:d,groupsToFetch:f=[]}=e.current.applyStrategyProcessor("rowTreeCreation",{previousTree:r,previousTreeDepths:o,updates:l.updates,dataRowIdToIdLookup:l.dataRowIdToIdLookup,dataRowIdToModelLookup:l.dataRowIdToModelLookup,previousGroupsToFetch:s}),m=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:a,treeDepths:c,dataRowIdToIdLookup:l.dataRowIdToIdLookup,dataRowIds:u,dataRowIdToModelLookup:l.dataRowIdToModelLookup});return e.current.caches.rows.updates={type:"partial",actions:{insert:[],modify:[],remove:[]},idToActionLookup:{}},C({},m,{totalRowCount:Math.max(t,m.dataRowIds.length),totalTopLevelRowCount:Ec({tree:m.tree,rowCountProp:t}),groupingName:d,loading:n,groupsToFetch:f})},$n=e=>e.type==="skeletonRow"||e.type==="footer"||e.type==="group"&&e.isAutoGenerated||e.type==="pinnedRow"&&e.isAutoGenerated,As=(e,t,n)=>{const r=e[t];if(r.type!=="group")return[];const o=[];for(let s=0;s<r.children.length;s+=1){const l=r.children[s];(!n||!$n(e[l]))&&o.push(l);const a=As(e,l,n);for(let c=0;c<a.length;c+=1)o.push(a[c])}return!n&&r.footerId!=null&&o.push(r.footerId),o},si=({previousCache:e,getRowId:t,updates:n,groupKeys:r})=>{var d,f,m;if(e.updates.type==="full")throw new Error("MUI X: Unable to prepare a partial update if a full update is not applied yet.");const o=new Map;n.forEach(p=>{const b=go(p,t,"A row was provided without id when calling updateRows():");o.has(b)?o.set(b,C({},o.get(b),p)):o.set(b,p)});const s={type:"partial",actions:{insert:[...(d=e.updates.actions.insert)!=null?d:[]],modify:[...(f=e.updates.actions.modify)!=null?f:[]],remove:[...(m=e.updates.actions.remove)!=null?m:[]]},idToActionLookup:C({},e.updates.idToActionLookup),groupKeys:r},l=C({},e.dataRowIdToModelLookup),a=C({},e.dataRowIdToIdLookup),c={insert:{},modify:{},remove:{}};o.forEach((p,b)=>{const x=s.idToActionLookup[b];if(p._action==="delete"){if(x==="remove"||!l[b])return;x!=null&&(c[x][b]=!0),s.actions.remove.push(b),delete l[b],delete a[b];return}const w=l[b];if(w){x==="remove"?(c.remove[b]=!0,s.actions.modify.push(b)):x==null&&s.actions.modify.push(b),l[b]=C({},w,p);return}x==="remove"?(c.remove[b]=!0,s.actions.insert.push(b)):x==null&&s.actions.insert.push(b),l[b]=p,a[b]=b});const u=Object.keys(c);for(let p=0;p<u.length;p+=1){const b=u[p],x=c[b];Object.keys(x).length>0&&(s.actions[b]=s.actions[b].filter(w=>!x[w]))}return{dataRowIdToModelLookup:l,dataRowIdToIdLookup:a,updates:s,rowsBeforePartialUpdates:e.rowsBeforePartialUpdates,loadingPropBeforePartialUpdates:e.loadingPropBeforePartialUpdates,rowCountPropBeforePartialUpdates:e.rowCountPropBeforePartialUpdates}},Tc="var(--DataGrid-overlayHeight, calc(var(--height) * 2))";function li(e,t,n){const r=[];return t.forEach(o=>{const s=go(o,n,"A row was provided without id when calling updateRows():"),l=e.current.getRowNode(s);if((l==null?void 0:l.type)==="pinnedRow"){const a=e.current.caches.pinnedRows,c=a.idLookup[s];c&&(a.idLookup[s]=C({},c,o))}else r.push(o)}),r}let ii=!1;const Fc=(e,t,n)=>typeof e=="number"&&e>0?e:(process.env.NODE_ENV!=="production"&&!ii&&typeof e!="undefined"&&e!==null&&(console.warn(n),ii=!0),t),Ib=["MUI X: The `rowHeight` prop should be a number greater than 0.","The default value will be used instead."].join(`
55
+ `),Mb=["MUI X: The `getRowHeight` prop should return a number greater than 0 or 'auto'.","The default value will be used instead."].join(`
56
+ `),Eb="__tree_data_group__",jc="__row_group_by_columns_group__",mo="__detail_panel_toggle__";let Ie=(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 Pb=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","hasFocus","tabIndex","hideDescendantCount"],Tb=e=>{const{classes:t}=e,n={root:["booleanCell"]};return Xe.default(n,Te,t)};function Oc(e){const{value:t,rowNode:n}=e,r=me(e,Pb),o=ke(),s=ue(),l={classes:s.classes},a=Tb(l),u=te(o,vn)>0&&n.type==="group"&&s.treeData===!1,d=g.useMemo(()=>t?s.slots.booleanCellTrueIcon:s.slots.booleanCellFalseIcon,[s.slots.booleanCellFalseIcon,s.slots.booleanCellTrueIcon,t]);return u&&t===void 0?null:i.jsx(d,C({fontSize:"small",className:a.root,titleAccess:o.current.getLocaleText(t?"booleanCellTrueLabel":"booleanCellFalseLabel"),"data-value":!!t},r))}process.env.NODE_ENV!=="production"&&(Oc.propTypes={api:h.object.isRequired,cellMode:h.oneOf(["edit","view"]).isRequired,colDef:h.object.isRequired,field:h.string.isRequired,focusElementRef:h.oneOfType([h.func,h.shape({current:h.shape({focus:h.func.isRequired})})]),formattedValue:h.any,hasFocus:h.bool.isRequired,hideDescendantCount:h.bool,id:h.oneOfType([h.number,h.string]).isRequired,isEditable:h.bool,row:h.any.isRequired,rowNode:h.object.isRequired,tabIndex:h.oneOf([-1,0]).isRequired,value:h.any});const Fb=g.memo(Oc),jb=e=>e.field!==jc&&$n(e.rowNode)?"":i.jsx(Fb,C({},e)),Ob=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange"],Rb=e=>{const{classes:t}=e,n={root:["editBooleanCell"]};return oe.unstable_composeClasses(n,Te,t)};function Rc(e){var S;const{id:t,value:n,field:r,className:o,hasFocus:s,onValueChange:l}=e,a=me(e,Ob),c=ke(),u=g.useRef(null),d=oe.unstable_useId(),[f,m]=g.useState(n),p=ue(),b={classes:p.classes},x=Rb(b),w=g.useCallback(async v=>{const F=v.target.checked;l&&await l(v,F),m(F),await c.current.setEditCellValue({id:t,field:r,value:F},v)},[c,r,t,l]);return g.useEffect(()=>{m(n)},[n]),oe.unstable_useEnhancedEffect(()=>{s&&u.current.focus()},[s]),i.jsx("label",C({htmlFor:d,className:Pe(x.root,o)},a,{children:i.jsx(p.slots.baseCheckbox,C({id:d,inputRef:u,checked:!!f,onChange:w,size:"small"},(S=p.slotProps)==null?void 0:S.baseCheckbox))}))}process.env.NODE_ENV!=="production"&&(Rc.propTypes={api:h.object.isRequired,cellMode:h.oneOf(["edit","view"]).isRequired,changeReason:h.oneOf(["debouncedSetEditCellValue","setEditCellValue"]),colDef:h.object.isRequired,field:h.string.isRequired,formattedValue:h.any,hasFocus:h.bool.isRequired,id:h.oneOfType([h.number,h.string]).isRequired,isEditable:h.bool,isProcessingProps:h.bool,isValidating:h.bool,onValueChange:h.func,row:h.any.isRequired,rowNode:h.object.isRequired,tabIndex:h.oneOf([-1,0]).isRequired,value:h.any});const Lb=e=>i.jsx(Rc,C({},e)),Db=["item","applyValue","apiRef","focusElementRef","isFilterActive","clearButton","tabIndex","label","variant","InputLabelProps"],Gr=e=>{if(String(e).toLowerCase()==="true")return!0;if(String(e).toLowerCase()==="false")return!1},Hb=ge.styled("div")({display:"flex",alignItems:"center",width:"100%","& button":{margin:"auto 0px 5px 5px"}});function Lc(e){var j,y,A,N;const{item:t,applyValue:n,apiRef:r,focusElementRef:o,clearButton:s,tabIndex:l,label:a,variant:c="standard"}=e,u=me(e,Db),[d,f]=g.useState(Gr(t.value)),m=ue(),p=oe.unstable_useId(),b=oe.unstable_useId(),x=((j=m.slotProps)==null?void 0:j.baseSelect)||{},w=(y=x.native)!=null?y:!1,S=((A=m.slotProps)==null?void 0:A.baseSelectOption)||{},v=g.useCallback(M=>{const P=Gr(M.target.value);f(P),n(C({},t,{value:P}))},[n,t]);g.useEffect(()=>{f(Gr(t.value))},[t.value]);const F=a!=null?a:r.current.getLocaleText("filterPanelInputLabel");return i.jsxs(Hb,{children:[i.jsxs(m.slots.baseFormControl,{fullWidth:!0,children:[i.jsx(m.slots.baseInputLabel,C({},(N=m.slotProps)==null?void 0:N.baseInputLabel,{id:p,shrink:!0,variant:c,children:F})),i.jsxs(m.slots.baseSelect,C({labelId:p,id:b,label:F,value:d===void 0?"":String(d),onChange:v,variant:c,notched:c==="outlined"?!0:void 0,native:w,displayEmpty:!0,inputProps:{ref:o,tabIndex:l}},u,x,{children:[i.jsx(m.slots.baseSelectOption,C({},S,{native:w,value:"",children:r.current.getLocaleText("filterValueAny")})),i.jsx(m.slots.baseSelectOption,C({},S,{native:w,value:"true",children:r.current.getLocaleText("filterValueTrue")})),i.jsx(m.slots.baseSelectOption,C({},S,{native:w,value:"false",children:r.current.getLocaleText("filterValueFalse")}))]}))]}),s]})}process.env.NODE_ENV!=="production"&&(Lc.propTypes={apiRef:h.shape({current:h.object.isRequired}).isRequired,applyValue:h.func.isRequired,clearButton:h.node,focusElementRef:oe.refType,isFilterActive:h.bool,item:h.shape({field:h.string.isRequired,id:h.oneOfType([h.number,h.string]),operator:h.string.isRequired,value:h.any}).isRequired});const _b=()=>[{value:"is",getApplyFilterFn:e=>{const t=Gr(e.value);return t===void 0?null:n=>!!n===t},InputComponent:Lc}],Ab=(e,t,n,r)=>e?r.current.getLocaleText("booleanCellTrueLabel"):r.current.getLocaleText("booleanCellFalseLabel"),Vb=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}},Dc=C({},Lt,{type:"boolean",display:"flex",align:"center",headerAlign:"center",renderCell:jb,renderEditCell:Lb,sortComparator:hc,valueFormatter:Ab,filterOperators:_b(),getApplyQuickFilterFn:void 0,aggregable:!1,pastedValueParser:e=>Vb(e)}),Hc=e=>e.sorting,Zn=be(Hc,e=>e.sortedRows),Vs=Le(Zn,vt,nt,(e,t,n)=>e.reduce((r,o)=>{const s=t[o];if(s)r.push({id:o,model:s});else{const l=n[o];l&&$n(l)&&r.push({id:o,model:{[Nn]:o}})}return r},[])),jt=be(Hc,e=>e.sortModel),Nb=Le(jt,e=>e.reduce((n,r,o)=>(n[r.field]={sortDirection:r.sort,sortIndex:e.length>1?o+1:void 0},n),{}));Le(Zn,e=>e.reduce((t,n,r)=>(t[n]=r,t),Object.create(null)));const po=e=>e.filter,ut=be(po,e=>e.filterModel),$b=be(ut,e=>e.quickFilterValues),zb=e=>e.visibleRowsLookup,Qn=be(po,e=>e.filteredRowsLookup);be(po,e=>e.filteredChildrenCountLookup);be(po,e=>e.filteredDescendantCountLookup);const fn=Le(zb,Vs,vn,ut,$b,(e,t,n,r,o)=>n<2&&!r.items.length&&!(o!=null&&o.length)?t:t.filter(s=>e[s.id]!==!1)),Vn=Le(fn,e=>e.map(t=>t.id)),_c=Le(Qn,Vs,(e,t)=>t.filter(n=>e[n.id]!==!1)),Ac=Le(_c,e=>e.map(t=>t.id));Le(Vn,nt,(e,t)=>{const n={};let r=0;return e.reduce((o,s)=>{const l=t[s];return n[l.depth]||(n[l.depth]=0),l.depth>r&&(n[l.depth]=0),r=l.depth,n[l.depth]+=1,o[s]=n[l.depth],o},{})});const Vc=Le(fn,nt,vn,(e,t,n)=>n<2?e:e.filter(r=>{var o;return((o=t[r.id])==null?void 0:o.depth)===0})),Ns=be(fn,e=>e.length),$s=be(Vc,e=>e.length),Gb=be(_c,e=>e.length);be(Gb,$s,(e,t)=>e-t);const Nc=Le(ut,Qt,(e,t)=>{var n;return(n=e.items)==null?void 0:n.filter(r=>{var l,a;if(!r.field)return!1;const o=t[r.field];if(!(o!=null&&o.filterOperators)||((l=o==null?void 0:o.filterOperators)==null?void 0:l.length)===0)return!1;const s=o.filterOperators.find(c=>c.value===r.operator);return s?!s.InputComponent||r.value!=null&&((a=r.value)==null?void 0:a.toString())!=="":!1})}),Bb=Le(Nc,e=>e.reduce((n,r)=>(n[r.field]?n[r.field].push(r):n[r.field]=[r],n),{})),pt=e=>e.rowSelection,Wb=be(pt,e=>e.length),qb=Le(pt,vt,(e,t)=>new Map(e.map(n=>[n,t[n]]))),ln=Le(pt,e=>e.reduce((t,n)=>(t[n]=n,t),{}));function $c(e,t){var c;const n=nt(e),r=Zn(e),o=Qn(e),s=n[t];if(!s||s.type!=="group")return[];const l=[],a=r.findIndex(u=>u===t)+1;for(let u=a;u<r.length&&((c=n[r[u]])==null?void 0:c.depth)>s.depth;u+=1){const d=r[u];o[d]!==!1&&e.current.isRowSelectable(d)&&l.push(d)}return l}function Ub(e,t){return be(nt,Zn,Qn,ln,(n,r,o,s)=>{var d;const l=n[e];if(!l||l.type!=="group")return{isIndeterminate:!1,isChecked:s[e]===e};if(s[e]===e)return{isIndeterminate:!1,isChecked:!0};let a=0,c=0;const u=r.findIndex(f=>f===e)+1;for(let f=u;f<r.length&&((d=n[r[f]])==null?void 0:d.depth)>l.depth;f+=1){const m=r[f];o[m]!==!1&&(a+=1,s[m]!==void 0&&(c+=1))}return{isIndeterminate:c>0&&(c<a||s[e]===void 0),isChecked:t?c>0:s[e]===e}})}function zs(e){return e.signature===wt.DataGrid?e.checkboxSelection&&e.disableMultipleRowSelection!==!0:!e.disableMultipleRowSelection}const Kb=(e,t)=>{const n=[];let r=t;for(;r!=null&&r!==ft;){const o=e[r];if(!o)return n;n.push(r),r=o.parent}return n},Xb=(e,t,n)=>{const r=e[n];if(!r)return[];const o=r.parent;return o==null?[]:e[o].children.filter(l=>l!==n&&t[l]!==!1)},sr=(e,t,n,r,o,s,l=new Set(pt(e.current.state)))=>{const a=Qn(e),c=new Set([]);if(!(!r&&!o||a[n]===!1)){if(r){const u=t[n];(u==null?void 0:u.type)==="group"&&$c(e,n).forEach(f=>{s(f),c.add(f)})}if(o){const u=f=>{if(!l.has(f)&&!c.has(f))return!1;const m=t[f];return m?m.type!=="group"?!0:m.children.every(u):!1},d=f=>{const m=Xb(t,a,f);if(m.length===0||m.every(u)){const p=t[f],b=p==null?void 0:p.parent;b!=null&&b!==ft&&e.current.isRowSelectable(b)&&(s(b),c.add(b),d(b))}};d(n)}}},ai=(e,t,n,r,o,s)=>{const l=ln(e);if(!(!o&&!r)&&(o&&Kb(t,n).forEach(c=>{l[c]===c&&s(c)}),r)){const a=t[n];(a==null?void 0:a.type)==="group"&&$c(e,n).forEach(u=>{s(u)})}},Yb=["field","id","formattedValue","row","rowNode","colDef","isEditable","cellMode","hasFocus","tabIndex","api"],Zb=e=>{const{classes:t}=e,n={root:["checkboxInput"]};return oe.unstable_composeClasses(n,Te,t)},zc=je(function(t,n){var M,P,R;const{field:r,id:o,rowNode:s,hasFocus:l,tabIndex:a}=t,c=me(t,Yb),u=ke(),d=ue(),f={classes:d.classes},m=Zb(f),p=g.useRef(null),b=g.useRef(null),x=oe.unstable_useForkRef(p,n),w=_=>{const O={value:_.target.checked,id:o};u.current.publishEvent("rowSelectionCheckboxChange",O,_)};g.useLayoutEffect(()=>{if(a===0){const _=u.current.getCellElement(o,r);_&&(_.tabIndex=-1)}},[u,a,o,r]),g.useEffect(()=>{var _;if(l){const O=(_=p.current)==null?void 0:_.querySelector("input");O==null||O.focus({preventScroll:!0})}else b.current&&b.current.stop({})},[l]);const S=g.useCallback(_=>{_.key===" "&&_.stopPropagation()},[]),v=u.current.isRowSelectable(o),F=Ub(o,(P=(M=d.rowSelectionPropagation)==null?void 0:M.parents)!=null?P:!1),{isIndeterminate:j,isChecked:y}=te(u,F,Os);if(s.type==="footer"||s.type==="pinnedRow")return null;const A=d.indeterminateCheckboxAction==="select"?y&&!j:y,N=u.current.getLocaleText(A?"checkboxSelectionUnselectRow":"checkboxSelectionSelectRow");return i.jsx(d.slots.baseCheckbox,C({tabIndex:a,checked:A,onChange:w,className:m.root,inputProps:{"aria-label":N,name:"select_row"},onKeyDown:S,indeterminate:j,disabled:!v,touchRippleRef:b},(R=d.slotProps)==null?void 0:R.baseCheckbox,c,{ref:x}))});process.env.NODE_ENV!=="production"&&(zc.propTypes={api:h.object.isRequired,cellMode:h.oneOf(["edit","view"]).isRequired,colDef:h.object.isRequired,field:h.string.isRequired,focusElementRef:h.oneOfType([h.func,h.shape({current:h.shape({focus:h.func.isRequired})})]),formattedValue:h.any,hasFocus:h.bool.isRequired,id:h.oneOfType([h.number,h.string]).isRequired,isEditable:h.bool,row:h.any.isRequired,rowNode:h.object.isRequired,tabIndex:h.oneOf([-1,0]).isRequired,value:h.any});const Qb=zc,bo=e=>e.focus,gt=be(bo,e=>e.cell),Jb=be(bo,e=>e.columnHeader);be(bo,e=>e.columnHeaderFilter);const Qr=be(bo,e=>e.columnGroupHeader),Co=e=>e.tabIndex,Gs=be(Co,e=>e.cell),Gc=be(Co,e=>e.columnHeader);be(Co,e=>e.columnHeaderFilter);const eC=be(Co,e=>e.columnGroupHeader);function Se(e,t,n){const r=g.useRef(!0);aa.default(()=>{r.current=!1,e.current.register(n,t)},[e,n,t]),r.current&&e.current.register(n,t)}function ct(e,t){const n=g.useRef(null);if(n.current)return n.current;const r=e.current.getLogger(t);return n.current=r,r}const Bc=(e,t,n,r,o)=>{const s=ct(e,"useNativeEventListener");Ae(e,"rootMount",()=>{const l=typeof t=="function"?t():t.current;if(!(!l||!n||!r))return s.debug(`Binding native ${n} event`),l.addEventListener(n,r,o),()=>{s.debug(`Clearing native ${n} event`),l.removeEventListener(n,r,o)}})},Ir=e=>{const t=g.useRef(!0);t.current&&(t.current=!1,e())},tC=()=>{},nC=(e,t)=>{const n=g.useRef(!1);oe.unstable_useEnhancedEffect(()=>n.current||!e?tC:(n.current=!0,t()),[n.current||e])},rC=100,oC=e=>e?0:100,Wc=(e,t,n)=>t>0&&e>0?Math.ceil(e/t):e===-1?n+2:0,qc=e=>({page:0,pageSize:e?0:100}),sC=(e,t=0)=>t===0?e:Math.max(Math.min(e,t-1),0),Uc=(e,t)=>{if(t===wt.DataGrid&&e>rC)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(`
57
+ `))},lC=-1,Mr=e=>e.pagination,Kc=be(Mr,e=>e.enabled&&e.paginationMode==="client"),ht=be(Mr,e=>e.paginationModel),Ln=be(Mr,e=>e.rowCount),hr=be(Mr,e=>e.meta),iC=be(ht,e=>e.page),Xc=be(ht,e=>e.pageSize),Yc=be(ht,Ln,(e,t)=>Wc(t,e.pageSize,e.page)),Bs=Le(Kc,ht,nt,vn,fn,Vc,(e,t,n,r,o,s)=>{var b;if(!e)return null;const l=s.length,a=Math.min(t.pageSize*t.page,l-1),c=t.pageSize===lC?l-1:Math.min(a+t.pageSize-1,l-1);if(a===-1||c===-1)return null;if(r<2)return{firstRowIndex:a,lastRowIndex:c};const u=s[a],d=c-a+1,f=o.findIndex(x=>x.id===u.id);let m=f,p=0;for(;m<o.length&&p<=d;){const x=o[m],w=(b=n[x.id])==null?void 0:b.depth;w===void 0?m+=1:((p<d||w>0)&&(m+=1),w===0&&(p+=1))}return{firstRowIndex:f,lastRowIndex:m-1}}),aC=Le(fn,Bs,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),Zc=Le(Vn,Bs,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),Er=Le(Kc,Bs,aC,fn,(e,t,n,r)=>e?{rows:n,range:t,rowToIndexMap:n.reduce((o,s,l)=>(o.set(s.model,l),o),new Map)}:{rows:r,range:r.length===0?null:{firstRowIndex:0,lastRowIndex:r.length-1},rowToIndexMap:r.reduce((o,s,l)=>(o.set(s.model,l),o),new Map)}),cC=["field","colDef"],uC=e=>{const{classes:t}=e,n={root:["checkboxInput"]};return Xe.default(n,Te,t)},Qc=je(function(t,n){var M;const r=me(t,cC),[,o]=g.useState(!1),s=ke(),l=ue(),a={classes:l.classes},c=uC(a),u=te(s,Gc),d=te(s,pt),f=te(s,Vn),m=te(s,Zc),p=g.useMemo(()=>typeof l.isRowSelectable!="function"?d:d.filter(P=>l.keepNonExistentRowsSelected?!0:s.current.getRow(P)?l.isRowSelectable(s.current.getRowParams(P)):!1),[s,l.isRowSelectable,d,l.keepNonExistentRowsSelected]),b=g.useMemo(()=>(!l.pagination||!l.checkboxSelectionVisibleOnly||l.paginationMode==="server"?f:m).reduce((R,_)=>(R[_]=!0,R),{}),[l.pagination,l.paginationMode,l.checkboxSelectionVisibleOnly,m,f]),x=g.useMemo(()=>p.filter(P=>b[P]).length,[p,b]),w=x>0&&x<Object.keys(b).length,S=x>0,v=P=>{const R={value:P.target.checked};s.current.publishEvent("headerSelectionCheckboxChange",R)},F=u!==null&&u.field===t.field?0:-1;g.useLayoutEffect(()=>{const P=s.current.getColumnHeaderElement(t.field);F===0&&P&&(P.tabIndex=-1)},[F,s,t.field]);const j=g.useCallback(P=>{P.key===" "&&s.current.publishEvent("headerSelectionCheckboxChange",{value:!S})},[s,S]),y=g.useCallback(()=>{o(P=>!P)},[]);g.useEffect(()=>s.current.subscribeEvent("rowSelectionChange",y),[s,y]);const A=l.indeterminateCheckboxAction==="select"?S&&!w:S,N=s.current.getLocaleText(A?"checkboxSelectionUnselectAllRows":"checkboxSelectionSelectAllRows");return i.jsx(l.slots.baseCheckbox,C({indeterminate:w,checked:A,onChange:v,className:c.root,inputProps:{"aria-label":N,name:"select_all_rows"},tabIndex:F,onKeyDown:j,disabled:!zs(l)},(M=l.slotProps)==null?void 0:M.baseCheckbox,r,{ref:n}))});process.env.NODE_ENV!=="production"&&(Qc.propTypes={colDef:h.object.isRequired,field:h.string.isRequired});const Pr=(e,t)=>Nn in t?t[Nn]:e.props.getRowId?e.props.getRowId(t):t.id,yt="__check__",Jn=C({},Dc,{type:"custom",field:yt,width:50,resizable:!1,sortable:!1,filterable:!1,aggregable:!1,disableColumnMenu:!0,disableReorder:!0,disableExport:!0,getApplyQuickFilterFn:void 0,display:"flex",valueGetter:(e,t,n,r)=>{const o=ln(r),s=Pr(r.current.state,t);return o[s]!==void 0},renderHeader:e=>i.jsx(Qc,C({},e)),renderCell:e=>i.jsx(Qb,C({},e))}),dC=["item","applyValue","type","apiRef","focusElementRef","InputProps","isFilterActive","clearButton","tabIndex","disabled"];function ci(e,t){if(e==null)return"";const n=new Date(e);return Number.isNaN(n.getTime())?"":t==="date"?n.toISOString().substring(0,10):t==="datetime-local"?(n.setMinutes(n.getMinutes()-n.getTimezoneOffset()),n.toISOString().substring(0,19)):n.toISOString().substring(0,10)}function gn(e){var F;const{item:t,applyValue:n,type:r,apiRef:o,focusElementRef:s,InputProps:l,clearButton:a,tabIndex:c,disabled:u}=e,d=me(e,dC),f=wn.default(),[m,p]=g.useState(()=>ci(t.value,r)),[b,x]=g.useState(!1),w=oe.unstable_useId(),S=ue(),v=g.useCallback(j=>{f.clear();const y=j.target.value;p(y),x(!0),f.start(S.filterDebounceMs,()=>{const A=new Date(y);n(C({},t,{value:Number.isNaN(A.getTime())?void 0:A})),x(!1)})},[n,t,S.filterDebounceMs,f]);return g.useEffect(()=>{const j=ci(t.value,r);p(j)},[t.value,r]),i.jsx(S.slots.baseTextField,C({fullWidth:!0,id:w,label:o.current.getLocaleText("filterPanelInputLabel"),placeholder:o.current.getLocaleText("filterPanelInputPlaceholder"),value:m,onChange:v,variant:"standard",type:r||"text",InputLabelProps:{shrink:!0},inputRef:s,InputProps:C({},b||a?{endAdornment:b?i.jsx(S.slots.loadIcon,{fontSize:"small",color:"action"}):a}:{},{disabled:u},l,{inputProps:C({max:r==="datetime-local"?"9999-12-31T23:59":"9999-12-31",tabIndex:c},l==null?void 0:l.inputProps)})},d,(F=S.slotProps)==null?void 0:F.baseTextField))}process.env.NODE_ENV!=="production"&&(gn.propTypes={apiRef:h.shape({current:h.object.isRequired}).isRequired,applyValue:h.func.isRequired,clearButton:h.node,focusElementRef:h.oneOfType([h.func,h.object]),isFilterActive:h.bool,item:h.shape({field:h.string.isRequired,id:h.oneOfType([h.number,h.string]),operator:h.string.isRequired,value:h.any}).isRequired});function In(e,t,n,r){if(!e.value)return null;const o=new Date(e.value);n?o.setSeconds(0,0):(o.setMinutes(o.getMinutes()+o.getTimezoneOffset()),o.setHours(0,0,0,0));const s=o.getTime();return l=>{if(!l)return!1;if(r)return t(l.getTime(),s);const a=new Date(l);return n?a.setSeconds(0,0):a.setHours(0,0,0,0),t(a.getTime(),s)}}const Jc=e=>[{value:"is",getApplyFilterFn:t=>In(t,(n,r)=>n===r,e),InputComponent:gn,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"not",getApplyFilterFn:t=>In(t,(n,r)=>n!==r,e),InputComponent:gn,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"after",getApplyFilterFn:t=>In(t,(n,r)=>n>r,e),InputComponent:gn,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrAfter",getApplyFilterFn:t=>In(t,(n,r)=>n>=r,e),InputComponent:gn,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"before",getApplyFilterFn:t=>In(t,(n,r)=>n<r,e,!e),InputComponent:gn,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrBefore",getApplyFilterFn:t=>In(t,(n,r)=>n<=r,e),InputComponent:gn,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"isEmpty",getApplyFilterFn:()=>t=>t==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:()=>t=>t!=null,requiresFilterValue:!1}],fC=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","inputProps","isValidating","isProcessingProps","onValueChange"],hC=ge.styled(ca.default)({fontSize:"inherit"}),gC=e=>{const{classes:t}=e,n={root:["editInputCell"]};return oe.unstable_composeClasses(n,Te,t)};function eu(e){const{id:t,value:n,field:r,colDef:o,hasFocus:s,inputProps:l,onValueChange:a}=e,c=me(e,fC),u=o.type==="dateTime",d=ke(),f=g.useRef(null),m=g.useMemo(()=>{let j;n==null?j=null:n instanceof Date?j=n:j=new Date((n!=null?n:"").toString());let y;return j==null||Number.isNaN(j.getTime())?y="":y=new Date(j.getTime()-j.getTimezoneOffset()*60*1e3).toISOString().substr(0,u?16:10),{parsed:j,formatted:y}},[n,u]),[p,b]=g.useState(m),w={classes:ue().classes},S=gC(w),v=g.useCallback(j=>{if(j==="")return null;const[y,A]=j.split("T"),[N,M,P]=y.split("-"),R=new Date;if(R.setFullYear(Number(N),Number(M)-1,Number(P)),R.setHours(0,0,0,0),A){const[_,O]=A.split(":");R.setHours(Number(_),Number(O),0,0)}return R},[]),F=g.useCallback(async j=>{const y=j.target.value,A=v(y);a&&await a(j,A),b({parsed:A,formatted:y}),d.current.setEditCellValue({id:t,field:r,value:A},j)},[d,r,t,a,v]);return g.useEffect(()=>{b(j=>{var y,A;return m.parsed!==j.parsed&&((y=m.parsed)==null?void 0:y.getTime())!==((A=j.parsed)==null?void 0:A.getTime())?m:j})},[m]),oe.unstable_useEnhancedEffect(()=>{s&&f.current.focus()},[s]),i.jsx(hC,C({inputRef:f,fullWidth:!0,className:S.root,type:u?"datetime-local":"date",inputProps:C({max:u?"9999-12-31T23:59":"9999-12-31"},l),value:p.formatted,onChange:F},c))}process.env.NODE_ENV!=="production"&&(eu.propTypes={api:h.object.isRequired,cellMode:h.oneOf(["edit","view"]).isRequired,changeReason:h.oneOf(["debouncedSetEditCellValue","setEditCellValue"]),colDef:h.object.isRequired,field:h.string.isRequired,formattedValue:h.any,hasFocus:h.bool.isRequired,id:h.oneOfType([h.number,h.string]).isRequired,isEditable:h.bool,isProcessingProps:h.bool,isValidating:h.bool,onValueChange:h.func,row:h.any.isRequired,rowNode:h.object.isRequired,tabIndex:h.oneOf([-1,0]).isRequired,value:h.any});const tu=e=>i.jsx(eu,C({},e));function nu({value:e,columnType:t,rowId:n,field:r}){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: ${n}, field: "${r}".`].join(`
58
+ `))}const mC=(e,t,n,r)=>{if(!e)return"";const o=Pr(r.current.state,t);return nu({value:e,columnType:"date",rowId:o,field:n.field}),e.toLocaleDateString()},pC=(e,t,n,r)=>{if(!e)return"";const o=Pr(r.current.state,t);return nu({value:e,columnType:"dateTime",rowId:o,field:n.field}),e.toLocaleString()},bC=C({},Lt,{type:"date",sortComparator:gc,valueFormatter:mC,filterOperators:Jc(),renderEditCell:tu,pastedValueParser:e=>new Date(e)}),CC=C({},Lt,{type:"dateTime",sortComparator:gc,valueFormatter:pC,filterOperators:Jc(!0),renderEditCell:tu,pastedValueParser:e=>new Date(e)}),on=e=>e==null?null:Number(e),wC=e=>e==null||Number.isNaN(e)||e===""?null:t=>on(t)===on(e),xC=()=>[{value:"=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>on(t)===e.value,InputComponent:Ct,InputComponentProps:{type:"number"}},{value:"!=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>on(t)!==e.value,InputComponent:Ct,InputComponentProps:{type:"number"}},{value:">",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:on(t)>e.value,InputComponent:Ct,InputComponentProps:{type:"number"}},{value:">=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:on(t)>=e.value,InputComponent:Ct,InputComponentProps:{type:"number"}},{value:"<",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:on(t)<e.value,InputComponent:Ct,InputComponentProps:{type:"number"}},{value:"<=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:on(t)<=e.value,InputComponent:Ct,InputComponentProps:{type:"number"}},{value:"isEmpty",getApplyFilterFn:()=>e=>e==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:()=>e=>e!=null,requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFn:e=>!Array.isArray(e.value)||e.value.length===0?null:t=>t!=null&&e.value.includes(Number(t)),InputComponent:Hs,InputComponentProps:{type:"number"}}],yC=C({},Lt,{type:"number",align:"right",headerAlign:"right",sortComparator:hc,valueParser:e=>e===""?null:Number(e),valueFormatter:e=>mc(e)?e.toLocaleString():e||"",filterOperators:xC(),getApplyQuickFilterFn:wC});function zn(e){return(e==null?void 0:e.type)==="singleSelect"}function pn(e,t){if(e)return typeof e.valueOptions=="function"?e.valueOptions(C({field:e.field},t)):e.valueOptions}function Jr(e,t,n){if(t===void 0)return;const r=t.find(o=>{const s=n(o);return String(s)===String(e)});return n(r)}const vC=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange","initialOpen"],SC=["MenuProps"];function kC(e){return!!e.key}function ru(e){var O,D,V;const t=ue(),{id:n,value:r,field:o,row:s,colDef:l,hasFocus:a,error:c,onValueChange:u,initialOpen:d=t.editMode===zt.Cell}=e,f=me(e,vC),m=ke(),p=g.useRef(null),b=g.useRef(null),[x,w]=g.useState(d),v=(D=(((O=t.slotProps)==null?void 0:O.baseSelect)||{}).native)!=null?D:!1,F=((V=t.slotProps)==null?void 0:V.baseSelect)||{},{MenuProps:j}=F,y=me(F,SC);if(oe.unstable_useEnhancedEffect(()=>{var E;a&&((E=b.current)==null||E.focus())},[a]),!zn(l))return null;const A=pn(l,{id:n,row:s});if(!A)return null;const N=l.getOptionValue,M=l.getOptionLabel,P=async E=>{if(!zn(l)||!A)return;w(!1);const T=E.target,L=Jr(T.value,A,N);u&&await u(E,L),await m.current.setEditCellValue({id:n,field:o,value:L},E)},R=(E,T)=>{if(t.editMode===zt.Row){w(!1);return}if(T==="backdropClick"||E.key==="Escape"){const L=m.current.getCellParams(n,o);m.current.publishEvent("cellEditStop",C({},L,{reason:E.key==="Escape"?Ft.escapeKeyDown:Ft.cellFocusOut}))}},_=E=>{kC(E)&&E.key==="Enter"||w(!0)};return!A||!l?null:i.jsx(t.slots.baseSelect,C({ref:p,inputRef:b,value:r,onChange:P,open:x,onOpen:_,MenuProps:C({onClose:R},j),error:c,native:v,fullWidth:!0},f,y,{children:A.map(E=>{var L;const T=N(E);return re.createElement(t.slots.baseSelectOption,C({},((L=t.slotProps)==null?void 0:L.baseSelectOption)||{},{native:v,key:T,value:T}),M(E))})}))}process.env.NODE_ENV!=="production"&&(ru.propTypes={api:h.object.isRequired,cellMode:h.oneOf(["edit","view"]).isRequired,changeReason:h.oneOf(["debouncedSetEditCellValue","setEditCellValue"]),colDef:h.object.isRequired,field:h.string.isRequired,formattedValue:h.any,hasFocus:h.bool.isRequired,id:h.oneOfType([h.number,h.string]).isRequired,initialOpen:h.bool,isEditable:h.bool,isProcessingProps:h.bool,isValidating:h.bool,onValueChange:h.func,row:h.any.isRequired,rowNode:h.object.isRequired,tabIndex:h.oneOf([-1,0]).isRequired,value:h.any});const IC=e=>i.jsx(ru,C({},e)),MC=["item","applyValue","type","apiRef","focusElementRef","placeholder","tabIndex","label","variant","isFilterActive","clearButton","InputLabelProps"],EC=({column:e,OptionComponent:t,getOptionLabel:n,getOptionValue:r,isSelectNative:o,baseSelectOptionProps:s})=>["",...pn(e)||[]].map(a=>{const c=r(a);let u=n(a);return u===""&&(u=" "),re.createElement(t,C({},s,{native:o,key:c,value:c}),u)}),PC=ge.styled("div")({display:"flex",alignItems:"flex-end",width:"100%","& button":{margin:"auto 0px 5px 5px"}});function rs(e){var N,M,P,R,_,O,D;const{item:t,applyValue:n,type:r,apiRef:o,focusElementRef:s,placeholder:l,tabIndex:a,label:c,variant:u="standard",clearButton:d}=e,f=me(e,MC),m=(N=t.value)!=null?N:"",p=oe.unstable_useId(),b=oe.unstable_useId(),x=ue(),w=(R=(P=(M=x.slotProps)==null?void 0:M.baseSelect)==null?void 0:P.native)!=null?R:!1;let S=null;if(t.field){const V=o.current.getColumn(t.field);zn(V)&&(S=V)}const v=S==null?void 0:S.getOptionValue,F=S==null?void 0:S.getOptionLabel,j=g.useMemo(()=>pn(S),[S]),y=g.useCallback(V=>{let E=V.target.value;E=Jr(E,j,v),n(C({},t,{value:E}))},[j,v,n,t]);if(!zn(S))return null;const A=c!=null?c:o.current.getLocaleText("filterPanelInputLabel");return i.jsxs(PC,{children:[i.jsxs(x.slots.baseFormControl,{fullWidth:!0,children:[i.jsx(x.slots.baseInputLabel,C({},(_=x.slotProps)==null?void 0:_.baseInputLabel,{id:b,htmlFor:p,shrink:!0,variant:u,children:A})),i.jsx(x.slots.baseSelect,C({id:p,label:A,labelId:b,value:m,onChange:y,variant:u,type:r||"text",inputProps:{tabIndex:a,ref:s,placeholder:l!=null?l:o.current.getLocaleText("filterPanelInputPlaceholder")},native:w,notched:u==="outlined"?!0:void 0},f,(O=x.slotProps)==null?void 0:O.baseSelect,{children:EC({column:S,OptionComponent:x.slots.baseSelectOption,getOptionLabel:F,getOptionValue:v,isSelectNative:w,baseSelectOptionProps:(D=x.slotProps)==null?void 0:D.baseSelectOption})}))]}),d]})}process.env.NODE_ENV!=="production"&&(rs.propTypes={apiRef:h.shape({current:h.object.isRequired}).isRequired,applyValue:h.func.isRequired,clearButton:h.node,focusElementRef:h.oneOfType([h.func,h.object]),isFilterActive:h.bool,item:h.shape({field:h.string.isRequired,id:h.oneOfType([h.number,h.string]),operator:h.string.isRequired,value:h.any}).isRequired});const TC=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant"],FC=["key"],jC=sa.createFilterOptions();function ou(e){const{item:t,applyValue:n,apiRef:r,focusElementRef:o,color:s,error:l,helperText:a,size:c,variant:u="standard"}=e,d=me(e,TC),f={color:s,error:l,helperText:a,size:c,variant:u},m=oe.unstable_useId(),p=ue();let b=null;if(t.field){const y=r.current.getColumn(t.field);zn(y)&&(b=y)}const x=b==null?void 0:b.getOptionValue,w=b==null?void 0:b.getOptionLabel,S=g.useCallback((y,A)=>x(y)===x(A),[x]),v=g.useMemo(()=>pn(b)||[],[b]),F=g.useMemo(()=>Array.isArray(t.value)?t.value.reduce((y,A)=>{const N=v.find(M=>x(M)===A);return N!=null&&y.push(N),y},[]):[],[x,t.value,v]),j=g.useCallback((y,A)=>{n(C({},t,{value:A.map(x)}))},[n,t,x]);return i.jsx(ua.default,C({multiple:!0,options:v,isOptionEqualToValue:S,filterOptions:jC,id:m,value:F,onChange:j,getOptionLabel:w,renderTags:(y,A)=>y.map((N,M)=>{const P=A({index:M}),{key:R}=P,_=me(P,FC);return i.jsx(p.slots.baseChip,C({variant:"outlined",size:"small",label:w(N)},_),R)}),renderInput:y=>{var A;return i.jsx(p.slots.baseTextField,C({},y,{label:r.current.getLocaleText("filterPanelInputLabel"),placeholder:r.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:C({},y.InputLabelProps,{shrink:!0}),inputRef:o,type:"singleSelect"},f,(A=p.slotProps)==null?void 0:A.baseTextField))}},d))}process.env.NODE_ENV!=="production"&&(ou.propTypes={apiRef:h.shape({current:h.object.isRequired}).isRequired,applyValue:h.func.isRequired,focusElementRef:h.oneOfType([h.func,h.object]),item:h.shape({field:h.string.isRequired,id:h.oneOfType([h.number,h.string]),operator:h.string.isRequired,value:h.any}).isRequired,type:h.oneOf(["singleSelect"])});const Mn=e=>e==null||!Ds(e)?e:e.value,OC=()=>[{value:"is",getApplyFilterFn:e=>e.value==null||e.value===""?null:t=>Mn(t)===Mn(e.value),InputComponent:rs},{value:"not",getApplyFilterFn:e=>e.value==null||e.value===""?null:t=>Mn(t)!==Mn(e.value),InputComponent:rs},{value:"isAnyOf",getApplyFilterFn:e=>{if(!Array.isArray(e.value)||e.value.length===0)return null;const t=e.value.map(Mn);return n=>t.includes(Mn(n))},InputComponent:ou}],RC=e=>typeof e[0]=="object",LC=e=>Ds(e)?e.value:e,DC=e=>Ds(e)?e.label:String(e),HC=C({},Lt,{type:"singleSelect",getOptionLabel:DC,getOptionValue:LC,valueFormatter(e,t,n,r){const o=Pr(r.current.state,t);if(!zn(n))return"";const s=pn(n,{id:o,row:t});if(e==null)return"";if(!s)return e;if(!RC(s))return n.getOptionLabel(e);const l=s.find(a=>n.getOptionValue(a)===e);return l?n.getOptionLabel(l):""},renderEditCell:IC,filterOperators:OC(),pastedValueParser:(e,t,n)=>{const r=n,o=pn(r)||[],s=r.getOptionValue;if(o.find(a=>s(a)===e))return e}}),_C="string",AC=()=>({string:Lt,number:yC,date:bC,dateTime:CC,boolean:Dc,singleSelect:HC,[ho]:vb,custom:Lt}),Ws=e=>e.headerFiltering,VC=be(Ws,e=>{var t;return(t=e==null?void 0:e.enabled)!=null?t:!1}),NC=be(Ws,e=>e.editing),$C=be(Ws,e=>e.menuOpen),wo=e=>e.columnGrouping,su=Le(wo,e=>{var t;return(t=e==null?void 0:e.unwrappedGroupingModel)!=null?t:{}}),lu=Le(wo,e=>{var t;return(t=e==null?void 0:e.lookup)!=null?t:{}}),zC=Le(wo,e=>{var t;return(t=e==null?void 0:e.headerStructure)!=null?t:[]}),Tr=be(wo,e=>{var t;return(t=e==null?void 0:e.maxDepth)!=null?t:0}),iu=["maxWidth","minWidth","width","flex"],No=AC();function GC({initialFreeSpace:e,totalFlexUnits:t,flexColumns:n}){const r=new Set(n.map(l=>l.field)),o={all:{},frozenFields:[],freeze:l=>{const a=o.all[l];a&&a.frozen!==!0&&(o.all[l].frozen=!0,o.frozenFields.push(l))}};function s(){if(o.frozenFields.length===r.size)return;const l={min:{},max:{}};let a=e,c=t,u=0;o.frozenFields.forEach(d=>{a-=o.all[d].computedWidth,c-=o.all[d].flex});for(let d=0;d<n.length;d+=1){const f=n[d];if(o.all[f.field]&&o.all[f.field].frozen===!0)continue;let p=a/c*f.flex;p<f.minWidth?(u+=f.minWidth-p,p=f.minWidth,l.min[f.field]=!0):p>f.maxWidth&&(u+=f.maxWidth-p,p=f.maxWidth,l.max[f.field]=!0),o.all[f.field]={frozen:!1,computedWidth:p,flex:f.flex}}u<0?Object.keys(l.max).forEach(d=>{o.freeze(d)}):u>0?Object.keys(l.min).forEach(d=>{o.freeze(d)}):n.forEach(({field:d})=>{o.freeze(d)}),s()}return s(),o.all}const os=(e,t)=>{const n={};let r=0,o=0;const s=[];e.orderedFields.forEach(c=>{let u=e.lookup[c],d=0,f=!1;e.columnVisibilityModel[c]!==!1&&(u.flex&&u.flex>0?(r+=u.flex,f=!0):d=xt(u.width||Lt.width,u.minWidth||Lt.minWidth,u.maxWidth||Lt.maxWidth),o+=d),u.computedWidth!==d&&(u=C({},u,{computedWidth:d})),f&&s.push(u),n[c]=u});const l=t===void 0?0:t.viewportOuterSize.width-(t.hasScrollY?t.scrollbarSize:0),a=Math.max(l-o,0);if(r>0&&l>0){const c=GC({initialFreeSpace:a,totalFlexUnits:r,flexColumns:s});Object.keys(c).forEach(u=>{n[u].computedWidth=c[u].computedWidth})}return C({},e,{lookup:n})},BC=(e,t)=>{if(!t)return e;const{orderedFields:n=[],dimensions:r={}}=t,o=Object.keys(r);if(o.length===0&&n.length===0)return e;const s={},l=[];for(let d=0;d<n.length;d+=1){const f=n[d];e.lookup[f]&&(s[f]=!0,l.push(f))}const a=l.length===0?e.orderedFields:[...l,...e.orderedFields.filter(d=>!s[d])],c=C({},e.lookup);for(let d=0;d<o.length;d+=1){const f=o[d],m=C({},c[f],{hasBeenResized:!0});Object.entries(r[f]).forEach(([p,b])=>{m[p]=b===-1?1/0:b}),c[f]=m}return C({},e,{orderedFields:a,lookup:c})};function ui(e){let t=No[_C];return e&&No[e]&&(t=No[e]),t}const jn=({apiRef:e,columnsToUpsert:t,initialState:n,columnVisibilityModel:r=St(e),keepOnlyColumnsToUpsert:o=!1})=>{var d,f,m;const s=!e.current.state.columns;let l;if(s)l={orderedFields:[],lookup:{},columnVisibilityModel:r};else{const p=Nt(e.current.state);l={orderedFields:o?[]:[...p.orderedFields],lookup:C({},p.lookup),columnVisibilityModel:r}}let a={};o&&!s&&(a=Object.keys(l.lookup).reduce((p,b)=>C({},p,{[b]:!1}),{})),t.forEach(p=>{const{field:b}=p;a[b]=!0;let x=l.lookup[b];x==null?(x=C({},ui(p.type),{field:b,hasBeenResized:!1}),l.orderedFields.push(b)):o&&l.orderedFields.push(b),x&&x.type!==p.type&&(x=C({},ui(p.type),{field:b}));let w=x.hasBeenResized;iu.forEach(S=>{p[S]!==void 0&&(w=!0,p[S]===-1&&(p[S]=1/0))}),l.lookup[b]=bh.default(x,C({},p,{hasBeenResized:w}))}),o&&!s&&Object.keys(l.lookup).forEach(p=>{a[p]||delete l.lookup[p]});const c=e.current.unstable_applyPipeProcessors("hydrateColumns",l),u=BC(c,n);return os(u,(m=(f=(d=e.current).getRootDimensions)==null?void 0:f.call(d))!=null?m:void 0)};function WC({firstColumnToRender:e,apiRef:t,firstRowToRender:n,lastRowToRender:r,visibleRows:o}){let s=e,l=!1;for(;!l;){l=!0;for(let a=n;a<r;a+=1)if(o[a]){const u=o[a].id,d=t.current.unstable_getCellColSpanInfo(u,s);if(d&&d.spannedByColSpan&&d.leftVisibleCellIndex<s){s=d.leftVisibleCellIndex,l=!1;break}}}return s}function xo(e,t){var c,u;if(t.unstable_listView)return 0;const n=Un(e),r=Tr(e),o=VC(e),s=Math.floor(t.columnHeaderHeight*n),l=Math.floor(((c=t.columnGroupHeaderHeight)!=null?c:t.columnHeaderHeight)*n),a=o?Math.floor(((u=t.headerFilterHeight)!=null?u:t.columnHeaderHeight)*n):0;return s+l*r+a}const er=e=>e.rowsMeta,eo=1,au=1.5,qC=e=>{const{scrollDirection:t,classes:n}=e,r={root:["scrollArea",`scrollArea--${t}`]};return oe.unstable_composeClasses(r,Te,n)},UC=Ge.styled("div",{name:"MuiDataGrid",slot:"ScrollArea",overridesResolver:(e,t)=>[{[`&.${I["scrollArea--left"]}`]:t["scrollArea--left"]},{[`&.${I["scrollArea--right"]}`]:t["scrollArea--right"]},{[`&.${I["scrollArea--up"]}`]:t["scrollArea--up"]},{[`&.${I["scrollArea--down"]}`]:t["scrollArea--down"]},t.scrollArea]})(()=>({position:"absolute",zIndex:101,[`&.${I["scrollArea--left"]}`]:{top:0,left:0,width:20,bottom:0},[`&.${I["scrollArea--right"]}`]:{top:0,right:0,width:20,bottom:0},[`&.${I["scrollArea--up"]}`]:{top:0,left:0,right:0,height:20},[`&.${I["scrollArea--down"]}`]:{bottom:0,left:0,right:0,height:20}})),KC=Sr(at,(e,t)=>t==="left"?e.leftPinnedWidth:t==="right"?e.rightPinnedWidth+(e.hasScrollX?e.scrollbarSize:0):0);function XC(e){const t=ke(),[n,r]=g.useState("none");return le(t,"columnHeaderDragStart",()=>r("horizontal")),le(t,"columnHeaderDragEnd",()=>r("none")),le(t,"rowDragStart",()=>r("vertical")),le(t,"rowDragEnd",()=>r("none")),n==="none"?null:n==="horizontal"?i.jsx(YC,C({},e)):i.jsx(ZC,C({},e))}function YC(e){const{scrollDirection:t,scrollPosition:n}=e,r=g.useRef(null),o=ke(),s=wn.default(),l=te(o,Un),a=te(o,uo),c=br(o,KC,t),u=()=>{const x=at(o.current.state);if(t==="left")return n.current.left>0;if(t==="right"){const w=a-x.viewportInnerSize.width;return n.current.left<w}return!1},d=ue(),f=xo(o,d),m=Math.floor(d.columnHeaderHeight*l),p=C({height:m,top:f-m},t==="left"?{left:c}:{},t==="right"?{right:c}:{}),b=oe.unstable_useEventCallback(x=>{let w;if(x.preventDefault(),t==="left")w=x.clientX-r.current.getBoundingClientRect().right;else if(t==="right")w=Math.max(1,x.clientX-r.current.getBoundingClientRect().left);else throw new Error("MUI X: Wrong drag direction");w=(w-eo)*au+eo,s.start(0,()=>{o.current.scroll({left:n.current.left+w,top:n.current.top})})});return i.jsx(cu,C({},e,{ref:r,getCanScrollMore:u,style:p,handleDragOver:b}))}function ZC(e){const{scrollDirection:t,scrollPosition:n}=e,r=g.useRef(null),o=ke(),s=wn.default(),l=te(o,er),a=()=>{const m=at(o.current.state);if(t==="up")return n.current.top>0;if(t==="down"){const b=(l.currentPageTotalHeight||0)-m.viewportInnerSize.height-m.scrollbarSize;return n.current.top<b}return!1},c=ue(),u=xo(o,c),d={top:t==="up"?u:void 0,bottom:t==="down"?0:void 0},f=oe.unstable_useEventCallback(m=>{let p;if(m.preventDefault(),t==="up")p=m.clientY-r.current.getBoundingClientRect().bottom;else if(t==="down")p=Math.max(1,m.clientY-r.current.getBoundingClientRect().top);else throw new Error("MUI X: Wrong drag direction");p=(p-eo)*au+eo,s.start(0,()=>{o.current.scroll({left:n.current.left,top:n.current.top+p})})});return i.jsx(cu,C({},e,{ref:r,getCanScrollMore:a,style:d,handleDragOver:f}))}const cu=je(function(t,n){const{scrollDirection:r,getCanScrollMore:o,style:s,handleDragOver:l}=t,a=ke(),[c,u]=g.useState(o),d=ue(),f=C({},d,{scrollDirection:r}),m=qC(f);return le(a,"scrollPositionChange",()=>{u(o)}),c?i.jsx(UC,{ref:n,className:m.root,ownerState:f,onDragOver:l,style:s}):null}),Nr=Zt(XC);var lr={},$o={exports:{}},zo={exports:{}},di;function QC(){return di||(di=1,(function(e){function t(n){"@babel/helpers - typeof";return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(zo)),zo.exports}var fi;function JC(){return fi||(fi=1,(function(e){var t=QC().default;function n(r,o){if(typeof WeakMap=="function")var s=new WeakMap,l=new WeakMap;return(e.exports=n=function(c,u){if(!u&&c&&c.__esModule)return c;var d,f,m={__proto__:null,default:c};if(c===null||t(c)!="object"&&typeof c!="function")return m;if(d=u?l:s){if(d.has(c))return d.get(c);d.set(c,m)}for(var p in c)p!=="default"&&{}.hasOwnProperty.call(c,p)&&((f=(d=Object.defineProperty)&&Object.getOwnPropertyDescriptor(c,p))&&(f.get||f.set)?d(m,p,f):m[p]=c[p]);return m},e.exports.__esModule=!0,e.exports.default=e.exports)(r,o)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})($o)),$o.exports}var hi;function ew(){if(hi)return lr;hi=1;var e=JC().default;Object.defineProperty(lr,"__esModule",{value:!0}),lr.default=void 0;var t=e(g.default);return lr.default=parseInt(t.version,10),lr}var tw=ew();const nw=Ya(tw),qs=g.createContext(void 0);process.env.NODE_ENV!=="production"&&(qs.displayName="GridPrivateApiContext");function Et(){const e=g.useContext(qs);if(e===void 0)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(`
59
+ `));return e}const an=(e,t)=>Er(e),Us=(e,t)=>te(e,Er),rw=typeof navigator!="undefined"?navigator.userAgent.toLowerCase():"empty",ow=rw.includes("firefox"),yo=e=>e.virtualization;be(yo,e=>e.enabled);const uu=be(yo,e=>e.enabledForColumns),sw=be(yo,e=>e.enabledForRows),Fr=be(yo,e=>e.renderContext),lw=Le(e=>e.virtualization.renderContext.firstColumnIndex,e=>e.virtualization.renderContext.lastColumnIndex,(e,t)=>({firstColumnIndex:e,lastColumnIndex:t})),ss={firstRowIndex:0,lastRowIndex:0,firstColumnIndex:0,lastColumnIndex:0},iw=(e,t)=>{const{disableVirtualization:n,autoHeight:r}=t;return C({},e,{virtualization:{enabled:!n,enabledForColumns:!n,enabledForRows:!n&&!r,renderContext:ss}})};function aw(e,t){const n=s=>{e.current.setState(l=>C({},l,{virtualization:C({},l.virtualization,{enabled:s,enabledForColumns:s,enabledForRows:s&&!t.autoHeight})}))};Se(e,{unstable_setVirtualization:n,unstable_setColumnVirtualization:s=>{e.current.setState(l=>C({},l,{virtualization:C({},l.virtualization,{enabledForColumns:s})}))}},"public"),g.useEffect(()=>{n(!t.disableVirtualization)},[t.disableVirtualization,t.autoHeight])}const Ks=e=>e.rowSpanning,du=be(Ks,e=>e.hiddenCells),cw=be(Ks,e=>e.spannedCells),uw=be(Ks,e=>e.hiddenCellOriginMap),Gn=e=>e.listViewColumn,dw=h1(gt,Fr,Er,Ke,vt,(e,t,n,r,o)=>{if(!e)return!1;const s=o[e.id];if(!s)return!1;const l=n.rowToIndexMap.get(s),a=r.slice(t.firstColumnIndex,t.lastColumnIndex).findIndex(u=>u.field===e.field);return!(l!==void 0&&a!==-1&&l>=t.firstRowIndex&&l<=t.lastRowIndex)}),fu=Le(dw,Ke,Er,vt,gt,(e,t,n,r,o)=>{if(!e)return null;const s=r[o.id];if(!s)return null;const l=n.rowToIndexMap.get(s);if(l===void 0)return null;const a=t.findIndex(c=>c.field===o.field);return a===-1?null:C({},o,{rowIndex:l,columnIndex:a})});function Dn(e,t){return Math.round(e*10**t)/10**t}const to=typeof window!="undefined"&&/jsdom|HappyDOM/.test(window.navigator.userAgent),Go=50;var et=(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})(et||{});const gi={top:0,left:0},fw=Object.freeze(new Map),hw=(e,t,n,r,o)=>({direction:et.NONE,buffer:gu(e,et.NONE,t,n,r,o)}),gw=()=>{var Z,se;const e=Et(),t=ue(),{unstable_listView:n}=t,r=te(e,()=>n?[Gn(e.current.state)]:Ke(e)),o=te(e,sw)&&!to,s=te(e,uu)&&!to,l=te(e,Kn),a=Yn(e),c=n?Zr:a,u=l.bottom.length>0,[d,f]=g.useState(fw),m=Gt.useRtl(),p=te(e,ln),b=Us(e),x=e.current.mainElementRef,w=e.current.virtualScrollerRef,S=e.current.virtualScrollbarVerticalRef,v=e.current.virtualScrollbarHorizontalRef,F=te(e,lb),j=g.useRef(!1),y=te(e,Rs),A=te(e,y1),N=te(e,uo),M=te(e,mw),P=te(e,cc),R=te(e,ac),_=g.useRef(null),O=g.useCallback(ee=>{if(x.current=ee,!ee)return;const ae=ee.getBoundingClientRect();let fe={width:Dn(ae.width,1),height:Dn(ae.height,1)};if((!_.current||fe.width!==_.current.width&&fe.height!==_.current.height)&&(_.current=fe,e.current.publishEvent("resize",fe)),typeof ResizeObserver=="undefined")return;const xe=new ResizeObserver(pe=>{const Me=pe[0];if(!Me)return;const Re={width:Dn(Me.contentRect.width,1),height:Dn(Me.contentRect.height,1)};Re.width===fe.width&&Re.height===fe.height||(e.current.publishEvent("resize",Re),fe=Re)});if(xe.observe(ee),nw>=19)return()=>{x.current=null,xe.disconnect()}},[e,x]),D=g.useRef((se=(Z=t.initialState)==null?void 0:Z.scroll)!=null?se:gi),V=g.useRef(!1),E=g.useRef(gi),T=g.useRef(ss),L=te(e,Fr),$=te(e,fu),G=wn.default(),k=g.useRef(void 0),H=Bt.default(()=>hw(m,t.rowBufferPx,t.columnBufferPx,y*15,Go*6)).current,z=g.useCallback(ee=>{if(Ci(ee,e.current.state.virtualization.renderContext))return;const ae=ee.firstRowIndex!==T.current.firstRowIndex||ee.lastRowIndex!==T.current.lastRowIndex;e.current.setState(xe=>C({},xe,{virtualization:C({},xe.virtualization,{renderContext:ee})})),at(e.current.state).isReady&&ae&&(T.current=ee,e.current.publishEvent("renderedRowsIntervalChange",ee)),E.current=D.current},[e]),q=oe.unstable_useEventCallback(()=>{const ee=w.current;if(!ee)return;const ae=at(e.current.state),fe=Math.ceil(ae.minimumSize.height-ae.viewportOuterSize.height),xe=Math.ceil(ae.minimumSize.width-ae.viewportInnerSize.width),pe={top:xt(ee.scrollTop,0,fe),left:m?xt(ee.scrollLeft,-xe,0):xt(ee.scrollLeft,0,xe)},Me=pe.left-D.current.left,Re=pe.top-D.current.top,Je=Me!==0||Re!==0;D.current=pe;const De=Je?Cw(Me,Re):et.NONE,Oe=Math.abs(D.current.top-E.current.top),Ye=Math.abs(D.current.left-E.current.left),qe=Oe>=y||Ye>=Go,we=H.direction!==De;if(!(qe||we))return L;if(we)switch(De){case et.NONE:case et.LEFT:case et.RIGHT:k.current=void 0;break;default:k.current=L;break}H.direction=De,H.buffer=gu(m,De,t.rowBufferPx,t.columnBufferPx,y*15,Go*6);const ve=mi(e,t,o,s),ce=pi(ve,D.current,H);return Ci(ce,L)||(xh.flushSync(()=>{z(ce)}),G.start(1e3,q)),ce}),U=()=>{if(!at(e.current.state).isReady&&(o||s))return;const ee=mi(e,t,o,s),ae=pi(ee,D.current,H);k.current=void 0,z(ae)},Q=oe.unstable_useEventCallback(()=>{if(V.current){V.current=!1;return}const ee=q();e.current.publishEvent("scrollPositionChange",{top:D.current.top,left:D.current.left,renderContext:ee})}),X=oe.unstable_useEventCallback(ee=>{e.current.publishEvent("virtualScrollerWheel",{},ee)}),W=oe.unstable_useEventCallback(ee=>{e.current.publishEvent("virtualScrollerTouchMove",{},ee)}),K=(ee={})=>{var ve,ce;if(!ee.rows&&!b.range)return[];const ae=nt(e);let fe=L;ee.renderContext&&(fe=ee.renderContext,fe.firstColumnIndex=L.firstColumnIndex,fe.lastColumnIndex=L.lastColumnIndex);const xe=!u&&ee.position===void 0||u&&ee.position==="bottom",pe=ee.position!==void 0;let Me;switch(ee.position){case"top":Me=0;break;case"bottom":Me=l.top.length+b.rows.length;break;case void 0:Me=l.top.length;break}const Re=(ve=ee.rows)!=null?ve:b.rows,Je=fe.firstRowIndex,De=Math.min(fe.lastRowIndex,Re.length),Oe=ee.rows?Ql(0,ee.rows.length):Ql(Je,De);let Ye=-1;!pe&&$&&($.rowIndex<Je&&(Oe.unshift($.rowIndex),Ye=$.rowIndex),$.rowIndex>De&&(Oe.push($.rowIndex),Ye=$.rowIndex));const qe=[],we=(ce=t.slotProps)==null?void 0:ce.row,He=dn(e);return Oe.forEach(ye=>{var ul,dl,fl;const{id:Ce,model:Ze}=Re[ye];if(!ae[Ce])return;const ot=(((ul=b==null?void 0:b.range)==null?void 0:ul.firstRowIndex)||0)+Me+ye;if(F){const Mo=c.left.length,hl=r.length-c.right.length;e.current.calculateColSpan({rowId:Ce,minFirstColumn:Mo,maxLastColumn:hl,columns:r}),c.left.length>0&&e.current.calculateColSpan({rowId:Ce,minFirstColumn:0,maxLastColumn:c.left.length,columns:r}),c.right.length>0&&e.current.calculateColSpan({rowId:Ce,minFirstColumn:r.length-c.right.length,maxLastColumn:r.length,columns:r})}const Qe=e.current.rowHasAutoHeight(Ce)?"auto":e.current.unstable_getRowHeight(Ce);let Pt;p[Ce]==null?Pt=!1:Pt=e.current.isRowSelectable(Ce);let Tt=!1;ee.position===void 0&&(Tt=ye===0);let Dt=!1;const Ht=ye===Re.length-1;if(xe)if(pe)Dt=Ht;else{const Mo=b.rows.length-1;ye===Mo&&(Dt=!0)}let Fe=fe;k.current&&ye>=k.current.firstRowIndex&&ye<k.current.lastRowIndex&&(Fe=k.current);const Ve=ye===Ye,dt=($==null?void 0:$.rowIndex)===ot,Wt=hu(He,Fe,c.left.length),ko=Ht&&ee.position==="top",Io=Fe.firstColumnIndex,Or=Fe.lastColumnIndex;if(qe.push(i.jsx(t.slots.row,C({row:Ze,rowId:Ce,index:ot,selected:Pt,offsetLeft:Wt,columnsTotalWidth:N,rowHeight:Qe,pinnedColumns:c,visibleColumns:r,firstColumnIndex:Io,lastColumnIndex:Or,focusedColumnIndex:dt?$.columnIndex:void 0,isFirstVisible:Tt,isLastVisible:Dt,isNotVisible:Ve,showBottomBorder:ko,scrollbarWidth:P,gridHasFiller:R},we),Ce)),Ve)return;const nr=d.get(Ce);nr&&qe.push(nr),ee.position===void 0&&Ht&&qe.push((fl=(dl=e.current).getInfiniteLoadingTriggerElement)==null?void 0:fl.call(dl,{lastRowId:Ce}))}),qe},Y=g.useMemo(()=>({overflowX:!M||n?"hidden":void 0,overflowY:t.autoHeight?"hidden":void 0}),[M,t.autoHeight,n]),J=g.useMemo(()=>{const ee={width:M?N:"auto",flexBasis:A,flexShrink:0};return ee.flexBasis===0&&(ee.flexBasis=Tc),ee},[N,A,M]),ne=g.useCallback(ee=>{ee&&e.current.publishEvent("virtualScrollerContentSizeChange",{columnsTotalWidth:N,contentHeight:A})},[e,N,A]);return oe.unstable_useEnhancedEffect(()=>{var ee,ae;j.current&&((ae=(ee=e.current).updateRenderContext)==null||ae.call(ee))},[e,s,o]),oe.unstable_useEnhancedEffect(()=>{n&&(w.current.scrollLeft=0)},[n,w]),nC(L!==ss,()=>{var ee;if(e.current.publishEvent("scrollPositionChange",{top:D.current.top,left:D.current.left,renderContext:L}),j.current=!0,(ee=t.initialState)!=null&&ee.scroll&&w.current){const ae=w.current,{top:fe,left:xe}=t.initialState.scroll,pe={top:!(fe>0),left:!(xe>0)};if(!pe.left&&N&&(ae.scrollLeft=xe,V.current=!0,pe.left=!0),!pe.top&&A&&(ae.scrollTop=fe,V.current=!0,pe.top=!0),!pe.top||!pe.left){const Me=e.current.subscribeEvent("virtualScrollerContentSizeChange",Re=>{!pe.left&&Re.columnsTotalWidth&&(ae.scrollLeft=xe,V.current=!0,pe.left=!0),!pe.top&&Re.contentHeight&&(ae.scrollTop=fe,V.current=!0,pe.top=!0),pe.left&&pe.top&&Me()});return Me}}}),e.current.register("private",{updateRenderContext:U}),Ae(e,"sortedRowsSet",U),Ae(e,"paginationModelChange",U),Ae(e,"columnsChange",U),{renderContext:L,setPanels:f,getRows:K,getContainerProps:()=>({ref:O}),getScrollerProps:()=>({ref:w,onScroll:Q,onWheel:X,onTouchMove:W,style:Y,role:"presentation",tabIndex:ow?-1:void 0}),getContentProps:()=>({style:J,role:"presentation",ref:ne}),getRenderZoneProps:()=>({role:"rowgroup"}),getScrollbarVerticalProps:()=>({ref:S,scrollPosition:D}),getScrollbarHorizontalProps:()=>({ref:v,scrollPosition:D}),getScrollAreaProps:()=>({scrollPosition:D})}};function mw(e){return e.dimensions.viewportOuterSize.width>0&&e.dimensions.columnsTotalWidth>e.dimensions.viewportOuterSize.width}function mi(e,t,n,r){var d,f;const o=at(e.current.state),s=an(e),l=t.unstable_listView?[Gn(e.current.state)]:Ke(e),a=uw(e),c=e.current.state.rows.dataRowIds.at(-1),u=l.at(-1);return{enabledForRows:n,enabledForColumns:r,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:c!==void 0?e.current.unstable_getRowHeight(c):0,lastColumnWidth:(d=u==null?void 0:u.computedWidth)!=null?d:0,rowsMeta:er(e.current.state),columnPositions:dn(e),rows:s.rows,range:s.range,pinnedColumns:Yn(e),visibleColumns:l,hiddenCellsOriginMap:a,listView:(f=t.unstable_listView)!=null?f:!1,virtualizeColumnsWithAutoRowHeight:t.virtualizeColumnsWithAutoRowHeight}}function pi(e,t,n){const r={firstRowIndex:0,lastRowIndex:e.rows.length,firstColumnIndex:0,lastColumnIndex:e.visibleColumns.length},{top:o,left:s}=t,l=Math.abs(s)+e.leftPinnedWidth;if(e.enabledForRows){let c=Math.min(bi(e,o,{atStart:!0,lastPosition:e.rowsMeta.positions[e.rowsMeta.positions.length-1]+e.lastRowHeight}),e.rowsMeta.positions.length-1);const u=e.hiddenCellsOriginMap[c];if(u){const f=Math.min(...Object.values(u));c=Math.min(c,f)}const d=e.autoHeight?c+e.rows.length:bi(e,o+e.viewportInnerHeight);r.firstRowIndex=c,r.lastRowIndex=d}if(e.listView)return C({},r,{lastColumnIndex:1});if(e.enabledForColumns){let c=0,u=e.columnPositions.length,d=!1;const[f,m]=ls({firstIndex:r.firstRowIndex,lastIndex:r.lastRowIndex,minFirstIndex:0,maxLastIndex:e.rows.length,bufferBefore:n.buffer.rowBefore,bufferAfter:n.buffer.rowAfter,positions:e.rowsMeta.positions,lastSize:e.lastRowHeight});if(!e.virtualizeColumnsWithAutoRowHeight)for(let p=f;p<m&&!d;p+=1){const b=e.rows[p];d=e.apiRef.current.rowHasAutoHeight(b.id)}(!d||e.virtualizeColumnsWithAutoRowHeight)&&(c=cn(l,e.columnPositions,{atStart:!0,lastPosition:e.columnsTotalWidth}),u=cn(l+e.viewportInnerWidth,e.columnPositions)),r.firstColumnIndex=c,r.lastColumnIndex=u}return pw(e,r,n)}function bi(e,t,n){var l,a;const r=e.apiRef.current.getLastMeasuredRowIndex();let o=r===1/0;(l=e.range)!=null&&l.lastRowIndex&&!o&&(o=r>=e.range.lastRowIndex);const s=xt(r-(((a=e.range)==null?void 0:a.firstRowIndex)||0),0,e.rowsMeta.positions.length);return o||e.rowsMeta.positions[s]>=t?cn(t,e.rowsMeta.positions,n):bw(t,e.rowsMeta.positions,s,n)}function pw(e,t,n){const[r,o]=ls({firstIndex:t.firstRowIndex,lastIndex:t.lastRowIndex,minFirstIndex:0,maxLastIndex:e.rows.length,bufferBefore:n.buffer.rowBefore,bufferAfter:n.buffer.rowAfter,positions:e.rowsMeta.positions,lastSize:e.lastRowHeight}),[s,l]=ls({firstIndex:t.firstColumnIndex,lastIndex:t.lastColumnIndex,minFirstIndex:e.pinnedColumns.left.length,maxLastIndex:e.visibleColumns.length-e.pinnedColumns.right.length,bufferBefore:n.buffer.columnBefore,bufferAfter:n.buffer.columnAfter,positions:e.columnPositions,lastSize:e.lastColumnWidth}),a=WC({firstColumnToRender:s,apiRef:e.apiRef,firstRowToRender:r,lastRowToRender:o,visibleRows:e.rows});return{firstRowIndex:r,lastRowIndex:o,firstColumnIndex:a,lastColumnIndex:l}}function cn(e,t,n=void 0,r=0,o=t.length){if(t.length<=0)return-1;if(r>=o)return r;const s=r+Math.floor((o-r)/2),l=t[s];let a;if(n!=null&&n.atStart){const c=(s===t.length-1?n.lastPosition:t[s+1])-l;a=e-c<l}else a=e<=l;return a?cn(e,t,n,r,s):cn(e,t,n,s+1,o)}function bw(e,t,n,r=void 0){let o=1;for(;n<t.length&&Math.abs(t[n])<e;)n+=o,o*=2;return cn(e,t,r,Math.floor(n/2),Math.min(n,t.length))}function ls({firstIndex:e,lastIndex:t,bufferBefore:n,bufferAfter:r,minFirstIndex:o,maxLastIndex:s,positions:l,lastSize:a}){const c=l[e]-n,u=l[t]+r,d=cn(c,l,{atStart:!0,lastPosition:l[l.length-1]+a}),f=cn(u,l);return[xt(d,o,s),xt(f,o,s)]}function Ci(e,t){return e===t?!0:e.firstRowIndex===t.firstRowIndex&&e.lastRowIndex===t.lastRowIndex&&e.firstColumnIndex===t.firstColumnIndex&&e.lastColumnIndex===t.lastColumnIndex}function hu(e,t,n){var o,s;const r=((o=e[t.firstColumnIndex])!=null?o:0)-((s=e[n])!=null?s:0);return Math.abs(r)}function Cw(e,t){return e===0&&t===0?et.NONE:Math.abs(t)>=Math.abs(e)?t>0?et.DOWN:et.UP:e>0?et.RIGHT:et.LEFT}function gu(e,t,n,r,o,s){if(e)switch(t){case et.LEFT:t=et.RIGHT;break;case et.RIGHT:t=et.LEFT;break}switch(t){case et.NONE:return{rowAfter:n,rowBefore:n,columnAfter:r,columnBefore:r};case et.LEFT:return{rowAfter:0,rowBefore:0,columnAfter:0,columnBefore:s};case et.RIGHT:return{rowAfter:0,rowBefore:0,columnAfter:s,columnBefore:0};case et.UP:return{rowAfter:0,rowBefore:o,columnAfter:0,columnBefore:0};case et.DOWN:return{rowAfter:o,rowBefore:0,columnAfter:0,columnBefore:0};default:throw new Error("unreachable")}}const ww=()=>{var f,m;const e=ke(),t=ue(),n=te(e,kr),r=te(e,Ns),o=te(e,dc),s=n===0&&o===0,l=te(e,$1),a=!l&&s,c=!l&&n>0&&r===0;let u=null,d=null;return a&&(u="noRowsOverlay"),c&&(u="noResultsOverlay"),l&&(u="loadingOverlay",d=((m=(f=t.slotProps)==null?void 0:f.loadingOverlay)==null?void 0:m[s?"noRowsVariant":"variant"])||null),{overlayType:u,loadingOverlayVariant:d}},xw=Ge.styled("div",{name:"MuiDataGrid",slot:"OverlayWrapper",shouldForwardProp:e=>e!=="overlayType"&&e!=="loadingOverlayVariant",overridesResolver:(e,t)=>t.overlayWrapper})(({overlayType:e,loadingOverlayVariant:t})=>t!=="skeleton"?{position:"sticky",top:"var(--DataGrid-headersTotalHeight)",left:0,width:0,height:0,zIndex:e==="loadingOverlay"?5:4}:{}),yw=Ge.styled("div",{name:"MuiDataGrid",slot:"OverlayWrapperInner",shouldForwardProp:e=>e!=="overlayType"&&e!=="loadingOverlayVariant",overridesResolver:(e,t)=>t.overlayWrapperInner})({}),vw=e=>{const{classes:t}=e,n={root:["overlayWrapper"],inner:["overlayWrapperInner"]};return Xe.default(n,Te,t)};function mu(e){const t=ke(),n=ue(),r=te(t,at);let o=Math.max(r.viewportOuterSize.height-r.topContainerHeight-r.bottomContainerHeight-(r.hasScrollX?r.scrollbarSize:0),0);o===0&&(o=Tc);const s=vw(C({},e,{classes:n.classes}));return i.jsx(xw,C({className:Pe(s.root)},e,{children:i.jsx(yw,C({className:Pe(s.inner),style:{height:o,width:r.viewportOuterSize.width}},e))}))}process.env.NODE_ENV!=="production"&&(mu.propTypes={loadingOverlayVariant:h.oneOf(["circular-progress","linear-progress","skeleton"]),overlayType:h.oneOf(["loadingOverlay","noResultsOverlay","noRowsOverlay"])});process.env.NODE_ENV!=="production"&&(pu.propTypes={loadingOverlayVariant:h.oneOf(["circular-progress","linear-progress","skeleton"]),overlayType:h.oneOf(["loadingOverlay","noResultsOverlay","noRowsOverlay"])});function pu(e){var s,l;const{overlayType:t}=e,n=ue();if(!t)return null;const r=(s=n.slots)==null?void 0:s[t],o=(l=n.slotProps)==null?void 0:l[t];return i.jsx(mu,C({},e,{children:i.jsx(r,C({},o))}))}const Br=e=>e.columnMenu;function Sw(){var w;const e=Et(),t=ue(),n=te(e,Ke),r=te(e,Bb),o=te(e,Nb),s=te(e,Gc),l=te(e,()=>Gs(e)===null),a=te(e,eC),c=te(e,Jb),u=te(e,Qr),d=te(e,Tr),f=te(e,Br),m=te(e,St),p=te(e,zC),b=!(a===null&&s===null&&l),x=e.current.columnHeadersContainerRef;return i.jsx(t.slots.columnHeaders,C({ref:x,visibleColumns:n,filterColumnLookup:r,sortColumnLookup:o,columnHeaderTabIndexState:s,columnGroupHeaderTabIndexState:a,columnHeaderFocus:c,columnGroupHeaderFocus:u,headerGroupingMaxDepth:d,columnMenuState:f,columnVisibility:m,columnGroupsHeaderStructure:p,hasOtherElementInTabSequence:b},(w=t.slotProps)==null?void 0:w.columnHeaders))}const kw=Zt(Sw),Xs=g.createContext(void 0);process.env.NODE_ENV!=="production"&&(Xs.displayName="GridConfigurationContext");const Ys=()=>{const e=g.useContext(Xs);if(e===void 0)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(`
60
+ `));return e},Iw=Ge.styled("div")({position:"absolute",top:"var(--DataGrid-headersTotalHeight)",left:0,width:"calc(100% - (var(--DataGrid-hasScrollY) * var(--DataGrid-scrollbarSize)))"}),Mw=Ge.styled("div",{name:"MuiDataGrid",slot:"Main",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.main,n.hasPinnedRight&&t["main--hasPinnedRight"],n.loadingOverlayVariant==="skeleton"&&t["main--hasSkeletonLoadingOverlay"]]}})({flexGrow:1,position:"relative",overflow:"hidden",display:"flex",flexDirection:"column"}),Ew=je((e,t)=>{var l;const{ownerState:n}=e,r=ue(),s=Ys().hooks.useGridAriaAttributes();return i.jsxs(Mw,C({ownerState:n,className:e.className,tabIndex:-1},s,(l=r.slotProps)==null?void 0:l.main,{ref:t,children:[i.jsx(Iw,{role:"presentation","data-id":"gridPanelAnchor"}),e.children]}))}),Pw=()=>{const e={root:["topContainer"]};return Xe.default(e,Te,{})},Tw=Ge.styled("div")({position:"sticky",zIndex:40,top:0});function Fw(e){const t=Pw();return i.jsx(Tw,C({},e,{className:Pe(t.root,I["container--top"]),role:"presentation"}))}const jw=()=>{const e={root:["bottomContainer"]};return Xe.default(e,Te,{})},Ow=Ge.styled("div")({position:"sticky",zIndex:40,bottom:"calc(var(--DataGrid-hasScrollX) * var(--DataGrid-scrollbarSize))"});function Rw(e){const t=jw();return i.jsx(Ow,C({},e,{className:Pe(t.root,I["container--bottom"]),role:"presentation"}))}const Lw=(e,t)=>{const{classes:n}=e,r={root:["virtualScrollerContent",t&&"virtualScrollerContent--overflowed"]};return Xe.default(r,Te,n)},Dw=Ge.styled("div",{name:"MuiDataGrid",slot:"VirtualScrollerContent",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.virtualScrollerContent,n.overflowedContent&&t["virtualScrollerContent--overflowed"]]}})({}),Hw=je(function(t,n){var a;const r=ue(),o=!r.autoHeight&&((a=t.style)==null?void 0:a.minHeight)==="auto",s=Lw(r,o),l={classes:r.classes,overflowedContent:o};return i.jsx(Dw,C({},t,{ownerState:l,className:Pe(s.root,t.className),ref:n}))}),_w=Ge.styled("div")({display:"flex",flexDirection:"row",width:"var(--DataGrid-rowWidth)",boxSizing:"border-box"}),bu=Ge.styled("div")({position:"sticky",height:"100%",boxSizing:"border-box",borderTop:"1px solid var(--rowBorderColor)",backgroundColor:"var(--DataGrid-pinnedBackground)"}),Aw=Ge.styled(bu)({left:0,borderRight:"1px solid var(--rowBorderColor)"}),Vw=Ge.styled(bu)({right:0,borderLeft:"1px solid var(--rowBorderColor)"}),Nw=Ge.styled("div")({flexGrow:1,borderTop:"1px solid var(--rowBorderColor)"});function $w({rowsLength:e}){const t=ke(),{viewportOuterSize:n,minimumSize:r,hasScrollX:o,hasScrollY:s,scrollbarSize:l,leftPinnedWidth:a,rightPinnedWidth:c}=te(t,at),u=o?l:0,d=n.height-r.height>0;return u===0&&!d?null:i.jsxs(_w,{className:I.filler,role:"presentation",style:{height:u,"--rowBorderColor":e===0?"transparent":"var(--DataGrid-rowBorderColor)"},children:[a>0&&i.jsx(Aw,{className:I["filler--pinnedLeft"],style:{width:a}}),i.jsx(Nw,{}),c>0&&i.jsx(Vw,{className:I["filler--pinnedRight"],style:{width:c+(s?l:0)}})]})}const zw=Zt($w),Gw=["className"],Bw=e=>{const{classes:t}=e,n={root:["virtualScrollerRenderZone"]};return Xe.default(n,Te,t)},Ww=Ge.styled("div",{name:"MuiDataGrid",slot:"VirtualScrollerRenderZone",overridesResolver:(e,t)=>t.virtualScrollerRenderZone})({position:"absolute",display:"flex",flexDirection:"column"}),qw=je(function(t,n){const{className:r}=t,o=me(t,Gw),s=ke(),l=ue(),a=Bw(l),c=te(s,()=>{var f;const u=Fr(s);return(f=er(s.current.state).positions[u.firstRowIndex])!=null?f:0});return i.jsx(Ww,C({className:Pe(a.root,r),ownerState:l,style:{transform:`translate3d(0, ${c}px, 0)`}},o,{ref:n}))}),Uw={includeHeaders:!0,includeOutliers:!1,outliersFactor:1.5,expand:!1,disableColumnVirtualization:!0},it=e=>e.editRows,Cu=Sr(it,(e,{rowId:t,editMode:n})=>n===zt.Row&&!!e[t]),Kw=Sr(it,(e,{rowId:t,field:n})=>{var r,o;return(o=(r=e[t])==null?void 0:r[n])!=null?o:null}),xr=e=>e.preferencePanel,Xw=Sr(xr,(e,t)=>!!(e.open&&e.labelId===t));var bn=(function(e){return e.filters="filters",e.columns="columns",e})(bn||{});const Yw=(e,t)=>{const{classes:n}=e,r={root:["scrollbar",`scrollbar--${t}`],content:["scrollbarContent"]};return oe.unstable_composeClasses(r,Te,n)},wu=Ge.styled("div")({position:"absolute",display:"inline-block",zIndex:60,"&:hover":{zIndex:70},"--size":"calc(max(var(--DataGrid-scrollbarSize), 14px))"}),Zw=Ge.styled(wu)({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"}),Qw=Ge.styled(wu)({width:"100%",height:"var(--size)",overflowY:"hidden",overflowX:"auto",outline:0,"& > div":{height:"var(--size)"},bottom:"0px"}),wi=je(function(t,n){const r=Et(),o=ue(),s=g.useRef(!1),l=g.useRef(0),a=g.useRef(null),c=g.useRef(null),u=Yw(o,t.position),d=te(r,at),f=t.position==="vertical"?"height":"width",m=t.position==="vertical"?"scrollTop":"scrollLeft",p=t.position==="vertical"?"top":"left",b=t.position==="vertical"?d.hasScrollX:d.hasScrollY,x=d.minimumSize[f]+(b?d.scrollbarSize:0),S=(t.position==="vertical"?d.viewportInnerSize.height:d.viewportOuterSize.width)*(x/d.viewportOuterSize[f]),v=oe.unstable_useEventCallback(()=>{const y=a.current,A=t.scrollPosition.current;if(!y||A[p]===l.current)return;if(l.current=A[p],s.current){s.current=!1;return}s.current=!0;const N=A[p]/x;y[m]=N*S}),F=oe.unstable_useEventCallback(()=>{const y=r.current.virtualScrollerRef.current,A=a.current;if(!A)return;if(s.current){s.current=!1;return}s.current=!0;const N=A[m]/S;y[m]=N*x});ha.default(()=>{const y=r.current.virtualScrollerRef.current,A=a.current,N={passive:!0};return y.addEventListener("scroll",v,N),A.addEventListener("scroll",F,N),()=>{y.removeEventListener("scroll",v,N),A.removeEventListener("scroll",F,N)}}),g.useEffect(()=>{c.current.style.setProperty(f,`${S}px`)},[S,f]);const j=t.position==="vertical"?Zw:Qw;return i.jsx(j,{ref:oe.unstable_useForkRef(n,a),className:u.root,style:t.position==="vertical"&&o.unstable_listView?{height:"100%",top:0}:void 0,tabIndex:-1,"aria-hidden":"true",onFocus:y=>{y.target.blur()},children:i.jsx("div",{ref:c,className:u.content})})}),Jw=e=>{const{classes:t,hasScrollX:n,hasPinnedRight:r,loadingOverlayVariant:o}=e,s={root:["main",r&&"main--hasPinnedRight",o==="skeleton"&&"main--hasSkeletonLoadingOverlay"],scroller:["virtualScroller",n&&"virtualScroller--hasScrollX"]};return Xe.default(s,Te,t)},e0=Ge.styled("div",{name:"MuiDataGrid",slot:"VirtualScroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.virtualScroller,n.hasScrollX&&t["virtualScroller--hasScrollX"]]}})({position:"relative",height:"100%",flexGrow:1,overflow:"scroll",scrollbarWidth:"none",display:"flex",flexDirection:"column","&::-webkit-scrollbar":{display:"none"},"@media print":{overflow:"hidden"},zIndex:0}),t0=e=>e.dimensions.rightPinnedWidth>0;function n0(e){const t=ke(),n=ue(),r=te(t,S1),o=te(t,v1),s=te(t,t0),l=te(t,M1),a=ww(),c={classes:n.classes,hasScrollX:o,hasPinnedRight:s,loadingOverlayVariant:a.loadingOverlayVariant},u=Jw(c),d=gw(),{getContainerProps:f,getScrollerProps:m,getContentProps:p,getRenderZoneProps:b,getScrollbarVerticalProps:x,getScrollbarHorizontalProps:w,getRows:S,getScrollAreaProps:v}=d,F=S();return i.jsxs(Ew,C({className:u.root},f(),{ownerState:c,children:[i.jsx(Nr,C({scrollDirection:"left"},v())),i.jsx(Nr,C({scrollDirection:"right"},v())),i.jsx(Nr,C({scrollDirection:"up"},v())),i.jsx(Nr,C({scrollDirection:"down"},v())),i.jsxs(e0,C({className:u.scroller},m(),{ownerState:c,children:[i.jsxs(Fw,{children:[!n.unstable_listView&&i.jsx(kw,{}),i.jsx(n.slots.pinnedRows,{position:"top",virtualScroller:d})]}),i.jsx(pu,C({},a)),i.jsx(Hw,C({},p(),{children:i.jsxs(qw,C({},b(),{children:[F,i.jsx(n.slots.detailPanels,{virtualScroller:d})]}))})),l&&i.jsx(zw,{rowsLength:F.length}),i.jsx(Rw,{children:i.jsx(n.slots.pinnedRows,{position:"bottom",virtualScroller:d})})]})),o&&!n.unstable_listView&&i.jsx(wi,C({position:"horizontal"},w())),r&&i.jsx(wi,C({position:"vertical"},x())),e.children]}))}function r0(){var t;const e=ue();return e.hideFooter?null:i.jsx(e.slots.footer,C({},(t=e.slotProps)==null?void 0:t.footer))}let Bo;function Zs(){return Bo===void 0&&document.createElement("div").focus({get preventScroll(){return Bo=!0,!1}}),Bo}function o0({defaultSlots:e,slots:t}){const n=t;if(!n||Object.keys(n).length===0)return e;const r=C({},e);return Object.keys(n).forEach(o=>{const s=o;n[s]!==void 0&&(r[s]=n[s])}),r}function s0(e){var o,s;if((o=e.slotProps)!=null&&o.root)return e;const t=Object.keys(e);if(!t.some(l=>l.startsWith("aria-")||l.startsWith("data-")))return e;const n={},r=(s=e.forwardedProps)!=null?s:{};for(let l=0;l<t.length;l+=1){const a=t[l];a.startsWith("aria-")||a.startsWith("data-")?r[a]=e[a]:n[a]=e[a]}return n.forwardedProps=r,n}function l0(e){return g.useMemo(()=>s0(e),[e])}const i0=[e=>e.autoPageSize&&e.autoHeight&&["MUI X: `<DataGrid autoPageSize={true} autoHeight={true} />` are not valid props.","You cannot use both the `autoPageSize` and `autoHeight` props at the same time because `autoHeight` scales the height of the Data Grid according to the `pageSize`.","","Please remove one of these two props."].join(`
61
61
  `)||void 0,e=>e.paginationMode==="client"&&e.paginationMeta!=null&&['MUI X: Usage of the `paginationMeta` prop with client-side pagination (`paginationMode="client"`) has no effect.','`paginationMeta` is only meant to be used with `paginationMode="server"`.'].join(`
62
- `)||void 0,e=>e.signature===wt.DataGrid&&e.paginationMode==="client"&&gc(e.rowCount)&&['MUI X: Usage of the `rowCount` prop with client side pagination (`paginationMode="client"`) has no effect.','`rowCount` is only meant to be used with `paginationMode="server"`.'].join(`
62
+ `)||void 0,e=>e.signature===wt.DataGrid&&e.paginationMode==="client"&&mc(e.rowCount)&&['MUI X: Usage of the `rowCount` prop with client side pagination (`paginationMode="client"`) has no effect.','`rowCount` is only meant to be used with `paginationMode="server"`.'].join(`
63
63
  `)||void 0,e=>e.paginationMode==="server"&&e.rowCount==null&&!e.unstable_dataSource&&["MUI X: The `rowCount` prop must be passed using `paginationMode='server'`","For more detail, see http://mui.com/components/data-grid/pagination/#index-based-pagination"].join(`
64
- `)||void 0];function o0(e,t){t.forEach(n=>{const r=n(e);r&&kt(r,"error")})}const s0=e=>{const t=e.match(/^__row_group_by_columns_group_(.*)__$/);return t?t[1]:null},l0=e=>e===Fc||s0(e)!==null,wu=(e,t)=>{if(e)if(t){if(e===Ie.LEFT)return"right";if(e===Ie.RIGHT)return"left"}else{if(e===Ie.LEFT)return"left";if(e===Ie.RIGHT)return"right"}};function vo(e,t,n,r){const o=wu(n,t);return!o||r===void 0||(e[o]=r),e}const i0=["column","row","rowId","rowNode","align","children","colIndex","width","className","style","colSpan","disableDragEvents","isNotVisible","pinnedOffset","pinnedPosition","showRightBorder","showLeftBorder","onClick","onDoubleClick","onMouseDown","onMouseUp","onMouseOver","onKeyDown","onKeyUp","onDragEnter","onDragOver"],a0=["changeReason","unstable_updateValueOnRender"];Ie.LEFT+"",rn.LEFT,Ie.RIGHT+"",rn.RIGHT,Ie.NONE+"",Ie.VIRTUAL+"";const c0=e=>{const{align:t,showLeftBorder:n,showRightBorder:r,pinnedPosition:o,isEditable:s,isSelected:l,isSelectionMode:a,classes:c}=e,u={root:["cell",`cell--text${re.unstable_capitalize(t)}`,l&&"selected",s&&"cell--editable",n&&"cell--withLeftBorder",r&&"cell--withRightBorder",o===Ie.LEFT&&"cell--pinnedLeft",o===Ie.RIGHT&&"cell--pinnedRight",a&&!s&&"cell--selectionMode"]};return re.unstable_composeClasses(u,Te,c)};let wi=!1;const xu=je(function(t,n){var Ce,Ze,ot,Qe,Pt,Tt,Dt,Ht;const{column:r,row:o,rowId:s,rowNode:l,align:a,colIndex:c,width:u,className:d,style:h,colSpan:m,disableDragEvents:p,isNotVisible:b,pinnedOffset:x,pinnedPosition:w,showRightBorder:k,showLeftBorder:v,onClick:F,onDoubleClick:j,onMouseDown:y,onMouseUp:A,onMouseOver:N,onKeyDown:M,onKeyUp:P,onDragEnter:R,onDragOver:_}=t,O=me(t,i0),D=Et(),V=ue(),E=Gt.useRtl(),T=r.field,L=br(D,Bw,{rowId:s,field:T}),G=Ys().hooks.useCellAggregationResult(s,T),S=L?_e.Edit:_e.View,H=D.current.getCellParamsForRow(s,T,o,{colDef:r,cellMode:S,rowNode:l,tabIndex:te(D,()=>{const Fe=Gs(D);return Fe&&Fe.field===T&&Fe.id===s?0:-1}),hasFocus:te(D,()=>{const Fe=gt(D);return(Fe==null?void 0:Fe.id)===s&&Fe.field===T})});H.api=D.current,G&&(H.value=G.value,H.formattedValue=r.valueFormatter?r.valueFormatter(H.value,o,r,D):H.value);const z=te(D,()=>D.current.unstable_applyPipeProcessors("isCellSelected",!1,{id:s,field:T})),q=te(D,uu),U=te(D,sw),{hasFocus:Q,isEditable:X=!1,value:W}=H,K=r.type==="actions"&&((Ce=r.getActions)==null?void 0:Ce.call(r,D.current.getRowParams(s)).some(Fe=>!Fe.props.disabled)),Y=(S==="view"||!X)&&!K?H.tabIndex:-1,{classes:J,getCellClassName:ne}=V,oe=[te(D,()=>D.current.unstable_applyPipeProcessors("cellClassName",[],{id:s,field:T}).filter(Boolean).join(" "))];r.cellClassName&&oe.push(typeof r.cellClassName=="function"?r.cellClassName(H):r.cellClassName),r.display==="flex"&&oe.push(I["cell--flex"]),ne&&oe.push(ne(H));const ee=(Ze=H.formattedValue)!=null?Ze:W,ae=g.useRef(null),fe=re.unstable_useForkRef(n,ae),xe=g.useRef(null),pe=(ot=V.cellSelection)!=null?ot:!1,Me={align:a,showLeftBorder:v,showRightBorder:k,isEditable:X,classes:V.classes,pinnedPosition:w,isSelected:z,isSelectionMode:pe},Re=c0(Me),Je=g.useCallback(Fe=>Ve=>{const dt=D.current.getCellParams(s,T||"");D.current.publishEvent(Fe,dt,Ve),A&&A(Ve)},[D,T,A,s]),De=g.useCallback(Fe=>Ve=>{const dt=D.current.getCellParams(s,T||"");D.current.publishEvent(Fe,dt,Ve),y&&y(Ve)},[D,T,y,s]),Oe=g.useCallback((Fe,Ve)=>dt=>{if(!D.current.getRow(s))return;const Wt=D.current.getCellParams(s,T||"");D.current.publishEvent(Fe,Wt,dt),Ve&&Ve(dt)},[D,T,s]),Ye=(Pt=(Qe=q[s])==null?void 0:Qe[T])!=null?Pt:!1,qe=(Dt=(Tt=U[s])==null?void 0:Tt[T])!=null?Dt:1,we=g.useMemo(()=>{if(b)return{padding:0,opacity:0,width:0,height:0,border:0};const Fe=vo(C({"--width":`${u}px`},h),E,w,x),Ve=w===Ie.LEFT,dt=w===Ie.RIGHT;return qe>1&&(Fe.height=`calc(var(--height) * ${qe})`,Fe.zIndex=10,(Ve||dt)&&(Fe.zIndex=40)),Fe},[u,b,h,x,w,E,qe]);if(g.useEffect(()=>{if(!Q||S===_e.Edit)return;const Fe=re.unstable_ownerDocument(D.current.rootElementRef.current);if(ae.current&&!ae.current.contains(Fe.activeElement)){const Ve=ae.current.querySelector('[tabindex="0"]'),dt=xe.current||Ve||ae.current;if(Zs())dt.focus({preventScroll:!0});else{const Wt=D.current.getScrollPosition();dt.focus(),D.current.scroll(Wt)}}},[Q,S,D]),Ye)return i.jsx("div",{"data-colindex":c,role:"presentation",style:C({width:"var(--width)"},we)});let He=O.onFocus;process.env.NODE_ENV==="test"&&((Ht=V.experimentalFeatures)!=null&&Ht.warnIfFocusStateIsNotSynced)&&(He=Fe=>{const Ve=gt(D);if((Ve==null?void 0:Ve.id)===s&&Ve.field===T){typeof O.onFocus=="function"&&O.onFocus(Fe);return}wi||(console.warn([`MUI X: The cell with id=${s} and field=${T} received focus.`,`According to the state, the focus should be at id=${Ve==null?void 0:Ve.id}, field=${Ve==null?void 0:Ve.field}.`,"Not syncing the state may cause unwanted behaviors since the `cellFocusIn` event won't be fired.","Call `fireEvent.mouseUp` before the `fireEvent.click` to sync the focus with the state."].join(`
65
- `)),wi=!0)});let ve,ce;if(L===null&&r.renderCell&&(ve=r.renderCell(H)),L!==null&&r.renderEditCell){const Fe=D.current.getRowWithUpdatedValues(s,r.field),Ve=me(L,a0),dt=r.valueFormatter?r.valueFormatter(L.value,Fe,r,D):H.formattedValue,Wt=C({},H,{row:Fe,formattedValue:dt},Ve);ve=r.renderEditCell(Wt),oe.push(I["cell--editing"]),oe.push(J==null?void 0:J["cell--editing"])}if(ve===void 0){const Fe=ee==null?void 0:ee.toString();ve=Fe,ce=Fe}g.isValidElement(ve)&&K&&(ve=g.cloneElement(ve,{focusElementRef:xe}));const ye=p?null:{onDragEnter:Oe("cellDragEnter",R),onDragOver:Oe("cellDragOver",_)};return i.jsx("div",C({className:Pe(Re.root,oe,d),role:"gridcell","data-field":T,"data-colindex":c,"aria-colindex":c+1,"aria-colspan":m,"aria-rowspan":qe,style:we,title:ce,tabIndex:Y,onClick:Oe("cellClick",F),onDoubleClick:Oe("cellDoubleClick",j),onMouseOver:Oe("cellMouseOver",N),onMouseDown:De("cellMouseDown"),onMouseUp:Je("cellMouseUp"),onKeyDown:Oe("cellKeyDown",M),onKeyUp:Oe("cellKeyUp",P)},ye,O,{onFocus:He,ref:fe,children:ve}))});process.env.NODE_ENV!=="production"&&(xu.propTypes={align:f.oneOf(["center","left","right"]).isRequired,colIndex:f.number.isRequired,colSpan:f.number,column:f.object.isRequired,disableDragEvents:f.bool,isNotVisible:f.bool.isRequired,pinnedOffset:f.number,pinnedPosition:f.oneOf([0,1,2,3]).isRequired,row:f.object.isRequired,rowId:f.oneOfType([f.number,f.string]).isRequired,rowNode:f.object.isRequired,showLeftBorder:f.bool.isRequired,showRightBorder:f.bool.isRequired,width:f.number.isRequired});const u0=Zt(xu),d0=["field","type","align","width","height","empty","style","className"],xi="1.3em",f0="1.2em",yi=[40,80],h0={number:[40,60],string:[40,80],date:[40,60],dateTime:[60,80],singleSelect:[40,80]},g0=e=>{const{align:t,classes:n,empty:r}=e,o={root:["cell","cellSkeleton",`cell--text${t?re.unstable_capitalize(t):"Left"}`,r&&"cellEmpty"]};return re.unstable_composeClasses(o,Te,n)},m0=Q1(12345);function yu(e){const{field:t,type:n,align:r,width:o,height:s,empty:l=!1,style:a,className:c}=e,u=me(e,d0),h={classes:ue().classes,align:r,empty:l},m=g0(h),p=g.useMemo(()=>{var k;if(n==="boolean"||n==="actions")return{variant:"circular",width:xi,height:xi};const[x,w]=n&&(k=h0[n])!=null?k:yi;return{variant:"text",width:`${Math.round(m0(x,w))}%`,height:f0}},[n]);return i.jsx("div",C({"data-field":t,className:Pe(m.root,c),style:C({height:s,maxWidth:o,minWidth:o},a)},u,{children:!l&&i.jsx(Lh.default,C({},p))}))}process.env.NODE_ENV!=="production"&&(yu.propTypes={align:f.string,empty:f.bool,field:f.string,height:f.oneOfType([f.oneOf(["auto"]),f.number]),type:f.oneOf(["actions","boolean","custom","date","dateTime","number","singleSelect","string"]),width:f.oneOfType([f.number,f.string])});const p0=Zt(yu);function b0(e){return e.vars?e.vars.palette.TableCell.border:e.palette.mode==="light"?ge.lighten(ge.alpha(e.palette.divider,1),.88):ge.darken(ge.alpha(e.palette.divider,1),.68)}const C0=10,$r=-5,En=1,vi={width:3,rx:1.5,x:10.5},w0="/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */",x0=e=>e.dimensions.hasScrollX&&(!e.dimensions.hasScrollY||e.dimensions.scrollbarSize===0),y0=ge.styled("div",{name:"MuiDataGrid",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${I.autoHeight}`]:t.autoHeight},{[`&.${I.autosizing}`]:t.autosizing},{[`&.${I["root--densityStandard"]}`]:t["root--densityStandard"]},{[`&.${I["root--densityComfortable"]}`]:t["root--densityComfortable"]},{[`&.${I["root--densityCompact"]}`]:t["root--densityCompact"]},{[`&.${I["root--disableUserSelection"]}`]:t["root--disableUserSelection"]},{[`&.${I["root--noToolbar"]}`]:t["root--noToolbar"]},{[`&.${I.withVerticalBorder}`]:t.withVerticalBorder},{[`& .${I.actionsCell}`]:t.actionsCell},{[`& .${I.booleanCell}`]:t.booleanCell},{[`& .${I.cell}`]:t.cell},{[`& .${I["cell--editable"]}`]:t["cell--editable"]},{[`& .${I["cell--editing"]}`]:t["cell--editing"]},{[`& .${I["cell--flex"]}`]:t["cell--flex"]},{[`& .${I["cell--pinnedLeft"]}`]:t["cell--pinnedLeft"]},{[`& .${I["cell--pinnedRight"]}`]:t["cell--pinnedRight"]},{[`& .${I["cell--rangeBottom"]}`]:t["cell--rangeBottom"]},{[`& .${I["cell--rangeLeft"]}`]:t["cell--rangeLeft"]},{[`& .${I["cell--rangeRight"]}`]:t["cell--rangeRight"]},{[`& .${I["cell--rangeTop"]}`]:t["cell--rangeTop"]},{[`& .${I["cell--selectionMode"]}`]:t["cell--selectionMode"]},{[`& .${I["cell--textCenter"]}`]:t["cell--textCenter"]},{[`& .${I["cell--textLeft"]}`]:t["cell--textLeft"]},{[`& .${I["cell--textRight"]}`]:t["cell--textRight"]},{[`& .${I["cell--withLeftBorder"]}`]:t["cell--withLeftBorder"]},{[`& .${I["cell--withRightBorder"]}`]:t["cell--withRightBorder"]},{[`& .${I.cellCheckbox}`]:t.cellCheckbox},{[`& .${I.cellEmpty}`]:t.cellEmpty},{[`& .${I.cellOffsetLeft}`]:t.cellOffsetLeft},{[`& .${I.cellSkeleton}`]:t.cellSkeleton},{[`& .${I.checkboxInput}`]:t.checkboxInput},{[`& .${I.columnHeader}`]:t.columnHeader},{[`& .${I["columnHeader--alignCenter"]}`]:t["columnHeader--alignCenter"]},{[`& .${I["columnHeader--alignLeft"]}`]:t["columnHeader--alignLeft"]},{[`& .${I["columnHeader--alignRight"]}`]:t["columnHeader--alignRight"]},{[`& .${I["columnHeader--dragging"]}`]:t["columnHeader--dragging"]},{[`& .${I["columnHeader--emptyGroup"]}`]:t["columnHeader--emptyGroup"]},{[`& .${I["columnHeader--filledGroup"]}`]:t["columnHeader--filledGroup"]},{[`& .${I["columnHeader--filtered"]}`]:t["columnHeader--filtered"]},{[`& .${I["columnHeader--last"]}`]:t["columnHeader--last"]},{[`& .${I["columnHeader--lastUnpinned"]}`]:t["columnHeader--lastUnpinned"]},{[`& .${I["columnHeader--moving"]}`]:t["columnHeader--moving"]},{[`& .${I["columnHeader--numeric"]}`]:t["columnHeader--numeric"]},{[`& .${I["columnHeader--pinnedLeft"]}`]:t["columnHeader--pinnedLeft"]},{[`& .${I["columnHeader--pinnedRight"]}`]:t["columnHeader--pinnedRight"]},{[`& .${I["columnHeader--siblingFocused"]}`]:t["columnHeader--siblingFocused"]},{[`& .${I["columnHeader--sortable"]}`]:t["columnHeader--sortable"]},{[`& .${I["columnHeader--sorted"]}`]:t["columnHeader--sorted"]},{[`& .${I["columnHeader--withLeftBorder"]}`]:t["columnHeader--withLeftBorder"]},{[`& .${I["columnHeader--withRightBorder"]}`]:t["columnHeader--withRightBorder"]},{[`& .${I.columnHeaderCheckbox}`]:t.columnHeaderCheckbox},{[`& .${I.columnHeaderDraggableContainer}`]:t.columnHeaderDraggableContainer},{[`& .${I.columnHeaderTitleContainer}`]:t.columnHeaderTitleContainer},{[`& .${I.columnHeaderTitleContainerContent}`]:t.columnHeaderTitleContainerContent},{[`& .${I.columnSeparator}`]:t.columnSeparator},{[`& .${I["columnSeparator--resizable"]}`]:t["columnSeparator--resizable"]},{[`& .${I["columnSeparator--resizing"]}`]:t["columnSeparator--resizing"]},{[`& .${I["columnSeparator--sideLeft"]}`]:t["columnSeparator--sideLeft"]},{[`& .${I["columnSeparator--sideRight"]}`]:t["columnSeparator--sideRight"]},{[`& .${I["container--bottom"]}`]:t["container--bottom"]},{[`& .${I["container--top"]}`]:t["container--top"]},{[`& .${I.detailPanelToggleCell}`]:t.detailPanelToggleCell},{[`& .${I["detailPanelToggleCell--expanded"]}`]:t["detailPanelToggleCell--expanded"]},{[`& .${I.editBooleanCell}`]:t.editBooleanCell},{[`& .${I.filterIcon}`]:t.filterIcon},{[`& .${I["filler--borderBottom"]}`]:t["filler--borderBottom"]},{[`& .${I["filler--pinnedLeft"]}`]:t["filler--pinnedLeft"]},{[`& .${I["filler--pinnedRight"]}`]:t["filler--pinnedRight"]},{[`& .${I.groupingCriteriaCell}`]:t.groupingCriteriaCell},{[`& .${I.groupingCriteriaCellLoadingContainer}`]:t.groupingCriteriaCellLoadingContainer},{[`& .${I.groupingCriteriaCellToggle}`]:t.groupingCriteriaCellToggle},{[`& .${I.headerFilterRow}`]:t.headerFilterRow},{[`& .${I.iconSeparator}`]:t.iconSeparator},{[`& .${I.menuIcon}`]:t.menuIcon},{[`& .${I.menuIconButton}`]:t.menuIconButton},{[`& .${I.menuList}`]:t.menuList},{[`& .${I.menuOpen}`]:t.menuOpen},{[`& .${I.overlayWrapperInner}`]:t.overlayWrapperInner},{[`& .${I.pinnedRows}`]:t.pinnedRows},{[`& .${I["pinnedRows--bottom"]}`]:t["pinnedRows--bottom"]},{[`& .${I["pinnedRows--top"]}`]:t["pinnedRows--top"]},{[`& .${I.row}`]:t.row},{[`& .${I["row--borderBottom"]}`]:t["row--borderBottom"]},{[`& .${I["row--detailPanelExpanded"]}`]:t["row--detailPanelExpanded"]},{[`& .${I["row--dragging"]}`]:t["row--dragging"]},{[`& .${I["row--dynamicHeight"]}`]:t["row--dynamicHeight"]},{[`& .${I["row--editable"]}`]:t["row--editable"]},{[`& .${I["row--editing"]}`]:t["row--editing"]},{[`& .${I["row--firstVisible"]}`]:t["row--firstVisible"]},{[`& .${I["row--lastVisible"]}`]:t["row--lastVisible"]},{[`& .${I.rowReorderCell}`]:t.rowReorderCell},{[`& .${I["rowReorderCell--draggable"]}`]:t["rowReorderCell--draggable"]},{[`& .${I.rowReorderCellContainer}`]:t.rowReorderCellContainer},{[`& .${I.rowReorderCellPlaceholder}`]:t.rowReorderCellPlaceholder},{[`& .${I.rowSkeleton}`]:t.rowSkeleton},{[`& .${I.scrollbar}`]:t.scrollbar},{[`& .${I["scrollbar--horizontal"]}`]:t["scrollbar--horizontal"]},{[`& .${I["scrollbar--vertical"]}`]:t["scrollbar--vertical"]},{[`& .${I.scrollbarFiller}`]:t.scrollbarFiller},{[`& .${I["scrollbarFiller--borderBottom"]}`]:t["scrollbarFiller--borderBottom"]},{[`& .${I["scrollbarFiller--borderTop"]}`]:t["scrollbarFiller--borderTop"]},{[`& .${I["scrollbarFiller--header"]}`]:t["scrollbarFiller--header"]},{[`& .${I["scrollbarFiller--pinnedRight"]}`]:t["scrollbarFiller--pinnedRight"]},{[`& .${I.sortIcon}`]:t.sortIcon},{[`& .${I.treeDataGroupingCell}`]:t.treeDataGroupingCell},{[`& .${I.treeDataGroupingCellLoadingContainer}`]:t.treeDataGroupingCellLoadingContainer},{[`& .${I.treeDataGroupingCellToggle}`]:t.treeDataGroupingCellToggle},{[`& .${I.withBorderColor}`]:t.withBorderColor}]})(({theme:e})=>{var M,P,R,_;const t=Et(),n=te(t,x0),r=b0(e),o=e.shape.borderRadius,s=e.vars?e.vars.palette.background.default:(P=(M=e.mixins.MuiDataGrid)==null?void 0:M.containerBackground)!=null?P:e.palette.background.default,l=(_=(R=e.mixins.MuiDataGrid)==null?void 0:R.pinnedBackground)!=null?_:s,a=e.vars?`rgba(${e.vars.palette.background.defaultChannel} / ${e.vars.palette.action.disabledOpacity})`:ge.alpha(e.palette.background.default,e.palette.action.disabledOpacity),c=(e.vars||e).palette.action.hoverOpacity,u=(e.vars||e).palette.action.hover,d=(e.vars||e).palette.action.selectedOpacity,h=e.vars?`calc(${c} + ${d})`:c+d,m=e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${d})`:ge.alpha(e.palette.primary.main,d),p=e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${h})`:ge.alpha(e.palette.primary.main,h),b=e.vars?k0:v0,x=O=>({[`& .${I["cell--pinnedLeft"]}, & .${I["cell--pinnedRight"]}`]:{backgroundColor:O,"&.Mui-selected":{backgroundColor:b(O,m,d),"&:hover":{backgroundColor:b(O,m,h)}}}}),w=b(l,u,c),k=x(w),v=b(l,m,d),F=x(v),j=b(l,p,h),y=x(j),A={backgroundColor:m,"&:hover":{backgroundColor:p,"@media (hover: none)":{backgroundColor:m}}};return C({"--unstable_DataGrid-radius":typeof o=="number"?`${o}px`:o,"--unstable_DataGrid-headWeight":e.typography.fontWeightMedium,"--unstable_DataGrid-overlayBackground":a,"--DataGrid-containerBackground":s,"--DataGrid-pinnedBackground":l,"--DataGrid-rowBorderColor":r,"--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:r,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",transform:"translate(0, 0)",[`.${I.main} > *:first-child${w0}`]:{borderTopLeftRadius:"var(--unstable_DataGrid-radius)",borderTopRightRadius:"var(--unstable_DataGrid-radius)"},[`&.${I.autoHeight}`]:{height:"auto"},[`&.${I.autosizing}`]:{[`& .${I.columnHeaderTitleContainerContent} > *`]:{overflow:"visible !important"},"@media (hover: hover)":{[`& .${I.menuIcon}`]:{width:"0 !important",visibility:"hidden !important"}},[`& .${I.cell}`]:{overflow:"visible !important",whiteSpace:"nowrap",minWidth:"max-content !important",maxWidth:"max-content !important"},[`& .${I.groupingCriteriaCell}`]:{width:"unset"},[`& .${I.treeDataGroupingCell}`]:{width:"unset"}},[`& .${I.columnHeader}, & .${I.cell}`]:{WebkitTapHighlightColor:"transparent",padding:"0 10px",boxSizing:"border-box"},[`& .${I.columnHeader}:focus-within, & .${I.cell}:focus-within`]:{outline:`solid ${e.vars?`rgba(${e.vars.palette.primary.mainChannel} / 0.5)`:ge.alpha(e.palette.primary.main,.5)} ${En}px`,outlineOffset:En*-1},[`& .${I.columnHeader}:focus, & .${I.cell}:focus`]:{outline:`solid ${e.palette.primary.main} ${En}px`,outlineOffset:En*-1},[`& .${I.columnHeader}:focus,
64
+ `)||void 0];function a0(e,t){t.forEach(n=>{const r=n(e);r&&kt(r,"error")})}const c0=e=>{const t=e.match(/^__row_group_by_columns_group_(.*)__$/);return t?t[1]:null},u0=e=>e===jc||c0(e)!==null,xu=(e,t)=>{if(e)if(t){if(e===Ie.LEFT)return"right";if(e===Ie.RIGHT)return"left"}else{if(e===Ie.LEFT)return"left";if(e===Ie.RIGHT)return"right"}};function vo(e,t,n,r){const o=xu(n,t);return!o||r===void 0||(e[o]=r),e}const d0=["column","row","rowId","rowNode","align","children","colIndex","width","className","style","colSpan","disableDragEvents","isNotVisible","pinnedOffset","pinnedPosition","showRightBorder","showLeftBorder","onClick","onDoubleClick","onMouseDown","onMouseUp","onMouseOver","onKeyDown","onKeyUp","onDragEnter","onDragOver"],f0=["changeReason","unstable_updateValueOnRender"];Ie.LEFT+"",rn.LEFT,Ie.RIGHT+"",rn.RIGHT,Ie.NONE+"",Ie.VIRTUAL+"";const h0=e=>{const{align:t,showLeftBorder:n,showRightBorder:r,pinnedPosition:o,isEditable:s,isSelected:l,isSelectionMode:a,classes:c}=e,u={root:["cell",`cell--text${oe.unstable_capitalize(t)}`,l&&"selected",s&&"cell--editable",n&&"cell--withLeftBorder",r&&"cell--withRightBorder",o===Ie.LEFT&&"cell--pinnedLeft",o===Ie.RIGHT&&"cell--pinnedRight",a&&!s&&"cell--selectionMode"]};return oe.unstable_composeClasses(u,Te,c)};let xi=!1;const yu=je(function(t,n){var Ce,Ze,ot,Qe,Pt,Tt,Dt,Ht;const{column:r,row:o,rowId:s,rowNode:l,align:a,colIndex:c,width:u,className:d,style:f,colSpan:m,disableDragEvents:p,isNotVisible:b,pinnedOffset:x,pinnedPosition:w,showRightBorder:S,showLeftBorder:v,onClick:F,onDoubleClick:j,onMouseDown:y,onMouseUp:A,onMouseOver:N,onKeyDown:M,onKeyUp:P,onDragEnter:R,onDragOver:_}=t,O=me(t,d0),D=Et(),V=ue(),E=Gt.useRtl(),T=r.field,L=br(D,Kw,{rowId:s,field:T}),G=Ys().hooks.useCellAggregationResult(s,T),k=L?_e.Edit:_e.View,H=D.current.getCellParamsForRow(s,T,o,{colDef:r,cellMode:k,rowNode:l,tabIndex:te(D,()=>{const Fe=Gs(D);return Fe&&Fe.field===T&&Fe.id===s?0:-1}),hasFocus:te(D,()=>{const Fe=gt(D);return(Fe==null?void 0:Fe.id)===s&&Fe.field===T})});H.api=D.current,G&&(H.value=G.value,H.formattedValue=r.valueFormatter?r.valueFormatter(H.value,o,r,D):H.value);const z=te(D,()=>D.current.unstable_applyPipeProcessors("isCellSelected",!1,{id:s,field:T})),q=te(D,du),U=te(D,cw),{hasFocus:Q,isEditable:X=!1,value:W}=H,K=r.type==="actions"&&((Ce=r.getActions)==null?void 0:Ce.call(r,D.current.getRowParams(s)).some(Fe=>!Fe.props.disabled)),Y=(k==="view"||!X)&&!K?H.tabIndex:-1,{classes:J,getCellClassName:ne}=V,se=[te(D,()=>D.current.unstable_applyPipeProcessors("cellClassName",[],{id:s,field:T}).filter(Boolean).join(" "))];r.cellClassName&&se.push(typeof r.cellClassName=="function"?r.cellClassName(H):r.cellClassName),r.display==="flex"&&se.push(I["cell--flex"]),ne&&se.push(ne(H));const ee=(Ze=H.formattedValue)!=null?Ze:W,ae=g.useRef(null),fe=oe.unstable_useForkRef(n,ae),xe=g.useRef(null),pe=(ot=V.cellSelection)!=null?ot:!1,Me={align:a,showLeftBorder:v,showRightBorder:S,isEditable:X,classes:V.classes,pinnedPosition:w,isSelected:z,isSelectionMode:pe},Re=h0(Me),Je=g.useCallback(Fe=>Ve=>{const dt=D.current.getCellParams(s,T||"");D.current.publishEvent(Fe,dt,Ve),A&&A(Ve)},[D,T,A,s]),De=g.useCallback(Fe=>Ve=>{const dt=D.current.getCellParams(s,T||"");D.current.publishEvent(Fe,dt,Ve),y&&y(Ve)},[D,T,y,s]),Oe=g.useCallback((Fe,Ve)=>dt=>{if(!D.current.getRow(s))return;const Wt=D.current.getCellParams(s,T||"");D.current.publishEvent(Fe,Wt,dt),Ve&&Ve(dt)},[D,T,s]),Ye=(Pt=(Qe=q[s])==null?void 0:Qe[T])!=null?Pt:!1,qe=(Dt=(Tt=U[s])==null?void 0:Tt[T])!=null?Dt:1,we=g.useMemo(()=>{if(b)return{padding:0,opacity:0,width:0,height:0,border:0};const Fe=vo(C({"--width":`${u}px`},f),E,w,x),Ve=w===Ie.LEFT,dt=w===Ie.RIGHT;return qe>1&&(Fe.height=`calc(var(--height) * ${qe})`,Fe.zIndex=10,(Ve||dt)&&(Fe.zIndex=40)),Fe},[u,b,f,x,w,E,qe]);if(g.useEffect(()=>{if(!Q||k===_e.Edit)return;const Fe=oe.unstable_ownerDocument(D.current.rootElementRef.current);if(ae.current&&!ae.current.contains(Fe.activeElement)){const Ve=ae.current.querySelector('[tabindex="0"]'),dt=xe.current||Ve||ae.current;if(Zs())dt.focus({preventScroll:!0});else{const Wt=D.current.getScrollPosition();dt.focus(),D.current.scroll(Wt)}}},[Q,k,D]),Ye)return i.jsx("div",{"data-colindex":c,role:"presentation",style:C({width:"var(--width)"},we)});let He=O.onFocus;process.env.NODE_ENV==="test"&&((Ht=V.experimentalFeatures)!=null&&Ht.warnIfFocusStateIsNotSynced)&&(He=Fe=>{const Ve=gt(D);if((Ve==null?void 0:Ve.id)===s&&Ve.field===T){typeof O.onFocus=="function"&&O.onFocus(Fe);return}xi||(console.warn([`MUI X: The cell with id=${s} and field=${T} received focus.`,`According to the state, the focus should be at id=${Ve==null?void 0:Ve.id}, field=${Ve==null?void 0:Ve.field}.`,"Not syncing the state may cause unwanted behaviors since the `cellFocusIn` event won't be fired.","Call `fireEvent.mouseUp` before the `fireEvent.click` to sync the focus with the state."].join(`
65
+ `)),xi=!0)});let ve,ce;if(L===null&&r.renderCell&&(ve=r.renderCell(H)),L!==null&&r.renderEditCell){const Fe=D.current.getRowWithUpdatedValues(s,r.field),Ve=me(L,f0),dt=r.valueFormatter?r.valueFormatter(L.value,Fe,r,D):H.formattedValue,Wt=C({},H,{row:Fe,formattedValue:dt},Ve);ve=r.renderEditCell(Wt),se.push(I["cell--editing"]),se.push(J==null?void 0:J["cell--editing"])}if(ve===void 0){const Fe=ee==null?void 0:ee.toString();ve=Fe,ce=Fe}g.isValidElement(ve)&&K&&(ve=g.cloneElement(ve,{focusElementRef:xe}));const ye=p?null:{onDragEnter:Oe("cellDragEnter",R),onDragOver:Oe("cellDragOver",_)};return i.jsx("div",C({className:Pe(Re.root,se,d),role:"gridcell","data-field":T,"data-colindex":c,"aria-colindex":c+1,"aria-colspan":m,"aria-rowspan":qe,style:we,title:ce,tabIndex:Y,onClick:Oe("cellClick",F),onDoubleClick:Oe("cellDoubleClick",j),onMouseOver:Oe("cellMouseOver",N),onMouseDown:De("cellMouseDown"),onMouseUp:Je("cellMouseUp"),onKeyDown:Oe("cellKeyDown",M),onKeyUp:Oe("cellKeyUp",P)},ye,O,{onFocus:He,ref:fe,children:ve}))});process.env.NODE_ENV!=="production"&&(yu.propTypes={align:h.oneOf(["center","left","right"]).isRequired,colIndex:h.number.isRequired,colSpan:h.number,column:h.object.isRequired,disableDragEvents:h.bool,isNotVisible:h.bool.isRequired,pinnedOffset:h.number,pinnedPosition:h.oneOf([0,1,2,3]).isRequired,row:h.object.isRequired,rowId:h.oneOfType([h.number,h.string]).isRequired,rowNode:h.object.isRequired,showLeftBorder:h.bool.isRequired,showRightBorder:h.bool.isRequired,width:h.number.isRequired});const g0=Zt(yu),m0=["field","type","align","width","height","empty","style","className"],yi="1.3em",p0="1.2em",vi=[40,80],b0={number:[40,60],string:[40,80],date:[40,60],dateTime:[60,80],singleSelect:[40,80]},C0=e=>{const{align:t,classes:n,empty:r}=e,o={root:["cell","cellSkeleton",`cell--text${t?oe.unstable_capitalize(t):"Left"}`,r&&"cellEmpty"]};return oe.unstable_composeClasses(o,Te,n)},w0=nb(12345);function vu(e){const{field:t,type:n,align:r,width:o,height:s,empty:l=!1,style:a,className:c}=e,u=me(e,m0),f={classes:ue().classes,align:r,empty:l},m=C0(f),p=g.useMemo(()=>{var S;if(n==="boolean"||n==="actions")return{variant:"circular",width:yi,height:yi};const[x,w]=n&&(S=b0[n])!=null?S:vi;return{variant:"text",width:`${Math.round(w0(x,w))}%`,height:p0}},[n]);return i.jsx("div",C({"data-field":t,className:Pe(m.root,c),style:C({height:s,maxWidth:o,minWidth:o},a)},u,{children:!l&&i.jsx(Dh.default,C({},p))}))}process.env.NODE_ENV!=="production"&&(vu.propTypes={align:h.string,empty:h.bool,field:h.string,height:h.oneOfType([h.oneOf(["auto"]),h.number]),type:h.oneOf(["actions","boolean","custom","date","dateTime","number","singleSelect","string"]),width:h.oneOfType([h.number,h.string])});const x0=Zt(vu);function y0(e){return e.vars?e.vars.palette.TableCell.border:e.palette.mode==="light"?ge.lighten(ge.alpha(e.palette.divider,1),.88):ge.darken(ge.alpha(e.palette.divider,1),.68)}const v0=10,$r=-5,En=1,Si={width:3,rx:1.5,x:10.5},S0="/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */",k0=e=>e.dimensions.hasScrollX&&(!e.dimensions.hasScrollY||e.dimensions.scrollbarSize===0),I0=ge.styled("div",{name:"MuiDataGrid",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${I.autoHeight}`]:t.autoHeight},{[`&.${I.autosizing}`]:t.autosizing},{[`&.${I["root--densityStandard"]}`]:t["root--densityStandard"]},{[`&.${I["root--densityComfortable"]}`]:t["root--densityComfortable"]},{[`&.${I["root--densityCompact"]}`]:t["root--densityCompact"]},{[`&.${I["root--disableUserSelection"]}`]:t["root--disableUserSelection"]},{[`&.${I["root--noToolbar"]}`]:t["root--noToolbar"]},{[`&.${I.withVerticalBorder}`]:t.withVerticalBorder},{[`& .${I.actionsCell}`]:t.actionsCell},{[`& .${I.booleanCell}`]:t.booleanCell},{[`& .${I.cell}`]:t.cell},{[`& .${I["cell--editable"]}`]:t["cell--editable"]},{[`& .${I["cell--editing"]}`]:t["cell--editing"]},{[`& .${I["cell--flex"]}`]:t["cell--flex"]},{[`& .${I["cell--pinnedLeft"]}`]:t["cell--pinnedLeft"]},{[`& .${I["cell--pinnedRight"]}`]:t["cell--pinnedRight"]},{[`& .${I["cell--rangeBottom"]}`]:t["cell--rangeBottom"]},{[`& .${I["cell--rangeLeft"]}`]:t["cell--rangeLeft"]},{[`& .${I["cell--rangeRight"]}`]:t["cell--rangeRight"]},{[`& .${I["cell--rangeTop"]}`]:t["cell--rangeTop"]},{[`& .${I["cell--selectionMode"]}`]:t["cell--selectionMode"]},{[`& .${I["cell--textCenter"]}`]:t["cell--textCenter"]},{[`& .${I["cell--textLeft"]}`]:t["cell--textLeft"]},{[`& .${I["cell--textRight"]}`]:t["cell--textRight"]},{[`& .${I["cell--withLeftBorder"]}`]:t["cell--withLeftBorder"]},{[`& .${I["cell--withRightBorder"]}`]:t["cell--withRightBorder"]},{[`& .${I.cellCheckbox}`]:t.cellCheckbox},{[`& .${I.cellEmpty}`]:t.cellEmpty},{[`& .${I.cellOffsetLeft}`]:t.cellOffsetLeft},{[`& .${I.cellSkeleton}`]:t.cellSkeleton},{[`& .${I.checkboxInput}`]:t.checkboxInput},{[`& .${I.columnHeader}`]:t.columnHeader},{[`& .${I["columnHeader--alignCenter"]}`]:t["columnHeader--alignCenter"]},{[`& .${I["columnHeader--alignLeft"]}`]:t["columnHeader--alignLeft"]},{[`& .${I["columnHeader--alignRight"]}`]:t["columnHeader--alignRight"]},{[`& .${I["columnHeader--dragging"]}`]:t["columnHeader--dragging"]},{[`& .${I["columnHeader--emptyGroup"]}`]:t["columnHeader--emptyGroup"]},{[`& .${I["columnHeader--filledGroup"]}`]:t["columnHeader--filledGroup"]},{[`& .${I["columnHeader--filtered"]}`]:t["columnHeader--filtered"]},{[`& .${I["columnHeader--last"]}`]:t["columnHeader--last"]},{[`& .${I["columnHeader--lastUnpinned"]}`]:t["columnHeader--lastUnpinned"]},{[`& .${I["columnHeader--moving"]}`]:t["columnHeader--moving"]},{[`& .${I["columnHeader--numeric"]}`]:t["columnHeader--numeric"]},{[`& .${I["columnHeader--pinnedLeft"]}`]:t["columnHeader--pinnedLeft"]},{[`& .${I["columnHeader--pinnedRight"]}`]:t["columnHeader--pinnedRight"]},{[`& .${I["columnHeader--siblingFocused"]}`]:t["columnHeader--siblingFocused"]},{[`& .${I["columnHeader--sortable"]}`]:t["columnHeader--sortable"]},{[`& .${I["columnHeader--sorted"]}`]:t["columnHeader--sorted"]},{[`& .${I["columnHeader--withLeftBorder"]}`]:t["columnHeader--withLeftBorder"]},{[`& .${I["columnHeader--withRightBorder"]}`]:t["columnHeader--withRightBorder"]},{[`& .${I.columnHeaderCheckbox}`]:t.columnHeaderCheckbox},{[`& .${I.columnHeaderDraggableContainer}`]:t.columnHeaderDraggableContainer},{[`& .${I.columnHeaderTitleContainer}`]:t.columnHeaderTitleContainer},{[`& .${I.columnHeaderTitleContainerContent}`]:t.columnHeaderTitleContainerContent},{[`& .${I.columnSeparator}`]:t.columnSeparator},{[`& .${I["columnSeparator--resizable"]}`]:t["columnSeparator--resizable"]},{[`& .${I["columnSeparator--resizing"]}`]:t["columnSeparator--resizing"]},{[`& .${I["columnSeparator--sideLeft"]}`]:t["columnSeparator--sideLeft"]},{[`& .${I["columnSeparator--sideRight"]}`]:t["columnSeparator--sideRight"]},{[`& .${I["container--bottom"]}`]:t["container--bottom"]},{[`& .${I["container--top"]}`]:t["container--top"]},{[`& .${I.detailPanelToggleCell}`]:t.detailPanelToggleCell},{[`& .${I["detailPanelToggleCell--expanded"]}`]:t["detailPanelToggleCell--expanded"]},{[`& .${I.editBooleanCell}`]:t.editBooleanCell},{[`& .${I.filterIcon}`]:t.filterIcon},{[`& .${I["filler--borderBottom"]}`]:t["filler--borderBottom"]},{[`& .${I["filler--pinnedLeft"]}`]:t["filler--pinnedLeft"]},{[`& .${I["filler--pinnedRight"]}`]:t["filler--pinnedRight"]},{[`& .${I.groupingCriteriaCell}`]:t.groupingCriteriaCell},{[`& .${I.groupingCriteriaCellLoadingContainer}`]:t.groupingCriteriaCellLoadingContainer},{[`& .${I.groupingCriteriaCellToggle}`]:t.groupingCriteriaCellToggle},{[`& .${I.headerFilterRow}`]:t.headerFilterRow},{[`& .${I.iconSeparator}`]:t.iconSeparator},{[`& .${I.menuIcon}`]:t.menuIcon},{[`& .${I.menuIconButton}`]:t.menuIconButton},{[`& .${I.menuList}`]:t.menuList},{[`& .${I.menuOpen}`]:t.menuOpen},{[`& .${I.overlayWrapperInner}`]:t.overlayWrapperInner},{[`& .${I.pinnedRows}`]:t.pinnedRows},{[`& .${I["pinnedRows--bottom"]}`]:t["pinnedRows--bottom"]},{[`& .${I["pinnedRows--top"]}`]:t["pinnedRows--top"]},{[`& .${I.row}`]:t.row},{[`& .${I["row--borderBottom"]}`]:t["row--borderBottom"]},{[`& .${I["row--detailPanelExpanded"]}`]:t["row--detailPanelExpanded"]},{[`& .${I["row--dragging"]}`]:t["row--dragging"]},{[`& .${I["row--dynamicHeight"]}`]:t["row--dynamicHeight"]},{[`& .${I["row--editable"]}`]:t["row--editable"]},{[`& .${I["row--editing"]}`]:t["row--editing"]},{[`& .${I["row--firstVisible"]}`]:t["row--firstVisible"]},{[`& .${I["row--lastVisible"]}`]:t["row--lastVisible"]},{[`& .${I.rowReorderCell}`]:t.rowReorderCell},{[`& .${I["rowReorderCell--draggable"]}`]:t["rowReorderCell--draggable"]},{[`& .${I.rowReorderCellContainer}`]:t.rowReorderCellContainer},{[`& .${I.rowReorderCellPlaceholder}`]:t.rowReorderCellPlaceholder},{[`& .${I.rowSkeleton}`]:t.rowSkeleton},{[`& .${I.scrollbar}`]:t.scrollbar},{[`& .${I["scrollbar--horizontal"]}`]:t["scrollbar--horizontal"]},{[`& .${I["scrollbar--vertical"]}`]:t["scrollbar--vertical"]},{[`& .${I.scrollbarFiller}`]:t.scrollbarFiller},{[`& .${I["scrollbarFiller--borderBottom"]}`]:t["scrollbarFiller--borderBottom"]},{[`& .${I["scrollbarFiller--borderTop"]}`]:t["scrollbarFiller--borderTop"]},{[`& .${I["scrollbarFiller--header"]}`]:t["scrollbarFiller--header"]},{[`& .${I["scrollbarFiller--pinnedRight"]}`]:t["scrollbarFiller--pinnedRight"]},{[`& .${I.sortIcon}`]:t.sortIcon},{[`& .${I.treeDataGroupingCell}`]:t.treeDataGroupingCell},{[`& .${I.treeDataGroupingCellLoadingContainer}`]:t.treeDataGroupingCellLoadingContainer},{[`& .${I.treeDataGroupingCellToggle}`]:t.treeDataGroupingCellToggle},{[`& .${I.withBorderColor}`]:t.withBorderColor}]})(({theme:e})=>{var M,P,R,_;const t=Et(),n=te(t,k0),r=y0(e),o=e.shape.borderRadius,s=e.vars?e.vars.palette.background.default:(P=(M=e.mixins.MuiDataGrid)==null?void 0:M.containerBackground)!=null?P:e.palette.background.default,l=(_=(R=e.mixins.MuiDataGrid)==null?void 0:R.pinnedBackground)!=null?_:s,a=e.vars?`rgba(${e.vars.palette.background.defaultChannel} / ${e.vars.palette.action.disabledOpacity})`:ge.alpha(e.palette.background.default,e.palette.action.disabledOpacity),c=(e.vars||e).palette.action.hoverOpacity,u=(e.vars||e).palette.action.hover,d=(e.vars||e).palette.action.selectedOpacity,f=e.vars?`calc(${c} + ${d})`:c+d,m=e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${d})`:ge.alpha(e.palette.primary.main,d),p=e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${f})`:ge.alpha(e.palette.primary.main,f),b=e.vars?P0:M0,x=O=>({[`& .${I["cell--pinnedLeft"]}, & .${I["cell--pinnedRight"]}`]:{backgroundColor:O,"&.Mui-selected":{backgroundColor:b(O,m,d),"&:hover":{backgroundColor:b(O,m,f)}}}}),w=b(l,u,c),S=x(w),v=b(l,m,d),F=x(v),j=b(l,p,f),y=x(j),A={backgroundColor:m,"&:hover":{backgroundColor:p,"@media (hover: none)":{backgroundColor:m}}};return C({"--unstable_DataGrid-radius":typeof o=="number"?`${o}px`:o,"--unstable_DataGrid-headWeight":e.typography.fontWeightMedium,"--unstable_DataGrid-overlayBackground":a,"--DataGrid-containerBackground":s,"--DataGrid-pinnedBackground":l,"--DataGrid-rowBorderColor":r,"--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:r,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",transform:"translate(0, 0)",[`.${I.main} > *:first-child${S0}`]:{borderTopLeftRadius:"var(--unstable_DataGrid-radius)",borderTopRightRadius:"var(--unstable_DataGrid-radius)"},[`&.${I.autoHeight}`]:{height:"auto"},[`&.${I.autosizing}`]:{[`& .${I.columnHeaderTitleContainerContent} > *`]:{overflow:"visible !important"},"@media (hover: hover)":{[`& .${I.menuIcon}`]:{width:"0 !important",visibility:"hidden !important"}},[`& .${I.cell}`]:{overflow:"visible !important",whiteSpace:"nowrap",minWidth:"max-content !important",maxWidth:"max-content !important"},[`& .${I.groupingCriteriaCell}`]:{width:"unset"},[`& .${I.treeDataGroupingCell}`]:{width:"unset"}},[`& .${I.columnHeader}, & .${I.cell}`]:{WebkitTapHighlightColor:"transparent",padding:"0 10px",boxSizing:"border-box"},[`& .${I.columnHeader}:focus-within, & .${I.cell}:focus-within`]:{outline:`solid ${e.vars?`rgba(${e.vars.palette.primary.mainChannel} / 0.5)`:ge.alpha(e.palette.primary.main,.5)} ${En}px`,outlineOffset:En*-1},[`& .${I.columnHeader}:focus, & .${I.cell}:focus`]:{outline:`solid ${e.palette.primary.main} ${En}px`,outlineOffset:En*-1},[`& .${I.columnHeader}:focus,
66
66
  & .${I["columnHeader--withLeftBorder"]},
67
67
  & .${I["columnHeader--withRightBorder"]},
68
68
  & .${I["columnHeader--siblingFocused"]},
69
69
  & .${I["virtualScroller--hasScrollX"]} .${I["columnHeader--lastUnpinned"]},
70
70
  & .${I["virtualScroller--hasScrollX"]} .${I["columnHeader--last"]}
71
- `]:{[`& .${I.columnSeparator}`]:{opacity:0},"@media (hover: none)":{[`& .${I["columnSeparator--resizable"]}`]:{opacity:1}},[`& .${I["columnSeparator--resizable"]}:hover`]:{opacity:1}},[`&.${I["root--noToolbar"]} [aria-rowindex="1"] [aria-colindex="1"]`]:{borderTopLeftRadius:"calc(var(--unstable_DataGrid-radius) - 1px)"},[`&.${I["root--noToolbar"]} [aria-rowindex="1"] .${I["columnHeader--last"]}`]:{borderTopRightRadius:n?"calc(var(--unstable_DataGrid-radius) - 1px)":void 0},[`& .${I.columnHeaderCheckbox}, & .${I.cellCheckbox}`]:{padding:0,justifyContent:"center",alignItems:"center"},[`& .${I.columnHeader}`]:{position:"relative",display:"flex",alignItems:"center"},[`& .${I["virtualScroller--hasScrollX"]} .${I["columnHeader--last"]}`]:{overflow:"hidden"},[`& .${I["columnHeader--sorted"]} .${I.iconButtonContainer}, & .${I["columnHeader--filtered"]} .${I.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${I.columnHeader}:not(.${I["columnHeader--sorted"]}) .${I.sortButton}`]:{opacity:0,transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.shorter})},[`& .${I.columnHeaderTitleContainer}`]:{display:"flex",alignItems:"center",gap:e.spacing(.25),minWidth:0,flex:1,whiteSpace:"nowrap",overflow:"hidden"},[`& .${I.columnHeaderTitleContainerContent}`]:{overflow:"hidden",display:"flex",alignItems:"center"},[`& .${I["columnHeader--filledGroup"]} .${I.columnHeaderTitleContainer}`]:{borderBottomWidth:"1px",borderBottomStyle:"solid",boxSizing:"border-box"},[`& .${I.sortIcon}, & .${I.filterIcon}`]:{fontSize:"inherit"},[`& .${I["columnHeader--sortable"]}`]:{cursor:"pointer"},[`& .${I["columnHeader--alignCenter"]} .${I.columnHeaderTitleContainer}`]:{justifyContent:"center"},[`& .${I["columnHeader--alignRight"]} .${I.columnHeaderDraggableContainer}, & .${I["columnHeader--alignRight"]} .${I.columnHeaderTitleContainer}`]:{flexDirection:"row-reverse"},[`& .${I["columnHeader--alignCenter"]} .${I.menuIcon}`]:{marginLeft:"auto"},[`& .${I["columnHeader--alignRight"]} .${I.menuIcon}`]:{marginRight:"auto",marginLeft:-5},[`& .${I["columnHeader--moving"]}`]:{backgroundColor:(e.vars||e).palette.action.hover},[`& .${I["columnHeader--pinnedLeft"]}, & .${I["columnHeader--pinnedRight"]}`]:{position:"sticky",zIndex:40,background:"var(--DataGrid-pinnedBackground)"},[`& .${I.columnSeparator}`]:{position:"absolute",overflow:"hidden",zIndex:30,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",maxWidth:C0,color:r},[`& .${I.columnHeaders}`]:{width:"var(--DataGrid-rowWidth)"},"@media (hover: hover)":{[`& .${I.columnHeader}:hover`]:{[`& .${I.menuIcon}`]:{width:"auto",visibility:"visible"},[`& .${I.iconButtonContainer}`]:{visibility:"visible",width:"auto"}},[`& .${I.columnHeader}:not(.${I["columnHeader--sorted"]}):hover .${I.sortButton}`]:{opacity:.5}},"@media (hover: none)":{[`& .${I.columnHeader} .${I.menuIcon}`]:{width:"auto",visibility:"visible"},[`& .${I.columnHeader}:focus,
72
- & .${I["columnHeader--siblingFocused"]}`]:{[`.${I["columnSeparator--resizable"]}`]:{color:(e.vars||e).palette.primary.main}}},[`& .${I["columnSeparator--sideLeft"]}`]:{left:$r},[`& .${I["columnSeparator--sideRight"]}`]:{right:$r},[`& .${I["columnHeader--withRightBorder"]} .${I["columnSeparator--sideLeft"]}`]:{left:$r-.5},[`& .${I["columnHeader--withRightBorder"]} .${I["columnSeparator--sideRight"]}`]:{right:$r-.5},[`& .${I["columnSeparator--resizable"]}`]:{cursor:"col-resize",touchAction:"none",[`&.${I["columnSeparator--resizing"]}`]:{color:(e.vars||e).palette.primary.main},"@media (hover: none)":{[`& .${I.iconSeparator} rect`]:vi},"@media (hover: hover)":{"&:hover":{color:(e.vars||e).palette.primary.main,[`& .${I.iconSeparator} rect`]:vi}},"& svg":{pointerEvents:"none"}},[`& .${I.iconSeparator}`]:{color:"inherit",transition:e.transitions.create(["color","width"],{duration:e.transitions.duration.shortest})},[`& .${I.menuIcon}`]:{width:0,visibility:"hidden",fontSize:20,marginRight:-5,display:"flex",alignItems:"center"},[`.${I.menuOpen}`]:{visibility:"visible",width:"auto"},[`& .${I.headerFilterRow}`]:{[`& .${I.columnHeader}`]:{boxSizing:"border-box",borderBottom:"1px solid var(--DataGrid-rowBorderColor)"}},[`& .${I["row--borderBottom"]} .${I.columnHeader},
71
+ `]:{[`& .${I.columnSeparator}`]:{opacity:0},"@media (hover: none)":{[`& .${I["columnSeparator--resizable"]}`]:{opacity:1}},[`& .${I["columnSeparator--resizable"]}:hover`]:{opacity:1}},[`&.${I["root--noToolbar"]} [aria-rowindex="1"] [aria-colindex="1"]`]:{borderTopLeftRadius:"calc(var(--unstable_DataGrid-radius) - 1px)"},[`&.${I["root--noToolbar"]} [aria-rowindex="1"] .${I["columnHeader--last"]}`]:{borderTopRightRadius:n?"calc(var(--unstable_DataGrid-radius) - 1px)":void 0},[`& .${I.columnHeaderCheckbox}, & .${I.cellCheckbox}`]:{padding:0,justifyContent:"center",alignItems:"center"},[`& .${I.columnHeader}`]:{position:"relative",display:"flex",alignItems:"center"},[`& .${I["virtualScroller--hasScrollX"]} .${I["columnHeader--last"]}`]:{overflow:"hidden"},[`& .${I["columnHeader--sorted"]} .${I.iconButtonContainer}, & .${I["columnHeader--filtered"]} .${I.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${I.columnHeader}:not(.${I["columnHeader--sorted"]}) .${I.sortButton}`]:{opacity:0,transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.shorter})},[`& .${I.columnHeaderTitleContainer}`]:{display:"flex",alignItems:"center",gap:e.spacing(.25),minWidth:0,flex:1,whiteSpace:"nowrap",overflow:"hidden"},[`& .${I.columnHeaderTitleContainerContent}`]:{overflow:"hidden",display:"flex",alignItems:"center"},[`& .${I["columnHeader--filledGroup"]} .${I.columnHeaderTitleContainer}`]:{borderBottomWidth:"1px",borderBottomStyle:"solid",boxSizing:"border-box"},[`& .${I.sortIcon}, & .${I.filterIcon}`]:{fontSize:"inherit"},[`& .${I["columnHeader--sortable"]}`]:{cursor:"pointer"},[`& .${I["columnHeader--alignCenter"]} .${I.columnHeaderTitleContainer}`]:{justifyContent:"center"},[`& .${I["columnHeader--alignRight"]} .${I.columnHeaderDraggableContainer}, & .${I["columnHeader--alignRight"]} .${I.columnHeaderTitleContainer}`]:{flexDirection:"row-reverse"},[`& .${I["columnHeader--alignCenter"]} .${I.menuIcon}`]:{marginLeft:"auto"},[`& .${I["columnHeader--alignRight"]} .${I.menuIcon}`]:{marginRight:"auto",marginLeft:-5},[`& .${I["columnHeader--moving"]}`]:{backgroundColor:(e.vars||e).palette.action.hover},[`& .${I["columnHeader--pinnedLeft"]}, & .${I["columnHeader--pinnedRight"]}`]:{position:"sticky",zIndex:40,background:"var(--DataGrid-pinnedBackground)"},[`& .${I.columnSeparator}`]:{position:"absolute",overflow:"hidden",zIndex:30,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",maxWidth:v0,color:r},[`& .${I.columnHeaders}`]:{width:"var(--DataGrid-rowWidth)"},"@media (hover: hover)":{[`& .${I.columnHeader}:hover`]:{[`& .${I.menuIcon}`]:{width:"auto",visibility:"visible"},[`& .${I.iconButtonContainer}`]:{visibility:"visible",width:"auto"}},[`& .${I.columnHeader}:not(.${I["columnHeader--sorted"]}):hover .${I.sortButton}`]:{opacity:.5}},"@media (hover: none)":{[`& .${I.columnHeader} .${I.menuIcon}`]:{width:"auto",visibility:"visible"},[`& .${I.columnHeader}:focus,
72
+ & .${I["columnHeader--siblingFocused"]}`]:{[`.${I["columnSeparator--resizable"]}`]:{color:(e.vars||e).palette.primary.main}}},[`& .${I["columnSeparator--sideLeft"]}`]:{left:$r},[`& .${I["columnSeparator--sideRight"]}`]:{right:$r},[`& .${I["columnHeader--withRightBorder"]} .${I["columnSeparator--sideLeft"]}`]:{left:$r-.5},[`& .${I["columnHeader--withRightBorder"]} .${I["columnSeparator--sideRight"]}`]:{right:$r-.5},[`& .${I["columnSeparator--resizable"]}`]:{cursor:"col-resize",touchAction:"none",[`&.${I["columnSeparator--resizing"]}`]:{color:(e.vars||e).palette.primary.main},"@media (hover: none)":{[`& .${I.iconSeparator} rect`]:Si},"@media (hover: hover)":{"&:hover":{color:(e.vars||e).palette.primary.main,[`& .${I.iconSeparator} rect`]:Si}},"& svg":{pointerEvents:"none"}},[`& .${I.iconSeparator}`]:{color:"inherit",transition:e.transitions.create(["color","width"],{duration:e.transitions.duration.shortest})},[`& .${I.menuIcon}`]:{width:0,visibility:"hidden",fontSize:20,marginRight:-5,display:"flex",alignItems:"center"},[`.${I.menuOpen}`]:{visibility:"visible",width:"auto"},[`& .${I.headerFilterRow}`]:{[`& .${I.columnHeader}`]:{boxSizing:"border-box",borderBottom:"1px solid var(--DataGrid-rowBorderColor)"}},[`& .${I["row--borderBottom"]} .${I.columnHeader},
73
73
  & .${I["row--borderBottom"]} .${I.filler},
74
- & .${I["row--borderBottom"]} .${I.scrollbarFiller}`]:{borderBottom:"1px solid var(--DataGrid-rowBorderColor)"},[`& .${I["row--borderBottom"]} .${I.cell}`]:{borderBottom:"1px solid var(--rowBorderColor)"},[`.${I.row}`]:{display:"flex",width:"var(--DataGrid-rowWidth)",breakInside:"avoid","--rowBorderColor":"var(--DataGrid-rowBorderColor)",[`&.${I["row--firstVisible"]}`]:{"--rowBorderColor":"transparent"},"&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${I.rowSkeleton}:hover`]:{backgroundColor:"transparent"},"&.Mui-selected":A},[`& .${I["container--top"]}, & .${I["container--bottom"]}`]:{"[role=row]":{background:"var(--DataGrid-containerBackground)"}},[`& .${I.cell}`]:{flex:"0 0 auto",height:"var(--height)",width:"var(--width)",lineHeight:"calc(var(--height) - 1px)",boxSizing:"border-box",borderTop:"1px solid var(--rowBorderColor)",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis","&.Mui-selected":A},[`& .${I["virtualScrollerContent--overflowed"]} .${I["row--lastVisible"]} .${I.cell}`]:{borderTopColor:"transparent"},[`& .${I["pinnedRows--top"]} :first-of-type`]:{[`& .${I.cell}, .${I.scrollbarFiller}`]:{borderTop:"none"}},[`&.${I["root--disableUserSelection"]}`]:{userSelect:"none"},[`& .${I["row--dynamicHeight"]} > .${I.cell}`]:{whiteSpace:"initial",lineHeight:"inherit"},[`& .${I.cellEmpty}`]:{flex:1,padding:0,height:"unset"},[`& .${I.cell}.${I["cell--selectionMode"]}`]:{cursor:"default"},[`& .${I.cell}.${I["cell--editing"]}`]:{padding:1,display:"flex",boxShadow:e.shadows[2],backgroundColor:(e.vars||e).palette.background.paper,"&:focus-within":{outline:`${En}px solid ${(e.vars||e).palette.primary.main}`,outlineOffset:En*-1}},[`& .${I["row--editing"]}`]:{boxShadow:e.shadows[2]},[`& .${I["row--editing"]} .${I.cell}`]:{boxShadow:e.shadows[0],backgroundColor:(e.vars||e).palette.background.paper},[`& .${I.editBooleanCell}`]:{display:"flex",height:"100%",width:"100%",alignItems:"center",justifyContent:"center"},[`& .${I.booleanCell}[data-value="true"]`]:{color:(e.vars||e).palette.text.secondary},[`& .${I.booleanCell}[data-value="false"]`]:{color:(e.vars||e).palette.text.disabled},[`& .${I.actionsCell}`]:{display:"inline-flex",alignItems:"center",gridGap:e.spacing(1)},[`& .${I.rowReorderCell}`]:{display:"inline-flex",flex:1,alignItems:"center",justifyContent:"center",opacity:(e.vars||e).palette.action.disabledOpacity},[`& .${I["rowReorderCell--draggable"]}`]:{cursor:"move",opacity:1},[`& .${I.rowReorderCellContainer}`]:{padding:0,display:"flex",alignItems:"stretch"},[`.${I.withBorderColor}`]:{borderColor:r},[`& .${I["cell--withLeftBorder"]}, & .${I["columnHeader--withLeftBorder"]}`]:{borderLeftColor:"var(--DataGrid-rowBorderColor)",borderLeftWidth:"1px",borderLeftStyle:"solid"},[`& .${I["cell--withRightBorder"]}, & .${I["columnHeader--withRightBorder"]}`]:{borderRightColor:"var(--DataGrid-rowBorderColor)",borderRightWidth:"1px",borderRightStyle:"solid"},[`& .${I["cell--flex"]}`]:{display:"flex",alignItems:"center",lineHeight:"inherit"},[`& .${I["cell--textLeft"]}`]:{textAlign:"left",justifyContent:"flex-start"},[`& .${I["cell--textRight"]}`]:{textAlign:"right",justifyContent:"flex-end"},[`& .${I["cell--textCenter"]}`]:{textAlign:"center",justifyContent:"center"},[`& .${I["cell--pinnedLeft"]}, & .${I["cell--pinnedRight"]}`]:{position:"sticky",zIndex:30,background:"var(--DataGrid-pinnedBackground)","&.Mui-selected":{backgroundColor:v}},[`& .${I.virtualScrollerContent} .${I.row}`]:{"&:hover":k,"&.Mui-selected":F,"&.Mui-selected:hover":y},[`& .${I.cellOffsetLeft}`]:{flex:"0 0 auto",display:"inline-block"},[`& .${I.cellSkeleton}`]:{flex:"0 0 auto",height:"100%",display:"inline-flex",alignItems:"center"},[`& .${I.columnHeaderDraggableContainer}`]:{display:"flex",width:"100%",height:"100%"},[`& .${I.rowReorderCellPlaceholder}`]:{display:"none"},[`& .${I["columnHeader--dragging"]}, & .${I["row--dragging"]}`]:{background:(e.vars||e).palette.background.paper,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:(e.vars||e).palette.action.disabledOpacity},[`& .${I["row--dragging"]}`]:{background:(e.vars||e).palette.background.paper,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:(e.vars||e).palette.action.disabledOpacity,[`& .${I.rowReorderCellPlaceholder}`]:{display:"flex"}},[`& .${I.treeDataGroupingCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${I.treeDataGroupingCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)},[`& .${I.treeDataGroupingCellLoadingContainer}, .${I.groupingCriteriaCellLoadingContainer}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},[`& .${I.groupingCriteriaCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${I.groupingCriteriaCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)},[`.${I.scrollbarFiller}`]:{minWidth:"calc(var(--DataGrid-hasScrollY) * var(--DataGrid-scrollbarSize))",alignSelf:"stretch",[`&.${I["scrollbarFiller--borderTop"]}`]:{borderTop:"1px solid var(--DataGrid-rowBorderColor)"},[`&.${I["scrollbarFiller--borderBottom"]}`]:{borderBottom:"1px solid var(--DataGrid-rowBorderColor)"},[`&.${I["scrollbarFiller--pinnedRight"]}`]:{backgroundColor:"var(--DataGrid-pinnedBackground)",position:"sticky",right:0}},[`& .${I.filler}`]:{flex:"1 0 auto"},[`& .${I["filler--borderBottom"]}`]:{borderBottom:"1px solid var(--DataGrid-rowBorderColor)"},[`& .${I["main--hasSkeletonLoadingOverlay"]}`]:{[`& .${I.virtualScrollerContent}`]:{position:"fixed",visibility:"hidden"},[`& .${I["scrollbar--vertical"]}, & .${I.pinnedRows}, & .${I.virtualScroller} > .${I.filler}`]:{display:"none"}}})});function v0(e,t,n,r=1){const o=(c,u)=>Math.round((c**(1/r)*(1-n)+u**(1/r)*n)**r),s=ge.decomposeColor(e),l=ge.decomposeColor(t),a=[o(s.values[0],l.values[0]),o(s.values[1],l.values[1]),o(s.values[2],l.values[2])];return ge.recomposeColor({type:"rgb",values:a})}const S0=e=>`rgb(from ${e} r g b / 1)`;function k0(e,t,n){return`color-mix(in srgb,${e}, ${S0(t)} calc(${n} * 100%))`}const I0=()=>()=>{},M0=()=>!1,E0=()=>!0,P0=()=>js.useSyncExternalStore(I0,M0,E0);function T0(){var s,l,a;const e=ke(),t=te(e,It),n=ue(),r=te(e,xr),o=e.current.unstable_applyPipeProcessors("preferencePanel",null,(s=r.openedPanelValue)!=null?s:bn.filters);return i.jsx(n.slots.panel,C({as:n.slots.basePopper,open:t.length>0&&r.open,id:r.panelId,"aria-labelledby":r.labelId},(l=n.slotProps)==null?void 0:l.panel,(a=n.slotProps)==null?void 0:a.basePopper,{children:o}))}function F0(){var t;const e=ue();return i.jsxs(g.Fragment,{children:[i.jsx(T0,{}),e.slots.toolbar&&i.jsx(e.slots.toolbar,C({},(t=e.slotProps)==null?void 0:t.toolbar))]})}const j0=["className","children"],O0=(e,t)=>{const{autoHeight:n,classes:r,showCellVerticalBorder:o}=e,s={root:["root",n&&"autoHeight",`root--density${re.unstable_capitalize(t)}`,e.slots.toolbar===null&&"root--noToolbar","withBorderColor",o&&"withVerticalBorder"]};return re.unstable_composeClasses(s,Te,r)},vu=je(function(t,n){const r=ue(),{className:o,children:s}=t,l=me(t,j0),a=Et(),c=te(a,Rn),u=a.current.rootElementRef,d=g.useCallback(x=>{x!==null&&a.current.publishEvent("rootMount",x)},[a]),h=re.unstable_useForkRef(u,n,d),m=r,p=O0(m,c);return P0()?null:i.jsxs(y0,C({className:Pe(p.root,o),ownerState:m},l,{ref:h,children:[i.jsx(F0,{}),i.jsx(Qw,{children:s}),i.jsx(Jw,{})]}))});process.env.NODE_ENV!=="production"&&(vu.propTypes={sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object])});const R0=Zt(vu),L0=["className"],D0=e=>{const{classes:t}=e,n={root:["footerContainer","withBorderColor"]};return Xe.default(n,Te,t)},H0=Ge.styled("div",{name:"MuiDataGrid",slot:"FooterContainer",overridesResolver:(e,t)=>t.footerContainer})({display:"flex",justifyContent:"space-between",alignItems:"center",minHeight:52,borderTop:"1px solid"}),Su=je(function(t,n){const{className:r}=t,o=me(t,L0),s=ue(),l=D0(s);return i.jsx(H0,C({className:Pe(l.root,r),ownerState:s},o,{ref:n}))});process.env.NODE_ENV!=="production"&&(Su.propTypes={sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object])});const _0=["className"],A0=e=>{const{classes:t}=e,n={root:["overlay"]};return Xe.default(n,Te,t)},V0=Ge.styled("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)"}),So=je(function(t,n){const{className:r}=t,o=me(t,_0),s=ue(),l=A0(s);return i.jsx(V0,C({className:Pe(l.root,r),ownerState:s},o,{ref:n}))});process.env.NODE_ENV!=="production"&&(So.propTypes={sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object])});const N0=e=>{const{classes:t,open:n}=e,r={root:["menuIcon",n&&"menuOpen"],button:["menuIconButton"]};return Xe.default(r,Te,t)},$0=g.memo(e=>{var m,p,b;const{colDef:t,open:n,columnMenuId:r,columnMenuButtonId:o,iconButtonRef:s}=e,l=ke(),a=ue(),c=C({},e,{classes:a.classes}),u=N0(c),d=g.useCallback(x=>{x.preventDefault(),x.stopPropagation(),l.current.toggleColumnMenu(t.field)},[l,t.field]),h=(m=t.headerName)!=null?m:t.field;return i.jsx("div",{className:u.root,children:i.jsx(a.slots.baseTooltip,C({title:l.current.getLocaleText("columnMenuLabel"),enterDelay:1e3},(p=a.slotProps)==null?void 0:p.baseTooltip,{children:i.jsx(a.slots.baseIconButton,C({ref:s,tabIndex:-1,className:u.button,"aria-label":l.current.getLocaleText("columnMenuAriaLabel")(h),size:"small",onClick:d,"aria-haspopup":"menu","aria-expanded":n,"aria-controls":n?r:void 0,id:o},(b=a.slotProps)==null?void 0:b.baseIconButton,{children:i.jsx(a.slots.columnMenuIcon,{fontSize:"inherit"})}))}))})});function ku({columnMenuId:e,columnMenuButtonId:t,ContentComponent:n,contentComponentProps:r,field:o,open:s,target:l,onExited:a}){const c=ke(),u=c.current.getColumn(o),d=re.unstable_useEventCallback(h=>{h&&(h.stopPropagation(),l!=null&&l.contains(h.target))||c.current.hideColumnMenu()});return!l||!u?null:i.jsx(fo,{placement:`bottom-${u.align==="right"?"start":"end"}`,open:s,target:l,onClose:d,onExited:a,children:i.jsx(n,C({colDef:u,hideMenu:d,open:s,id:e,labelledby:t},r))})}process.env.NODE_ENV!=="production"&&(ku.propTypes={columnMenuButtonId:f.string,columnMenuId:f.string,ContentComponent:f.elementType.isRequired,contentComponentProps:f.any,field:f.string.isRequired,onExited:f.func,open:f.bool.isRequired,target:re.HTMLElementType});function z0(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function no(e,t){return e.closest(`.${t}`)}function Jt(e){return e.replace(/["\\]/g,"\\$&")}function G0(e,t){return e.querySelector(`[role="columnheader"][data-field="${Jt(t)}"]`)}function Iu(e){return`.${I.row}[data-id="${Jt(String(e))}"]`}function B0(e,t){return e.querySelector(Iu(t))}function W0(e,{id:t,field:n}){const r=Iu(t),o=`.${I.cell}[data-field="${Jt(n)}"]`,s=`${r} ${o}`;return e.querySelector(s)}function jr(e){return e.target.nodeType===1&&!e.currentTarget.contains(e.target)}function q0(e){return e.getAttribute("data-field")}function U0(e,t){return e.querySelector(`[data-field="${Jt(t)}"]`)}function K0(e){return e.getAttribute("data-fields").slice(2,-2).split("-|-")}function X0(e,t){var n;return Array.from((n=e.querySelectorAll(`[data-fields*="|-${Jt(t)}-|"]`))!=null?n:[])}function Y0(e,t){var l;if(!no(e,I.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,s=[];return(l=t.virtualScrollerRef)!=null&&l.current?(Pu(t).forEach(a=>{const c=a.getAttribute("data-id");if(!c)return;let u=o;const d=t.unstable_getCellColSpanInfo(c,o);d&&d.spannedByColSpan&&(u=d.leftVisibleCellIndex);const h=a.querySelector(`[data-colindex="${u}"]`);h&&s.push(h)}),s):[]}function Si(e,t){return e.rootElementRef.current.querySelector(`.${I[t]}`)}const Mu=({api:e,colIndex:t,position:n,filterFn:r})=>{if(t===null)return[];const o=[];return Pu(e).forEach(s=>{s.getAttribute("data-id")&&s.querySelectorAll(`.${I[n==="left"?"cell--pinnedLeft":"cell--pinnedRight"]}`).forEach(a=>{const c=tr(a);c!==null&&r(c)&&o.push(a)})}),o};function Z0(e,t,n){const r=tr(t);return Mu({api:e,colIndex:r,position:n?"right":"left",filterFn:o=>n?o<r:o>r})}function Q0(e,t,n){const r=tr(t);return Mu({api:e,colIndex:r,position:n?"left":"right",filterFn:o=>n?o>r:o<r})}const Eu=({api:e,colIndex:t,position:n,filterFn:r})=>{var s;if(!((s=e.columnHeadersContainerRef)!=null&&s.current))return[];if(t===null)return[];const o=[];return e.columnHeadersContainerRef.current.querySelectorAll(`.${I[n==="left"?"columnHeader--pinnedLeft":"columnHeader--pinnedRight"]}`).forEach(l=>{const a=tr(l);a!==null&&r(a,l)&&o.push(l)}),o};function J0(e,t,n){const r=tr(t);return Eu({api:e,position:n?"right":"left",colIndex:r,filterFn:o=>n?o<r:o>r})}function ex(e,t,n){const r=tr(t);return Eu({api:e,position:n?"left":"right",colIndex:r,filterFn:(o,s)=>s.classList.contains(I["columnHeader--last"])?!1:n?o>r:o<r})}function tx(e,t){return e.columnHeadersContainerRef.current.querySelector(`:scope > div > [data-field="${Jt(t)}"][role="columnheader"]`)}function nx(e,t){const n=e.virtualScrollerRef.current;return Array.from(n.querySelectorAll(`:scope > div > div > div > [data-field="${Jt(t)}"][role="gridcell"]`))}function Pu(e){return e.virtualScrollerRef.current.querySelectorAll(`:scope > div > div > .${I.row}`)}function tr(e){const t=e.getAttribute("aria-colindex");return t?Number(t)-1:null}const rx=["className","aria-label"],ox=e=>{const{classes:t}=e,n={root:["columnHeaderTitle"]};return Xe.default(n,Te,t)},sx=Ge.styled("div",{name:"MuiDataGrid",slot:"ColumnHeaderTitle",overridesResolver:(e,t)=>t.columnHeaderTitle})({textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",fontWeight:"var(--unstable_DataGrid-headWeight)",lineHeight:"normal"}),lx=je(function(t,n){const{className:r}=t,o=me(t,rx),s=ue(),l=ox(s);return i.jsx(sx,C({className:Pe(l.root,r),ownerState:s},o,{ref:n}))});function Tu(e){var c;const{label:t,description:n}=e,r=ue(),o=g.useRef(null),[s,l]=g.useState(""),a=g.useCallback(()=>{if(!n&&(o!=null&&o.current)){const u=z0(o.current);l(u?t:"")}},[n,t]);return i.jsx(r.slots.baseTooltip,C({title:n||s},(c=r.slotProps)==null?void 0:c.baseTooltip,{children:i.jsx(lx,{onMouseOver:a,ref:o,children:t})}))}process.env.NODE_ENV!=="production"&&(Tu.propTypes={columnWidth:f.number.isRequired,description:f.node,label:f.string.isRequired});const ix=["resizable","resizing","height","side"];var Qs=(function(e){return e.Left="left",e.Right="right",e})(Qs||{});const ax=e=>{const{resizable:t,resizing:n,classes:r,side:o}=e,s={root:["columnSeparator",t&&"columnSeparator--resizable",n&&"columnSeparator--resizing",o&&`columnSeparator--side${re.unstable_capitalize(o)}`],icon:["iconSeparator"]};return re.unstable_composeClasses(s,Te,r)};function Fu(e){const{height:t,side:n=Qs.Right}=e,r=me(e,ix),o=ue(),s=C({},e,{side:n,classes:o.classes}),l=ax(s),a=g.useCallback(c=>{c.preventDefault(),c.stopPropagation()},[]);return i.jsx("div",C({className:l.root,style:{minHeight:t}},r,{onClick:a,children:i.jsx(o.slots.columnResizeIcon,{className:l.icon})}))}const cx=g.memo(Fu);process.env.NODE_ENV!=="production"&&(Fu.propTypes={height:f.number.isRequired,resizable:f.bool.isRequired,resizing:f.bool.isRequired,side:f.oneOf(["left","right"])});const ux=["classes","columnMenuOpen","colIndex","height","isResizing","sortDirection","hasFocus","tabIndex","separatorSide","isDraggable","headerComponent","description","elementId","width","columnMenuIconButton","columnMenu","columnTitleIconButtons","headerClassName","label","resizable","draggableContainerProps","columnHeaderSeparatorProps","style"],ju=je(function(t,n){const{classes:r,colIndex:o,height:s,isResizing:l,sortDirection:a,tabIndex:c,separatorSide:u,isDraggable:d,headerComponent:h,description:m,width:p,columnMenuIconButton:b=null,columnMenu:x=null,columnTitleIconButtons:w=null,headerClassName:k,label:v,resizable:F,draggableContainerProps:j,columnHeaderSeparatorProps:y,style:A}=t,N=me(t,ux),M=ue(),P=g.useRef(null),R=re.unstable_useForkRef(P,n);let _="none";return a!=null&&(_=a==="asc"?"ascending":"descending"),i.jsxs("div",C({className:Pe(r.root,k),style:C({},A,{height:s,width:p}),role:"columnheader",tabIndex:c,"aria-colindex":o+1,"aria-sort":_},N,{ref:R,children:[i.jsxs("div",C({className:r.draggableContainer,draggable:d,role:"presentation"},j,{children:[i.jsxs("div",{className:r.titleContainer,role:"presentation",children:[i.jsx("div",{className:r.titleContainerContent,children:h!==void 0?h:i.jsx(Tu,{label:v,description:m,columnWidth:p})}),w]}),b]})),i.jsx(cx,C({resizable:!M.disableColumnResize&&!!F,resizing:l,height:s,side:u},y)),x]}))}),dx=e=>{const{colDef:t,classes:n,isDragging:r,sortDirection:o,showRightBorder:s,showLeftBorder:l,filterItemsCounter:a,pinnedPosition:c,isLastUnpinned:u,isSiblingFocused:d}=e,h=o!=null,m=a!=null&&a>0,p=t.type==="number",b={root:["columnHeader",t.headerAlign==="left"&&"columnHeader--alignLeft",t.headerAlign==="center"&&"columnHeader--alignCenter",t.headerAlign==="right"&&"columnHeader--alignRight",t.sortable&&"columnHeader--sortable",r&&"columnHeader--moving",h&&"columnHeader--sorted",m&&"columnHeader--filtered",p&&"columnHeader--numeric","withBorderColor",s&&"columnHeader--withRightBorder",l&&"columnHeader--withLeftBorder",c===Ie.LEFT&&"columnHeader--pinnedLeft",c===Ie.RIGHT&&"columnHeader--pinnedRight",u&&"columnHeader--lastUnpinned",d&&"columnHeader--siblingFocused"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer"],titleContainerContent:["columnHeaderTitleContainerContent"]};return re.unstable_composeClasses(b,Te,n)};function Ou(e){var K,Y,J,ne,Z;const{colDef:t,columnMenuOpen:n,colIndex:r,headerHeight:o,isResizing:s,isLast:l,sortDirection:a,sortIndex:c,filterItemsCounter:u,hasFocus:d,tabIndex:h,disableReorder:m,separatorSide:p,showLeftBorder:b,showRightBorder:x,pinnedPosition:w,pinnedOffset:k}=e,v=Et(),F=ue(),j=Gt.useRtl(),y=g.useRef(null),A=re.unstable_useId(),N=re.unstable_useId(),M=g.useRef(null),[P,R]=g.useState(n),_=g.useMemo(()=>!F.disableColumnReorder&&!m&&!t.disableReorder,[F.disableColumnReorder,m,t.disableReorder]);let O;t.renderHeader&&(O=t.renderHeader(v.current.getColumnHeaderParams(t.field)));const D=C({},e,{classes:F.classes,showRightBorder:x,showLeftBorder:b}),V=dx(D),E=g.useCallback(oe=>ee=>{jr(ee)||v.current.publishEvent(oe,v.current.getColumnHeaderParams(t.field),ee)},[v,t.field]),T=g.useMemo(()=>({onClick:E("columnHeaderClick"),onContextMenu:E("columnHeaderContextMenu"),onDoubleClick:E("columnHeaderDoubleClick"),onMouseOver:E("columnHeaderOver"),onMouseOut:E("columnHeaderOut"),onMouseEnter:E("columnHeaderEnter"),onMouseLeave:E("columnHeaderLeave"),onKeyDown:E("columnHeaderKeyDown"),onFocus:E("columnHeaderFocus"),onBlur:E("columnHeaderBlur")}),[E]),L=g.useMemo(()=>_?{onDragStart:E("columnHeaderDragStart"),onDragEnter:E("columnHeaderDragEnter"),onDragOver:E("columnHeaderDragOver"),onDragEnd:E("columnHeaderDragEnd")}:{},[_,E]),$=g.useMemo(()=>({onMouseDown:E("columnSeparatorMouseDown"),onDoubleClick:E("columnSeparatorDoubleClick")}),[E]);g.useEffect(()=>{P||R(n)},[P,n]);const G=g.useCallback(()=>{R(!1)},[]),S=!F.disableColumnMenu&&!t.disableColumnMenu&&i.jsx($0,{colDef:t,columnMenuId:A,columnMenuButtonId:N,open:P,iconButtonRef:M}),H=i.jsx(ku,{columnMenuId:A,columnMenuButtonId:N,field:t.field,open:n,target:M.current,ContentComponent:F.slots.columnMenu,contentComponentProps:(K=F.slotProps)==null?void 0:K.columnMenu,onExited:G}),z=(Y=t.sortingOrder)!=null?Y:F.sortingOrder,q=(t.sortable||a!=null)&&!t.hideSortIcons&&!F.disableColumnSorting,U=i.jsxs(g.Fragment,{children:[!F.disableColumnFilter&&i.jsx(F.slots.columnHeaderFilterIconButton,C({field:t.field,counter:u},(J=F.slotProps)==null?void 0:J.columnHeaderFilterIconButton)),q&&i.jsx(F.slots.columnHeaderSortIcon,C({field:t.field,direction:a,index:c,sortingOrder:z,disabled:!t.sortable},(ne=F.slotProps)==null?void 0:ne.columnHeaderSortIcon))]});g.useLayoutEffect(()=>{const oe=v.current.state.columnMenu;if(d&&!oe.open){const ae=y.current.querySelector('[tabindex="0"]')||y.current;if(!ae)return;if(Zs())ae.focus({preventScroll:!0});else{const fe=v.current.getScrollPosition();ae.focus(),v.current.scroll(fe)}}},[v,d]);const Q=typeof t.headerClassName=="function"?t.headerClassName({field:t.field,colDef:t}):t.headerClassName,X=(Z=t.headerName)!=null?Z:t.field,W=g.useMemo(()=>vo(C({},e.style),j,w,k),[w,k,e.style,j]);return i.jsx(ju,C({ref:y,classes:V,columnMenuOpen:n,colIndex:r,height:o,isResizing:s,sortDirection:a,hasFocus:d,tabIndex:h,separatorSide:p,isDraggable:_,headerComponent:O,description:t.description,elementId:t.field,width:t.computedWidth,columnMenuIconButton:S,columnTitleIconButtons:U,headerClassName:Pe(Q,l&&I["columnHeader--last"]),label:X,resizable:!F.disableColumnResize&&!!t.resizable,"data-field":t.field,columnMenu:H,draggableContainerProps:L,columnHeaderSeparatorProps:$,style:W},T))}process.env.NODE_ENV!=="production"&&(Ou.propTypes={colDef:f.object.isRequired,colIndex:f.number.isRequired,columnMenuOpen:f.bool.isRequired,disableReorder:f.bool,filterItemsCounter:f.number,hasFocus:f.bool,headerHeight:f.number.isRequired,isDragging:f.bool.isRequired,isLast:f.bool.isRequired,isLastUnpinned:f.bool.isRequired,isResizing:f.bool.isRequired,isSiblingFocused:f.bool.isRequired,pinnedOffset:f.number,pinnedPosition:f.oneOf([0,1,2,3]),separatorSide:f.oneOf(["left","right"]),showLeftBorder:f.bool.isRequired,showRightBorder:f.bool.isRequired,sortDirection:f.oneOf(["asc","desc"]),sortIndex:f.number,style:f.object,tabIndex:f.oneOf([-1,0]).isRequired});const fx=Zt(Ou),hx=["className"],gx=e=>{const{classes:t}=e,n={root:["iconButtonContainer"]};return Xe.default(n,Te,t)},mx=Ge.styled("div",{name:"MuiDataGrid",slot:"IconButtonContainer",overridesResolver:(e,t)=>t.iconButtonContainer})(()=>({display:"flex",visibility:"hidden",width:0})),Ru=je(function(t,n){const{className:r}=t,o=me(t,hx),s=ue(),l=gx(s);return i.jsx(mx,C({className:Pe(l.root,r),ownerState:s},o,{ref:n}))}),px=["direction","index","sortingOrder","disabled","className"],bx=e=>{const{classes:t}=e,n={root:["sortButton"],icon:["sortIcon"]};return Xe.default(n,Te,t)};function Cx(e,t,n,r){let o;const s={};return t==="asc"?o=e.columnSortedAscendingIcon:t==="desc"?o=e.columnSortedDescendingIcon:(o=e.columnUnsortedIcon,s.sortingOrder=r),o?i.jsx(o,C({fontSize:"small",className:n},s)):null}function Lu(e){var p;const{direction:t,index:n,sortingOrder:r,disabled:o,className:s}=e,l=me(e,px),a=ke(),c=ue(),u=C({},e,{classes:c.classes}),d=bx(u),h=Cx(c.slots,t,d.icon,r);if(!h)return null;const m=i.jsx(c.slots.baseIconButton,C({tabIndex:-1,"aria-label":a.current.getLocaleText("columnHeaderSortIconLabel"),title:a.current.getLocaleText("columnHeaderSortIconLabel"),size:"small",disabled:o,className:Pe(d.root,s)},(p=c.slotProps)==null?void 0:p.baseIconButton,l,{children:h}));return i.jsxs(Ru,{children:[n!=null&&i.jsx(c.slots.baseBadge,{badgeContent:n,color:"default",overlap:"circular",children:m}),n==null&&m]})}const wx=g.memo(Lu);process.env.NODE_ENV!=="production"&&(Lu.propTypes={className:f.string,direction:f.oneOf(["asc","desc"]),disabled:f.bool,field:f.string.isRequired,index:f.number,sortingOrder:f.arrayOf(f.oneOf(["asc","desc"])).isRequired});const xx=e=>{const{classes:t}=e,n={icon:["filterIcon"]};return re.unstable_composeClasses(n,Te,t)};function Du(e){return e.counter?i.jsx(Hu,C({},e)):null}process.env.NODE_ENV!=="production"&&(Du.propTypes={counter:f.number,field:f.string.isRequired,onClick:f.func});function Hu(e){var p,b;const{counter:t,field:n,onClick:r}=e,o=ke(),s=ue(),l=C({},e,{classes:s.classes}),a=xx(l),c=re.unstable_useId(),u=br(o,Ww,c),d=re.unstable_useId(),h=g.useCallback(x=>{x.preventDefault(),x.stopPropagation();const{open:w,openedPanelValue:k}=xr(o.current.state);w&&k===bn.filters?o.current.hideFilterPanel():o.current.showFilterPanel(void 0,d,c),r&&r(o.current.getColumnHeaderParams(n),x)},[o,n,r,d,c]);if(!t)return null;const m=i.jsx(s.slots.baseIconButton,C({id:c,onClick:h,color:"default","aria-label":o.current.getLocaleText("columnHeaderFiltersLabel"),size:"small",tabIndex:-1,"aria-haspopup":"menu","aria-expanded":u,"aria-controls":u?d:void 0},(p=s.slotProps)==null?void 0:p.baseIconButton,{children:i.jsx(s.slots.columnFilteredIcon,{className:a.icon,fontSize:"small"})}));return i.jsx(s.slots.baseTooltip,C({title:o.current.getLocaleText("columnHeaderFiltersTooltipActive")(t),enterDelay:1e3},(b=s.slotProps)==null?void 0:b.baseTooltip,{children:i.jsxs(Ru,{children:[t>1&&i.jsx(s.slots.baseBadge,{badgeContent:t,color:"default",children:m}),t===1&&m]})}))}process.env.NODE_ENV!=="production"&&(Hu.propTypes={counter:f.number,field:f.string.isRequired,onClick:f.func});const ki=ze.createSvgIcon(i.jsx("path",{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward"),Ii=ze.createSvgIcon(i.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward"),Mi=ze.createSvgIcon(i.jsx("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"KeyboardArrowRight"),Ei=ze.createSvgIcon(i.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),yx=ze.createSvgIcon(i.jsx("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"}),"FilterList"),Pi=ze.createSvgIcon(i.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"),vx=ze.createSvgIcon(i.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");ze.createSvgIcon(i.jsx("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu");ze.createSvgIcon(i.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckCircle");const Sx=ze.createSvgIcon(i.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"),kx=ze.createSvgIcon(i.jsx("rect",{width:"1",height:"24",x:"11.5",rx:"0.5"}),"Separator"),Ix=ze.createSvgIcon(i.jsx("path",{d:"M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z"}),"ViewHeadline"),Mx=ze.createSvgIcon(i.jsx("path",{d:"M21,8H3V4h18V8z M21,10H3v4h18V10z M21,16H3v4h18V16z"}),"TableRows"),Ex=ze.createSvgIcon(i.jsx("path",{d:"M4 18h17v-6H4v6zM4 5v6h17V5H4z"}),"ViewStream"),Px=ze.createSvgIcon(i.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"),Wo=ze.createSvgIcon(i.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"),Ti=ze.createSvgIcon(i.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add"),Tx=ze.createSvgIcon(i.jsx("path",{d:"M19 13H5v-2h14v2z"}),"Remove"),Fx=ze.createSvgIcon(i.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"),Fi=ze.createSvgIcon(i.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"),jx=ze.createSvgIcon(i.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"),Ox=ze.createSvgIcon(i.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),Rx=ze.createSvgIcon(i.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"),Lx=ze.createSvgIcon(i.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"),Dx=ze.createSvgIcon(i.jsx("g",{children:i.jsx("path",{d:"M14.67,5v14H9.33V5H14.67z M15.67,19H21V5h-5.33V19z M8.33,19V5H3v14H8.33z"})}),"ViewColumn"),Hx=ze.createSvgIcon(i.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");ze.createSvgIcon(i.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}),"Delete");const _x=ze.createSvgIcon(i.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");function _u(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey}const ro=e=>e.indexOf("Arrow")===0||e.indexOf("Page")===0||e===" "||e==="Home"||e==="End",Ax=e=>!!e.key,Au=e=>e==="Tab"||e==="Escape";function Vu(e){return(e.ctrlKey||e.metaKey)&&String.fromCharCode(e.keyCode)==="V"&&!e.shiftKey&&!e.altKey}function Vx(e){return(e.ctrlKey||e.metaKey)&&String.fromCharCode(e.keyCode)==="C"&&!e.shiftKey&&!e.altKey}const Nx=["hideMenu","colDef","id","labelledby","className","children","open"],$x=ge.styled(ps.default)(()=>({minWidth:248})),Nu=je(function(t,n){const{hideMenu:r,id:o,labelledby:s,className:l,children:a,open:c}=t,u=me(t,Nx),d=g.useCallback(h=>{h.key==="Tab"&&h.preventDefault(),Au(h.key)&&r(h)},[r]);return i.jsx($x,C({id:o,className:Pe(I.menuList,l),"aria-labelledby":s,onKeyDown:d,autoFocus:c},u,{ref:n,children:a}))});process.env.NODE_ENV!=="production"&&(Nu.propTypes={colDef:f.object.isRequired,hideMenu:f.func.isRequired,id:f.string,labelledby:f.string,open:f.bool.isRequired});const zx=["displayOrder"],Gx=e=>{const t=Et(),n=ue(),{defaultSlots:r,defaultSlotProps:o,slots:s={},slotProps:l={},hideMenu:a,colDef:c,addDividers:u=!0}=e,d=g.useMemo(()=>C({},r,s),[r,s]),h=g.useMemo(()=>{if(!l||Object.keys(l).length===0)return o;const b=C({},l);return Object.entries(o).forEach(([x,w])=>{b[x]=C({},w,l[x]||{})}),b},[o,l]),m=t.current.unstable_applyPipeProcessors("columnMenu",[],e.colDef),p=g.useMemo(()=>{const b=Object.keys(r);return Object.keys(s).filter(x=>!b.includes(x))},[s,r]);return g.useMemo(()=>{const w=Array.from(new Set([...m,...p])).filter(k=>d[k]!=null).sort((k,v)=>{const F=h[k],j=h[v],y=Number.isFinite(F==null?void 0:F.displayOrder)?F.displayOrder:100,A=Number.isFinite(j==null?void 0:j.displayOrder)?j.displayOrder:100;return y-A});return w.reduce((k,v,F)=>{let j={colDef:c,onClick:a};const y=h[v];if(y){const A=me(y,zx);j=C({},j,A)}return u&&F!==w.length-1?[...k,[d[v],j],[n.slots.baseDivider,{}]]:[...k,[d[v],j]]},[])},[u,c,m,a,d,h,p,n.slots.baseDivider])};function $u(e){const{colDef:t,onClick:n}=e,r=ke(),o=ue(),a=Ke(r).filter(u=>u.disableColumnMenu!==!0).length===1,c=g.useCallback(u=>{a||(r.current.setColumnVisibility(t.field,!1),n(u))},[r,t.field,n,a]);return o.disableColumnSelector||t.hideable===!1?null:i.jsxs(Xt.default,{onClick:c,disabled:a,children:[i.jsx(_n.default,{children:i.jsx(o.slots.columnMenuHideIcon,{fontSize:"small"})}),i.jsx(An.default,{children:r.current.getLocaleText("columnMenuHideColumn")})]})}process.env.NODE_ENV!=="production"&&($u.propTypes={colDef:f.object.isRequired,onClick:f.func.isRequired});function zu(e){const{onClick:t}=e,n=ke(),r=ue(),o=g.useCallback(s=>{t(s),n.current.showPreferences(bn.columns)},[n,t]);return r.disableColumnSelector?null:i.jsxs(Xt.default,{onClick:o,children:[i.jsx(_n.default,{children:i.jsx(r.slots.columnMenuManageColumnsIcon,{fontSize:"small"})}),i.jsx(An.default,{children:n.current.getLocaleText("columnMenuManageColumns")})]})}process.env.NODE_ENV!=="production"&&(zu.propTypes={colDef:f.object.isRequired,onClick:f.func.isRequired});function Gu(e){return i.jsxs(g.Fragment,{children:[i.jsx($u,C({},e)),i.jsx(zu,C({},e))]})}process.env.NODE_ENV!=="production"&&(Gu.propTypes={colDef:f.object.isRequired,onClick:f.func.isRequired});function Bu(e){const{colDef:t,onClick:n}=e,r=ke(),o=ue(),s=g.useCallback(l=>{n(l),r.current.showFilterPanel(t.field)},[r,t.field,n]);return o.disableColumnFilter||!t.filterable?null:i.jsxs(Xt.default,{onClick:s,children:[i.jsx(_n.default,{children:i.jsx(o.slots.columnMenuFilterIcon,{fontSize:"small"})}),i.jsx(An.default,{children:r.current.getLocaleText("columnMenuFilter")})]})}process.env.NODE_ENV!=="production"&&(Bu.propTypes={colDef:f.object.isRequired,onClick:f.func.isRequired});function Wu(e){var d;const{colDef:t,onClick:n}=e,r=ke(),o=te(r,jt),s=ue(),l=g.useMemo(()=>{if(!t)return null;const h=o.find(m=>m.field===t.field);return h==null?void 0:h.sort},[t,o]),a=(d=t.sortingOrder)!=null?d:s.sortingOrder,c=g.useCallback(h=>{n(h);const m=h.currentTarget.getAttribute("data-value")||null;r.current.sortColumn(t.field,m===l?null:m)},[r,t,n,l]);if(s.disableColumnSorting||!t||!t.sortable||!a.some(h=>!!h))return null;const u=h=>{const m=r.current.getLocaleText(h);return typeof m=="function"?m(t):m};return i.jsxs(g.Fragment,{children:[a.includes("asc")&&l!=="asc"?i.jsxs(Xt.default,{onClick:c,"data-value":"asc",children:[i.jsx(_n.default,{children:i.jsx(s.slots.columnMenuSortAscendingIcon,{fontSize:"small"})}),i.jsx(An.default,{children:u("columnMenuSortAsc")})]}):null,a.includes("desc")&&l!=="desc"?i.jsxs(Xt.default,{onClick:c,"data-value":"desc",children:[i.jsx(_n.default,{children:i.jsx(s.slots.columnMenuSortDescendingIcon,{fontSize:"small"})}),i.jsx(An.default,{children:u("columnMenuSortDesc")})]}):null,a.includes(null)&&l!=null?i.jsxs(Xt.default,{onClick:c,children:[i.jsx(_n.default,{}),i.jsx(An.default,{children:r.current.getLocaleText("columnMenuUnsort")})]}):null]})}process.env.NODE_ENV!=="production"&&(Wu.propTypes={colDef:f.object.isRequired,onClick:f.func.isRequired});const Bx=["defaultSlots","defaultSlotProps","slots","slotProps"],Wx={columnMenuSortItem:Wu,columnMenuFilterItem:Bu,columnMenuColumnsItem:Gu},qx={columnMenuSortItem:{displayOrder:10},columnMenuFilterItem:{displayOrder:20},columnMenuColumnsItem:{displayOrder:30}},qu=je(function(t,n){const{defaultSlots:r,defaultSlotProps:o,slots:s,slotProps:l}=t,a=me(t,Bx),c=Gx(C({},a,{defaultSlots:r,defaultSlotProps:o,slots:s,slotProps:l}));return i.jsx(Nu,C({},a,{ref:n,children:c.map(([u,d],h)=>i.jsx(u,C({},d),h))}))});process.env.NODE_ENV!=="production"&&(qu.propTypes={colDef:f.object.isRequired,defaultSlotProps:f.object.isRequired,defaultSlots:f.object.isRequired,hideMenu:f.func.isRequired,id:f.string,labelledby:f.string,open:f.bool.isRequired,slotProps:f.object,slots:f.object});const Uu=je(function(t,n){return i.jsx(qu,C({},t,{ref:n,defaultSlots:Wx,defaultSlotProps:qx}))});process.env.NODE_ENV!=="production"&&(Uu.propTypes={colDef:f.object.isRequired,hideMenu:f.func.isRequired,id:f.string,labelledby:f.string,open:f.bool.isRequired,slotProps:f.object,slots:f.object});const Ux=["className","slotProps"],Kx=e=>{const{classes:t}=e,n={root:["panelWrapper"]};return Xe.default(n,Te,t)},Xx=ge.styled("div",{name:"MuiDataGrid",slot:"PanelWrapper",overridesResolver:(e,t)=>t.panelWrapper})({display:"flex",flexDirection:"column",flex:1,"&:focus":{outline:0}}),Yx=()=>!0,Js=je(function(t,n){const{className:r,slotProps:o={}}=t,s=me(t,Ux),l=ue(),a=Kx(l);return i.jsx(Th.default,C({open:!0,disableEnforceFocus:!0,isEnabled:Yx},o.TrapFocus,{children:i.jsx(Xx,C({tabIndex:-1,className:Pe(a.root,r),ownerState:l},s,{ref:n}))}))});process.env.NODE_ENV!=="production"&&(Js.propTypes={slotProps:f.object});function Ku(e){var n;const t=ue();return i.jsx(Js,C({},e,{children:i.jsx(t.slots.columnsManagement,C({},(n=t.slotProps)==null?void 0:n.columnsManagement))}))}process.env.NODE_ENV!=="production"&&(Ku.propTypes={slotProps:f.object});const Zx=["children","className","classes"],Qx=re.unstable_generateUtilityClasses("MuiDataGrid",["panel","paper"]),Jx=ge.styled(bs.default,{name:"MuiDataGrid",slot:"Panel",overridesResolver:(e,t)=>t.panel})(({theme:e})=>({zIndex:e.zIndex.modal})),e2=ge.styled(da.default,{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"})),Xu=je((e,t)=>{const{children:n,className:r}=e,o=me(e,Zx),s=ke(),l=ue(),a=Qx,[c,u]=g.useState(!1),d=g.useCallback(()=>{s.current.hidePreferences()},[s]),h=g.useCallback(x=>{x.key==="Escape"&&s.current.hidePreferences()},[s]),m=g.useMemo(()=>[{name:"flip",enabled:!0,options:{rootBoundary:"document"}},{name:"isPlaced",enabled:!0,phase:"main",fn:()=>{u(!0)},effect:()=>()=>{u(!1)}}],[]),[p,b]=g.useState(null);return g.useEffect(()=>{var w,k;const x=(k=(w=s.current.rootElementRef)==null?void 0:w.current)==null?void 0:k.querySelector('[data-id="gridPanelAnchor"]');x&&b(x)},[s]),p?i.jsx(Jx,C({placement:"bottom-start",className:Pe(a.panel,r),ownerState:l,anchorEl:p,modifiers:m},o,{ref:t,children:i.jsx(ua.default,{mouseEvent:"onPointerUp",touchEvent:!1,onClickAway:d,children:i.jsx(e2,{className:a.paper,ownerState:l,elevation:8,onKeyDown:h,children:c&&n})})})):null});process.env.NODE_ENV!=="production"&&(Xu.propTypes={children:f.node,classes:f.object,open:f.bool.isRequired,ownerState:f.object});const t2=["className"],n2=e=>{const{classes:t}=e,n={root:["panelContent"]};return Xe.default(n,Te,t)},r2=Ge.styled("div",{name:"MuiDataGrid",slot:"PanelContent",overridesResolver:(e,t)=>t.panelContent})({display:"flex",flexDirection:"column",overflow:"auto",flex:"1 1",maxHeight:400});function Yu(e){const{className:t}=e,n=me(e,t2),r=ue(),o=n2(r);return i.jsx(r2,C({className:Pe(o.root,t),ownerState:r},n))}process.env.NODE_ENV!=="production"&&(Yu.propTypes={sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object])});const o2=["className"],s2=e=>{const{classes:t}=e,n={root:["panelFooter"]};return Xe.default(n,Te,t)},l2=Ge.styled("div",{name:"MuiDataGrid",slot:"PanelFooter",overridesResolver:(e,t)=>t.panelFooter})(({theme:e})=>({padding:e.spacing(.5),display:"flex",justifyContent:"space-between"}));function Zu(e){const{className:t}=e,n=me(e,o2),r=ue(),o=s2(r);return i.jsx(l2,C({className:Pe(o.root,t),ownerState:r},n))}process.env.NODE_ENV!=="production"&&(Zu.propTypes={sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object])});const i2=["item","hasMultipleFilters","deleteFilter","applyFilterChanges","showMultiFilterOperators","disableMultiFilterOperator","applyMultiFilterOperatorChanges","focusElementRef","logicOperators","columnsSort","filterColumns","deleteIconProps","logicOperatorInputProps","operatorInputProps","columnInputProps","valueInputProps","readOnly","children"],a2=["InputComponentProps"],c2=e=>{const{classes:t}=e,n={root:["filterForm"],deleteIcon:["filterFormDeleteIcon"],logicOperatorInput:["filterFormLogicOperatorInput"],columnInput:["filterFormColumnInput"],operatorInput:["filterFormOperatorInput"],valueInput:["filterFormValueInput"]};return re.unstable_composeClasses(n,Te,t)},u2=ge.styled("div",{name:"MuiDataGrid",slot:"FilterForm",overridesResolver:(e,t)=>t.filterForm})(({theme:e})=>({display:"flex",padding:e.spacing(1)})),d2=ge.styled("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)})),f2=ge.styled("div",{name:"MuiDataGrid",slot:"FilterFormLogicOperatorInput",overridesResolver:(e,t)=>t.filterFormLogicOperatorInput})({minWidth:55,marginRight:5,justifyContent:"end"}),h2=ge.styled("div",{name:"MuiDataGrid",slot:"FilterFormColumnInput",overridesResolver:(e,t)=>t.filterFormColumnInput})({width:150}),g2=ge.styled("div",{name:"MuiDataGrid",slot:"FilterFormOperatorInput",overridesResolver:(e,t)=>t.filterFormOperatorInput})({width:150}),m2=ge.styled("div",{name:"MuiDataGrid",slot:"FilterFormValueInput",overridesResolver:(e,t)=>t.filterFormValueInput})({width:190}),p2=e=>{switch(e){case mt.And:return"filterPanelOperatorAnd";case mt.Or:return"filterPanelOperatorOr";default:throw new Error("MUI X: Invalid `logicOperator` property in the `GridFilterPanel`.")}},ir=e=>e.headerName||e.field,ji=new Intl.Collator,is=je(function(t,n){var ae,fe,xe,pe,Me,Re,Je,De,Oe,Ye,qe;const{item:r,hasMultipleFilters:o,deleteFilter:s,applyFilterChanges:l,showMultiFilterOperators:a,disableMultiFilterOperator:c,applyMultiFilterOperatorChanges:u,focusElementRef:d,logicOperators:h=[mt.And,mt.Or],columnsSort:m,filterColumns:p,deleteIconProps:b={},logicOperatorInputProps:x={},operatorInputProps:w={},columnInputProps:k={},valueInputProps:v={},readOnly:F}=t,j=me(t,i2),y=ke(),A=te(y,Qt),N=te(y,vc),M=te(y,ut),P=re.unstable_useId(),R=re.unstable_useId(),_=re.unstable_useId(),O=re.unstable_useId(),D=ue(),V=c2(D),E=g.useRef(null),T=g.useRef(null),L=(ae=M.logicOperator)!=null?ae:mt.And,$=o&&h.length>0,G=((fe=D.slotProps)==null?void 0:fe.baseFormControl)||{},H=(pe=(((xe=D.slotProps)==null?void 0:xe.baseSelect)||{}).native)!=null?pe:!1,z=((Me=D.slotProps)==null?void 0:Me.baseInputLabel)||{},q=((Re=D.slotProps)==null?void 0:Re.baseSelectOption)||{},{InputComponentProps:U}=v,Q=me(v,a2),{filteredColumns:X,selectedField:W}=g.useMemo(()=>{let we=r.field;const He=A[r.field].filterable===!1?A[r.field]:null;if(He)return{filteredColumns:[He],selectedField:we};if(p===void 0||typeof p!="function")return{filteredColumns:N,selectedField:we};const ve=p({field:r.field,columns:N,currentFilters:(M==null?void 0:M.items)||[]});return{filteredColumns:N.filter(ce=>{const ye=ve.includes(ce.field);return ce.field===r.field&&!ye&&(we=void 0),ye}),selectedField:we}},[p,M==null?void 0:M.items,N,r.field,A]),K=g.useMemo(()=>{switch(m){case"asc":return X.sort((we,He)=>ji.compare(ir(we),ir(He)));case"desc":return X.sort((we,He)=>-ji.compare(ir(we),ir(He)));default:return X}},[X,m]),Y=r.field?y.current.getColumn(r.field):null,J=g.useMemo(()=>{var we;return!r.operator||!Y?null:(we=Y.filterOperators)==null?void 0:we.find(He=>He.value===r.operator)},[r,Y]),ne=g.useCallback(we=>{const He=we.target.value,ve=y.current.getColumn(He);if(ve.field===Y.field)return;const ce=ve.filterOperators.find(Ze=>Ze.value===r.operator)||ve.filterOperators[0];let Ce=!ce.InputComponent||ce.InputComponent!==(J==null?void 0:J.InputComponent)||ve.type!==Y.type?void 0:r.value;if(ve.type==="singleSelect"&&Ce!==void 0){const Ze=ve,ot=pn(Ze);Array.isArray(Ce)?Ce=Ce.filter(Qe=>Jr(Qe,ot,Ze==null?void 0:Ze.getOptionValue)!==void 0):Jr(r.value,ot,Ze==null?void 0:Ze.getOptionValue)===void 0&&(Ce=void 0)}l(C({},r,{field:He,operator:ce.value,value:Ce}))},[y,l,r,Y,J]),Z=g.useCallback(we=>{const He=we.target.value,ve=Y==null?void 0:Y.filterOperators.find(ye=>ye.value===He),ce=!(ve!=null&&ve.InputComponent)||(ve==null?void 0:ve.InputComponent)!==(J==null?void 0:J.InputComponent);l(C({},r,{operator:He,value:ce?void 0:r.value}))},[l,r,Y,J]),oe=g.useCallback(we=>{const He=we.target.value===mt.And.toString()?mt.And:mt.Or;u(He)},[u]),ee=()=>{s(r)};return g.useImperativeHandle(d,()=>({focus:()=>{var we;J!=null&&J.InputComponent?(we=E==null?void 0:E.current)==null||we.focus():T.current.focus()}}),[J]),i.jsxs(u2,C({className:V.root,"data-id":r.id,ownerState:D},j,{ref:n,children:[i.jsx(d2,C({variant:"standard",as:D.slots.baseFormControl},G,b,{className:Pe(V.deleteIcon,G.className,b.className),ownerState:D,children:i.jsx(D.slots.baseIconButton,C({"aria-label":y.current.getLocaleText("filterPanelDeleteIconLabel"),title:y.current.getLocaleText("filterPanelDeleteIconLabel"),onClick:ee,size:"small",disabled:F},(Je=D.slotProps)==null?void 0:Je.baseIconButton,{children:i.jsx(D.slots.filterPanelDeleteIcon,{fontSize:"small"})}))})),i.jsx(f2,C({variant:"standard",as:D.slots.baseFormControl},G,x,{sx:[$?{display:"flex"}:{display:"none"},a?{visibility:"visible"}:{visibility:"hidden"},G.sx,x.sx],className:Pe(V.logicOperatorInput,G.className,x.className),ownerState:D,children:i.jsx(D.slots.baseSelect,C({inputProps:{"aria-label":y.current.getLocaleText("filterPanelLogicOperator")},value:L!=null?L:"",onChange:oe,disabled:!!c||h.length===1,native:H},(De=D.slotProps)==null?void 0:De.baseSelect,{children:h.map(we=>se.createElement(D.slots.baseSelectOption,C({},q,{native:H,key:we.toString(),value:we.toString()}),y.current.getLocaleText(p2(we))))}))})),i.jsxs(h2,C({variant:"standard",as:D.slots.baseFormControl},G,k,{className:Pe(V.columnInput,G.className,k.className),ownerState:D,children:[i.jsx(D.slots.baseInputLabel,C({},z,{htmlFor:P,id:R,children:y.current.getLocaleText("filterPanelColumns")})),i.jsx(D.slots.baseSelect,C({labelId:R,id:P,label:y.current.getLocaleText("filterPanelColumns"),value:W!=null?W:"",onChange:ne,native:H,disabled:F},(Oe=D.slotProps)==null?void 0:Oe.baseSelect,{children:K.map(we=>se.createElement(D.slots.baseSelectOption,C({},q,{native:H,key:we.field,value:we.field}),ir(we)))}))]})),i.jsxs(g2,C({variant:"standard",as:D.slots.baseFormControl},G,w,{className:Pe(V.operatorInput,G.className,w.className),ownerState:D,children:[i.jsx(D.slots.baseInputLabel,C({},z,{htmlFor:_,id:O,children:y.current.getLocaleText("filterPanelOperator")})),i.jsx(D.slots.baseSelect,C({labelId:O,label:y.current.getLocaleText("filterPanelOperator"),id:_,value:r.operator,onChange:Z,native:H,inputRef:T,disabled:F},(Ye=D.slotProps)==null?void 0:Ye.baseSelect,{children:(qe=Y==null?void 0:Y.filterOperators)==null?void 0:qe.map(we=>se.createElement(D.slots.baseSelectOption,C({},q,{native:H,key:we.value,value:we.value}),we.label||y.current.getLocaleText(`filterOperator${re.unstable_capitalize(we.value)}`)))}))]})),i.jsx(m2,C({variant:"standard",as:D.slots.baseFormControl},G,Q,{className:Pe(V.valueInput,G.className,Q.className),ownerState:D,children:J!=null&&J.InputComponent?i.jsx(J.InputComponent,C({apiRef:y,item:r,applyValue:l,focusElementRef:E,disabled:F},J.InputComponentProps,U),r.field):null}))]}))});process.env.NODE_ENV!=="production"&&(is.propTypes={applyFilterChanges:f.func.isRequired,applyMultiFilterOperatorChanges:f.func.isRequired,children:f.node,columnInputProps:f.any,columnsSort:f.oneOf(["asc","desc"]),deleteFilter:f.func.isRequired,deleteIconProps:f.any,disableMultiFilterOperator:f.bool,filterColumns:f.func,focusElementRef:f.oneOfType([f.func,f.object]),hasMultipleFilters:f.bool.isRequired,item:f.shape({field:f.string.isRequired,id:f.oneOfType([f.number,f.string]),operator:f.string.isRequired,value:f.any}).isRequired,logicOperatorInputProps:f.any,logicOperators:f.arrayOf(f.oneOf(["and","or"]).isRequired),operatorInputProps:f.any,readOnly:f.bool,showMultiFilterOperators:f.bool,valueInputProps:f.any});const b2=["logicOperators","columnsSort","filterFormProps","getColumnForNewFilter","children","disableAddFilterButton","disableRemoveAllButton"],Oi=e=>({field:e.field,operator:e.filterOperators[0].value,id:Math.round(Math.random()*1e5)}),Qu=je(function(t,n){var O,D;const r=ke(),o=ue(),s=te(r,ut),l=te(r,vc),a=te(r,tb),c=g.useRef(null),u=g.useRef(null),{logicOperators:d=[mt.And,mt.Or],columnsSort:h,filterFormProps:m,getColumnForNewFilter:p,disableAddFilterButton:b=!1,disableRemoveAllButton:x=!1}=t,w=me(t,b2),k=r.current.upsertFilterItem,v=g.useCallback(V=>{r.current.setFilterLogicOperator(V)},[r]),F=g.useCallback(()=>{let V;if(p&&typeof p=="function"){const E=p({currentFilters:(s==null?void 0:s.items)||[],columns:l});if(E===null)return null;V=l.find(({field:T})=>T===E)}else V=l.find(E=>{var T;return(T=E.filterOperators)==null?void 0:T.length});return V?Oi(V):null},[s==null?void 0:s.items,l,p]),j=g.useCallback(()=>{if(p===void 0||typeof p!="function")return F();const V=s.items.length?s.items:[F()].filter(Boolean),E=p({currentFilters:V,columns:l});if(E===null)return null;const T=l.find(({field:L})=>L===E);return T?Oi(T):null},[s.items,l,p,F]),y=g.useMemo(()=>s.items.length?s.items:(u.current||(u.current=F()),u.current?[u.current]:[]),[s.items,F]),A=y.length>1,{readOnlyFilters:N,validFilters:M}=g.useMemo(()=>y.reduce((V,E)=>(a[E.field]?V.validFilters.push(E):V.readOnlyFilters.push(E),V),{readOnlyFilters:[],validFilters:[]}),[y,a]),P=g.useCallback(()=>{const V=j();V&&r.current.upsertFilterItems([...y,V])},[r,j,y]),R=g.useCallback(V=>{const E=M.length===1;r.current.deleteFilterItem(V),E&&r.current.hideFilterPanel()},[r,M.length]),_=g.useCallback(()=>M.length===1&&M[0].value===void 0?(r.current.deleteFilterItem(M[0]),r.current.hideFilterPanel()):r.current.setFilterModel(C({},s,{items:N}),"removeAllFilterItems"),[r,N,s,M]);return g.useEffect(()=>{d.length>0&&s.logicOperator&&!d.includes(s.logicOperator)&&v(d[0])},[d,v,s.logicOperator]),g.useEffect(()=>{M.length>0&&c.current.focus()},[M.length]),i.jsxs(Js,C({},w,{ref:n,children:[i.jsxs(Yu,{children:[N.map((V,E)=>i.jsx(is,C({item:V,applyFilterChanges:k,deleteFilter:R,hasMultipleFilters:A,showMultiFilterOperators:E>0,disableMultiFilterOperator:E!==1,applyMultiFilterOperatorChanges:v,focusElementRef:null,readOnly:!0,logicOperators:d,columnsSort:h},m),V.id==null?E:V.id)),M.map((V,E)=>i.jsx(is,C({item:V,applyFilterChanges:k,deleteFilter:R,hasMultipleFilters:A,showMultiFilterOperators:N.length+E>0,disableMultiFilterOperator:N.length+E!==1,applyMultiFilterOperatorChanges:v,focusElementRef:E===M.length-1?c:null,logicOperators:d,columnsSort:h},m),V.id==null?E+N.length:V.id))]}),!o.disableMultipleColumnsFiltering&&!(b&&x)?i.jsxs(Zu,{children:[b?i.jsx("span",{}):i.jsx(o.slots.baseButton,C({onClick:P,startIcon:i.jsx(o.slots.filterPanelAddIcon,{})},(O=o.slotProps)==null?void 0:O.baseButton,{children:r.current.getLocaleText("filterPanelAddFilter")})),!x&&M.length>0?i.jsx(o.slots.baseButton,C({onClick:_,startIcon:i.jsx(o.slots.filterPanelRemoveAllIcon,{})},(D=o.slotProps)==null?void 0:D.baseButton,{children:r.current.getLocaleText("filterPanelRemoveAll")})):null]}):null]}))});process.env.NODE_ENV!=="production"&&(Qu.propTypes={children:f.node,columnsSort:f.oneOf(["asc","desc"]),disableAddFilterButton:f.bool,disableRemoveAllButton:f.bool,filterFormProps:f.shape({columnInputProps:f.any,columnsSort:f.oneOf(["asc","desc"]),deleteIconProps:f.any,filterColumns:f.func,logicOperatorInputProps:f.any,operatorInputProps:f.any,valueInputProps:f.any}),getColumnForNewFilter:f.func,logicOperators:f.arrayOf(f.oneOf(["and","or"]).isRequired),sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object])});const C2=(e,t)=>{const n=new Set(Object.keys(e).filter(s=>e[s]===!1)),r=new Set(Object.keys(t).filter(s=>t[s]===!1));if(n.size!==r.size)return!1;let o=!0;return n.forEach(s=>{r.has(s)||(o=!1)}),o},w2=(e,t)=>(e.headerName||e.field).toLowerCase().indexOf(t)>-1,x2=e=>{const{classes:t}=e,n={root:["columnsManagement"],header:["columnsManagementHeader"],searchInput:["columnsManagementSearchInput"],footer:["columnsManagementFooter"],row:["columnsManagementRow"]};return Xe.default(n,Te,t)},Ri=new Intl.Collator;function Ju(e){var E,T,L,$;const t=ke(),n=g.useRef(null),r=te(t,It),o=Bt.default(()=>St(t)).current,s=te(t,St),l=ue(),[a,c]=g.useState(""),u=x2(l),{sort:d,searchPredicate:h=w2,autoFocusSearchField:m=!0,disableShowHideToggle:p=!1,disableResetButton:b=!1,toggleAllMode:x="all",getTogglableColumns:w,searchInputProps:k}=e,v=g.useMemo(()=>C2(s,o),[s,o]),F=g.useMemo(()=>{switch(d){case"asc":return[...r].sort((G,S)=>Ri.compare(G.headerName||G.field,S.headerName||S.field));case"desc":return[...r].sort((G,S)=>-Ri.compare(G.headerName||G.field,S.headerName||S.field));default:return r}},[r,d]),j=G=>{const{name:S}=G.target;t.current.setColumnVisibility(S,s[S]===!1)},y=g.useMemo(()=>{const G=w?w(F):null,S=G?F.filter(({field:H})=>G.includes(H)):F;return a?S.filter(H=>h(H,a.toLowerCase())):S},[F,a,h,w]),A=g.useCallback(G=>{const S=St(t),H=C({},S),z=w?w(r):null;return(x==="filteredOnly"?y:r).forEach(q=>{q.hideable&&(z==null||z.includes(q.field))&&(G?delete H[q.field]:H[q.field]=!1)}),t.current.setColumnVisibilityModel(H)},[t,r,w,x,y]),N=g.useCallback(G=>{c(G.target.value)},[]),M=g.useMemo(()=>y.filter(G=>G.hideable),[y]),P=g.useMemo(()=>M.every(G=>s[G.field]==null||s[G.field]!==!1),[s,M]),R=g.useMemo(()=>M.every(G=>s[G.field]===!1),[s,M]),_=g.useRef(null);g.useEffect(()=>{m?n.current.focus():_.current&&typeof _.current.focus=="function"&&_.current.focus()},[m]);let O=!1;const D=G=>O===!1&&G.hideable!==!1?(O=!0,!0):!1,V=g.useCallback(()=>{c(""),n.current.focus()},[]);return i.jsxs(g.Fragment,{children:[i.jsx(v2,{className:u.header,ownerState:l,children:i.jsx(S2,C({as:l.slots.baseTextField,ownerState:l,placeholder:t.current.getLocaleText("columnsManagementSearchTitle"),inputRef:n,className:u.searchInput,value:a,onChange:N,variant:"outlined",size:"small",type:"search",InputProps:{startAdornment:i.jsx(l.slots.baseInputAdornment,{position:"start",children:i.jsx(l.slots.quickFilterIcon,{})}),endAdornment:i.jsx(l.slots.baseIconButton,C({"aria-label":t.current.getLocaleText("columnsManagementDeleteIconLabel"),size:"small",sx:[a?{visibility:"visible"}:{visibility:"hidden"}],tabIndex:-1,onClick:V},(E=l.slotProps)==null?void 0:E.baseIconButton,{children:i.jsx(l.slots.quickFilterClearIcon,{fontSize:"small"})}))},inputProps:{"aria-label":t.current.getLocaleText("columnsManagementSearchTitle")},autoComplete:"off",fullWidth:!0},(T=l.slotProps)==null?void 0:T.baseTextField,k))}),i.jsxs(y2,{className:u.root,ownerState:l,children:[y.map(G=>{var S;return i.jsx(gl.default,{className:u.row,control:i.jsx(l.slots.baseCheckbox,C({disabled:G.hideable===!1,checked:s[G.field]!==!1,onClick:j,name:G.field,sx:{p:.5},inputRef:D(G)?_:void 0},(S=l.slotProps)==null?void 0:S.baseCheckbox)),label:G.headerName||G.field},G.field)}),y.length===0&&i.jsx(I2,{ownerState:l,children:t.current.getLocaleText("columnsManagementNoColumns")})]}),(!p||!b)&&y.length>0?i.jsxs(k2,{ownerState:l,className:u.footer,children:[p?i.jsx("span",{}):i.jsx(gl.default,{control:i.jsx(l.slots.baseCheckbox,C({disabled:M.length===0,checked:P,indeterminate:!P&&!R,onClick:()=>A(!P),name:t.current.getLocaleText("columnsManagementShowHideAllText"),sx:{p:.5}},(L=l.slotProps)==null?void 0:L.baseCheckbox)),label:t.current.getLocaleText("columnsManagementShowHideAllText")}),b?null:i.jsx(l.slots.baseButton,C({onClick:()=>t.current.setColumnVisibilityModel(o),disabled:v},($=l.slotProps)==null?void 0:$.baseButton,{children:t.current.getLocaleText("columnsManagementReset")}))]}):null]})}process.env.NODE_ENV!=="production"&&(Ju.propTypes={autoFocusSearchField:f.bool,disableResetButton:f.bool,disableShowHideToggle:f.bool,getTogglableColumns:f.func,searchInputProps:f.object,searchPredicate:f.func,sort:f.oneOf(["asc","desc"]),toggleAllMode:f.oneOf(["all","filteredOnly"])});const y2=ge.styled("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"})),v2=ge.styled("div",{name:"MuiDataGrid",slot:"ColumnsManagementHeader",overridesResolver:(e,t)=>t.columnsManagementHeader})(({theme:e})=>({padding:e.spacing(1.5,3)})),S2=ge.styled(ha.default,{name:"MuiDataGrid",slot:"ColumnsManagementSearchInput",overridesResolver:(e,t)=>t.columnsManagementSearchInput})(({theme:e})=>({[`& .${Fn.inputBaseClasses.root}`]:{padding:e.spacing(0,1.5,0,1.5)},[`& .${Fn.inputBaseClasses.input}::-webkit-search-decoration,
74
+ & .${I["row--borderBottom"]} .${I.scrollbarFiller}`]:{borderBottom:"1px solid var(--DataGrid-rowBorderColor)"},[`& .${I["row--borderBottom"]} .${I.cell}`]:{borderBottom:"1px solid var(--rowBorderColor)"},[`.${I.row}`]:{display:"flex",width:"var(--DataGrid-rowWidth)",breakInside:"avoid","--rowBorderColor":"var(--DataGrid-rowBorderColor)",[`&.${I["row--firstVisible"]}`]:{"--rowBorderColor":"transparent"},"&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${I.rowSkeleton}:hover`]:{backgroundColor:"transparent"},"&.Mui-selected":A},[`& .${I["container--top"]}, & .${I["container--bottom"]}`]:{"[role=row]":{background:"var(--DataGrid-containerBackground)"}},[`& .${I.cell}`]:{flex:"0 0 auto",height:"var(--height)",width:"var(--width)",lineHeight:"calc(var(--height) - 1px)",boxSizing:"border-box",borderTop:"1px solid var(--rowBorderColor)",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis","&.Mui-selected":A},[`& .${I["virtualScrollerContent--overflowed"]} .${I["row--lastVisible"]} .${I.cell}`]:{borderTopColor:"transparent"},[`& .${I["pinnedRows--top"]} :first-of-type`]:{[`& .${I.cell}, .${I.scrollbarFiller}`]:{borderTop:"none"}},[`&.${I["root--disableUserSelection"]}`]:{userSelect:"none"},[`& .${I["row--dynamicHeight"]} > .${I.cell}`]:{whiteSpace:"initial",lineHeight:"inherit"},[`& .${I.cellEmpty}`]:{flex:1,padding:0,height:"unset"},[`& .${I.cell}.${I["cell--selectionMode"]}`]:{cursor:"default"},[`& .${I.cell}.${I["cell--editing"]}`]:{padding:1,display:"flex",boxShadow:e.shadows[2],backgroundColor:(e.vars||e).palette.background.paper,"&:focus-within":{outline:`${En}px solid ${(e.vars||e).palette.primary.main}`,outlineOffset:En*-1}},[`& .${I["row--editing"]}`]:{boxShadow:e.shadows[2]},[`& .${I["row--editing"]} .${I.cell}`]:{boxShadow:e.shadows[0],backgroundColor:(e.vars||e).palette.background.paper},[`& .${I.editBooleanCell}`]:{display:"flex",height:"100%",width:"100%",alignItems:"center",justifyContent:"center"},[`& .${I.booleanCell}[data-value="true"]`]:{color:(e.vars||e).palette.text.secondary},[`& .${I.booleanCell}[data-value="false"]`]:{color:(e.vars||e).palette.text.disabled},[`& .${I.actionsCell}`]:{display:"inline-flex",alignItems:"center",gridGap:e.spacing(1)},[`& .${I.rowReorderCell}`]:{display:"inline-flex",flex:1,alignItems:"center",justifyContent:"center",opacity:(e.vars||e).palette.action.disabledOpacity},[`& .${I["rowReorderCell--draggable"]}`]:{cursor:"move",opacity:1},[`& .${I.rowReorderCellContainer}`]:{padding:0,display:"flex",alignItems:"stretch"},[`.${I.withBorderColor}`]:{borderColor:r},[`& .${I["cell--withLeftBorder"]}, & .${I["columnHeader--withLeftBorder"]}`]:{borderLeftColor:"var(--DataGrid-rowBorderColor)",borderLeftWidth:"1px",borderLeftStyle:"solid"},[`& .${I["cell--withRightBorder"]}, & .${I["columnHeader--withRightBorder"]}`]:{borderRightColor:"var(--DataGrid-rowBorderColor)",borderRightWidth:"1px",borderRightStyle:"solid"},[`& .${I["cell--flex"]}`]:{display:"flex",alignItems:"center",lineHeight:"inherit"},[`& .${I["cell--textLeft"]}`]:{textAlign:"left",justifyContent:"flex-start"},[`& .${I["cell--textRight"]}`]:{textAlign:"right",justifyContent:"flex-end"},[`& .${I["cell--textCenter"]}`]:{textAlign:"center",justifyContent:"center"},[`& .${I["cell--pinnedLeft"]}, & .${I["cell--pinnedRight"]}`]:{position:"sticky",zIndex:30,background:"var(--DataGrid-pinnedBackground)","&.Mui-selected":{backgroundColor:v}},[`& .${I.virtualScrollerContent} .${I.row}`]:{"&:hover":S,"&.Mui-selected":F,"&.Mui-selected:hover":y},[`& .${I.cellOffsetLeft}`]:{flex:"0 0 auto",display:"inline-block"},[`& .${I.cellSkeleton}`]:{flex:"0 0 auto",height:"100%",display:"inline-flex",alignItems:"center"},[`& .${I.columnHeaderDraggableContainer}`]:{display:"flex",width:"100%",height:"100%"},[`& .${I.rowReorderCellPlaceholder}`]:{display:"none"},[`& .${I["columnHeader--dragging"]}, & .${I["row--dragging"]}`]:{background:(e.vars||e).palette.background.paper,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:(e.vars||e).palette.action.disabledOpacity},[`& .${I["row--dragging"]}`]:{background:(e.vars||e).palette.background.paper,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:(e.vars||e).palette.action.disabledOpacity,[`& .${I.rowReorderCellPlaceholder}`]:{display:"flex"}},[`& .${I.treeDataGroupingCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${I.treeDataGroupingCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)},[`& .${I.treeDataGroupingCellLoadingContainer}, .${I.groupingCriteriaCellLoadingContainer}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},[`& .${I.groupingCriteriaCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${I.groupingCriteriaCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)},[`.${I.scrollbarFiller}`]:{minWidth:"calc(var(--DataGrid-hasScrollY) * var(--DataGrid-scrollbarSize))",alignSelf:"stretch",[`&.${I["scrollbarFiller--borderTop"]}`]:{borderTop:"1px solid var(--DataGrid-rowBorderColor)"},[`&.${I["scrollbarFiller--borderBottom"]}`]:{borderBottom:"1px solid var(--DataGrid-rowBorderColor)"},[`&.${I["scrollbarFiller--pinnedRight"]}`]:{backgroundColor:"var(--DataGrid-pinnedBackground)",position:"sticky",right:0}},[`& .${I.filler}`]:{flex:"1 0 auto"},[`& .${I["filler--borderBottom"]}`]:{borderBottom:"1px solid var(--DataGrid-rowBorderColor)"},[`& .${I["main--hasSkeletonLoadingOverlay"]}`]:{[`& .${I.virtualScrollerContent}`]:{position:"fixed",visibility:"hidden"},[`& .${I["scrollbar--vertical"]}, & .${I.pinnedRows}, & .${I.virtualScroller} > .${I.filler}`]:{display:"none"}}})});function M0(e,t,n,r=1){const o=(c,u)=>Math.round((c**(1/r)*(1-n)+u**(1/r)*n)**r),s=ge.decomposeColor(e),l=ge.decomposeColor(t),a=[o(s.values[0],l.values[0]),o(s.values[1],l.values[1]),o(s.values[2],l.values[2])];return ge.recomposeColor({type:"rgb",values:a})}const E0=e=>`rgb(from ${e} r g b / 1)`;function P0(e,t,n){return`color-mix(in srgb,${e}, ${E0(t)} calc(${n} * 100%))`}const T0=()=>()=>{},F0=()=>!1,j0=()=>!0,O0=()=>js.useSyncExternalStore(T0,F0,j0);function R0(){var s,l,a;const e=ke(),t=te(e,It),n=ue(),r=te(e,xr),o=e.current.unstable_applyPipeProcessors("preferencePanel",null,(s=r.openedPanelValue)!=null?s:bn.filters);return i.jsx(n.slots.panel,C({as:n.slots.basePopper,open:t.length>0&&r.open,id:r.panelId,"aria-labelledby":r.labelId},(l=n.slotProps)==null?void 0:l.panel,(a=n.slotProps)==null?void 0:a.basePopper,{children:o}))}function L0(){var t;const e=ue();return i.jsxs(g.Fragment,{children:[i.jsx(R0,{}),e.slots.toolbar&&i.jsx(e.slots.toolbar,C({},(t=e.slotProps)==null?void 0:t.toolbar))]})}const D0=["className","children"],H0=(e,t)=>{const{autoHeight:n,classes:r,showCellVerticalBorder:o}=e,s={root:["root",n&&"autoHeight",`root--density${oe.unstable_capitalize(t)}`,e.slots.toolbar===null&&"root--noToolbar","withBorderColor",o&&"withVerticalBorder"]};return oe.unstable_composeClasses(s,Te,r)},Su=je(function(t,n){const r=ue(),{className:o,children:s}=t,l=me(t,D0),a=Et(),c=te(a,Rn),u=a.current.rootElementRef,d=g.useCallback(x=>{x!==null&&a.current.publishEvent("rootMount",x)},[a]),f=oe.unstable_useForkRef(u,n,d),m=r,p=H0(m,c);return O0()?null:i.jsxs(I0,C({className:Pe(p.root,o),ownerState:m},l,{ref:f,children:[i.jsx(L0,{}),i.jsx(n0,{children:s}),i.jsx(r0,{})]}))});process.env.NODE_ENV!=="production"&&(Su.propTypes={sx:h.oneOfType([h.arrayOf(h.oneOfType([h.func,h.object,h.bool])),h.func,h.object])});const _0=Zt(Su),A0=["className"],V0=e=>{const{classes:t}=e,n={root:["footerContainer","withBorderColor"]};return Xe.default(n,Te,t)},N0=Ge.styled("div",{name:"MuiDataGrid",slot:"FooterContainer",overridesResolver:(e,t)=>t.footerContainer})({display:"flex",justifyContent:"space-between",alignItems:"center",minHeight:52,borderTop:"1px solid"}),ku=je(function(t,n){const{className:r}=t,o=me(t,A0),s=ue(),l=V0(s);return i.jsx(N0,C({className:Pe(l.root,r),ownerState:s},o,{ref:n}))});process.env.NODE_ENV!=="production"&&(ku.propTypes={sx:h.oneOfType([h.arrayOf(h.oneOfType([h.func,h.object,h.bool])),h.func,h.object])});const $0=["className"],z0=e=>{const{classes:t}=e,n={root:["overlay"]};return Xe.default(n,Te,t)},G0=Ge.styled("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)"}),So=je(function(t,n){const{className:r}=t,o=me(t,$0),s=ue(),l=z0(s);return i.jsx(G0,C({className:Pe(l.root,r),ownerState:s},o,{ref:n}))});process.env.NODE_ENV!=="production"&&(So.propTypes={sx:h.oneOfType([h.arrayOf(h.oneOfType([h.func,h.object,h.bool])),h.func,h.object])});const B0=e=>{const{classes:t,open:n}=e,r={root:["menuIcon",n&&"menuOpen"],button:["menuIconButton"]};return Xe.default(r,Te,t)},W0=g.memo(e=>{var m,p,b;const{colDef:t,open:n,columnMenuId:r,columnMenuButtonId:o,iconButtonRef:s}=e,l=ke(),a=ue(),c=C({},e,{classes:a.classes}),u=B0(c),d=g.useCallback(x=>{x.preventDefault(),x.stopPropagation(),l.current.toggleColumnMenu(t.field)},[l,t.field]),f=(m=t.headerName)!=null?m:t.field;return i.jsx("div",{className:u.root,children:i.jsx(a.slots.baseTooltip,C({title:l.current.getLocaleText("columnMenuLabel"),enterDelay:1e3},(p=a.slotProps)==null?void 0:p.baseTooltip,{children:i.jsx(a.slots.baseIconButton,C({ref:s,tabIndex:-1,className:u.button,"aria-label":l.current.getLocaleText("columnMenuAriaLabel")(f),size:"small",onClick:d,"aria-haspopup":"menu","aria-expanded":n,"aria-controls":n?r:void 0,id:o},(b=a.slotProps)==null?void 0:b.baseIconButton,{children:i.jsx(a.slots.columnMenuIcon,{fontSize:"inherit"})}))}))})});function Iu({columnMenuId:e,columnMenuButtonId:t,ContentComponent:n,contentComponentProps:r,field:o,open:s,target:l,onExited:a}){const c=ke(),u=c.current.getColumn(o),d=oe.unstable_useEventCallback(f=>{f&&(f.stopPropagation(),l!=null&&l.contains(f.target))||c.current.hideColumnMenu()});return!l||!u?null:i.jsx(fo,{placement:`bottom-${u.align==="right"?"start":"end"}`,open:s,target:l,onClose:d,onExited:a,children:i.jsx(n,C({colDef:u,hideMenu:d,open:s,id:e,labelledby:t},r))})}process.env.NODE_ENV!=="production"&&(Iu.propTypes={columnMenuButtonId:h.string,columnMenuId:h.string,ContentComponent:h.elementType.isRequired,contentComponentProps:h.any,field:h.string.isRequired,onExited:h.func,open:h.bool.isRequired,target:oe.HTMLElementType});function q0(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function no(e,t){return e.closest(`.${t}`)}function Jt(e){return e.replace(/["\\]/g,"\\$&")}function U0(e,t){return e.querySelector(`[role="columnheader"][data-field="${Jt(t)}"]`)}function Mu(e){return`.${I.row}[data-id="${Jt(String(e))}"]`}function K0(e,t){return e.querySelector(Mu(t))}function X0(e,{id:t,field:n}){const r=Mu(t),o=`.${I.cell}[data-field="${Jt(n)}"]`,s=`${r} ${o}`;return e.querySelector(s)}function jr(e){return e.target.nodeType===1&&!e.currentTarget.contains(e.target)}function Y0(e){return e.getAttribute("data-field")}function Z0(e,t){return e.querySelector(`[data-field="${Jt(t)}"]`)}function Q0(e){return e.getAttribute("data-fields").slice(2,-2).split("-|-")}function J0(e,t){var n;return Array.from((n=e.querySelectorAll(`[data-fields*="|-${Jt(t)}-|"]`))!=null?n:[])}function ex(e,t){var l;if(!no(e,I.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,s=[];return(l=t.virtualScrollerRef)!=null&&l.current?(Tu(t).forEach(a=>{const c=a.getAttribute("data-id");if(!c)return;let u=o;const d=t.unstable_getCellColSpanInfo(c,o);d&&d.spannedByColSpan&&(u=d.leftVisibleCellIndex);const f=a.querySelector(`[data-colindex="${u}"]`);f&&s.push(f)}),s):[]}function ki(e,t){return e.rootElementRef.current.querySelector(`.${I[t]}`)}const Eu=({api:e,colIndex:t,position:n,filterFn:r})=>{if(t===null)return[];const o=[];return Tu(e).forEach(s=>{s.getAttribute("data-id")&&s.querySelectorAll(`.${I[n==="left"?"cell--pinnedLeft":"cell--pinnedRight"]}`).forEach(a=>{const c=tr(a);c!==null&&r(c)&&o.push(a)})}),o};function tx(e,t,n){const r=tr(t);return Eu({api:e,colIndex:r,position:n?"right":"left",filterFn:o=>n?o<r:o>r})}function nx(e,t,n){const r=tr(t);return Eu({api:e,colIndex:r,position:n?"left":"right",filterFn:o=>n?o>r:o<r})}const Pu=({api:e,colIndex:t,position:n,filterFn:r})=>{var s;if(!((s=e.columnHeadersContainerRef)!=null&&s.current))return[];if(t===null)return[];const o=[];return e.columnHeadersContainerRef.current.querySelectorAll(`.${I[n==="left"?"columnHeader--pinnedLeft":"columnHeader--pinnedRight"]}`).forEach(l=>{const a=tr(l);a!==null&&r(a,l)&&o.push(l)}),o};function rx(e,t,n){const r=tr(t);return Pu({api:e,position:n?"right":"left",colIndex:r,filterFn:o=>n?o<r:o>r})}function ox(e,t,n){const r=tr(t);return Pu({api:e,position:n?"left":"right",colIndex:r,filterFn:(o,s)=>s.classList.contains(I["columnHeader--last"])?!1:n?o>r:o<r})}function sx(e,t){return e.columnHeadersContainerRef.current.querySelector(`:scope > div > [data-field="${Jt(t)}"][role="columnheader"]`)}function lx(e,t){const n=e.virtualScrollerRef.current;return Array.from(n.querySelectorAll(`:scope > div > div > div > [data-field="${Jt(t)}"][role="gridcell"]`))}function Tu(e){return e.virtualScrollerRef.current.querySelectorAll(`:scope > div > div > .${I.row}`)}function tr(e){const t=e.getAttribute("aria-colindex");return t?Number(t)-1:null}const ix=["className","aria-label"],ax=e=>{const{classes:t}=e,n={root:["columnHeaderTitle"]};return Xe.default(n,Te,t)},cx=Ge.styled("div",{name:"MuiDataGrid",slot:"ColumnHeaderTitle",overridesResolver:(e,t)=>t.columnHeaderTitle})({textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",fontWeight:"var(--unstable_DataGrid-headWeight)",lineHeight:"normal"}),ux=je(function(t,n){const{className:r}=t,o=me(t,ix),s=ue(),l=ax(s);return i.jsx(cx,C({className:Pe(l.root,r),ownerState:s},o,{ref:n}))});function Fu(e){var c;const{label:t,description:n}=e,r=ue(),o=g.useRef(null),[s,l]=g.useState(""),a=g.useCallback(()=>{if(!n&&(o!=null&&o.current)){const u=q0(o.current);l(u?t:"")}},[n,t]);return i.jsx(r.slots.baseTooltip,C({title:n||s},(c=r.slotProps)==null?void 0:c.baseTooltip,{children:i.jsx(ux,{onMouseOver:a,ref:o,children:t})}))}process.env.NODE_ENV!=="production"&&(Fu.propTypes={columnWidth:h.number.isRequired,description:h.node,label:h.string.isRequired});const dx=["resizable","resizing","height","side"];var Qs=(function(e){return e.Left="left",e.Right="right",e})(Qs||{});const fx=e=>{const{resizable:t,resizing:n,classes:r,side:o}=e,s={root:["columnSeparator",t&&"columnSeparator--resizable",n&&"columnSeparator--resizing",o&&`columnSeparator--side${oe.unstable_capitalize(o)}`],icon:["iconSeparator"]};return oe.unstable_composeClasses(s,Te,r)};function ju(e){const{height:t,side:n=Qs.Right}=e,r=me(e,dx),o=ue(),s=C({},e,{side:n,classes:o.classes}),l=fx(s),a=g.useCallback(c=>{c.preventDefault(),c.stopPropagation()},[]);return i.jsx("div",C({className:l.root,style:{minHeight:t}},r,{onClick:a,children:i.jsx(o.slots.columnResizeIcon,{className:l.icon})}))}const hx=g.memo(ju);process.env.NODE_ENV!=="production"&&(ju.propTypes={height:h.number.isRequired,resizable:h.bool.isRequired,resizing:h.bool.isRequired,side:h.oneOf(["left","right"])});const gx=["classes","columnMenuOpen","colIndex","height","isResizing","sortDirection","hasFocus","tabIndex","separatorSide","isDraggable","headerComponent","description","elementId","width","columnMenuIconButton","columnMenu","columnTitleIconButtons","headerClassName","label","resizable","draggableContainerProps","columnHeaderSeparatorProps","style"],Ou=je(function(t,n){const{classes:r,colIndex:o,height:s,isResizing:l,sortDirection:a,tabIndex:c,separatorSide:u,isDraggable:d,headerComponent:f,description:m,width:p,columnMenuIconButton:b=null,columnMenu:x=null,columnTitleIconButtons:w=null,headerClassName:S,label:v,resizable:F,draggableContainerProps:j,columnHeaderSeparatorProps:y,style:A}=t,N=me(t,gx),M=ue(),P=g.useRef(null),R=oe.unstable_useForkRef(P,n);let _="none";return a!=null&&(_=a==="asc"?"ascending":"descending"),i.jsxs("div",C({className:Pe(r.root,S),style:C({},A,{height:s,width:p}),role:"columnheader",tabIndex:c,"aria-colindex":o+1,"aria-sort":_},N,{ref:R,children:[i.jsxs("div",C({className:r.draggableContainer,draggable:d,role:"presentation"},j,{children:[i.jsxs("div",{className:r.titleContainer,role:"presentation",children:[i.jsx("div",{className:r.titleContainerContent,children:f!==void 0?f:i.jsx(Fu,{label:v,description:m,columnWidth:p})}),w]}),b]})),i.jsx(hx,C({resizable:!M.disableColumnResize&&!!F,resizing:l,height:s,side:u},y)),x]}))}),mx=e=>{const{colDef:t,classes:n,isDragging:r,sortDirection:o,showRightBorder:s,showLeftBorder:l,filterItemsCounter:a,pinnedPosition:c,isLastUnpinned:u,isSiblingFocused:d}=e,f=o!=null,m=a!=null&&a>0,p=t.type==="number",b={root:["columnHeader",t.headerAlign==="left"&&"columnHeader--alignLeft",t.headerAlign==="center"&&"columnHeader--alignCenter",t.headerAlign==="right"&&"columnHeader--alignRight",t.sortable&&"columnHeader--sortable",r&&"columnHeader--moving",f&&"columnHeader--sorted",m&&"columnHeader--filtered",p&&"columnHeader--numeric","withBorderColor",s&&"columnHeader--withRightBorder",l&&"columnHeader--withLeftBorder",c===Ie.LEFT&&"columnHeader--pinnedLeft",c===Ie.RIGHT&&"columnHeader--pinnedRight",u&&"columnHeader--lastUnpinned",d&&"columnHeader--siblingFocused"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer"],titleContainerContent:["columnHeaderTitleContainerContent"]};return oe.unstable_composeClasses(b,Te,n)};function Ru(e){var K,Y,J,ne,Z;const{colDef:t,columnMenuOpen:n,colIndex:r,headerHeight:o,isResizing:s,isLast:l,sortDirection:a,sortIndex:c,filterItemsCounter:u,hasFocus:d,tabIndex:f,disableReorder:m,separatorSide:p,showLeftBorder:b,showRightBorder:x,pinnedPosition:w,pinnedOffset:S}=e,v=Et(),F=ue(),j=Gt.useRtl(),y=g.useRef(null),A=oe.unstable_useId(),N=oe.unstable_useId(),M=g.useRef(null),[P,R]=g.useState(n),_=g.useMemo(()=>!F.disableColumnReorder&&!m&&!t.disableReorder,[F.disableColumnReorder,m,t.disableReorder]);let O;t.renderHeader&&(O=t.renderHeader(v.current.getColumnHeaderParams(t.field)));const D=C({},e,{classes:F.classes,showRightBorder:x,showLeftBorder:b}),V=mx(D),E=g.useCallback(se=>ee=>{jr(ee)||v.current.publishEvent(se,v.current.getColumnHeaderParams(t.field),ee)},[v,t.field]),T=g.useMemo(()=>({onClick:E("columnHeaderClick"),onContextMenu:E("columnHeaderContextMenu"),onDoubleClick:E("columnHeaderDoubleClick"),onMouseOver:E("columnHeaderOver"),onMouseOut:E("columnHeaderOut"),onMouseEnter:E("columnHeaderEnter"),onMouseLeave:E("columnHeaderLeave"),onKeyDown:E("columnHeaderKeyDown"),onFocus:E("columnHeaderFocus"),onBlur:E("columnHeaderBlur")}),[E]),L=g.useMemo(()=>_?{onDragStart:E("columnHeaderDragStart"),onDragEnter:E("columnHeaderDragEnter"),onDragOver:E("columnHeaderDragOver"),onDragEnd:E("columnHeaderDragEnd")}:{},[_,E]),$=g.useMemo(()=>({onMouseDown:E("columnSeparatorMouseDown"),onDoubleClick:E("columnSeparatorDoubleClick")}),[E]);g.useEffect(()=>{P||R(n)},[P,n]);const G=g.useCallback(()=>{R(!1)},[]),k=!F.disableColumnMenu&&!t.disableColumnMenu&&i.jsx(W0,{colDef:t,columnMenuId:A,columnMenuButtonId:N,open:P,iconButtonRef:M}),H=i.jsx(Iu,{columnMenuId:A,columnMenuButtonId:N,field:t.field,open:n,target:M.current,ContentComponent:F.slots.columnMenu,contentComponentProps:(K=F.slotProps)==null?void 0:K.columnMenu,onExited:G}),z=(Y=t.sortingOrder)!=null?Y:F.sortingOrder,q=(t.sortable||a!=null)&&!t.hideSortIcons&&!F.disableColumnSorting,U=i.jsxs(g.Fragment,{children:[!F.disableColumnFilter&&i.jsx(F.slots.columnHeaderFilterIconButton,C({field:t.field,counter:u},(J=F.slotProps)==null?void 0:J.columnHeaderFilterIconButton)),q&&i.jsx(F.slots.columnHeaderSortIcon,C({field:t.field,direction:a,index:c,sortingOrder:z,disabled:!t.sortable},(ne=F.slotProps)==null?void 0:ne.columnHeaderSortIcon))]});g.useLayoutEffect(()=>{const se=v.current.state.columnMenu;if(d&&!se.open){const ae=y.current.querySelector('[tabindex="0"]')||y.current;if(!ae)return;if(Zs())ae.focus({preventScroll:!0});else{const fe=v.current.getScrollPosition();ae.focus(),v.current.scroll(fe)}}},[v,d]);const Q=typeof t.headerClassName=="function"?t.headerClassName({field:t.field,colDef:t}):t.headerClassName,X=(Z=t.headerName)!=null?Z:t.field,W=g.useMemo(()=>vo(C({},e.style),j,w,S),[w,S,e.style,j]);return i.jsx(Ou,C({ref:y,classes:V,columnMenuOpen:n,colIndex:r,height:o,isResizing:s,sortDirection:a,hasFocus:d,tabIndex:f,separatorSide:p,isDraggable:_,headerComponent:O,description:t.description,elementId:t.field,width:t.computedWidth,columnMenuIconButton:k,columnTitleIconButtons:U,headerClassName:Pe(Q,l&&I["columnHeader--last"]),label:X,resizable:!F.disableColumnResize&&!!t.resizable,"data-field":t.field,columnMenu:H,draggableContainerProps:L,columnHeaderSeparatorProps:$,style:W},T))}process.env.NODE_ENV!=="production"&&(Ru.propTypes={colDef:h.object.isRequired,colIndex:h.number.isRequired,columnMenuOpen:h.bool.isRequired,disableReorder:h.bool,filterItemsCounter:h.number,hasFocus:h.bool,headerHeight:h.number.isRequired,isDragging:h.bool.isRequired,isLast:h.bool.isRequired,isLastUnpinned:h.bool.isRequired,isResizing:h.bool.isRequired,isSiblingFocused:h.bool.isRequired,pinnedOffset:h.number,pinnedPosition:h.oneOf([0,1,2,3]),separatorSide:h.oneOf(["left","right"]),showLeftBorder:h.bool.isRequired,showRightBorder:h.bool.isRequired,sortDirection:h.oneOf(["asc","desc"]),sortIndex:h.number,style:h.object,tabIndex:h.oneOf([-1,0]).isRequired});const px=Zt(Ru),bx=["className"],Cx=e=>{const{classes:t}=e,n={root:["iconButtonContainer"]};return Xe.default(n,Te,t)},wx=Ge.styled("div",{name:"MuiDataGrid",slot:"IconButtonContainer",overridesResolver:(e,t)=>t.iconButtonContainer})(()=>({display:"flex",visibility:"hidden",width:0})),Lu=je(function(t,n){const{className:r}=t,o=me(t,bx),s=ue(),l=Cx(s);return i.jsx(wx,C({className:Pe(l.root,r),ownerState:s},o,{ref:n}))}),xx=["direction","index","sortingOrder","disabled","className"],yx=e=>{const{classes:t}=e,n={root:["sortButton"],icon:["sortIcon"]};return Xe.default(n,Te,t)};function vx(e,t,n,r){let o;const s={};return t==="asc"?o=e.columnSortedAscendingIcon:t==="desc"?o=e.columnSortedDescendingIcon:(o=e.columnUnsortedIcon,s.sortingOrder=r),o?i.jsx(o,C({fontSize:"small",className:n},s)):null}function Du(e){var p;const{direction:t,index:n,sortingOrder:r,disabled:o,className:s}=e,l=me(e,xx),a=ke(),c=ue(),u=C({},e,{classes:c.classes}),d=yx(u),f=vx(c.slots,t,d.icon,r);if(!f)return null;const m=i.jsx(c.slots.baseIconButton,C({tabIndex:-1,"aria-label":a.current.getLocaleText("columnHeaderSortIconLabel"),title:a.current.getLocaleText("columnHeaderSortIconLabel"),size:"small",disabled:o,className:Pe(d.root,s)},(p=c.slotProps)==null?void 0:p.baseIconButton,l,{children:f}));return i.jsxs(Lu,{children:[n!=null&&i.jsx(c.slots.baseBadge,{badgeContent:n,color:"default",overlap:"circular",children:m}),n==null&&m]})}const Sx=g.memo(Du);process.env.NODE_ENV!=="production"&&(Du.propTypes={className:h.string,direction:h.oneOf(["asc","desc"]),disabled:h.bool,field:h.string.isRequired,index:h.number,sortingOrder:h.arrayOf(h.oneOf(["asc","desc"])).isRequired});const kx=e=>{const{classes:t}=e,n={icon:["filterIcon"]};return oe.unstable_composeClasses(n,Te,t)};function Hu(e){return e.counter?i.jsx(_u,C({},e)):null}process.env.NODE_ENV!=="production"&&(Hu.propTypes={counter:h.number,field:h.string.isRequired,onClick:h.func});function _u(e){var p,b;const{counter:t,field:n,onClick:r}=e,o=ke(),s=ue(),l=C({},e,{classes:s.classes}),a=kx(l),c=oe.unstable_useId(),u=br(o,Xw,c),d=oe.unstable_useId(),f=g.useCallback(x=>{x.preventDefault(),x.stopPropagation();const{open:w,openedPanelValue:S}=xr(o.current.state);w&&S===bn.filters?o.current.hideFilterPanel():o.current.showFilterPanel(void 0,d,c),r&&r(o.current.getColumnHeaderParams(n),x)},[o,n,r,d,c]);if(!t)return null;const m=i.jsx(s.slots.baseIconButton,C({id:c,onClick:f,color:"default","aria-label":o.current.getLocaleText("columnHeaderFiltersLabel"),size:"small",tabIndex:-1,"aria-haspopup":"menu","aria-expanded":u,"aria-controls":u?d:void 0},(p=s.slotProps)==null?void 0:p.baseIconButton,{children:i.jsx(s.slots.columnFilteredIcon,{className:a.icon,fontSize:"small"})}));return i.jsx(s.slots.baseTooltip,C({title:o.current.getLocaleText("columnHeaderFiltersTooltipActive")(t),enterDelay:1e3},(b=s.slotProps)==null?void 0:b.baseTooltip,{children:i.jsxs(Lu,{children:[t>1&&i.jsx(s.slots.baseBadge,{badgeContent:t,color:"default",children:m}),t===1&&m]})}))}process.env.NODE_ENV!=="production"&&(_u.propTypes={counter:h.number,field:h.string.isRequired,onClick:h.func});const Ii=ze.createSvgIcon(i.jsx("path",{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward"),Mi=ze.createSvgIcon(i.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward"),Ei=ze.createSvgIcon(i.jsx("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"KeyboardArrowRight"),Pi=ze.createSvgIcon(i.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),Ix=ze.createSvgIcon(i.jsx("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"}),"FilterList"),Ti=ze.createSvgIcon(i.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"),Mx=ze.createSvgIcon(i.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");ze.createSvgIcon(i.jsx("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu");ze.createSvgIcon(i.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckCircle");const Ex=ze.createSvgIcon(i.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"),Px=ze.createSvgIcon(i.jsx("rect",{width:"1",height:"24",x:"11.5",rx:"0.5"}),"Separator"),Tx=ze.createSvgIcon(i.jsx("path",{d:"M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z"}),"ViewHeadline"),Fx=ze.createSvgIcon(i.jsx("path",{d:"M21,8H3V4h18V8z M21,10H3v4h18V10z M21,16H3v4h18V16z"}),"TableRows"),jx=ze.createSvgIcon(i.jsx("path",{d:"M4 18h17v-6H4v6zM4 5v6h17V5H4z"}),"ViewStream"),Ox=ze.createSvgIcon(i.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"),Wo=ze.createSvgIcon(i.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"),Fi=ze.createSvgIcon(i.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add"),Rx=ze.createSvgIcon(i.jsx("path",{d:"M19 13H5v-2h14v2z"}),"Remove"),Lx=ze.createSvgIcon(i.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"),ji=ze.createSvgIcon(i.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"),Dx=ze.createSvgIcon(i.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"),Hx=ze.createSvgIcon(i.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),_x=ze.createSvgIcon(i.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"),Ax=ze.createSvgIcon(i.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"),Vx=ze.createSvgIcon(i.jsx("g",{children:i.jsx("path",{d:"M14.67,5v14H9.33V5H14.67z M15.67,19H21V5h-5.33V19z M8.33,19V5H3v14H8.33z"})}),"ViewColumn"),Nx=ze.createSvgIcon(i.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");ze.createSvgIcon(i.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}),"Delete");const $x=ze.createSvgIcon(i.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");function Au(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey}const ro=e=>e.indexOf("Arrow")===0||e.indexOf("Page")===0||e===" "||e==="Home"||e==="End",zx=e=>!!e.key,Vu=e=>e==="Tab"||e==="Escape";function Nu(e){return(e.ctrlKey||e.metaKey)&&String.fromCharCode(e.keyCode)==="V"&&!e.shiftKey&&!e.altKey}function Gx(e){return(e.ctrlKey||e.metaKey)&&String.fromCharCode(e.keyCode)==="C"&&!e.shiftKey&&!e.altKey}const Bx=["hideMenu","colDef","id","labelledby","className","children","open"],Wx=ge.styled(ps.default)(()=>({minWidth:248})),$u=je(function(t,n){const{hideMenu:r,id:o,labelledby:s,className:l,children:a,open:c}=t,u=me(t,Bx),d=g.useCallback(f=>{f.key==="Tab"&&f.preventDefault(),Vu(f.key)&&r(f)},[r]);return i.jsx(Wx,C({id:o,className:Pe(I.menuList,l),"aria-labelledby":s,onKeyDown:d,autoFocus:c},u,{ref:n,children:a}))});process.env.NODE_ENV!=="production"&&($u.propTypes={colDef:h.object.isRequired,hideMenu:h.func.isRequired,id:h.string,labelledby:h.string,open:h.bool.isRequired});const qx=["displayOrder"],Ux=e=>{const t=Et(),n=ue(),{defaultSlots:r,defaultSlotProps:o,slots:s={},slotProps:l={},hideMenu:a,colDef:c,addDividers:u=!0}=e,d=g.useMemo(()=>C({},r,s),[r,s]),f=g.useMemo(()=>{if(!l||Object.keys(l).length===0)return o;const b=C({},l);return Object.entries(o).forEach(([x,w])=>{b[x]=C({},w,l[x]||{})}),b},[o,l]),m=t.current.unstable_applyPipeProcessors("columnMenu",[],e.colDef),p=g.useMemo(()=>{const b=Object.keys(r);return Object.keys(s).filter(x=>!b.includes(x))},[s,r]);return g.useMemo(()=>{const w=Array.from(new Set([...m,...p])).filter(S=>d[S]!=null).sort((S,v)=>{const F=f[S],j=f[v],y=Number.isFinite(F==null?void 0:F.displayOrder)?F.displayOrder:100,A=Number.isFinite(j==null?void 0:j.displayOrder)?j.displayOrder:100;return y-A});return w.reduce((S,v,F)=>{let j={colDef:c,onClick:a};const y=f[v];if(y){const A=me(y,qx);j=C({},j,A)}return u&&F!==w.length-1?[...S,[d[v],j],[n.slots.baseDivider,{}]]:[...S,[d[v],j]]},[])},[u,c,m,a,d,f,p,n.slots.baseDivider])};function zu(e){const{colDef:t,onClick:n}=e,r=ke(),o=ue(),a=Ke(r).filter(u=>u.disableColumnMenu!==!0).length===1,c=g.useCallback(u=>{a||(r.current.setColumnVisibility(t.field,!1),n(u))},[r,t.field,n,a]);return o.disableColumnSelector||t.hideable===!1?null:i.jsxs(Xt.default,{onClick:c,disabled:a,children:[i.jsx(_n.default,{children:i.jsx(o.slots.columnMenuHideIcon,{fontSize:"small"})}),i.jsx(An.default,{children:r.current.getLocaleText("columnMenuHideColumn")})]})}process.env.NODE_ENV!=="production"&&(zu.propTypes={colDef:h.object.isRequired,onClick:h.func.isRequired});function Gu(e){const{onClick:t}=e,n=ke(),r=ue(),o=g.useCallback(s=>{t(s),n.current.showPreferences(bn.columns)},[n,t]);return r.disableColumnSelector?null:i.jsxs(Xt.default,{onClick:o,children:[i.jsx(_n.default,{children:i.jsx(r.slots.columnMenuManageColumnsIcon,{fontSize:"small"})}),i.jsx(An.default,{children:n.current.getLocaleText("columnMenuManageColumns")})]})}process.env.NODE_ENV!=="production"&&(Gu.propTypes={colDef:h.object.isRequired,onClick:h.func.isRequired});function Bu(e){return i.jsxs(g.Fragment,{children:[i.jsx(zu,C({},e)),i.jsx(Gu,C({},e))]})}process.env.NODE_ENV!=="production"&&(Bu.propTypes={colDef:h.object.isRequired,onClick:h.func.isRequired});function Wu(e){const{colDef:t,onClick:n}=e,r=ke(),o=ue(),s=g.useCallback(l=>{n(l),r.current.showFilterPanel(t.field)},[r,t.field,n]);return o.disableColumnFilter||!t.filterable?null:i.jsxs(Xt.default,{onClick:s,children:[i.jsx(_n.default,{children:i.jsx(o.slots.columnMenuFilterIcon,{fontSize:"small"})}),i.jsx(An.default,{children:r.current.getLocaleText("columnMenuFilter")})]})}process.env.NODE_ENV!=="production"&&(Wu.propTypes={colDef:h.object.isRequired,onClick:h.func.isRequired});function qu(e){var d;const{colDef:t,onClick:n}=e,r=ke(),o=te(r,jt),s=ue(),l=g.useMemo(()=>{if(!t)return null;const f=o.find(m=>m.field===t.field);return f==null?void 0:f.sort},[t,o]),a=(d=t.sortingOrder)!=null?d:s.sortingOrder,c=g.useCallback(f=>{n(f);const m=f.currentTarget.getAttribute("data-value")||null;r.current.sortColumn(t.field,m===l?null:m)},[r,t,n,l]);if(s.disableColumnSorting||!t||!t.sortable||!a.some(f=>!!f))return null;const u=f=>{const m=r.current.getLocaleText(f);return typeof m=="function"?m(t):m};return i.jsxs(g.Fragment,{children:[a.includes("asc")&&l!=="asc"?i.jsxs(Xt.default,{onClick:c,"data-value":"asc",children:[i.jsx(_n.default,{children:i.jsx(s.slots.columnMenuSortAscendingIcon,{fontSize:"small"})}),i.jsx(An.default,{children:u("columnMenuSortAsc")})]}):null,a.includes("desc")&&l!=="desc"?i.jsxs(Xt.default,{onClick:c,"data-value":"desc",children:[i.jsx(_n.default,{children:i.jsx(s.slots.columnMenuSortDescendingIcon,{fontSize:"small"})}),i.jsx(An.default,{children:u("columnMenuSortDesc")})]}):null,a.includes(null)&&l!=null?i.jsxs(Xt.default,{onClick:c,children:[i.jsx(_n.default,{}),i.jsx(An.default,{children:r.current.getLocaleText("columnMenuUnsort")})]}):null]})}process.env.NODE_ENV!=="production"&&(qu.propTypes={colDef:h.object.isRequired,onClick:h.func.isRequired});const Kx=["defaultSlots","defaultSlotProps","slots","slotProps"],Xx={columnMenuSortItem:qu,columnMenuFilterItem:Wu,columnMenuColumnsItem:Bu},Yx={columnMenuSortItem:{displayOrder:10},columnMenuFilterItem:{displayOrder:20},columnMenuColumnsItem:{displayOrder:30}},Uu=je(function(t,n){const{defaultSlots:r,defaultSlotProps:o,slots:s,slotProps:l}=t,a=me(t,Kx),c=Ux(C({},a,{defaultSlots:r,defaultSlotProps:o,slots:s,slotProps:l}));return i.jsx($u,C({},a,{ref:n,children:c.map(([u,d],f)=>i.jsx(u,C({},d),f))}))});process.env.NODE_ENV!=="production"&&(Uu.propTypes={colDef:h.object.isRequired,defaultSlotProps:h.object.isRequired,defaultSlots:h.object.isRequired,hideMenu:h.func.isRequired,id:h.string,labelledby:h.string,open:h.bool.isRequired,slotProps:h.object,slots:h.object});const Ku=je(function(t,n){return i.jsx(Uu,C({},t,{ref:n,defaultSlots:Xx,defaultSlotProps:Yx}))});process.env.NODE_ENV!=="production"&&(Ku.propTypes={colDef:h.object.isRequired,hideMenu:h.func.isRequired,id:h.string,labelledby:h.string,open:h.bool.isRequired,slotProps:h.object,slots:h.object});const Zx=["className","slotProps"],Qx=e=>{const{classes:t}=e,n={root:["panelWrapper"]};return Xe.default(n,Te,t)},Jx=ge.styled("div",{name:"MuiDataGrid",slot:"PanelWrapper",overridesResolver:(e,t)=>t.panelWrapper})({display:"flex",flexDirection:"column",flex:1,"&:focus":{outline:0}}),e2=()=>!0,Js=je(function(t,n){const{className:r,slotProps:o={}}=t,s=me(t,Zx),l=ue(),a=Qx(l);return i.jsx(Fh.default,C({open:!0,disableEnforceFocus:!0,isEnabled:e2},o.TrapFocus,{children:i.jsx(Jx,C({tabIndex:-1,className:Pe(a.root,r),ownerState:l},s,{ref:n}))}))});process.env.NODE_ENV!=="production"&&(Js.propTypes={slotProps:h.object});function Xu(e){var n;const t=ue();return i.jsx(Js,C({},e,{children:i.jsx(t.slots.columnsManagement,C({},(n=t.slotProps)==null?void 0:n.columnsManagement))}))}process.env.NODE_ENV!=="production"&&(Xu.propTypes={slotProps:h.object});const t2=["children","className","classes"],n2=oe.unstable_generateUtilityClasses("MuiDataGrid",["panel","paper"]),r2=ge.styled(bs.default,{name:"MuiDataGrid",slot:"Panel",overridesResolver:(e,t)=>t.panel})(({theme:e})=>({zIndex:e.zIndex.modal})),o2=ge.styled(fa.default,{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"})),Yu=je((e,t)=>{const{children:n,className:r}=e,o=me(e,t2),s=ke(),l=ue(),a=n2,[c,u]=g.useState(!1),d=g.useCallback(()=>{s.current.hidePreferences()},[s]),f=g.useCallback(x=>{x.key==="Escape"&&s.current.hidePreferences()},[s]),m=g.useMemo(()=>[{name:"flip",enabled:!0,options:{rootBoundary:"document"}},{name:"isPlaced",enabled:!0,phase:"main",fn:()=>{u(!0)},effect:()=>()=>{u(!1)}}],[]),[p,b]=g.useState(null);return g.useEffect(()=>{var w,S;const x=(S=(w=s.current.rootElementRef)==null?void 0:w.current)==null?void 0:S.querySelector('[data-id="gridPanelAnchor"]');x&&b(x)},[s]),p?i.jsx(r2,C({placement:"bottom-start",className:Pe(a.panel,r),ownerState:l,anchorEl:p,modifiers:m},o,{ref:t,children:i.jsx(da.default,{mouseEvent:"onPointerUp",touchEvent:!1,onClickAway:d,children:i.jsx(o2,{className:a.paper,ownerState:l,elevation:8,onKeyDown:f,children:c&&n})})})):null});process.env.NODE_ENV!=="production"&&(Yu.propTypes={children:h.node,classes:h.object,open:h.bool.isRequired,ownerState:h.object});const s2=["className"],l2=e=>{const{classes:t}=e,n={root:["panelContent"]};return Xe.default(n,Te,t)},i2=Ge.styled("div",{name:"MuiDataGrid",slot:"PanelContent",overridesResolver:(e,t)=>t.panelContent})({display:"flex",flexDirection:"column",overflow:"auto",flex:"1 1",maxHeight:400});function Zu(e){const{className:t}=e,n=me(e,s2),r=ue(),o=l2(r);return i.jsx(i2,C({className:Pe(o.root,t),ownerState:r},n))}process.env.NODE_ENV!=="production"&&(Zu.propTypes={sx:h.oneOfType([h.arrayOf(h.oneOfType([h.func,h.object,h.bool])),h.func,h.object])});const a2=["className"],c2=e=>{const{classes:t}=e,n={root:["panelFooter"]};return Xe.default(n,Te,t)},u2=Ge.styled("div",{name:"MuiDataGrid",slot:"PanelFooter",overridesResolver:(e,t)=>t.panelFooter})(({theme:e})=>({padding:e.spacing(.5),display:"flex",justifyContent:"space-between"}));function Qu(e){const{className:t}=e,n=me(e,a2),r=ue(),o=c2(r);return i.jsx(u2,C({className:Pe(o.root,t),ownerState:r},n))}process.env.NODE_ENV!=="production"&&(Qu.propTypes={sx:h.oneOfType([h.arrayOf(h.oneOfType([h.func,h.object,h.bool])),h.func,h.object])});const d2=["item","hasMultipleFilters","deleteFilter","applyFilterChanges","showMultiFilterOperators","disableMultiFilterOperator","applyMultiFilterOperatorChanges","focusElementRef","logicOperators","columnsSort","filterColumns","deleteIconProps","logicOperatorInputProps","operatorInputProps","columnInputProps","valueInputProps","readOnly","children"],f2=["InputComponentProps"],h2=e=>{const{classes:t}=e,n={root:["filterForm"],deleteIcon:["filterFormDeleteIcon"],logicOperatorInput:["filterFormLogicOperatorInput"],columnInput:["filterFormColumnInput"],operatorInput:["filterFormOperatorInput"],valueInput:["filterFormValueInput"]};return oe.unstable_composeClasses(n,Te,t)},g2=ge.styled("div",{name:"MuiDataGrid",slot:"FilterForm",overridesResolver:(e,t)=>t.filterForm})(({theme:e})=>({display:"flex",padding:e.spacing(1)})),m2=ge.styled("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)})),p2=ge.styled("div",{name:"MuiDataGrid",slot:"FilterFormLogicOperatorInput",overridesResolver:(e,t)=>t.filterFormLogicOperatorInput})({minWidth:55,marginRight:5,justifyContent:"end"}),b2=ge.styled("div",{name:"MuiDataGrid",slot:"FilterFormColumnInput",overridesResolver:(e,t)=>t.filterFormColumnInput})({width:150}),C2=ge.styled("div",{name:"MuiDataGrid",slot:"FilterFormOperatorInput",overridesResolver:(e,t)=>t.filterFormOperatorInput})({width:150}),w2=ge.styled("div",{name:"MuiDataGrid",slot:"FilterFormValueInput",overridesResolver:(e,t)=>t.filterFormValueInput})({width:190}),x2=e=>{switch(e){case mt.And:return"filterPanelOperatorAnd";case mt.Or:return"filterPanelOperatorOr";default:throw new Error("MUI X: Invalid `logicOperator` property in the `GridFilterPanel`.")}},ir=e=>e.headerName||e.field,Oi=new Intl.Collator,is=je(function(t,n){var ae,fe,xe,pe,Me,Re,Je,De,Oe,Ye,qe;const{item:r,hasMultipleFilters:o,deleteFilter:s,applyFilterChanges:l,showMultiFilterOperators:a,disableMultiFilterOperator:c,applyMultiFilterOperatorChanges:u,focusElementRef:d,logicOperators:f=[mt.And,mt.Or],columnsSort:m,filterColumns:p,deleteIconProps:b={},logicOperatorInputProps:x={},operatorInputProps:w={},columnInputProps:S={},valueInputProps:v={},readOnly:F}=t,j=me(t,d2),y=ke(),A=te(y,Qt),N=te(y,Sc),M=te(y,ut),P=oe.unstable_useId(),R=oe.unstable_useId(),_=oe.unstable_useId(),O=oe.unstable_useId(),D=ue(),V=h2(D),E=g.useRef(null),T=g.useRef(null),L=(ae=M.logicOperator)!=null?ae:mt.And,$=o&&f.length>0,G=((fe=D.slotProps)==null?void 0:fe.baseFormControl)||{},H=(pe=(((xe=D.slotProps)==null?void 0:xe.baseSelect)||{}).native)!=null?pe:!1,z=((Me=D.slotProps)==null?void 0:Me.baseInputLabel)||{},q=((Re=D.slotProps)==null?void 0:Re.baseSelectOption)||{},{InputComponentProps:U}=v,Q=me(v,f2),{filteredColumns:X,selectedField:W}=g.useMemo(()=>{let we=r.field;const He=A[r.field].filterable===!1?A[r.field]:null;if(He)return{filteredColumns:[He],selectedField:we};if(p===void 0||typeof p!="function")return{filteredColumns:N,selectedField:we};const ve=p({field:r.field,columns:N,currentFilters:(M==null?void 0:M.items)||[]});return{filteredColumns:N.filter(ce=>{const ye=ve.includes(ce.field);return ce.field===r.field&&!ye&&(we=void 0),ye}),selectedField:we}},[p,M==null?void 0:M.items,N,r.field,A]),K=g.useMemo(()=>{switch(m){case"asc":return X.sort((we,He)=>Oi.compare(ir(we),ir(He)));case"desc":return X.sort((we,He)=>-Oi.compare(ir(we),ir(He)));default:return X}},[X,m]),Y=r.field?y.current.getColumn(r.field):null,J=g.useMemo(()=>{var we;return!r.operator||!Y?null:(we=Y.filterOperators)==null?void 0:we.find(He=>He.value===r.operator)},[r,Y]),ne=g.useCallback(we=>{const He=we.target.value,ve=y.current.getColumn(He);if(ve.field===Y.field)return;const ce=ve.filterOperators.find(Ze=>Ze.value===r.operator)||ve.filterOperators[0];let Ce=!ce.InputComponent||ce.InputComponent!==(J==null?void 0:J.InputComponent)||ve.type!==Y.type?void 0:r.value;if(ve.type==="singleSelect"&&Ce!==void 0){const Ze=ve,ot=pn(Ze);Array.isArray(Ce)?Ce=Ce.filter(Qe=>Jr(Qe,ot,Ze==null?void 0:Ze.getOptionValue)!==void 0):Jr(r.value,ot,Ze==null?void 0:Ze.getOptionValue)===void 0&&(Ce=void 0)}l(C({},r,{field:He,operator:ce.value,value:Ce}))},[y,l,r,Y,J]),Z=g.useCallback(we=>{const He=we.target.value,ve=Y==null?void 0:Y.filterOperators.find(ye=>ye.value===He),ce=!(ve!=null&&ve.InputComponent)||(ve==null?void 0:ve.InputComponent)!==(J==null?void 0:J.InputComponent);l(C({},r,{operator:He,value:ce?void 0:r.value}))},[l,r,Y,J]),se=g.useCallback(we=>{const He=we.target.value===mt.And.toString()?mt.And:mt.Or;u(He)},[u]),ee=()=>{s(r)};return g.useImperativeHandle(d,()=>({focus:()=>{var we;J!=null&&J.InputComponent?(we=E==null?void 0:E.current)==null||we.focus():T.current.focus()}}),[J]),i.jsxs(g2,C({className:V.root,"data-id":r.id,ownerState:D},j,{ref:n,children:[i.jsx(m2,C({variant:"standard",as:D.slots.baseFormControl},G,b,{className:Pe(V.deleteIcon,G.className,b.className),ownerState:D,children:i.jsx(D.slots.baseIconButton,C({"aria-label":y.current.getLocaleText("filterPanelDeleteIconLabel"),title:y.current.getLocaleText("filterPanelDeleteIconLabel"),onClick:ee,size:"small",disabled:F},(Je=D.slotProps)==null?void 0:Je.baseIconButton,{children:i.jsx(D.slots.filterPanelDeleteIcon,{fontSize:"small"})}))})),i.jsx(p2,C({variant:"standard",as:D.slots.baseFormControl},G,x,{sx:[$?{display:"flex"}:{display:"none"},a?{visibility:"visible"}:{visibility:"hidden"},G.sx,x.sx],className:Pe(V.logicOperatorInput,G.className,x.className),ownerState:D,children:i.jsx(D.slots.baseSelect,C({inputProps:{"aria-label":y.current.getLocaleText("filterPanelLogicOperator")},value:L!=null?L:"",onChange:se,disabled:!!c||f.length===1,native:H},(De=D.slotProps)==null?void 0:De.baseSelect,{children:f.map(we=>re.createElement(D.slots.baseSelectOption,C({},q,{native:H,key:we.toString(),value:we.toString()}),y.current.getLocaleText(x2(we))))}))})),i.jsxs(b2,C({variant:"standard",as:D.slots.baseFormControl},G,S,{className:Pe(V.columnInput,G.className,S.className),ownerState:D,children:[i.jsx(D.slots.baseInputLabel,C({},z,{htmlFor:P,id:R,children:y.current.getLocaleText("filterPanelColumns")})),i.jsx(D.slots.baseSelect,C({labelId:R,id:P,label:y.current.getLocaleText("filterPanelColumns"),value:W!=null?W:"",onChange:ne,native:H,disabled:F},(Oe=D.slotProps)==null?void 0:Oe.baseSelect,{children:K.map(we=>re.createElement(D.slots.baseSelectOption,C({},q,{native:H,key:we.field,value:we.field}),ir(we)))}))]})),i.jsxs(C2,C({variant:"standard",as:D.slots.baseFormControl},G,w,{className:Pe(V.operatorInput,G.className,w.className),ownerState:D,children:[i.jsx(D.slots.baseInputLabel,C({},z,{htmlFor:_,id:O,children:y.current.getLocaleText("filterPanelOperator")})),i.jsx(D.slots.baseSelect,C({labelId:O,label:y.current.getLocaleText("filterPanelOperator"),id:_,value:r.operator,onChange:Z,native:H,inputRef:T,disabled:F},(Ye=D.slotProps)==null?void 0:Ye.baseSelect,{children:(qe=Y==null?void 0:Y.filterOperators)==null?void 0:qe.map(we=>re.createElement(D.slots.baseSelectOption,C({},q,{native:H,key:we.value,value:we.value}),we.label||y.current.getLocaleText(`filterOperator${oe.unstable_capitalize(we.value)}`)))}))]})),i.jsx(w2,C({variant:"standard",as:D.slots.baseFormControl},G,Q,{className:Pe(V.valueInput,G.className,Q.className),ownerState:D,children:J!=null&&J.InputComponent?i.jsx(J.InputComponent,C({apiRef:y,item:r,applyValue:l,focusElementRef:E,disabled:F},J.InputComponentProps,U),r.field):null}))]}))});process.env.NODE_ENV!=="production"&&(is.propTypes={applyFilterChanges:h.func.isRequired,applyMultiFilterOperatorChanges:h.func.isRequired,children:h.node,columnInputProps:h.any,columnsSort:h.oneOf(["asc","desc"]),deleteFilter:h.func.isRequired,deleteIconProps:h.any,disableMultiFilterOperator:h.bool,filterColumns:h.func,focusElementRef:h.oneOfType([h.func,h.object]),hasMultipleFilters:h.bool.isRequired,item:h.shape({field:h.string.isRequired,id:h.oneOfType([h.number,h.string]),operator:h.string.isRequired,value:h.any}).isRequired,logicOperatorInputProps:h.any,logicOperators:h.arrayOf(h.oneOf(["and","or"]).isRequired),operatorInputProps:h.any,readOnly:h.bool,showMultiFilterOperators:h.bool,valueInputProps:h.any});const y2=["logicOperators","columnsSort","filterFormProps","getColumnForNewFilter","children","disableAddFilterButton","disableRemoveAllButton"],Ri=e=>({field:e.field,operator:e.filterOperators[0].value,id:Math.round(Math.random()*1e5)}),Ju=je(function(t,n){var O,D;const r=ke(),o=ue(),s=te(r,ut),l=te(r,Sc),a=te(r,sb),c=g.useRef(null),u=g.useRef(null),{logicOperators:d=[mt.And,mt.Or],columnsSort:f,filterFormProps:m,getColumnForNewFilter:p,disableAddFilterButton:b=!1,disableRemoveAllButton:x=!1}=t,w=me(t,y2),S=r.current.upsertFilterItem,v=g.useCallback(V=>{r.current.setFilterLogicOperator(V)},[r]),F=g.useCallback(()=>{let V;if(p&&typeof p=="function"){const E=p({currentFilters:(s==null?void 0:s.items)||[],columns:l});if(E===null)return null;V=l.find(({field:T})=>T===E)}else V=l.find(E=>{var T;return(T=E.filterOperators)==null?void 0:T.length});return V?Ri(V):null},[s==null?void 0:s.items,l,p]),j=g.useCallback(()=>{if(p===void 0||typeof p!="function")return F();const V=s.items.length?s.items:[F()].filter(Boolean),E=p({currentFilters:V,columns:l});if(E===null)return null;const T=l.find(({field:L})=>L===E);return T?Ri(T):null},[s.items,l,p,F]),y=g.useMemo(()=>s.items.length?s.items:(u.current||(u.current=F()),u.current?[u.current]:[]),[s.items,F]),A=y.length>1,{readOnlyFilters:N,validFilters:M}=g.useMemo(()=>y.reduce((V,E)=>(a[E.field]?V.validFilters.push(E):V.readOnlyFilters.push(E),V),{readOnlyFilters:[],validFilters:[]}),[y,a]),P=g.useCallback(()=>{const V=j();V&&r.current.upsertFilterItems([...y,V])},[r,j,y]),R=g.useCallback(V=>{const E=M.length===1;r.current.deleteFilterItem(V),E&&r.current.hideFilterPanel()},[r,M.length]),_=g.useCallback(()=>M.length===1&&M[0].value===void 0?(r.current.deleteFilterItem(M[0]),r.current.hideFilterPanel()):r.current.setFilterModel(C({},s,{items:N}),"removeAllFilterItems"),[r,N,s,M]);return g.useEffect(()=>{d.length>0&&s.logicOperator&&!d.includes(s.logicOperator)&&v(d[0])},[d,v,s.logicOperator]),g.useEffect(()=>{M.length>0&&c.current.focus()},[M.length]),i.jsxs(Js,C({},w,{ref:n,children:[i.jsxs(Zu,{children:[N.map((V,E)=>i.jsx(is,C({item:V,applyFilterChanges:S,deleteFilter:R,hasMultipleFilters:A,showMultiFilterOperators:E>0,disableMultiFilterOperator:E!==1,applyMultiFilterOperatorChanges:v,focusElementRef:null,readOnly:!0,logicOperators:d,columnsSort:f},m),V.id==null?E:V.id)),M.map((V,E)=>i.jsx(is,C({item:V,applyFilterChanges:S,deleteFilter:R,hasMultipleFilters:A,showMultiFilterOperators:N.length+E>0,disableMultiFilterOperator:N.length+E!==1,applyMultiFilterOperatorChanges:v,focusElementRef:E===M.length-1?c:null,logicOperators:d,columnsSort:f},m),V.id==null?E+N.length:V.id))]}),!o.disableMultipleColumnsFiltering&&!(b&&x)?i.jsxs(Qu,{children:[b?i.jsx("span",{}):i.jsx(o.slots.baseButton,C({onClick:P,startIcon:i.jsx(o.slots.filterPanelAddIcon,{})},(O=o.slotProps)==null?void 0:O.baseButton,{children:r.current.getLocaleText("filterPanelAddFilter")})),!x&&M.length>0?i.jsx(o.slots.baseButton,C({onClick:_,startIcon:i.jsx(o.slots.filterPanelRemoveAllIcon,{})},(D=o.slotProps)==null?void 0:D.baseButton,{children:r.current.getLocaleText("filterPanelRemoveAll")})):null]}):null]}))});process.env.NODE_ENV!=="production"&&(Ju.propTypes={children:h.node,columnsSort:h.oneOf(["asc","desc"]),disableAddFilterButton:h.bool,disableRemoveAllButton:h.bool,filterFormProps:h.shape({columnInputProps:h.any,columnsSort:h.oneOf(["asc","desc"]),deleteIconProps:h.any,filterColumns:h.func,logicOperatorInputProps:h.any,operatorInputProps:h.any,valueInputProps:h.any}),getColumnForNewFilter:h.func,logicOperators:h.arrayOf(h.oneOf(["and","or"]).isRequired),sx:h.oneOfType([h.arrayOf(h.oneOfType([h.func,h.object,h.bool])),h.func,h.object])});const v2=(e,t)=>{const n=new Set(Object.keys(e).filter(s=>e[s]===!1)),r=new Set(Object.keys(t).filter(s=>t[s]===!1));if(n.size!==r.size)return!1;let o=!0;return n.forEach(s=>{r.has(s)||(o=!1)}),o},S2=(e,t)=>(e.headerName||e.field).toLowerCase().indexOf(t)>-1,k2=e=>{const{classes:t}=e,n={root:["columnsManagement"],header:["columnsManagementHeader"],searchInput:["columnsManagementSearchInput"],footer:["columnsManagementFooter"],row:["columnsManagementRow"]};return Xe.default(n,Te,t)},Li=new Intl.Collator;function ed(e){var E,T,L,$;const t=ke(),n=g.useRef(null),r=te(t,It),o=Bt.default(()=>St(t)).current,s=te(t,St),l=ue(),[a,c]=g.useState(""),u=k2(l),{sort:d,searchPredicate:f=S2,autoFocusSearchField:m=!0,disableShowHideToggle:p=!1,disableResetButton:b=!1,toggleAllMode:x="all",getTogglableColumns:w,searchInputProps:S}=e,v=g.useMemo(()=>v2(s,o),[s,o]),F=g.useMemo(()=>{switch(d){case"asc":return[...r].sort((G,k)=>Li.compare(G.headerName||G.field,k.headerName||k.field));case"desc":return[...r].sort((G,k)=>-Li.compare(G.headerName||G.field,k.headerName||k.field));default:return r}},[r,d]),j=G=>{const{name:k}=G.target;t.current.setColumnVisibility(k,s[k]===!1)},y=g.useMemo(()=>{const G=w?w(F):null,k=G?F.filter(({field:H})=>G.includes(H)):F;return a?k.filter(H=>f(H,a.toLowerCase())):k},[F,a,f,w]),A=g.useCallback(G=>{const k=St(t),H=C({},k),z=w?w(r):null;return(x==="filteredOnly"?y:r).forEach(q=>{q.hideable&&(z==null||z.includes(q.field))&&(G?delete H[q.field]:H[q.field]=!1)}),t.current.setColumnVisibilityModel(H)},[t,r,w,x,y]),N=g.useCallback(G=>{c(G.target.value)},[]),M=g.useMemo(()=>y.filter(G=>G.hideable),[y]),P=g.useMemo(()=>M.every(G=>s[G.field]==null||s[G.field]!==!1),[s,M]),R=g.useMemo(()=>M.every(G=>s[G.field]===!1),[s,M]),_=g.useRef(null);g.useEffect(()=>{m?n.current.focus():_.current&&typeof _.current.focus=="function"&&_.current.focus()},[m]);let O=!1;const D=G=>O===!1&&G.hideable!==!1?(O=!0,!0):!1,V=g.useCallback(()=>{c(""),n.current.focus()},[]);return i.jsxs(g.Fragment,{children:[i.jsx(M2,{className:u.header,ownerState:l,children:i.jsx(E2,C({as:l.slots.baseTextField,ownerState:l,placeholder:t.current.getLocaleText("columnsManagementSearchTitle"),inputRef:n,className:u.searchInput,value:a,onChange:N,variant:"outlined",size:"small",type:"search",InputProps:{startAdornment:i.jsx(l.slots.baseInputAdornment,{position:"start",children:i.jsx(l.slots.quickFilterIcon,{})}),endAdornment:i.jsx(l.slots.baseIconButton,C({"aria-label":t.current.getLocaleText("columnsManagementDeleteIconLabel"),size:"small",sx:[a?{visibility:"visible"}:{visibility:"hidden"}],tabIndex:-1,onClick:V},(E=l.slotProps)==null?void 0:E.baseIconButton,{children:i.jsx(l.slots.quickFilterClearIcon,{fontSize:"small"})}))},inputProps:{"aria-label":t.current.getLocaleText("columnsManagementSearchTitle")},autoComplete:"off",fullWidth:!0},(T=l.slotProps)==null?void 0:T.baseTextField,S))}),i.jsxs(I2,{className:u.root,ownerState:l,children:[y.map(G=>{var k;return i.jsx(gl.default,{className:u.row,control:i.jsx(l.slots.baseCheckbox,C({disabled:G.hideable===!1,checked:s[G.field]!==!1,onClick:j,name:G.field,sx:{p:.5},inputRef:D(G)?_:void 0},(k=l.slotProps)==null?void 0:k.baseCheckbox)),label:G.headerName||G.field},G.field)}),y.length===0&&i.jsx(T2,{ownerState:l,children:t.current.getLocaleText("columnsManagementNoColumns")})]}),(!p||!b)&&y.length>0?i.jsxs(P2,{ownerState:l,className:u.footer,children:[p?i.jsx("span",{}):i.jsx(gl.default,{control:i.jsx(l.slots.baseCheckbox,C({disabled:M.length===0,checked:P,indeterminate:!P&&!R,onClick:()=>A(!P),name:t.current.getLocaleText("columnsManagementShowHideAllText"),sx:{p:.5}},(L=l.slotProps)==null?void 0:L.baseCheckbox)),label:t.current.getLocaleText("columnsManagementShowHideAllText")}),b?null:i.jsx(l.slots.baseButton,C({onClick:()=>t.current.setColumnVisibilityModel(o),disabled:v},($=l.slotProps)==null?void 0:$.baseButton,{children:t.current.getLocaleText("columnsManagementReset")}))]}):null]})}process.env.NODE_ENV!=="production"&&(ed.propTypes={autoFocusSearchField:h.bool,disableResetButton:h.bool,disableShowHideToggle:h.bool,getTogglableColumns:h.func,searchInputProps:h.object,searchPredicate:h.func,sort:h.oneOf(["asc","desc"]),toggleAllMode:h.oneOf(["all","filteredOnly"])});const I2=ge.styled("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"})),M2=ge.styled("div",{name:"MuiDataGrid",slot:"ColumnsManagementHeader",overridesResolver:(e,t)=>t.columnsManagementHeader})(({theme:e})=>({padding:e.spacing(1.5,3)})),E2=ge.styled(ga.default,{name:"MuiDataGrid",slot:"ColumnsManagementSearchInput",overridesResolver:(e,t)=>t.columnsManagementSearchInput})(({theme:e})=>({[`& .${Fn.inputBaseClasses.root}`]:{padding:e.spacing(0,1.5,0,1.5)},[`& .${Fn.inputBaseClasses.input}::-webkit-search-decoration,
75
75
  & .${Fn.inputBaseClasses.input}::-webkit-search-cancel-button,
76
76
  & .${Fn.inputBaseClasses.input}::-webkit-search-results-button,
77
- & .${Fn.inputBaseClasses.input}::-webkit-search-results-decoration`]:{display:"none"}})),k2=ge.styled("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}`})),I2=ge.styled("div")(({theme:e})=>({padding:e.spacing(.5,0),color:e.palette.grey[500]})),ed=je(function(t,n){var v,F;const{children:r,slotProps:o={}}=t,s=o.button||{},l=o.tooltip||{},a=ke(),c=ue(),u=re.unstable_useId(),d=re.unstable_useId(),[h,m]=g.useState(!1),p=g.useRef(null),b=re.unstable_useForkRef(n,p),x=j=>{var y;m(A=>!A),(y=s.onClick)==null||y.call(s,j)},w=()=>m(!1),k=j=>{j.key==="Tab"&&j.preventDefault(),Au(j.key)&&w()};return r==null?null:i.jsxs(g.Fragment,{children:[i.jsx(c.slots.baseTooltip,C({title:a.current.getLocaleText("toolbarExportLabel"),enterDelay:1e3},(v=c.slotProps)==null?void 0:v.baseTooltip,l,{children:i.jsx(c.slots.baseButton,C({size:"small",startIcon:i.jsx(c.slots.exportIcon,{}),"aria-expanded":h,"aria-label":a.current.getLocaleText("toolbarExportLabel"),"aria-haspopup":"menu","aria-controls":h?d:void 0,id:u},(F=c.slotProps)==null?void 0:F.baseButton,s,{onClick:x,ref:b,children:a.current.getLocaleText("toolbarExport")}))})),i.jsx(fo,{open:h,target:p.current,onClose:w,position:"bottom-start",children:i.jsx(ps.default,{id:d,className:I.menuList,"aria-labelledby":u,onKeyDown:k,autoFocusItem:h,children:g.Children.map(r,j=>g.isValidElement(j)?g.cloneElement(j,{hideMenu:w}):j)})})]})});process.env.NODE_ENV!=="production"&&(ed.propTypes={slotProps:f.object});const M2=["hideMenu","options"],E2=["hideMenu","options"],P2=["csvOptions","printOptions","excelOptions"];function td(e){const t=ke(),{hideMenu:n,options:r}=e,o=me(e,M2);return i.jsx(Xt.default,C({onClick:()=>{t.current.exportDataAsCsv(r),n==null||n()}},o,{children:t.current.getLocaleText("toolbarExportCSV")}))}process.env.NODE_ENV!=="production"&&(td.propTypes={hideMenu:f.func,options:f.shape({allColumns:f.bool,delimiter:f.string,disableToolbarButton:f.bool,escapeFormulas:f.bool,fields:f.arrayOf(f.string),fileName:f.string,getRowsToExport:f.func,includeColumnGroupsHeaders:f.bool,includeHeaders:f.bool,shouldAppendQuotes:f.bool,utf8WithBom:f.bool})});function nd(e){const t=ke(),{hideMenu:n,options:r}=e,o=me(e,E2);return i.jsx(Xt.default,C({onClick:()=>{t.current.exportDataAsPrint(r),n==null||n()}},o,{children:t.current.getLocaleText("toolbarExportPrint")}))}process.env.NODE_ENV!=="production"&&(nd.propTypes={hideMenu:f.func,options:f.shape({allColumns:f.bool,bodyClassName:f.string,copyStyles:f.bool,disableToolbarButton:f.bool,fields:f.arrayOf(f.string),fileName:f.string,getRowsToExport:f.func,hideFooter:f.bool,hideToolbar:f.bool,includeCheckboxes:f.bool,pageStyle:f.oneOfType([f.func,f.string])})});const T2=je(function(t,n){const r=t,{csvOptions:o={},printOptions:s={},excelOptions:l}=r,a=me(r,P2),u=ke().current.unstable_applyPipeProcessors("exportMenu",[],{excelOptions:l,csvOptions:o,printOptions:s}).sort((d,h)=>d.componentName>h.componentName?1:-1);return u.length===0?null:i.jsx(ed,C({},a,{ref:n,children:u.map((d,h)=>g.cloneElement(d.component,{key:h}))}))});process.env.NODE_ENV!=="production"&&(T2.propTypes={csvOptions:f.object,printOptions:f.object,slotProps:f.object});const F2=["className","selectedRowCount"],j2=e=>{const{classes:t}=e,n={root:["selectedRowCount"]};return Xe.default(n,Te,t)},O2=Ge.styled("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"}})),rd=je(function(t,n){const{className:r,selectedRowCount:o}=t,s=me(t,F2),l=ke(),a=ue(),c=j2(a),u=l.current.getLocaleText("footerRowSelected")(o);return i.jsx(O2,C({className:Pe(c.root,r),ownerState:a},s,{ref:n,children:u}))});process.env.NODE_ENV!=="production"&&(rd.propTypes={selectedRowCount:f.number.isRequired,sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object])});const od=je(function(t,n){var h,m;const r=ke(),o=ue(),s=te(r,A1),l=te(r,$b),a=te(r,$s),c=!o.hideFooterSelectedRowCount&&l>0?i.jsx(rd,{selectedRowCount:l}):i.jsx("div",{}),u=!o.hideFooterRowCount&&!o.pagination?i.jsx(o.slots.footerRowCount,C({},(h=o.slotProps)==null?void 0:h.footerRowCount,{rowCount:s,visibleRowCount:a})):null,d=o.pagination&&!o.hideFooterPagination&&o.slots.pagination&&i.jsx(o.slots.pagination,C({},(m=o.slotProps)==null?void 0:m.pagination));return i.jsxs(Su,C({},t,{ref:n,children:[c,u,d]}))});process.env.NODE_ENV!=="production"&&(od.propTypes={sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object])});const mr=(e,t,n,r,o,s)=>{let l;switch(e){case Ie.LEFT:l=r[n];break;case Ie.RIGHT:l=o-r[n]-t+s;break;default:l=void 0;break}return l},oo=(e,t,n,r,o)=>{const s=t===n-1;return e===Ie.LEFT&&s?!0:r?e===Ie.LEFT?!0:e===Ie.RIGHT?!s:!s||o:!1},so=(e,t)=>e===Ie.RIGHT&&t===0,ar={root:I.scrollbarFiller,header:I["scrollbarFiller--header"],borderTop:I["scrollbarFiller--borderTop"],borderBottom:I["scrollbarFiller--borderBottom"],pinnedRight:I["scrollbarFiller--pinnedRight"]};function el({header:e,borderTop:t=!0,borderBottom:n,pinnedRight:r}){return i.jsx("div",{role:"presentation",className:Pe(ar.root,e&&ar.header,t&&ar.borderTop,n&&ar.borderBottom,r&&ar.pinnedRight)})}const R2=Ge.styled("div",{name:"MuiDataGrid",slot:"SkeletonLoadingOverlay",overridesResolver:(e,t)=>t.skeletonLoadingOverlay})({minWidth:"100%",width:"max-content",height:"100%",overflow:"clip"}),L2=e=>{const{classes:t}=e,n={root:["skeletonLoadingOverlay"]};return Xe.default(n,Te,t)},Li=e=>parseInt(e.getAttribute("data-colindex"),10),D2=je(function(t,n){var A;const r=ue(),{slots:o}=r,s=Gt.useRtl(),l=L2({classes:r.classes}),a=g.useRef(null),c=Rh.default(a,n),u=ke(),d=te(u,at),h=(A=d==null?void 0:d.viewportInnerSize.height)!=null?A:0,m=Math.ceil(h/d.rowHeight),p=te(u,uo),b=te(u,dn),x=g.useMemo(()=>b.filter(N=>N<=p).length,[p,b]),w=te(u,Ke),k=g.useMemo(()=>w.slice(0,x),[w,x]),v=te(u,Yn),F=g.useCallback(N=>{if(v.left.findIndex(M=>M.field===N)!==-1)return Ie.LEFT;if(v.right.findIndex(M=>M.field===N)!==-1)return Ie.RIGHT},[v.left,v.right]),j=g.useMemo(()=>{const N=[];for(let M=0;M<m;M+=1){const P=[];for(let R=0;R<k.length;R+=1){const _=k[R],O=F(_.field),D=O===Ie.LEFT,V=O===Ie.RIGHT,E=wu(O,s),T=E?v[E].length:k.length-v.left.length-v.right.length,L=E?v[E].findIndex(ne=>ne.field===_.field):R-v.left.length,$=d.hasScrollY?d.scrollbarSize:0,G=vo({},s,O,mr(O,_.computedWidth,R,b,d.columnsTotalWidth,$)),S=d.columnsTotalWidth<d.viewportOuterSize.width,H=oo(O,L,T,r.showCellVerticalBorder,S),z=so(O,L),q=R===k.length-1,U=V&&L===0,Q=U&&S,X=q&&!U&&S,W=d.viewportOuterSize.width-d.columnsTotalWidth,K=Math.max(0,W),Y=i.jsx(o.skeletonCell,{width:K,empty:!0},`skeleton-filler-column-${M}`),J=q&&$!==0;Q&&P.push(Y),P.push(i.jsx(o.skeletonCell,{field:_.field,type:_.type,align:_.align,width:"var(--width)",height:d.rowHeight,"data-colindex":R,className:Pe(D&&I["cell--pinnedLeft"],V&&I["cell--pinnedRight"],H&&I["cell--withRightBorder"],z&&I["cell--withLeftBorder"]),style:C({"--width":`${_.computedWidth}px`},G)},`skeleton-column-${M}-${_.field}`)),X&&P.push(Y),J&&P.push(i.jsx(el,{pinnedRight:v.right.length>0},`skeleton-scrollbar-filler-${M}`))}N.push(i.jsx("div",{className:Pe(I.row,I.rowSkeleton,M===0&&I["row--firstVisible"]),children:P},`skeleton-row-${M}`))}return N},[o,k,v,m,r.showCellVerticalBorder,d,b,F,s]);return le(u,"columnResize",N=>{var L,$,G;const{colDef:M,width:P}=N,R=(L=a.current)==null?void 0:L.querySelectorAll(`[data-field="${Jt(M.field)}"]`);if(!R)throw new Error("MUI X: Expected skeleton cells to be defined with `data-field` attribute.");const _=k.findIndex(S=>S.field===M.field),O=F(M.field),D=O===Ie.LEFT,V=O===Ie.RIGHT,E=getComputedStyle(R[0]).getPropertyValue("--width"),T=parseInt(E,10)-P;if(R&&R.forEach(S=>{S.style.setProperty("--width",`${P}px`)}),D){const S=($=a.current)==null?void 0:$.querySelectorAll(`.${I["cell--pinnedLeft"]}`);S==null||S.forEach(H=>{Li(H)>_&&(H.style.left=`${parseInt(getComputedStyle(H).left,10)-T}px`)})}if(V){const S=(G=a.current)==null?void 0:G.querySelectorAll(`.${I["cell--pinnedRight"]}`);S==null||S.forEach(H=>{Li(H)<_&&(H.style.right=`${parseInt(getComputedStyle(H).right,10)+T}px`)})}}),i.jsx(R2,C({className:l.root},t,{ref:c,children:j}))}),H2=["variant","noRowsVariant","style"],_2={"circular-progress":{component:Oh.default,style:{}},"linear-progress":{component:jh.default,style:{display:"block"}},skeleton:{component:D2,style:{display:"block"}}},sd=je(function(t,n){const{variant:r="circular-progress",noRowsVariant:o="circular-progress",style:s}=t,l=me(t,H2),a=ke(),c=te(a,kr),u=_2[c===0?o:r];return i.jsx(So,C({style:C({},u.style,s)},l,{ref:n,children:i.jsx(u.component,{})}))});process.env.NODE_ENV!=="production"&&(sd.propTypes={noRowsVariant:f.oneOf(["circular-progress","linear-progress","skeleton"]),sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object]),variant:f.oneOf(["circular-progress","linear-progress","skeleton"])});const ld=je(function(t,n){const o=ke().current.getLocaleText("noRowsLabel");return i.jsx(So,C({},t,{ref:n,children:o}))});process.env.NODE_ENV!=="production"&&(ld.propTypes={sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object])});const A2=ge.styled(Fh.default)(({theme:e})=>({maxHeight:"calc(100% + 1px)",flexGrow:1,[`& .${es.tablePaginationClasses.selectLabel}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"block"}},[`& .${es.tablePaginationClasses.input}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"inline-flex"}}})),V2=(e,t)=>({from:n,to:r,count:o,page:s})=>e({from:n,to:r,count:o,page:s,estimated:t}),N2=({from:e,to:t,count:n,estimated:r})=>r?`${e}–${t} of ${n!==-1?n:`more than ${r>t?r:t}`}`:`${e}–${t} of ${n!==-1?n:`more than ${t}`}`,id=je(function(t,n){var j,y;const r=ke(),o=ue(),s=te(r,ht),l=te(r,Ln),a=te(r,Xc),{paginationMode:c,loading:u,estimatedRowCount:d}=o,h=g.useMemo(()=>l===-1&&c==="server"&&u?{backIconButtonProps:{disabled:!0},nextIconButtonProps:{disabled:!0}}:{},[u,c,l]),m=g.useMemo(()=>Math.max(0,a-1),[a]),p=g.useMemo(()=>l===-1||s.page<=m?s.page:m,[m,s.page,l]),b=g.useCallback(A=>{const N=Number(A.target.value);r.current.setPageSize(N)},[r]),x=g.useCallback((A,N)=>{r.current.setPage(N)},[r]),w=A=>{for(let N=0;N<o.pageSizeOptions.length;N+=1){const M=o.pageSizeOptions[N];if(typeof M=="number"){if(M===A)return!0}else if(M.value===A)return!0}return!1};if(process.env.NODE_ENV!=="production"){const A=g.useRef(!1),N=(y=(j=o.paginationModel)==null?void 0:j.pageSize)!=null?y:s.pageSize;!A.current&&!o.autoPageSize&&!w(N)&&(console.warn([`MUI X: The page size \`${s.pageSize}\` is not present in the \`pageSizeOptions\`.`,"Add it to show the pagination select."].join(`
78
- `)),A.current=!0)}const k=w(s.pageSize)?o.pageSizeOptions:[],v=r.current.getLocaleText("MuiTablePagination"),F=V2(v.labelDisplayedRows||N2,d);return i.jsx(A2,C({component:"div",count:l,page:p,rowsPerPageOptions:k,rowsPerPage:s.pageSize,onPageChange:x,onRowsPerPageChange:b},h,v,{labelDisplayedRows:F},t,{ref:n}))});process.env.NODE_ENV!=="production"&&(id.propTypes={component:f.elementType});const $2=["className","rowCount","visibleRowCount"],z2=e=>{const{classes:t}=e,n={root:["rowCount"]};return Xe.default(n,Te,t)},G2=Ge.styled("div",{name:"MuiDataGrid",slot:"RowCount",overridesResolver:(e,t)=>t.rowCount})(({theme:e})=>({alignItems:"center",display:"flex",margin:e.spacing(0,2)})),ad=je(function(t,n){const{className:r,rowCount:o,visibleRowCount:s}=t,l=me(t,$2),a=ke(),c=ue(),u=z2(c);if(o===0)return null;const d=s<o?a.current.getLocaleText("footerTotalVisibleRows")(s,o):o.toLocaleString();return i.jsxs(G2,C({className:Pe(u.root,r),ownerState:c},l,{ref:n,children:[a.current.getLocaleText("footerTotalRows")," ",d]}))});process.env.NODE_ENV!=="production"&&(ad.propTypes={rowCount:f.number.isRequired,sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object]),visibleRowCount:f.number.isRequired});function B2(e){for(const t in e)return!1;return!0}function W2(e,t){return re.unstable_composeClasses(t,Te,e)}const q2=["selected","rowId","row","index","style","rowHeight","className","visibleColumns","pinnedColumns","offsetLeft","columnsTotalWidth","firstColumnIndex","lastColumnIndex","focusedColumnIndex","isFirstVisible","isLastVisible","isNotVisible","showBottomBorder","scrollbarWidth","gridHasFiller","onClick","onDoubleClick","onMouseEnter","onMouseLeave","onMouseOut","onMouseOver"],U2=Sr(it,(e,t)=>t?!!B2(e):!1),cd=je(function(t,n){var ve;const{selected:r,rowId:o,row:s,index:l,style:a,rowHeight:c,className:u,visibleColumns:d,pinnedColumns:h,offsetLeft:m,columnsTotalWidth:p,firstColumnIndex:b,lastColumnIndex:x,focusedColumnIndex:w,isFirstVisible:k,isLastVisible:v,isNotVisible:F,showBottomBorder:j,scrollbarWidth:y,gridHasFiller:A,onClick:N,onDoubleClick:M,onMouseEnter:P,onMouseLeave:R,onMouseOut:_,onMouseOver:O}=t,D=me(t,q2),V=Et(),E=Ys(),T=g.useRef(null),L=ue(),$=Us(V),G=te(V,jt),S=te(V,vn),H=te(V,dn),z=L.rowReordering,q=br(V,U2,z),U=re.unstable_useForkRef(T,n),Q=V.current.getRowNode(o),X=br(V,bu,{rowId:o,editMode:L.editMode}),W=L.editMode===zt.Row,K=w!==void 0,Y=K&&w>=h.left.length&&w<b,J=K&&w<d.length-h.right.length&&w>=x,ne=W2(L.classes,{root:["row",r&&"selected",W&&"row--editable",X&&"row--editing",k&&"row--firstVisible",v&&"row--lastVisible",j&&"row--borderBottom",c==="auto"&&"row--dynamicHeight"]}),Z=E.hooks.useGridRowAriaAttributes();g.useLayoutEffect(()=>{if($.range){const ce=V.current.getRowIndexRelativeToVisibleRows(o);ce!==void 0&&V.current.unstable_setLastMeasuredRowIndex(ce)}if(T.current&&c==="auto")return V.current.observeRowHeight(T.current,o)},[V,$.range,c,o]);const oe=g.useCallback((ce,ye)=>Ce=>{jr(Ce)||V.current.getRow(o)&&(V.current.publishEvent(ce,V.current.getRowParams(o),Ce),ye&&ye(Ce))},[V,o]),ee=g.useCallback(ce=>{const ye=no(ce.target,I.cell),Ce=ye==null?void 0:ye.getAttribute("data-field");if(Ce){if(Ce===Jn.field||Ce===mo||Ce==="__reorder__"||V.current.getCellMode(o,Ce)===_e.Edit)return;const Ze=V.current.getColumn(Ce);if((Ze==null?void 0:Ze.type)===ho)return}oe("rowClick",N)(ce)},[V,N,oe,o]),{slots:ae,slotProps:fe,disableColumnReorder:xe}=L,pe=te(V,()=>C({},V.current.getRowHeightEntry(o)),Os),Me=g.useMemo(()=>{if(F)return{opacity:0,width:0,height:0};const ce=C({},a,{maxHeight:c==="auto"?"none":c,minHeight:c,"--height":typeof c=="number"?`${c}px`:c});if(pe.spacingTop){const ye=L.rowSpacingType==="border"?"borderTopWidth":"marginTop";ce[ye]=pe.spacingTop}if(pe.spacingBottom){const ye=L.rowSpacingType==="border"?"borderBottomWidth":"marginBottom";let Ce=ce[ye];typeof Ce!="number"&&(Ce=parseInt(Ce||"0",10)),Ce+=pe.spacingBottom,ce[ye]=Ce}return ce},[F,c,a,pe,L.rowSpacingType]),Re=V.current.unstable_applyPipeProcessors("rowClassName",[],o),Je=Z(Q,l);if(typeof L.getRowClassName=="function"){const ce=l-(((ve=$.range)==null?void 0:ve.firstRowIndex)||0),ye=C({},V.current.getRowParams(o),{isFirstVisible:ce===0,isLastVisible:ce===$.rows.length-1,indexRelativeToCurrentPage:ce});Re.push(L.getRowClassName(ye))}const De=(ce,ye,Ce,Ze,ot=Ie.NONE)=>{var Or,nr;const Qe=V.current.unstable_getCellColSpanInfo(o,Ce);if(Qe!=null&&Qe.spannedByColSpan)return null;const Pt=(Or=Qe==null?void 0:Qe.cellProps.width)!=null?Or:ce.computedWidth,Tt=(nr=Qe==null?void 0:Qe.cellProps.colSpan)!=null?nr:1,Dt=mr(ot,ce.computedWidth,Ce,H,p,y);if(Q.type==="skeletonRow")return i.jsx(ae.skeletonCell,{type:ce.type,width:Pt,height:c,field:ce.field,align:ce.align},ce.field);const Ht=ce.field==="__reorder__",Fe=!(xe||ce.disableReorder),Ve=q&&!G.length&&S<=1,dt=!(Fe||Ht&&Ve),Wt=ot===Ie.VIRTUAL,ko=so(ot,ye),Io=oo(ot,ye,Ze,L.showCellVerticalBorder,A);return i.jsx(ae.cell,C({column:ce,width:Pt,rowId:o,align:ce.align||"left",colIndex:Ce,colSpan:Tt,disableDragEvents:dt,isNotVisible:Wt,pinnedOffset:Dt,pinnedPosition:ot,showLeftBorder:ko,showRightBorder:Io,row:s,rowNode:Q},fe==null?void 0:fe.cell),ce.field)},Oe=h.left.map((ce,ye)=>De(ce,ye,ye,h.left.length,Ie.LEFT)),Ye=h.right.map((ce,ye)=>{const Ce=d.length-h.right.length+ye;return De(ce,ye,Ce,h.right.length,Ie.RIGHT)}),qe=d.length-h.left.length-h.right.length,we=[];Y&&we.push(De(d[w],w-h.left.length,w,qe,Ie.VIRTUAL));for(let ce=b;ce<x;ce+=1){const ye=d[ce],Ce=ce-h.left.length;ye&&we.push(De(ye,Ce,ce,qe))}J&&we.push(De(d[w],w-h.left.length,w,qe,Ie.VIRTUAL));const He=s?{onClick:ee,onDoubleClick:oe("rowDoubleClick",M),onMouseEnter:oe("rowMouseEnter",P),onMouseLeave:oe("rowMouseLeave",R),onMouseOut:oe("rowMouseOut",_),onMouseOver:oe("rowMouseOver",O)}:null;return i.jsxs("div",C({"data-id":o,"data-rowindex":l,role:"row",className:Pe(...Re,ne.root,u),style:Me},Je,He,D,{ref:U,children:[Oe,i.jsx("div",{role:"presentation",className:I.cellOffsetLeft,style:{width:m}}),we,i.jsx("div",{role:"presentation",className:Pe(I.cell,I.cellEmpty)}),Ye,y!==0&&i.jsx(el,{pinnedRight:h.right.length>0,borderTop:!k})]}))});process.env.NODE_ENV!=="production"&&(cd.propTypes={columnsTotalWidth:f.number.isRequired,firstColumnIndex:f.number.isRequired,focusedColumnIndex:f.number,gridHasFiller:f.bool.isRequired,index:f.number.isRequired,isFirstVisible:f.bool.isRequired,isLastVisible:f.bool.isRequired,isNotVisible:f.bool.isRequired,lastColumnIndex:f.number.isRequired,offsetLeft:f.number.isRequired,onClick:f.func,onDoubleClick:f.func,onMouseEnter:f.func,onMouseLeave:f.func,pinnedColumns:f.object.isRequired,row:f.object.isRequired,rowHeight:f.oneOfType([f.oneOf(["auto"]),f.number]).isRequired,rowId:f.oneOfType([f.number,f.string]).isRequired,scrollbarWidth:f.number.isRequired,selected:f.bool.isRequired,showBottomBorder:f.bool.isRequired,visibleColumns:f.arrayOf(f.object).isRequired});const K2=Zt(cd),X2=()=>{const e=Et(),t=ue(),n=te(e,Ke),r=te(e,Ns),o=te(e,Tr),s=te(e,uc);return{role:"grid","aria-colcount":n.length,"aria-rowcount":o+1+s+r,"aria-multiselectable":zs(t)}},Y2=()=>{const e=Et(),t=te(e,ln),n=te(e,Tr);return g.useCallback((r,o)=>{const s={},l=o+n+2;return s["aria-rowindex"]=l,e.current.isRowSelectable(r.id)&&(s["aria-selected"]=t[r.id]!==void 0),s},[e,t,n])};function Z2({privateApiRef:e,configuration:t,props:n,children:r}){const o=g.useRef(e.current.getPublicApi());return i.jsx(Xs.Provider,{value:t,children:i.jsx(Ts.Provider,{value:n,children:i.jsx(qs.Provider,{value:e,children:i.jsx(Ps.Provider,{value:o,children:r})})})})}const Q2=e=>{const t=g.useRef(null),n=g.useRef(null),r=g.useRef(null),o=g.useRef(null),s=g.useRef(null),l=g.useRef(null);e.current.register("public",{rootElementRef:t}),e.current.register("private",{mainElementRef:n,virtualScrollerRef:r,virtualScrollbarVerticalRef:o,virtualScrollbarHorizontalRef:s,columnHeadersContainerRef:l})},J2=e=>{const t=Gt.useRtl();e.current.state.isRtl===void 0&&(e.current.state.isRtl=t);const n=g.useRef(!0);g.useEffect(()=>{n.current?n.current=!1:e.current.setState(r=>C({},r,{isRtl:t}))},[e,t])},ey=Y1()&&window.localStorage.getItem("DEBUG")!=null,gr=()=>{},ty={debug:gr,info:gr,warn:gr,error:gr},Di=["debug","info","warn","error"];function Hi(e,t,n=console){const r=Di.indexOf(t);if(r===-1)throw new Error(`MUI X: Log level ${t} not recognized.`);return Di.reduce((s,l,a)=>(a>=r?s[l]=(...c)=>{const[u,...d]=c;n[l](`MUI X: ${e} - ${u}`,...d)}:s[l]=gr,s),{})}const ny=(e,t)=>{const n=g.useCallback(r=>ey?Hi(r,"debug",t.logger):t.logLevel?Hi(r,t.logLevel.toString(),t.logger):ty,[t.logLevel,t.logger]);Se(e,{getLogger:n},"private")};class ry{constructor(){this.maxListeners=20,this.warnOnce=!1,this.events={}}on(t,n,r={}){let o=this.events[t];if(o||(o={highPriority:new Map,regular:new Map},this.events[t]=o),r.isFirst?o.highPriority.set(n,!0):o.regular.set(n,!0),process.env.NODE_ENV!=="production"){const s=o.highPriority.size+o.regular.size;s>this.maxListeners&&!this.warnOnce&&(this.warnOnce=!0,console.warn([`Possible EventEmitter memory leak detected. ${s} ${t} listeners added.`].join(`
79
- `)))}}removeListener(t,n){this.events[t]&&(this.events[t].regular.delete(n),this.events[t].highPriority.delete(n))}removeAllListeners(){this.events={}}emit(t,...n){const r=this.events[t];if(!r)return;const o=Array.from(r.highPriority.keys()),s=Array.from(r.regular.keys());for(let l=o.length-1;l>=0;l-=1){const a=o[l];r.highPriority.has(a)&&a.apply(this,n)}for(let l=0;l<s.length;l+=1){const a=s[l];r.regular.has(a)&&a.apply(this,n)}}once(t,n){const r=this;this.on(t,function o(...s){r.removeListener(t,o),n.apply(r,s)})}}class tl{static create(t){return new tl(t)}constructor(t){this.value=void 0,this.listeners=void 0,this.subscribe=n=>(this.listeners.add(n),()=>{this.listeners.delete(n)}),this.getSnapshot=()=>this.value,this.update=n=>{this.value=n,this.listeners.forEach(r=>r(n))},this.value=t,this.listeners=new Set}}const ud=Symbol("mui.api_private"),oy=e=>e.isPropagationStopped!==void 0;let _i=0;function sy(e){var o;const t=(o=e.current)==null?void 0:o[ud];if(t)return t;const n={},r={state:n,store:tl.create(n),instanceId:{id:_i}};return _i+=1,r.getPublicApi=()=>e.current,r.register=(s,l)=>{Object.keys(l).forEach(a=>{const c=l[a],u=r[a];if((u==null?void 0:u.spying)===!0?u.target=c:r[a]=c,s==="public"){const d=e.current,h=d[a];(h==null?void 0:h.spying)===!0?h.target=c:d[a]=c}})},r.register("private",{caches:{},eventManager:new ry}),r}function ly(e){return{get state(){return e.current.state},get store(){return e.current.store},get instanceId(){return e.current.instanceId},[ud]:e.current}}function iy(e,t){var l;const n=g.useRef(null),r=g.useRef(null);r.current||(r.current=sy(n)),n.current||(n.current=ly(r));const o=g.useCallback((...a)=>{const[c,u,d={}]=a;if(d.defaultMuiPrevented=!1,oy(d)&&d.isPropagationStopped())return;const h=t.signature===wt.DataGridPro||t.signature===wt.DataGridPremium?{api:r.current.getPublicApi()}:{};r.current.eventManager.emit(c,u,d,h)},[r,t.signature]),s=g.useCallback((a,c,u)=>{r.current.eventManager.on(a,c,u);const d=r.current;return()=>{d.eventManager.removeListener(a,c)}},[r]);return Se(r,{subscribeEvent:s,publishEvent:o},"public"),e&&!((l=e.current)!=null&&l.state)&&(e.current=n.current),g.useImperativeHandle(e,()=>n.current,[n]),g.useEffect(()=>{const a=r.current;return()=>{a.publishEvent("unmount")}},[r]),r}const ay=(e,t)=>{const n=g.useCallback(r=>{if(t.localeText[r]==null)throw new Error(`Missing translation for key ${r}.`);return t.localeText[r]},[t.localeText]);e.current.register("public",{getLocaleText:n})};function yr(e){"@babel/helpers - typeof";return yr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yr(e)}function cy(e,t){if(yr(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(yr(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function vr(e){var t=cy(e,"string");return yr(t)=="symbol"?t:t+""}const uy=e=>{const t=g.useRef({}),n=g.useRef(!1),r=g.useCallback(d=>{n.current||!d||(n.current=!0,Object.values(d.appliers).forEach(h=>{h()}),n.current=!1)},[]),o=g.useCallback((d,h,m)=>{t.current[d]||(t.current[d]={processors:new Map,processorsAsArray:[],appliers:{}});const p=t.current[d];return p.processors.get(h)!==m&&(p.processors.set(h,m),p.processorsAsArray=Array.from(t.current[d].processors.values()).filter(x=>x!==null),r(p)),()=>{t.current[d].processors.set(h,null),t.current[d].processorsAsArray=Array.from(t.current[d].processors.values()).filter(x=>x!==null)}},[r]),s=g.useCallback((d,h,m)=>(t.current[d]||(t.current[d]={processors:new Map,processorsAsArray:[],appliers:{}}),t.current[d].appliers[h]=m,()=>{const p=t.current[d].appliers,b=me(p,[h].map(vr));t.current[d].appliers=b}),[]),l=g.useCallback(d=>{r(t.current[d])},[r]),a=g.useCallback((...d)=>{const[h,m,p]=d;if(!t.current[h])return m;const b=t.current[h].processorsAsArray;let x=m;for(let w=0;w<b.length;w+=1)x=b[w](x,p);return x},[]),c={registerPipeProcessor:o,registerPipeApplier:s,requestPipeProcessorsApplication:l},u={unstable_applyPipeProcessors:a};Se(e,c,"private"),Se(e,u,"public")},Ue=(e,t,n,r=!0)=>{const o=g.useRef(null),s=g.useRef(`mui-${Math.round(Math.random()*1e9)}`),l=g.useCallback(()=>{o.current=e.current.registerPipeProcessor(t,s.current,n)},[e,n,t]);Ir(()=>{r&&l()});const a=g.useRef(!0);g.useEffect(()=>(a.current?a.current=!1:r&&l(),()=>{o.current&&(o.current(),o.current=null)}),[l,r])},nl=(e,t,n)=>{const r=g.useRef(null),o=g.useRef(`mui-${Math.round(Math.random()*1e9)}`),s=g.useCallback(()=>{r.current=e.current.registerPipeApplier(t,o.current,n)},[e,n,t]);Ir(()=>{s()});const l=g.useRef(!0);g.useEffect(()=>(l.current?l.current=!1:s(),()=>{r.current&&(r.current(),r.current=null)}),[s])},lo=(e,t,n,r)=>{const o=g.useCallback(()=>{e.current.registerStrategyProcessor(t,n,r)},[e,r,n,t]);Ir(()=>{o()});const s=g.useRef(!0);g.useEffect(()=>{s.current?s.current=!1:o()},[o])},Cn="none",Ai={rowTreeCreation:"rowTree",filtering:"rowTree",sorting:"rowTree",visibleRowsLookupCreation:"rowTree"},dy=e=>{const t=g.useRef(new Map),n=g.useRef({}),r=g.useCallback((c,u,d)=>{const h=()=>{const b=n.current[u],x=me(b,[c].map(vr));n.current[u]=x};n.current[u]||(n.current[u]={});const m=n.current[u],p=m[c];return m[c]=d,!p||p===d||c===e.current.getActiveStrategy(Ai[u])&&e.current.publishEvent("activeStrategyProcessorChange",u),h},[e]),o=g.useCallback((c,u)=>{const d=e.current.getActiveStrategy(Ai[c]);if(d==null)throw new Error("Can't apply a strategy processor before defining an active strategy");const h=n.current[c];if(!h||!h[d])throw new Error(`No processor found for processor "${c}" on strategy "${d}"`);const m=h[d];return m(u)},[e]),s=g.useCallback(c=>{var h;const d=Array.from(t.current.entries()).find(([,m])=>m.group!==c?!1:m.isAvailable());return(h=d==null?void 0:d[0])!=null?h:Cn},[]),l=g.useCallback((c,u,d)=>{t.current.set(u,{group:c,isAvailable:d}),e.current.publishEvent("strategyAvailabilityChange")},[e]);Se(e,{registerStrategyProcessor:r,applyStrategyProcessor:o,getActiveStrategy:s,setStrategyAvailability:l},"private")},fy=e=>{const t=g.useRef({}),n=g.useCallback(c=>{t.current[c.stateId]=c},[]),r=g.useCallback((c,u)=>{let d;if(X1(c)?d=c(e.current.state):d=c,e.current.state===d)return!1;let h=!1;const m=[];if(Object.keys(t.current).forEach(p=>{const b=t.current[p],x=b.stateSelector(e.current.state,e.current.instanceId),w=b.stateSelector(d,e.current.instanceId);w!==x&&(m.push({stateId:b.stateId,hasPropChanged:w!==b.propModel}),b.propModel!==void 0&&w!==b.propModel&&(h=!0))}),m.length>1)throw new Error(`You're not allowed to update several sub-state in one transaction. You already updated ${m[0].stateId}, therefore, you're not allowed to update ${m.map(p=>p.stateId).join(", ")} in the same transaction.`);if(h||(e.current.state=d,e.current.publishEvent("stateChange",d),e.current.store.update(d)),m.length===1){const{stateId:p,hasPropChanged:b}=m[0],x=t.current[p],w=x.stateSelector(d,e.current.instanceId);x.propOnChange&&b&&x.propOnChange(w,{reason:u,api:e.current}),h||e.current.publishEvent(x.changeEvent,w,{reason:u})}return!h},[e]),o=g.useCallback((c,u,d)=>e.current.setState(h=>C({},h,{[c]:u(h[c])}),d),[e]),s=g.useCallback(()=>{},[]),l={setState:r,forceUpdate:s},a={updateControlState:o,registerControlState:n};Se(e,l,"public"),Se(e,a,"private")},hy=(e,t)=>C({},e,{props:{getRowId:t.getRowId}}),gy=(e,t)=>{g.useEffect(()=>{e.current.setState(n=>C({},n,{props:{getRowId:t.getRowId}}))},[e,t.getRowId])},my=(e,t)=>{const n=iy(e,t);return Q2(n),gy(n,t),J2(n),ny(n,t),fy(n),uy(n),dy(n),ay(n,t),n.current.register("private",{rootProps:t}),n},lt=(e,t,n)=>{const r=g.useRef(!1);r.current||(t.current.state=e(t.current.state,n,t),r.current=!0)};function as(e,t){if(e==null)return"";const n=typeof e=="string"?e:`${e}`;if(t.shouldAppendQuotes||t.escapeFormulas){const r=n.replace(/"/g,'""');return t.escapeFormulas&&["=","+","-","@"," ","\r"].includes(r[0])?`"'${r}"`:[t.delimiter,`
80
- `,"\r",'"'].some(o=>n.includes(o))?`"${r}"`:r}return n}const dd=(e,t)=>{var s,l;const{csvOptions:n,ignoreValueFormatter:r}=t;let o;if(r){const a=e.colDef.type;a==="number"?o=String(e.value):a==="date"||a==="dateTime"?o=(s=e.value)==null?void 0:s.toISOString():typeof((l=e.value)==null?void 0:l.toString)=="function"?o=e.value.toString():o=e.value}else o=e.formattedValue;return as(o,n)};class cs{constructor(t){this.options=void 0,this.rowString="",this.isEmpty=!0,this.options=t}addValue(t){this.isEmpty||(this.rowString+=this.options.csvOptions.delimiter),typeof this.options.sanitizeCellValue=="function"?this.rowString+=this.options.sanitizeCellValue(t,this.options.csvOptions):this.rowString+=t,this.isEmpty=!1}getRowString(){return this.rowString}}const py=({id:e,columns:t,getCellParams:n,csvOptions:r,ignoreValueFormatter:o})=>{const s=new cs({csvOptions:r});return t.forEach(l=>{const a=n(e,l.field);process.env.NODE_ENV!=="production"&&String(a.formattedValue)==="[object Object]"&&kt(["MUI X: When the value of a field is an object or a `renderCell` is provided, the CSV export might not display the value correctly.","You can provide a `valueFormatter` with a string representation to be used."]),s.addValue(dd(a,{ignoreValueFormatter:o,csvOptions:r}))}),s.getRowString()};function by(e){const{columns:t,rowIds:n,csvOptions:r,ignoreValueFormatter:o,apiRef:s}=e,l=n.reduce((h,m)=>`${h}${py({id:m,columns:t,getCellParams:s.current.getCellParams,ignoreValueFormatter:o,csvOptions:r})}\r
81
- `,"").trim();if(!r.includeHeaders)return l;const a=t.filter(h=>h.field!==Jn.field),c=[];if(r.includeColumnGroupsHeaders){const h=s.current.getAllGroupDetails();let m=0;const p=a.reduce((b,x)=>{const w=s.current.getColumnGroupPath(x.field);return b[x.field]=w,m=Math.max(m,w.length),b},{});for(let b=0;b<m;b+=1){const x=new cs({csvOptions:r,sanitizeCellValue:as});c.push(x),a.forEach(w=>{const k=(p[w.field]||[])[b],v=h[k];x.addValue(v?v.headerName||v.groupId:"")})}}const u=new cs({csvOptions:r,sanitizeCellValue:as});return a.forEach(h=>{u.addValue(h.headerName||h.field)}),c.push(u),`${`${c.map(h=>h.getRowString()).join(`\r
77
+ & .${Fn.inputBaseClasses.input}::-webkit-search-results-decoration`]:{display:"none"}})),P2=ge.styled("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}`})),T2=ge.styled("div")(({theme:e})=>({padding:e.spacing(.5,0),color:e.palette.grey[500]})),td=je(function(t,n){var v,F;const{children:r,slotProps:o={}}=t,s=o.button||{},l=o.tooltip||{},a=ke(),c=ue(),u=oe.unstable_useId(),d=oe.unstable_useId(),[f,m]=g.useState(!1),p=g.useRef(null),b=oe.unstable_useForkRef(n,p),x=j=>{var y;m(A=>!A),(y=s.onClick)==null||y.call(s,j)},w=()=>m(!1),S=j=>{j.key==="Tab"&&j.preventDefault(),Vu(j.key)&&w()};return r==null?null:i.jsxs(g.Fragment,{children:[i.jsx(c.slots.baseTooltip,C({title:a.current.getLocaleText("toolbarExportLabel"),enterDelay:1e3},(v=c.slotProps)==null?void 0:v.baseTooltip,l,{children:i.jsx(c.slots.baseButton,C({size:"small",startIcon:i.jsx(c.slots.exportIcon,{}),"aria-expanded":f,"aria-label":a.current.getLocaleText("toolbarExportLabel"),"aria-haspopup":"menu","aria-controls":f?d:void 0,id:u},(F=c.slotProps)==null?void 0:F.baseButton,s,{onClick:x,ref:b,children:a.current.getLocaleText("toolbarExport")}))})),i.jsx(fo,{open:f,target:p.current,onClose:w,position:"bottom-start",children:i.jsx(ps.default,{id:d,className:I.menuList,"aria-labelledby":u,onKeyDown:S,autoFocusItem:f,children:g.Children.map(r,j=>g.isValidElement(j)?g.cloneElement(j,{hideMenu:w}):j)})})]})});process.env.NODE_ENV!=="production"&&(td.propTypes={slotProps:h.object});const F2=["hideMenu","options"],j2=["hideMenu","options"],O2=["csvOptions","printOptions","excelOptions"];function nd(e){const t=ke(),{hideMenu:n,options:r}=e,o=me(e,F2);return i.jsx(Xt.default,C({onClick:()=>{t.current.exportDataAsCsv(r),n==null||n()}},o,{children:t.current.getLocaleText("toolbarExportCSV")}))}process.env.NODE_ENV!=="production"&&(nd.propTypes={hideMenu:h.func,options:h.shape({allColumns:h.bool,delimiter:h.string,disableToolbarButton:h.bool,escapeFormulas:h.bool,fields:h.arrayOf(h.string),fileName:h.string,getRowsToExport:h.func,includeColumnGroupsHeaders:h.bool,includeHeaders:h.bool,shouldAppendQuotes:h.bool,utf8WithBom:h.bool})});function rd(e){const t=ke(),{hideMenu:n,options:r}=e,o=me(e,j2);return i.jsx(Xt.default,C({onClick:()=>{t.current.exportDataAsPrint(r),n==null||n()}},o,{children:t.current.getLocaleText("toolbarExportPrint")}))}process.env.NODE_ENV!=="production"&&(rd.propTypes={hideMenu:h.func,options:h.shape({allColumns:h.bool,bodyClassName:h.string,copyStyles:h.bool,disableToolbarButton:h.bool,fields:h.arrayOf(h.string),fileName:h.string,getRowsToExport:h.func,hideFooter:h.bool,hideToolbar:h.bool,includeCheckboxes:h.bool,pageStyle:h.oneOfType([h.func,h.string])})});const R2=je(function(t,n){const r=t,{csvOptions:o={},printOptions:s={},excelOptions:l}=r,a=me(r,O2),u=ke().current.unstable_applyPipeProcessors("exportMenu",[],{excelOptions:l,csvOptions:o,printOptions:s}).sort((d,f)=>d.componentName>f.componentName?1:-1);return u.length===0?null:i.jsx(td,C({},a,{ref:n,children:u.map((d,f)=>g.cloneElement(d.component,{key:f}))}))});process.env.NODE_ENV!=="production"&&(R2.propTypes={csvOptions:h.object,printOptions:h.object,slotProps:h.object});const L2=["className","selectedRowCount"],D2=e=>{const{classes:t}=e,n={root:["selectedRowCount"]};return Xe.default(n,Te,t)},H2=Ge.styled("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"}})),od=je(function(t,n){const{className:r,selectedRowCount:o}=t,s=me(t,L2),l=ke(),a=ue(),c=D2(a),u=l.current.getLocaleText("footerRowSelected")(o);return i.jsx(H2,C({className:Pe(c.root,r),ownerState:a},s,{ref:n,children:u}))});process.env.NODE_ENV!=="production"&&(od.propTypes={selectedRowCount:h.number.isRequired,sx:h.oneOfType([h.arrayOf(h.oneOfType([h.func,h.object,h.bool])),h.func,h.object])});const sd=je(function(t,n){var f,m;const r=ke(),o=ue(),s=te(r,z1),l=te(r,Wb),a=te(r,$s),c=!o.hideFooterSelectedRowCount&&l>0?i.jsx(od,{selectedRowCount:l}):i.jsx("div",{}),u=!o.hideFooterRowCount&&!o.pagination?i.jsx(o.slots.footerRowCount,C({},(f=o.slotProps)==null?void 0:f.footerRowCount,{rowCount:s,visibleRowCount:a})):null,d=o.pagination&&!o.hideFooterPagination&&o.slots.pagination&&i.jsx(o.slots.pagination,C({},(m=o.slotProps)==null?void 0:m.pagination));return i.jsxs(ku,C({},t,{ref:n,children:[c,u,d]}))});process.env.NODE_ENV!=="production"&&(sd.propTypes={sx:h.oneOfType([h.arrayOf(h.oneOfType([h.func,h.object,h.bool])),h.func,h.object])});const mr=(e,t,n,r,o,s)=>{let l;switch(e){case Ie.LEFT:l=r[n];break;case Ie.RIGHT:l=o-r[n]-t+s;break;default:l=void 0;break}return l},oo=(e,t,n,r,o)=>{const s=t===n-1;return e===Ie.LEFT&&s?!0:r?e===Ie.LEFT?!0:e===Ie.RIGHT?!s:!s||o:!1},so=(e,t)=>e===Ie.RIGHT&&t===0,ar={root:I.scrollbarFiller,header:I["scrollbarFiller--header"],borderTop:I["scrollbarFiller--borderTop"],borderBottom:I["scrollbarFiller--borderBottom"],pinnedRight:I["scrollbarFiller--pinnedRight"]};function el({header:e,borderTop:t=!0,borderBottom:n,pinnedRight:r}){return i.jsx("div",{role:"presentation",className:Pe(ar.root,e&&ar.header,t&&ar.borderTop,n&&ar.borderBottom,r&&ar.pinnedRight)})}const _2=Ge.styled("div",{name:"MuiDataGrid",slot:"SkeletonLoadingOverlay",overridesResolver:(e,t)=>t.skeletonLoadingOverlay})({minWidth:"100%",width:"max-content",height:"100%",overflow:"clip"}),A2=e=>{const{classes:t}=e,n={root:["skeletonLoadingOverlay"]};return Xe.default(n,Te,t)},Di=e=>parseInt(e.getAttribute("data-colindex"),10),V2=je(function(t,n){var A;const r=ue(),{slots:o}=r,s=Gt.useRtl(),l=A2({classes:r.classes}),a=g.useRef(null),c=Lh.default(a,n),u=ke(),d=te(u,at),f=(A=d==null?void 0:d.viewportInnerSize.height)!=null?A:0,m=Math.ceil(f/d.rowHeight),p=te(u,uo),b=te(u,dn),x=g.useMemo(()=>b.filter(N=>N<=p).length,[p,b]),w=te(u,Ke),S=g.useMemo(()=>w.slice(0,x),[w,x]),v=te(u,Yn),F=g.useCallback(N=>{if(v.left.findIndex(M=>M.field===N)!==-1)return Ie.LEFT;if(v.right.findIndex(M=>M.field===N)!==-1)return Ie.RIGHT},[v.left,v.right]),j=g.useMemo(()=>{const N=[];for(let M=0;M<m;M+=1){const P=[];for(let R=0;R<S.length;R+=1){const _=S[R],O=F(_.field),D=O===Ie.LEFT,V=O===Ie.RIGHT,E=xu(O,s),T=E?v[E].length:S.length-v.left.length-v.right.length,L=E?v[E].findIndex(ne=>ne.field===_.field):R-v.left.length,$=d.hasScrollY?d.scrollbarSize:0,G=vo({},s,O,mr(O,_.computedWidth,R,b,d.columnsTotalWidth,$)),k=d.columnsTotalWidth<d.viewportOuterSize.width,H=oo(O,L,T,r.showCellVerticalBorder,k),z=so(O,L),q=R===S.length-1,U=V&&L===0,Q=U&&k,X=q&&!U&&k,W=d.viewportOuterSize.width-d.columnsTotalWidth,K=Math.max(0,W),Y=i.jsx(o.skeletonCell,{width:K,empty:!0},`skeleton-filler-column-${M}`),J=q&&$!==0;Q&&P.push(Y),P.push(i.jsx(o.skeletonCell,{field:_.field,type:_.type,align:_.align,width:"var(--width)",height:d.rowHeight,"data-colindex":R,className:Pe(D&&I["cell--pinnedLeft"],V&&I["cell--pinnedRight"],H&&I["cell--withRightBorder"],z&&I["cell--withLeftBorder"]),style:C({"--width":`${_.computedWidth}px`},G)},`skeleton-column-${M}-${_.field}`)),X&&P.push(Y),J&&P.push(i.jsx(el,{pinnedRight:v.right.length>0},`skeleton-scrollbar-filler-${M}`))}N.push(i.jsx("div",{className:Pe(I.row,I.rowSkeleton,M===0&&I["row--firstVisible"]),children:P},`skeleton-row-${M}`))}return N},[o,S,v,m,r.showCellVerticalBorder,d,b,F,s]);return le(u,"columnResize",N=>{var L,$,G;const{colDef:M,width:P}=N,R=(L=a.current)==null?void 0:L.querySelectorAll(`[data-field="${Jt(M.field)}"]`);if(!R)throw new Error("MUI X: Expected skeleton cells to be defined with `data-field` attribute.");const _=S.findIndex(k=>k.field===M.field),O=F(M.field),D=O===Ie.LEFT,V=O===Ie.RIGHT,E=getComputedStyle(R[0]).getPropertyValue("--width"),T=parseInt(E,10)-P;if(R&&R.forEach(k=>{k.style.setProperty("--width",`${P}px`)}),D){const k=($=a.current)==null?void 0:$.querySelectorAll(`.${I["cell--pinnedLeft"]}`);k==null||k.forEach(H=>{Di(H)>_&&(H.style.left=`${parseInt(getComputedStyle(H).left,10)-T}px`)})}if(V){const k=(G=a.current)==null?void 0:G.querySelectorAll(`.${I["cell--pinnedRight"]}`);k==null||k.forEach(H=>{Di(H)<_&&(H.style.right=`${parseInt(getComputedStyle(H).right,10)+T}px`)})}}),i.jsx(_2,C({className:l.root},t,{ref:c,children:j}))}),N2=["variant","noRowsVariant","style"],$2={"circular-progress":{component:Rh.default,style:{}},"linear-progress":{component:Oh.default,style:{display:"block"}},skeleton:{component:V2,style:{display:"block"}}},ld=je(function(t,n){const{variant:r="circular-progress",noRowsVariant:o="circular-progress",style:s}=t,l=me(t,N2),a=ke(),c=te(a,kr),u=$2[c===0?o:r];return i.jsx(So,C({style:C({},u.style,s)},l,{ref:n,children:i.jsx(u.component,{})}))});process.env.NODE_ENV!=="production"&&(ld.propTypes={noRowsVariant:h.oneOf(["circular-progress","linear-progress","skeleton"]),sx:h.oneOfType([h.arrayOf(h.oneOfType([h.func,h.object,h.bool])),h.func,h.object]),variant:h.oneOf(["circular-progress","linear-progress","skeleton"])});const id=je(function(t,n){const o=ke().current.getLocaleText("noRowsLabel");return i.jsx(So,C({},t,{ref:n,children:o}))});process.env.NODE_ENV!=="production"&&(id.propTypes={sx:h.oneOfType([h.arrayOf(h.oneOfType([h.func,h.object,h.bool])),h.func,h.object])});const z2=ge.styled(jh.default)(({theme:e})=>({maxHeight:"calc(100% + 1px)",flexGrow:1,[`& .${es.tablePaginationClasses.selectLabel}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"block"}},[`& .${es.tablePaginationClasses.input}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"inline-flex"}}})),G2=(e,t)=>({from:n,to:r,count:o,page:s})=>e({from:n,to:r,count:o,page:s,estimated:t}),B2=({from:e,to:t,count:n,estimated:r})=>r?`${e}–${t} of ${n!==-1?n:`more than ${r>t?r:t}`}`:`${e}–${t} of ${n!==-1?n:`more than ${t}`}`,ad=je(function(t,n){var j,y;const r=ke(),o=ue(),s=te(r,ht),l=te(r,Ln),a=te(r,Yc),{paginationMode:c,loading:u,estimatedRowCount:d}=o,f=g.useMemo(()=>l===-1&&c==="server"&&u?{backIconButtonProps:{disabled:!0},nextIconButtonProps:{disabled:!0}}:{},[u,c,l]),m=g.useMemo(()=>Math.max(0,a-1),[a]),p=g.useMemo(()=>l===-1||s.page<=m?s.page:m,[m,s.page,l]),b=g.useCallback(A=>{const N=Number(A.target.value);r.current.setPageSize(N)},[r]),x=g.useCallback((A,N)=>{r.current.setPage(N)},[r]),w=A=>{for(let N=0;N<o.pageSizeOptions.length;N+=1){const M=o.pageSizeOptions[N];if(typeof M=="number"){if(M===A)return!0}else if(M.value===A)return!0}return!1};if(process.env.NODE_ENV!=="production"){const A=g.useRef(!1),N=(y=(j=o.paginationModel)==null?void 0:j.pageSize)!=null?y:s.pageSize;!A.current&&!o.autoPageSize&&!w(N)&&(console.warn([`MUI X: The page size \`${s.pageSize}\` is not present in the \`pageSizeOptions\`.`,"Add it to show the pagination select."].join(`
78
+ `)),A.current=!0)}const S=w(s.pageSize)?o.pageSizeOptions:[],v=r.current.getLocaleText("MuiTablePagination"),F=G2(v.labelDisplayedRows||B2,d);return i.jsx(z2,C({component:"div",count:l,page:p,rowsPerPageOptions:S,rowsPerPage:s.pageSize,onPageChange:x,onRowsPerPageChange:b},f,v,{labelDisplayedRows:F},t,{ref:n}))});process.env.NODE_ENV!=="production"&&(ad.propTypes={component:h.elementType});const W2=["className","rowCount","visibleRowCount"],q2=e=>{const{classes:t}=e,n={root:["rowCount"]};return Xe.default(n,Te,t)},U2=Ge.styled("div",{name:"MuiDataGrid",slot:"RowCount",overridesResolver:(e,t)=>t.rowCount})(({theme:e})=>({alignItems:"center",display:"flex",margin:e.spacing(0,2)})),cd=je(function(t,n){const{className:r,rowCount:o,visibleRowCount:s}=t,l=me(t,W2),a=ke(),c=ue(),u=q2(c);if(o===0)return null;const d=s<o?a.current.getLocaleText("footerTotalVisibleRows")(s,o):o.toLocaleString();return i.jsxs(U2,C({className:Pe(u.root,r),ownerState:c},l,{ref:n,children:[a.current.getLocaleText("footerTotalRows")," ",d]}))});process.env.NODE_ENV!=="production"&&(cd.propTypes={rowCount:h.number.isRequired,sx:h.oneOfType([h.arrayOf(h.oneOfType([h.func,h.object,h.bool])),h.func,h.object]),visibleRowCount:h.number.isRequired});function K2(e){for(const t in e)return!1;return!0}function X2(e,t){return oe.unstable_composeClasses(t,Te,e)}const Y2=["selected","rowId","row","index","style","rowHeight","className","visibleColumns","pinnedColumns","offsetLeft","columnsTotalWidth","firstColumnIndex","lastColumnIndex","focusedColumnIndex","isFirstVisible","isLastVisible","isNotVisible","showBottomBorder","scrollbarWidth","gridHasFiller","onClick","onDoubleClick","onMouseEnter","onMouseLeave","onMouseOut","onMouseOver"],Z2=Sr(it,(e,t)=>t?!!K2(e):!1),ud=je(function(t,n){var ve;const{selected:r,rowId:o,row:s,index:l,style:a,rowHeight:c,className:u,visibleColumns:d,pinnedColumns:f,offsetLeft:m,columnsTotalWidth:p,firstColumnIndex:b,lastColumnIndex:x,focusedColumnIndex:w,isFirstVisible:S,isLastVisible:v,isNotVisible:F,showBottomBorder:j,scrollbarWidth:y,gridHasFiller:A,onClick:N,onDoubleClick:M,onMouseEnter:P,onMouseLeave:R,onMouseOut:_,onMouseOver:O}=t,D=me(t,Y2),V=Et(),E=Ys(),T=g.useRef(null),L=ue(),$=Us(V),G=te(V,jt),k=te(V,vn),H=te(V,dn),z=L.rowReordering,q=br(V,Z2,z),U=oe.unstable_useForkRef(T,n),Q=V.current.getRowNode(o),X=br(V,Cu,{rowId:o,editMode:L.editMode}),W=L.editMode===zt.Row,K=w!==void 0,Y=K&&w>=f.left.length&&w<b,J=K&&w<d.length-f.right.length&&w>=x,ne=X2(L.classes,{root:["row",r&&"selected",W&&"row--editable",X&&"row--editing",S&&"row--firstVisible",v&&"row--lastVisible",j&&"row--borderBottom",c==="auto"&&"row--dynamicHeight"]}),Z=E.hooks.useGridRowAriaAttributes();g.useLayoutEffect(()=>{if($.range){const ce=V.current.getRowIndexRelativeToVisibleRows(o);ce!==void 0&&V.current.unstable_setLastMeasuredRowIndex(ce)}if(T.current&&c==="auto")return V.current.observeRowHeight(T.current,o)},[V,$.range,c,o]);const se=g.useCallback((ce,ye)=>Ce=>{jr(Ce)||V.current.getRow(o)&&(V.current.publishEvent(ce,V.current.getRowParams(o),Ce),ye&&ye(Ce))},[V,o]),ee=g.useCallback(ce=>{const ye=no(ce.target,I.cell),Ce=ye==null?void 0:ye.getAttribute("data-field");if(Ce){if(Ce===Jn.field||Ce===mo||Ce==="__reorder__"||V.current.getCellMode(o,Ce)===_e.Edit)return;const Ze=V.current.getColumn(Ce);if((Ze==null?void 0:Ze.type)===ho)return}se("rowClick",N)(ce)},[V,N,se,o]),{slots:ae,slotProps:fe,disableColumnReorder:xe}=L,pe=te(V,()=>C({},V.current.getRowHeightEntry(o)),Os),Me=g.useMemo(()=>{if(F)return{opacity:0,width:0,height:0};const ce=C({},a,{maxHeight:c==="auto"?"none":c,minHeight:c,"--height":typeof c=="number"?`${c}px`:c});if(pe.spacingTop){const ye=L.rowSpacingType==="border"?"borderTopWidth":"marginTop";ce[ye]=pe.spacingTop}if(pe.spacingBottom){const ye=L.rowSpacingType==="border"?"borderBottomWidth":"marginBottom";let Ce=ce[ye];typeof Ce!="number"&&(Ce=parseInt(Ce||"0",10)),Ce+=pe.spacingBottom,ce[ye]=Ce}return ce},[F,c,a,pe,L.rowSpacingType]),Re=V.current.unstable_applyPipeProcessors("rowClassName",[],o),Je=Z(Q,l);if(typeof L.getRowClassName=="function"){const ce=l-(((ve=$.range)==null?void 0:ve.firstRowIndex)||0),ye=C({},V.current.getRowParams(o),{isFirstVisible:ce===0,isLastVisible:ce===$.rows.length-1,indexRelativeToCurrentPage:ce});Re.push(L.getRowClassName(ye))}const De=(ce,ye,Ce,Ze,ot=Ie.NONE)=>{var Or,nr;const Qe=V.current.unstable_getCellColSpanInfo(o,Ce);if(Qe!=null&&Qe.spannedByColSpan)return null;const Pt=(Or=Qe==null?void 0:Qe.cellProps.width)!=null?Or:ce.computedWidth,Tt=(nr=Qe==null?void 0:Qe.cellProps.colSpan)!=null?nr:1,Dt=mr(ot,ce.computedWidth,Ce,H,p,y);if(Q.type==="skeletonRow")return i.jsx(ae.skeletonCell,{type:ce.type,width:Pt,height:c,field:ce.field,align:ce.align},ce.field);const Ht=ce.field==="__reorder__",Fe=!(xe||ce.disableReorder),Ve=q&&!G.length&&k<=1,dt=!(Fe||Ht&&Ve),Wt=ot===Ie.VIRTUAL,ko=so(ot,ye),Io=oo(ot,ye,Ze,L.showCellVerticalBorder,A);return i.jsx(ae.cell,C({column:ce,width:Pt,rowId:o,align:ce.align||"left",colIndex:Ce,colSpan:Tt,disableDragEvents:dt,isNotVisible:Wt,pinnedOffset:Dt,pinnedPosition:ot,showLeftBorder:ko,showRightBorder:Io,row:s,rowNode:Q},fe==null?void 0:fe.cell),ce.field)},Oe=f.left.map((ce,ye)=>De(ce,ye,ye,f.left.length,Ie.LEFT)),Ye=f.right.map((ce,ye)=>{const Ce=d.length-f.right.length+ye;return De(ce,ye,Ce,f.right.length,Ie.RIGHT)}),qe=d.length-f.left.length-f.right.length,we=[];Y&&we.push(De(d[w],w-f.left.length,w,qe,Ie.VIRTUAL));for(let ce=b;ce<x;ce+=1){const ye=d[ce],Ce=ce-f.left.length;ye&&we.push(De(ye,Ce,ce,qe))}J&&we.push(De(d[w],w-f.left.length,w,qe,Ie.VIRTUAL));const He=s?{onClick:ee,onDoubleClick:se("rowDoubleClick",M),onMouseEnter:se("rowMouseEnter",P),onMouseLeave:se("rowMouseLeave",R),onMouseOut:se("rowMouseOut",_),onMouseOver:se("rowMouseOver",O)}:null;return i.jsxs("div",C({"data-id":o,"data-rowindex":l,role:"row",className:Pe(...Re,ne.root,u),style:Me},Je,He,D,{ref:U,children:[Oe,i.jsx("div",{role:"presentation",className:I.cellOffsetLeft,style:{width:m}}),we,i.jsx("div",{role:"presentation",className:Pe(I.cell,I.cellEmpty)}),Ye,y!==0&&i.jsx(el,{pinnedRight:f.right.length>0,borderTop:!S})]}))});process.env.NODE_ENV!=="production"&&(ud.propTypes={columnsTotalWidth:h.number.isRequired,firstColumnIndex:h.number.isRequired,focusedColumnIndex:h.number,gridHasFiller:h.bool.isRequired,index:h.number.isRequired,isFirstVisible:h.bool.isRequired,isLastVisible:h.bool.isRequired,isNotVisible:h.bool.isRequired,lastColumnIndex:h.number.isRequired,offsetLeft:h.number.isRequired,onClick:h.func,onDoubleClick:h.func,onMouseEnter:h.func,onMouseLeave:h.func,pinnedColumns:h.object.isRequired,row:h.object.isRequired,rowHeight:h.oneOfType([h.oneOf(["auto"]),h.number]).isRequired,rowId:h.oneOfType([h.number,h.string]).isRequired,scrollbarWidth:h.number.isRequired,selected:h.bool.isRequired,showBottomBorder:h.bool.isRequired,visibleColumns:h.arrayOf(h.object).isRequired});const Q2=Zt(ud),J2=()=>{const e=Et(),t=ue(),n=te(e,Ke),r=te(e,Ns),o=te(e,Tr),s=te(e,dc);return{role:"grid","aria-colcount":n.length,"aria-rowcount":o+1+s+r,"aria-multiselectable":zs(t)}},ey=()=>{const e=Et(),t=te(e,ln),n=te(e,Tr);return g.useCallback((r,o)=>{const s={},l=o+n+2;return s["aria-rowindex"]=l,e.current.isRowSelectable(r.id)&&(s["aria-selected"]=t[r.id]!==void 0),s},[e,t,n])};function ty({privateApiRef:e,configuration:t,props:n,children:r}){const o=g.useRef(e.current.getPublicApi());return i.jsx(Xs.Provider,{value:t,children:i.jsx(Ts.Provider,{value:n,children:i.jsx(qs.Provider,{value:e,children:i.jsx(Ps.Provider,{value:o,children:r})})})})}const ny=e=>{const t=g.useRef(null),n=g.useRef(null),r=g.useRef(null),o=g.useRef(null),s=g.useRef(null),l=g.useRef(null);e.current.register("public",{rootElementRef:t}),e.current.register("private",{mainElementRef:n,virtualScrollerRef:r,virtualScrollbarVerticalRef:o,virtualScrollbarHorizontalRef:s,columnHeadersContainerRef:l})},ry=e=>{const t=Gt.useRtl();e.current.state.isRtl===void 0&&(e.current.state.isRtl=t);const n=g.useRef(!0);g.useEffect(()=>{n.current?n.current=!1:e.current.setState(r=>C({},r,{isRtl:t}))},[e,t])},oy=eb()&&window.localStorage.getItem("DEBUG")!=null,gr=()=>{},sy={debug:gr,info:gr,warn:gr,error:gr},Hi=["debug","info","warn","error"];function _i(e,t,n=console){const r=Hi.indexOf(t);if(r===-1)throw new Error(`MUI X: Log level ${t} not recognized.`);return Hi.reduce((s,l,a)=>(a>=r?s[l]=(...c)=>{const[u,...d]=c;n[l](`MUI X: ${e} - ${u}`,...d)}:s[l]=gr,s),{})}const ly=(e,t)=>{const n=g.useCallback(r=>oy?_i(r,"debug",t.logger):t.logLevel?_i(r,t.logLevel.toString(),t.logger):sy,[t.logLevel,t.logger]);Se(e,{getLogger:n},"private")};class iy{constructor(){this.maxListeners=20,this.warnOnce=!1,this.events={}}on(t,n,r={}){let o=this.events[t];if(o||(o={highPriority:new Map,regular:new Map},this.events[t]=o),r.isFirst?o.highPriority.set(n,!0):o.regular.set(n,!0),process.env.NODE_ENV!=="production"){const s=o.highPriority.size+o.regular.size;s>this.maxListeners&&!this.warnOnce&&(this.warnOnce=!0,console.warn([`Possible EventEmitter memory leak detected. ${s} ${t} listeners added.`].join(`
79
+ `)))}}removeListener(t,n){this.events[t]&&(this.events[t].regular.delete(n),this.events[t].highPriority.delete(n))}removeAllListeners(){this.events={}}emit(t,...n){const r=this.events[t];if(!r)return;const o=Array.from(r.highPriority.keys()),s=Array.from(r.regular.keys());for(let l=o.length-1;l>=0;l-=1){const a=o[l];r.highPriority.has(a)&&a.apply(this,n)}for(let l=0;l<s.length;l+=1){const a=s[l];r.regular.has(a)&&a.apply(this,n)}}once(t,n){const r=this;this.on(t,function o(...s){r.removeListener(t,o),n.apply(r,s)})}}class tl{static create(t){return new tl(t)}constructor(t){this.value=void 0,this.listeners=void 0,this.subscribe=n=>(this.listeners.add(n),()=>{this.listeners.delete(n)}),this.getSnapshot=()=>this.value,this.update=n=>{this.value=n,this.listeners.forEach(r=>r(n))},this.value=t,this.listeners=new Set}}const dd=Symbol("mui.api_private"),ay=e=>e.isPropagationStopped!==void 0;let Ai=0;function cy(e){var o;const t=(o=e.current)==null?void 0:o[dd];if(t)return t;const n={},r={state:n,store:tl.create(n),instanceId:{id:Ai}};return Ai+=1,r.getPublicApi=()=>e.current,r.register=(s,l)=>{Object.keys(l).forEach(a=>{const c=l[a],u=r[a];if((u==null?void 0:u.spying)===!0?u.target=c:r[a]=c,s==="public"){const d=e.current,f=d[a];(f==null?void 0:f.spying)===!0?f.target=c:d[a]=c}})},r.register("private",{caches:{},eventManager:new iy}),r}function uy(e){return{get state(){return e.current.state},get store(){return e.current.store},get instanceId(){return e.current.instanceId},[dd]:e.current}}function dy(e,t){var l;const n=g.useRef(null),r=g.useRef(null);r.current||(r.current=cy(n)),n.current||(n.current=uy(r));const o=g.useCallback((...a)=>{const[c,u,d={}]=a;if(d.defaultMuiPrevented=!1,ay(d)&&d.isPropagationStopped())return;const f=t.signature===wt.DataGridPro||t.signature===wt.DataGridPremium?{api:r.current.getPublicApi()}:{};r.current.eventManager.emit(c,u,d,f)},[r,t.signature]),s=g.useCallback((a,c,u)=>{r.current.eventManager.on(a,c,u);const d=r.current;return()=>{d.eventManager.removeListener(a,c)}},[r]);return Se(r,{subscribeEvent:s,publishEvent:o},"public"),e&&!((l=e.current)!=null&&l.state)&&(e.current=n.current),g.useImperativeHandle(e,()=>n.current,[n]),g.useEffect(()=>{const a=r.current;return()=>{a.publishEvent("unmount")}},[r]),r}const fy=(e,t)=>{const n=g.useCallback(r=>{if(t.localeText[r]==null)throw new Error(`Missing translation for key ${r}.`);return t.localeText[r]},[t.localeText]);e.current.register("public",{getLocaleText:n})};function yr(e){"@babel/helpers - typeof";return yr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yr(e)}function hy(e,t){if(yr(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(yr(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function vr(e){var t=hy(e,"string");return yr(t)=="symbol"?t:t+""}const gy=e=>{const t=g.useRef({}),n=g.useRef(!1),r=g.useCallback(d=>{n.current||!d||(n.current=!0,Object.values(d.appliers).forEach(f=>{f()}),n.current=!1)},[]),o=g.useCallback((d,f,m)=>{t.current[d]||(t.current[d]={processors:new Map,processorsAsArray:[],appliers:{}});const p=t.current[d];return p.processors.get(f)!==m&&(p.processors.set(f,m),p.processorsAsArray=Array.from(t.current[d].processors.values()).filter(x=>x!==null),r(p)),()=>{t.current[d].processors.set(f,null),t.current[d].processorsAsArray=Array.from(t.current[d].processors.values()).filter(x=>x!==null)}},[r]),s=g.useCallback((d,f,m)=>(t.current[d]||(t.current[d]={processors:new Map,processorsAsArray:[],appliers:{}}),t.current[d].appliers[f]=m,()=>{const p=t.current[d].appliers,b=me(p,[f].map(vr));t.current[d].appliers=b}),[]),l=g.useCallback(d=>{r(t.current[d])},[r]),a=g.useCallback((...d)=>{const[f,m,p]=d;if(!t.current[f])return m;const b=t.current[f].processorsAsArray;let x=m;for(let w=0;w<b.length;w+=1)x=b[w](x,p);return x},[]),c={registerPipeProcessor:o,registerPipeApplier:s,requestPipeProcessorsApplication:l},u={unstable_applyPipeProcessors:a};Se(e,c,"private"),Se(e,u,"public")},Ue=(e,t,n,r=!0)=>{const o=g.useRef(null),s=g.useRef(`mui-${Math.round(Math.random()*1e9)}`),l=g.useCallback(()=>{o.current=e.current.registerPipeProcessor(t,s.current,n)},[e,n,t]);Ir(()=>{r&&l()});const a=g.useRef(!0);g.useEffect(()=>(a.current?a.current=!1:r&&l(),()=>{o.current&&(o.current(),o.current=null)}),[l,r])},nl=(e,t,n)=>{const r=g.useRef(null),o=g.useRef(`mui-${Math.round(Math.random()*1e9)}`),s=g.useCallback(()=>{r.current=e.current.registerPipeApplier(t,o.current,n)},[e,n,t]);Ir(()=>{s()});const l=g.useRef(!0);g.useEffect(()=>(l.current?l.current=!1:s(),()=>{r.current&&(r.current(),r.current=null)}),[s])},lo=(e,t,n,r)=>{const o=g.useCallback(()=>{e.current.registerStrategyProcessor(t,n,r)},[e,r,n,t]);Ir(()=>{o()});const s=g.useRef(!0);g.useEffect(()=>{s.current?s.current=!1:o()},[o])},Cn="none",Vi={rowTreeCreation:"rowTree",filtering:"rowTree",sorting:"rowTree",visibleRowsLookupCreation:"rowTree"},my=e=>{const t=g.useRef(new Map),n=g.useRef({}),r=g.useCallback((c,u,d)=>{const f=()=>{const b=n.current[u],x=me(b,[c].map(vr));n.current[u]=x};n.current[u]||(n.current[u]={});const m=n.current[u],p=m[c];return m[c]=d,!p||p===d||c===e.current.getActiveStrategy(Vi[u])&&e.current.publishEvent("activeStrategyProcessorChange",u),f},[e]),o=g.useCallback((c,u)=>{const d=e.current.getActiveStrategy(Vi[c]);if(d==null)throw new Error("Can't apply a strategy processor before defining an active strategy");const f=n.current[c];if(!f||!f[d])throw new Error(`No processor found for processor "${c}" on strategy "${d}"`);const m=f[d];return m(u)},[e]),s=g.useCallback(c=>{var f;const d=Array.from(t.current.entries()).find(([,m])=>m.group!==c?!1:m.isAvailable());return(f=d==null?void 0:d[0])!=null?f:Cn},[]),l=g.useCallback((c,u,d)=>{t.current.set(u,{group:c,isAvailable:d}),e.current.publishEvent("strategyAvailabilityChange")},[e]);Se(e,{registerStrategyProcessor:r,applyStrategyProcessor:o,getActiveStrategy:s,setStrategyAvailability:l},"private")},py=e=>{const t=g.useRef({}),n=g.useCallback(c=>{t.current[c.stateId]=c},[]),r=g.useCallback((c,u)=>{let d;if(J1(c)?d=c(e.current.state):d=c,e.current.state===d)return!1;let f=!1;const m=[];if(Object.keys(t.current).forEach(p=>{const b=t.current[p],x=b.stateSelector(e.current.state,e.current.instanceId),w=b.stateSelector(d,e.current.instanceId);w!==x&&(m.push({stateId:b.stateId,hasPropChanged:w!==b.propModel}),b.propModel!==void 0&&w!==b.propModel&&(f=!0))}),m.length>1)throw new Error(`You're not allowed to update several sub-state in one transaction. You already updated ${m[0].stateId}, therefore, you're not allowed to update ${m.map(p=>p.stateId).join(", ")} in the same transaction.`);if(f||(e.current.state=d,e.current.publishEvent("stateChange",d),e.current.store.update(d)),m.length===1){const{stateId:p,hasPropChanged:b}=m[0],x=t.current[p],w=x.stateSelector(d,e.current.instanceId);x.propOnChange&&b&&x.propOnChange(w,{reason:u,api:e.current}),f||e.current.publishEvent(x.changeEvent,w,{reason:u})}return!f},[e]),o=g.useCallback((c,u,d)=>e.current.setState(f=>C({},f,{[c]:u(f[c])}),d),[e]),s=g.useCallback(()=>{},[]),l={setState:r,forceUpdate:s},a={updateControlState:o,registerControlState:n};Se(e,l,"public"),Se(e,a,"private")},by=(e,t)=>C({},e,{props:{getRowId:t.getRowId}}),Cy=(e,t)=>{g.useEffect(()=>{e.current.setState(n=>C({},n,{props:{getRowId:t.getRowId}}))},[e,t.getRowId])},wy=(e,t)=>{const n=dy(e,t);return ny(n),Cy(n,t),ry(n),ly(n,t),py(n),gy(n),my(n),fy(n,t),n.current.register("private",{rootProps:t}),n},lt=(e,t,n)=>{const r=g.useRef(!1);r.current||(t.current.state=e(t.current.state,n,t),r.current=!0)};function as(e,t){if(e==null)return"";const n=typeof e=="string"?e:`${e}`;if(t.shouldAppendQuotes||t.escapeFormulas){const r=n.replace(/"/g,'""');return t.escapeFormulas&&["=","+","-","@"," ","\r"].includes(r[0])?`"'${r}"`:[t.delimiter,`
80
+ `,"\r",'"'].some(o=>n.includes(o))?`"${r}"`:r}return n}const fd=(e,t)=>{var s,l;const{csvOptions:n,ignoreValueFormatter:r}=t;let o;if(r){const a=e.colDef.type;a==="number"?o=String(e.value):a==="date"||a==="dateTime"?o=(s=e.value)==null?void 0:s.toISOString():typeof((l=e.value)==null?void 0:l.toString)=="function"?o=e.value.toString():o=e.value}else o=e.formattedValue;return as(o,n)};class cs{constructor(t){this.options=void 0,this.rowString="",this.isEmpty=!0,this.options=t}addValue(t){this.isEmpty||(this.rowString+=this.options.csvOptions.delimiter),typeof this.options.sanitizeCellValue=="function"?this.rowString+=this.options.sanitizeCellValue(t,this.options.csvOptions):this.rowString+=t,this.isEmpty=!1}getRowString(){return this.rowString}}const xy=({id:e,columns:t,getCellParams:n,csvOptions:r,ignoreValueFormatter:o})=>{const s=new cs({csvOptions:r});return t.forEach(l=>{const a=n(e,l.field);process.env.NODE_ENV!=="production"&&String(a.formattedValue)==="[object Object]"&&kt(["MUI X: When the value of a field is an object or a `renderCell` is provided, the CSV export might not display the value correctly.","You can provide a `valueFormatter` with a string representation to be used."]),s.addValue(fd(a,{ignoreValueFormatter:o,csvOptions:r}))}),s.getRowString()};function yy(e){const{columns:t,rowIds:n,csvOptions:r,ignoreValueFormatter:o,apiRef:s}=e,l=n.reduce((f,m)=>`${f}${xy({id:m,columns:t,getCellParams:s.current.getCellParams,ignoreValueFormatter:o,csvOptions:r})}\r
81
+ `,"").trim();if(!r.includeHeaders)return l;const a=t.filter(f=>f.field!==Jn.field),c=[];if(r.includeColumnGroupsHeaders){const f=s.current.getAllGroupDetails();let m=0;const p=a.reduce((b,x)=>{const w=s.current.getColumnGroupPath(x.field);return b[x.field]=w,m=Math.max(m,w.length),b},{});for(let b=0;b<m;b+=1){const x=new cs({csvOptions:r,sanitizeCellValue:as});c.push(x),a.forEach(w=>{const S=(p[w.field]||[])[b],v=f[S];x.addValue(v?v.headerName||v.groupId:"")})}}const u=new cs({csvOptions:r,sanitizeCellValue:as});return a.forEach(f=>{u.addValue(f.headerName||f.field)}),c.push(u),`${`${c.map(f=>f.getRowString()).join(`\r
82
82
  `)}\r
83
- `}${l}`.trim()}function Vi(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 n=document.createRange();n.selectNode(t);const r=window.getSelection();r.removeAllRanges(),r.addRange(n);try{document.execCommand("copy")}finally{document.body.removeChild(t)}}function Cy(e){navigator.clipboard?navigator.clipboard.writeText(e).catch(()=>{Vi(e)}):Vi(e)}function wy(e){var t;return!!((t=window.getSelection())!=null&&t.toString()||e&&(e.selectionEnd||0)-(e.selectionStart||0)>0)}const xy=(e,t)=>{const n=t.ignoreValueFormatterDuringExport,r=(typeof n=="object"?n==null?void 0:n.clipboardExport:n)||!1,o=t.clipboardCopyCellDelimiter,s=g.useCallback(l=>{if(!Vx(l)||wy(l.target))return;let a="";if(e.current.getSelectedRows().size>0)a=e.current.getDataAsCsv({includeHeaders:!1,delimiter:o,shouldAppendQuotes:!1,escapeFormulas:!1});else{const u=gt(e);if(u){const d=e.current.getCellParams(u.id,u.field);a=dd(d,{csvOptions:{delimiter:o,shouldAppendQuotes:!1,escapeFormulas:!1},ignoreValueFormatter:r})}}a=e.current.unstable_applyPipeProcessors("clipboardCopy",a),a&&(Cy(a),e.current.publishEvent("clipboardCopy",a))},[e,r,o]);Gc(e,()=>e.current.rootElementRef.current,"keydown",s),Ae(e,"clipboardCopy",t.onClipboardCopy)},yy=e=>C({},e,{columnMenu:{open:!1}}),vy=e=>{const t=ct(e,"useGridColumnMenu"),n=g.useCallback(l=>{const a=Br(e.current.state),c={open:!0,field:l};(c.open!==a.open||c.field!==a.field)&&(e.current.setState(d=>d.columnMenu.open&&d.columnMenu.field===l?d:(t.debug("Opening Column Menu"),C({},d,{columnMenu:{open:!0,field:l}}))),e.current.hidePreferences())},[e,t]),r=g.useCallback(()=>{const l=Br(e.current.state);if(l.field){const u=Qt(e),d=St(e),h=Yt(e);let m=l.field;if(u[m]||(m=h[0]),d[m]===!1){const p=h.filter(x=>x===m?!0:d[x]!==!1),b=p.indexOf(m);m=p[b+1]||p[b-1]}e.current.setColumnHeaderFocus(m)}const a={open:!1,field:void 0};(a.open!==l.open||a.field!==l.field)&&e.current.setState(u=>(t.debug("Hiding Column Menu"),C({},u,{columnMenu:a})))},[e,t]),o=g.useCallback(l=>{t.debug("Toggle Column Menu");const a=Br(e.current.state);!a.open||a.field!==l?n(l):r()},[e,t,n,r]);Se(e,{showColumnMenu:n,hideColumnMenu:r,toggleColumnMenu:o},"public"),le(e,"columnResizeStart",r),le(e,"virtualScrollerWheel",e.current.hideColumnMenu),le(e,"virtualScrollerTouchMove",e.current.hideColumnMenu)},Sy=(e,t,n)=>{var o,s,l,a,c,u;const r=jn({apiRef:n,columnsToUpsert:t.columns,initialState:(o=t.initialState)==null?void 0:o.columns,columnVisibilityModel:(c=(a=t.columnVisibilityModel)!=null?a:(l=(s=t.initialState)==null?void 0:s.columns)==null?void 0:l.columnVisibilityModel)!=null?c:{},keepOnlyColumnsToUpsert:!0});return C({},e,{columns:r,pinnedColumns:(u=e.pinnedColumns)!=null?u:Zr})};function ky(e,t){var R,_;const n=ct(e,"useGridColumns"),r=g.useRef(t.columns);e.current.registerControlState({stateId:"visibleColumns",propModel:t.columnVisibilityModel,propOnChange:t.onColumnVisibilityModelChange,stateSelector:St,changeEvent:"columnVisibilityModelChange"});const o=g.useCallback(O=>{n.debug("Updating columns state."),e.current.setState(Ni(O)),e.current.publishEvent("columnsChange",O.orderedFields)},[n,e]),s=g.useCallback(O=>Qt(e)[O],[e]),l=g.useCallback(()=>It(e),[e]),a=g.useCallback(()=>Ke(e),[e]),c=g.useCallback((O,D=!0)=>(D?Ke(e):It(e)).findIndex(E=>E.field===O),[e]),u=g.useCallback(O=>{const D=c(O);return dn(e)[D]},[e,c]),d=g.useCallback(O=>{var V,E;St(e)!==O&&(e.current.setState(T=>C({},T,{columns:jn({apiRef:e,columnsToUpsert:[],initialState:void 0,columnVisibilityModel:O,keepOnlyColumnsToUpsert:!1})})),(E=(V=e.current).updateRenderContext)==null||E.call(V),e.current.forceUpdate())},[e]),h=g.useCallback(O=>{const D=jn({apiRef:e,columnsToUpsert:O,initialState:void 0,keepOnlyColumnsToUpsert:!1});o(D)},[e,o]),m=g.useCallback((O,D)=>{var T;const V=St(e),E=(T=V[O])!=null?T:!0;if(D!==E){const L=C({},V,{[O]:D});e.current.setColumnVisibilityModel(L)}},[e]),p=g.useCallback(O=>Yt(e).findIndex(V=>V===O),[e]),b=g.useCallback((O,D)=>{const V=Yt(e),E=p(O);if(E===D)return;n.debug(`Moving column ${O} to index ${D}`);const T=[...V],L=T.splice(E,1)[0];T.splice(D,0,L),o(C({},Nt(e.current.state),{orderedFields:T}));const $={column:e.current.getColumn(O),targetIndex:e.current.getColumnIndexRelativeToVisibleColumns(O),oldIndex:E};e.current.publishEvent("columnIndexChange",$)},[e,n,o,p]),x=g.useCallback((O,D)=>{n.debug(`Updating column ${O} width to ${D}`);const V=Nt(e.current.state),E=V.lookup[O],T=C({},E,{width:D,hasBeenResized:!0});o(os(C({},V,{lookup:C({},V.lookup,{[O]:T})}),e.current.getRootDimensions())),e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement(O),colDef:T,width:D})},[e,n,o]),w={getColumn:s,getAllColumns:l,getColumnIndex:c,getColumnPosition:u,getVisibleColumns:a,getColumnIndexRelativeToVisibleColumns:p,updateColumns:h,setColumnVisibilityModel:d,setColumnVisibility:m,setColumnWidth:x},k={setColumnIndex:b};Se(e,w,"public"),Se(e,k,t.signature===wt.DataGrid?"private":"public");const v=g.useCallback((O,D)=>{var G,S,H;const V={},E=St(e);(!D.exportOnlyDirtyModels||t.columnVisibilityModel!=null||Object.keys((H=(S=(G=t.initialState)==null?void 0:G.columns)==null?void 0:S.columnVisibilityModel)!=null?H:{}).length>0||Object.keys(E).length>0)&&(V.columnVisibilityModel=E),V.orderedFields=Yt(e);const L=It(e),$={};return L.forEach(z=>{if(z.hasBeenResized){const q={};lu.forEach(U=>{let Q=z[U];Q===1/0&&(Q=-1),q[U]=Q}),$[z.field]=q}}),Object.keys($).length>0&&(V.dimensions=$),C({},O,{columns:V})},[e,t.columnVisibilityModel,(R=t.initialState)==null?void 0:R.columns]),F=g.useCallback((O,D)=>{var L;const V=(L=D.stateToRestore.columns)==null?void 0:L.columnVisibilityModel,E=D.stateToRestore.columns;if(V==null&&E==null)return O;const T=jn({apiRef:e,columnsToUpsert:[],initialState:E,columnVisibilityModel:V,keepOnlyColumnsToUpsert:!1});return e.current.setState(Ni(T)),E!=null&&e.current.publishEvent("columnsChange",T.orderedFields),O},[e]),j=g.useCallback((O,D)=>{var V;if(D===bn.columns){const E=t.slots.columnsPanel;return i.jsx(E,C({},(V=t.slotProps)==null?void 0:V.columnsPanel))}return O},[t.slots.columnsPanel,(_=t.slotProps)==null?void 0:_.columnsPanel]),y=g.useCallback(O=>t.disableColumnSelector?O:[...O,"columnMenuColumnsItem"],[t.disableColumnSelector]);Ue(e,"columnMenu",y),Ue(e,"exportState",v),Ue(e,"restoreState",F),Ue(e,"preferencePanel",j);const A=g.useRef(null);le(e,"viewportInnerSizeChange",O=>{if(A.current!==O.width){if(A.current=O.width,!Ke(e).some(V=>V.flex&&V.flex>0))return;o(os(Nt(e.current.state),e.current.getRootDimensions()))}});const M=g.useCallback(()=>{n.info("Columns pipe processing have changed, regenerating the columns");const O=jn({apiRef:e,columnsToUpsert:[],initialState:void 0,keepOnlyColumnsToUpsert:!1});o(O)},[e,n,o]);nl(e,"hydrateColumns",M);const P=g.useRef(!0);g.useEffect(()=>{if(P.current){P.current=!1;return}if(n.info(`GridColumns have changed, new length ${t.columns.length}`),r.current===t.columns)return;const O=jn({apiRef:e,initialState:void 0,columnsToUpsert:t.columns,keepOnlyColumnsToUpsert:!0});r.current=t.columns,o(O)},[n,e,o,t.columns]),g.useEffect(()=>{t.columnVisibilityModel!==void 0&&e.current.setColumnVisibilityModel(t.columnVisibilityModel)},[e,n,t.columnVisibilityModel])}function Ni(e){return t=>C({},t,{columns:e})}const Iy=(e,t)=>{var n,r,o;return C({},e,{density:(o=(r=(n=t.initialState)==null?void 0:n.density)!=null?r:t.density)!=null?o:"standard"})},My=(e,t)=>{var a;const n=ct(e,"useDensity");e.current.registerControlState({stateId:"density",propModel:t.density,propOnChange:t.onDensityChange,stateSelector:Rn,changeEvent:"densityChange"});const o={setDensity:Ch.default(c=>{Rn(e.current.state)!==c&&(n.debug(`Set grid density to ${c}`),e.current.setState(d=>C({},d,{density:c})))})};Se(e,o,"public");const s=g.useCallback((c,u)=>{var m;const d=Rn(e.current.state);return!u.exportOnlyDirtyModels||t.density!=null||((m=t.initialState)==null?void 0:m.density)!=null?C({},c,{density:d}):c},[e,t.density,(a=t.initialState)==null?void 0:a.density]),l=g.useCallback((c,u)=>{var h;const d=(h=u.stateToRestore)!=null&&h.density?u.stateToRestore.density:Rn(e.current.state);return e.current.setState(m=>C({},m,{density:d})),c},[e]);Ue(e,"exportState",s),Ue(e,"restoreState",l),g.useEffect(()=>{t.density&&e.current.setDensity(t.density)},[e,t.density])};function Ey(e,t="csv",n=document.title||"untitled"){const r=`${n}.${t}`;if("download"in HTMLAnchorElement.prototype){const o=URL.createObjectURL(e),s=document.createElement("a");s.href=o,s.download=r,s.click(),setTimeout(()=>{URL.revokeObjectURL(o)});return}throw new Error("MUI X: exportAs not supported.")}const fd=({apiRef:e,options:t})=>{const n=It(e);return t.fields?t.fields.reduce((o,s)=>{const l=n.find(a=>a.field===s);return l&&o.push(l),o},[]):(t.allColumns?n:Ke(e)).filter(o=>!o.disableExport)},hd=({apiRef:e})=>{var c,u;const t=_c(e),n=nt(e),r=e.current.getSelectedRows(),o=t.filter(d=>n[d].type!=="footer"),s=Kn(e),l=((c=s==null?void 0:s.top)==null?void 0:c.map(d=>d.id))||[],a=((u=s==null?void 0:s.bottom)==null?void 0:u.map(d=>d.id))||[];return o.unshift(...l),o.push(...a),r.size>0?o.filter(d=>r.has(d)):o},Py=(e,t)=>{const n=ct(e,"useGridCsvExport"),r=t.ignoreValueFormatterDuringExport,o=(typeof r=="object"?r==null?void 0:r.csvExport:r)||!1,s=g.useCallback((u={})=>{var p,b,x,w,k;n.debug("Get data as CSV");const d=fd({apiRef:e,options:u}),m=((p=u.getRowsToExport)!=null?p:hd)({apiRef:e});return by({columns:d,rowIds:m,csvOptions:{delimiter:u.delimiter||",",shouldAppendQuotes:(b=u.shouldAppendQuotes)!=null?b:!0,includeHeaders:(x=u.includeHeaders)!=null?x:!0,includeColumnGroupsHeaders:(w=u.includeColumnGroupsHeaders)!=null?w:!0,escapeFormulas:(k=u.escapeFormulas)!=null?k:!0},ignoreValueFormatter:o,apiRef:e})},[n,e,o]),l=g.useCallback(u=>{n.debug("Export data as CSV");const d=s(u),h=new Blob([u!=null&&u.utf8WithBom?new Uint8Array([239,187,191]):"",d],{type:"text/csv"});Ey(h,"csv",u==null?void 0:u.fileName)},[n,s]);Se(e,{getDataAsCsv:s,exportDataAsCsv:l},"public");const c=g.useCallback((u,d)=>{var h;return(h=d.csvOptions)!=null&&h.disableToolbarButton?u:[...u,{component:i.jsx(td,{options:d.csvOptions}),componentName:"csvExport"}]},[]);Ue(e,"exportMenu",c)},Wr=(e,t,n)=>{var u,d;let r=e.paginationModel;const o=e.rowCount,s=(u=n==null?void 0:n.pageSize)!=null?u:r.pageSize,l=(d=n==null?void 0:n.page)!=null?d:r.page,a=Bc(o,s,l);n&&((n==null?void 0:n.page)!==r.page||(n==null?void 0:n.pageSize)!==r.pageSize)&&(r=n);const c=s===-1?0:tC(r.page,a);return c!==r.page&&(r=C({},r,{page:c})),qc(r.pageSize,t),r},Ty=(e,t)=>{var v,F;const n=ct(e,"useGridPaginationModel"),r=te(e,Un),o=g.useRef(ut(e)),s=Math.floor(t.rowHeight*r);e.current.registerControlState({stateId:"paginationModel",propModel:t.paginationModel,propOnChange:t.onPaginationModelChange,stateSelector:ht,changeEvent:"paginationModelChange"});const l=g.useCallback(j=>{const y=ht(e);j!==y.page&&(n.debug(`Setting page to ${j}`),e.current.setPaginationModel({page:j,pageSize:y.pageSize}))},[e,n]),a=g.useCallback(j=>{const y=ht(e);j!==y.pageSize&&(n.debug(`Setting page size to ${j}`),e.current.setPaginationModel({pageSize:j,page:y.page}))},[e,n]),c=g.useCallback(j=>{const y=ht(e);j!==y&&(n.debug("Setting 'paginationModel' to",j),e.current.setState(A=>C({},A,{pagination:C({},A.pagination,{paginationModel:Wr(A.pagination,t.signature,j)})}),"setPaginationModel"))},[e,n,t.signature]);Se(e,{setPage:l,setPageSize:a,setPaginationModel:c},"public");const d=g.useCallback((j,y)=>{var M,P;const A=ht(e);return!y.exportOnlyDirtyModels||t.paginationModel!=null||((P=(M=t.initialState)==null?void 0:M.pagination)==null?void 0:P.paginationModel)!=null||A.page!==0&&A.pageSize!==eC(t.autoPageSize)?C({},j,{pagination:C({},j.pagination,{paginationModel:A})}):j},[e,t.paginationModel,(F=(v=t.initialState)==null?void 0:v.pagination)==null?void 0:F.paginationModel,t.autoPageSize]),h=g.useCallback((j,y)=>{var N,M;const A=(N=y.stateToRestore.pagination)!=null&&N.paginationModel?C({},Wc(t.autoPageSize),(M=y.stateToRestore.pagination)==null?void 0:M.paginationModel):ht(e);return e.current.setState(P=>C({},P,{pagination:C({},P.pagination,{paginationModel:Wr(P.pagination,t.signature,A)})}),"stateRestorePreProcessing"),j},[e,t.autoPageSize,t.signature]);Ue(e,"exportState",d),Ue(e,"restoreState",h);const m=()=>{var y;const j=ht(e);(y=e.current.virtualScrollerRef)!=null&&y.current&&e.current.scrollToIndexes({rowIndex:j.page*j.pageSize})},p=g.useCallback(()=>{if(!t.autoPageSize)return;const j=e.current.getRootDimensions(),y=Math.max(1,Math.floor(j.viewportInnerSize.height/s));e.current.setPageSize(y)},[e,t.autoPageSize,s]),b=g.useCallback(j=>{if(j==null)return;const y=ht(e);if(y.page===0)return;const A=Xc(e);y.page>A-1&&e.current.setPage(Math.max(0,A-1))},[e]),x=g.useCallback(()=>{ht(e).page!==0&&e.current.setPage(0),e.current.getScrollPosition().top!==0&&e.current.scroll({top:0})},[e]),w=g.useCallback(j=>{const y=C({},j,{items:Vc(e)});sn(y,o.current)||(o.current=y,x())},[e,x]);le(e,"viewportInnerSizeChange",p),le(e,"paginationModelChange",m),le(e,"rowCountChange",b),le(e,"sortModelChange",mn(t.resetPageOnSortFilter,x)),le(e,"filterModelChange",mn(t.resetPageOnSortFilter,w));const k=g.useRef(!0);g.useEffect(()=>{if(k.current){k.current=!1;return}t.pagination&&e.current.setState(j=>C({},j,{pagination:C({},j.pagination,{paginationModel:Wr(j.pagination,t.signature,t.paginationModel)})}))},[e,t.paginationModel,t.signature,t.pagination]),g.useEffect(()=>{e.current.setState(j=>{const y=t.pagination===!0;return j.pagination.paginationMode===t.paginationMode||j.pagination.enabled===y?j:C({},j,{pagination:C({},j.pagination,{paginationMode:t.paginationMode,enabled:t.pagination===!0})})})},[e,t.paginationMode,t.pagination]),g.useEffect(p,[p])};function Fy(){return new Promise(e=>{requestAnimationFrame(()=>{e()})})}function jy(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}const Oy=(e,t)=>{const n=e.current.rootElementRef.current!==null,r=ct(e,"useGridPrintExport"),o=g.useRef(null),s=g.useRef(null),l=g.useRef({}),a=g.useRef([]),c=g.useRef(null);g.useEffect(()=>{o.current=re.unstable_ownerDocument(e.current.rootElementRef.current)},[e,n]);const u=g.useCallback((w,k,v)=>new Promise(F=>{const j=fd({apiRef:e,options:{fields:w,allColumns:k}}).map(N=>N.field),y=It(e),A={};y.forEach(N=>{A[N.field]=j.includes(N.field)}),v&&(A[Jn.field]=!0),e.current.setColumnVisibilityModel(A),F()}),[e]),d=g.useCallback(w=>{const v=w({apiRef:e}).reduce((F,j)=>{const y=e.current.getRow(j);return y[Nn]||F.push(y),F},[]);e.current.setRows(v)},[e]),h=g.useCallback((w,k)=>{var E,T,L;const v=C({copyStyles:!0,hideToolbar:!1,hideFooter:!1,includeCheckboxes:!1},k),F=w.contentDocument;if(!F)return;const j=er(e.current.state),y=e.current.rootElementRef.current,A=y.cloneNode(!0),N=A.querySelector(`.${I.main}`);N.style.overflow="visible",A.style.contain="size";let M=((E=y.querySelector(`.${I.toolbarContainer}`))==null?void 0:E.offsetHeight)||0,P=((T=y.querySelector(`.${I.footerContainer}`))==null?void 0:T.offsetHeight)||0;const R=A.querySelector(`.${I.footerContainer}`);v.hideToolbar&&((L=A.querySelector(`.${I.toolbarContainer}`))==null||L.remove(),M=0),v.hideFooter&&R&&(R.remove(),P=0);const _=j.currentPageTotalHeight+xo(e,t)+M+P;A.style.height=`${_}px`,A.style.boxSizing="content-box",!v.hideFooter&&R&&(R.style.position="absolute",R.style.width="100%",R.style.top=`${_-P}px`);const O=document.createElement("div");O.appendChild(A),F.body.style.marginTop="0px",F.body.innerHTML=O.innerHTML;const D=typeof v.pageStyle=="function"?v.pageStyle():v.pageStyle;if(typeof D=="string"){const $=F.createElement("style");$.appendChild(F.createTextNode(D)),F.head.appendChild($)}v.bodyClassName&&F.body.classList.add(...v.bodyClassName.split(" "));const V=[];if(v.copyStyles){const $=y.getRootNode(),S=($.constructor.name==="ShadowRoot"?$:o.current).querySelectorAll("style, link[rel='stylesheet']");for(let H=0;H<S.length;H+=1){const z=S[H];if(z.tagName==="STYLE"){const q=F.createElement(z.tagName),U=z.sheet;if(U){let Q="";for(let X=0;X<U.cssRules.length;X+=1)typeof U.cssRules[X].cssText=="string"&&(Q+=`${U.cssRules[X].cssText}\r
84
- `);q.appendChild(F.createTextNode(Q)),F.head.appendChild(q)}}else if(z.getAttribute("href")){const q=F.createElement(z.tagName);for(let U=0;U<z.attributes.length;U+=1){const Q=z.attributes[U];Q&&q.setAttribute(Q.nodeName,Q.nodeValue||"")}V.push(new Promise(U=>{q.addEventListener("load",()=>U())})),F.head.appendChild(q)}}}process.env.NODE_ENV!=="test"&&Promise.all(V).then(()=>{w.contentWindow.print()})},[e,o,t]),m=g.useCallback(w=>{var k,v;o.current.body.removeChild(w),e.current.restoreState(s.current||{}),(v=(k=s.current)==null?void 0:k.columns)!=null&&v.columnVisibilityModel||e.current.setColumnVisibilityModel(l.current),e.current.setState(F=>C({},F,{virtualization:c.current})),e.current.setRows(a.current),s.current=null,l.current={},a.current=[]},[e]),b={exportDataAsPrint:g.useCallback(async w=>{var v;if(r.debug("Export data as Print"),!e.current.rootElementRef.current)throw new Error("MUI X: No grid root element available.");if(s.current=e.current.exportState(),l.current=St(e),a.current=e.current.getSortedRows().filter(F=>!F[Nn]),t.pagination){const j={page:0,pageSize:Ns(e)};e.current.setState(y=>C({},y,{pagination:C({},y.pagination,{paginationModel:Wr(y.pagination,"DataGridPro",j)})}))}c.current=e.current.state.virtualization,e.current.unstable_setVirtualization(!1),await u(w==null?void 0:w.fields,w==null?void 0:w.allColumns,w==null?void 0:w.includeCheckboxes),d((v=w==null?void 0:w.getRowsToExport)!=null?v:hd),await Fy();const k=jy(w==null?void 0:w.fileName);process.env.NODE_ENV==="test"?(o.current.body.appendChild(k),h(k,w),m(k)):(k.onload=()=>{h(k,w),k.contentWindow.matchMedia("print").addEventListener("change",j=>{j.matches===!1&&m(k)})},o.current.body.appendChild(k))},[t,r,e,h,m,u,d])};Se(e,b,"public");const x=g.useCallback((w,k)=>{var v;return(v=k.printOptions)!=null&&v.disableToolbarButton?w:[...w,{component:i.jsx(nd,{options:k.printOptions}),componentName:"printExport"}]},[]);Ue(e,"exportMenu",x)},Ry=(e,t,n)=>{var o,s,l,a;const r=(a=(l=t.filterModel)!=null?l:(s=(o=t.initialState)==null?void 0:o.filter)==null?void 0:s.filterModel)!=null?a:Cr();return C({},e,{filter:C({filterModel:_s(r,t.disableMultipleColumnsFiltering,n)},bc),visibleRowsLookup:{}})},Ly=e=>e.filteredRowsLookup;function $i(e,t){return e.current.applyStrategyProcessor("visibleRowsLookupCreation",{tree:t.rows.tree,filteredRowsLookup:t.filter.filteredRowsLookup})}function Dy(){return Qa(Object.values)}const Hy=(e,t)=>{var P,R,_;const n=ct(e,"useGridFilter");e.current.registerControlState({stateId:"filter",propModel:t.filterModel,propOnChange:t.onFilterModelChange,stateSelector:ut,changeEvent:"filterModelChange"});const r=g.useCallback(()=>{e.current.setState(O=>{const D=ut(O,e.current.instanceId),V=e.current.getFilterState(D),E=C({},O,{filter:C({},O.filter,V)}),T=$i(e,E);return C({},E,{visibleRowsLookup:T})}),e.current.publishEvent("filteredRowsSet")},[e]),o=g.useCallback((O,D)=>D==null||D.filterable===!1||t.disableColumnFilter?O:[...O,"columnMenuFilterItem"],[t.disableColumnFilter]),s=g.useCallback(()=>{r(),e.current.forceUpdate()},[e,r]),l=g.useCallback(O=>{const D=ut(e),V=[...D.items],E=V.findIndex(T=>T.id===O.id);E===-1?V.push(O):V[E]=O,e.current.setFilterModel(C({},D,{items:V}),"upsertFilterItem")},[e]),a=g.useCallback(O=>{const D=ut(e),V=[...D.items];O.forEach(E=>{const T=V.findIndex(L=>L.id===E.id);T===-1?V.push(E):V[T]=E}),e.current.setFilterModel(C({},D,{items:V}),"upsertFilterItems")},[e]),c=g.useCallback(O=>{const D=ut(e),V=D.items.filter(E=>E.id!==O.id);V.length!==D.items.length&&e.current.setFilterModel(C({},D,{items:V}),"deleteFilterItem")},[e]),u=g.useCallback((O,D,V)=>{if(n.debug("Displaying filter panel"),O){const E=ut(e),T=E.items.filter(S=>{var U;if(S.value!==void 0)return!(Array.isArray(S.value)&&S.value.length===0);const z=(U=e.current.getColumn(S.field).filterOperators)==null?void 0:U.find(Q=>Q.value===S.operator);return!(typeof(z==null?void 0:z.requiresFilterValue)=="undefined"?!0:z==null?void 0:z.requiresFilterValue)});let L;const $=T.find(S=>S.field===O),G=e.current.getColumn(O);$?L=T:t.disableMultipleColumnsFiltering?L=[ns({field:O,operator:G.filterOperators[0].value},e)]:L=[...T,ns({field:O,operator:G.filterOperators[0].value},e)],e.current.setFilterModel(C({},E,{items:L}))}e.current.showPreferences(bn.filters,D,V)},[e,n,t.disableMultipleColumnsFiltering]),d=g.useCallback(()=>{n.debug("Hiding filter panel"),e.current.hidePreferences()},[e,n]),h=g.useCallback(O=>{const D=ut(e);D.logicOperator!==O&&e.current.setFilterModel(C({},D,{logicOperator:O}),"changeLogicOperator")},[e]),m=g.useCallback(O=>{const D=ut(e);sn(D.quickFilterValues,O)||e.current.setFilterModel(C({},D,{quickFilterValues:[...O]}))},[e]),p=g.useCallback((O,D)=>{ut(e)!==O&&(n.debug("Setting filter model"),e.current.updateControlState("filter",Ql(O,t.disableMultipleColumnsFiltering,e),D),e.current.unstable_applyFilters())},[e,n,t.disableMultipleColumnsFiltering]),b=g.useCallback(O=>{const D=_s(O,t.disableMultipleColumnsFiltering,e),V=t.filterMode==="client"?lb(D,e,t.disableEval):null,E=e.current.applyStrategyProcessor("filtering",{isRowMatchingFilters:V,filterModel:D!=null?D:Cr()});return C({},E,{filterModel:D})},[t.disableMultipleColumnsFiltering,t.filterMode,t.disableEval,e]),x={setFilterLogicOperator:h,unstable_applyFilters:s,deleteFilterItem:c,upsertFilterItem:l,upsertFilterItems:a,setFilterModel:p,showFilterPanel:u,hideFilterPanel:d,setQuickFilterValues:m,ignoreDiacritics:t.ignoreDiacritics,getFilterState:b};Se(e,x,"public");const w=g.useCallback((O,D)=>{var T,L;const V=ut(e);return V.items.forEach($=>{delete $.fromInput}),!D.exportOnlyDirtyModels||t.filterModel!=null||((L=(T=t.initialState)==null?void 0:T.filter)==null?void 0:L.filterModel)!=null||!sn(V,Cr())?C({},O,{filter:{filterModel:V}}):O},[e,t.filterModel,(R=(P=t.initialState)==null?void 0:P.filter)==null?void 0:R.filterModel]),k=g.useCallback((O,D)=>{var E;const V=(E=D.stateToRestore.filter)==null?void 0:E.filterModel;return V==null?O:(e.current.updateControlState("filter",Ql(V,t.disableMultipleColumnsFiltering,e),"restoreState"),C({},O,{callbacks:[...O.callbacks,e.current.unstable_applyFilters]}))},[e,t.disableMultipleColumnsFiltering]),v=g.useCallback((O,D)=>{var V;if(D===bn.filters){const E=t.slots.filterPanel;return i.jsx(E,C({},(V=t.slotProps)==null?void 0:V.filterPanel))}return O},[t.slots.filterPanel,(_=t.slotProps)==null?void 0:_.filterPanel]),{getRowId:F}=t,j=Bt.default(Dy),y=g.useCallback(O=>{var H;if(t.filterMode!=="client"||!O.isRowMatchingFilters||!O.filterModel.items.length&&!((H=O.filterModel.quickFilterValues)!=null&&H.length))return bc;const D=vt(e),V={},{isRowMatchingFilters:E}=O,T={},L={passingFilterItems:null,passingQuickFilterValues:null},$=j.current(e.current.state.rows.dataRowIdToModelLookup);for(let z=0;z<$.length;z+=1){const q=$[z],U=F?F(q):q.id;E(q,void 0,L);const Q=ab([L.passingFilterItems],[L.passingQuickFilterValues],O.filterModel,e,T);V[U]=Q}const G="auto-generated-group-footer-root";return D[G]&&(V[G]=!0),{filteredRowsLookup:V,filteredChildrenCountLookup:{},filteredDescendantCountLookup:{}}},[e,t.filterMode,F,j]);Ue(e,"columnMenu",o),Ue(e,"exportState",w),Ue(e,"restoreState",k),Ue(e,"preferencePanel",v),lo(e,Cn,"filtering",y),lo(e,Cn,"visibleRowsLookupCreation",Ly);const A=g.useCallback(()=>{n.debug("onColUpdated - GridColumns changed, applying filters");const O=ut(e),D=Qt(e),V=O.items.filter(E=>E.field&&D[E.field]);V.length<O.items.length&&e.current.setFilterModel(C({},O,{items:V}))},[e,n]),N=g.useCallback(O=>{O==="filtering"&&e.current.unstable_applyFilters()},[e]),M=g.useCallback(()=>{e.current.setState(O=>C({},O,{visibleRowsLookup:$i(e,O)})),e.current.forceUpdate()},[e]);le(e,"rowsSet",r),le(e,"columnsChange",A),le(e,"activeStrategyProcessorChange",N),le(e,"rowExpansionChange",M),le(e,"columnVisibilityModelChange",()=>{const O=ut(e);O.quickFilterValues&&kc(O)&&e.current.unstable_applyFilters()}),Ir(()=>{e.current.unstable_applyFilters()}),re.unstable_useEnhancedEffect(()=>{t.filterModel!==void 0&&e.current.setFilterModel(t.filterModel)},[e,n,t.filterModel])},_y=e=>C({},e,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},tabIndex:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}),Ay=(e,t)=>{const n=ct(e,"useGridFocus"),r=g.useRef(null),o=e.current.rootElementRef.current!==null,s=g.useCallback((M,P)=>{M&&e.current.getRow(M.id)&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(M.id,M.field),P)},[e]),l=g.useCallback((M,P)=>{const R=gt(e);(R==null?void 0:R.id)===M&&(R==null?void 0:R.field)===P||(e.current.setState(_=>(n.debug(`Focusing on cell with id=${M} and field=${P}`),C({},_,{tabIndex:{cell:{id:M,field:P},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},focus:{cell:{id:M,field:P},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))),e.current.forceUpdate(),e.current.getRow(M)&&(R&&s(R,{}),e.current.publishEvent("cellFocusIn",e.current.getCellParams(M,P))))},[e,n,s]),a=g.useCallback((M,P={})=>{const R=gt(e);s(R,P),e.current.setState(_=>(n.debug(`Focusing on column header with colIndex=${M}`),C({},_,{tabIndex:{columnHeader:{field:M},columnHeaderFilter:null,cell:null,columnGroupHeader:null},focus:{columnHeader:{field:M},columnHeaderFilter:null,cell:null,columnGroupHeader:null}}))),e.current.forceUpdate()},[e,n,s]),c=g.useCallback((M,P={})=>{const R=gt(e);s(R,P),e.current.setState(_=>(n.debug(`Focusing on column header filter with colIndex=${M}`),C({},_,{tabIndex:{columnHeader:null,columnHeaderFilter:{field:M},cell:null,columnGroupHeader:null},focus:{columnHeader:null,columnHeaderFilter:{field:M},cell:null,columnGroupHeader:null}}))),e.current.forceUpdate()},[e,n,s]),u=g.useCallback((M,P,R={})=>{const _=gt(e);_&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(_.id,_.field),R),e.current.setState(O=>C({},O,{tabIndex:{columnGroupHeader:{field:M,depth:P},columnHeader:null,columnHeaderFilter:null,cell:null},focus:{columnGroupHeader:{field:M,depth:P},columnHeader:null,columnHeaderFilter:null,cell:null}})),e.current.forceUpdate()},[e]),d=g.useCallback(()=>Qr(e),[e]),h=g.useCallback((M,P,R)=>{let _=e.current.getColumnIndex(P);const O=Ke(e),D=an(e,{pagination:t.pagination,paginationMode:t.paginationMode}),V=Kn(e),E=[].concat(V.top||[],D.rows,V.bottom||[]);let T=E.findIndex(S=>S.id===M);R==="right"?_+=1:R==="left"?_-=1:T+=1,_>=O.length?(T+=1,T<E.length&&(_=0)):_<0&&(T-=1,T>=0&&(_=O.length-1)),T=xt(T,0,E.length-1);const L=E[T];if(!L)return;const $=e.current.unstable_getCellColSpanInfo(L.id,_);$&&$.spannedByColSpan&&(R==="left"||R==="below"?_=$.leftVisibleCellIndex:R==="right"&&(_=$.rightVisibleCellIndex)),_=xt(_,0,O.length-1);const G=O[_];e.current.setCellFocus(L.id,G.field)},[e,t.pagination,t.paginationMode]),m=g.useCallback(({id:M,field:P})=>{e.current.setCellFocus(M,P)},[e]),p=g.useCallback((M,P)=>{P.key==="Enter"||P.key==="Tab"||P.key==="Shift"||ro(P.key)||e.current.setCellFocus(M.id,M.field)},[e]),b=g.useCallback(({field:M},P)=>{P.target===P.currentTarget&&e.current.setColumnHeaderFocus(M,P)},[e]),x=g.useCallback(({fields:M,depth:P},R)=>{if(R.target!==R.currentTarget)return;const _=Qr(e);_!==null&&_.depth===P&&M.includes(_.field)||e.current.setColumnGroupHeaderFocus(M[0],P,R)},[e]),w=g.useCallback((M,P)=>{var R,_;(_=(R=P.relatedTarget)==null?void 0:R.getAttribute("class"))!=null&&_.includes(I.columnHeader)||(n.debug("Clearing focus"),e.current.setState(O=>C({},O,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})))},[n,e]),k=g.useCallback(M=>{r.current=M},[]),v=g.useCallback(M=>{const P=r.current;r.current=null;const R=gt(e);if(!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:M,cell:P}))return;if(!R){P&&e.current.setCellFocus(P.id,P.field);return}if((P==null?void 0:P.id)===R.id&&(P==null?void 0:P.field)===R.field)return;const O=e.current.getCellElement(R.id,R.field);O!=null&&O.contains(M.target)||(P?e.current.setCellFocus(P.id,P.field):(e.current.setState(D=>C({},D,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})),e.current.forceUpdate(),s(R,M)))},[e,s]),F=g.useCallback(M=>{if(M.cellMode==="view")return;const P=gt(e);((P==null?void 0:P.id)!==M.id||(P==null?void 0:P.field)!==M.field)&&e.current.setCellFocus(M.id,M.field)},[e]),j=g.useCallback(()=>{var P;const M=gt(e);if(M&&!e.current.getRow(M.id)){const R=M.id;let _=null;if(typeof R!="undefined"){const O=e.current.getRowElement(R),D=O!=null&&O.dataset.rowindex?Number(O==null?void 0:O.dataset.rowindex):0,V=an(e,{pagination:t.pagination,paginationMode:t.paginationMode}),E=V.rows[xt(D,0,V.rows.length-1)];_=(P=E==null?void 0:E.id)!=null?P:null}e.current.setState(O=>C({},O,{focus:{cell:_===null?null:{id:_,field:M.field},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))}},[e,t.pagination,t.paginationMode]),y=re.unstable_useEventCallback(()=>{const M=gt(e);if(!M)return;const P=an(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(P.rows.find(O=>O.id===M.id))return;const _=Ke(e);e.current.setState(O=>C({},O,{tabIndex:{cell:{id:P.rows[0].id,field:_[0].field},columnGroupHeader:null,columnHeader:null,columnHeaderFilter:null}}))}),A={setCellFocus:l,setColumnHeaderFocus:a,setColumnHeaderFilterFocus:c},N={moveFocusToRelativeCell:h,setColumnGroupHeaderFocus:u,getColumnGroupHeaderFocus:d};Se(e,A,"public"),Se(e,N,"private"),g.useEffect(()=>{const M=re.unstable_ownerDocument(e.current.rootElementRef.current);return M.addEventListener("mouseup",v),()=>{M.removeEventListener("mouseup",v)}},[e,o,v]),le(e,"columnHeaderBlur",w),le(e,"cellDoubleClick",m),le(e,"cellMouseDown",k),le(e,"cellKeyDown",p),le(e,"cellModeChange",F),le(e,"columnHeaderFocus",b),le(e,"columnGroupHeaderFocus",x),le(e,"rowsSet",j),le(e,"paginationModelChange",y)},qo=({currentColIndex:e,firstColIndex:t,lastColIndex:n,isRtl:r})=>{if(r){if(e<n)return e+1}else if(!r&&e>t)return e-1;return null},Uo=({currentColIndex:e,firstColIndex:t,lastColIndex:n,isRtl:r})=>{if(r){if(e>t)return e-1}else if(!r&&e<n)return e+1;return null};function Vy(e,t,n,r){var a,c;const o=uu(e);if(!((a=o[t])!=null&&a[n]))return t;const s=_c(e);let l=s.indexOf(t)+(r==="down"?1:-1);for(;l>=0&&l<s.length;){const u=s[l];if(!((c=o[u])!=null&&c[n]))return u;l+=r==="down"?1:-1}return t}const Ny=Le(Er,Kn,(e,t)=>(t.top||[]).concat(e.rows,t.bottom||[])),$y=(e,t)=>{const n=ct(e,"useGridKeyboardNavigation"),r=Gt.useRtl(),o=t.unstable_listView,s=g.useCallback(()=>Ny(e),[e]),l=t.signature!=="DataGrid"&&t.headerFilters,a=g.useCallback((k,v,F="left",j="up")=>{const y=fn(e),A=e.current.unstable_getCellColSpanInfo(v,k);A&&A.spannedByColSpan&&(F==="left"?k=A.leftVisibleCellIndex:F==="right"&&(k=A.rightVisibleCellIndex));const N=o?Gn(e.current.state).field:Xn(e)[k],M=Vy(e,v,N,j),P=y.findIndex(R=>R.id===M);n.debug(`Navigating to cell row ${P}, col ${k}`),e.current.scrollToIndexes({colIndex:k,rowIndex:P}),e.current.setCellFocus(M,N)},[e,n,o]),c=g.useCallback((k,v)=>{n.debug(`Navigating to header col ${k}`),e.current.scrollToIndexes({colIndex:k});const F=e.current.getVisibleColumns()[k].field;e.current.setColumnHeaderFocus(F,v)},[e,n]),u=g.useCallback((k,v)=>{n.debug(`Navigating to header filter col ${k}`),e.current.scrollToIndexes({colIndex:k});const F=e.current.getVisibleColumns()[k].field;e.current.setColumnHeaderFilterFocus(F,v)},[e,n]),d=g.useCallback((k,v,F)=>{n.debug(`Navigating to header col ${k}`),e.current.scrollToIndexes({colIndex:k});const{field:j}=e.current.getVisibleColumns()[k];e.current.setColumnGroupHeaderFocus(j,v,F)},[e,n]),h=g.useCallback(k=>{var v;return(v=s()[k])==null?void 0:v.id},[s]),m=g.useCallback((k,v)=>{const F=v.currentTarget.querySelector(`.${I.columnHeaderTitleContainerContent}`);if(!!F&&F.contains(v.target)&&k.field!==Jn.field)return;const y=s(),A=e.current.getViewportPageSize(),N=k.field?e.current.getColumnIndex(k.field):0,M=y.length>0?0:null,P=y.length-1,R=0,_=Ke(e).length-1,O=Tr(e);let D=!0;switch(v.key){case"ArrowDown":{l?u(N,v):M!==null&&a(N,h(M));break}case"ArrowRight":{const V=Uo({currentColIndex:N,firstColIndex:R,lastColIndex:_,isRtl:r});V!==null&&c(V,v);break}case"ArrowLeft":{const V=qo({currentColIndex:N,firstColIndex:R,lastColIndex:_,isRtl:r});V!==null&&c(V,v);break}case"ArrowUp":{O>0&&d(N,O-1,v);break}case"PageDown":{M!==null&&P!==null&&a(N,h(Math.min(M+A,P)));break}case"Home":{c(R,v);break}case"End":{c(_,v);break}case"Enter":{(v.ctrlKey||v.metaKey)&&e.current.toggleColumnMenu(k.field);break}case" ":break;default:D=!1}D&&v.preventDefault()},[e,s,l,u,a,h,r,c,d]),p=g.useCallback((k,v)=>{const F=HC(e)===k.field,j=_C(e)===k.field;if(F||j||!ro(v.key))return;const y=s(),A=e.current.getViewportPageSize(),N=k.field?e.current.getColumnIndex(k.field):0,M=0,P=y.length-1,R=0,_=Ke(e).length-1;let O=!0;switch(v.key){case"ArrowDown":{const D=h(M);D!=null&&a(N,D);break}case"ArrowRight":{const D=Uo({currentColIndex:N,firstColIndex:R,lastColIndex:_,isRtl:r});D!==null&&u(D,v);break}case"ArrowLeft":{const D=qo({currentColIndex:N,firstColIndex:R,lastColIndex:_,isRtl:r});D!==null?u(D,v):e.current.setColumnHeaderFilterFocus(k.field,v);break}case"ArrowUp":{c(N,v);break}case"PageDown":{P!==null&&a(N,h(Math.min(M+A,P)));break}case"Home":{u(R,v);break}case"End":{u(_,v);break}case" ":break;default:O=!1}O&&v.preventDefault()},[e,s,u,r,c,a,h]),b=g.useCallback((k,v)=>{const F=Qr(e);if(F===null)return;const{field:j,depth:y}=F,{fields:A,depth:N,maxDepth:M}=k,P=s(),R=e.current.getViewportPageSize(),_=e.current.getColumnIndex(j),O=j?e.current.getColumnIndex(j):0,D=0,V=P.length-1,E=0,T=Ke(e).length-1;let L=!0;switch(v.key){case"ArrowDown":{N===M-1?c(_,v):d(_,y+1,v);break}case"ArrowUp":{N>0&&d(_,y-1,v);break}case"ArrowRight":{const $=A.length-A.indexOf(j)-1;_+$+1<=T&&d(_+$+1,y,v);break}case"ArrowLeft":{const $=A.indexOf(j);_-$-1>=E&&d(_-$-1,y,v);break}case"PageDown":{V!==null&&a(O,h(Math.min(D+R,V)));break}case"Home":{d(E,y,v);break}case"End":{d(T,y,v);break}case" ":break;default:L=!1}L&&v.preventDefault()},[e,s,c,d,a,h]),x=g.useCallback((k,v)=>{if(jr(v))return;const F=e.current.getCellParams(k.id,k.field);if(F.cellMode===_e.Edit||!ro(v.key)||!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:v,cell:F}))return;const y=s();if(y.length===0)return;const A=e.current.getViewportPageSize(),N=o?()=>0:e.current.getColumnIndex,M=k.field?N(k.field):0,P=y.findIndex(T=>T.id===k.id),R=0,_=y.length-1,O=0,V=(o?[Gn(e.current.state)]:Ke(e)).length-1;let E=!0;switch(v.key){case"ArrowDown":{P<_&&a(M,h(P+1),r?"right":"left","down");break}case"ArrowUp":{P>R?a(M,h(P-1)):l?u(M,v):c(M,v);break}case"ArrowRight":{const T=Uo({currentColIndex:M,firstColIndex:O,lastColIndex:V,isRtl:r});T!==null&&a(T,h(P),r?"left":"right");break}case"ArrowLeft":{const T=qo({currentColIndex:M,firstColIndex:O,lastColIndex:V,isRtl:r});T!==null&&a(T,h(P),r?"right":"left");break}case"Tab":{v.shiftKey&&M>O?a(M-1,h(P),"left"):!v.shiftKey&&M<V&&a(M+1,h(P),"right");break}case" ":{if(k.field===mo)break;const L=k.colDef;if(L&&(L.field===Sb||l0(L.field)))break;!v.shiftKey&&P<_&&a(M,h(Math.min(P+A,_)));break}case"PageDown":{P<_&&a(M,h(Math.min(P+A,_)));break}case"PageUp":{const T=Math.max(P-A,R);T!==P&&T>=R?a(M,h(T)):c(M,v);break}case"Home":{v.ctrlKey||v.metaKey||v.shiftKey?a(O,h(R)):a(O,h(P));break}case"End":{v.ctrlKey||v.metaKey||v.shiftKey?a(V,h(_)):a(V,h(P));break}default:E=!1}E&&v.preventDefault()},[e,s,r,a,h,l,u,c,o]),w=g.useCallback((k,{event:v})=>v.key===" "?!1:k,[]);Ue(e,"canStartEditing",w),le(e,"columnHeaderKeyDown",m),le(e,"headerFilterKeyDown",p),le(e,"columnGroupHeaderKeyDown",b),le(e,"cellKeyDown",x)},zy=(e,t)=>{var b,x;const n=ct(e,"useGridRowCount"),r=te(e,$s),o=te(e,Ln),s=te(e,hr),l=te(e,ht),a=Bt.default(()=>ht(e).pageSize);e.current.registerControlState({stateId:"paginationRowCount",propModel:t.rowCount,propOnChange:t.onRowCountChange,stateSelector:Ln,changeEvent:"rowCountChange"});const u={setRowCount:g.useCallback(w=>{o!==w&&(n.debug("Setting 'rowCount' to",w),e.current.setState(k=>C({},k,{pagination:C({},k.pagination,{rowCount:w})})))},[e,n,o])};Se(e,u,"public");const d=g.useCallback((w,k)=>{var j,y;const v=Ln(e);return!k.exportOnlyDirtyModels||t.rowCount!=null||((y=(j=t.initialState)==null?void 0:j.pagination)==null?void 0:y.rowCount)!=null?C({},w,{pagination:C({},w.pagination,{rowCount:v})}):w},[e,t.rowCount,(x=(b=t.initialState)==null?void 0:b.pagination)==null?void 0:x.rowCount]),h=g.useCallback((w,k)=>{var F;const v=(F=k.stateToRestore.pagination)!=null&&F.rowCount?k.stateToRestore.pagination.rowCount:Ln(e);return e.current.setState(j=>C({},j,{pagination:C({},j.pagination,{rowCount:v})})),w},[e]);Ue(e,"exportState",d),Ue(e,"restoreState",h);const m=g.useCallback(w=>{t.paginationMode==="client"||!a.current||w.pageSize!==a.current&&(a.current=w.pageSize,o===-1&&e.current.setPage(0))},[t.paginationMode,a,o,e]);le(e,"paginationModelChange",m),g.useEffect(()=>{t.paginationMode==="client"?e.current.setRowCount(r):t.rowCount!=null&&e.current.setRowCount(t.rowCount)},[e,t.paginationMode,r,t.rowCount]);const p=s.hasNextPage===!1;g.useEffect(()=>{p&&o===-1&&e.current.setRowCount(l.pageSize*l.page+r)},[e,r,p,o,l])},Gy=(e,t)=>{var c,u;const n=ct(e,"useGridPaginationMeta"),r=te(e,hr);e.current.registerControlState({stateId:"paginationMeta",propModel:t.paginationMeta,propOnChange:t.onPaginationMetaChange,stateSelector:hr,changeEvent:"paginationMetaChange"});const s={setPaginationMeta:g.useCallback(d=>{r!==d&&(n.debug("Setting 'paginationMeta' to",d),e.current.setState(h=>C({},h,{pagination:C({},h.pagination,{meta:d})})))},[e,n,r])};Se(e,s,"public");const l=g.useCallback((d,h)=>{var b,x;const m=hr(e);return!h.exportOnlyDirtyModels||t.paginationMeta!=null||((x=(b=t.initialState)==null?void 0:b.pagination)==null?void 0:x.meta)!=null?C({},d,{pagination:C({},d.pagination,{meta:m})}):d},[e,t.paginationMeta,(u=(c=t.initialState)==null?void 0:c.pagination)==null?void 0:u.meta]),a=g.useCallback((d,h)=>{var p;const m=(p=h.stateToRestore.pagination)!=null&&p.meta?h.stateToRestore.pagination.meta:hr(e);return e.current.setState(b=>C({},b,{pagination:C({},b.pagination,{meta:m})})),d},[e]);Ue(e,"exportState",l),Ue(e,"restoreState",a),g.useEffect(()=>{t.paginationMeta&&e.current.setPaginationMeta(t.paginationMeta)},[e,t.paginationMeta])},By=(e,t)=>{var s,l,a,c,u,d,h,m,p,b,x,w;const n=C({},Wc(t.autoPageSize),(a=t.paginationModel)!=null?a:(l=(s=t.initialState)==null?void 0:s.pagination)==null?void 0:l.paginationModel);qc(n.pageSize,t.signature);const r=(m=(d=t.rowCount)!=null?d:(u=(c=t.initialState)==null?void 0:c.pagination)==null?void 0:u.rowCount)!=null?m:t.paginationMode==="client"?(h=e.rows)==null?void 0:h.totalRowCount:void 0,o=(w=(x=t.paginationMeta)!=null?x:(b=(p=t.initialState)==null?void 0:p.pagination)==null?void 0:b.meta)!=null?w:{};return C({},e,{pagination:C({},e.pagination,{paginationModel:n,rowCount:r,meta:o,enabled:t.pagination===!0,paginationMode:t.paginationMode})})},Wy=(e,t)=>{Gy(e,t),Ty(e,t),zy(e,t)},qy=(e,t)=>{var n,r;return C({},e,{preferencePanel:(r=(n=t.initialState)==null?void 0:n.preferencePanel)!=null?r:{open:!1}})},Uy=(e,t)=>{var a;const n=ct(e,"useGridPreferencesPanel"),r=g.useCallback(()=>{e.current.setState(c=>{if(!c.preferencePanel.open)return c;n.debug("Hiding Preferences Panel");const u=xr(c);return e.current.publishEvent("preferencePanelClose",{openedPanelValue:u.openedPanelValue}),C({},c,{preferencePanel:{open:!1}})})},[e,n]),o=g.useCallback((c,u,d)=>{n.debug("Opening Preferences Panel"),e.current.setState(h=>C({},h,{preferencePanel:C({},h.preferencePanel,{open:!0,openedPanelValue:c,panelId:u,labelId:d})})),e.current.publishEvent("preferencePanelOpen",{openedPanelValue:c})},[n,e]);Se(e,{showPreferences:o,hidePreferences:r},"public");const s=g.useCallback((c,u)=>{var m;const d=xr(e.current.state);return!u.exportOnlyDirtyModels||((m=t.initialState)==null?void 0:m.preferencePanel)!=null||d.open?C({},c,{preferencePanel:d}):c},[e,(a=t.initialState)==null?void 0:a.preferencePanel]),l=g.useCallback((c,u)=>{const d=u.stateToRestore.preferencePanel;return d!=null&&e.current.setState(h=>C({},h,{preferencePanel:d})),c},[e]);Ue(e,"exportState",s),Ue(e,"restoreState",l)},us=e=>{switch(e.type){case"boolean":return!1;case"date":case"dateTime":case"number":return;case"singleSelect":return null;case"string":default:return""}},Ky=["id","field"],Xy=["id","field"],Yy=(e,t)=>{const[n,r]=g.useState({}),o=g.useRef(n),s=g.useRef({}),{processRowUpdate:l,onProcessRowUpdateError:a,cellModesModel:c,onCellModesModelChange:u}=t,d=E=>(...T)=>{t.editMode===zt.Cell&&E(...T)},h=g.useCallback((E,T)=>{const L=e.current.getCellParams(E,T);if(!e.current.isCellEditable(L))throw new Error(`MUI X: The cell with id=${E} and field=${T} is not editable.`)},[e]),m=g.useCallback((E,T,L)=>{if(e.current.getCellMode(E,T)!==L)throw new Error(`MUI X: The cell with id=${E} and field=${T} is not in ${L} mode.`)},[e]),p=g.useCallback((E,T)=>{if(!E.isEditable||E.cellMode===_e.Edit)return;const L=C({},E,{reason:Ut.cellDoubleClick});e.current.publishEvent("cellEditStart",L,T)},[e]),b=g.useCallback((E,T)=>{if(E.cellMode===_e.View||e.current.getCellMode(E.id,E.field)===_e.View)return;const L=C({},E,{reason:Ft.cellFocusOut});e.current.publishEvent("cellEditStop",L,T)},[e]),x=g.useCallback((E,T)=>{if(E.cellMode===_e.Edit){if(T.which===229)return;let L;if(T.key==="Escape"?L=Ft.escapeKeyDown:T.key==="Enter"?L=Ft.enterKeyDown:T.key==="Tab"&&(L=T.shiftKey?Ft.shiftTabKeyDown:Ft.tabKeyDown,T.preventDefault()),L){const $=C({},E,{reason:L});e.current.publishEvent("cellEditStop",$,T)}}else if(E.isEditable){let L;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:T,cellParams:E,editMode:"cell"}))return;if(_u(T)?L=Ut.printableKeyDown:Vu(T)?L=Ut.pasteKeyDown:T.key==="Enter"?L=Ut.enterKeyDown:(T.key==="Backspace"||T.key==="Delete")&&(L=Ut.deleteKeyDown),L){const G=C({},E,{reason:L,key:T.key});e.current.publishEvent("cellEditStart",G,T)}}},[e]),w=g.useCallback(E=>{const{id:T,field:L,reason:$}=E,G={id:T,field:L};($===Ut.printableKeyDown||$===Ut.deleteKeyDown||$===Ut.pasteKeyDown)&&(G.deleteValue=!0),e.current.startCellEditMode(G)},[e]),k=g.useCallback(E=>{const{id:T,field:L,reason:$}=E;e.current.runPendingEditCellValueMutation(T,L);let G;$===Ft.enterKeyDown?G="below":$===Ft.tabKeyDown?G="right":$===Ft.shiftTabKeyDown&&(G="left");const S=$==="escapeKeyDown";e.current.stopCellEditMode({id:T,field:L,ignoreModifications:S,cellToFocusAfter:G})},[e]),v=E=>async(...T)=>{var L;if(E){const{id:$,field:G}=T[0];((L=e.current.state.editRows[$][G])==null?void 0:L.error)||E(...T)}};le(e,"cellDoubleClick",d(p)),le(e,"cellFocusOut",d(b)),le(e,"cellKeyDown",d(x)),le(e,"cellEditStart",d(w)),le(e,"cellEditStop",d(k)),Ae(e,"cellEditStart",t.onCellEditStart),Ae(e,"cellEditStop",v(t.onCellEditStop));const F=g.useCallback((E,T)=>{const L=it(e.current.state);return L[E]&&L[E][T]?_e.Edit:_e.View},[e]),j=re.unstable_useEventCallback(E=>{const T=E!==t.cellModesModel;u&&T&&u(E,{api:e.current}),!(t.cellModesModel&&T)&&(r(E),o.current=E,e.current.publishEvent("cellModesModelChange",E))}),y=g.useCallback((E,T,L)=>{const $=C({},o.current);if(L!==null)$[E]=C({},$[E],{[T]:C({},L)});else{const G=$[E],S=me(G,[T].map(vr));$[E]=S,Object.keys($[E]).length===0&&delete $[E]}j($)},[j]),A=g.useCallback((E,T,L)=>{e.current.setState($=>{const G=C({},$.editRows);return L!==null?G[E]=C({},G[E],{[T]:C({},L)}):(delete G[E][T],Object.keys(G[E]).length===0&&delete G[E]),C({},$,{editRows:G})}),e.current.forceUpdate()},[e]),N=g.useCallback(E=>{const{id:T,field:L}=E,$=me(E,Ky);h(T,L),m(T,L,_e.View),y(T,L,C({mode:_e.Edit},$))},[h,m,y]),M=re.unstable_useEventCallback(async E=>{const{id:T,field:L,deleteValue:$,initialValue:G}=E,S=e.current.getCellValue(T,L);let H=S;$?H=us(e.current.getColumn(L)):G&&(H=G);const z=e.current.getColumn(L),q=!!z.preProcessEditCellProps&&$;let U={value:H,error:!1,isProcessingProps:q};if(A(T,L,U),e.current.setCellFocus(T,L),q&&(U=await Promise.resolve(z.preProcessEditCellProps({id:T,row:e.current.getRow(T),props:U,hasChanged:H!==S})),e.current.getCellMode(T,L)===_e.Edit)){const Q=it(e.current.state);A(T,L,C({},U,{value:Q[T][L].value,isProcessingProps:!1}))}}),P=g.useCallback(E=>{const{id:T,field:L}=E,$=me(E,Xy);m(T,L,_e.Edit),y(T,L,C({mode:_e.View},$))},[m,y]),R=re.unstable_useEventCallback(async E=>{const{id:T,field:L,ignoreModifications:$,cellToFocusAfter:G="none"}=E;m(T,L,_e.Edit),e.current.runPendingEditCellValueMutation(T,L);const S=()=>{A(T,L,null),y(T,L,null),G!=="none"&&e.current.moveFocusToRelativeCell(T,L,G)};if($){S();return}const H=it(e.current.state),{error:z,isProcessingProps:q}=H[T][L];if(z||q){s.current[T][L].mode=_e.Edit,y(T,L,{mode:_e.Edit});return}const U=e.current.getRowWithUpdatedValuesFromCellEditing(T,L);if(l){const Q=X=>{s.current[T][L].mode=_e.Edit,y(T,L,{mode:_e.Edit}),a?a(X):process.env.NODE_ENV!=="production"&&kt(["MUI X: A call to `processRowUpdate` threw an error which was not handled because `onProcessRowUpdateError` is missing.","To handle the error pass a callback to the `onProcessRowUpdateError` prop, for example `<DataGrid onProcessRowUpdateError={(error) => ...} />`.","For more detail, see https://mui.com/x/react-data-grid/editing/#server-side-persistence."],"error")};try{const X=e.current.getRow(T);Promise.resolve(l(U,X,{rowId:T})).then(W=>{e.current.updateRows([W]),S()}).catch(Q)}catch(X){Q(X)}}else e.current.updateRows([U]),S()}),_=g.useCallback(async E=>{var X,W;const{id:T,field:L,value:$,debounceMs:G,unstable_skipValueParser:S}=E;h(T,L),m(T,L,_e.Edit);const H=e.current.getColumn(L),z=e.current.getRow(T);let q=$;H.valueParser&&!S&&(q=H.valueParser($,z,H,e));let U=it(e.current.state),Q=C({},U[T][L],{value:q,changeReason:G?"debouncedSetEditCellValue":"setEditCellValue"});if(H.preProcessEditCellProps){const K=$!==U[T][L].value;Q=C({},Q,{isProcessingProps:!0}),A(T,L,Q),Q=await Promise.resolve(H.preProcessEditCellProps({id:T,row:z,props:Q,hasChanged:K}))}return e.current.getCellMode(T,L)===_e.View?!1:(U=it(e.current.state),Q=C({},Q,{isProcessingProps:!1}),Q.value=H.preProcessEditCellProps?U[T][L].value:q,A(T,L,Q),U=it(e.current.state),!((W=(X=U[T])==null?void 0:X[L])!=null&&W.error))},[e,h,m,A]),O=g.useCallback((E,T)=>{const L=e.current.getColumn(T),$=it(e.current.state),G=e.current.getRow(E);if(!$[E]||!$[E][T])return e.current.getRow(E);const{value:S}=$[E][T];return L.valueSetter?L.valueSetter(S,G,L,e):C({},G,{[T]:S})},[e]),D={getCellMode:F,startCellEditMode:N,stopCellEditMode:P},V={setCellEditingEditCellValue:_,getRowWithUpdatedValuesFromCellEditing:O};Se(e,D,"public"),Se(e,V,"private"),g.useEffect(()=>{c&&j(c)},[c,j]),re.unstable_useEnhancedEffect(()=>{const E=vt(e),T=s.current;s.current=mc(n),Object.entries(n).forEach(([L,$])=>{Object.entries($).forEach(([G,S])=>{var q,U;const H=((U=(q=T[L])==null?void 0:q[G])==null?void 0:U.mode)||_e.View,z=E[L]?e.current.getRowId(E[L]):L;S.mode===_e.Edit&&H===_e.View?M(C({id:z,field:G},S)):S.mode===_e.View&&H===_e.Edit&&R(C({id:z,field:G},S))})})},[e,n,M,R])},Zy=["id"],Qy=["id"],Jy=(e,t)=>{const[n,r]=g.useState({}),o=g.useRef(n),s=g.useRef({}),l=g.useRef({}),a=g.useRef(void 0),c=g.useRef(null),{processRowUpdate:u,onProcessRowUpdateError:d,rowModesModel:h,onRowModesModelChange:m}=t,p=S=>(...H)=>{t.editMode===zt.Row&&S(...H)},b=g.useCallback((S,H)=>{const z=e.current.getCellParams(S,H);if(!e.current.isCellEditable(z))throw new Error(`MUI X: The cell with id=${S} and field=${H} is not editable.`)},[e]),x=g.useCallback((S,H)=>{if(e.current.getRowMode(S)!==H)throw new Error(`MUI X: The row with id=${S} is not in ${H} mode.`)},[e]),w=g.useCallback(S=>{const H=it(e.current.state);return Object.values(H[S]).some(z=>z.error)},[e]),k=g.useCallback((S,H)=>{if(!S.isEditable||e.current.getRowMode(S.id)===We.Edit)return;const z=e.current.getRowParams(S.id),q=C({},z,{field:S.field,reason:nn.cellDoubleClick});e.current.publishEvent("rowEditStart",q,H)},[e]),v=g.useCallback(S=>{c.current=S},[]),F=g.useCallback((S,H)=>{S.isEditable&&e.current.getRowMode(S.id)!==We.View&&(c.current=null,a.current=setTimeout(()=>{var z;if(((z=c.current)==null?void 0:z.id)!==S.id){if(!e.current.getRow(S.id)||e.current.getRowMode(S.id)===We.View||w(S.id))return;const q=e.current.getRowParams(S.id),U=C({},q,{field:S.field,reason:At.rowFocusOut});e.current.publishEvent("rowEditStop",U,H)}}))},[e,w]);g.useEffect(()=>()=>{clearTimeout(a.current)},[]);const j=g.useCallback((S,H)=>{if(S.cellMode===We.Edit){if(H.which===229)return;let z;if(H.key==="Escape")z=At.escapeKeyDown;else if(H.key==="Enter")z=At.enterKeyDown;else if(H.key==="Tab"){const q=Xn(e).filter(U=>e.current.getColumn(U).type===ho?!0:e.current.isCellEditable(e.current.getCellParams(S.id,U)));if(H.shiftKey?S.field===q[0]&&(z=At.shiftTabKeyDown):S.field===q[q.length-1]&&(z=At.tabKeyDown),H.preventDefault(),!z){const U=q.findIndex(X=>X===S.field),Q=q[H.shiftKey?U-1:U+1];e.current.setCellFocus(S.id,Q)}}if(z){if(z!==At.escapeKeyDown&&w(S.id))return;const q=C({},e.current.getRowParams(S.id),{reason:z,field:S.field});e.current.publishEvent("rowEditStop",q,H)}}else if(S.isEditable){let z;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:H,cellParams:S,editMode:"row"}))return;if(_u(H)||Vu(H)?z=nn.printableKeyDown:H.key==="Enter"?z=nn.enterKeyDown:(H.key==="Backspace"||H.key==="Delete")&&(z=nn.deleteKeyDown),z){const U=e.current.getRowParams(S.id),Q=C({},U,{field:S.field,reason:z});e.current.publishEvent("rowEditStart",Q,H)}}},[e,w]),y=g.useCallback(S=>{const{id:H,field:z,reason:q}=S,U={id:H,fieldToFocus:z};(q===nn.printableKeyDown||q===nn.deleteKeyDown)&&(U.deleteValue=!!z),e.current.startRowEditMode(U)},[e]),A=g.useCallback(S=>{const{id:H,reason:z,field:q}=S;e.current.runPendingEditCellValueMutation(H);let U;z===At.enterKeyDown?U="below":z===At.tabKeyDown?U="right":z===At.shiftTabKeyDown&&(U="left");const Q=z==="escapeKeyDown";e.current.stopRowEditMode({id:H,ignoreModifications:Q,field:q,cellToFocusAfter:U})},[e]);le(e,"cellDoubleClick",p(k)),le(e,"cellFocusIn",p(v)),le(e,"cellFocusOut",p(F)),le(e,"cellKeyDown",p(j)),le(e,"rowEditStart",p(y)),le(e,"rowEditStop",p(A)),Ae(e,"rowEditStart",t.onRowEditStart),Ae(e,"rowEditStop",t.onRowEditStop);const N=g.useCallback(S=>bu(e,{rowId:S,editMode:t.editMode})?We.Edit:We.View,[e,t.editMode]),M=re.unstable_useEventCallback(S=>{const H=S!==t.rowModesModel;m&&H&&m(S,{api:e.current}),!(t.rowModesModel&&H)&&(r(S),o.current=S,e.current.publishEvent("rowModesModelChange",S))}),P=g.useCallback((S,H)=>{const z=C({},o.current);H!==null?z[S]=C({},H):delete z[S],M(z)},[M]),R=g.useCallback((S,H)=>{e.current.setState(z=>{const q=C({},z.editRows);return H!==null?q[S]=H:delete q[S],C({},z,{editRows:q})}),e.current.forceUpdate()},[e]),_=g.useCallback((S,H,z)=>{e.current.setState(q=>{const U=C({},q.editRows);return z!==null?U[S]=C({},U[S],{[H]:C({},z)}):(delete U[S][H],Object.keys(U[S]).length===0&&delete U[S]),C({},q,{editRows:U})}),e.current.forceUpdate()},[e]),O=g.useCallback(S=>{const{id:H}=S,z=me(S,Zy);x(H,We.View),P(H,C({mode:We.Edit},z))},[x,P]),D=re.unstable_useEventCallback(S=>{const{id:H,fieldToFocus:z,deleteValue:q,initialValue:U}=S,Q=e.current.getRow(H),X=It(e),W=X.reduce((K,Y)=>{const J=Y.field;if(!e.current.getCellParams(H,J).isEditable)return K;const Z=e.current.getColumn(J);let oe=e.current.getCellValue(H,J);return z===J&&(q||U)&&(q?oe=us(Z):U&&(oe=U)),K[J]={value:oe,error:!1,isProcessingProps:Z.editable&&!!Z.preProcessEditCellProps&&q},K},{});l.current[H]=Q,R(H,W),z&&e.current.setCellFocus(H,z),X.filter(K=>e.current.getCellParams(H,K.field).isEditable&&K.editable&&!!K.preProcessEditCellProps&&q).forEach(K=>{const Y=K.field,J=e.current.getCellValue(H,Y),ne=q?us(K):U!=null?U:J;Promise.resolve(K.preProcessEditCellProps({id:H,row:Q,props:W[Y],hasChanged:ne!==J})).then(Z=>{if(e.current.getRowMode(H)===We.Edit){const oe=it(e.current.state);_(H,Y,C({},Z,{value:oe[H][Y].value,isProcessingProps:!1}))}})})}),V=g.useCallback(S=>{const{id:H}=S,z=me(S,Qy);x(H,We.Edit),P(H,C({mode:We.View},z))},[x,P]),E=re.unstable_useEventCallback(S=>{const{id:H,ignoreModifications:z,field:q,cellToFocusAfter:U="none"}=S;e.current.runPendingEditCellValueMutation(H);const Q=()=>{U!=="none"&&q&&e.current.moveFocusToRelativeCell(H,q,U),R(H,null),P(H,null),delete l.current[H]};if(z){Q();return}const X=it(e.current.state),W=l.current[H];if(Object.values(X[H]).some(J=>J.isProcessingProps)){s.current[H].mode=We.Edit;return}if(w(H)){s.current[H].mode=We.Edit,P(H,{mode:We.Edit});return}const Y=e.current.getRowWithUpdatedValuesFromRowEditing(H);if(u){const J=ne=>{s.current[H]&&(s.current[H].mode=We.Edit,P(H,{mode:We.Edit})),d?d(ne):process.env.NODE_ENV!=="production"&&kt(["MUI X: A call to `processRowUpdate` threw an error which was not handled because `onProcessRowUpdateError` is missing.","To handle the error pass a callback to the `onProcessRowUpdateError` prop, for example `<DataGrid onProcessRowUpdateError={(error) => ...} />`.","For more detail, see https://mui.com/x/react-data-grid/editing/#server-side-persistence."],"error")};try{Promise.resolve(u(Y,W,{rowId:H})).then(ne=>{e.current.updateRows([ne]),Q()}).catch(J)}catch(ne){J(ne)}}else e.current.updateRows([Y]),Q()}),T=g.useCallback(S=>{const{id:H,field:z,value:q,debounceMs:U,unstable_skipValueParser:Q}=S;b(H,z);const X=e.current.getColumn(z),W=e.current.getRow(H);let K=q;X.valueParser&&!Q&&(K=X.valueParser(q,W,X,e));let Y=it(e.current.state),J=C({},Y[H][z],{value:K,changeReason:U?"debouncedSetEditCellValue":"setEditCellValue"});return X.preProcessEditCellProps||_(H,z,J),new Promise(ne=>{const Z=[];if(X.preProcessEditCellProps){const oe=J.value!==Y[H][z].value;J=C({},J,{isProcessingProps:!0}),_(H,z,J);const ee=Y[H],ae=me(ee,[z].map(vr)),fe=Promise.resolve(X.preProcessEditCellProps({id:H,row:W,props:J,hasChanged:oe,otherFieldsProps:ae})).then(xe=>{if(e.current.getRowMode(H)===We.View){ne(!1);return}Y=it(e.current.state),xe=C({},xe,{isProcessingProps:!1}),xe.value=X.preProcessEditCellProps?Y[H][z].value:K,_(H,z,xe)});Z.push(fe)}Object.entries(Y[H]).forEach(([oe,ee])=>{if(oe===z)return;const ae=e.current.getColumn(oe);if(!ae.preProcessEditCellProps)return;ee=C({},ee,{isProcessingProps:!0}),_(H,oe,ee),Y=it(e.current.state);const fe=Y[H],xe=me(fe,[oe].map(vr)),pe=Promise.resolve(ae.preProcessEditCellProps({id:H,row:W,props:ee,hasChanged:!1,otherFieldsProps:xe})).then(Me=>{if(e.current.getRowMode(H)===We.View){ne(!1);return}Me=C({},Me,{isProcessingProps:!1}),_(H,oe,Me)});Z.push(pe)}),Promise.all(Z).then(()=>{e.current.getRowMode(H)===We.Edit?(Y=it(e.current.state),ne(!Y[H][z].error)):ne(!1)})})},[e,b,_]),L=g.useCallback(S=>{const H=it(e.current.state),z=e.current.getRow(S);if(!H[S])return e.current.getRow(S);let q=C({},l.current[S],z);return Object.entries(H[S]).forEach(([U,Q])=>{const X=e.current.getColumn(U);X!=null&&X.valueSetter?q=X.valueSetter(Q.value,q,X,e):q[U]=Q.value}),q},[e]),$={getRowMode:N,startRowEditMode:O,stopRowEditMode:V},G={setRowEditingEditCellValue:T,getRowWithUpdatedValuesFromRowEditing:L};Se(e,$,"public"),Se(e,G,"private"),g.useEffect(()=>{h&&M(h)},[h,M]),re.unstable_useEnhancedEffect(()=>{const S=vt(e),H=s.current;s.current=mc(n);const z=new Set([...Object.keys(n),...Object.keys(H)]);Array.from(z).forEach(q=>{var W,K;const U=(W=n[q])!=null?W:{mode:We.View},Q=((K=H[q])==null?void 0:K.mode)||We.View,X=S[q]?e.current.getRowId(S[q]):q;U.mode===We.Edit&&Q===We.View?D(C({id:X},U)):U.mode===We.View&&Q===We.Edit&&E(C({id:X},U))})},[e,n,D,E])},ev=e=>C({},e,{editRows:{}}),tv=(e,t)=>{Yy(e,t),Jy(e,t);const n=g.useRef({}),{isCellEditable:r}=t,o=g.useCallback(m=>$n(m.rowNode)||!m.colDef.editable||!m.colDef.renderEditCell?!1:r?r(m):!0,[r]),s=(m,p,b,x)=>{if(!b){x();return}if(n.current[m]||(n.current[m]={}),n.current[m][p]){const[v]=n.current[m][p];clearTimeout(v)}const w=()=>{const[v]=n.current[m][p];clearTimeout(v),x(),delete n.current[m][p]},k=setTimeout(()=>{x(),delete n.current[m][p]},b);n.current[m][p]=[k,w]};g.useEffect(()=>{const m=n.current;return()=>{Object.entries(m).forEach(([p,b])=>{Object.keys(b).forEach(x=>{const[w]=m[p][x];clearTimeout(w),delete m[p][x]})})}},[]);const l=g.useCallback((m,p)=>{if(n.current[m]){if(!p)Object.keys(n.current[m]).forEach(b=>{const[,x]=n.current[m][b];x()});else if(n.current[m][p]){const[,b]=n.current[m][p];b()}}},[]),a=g.useCallback(m=>{const{id:p,field:b,debounceMs:x}=m;return new Promise(w=>{s(p,b,x,async()=>{const k=t.editMode===zt.Row?e.current.setRowEditingEditCellValue:e.current.setCellEditingEditCellValue;if(e.current.getCellMode(p,b)===_e.Edit){const v=await k(m);w(v)}})})},[e,t.editMode]),c=g.useCallback((m,p)=>t.editMode===zt.Cell?e.current.getRowWithUpdatedValuesFromCellEditing(m,p):e.current.getRowWithUpdatedValuesFromRowEditing(m),[e,t.editMode]),u=g.useCallback((m,p)=>{var x,w;return(w=(x=it(e.current.state)[m])==null?void 0:x[p])!=null?w:null},[e]),d={isCellEditable:o,setEditCellValue:a,getRowWithUpdatedValues:c,unstable_getEditCellMeta:u},h={runPendingEditCellValueMutation:l};Se(e,d,"public"),Se(e,h,"private")},nv=(e,t,n)=>{const r=!!t.unstable_dataSource;return n.current.caches.rows=zr({rows:r?[]:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),C({},e,{rows:Ec({apiRef:n,rowCountProp:t.rowCount,loadingProp:r?!0:t.loading,previousTree:null,previousTreeDepths:null})})},rv=(e,t)=>{if(process.env.NODE_ENV!=="production")try{Object.freeze(t.rows)}catch(E){}const n=ct(e,"useGridRows"),r=g.useRef(Date.now()),o=g.useRef(t.rowCount),s=wn.default(),l=g.useCallback(E=>{const T=vt(e)[E];if(T)return T;const L=e.current.getRowNode(E);return L&&$n(L)?{[Nn]:E}:null},[e]),a=g.useCallback(E=>Pr(e.current.state,E),[e]),c=g.useCallback(({cache:E,throttle:T})=>{const L=()=>{r.current=Date.now(),e.current.setState(G=>C({},G,{rows:Ec({apiRef:e,rowCountProp:t.rowCount,loadingProp:t.loading,previousTree:nt(e),previousTreeDepths:Kl(e),previousGroupsToFetch:V1(e)})})),e.current.publishEvent("rowsSet"),e.current.forceUpdate()};if(s.clear(),e.current.caches.rows=E,!T){L();return}const $=t.throttleRowsMs-(Date.now()-r.current);if($>0){s.start($,L);return}L()},[t.throttleRowsMs,t.rowCount,t.loading,e,s]),u=g.useCallback(E=>{n.debug(`Updating all rows, new length ${E.length}`);const T=zr({rows:E,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),L=e.current.caches.rows;T.rowsBeforePartialUpdates=L.rowsBeforePartialUpdates,c({cache:T,throttle:!0})},[n,t.getRowId,t.loading,t.rowCount,c,e]),d=g.useCallback(E=>{if(t.signature===wt.DataGrid&&E.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(`
85
- `));const T=si(e,E,t.getRowId),L=oi({updates:T,getRowId:t.getRowId,previousCache:e.current.caches.rows});c({cache:L,throttle:!0})},[t.signature,t.getRowId,c,e]),h=g.useCallback((E,T)=>{const L=si(e,E,t.getRowId),$=oi({updates:L,getRowId:t.getRowId,previousCache:e.current.caches.rows,groupKeys:T!=null?T:[]});c({cache:$,throttle:!1})},[t.getRowId,c,e]),m=g.useCallback(E=>{E!==t.loading&&(n.debug(`Setting loading to ${E}`),e.current.setState(T=>C({},T,{rows:C({},T.rows,{loading:E})})),e.current.caches.rows.loadingPropBeforePartialUpdates=E)},[t.loading,e,n]),p=g.useCallback(()=>{const E=fr(e),T=vt(e);return new Map(E.map(L=>{var $;return[L,($=T[L])!=null?$:{}]}))},[e]),b=g.useCallback(()=>kr(e),[e]),x=g.useCallback(()=>fr(e),[e]),w=g.useCallback(E=>{const T=e.current.getRow(E),{rowToIndexMap:L}=an(e);return L.get(T)},[e]),k=g.useCallback((E,T)=>{const L=e.current.getRowNode(E);if(!L)throw new Error(`MUI X: No row with id #${E} found.`);if(L.type!=="group")throw new Error("MUI X: Only group nodes can be expanded or collapsed.");const $=C({},L,{childrenExpanded:T});e.current.setState(G=>C({},G,{rows:C({},G.rows,{tree:C({},G.rows.tree,{[E]:$})})})),e.current.forceUpdate(),e.current.publishEvent("rowExpansionChange",$)},[e]),v=g.useCallback(E=>{var T;return(T=nt(e)[E])!=null?T:null},[e]),F=g.useCallback(({skipAutoGeneratedRows:E=!0,groupId:T,applySorting:L,applyFiltering:$})=>{const G=nt(e);let S;if(L){const H=G[T];if(!H)return[];const z=Zn(e);S=[];const q=z.findIndex(U=>U===T)+1;for(let U=q;U<z.length&&G[z[U]].depth>H.depth;U+=1){const Q=z[U];(!E||!$n(G[Q]))&&S.push(Q)}}else S=As(G,T,E);if($){const H=Qn(e);S=S.filter(z=>H[z]!==!1)}return S},[e]),j=g.useCallback((E,T)=>{const L=e.current.getRowNode(E);if(!L)throw new Error(`MUI X: No row with id #${E} found.`);if(L.parent!==ft)throw new Error("MUI X: The row reordering do not support reordering of grouped rows yet.");if(L.type!=="leaf")throw new Error("MUI X: The row reordering do not support reordering of footer or grouping rows.");e.current.setState($=>{const G=nt($,e.current.instanceId)[ft],S=G.children,H=S.findIndex(q=>q===E);if(H===-1||H===T)return $;n.debug(`Moving row ${E} to index ${T}`);const z=[...S];return z.splice(T,0,z.splice(H,1)[0]),C({},$,{rows:C({},$.rows,{tree:C({},$.rows.tree,{[ft]:C({},G,{children:z})})})})}),e.current.publishEvent("rowsSet")},[e,n]),y=g.useCallback((E,T)=>{if(t.signature===wt.DataGrid&&T.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(`
86
- `));if(T.length===0)return;if(vn(e)>1)throw new Error("`apiRef.current.unstable_replaceRows` is not compatible with tree data and row grouping");const $=C({},nt(e)),G=C({},vt(e)),S=C({},Ul(e)),H=$[ft],z=[...H.children],q=new Set;for(let Q=0;Q<T.length;Q+=1){const X=T[Q],W=go(X,t.getRowId,"A row was provided without id when calling replaceRows()."),[K]=z.splice(E+Q,1,W);q.has(K)||(delete G[K],delete S[K],delete $[K]);const Y={id:W,depth:0,parent:ft,type:"leaf",groupingKey:null};G[W]=X,S[W]=W,$[W]=Y,q.add(W)}$[ft]=C({},H,{children:z});const U=z.filter(Q=>{var X;return((X=$[Q])==null?void 0:X.type)==="leaf"});e.current.caches.rows.dataRowIdToModelLookup=G,e.current.caches.rows.dataRowIdToIdLookup=S,e.current.setState(Q=>C({},Q,{rows:C({},Q.rows,{dataRowIdToModelLookup:G,dataRowIdToIdLookup:S,dataRowIds:U,tree:$})})),e.current.publishEvent("rowsSet")},[e,t.signature,t.getRowId]),A={getRow:l,setLoading:m,getRowId:a,getRowModels:p,getRowsCount:b,getAllRowIds:x,setRows:u,updateRows:d,getRowNode:v,getRowIndexRelativeToVisibleRows:w,unstable_replaceRows:y},N={setRowIndex:j,setRowChildrenExpansion:k,getRowGroupChildren:F},M={updateServerRows:h},P=g.useCallback(()=>{n.info("Row grouping pre-processing have changed, regenerating the row tree");let E;e.current.caches.rows.rowsBeforePartialUpdates===t.rows?E=C({},e.current.caches.rows,{updates:{type:"full",rows:fr(e)}}):E=zr({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),c({cache:E,throttle:!1})},[n,e,t.rows,t.getRowId,t.loading,t.rowCount,c]),R=Bt.default(()=>t.unstable_dataSource),_=g.useCallback(E=>{if(t.unstable_dataSource&&t.unstable_dataSource!==R.current){R.current=t.unstable_dataSource;return}E==="rowTreeCreation"&&P()},[P,R,t.unstable_dataSource]),O=g.useCallback(()=>{e.current.getActiveStrategy("rowTree")!==N1(e)&&P()},[e,P]);le(e,"activeStrategyProcessorChange",_),le(e,"strategyAvailabilityChange",O);const D=g.useCallback(()=>{e.current.setState(E=>{const T=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:nt(E,e.current.instanceId),treeDepths:Kl(E,e.current.instanceId),dataRowIds:fr(E,e.current.instanceId),dataRowIdToModelLookup:vt(E,e.current.instanceId),dataRowIdToIdLookup:Ul(E,e.current.instanceId)});return C({},E,{rows:C({},E.rows,T,{totalTopLevelRowCount:Mc({tree:T.tree,rowCountProp:t.rowCount})})})}),e.current.publishEvent("rowsSet"),e.current.forceUpdate()},[e,t.rowCount]);nl(e,"hydrateRows",D),Se(e,A,"public"),Se(e,N,t.signature===wt.DataGrid?"private":"public"),Se(e,M,"private");const V=g.useRef(!0);g.useEffect(()=>{var G;if(V.current){V.current=!1;return}let E=!1;t.rowCount!==o.current&&(E=!0,o.current=t.rowCount);const T=e.current.caches.rows.rowsBeforePartialUpdates===t.rows,L=e.current.caches.rows.loadingPropBeforePartialUpdates===t.loading,$=e.current.caches.rows.rowCountPropBeforePartialUpdates===t.rowCount;T&&(L||(e.current.setState(S=>C({},S,{rows:C({},S.rows,{loading:t.loading})})),e.current.caches.rows.loadingPropBeforePartialUpdates=t.loading,e.current.forceUpdate()),$||(e.current.setState(S=>C({},S,{rows:C({},S.rows,{totalRowCount:Math.max(t.rowCount||0,S.rows.totalRowCount),totalTopLevelRowCount:Math.max(t.rowCount||0,S.rows.totalTopLevelRowCount)})})),e.current.caches.rows.rowCountPropBeforePartialUpdates=t.rowCount,e.current.forceUpdate()),!E)||(n.debug(`Updating all rows, new length ${(G=t.rows)==null?void 0:G.length}`),c({cache:zr({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),throttle:!1}))},[t.rows,t.rowCount,t.getRowId,t.loading,n,c,e])},ov=e=>{const t={[ft]:C({},wb(),{children:e})};for(let n=0;n<e.length;n+=1){const r=e[n];t[r]={id:r,depth:0,parent:ft,type:"leaf",groupingKey:null}}return{groupingName:Cn,tree:t,treeDepths:{0:e.length},dataRowIds:e}},sv=({previousTree:e,actions:t})=>{const n=C({},e),r={};for(let l=0;l<t.remove.length;l+=1){const a=t.remove[l];r[a]=!0,delete n[a]}for(let l=0;l<t.insert.length;l+=1){const a=t.insert[l];n[a]={id:a,depth:0,parent:ft,type:"leaf",groupingKey:null}}const o=n[ft];let s=[...o.children,...t.insert];return Object.values(r).length&&(s=s.filter(l=>!r[l])),n[ft]=C({},o,{children:s}),{groupingName:Cn,tree:n,treeDepths:{0:s.length},dataRowIds:s}},lv=e=>e.updates.type==="full"?ov(e.updates.rows):sv({previousTree:e.previousTree,actions:e.updates.actions}),iv=e=>{lo(e,Cn,"rowTreeCreation",lv)};class Ko extends Error{}function av(e,t){var b;const n=g.useCallback(x=>({field:x,colDef:e.current.getColumn(x)}),[e]),r=g.useCallback(x=>{const w=e.current.getRow(x);if(!w)throw new Ko(`No row with id #${x} found`);return{id:x,columns:e.current.getAllColumns(),row:w}},[e]),o=g.useCallback((x,w,k,{cellMode:v,colDef:F,hasFocus:j,rowNode:y,tabIndex:A})=>{const N=k[w],M=F!=null&&F.valueGetter?F.valueGetter(N,k,F,e):N,P={id:x,field:w,row:k,rowNode:y,colDef:F,cellMode:v,hasFocus:j,tabIndex:A,value:M,formattedValue:M,isEditable:!1,api:e.current};return F&&F.valueFormatter&&(P.formattedValue=F.valueFormatter(M,k,F,e)),P.isEditable=F&&e.current.isCellEditable(P),P},[e]),s=g.useCallback((x,w)=>{var A;const k=e.current.getRow(x),v=e.current.getRowNode(x);if(!k||!v)throw new Ko(`No row with id #${x} found`);const F=gt(e),j=Gs(e),y=e.current.getCellMode(x,w);return e.current.getCellParamsForRow(x,w,k,{colDef:t.unstable_listView&&((A=t.unstable_listColumn)==null?void 0:A.field)===w?Gn(e.current.state):e.current.getColumn(w),rowNode:v,hasFocus:F!==null&&F.field===w&&F.id===x,tabIndex:j&&j.field===w&&j.id===x?0:-1,cellMode:y})},[e,t.unstable_listView,(b=t.unstable_listColumn)==null?void 0:b.field]),l=g.useCallback((x,w)=>{const k=e.current.getColumn(w),v=e.current.getRow(x);if(!v)throw new Ko(`No row with id #${x} found`);return!k||!k.valueGetter?v[w]:k.valueGetter(v[k.field],v,k,e)},[e]),a=g.useCallback((x,w)=>{const k=w.field;if(!w||!w.valueGetter)return x[k];const v=x[w.field];return w.valueGetter(v,x,w,e)},[e]),c=g.useCallback((x,w)=>{const k=a(x,w);return!w||!w.valueFormatter?k:w.valueFormatter(k,x,w,e)},[e,a]),u=g.useCallback(x=>e.current.rootElementRef.current?G0(e.current.rootElementRef.current,x):null,[e]),d=g.useCallback(x=>e.current.rootElementRef.current?B0(e.current.rootElementRef.current,x):null,[e]),h=g.useCallback((x,w)=>e.current.rootElementRef.current?W0(e.current.rootElementRef.current,{id:x,field:w}):null,[e]),m={getCellValue:l,getCellParams:s,getCellElement:h,getRowValue:a,getRowFormattedValue:c,getRowParams:r,getRowElement:d,getColumnHeaderParams:n,getColumnHeaderElement:u},p={getCellParamsForRow:o};Se(e,m,"public"),Se(e,p,"private")}const gd=(e,t)=>e==null||Array.isArray(e)?e:t&&t[0]===e?t:[e],cv=(e,t)=>{var n;return C({},e,{rowSelection:t.rowSelection?(n=gd(t.rowSelectionModel))!=null?n:[]:[]})},uv=(e,t)=>{var $,G,S,H,z,q,U,Q,X;const n=ct(e,"useGridSelection"),r=g.useCallback(W=>(...K)=>{t.rowSelection&&W(...K)},[t.rowSelection]),o=t.signature!==wt.DataGrid&&((($=t.rowSelectionPropagation)==null?void 0:$.parents)||((G=t.rowSelectionPropagation)==null?void 0:G.descendants)),s=g.useMemo(()=>gd(t.rowSelectionModel,pt(e.current.state)),[e,t.rowSelectionModel]),l=g.useRef(null);e.current.registerControlState({stateId:"rowSelection",propModel:s,propOnChange:t.onRowSelectionModelChange,stateSelector:pt,changeEvent:"rowSelectionChange"});const{checkboxSelection:a,disableRowSelectionOnClick:c,isRowSelectable:u}=t,d=zs(t),h=te(e,nt),m=te(e,vn)>1,p=g.useCallback(W=>{var ne;let K=W;const Y=(ne=l.current)!=null?ne:W,J=e.current.isRowSelected(W);if(J){const Z=Vn(e),oe=Z.findIndex(ae=>ae===Y),ee=Z.findIndex(ae=>ae===K);if(oe===ee)return;oe>ee?K=Z[ee+1]:K=Z[ee-1]}l.current=W,e.current.selectRowRange({startId:Y,endId:K},!J)},[e]),b=g.useCallback(W=>{if(t.signature===wt.DataGrid&&!d&&Array.isArray(W)&&W.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(`
87
- `));pt(e.current.state)!==W&&(n.debug("Setting selection model"),e.current.setState(Y=>C({},Y,{rowSelection:t.rowSelection?W:[]})),e.current.forceUpdate())},[e,n,t.rowSelection,t.signature,d]),x=g.useCallback(W=>pt(e.current.state).includes(W),[e]),w=g.useCallback(W=>{if(t.rowSelection===!1||u&&!u(e.current.getRowParams(W)))return!1;const K=nt(e)[W];return!((K==null?void 0:K.type)==="footer"||(K==null?void 0:K.type)==="pinnedRow")},[e,t.rowSelection,u]),k=g.useCallback(()=>zb(e),[e]),v=g.useCallback((W,K=!0,Y=!1)=>{var J,ne,Z,oe,ee,ae,fe,xe,pe,Me,Re,Je;if(e.current.isRowSelectable(W))if(l.current=W,Y){n.debug(`Setting selection for row ${W}`);const De=[],Oe=Ye=>{De.push(Ye)};K&&(Oe(W),o&&sr(e,h,W,(ne=(J=t.rowSelectionPropagation)==null?void 0:J.descendants)!=null?ne:!1,(oe=(Z=t.rowSelectionPropagation)==null?void 0:Z.parents)!=null?oe:!1,Oe)),e.current.setRowSelectionModel(De)}else{n.debug(`Toggling selection for row ${W}`);const De=pt(e.current.state),Oe=new Set(De);Oe.delete(W);const Ye=He=>{Oe.add(He)},qe=He=>{Oe.delete(He)};K?(Ye(W),o&&sr(e,h,W,(ae=(ee=t.rowSelectionPropagation)==null?void 0:ee.descendants)!=null?ae:!1,(xe=(fe=t.rowSelectionPropagation)==null?void 0:fe.parents)!=null?xe:!1,Ye)):o&&ii(e,h,W,(Me=(pe=t.rowSelectionPropagation)==null?void 0:pe.descendants)!=null?Me:!1,(Je=(Re=t.rowSelectionPropagation)==null?void 0:Re.parents)!=null?Je:!1,qe),(Oe.size<2||d)&&e.current.setRowSelectionModel(Array.from(Oe))}},[e,n,o,h,(S=t.rowSelectionPropagation)==null?void 0:S.descendants,(H=t.rowSelectionPropagation)==null?void 0:H.parents,d]),F=g.useCallback((W,K=!0,Y=!1)=>{n.debug("Setting selection for several rows");const J=W.filter(oe=>e.current.isRowSelectable(oe));let ne;if(Y){if(K){if(ne=new Set(J),o){const ee=ae=>{ne.add(ae)};J.forEach(ae=>{var fe,xe,pe,Me;sr(e,h,ae,(xe=(fe=t.rowSelectionPropagation)==null?void 0:fe.descendants)!=null?xe:!1,(Me=(pe=t.rowSelectionPropagation)==null?void 0:pe.parents)!=null?Me:!1,ee)})}}else ne=new Set;const oe=ln(e);if(ne.size===Object.keys(oe).length&&Array.from(ne).every(ee=>oe[ee]===ee))return}else{ne=new Set(Object.values(ln(e)));const oe=ae=>{ne.add(ae)},ee=ae=>{ne.delete(ae)};J.forEach(ae=>{var fe,xe,pe,Me,Re,Je,De,Oe;K?(ne.add(ae),o&&sr(e,h,ae,(xe=(fe=t.rowSelectionPropagation)==null?void 0:fe.descendants)!=null?xe:!1,(Me=(pe=t.rowSelectionPropagation)==null?void 0:pe.parents)!=null?Me:!1,oe)):(ee(ae),o&&ii(e,h,ae,(Je=(Re=t.rowSelectionPropagation)==null?void 0:Re.descendants)!=null?Je:!1,(Oe=(De=t.rowSelectionPropagation)==null?void 0:De.parents)!=null?Oe:!1,ee))})}(ne.size<2||d)&&e.current.setRowSelectionModel(Array.from(ne))},[n,o,d,e,h,(z=t.rowSelectionPropagation)==null?void 0:z.descendants,(q=t.rowSelectionPropagation)==null?void 0:q.parents]),j=g.useCallback(W=>{var J,ne,Z,oe;if(!m||!o||W.length===0)return W;const K=new Set(W),Y=ee=>{K.add(ee)};for(const ee of W)sr(e,h,ee,(ne=(J=t.rowSelectionPropagation)==null?void 0:J.descendants)!=null?ne:!1,(oe=(Z=t.rowSelectionPropagation)==null?void 0:Z.parents)!=null?oe:!1,Y,K);return Array.from(K)},[e,h,(U=t.rowSelectionPropagation)==null?void 0:U.descendants,(Q=t.rowSelectionPropagation)==null?void 0:Q.parents,m,o]),y=g.useCallback(({startId:W,endId:K},Y=!0,J=!1)=>{if(!e.current.getRow(W)||!e.current.getRow(K))return;n.debug(`Expanding selection from row ${W} to row ${K}`);const ne=Vn(e),Z=ne.indexOf(W),oe=ne.indexOf(K),[ee,ae]=Z>oe?[oe,Z]:[Z,oe],fe=ne.slice(ee,ae+1);e.current.selectRows(fe,Y,J)},[e,n]),A={selectRow:v,setRowSelectionModel:b,getSelectedRows:k,isRowSelected:x,isRowSelectable:w},N={selectRows:F,selectRowRange:y,getPropagatedRowSelectionModel:j};Se(e,A,"public"),Se(e,N,t.signature===wt.DataGrid?"private":"public");const M=g.useRef(!0),P=g.useCallback((W=!1)=>{var ae;if(M.current)return;const K=pt(e.current.state),Y=vt(e),J=Qn(e),ne=C({},ln(e)),Z=fe=>t.filterMode==="server"?!Y[fe]:!Y[fe]||J[fe]===!1;let oe=!1;K.forEach(fe=>{var pe;if(Z(fe)){if(t.keepNonExistentRowsSelected)return;delete ne[fe],oe=!0;return}if(!((pe=t.rowSelectionPropagation)!=null&&pe.parents))return;const xe=h[fe];if(xe.type==="group"){if(xe.isAutoGenerated){delete ne[fe],oe=!0;return}xe.children.every(Re=>J[Re]===!1)||(delete ne[fe],oe=!0)}});const ee=m&&((ae=t.rowSelectionPropagation)==null?void 0:ae.parents)&&Object.keys(ne).length>0;if(oe||ee&&!W){const fe=Object.values(ne);ee?e.current.selectRows(fe,!0,!0):e.current.setRowSelectionModel(fe)}},[e,m,(X=t.rowSelectionPropagation)==null?void 0:X.parents,t.keepNonExistentRowsSelected,t.filterMode,h]),R=g.useCallback((W,K)=>{const Y=K.metaKey||K.ctrlKey,J=!a&&!Y&&!Ax(K),ne=!d||J,Z=e.current.isRowSelected(W);ne?e.current.selectRow(W,J?!0:!Z,!0):e.current.selectRow(W,!Z,!1)},[e,d,a]),_=g.useCallback((W,K)=>{var ne;if(c)return;const Y=(ne=K.target.closest(`.${I.cell}`))==null?void 0:ne.getAttribute("data-field");if(Y===Jn.field||Y===mo)return;if(Y){const Z=e.current.getColumn(Y);if((Z==null?void 0:Z.type)===ho)return}nt(e)[W.id].type!=="pinnedRow"&&(K.shiftKey&&d?p(W.id):R(W.id,K))},[c,d,e,p,R]),O=g.useCallback((W,K)=>{var Y;d&&K.shiftKey&&((Y=window.getSelection())==null||Y.removeAllRanges())},[d]),D=g.useCallback((W,K)=>{d&&K.nativeEvent.shiftKey?p(W.id):e.current.selectRow(W.id,W.value,!d)},[e,p,d]),V=g.useCallback(W=>{const K=t.pagination&&t.checkboxSelectionVisibleOnly&&t.paginationMode==="client"?Yc(e):Vn(e);e.current.selectRows(K,W.value)},[e,t.checkboxSelectionVisibleOnly,t.pagination,t.paginationMode]),E=g.useCallback((W,K)=>{if(e.current.getCellMode(W.id,W.field)!==_e.Edit&&!jr(K)){if(ro(K.key)&&K.shiftKey){const Y=gt(e);if(Y&&Y.id!==W.id){K.preventDefault();const J=e.current.isRowSelected(Y.id);if(!d){e.current.selectRow(Y.id,!J,!0);return}const ne=e.current.getRowIndexRelativeToVisibleRows(Y.id),Z=e.current.getRowIndexRelativeToVisibleRows(W.id);let oe,ee;ne>Z?J?(oe=Z,ee=ne-1):(oe=Z,ee=ne):J?(oe=ne+1,ee=Z):(oe=ne,ee=Z);const fe=an(e).rows.slice(oe,ee+1).map(xe=>xe.id);e.current.selectRows(fe,!J);return}}if(K.key===" "&&K.shiftKey){K.preventDefault(),R(W.id,K);return}String.fromCharCode(K.keyCode)==="A"&&(K.ctrlKey||K.metaKey)&&(K.preventDefault(),F(e.current.getAllRowIds(),!0))}},[e,R,F,d]),T=ze.useEventCallback(()=>{if(!t.rowSelection){e.current.setRowSelectionModel([]);return}if(s===void 0)return;if(!o||!m||s.length===0){e.current.setRowSelectionModel(s);return}const W=e.current.getPropagatedRowSelectionModel(s);if(W.length!==s.length||!W.every(K=>s.includes(K))){e.current.setRowSelectionModel(W);return}e.current.setRowSelectionModel(s)});le(e,"sortedRowsSet",r(()=>P(!0))),le(e,"filteredRowsSet",r(()=>P())),le(e,"rowClick",r(_)),le(e,"rowSelectionCheckboxChange",r(D)),le(e,"headerSelectionCheckboxChange",V),le(e,"cellMouseDown",r(O)),le(e,"cellKeyDown",r(E)),g.useEffect(()=>{T()},[e,s,t.rowSelection,T]);const L=s!=null;g.useEffect(()=>{if(L||!t.rowSelection)return;const W=pt(e.current.state);if(w){const K=W.filter(Y=>w(Y));K.length<W.length&&e.current.setRowSelectionModel(K)}},[e,w,L,t.rowSelection]),g.useEffect(()=>{if(!t.rowSelection||L)return;const W=pt(e.current.state);!d&&W.length>1&&e.current.setRowSelectionModel([])},[e,d,a,L,t.rowSelection]),g.useEffect(()=>{r(P)},[P,r]),g.useEffect(()=>{M.current&&(M.current=!1)},[])},dv=e=>{const{classes:t}=e;return g.useMemo(()=>{const n={cellCheckbox:["cellCheckbox"],columnHeaderCheckbox:["columnHeaderCheckbox"]};return Xe.default(n,Te,t)},[t])},fv=(e,t)=>{const n={classes:t.classes},r=dv(n),o=g.useCallback(s=>{const l=C({},Jn,{cellClassName:r.cellCheckbox,headerClassName:r.columnHeaderCheckbox,headerName:e.current.getLocaleText("checkboxSelectionHeaderName")}),a=t.checkboxSelection,c=s.lookup[yt]!=null;return a&&!c?(s.lookup[yt]=l,s.orderedFields=[yt,...s.orderedFields]):!a&&c?(delete s.lookup[yt],s.orderedFields=s.orderedFields.filter(u=>u!==yt)):a&&c&&(s.lookup[yt]=C({},l,s.lookup[yt]),t.columns.some(u=>u.field===yt)||(s.orderedFields=[yt,...s.orderedFields.filter(u=>u!==yt)])),s},[e,r,t.columns,t.checkboxSelection]);Ue(e,"hydrateColumns",o)},hv=(e,t)=>{var r,o,s,l;const n=(l=(s=t.sortModel)!=null?s:(o=(r=t.initialState)==null?void 0:r.sorting)==null?void 0:o.sortModel)!=null?l:[];return C({},e,{sorting:{sortModel:dc(n,t.disableMultipleColumnsSorting),sortedRows:[]}})},gv=(e,t)=>{var y,A;const n=ct(e,"useGridSorting");e.current.registerControlState({stateId:"sortModel",propModel:t.sortModel,propOnChange:t.onSortModelChange,stateSelector:jt,changeEvent:"sortModelChange"});const r=g.useCallback((N,M)=>{const P=jt(e),R=P.findIndex(O=>O.field===N);let _=[...P];return R>-1?(M==null?void 0:M.sort)==null?_.splice(R,1):_.splice(R,1,M):_=[...P,M],_},[e]),o=g.useCallback((N,M)=>{var _,O;const R=jt(e).find(D=>D.field===N.field);if(R){const D=M===void 0?Yl((_=N.sortingOrder)!=null?_:t.sortingOrder,R.sort):M;return D===void 0?void 0:C({},R,{sort:D})}return{field:N.field,sort:M===void 0?Yl((O=N.sortingOrder)!=null?O:t.sortingOrder):M}},[e,t.sortingOrder]),s=g.useCallback((N,M)=>M==null||M.sortable===!1||t.disableColumnSorting?N:(M.sortingOrder||t.sortingOrder).some(R=>!!R)?[...N,"columnMenuSortItem"]:N,[t.sortingOrder,t.disableColumnSorting]),l=g.useCallback(()=>{e.current.setState(N=>{if(t.sortingMode==="server")return n.debug("Skipping sorting rows as sortingMode = server"),C({},N,{sorting:C({},N.sorting,{sortedRows:As(nt(e),ft,!1)})});const M=jt(N,e.current.instanceId),P=W1(M,e),R=e.current.applyStrategyProcessor("sorting",{sortRowList:P});return C({},N,{sorting:C({},N.sorting,{sortedRows:R})})}),e.current.publishEvent("sortedRowsSet"),e.current.forceUpdate()},[e,n,t.sortingMode]),a=g.useCallback(N=>{jt(e)!==N&&(n.debug("Setting sort model"),e.current.setState(Xl(N,t.disableMultipleColumnsSorting)),e.current.forceUpdate(),e.current.applySorting())},[e,n,t.disableMultipleColumnsSorting]),c=g.useCallback((N,M,P)=>{const R=e.current.getColumn(N),_=o(R,M);let O;!P||t.disableMultipleColumnsSorting?O=(_==null?void 0:_.sort)==null?[]:[_]:O=r(R.field,_),e.current.setSortModel(O)},[e,r,o,t.disableMultipleColumnsSorting]),u=g.useCallback(()=>jt(e),[e]),d=g.useCallback(()=>Vs(e).map(M=>M.model),[e]),h=g.useCallback(()=>Zn(e),[e]),m=g.useCallback(N=>e.current.getSortedRowIds()[N],[e]);Se(e,{getSortModel:u,getSortedRows:d,getSortedRowIds:h,getRowIdFromRowIndex:m,setSortModel:a,sortColumn:c,applySorting:l},"public");const b=g.useCallback((N,M)=>{var _,O;const P=jt(e);return!M.exportOnlyDirtyModels||t.sortModel!=null||((O=(_=t.initialState)==null?void 0:_.sorting)==null?void 0:O.sortModel)!=null||P.length>0?C({},N,{sorting:{sortModel:P}}):N},[e,t.sortModel,(A=(y=t.initialState)==null?void 0:y.sorting)==null?void 0:A.sortModel]),x=g.useCallback((N,M)=>{var R;const P=(R=M.stateToRestore.sorting)==null?void 0:R.sortModel;return P==null?N:(e.current.setState(Xl(P,t.disableMultipleColumnsSorting)),C({},N,{callbacks:[...N.callbacks,e.current.applySorting]}))},[e,t.disableMultipleColumnsSorting]),w=g.useCallback(N=>{const M=nt(e),P=M[ft],R=N.sortRowList?N.sortRowList(P.children.map(_=>M[_])):[...P.children];return P.footerId!=null&&R.push(P.footerId),R},[e]);Ue(e,"exportState",b),Ue(e,"restoreState",x),lo(e,Cn,"sorting",w);const k=g.useCallback(({field:N,colDef:M},P)=>{if(!M.sortable||t.disableColumnSorting)return;const R=P.shiftKey||P.metaKey||P.ctrlKey;c(N,void 0,R)},[c,t.disableColumnSorting]),v=g.useCallback(({field:N,colDef:M},P)=>{!M.sortable||t.disableColumnSorting||P.key==="Enter"&&!P.ctrlKey&&!P.metaKey&&c(N,void 0,P.shiftKey)},[c,t.disableColumnSorting]),F=g.useCallback(()=>{const N=jt(e),M=Qt(e);if(N.length>0){const P=N.filter(R=>M[R.field]);P.length<N.length&&e.current.setSortModel(P)}},[e]),j=g.useCallback(N=>{N==="sorting"&&e.current.applySorting()},[e]);Ue(e,"columnMenu",s),le(e,"columnHeaderClick",k),le(e,"columnHeaderKeyDown",v),le(e,"rowsSet",e.current.applySorting),le(e,"columnsChange",F),le(e,"activeStrategyProcessorChange",j),Ir(()=>{e.current.applySorting()}),re.unstable_useEnhancedEffect(()=>{t.sortModel!==void 0&&e.current.setSortModel(t.sortModel)},[e,t.sortModel])};function zi(e){const{containerSize:t,scrollPosition:n,elementSize:r,elementOffset:o}=e,s=o+r;if(r>t)return o;if(s-t>n)return s-t;if(o<n)return o}const mv=(e,t)=>{const n=Gt.useRtl(),r=ct(e,"useGridScroll"),o=e.current.columnHeadersContainerRef,s=e.current.virtualScrollerRef,l=te(e,fn),a=g.useCallback(h=>{var k;const m=at(e.current.state),p=kr(e),b=t.unstable_listView?[Gn(e.current.state)]:Ke(e);if(!(h.rowIndex==null)&&p===0||b.length===0)return!1;r.debug(`Scrolling to cell at row ${h.rowIndex}, col: ${h.colIndex} `);let w={};if(h.colIndex!==void 0){const v=dn(e);let F;if(typeof h.rowIndex!="undefined"){const j=(k=l[h.rowIndex])==null?void 0:k.id,y=e.current.unstable_getCellColSpanInfo(j,h.colIndex);y&&!y.spannedByColSpan&&(F=y.cellProps.width)}typeof F=="undefined"&&(F=b[h.colIndex].computedWidth),w.left=zi({containerSize:m.viewportOuterSize.width,scrollPosition:Math.abs(s.current.scrollLeft),elementSize:F,elementOffset:v[h.colIndex]})}if(h.rowIndex!==void 0){const v=er(e.current.state),F=rC(e),j=Kc(e),y=t.pagination?h.rowIndex-F*j:h.rowIndex,A=v.positions[y+1]?v.positions[y+1]-v.positions[y]:v.currentPageTotalHeight-v.positions[y];w.top=zi({containerSize:m.viewportInnerSize.height,scrollPosition:s.current.scrollTop,elementSize:A,elementOffset:v.positions[y]})}return w=e.current.unstable_applyPipeProcessors("scrollToIndexes",w,h),typeof w.left!==void 0||typeof w.top!==void 0?(e.current.scroll(w),!0):!1},[r,e,s,t.pagination,l,t.unstable_listView]),c=g.useCallback(h=>{if(s.current&&h.left!==void 0&&o.current){const m=n?-1:1;o.current.scrollLeft=h.left,s.current.scrollLeft=m*h.left,r.debug(`Scrolling left: ${h.left}`)}s.current&&h.top!==void 0&&(s.current.scrollTop=h.top,r.debug(`Scrolling top: ${h.top}`)),r.debug("Scrolling, updating container, and viewport")},[s,n,o,r]),u=g.useCallback(()=>s!=null&&s.current?{top:s.current.scrollTop,left:s.current.scrollLeft}:{top:0,left:0},[s]);Se(e,{scroll:c,scrollToIndexes:a,getScrollPosition:u},"public")};function pv(e,t){Ae(e,"columnHeaderClick",t.onColumnHeaderClick),Ae(e,"columnHeaderContextMenu",t.onColumnHeaderContextMenu),Ae(e,"columnHeaderDoubleClick",t.onColumnHeaderDoubleClick),Ae(e,"columnHeaderOver",t.onColumnHeaderOver),Ae(e,"columnHeaderOut",t.onColumnHeaderOut),Ae(e,"columnHeaderEnter",t.onColumnHeaderEnter),Ae(e,"columnHeaderLeave",t.onColumnHeaderLeave),Ae(e,"cellClick",t.onCellClick),Ae(e,"cellDoubleClick",t.onCellDoubleClick),Ae(e,"cellKeyDown",t.onCellKeyDown),Ae(e,"preferencePanelClose",t.onPreferencePanelClose),Ae(e,"preferencePanelOpen",t.onPreferencePanelOpen),Ae(e,"menuOpen",t.onMenuOpen),Ae(e,"menuClose",t.onMenuClose),Ae(e,"rowDoubleClick",t.onRowDoubleClick),Ae(e,"rowClick",t.onRowClick),Ae(e,"stateChange",t.onStateChange)}function bv(e,t=166){let n,r;const o=()=>{n=void 0,e(...r)};function s(...l){r=l,n===void 0&&(n=setTimeout(o,t))}return s.clear=()=>{clearTimeout(n),n=void 0},s}const ds={autoHeight:!1,autoPageSize:!1,autosizeOnMount:!1,checkboxSelection:!1,checkboxSelectionVisibleOnly:!1,clipboardCopyCellDelimiter:" ",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:zt.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:process.env.NODE_ENV==="production"?"error":"warn",pageSizeOptions:[25,50,100],pagination:!1,paginationMode:"client",resetPageOnSortFilter:!1,resizeThrottleMs:60,rowBufferPx:150,rowHeight:52,rowPositionsDebounceMs:166,rows:[],rowSelection:!0,rowSpacingType:"margin",showCellVerticalBorder:!1,showColumnVerticalBorder:!1,sortingMode:"client",sortingOrder:["asc","desc",null],throttleRowsMs:0,unstable_rowSpanning:!1,virtualizeColumnsWithAutoRowHeight:!1},On={width:0,height:0},Cv={isReady:!1,root:On,viewportOuterSize:On,viewportInnerSize:On,contentSize:On,minimumSize:On,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},wv=(e,t,n)=>{const r=Cv,o=Un(n);return C({},e,{dimensions:C({},r,pd(t,n,o,Yn(n)))})},md=be(Ke,dn,(e,t)=>{const n=e.length;return n===0?0:Dn(t[n-1]+e[n-1].computedWidth,1)});function xv(e,t){const n=ct(e,"useResizeContainer"),r=g.useRef(!1),o=g.useRef(On),s=te(e,Yn),l=te(e,Un),a=te(e,md),c=g.useRef(!0),u=g.useRef({counter:0,heights:{content:0,pinnedTop:0,pinnedBottom:0}}),{rowHeight:d,headerHeight:h,groupHeaderHeight:m,headerFilterHeight:p,headersTotalHeight:b,leftPinnedWidth:x,rightPinnedWidth:w}=pd(t,e,l,s),k=g.useRef(void 0),v=g.useCallback(()=>at(e.current.state),[e]),F=g.useCallback(D=>{e.current.setState(V=>C({},V,{dimensions:D})),e.current.rootElementRef.current&&Gi(e.current.rootElementRef.current,at(e.current.state))},[e]),j=g.useCallback(()=>{const D=e.current.mainElementRef.current;if(!D)return;const V=re.unstable_ownerWindow(D).getComputedStyle(D),E={width:parseFloat(V.width)||0,height:parseFloat(V.height)||0};(!k.current||!Wi(k.current,E))&&(e.current.publishEvent("resize",E),k.current=E)},[e]),y=g.useCallback(()=>{const D=at(e.current.state);if(!D.isReady)return 0;const V=an(e);if(t.getRowHeight){const T=Fr(e),L=T.lastRowIndex-T.firstRowIndex;return Math.min(L-1,V.rows.length)}const E=Math.floor(D.viewportInnerSize.height/d);return Math.min(E,V.rows.length)},[e,t.getRowHeight,d]),A=g.useCallback(()=>{var W,K;if(c.current)return;const D=yv(e.current.mainElementRef.current,t.scrollbarSize),V=er(e.current.state),E=b+V.pinnedTopRowsTotalHeight,T=V.pinnedBottomRowsTotalHeight,$={width:a-x-w,height:Dn(V.currentPageTotalHeight,1)},G=e.current.state.dimensions;let S,H,z=!1,q=!1;if(t.autoHeight)q=!1,z=Math.round(a)>Math.round(o.current.width),S={width:o.current.width,height:E+T+$.height},H={width:Math.max(0,S.width-(q?D:0)),height:Math.max(0,S.height-(z?D:0))};else{S={width:o.current.width,height:o.current.height},H={width:Math.max(0,S.width-x-w),height:Math.max(0,S.height-E-T)};const Y=$,J=H,ne=Y.width>J.width,Z=Y.height>J.height;(ne||Z)&&(q=Z,z=Y.width+(q?D:0)>J.width,z&&(q=Y.height+D>J.height));{const oe=u.current,ee=V.currentPageTotalHeight!==oe.heights.content||V.pinnedTopRowsTotalHeight!==oe.heights.pinnedTop||V.pinnedBottomRowsTotalHeight!==oe.heights.pinnedBottom;ee&&(oe.counter=0,oe.heights={content:V.currentPageTotalHeight,pinnedTop:V.pinnedTopRowsTotalHeight,pinnedBottom:V.pinnedBottomRowsTotalHeight}),G.isReady&&q!==G.hasScrollY&&(ee||(oe.counter+=1),oe.counter>=2&&(q=!1,z=ne))}q&&(H.width-=D),z&&(H.height-=D)}const U=Math.max(S.width,a+(q?D:0)),Q={width:a,height:E+$.height+T},X={isReady:!0,root:o.current,viewportOuterSize:S,viewportInnerSize:H,contentSize:$,minimumSize:Q,hasScrollX:z,hasScrollY:q,scrollbarSize:D,headerHeight:h,groupHeaderHeight:m,headerFilterHeight:p,rowWidth:U,rowHeight:d,columnsTotalWidth:a,leftPinnedWidth:x,rightPinnedWidth:w,headersTotalHeight:b,topContainerHeight:E,bottomContainerHeight:T};sn(G,X)||(F(X),Wi(X.viewportInnerSize,G.viewportInnerSize)||e.current.publishEvent("viewportInnerSizeChange",X.viewportInnerSize),(K=(W=e.current).updateRenderContext)==null||K.call(W))},[e,F,t.scrollbarSize,t.autoHeight,d,h,m,p,a,b,x,w]),N=re.unstable_useEventCallback(A),M=g.useMemo(()=>t.resizeThrottleMs>0?bv(()=>{N(),e.current.publishEvent("debouncedResize",o.current)},t.resizeThrottleMs):void 0,[e,t.resizeThrottleMs,N]);g.useEffect(()=>M==null?void 0:M.clear,[M]);const P={resize:j,getRootDimensions:v},R={updateDimensions:A,getViewportPageSize:y};re.unstable_useEnhancedEffect(A,[A]),Se(e,P,"public"),Se(e,R,"private");const _=g.useCallback(D=>{Gi(D,at(e.current.state))},[e]),O=g.useCallback(D=>{if(o.current=D,D.height===0&&!r.current&&!t.autoHeight&&!to&&(n.error(["The parent DOM element of the Data Grid has an empty height.","Please make sure that this element has an intrinsic height.","The grid displays with a height of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join(`
83
+ `}${l}`.trim()}function Ni(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 n=document.createRange();n.selectNode(t);const r=window.getSelection();r.removeAllRanges(),r.addRange(n);try{document.execCommand("copy")}finally{document.body.removeChild(t)}}function vy(e){navigator.clipboard?navigator.clipboard.writeText(e).catch(()=>{Ni(e)}):Ni(e)}function Sy(e){var t;return!!((t=window.getSelection())!=null&&t.toString()||e&&(e.selectionEnd||0)-(e.selectionStart||0)>0)}const ky=(e,t)=>{const n=t.ignoreValueFormatterDuringExport,r=(typeof n=="object"?n==null?void 0:n.clipboardExport:n)||!1,o=t.clipboardCopyCellDelimiter,s=g.useCallback(l=>{if(!Gx(l)||Sy(l.target))return;let a="";if(e.current.getSelectedRows().size>0)a=e.current.getDataAsCsv({includeHeaders:!1,delimiter:o,shouldAppendQuotes:!1,escapeFormulas:!1});else{const u=gt(e);if(u){const d=e.current.getCellParams(u.id,u.field);a=fd(d,{csvOptions:{delimiter:o,shouldAppendQuotes:!1,escapeFormulas:!1},ignoreValueFormatter:r})}}a=e.current.unstable_applyPipeProcessors("clipboardCopy",a),a&&(vy(a),e.current.publishEvent("clipboardCopy",a))},[e,r,o]);Bc(e,()=>e.current.rootElementRef.current,"keydown",s),Ae(e,"clipboardCopy",t.onClipboardCopy)},Iy=e=>C({},e,{columnMenu:{open:!1}}),My=e=>{const t=ct(e,"useGridColumnMenu"),n=g.useCallback(l=>{const a=Br(e.current.state),c={open:!0,field:l};(c.open!==a.open||c.field!==a.field)&&(e.current.setState(d=>d.columnMenu.open&&d.columnMenu.field===l?d:(t.debug("Opening Column Menu"),C({},d,{columnMenu:{open:!0,field:l}}))),e.current.hidePreferences())},[e,t]),r=g.useCallback(()=>{const l=Br(e.current.state);if(l.field){const u=Qt(e),d=St(e),f=Yt(e);let m=l.field;if(u[m]||(m=f[0]),d[m]===!1){const p=f.filter(x=>x===m?!0:d[x]!==!1),b=p.indexOf(m);m=p[b+1]||p[b-1]}e.current.setColumnHeaderFocus(m)}const a={open:!1,field:void 0};(a.open!==l.open||a.field!==l.field)&&e.current.setState(u=>(t.debug("Hiding Column Menu"),C({},u,{columnMenu:a})))},[e,t]),o=g.useCallback(l=>{t.debug("Toggle Column Menu");const a=Br(e.current.state);!a.open||a.field!==l?n(l):r()},[e,t,n,r]);Se(e,{showColumnMenu:n,hideColumnMenu:r,toggleColumnMenu:o},"public"),le(e,"columnResizeStart",r),le(e,"virtualScrollerWheel",e.current.hideColumnMenu),le(e,"virtualScrollerTouchMove",e.current.hideColumnMenu)},Ey=(e,t,n)=>{var o,s,l,a,c,u;const r=jn({apiRef:n,columnsToUpsert:t.columns,initialState:(o=t.initialState)==null?void 0:o.columns,columnVisibilityModel:(c=(a=t.columnVisibilityModel)!=null?a:(l=(s=t.initialState)==null?void 0:s.columns)==null?void 0:l.columnVisibilityModel)!=null?c:{},keepOnlyColumnsToUpsert:!0});return C({},e,{columns:r,pinnedColumns:(u=e.pinnedColumns)!=null?u:Zr})};function Py(e,t){var R,_;const n=ct(e,"useGridColumns"),r=g.useRef(t.columns);e.current.registerControlState({stateId:"visibleColumns",propModel:t.columnVisibilityModel,propOnChange:t.onColumnVisibilityModelChange,stateSelector:St,changeEvent:"columnVisibilityModelChange"});const o=g.useCallback(O=>{n.debug("Updating columns state."),e.current.setState($i(O)),e.current.publishEvent("columnsChange",O.orderedFields)},[n,e]),s=g.useCallback(O=>Qt(e)[O],[e]),l=g.useCallback(()=>It(e),[e]),a=g.useCallback(()=>Ke(e),[e]),c=g.useCallback((O,D=!0)=>(D?Ke(e):It(e)).findIndex(E=>E.field===O),[e]),u=g.useCallback(O=>{const D=c(O);return dn(e)[D]},[e,c]),d=g.useCallback(O=>{var V,E;St(e)!==O&&(e.current.setState(T=>C({},T,{columns:jn({apiRef:e,columnsToUpsert:[],initialState:void 0,columnVisibilityModel:O,keepOnlyColumnsToUpsert:!1})})),(E=(V=e.current).updateRenderContext)==null||E.call(V),e.current.forceUpdate())},[e]),f=g.useCallback(O=>{const D=jn({apiRef:e,columnsToUpsert:O,initialState:void 0,keepOnlyColumnsToUpsert:!1});o(D)},[e,o]),m=g.useCallback((O,D)=>{var T;const V=St(e),E=(T=V[O])!=null?T:!0;if(D!==E){const L=C({},V,{[O]:D});e.current.setColumnVisibilityModel(L)}},[e]),p=g.useCallback(O=>Yt(e).findIndex(V=>V===O),[e]),b=g.useCallback((O,D)=>{const V=Yt(e),E=p(O);if(E===D)return;n.debug(`Moving column ${O} to index ${D}`);const T=[...V],L=T.splice(E,1)[0];T.splice(D,0,L),o(C({},Nt(e.current.state),{orderedFields:T}));const $={column:e.current.getColumn(O),targetIndex:e.current.getColumnIndexRelativeToVisibleColumns(O),oldIndex:E};e.current.publishEvent("columnIndexChange",$)},[e,n,o,p]),x=g.useCallback((O,D)=>{n.debug(`Updating column ${O} width to ${D}`);const V=Nt(e.current.state),E=V.lookup[O],T=C({},E,{width:D,hasBeenResized:!0});o(os(C({},V,{lookup:C({},V.lookup,{[O]:T})}),e.current.getRootDimensions())),e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement(O),colDef:T,width:D})},[e,n,o]),w={getColumn:s,getAllColumns:l,getColumnIndex:c,getColumnPosition:u,getVisibleColumns:a,getColumnIndexRelativeToVisibleColumns:p,updateColumns:f,setColumnVisibilityModel:d,setColumnVisibility:m,setColumnWidth:x},S={setColumnIndex:b};Se(e,w,"public"),Se(e,S,t.signature===wt.DataGrid?"private":"public");const v=g.useCallback((O,D)=>{var G,k,H;const V={},E=St(e);(!D.exportOnlyDirtyModels||t.columnVisibilityModel!=null||Object.keys((H=(k=(G=t.initialState)==null?void 0:G.columns)==null?void 0:k.columnVisibilityModel)!=null?H:{}).length>0||Object.keys(E).length>0)&&(V.columnVisibilityModel=E),V.orderedFields=Yt(e);const L=It(e),$={};return L.forEach(z=>{if(z.hasBeenResized){const q={};iu.forEach(U=>{let Q=z[U];Q===1/0&&(Q=-1),q[U]=Q}),$[z.field]=q}}),Object.keys($).length>0&&(V.dimensions=$),C({},O,{columns:V})},[e,t.columnVisibilityModel,(R=t.initialState)==null?void 0:R.columns]),F=g.useCallback((O,D)=>{var L;const V=(L=D.stateToRestore.columns)==null?void 0:L.columnVisibilityModel,E=D.stateToRestore.columns;if(V==null&&E==null)return O;const T=jn({apiRef:e,columnsToUpsert:[],initialState:E,columnVisibilityModel:V,keepOnlyColumnsToUpsert:!1});return e.current.setState($i(T)),E!=null&&e.current.publishEvent("columnsChange",T.orderedFields),O},[e]),j=g.useCallback((O,D)=>{var V;if(D===bn.columns){const E=t.slots.columnsPanel;return i.jsx(E,C({},(V=t.slotProps)==null?void 0:V.columnsPanel))}return O},[t.slots.columnsPanel,(_=t.slotProps)==null?void 0:_.columnsPanel]),y=g.useCallback(O=>t.disableColumnSelector?O:[...O,"columnMenuColumnsItem"],[t.disableColumnSelector]);Ue(e,"columnMenu",y),Ue(e,"exportState",v),Ue(e,"restoreState",F),Ue(e,"preferencePanel",j);const A=g.useRef(null);le(e,"viewportInnerSizeChange",O=>{if(A.current!==O.width){if(A.current=O.width,!Ke(e).some(V=>V.flex&&V.flex>0))return;o(os(Nt(e.current.state),e.current.getRootDimensions()))}});const M=g.useCallback(()=>{n.info("Columns pipe processing have changed, regenerating the columns");const O=jn({apiRef:e,columnsToUpsert:[],initialState:void 0,keepOnlyColumnsToUpsert:!1});o(O)},[e,n,o]);nl(e,"hydrateColumns",M);const P=g.useRef(!0);g.useEffect(()=>{if(P.current){P.current=!1;return}if(n.info(`GridColumns have changed, new length ${t.columns.length}`),r.current===t.columns)return;const O=jn({apiRef:e,initialState:void 0,columnsToUpsert:t.columns,keepOnlyColumnsToUpsert:!0});r.current=t.columns,o(O)},[n,e,o,t.columns]),g.useEffect(()=>{t.columnVisibilityModel!==void 0&&e.current.setColumnVisibilityModel(t.columnVisibilityModel)},[e,n,t.columnVisibilityModel])}function $i(e){return t=>C({},t,{columns:e})}const Ty=(e,t)=>{var n,r,o;return C({},e,{density:(o=(r=(n=t.initialState)==null?void 0:n.density)!=null?r:t.density)!=null?o:"standard"})},Fy=(e,t)=>{var a;const n=ct(e,"useDensity");e.current.registerControlState({stateId:"density",propModel:t.density,propOnChange:t.onDensityChange,stateSelector:Rn,changeEvent:"densityChange"});const o={setDensity:wh.default(c=>{Rn(e.current.state)!==c&&(n.debug(`Set grid density to ${c}`),e.current.setState(d=>C({},d,{density:c})))})};Se(e,o,"public");const s=g.useCallback((c,u)=>{var m;const d=Rn(e.current.state);return!u.exportOnlyDirtyModels||t.density!=null||((m=t.initialState)==null?void 0:m.density)!=null?C({},c,{density:d}):c},[e,t.density,(a=t.initialState)==null?void 0:a.density]),l=g.useCallback((c,u)=>{var f;const d=(f=u.stateToRestore)!=null&&f.density?u.stateToRestore.density:Rn(e.current.state);return e.current.setState(m=>C({},m,{density:d})),c},[e]);Ue(e,"exportState",s),Ue(e,"restoreState",l),g.useEffect(()=>{t.density&&e.current.setDensity(t.density)},[e,t.density])};function jy(e,t="csv",n=document.title||"untitled"){const r=`${n}.${t}`;if("download"in HTMLAnchorElement.prototype){const o=URL.createObjectURL(e),s=document.createElement("a");s.href=o,s.download=r,s.click(),setTimeout(()=>{URL.revokeObjectURL(o)});return}throw new Error("MUI X: exportAs not supported.")}const hd=({apiRef:e,options:t})=>{const n=It(e);return t.fields?t.fields.reduce((o,s)=>{const l=n.find(a=>a.field===s);return l&&o.push(l),o},[]):(t.allColumns?n:Ke(e)).filter(o=>!o.disableExport)},gd=({apiRef:e})=>{var c,u;const t=Ac(e),n=nt(e),r=e.current.getSelectedRows(),o=t.filter(d=>n[d].type!=="footer"),s=Kn(e),l=((c=s==null?void 0:s.top)==null?void 0:c.map(d=>d.id))||[],a=((u=s==null?void 0:s.bottom)==null?void 0:u.map(d=>d.id))||[];return o.unshift(...l),o.push(...a),r.size>0?o.filter(d=>r.has(d)):o},Oy=(e,t)=>{const n=ct(e,"useGridCsvExport"),r=t.ignoreValueFormatterDuringExport,o=(typeof r=="object"?r==null?void 0:r.csvExport:r)||!1,s=g.useCallback((u={})=>{var p,b,x,w,S;n.debug("Get data as CSV");const d=hd({apiRef:e,options:u}),m=((p=u.getRowsToExport)!=null?p:gd)({apiRef:e});return yy({columns:d,rowIds:m,csvOptions:{delimiter:u.delimiter||",",shouldAppendQuotes:(b=u.shouldAppendQuotes)!=null?b:!0,includeHeaders:(x=u.includeHeaders)!=null?x:!0,includeColumnGroupsHeaders:(w=u.includeColumnGroupsHeaders)!=null?w:!0,escapeFormulas:(S=u.escapeFormulas)!=null?S:!0},ignoreValueFormatter:o,apiRef:e})},[n,e,o]),l=g.useCallback(u=>{n.debug("Export data as CSV");const d=s(u),f=new Blob([u!=null&&u.utf8WithBom?new Uint8Array([239,187,191]):"",d],{type:"text/csv"});jy(f,"csv",u==null?void 0:u.fileName)},[n,s]);Se(e,{getDataAsCsv:s,exportDataAsCsv:l},"public");const c=g.useCallback((u,d)=>{var f;return(f=d.csvOptions)!=null&&f.disableToolbarButton?u:[...u,{component:i.jsx(nd,{options:d.csvOptions}),componentName:"csvExport"}]},[]);Ue(e,"exportMenu",c)},Wr=(e,t,n)=>{var u,d;let r=e.paginationModel;const o=e.rowCount,s=(u=n==null?void 0:n.pageSize)!=null?u:r.pageSize,l=(d=n==null?void 0:n.page)!=null?d:r.page,a=Wc(o,s,l);n&&((n==null?void 0:n.page)!==r.page||(n==null?void 0:n.pageSize)!==r.pageSize)&&(r=n);const c=s===-1?0:sC(r.page,a);return c!==r.page&&(r=C({},r,{page:c})),Uc(r.pageSize,t),r},Ry=(e,t)=>{var v,F;const n=ct(e,"useGridPaginationModel"),r=te(e,Un),o=g.useRef(ut(e)),s=Math.floor(t.rowHeight*r);e.current.registerControlState({stateId:"paginationModel",propModel:t.paginationModel,propOnChange:t.onPaginationModelChange,stateSelector:ht,changeEvent:"paginationModelChange"});const l=g.useCallback(j=>{const y=ht(e);j!==y.page&&(n.debug(`Setting page to ${j}`),e.current.setPaginationModel({page:j,pageSize:y.pageSize}))},[e,n]),a=g.useCallback(j=>{const y=ht(e);j!==y.pageSize&&(n.debug(`Setting page size to ${j}`),e.current.setPaginationModel({pageSize:j,page:y.page}))},[e,n]),c=g.useCallback(j=>{const y=ht(e);j!==y&&(n.debug("Setting 'paginationModel' to",j),e.current.setState(A=>C({},A,{pagination:C({},A.pagination,{paginationModel:Wr(A.pagination,t.signature,j)})}),"setPaginationModel"))},[e,n,t.signature]);Se(e,{setPage:l,setPageSize:a,setPaginationModel:c},"public");const d=g.useCallback((j,y)=>{var M,P;const A=ht(e);return!y.exportOnlyDirtyModels||t.paginationModel!=null||((P=(M=t.initialState)==null?void 0:M.pagination)==null?void 0:P.paginationModel)!=null||A.page!==0&&A.pageSize!==oC(t.autoPageSize)?C({},j,{pagination:C({},j.pagination,{paginationModel:A})}):j},[e,t.paginationModel,(F=(v=t.initialState)==null?void 0:v.pagination)==null?void 0:F.paginationModel,t.autoPageSize]),f=g.useCallback((j,y)=>{var N,M;const A=(N=y.stateToRestore.pagination)!=null&&N.paginationModel?C({},qc(t.autoPageSize),(M=y.stateToRestore.pagination)==null?void 0:M.paginationModel):ht(e);return e.current.setState(P=>C({},P,{pagination:C({},P.pagination,{paginationModel:Wr(P.pagination,t.signature,A)})}),"stateRestorePreProcessing"),j},[e,t.autoPageSize,t.signature]);Ue(e,"exportState",d),Ue(e,"restoreState",f);const m=()=>{var y;const j=ht(e);(y=e.current.virtualScrollerRef)!=null&&y.current&&e.current.scrollToIndexes({rowIndex:j.page*j.pageSize})},p=g.useCallback(()=>{if(!t.autoPageSize)return;const j=e.current.getRootDimensions(),y=Math.max(1,Math.floor(j.viewportInnerSize.height/s));e.current.setPageSize(y)},[e,t.autoPageSize,s]),b=g.useCallback(j=>{if(j==null)return;const y=ht(e);if(y.page===0)return;const A=Yc(e);y.page>A-1&&e.current.setPage(Math.max(0,A-1))},[e]),x=g.useCallback(()=>{ht(e).page!==0&&e.current.setPage(0),e.current.getScrollPosition().top!==0&&e.current.scroll({top:0})},[e]),w=g.useCallback(j=>{const y=C({},j,{items:Nc(e)});sn(y,o.current)||(o.current=y,x())},[e,x]);le(e,"viewportInnerSizeChange",p),le(e,"paginationModelChange",m),le(e,"rowCountChange",b),le(e,"sortModelChange",mn(t.resetPageOnSortFilter,x)),le(e,"filterModelChange",mn(t.resetPageOnSortFilter,w));const S=g.useRef(!0);g.useEffect(()=>{if(S.current){S.current=!1;return}t.pagination&&e.current.setState(j=>C({},j,{pagination:C({},j.pagination,{paginationModel:Wr(j.pagination,t.signature,t.paginationModel)})}))},[e,t.paginationModel,t.signature,t.pagination]),g.useEffect(()=>{e.current.setState(j=>{const y=t.pagination===!0;return j.pagination.paginationMode===t.paginationMode||j.pagination.enabled===y?j:C({},j,{pagination:C({},j.pagination,{paginationMode:t.paginationMode,enabled:t.pagination===!0})})})},[e,t.paginationMode,t.pagination]),g.useEffect(p,[p])};function Ly(){return new Promise(e=>{requestAnimationFrame(()=>{e()})})}function Dy(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}const Hy=(e,t)=>{const n=e.current.rootElementRef.current!==null,r=ct(e,"useGridPrintExport"),o=g.useRef(null),s=g.useRef(null),l=g.useRef({}),a=g.useRef([]),c=g.useRef(null);g.useEffect(()=>{o.current=oe.unstable_ownerDocument(e.current.rootElementRef.current)},[e,n]);const u=g.useCallback((w,S,v)=>new Promise(F=>{const j=hd({apiRef:e,options:{fields:w,allColumns:S}}).map(N=>N.field),y=It(e),A={};y.forEach(N=>{A[N.field]=j.includes(N.field)}),v&&(A[Jn.field]=!0),e.current.setColumnVisibilityModel(A),F()}),[e]),d=g.useCallback(w=>{const v=w({apiRef:e}).reduce((F,j)=>{const y=e.current.getRow(j);return y[Nn]||F.push(y),F},[]);e.current.setRows(v)},[e]),f=g.useCallback((w,S)=>{var E,T,L;const v=C({copyStyles:!0,hideToolbar:!1,hideFooter:!1,includeCheckboxes:!1},S),F=w.contentDocument;if(!F)return;const j=er(e.current.state),y=e.current.rootElementRef.current,A=y.cloneNode(!0),N=A.querySelector(`.${I.main}`);N.style.overflow="visible",A.style.contain="size";let M=((E=y.querySelector(`.${I.toolbarContainer}`))==null?void 0:E.offsetHeight)||0,P=((T=y.querySelector(`.${I.footerContainer}`))==null?void 0:T.offsetHeight)||0;const R=A.querySelector(`.${I.footerContainer}`);v.hideToolbar&&((L=A.querySelector(`.${I.toolbarContainer}`))==null||L.remove(),M=0),v.hideFooter&&R&&(R.remove(),P=0);const _=j.currentPageTotalHeight+xo(e,t)+M+P;A.style.height=`${_}px`,A.style.boxSizing="content-box",!v.hideFooter&&R&&(R.style.position="absolute",R.style.width="100%",R.style.top=`${_-P}px`);const O=document.createElement("div");O.appendChild(A),F.body.style.marginTop="0px",F.body.innerHTML=O.innerHTML;const D=typeof v.pageStyle=="function"?v.pageStyle():v.pageStyle;if(typeof D=="string"){const $=F.createElement("style");$.appendChild(F.createTextNode(D)),F.head.appendChild($)}v.bodyClassName&&F.body.classList.add(...v.bodyClassName.split(" "));const V=[];if(v.copyStyles){const $=y.getRootNode(),k=($.constructor.name==="ShadowRoot"?$:o.current).querySelectorAll("style, link[rel='stylesheet']");for(let H=0;H<k.length;H+=1){const z=k[H];if(z.tagName==="STYLE"){const q=F.createElement(z.tagName),U=z.sheet;if(U){let Q="";for(let X=0;X<U.cssRules.length;X+=1)typeof U.cssRules[X].cssText=="string"&&(Q+=`${U.cssRules[X].cssText}\r
84
+ `);q.appendChild(F.createTextNode(Q)),F.head.appendChild(q)}}else if(z.getAttribute("href")){const q=F.createElement(z.tagName);for(let U=0;U<z.attributes.length;U+=1){const Q=z.attributes[U];Q&&q.setAttribute(Q.nodeName,Q.nodeValue||"")}V.push(new Promise(U=>{q.addEventListener("load",()=>U())})),F.head.appendChild(q)}}}process.env.NODE_ENV!=="test"&&Promise.all(V).then(()=>{w.contentWindow.print()})},[e,o,t]),m=g.useCallback(w=>{var S,v;o.current.body.removeChild(w),e.current.restoreState(s.current||{}),(v=(S=s.current)==null?void 0:S.columns)!=null&&v.columnVisibilityModel||e.current.setColumnVisibilityModel(l.current),e.current.setState(F=>C({},F,{virtualization:c.current})),e.current.setRows(a.current),s.current=null,l.current={},a.current=[]},[e]),b={exportDataAsPrint:g.useCallback(async w=>{var v;if(r.debug("Export data as Print"),!e.current.rootElementRef.current)throw new Error("MUI X: No grid root element available.");if(s.current=e.current.exportState(),l.current=St(e),a.current=e.current.getSortedRows().filter(F=>!F[Nn]),t.pagination){const j={page:0,pageSize:Ns(e)};e.current.setState(y=>C({},y,{pagination:C({},y.pagination,{paginationModel:Wr(y.pagination,"DataGridPro",j)})}))}c.current=e.current.state.virtualization,e.current.unstable_setVirtualization(!1),await u(w==null?void 0:w.fields,w==null?void 0:w.allColumns,w==null?void 0:w.includeCheckboxes),d((v=w==null?void 0:w.getRowsToExport)!=null?v:gd),await Ly();const S=Dy(w==null?void 0:w.fileName);process.env.NODE_ENV==="test"?(o.current.body.appendChild(S),f(S,w),m(S)):(S.onload=()=>{f(S,w),S.contentWindow.matchMedia("print").addEventListener("change",j=>{j.matches===!1&&m(S)})},o.current.body.appendChild(S))},[t,r,e,f,m,u,d])};Se(e,b,"public");const x=g.useCallback((w,S)=>{var v;return(v=S.printOptions)!=null&&v.disableToolbarButton?w:[...w,{component:i.jsx(rd,{options:S.printOptions}),componentName:"printExport"}]},[]);Ue(e,"exportMenu",x)},_y=(e,t,n)=>{var o,s,l,a;const r=(a=(l=t.filterModel)!=null?l:(s=(o=t.initialState)==null?void 0:o.filter)==null?void 0:s.filterModel)!=null?a:Cr();return C({},e,{filter:C({filterModel:_s(r,t.disableMultipleColumnsFiltering,n)},Cc),visibleRowsLookup:{}})},Ay=e=>e.filteredRowsLookup;function zi(e,t){return e.current.applyStrategyProcessor("visibleRowsLookupCreation",{tree:t.rows.tree,filteredRowsLookup:t.filter.filteredRowsLookup})}function Vy(){return Ja(Object.values)}const Ny=(e,t)=>{var P,R,_;const n=ct(e,"useGridFilter");e.current.registerControlState({stateId:"filter",propModel:t.filterModel,propOnChange:t.onFilterModelChange,stateSelector:ut,changeEvent:"filterModelChange"});const r=g.useCallback(()=>{e.current.setState(O=>{const D=ut(O,e.current.instanceId),V=e.current.getFilterState(D),E=C({},O,{filter:C({},O.filter,V)}),T=zi(e,E);return C({},E,{visibleRowsLookup:T})}),e.current.publishEvent("filteredRowsSet")},[e]),o=g.useCallback((O,D)=>D==null||D.filterable===!1||t.disableColumnFilter?O:[...O,"columnMenuFilterItem"],[t.disableColumnFilter]),s=g.useCallback(()=>{r(),e.current.forceUpdate()},[e,r]),l=g.useCallback(O=>{const D=ut(e),V=[...D.items],E=V.findIndex(T=>T.id===O.id);E===-1?V.push(O):V[E]=O,e.current.setFilterModel(C({},D,{items:V}),"upsertFilterItem")},[e]),a=g.useCallback(O=>{const D=ut(e),V=[...D.items];O.forEach(E=>{const T=V.findIndex(L=>L.id===E.id);T===-1?V.push(E):V[T]=E}),e.current.setFilterModel(C({},D,{items:V}),"upsertFilterItems")},[e]),c=g.useCallback(O=>{const D=ut(e),V=D.items.filter(E=>E.id!==O.id);V.length!==D.items.length&&e.current.setFilterModel(C({},D,{items:V}),"deleteFilterItem")},[e]),u=g.useCallback((O,D,V)=>{if(n.debug("Displaying filter panel"),O){const E=ut(e),T=E.items.filter(k=>{var U;if(k.value!==void 0)return!(Array.isArray(k.value)&&k.value.length===0);const z=(U=e.current.getColumn(k.field).filterOperators)==null?void 0:U.find(Q=>Q.value===k.operator);return!(typeof(z==null?void 0:z.requiresFilterValue)=="undefined"?!0:z==null?void 0:z.requiresFilterValue)});let L;const $=T.find(k=>k.field===O),G=e.current.getColumn(O);$?L=T:t.disableMultipleColumnsFiltering?L=[ns({field:O,operator:G.filterOperators[0].value},e)]:L=[...T,ns({field:O,operator:G.filterOperators[0].value},e)],e.current.setFilterModel(C({},E,{items:L}))}e.current.showPreferences(bn.filters,D,V)},[e,n,t.disableMultipleColumnsFiltering]),d=g.useCallback(()=>{n.debug("Hiding filter panel"),e.current.hidePreferences()},[e,n]),f=g.useCallback(O=>{const D=ut(e);D.logicOperator!==O&&e.current.setFilterModel(C({},D,{logicOperator:O}),"changeLogicOperator")},[e]),m=g.useCallback(O=>{const D=ut(e);sn(D.quickFilterValues,O)||e.current.setFilterModel(C({},D,{quickFilterValues:[...O]}))},[e]),p=g.useCallback((O,D)=>{ut(e)!==O&&(n.debug("Setting filter model"),e.current.updateControlState("filter",Jl(O,t.disableMultipleColumnsFiltering,e),D),e.current.unstable_applyFilters())},[e,n,t.disableMultipleColumnsFiltering]),b=g.useCallback(O=>{const D=_s(O,t.disableMultipleColumnsFiltering,e),V=t.filterMode==="client"?ub(D,e,t.disableEval):null,E=e.current.applyStrategyProcessor("filtering",{isRowMatchingFilters:V,filterModel:D!=null?D:Cr()});return C({},E,{filterModel:D})},[t.disableMultipleColumnsFiltering,t.filterMode,t.disableEval,e]),x={setFilterLogicOperator:f,unstable_applyFilters:s,deleteFilterItem:c,upsertFilterItem:l,upsertFilterItems:a,setFilterModel:p,showFilterPanel:u,hideFilterPanel:d,setQuickFilterValues:m,ignoreDiacritics:t.ignoreDiacritics,getFilterState:b};Se(e,x,"public");const w=g.useCallback((O,D)=>{var T,L;const V=ut(e);return V.items.forEach($=>{delete $.fromInput}),!D.exportOnlyDirtyModels||t.filterModel!=null||((L=(T=t.initialState)==null?void 0:T.filter)==null?void 0:L.filterModel)!=null||!sn(V,Cr())?C({},O,{filter:{filterModel:V}}):O},[e,t.filterModel,(R=(P=t.initialState)==null?void 0:P.filter)==null?void 0:R.filterModel]),S=g.useCallback((O,D)=>{var E;const V=(E=D.stateToRestore.filter)==null?void 0:E.filterModel;return V==null?O:(e.current.updateControlState("filter",Jl(V,t.disableMultipleColumnsFiltering,e),"restoreState"),C({},O,{callbacks:[...O.callbacks,e.current.unstable_applyFilters]}))},[e,t.disableMultipleColumnsFiltering]),v=g.useCallback((O,D)=>{var V;if(D===bn.filters){const E=t.slots.filterPanel;return i.jsx(E,C({},(V=t.slotProps)==null?void 0:V.filterPanel))}return O},[t.slots.filterPanel,(_=t.slotProps)==null?void 0:_.filterPanel]),{getRowId:F}=t,j=Bt.default(Vy),y=g.useCallback(O=>{var H;if(t.filterMode!=="client"||!O.isRowMatchingFilters||!O.filterModel.items.length&&!((H=O.filterModel.quickFilterValues)!=null&&H.length))return Cc;const D=vt(e),V={},{isRowMatchingFilters:E}=O,T={},L={passingFilterItems:null,passingQuickFilterValues:null},$=j.current(e.current.state.rows.dataRowIdToModelLookup);for(let z=0;z<$.length;z+=1){const q=$[z],U=F?F(q):q.id;E(q,void 0,L);const Q=fb([L.passingFilterItems],[L.passingQuickFilterValues],O.filterModel,e,T);V[U]=Q}const G="auto-generated-group-footer-root";return D[G]&&(V[G]=!0),{filteredRowsLookup:V,filteredChildrenCountLookup:{},filteredDescendantCountLookup:{}}},[e,t.filterMode,F,j]);Ue(e,"columnMenu",o),Ue(e,"exportState",w),Ue(e,"restoreState",S),Ue(e,"preferencePanel",v),lo(e,Cn,"filtering",y),lo(e,Cn,"visibleRowsLookupCreation",Ay);const A=g.useCallback(()=>{n.debug("onColUpdated - GridColumns changed, applying filters");const O=ut(e),D=Qt(e),V=O.items.filter(E=>E.field&&D[E.field]);V.length<O.items.length&&e.current.setFilterModel(C({},O,{items:V}))},[e,n]),N=g.useCallback(O=>{O==="filtering"&&e.current.unstable_applyFilters()},[e]),M=g.useCallback(()=>{e.current.setState(O=>C({},O,{visibleRowsLookup:zi(e,O)})),e.current.forceUpdate()},[e]);le(e,"rowsSet",r),le(e,"columnsChange",A),le(e,"activeStrategyProcessorChange",N),le(e,"rowExpansionChange",M),le(e,"columnVisibilityModelChange",()=>{const O=ut(e);O.quickFilterValues&&Ic(O)&&e.current.unstable_applyFilters()}),Ir(()=>{e.current.unstable_applyFilters()}),oe.unstable_useEnhancedEffect(()=>{t.filterModel!==void 0&&e.current.setFilterModel(t.filterModel)},[e,n,t.filterModel])},$y=e=>C({},e,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},tabIndex:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}),zy=(e,t)=>{const n=ct(e,"useGridFocus"),r=g.useRef(null),o=e.current.rootElementRef.current!==null,s=g.useCallback((M,P)=>{M&&e.current.getRow(M.id)&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(M.id,M.field),P)},[e]),l=g.useCallback((M,P)=>{const R=gt(e);(R==null?void 0:R.id)===M&&(R==null?void 0:R.field)===P||(e.current.setState(_=>(n.debug(`Focusing on cell with id=${M} and field=${P}`),C({},_,{tabIndex:{cell:{id:M,field:P},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},focus:{cell:{id:M,field:P},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))),e.current.forceUpdate(),e.current.getRow(M)&&(R&&s(R,{}),e.current.publishEvent("cellFocusIn",e.current.getCellParams(M,P))))},[e,n,s]),a=g.useCallback((M,P={})=>{const R=gt(e);s(R,P),e.current.setState(_=>(n.debug(`Focusing on column header with colIndex=${M}`),C({},_,{tabIndex:{columnHeader:{field:M},columnHeaderFilter:null,cell:null,columnGroupHeader:null},focus:{columnHeader:{field:M},columnHeaderFilter:null,cell:null,columnGroupHeader:null}}))),e.current.forceUpdate()},[e,n,s]),c=g.useCallback((M,P={})=>{const R=gt(e);s(R,P),e.current.setState(_=>(n.debug(`Focusing on column header filter with colIndex=${M}`),C({},_,{tabIndex:{columnHeader:null,columnHeaderFilter:{field:M},cell:null,columnGroupHeader:null},focus:{columnHeader:null,columnHeaderFilter:{field:M},cell:null,columnGroupHeader:null}}))),e.current.forceUpdate()},[e,n,s]),u=g.useCallback((M,P,R={})=>{const _=gt(e);_&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(_.id,_.field),R),e.current.setState(O=>C({},O,{tabIndex:{columnGroupHeader:{field:M,depth:P},columnHeader:null,columnHeaderFilter:null,cell:null},focus:{columnGroupHeader:{field:M,depth:P},columnHeader:null,columnHeaderFilter:null,cell:null}})),e.current.forceUpdate()},[e]),d=g.useCallback(()=>Qr(e),[e]),f=g.useCallback((M,P,R)=>{let _=e.current.getColumnIndex(P);const O=Ke(e),D=an(e,{pagination:t.pagination,paginationMode:t.paginationMode}),V=Kn(e),E=[].concat(V.top||[],D.rows,V.bottom||[]);let T=E.findIndex(k=>k.id===M);R==="right"?_+=1:R==="left"?_-=1:T+=1,_>=O.length?(T+=1,T<E.length&&(_=0)):_<0&&(T-=1,T>=0&&(_=O.length-1)),T=xt(T,0,E.length-1);const L=E[T];if(!L)return;const $=e.current.unstable_getCellColSpanInfo(L.id,_);$&&$.spannedByColSpan&&(R==="left"||R==="below"?_=$.leftVisibleCellIndex:R==="right"&&(_=$.rightVisibleCellIndex)),_=xt(_,0,O.length-1);const G=O[_];e.current.setCellFocus(L.id,G.field)},[e,t.pagination,t.paginationMode]),m=g.useCallback(({id:M,field:P})=>{e.current.setCellFocus(M,P)},[e]),p=g.useCallback((M,P)=>{P.key==="Enter"||P.key==="Tab"||P.key==="Shift"||ro(P.key)||e.current.setCellFocus(M.id,M.field)},[e]),b=g.useCallback(({field:M},P)=>{P.target===P.currentTarget&&e.current.setColumnHeaderFocus(M,P)},[e]),x=g.useCallback(({fields:M,depth:P},R)=>{if(R.target!==R.currentTarget)return;const _=Qr(e);_!==null&&_.depth===P&&M.includes(_.field)||e.current.setColumnGroupHeaderFocus(M[0],P,R)},[e]),w=g.useCallback((M,P)=>{var R,_;(_=(R=P.relatedTarget)==null?void 0:R.getAttribute("class"))!=null&&_.includes(I.columnHeader)||(n.debug("Clearing focus"),e.current.setState(O=>C({},O,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})))},[n,e]),S=g.useCallback(M=>{r.current=M},[]),v=g.useCallback(M=>{const P=r.current;r.current=null;const R=gt(e);if(!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:M,cell:P}))return;if(!R){P&&e.current.setCellFocus(P.id,P.field);return}if((P==null?void 0:P.id)===R.id&&(P==null?void 0:P.field)===R.field)return;const O=e.current.getCellElement(R.id,R.field);O!=null&&O.contains(M.target)||(P?e.current.setCellFocus(P.id,P.field):(e.current.setState(D=>C({},D,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})),e.current.forceUpdate(),s(R,M)))},[e,s]),F=g.useCallback(M=>{if(M.cellMode==="view")return;const P=gt(e);((P==null?void 0:P.id)!==M.id||(P==null?void 0:P.field)!==M.field)&&e.current.setCellFocus(M.id,M.field)},[e]),j=g.useCallback(()=>{var P;const M=gt(e);if(M&&!e.current.getRow(M.id)){const R=M.id;let _=null;if(typeof R!="undefined"){const O=e.current.getRowElement(R),D=O!=null&&O.dataset.rowindex?Number(O==null?void 0:O.dataset.rowindex):0,V=an(e,{pagination:t.pagination,paginationMode:t.paginationMode}),E=V.rows[xt(D,0,V.rows.length-1)];_=(P=E==null?void 0:E.id)!=null?P:null}e.current.setState(O=>C({},O,{focus:{cell:_===null?null:{id:_,field:M.field},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))}},[e,t.pagination,t.paginationMode]),y=oe.unstable_useEventCallback(()=>{const M=gt(e);if(!M)return;const P=an(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(P.rows.find(O=>O.id===M.id))return;const _=Ke(e);e.current.setState(O=>C({},O,{tabIndex:{cell:{id:P.rows[0].id,field:_[0].field},columnGroupHeader:null,columnHeader:null,columnHeaderFilter:null}}))}),A={setCellFocus:l,setColumnHeaderFocus:a,setColumnHeaderFilterFocus:c},N={moveFocusToRelativeCell:f,setColumnGroupHeaderFocus:u,getColumnGroupHeaderFocus:d};Se(e,A,"public"),Se(e,N,"private"),g.useEffect(()=>{const M=oe.unstable_ownerDocument(e.current.rootElementRef.current);return M.addEventListener("mouseup",v),()=>{M.removeEventListener("mouseup",v)}},[e,o,v]),le(e,"columnHeaderBlur",w),le(e,"cellDoubleClick",m),le(e,"cellMouseDown",S),le(e,"cellKeyDown",p),le(e,"cellModeChange",F),le(e,"columnHeaderFocus",b),le(e,"columnGroupHeaderFocus",x),le(e,"rowsSet",j),le(e,"paginationModelChange",y)},qo=({currentColIndex:e,firstColIndex:t,lastColIndex:n,isRtl:r})=>{if(r){if(e<n)return e+1}else if(!r&&e>t)return e-1;return null},Uo=({currentColIndex:e,firstColIndex:t,lastColIndex:n,isRtl:r})=>{if(r){if(e>t)return e-1}else if(!r&&e<n)return e+1;return null};function Gy(e,t,n,r){var a,c;const o=du(e);if(!((a=o[t])!=null&&a[n]))return t;const s=Ac(e);let l=s.indexOf(t)+(r==="down"?1:-1);for(;l>=0&&l<s.length;){const u=s[l];if(!((c=o[u])!=null&&c[n]))return u;l+=r==="down"?1:-1}return t}const By=Le(Er,Kn,(e,t)=>(t.top||[]).concat(e.rows,t.bottom||[])),Wy=(e,t)=>{const n=ct(e,"useGridKeyboardNavigation"),r=Gt.useRtl(),o=t.unstable_listView,s=g.useCallback(()=>By(e),[e]),l=t.signature!=="DataGrid"&&t.headerFilters,a=g.useCallback((S,v,F="left",j="up")=>{const y=fn(e),A=e.current.unstable_getCellColSpanInfo(v,S);A&&A.spannedByColSpan&&(F==="left"?S=A.leftVisibleCellIndex:F==="right"&&(S=A.rightVisibleCellIndex));const N=o?Gn(e.current.state).field:Xn(e)[S],M=Gy(e,v,N,j),P=y.findIndex(R=>R.id===M);n.debug(`Navigating to cell row ${P}, col ${S}`),e.current.scrollToIndexes({colIndex:S,rowIndex:P}),e.current.setCellFocus(M,N)},[e,n,o]),c=g.useCallback((S,v)=>{n.debug(`Navigating to header col ${S}`),e.current.scrollToIndexes({colIndex:S});const F=e.current.getVisibleColumns()[S].field;e.current.setColumnHeaderFocus(F,v)},[e,n]),u=g.useCallback((S,v)=>{n.debug(`Navigating to header filter col ${S}`),e.current.scrollToIndexes({colIndex:S});const F=e.current.getVisibleColumns()[S].field;e.current.setColumnHeaderFilterFocus(F,v)},[e,n]),d=g.useCallback((S,v,F)=>{n.debug(`Navigating to header col ${S}`),e.current.scrollToIndexes({colIndex:S});const{field:j}=e.current.getVisibleColumns()[S];e.current.setColumnGroupHeaderFocus(j,v,F)},[e,n]),f=g.useCallback(S=>{var v;return(v=s()[S])==null?void 0:v.id},[s]),m=g.useCallback((S,v)=>{const F=v.currentTarget.querySelector(`.${I.columnHeaderTitleContainerContent}`);if(!!F&&F.contains(v.target)&&S.field!==Jn.field)return;const y=s(),A=e.current.getViewportPageSize(),N=S.field?e.current.getColumnIndex(S.field):0,M=y.length>0?0:null,P=y.length-1,R=0,_=Ke(e).length-1,O=Tr(e);let D=!0;switch(v.key){case"ArrowDown":{l?u(N,v):M!==null&&a(N,f(M));break}case"ArrowRight":{const V=Uo({currentColIndex:N,firstColIndex:R,lastColIndex:_,isRtl:r});V!==null&&c(V,v);break}case"ArrowLeft":{const V=qo({currentColIndex:N,firstColIndex:R,lastColIndex:_,isRtl:r});V!==null&&c(V,v);break}case"ArrowUp":{O>0&&d(N,O-1,v);break}case"PageDown":{M!==null&&P!==null&&a(N,f(Math.min(M+A,P)));break}case"Home":{c(R,v);break}case"End":{c(_,v);break}case"Enter":{(v.ctrlKey||v.metaKey)&&e.current.toggleColumnMenu(S.field);break}case" ":break;default:D=!1}D&&v.preventDefault()},[e,s,l,u,a,f,r,c,d]),p=g.useCallback((S,v)=>{const F=NC(e)===S.field,j=$C(e)===S.field;if(F||j||!ro(v.key))return;const y=s(),A=e.current.getViewportPageSize(),N=S.field?e.current.getColumnIndex(S.field):0,M=0,P=y.length-1,R=0,_=Ke(e).length-1;let O=!0;switch(v.key){case"ArrowDown":{const D=f(M);D!=null&&a(N,D);break}case"ArrowRight":{const D=Uo({currentColIndex:N,firstColIndex:R,lastColIndex:_,isRtl:r});D!==null&&u(D,v);break}case"ArrowLeft":{const D=qo({currentColIndex:N,firstColIndex:R,lastColIndex:_,isRtl:r});D!==null?u(D,v):e.current.setColumnHeaderFilterFocus(S.field,v);break}case"ArrowUp":{c(N,v);break}case"PageDown":{P!==null&&a(N,f(Math.min(M+A,P)));break}case"Home":{u(R,v);break}case"End":{u(_,v);break}case" ":break;default:O=!1}O&&v.preventDefault()},[e,s,u,r,c,a,f]),b=g.useCallback((S,v)=>{const F=Qr(e);if(F===null)return;const{field:j,depth:y}=F,{fields:A,depth:N,maxDepth:M}=S,P=s(),R=e.current.getViewportPageSize(),_=e.current.getColumnIndex(j),O=j?e.current.getColumnIndex(j):0,D=0,V=P.length-1,E=0,T=Ke(e).length-1;let L=!0;switch(v.key){case"ArrowDown":{N===M-1?c(_,v):d(_,y+1,v);break}case"ArrowUp":{N>0&&d(_,y-1,v);break}case"ArrowRight":{const $=A.length-A.indexOf(j)-1;_+$+1<=T&&d(_+$+1,y,v);break}case"ArrowLeft":{const $=A.indexOf(j);_-$-1>=E&&d(_-$-1,y,v);break}case"PageDown":{V!==null&&a(O,f(Math.min(D+R,V)));break}case"Home":{d(E,y,v);break}case"End":{d(T,y,v);break}case" ":break;default:L=!1}L&&v.preventDefault()},[e,s,c,d,a,f]),x=g.useCallback((S,v)=>{if(jr(v))return;const F=e.current.getCellParams(S.id,S.field);if(F.cellMode===_e.Edit||!ro(v.key)||!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:v,cell:F}))return;const y=s();if(y.length===0)return;const A=e.current.getViewportPageSize(),N=o?()=>0:e.current.getColumnIndex,M=S.field?N(S.field):0,P=y.findIndex(T=>T.id===S.id),R=0,_=y.length-1,O=0,V=(o?[Gn(e.current.state)]:Ke(e)).length-1;let E=!0;switch(v.key){case"ArrowDown":{P<_&&a(M,f(P+1),r?"right":"left","down");break}case"ArrowUp":{P>R?a(M,f(P-1)):l?u(M,v):c(M,v);break}case"ArrowRight":{const T=Uo({currentColIndex:M,firstColIndex:O,lastColIndex:V,isRtl:r});T!==null&&a(T,f(P),r?"left":"right");break}case"ArrowLeft":{const T=qo({currentColIndex:M,firstColIndex:O,lastColIndex:V,isRtl:r});T!==null&&a(T,f(P),r?"right":"left");break}case"Tab":{v.shiftKey&&M>O?a(M-1,f(P),"left"):!v.shiftKey&&M<V&&a(M+1,f(P),"right");break}case" ":{if(S.field===mo)break;const L=S.colDef;if(L&&(L.field===Eb||u0(L.field)))break;!v.shiftKey&&P<_&&a(M,f(Math.min(P+A,_)));break}case"PageDown":{P<_&&a(M,f(Math.min(P+A,_)));break}case"PageUp":{const T=Math.max(P-A,R);T!==P&&T>=R?a(M,f(T)):c(M,v);break}case"Home":{v.ctrlKey||v.metaKey||v.shiftKey?a(O,f(R)):a(O,f(P));break}case"End":{v.ctrlKey||v.metaKey||v.shiftKey?a(V,f(_)):a(V,f(P));break}default:E=!1}E&&v.preventDefault()},[e,s,r,a,f,l,u,c,o]),w=g.useCallback((S,{event:v})=>v.key===" "?!1:S,[]);Ue(e,"canStartEditing",w),le(e,"columnHeaderKeyDown",m),le(e,"headerFilterKeyDown",p),le(e,"columnGroupHeaderKeyDown",b),le(e,"cellKeyDown",x)},qy=(e,t)=>{var b,x;const n=ct(e,"useGridRowCount"),r=te(e,$s),o=te(e,Ln),s=te(e,hr),l=te(e,ht),a=Bt.default(()=>ht(e).pageSize);e.current.registerControlState({stateId:"paginationRowCount",propModel:t.rowCount,propOnChange:t.onRowCountChange,stateSelector:Ln,changeEvent:"rowCountChange"});const u={setRowCount:g.useCallback(w=>{o!==w&&(n.debug("Setting 'rowCount' to",w),e.current.setState(S=>C({},S,{pagination:C({},S.pagination,{rowCount:w})})))},[e,n,o])};Se(e,u,"public");const d=g.useCallback((w,S)=>{var j,y;const v=Ln(e);return!S.exportOnlyDirtyModels||t.rowCount!=null||((y=(j=t.initialState)==null?void 0:j.pagination)==null?void 0:y.rowCount)!=null?C({},w,{pagination:C({},w.pagination,{rowCount:v})}):w},[e,t.rowCount,(x=(b=t.initialState)==null?void 0:b.pagination)==null?void 0:x.rowCount]),f=g.useCallback((w,S)=>{var F;const v=(F=S.stateToRestore.pagination)!=null&&F.rowCount?S.stateToRestore.pagination.rowCount:Ln(e);return e.current.setState(j=>C({},j,{pagination:C({},j.pagination,{rowCount:v})})),w},[e]);Ue(e,"exportState",d),Ue(e,"restoreState",f);const m=g.useCallback(w=>{t.paginationMode==="client"||!a.current||w.pageSize!==a.current&&(a.current=w.pageSize,o===-1&&e.current.setPage(0))},[t.paginationMode,a,o,e]);le(e,"paginationModelChange",m),g.useEffect(()=>{t.paginationMode==="client"?e.current.setRowCount(r):t.rowCount!=null&&e.current.setRowCount(t.rowCount)},[e,t.paginationMode,r,t.rowCount]);const p=s.hasNextPage===!1;g.useEffect(()=>{p&&o===-1&&e.current.setRowCount(l.pageSize*l.page+r)},[e,r,p,o,l])},Uy=(e,t)=>{var c,u;const n=ct(e,"useGridPaginationMeta"),r=te(e,hr);e.current.registerControlState({stateId:"paginationMeta",propModel:t.paginationMeta,propOnChange:t.onPaginationMetaChange,stateSelector:hr,changeEvent:"paginationMetaChange"});const s={setPaginationMeta:g.useCallback(d=>{r!==d&&(n.debug("Setting 'paginationMeta' to",d),e.current.setState(f=>C({},f,{pagination:C({},f.pagination,{meta:d})})))},[e,n,r])};Se(e,s,"public");const l=g.useCallback((d,f)=>{var b,x;const m=hr(e);return!f.exportOnlyDirtyModels||t.paginationMeta!=null||((x=(b=t.initialState)==null?void 0:b.pagination)==null?void 0:x.meta)!=null?C({},d,{pagination:C({},d.pagination,{meta:m})}):d},[e,t.paginationMeta,(u=(c=t.initialState)==null?void 0:c.pagination)==null?void 0:u.meta]),a=g.useCallback((d,f)=>{var p;const m=(p=f.stateToRestore.pagination)!=null&&p.meta?f.stateToRestore.pagination.meta:hr(e);return e.current.setState(b=>C({},b,{pagination:C({},b.pagination,{meta:m})})),d},[e]);Ue(e,"exportState",l),Ue(e,"restoreState",a),g.useEffect(()=>{t.paginationMeta&&e.current.setPaginationMeta(t.paginationMeta)},[e,t.paginationMeta])},Ky=(e,t)=>{var s,l,a,c,u,d,f,m,p,b,x,w;const n=C({},qc(t.autoPageSize),(a=t.paginationModel)!=null?a:(l=(s=t.initialState)==null?void 0:s.pagination)==null?void 0:l.paginationModel);Uc(n.pageSize,t.signature);const r=(m=(d=t.rowCount)!=null?d:(u=(c=t.initialState)==null?void 0:c.pagination)==null?void 0:u.rowCount)!=null?m:t.paginationMode==="client"?(f=e.rows)==null?void 0:f.totalRowCount:void 0,o=(w=(x=t.paginationMeta)!=null?x:(b=(p=t.initialState)==null?void 0:p.pagination)==null?void 0:b.meta)!=null?w:{};return C({},e,{pagination:C({},e.pagination,{paginationModel:n,rowCount:r,meta:o,enabled:t.pagination===!0,paginationMode:t.paginationMode})})},Xy=(e,t)=>{Uy(e,t),Ry(e,t),qy(e,t)},Yy=(e,t)=>{var n,r;return C({},e,{preferencePanel:(r=(n=t.initialState)==null?void 0:n.preferencePanel)!=null?r:{open:!1}})},Zy=(e,t)=>{var a;const n=ct(e,"useGridPreferencesPanel"),r=g.useCallback(()=>{e.current.setState(c=>{if(!c.preferencePanel.open)return c;n.debug("Hiding Preferences Panel");const u=xr(c);return e.current.publishEvent("preferencePanelClose",{openedPanelValue:u.openedPanelValue}),C({},c,{preferencePanel:{open:!1}})})},[e,n]),o=g.useCallback((c,u,d)=>{n.debug("Opening Preferences Panel"),e.current.setState(f=>C({},f,{preferencePanel:C({},f.preferencePanel,{open:!0,openedPanelValue:c,panelId:u,labelId:d})})),e.current.publishEvent("preferencePanelOpen",{openedPanelValue:c})},[n,e]);Se(e,{showPreferences:o,hidePreferences:r},"public");const s=g.useCallback((c,u)=>{var m;const d=xr(e.current.state);return!u.exportOnlyDirtyModels||((m=t.initialState)==null?void 0:m.preferencePanel)!=null||d.open?C({},c,{preferencePanel:d}):c},[e,(a=t.initialState)==null?void 0:a.preferencePanel]),l=g.useCallback((c,u)=>{const d=u.stateToRestore.preferencePanel;return d!=null&&e.current.setState(f=>C({},f,{preferencePanel:d})),c},[e]);Ue(e,"exportState",s),Ue(e,"restoreState",l)},us=e=>{switch(e.type){case"boolean":return!1;case"date":case"dateTime":case"number":return;case"singleSelect":return null;case"string":default:return""}},Qy=["id","field"],Jy=["id","field"],ev=(e,t)=>{const[n,r]=g.useState({}),o=g.useRef(n),s=g.useRef({}),{processRowUpdate:l,onProcessRowUpdateError:a,cellModesModel:c,onCellModesModelChange:u}=t,d=E=>(...T)=>{t.editMode===zt.Cell&&E(...T)},f=g.useCallback((E,T)=>{const L=e.current.getCellParams(E,T);if(!e.current.isCellEditable(L))throw new Error(`MUI X: The cell with id=${E} and field=${T} is not editable.`)},[e]),m=g.useCallback((E,T,L)=>{if(e.current.getCellMode(E,T)!==L)throw new Error(`MUI X: The cell with id=${E} and field=${T} is not in ${L} mode.`)},[e]),p=g.useCallback((E,T)=>{if(!E.isEditable||E.cellMode===_e.Edit)return;const L=C({},E,{reason:Ut.cellDoubleClick});e.current.publishEvent("cellEditStart",L,T)},[e]),b=g.useCallback((E,T)=>{if(E.cellMode===_e.View||e.current.getCellMode(E.id,E.field)===_e.View)return;const L=C({},E,{reason:Ft.cellFocusOut});e.current.publishEvent("cellEditStop",L,T)},[e]),x=g.useCallback((E,T)=>{if(E.cellMode===_e.Edit){if(T.which===229)return;let L;if(T.key==="Escape"?L=Ft.escapeKeyDown:T.key==="Enter"?L=Ft.enterKeyDown:T.key==="Tab"&&(L=T.shiftKey?Ft.shiftTabKeyDown:Ft.tabKeyDown,T.preventDefault()),L){const $=C({},E,{reason:L});e.current.publishEvent("cellEditStop",$,T)}}else if(E.isEditable){let L;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:T,cellParams:E,editMode:"cell"}))return;if(Au(T)?L=Ut.printableKeyDown:Nu(T)?L=Ut.pasteKeyDown:T.key==="Enter"?L=Ut.enterKeyDown:(T.key==="Backspace"||T.key==="Delete")&&(L=Ut.deleteKeyDown),L){const G=C({},E,{reason:L,key:T.key});e.current.publishEvent("cellEditStart",G,T)}}},[e]),w=g.useCallback(E=>{const{id:T,field:L,reason:$}=E,G={id:T,field:L};($===Ut.printableKeyDown||$===Ut.deleteKeyDown||$===Ut.pasteKeyDown)&&(G.deleteValue=!0),e.current.startCellEditMode(G)},[e]),S=g.useCallback(E=>{const{id:T,field:L,reason:$}=E;e.current.runPendingEditCellValueMutation(T,L);let G;$===Ft.enterKeyDown?G="below":$===Ft.tabKeyDown?G="right":$===Ft.shiftTabKeyDown&&(G="left");const k=$==="escapeKeyDown";e.current.stopCellEditMode({id:T,field:L,ignoreModifications:k,cellToFocusAfter:G})},[e]),v=E=>async(...T)=>{var L;if(E){const{id:$,field:G}=T[0];((L=e.current.state.editRows[$][G])==null?void 0:L.error)||E(...T)}};le(e,"cellDoubleClick",d(p)),le(e,"cellFocusOut",d(b)),le(e,"cellKeyDown",d(x)),le(e,"cellEditStart",d(w)),le(e,"cellEditStop",d(S)),Ae(e,"cellEditStart",t.onCellEditStart),Ae(e,"cellEditStop",v(t.onCellEditStop));const F=g.useCallback((E,T)=>{const L=it(e.current.state);return L[E]&&L[E][T]?_e.Edit:_e.View},[e]),j=oe.unstable_useEventCallback(E=>{const T=E!==t.cellModesModel;u&&T&&u(E,{api:e.current}),!(t.cellModesModel&&T)&&(r(E),o.current=E,e.current.publishEvent("cellModesModelChange",E))}),y=g.useCallback((E,T,L)=>{const $=C({},o.current);if(L!==null)$[E]=C({},$[E],{[T]:C({},L)});else{const G=$[E],k=me(G,[T].map(vr));$[E]=k,Object.keys($[E]).length===0&&delete $[E]}j($)},[j]),A=g.useCallback((E,T,L)=>{e.current.setState($=>{const G=C({},$.editRows);return L!==null?G[E]=C({},G[E],{[T]:C({},L)}):(delete G[E][T],Object.keys(G[E]).length===0&&delete G[E]),C({},$,{editRows:G})}),e.current.forceUpdate()},[e]),N=g.useCallback(E=>{const{id:T,field:L}=E,$=me(E,Qy);f(T,L),m(T,L,_e.View),y(T,L,C({mode:_e.Edit},$))},[f,m,y]),M=oe.unstable_useEventCallback(async E=>{const{id:T,field:L,deleteValue:$,initialValue:G}=E,k=e.current.getCellValue(T,L);let H=k;$?H=us(e.current.getColumn(L)):G&&(H=G);const z=e.current.getColumn(L),q=!!z.preProcessEditCellProps&&$;let U={value:H,error:!1,isProcessingProps:q};if(A(T,L,U),e.current.setCellFocus(T,L),q&&(U=await Promise.resolve(z.preProcessEditCellProps({id:T,row:e.current.getRow(T),props:U,hasChanged:H!==k})),e.current.getCellMode(T,L)===_e.Edit)){const Q=it(e.current.state);A(T,L,C({},U,{value:Q[T][L].value,isProcessingProps:!1}))}}),P=g.useCallback(E=>{const{id:T,field:L}=E,$=me(E,Jy);m(T,L,_e.Edit),y(T,L,C({mode:_e.View},$))},[m,y]),R=oe.unstable_useEventCallback(async E=>{const{id:T,field:L,ignoreModifications:$,cellToFocusAfter:G="none"}=E;m(T,L,_e.Edit),e.current.runPendingEditCellValueMutation(T,L);const k=()=>{A(T,L,null),y(T,L,null),G!=="none"&&e.current.moveFocusToRelativeCell(T,L,G)};if($){k();return}const H=it(e.current.state),{error:z,isProcessingProps:q}=H[T][L];if(z||q){s.current[T][L].mode=_e.Edit,y(T,L,{mode:_e.Edit});return}const U=e.current.getRowWithUpdatedValuesFromCellEditing(T,L);if(l){const Q=X=>{s.current[T][L].mode=_e.Edit,y(T,L,{mode:_e.Edit}),a?a(X):process.env.NODE_ENV!=="production"&&kt(["MUI X: A call to `processRowUpdate` threw an error which was not handled because `onProcessRowUpdateError` is missing.","To handle the error pass a callback to the `onProcessRowUpdateError` prop, for example `<DataGrid onProcessRowUpdateError={(error) => ...} />`.","For more detail, see https://mui.com/x/react-data-grid/editing/#server-side-persistence."],"error")};try{const X=e.current.getRow(T);Promise.resolve(l(U,X,{rowId:T})).then(W=>{e.current.updateRows([W]),k()}).catch(Q)}catch(X){Q(X)}}else e.current.updateRows([U]),k()}),_=g.useCallback(async E=>{var X,W;const{id:T,field:L,value:$,debounceMs:G,unstable_skipValueParser:k}=E;f(T,L),m(T,L,_e.Edit);const H=e.current.getColumn(L),z=e.current.getRow(T);let q=$;H.valueParser&&!k&&(q=H.valueParser($,z,H,e));let U=it(e.current.state),Q=C({},U[T][L],{value:q,changeReason:G?"debouncedSetEditCellValue":"setEditCellValue"});if(H.preProcessEditCellProps){const K=$!==U[T][L].value;Q=C({},Q,{isProcessingProps:!0}),A(T,L,Q),Q=await Promise.resolve(H.preProcessEditCellProps({id:T,row:z,props:Q,hasChanged:K}))}return e.current.getCellMode(T,L)===_e.View?!1:(U=it(e.current.state),Q=C({},Q,{isProcessingProps:!1}),Q.value=H.preProcessEditCellProps?U[T][L].value:q,A(T,L,Q),U=it(e.current.state),!((W=(X=U[T])==null?void 0:X[L])!=null&&W.error))},[e,f,m,A]),O=g.useCallback((E,T)=>{const L=e.current.getColumn(T),$=it(e.current.state),G=e.current.getRow(E);if(!$[E]||!$[E][T])return e.current.getRow(E);const{value:k}=$[E][T];return L.valueSetter?L.valueSetter(k,G,L,e):C({},G,{[T]:k})},[e]),D={getCellMode:F,startCellEditMode:N,stopCellEditMode:P},V={setCellEditingEditCellValue:_,getRowWithUpdatedValuesFromCellEditing:O};Se(e,D,"public"),Se(e,V,"private"),g.useEffect(()=>{c&&j(c)},[c,j]),oe.unstable_useEnhancedEffect(()=>{const E=vt(e),T=s.current;s.current=pc(n),Object.entries(n).forEach(([L,$])=>{Object.entries($).forEach(([G,k])=>{var q,U;const H=((U=(q=T[L])==null?void 0:q[G])==null?void 0:U.mode)||_e.View,z=E[L]?e.current.getRowId(E[L]):L;k.mode===_e.Edit&&H===_e.View?M(C({id:z,field:G},k)):k.mode===_e.View&&H===_e.Edit&&R(C({id:z,field:G},k))})})},[e,n,M,R])},tv=["id"],nv=["id"],rv=(e,t)=>{const[n,r]=g.useState({}),o=g.useRef(n),s=g.useRef({}),l=g.useRef({}),a=g.useRef(void 0),c=g.useRef(null),{processRowUpdate:u,onProcessRowUpdateError:d,rowModesModel:f,onRowModesModelChange:m}=t,p=k=>(...H)=>{t.editMode===zt.Row&&k(...H)},b=g.useCallback((k,H)=>{const z=e.current.getCellParams(k,H);if(!e.current.isCellEditable(z))throw new Error(`MUI X: The cell with id=${k} and field=${H} is not editable.`)},[e]),x=g.useCallback((k,H)=>{if(e.current.getRowMode(k)!==H)throw new Error(`MUI X: The row with id=${k} is not in ${H} mode.`)},[e]),w=g.useCallback(k=>{const H=it(e.current.state);return Object.values(H[k]).some(z=>z.error)},[e]),S=g.useCallback((k,H)=>{if(!k.isEditable||e.current.getRowMode(k.id)===We.Edit)return;const z=e.current.getRowParams(k.id),q=C({},z,{field:k.field,reason:nn.cellDoubleClick});e.current.publishEvent("rowEditStart",q,H)},[e]),v=g.useCallback(k=>{c.current=k},[]),F=g.useCallback((k,H)=>{k.isEditable&&e.current.getRowMode(k.id)!==We.View&&(c.current=null,a.current=setTimeout(()=>{var z;if(((z=c.current)==null?void 0:z.id)!==k.id){if(!e.current.getRow(k.id)||e.current.getRowMode(k.id)===We.View||w(k.id))return;const q=e.current.getRowParams(k.id),U=C({},q,{field:k.field,reason:At.rowFocusOut});e.current.publishEvent("rowEditStop",U,H)}}))},[e,w]);g.useEffect(()=>()=>{clearTimeout(a.current)},[]);const j=g.useCallback((k,H)=>{if(k.cellMode===We.Edit){if(H.which===229)return;let z;if(H.key==="Escape")z=At.escapeKeyDown;else if(H.key==="Enter")z=At.enterKeyDown;else if(H.key==="Tab"){const q=Xn(e).filter(U=>e.current.getColumn(U).type===ho?!0:e.current.isCellEditable(e.current.getCellParams(k.id,U)));if(H.shiftKey?k.field===q[0]&&(z=At.shiftTabKeyDown):k.field===q[q.length-1]&&(z=At.tabKeyDown),H.preventDefault(),!z){const U=q.findIndex(X=>X===k.field),Q=q[H.shiftKey?U-1:U+1];e.current.setCellFocus(k.id,Q)}}if(z){if(z!==At.escapeKeyDown&&w(k.id))return;const q=C({},e.current.getRowParams(k.id),{reason:z,field:k.field});e.current.publishEvent("rowEditStop",q,H)}}else if(k.isEditable){let z;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:H,cellParams:k,editMode:"row"}))return;if(Au(H)||Nu(H)?z=nn.printableKeyDown:H.key==="Enter"?z=nn.enterKeyDown:(H.key==="Backspace"||H.key==="Delete")&&(z=nn.deleteKeyDown),z){const U=e.current.getRowParams(k.id),Q=C({},U,{field:k.field,reason:z});e.current.publishEvent("rowEditStart",Q,H)}}},[e,w]),y=g.useCallback(k=>{const{id:H,field:z,reason:q}=k,U={id:H,fieldToFocus:z};(q===nn.printableKeyDown||q===nn.deleteKeyDown)&&(U.deleteValue=!!z),e.current.startRowEditMode(U)},[e]),A=g.useCallback(k=>{const{id:H,reason:z,field:q}=k;e.current.runPendingEditCellValueMutation(H);let U;z===At.enterKeyDown?U="below":z===At.tabKeyDown?U="right":z===At.shiftTabKeyDown&&(U="left");const Q=z==="escapeKeyDown";e.current.stopRowEditMode({id:H,ignoreModifications:Q,field:q,cellToFocusAfter:U})},[e]);le(e,"cellDoubleClick",p(S)),le(e,"cellFocusIn",p(v)),le(e,"cellFocusOut",p(F)),le(e,"cellKeyDown",p(j)),le(e,"rowEditStart",p(y)),le(e,"rowEditStop",p(A)),Ae(e,"rowEditStart",t.onRowEditStart),Ae(e,"rowEditStop",t.onRowEditStop);const N=g.useCallback(k=>Cu(e,{rowId:k,editMode:t.editMode})?We.Edit:We.View,[e,t.editMode]),M=oe.unstable_useEventCallback(k=>{const H=k!==t.rowModesModel;m&&H&&m(k,{api:e.current}),!(t.rowModesModel&&H)&&(r(k),o.current=k,e.current.publishEvent("rowModesModelChange",k))}),P=g.useCallback((k,H)=>{const z=C({},o.current);H!==null?z[k]=C({},H):delete z[k],M(z)},[M]),R=g.useCallback((k,H)=>{e.current.setState(z=>{const q=C({},z.editRows);return H!==null?q[k]=H:delete q[k],C({},z,{editRows:q})}),e.current.forceUpdate()},[e]),_=g.useCallback((k,H,z)=>{e.current.setState(q=>{const U=C({},q.editRows);return z!==null?U[k]=C({},U[k],{[H]:C({},z)}):(delete U[k][H],Object.keys(U[k]).length===0&&delete U[k]),C({},q,{editRows:U})}),e.current.forceUpdate()},[e]),O=g.useCallback(k=>{const{id:H}=k,z=me(k,tv);x(H,We.View),P(H,C({mode:We.Edit},z))},[x,P]),D=oe.unstable_useEventCallback(k=>{const{id:H,fieldToFocus:z,deleteValue:q,initialValue:U}=k,Q=e.current.getRow(H),X=It(e),W=X.reduce((K,Y)=>{const J=Y.field;if(!e.current.getCellParams(H,J).isEditable)return K;const Z=e.current.getColumn(J);let se=e.current.getCellValue(H,J);return z===J&&(q||U)&&(q?se=us(Z):U&&(se=U)),K[J]={value:se,error:!1,isProcessingProps:Z.editable&&!!Z.preProcessEditCellProps&&q},K},{});l.current[H]=Q,R(H,W),z&&e.current.setCellFocus(H,z),X.filter(K=>e.current.getCellParams(H,K.field).isEditable&&K.editable&&!!K.preProcessEditCellProps&&q).forEach(K=>{const Y=K.field,J=e.current.getCellValue(H,Y),ne=q?us(K):U!=null?U:J;Promise.resolve(K.preProcessEditCellProps({id:H,row:Q,props:W[Y],hasChanged:ne!==J})).then(Z=>{if(e.current.getRowMode(H)===We.Edit){const se=it(e.current.state);_(H,Y,C({},Z,{value:se[H][Y].value,isProcessingProps:!1}))}})})}),V=g.useCallback(k=>{const{id:H}=k,z=me(k,nv);x(H,We.Edit),P(H,C({mode:We.View},z))},[x,P]),E=oe.unstable_useEventCallback(k=>{const{id:H,ignoreModifications:z,field:q,cellToFocusAfter:U="none"}=k;e.current.runPendingEditCellValueMutation(H);const Q=()=>{U!=="none"&&q&&e.current.moveFocusToRelativeCell(H,q,U),R(H,null),P(H,null),delete l.current[H]};if(z){Q();return}const X=it(e.current.state),W=l.current[H];if(Object.values(X[H]).some(J=>J.isProcessingProps)){s.current[H].mode=We.Edit;return}if(w(H)){s.current[H].mode=We.Edit,P(H,{mode:We.Edit});return}const Y=e.current.getRowWithUpdatedValuesFromRowEditing(H);if(u){const J=ne=>{s.current[H]&&(s.current[H].mode=We.Edit,P(H,{mode:We.Edit})),d?d(ne):process.env.NODE_ENV!=="production"&&kt(["MUI X: A call to `processRowUpdate` threw an error which was not handled because `onProcessRowUpdateError` is missing.","To handle the error pass a callback to the `onProcessRowUpdateError` prop, for example `<DataGrid onProcessRowUpdateError={(error) => ...} />`.","For more detail, see https://mui.com/x/react-data-grid/editing/#server-side-persistence."],"error")};try{Promise.resolve(u(Y,W,{rowId:H})).then(ne=>{e.current.updateRows([ne]),Q()}).catch(J)}catch(ne){J(ne)}}else e.current.updateRows([Y]),Q()}),T=g.useCallback(k=>{const{id:H,field:z,value:q,debounceMs:U,unstable_skipValueParser:Q}=k;b(H,z);const X=e.current.getColumn(z),W=e.current.getRow(H);let K=q;X.valueParser&&!Q&&(K=X.valueParser(q,W,X,e));let Y=it(e.current.state),J=C({},Y[H][z],{value:K,changeReason:U?"debouncedSetEditCellValue":"setEditCellValue"});return X.preProcessEditCellProps||_(H,z,J),new Promise(ne=>{const Z=[];if(X.preProcessEditCellProps){const se=J.value!==Y[H][z].value;J=C({},J,{isProcessingProps:!0}),_(H,z,J);const ee=Y[H],ae=me(ee,[z].map(vr)),fe=Promise.resolve(X.preProcessEditCellProps({id:H,row:W,props:J,hasChanged:se,otherFieldsProps:ae})).then(xe=>{if(e.current.getRowMode(H)===We.View){ne(!1);return}Y=it(e.current.state),xe=C({},xe,{isProcessingProps:!1}),xe.value=X.preProcessEditCellProps?Y[H][z].value:K,_(H,z,xe)});Z.push(fe)}Object.entries(Y[H]).forEach(([se,ee])=>{if(se===z)return;const ae=e.current.getColumn(se);if(!ae.preProcessEditCellProps)return;ee=C({},ee,{isProcessingProps:!0}),_(H,se,ee),Y=it(e.current.state);const fe=Y[H],xe=me(fe,[se].map(vr)),pe=Promise.resolve(ae.preProcessEditCellProps({id:H,row:W,props:ee,hasChanged:!1,otherFieldsProps:xe})).then(Me=>{if(e.current.getRowMode(H)===We.View){ne(!1);return}Me=C({},Me,{isProcessingProps:!1}),_(H,se,Me)});Z.push(pe)}),Promise.all(Z).then(()=>{e.current.getRowMode(H)===We.Edit?(Y=it(e.current.state),ne(!Y[H][z].error)):ne(!1)})})},[e,b,_]),L=g.useCallback(k=>{const H=it(e.current.state),z=e.current.getRow(k);if(!H[k])return e.current.getRow(k);let q=C({},l.current[k],z);return Object.entries(H[k]).forEach(([U,Q])=>{const X=e.current.getColumn(U);X!=null&&X.valueSetter?q=X.valueSetter(Q.value,q,X,e):q[U]=Q.value}),q},[e]),$={getRowMode:N,startRowEditMode:O,stopRowEditMode:V},G={setRowEditingEditCellValue:T,getRowWithUpdatedValuesFromRowEditing:L};Se(e,$,"public"),Se(e,G,"private"),g.useEffect(()=>{f&&M(f)},[f,M]),oe.unstable_useEnhancedEffect(()=>{const k=vt(e),H=s.current;s.current=pc(n);const z=new Set([...Object.keys(n),...Object.keys(H)]);Array.from(z).forEach(q=>{var W,K;const U=(W=n[q])!=null?W:{mode:We.View},Q=((K=H[q])==null?void 0:K.mode)||We.View,X=k[q]?e.current.getRowId(k[q]):q;U.mode===We.Edit&&Q===We.View?D(C({id:X},U)):U.mode===We.View&&Q===We.Edit&&E(C({id:X},U))})},[e,n,D,E])},ov=e=>C({},e,{editRows:{}}),sv=(e,t)=>{ev(e,t),rv(e,t);const n=g.useRef({}),{isCellEditable:r}=t,o=g.useCallback(m=>$n(m.rowNode)||!m.colDef.editable||!m.colDef.renderEditCell?!1:r?r(m):!0,[r]),s=(m,p,b,x)=>{if(!b){x();return}if(n.current[m]||(n.current[m]={}),n.current[m][p]){const[v]=n.current[m][p];clearTimeout(v)}const w=()=>{const[v]=n.current[m][p];clearTimeout(v),x(),delete n.current[m][p]},S=setTimeout(()=>{x(),delete n.current[m][p]},b);n.current[m][p]=[S,w]};g.useEffect(()=>{const m=n.current;return()=>{Object.entries(m).forEach(([p,b])=>{Object.keys(b).forEach(x=>{const[w]=m[p][x];clearTimeout(w),delete m[p][x]})})}},[]);const l=g.useCallback((m,p)=>{if(n.current[m]){if(!p)Object.keys(n.current[m]).forEach(b=>{const[,x]=n.current[m][b];x()});else if(n.current[m][p]){const[,b]=n.current[m][p];b()}}},[]),a=g.useCallback(m=>{const{id:p,field:b,debounceMs:x}=m;return new Promise(w=>{s(p,b,x,async()=>{const S=t.editMode===zt.Row?e.current.setRowEditingEditCellValue:e.current.setCellEditingEditCellValue;if(e.current.getCellMode(p,b)===_e.Edit){const v=await S(m);w(v)}})})},[e,t.editMode]),c=g.useCallback((m,p)=>t.editMode===zt.Cell?e.current.getRowWithUpdatedValuesFromCellEditing(m,p):e.current.getRowWithUpdatedValuesFromRowEditing(m),[e,t.editMode]),u=g.useCallback((m,p)=>{var x,w;return(w=(x=it(e.current.state)[m])==null?void 0:x[p])!=null?w:null},[e]),d={isCellEditable:o,setEditCellValue:a,getRowWithUpdatedValues:c,unstable_getEditCellMeta:u},f={runPendingEditCellValueMutation:l};Se(e,d,"public"),Se(e,f,"private")},lv=(e,t,n)=>{const r=!!t.unstable_dataSource;return n.current.caches.rows=zr({rows:r?[]:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),C({},e,{rows:Pc({apiRef:n,rowCountProp:t.rowCount,loadingProp:r?!0:t.loading,previousTree:null,previousTreeDepths:null})})},iv=(e,t)=>{if(process.env.NODE_ENV!=="production")try{Object.freeze(t.rows)}catch(E){}const n=ct(e,"useGridRows"),r=g.useRef(Date.now()),o=g.useRef(t.rowCount),s=wn.default(),l=g.useCallback(E=>{const T=vt(e)[E];if(T)return T;const L=e.current.getRowNode(E);return L&&$n(L)?{[Nn]:E}:null},[e]),a=g.useCallback(E=>Pr(e.current.state,E),[e]),c=g.useCallback(({cache:E,throttle:T})=>{const L=()=>{r.current=Date.now(),e.current.setState(G=>C({},G,{rows:Pc({apiRef:e,rowCountProp:t.rowCount,loadingProp:t.loading,previousTree:nt(e),previousTreeDepths:Xl(e),previousGroupsToFetch:G1(e)})})),e.current.publishEvent("rowsSet"),e.current.forceUpdate()};if(s.clear(),e.current.caches.rows=E,!T){L();return}const $=t.throttleRowsMs-(Date.now()-r.current);if($>0){s.start($,L);return}L()},[t.throttleRowsMs,t.rowCount,t.loading,e,s]),u=g.useCallback(E=>{n.debug(`Updating all rows, new length ${E.length}`);const T=zr({rows:E,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),L=e.current.caches.rows;T.rowsBeforePartialUpdates=L.rowsBeforePartialUpdates,c({cache:T,throttle:!0})},[n,t.getRowId,t.loading,t.rowCount,c,e]),d=g.useCallback(E=>{if(t.signature===wt.DataGrid&&E.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(`
85
+ `));const T=li(e,E,t.getRowId),L=si({updates:T,getRowId:t.getRowId,previousCache:e.current.caches.rows});c({cache:L,throttle:!0})},[t.signature,t.getRowId,c,e]),f=g.useCallback((E,T)=>{const L=li(e,E,t.getRowId),$=si({updates:L,getRowId:t.getRowId,previousCache:e.current.caches.rows,groupKeys:T!=null?T:[]});c({cache:$,throttle:!1})},[t.getRowId,c,e]),m=g.useCallback(E=>{E!==t.loading&&(n.debug(`Setting loading to ${E}`),e.current.setState(T=>C({},T,{rows:C({},T.rows,{loading:E})})),e.current.caches.rows.loadingPropBeforePartialUpdates=E)},[t.loading,e,n]),p=g.useCallback(()=>{const E=fr(e),T=vt(e);return new Map(E.map(L=>{var $;return[L,($=T[L])!=null?$:{}]}))},[e]),b=g.useCallback(()=>kr(e),[e]),x=g.useCallback(()=>fr(e),[e]),w=g.useCallback(E=>{const T=e.current.getRow(E),{rowToIndexMap:L}=an(e);return L.get(T)},[e]),S=g.useCallback((E,T)=>{const L=e.current.getRowNode(E);if(!L)throw new Error(`MUI X: No row with id #${E} found.`);if(L.type!=="group")throw new Error("MUI X: Only group nodes can be expanded or collapsed.");const $=C({},L,{childrenExpanded:T});e.current.setState(G=>C({},G,{rows:C({},G.rows,{tree:C({},G.rows.tree,{[E]:$})})})),e.current.forceUpdate(),e.current.publishEvent("rowExpansionChange",$)},[e]),v=g.useCallback(E=>{var T;return(T=nt(e)[E])!=null?T:null},[e]),F=g.useCallback(({skipAutoGeneratedRows:E=!0,groupId:T,applySorting:L,applyFiltering:$})=>{const G=nt(e);let k;if(L){const H=G[T];if(!H)return[];const z=Zn(e);k=[];const q=z.findIndex(U=>U===T)+1;for(let U=q;U<z.length&&G[z[U]].depth>H.depth;U+=1){const Q=z[U];(!E||!$n(G[Q]))&&k.push(Q)}}else k=As(G,T,E);if($){const H=Qn(e);k=k.filter(z=>H[z]!==!1)}return k},[e]),j=g.useCallback((E,T)=>{const L=e.current.getRowNode(E);if(!L)throw new Error(`MUI X: No row with id #${E} found.`);if(L.parent!==ft)throw new Error("MUI X: The row reordering do not support reordering of grouped rows yet.");if(L.type!=="leaf")throw new Error("MUI X: The row reordering do not support reordering of footer or grouping rows.");e.current.setState($=>{const G=nt($,e.current.instanceId)[ft],k=G.children,H=k.findIndex(q=>q===E);if(H===-1||H===T)return $;n.debug(`Moving row ${E} to index ${T}`);const z=[...k];return z.splice(T,0,z.splice(H,1)[0]),C({},$,{rows:C({},$.rows,{tree:C({},$.rows.tree,{[ft]:C({},G,{children:z})})})})}),e.current.publishEvent("rowsSet")},[e,n]),y=g.useCallback((E,T)=>{if(t.signature===wt.DataGrid&&T.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(`
86
+ `));if(T.length===0)return;if(vn(e)>1)throw new Error("`apiRef.current.unstable_replaceRows` is not compatible with tree data and row grouping");const $=C({},nt(e)),G=C({},vt(e)),k=C({},Kl(e)),H=$[ft],z=[...H.children],q=new Set;for(let Q=0;Q<T.length;Q+=1){const X=T[Q],W=go(X,t.getRowId,"A row was provided without id when calling replaceRows()."),[K]=z.splice(E+Q,1,W);q.has(K)||(delete G[K],delete k[K],delete $[K]);const Y={id:W,depth:0,parent:ft,type:"leaf",groupingKey:null};G[W]=X,k[W]=W,$[W]=Y,q.add(W)}$[ft]=C({},H,{children:z});const U=z.filter(Q=>{var X;return((X=$[Q])==null?void 0:X.type)==="leaf"});e.current.caches.rows.dataRowIdToModelLookup=G,e.current.caches.rows.dataRowIdToIdLookup=k,e.current.setState(Q=>C({},Q,{rows:C({},Q.rows,{dataRowIdToModelLookup:G,dataRowIdToIdLookup:k,dataRowIds:U,tree:$})})),e.current.publishEvent("rowsSet")},[e,t.signature,t.getRowId]),A={getRow:l,setLoading:m,getRowId:a,getRowModels:p,getRowsCount:b,getAllRowIds:x,setRows:u,updateRows:d,getRowNode:v,getRowIndexRelativeToVisibleRows:w,unstable_replaceRows:y},N={setRowIndex:j,setRowChildrenExpansion:S,getRowGroupChildren:F},M={updateServerRows:f},P=g.useCallback(()=>{n.info("Row grouping pre-processing have changed, regenerating the row tree");let E;e.current.caches.rows.rowsBeforePartialUpdates===t.rows?E=C({},e.current.caches.rows,{updates:{type:"full",rows:fr(e)}}):E=zr({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),c({cache:E,throttle:!1})},[n,e,t.rows,t.getRowId,t.loading,t.rowCount,c]),R=Bt.default(()=>t.unstable_dataSource),_=g.useCallback(E=>{if(t.unstable_dataSource&&t.unstable_dataSource!==R.current){R.current=t.unstable_dataSource;return}E==="rowTreeCreation"&&P()},[P,R,t.unstable_dataSource]),O=g.useCallback(()=>{e.current.getActiveStrategy("rowTree")!==B1(e)&&P()},[e,P]);le(e,"activeStrategyProcessorChange",_),le(e,"strategyAvailabilityChange",O);const D=g.useCallback(()=>{e.current.setState(E=>{const T=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:nt(E,e.current.instanceId),treeDepths:Xl(E,e.current.instanceId),dataRowIds:fr(E,e.current.instanceId),dataRowIdToModelLookup:vt(E,e.current.instanceId),dataRowIdToIdLookup:Kl(E,e.current.instanceId)});return C({},E,{rows:C({},E.rows,T,{totalTopLevelRowCount:Ec({tree:T.tree,rowCountProp:t.rowCount})})})}),e.current.publishEvent("rowsSet"),e.current.forceUpdate()},[e,t.rowCount]);nl(e,"hydrateRows",D),Se(e,A,"public"),Se(e,N,t.signature===wt.DataGrid?"private":"public"),Se(e,M,"private");const V=g.useRef(!0);g.useEffect(()=>{var G;if(V.current){V.current=!1;return}let E=!1;t.rowCount!==o.current&&(E=!0,o.current=t.rowCount);const T=e.current.caches.rows.rowsBeforePartialUpdates===t.rows,L=e.current.caches.rows.loadingPropBeforePartialUpdates===t.loading,$=e.current.caches.rows.rowCountPropBeforePartialUpdates===t.rowCount;T&&(L||(e.current.setState(k=>C({},k,{rows:C({},k.rows,{loading:t.loading})})),e.current.caches.rows.loadingPropBeforePartialUpdates=t.loading,e.current.forceUpdate()),$||(e.current.setState(k=>C({},k,{rows:C({},k.rows,{totalRowCount:Math.max(t.rowCount||0,k.rows.totalRowCount),totalTopLevelRowCount:Math.max(t.rowCount||0,k.rows.totalTopLevelRowCount)})})),e.current.caches.rows.rowCountPropBeforePartialUpdates=t.rowCount,e.current.forceUpdate()),!E)||(n.debug(`Updating all rows, new length ${(G=t.rows)==null?void 0:G.length}`),c({cache:zr({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),throttle:!1}))},[t.rows,t.rowCount,t.getRowId,t.loading,n,c,e])},av=e=>{const t={[ft]:C({},Sb(),{children:e})};for(let n=0;n<e.length;n+=1){const r=e[n];t[r]={id:r,depth:0,parent:ft,type:"leaf",groupingKey:null}}return{groupingName:Cn,tree:t,treeDepths:{0:e.length},dataRowIds:e}},cv=({previousTree:e,actions:t})=>{const n=C({},e),r={};for(let l=0;l<t.remove.length;l+=1){const a=t.remove[l];r[a]=!0,delete n[a]}for(let l=0;l<t.insert.length;l+=1){const a=t.insert[l];n[a]={id:a,depth:0,parent:ft,type:"leaf",groupingKey:null}}const o=n[ft];let s=[...o.children,...t.insert];return Object.values(r).length&&(s=s.filter(l=>!r[l])),n[ft]=C({},o,{children:s}),{groupingName:Cn,tree:n,treeDepths:{0:s.length},dataRowIds:s}},uv=e=>e.updates.type==="full"?av(e.updates.rows):cv({previousTree:e.previousTree,actions:e.updates.actions}),dv=e=>{lo(e,Cn,"rowTreeCreation",uv)};class Ko extends Error{}function fv(e,t){var b;const n=g.useCallback(x=>({field:x,colDef:e.current.getColumn(x)}),[e]),r=g.useCallback(x=>{const w=e.current.getRow(x);if(!w)throw new Ko(`No row with id #${x} found`);return{id:x,columns:e.current.getAllColumns(),row:w}},[e]),o=g.useCallback((x,w,S,{cellMode:v,colDef:F,hasFocus:j,rowNode:y,tabIndex:A})=>{const N=S[w],M=F!=null&&F.valueGetter?F.valueGetter(N,S,F,e):N,P={id:x,field:w,row:S,rowNode:y,colDef:F,cellMode:v,hasFocus:j,tabIndex:A,value:M,formattedValue:M,isEditable:!1,api:e.current};return F&&F.valueFormatter&&(P.formattedValue=F.valueFormatter(M,S,F,e)),P.isEditable=F&&e.current.isCellEditable(P),P},[e]),s=g.useCallback((x,w)=>{var A;const S=e.current.getRow(x),v=e.current.getRowNode(x);if(!S||!v)throw new Ko(`No row with id #${x} found`);const F=gt(e),j=Gs(e),y=e.current.getCellMode(x,w);return e.current.getCellParamsForRow(x,w,S,{colDef:t.unstable_listView&&((A=t.unstable_listColumn)==null?void 0:A.field)===w?Gn(e.current.state):e.current.getColumn(w),rowNode:v,hasFocus:F!==null&&F.field===w&&F.id===x,tabIndex:j&&j.field===w&&j.id===x?0:-1,cellMode:y})},[e,t.unstable_listView,(b=t.unstable_listColumn)==null?void 0:b.field]),l=g.useCallback((x,w)=>{const S=e.current.getColumn(w),v=e.current.getRow(x);if(!v)throw new Ko(`No row with id #${x} found`);return!S||!S.valueGetter?v[w]:S.valueGetter(v[S.field],v,S,e)},[e]),a=g.useCallback((x,w)=>{const S=w.field;if(!w||!w.valueGetter)return x[S];const v=x[w.field];return w.valueGetter(v,x,w,e)},[e]),c=g.useCallback((x,w)=>{const S=a(x,w);return!w||!w.valueFormatter?S:w.valueFormatter(S,x,w,e)},[e,a]),u=g.useCallback(x=>e.current.rootElementRef.current?U0(e.current.rootElementRef.current,x):null,[e]),d=g.useCallback(x=>e.current.rootElementRef.current?K0(e.current.rootElementRef.current,x):null,[e]),f=g.useCallback((x,w)=>e.current.rootElementRef.current?X0(e.current.rootElementRef.current,{id:x,field:w}):null,[e]),m={getCellValue:l,getCellParams:s,getCellElement:f,getRowValue:a,getRowFormattedValue:c,getRowParams:r,getRowElement:d,getColumnHeaderParams:n,getColumnHeaderElement:u},p={getCellParamsForRow:o};Se(e,m,"public"),Se(e,p,"private")}const md=(e,t)=>e==null||Array.isArray(e)?e:t&&t[0]===e?t:[e],hv=(e,t)=>{var n;return C({},e,{rowSelection:t.rowSelection?(n=md(t.rowSelectionModel))!=null?n:[]:[]})},gv=(e,t)=>{var $,G,k,H,z,q,U,Q,X;const n=ct(e,"useGridSelection"),r=g.useCallback(W=>(...K)=>{t.rowSelection&&W(...K)},[t.rowSelection]),o=t.signature!==wt.DataGrid&&((($=t.rowSelectionPropagation)==null?void 0:$.parents)||((G=t.rowSelectionPropagation)==null?void 0:G.descendants)),s=g.useMemo(()=>md(t.rowSelectionModel,pt(e.current.state)),[e,t.rowSelectionModel]),l=g.useRef(null);e.current.registerControlState({stateId:"rowSelection",propModel:s,propOnChange:t.onRowSelectionModelChange,stateSelector:pt,changeEvent:"rowSelectionChange"});const{checkboxSelection:a,disableRowSelectionOnClick:c,isRowSelectable:u}=t,d=zs(t),f=te(e,nt),m=te(e,vn)>1,p=g.useCallback(W=>{var ne;let K=W;const Y=(ne=l.current)!=null?ne:W,J=e.current.isRowSelected(W);if(J){const Z=Vn(e),se=Z.findIndex(ae=>ae===Y),ee=Z.findIndex(ae=>ae===K);if(se===ee)return;se>ee?K=Z[ee+1]:K=Z[ee-1]}l.current=W,e.current.selectRowRange({startId:Y,endId:K},!J)},[e]),b=g.useCallback(W=>{if(t.signature===wt.DataGrid&&!d&&Array.isArray(W)&&W.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(`
87
+ `));pt(e.current.state)!==W&&(n.debug("Setting selection model"),e.current.setState(Y=>C({},Y,{rowSelection:t.rowSelection?W:[]})),e.current.forceUpdate())},[e,n,t.rowSelection,t.signature,d]),x=g.useCallback(W=>pt(e.current.state).includes(W),[e]),w=g.useCallback(W=>{if(t.rowSelection===!1||u&&!u(e.current.getRowParams(W)))return!1;const K=nt(e)[W];return!((K==null?void 0:K.type)==="footer"||(K==null?void 0:K.type)==="pinnedRow")},[e,t.rowSelection,u]),S=g.useCallback(()=>qb(e),[e]),v=g.useCallback((W,K=!0,Y=!1)=>{var J,ne,Z,se,ee,ae,fe,xe,pe,Me,Re,Je;if(e.current.isRowSelectable(W))if(l.current=W,Y){n.debug(`Setting selection for row ${W}`);const De=[],Oe=Ye=>{De.push(Ye)};K&&(Oe(W),o&&sr(e,f,W,(ne=(J=t.rowSelectionPropagation)==null?void 0:J.descendants)!=null?ne:!1,(se=(Z=t.rowSelectionPropagation)==null?void 0:Z.parents)!=null?se:!1,Oe)),e.current.setRowSelectionModel(De)}else{n.debug(`Toggling selection for row ${W}`);const De=pt(e.current.state),Oe=new Set(De);Oe.delete(W);const Ye=He=>{Oe.add(He)},qe=He=>{Oe.delete(He)};K?(Ye(W),o&&sr(e,f,W,(ae=(ee=t.rowSelectionPropagation)==null?void 0:ee.descendants)!=null?ae:!1,(xe=(fe=t.rowSelectionPropagation)==null?void 0:fe.parents)!=null?xe:!1,Ye)):o&&ai(e,f,W,(Me=(pe=t.rowSelectionPropagation)==null?void 0:pe.descendants)!=null?Me:!1,(Je=(Re=t.rowSelectionPropagation)==null?void 0:Re.parents)!=null?Je:!1,qe),(Oe.size<2||d)&&e.current.setRowSelectionModel(Array.from(Oe))}},[e,n,o,f,(k=t.rowSelectionPropagation)==null?void 0:k.descendants,(H=t.rowSelectionPropagation)==null?void 0:H.parents,d]),F=g.useCallback((W,K=!0,Y=!1)=>{n.debug("Setting selection for several rows");const J=W.filter(se=>e.current.isRowSelectable(se));let ne;if(Y){if(K){if(ne=new Set(J),o){const ee=ae=>{ne.add(ae)};J.forEach(ae=>{var fe,xe,pe,Me;sr(e,f,ae,(xe=(fe=t.rowSelectionPropagation)==null?void 0:fe.descendants)!=null?xe:!1,(Me=(pe=t.rowSelectionPropagation)==null?void 0:pe.parents)!=null?Me:!1,ee)})}}else ne=new Set;const se=ln(e);if(ne.size===Object.keys(se).length&&Array.from(ne).every(ee=>se[ee]===ee))return}else{ne=new Set(Object.values(ln(e)));const se=ae=>{ne.add(ae)},ee=ae=>{ne.delete(ae)};J.forEach(ae=>{var fe,xe,pe,Me,Re,Je,De,Oe;K?(ne.add(ae),o&&sr(e,f,ae,(xe=(fe=t.rowSelectionPropagation)==null?void 0:fe.descendants)!=null?xe:!1,(Me=(pe=t.rowSelectionPropagation)==null?void 0:pe.parents)!=null?Me:!1,se)):(ee(ae),o&&ai(e,f,ae,(Je=(Re=t.rowSelectionPropagation)==null?void 0:Re.descendants)!=null?Je:!1,(Oe=(De=t.rowSelectionPropagation)==null?void 0:De.parents)!=null?Oe:!1,ee))})}(ne.size<2||d)&&e.current.setRowSelectionModel(Array.from(ne))},[n,o,d,e,f,(z=t.rowSelectionPropagation)==null?void 0:z.descendants,(q=t.rowSelectionPropagation)==null?void 0:q.parents]),j=g.useCallback(W=>{var J,ne,Z,se;if(!m||!o||W.length===0)return W;const K=new Set(W),Y=ee=>{K.add(ee)};for(const ee of W)sr(e,f,ee,(ne=(J=t.rowSelectionPropagation)==null?void 0:J.descendants)!=null?ne:!1,(se=(Z=t.rowSelectionPropagation)==null?void 0:Z.parents)!=null?se:!1,Y,K);return Array.from(K)},[e,f,(U=t.rowSelectionPropagation)==null?void 0:U.descendants,(Q=t.rowSelectionPropagation)==null?void 0:Q.parents,m,o]),y=g.useCallback(({startId:W,endId:K},Y=!0,J=!1)=>{if(!e.current.getRow(W)||!e.current.getRow(K))return;n.debug(`Expanding selection from row ${W} to row ${K}`);const ne=Vn(e),Z=ne.indexOf(W),se=ne.indexOf(K),[ee,ae]=Z>se?[se,Z]:[Z,se],fe=ne.slice(ee,ae+1);e.current.selectRows(fe,Y,J)},[e,n]),A={selectRow:v,setRowSelectionModel:b,getSelectedRows:S,isRowSelected:x,isRowSelectable:w},N={selectRows:F,selectRowRange:y,getPropagatedRowSelectionModel:j};Se(e,A,"public"),Se(e,N,t.signature===wt.DataGrid?"private":"public");const M=g.useRef(!0),P=g.useCallback((W=!1)=>{var ae;if(M.current)return;const K=pt(e.current.state),Y=vt(e),J=Qn(e),ne=C({},ln(e)),Z=fe=>t.filterMode==="server"?!Y[fe]:!Y[fe]||J[fe]===!1;let se=!1;K.forEach(fe=>{var pe;if(Z(fe)){if(t.keepNonExistentRowsSelected)return;delete ne[fe],se=!0;return}if(!((pe=t.rowSelectionPropagation)!=null&&pe.parents))return;const xe=f[fe];if(xe.type==="group"){if(xe.isAutoGenerated){delete ne[fe],se=!0;return}xe.children.every(Re=>J[Re]===!1)||(delete ne[fe],se=!0)}});const ee=m&&((ae=t.rowSelectionPropagation)==null?void 0:ae.parents)&&Object.keys(ne).length>0;if(se||ee&&!W){const fe=Object.values(ne);ee?e.current.selectRows(fe,!0,!0):e.current.setRowSelectionModel(fe)}},[e,m,(X=t.rowSelectionPropagation)==null?void 0:X.parents,t.keepNonExistentRowsSelected,t.filterMode,f]),R=g.useCallback((W,K)=>{const Y=K.metaKey||K.ctrlKey,J=!a&&!Y&&!zx(K),ne=!d||J,Z=e.current.isRowSelected(W);ne?e.current.selectRow(W,J?!0:!Z,!0):e.current.selectRow(W,!Z,!1)},[e,d,a]),_=g.useCallback((W,K)=>{var ne;if(c)return;const Y=(ne=K.target.closest(`.${I.cell}`))==null?void 0:ne.getAttribute("data-field");if(Y===Jn.field||Y===mo)return;if(Y){const Z=e.current.getColumn(Y);if((Z==null?void 0:Z.type)===ho)return}nt(e)[W.id].type!=="pinnedRow"&&(K.shiftKey&&d?p(W.id):R(W.id,K))},[c,d,e,p,R]),O=g.useCallback((W,K)=>{var Y;d&&K.shiftKey&&((Y=window.getSelection())==null||Y.removeAllRanges())},[d]),D=g.useCallback((W,K)=>{d&&K.nativeEvent.shiftKey?p(W.id):e.current.selectRow(W.id,W.value,!d)},[e,p,d]),V=g.useCallback(W=>{const K=t.pagination&&t.checkboxSelectionVisibleOnly&&t.paginationMode==="client"?Zc(e):Vn(e);e.current.selectRows(K,W.value)},[e,t.checkboxSelectionVisibleOnly,t.pagination,t.paginationMode]),E=g.useCallback((W,K)=>{if(e.current.getCellMode(W.id,W.field)!==_e.Edit&&!jr(K)){if(ro(K.key)&&K.shiftKey){const Y=gt(e);if(Y&&Y.id!==W.id){K.preventDefault();const J=e.current.isRowSelected(Y.id);if(!d){e.current.selectRow(Y.id,!J,!0);return}const ne=e.current.getRowIndexRelativeToVisibleRows(Y.id),Z=e.current.getRowIndexRelativeToVisibleRows(W.id);let se,ee;ne>Z?J?(se=Z,ee=ne-1):(se=Z,ee=ne):J?(se=ne+1,ee=Z):(se=ne,ee=Z);const fe=an(e).rows.slice(se,ee+1).map(xe=>xe.id);e.current.selectRows(fe,!J);return}}if(K.key===" "&&K.shiftKey){K.preventDefault(),R(W.id,K);return}String.fromCharCode(K.keyCode)==="A"&&(K.ctrlKey||K.metaKey)&&(K.preventDefault(),F(e.current.getAllRowIds(),!0))}},[e,R,F,d]),T=ze.useEventCallback(()=>{if(!t.rowSelection){e.current.setRowSelectionModel([]);return}if(s===void 0)return;if(!o||!m||s.length===0){e.current.setRowSelectionModel(s);return}const W=e.current.getPropagatedRowSelectionModel(s);if(W.length!==s.length||!W.every(K=>s.includes(K))){e.current.setRowSelectionModel(W);return}e.current.setRowSelectionModel(s)});le(e,"sortedRowsSet",r(()=>P(!0))),le(e,"filteredRowsSet",r(()=>P())),le(e,"rowClick",r(_)),le(e,"rowSelectionCheckboxChange",r(D)),le(e,"headerSelectionCheckboxChange",V),le(e,"cellMouseDown",r(O)),le(e,"cellKeyDown",r(E)),g.useEffect(()=>{T()},[e,s,t.rowSelection,T]);const L=s!=null;g.useEffect(()=>{if(L||!t.rowSelection)return;const W=pt(e.current.state);if(w){const K=W.filter(Y=>w(Y));K.length<W.length&&e.current.setRowSelectionModel(K)}},[e,w,L,t.rowSelection]),g.useEffect(()=>{if(!t.rowSelection||L)return;const W=pt(e.current.state);!d&&W.length>1&&e.current.setRowSelectionModel([])},[e,d,a,L,t.rowSelection]),g.useEffect(()=>{r(P)},[P,r]),g.useEffect(()=>{M.current&&(M.current=!1)},[])},mv=e=>{const{classes:t}=e;return g.useMemo(()=>{const n={cellCheckbox:["cellCheckbox"],columnHeaderCheckbox:["columnHeaderCheckbox"]};return Xe.default(n,Te,t)},[t])},pv=(e,t)=>{const n={classes:t.classes},r=mv(n),o=g.useCallback(s=>{const l=C({},Jn,{cellClassName:r.cellCheckbox,headerClassName:r.columnHeaderCheckbox,headerName:e.current.getLocaleText("checkboxSelectionHeaderName")}),a=t.checkboxSelection,c=s.lookup[yt]!=null;return a&&!c?(s.lookup[yt]=l,s.orderedFields=[yt,...s.orderedFields]):!a&&c?(delete s.lookup[yt],s.orderedFields=s.orderedFields.filter(u=>u!==yt)):a&&c&&(s.lookup[yt]=C({},l,s.lookup[yt]),t.columns.some(u=>u.field===yt)||(s.orderedFields=[yt,...s.orderedFields.filter(u=>u!==yt)])),s},[e,r,t.columns,t.checkboxSelection]);Ue(e,"hydrateColumns",o)},bv=(e,t)=>{var r,o,s,l;const n=(l=(s=t.sortModel)!=null?s:(o=(r=t.initialState)==null?void 0:r.sorting)==null?void 0:o.sortModel)!=null?l:[];return C({},e,{sorting:{sortModel:fc(n,t.disableMultipleColumnsSorting),sortedRows:[]}})},Cv=(e,t)=>{var y,A;const n=ct(e,"useGridSorting");e.current.registerControlState({stateId:"sortModel",propModel:t.sortModel,propOnChange:t.onSortModelChange,stateSelector:jt,changeEvent:"sortModelChange"});const r=g.useCallback((N,M)=>{const P=jt(e),R=P.findIndex(O=>O.field===N);let _=[...P];return R>-1?(M==null?void 0:M.sort)==null?_.splice(R,1):_.splice(R,1,M):_=[...P,M],_},[e]),o=g.useCallback((N,M)=>{var _,O;const R=jt(e).find(D=>D.field===N.field);if(R){const D=M===void 0?Zl((_=N.sortingOrder)!=null?_:t.sortingOrder,R.sort):M;return D===void 0?void 0:C({},R,{sort:D})}return{field:N.field,sort:M===void 0?Zl((O=N.sortingOrder)!=null?O:t.sortingOrder):M}},[e,t.sortingOrder]),s=g.useCallback((N,M)=>M==null||M.sortable===!1||t.disableColumnSorting?N:(M.sortingOrder||t.sortingOrder).some(R=>!!R)?[...N,"columnMenuSortItem"]:N,[t.sortingOrder,t.disableColumnSorting]),l=g.useCallback(()=>{e.current.setState(N=>{if(t.sortingMode==="server")return n.debug("Skipping sorting rows as sortingMode = server"),C({},N,{sorting:C({},N.sorting,{sortedRows:As(nt(e),ft,!1)})});const M=jt(N,e.current.instanceId),P=X1(M,e),R=e.current.applyStrategyProcessor("sorting",{sortRowList:P});return C({},N,{sorting:C({},N.sorting,{sortedRows:R})})}),e.current.publishEvent("sortedRowsSet"),e.current.forceUpdate()},[e,n,t.sortingMode]),a=g.useCallback(N=>{jt(e)!==N&&(n.debug("Setting sort model"),e.current.setState(Yl(N,t.disableMultipleColumnsSorting)),e.current.forceUpdate(),e.current.applySorting())},[e,n,t.disableMultipleColumnsSorting]),c=g.useCallback((N,M,P)=>{const R=e.current.getColumn(N),_=o(R,M);let O;!P||t.disableMultipleColumnsSorting?O=(_==null?void 0:_.sort)==null?[]:[_]:O=r(R.field,_),e.current.setSortModel(O)},[e,r,o,t.disableMultipleColumnsSorting]),u=g.useCallback(()=>jt(e),[e]),d=g.useCallback(()=>Vs(e).map(M=>M.model),[e]),f=g.useCallback(()=>Zn(e),[e]),m=g.useCallback(N=>e.current.getSortedRowIds()[N],[e]);Se(e,{getSortModel:u,getSortedRows:d,getSortedRowIds:f,getRowIdFromRowIndex:m,setSortModel:a,sortColumn:c,applySorting:l},"public");const b=g.useCallback((N,M)=>{var _,O;const P=jt(e);return!M.exportOnlyDirtyModels||t.sortModel!=null||((O=(_=t.initialState)==null?void 0:_.sorting)==null?void 0:O.sortModel)!=null||P.length>0?C({},N,{sorting:{sortModel:P}}):N},[e,t.sortModel,(A=(y=t.initialState)==null?void 0:y.sorting)==null?void 0:A.sortModel]),x=g.useCallback((N,M)=>{var R;const P=(R=M.stateToRestore.sorting)==null?void 0:R.sortModel;return P==null?N:(e.current.setState(Yl(P,t.disableMultipleColumnsSorting)),C({},N,{callbacks:[...N.callbacks,e.current.applySorting]}))},[e,t.disableMultipleColumnsSorting]),w=g.useCallback(N=>{const M=nt(e),P=M[ft],R=N.sortRowList?N.sortRowList(P.children.map(_=>M[_])):[...P.children];return P.footerId!=null&&R.push(P.footerId),R},[e]);Ue(e,"exportState",b),Ue(e,"restoreState",x),lo(e,Cn,"sorting",w);const S=g.useCallback(({field:N,colDef:M},P)=>{if(!M.sortable||t.disableColumnSorting)return;const R=P.shiftKey||P.metaKey||P.ctrlKey;c(N,void 0,R)},[c,t.disableColumnSorting]),v=g.useCallback(({field:N,colDef:M},P)=>{!M.sortable||t.disableColumnSorting||P.key==="Enter"&&!P.ctrlKey&&!P.metaKey&&c(N,void 0,P.shiftKey)},[c,t.disableColumnSorting]),F=g.useCallback(()=>{const N=jt(e),M=Qt(e);if(N.length>0){const P=N.filter(R=>M[R.field]);P.length<N.length&&e.current.setSortModel(P)}},[e]),j=g.useCallback(N=>{N==="sorting"&&e.current.applySorting()},[e]);Ue(e,"columnMenu",s),le(e,"columnHeaderClick",S),le(e,"columnHeaderKeyDown",v),le(e,"rowsSet",e.current.applySorting),le(e,"columnsChange",F),le(e,"activeStrategyProcessorChange",j),Ir(()=>{e.current.applySorting()}),oe.unstable_useEnhancedEffect(()=>{t.sortModel!==void 0&&e.current.setSortModel(t.sortModel)},[e,t.sortModel])};function Gi(e){const{containerSize:t,scrollPosition:n,elementSize:r,elementOffset:o}=e,s=o+r;if(r>t)return o;if(s-t>n)return s-t;if(o<n)return o}const wv=(e,t)=>{const n=Gt.useRtl(),r=ct(e,"useGridScroll"),o=e.current.columnHeadersContainerRef,s=e.current.virtualScrollerRef,l=te(e,fn),a=g.useCallback(f=>{var S;const m=at(e.current.state),p=kr(e),b=t.unstable_listView?[Gn(e.current.state)]:Ke(e);if(!(f.rowIndex==null)&&p===0||b.length===0)return!1;r.debug(`Scrolling to cell at row ${f.rowIndex}, col: ${f.colIndex} `);let w={};if(f.colIndex!==void 0){const v=dn(e);let F;if(typeof f.rowIndex!="undefined"){const j=(S=l[f.rowIndex])==null?void 0:S.id,y=e.current.unstable_getCellColSpanInfo(j,f.colIndex);y&&!y.spannedByColSpan&&(F=y.cellProps.width)}typeof F=="undefined"&&(F=b[f.colIndex].computedWidth),w.left=Gi({containerSize:m.viewportOuterSize.width,scrollPosition:Math.abs(s.current.scrollLeft),elementSize:F,elementOffset:v[f.colIndex]})}if(f.rowIndex!==void 0){const v=er(e.current.state),F=iC(e),j=Xc(e),y=t.pagination?f.rowIndex-F*j:f.rowIndex,A=v.positions[y+1]?v.positions[y+1]-v.positions[y]:v.currentPageTotalHeight-v.positions[y];w.top=Gi({containerSize:m.viewportInnerSize.height,scrollPosition:s.current.scrollTop,elementSize:A,elementOffset:v.positions[y]})}return w=e.current.unstable_applyPipeProcessors("scrollToIndexes",w,f),typeof w.left!==void 0||typeof w.top!==void 0?(e.current.scroll(w),!0):!1},[r,e,s,t.pagination,l,t.unstable_listView]),c=g.useCallback(f=>{if(s.current&&f.left!==void 0&&o.current){const m=n?-1:1;o.current.scrollLeft=f.left,s.current.scrollLeft=m*f.left,r.debug(`Scrolling left: ${f.left}`)}s.current&&f.top!==void 0&&(s.current.scrollTop=f.top,r.debug(`Scrolling top: ${f.top}`)),r.debug("Scrolling, updating container, and viewport")},[s,n,o,r]),u=g.useCallback(()=>s!=null&&s.current?{top:s.current.scrollTop,left:s.current.scrollLeft}:{top:0,left:0},[s]);Se(e,{scroll:c,scrollToIndexes:a,getScrollPosition:u},"public")};function xv(e,t){Ae(e,"columnHeaderClick",t.onColumnHeaderClick),Ae(e,"columnHeaderContextMenu",t.onColumnHeaderContextMenu),Ae(e,"columnHeaderDoubleClick",t.onColumnHeaderDoubleClick),Ae(e,"columnHeaderOver",t.onColumnHeaderOver),Ae(e,"columnHeaderOut",t.onColumnHeaderOut),Ae(e,"columnHeaderEnter",t.onColumnHeaderEnter),Ae(e,"columnHeaderLeave",t.onColumnHeaderLeave),Ae(e,"cellClick",t.onCellClick),Ae(e,"cellDoubleClick",t.onCellDoubleClick),Ae(e,"cellKeyDown",t.onCellKeyDown),Ae(e,"preferencePanelClose",t.onPreferencePanelClose),Ae(e,"preferencePanelOpen",t.onPreferencePanelOpen),Ae(e,"menuOpen",t.onMenuOpen),Ae(e,"menuClose",t.onMenuClose),Ae(e,"rowDoubleClick",t.onRowDoubleClick),Ae(e,"rowClick",t.onRowClick),Ae(e,"stateChange",t.onStateChange)}function yv(e,t=166){let n,r;const o=()=>{n=void 0,e(...r)};function s(...l){r=l,n===void 0&&(n=setTimeout(o,t))}return s.clear=()=>{clearTimeout(n),n=void 0},s}const ds={autoHeight:!1,autoPageSize:!1,autosizeOnMount:!1,checkboxSelection:!1,checkboxSelectionVisibleOnly:!1,clipboardCopyCellDelimiter:" ",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:zt.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:process.env.NODE_ENV==="production"?"error":"warn",pageSizeOptions:[25,50,100],pagination:!1,paginationMode:"client",resetPageOnSortFilter:!1,resizeThrottleMs:60,rowBufferPx:150,rowHeight:52,rowPositionsDebounceMs:166,rows:[],rowSelection:!0,rowSpacingType:"margin",showCellVerticalBorder:!1,showColumnVerticalBorder:!1,sortingMode:"client",sortingOrder:["asc","desc",null],throttleRowsMs:0,unstable_rowSpanning:!1,virtualizeColumnsWithAutoRowHeight:!1},On={width:0,height:0},vv={isReady:!1,root:On,viewportOuterSize:On,viewportInnerSize:On,contentSize:On,minimumSize:On,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},Sv=(e,t,n)=>{const r=vv,o=Un(n);return C({},e,{dimensions:C({},r,bd(t,n,o,Yn(n)))})},pd=be(Ke,dn,(e,t)=>{const n=e.length;return n===0?0:Dn(t[n-1]+e[n-1].computedWidth,1)});function kv(e,t){const n=ct(e,"useResizeContainer"),r=g.useRef(!1),o=g.useRef(On),s=te(e,Yn),l=te(e,Un),a=te(e,pd),c=g.useRef(!0),u=g.useRef({counter:0,heights:{content:0,pinnedTop:0,pinnedBottom:0}}),{rowHeight:d,headerHeight:f,groupHeaderHeight:m,headerFilterHeight:p,headersTotalHeight:b,leftPinnedWidth:x,rightPinnedWidth:w}=bd(t,e,l,s),S=g.useRef(void 0),v=g.useCallback(()=>at(e.current.state),[e]),F=g.useCallback(D=>{e.current.setState(V=>C({},V,{dimensions:D})),e.current.rootElementRef.current&&Bi(e.current.rootElementRef.current,at(e.current.state))},[e]),j=g.useCallback(()=>{const D=e.current.mainElementRef.current;if(!D)return;const V=oe.unstable_ownerWindow(D).getComputedStyle(D),E={width:parseFloat(V.width)||0,height:parseFloat(V.height)||0};(!S.current||!qi(S.current,E))&&(e.current.publishEvent("resize",E),S.current=E)},[e]),y=g.useCallback(()=>{const D=at(e.current.state);if(!D.isReady)return 0;const V=an(e);if(t.getRowHeight){const T=Fr(e),L=T.lastRowIndex-T.firstRowIndex;return Math.min(L-1,V.rows.length)}const E=Math.floor(D.viewportInnerSize.height/d);return Math.min(E,V.rows.length)},[e,t.getRowHeight,d]),A=g.useCallback(()=>{var W,K;if(c.current)return;const D=Iv(e.current.mainElementRef.current,t.scrollbarSize),V=er(e.current.state),E=b+V.pinnedTopRowsTotalHeight,T=V.pinnedBottomRowsTotalHeight,$={width:a-x-w,height:Dn(V.currentPageTotalHeight,1)},G=e.current.state.dimensions;let k,H,z=!1,q=!1;if(t.autoHeight)q=!1,z=Math.round(a)>Math.round(o.current.width),k={width:o.current.width,height:E+T+$.height},H={width:Math.max(0,k.width-(q?D:0)),height:Math.max(0,k.height-(z?D:0))};else{k={width:o.current.width,height:o.current.height},H={width:Math.max(0,k.width-x-w),height:Math.max(0,k.height-E-T)};const Y=$,J=H,ne=Y.width>J.width,Z=Y.height>J.height;(ne||Z)&&(q=Z,z=Y.width+(q?D:0)>J.width,z&&(q=Y.height+D>J.height));{const se=u.current,ee=V.currentPageTotalHeight!==se.heights.content||V.pinnedTopRowsTotalHeight!==se.heights.pinnedTop||V.pinnedBottomRowsTotalHeight!==se.heights.pinnedBottom;ee&&(se.counter=0,se.heights={content:V.currentPageTotalHeight,pinnedTop:V.pinnedTopRowsTotalHeight,pinnedBottom:V.pinnedBottomRowsTotalHeight}),G.isReady&&q!==G.hasScrollY&&(ee||(se.counter+=1),se.counter>=2&&(q=!1,z=ne))}q&&(H.width-=D),z&&(H.height-=D)}const U=Math.max(k.width,a+(q?D:0)),Q={width:a,height:E+$.height+T},X={isReady:!0,root:o.current,viewportOuterSize:k,viewportInnerSize:H,contentSize:$,minimumSize:Q,hasScrollX:z,hasScrollY:q,scrollbarSize:D,headerHeight:f,groupHeaderHeight:m,headerFilterHeight:p,rowWidth:U,rowHeight:d,columnsTotalWidth:a,leftPinnedWidth:x,rightPinnedWidth:w,headersTotalHeight:b,topContainerHeight:E,bottomContainerHeight:T};sn(G,X)||(F(X),qi(X.viewportInnerSize,G.viewportInnerSize)||e.current.publishEvent("viewportInnerSizeChange",X.viewportInnerSize),(K=(W=e.current).updateRenderContext)==null||K.call(W))},[e,F,t.scrollbarSize,t.autoHeight,d,f,m,p,a,b,x,w]),N=oe.unstable_useEventCallback(A),M=g.useMemo(()=>t.resizeThrottleMs>0?yv(()=>{N(),e.current.publishEvent("debouncedResize",o.current)},t.resizeThrottleMs):void 0,[e,t.resizeThrottleMs,N]);g.useEffect(()=>M==null?void 0:M.clear,[M]);const P={resize:j,getRootDimensions:v},R={updateDimensions:A,getViewportPageSize:y};oe.unstable_useEnhancedEffect(A,[A]),Se(e,P,"public"),Se(e,R,"private");const _=g.useCallback(D=>{Bi(D,at(e.current.state))},[e]),O=g.useCallback(D=>{if(o.current=D,D.height===0&&!r.current&&!t.autoHeight&&!to&&(n.error(["The parent DOM element of the Data Grid has an empty height.","Please make sure that this element has an intrinsic height.","The grid displays with a height of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join(`
88
88
  `)),r.current=!0),D.width===0&&!r.current&&!to&&(n.error(["The parent DOM element of the Data Grid has an empty width.","Please make sure that this element has an intrinsic width.","The grid displays with a width of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join(`
89
- `)),r.current=!0),c.current||!M){c.current=!1,A();return}M()},[A,t.autoHeight,M,n]);Ae(e,"rootMount",_),Ae(e,"resize",O),Ae(e,"debouncedResize",t.onResize)}function Gi(e,t){const n=(r,o)=>e.style.setProperty(r,o);n("--DataGrid-hasScrollX",`${Number(t.hasScrollX)}`),n("--DataGrid-hasScrollY",`${Number(t.hasScrollY)}`),n("--DataGrid-scrollbarSize",`${t.scrollbarSize}px`),n("--DataGrid-rowWidth",`${t.rowWidth}px`),n("--DataGrid-columnsTotalWidth",`${t.columnsTotalWidth}px`),n("--DataGrid-leftPinnedWidth",`${t.leftPinnedWidth}px`),n("--DataGrid-rightPinnedWidth",`${t.rightPinnedWidth}px`),n("--DataGrid-headerHeight",`${t.headerHeight}px`),n("--DataGrid-headersTotalHeight",`${t.headersTotalHeight}px`),n("--DataGrid-topContainerHeight",`${t.topContainerHeight}px`),n("--DataGrid-bottomContainerHeight",`${t.bottomContainerHeight}px`),n("--height",`${t.rowHeight}px`)}function pd(e,t,n,r){var s,l;const o=Tc(e.rowHeight,ds.rowHeight,yb);return{rowHeight:Math.floor(o*n),headerHeight:Math.floor(e.columnHeaderHeight*n),groupHeaderHeight:Math.floor(((s=e.columnGroupHeaderHeight)!=null?s:e.columnHeaderHeight)*n),headerFilterHeight:Math.floor(((l=e.headerFilterHeight)!=null?l:e.columnHeaderHeight)*n),columnsTotalWidth:md(t),headersTotalHeight:xo(t,e),leftPinnedWidth:r.left.reduce((a,c)=>a+c.computedWidth,0),rightPinnedWidth:r.right.reduce((a,c)=>a+c.computedWidth,0)}}const Bi=new WeakMap;function yv(e,t){if(t!==void 0)return t;if(e===null)return 0;const n=Bi.get(e);if(n!==void 0)return n;const o=re.unstable_ownerDocument(e).createElement("div");o.style.width="99px",o.style.height="99px",o.style.position="absolute",o.style.overflow="scroll",o.className="scrollDiv",e.appendChild(o);const s=o.offsetWidth-o.clientWidth;return e.removeChild(o),Bi.set(e,s),s}function Wi(e,t){return e.width===t.width&&e.height===t.height}const vv=typeof globalThis.ResizeObserver!="undefined"?globalThis.ResizeObserver:class{observe(){}unobserve(){}disconnect(){}},Sv=(e,t,n)=>{n.current.caches.rowsMeta={heights:new Map};const r=Rs(n.current.state),o=kr(n),s=Mr(n.current.state),l=Math.min(s.enabled?s.paginationModel.pageSize:o,o);return C({},e,{rowsMeta:{currentPageTotalHeight:l*r,positions:Array.from({length:l},(a,c)=>c*r),pinnedTopRowsTotalHeight:0,pinnedBottomRowsTotalHeight:0}})},kv=(e,t)=>{const{getRowHeight:n,getRowSpacing:r,getEstimatedRowHeight:o}=t,s=e.current.caches.rowsMeta.heights,l=g.useRef(-1),a=g.useRef(!1),c=g.useRef(!1),u=te(e,Un),d=Us(e),h=te(e,Kn),m=te(e,Rs),p=R=>{let _=s.get(R);return _===void 0&&(_={content:m,spacingTop:0,spacingBottom:0,detail:0,autoHeight:!1,needsFirstMeasurement:!0},s.set(R,_)),_},b=g.useCallback(R=>{var D,V;const _=at(e.current.state).rowHeight,O=e.current.getRowHeightEntry(R.id);if(!n)O.content=_,O.needsFirstMeasurement=!1;else{const E=n(C({},R,{densityFactor:u}));if(E==="auto"){if(O.needsFirstMeasurement){const T=o?o(C({},R,{densityFactor:u})):_;O.content=T!=null?T:_}a.current=!0,O.autoHeight=!0}else O.content=Tc(E,_,vb),O.needsFirstMeasurement=!1,O.autoHeight=!1}if(r){const E=e.current.getRowIndexRelativeToVisibleRows(R.id),T=r(C({},R,{isFirstVisible:E===0,isLastVisible:E===d.rows.length-1,indexRelativeToCurrentPage:E}));O.spacingTop=(D=T.top)!=null?D:0,O.spacingBottom=(V=T.bottom)!=null?V:0}else O.spacingTop=0,O.spacingBottom=0;return e.current.unstable_applyPipeProcessors("rowHeight",O,R),O},[e,d.rows,n,o,m,r,u]),x=g.useCallback(()=>{a.current=!1;const R=h.top.reduce((T,L)=>{const $=b(L);return T+$.content+$.spacingTop+$.spacingBottom+$.detail},0),_=h.bottom.reduce((T,L)=>{const $=b(L);return T+$.content+$.spacingTop+$.spacingBottom+$.detail},0),O=[],D=d.rows.reduce((T,L)=>{O.push(T);const $=b(L),G=$.content+$.spacingTop+$.spacingBottom+$.detail;return T+G},0);a.current||(l.current=1/0);const V=R!==e.current.state.rowsMeta.pinnedTopRowsTotalHeight||_!==e.current.state.rowsMeta.pinnedBottomRowsTotalHeight||D!==e.current.state.rowsMeta.currentPageTotalHeight,E={currentPageTotalHeight:D,positions:O,pinnedTopRowsTotalHeight:R,pinnedBottomRowsTotalHeight:_};e.current.setState(T=>C({},T,{rowsMeta:E})),V&&e.current.updateDimensions(),c.current=!0},[e,h,d.rows,b]),w=R=>{var _,O;return(O=(_=s.get(R))==null?void 0:_.content)!=null?O:m},k=(R,_)=>{const O=e.current.getRowHeightEntry(R),D=O.content!==_;O.needsFirstMeasurement=!1,O.content=_,c.current&&(c.current=!D)},v=R=>{var _,O;return(O=(_=s.get(R))==null?void 0:_.autoHeight)!=null?O:!1},F=()=>l.current,j=R=>{a.current&&R>l.current&&(l.current=R)},y=()=>{s.clear(),x()},A=Bt.default(()=>new vv(R=>{var _;for(let O=0;O<R.length;O+=1){const D=R[O],V=D.borderBoxSize&&D.borderBoxSize.length>0?D.borderBoxSize[0].blockSize:D.contentRect.height,E=D.target.__mui_id;if(((_=du(e))==null?void 0:_.id)===E&&V===0)return;e.current.unstable_storeRowHeightMeasurement(E,V)}c.current||requestAnimationFrame(()=>{e.current.requestPipeProcessorsApplication("rowHeight")})})).current,N=(R,_)=>(R.__mui_id=_,A.observe(R),()=>A.unobserve(R));nl(e,"rowHeight",x),re.unstable_useEnhancedEffect(()=>{x()},[x]);const M={unstable_getRowHeight:w,unstable_setLastMeasuredRowIndex:j,unstable_storeRowHeightMeasurement:k,resetRowHeights:y},P={hydrateRowsMeta:x,observeRowHeight:N,rowHasAutoHeight:v,getRowHeightEntry:p,getLastMeasuredRowIndex:F};Se(e,M,"public"),Se(e,P,"private")},Iv=e=>{const t=g.useCallback((o={})=>e.current.unstable_applyPipeProcessors("exportState",{},o),[e]),n=g.useCallback(o=>{e.current.unstable_applyPipeProcessors("restoreState",{callbacks:[]},{stateToRestore:o}).callbacks.forEach(l=>{l()}),e.current.forceUpdate()},[e]);Se(e,{exportState:t,restoreState:n},"public")},Mv=e=>{const t=g.useRef({}),n=(a,c)=>{var u;return(u=t.current[a])==null?void 0:u[c]},r=()=>{t.current={}},o=g.useCallback(({rowId:a,minFirstColumn:c,maxLastColumn:u,columns:d})=>{for(let h=c;h<u;h+=1){const m=Ev({apiRef:e,lookup:t.current,columnIndex:h,rowId:a,minFirstColumnIndex:c,maxLastColumnIndex:u,columns:d});m.colSpan>1&&(h+=m.colSpan-1)}},[e]),s={unstable_getCellColSpanInfo:n},l={resetColSpan:r,calculateColSpan:o};Se(e,s,"public"),Se(e,l,"private"),le(e,"columnOrderChange",r)};function Ev(e){const{apiRef:t,lookup:n,columnIndex:r,rowId:o,minFirstColumnIndex:s,maxLastColumnIndex:l,columns:a}=e,c=a.length,u=a[r],d=t.current.getRow(o),h=t.current.getRowValue(d,u),m=typeof u.colSpan=="function"?u.colSpan(h,d,u,t):u.colSpan;if(!m||m===1)return Xo(n,o,r,{spannedByColSpan:!1,cellProps:{colSpan:1,width:u.computedWidth}}),{colSpan:1};let p=u.computedWidth;for(let b=1;b<m;b+=1){const x=r+b;if(x>=s&&x<l){const w=a[x];p+=w.computedWidth,Xo(n,o,r+b,{spannedByColSpan:!0,rightVisibleCellIndex:Math.min(r+m,c-1),leftVisibleCellIndex:r})}Xo(n,o,r,{spannedByColSpan:!1,cellProps:{colSpan:m,width:p}})}return{colSpan:m}}function Xo(e,t,n,r){e[t]||(e[t]={}),e[t][n]=r}const bd=(e,t,n)=>{if(pc(e)){if(n[e.field]!==void 0)throw new Error(["MUI X: columnGroupingModel contains duplicated field",`column field ${e.field} occurs two times in the grouping model:`,`- ${n[e.field].join(" > ")}`,`- ${t.join(" > ")}`].join(`
90
- `));n[e.field]=t;return}const{groupId:r,children:o}=e;o.forEach(s=>{bd(s,[...t,r],n)})},fs=e=>{if(!e)return{};const t={};return e.forEach(n=>{bd(n,[],t)}),t},hs=(e,t,n)=>{const r=c=>{var u;return(u=t[c])!=null?u:[]},o=[],s=Math.max(...e.map(c=>r(c).length)),l=(c,u,d)=>sn(r(c).slice(0,d+1),r(u).slice(0,d+1)),a=(c,u)=>!!(n!=null&&n.left&&n.left.includes(c)&&!n.left.includes(u)||n!=null&&n.right&&!n.right.includes(c)&&n.right.includes(u));for(let c=0;c<s;c+=1){const u=e.reduce((d,h)=>{var w;const m=(w=r(h)[c])!=null?w:null;if(d.length===0)return[{columnFields:[h],groupId:m}];const p=d[d.length-1],b=p.columnFields[p.columnFields.length-1];return p.groupId!==m||!l(b,h,c)||a(b,h)?[...d,{columnFields:[h],groupId:m}]:[...d.slice(0,d.length-1),{columnFields:[...p.columnFields,h],groupId:m}]},[]);o.push(u)}return o},Pv=["groupId","children"],rl=e=>{let t={};return e.forEach(n=>{if(pc(n))return;const{groupId:r,children:o}=n,s=me(n,Pv);if(!r)throw new Error("MUI X: An element of the columnGroupingModel does not have either `field` or `groupId`.");process.env.NODE_ENV!=="production"&&(o||console.warn(`MUI X: group groupId=${r} has no children.`));const l=C({},s,{groupId:r}),a=rl(o);if(a[r]!==void 0||t[r]!==void 0)throw new Error(`MUI X: The groupId ${r} is used multiple times in the columnGroupingModel.`);t=C({},t,a,{[r]:l})}),C({},t)},Tv=(e,t,n)=>{var u,d,h;if(!t.columnGroupingModel)return e;const r=Yt(n),o=Xn(n),s=rl((u=t.columnGroupingModel)!=null?u:[]),l=fs((d=t.columnGroupingModel)!=null?d:[]),a=hs(r,l,(h=n.current.state.pinnedColumns)!=null?h:{}),c=o.length===0?0:Math.max(...o.map(m=>{var p,b;return(b=(p=l[m])==null?void 0:p.length)!=null?b:0}));return C({},e,{columnGrouping:{lookup:s,unwrappedGroupingModel:l,headerStructure:a,maxDepth:c}})},Fv=(e,t)=>{const n=g.useCallback(a=>{var u;return(u=ou(e)[a])!=null?u:[]},[e]),r=g.useCallback(()=>su(e),[e]);Se(e,{getColumnGroupPath:n,getAllGroupDetails:r},"public");const s=g.useCallback(()=>{var c;const a=fs((c=t.columnGroupingModel)!=null?c:[]);e.current.setState(u=>{var p,b,x;const d=(b=(p=u.columns)==null?void 0:p.orderedFields)!=null?b:[],h=(x=u.pinnedColumns)!=null?x:{},m=hs(d,a,h);return C({},u,{columnGrouping:C({},u.columnGrouping,{headerStructure:m})})})},[e,t.columnGroupingModel]),l=g.useCallback(a=>{var x,w,k;const c=(k=(w=(x=e.current).getPinnedColumns)==null?void 0:w.call(x))!=null?k:{},u=Yt(e),d=Xn(e),h=rl(a!=null?a:[]),m=fs(a!=null?a:[]),p=hs(u,m,c),b=d.length===0?0:Math.max(...d.map(v=>{var F,j;return(j=(F=m[v])==null?void 0:F.length)!=null?j:0}));e.current.setState(v=>C({},v,{columnGrouping:{lookup:h,unwrappedGroupingModel:m,headerStructure:p,maxDepth:b}}))},[e]);le(e,"columnIndexChange",s),le(e,"columnsChange",()=>{l(t.columnGroupingModel)}),le(e,"columnVisibilityModelChange",()=>{l(t.columnGroupingModel)}),g.useEffect(()=>{l(t.columnGroupingModel)},[l,t.columnGroupingModel])};function jv(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function qi(e,t){if(t!==void 0&&e.changedTouches){for(let n=0;n<e.changedTouches.length;n+=1){const r=e.changedTouches[n];if(r.identifier===t)return{x:r.clientX,y:r.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function Ui(e,t,n,r){let o=e;return r==="Right"?o+=t-n.left:o+=n.right-t,o}function Ov(e,t,n){return n==="Left"?e-t.left:t.right-e}function Rv(e){return e==="Right"?"Left":"Right"}function Lv(e,t){const n=e.classList.contains(I["columnSeparator--sideRight"])?"Right":"Left";return t?Rv(n):n}function Ki(e){e.preventDefault(),e.stopImmediatePropagation()}function Dv(e){const t=g.useRef(void 0),n=()=>cu(e),r=te(e,n);return g.useEffect(()=>{t.current&&r===!1&&(t.current.resolve(),t.current=void 0)}),()=>{if(!t.current){if(n()===!1)return Promise.resolve();t.current=jv()}return t.current}}function Hv(e,t){if(e.length<4)return e;const n=e.slice();n.sort((a,c)=>a-c);const r=n[Math.floor(n.length*.25)],o=n[Math.floor(n.length*.75)-1],s=o-r,l=s<5?5:s*t;return n.filter(a=>a>r-l&&a<o+l)}function _v(e,t,n){const r={},o=e.current.rootElementRef.current;return o.classList.add(I.autosizing),n.forEach(s=>{var b,x;const a=nx(e.current,s.field).map(w=>{var k;return(k=w.getBoundingClientRect().width)!=null?k:0}),c=t.includeOutliers?a:Hv(a,t.outliersFactor);if(t.includeHeaders){const w=tx(e.current,s.field);if(w){const k=w.querySelector(`.${I.columnHeaderTitle}`),v=w.querySelector(`.${I.columnHeaderTitleContainerContent}`),F=w.querySelector(`.${I.iconButtonContainer}`),j=w.querySelector(`.${I.menuIcon}`),y=k!=null?k:v,A=window.getComputedStyle(w,null),N=parseInt(A.paddingLeft,10)+parseInt(A.paddingRight,10),P=y.scrollWidth+1+N+((b=F==null?void 0:F.clientWidth)!=null?b:0)+((x=j==null?void 0:j.clientWidth)!=null?x:0);c.push(P)}}const u=s.minWidth!==-1/0&&s.minWidth!==void 0,d=s.maxWidth!==1/0&&s.maxWidth!==void 0,h=u?s.minWidth:0,m=d?s.maxWidth:1/0,p=c.length===0?0:Math.max(...c);r[s.field]=xt(p,h,m)}),o.classList.remove(I.autosizing),r}const Av=e=>C({},e,{columnResize:{resizingColumnField:""}});function Vv(){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 Nv=(e,t)=>{const n=Gt.useRtl(),r=ct(e,"useGridColumnResize"),o=Bt.default(Vv).current,s=g.useRef(null),l=g.useRef(null),a=wn.default(),c=g.useRef(void 0),u=P=>{var E,T;r.debug(`Updating width to ${P} for col ${o.colDef.field}`);const R=o.columnHeaderElement.offsetWidth,_=P-R,O=P-o.initialColWidth;if(O>0){const L=o.initialTotalWidth+O;(T=(E=e.current.rootElementRef)==null?void 0:E.current)==null||T.style.setProperty("--DataGrid-rowWidth",`${L}px`)}o.colDef.computedWidth=P,o.colDef.width=P,o.colDef.flex=0,o.columnHeaderElement.style.width=`${P}px`;const D=o.headerFilterElement;D&&(D.style.width=`${P}px`),o.groupHeaderElements.forEach(L=>{const $=L;let G;$.getAttribute("aria-colspan")==="1"?G=`${P}px`:G=`${$.offsetWidth+_}px`,$.style.width=G}),o.cellElements.forEach(L=>{const $=L;let G;$.getAttribute("aria-colspan")==="1"?G=`${P}px`:G=`${$.offsetWidth+_}px`,$.style.setProperty("--width",G)});const V=e.current.unstable_applyPipeProcessors("isColumnPinned",!1,o.colDef.field);V===rn.LEFT&&(Pn(o.fillerLeft,"width",_),o.leftPinnedCellsAfter.forEach(L=>{Pn(L,"left",_)}),o.leftPinnedHeadersAfter.forEach(L=>{Pn(L,"left",_)})),V===rn.RIGHT&&(Pn(o.fillerRight,"width",_),o.rightPinnedCellsBefore.forEach(L=>{Pn(L,"right",_)}),o.rightPinnedHeadersBefore.forEach(L=>{Pn(L,"right",_)}))},d=P=>{if(k(),o.previousMouseClickEvent){const R=o.previousMouseClickEvent,_=R.timeStamp,O=R.clientX,D=R.clientY;if(P.timeStamp-_<300&&P.clientX===O&&P.clientY===D){o.previousMouseClickEvent=void 0,e.current.publishEvent("columnResizeStop",null,P);return}}if(o.colDef){e.current.setColumnWidth(o.colDef.field,o.colDef.width),r.debug(`Updating col ${o.colDef.field} with new width: ${o.colDef.width}`);const R=Nt(e.current.state);o.groupHeaderElements.forEach(_=>{const O=K0(_),D=_,E=`${O.reduce((T,L)=>R.columnVisibilityModel[L]!==!1?T+R.lookup[L].computedWidth:T,0)}px`;D.style.width=E})}a.start(0,()=>{e.current.publishEvent("columnResizeStop",null,P)})},h=(P,R,_)=>{var E;const O=e.current.rootElementRef.current;o.initialColWidth=P.computedWidth,o.initialTotalWidth=e.current.getRootDimensions().rowWidth,o.colDef=P,o.columnHeaderElement=U0(e.current.columnHeadersContainerRef.current,P.field);const D=O.querySelector(`.${I.headerFilterRow} [data-field="${Jt(P.field)}"]`);D&&(o.headerFilterElement=D),o.groupHeaderElements=X0((E=e.current.columnHeadersContainerRef)==null?void 0:E.current,P.field),o.cellElements=Y0(o.columnHeaderElement,e.current),o.fillerLeft=Si(e.current,n?"filler--pinnedRight":"filler--pinnedLeft"),o.fillerRight=Si(e.current,n?"filler--pinnedLeft":"filler--pinnedRight");const V=e.current.unstable_applyPipeProcessors("isColumnPinned",!1,o.colDef.field);o.leftPinnedCellsAfter=V!==rn.LEFT?[]:Z0(e.current,o.columnHeaderElement,n),o.rightPinnedCellsBefore=V!==rn.RIGHT?[]:Q0(e.current,o.columnHeaderElement,n),o.leftPinnedHeadersAfter=V!==rn.LEFT?[]:J0(e.current,o.columnHeaderElement,n),o.rightPinnedHeadersBefore=V!==rn.RIGHT?[]:ex(e.current,o.columnHeaderElement,n),l.current=Lv(R,n),s.current=Ov(_,o.columnHeaderElement.getBoundingClientRect(),l.current)},m=re.unstable_useEventCallback(d),p=re.unstable_useEventCallback(P=>{if(P.buttons===0){m(P);return}let R=Ui(s.current,P.clientX,o.columnHeaderElement.getBoundingClientRect(),l.current);R=xt(R,o.colDef.minWidth,o.colDef.maxWidth),u(R);const _={element:o.columnHeaderElement,colDef:o.colDef,width:R};e.current.publishEvent("columnResize",_,P)}),b=re.unstable_useEventCallback(P=>{qi(P,c.current)&&d(P)}),x=re.unstable_useEventCallback(P=>{const R=qi(P,c.current);if(!R)return;if(P.type==="mousemove"&&P.buttons===0){b(P);return}let _=Ui(s.current,R.x,o.columnHeaderElement.getBoundingClientRect(),l.current);_=xt(_,o.colDef.minWidth,o.colDef.maxWidth),u(_);const O={element:o.columnHeaderElement,colDef:o.colDef,width:_};e.current.publishEvent("columnResize",O,P)}),w=re.unstable_useEventCallback(P=>{const R=no(P.target,I["columnSeparator--resizable"]);if(!R)return;const _=P.changedTouches[0];_!=null&&(c.current=_.identifier);const O=no(P.target,I.columnHeader),D=q0(O),V=e.current.getColumn(D);r.debug(`Start Resize on col ${V.field}`),e.current.publishEvent("columnResizeStart",{field:D},P),h(V,R,_.clientX);const E=re.unstable_ownerDocument(P.currentTarget);E.addEventListener("touchmove",x),E.addEventListener("touchend",b)}),k=g.useCallback(()=>{const P=re.unstable_ownerDocument(e.current.rootElementRef.current);P.body.style.removeProperty("cursor"),P.removeEventListener("mousemove",p),P.removeEventListener("mouseup",m),P.removeEventListener("touchmove",x),P.removeEventListener("touchend",b),setTimeout(()=>{P.removeEventListener("click",Ki,!0)},100),o.columnHeaderElement&&(o.columnHeaderElement.style.pointerEvents="unset")},[e,o,p,m,x,b]),v=g.useCallback(({field:P})=>{e.current.setState(R=>C({},R,{columnResize:C({},R.columnResize,{resizingColumnField:P})})),e.current.forceUpdate()},[e]),F=g.useCallback(()=>{e.current.setState(P=>C({},P,{columnResize:C({},P.columnResize,{resizingColumnField:""})})),e.current.forceUpdate()},[e]),j=re.unstable_useEventCallback(({colDef:P},R)=>{if(R.button!==0||!R.currentTarget.classList.contains(I["columnSeparator--resizable"]))return;R.preventDefault(),r.debug(`Start Resize on col ${P.field}`),e.current.publishEvent("columnResizeStart",{field:P.field},R),h(P,R.currentTarget,R.clientX);const _=re.unstable_ownerDocument(e.current.rootElementRef.current);_.body.style.cursor="col-resize",o.previousMouseClickEvent=R.nativeEvent,_.addEventListener("mousemove",p),_.addEventListener("mouseup",m),_.addEventListener("click",Ki,!0)}),y=re.unstable_useEventCallback((P,R)=>{if(t.disableAutosize||R.button!==0)return;const _=e.current.state.columns.lookup[P.field];_.resizable!==!1&&e.current.autosizeColumns(C({},t.autosizeOptions,{disableColumnVirtualization:!1,columns:[_.field]}))}),A=Dv(e),N=g.useRef(!1),M=g.useCallback(async P=>{var V,E;if(!((V=e.current.rootElementRef)==null?void 0:V.current)||N.current)return;N.current=!0;const _=Nt(e.current.state),O=C({},Gw,P,{columns:(E=P==null?void 0:P.columns)!=null?E:_.orderedFields});O.columns=O.columns.filter(T=>_.columnVisibilityModel[T]!==!1);const D=O.columns.map(T=>e.current.state.columns.lookup[T]);try{!t.disableVirtualization&&O.disableColumnVirtualization&&(e.current.unstable_setColumnVirtualization(!1),await A());const T=_v(e,O,D),L=D.map($=>C({},$,{width:T[$.field],computedWidth:T[$.field],flex:0}));if(O.expand){const G=_.orderedFields.map(q=>_.lookup[q]).filter(q=>_.columnVisibilityModel[q.field]!==!1).reduce((q,U)=>{var Q,X;return q+((X=(Q=T[U.field])!=null?Q:U.computedWidth)!=null?X:U.width)},0),z=e.current.getRootDimensions().viewportInnerSize.width-G;if(z>0){const q=z/(L.length||1);L.forEach(U=>{U.width+=q,U.computedWidth+=q})}}e.current.updateColumns(L),L.forEach(($,G)=>{if($.width!==D[G].width){const S=$.width;e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement($.field),colDef:$,width:S})}})}finally{t.disableVirtualization||e.current.unstable_setColumnVirtualization(!0),N.current=!1}},[e,A,t.disableVirtualization]);g.useEffect(()=>k,[k]),fa.default(()=>{t.autosizeOnMount&&Promise.resolve().then(()=>{e.current.autosizeColumns(t.autosizeOptions)})}),Gc(e,()=>{var P;return(P=e.current.columnHeadersContainerRef)==null?void 0:P.current},"touchstart",w,{passive:!0}),Se(e,{autosizeColumns:M},"public"),le(e,"columnResizeStop",F),le(e,"columnResizeStart",v),le(e,"columnSeparatorMouseDown",j),le(e,"columnSeparatorDoubleClick",y),Ae(e,"columnResize",t.onColumnResize),Ae(e,"columnWidthChange",t.onColumnWidthChange)};function Pn(e,t,n){e&&(e.style[t]=`${parseInt(e.style[t],10)+n}px`)}function $v(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}function Xi(e){return e.firstRowIndex!==0||e.lastRowIndex!==0}const Yo=(e,t,n)=>{var s;if(!e)return null;let r=e[t.field];const o=(s=t.rowSpanValueGetter)!=null?s:t.valueGetter;return o&&(r=o(r,e,t,n)),r},Hn={spannedCells:{},hiddenCells:{},hiddenCellOriginMap:{}},io={firstRowIndex:0,lastRowIndex:0},zv=new Set([yt,"__reorder__",mo]),Yi=20,Cd=(e,t,n,r,o,s,l)=>{const a=s?{}:C({},e.current.state.rowSpanning.spannedCells),c=s?{}:C({},e.current.state.rowSpanning.hiddenCells),u=s?{}:C({},e.current.state.rowSpanning.hiddenCellOriginMap);return s&&(l=io),t.forEach(d=>{var h;if(!zv.has(d.field)){for(let m=o.firstRowIndex;m<o.lastRowIndex;m+=1){const p=n[m];if((h=c[p.id])!=null&&h[d.field])continue;const b=Yo(p.model,d,e);if(b==null)continue;let x=p.id,w=m,k=0;const v=[];if(m===o.firstRowIndex){let j=m-1,y=n[j];for(;j>=r.firstRowIndex&&y&&Yo(y.model,d,e)===b;){const A=n[j+1];c[A.id]?c[A.id][d.field]=!0:c[A.id]={[d.field]:!0},v.push(m),k+=1,x=y.id,w=j,j-=1,y=n[j]}}v.forEach(j=>{u[j]?u[j][d.field]=w:u[j]={[d.field]:w}});let F=m+1;for(;F<=r.lastRowIndex&&n[F]&&Yo(n[F].model,d,e)===b;){const j=n[F];c[j.id]?c[j.id][d.field]=!0:c[j.id]={[d.field]:!0},u[F]?u[F][d.field]=w:u[F]={[d.field]:w},F+=1,k+=1}k>0&&(a[x]?a[x][d.field]=k+1:a[x]={[d.field]:k+1})}l={firstRowIndex:Math.min(l.firstRowIndex,o.firstRowIndex),lastRowIndex:Math.max(l.lastRowIndex,o.lastRowIndex)}}}),{spannedCells:a,hiddenCells:c,hiddenCellOriginMap:u,processedRange:l}},wd=(e,t)=>{const n=fr(t).length;if(e.pagination){const r=Kc(t);let o=Yi;return r>0&&(o=r-1),{firstRowIndex:0,lastRowIndex:Math.min(o,n)}}return{firstRowIndex:0,lastRowIndex:Math.min(Yi,n)}},Gv=(e,t,n)=>{var b;if(!t.unstable_rowSpanning)return C({},e,{rowSpanning:Hn});const r=e.rows.dataRowIds||[],o=e.columns.orderedFields||[],s=e.rows.dataRowIdToModelLookup,l=e.columns.lookup,a=!!e.filter.filterModel.items.length||!!((b=e.filter.filterModel.quickFilterValues)!=null&&b.length);if(!r.length||!o.length||!s||!l||a)return C({},e,{rowSpanning:Hn});const c=wd(t,n),u=r.map(x=>({id:x,model:s[x]})),d=o.map(x=>l[x]),{spannedCells:h,hiddenCells:m,hiddenCellOriginMap:p}=Cd(n,d,u,c,c,!0,io);return C({},e,{rowSpanning:{spannedCells:h,hiddenCells:m,hiddenCellOriginMap:p}})},Bv=(e,t)=>{const n=Bt.default(()=>e.current.state.rowSpanning!==Hn?wd(t,e):io),r=g.useCallback((s,l=!1)=>{const{range:a,rows:c}=an(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(a===null||!Xi(s))return;l&&(n.current=io);const u=$v({firstRowIndex:s.firstRowIndex,lastRowIndex:Math.min(s.lastRowIndex,a.lastRowIndex+1)},n.current);if(u===null)return;const d=Ke(e),{spannedCells:h,hiddenCells:m,hiddenCellOriginMap:p,processedRange:b}=Cd(e,d,c,a,u,l,n.current);n.current=b;const x=Object.keys(h).length,w=Object.keys(m).length,k=Object.keys(e.current.state.rowSpanning.spannedCells).length,v=Object.keys(e.current.state.rowSpanning.hiddenCells).length;!(l||x!==k||w!==v)||x===0&&k===0||e.current.setState(y=>C({},y,{rowSpanning:{spannedCells:h,hiddenCells:m,hiddenCellOriginMap:p}}))},[e,n,t.pagination,t.paginationMode]),o=g.useCallback(()=>{const s=Fr(e);Xi(s)&&r(s,!0)},[e,r]);le(e,"renderedRowsIntervalChange",mn(t.unstable_rowSpanning,r)),le(e,"sortedRowsSet",mn(t.unstable_rowSpanning,o)),le(e,"paginationModelChange",mn(t.unstable_rowSpanning,o)),le(e,"filteredRowsSet",mn(t.unstable_rowSpanning,o)),le(e,"columnsChange",mn(t.unstable_rowSpanning,o)),g.useEffect(()=>{t.unstable_rowSpanning?e.current.state.rowSpanning===Hn&&o():e.current.state.rowSpanning!==Hn&&e.current.setState(s=>C({},s,{rowSpanning:Hn}))},[e,o,t.unstable_rowSpanning])},Wv=(e,t,n)=>C({},e,{listViewColumn:t.unstable_listColumn?C({},t.unstable_listColumn,{computedWidth:gs(n)}):void 0});function qv(e,t){const n=()=>{e.current.setState(s=>s.listViewColumn?C({},s,{listViewColumn:C({},s.listViewColumn,{computedWidth:gs(e)})}):s)},r=g.useRef(null);le(e,"viewportInnerSizeChange",s=>{r.current!==s.width&&(r.current=s.width,n())}),le(e,"columnVisibilityModelChange",n),ia.default(()=>{const s=t.unstable_listColumn;s&&e.current.setState(l=>C({},l,{listViewColumn:C({},s,{computedWidth:gs(e)})}))},[e,t.unstable_listColumn]),g.useEffect(()=>{t.unstable_listView&&!t.unstable_listColumn&&kt(["MUI X: The `unstable_listColumn` prop must be set if `unstable_listView` is enabled.",'To fix, pass a column definition to the `unstable_listColumn` prop, e.g. `{ field: "example", renderCell: (params) => <div>{params.row.id}</div> }`.',"For more details, see https://mui.com/x/react-data-grid/list-view/"])},[t.unstable_listView,t.unstable_listColumn])}function gs(e){return at(e.current.state).viewportInnerSize.width}const Uv=(e,t)=>{const n=my(e,t);return fv(n,t),iv(n),lt(hy,n,t),lt(cv,n,t),lt(Sy,n,t),lt(nv,n,t),lt(By,n,t),lt(ev,n,t),lt(_y,n,t),lt(hv,n,t),lt(qy,n,t),lt(Ry,n,t),lt(Gv,n,t),lt(Iy,n,t),lt(Av,n,t),lt(yy,n,t),lt(Tv,n,t),lt(rw,n,t),lt(wv,n,t),lt(Sv,n,t),lt(Wv,n,t),$y(n,t),uv(n,t),ky(n,t),rv(n,t),Bv(n,t),av(n,t),Mv(n),Fv(n,t),tv(n,t),Ay(n,t),Uy(n,t),Hy(n,t),gv(n,t),My(n,t),Nv(n,t),Wy(n,t),kv(n,t),mv(n,t),vy(n),Py(n,t),Oy(n,t),xy(n,t),xv(n,t),pv(n,t),Iv(n),ow(n,t),qv(n,t),n},Kv=e=>{const{classes:t,headerAlign:n,isDragging:r,isLastColumn:o,showLeftBorder:s,showRightBorder:l,groupId:a,pinnedPosition:c}=e,u={root:["columnHeader",n==="left"&&"columnHeader--alignLeft",n==="center"&&"columnHeader--alignCenter",n==="right"&&"columnHeader--alignRight",r&&"columnHeader--moving",l&&"columnHeader--withRightBorder",s&&"columnHeader--withLeftBorder","withBorderColor",a===null?"columnHeader--emptyGroup":"columnHeader--filledGroup",c===Ie.LEFT&&"columnHeader--pinnedLeft",c===Ie.RIGHT&&"columnHeader--pinnedRight",o&&"columnHeader--last"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer","withBorderColor"],titleContainerContent:["columnHeaderTitleContainerContent"]};return re.unstable_composeClasses(u,Te,t)};function Xv(e){var $;const{groupId:t,width:n,depth:r,maxDepth:o,fields:s,height:l,colIndex:a,hasFocus:c,tabIndex:u,isLastColumn:d,pinnedPosition:h,pinnedOffset:m}=e,p=ue(),b=Gt.useRtl(),x=g.useRef(null),w=ke(),k=te(w,su),v=t?k[t]:{},{headerName:F=t!=null?t:"",description:j="",headerAlign:y=void 0}=v;let A;const N=t&&(($=k[t])==null?void 0:$.renderHeaderGroup),M=g.useMemo(()=>({groupId:t,headerName:F,description:j,depth:r,maxDepth:o,fields:s,colIndex:a,isLastColumn:d}),[t,F,j,r,o,s,a,d]);t&&N&&(A=N(M));const P=C({},e,{classes:p.classes,headerAlign:y,depth:r,isDragging:!1}),R=F!=null?F:t,_=re.unstable_useId(),O=t===null?`empty-group-cell-${_}`:t,D=Kv(P);g.useLayoutEffect(()=>{if(c){const S=x.current.querySelector('[tabindex="0"]')||x.current;if(!S)return;if(Zs())S.focus({preventScroll:!0});else{const H=w.current.getScrollPosition();S.focus(),w.current.scroll(H)}}},[w,c]);const V=g.useCallback(G=>S=>{jr(S)||w.current.publishEvent(G,M,S)},[w,M]),E=g.useMemo(()=>({onKeyDown:V("columnGroupHeaderKeyDown"),onFocus:V("columnGroupHeaderFocus"),onBlur:V("columnGroupHeaderBlur")}),[V]),T=typeof v.headerClassName=="function"?v.headerClassName(M):v.headerClassName,L=g.useMemo(()=>vo(C({},e.style),b,h,m),[h,m,e.style,b]);return i.jsx(ju,C({ref:x,classes:D,columnMenuOpen:!1,colIndex:a,height:l,isResizing:!1,sortDirection:null,hasFocus:!1,tabIndex:u,isDraggable:!1,headerComponent:A,headerClassName:T,description:j,elementId:O,width:n,columnMenuIconButton:null,columnTitleIconButtons:null,resizable:!1,label:R,"aria-colspan":s.length,"data-fields":`|-${s.join("-|-")}-|`,style:L},E))}const Zi=ge.styled("div",{name:"MuiDataGrid",slot:"ColumnHeaderRow",overridesResolver:(e,t)=>t.columnHeaderRow})({display:"flex"}),Yv=e=>{const{visibleColumns:t,sortColumnLookup:n,filterColumnLookup:r,columnHeaderTabIndexState:o,columnGroupHeaderTabIndexState:s,columnHeaderFocus:l,columnGroupHeaderFocus:a,headerGroupingMaxDepth:c,columnMenuState:u,columnVisibility:d,columnGroupsHeaderStructure:h,hasOtherElementInTabSequence:m}=e,[p,b]=g.useState(""),[x,w]=g.useState(""),k=Et(),v=ue(),F=te(k,ou),j=te(k,dn),y=te(k,nw),A=te(k,Yn),N=te(k,Qt),M=fu(j,y,A.left.length),P=te(k,uo),R=te(k,ic),_=te(k,x1),O=te(k,y1),D=te(k,ac),V=g.useCallback(X=>w(X.field),[]),E=g.useCallback(()=>w(""),[]),T=g.useCallback(X=>b(X.field),[]),L=g.useCallback(()=>b(""),[]),$=g.useMemo(()=>A.left.length?{firstColumnIndex:0,lastColumnIndex:A.left.length}:null,[A.left.length]),G=g.useMemo(()=>A.right.length?{firstColumnIndex:t.length-A.right.length,lastColumnIndex:t.length}:null,[A.right.length,t.length]);le(k,"columnResizeStart",V),le(k,"columnResizeStop",E),le(k,"columnHeaderDragStart",T),le(k,"columnHeaderDragEnd",L);const S=X=>{const{renderContext:W=y}=X||{},K=W.firstColumnIndex,Y=W.lastColumnIndex;return{renderedColumns:t.slice(K,Y),firstColumnToRender:K,lastColumnToRender:Y}},H=(X,W,K,Y=!1)=>{const J=(X==null?void 0:X.position)===Ie.RIGHT,ne=(X==null?void 0:X.position)===void 0,Z=A.right.length>0&&J||A.right.length===0&&ne,oe=M-K;return i.jsxs(g.Fragment,{children:[ne&&i.jsx("div",{role:"presentation",style:{width:oe}}),W,ne&&i.jsx("div",{role:"presentation",className:Pe(I.filler,Y&&I["filler--borderBottom"])}),Z&&i.jsx(el,{header:!0,pinnedRight:J,borderBottom:Y,borderTop:!1})]})},z=(X,W={})=>{const{renderedColumns:K,firstColumnToRender:Y}=S(X),J=[];for(let ne=0;ne<K.length;ne+=1){const Z=K[ne],oe=Y+ne,ee=oe===0,ae=o!==null&&o.field===Z.field||ee&&!m?0:-1,fe=l!==null&&l.field===Z.field,xe=u.open&&u.field===Z.field,pe=X==null?void 0:X.position,Me=mr(pe,Z.computedWidth,oe,j,P,D),Re=pe===Ie.RIGHT?K[ne-1]:K[ne+1],Je=Re?l!==null&&l.field===Re.field:!1,De=oe+1===j.length-A.right.length,Oe=ne,Ye=K.length,qe=so(pe,Oe),we=oo(pe,Oe,Ye,v.showColumnVerticalBorder,R);J.push(i.jsx(fx,C({},n[Z.field],{columnMenuOpen:xe,filterItemsCounter:r[Z.field]&&r[Z.field].length,headerHeight:_,isDragging:Z.field===p,colDef:Z,colIndex:oe,isResizing:x===Z.field,isLast:oe===j.length-1,hasFocus:fe,tabIndex:ae,pinnedPosition:pe,pinnedOffset:Me,isLastUnpinned:De,isSiblingFocused:Je,showLeftBorder:qe,showRightBorder:we},W),Z.field))}return H(X,J,0)},q=()=>i.jsxs(Zi,{role:"row","aria-rowindex":c+1,ownerState:v,className:I["row--borderBottom"],children:[$&&z({position:Ie.LEFT,renderContext:$},{disableReorder:!0}),z({renderContext:y}),G&&z({position:Ie.RIGHT,renderContext:G},{disableReorder:!0,separatorSide:Qs.Left})]}),U=({depth:X,params:W})=>{var Ye,qe,we,He;const K=S(W);if(K.renderedColumns.length===0)return null;const{firstColumnToRender:Y,lastColumnToRender:J}=K,ne=h[X],Z=t[Y].field,oe=(qe=(Ye=F[Z])==null?void 0:Ye[X])!=null?qe:null,ee=ne.findIndex(({groupId:ve,columnFields:ce})=>ve===oe&&ce.includes(Z)),ae=t[J-1].field,fe=(He=(we=F[ae])==null?void 0:we[X])!=null?He:null,xe=ne.findIndex(({groupId:ve,columnFields:ce})=>ve===fe&&ce.includes(ae)),pe=ne.slice(ee,xe+1).map(ve=>C({},ve,{columnFields:ve.columnFields.filter(ce=>d[ce]!==!1)})).filter(ve=>ve.columnFields.length>0),Me=pe[0].columnFields.indexOf(Z),Je=pe[0].columnFields.slice(0,Me).reduce((ve,ce)=>{var Ce;const ye=N[ce];return ve+((Ce=ye.computedWidth)!=null?Ce:0)},0);let De=Y;const Oe=pe.map(({groupId:ve,columnFields:ce},ye)=>{const Ce=a!==null&&a.depth===X&&ce.includes(a.field),Ze=s!==null&&s.depth===X&&ce.includes(s.field)?0:-1,ot={width:ce.reduce((Dt,Ht)=>Dt+N[Ht].computedWidth,0),fields:ce,colIndex:De},Qe=W.position,Pt=mr(Qe,ot.width,De,j,P,D);De+=ce.length;let Tt=ye;return Qe===Ie.LEFT&&(Tt=De-1),i.jsx(Xv,{groupId:ve,width:ot.width,fields:ot.fields,colIndex:ot.colIndex,depth:X,isLastColumn:ye===pe.length-1,maxDepth:c,height:O,hasFocus:Ce,tabIndex:Ze,pinnedPosition:Qe,pinnedOffset:Pt,showLeftBorder:so(Qe,Tt),showRightBorder:oo(Qe,Tt,pe.length,v.showColumnVerticalBorder,R)},ye)});return H(W,Oe,Je)};return{renderContext:y,leftRenderContext:$,rightRenderContext:G,pinnedColumns:A,visibleColumns:t,columnPositions:j,getFillers:H,getColumnHeadersRow:q,getColumnsToRender:S,getColumnGroupHeadersRows:()=>{if(c===0)return null;const X=[];for(let W=0;W<c;W+=1)X.push(i.jsxs(Zi,{role:"row","aria-rowindex":W+1,ownerState:v,children:[$&&U({depth:W,params:{position:Ie.LEFT,renderContext:$,maxLastColumn:$.lastColumnIndex}}),U({depth:W,params:{renderContext:y}}),G&&U({depth:W,params:{position:Ie.RIGHT,renderContext:G,maxLastColumn:G.lastColumnIndex}})]},W));return X},getPinnedCellOffset:mr,isDragging:!!p,getInnerProps:()=>({role:"rowgroup"})}},Zv=["className"],Qv=e=>{const{classes:t}=e,n={root:["columnHeaders"]};return Xe.default(n,Te,t)},Jv=Ge.styled("div",{name:"MuiDataGrid",slot:"ColumnHeaders",overridesResolver:(e,t)=>t.columnHeaders})({display:"flex",flexDirection:"column",borderTopLeftRadius:"var(--unstable_DataGrid-radius)",borderTopRightRadius:"var(--unstable_DataGrid-radius)"}),eS=je(function(t,n){const{className:r}=t,o=me(t,Zv),s=ue(),l=Qv(s);return i.jsx(Jv,C({className:Pe(l.root,r),ownerState:s},o,{role:"presentation",ref:n}))}),tS=["className","visibleColumns","sortColumnLookup","filterColumnLookup","columnHeaderTabIndexState","columnGroupHeaderTabIndexState","columnHeaderFocus","columnGroupHeaderFocus","headerGroupingMaxDepth","columnMenuState","columnVisibility","columnGroupsHeaderStructure","hasOtherElementInTabSequence"],xd=je(function(t,n){const{visibleColumns:r,sortColumnLookup:o,filterColumnLookup:s,columnHeaderTabIndexState:l,columnGroupHeaderTabIndexState:a,columnHeaderFocus:c,columnGroupHeaderFocus:u,headerGroupingMaxDepth:d,columnMenuState:h,columnVisibility:m,columnGroupsHeaderStructure:p,hasOtherElementInTabSequence:b}=t,x=me(t,tS),{getInnerProps:w,getColumnHeadersRow:k,getColumnGroupHeadersRows:v}=Yv({visibleColumns:r,sortColumnLookup:o,filterColumnLookup:s,columnHeaderTabIndexState:l,columnGroupHeaderTabIndexState:a,columnHeaderFocus:c,columnGroupHeaderFocus:u,headerGroupingMaxDepth:d,columnMenuState:h,columnVisibility:m,columnGroupsHeaderStructure:p,hasOtherElementInTabSequence:b});return i.jsxs(eS,C({},x,w(),{ref:n,children:[v(),k()]}))});process.env.NODE_ENV!=="production"&&(xd.propTypes={columnGroupHeaderFocus:f.shape({depth:f.number.isRequired,field:f.string.isRequired}),columnGroupHeaderTabIndexState:f.shape({depth:f.number.isRequired,field:f.string.isRequired}),columnGroupsHeaderStructure:f.arrayOf(f.arrayOf(f.shape({columnFields:f.arrayOf(f.string).isRequired,groupId:f.string}))).isRequired,columnHeaderFocus:f.shape({field:f.string.isRequired}),columnHeaderTabIndexState:f.shape({field:f.string.isRequired}),columnMenuState:f.shape({field:f.string,open:f.bool.isRequired}).isRequired,columnVisibility:f.object.isRequired,filterColumnLookup:f.object.isRequired,hasOtherElementInTabSequence:f.bool.isRequired,headerGroupingMaxDepth:f.number.isRequired,sortColumnLookup:f.object.isRequired,visibleColumns:f.arrayOf(f.object).isRequired});const nS=Zt(xd);function rS(e){return null}function oS(e){return null}const sS=je(function(t,n){const o=ke().current.getLocaleText("noResultsOverlayLabel");return i.jsx(So,C({},t,{ref:n,children:o}))}),lS=["sortingOrder"],iS=g.memo(function(t){const{sortingOrder:n}=t,r=me(t,lS),o=ue(),[s]=n,l=s==="asc"?o.slots.columnSortedAscendingIcon:o.slots.columnSortedDescendingIcon;return l?i.jsx(l,C({},r)):null}),aS=["native"];function cS(e){let{native:t}=e,n=me(e,aS);return t?i.jsx("option",C({},n)):i.jsx(Xt.default,C({},n))}const uS={booleanCellTrueIcon:Ox,booleanCellFalseIcon:Wo,columnMenuIcon:Px,openFilterButtonIcon:yx,filterPanelDeleteIcon:Wo,columnFilteredIcon:Pi,columnSelectorIcon:Sx,columnUnsortedIcon:iS,columnSortedAscendingIcon:ki,columnSortedDescendingIcon:Ii,columnResizeIcon:kx,densityCompactIcon:Ix,densityStandardIcon:Mx,densityComfortableIcon:Ex,exportIcon:jx,moreActionsIcon:Rx,treeDataCollapseIcon:Ei,treeDataExpandIcon:Mi,groupingCriteriaCollapseIcon:Ei,groupingCriteriaExpandIcon:Mi,detailPanelExpandIcon:Ti,detailPanelCollapseIcon:Tx,rowReorderIcon:Fi,quickFilterIcon:vx,quickFilterClearIcon:Wo,columnMenuHideIcon:Lx,columnMenuSortAscendingIcon:ki,columnMenuSortDescendingIcon:Ii,columnMenuFilterIcon:Pi,columnMenuManageColumnsIcon:Dx,columnMenuClearIcon:Hx,loadIcon:Fx,filterPanelAddIcon:Ti,filterPanelRemoveAllIcon:_x,columnReorderIcon:Fi},dS=C({},uS,{baseBadge:xh.default,baseCheckbox:yh.default,baseDivider:vh.default,baseTextField:ha.default,baseFormControl:Sh.default,baseSelect:kh.default,baseButton:Ih.default,baseIconButton:ga.default,baseInputAdornment:Mh.default,baseTooltip:ma.default,basePopper:bs.default,baseInputLabel:Eh.default,baseSelectOption:cS,baseChip:Ph.default}),fS=C({},dS,{cell:u0,skeletonCell:p0,columnHeaderFilterIconButton:Du,columnHeaderSortIcon:wx,columnMenu:Uu,columnHeaders:nS,detailPanels:rS,footer:od,footerRowCount:ad,toolbar:null,pinnedRows:oS,loadingOverlay:sd,noResultsOverlay:sS,noRowsOverlay:ld,pagination:id,filterPanel:Qu,columnsPanel:Ku,columnsManagement:Ju,panel:Xu,row:K2}),hS={disableMultipleColumnsFiltering:!0,disableMultipleColumnsSorting:!0,throttleRowsMs:void 0,hideFooterRowCount:!1,pagination:!0,checkboxSelectionVisibleOnly:!1,disableColumnReorder:!0,keepColumnPositionIfDraggedOutside:!1,signature:"DataGrid",unstable_listView:!1},gS=fS,mS=e=>{const t=ge.useTheme(),n=n0(g.useMemo(()=>Ge.getThemeProps({props:e,theme:t,name:"MuiDataGrid"}),[t,e])),r=g.useMemo(()=>C({},S1,n.localeText),[n.localeText]),o=g.useMemo(()=>e0({defaultSlots:gS,slots:n.slots}),[n.slots]),s=g.useMemo(()=>Object.keys(ds).reduce((l,a)=>{var c;return l[a]=(c=n[a])!=null?c:ds[a],l},{}),[n]);return g.useMemo(()=>C({},n,s,{localeText:r,slots:o},hS),[n,r,o,s])},pS={hooks:{useGridAriaAttributes:X2,useGridRowAriaAttributes:Y2,useCellAggregationResult:()=>null}},yd=je(function(t,n){var s;const r=mS(t),o=Uv(r.apiRef,r);return process.env.NODE_ENV!=="production"&&o0(r,r0),i.jsx(Z2,{privateApiRef:o,configuration:pS,props:r,children:i.jsx(R0,C({className:r.className,style:r.style,sx:r.sx},r.forwardedProps,(s=r.slotProps)==null?void 0:s.root,{ref:n}))})}),bS=g.memo(yd);yd.propTypes={apiRef:f.shape({current:f.object.isRequired}),"aria-label":f.string,"aria-labelledby":f.string,autoHeight:f.bool,autoPageSize:f.bool,autosizeOnMount:f.bool,autosizeOptions:f.shape({columns:f.arrayOf(f.string),disableColumnVirtualization:f.bool,expand:f.bool,includeHeaders:f.bool,includeOutliers:f.bool,outliersFactor:f.number}),cellModesModel:f.object,checkboxSelection:f.bool,classes:f.object,clipboardCopyCellDelimiter:f.string,columnBufferPx:f.number,columnGroupHeaderHeight:f.number,columnGroupingModel:f.arrayOf(f.object),columnHeaderHeight:f.number,columns:f.arrayOf(f.object).isRequired,columnVisibilityModel:f.object,density:f.oneOf(["comfortable","compact","standard"]),disableAutosize:f.bool,disableColumnFilter:f.bool,disableColumnMenu:f.bool,disableColumnResize:f.bool,disableColumnSelector:f.bool,disableColumnSorting:f.bool,disableDensitySelector:f.bool,disableEval:f.bool,disableMultipleRowSelection:f.bool,disableRowSelectionOnClick:f.bool,disableVirtualization:f.bool,editMode:f.oneOf(["cell","row"]),estimatedRowCount:f.number,experimentalFeatures:f.shape({warnIfFocusStateIsNotSynced:f.bool}),filterDebounceMs:f.number,filterMode:f.oneOf(["client","server"]),filterModel:f.shape({items:f.arrayOf(f.shape({field:f.string.isRequired,id:f.oneOfType([f.number,f.string]),operator:f.string.isRequired,value:f.any})).isRequired,logicOperator:f.oneOf(["and","or"]),quickFilterExcludeHiddenColumns:f.bool,quickFilterLogicOperator:f.oneOf(["and","or"]),quickFilterValues:f.array}),forwardedProps:f.object,getCellClassName:f.func,getDetailPanelContent:f.func,getEstimatedRowHeight:f.func,getRowClassName:f.func,getRowHeight:f.func,getRowId:f.func,getRowSpacing:f.func,hideFooter:f.bool,hideFooterPagination:f.bool,hideFooterSelectedRowCount:f.bool,ignoreDiacritics:f.bool,ignoreValueFormatterDuringExport:f.oneOfType([f.shape({clipboardExport:f.bool,csvExport:f.bool}),f.bool]),indeterminateCheckboxAction:f.oneOf(["deselect","select"]),initialState:f.object,isCellEditable:f.func,isRowSelectable:f.func,keepNonExistentRowsSelected:f.bool,loading:f.bool,localeText:f.object,logger:f.shape({debug:f.func.isRequired,error:f.func.isRequired,info:f.func.isRequired,warn:f.func.isRequired}),logLevel:f.oneOf(["debug","error","info","warn",!1]),nonce:f.string,onCellClick:f.func,onCellDoubleClick:f.func,onCellEditStart:f.func,onCellEditStop:f.func,onCellKeyDown:f.func,onCellModesModelChange:f.func,onClipboardCopy:f.func,onColumnHeaderClick:f.func,onColumnHeaderContextMenu:f.func,onColumnHeaderDoubleClick:f.func,onColumnHeaderEnter:f.func,onColumnHeaderLeave:f.func,onColumnHeaderOut:f.func,onColumnHeaderOver:f.func,onColumnOrderChange:f.func,onColumnResize:f.func,onColumnVisibilityModelChange:f.func,onColumnWidthChange:f.func,onDensityChange:f.func,onFilterModelChange:f.func,onMenuClose:f.func,onMenuOpen:f.func,onPaginationMetaChange:f.func,onPaginationModelChange:f.func,onPreferencePanelClose:f.func,onPreferencePanelOpen:f.func,onProcessRowUpdateError:f.func,onResize:f.func,onRowClick:f.func,onRowCountChange:f.func,onRowDoubleClick:f.func,onRowEditStart:f.func,onRowEditStop:f.func,onRowModesModelChange:f.func,onRowSelectionModelChange:f.func,onSortModelChange:f.func,onStateChange:f.func,pageSizeOptions:f.arrayOf(f.oneOfType([f.number,f.shape({label:f.string.isRequired,value:f.number.isRequired})]).isRequired),pagination:f.oneOf([!0]),paginationMeta:f.shape({hasNextPage:f.bool}),paginationMode:f.oneOf(["client","server"]),paginationModel:f.shape({page:f.number.isRequired,pageSize:f.number.isRequired}),processRowUpdate:f.func,resetPageOnSortFilter:f.bool,resizeThrottleMs:f.number,rowBufferPx:f.number,rowCount:f.number,rowHeight:f.number,rowModesModel:f.object,rowPositionsDebounceMs:f.number,rows:f.arrayOf(f.object),rowSelection:f.bool,rowSelectionModel:f.oneOfType([f.arrayOf(f.oneOfType([f.number,f.string]).isRequired),f.number,f.string]),rowSpacingType:f.oneOf(["border","margin"]),scrollbarSize:f.number,showCellVerticalBorder:f.bool,showColumnVerticalBorder:f.bool,slotProps:f.object,slots:f.object,sortingMode:f.oneOf(["client","server"]),sortingOrder:f.arrayOf(f.oneOf(["asc","desc"])),sortModel:f.arrayOf(f.shape({field:f.string.isRequired,sort:f.oneOf(["asc","desc"])})),sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object]),unstable_rowSpanning:f.bool,virtualizeColumnsWithAutoRowHeight:f.bool};const CS=({sx:e,...t})=>{const n=ge.useTheme();return i.jsx(bS,{disableRowSelectionOnClick:!0,...t,sx:{border:`1px solid ${n.palette.neutral.lighter}`,borderRadius:"8px",fontFamily:n.typography.fontFamily,fontSize:"0.875rem",[`& .${I.columnHeader}`]:{backgroundColor:"rgba(217, 217, 217, 0.10)",color:n.palette.neutral.dark,fontSize:"0.75rem",fontWeight:600,"&:focus, &:focus-within":{outline:`2px solid ${n.palette.primary.main}`,outlineOffset:"-2px"}},[`& .${I.columnSeparator}`]:{color:n.palette.neutral.lighter},[`& .${I.row}`]:{"&:hover":{backgroundColor:n.palette.neutral.lighter},"&.Mui-selected":{backgroundColor:n.palette.neutral.lighter,"&:hover":{backgroundColor:n.palette.neutral.lighter}}},[`& .${I.cell}`]:{color:n.palette.text.primary,"&:focus, &:focus-within":{outline:`2px solid ${n.palette.primary.main}`,outlineOffset:"-2px"}},[`& .${I.footerContainer}`]:{borderTop:`1px solid ${n.palette.neutral.lighter}`},[`& .${I.overlay}`]:{color:n.palette.neutral.dark},...e}})},wS=e=>"name"in e&&typeof e.name=="string"?e.name:"",xS=({className:e,columns:t,data:n=[],hideStarIcon:r=!1,isLoading:o=!1,sort:s,onConfigure:l,alwaysShowConfigureIcon:a=!1,onDelete:c,onEdit:u,onSelectRow:d,renderInlineEdit:h,labels:m={}})=>{const[p,b]=se.useState(""),{actions:x="Actions",noRecords:w="There are no records.",edit:k="Edit",configure:v="Configure"}=m,F=R=>u?u(p,R).then(()=>b("")):Promise.resolve(),j=se.useCallback((R,_)=>()=>{switch(_){case"configure":l==null||l(R);break;case"delete":c==null||c(R);break;case"edit":b(R);break;case"select":d==null||d(R);break}},[l,c,d]),y=R=>!!(l||c||u)&&R!==p,A="#F5F5F5",N="#555555",M="#FFFFFF",P="#364699";return i.jsx(B.TableContainer,{className:e,children:i.jsxs(Ah.default,{sx:{minWidth:800,"& td, & th":{px:4.5,py:3}},children:[i.jsx(Vh.default,{sx:{background:"rgba(217, 217, 217, 0.10)"},children:i.jsxs(dr.default,{sx:{border:"1px solid #F5F5F5"},children:[t.map((R,_)=>i.jsx(bt.default,{sortDirection:(s==null?void 0:s.column)===R.dataKey?s==null?void 0:s.direction:!1,sx:_<t.length-1?{borderRight:"1px solid #F5F5F5"}:void 0,children:R.onSort?i.jsx(Nh.default,{active:(s==null?void 0:s.column)===R.dataKey,direction:(s==null?void 0:s.column)===R.dataKey?s==null?void 0:s.direction:"asc",onClick:()=>{var O;return(O=R.onSort)==null?void 0:O.call(R,{column:R.dataKey,direction:(s==null?void 0:s.column)===R.dataKey&&(s==null?void 0:s.direction)==="asc"?"desc":"asc"})},children:i.jsx(B.Typography,{sx:{color:N,textTransform:"capitalize"},variant:"caption",children:R.label})}):i.jsx(B.Typography,{sx:{color:N,textTransform:"capitalize"},variant:"caption",children:R.label})},`${String(R.dataKey)}-header`)),y()&&i.jsx(bt.default,{children:i.jsx("span",{style:{position:"absolute",width:1,height:1,overflow:"hidden",clip:"rect(0,0,0,0)"},children:x})})]})}),o&&i.jsx(Po.default,{sx:{"& td":{borderBottomColor:A}},children:i.jsx(dr.default,{children:i.jsx(bt.default,{colSpan:t.length+(y()?1:0),children:i.jsx(B.LinearProgress,{"aria-label":"Loading"})})})}),!o&&n.length===0&&i.jsx(Po.default,{sx:{"& td":{borderBottomColor:A}},children:i.jsx(dr.default,{children:i.jsx(bt.default,{colSpan:t.length+(y()?1:0),children:i.jsx(B.Typography,{sx:{textAlign:"center",color:N,my:5},children:w})})})}),!o&&n.length>0&&i.jsx(Po.default,{sx:{"& td":{borderBottomColor:A}},children:n.map(R=>i.jsxs(dr.default,{sx:{"&:hover, &:focus-within":{backgroundColor:A},"&:hover .favorite-button, &:focus-within .favorite-button":{backgroundColor:M},"&:hover .hover-icon, &:focus-within .hover-icon":{opacity:1},"&:focus-visible":{outline:`2px solid ${P}`,outlineOffset:"-2px"},cursor:R.id!==p?"pointer":"default"},tabIndex:R.id!==p?0:void 0,onClick:R.id!==p?j(R.id,"select"):void 0,onKeyDown:R.id!==p?_=>{_.target===_.currentTarget&&_.key==="Enter"&&(_.preventDefault(),j(R.id,"select")())}:void 0,children:[R.id===p?i.jsx(bt.default,{colSpan:t.length+(y(R.id)?0:1),children:h?h(R.id,wS(R),F,()=>b("")):null}):t.map((_,O)=>{var D,V;return i.jsx(bt.default,{children:i.jsx("div",{style:O===0?{display:"flex",alignItems:"center",gap:10}:void 0,children:O===0?i.jsxs(i.Fragment,{children:[!r&&i.jsx(B.IconButton,{disabled:!0,"aria-label":"favorite",className:"favorite-button",size:"small",sx:{borderRadius:"10px",backgroundColor:A},children:i.jsx(Hh.default,{fontSize:"inherit"})}),i.jsx(B.Typography,{sx:{fontWeight:700,color:"text.primary",fontSize:"0.875rem",cursor:"pointer","&:hover":{textDecoration:"underline"}},onClick:j(R.id,"select"),children:_.render?_.render(R):_.dataKey?String((D=R[_.dataKey])!=null?D:""):""})]}):i.jsx("div",{style:{fontWeight:400,color:N,fontSize:"0.75rem"},children:_.render?_.render(R):_.dataKey?String((V=R[_.dataKey])!=null?V:""):""})})},`${String(R.id)}-${String(_.dataKey)}`)}),y(R.id)&&i.jsxs(bt.default,{align:"right",children:[l&&i.jsx(B.Tooltip,{title:v,children:i.jsx(B.IconButton,{"aria-label":v,className:a?void 0:"hover-icon",size:"small",sx:a?void 0:{opacity:0},onClick:_=>{_.stopPropagation(),j(R.id,"configure")()},children:i.jsx(_h.default,{fontSize:"inherit"})})}),u&&i.jsx(B.Tooltip,{title:k,children:i.jsx(B.IconButton,{"aria-label":k,className:"hover-icon",size:"small",sx:{opacity:0},onClick:_=>{_.stopPropagation(),j(R.id,"edit")()},children:i.jsx(Dh.default,{fontSize:"inherit"})})})]})]},R.id))})]})})},yS=({children:e})=>i.jsx(B.Table,{sx:{"& .MuiTableHead-root":{background:"rgba(217, 217, 217, 0.10)","& .MuiTableCell-root":{border:"1px solid #F5F5F5",color:"text.secondary"}},"& .MuiTableCell-root":{whiteSpace:"nowrap"},"& .MuiTableBody-root":{"& .MuiTableRow-root":{"&.checked":{background:"#F5F5F5"},"&:hover":{background:"#F5F5F5",transition:"200ms","& .actionIcons":{opacity:"1"},"& .tableButton":{background:"#FFF"}}}}},children:e}),ol=()=>i.jsxs(B.SvgIcon,{fontSize:"small",children:[i.jsx("rect",{fill:"#fff",height:"20",width:"20",x:"2",y:"2"}),i.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z",fill:"none",stroke:"#D9D9D9",strokeWidth:"2"}),i.jsx("path",{d:"M17.99 9l-1.41-1.42-6.59 6.59-2.58-2.57-1.42 1.41 4 3.99z"})]}),vd=()=>i.jsxs(B.SvgIcon,{fontSize:"small",children:[i.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z",fill:"none",stroke:"#D9D9D9",strokeWidth:"2"}),i.jsx("path",{d:"M7 11h10v2H7z"})]}),Sd=({allChecked:e,someChecked:t,onSelectAll:n})=>i.jsx(bt.default,{sx:{padding:"8px 12px",width:"1%"},children:i.jsx(B.Checkbox,{checked:e,checkedIcon:i.jsx(ol,{}),indeterminate:t&&!e,indeterminateIcon:i.jsx(vd,{}),size:"small",sx:{padding:"0","& .MuiSvgIcon-root":{fill:"#D9D9D9"},"&.Mui-checked .MuiSvgIcon-root, &.MuiCheckbox-indeterminate .MuiSvgIcon-root":{fill:"#364699"}},onChange:n,slotProps:{input:{"aria-label":"Select all rows",ref:r=>{r&&(r.indeterminate=t&&!e)}}}})}),kd=({sortDirection:e})=>i.jsxs("svg",{fill:"none",height:"16",viewBox:"0 0 13 16",width:"13",xmlns:"http://www.w3.org/2000/svg",children:[i.jsx("path",{d:"M3.5 7L6.5 3L9.5 7H3.5Z",fill:"#333333",fillOpacity:e==="desc"?"0":"0.6"}),i.jsx("path",{d:"M3.5 9L6.5 13L9.5 9H3.5Z",fill:"#333333",fillOpacity:e==="asc"?"0":"0.6"})]});function vS({field:e,label:t,sx:n,value:r,setTableSearch:o,setTableSort:s,sortDirection:l,searchable:a=!0}){const[c,u]=se.useState(!1),d=a&&(c||!!r);return i.jsx(bt.default,{sx:{padding:"3px 2px 3px 6px",...n},onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),children:i.jsxs(B.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"2px"},children:[a?i.jsx(B.TextField,{disabled:!d,placeholder:t,size:"small",slotProps:{input:{startAdornment:i.jsx(B.InputAdornment,{position:"start",children:i.jsx(zh.default,{sx:{transition:h=>h.transitions.create("all",{duration:h.transitions.duration.standard}),transitionDelay:"100ms",opacity:d?1:0,fontSize:"1rem"}})}),endAdornment:i.jsx(B.InputAdornment,{position:"end",sx:{position:"absolute",top:"2px",right:"2px"},children:i.jsx(B.IconButton,{size:"small","aria-label":`Clear ${t} search`,sx:{transition:h=>h.transitions.create("all",{duration:h.transitions.duration.standard}),opacity:r?1:0,pointerEvents:r?"auto":"none"},onClick:()=>o(h=>({...h,[e]:""})),children:i.jsx($h.default,{sx:{fontSize:"0.75rem"}})})}),autoComplete:"off"}},sx:{"& .MuiInputBase-root":{transition:h=>h.transitions.create("all",{duration:h.transitions.duration.standard}),backgroundColor:d?"neutral.lightest":"transparent",borderRadius:"8px",color:d?"inherit":"text.secondary",fontSize:"0.75rem",height:"unset",paddingLeft:"6px",paddingRight:"4px"},"& .MuiInputBase-input":{transition:h=>h.transitions.create("all",{duration:h.transitions.duration.standard}),cursor:d?"text":"default",position:"relative",left:d?"0":"-18px",padding:"4px 0"},"& .MuiInputBase-input::placeholder":{opacity:"1"},"& .MuiOutlinedInput-notchedOutline":{borderWidth:"1px !important",borderColor:d?"#D9D9D9 !important":"transparent !important"},"& .MuiInputAdornment-positionStart":{marginRight:"4px"}},value:r,onChange:h=>o(m=>({...m,[e]:h.target.value}))}):i.jsx(B.Box,{sx:{color:"text.secondary",fontSize:"0.75rem",lineHeight:1.2,paddingLeft:"6px",whiteSpace:"nowrap"},children:t}),i.jsx(B.IconButton,{size:"small","aria-label":`Sort by ${t}`,onClick:()=>s(h=>{if(!h)return{field:e,direction:"asc"};if(h.direction==="asc")return{field:e,direction:"desc"}}),children:i.jsx(kd,{sortDirection:l})})]})})}const Id=se.memo(vS),SS={position:"absolute",width:"1px",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:0},kS=({shouldRenderCheckbox:e,shouldRenderAction:t,items:n,tableSearch:r,setTableSearch:o,tableSort:s,setTableSort:l,allChecked:a,someChecked:c,onSelectAll:u})=>i.jsx(B.TableHead,{children:i.jsxs(B.TableRow,{children:[e?i.jsx(Sd,{allChecked:a,someChecked:c,onSelectAll:u}):null,n.map(d=>{var h;return d.type==="tableCell"?i.jsx(bt.default,{children:i.jsx(B.Typography,{sx:{color:"text.secondary",fontSize:"0.75rem"},children:d.label})},d.id):d.type==="searchable"?i.jsx(Id,{field:d.field,label:d.label,setTableSearch:o,setTableSort:l,sortDirection:(s==null?void 0:s.field)===d.field?s==null?void 0:s.direction:void 0,value:(h=r[d.field])!=null?h:""},d.id):null}),t?i.jsx(bt.default,{children:i.jsx(B.Box,{component:"span",sx:SS,children:"Actions"})}):null]})}),Md=se.memo(({id:e,index:t,checked:n,onTableRowCheck:r,children:o,onClick:s,shouldRenderCheckbox:l})=>i.jsxs(dr.default,{className:n?"checked":"",sx:{cursor:s?"pointer":void 0},onClick:s,children:[l?i.jsx(bt.default,{sx:{padding:"13px 12px",borderBottom:"1px solid #F5F5F5"},children:i.jsx(B.Checkbox,{checked:n,checkedIcon:i.jsx(ol,{}),indeterminateIcon:i.jsx(Gh.default,{}),size:"small",sx:{padding:"0","& .MuiSvgIcon-root":{fill:"#D9D9D9"},"&.Mui-checked .MuiSvgIcon-root":{fill:"#364699"}},slotProps:{input:{"aria-label":`Select row ${t+1}`}},onClick:r?a=>{a.stopPropagation(),r(e,t,a)}:void 0})}):null,o]},e));Md.displayName="CustomTableRow";const IS=({label:e})=>i.jsx(bt.default,{sx:{padding:"7px 16px"},children:i.jsx(B.Typography,{sx:{fontSize:"0.75rem"},children:e})});function Ed(e,t,n){const r=u=>typeof u=="string"?u.toLowerCase():Array.isArray(u)&&u.every(d=>typeof d=="string")?u.join(" ").toLowerCase():"",o=(u,d)=>{if(!d)return!0;const h=d.toLowerCase();return typeof u=="string"?u.toLowerCase().includes(h):Array.isArray(u)&&u.every(m=>typeof m=="string")?u.some(m=>m.toLowerCase().includes(h)):!1},s=e.filter(u=>t?Object.entries(t).every(([d,h])=>o(u[d],h)):!0);if(!n)return s;const{field:l,direction:a}=n,c=a==="asc"?1:-1;return[...s].sort((u,d)=>{const h=u[l],m=d[l];if(typeof h=="number"&&typeof m=="number")return c*(h-m);const p=r(h),b=r(m);return p&&b?c*p.localeCompare(b):0})}const MS=e=>{const[t,n]=se.useState({}),[r,o]=se.useState(),[s,l]=se.useState(new Set),[a,c]=se.useState(null),u=Ed(e,t,r),d=u.map(w=>w.id).filter(Boolean),h=d.length>0&&d.every(w=>s.has(w)),m=d.some(w=>s.has(w));return{tableSearch:t,setTableSearch:n,tableSort:r,setTableSort:o,allChecked:h,someChecked:m,onSelectAll:()=>{u.every(w=>s.has(w.id))?l(new Set):l(new Set(u.map(w=>w.id)))},onTableRowCheck:(w,k,v)=>{if(v.shiftKey&&a!==null){const F=Math.min(a,k),j=Math.max(a,k),y=new Set(s);d.slice(F,j+1).forEach(A=>y.add(A)),l(y)}else{const F=new Set(s);F.has(w)?F.delete(w):F.add(w),l(F)}c(k)},filteredTableData:u,checkedIds:s,unselectAll:()=>l(new Set)}},Pd=g.default.forwardRef(({onClick:e,holdDuration:t=2e3,holdLabel:n="Hold to confirm...",children:r,disabled:o,...s},l)=>{const[a,c]=se.useState(!1),[u,d]=se.useState(!1),[h,m]=se.useState(0),p=se.useRef(null),b=se.useRef(null),x=se.useRef(0),w=se.useRef(!1),k=()=>{p.current&&(clearTimeout(p.current),p.current=null),b.current&&(clearInterval(b.current),b.current=null)},v=()=>{o||u||a||(k(),x.current=performance.now(),m(0),c(!0),b.current=setInterval(()=>{const j=performance.now()-x.current;m(Math.min(j/t*100,100))},16),p.current=setTimeout(()=>{k(),m(100),c(!1),d(!0),(async()=>{try{await e()}finally{d(!1),m(0)}})()},t))},F=()=>{a&&(k(),c(!1),m(0))};return se.useEffect(()=>()=>k(),[]),i.jsx(B.Box,{sx:{position:"relative"},children:i.jsx(B.Button,{ref:l,disabled:o||u,onPointerDown:v,onPointerUp:F,onPointerLeave:F,onPointerCancel:F,onKeyDown:j=>{j.key!==" "&&j.key!=="Enter"||w.current||(j.preventDefault(),w.current=!0,v())},onKeyUp:j=>{j.key!==" "&&j.key!=="Enter"||(w.current=!1,F())},onBlur:()=>{w.current=!1,F()},sx:{display:"flex",alignItems:"center",gap:1,width:"100%",touchAction:"none"},...s,children:a?i.jsxs(i.Fragment,{children:[i.jsx(B.CircularProgress,{size:18,sx:{color:"inherit","& .MuiCircularProgress-circleDeterminate":{transition:"none"}},thickness:7,value:h,variant:"determinate"}),i.jsx("span",{children:n})]}):r})})});Pd.displayName="HoldToConfirmButton";const ES=({menuItems:e,ariaLabel:t="Open menu"})=>{const[n,r]=se.useState(null),o=!!n,s=se.useId(),l=`${s}-trigger`,a=`${s}-menu`,c=h=>{r(h.currentTarget)},u=()=>{r(null)},d=h=>{h(),u()};return i.jsxs(i.Fragment,{children:[i.jsx(B.IconButton,{"aria-controls":o?a:void 0,"aria-expanded":o,"aria-haspopup":"true","aria-label":t,id:l,onClick:c,children:i.jsx(Bh.default,{})}),i.jsx(B.Menu,{anchorEl:n,anchorOrigin:{vertical:"bottom",horizontal:"right"},open:o,slotProps:{list:{id:a,"aria-labelledby":l}},transformOrigin:{vertical:"top",horizontal:"right"},onClose:u,children:e.map((h,m)=>i.jsx(B.MenuItem,{onClick:()=>d(h.onClick),children:h.label},m))})]})},PS=({title:e,className:t,subtitle:n,"data-testid":r})=>i.jsxs("div",{children:[i.jsx("h1",{className:`text-primary text-lg font-bold uppercase ${t!=null?t:""}`,"data-testid":r,children:e}),n&&i.jsx("p",{className:"text-neutral text-sm",children:n})]}),cr=({type:e})=>{switch(e){case"error":return i.jsx(Uh.default,{sx:{color:"#5C0924"}});case"info":return i.jsx(Kh.default,{sx:{color:"#161E4A"}});case"success":return i.jsx(Wh.default,{sx:{color:"#00514B"}});case"warning":return i.jsx(Xh.default,{sx:{color:"#816E09"}});case"default":default:return null}},TS=e=>{const t=e.type==="error",n=se.useCallback(r=>{r&&t&&r.focus()},[t]);return i.jsx(ga.default,{ref:n,"aria-label":e.ariaLabel||"Close notification",sx:{position:"absolute",top:8,right:8,padding:"4px"},onClick:()=>e.closeToast(!0),children:i.jsx(qh.default,{sx:{fontSize:"1rem",color:"#555555"}})})},FS=e=>i.jsx(Kt.ToastContainer,{hideProgressBar:!0,newestOnTop:!0,"aria-label":"Toast",className:"whitespace-pre-wrap",closeButton:TS,position:"top-right",transition:Kt.Slide,...e}),ur="relative min-h-auto! text-sm border-l-[5px] rounded-none! p-2! pr-10!",jS={default:(e,t)=>Kt.toast(e,{ariaLabel:e,autoClose:3e3,className:ur,type:"default",icon:i.jsx(cr,{type:"default"}),...t}),error:(e,t)=>Kt.toast.error(e!=null?e:"There was an error! Please try again.",{ariaLabel:e!=null?e:"There was an error! Please try again",autoClose:15e3,className:`${ur} text-[#5C0924]! bg-[#FBEAEC]! border-[#5C0924]`,type:"error",icon:i.jsx(cr,{type:"error"}),...t}),info:(e,t)=>Kt.toast.info(e,{ariaLabel:e,autoClose:3500,className:`${ur} text-[#161E4A]! bg-[#E9ECF6]! border-[#161E4A]`,type:"info",icon:i.jsx(cr,{type:"info"}),...t}),ok:(e,t)=>Kt.toast.success(e!=null?e:"Success!",{ariaLabel:e!=null?e:"Success!",autoClose:2500,className:`${ur} text-[#00514B]! bg-[#EBF6F5]! border-[#00514B]`,type:"success",icon:i.jsx(cr,{type:"success"}),...t}),warning:(e,t)=>Kt.toast.warning(e,{ariaLabel:e,autoClose:3500,className:`${ur} text-[#816E09]! bg-[#FEFBE0]! border-[#816E09]!`,type:"warning",icon:i.jsx(cr,{type:"warning"}),...t}),dismiss:e=>Kt.toast.dismiss(e),isActive:e=>Kt.toast.isActive(e)},OS=ge.styled(({className:e,...t})=>i.jsx(ma.default,{...t,classes:{popper:e}}))(({theme:e})=>({[`& .${Jo.tooltipClasses.tooltip}`]:{backgroundColor:"#FFFFFF",color:e.palette.text.primary,border:"1px solid #D9D9D9",borderRadius:"8px",padding:"16px",fontSize:"0.875rem",fontWeight:400,boxShadow:"0 4px 4px 0 rgba(85, 85, 85, 0.10)",display:"flex",justifyContent:"center",alignItems:"center",gap:"10px",maxWidth:"none"},[`& .${Jo.tooltipClasses.arrow}`]:{color:"#FFFFFF","&::before":{backgroundColor:"#FFFFFF",border:"1px solid #D9D9D9"}}})),RS=({icon:e,title:t,showOnlyOnOverflow:n=!1,children:r,...o})=>{const[s,l]=se.useState(!1),[a,c]=se.useState(null);se.useEffect(()=>{if(!n||!a)return;const m=()=>{l(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight)};m();const p=new ResizeObserver(m);return p.observe(a),()=>p.disconnect()},[n,a]);const u=e?i.jsxs(B.Box,{sx:{display:"flex",alignItems:"center",gap:"10px"},children:[e,t]}):t,d=n&&se.isValidElement(r)?se.cloneElement(r,{ref:c}):r,h=n?!s:o.disableHoverListener;return i.jsx(OS,{...o,disableHoverListener:h,title:u,children:d})},LS={sm:{width:"1.5rem",height:"1.5rem",fontSize:"0.75rem"},md:{width:"2.5rem",height:"2.5rem",fontSize:"0.875rem"},lg:{width:"3.75rem",height:"3.75rem",fontSize:"1.5rem"},xl:{width:"7.5rem",height:"7.5rem",fontSize:"3rem"}},DS=({user:e,size:t="sm"})=>{var u,d,h,m;const n=ge.useTheme(),r=(d=(u=e==null?void 0:e.personalInfo.firstName)==null?void 0:u.charAt(0).toUpperCase())!=null?d:"",o=(m=(h=e==null?void 0:e.personalInfo.lastName)==null?void 0:h.charAt(0).toUpperCase())!=null?m:"",s=`${r}${o}`.trim()||" ",{width:l,height:a,fontSize:c}=LS[t];return i.jsx(B.Avatar,{sx:{backgroundColor:n.palette.primary.main,color:n.palette.primary.contrastText,width:l,height:a,fontSize:c,border:t==="sm"?`2px solid ${n.palette.neutral.lighter}`:void 0,[n.breakpoints.between("sm","md")]:{width:"33px !important",height:"33px !important"}},children:s})},HS=({messages:e})=>{const t=ge.useTheme();return e.length===0?null:i.jsx(B.Alert,{icon:i.jsx(Yh.default,{sx:{color:"#665312"}}),severity:"warning",sx:{display:"flex",backgroundColor:t.palette.warning.lightest,justifyContent:"center"},children:i.jsx(B.Typography,{sx:{fontFamily:"Lato",fontWeight:500,color:"#665312"},children:e.join(", ")})})},Td=24,Qi=-40,_S=0,Fd=e=>{if(e<=0)return 0;const t=20*Math.log10(e);return Math.min(1,Math.max(0,(t-Qi)/(_S-Qi)))},jd=(e,t,n=Td)=>e<=Math.floor(n*t),AS={default:{height:"18px",gap:"0.25rem",bar:{width:"0.625rem"},radius:"2px"},small:{height:"0.625rem",gap:"2px",bar:{width:"7px",boxSizing:"border-box"},radius:"1px"}},sl=({className:e,volume:t,label:n="Input Level",hideLabel:r=!1,barCount:o=Td,size:s="default"})=>{const l=ge.useTheme(),a=Array.from({length:o},(d,h)=>h+1),c=AS[s],u=Fd(t);return i.jsxs(B.Box,{className:e,sx:{width:"100%",display:"flex",flexDirection:"column",gap:"0.5rem"},children:[!r&&i.jsx(B.Typography,{sx:{fontFamily:l.typography.fontFamily,fontWeight:l.typography.fontWeightBold},children:n}),i.jsx(B.Box,{...r&&{role:"img","aria-label":n},sx:{width:"100%",height:c.height,display:"flex",gap:c.gap},children:a.map(d=>i.jsx(B.Box,{sx:{...c.bar,height:"100%",borderRadius:c.radius,border:`0.5px solid ${l.palette.neutral.light}`,backgroundColor:jd(d,u,o)?l.palette["acuity-green"].main:l.customColors.white}},`audio-volume-bar-${d}`))})]})},ll=e=>{const[t,n]=se.useState(0);return se.useEffect(()=>{if(!e){n(0);return}let r;const o=new AudioContext,s=o.createMediaStreamSource(e),l=o.createAnalyser();l.fftSize=512,s.connect(l);const a=new Uint8Array(l.frequencyBinCount),c=()=>{let u=0;l.getByteTimeDomainData(a);for(let d=0;d<a.length;d++){const h=(a[d]-128)/128;u+=h*h}n(Math.sqrt(u/a.length)),r=requestAnimationFrame(c)};return c(),()=>{cancelAnimationFrame(r),l.disconnect(),s.disconnect(),o.close()}},[e]),t},VS=({stream:e,levelLabel:t})=>{const n=ll(e);return i.jsx(B.Box,{"data-testid":"recording-audio-level",sx:{width:"fit-content"},children:i.jsx(sl,{volume:n,label:t,hideLabel:!0,barCount:8,size:"small"})})},NS=({label:e="Recording",stream:t,levelLabel:n="Input Level",className:r})=>{const o=ge.useTheme();return i.jsxs(B.Box,{className:r,role:"alert",sx:{display:"inline-grid",gridTemplateColumns:"auto auto",alignItems:"center",columnGap:"0.5rem",rowGap:"0.25rem",padding:"0.5rem 0.75rem",backgroundColor:o.customColors.white,borderRadius:"9999px",boxShadow:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)"},children:[i.jsx(B.Box,{"aria-hidden":!0,sx:{width:12,height:12,borderRadius:"50%",backgroundColor:o.palette.error.main,justifySelf:"center"}}),i.jsx(B.Typography,{sx:{fontSize:"0.875rem",fontWeight:500,lineHeight:"1.25rem",color:o.palette.neutral.darkest,margin:0},children:e}),i.jsx(Zh.default,{"aria-hidden":!0,sx:{color:o.palette.neutral.darkest,fontSize:14,justifySelf:"center"}}),i.jsx(VS,{stream:t,levelLabel:n})]})},$S={audio:{label:"Select your Microphone",okMessage:"Microphone is working perfectly!",errorMessage:"There is a problem with your microphone. Please select your input again to proceed with your test."},video:{label:"Select your Camera",okMessage:"Camera is working as intended",errorMessage:"There is a problem with your webcam, Please select your camera input again to proceed with your test. "}},Od=({className:e,disabled:t,error:n,hideLabel:r=!1,options:o=[],type:s,value:l="",onChange:a,showMessage:c=!0,pendingMessage:u,pendingTone:d="neutral",compact:h=!1,labels:m})=>{const p=ge.useTheme(),{label:b,okMessage:x,errorMessage:w}=m!=null?m:$S[s],k=se.useMemo(()=>({width:h?"329px":r?"485px":"100%",height:h?"49px":r?"54px":"auto",labelFontSize:h?"8px":"10px",valueFontSize:h?"12px":"16px",labelColor:h?p.palette.neutral.darkest:p.palette.neutral.main,valueColor:h?p.palette.neutral.darkest:p.palette.neutral.dark,borderRadius:h?"10px":"8px",gap:h?"0px":"4px"}),[h,r,p.palette.neutral]),v=se.useMemo(()=>r||h?{width:k.width,height:k.height,borderRadius:k.borderRadius,padding:"10px","& .MuiSelect-select":{padding:h?"19px 10px":"10px",display:"flex",flexDirection:"column",gap:"4px"}}:{},[r,h,k]),F=se.useCallback(M=>{a(M.target.value)},[a]),j=se.useCallback(M=>{const P=o.find(R=>R.deviceId===M);return!P||!r&&!h?(P==null?void 0:P.label)||"":i.jsxs(B.Box,{sx:{display:"flex",flexDirection:"column",gap:k.gap},children:[i.jsx(B.Typography,{component:"span",sx:{fontFamily:p.typography.fontFamily,fontSize:k.labelFontSize,fontWeight:600,lineHeight:"20px",color:k.labelColor},children:b}),i.jsx(B.Typography,{component:"span",sx:{fontFamily:p.typography.fontFamily,fontSize:k.valueFontSize,fontWeight:600,lineHeight:"20px",color:k.valueColor},children:P.label})]})},[o,r,h,k,p.typography,b]),y=!n&&!!l&&!!u,A=!n&&!!l&&!u,N=!!n;return i.jsxs(B.Box,{className:e,sx:{width:"100%",minWidth:"300px"},children:[!r&&i.jsx(B.Typography,{sx:{fontFamily:p.typography.fontFamily,fontWeight:p.typography.fontWeightBold,mb:"0.5rem"},children:b}),i.jsx(B.FormControl,{sx:{mb:"0.375rem"},fullWidth:!0,disabled:!o.length,children:i.jsx(B.Select,{SelectDisplayProps:{"aria-label":b},disabled:t,value:l,onChange:F,sx:v,renderValue:j,children:o.map(M=>i.jsx(B.MenuItem,{"aria-label":M.label,value:M.deviceId,children:M.label},M.deviceId))})}),c&&i.jsxs(B.Box,{"aria-live":"polite",sx:{minHeight:"20px",display:"flex",alignItems:"center",gap:"0.5rem"},children:[y&&d==="neutral"&&i.jsxs(i.Fragment,{children:[i.jsx(eg.default,{fontSize:"small",sx:{color:p.palette.neutral.dark}}),i.jsx(B.Typography,{sx:{fontSize:"10px",color:p.palette.neutral.dark},children:u})]}),y&&d==="error"&&i.jsxs(i.Fragment,{children:[i.jsx(ml.default,{fontSize:"small",sx:{color:p.palette["acuity-red"].main}}),i.jsx(B.Typography,{sx:{fontSize:"10px",color:p.palette["acuity-red"].main},children:u})]}),A&&i.jsxs(i.Fragment,{children:[i.jsx(Jh.default,{fontSize:"small",sx:{color:p.palette["acuity-green"].darkest}}),i.jsx(B.Typography,{sx:{fontSize:"10px",color:p.palette["acuity-green"].darkest},children:x})]}),N&&i.jsxs(i.Fragment,{children:[i.jsx(ml.default,{fontSize:"small",sx:{color:p.palette["acuity-red"].main}}),i.jsx(B.Typography,{sx:{fontSize:"10px",color:p.palette["acuity-red"].main},children:w})]})]})]})},Rd=.02,Ld=250,Dd=8e3,Hd=(e,t)=>{const[n,r]=se.useState(t?"listening":"idle"),o=se.useRef(0),s=e>=Rd,l=n==="detected";return se.useEffect(()=>{if(o.current=0,!t){r("idle");return}r("listening");const a=setTimeout(()=>{r(c=>c==="listening"?"silent":c)},Dd);return()=>clearTimeout(a)},[t]),se.useEffect(()=>{if(!t||!s||l)return;const a=Date.now(),c=setTimeout(()=>r("detected"),Math.max(0,Ld-o.current));return()=>{clearTimeout(c),o.current+=Date.now()-a}},[t,s,l]),n},_d={speakToTest:"Speak to check your microphone.",noSoundDetected:"No sound detected. Speak into your microphone or choose another device.",inputLevel:"Input Level"},zS=({stream:e})=>{const t=ge.useTheme(),n=se.useRef(null);return se.useEffect(()=>{n.current&&(n.current.srcObject=e!=null?e:null)},[e]),i.jsxs(B.Box,{sx:{position:"relative",width:"100%",aspectRatio:"16 / 9",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"12px",border:`1px solid ${t.palette.neutral.light}`,backgroundColor:t.palette.neutral.lighter,overflow:"hidden"},children:[i.jsx(Qh.default,{"aria-hidden":!0,sx:{fontSize:80,color:t.palette.neutral.dark}}),i.jsx(B.Box,{component:"video",ref:n,autoPlay:!0,muted:!0,playsInline:!0,disablePictureInPicture:!0,"aria-hidden":!0,sx:{position:"absolute",inset:0,width:"100%",height:"100%",objectFit:"cover",transform:"scaleX(-1)",display:e?"block":"none"}})]})},GS=({devices:e,labels:t,onStatusChange:n})=>{const r=ll(e.audioStream),o=Hd(r,e.audioStream);se.useEffect(()=>n==null?void 0:n(o),[o,n]);let s;return o==="silent"?s=t.noSoundDetected:o!=="detected"&&(s=t.speakToTest),i.jsxs(i.Fragment,{children:[i.jsx(Od,{type:"audio",disabled:e.audioPerm!=="granted"||!e.audioDevices.length,error:e.audioError,options:e.audioDevices,value:e.activeAudioId,onChange:e.onSelectAudio,pendingMessage:s,pendingTone:o==="silent"?"error":"neutral",labels:t.microphone}),i.jsx(sl,{volume:r,label:t.inputLevel})]})},BS=({devices:e,onMicStatusChange:t,labels:n,className:r})=>{const o=ge.useTheme(),s={..._d,...n};return i.jsxs(B.Box,{className:r,sx:{width:"100%",display:"flex",justifyContent:"center",flexWrap:{xs:"wrap",md:"nowrap"},gap:"3rem"},children:[i.jsx(B.Box,{sx:{width:"100%",maxWidth:"624px"},children:i.jsx(zS,{stream:e.videoStream})}),i.jsx(B.Box,{sx:{display:{xs:"none",md:"block"},borderLeft:`1px solid ${o.palette.neutral.lighter}`}}),i.jsxs(B.Box,{sx:{width:"100%",maxWidth:"330px",display:"flex",flexDirection:"column",gap:"2.5rem"},children:[i.jsx(Od,{type:"video",disabled:e.videoPerm!=="granted"||!e.videoDevices.length,error:e.videoError,options:e.videoDevices,value:e.activeVideoId,onChange:e.onSelectVideo,labels:s.camera}),i.jsx(GS,{devices:e,labels:s,onStatusChange:t})]})]})};function Ji(e){const t=Math.abs(e);return t<10?`0${t}`:t.toString()}function il(e){const t=Math.floor(Math.abs(e)/60)*Math.sign(e),n=Math.abs(e)%60;return`${e<0?"-":""}${Ji(t)}:${Ji(n)}`}const WS=({timeLeft:e,timerLabel:t,variant:n="info",showClockIcon:r=!0,accessibleLabel:o="Time Left : "})=>{const s=ge.useTheme(),l=il(e),a=n==="info",c=a?s.palette.primary.main:s.palette.warning.darkest,u=a?s.palette.primary.lightest:s.palette.warning.lightest;return i.jsxs(B.Stack,{role:"timer","aria-live":"polite","aria-label":t||o,direction:"row",sx:{color:c,padding:{xs:"0.5rem 0.75rem",sm:"0.75rem 1rem"},backgroundColor:u,justifyContent:"space-between",borderRadius:"1rem",minWidth:0,maxWidth:"100%",overflow:"hidden",flexShrink:1,...a?{}:{border:`1px solid ${c}`}},children:[i.jsxs(B.Stack,{direction:"row",spacing:"0.25rem",alignItems:"center",sx:{minWidth:0,overflow:"hidden",flexShrink:1},children:[r&&i.jsx(tg.default,{sx:{flexShrink:0}}),t&&i.jsx(B.Typography,{sx:{fontSize:{xs:"0.875rem",sm:"1rem"},whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",minWidth:0},children:t})]}),i.jsx(B.Typography,{sx:{fontWeight:"bold",ml:"0.5rem",fontSize:{xs:"0.875rem",sm:"1rem"},flexShrink:0,minWidth:"fit-content"},children:l})]})},Ad=B.styled(B.Box)(()=>({width:"100%",maxWidth:624,aspectRatio:"4/3",borderRadius:10,overflow:"hidden",position:"relative",height:"100%",maxHeight:368,marginBottom:"2.5rem",display:"flex",alignItems:"center",justifyContent:"center"})),qS=({imageUrl:e,altText:t="Preview Image"})=>e?i.jsx(Ad,{children:i.jsx("img",{src:e,alt:t,style:{width:"100%",height:"100%",objectFit:"contain",display:"block"}})}):null,Vt="Lato, sans-serif",US=e=>{var t,n,r,o,s,l,a,c,u,d,h,m,p,b,x,w,k,v,F,j,y,A;return{h1:{fontFamily:(t=e.typography.fontFamily)!=null?t:Vt,fontWeight:(n=e.typography.fontWeightBold)!=null?n:700,fontSize:(r=e.typography["4xl"])!=null?r:"3rem",textAlign:"left",verticalAlign:"middle"},h2:{fontFamily:(o=e.typography.fontFamily)!=null?o:Vt,fontWeight:(s=e.typography.fontWeightMedium)!=null?s:600,fontSize:(l=e.typography["3xl"])!=null?l:"2.5rem",textAlign:"left",verticalAlign:"middle"},h3:{fontFamily:(a=e.typography.fontFamily)!=null?a:Vt,fontWeight:(c=e.typography.fontWeightRegular)!=null?c:400,fontSize:(u=e.typography["2xl"])!=null?u:"2rem",textAlign:"left",width:"100%",mt:"1rem"},h4:{fontFamily:(d=e.typography.fontFamily)!=null?d:Vt,fontWeight:(h=e.typography.fontWeightMedium)!=null?h:700,fontSize:(m=e.typography.base)!=null?m:"1rem",textAlign:"left",verticalAlign:"middle"},ul:{fontFamily:(p=e.typography.fontFamily)!=null?p:Vt,fontWeight:(b=e.typography.fontWeightRegular)!=null?b:400,listStyleType:"disc",pl:"1rem",textAlign:"left",width:"100%",pt:0},ol:{fontFamily:(x=e.typography.fontFamily)!=null?x:Vt,fontWeight:(w=e.typography.fontWeightRegular)!=null?w:400,listStyleType:"decimal",pl:"1rem",mt:"0.5rem",textAlign:"left",width:"100%"},p:{fontFamily:(k=e.typography.fontFamily)!=null?k:Vt,fontWeight:(v=e.typography.fontWeightRegular)!=null?v:400,mt:"0.25rem",textAlign:"left",wordBreak:"break-word",width:"100%"},a:{fontFamily:(F=e.typography.fontFamily)!=null?F:Vt,fontWeight:(j=e.typography.fontWeightRegular)!=null?j:400,color:e.palette.primary.main,textDecoration:"underline"},li:{fontFamily:(y=e.typography.fontFamily)!=null?y:Vt,fontWeight:(A=e.typography.fontWeightRegular)!=null?A:400,display:"list-item",p:0}}},tn=(e,t,n)=>{var o,s;const r=e.typography[t];return{fontSize:(o=r==null?void 0:r.fontSize)!=null?o:n.fontSize,lineHeight:(s=r==null?void 0:r.lineHeight)!=null?s:n.lineHeight}},al=e=>{var l,a,c,u;const t=(l=e.typography.fontFamily)!=null?l:Vt,n=(a=e.typography.fontWeightRegular)!=null?a:400,r=(c=e.typography.fontWeightMedium)!=null?c:600,o=(u=e.typography.fontWeightBold)!=null?u:700,s={fontFamily:t,letterSpacing:"normal",textAlign:"left",m:0};return{fontFamily:t,"& h1":{...s,...tn(e,"4xl",{fontSize:"2.25rem",lineHeight:"3rem"}),fontWeight:o},"& h2":{...s,...tn(e,"3xl",{fontSize:"1.625rem",lineHeight:"2.25rem"}),fontWeight:r},"& h3":{...s,...tn(e,"2xl",{fontSize:"1.4375rem",lineHeight:"2rem"}),fontWeight:n,mt:"1rem"},"& h4":{...s,...tn(e,"base",{fontSize:"1rem",lineHeight:"1.5rem"}),fontWeight:r},"& h5":{...s,...tn(e,"sm",{fontSize:"0.875rem",lineHeight:"1.25rem"}),fontWeight:o},"& h6":{...s,...tn(e,"sm",{fontSize:"0.875rem",lineHeight:"1.25rem"}),fontWeight:r},"& p":{fontFamily:t,...tn(e,"base",{fontSize:"1rem",lineHeight:"1.5rem"}),fontWeight:n,letterSpacing:"normal",textAlign:"left",wordBreak:"break-word",m:0,mt:"0.25rem"},"& ul, & ol":{fontFamily:t,...tn(e,"base",{fontSize:"1rem",lineHeight:"1.5rem"}),fontWeight:n,textAlign:"left",m:0,pl:"1rem",pr:0},"& ul":{listStyleType:"disc",pt:0,pb:"0.5rem"},"& ol":{listStyleType:"decimal",mt:"0.5rem",pt:"0.5rem",pb:"0.5rem"},"& li":{display:"list-item",m:0,p:0},"& li > p":{m:0},"& a":{color:e.palette.primary.main,textDecoration:"underline"},"& strong":{fontWeight:o},"& em":{fontStyle:"italic"}}},KS=B.styled(B.Box)(({theme:e})=>({width:"100%",borderRadius:"10px",overflow:"hidden",position:"relative",height:"100%",padding:"0.5rem",fontFamily:e.typography.fontFamily})),XS=({content:e=""})=>{const t=ge.useTheme(),n=se.useMemo(()=>al(t),[t]);return i.jsx(KS,{"data-testid":"content-text",sx:n,children:i.jsx(ng.default,{components:{a({children:r,href:o}){return i.jsx("a",{href:o,target:"_blank",rel:"noopener noreferrer",children:r})}},children:e})})},tt={primary:{darkest:"#161E4A",dark:"#253170",main:"#364699",light:"#7779B8",lighter:"#B0B1D7",lightest:"#E9ECF6"},secondary:{darkest:"#15436E",dark:"#205C94",main:"#2C76BC",light:"#799DD1",lighter:"#B3C6E5",lightest:"#EAF1F9"},error:{darkest:"#720202",dark:"#A90508",main:"#E40A0A",light:"#F97054",lighter:"#FFB19E",lightest:"#FFECE8"},info:{darkest:"#0D556D",dark:"#157393",main:"#5A65E4",light:"#76B2CF",lighter:"#B2D3E3",lightest:"#EBF4F8"},warning:{darkest:"#816E09",dark:"#E0CA01",main:"#FCE833",light:"#FFEE7A",lighter:"#FFF5B1",lightest:"#FEFBE0"},success:{darkest:"#24590A",dark:"#387F14",main:"#4DA81F",light:"#89C368",lighter:"#BCDEA9",lightest:"#EEF8EB"},neutral:{darkest:"#333333",dark:"#555555",main:"#949494",light:"#B8B8B8",lighter:"#F5F5F5",lightest:"#FFFFFF"},"acuity-green":{darkest:"#00514B",dark:"#007A72",main:"#00A59B",light:"#70C0B8",lighter:"#B0DBD6",lightest:"#EBF6F5"},"acuity-red":{darkest:"#5C0924",dark:"#8A1339",main:"#BA1E50",light:"#D66D80",lighter:"#ECACB5",lightest:"#FBEAEC"},customColors:{black:"#000000",white:"#FFFFFF","light-gray":"#D9D9D9","medium-gray":"#767676","transparent-medium":"rgba(0, 0, 0, 0.25)","transparent-light":"rgba(0, 0, 0, 0.05)"}},ea=[1,2,3,4,5,6],Vd={toolbar:"Formatting",undo:"Undo",redo:"Redo",textStyle:"Text style",paragraph:"Paragraph",heading:e=>`Heading ${e}`,bold:"Bold",italic:"Italic",numberedList:"Numbered list",bulletedList:"Bulleted list"},YS=e=>i.jsx(B.SvgIcon,{viewBox:"0 0 24 25",...e,children:i.jsx("path",{d:"M7.404 18.5V17.5H14.658C15.6953 17.5 16.5787 17.1443 17.308 16.433C18.0387 15.7217 18.404 14.853 18.404 13.827C18.404 12.801 18.039 11.9357 17.309 11.231C16.5783 10.5257 15.6947 10.173 14.658 10.173H6.916L9.881 13.138L9.173 13.846L5 9.673L9.173 5.5L9.881 6.208L6.916 9.173H14.658C15.9667 9.173 17.085 9.62433 18.013 10.527C18.9397 11.4297 19.403 12.5297 19.403 13.827C19.403 15.1243 18.9397 16.2277 18.013 17.137C17.0863 18.0463 15.9677 18.5007 14.657 18.5H7.404Z"})}),ZS=e=>i.jsx(B.SvgIcon,{viewBox:"0 0 24 25",...e,children:i.jsx("path",{d:"M16.596 18.5V17.5H9.342C8.30467 17.5 7.42133 17.1443 6.692 16.433C5.96133 15.7217 5.596 14.853 5.596 13.827C5.596 12.801 5.961 11.9357 6.691 11.231C7.42167 10.5257 8.30533 10.173 9.342 10.173H17.084L14.119 13.138L14.827 13.846L19 9.673L14.827 5.5L14.119 6.208L17.084 9.173H9.342C8.03333 9.173 6.915 9.62433 5.987 10.527C5.06033 11.4297 4.597 12.5297 4.597 13.827C4.597 15.1243 5.06033 16.2277 5.987 17.137C6.91367 18.0463 8.03233 18.5007 9.343 18.5H16.596Z"})}),QS=ge.alpha(tt.neutral.darkest,.87),Tn=({Icon:e,label:t,onClick:n,disabled:r,pressed:o})=>i.jsx(B.Tooltip,{title:t,children:i.jsx("span",{children:i.jsx(B.IconButton,{"aria-label":t,"aria-pressed":o,disabled:r,size:"small",onClick:n,onMouseDown:s=>s.preventDefault(),sx:{borderRadius:"0.25rem",color:o?tt.customColors.white:tt.neutral.dark,backgroundColor:o?tt.primary.main:"transparent","&:hover":{color:tt.customColors.white,backgroundColor:tt.primary.main},"&.Mui-focusVisible":{outline:`2px solid ${tt.primary.main}`,outlineOffset:2}},children:i.jsx(e,{fontSize:"inherit"})})})}),Zo=()=>i.jsx(B.Divider,{flexItem:!0,orientation:"vertical",sx:{borderColor:tt.neutral.lighter,maxHeight:"30px",mt:"5px",mx:.5}}),JS=({id:e,label:t,value:n,onChange:r,"aria-describedby":o,height:s,disabled:l=!1,labels:a})=>{var k;const c=ge.useTheme(),u={...Vd,...a},d=`label_${e}`,h=se.useRef(n),m=se.useRef(r);se.useEffect(()=>{m.current=r},[r]);const p=Eo.useEditor({extensions:[ag.default.configure({strike:!1,underline:!1,code:!1,codeBlock:!1,horizontalRule:!1,link:{openOnClick:!1}}),oh.Markdown],content:n,contentType:"markdown",editable:!l,editorProps:{attributes:{id:e,role:"textbox","aria-multiline":"true","aria-labelledby":d,...o?{"aria-describedby":o}:{}}},onUpdate:({editor:v})=>{const F=v.getMarkdown();h.current=F,m.current(F)}});se.useEffect(()=>{!p||n===h.current||(h.current=n,p.commands.setContent(n,{contentType:"markdown",emitUpdate:!1}))},[p,n]),se.useEffect(()=>{p==null||p.setEditable(!l)},[p,l]);const b=Eo.useEditorState({editor:p,selector:({editor:v})=>{var F,j,y,A,N,M,P;return{canUndo:(F=v==null?void 0:v.can().undo())!=null?F:!1,canRedo:(j=v==null?void 0:v.can().redo())!=null?j:!1,isBold:(y=v==null?void 0:v.isActive("bold"))!=null?y:!1,isItalic:(A=v==null?void 0:v.isActive("italic"))!=null?A:!1,isOrderedList:(N=v==null?void 0:v.isActive("orderedList"))!=null?N:!1,isBulletList:(M=v==null?void 0:v.isActive("bulletList"))!=null?M:!1,headingLevel:(P=ea.find(R=>v==null?void 0:v.isActive("heading",{level:R})))!=null?P:0}}}),x=se.useMemo(()=>al(c),[c]),w=v=>()=>{l||v()};return i.jsxs(B.Box,{sx:{display:"flex",flexDirection:"column",minWidth:0},children:[i.jsx(B.Typography,{id:d,component:"label",onClick:()=>p==null?void 0:p.commands.focus(),sx:{fontFamily:c.typography.fontFamily,fontSize:"1rem",mb:1,width:"fit-content"},children:t}),i.jsxs(B.Box,{"data-testid":"markdown-editor-frame",sx:{display:"flex",flexDirection:"column",height:s},children:[i.jsxs(B.Box,{role:"toolbar","aria-label":u.toolbar,"aria-controls":e,sx:{display:"flex",flexWrap:"wrap",justifyContent:"flex-start",alignItems:"center",columnGap:.5,rowGap:.5,mb:"0.75rem"},children:[i.jsx(Tn,{Icon:YS,label:u.undo,disabled:l||!(b!=null&&b.canUndo),onClick:w(()=>p==null?void 0:p.chain().focus().undo().run())}),i.jsx(Tn,{Icon:ZS,label:u.redo,disabled:l||!(b!=null&&b.canRedo),onClick:w(()=>p==null?void 0:p.chain().focus().redo().run())}),i.jsx(Zo,{}),i.jsx(B.Tooltip,{title:u.textStyle,placement:"top",children:i.jsxs(B.Select,{variant:"standard",disableUnderline:!0,displayEmpty:!0,disabled:l,value:(k=b==null?void 0:b.headingLevel)!=null?k:0,inputProps:{"aria-label":u.textStyle},IconComponent:v=>i.jsx(ig.default,{...v,sx:{fontSize:"1rem"}}),onChange:v=>{const F=Number(v.target.value);F===0?p==null||p.chain().focus().setParagraph().run():p==null||p.chain().focus().setHeading({level:F}).run()},sx:{minWidth:"120px",fontFamily:c.typography.fontFamily,fontSize:"1rem",color:QS,fontWeight:b!=null&&b.headingLevel?700:400,backgroundColor:"transparent"},children:[i.jsx(B.MenuItem,{value:0,sx:{fontWeight:400},children:u.paragraph}),ea.map(v=>i.jsx(B.MenuItem,{value:v,sx:{fontWeight:700},children:u.heading(v)},v))]})}),i.jsx(Zo,{}),i.jsx(Tn,{Icon:rg.default,label:u.bold,disabled:l,pressed:b==null?void 0:b.isBold,onClick:w(()=>p==null?void 0:p.chain().focus().toggleBold().run())}),i.jsx(Tn,{Icon:og.default,label:u.italic,disabled:l,pressed:b==null?void 0:b.isItalic,onClick:w(()=>p==null?void 0:p.chain().focus().toggleItalic().run())}),i.jsx(Zo,{}),i.jsx(Tn,{Icon:lg.default,label:u.numberedList,disabled:l,pressed:b==null?void 0:b.isOrderedList,onClick:w(()=>p==null?void 0:p.chain().focus().toggleOrderedList().run())}),i.jsx(Tn,{Icon:sg.default,label:u.bulletedList,disabled:l,pressed:b==null?void 0:b.isBulletList,onClick:w(()=>p==null?void 0:p.chain().focus().toggleBulletList().run())})]}),i.jsx(B.Box,{"data-testid":"markdown-editor-scroll",onClick:()=>p==null?void 0:p.commands.focus(),sx:{flex:1,minHeight:s===void 0?"300px":0,overflowY:"auto",overflowWrap:"anywhere",border:`1px solid ${tt.customColors["light-gray"]}`,borderRadius:"0.375rem",px:"1.25rem",py:"0.75rem",cursor:l?"default":"text",backgroundColor:l?tt.neutral.lighter:void 0,"&:focus-within":{borderColor:tt.primary.main},"& .tiptap":{outline:"none",minHeight:"100%"},...x},children:i.jsx(Eo.EditorContent,{editor:p})})]})]})},e5=({label:e,onClick:t,ariaLabel:n})=>{const r=ge.useTheme();return i.jsx(B.Button,{onClick:t,"aria-label":n||e,startIcon:i.jsx(cg.default,{sx:{fontSize:24}}),"data-testid":"video-replay-button",sx:{backgroundColor:r.palette.neutral.lightest,minWidth:"200px",maxWidth:"min(80vw, 500px)",minHeight:"52px",borderRadius:4,padding:"14px 16px",gap:1,pointerEvents:"auto",transition:"transform 0.2s ease, box-shadow 0.2s ease",border:"none",color:r.palette.primary.main,fontWeight:700,fontSize:"1rem",textTransform:"none",whiteSpace:"normal",textAlign:"center",wordBreak:"break-word","&:hover":{backgroundColor:r.palette.neutral.lightest,boxShadow:`0 2px 8px ${r.palette.primary.light}`},"& .MuiButton-startIcon":{color:r.palette.primary.main,fontSize:24,flexShrink:0}},children:e})},t5=ge.styled(B.Button)(({theme:e,disabled:t})=>({whiteSpace:"nowrap",padding:"0.75rem 1rem",height:"48px",borderRadius:"16px",fontSize:e.typography.base.fontSize,fontWeight:e.typography.fontWeightBold,textTransform:"none",marginTop:"1rem","&&":{color:e.customColors.white},backgroundColor:t?e.palette.neutral.main:e.palette.primary.main,"&:hover":{backgroundColor:t?e.palette.neutral.light:e.palette.primary.dark},"&:focus":{boxShadow:`0 0 0 4px ${e.palette.primary.lighter}`},[e.breakpoints.down("sm")]:{whiteSpace:"normal",padding:"0.25rem 0.5rem"}})),n5=ge.styled(B.Button)(({theme:e,disabled:t})=>({whiteSpace:"nowrap",padding:"0.25rem 0.75rem",width:"145px",marginBottom:"1rem",marginTop:"1rem",borderRadius:"1.5rem",backgroundColor:t?e.palette.neutral.light:e.palette.error.dark,"&:hover":{backgroundColor:t?e.palette.neutral.light:e.palette.error.main},"&:focus":{boxShadow:`0 0 0 4px ${e.palette.error.lighter}`},display:"flex",alignItems:"center",justifyContent:"center","&&":{color:e.customColors.white},textTransform:"none",[e.breakpoints.down("sm")]:{whiteSpace:"normal",padding:"0.25rem 0.5rem",width:"100%"}})),r5=({children:e})=>{const t=ge.useTheme();return i.jsx(B.BottomNavigation,{sx:{backgroundColor:t.customColors.white,borderTop:1,borderColor:t.palette.neutral.light,height:"88px",minHeight:"88px",maxHeight:"88px",width:"100%",boxSizing:"border-box",display:"flex",alignItems:"center",justifyContent:"center",borderBottomLeftRadius:"1.5rem",borderBottomRightRadius:"1.5rem",overflow:"hidden",padding:0,flexShrink:0,position:"relative",zIndex:15},children:e})},cl={en:"en-CA",fr:"fr-CA"};function o5(e){const t=(e!=null?e:"").toLowerCase().split(/[-_]/)[0];return t in cl?t:"en"}const s5=1e4;function Nd(e,t){var o;const n=t.toLowerCase(),r=n.split("-")[0];return(o=e.find(s=>s.lang.toLowerCase().replace("_","-")===n))!=null?o:e.find(s=>s.lang.toLowerCase().startsWith(r))}function Qo(){return typeof window!="undefined"&&"speechSynthesis"in window&&typeof window.SpeechSynthesisUtterance=="function"}const l5=({text:e,language:t,playLabel:n="Text to speech",stopLabel:r="Stop reading aloud"})=>{const[o,s]=se.useState(!1),[l]=se.useState(Qo),a=se.useRef(null),c=se.useCallback(()=>{a.current!==null&&(clearInterval(a.current),a.current=null)},[]),u=se.useCallback(()=>{c(),Qo()&&window.speechSynthesis.cancel(),s(!1)},[c]);se.useEffect(()=>u,[u]),se.useEffect(()=>{u()},[e,u]);const d=se.useCallback(()=>{if(!Qo()||!e)return;window.speechSynthesis.cancel();const h=new SpeechSynthesisUtterance(e),m=cl[t];h.lang=m;const p=Nd(window.speechSynthesis.getVoices(),m);p&&(h.voice=p);const b=()=>{c(),s(!1)};h.onend=b,h.onerror=b,s(!0),window.speechSynthesis.speak(h),c(),a.current=setInterval(()=>{if(!window.speechSynthesis.speaking){c();return}window.speechSynthesis.pause(),window.speechSynthesis.resume()},s5)},[e,t,c]);return!l||!e?null:i.jsx(B.Button,{onClick:o?u:d,startIcon:o?i.jsx(ug.default,{}):i.jsx(dg.default,{}),variant:"outlined","aria-live":"polite",sx:{whiteSpace:"nowrap",flexShrink:0,borderRadius:"1rem",textTransform:"none"},children:o?r:n})},$d=pa.default.div`
89
+ `)),r.current=!0),c.current||!M){c.current=!1,A();return}M()},[A,t.autoHeight,M,n]);Ae(e,"rootMount",_),Ae(e,"resize",O),Ae(e,"debouncedResize",t.onResize)}function Bi(e,t){const n=(r,o)=>e.style.setProperty(r,o);n("--DataGrid-hasScrollX",`${Number(t.hasScrollX)}`),n("--DataGrid-hasScrollY",`${Number(t.hasScrollY)}`),n("--DataGrid-scrollbarSize",`${t.scrollbarSize}px`),n("--DataGrid-rowWidth",`${t.rowWidth}px`),n("--DataGrid-columnsTotalWidth",`${t.columnsTotalWidth}px`),n("--DataGrid-leftPinnedWidth",`${t.leftPinnedWidth}px`),n("--DataGrid-rightPinnedWidth",`${t.rightPinnedWidth}px`),n("--DataGrid-headerHeight",`${t.headerHeight}px`),n("--DataGrid-headersTotalHeight",`${t.headersTotalHeight}px`),n("--DataGrid-topContainerHeight",`${t.topContainerHeight}px`),n("--DataGrid-bottomContainerHeight",`${t.bottomContainerHeight}px`),n("--height",`${t.rowHeight}px`)}function bd(e,t,n,r){var s,l;const o=Fc(e.rowHeight,ds.rowHeight,Ib);return{rowHeight:Math.floor(o*n),headerHeight:Math.floor(e.columnHeaderHeight*n),groupHeaderHeight:Math.floor(((s=e.columnGroupHeaderHeight)!=null?s:e.columnHeaderHeight)*n),headerFilterHeight:Math.floor(((l=e.headerFilterHeight)!=null?l:e.columnHeaderHeight)*n),columnsTotalWidth:pd(t),headersTotalHeight:xo(t,e),leftPinnedWidth:r.left.reduce((a,c)=>a+c.computedWidth,0),rightPinnedWidth:r.right.reduce((a,c)=>a+c.computedWidth,0)}}const Wi=new WeakMap;function Iv(e,t){if(t!==void 0)return t;if(e===null)return 0;const n=Wi.get(e);if(n!==void 0)return n;const o=oe.unstable_ownerDocument(e).createElement("div");o.style.width="99px",o.style.height="99px",o.style.position="absolute",o.style.overflow="scroll",o.className="scrollDiv",e.appendChild(o);const s=o.offsetWidth-o.clientWidth;return e.removeChild(o),Wi.set(e,s),s}function qi(e,t){return e.width===t.width&&e.height===t.height}const Mv=typeof globalThis.ResizeObserver!="undefined"?globalThis.ResizeObserver:class{observe(){}unobserve(){}disconnect(){}},Ev=(e,t,n)=>{n.current.caches.rowsMeta={heights:new Map};const r=Rs(n.current.state),o=kr(n),s=Mr(n.current.state),l=Math.min(s.enabled?s.paginationModel.pageSize:o,o);return C({},e,{rowsMeta:{currentPageTotalHeight:l*r,positions:Array.from({length:l},(a,c)=>c*r),pinnedTopRowsTotalHeight:0,pinnedBottomRowsTotalHeight:0}})},Pv=(e,t)=>{const{getRowHeight:n,getRowSpacing:r,getEstimatedRowHeight:o}=t,s=e.current.caches.rowsMeta.heights,l=g.useRef(-1),a=g.useRef(!1),c=g.useRef(!1),u=te(e,Un),d=Us(e),f=te(e,Kn),m=te(e,Rs),p=R=>{let _=s.get(R);return _===void 0&&(_={content:m,spacingTop:0,spacingBottom:0,detail:0,autoHeight:!1,needsFirstMeasurement:!0},s.set(R,_)),_},b=g.useCallback(R=>{var D,V;const _=at(e.current.state).rowHeight,O=e.current.getRowHeightEntry(R.id);if(!n)O.content=_,O.needsFirstMeasurement=!1;else{const E=n(C({},R,{densityFactor:u}));if(E==="auto"){if(O.needsFirstMeasurement){const T=o?o(C({},R,{densityFactor:u})):_;O.content=T!=null?T:_}a.current=!0,O.autoHeight=!0}else O.content=Fc(E,_,Mb),O.needsFirstMeasurement=!1,O.autoHeight=!1}if(r){const E=e.current.getRowIndexRelativeToVisibleRows(R.id),T=r(C({},R,{isFirstVisible:E===0,isLastVisible:E===d.rows.length-1,indexRelativeToCurrentPage:E}));O.spacingTop=(D=T.top)!=null?D:0,O.spacingBottom=(V=T.bottom)!=null?V:0}else O.spacingTop=0,O.spacingBottom=0;return e.current.unstable_applyPipeProcessors("rowHeight",O,R),O},[e,d.rows,n,o,m,r,u]),x=g.useCallback(()=>{a.current=!1;const R=f.top.reduce((T,L)=>{const $=b(L);return T+$.content+$.spacingTop+$.spacingBottom+$.detail},0),_=f.bottom.reduce((T,L)=>{const $=b(L);return T+$.content+$.spacingTop+$.spacingBottom+$.detail},0),O=[],D=d.rows.reduce((T,L)=>{O.push(T);const $=b(L),G=$.content+$.spacingTop+$.spacingBottom+$.detail;return T+G},0);a.current||(l.current=1/0);const V=R!==e.current.state.rowsMeta.pinnedTopRowsTotalHeight||_!==e.current.state.rowsMeta.pinnedBottomRowsTotalHeight||D!==e.current.state.rowsMeta.currentPageTotalHeight,E={currentPageTotalHeight:D,positions:O,pinnedTopRowsTotalHeight:R,pinnedBottomRowsTotalHeight:_};e.current.setState(T=>C({},T,{rowsMeta:E})),V&&e.current.updateDimensions(),c.current=!0},[e,f,d.rows,b]),w=R=>{var _,O;return(O=(_=s.get(R))==null?void 0:_.content)!=null?O:m},S=(R,_)=>{const O=e.current.getRowHeightEntry(R),D=O.content!==_;O.needsFirstMeasurement=!1,O.content=_,c.current&&(c.current=!D)},v=R=>{var _,O;return(O=(_=s.get(R))==null?void 0:_.autoHeight)!=null?O:!1},F=()=>l.current,j=R=>{a.current&&R>l.current&&(l.current=R)},y=()=>{s.clear(),x()},A=Bt.default(()=>new Mv(R=>{var _;for(let O=0;O<R.length;O+=1){const D=R[O],V=D.borderBoxSize&&D.borderBoxSize.length>0?D.borderBoxSize[0].blockSize:D.contentRect.height,E=D.target.__mui_id;if(((_=fu(e))==null?void 0:_.id)===E&&V===0)return;e.current.unstable_storeRowHeightMeasurement(E,V)}c.current||requestAnimationFrame(()=>{e.current.requestPipeProcessorsApplication("rowHeight")})})).current,N=(R,_)=>(R.__mui_id=_,A.observe(R),()=>A.unobserve(R));nl(e,"rowHeight",x),oe.unstable_useEnhancedEffect(()=>{x()},[x]);const M={unstable_getRowHeight:w,unstable_setLastMeasuredRowIndex:j,unstable_storeRowHeightMeasurement:S,resetRowHeights:y},P={hydrateRowsMeta:x,observeRowHeight:N,rowHasAutoHeight:v,getRowHeightEntry:p,getLastMeasuredRowIndex:F};Se(e,M,"public"),Se(e,P,"private")},Tv=e=>{const t=g.useCallback((o={})=>e.current.unstable_applyPipeProcessors("exportState",{},o),[e]),n=g.useCallback(o=>{e.current.unstable_applyPipeProcessors("restoreState",{callbacks:[]},{stateToRestore:o}).callbacks.forEach(l=>{l()}),e.current.forceUpdate()},[e]);Se(e,{exportState:t,restoreState:n},"public")},Fv=e=>{const t=g.useRef({}),n=(a,c)=>{var u;return(u=t.current[a])==null?void 0:u[c]},r=()=>{t.current={}},o=g.useCallback(({rowId:a,minFirstColumn:c,maxLastColumn:u,columns:d})=>{for(let f=c;f<u;f+=1){const m=jv({apiRef:e,lookup:t.current,columnIndex:f,rowId:a,minFirstColumnIndex:c,maxLastColumnIndex:u,columns:d});m.colSpan>1&&(f+=m.colSpan-1)}},[e]),s={unstable_getCellColSpanInfo:n},l={resetColSpan:r,calculateColSpan:o};Se(e,s,"public"),Se(e,l,"private"),le(e,"columnOrderChange",r)};function jv(e){const{apiRef:t,lookup:n,columnIndex:r,rowId:o,minFirstColumnIndex:s,maxLastColumnIndex:l,columns:a}=e,c=a.length,u=a[r],d=t.current.getRow(o),f=t.current.getRowValue(d,u),m=typeof u.colSpan=="function"?u.colSpan(f,d,u,t):u.colSpan;if(!m||m===1)return Xo(n,o,r,{spannedByColSpan:!1,cellProps:{colSpan:1,width:u.computedWidth}}),{colSpan:1};let p=u.computedWidth;for(let b=1;b<m;b+=1){const x=r+b;if(x>=s&&x<l){const w=a[x];p+=w.computedWidth,Xo(n,o,r+b,{spannedByColSpan:!0,rightVisibleCellIndex:Math.min(r+m,c-1),leftVisibleCellIndex:r})}Xo(n,o,r,{spannedByColSpan:!1,cellProps:{colSpan:m,width:p}})}return{colSpan:m}}function Xo(e,t,n,r){e[t]||(e[t]={}),e[t][n]=r}const Cd=(e,t,n)=>{if(bc(e)){if(n[e.field]!==void 0)throw new Error(["MUI X: columnGroupingModel contains duplicated field",`column field ${e.field} occurs two times in the grouping model:`,`- ${n[e.field].join(" > ")}`,`- ${t.join(" > ")}`].join(`
90
+ `));n[e.field]=t;return}const{groupId:r,children:o}=e;o.forEach(s=>{Cd(s,[...t,r],n)})},fs=e=>{if(!e)return{};const t={};return e.forEach(n=>{Cd(n,[],t)}),t},hs=(e,t,n)=>{const r=c=>{var u;return(u=t[c])!=null?u:[]},o=[],s=Math.max(...e.map(c=>r(c).length)),l=(c,u,d)=>sn(r(c).slice(0,d+1),r(u).slice(0,d+1)),a=(c,u)=>!!(n!=null&&n.left&&n.left.includes(c)&&!n.left.includes(u)||n!=null&&n.right&&!n.right.includes(c)&&n.right.includes(u));for(let c=0;c<s;c+=1){const u=e.reduce((d,f)=>{var w;const m=(w=r(f)[c])!=null?w:null;if(d.length===0)return[{columnFields:[f],groupId:m}];const p=d[d.length-1],b=p.columnFields[p.columnFields.length-1];return p.groupId!==m||!l(b,f,c)||a(b,f)?[...d,{columnFields:[f],groupId:m}]:[...d.slice(0,d.length-1),{columnFields:[...p.columnFields,f],groupId:m}]},[]);o.push(u)}return o},Ov=["groupId","children"],rl=e=>{let t={};return e.forEach(n=>{if(bc(n))return;const{groupId:r,children:o}=n,s=me(n,Ov);if(!r)throw new Error("MUI X: An element of the columnGroupingModel does not have either `field` or `groupId`.");process.env.NODE_ENV!=="production"&&(o||console.warn(`MUI X: group groupId=${r} has no children.`));const l=C({},s,{groupId:r}),a=rl(o);if(a[r]!==void 0||t[r]!==void 0)throw new Error(`MUI X: The groupId ${r} is used multiple times in the columnGroupingModel.`);t=C({},t,a,{[r]:l})}),C({},t)},Rv=(e,t,n)=>{var u,d,f;if(!t.columnGroupingModel)return e;const r=Yt(n),o=Xn(n),s=rl((u=t.columnGroupingModel)!=null?u:[]),l=fs((d=t.columnGroupingModel)!=null?d:[]),a=hs(r,l,(f=n.current.state.pinnedColumns)!=null?f:{}),c=o.length===0?0:Math.max(...o.map(m=>{var p,b;return(b=(p=l[m])==null?void 0:p.length)!=null?b:0}));return C({},e,{columnGrouping:{lookup:s,unwrappedGroupingModel:l,headerStructure:a,maxDepth:c}})},Lv=(e,t)=>{const n=g.useCallback(a=>{var u;return(u=su(e)[a])!=null?u:[]},[e]),r=g.useCallback(()=>lu(e),[e]);Se(e,{getColumnGroupPath:n,getAllGroupDetails:r},"public");const s=g.useCallback(()=>{var c;const a=fs((c=t.columnGroupingModel)!=null?c:[]);e.current.setState(u=>{var p,b,x;const d=(b=(p=u.columns)==null?void 0:p.orderedFields)!=null?b:[],f=(x=u.pinnedColumns)!=null?x:{},m=hs(d,a,f);return C({},u,{columnGrouping:C({},u.columnGrouping,{headerStructure:m})})})},[e,t.columnGroupingModel]),l=g.useCallback(a=>{var x,w,S;const c=(S=(w=(x=e.current).getPinnedColumns)==null?void 0:w.call(x))!=null?S:{},u=Yt(e),d=Xn(e),f=rl(a!=null?a:[]),m=fs(a!=null?a:[]),p=hs(u,m,c),b=d.length===0?0:Math.max(...d.map(v=>{var F,j;return(j=(F=m[v])==null?void 0:F.length)!=null?j:0}));e.current.setState(v=>C({},v,{columnGrouping:{lookup:f,unwrappedGroupingModel:m,headerStructure:p,maxDepth:b}}))},[e]);le(e,"columnIndexChange",s),le(e,"columnsChange",()=>{l(t.columnGroupingModel)}),le(e,"columnVisibilityModelChange",()=>{l(t.columnGroupingModel)}),g.useEffect(()=>{l(t.columnGroupingModel)},[l,t.columnGroupingModel])};function Dv(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function Ui(e,t){if(t!==void 0&&e.changedTouches){for(let n=0;n<e.changedTouches.length;n+=1){const r=e.changedTouches[n];if(r.identifier===t)return{x:r.clientX,y:r.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function Ki(e,t,n,r){let o=e;return r==="Right"?o+=t-n.left:o+=n.right-t,o}function Hv(e,t,n){return n==="Left"?e-t.left:t.right-e}function _v(e){return e==="Right"?"Left":"Right"}function Av(e,t){const n=e.classList.contains(I["columnSeparator--sideRight"])?"Right":"Left";return t?_v(n):n}function Xi(e){e.preventDefault(),e.stopImmediatePropagation()}function Vv(e){const t=g.useRef(void 0),n=()=>uu(e),r=te(e,n);return g.useEffect(()=>{t.current&&r===!1&&(t.current.resolve(),t.current=void 0)}),()=>{if(!t.current){if(n()===!1)return Promise.resolve();t.current=Dv()}return t.current}}function Nv(e,t){if(e.length<4)return e;const n=e.slice();n.sort((a,c)=>a-c);const r=n[Math.floor(n.length*.25)],o=n[Math.floor(n.length*.75)-1],s=o-r,l=s<5?5:s*t;return n.filter(a=>a>r-l&&a<o+l)}function $v(e,t,n){const r={},o=e.current.rootElementRef.current;return o.classList.add(I.autosizing),n.forEach(s=>{var b,x;const a=lx(e.current,s.field).map(w=>{var S;return(S=w.getBoundingClientRect().width)!=null?S:0}),c=t.includeOutliers?a:Nv(a,t.outliersFactor);if(t.includeHeaders){const w=sx(e.current,s.field);if(w){const S=w.querySelector(`.${I.columnHeaderTitle}`),v=w.querySelector(`.${I.columnHeaderTitleContainerContent}`),F=w.querySelector(`.${I.iconButtonContainer}`),j=w.querySelector(`.${I.menuIcon}`),y=S!=null?S:v,A=window.getComputedStyle(w,null),N=parseInt(A.paddingLeft,10)+parseInt(A.paddingRight,10),P=y.scrollWidth+1+N+((b=F==null?void 0:F.clientWidth)!=null?b:0)+((x=j==null?void 0:j.clientWidth)!=null?x:0);c.push(P)}}const u=s.minWidth!==-1/0&&s.minWidth!==void 0,d=s.maxWidth!==1/0&&s.maxWidth!==void 0,f=u?s.minWidth:0,m=d?s.maxWidth:1/0,p=c.length===0?0:Math.max(...c);r[s.field]=xt(p,f,m)}),o.classList.remove(I.autosizing),r}const zv=e=>C({},e,{columnResize:{resizingColumnField:""}});function Gv(){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 Bv=(e,t)=>{const n=Gt.useRtl(),r=ct(e,"useGridColumnResize"),o=Bt.default(Gv).current,s=g.useRef(null),l=g.useRef(null),a=wn.default(),c=g.useRef(void 0),u=P=>{var E,T;r.debug(`Updating width to ${P} for col ${o.colDef.field}`);const R=o.columnHeaderElement.offsetWidth,_=P-R,O=P-o.initialColWidth;if(O>0){const L=o.initialTotalWidth+O;(T=(E=e.current.rootElementRef)==null?void 0:E.current)==null||T.style.setProperty("--DataGrid-rowWidth",`${L}px`)}o.colDef.computedWidth=P,o.colDef.width=P,o.colDef.flex=0,o.columnHeaderElement.style.width=`${P}px`;const D=o.headerFilterElement;D&&(D.style.width=`${P}px`),o.groupHeaderElements.forEach(L=>{const $=L;let G;$.getAttribute("aria-colspan")==="1"?G=`${P}px`:G=`${$.offsetWidth+_}px`,$.style.width=G}),o.cellElements.forEach(L=>{const $=L;let G;$.getAttribute("aria-colspan")==="1"?G=`${P}px`:G=`${$.offsetWidth+_}px`,$.style.setProperty("--width",G)});const V=e.current.unstable_applyPipeProcessors("isColumnPinned",!1,o.colDef.field);V===rn.LEFT&&(Pn(o.fillerLeft,"width",_),o.leftPinnedCellsAfter.forEach(L=>{Pn(L,"left",_)}),o.leftPinnedHeadersAfter.forEach(L=>{Pn(L,"left",_)})),V===rn.RIGHT&&(Pn(o.fillerRight,"width",_),o.rightPinnedCellsBefore.forEach(L=>{Pn(L,"right",_)}),o.rightPinnedHeadersBefore.forEach(L=>{Pn(L,"right",_)}))},d=P=>{if(S(),o.previousMouseClickEvent){const R=o.previousMouseClickEvent,_=R.timeStamp,O=R.clientX,D=R.clientY;if(P.timeStamp-_<300&&P.clientX===O&&P.clientY===D){o.previousMouseClickEvent=void 0,e.current.publishEvent("columnResizeStop",null,P);return}}if(o.colDef){e.current.setColumnWidth(o.colDef.field,o.colDef.width),r.debug(`Updating col ${o.colDef.field} with new width: ${o.colDef.width}`);const R=Nt(e.current.state);o.groupHeaderElements.forEach(_=>{const O=Q0(_),D=_,E=`${O.reduce((T,L)=>R.columnVisibilityModel[L]!==!1?T+R.lookup[L].computedWidth:T,0)}px`;D.style.width=E})}a.start(0,()=>{e.current.publishEvent("columnResizeStop",null,P)})},f=(P,R,_)=>{var E;const O=e.current.rootElementRef.current;o.initialColWidth=P.computedWidth,o.initialTotalWidth=e.current.getRootDimensions().rowWidth,o.colDef=P,o.columnHeaderElement=Z0(e.current.columnHeadersContainerRef.current,P.field);const D=O.querySelector(`.${I.headerFilterRow} [data-field="${Jt(P.field)}"]`);D&&(o.headerFilterElement=D),o.groupHeaderElements=J0((E=e.current.columnHeadersContainerRef)==null?void 0:E.current,P.field),o.cellElements=ex(o.columnHeaderElement,e.current),o.fillerLeft=ki(e.current,n?"filler--pinnedRight":"filler--pinnedLeft"),o.fillerRight=ki(e.current,n?"filler--pinnedLeft":"filler--pinnedRight");const V=e.current.unstable_applyPipeProcessors("isColumnPinned",!1,o.colDef.field);o.leftPinnedCellsAfter=V!==rn.LEFT?[]:tx(e.current,o.columnHeaderElement,n),o.rightPinnedCellsBefore=V!==rn.RIGHT?[]:nx(e.current,o.columnHeaderElement,n),o.leftPinnedHeadersAfter=V!==rn.LEFT?[]:rx(e.current,o.columnHeaderElement,n),o.rightPinnedHeadersBefore=V!==rn.RIGHT?[]:ox(e.current,o.columnHeaderElement,n),l.current=Av(R,n),s.current=Hv(_,o.columnHeaderElement.getBoundingClientRect(),l.current)},m=oe.unstable_useEventCallback(d),p=oe.unstable_useEventCallback(P=>{if(P.buttons===0){m(P);return}let R=Ki(s.current,P.clientX,o.columnHeaderElement.getBoundingClientRect(),l.current);R=xt(R,o.colDef.minWidth,o.colDef.maxWidth),u(R);const _={element:o.columnHeaderElement,colDef:o.colDef,width:R};e.current.publishEvent("columnResize",_,P)}),b=oe.unstable_useEventCallback(P=>{Ui(P,c.current)&&d(P)}),x=oe.unstable_useEventCallback(P=>{const R=Ui(P,c.current);if(!R)return;if(P.type==="mousemove"&&P.buttons===0){b(P);return}let _=Ki(s.current,R.x,o.columnHeaderElement.getBoundingClientRect(),l.current);_=xt(_,o.colDef.minWidth,o.colDef.maxWidth),u(_);const O={element:o.columnHeaderElement,colDef:o.colDef,width:_};e.current.publishEvent("columnResize",O,P)}),w=oe.unstable_useEventCallback(P=>{const R=no(P.target,I["columnSeparator--resizable"]);if(!R)return;const _=P.changedTouches[0];_!=null&&(c.current=_.identifier);const O=no(P.target,I.columnHeader),D=Y0(O),V=e.current.getColumn(D);r.debug(`Start Resize on col ${V.field}`),e.current.publishEvent("columnResizeStart",{field:D},P),f(V,R,_.clientX);const E=oe.unstable_ownerDocument(P.currentTarget);E.addEventListener("touchmove",x),E.addEventListener("touchend",b)}),S=g.useCallback(()=>{const P=oe.unstable_ownerDocument(e.current.rootElementRef.current);P.body.style.removeProperty("cursor"),P.removeEventListener("mousemove",p),P.removeEventListener("mouseup",m),P.removeEventListener("touchmove",x),P.removeEventListener("touchend",b),setTimeout(()=>{P.removeEventListener("click",Xi,!0)},100),o.columnHeaderElement&&(o.columnHeaderElement.style.pointerEvents="unset")},[e,o,p,m,x,b]),v=g.useCallback(({field:P})=>{e.current.setState(R=>C({},R,{columnResize:C({},R.columnResize,{resizingColumnField:P})})),e.current.forceUpdate()},[e]),F=g.useCallback(()=>{e.current.setState(P=>C({},P,{columnResize:C({},P.columnResize,{resizingColumnField:""})})),e.current.forceUpdate()},[e]),j=oe.unstable_useEventCallback(({colDef:P},R)=>{if(R.button!==0||!R.currentTarget.classList.contains(I["columnSeparator--resizable"]))return;R.preventDefault(),r.debug(`Start Resize on col ${P.field}`),e.current.publishEvent("columnResizeStart",{field:P.field},R),f(P,R.currentTarget,R.clientX);const _=oe.unstable_ownerDocument(e.current.rootElementRef.current);_.body.style.cursor="col-resize",o.previousMouseClickEvent=R.nativeEvent,_.addEventListener("mousemove",p),_.addEventListener("mouseup",m),_.addEventListener("click",Xi,!0)}),y=oe.unstable_useEventCallback((P,R)=>{if(t.disableAutosize||R.button!==0)return;const _=e.current.state.columns.lookup[P.field];_.resizable!==!1&&e.current.autosizeColumns(C({},t.autosizeOptions,{disableColumnVirtualization:!1,columns:[_.field]}))}),A=Vv(e),N=g.useRef(!1),M=g.useCallback(async P=>{var V,E;if(!((V=e.current.rootElementRef)==null?void 0:V.current)||N.current)return;N.current=!0;const _=Nt(e.current.state),O=C({},Uw,P,{columns:(E=P==null?void 0:P.columns)!=null?E:_.orderedFields});O.columns=O.columns.filter(T=>_.columnVisibilityModel[T]!==!1);const D=O.columns.map(T=>e.current.state.columns.lookup[T]);try{!t.disableVirtualization&&O.disableColumnVirtualization&&(e.current.unstable_setColumnVirtualization(!1),await A());const T=$v(e,O,D),L=D.map($=>C({},$,{width:T[$.field],computedWidth:T[$.field],flex:0}));if(O.expand){const G=_.orderedFields.map(q=>_.lookup[q]).filter(q=>_.columnVisibilityModel[q.field]!==!1).reduce((q,U)=>{var Q,X;return q+((X=(Q=T[U.field])!=null?Q:U.computedWidth)!=null?X:U.width)},0),z=e.current.getRootDimensions().viewportInnerSize.width-G;if(z>0){const q=z/(L.length||1);L.forEach(U=>{U.width+=q,U.computedWidth+=q})}}e.current.updateColumns(L),L.forEach(($,G)=>{if($.width!==D[G].width){const k=$.width;e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement($.field),colDef:$,width:k})}})}finally{t.disableVirtualization||e.current.unstable_setColumnVirtualization(!0),N.current=!1}},[e,A,t.disableVirtualization]);g.useEffect(()=>S,[S]),ha.default(()=>{t.autosizeOnMount&&Promise.resolve().then(()=>{e.current.autosizeColumns(t.autosizeOptions)})}),Bc(e,()=>{var P;return(P=e.current.columnHeadersContainerRef)==null?void 0:P.current},"touchstart",w,{passive:!0}),Se(e,{autosizeColumns:M},"public"),le(e,"columnResizeStop",F),le(e,"columnResizeStart",v),le(e,"columnSeparatorMouseDown",j),le(e,"columnSeparatorDoubleClick",y),Ae(e,"columnResize",t.onColumnResize),Ae(e,"columnWidthChange",t.onColumnWidthChange)};function Pn(e,t,n){e&&(e.style[t]=`${parseInt(e.style[t],10)+n}px`)}function Wv(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}function Yi(e){return e.firstRowIndex!==0||e.lastRowIndex!==0}const Yo=(e,t,n)=>{var s;if(!e)return null;let r=e[t.field];const o=(s=t.rowSpanValueGetter)!=null?s:t.valueGetter;return o&&(r=o(r,e,t,n)),r},Hn={spannedCells:{},hiddenCells:{},hiddenCellOriginMap:{}},io={firstRowIndex:0,lastRowIndex:0},qv=new Set([yt,"__reorder__",mo]),Zi=20,wd=(e,t,n,r,o,s,l)=>{const a=s?{}:C({},e.current.state.rowSpanning.spannedCells),c=s?{}:C({},e.current.state.rowSpanning.hiddenCells),u=s?{}:C({},e.current.state.rowSpanning.hiddenCellOriginMap);return s&&(l=io),t.forEach(d=>{var f;if(!qv.has(d.field)){for(let m=o.firstRowIndex;m<o.lastRowIndex;m+=1){const p=n[m];if((f=c[p.id])!=null&&f[d.field])continue;const b=Yo(p.model,d,e);if(b==null)continue;let x=p.id,w=m,S=0;const v=[];if(m===o.firstRowIndex){let j=m-1,y=n[j];for(;j>=r.firstRowIndex&&y&&Yo(y.model,d,e)===b;){const A=n[j+1];c[A.id]?c[A.id][d.field]=!0:c[A.id]={[d.field]:!0},v.push(m),S+=1,x=y.id,w=j,j-=1,y=n[j]}}v.forEach(j=>{u[j]?u[j][d.field]=w:u[j]={[d.field]:w}});let F=m+1;for(;F<=r.lastRowIndex&&n[F]&&Yo(n[F].model,d,e)===b;){const j=n[F];c[j.id]?c[j.id][d.field]=!0:c[j.id]={[d.field]:!0},u[F]?u[F][d.field]=w:u[F]={[d.field]:w},F+=1,S+=1}S>0&&(a[x]?a[x][d.field]=S+1:a[x]={[d.field]:S+1})}l={firstRowIndex:Math.min(l.firstRowIndex,o.firstRowIndex),lastRowIndex:Math.max(l.lastRowIndex,o.lastRowIndex)}}}),{spannedCells:a,hiddenCells:c,hiddenCellOriginMap:u,processedRange:l}},xd=(e,t)=>{const n=fr(t).length;if(e.pagination){const r=Xc(t);let o=Zi;return r>0&&(o=r-1),{firstRowIndex:0,lastRowIndex:Math.min(o,n)}}return{firstRowIndex:0,lastRowIndex:Math.min(Zi,n)}},Uv=(e,t,n)=>{var b;if(!t.unstable_rowSpanning)return C({},e,{rowSpanning:Hn});const r=e.rows.dataRowIds||[],o=e.columns.orderedFields||[],s=e.rows.dataRowIdToModelLookup,l=e.columns.lookup,a=!!e.filter.filterModel.items.length||!!((b=e.filter.filterModel.quickFilterValues)!=null&&b.length);if(!r.length||!o.length||!s||!l||a)return C({},e,{rowSpanning:Hn});const c=xd(t,n),u=r.map(x=>({id:x,model:s[x]})),d=o.map(x=>l[x]),{spannedCells:f,hiddenCells:m,hiddenCellOriginMap:p}=wd(n,d,u,c,c,!0,io);return C({},e,{rowSpanning:{spannedCells:f,hiddenCells:m,hiddenCellOriginMap:p}})},Kv=(e,t)=>{const n=Bt.default(()=>e.current.state.rowSpanning!==Hn?xd(t,e):io),r=g.useCallback((s,l=!1)=>{const{range:a,rows:c}=an(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(a===null||!Yi(s))return;l&&(n.current=io);const u=Wv({firstRowIndex:s.firstRowIndex,lastRowIndex:Math.min(s.lastRowIndex,a.lastRowIndex+1)},n.current);if(u===null)return;const d=Ke(e),{spannedCells:f,hiddenCells:m,hiddenCellOriginMap:p,processedRange:b}=wd(e,d,c,a,u,l,n.current);n.current=b;const x=Object.keys(f).length,w=Object.keys(m).length,S=Object.keys(e.current.state.rowSpanning.spannedCells).length,v=Object.keys(e.current.state.rowSpanning.hiddenCells).length;!(l||x!==S||w!==v)||x===0&&S===0||e.current.setState(y=>C({},y,{rowSpanning:{spannedCells:f,hiddenCells:m,hiddenCellOriginMap:p}}))},[e,n,t.pagination,t.paginationMode]),o=g.useCallback(()=>{const s=Fr(e);Yi(s)&&r(s,!0)},[e,r]);le(e,"renderedRowsIntervalChange",mn(t.unstable_rowSpanning,r)),le(e,"sortedRowsSet",mn(t.unstable_rowSpanning,o)),le(e,"paginationModelChange",mn(t.unstable_rowSpanning,o)),le(e,"filteredRowsSet",mn(t.unstable_rowSpanning,o)),le(e,"columnsChange",mn(t.unstable_rowSpanning,o)),g.useEffect(()=>{t.unstable_rowSpanning?e.current.state.rowSpanning===Hn&&o():e.current.state.rowSpanning!==Hn&&e.current.setState(s=>C({},s,{rowSpanning:Hn}))},[e,o,t.unstable_rowSpanning])},Xv=(e,t,n)=>C({},e,{listViewColumn:t.unstable_listColumn?C({},t.unstable_listColumn,{computedWidth:gs(n)}):void 0});function Yv(e,t){const n=()=>{e.current.setState(s=>s.listViewColumn?C({},s,{listViewColumn:C({},s.listViewColumn,{computedWidth:gs(e)})}):s)},r=g.useRef(null);le(e,"viewportInnerSizeChange",s=>{r.current!==s.width&&(r.current=s.width,n())}),le(e,"columnVisibilityModelChange",n),aa.default(()=>{const s=t.unstable_listColumn;s&&e.current.setState(l=>C({},l,{listViewColumn:C({},s,{computedWidth:gs(e)})}))},[e,t.unstable_listColumn]),g.useEffect(()=>{t.unstable_listView&&!t.unstable_listColumn&&kt(["MUI X: The `unstable_listColumn` prop must be set if `unstable_listView` is enabled.",'To fix, pass a column definition to the `unstable_listColumn` prop, e.g. `{ field: "example", renderCell: (params) => <div>{params.row.id}</div> }`.',"For more details, see https://mui.com/x/react-data-grid/list-view/"])},[t.unstable_listView,t.unstable_listColumn])}function gs(e){return at(e.current.state).viewportInnerSize.width}const Zv=(e,t)=>{const n=wy(e,t);return pv(n,t),dv(n),lt(by,n,t),lt(hv,n,t),lt(Ey,n,t),lt(lv,n,t),lt(Ky,n,t),lt(ov,n,t),lt($y,n,t),lt(bv,n,t),lt(Yy,n,t),lt(_y,n,t),lt(Uv,n,t),lt(Ty,n,t),lt(zv,n,t),lt(Iy,n,t),lt(Rv,n,t),lt(iw,n,t),lt(Sv,n,t),lt(Ev,n,t),lt(Xv,n,t),Wy(n,t),gv(n,t),Py(n,t),iv(n,t),Kv(n,t),fv(n,t),Fv(n),Lv(n,t),sv(n,t),zy(n,t),Zy(n,t),Ny(n,t),Cv(n,t),Fy(n,t),Bv(n,t),Xy(n,t),Pv(n,t),wv(n,t),My(n),Oy(n,t),Hy(n,t),ky(n,t),kv(n,t),xv(n,t),Tv(n),aw(n,t),Yv(n,t),n},Qv=e=>{const{classes:t,headerAlign:n,isDragging:r,isLastColumn:o,showLeftBorder:s,showRightBorder:l,groupId:a,pinnedPosition:c}=e,u={root:["columnHeader",n==="left"&&"columnHeader--alignLeft",n==="center"&&"columnHeader--alignCenter",n==="right"&&"columnHeader--alignRight",r&&"columnHeader--moving",l&&"columnHeader--withRightBorder",s&&"columnHeader--withLeftBorder","withBorderColor",a===null?"columnHeader--emptyGroup":"columnHeader--filledGroup",c===Ie.LEFT&&"columnHeader--pinnedLeft",c===Ie.RIGHT&&"columnHeader--pinnedRight",o&&"columnHeader--last"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer","withBorderColor"],titleContainerContent:["columnHeaderTitleContainerContent"]};return oe.unstable_composeClasses(u,Te,t)};function Jv(e){var $;const{groupId:t,width:n,depth:r,maxDepth:o,fields:s,height:l,colIndex:a,hasFocus:c,tabIndex:u,isLastColumn:d,pinnedPosition:f,pinnedOffset:m}=e,p=ue(),b=Gt.useRtl(),x=g.useRef(null),w=ke(),S=te(w,lu),v=t?S[t]:{},{headerName:F=t!=null?t:"",description:j="",headerAlign:y=void 0}=v;let A;const N=t&&(($=S[t])==null?void 0:$.renderHeaderGroup),M=g.useMemo(()=>({groupId:t,headerName:F,description:j,depth:r,maxDepth:o,fields:s,colIndex:a,isLastColumn:d}),[t,F,j,r,o,s,a,d]);t&&N&&(A=N(M));const P=C({},e,{classes:p.classes,headerAlign:y,depth:r,isDragging:!1}),R=F!=null?F:t,_=oe.unstable_useId(),O=t===null?`empty-group-cell-${_}`:t,D=Qv(P);g.useLayoutEffect(()=>{if(c){const k=x.current.querySelector('[tabindex="0"]')||x.current;if(!k)return;if(Zs())k.focus({preventScroll:!0});else{const H=w.current.getScrollPosition();k.focus(),w.current.scroll(H)}}},[w,c]);const V=g.useCallback(G=>k=>{jr(k)||w.current.publishEvent(G,M,k)},[w,M]),E=g.useMemo(()=>({onKeyDown:V("columnGroupHeaderKeyDown"),onFocus:V("columnGroupHeaderFocus"),onBlur:V("columnGroupHeaderBlur")}),[V]),T=typeof v.headerClassName=="function"?v.headerClassName(M):v.headerClassName,L=g.useMemo(()=>vo(C({},e.style),b,f,m),[f,m,e.style,b]);return i.jsx(Ou,C({ref:x,classes:D,columnMenuOpen:!1,colIndex:a,height:l,isResizing:!1,sortDirection:null,hasFocus:!1,tabIndex:u,isDraggable:!1,headerComponent:A,headerClassName:T,description:j,elementId:O,width:n,columnMenuIconButton:null,columnTitleIconButtons:null,resizable:!1,label:R,"aria-colspan":s.length,"data-fields":`|-${s.join("-|-")}-|`,style:L},E))}const Qi=ge.styled("div",{name:"MuiDataGrid",slot:"ColumnHeaderRow",overridesResolver:(e,t)=>t.columnHeaderRow})({display:"flex"}),eS=e=>{const{visibleColumns:t,sortColumnLookup:n,filterColumnLookup:r,columnHeaderTabIndexState:o,columnGroupHeaderTabIndexState:s,columnHeaderFocus:l,columnGroupHeaderFocus:a,headerGroupingMaxDepth:c,columnMenuState:u,columnVisibility:d,columnGroupsHeaderStructure:f,hasOtherElementInTabSequence:m}=e,[p,b]=g.useState(""),[x,w]=g.useState(""),S=Et(),v=ue(),F=te(S,su),j=te(S,dn),y=te(S,lw),A=te(S,Yn),N=te(S,Qt),M=hu(j,y,A.left.length),P=te(S,uo),R=te(S,ac),_=te(S,k1),O=te(S,I1),D=te(S,cc),V=g.useCallback(X=>w(X.field),[]),E=g.useCallback(()=>w(""),[]),T=g.useCallback(X=>b(X.field),[]),L=g.useCallback(()=>b(""),[]),$=g.useMemo(()=>A.left.length?{firstColumnIndex:0,lastColumnIndex:A.left.length}:null,[A.left.length]),G=g.useMemo(()=>A.right.length?{firstColumnIndex:t.length-A.right.length,lastColumnIndex:t.length}:null,[A.right.length,t.length]);le(S,"columnResizeStart",V),le(S,"columnResizeStop",E),le(S,"columnHeaderDragStart",T),le(S,"columnHeaderDragEnd",L);const k=X=>{const{renderContext:W=y}=X||{},K=W.firstColumnIndex,Y=W.lastColumnIndex;return{renderedColumns:t.slice(K,Y),firstColumnToRender:K,lastColumnToRender:Y}},H=(X,W,K,Y=!1)=>{const J=(X==null?void 0:X.position)===Ie.RIGHT,ne=(X==null?void 0:X.position)===void 0,Z=A.right.length>0&&J||A.right.length===0&&ne,se=M-K;return i.jsxs(g.Fragment,{children:[ne&&i.jsx("div",{role:"presentation",style:{width:se}}),W,ne&&i.jsx("div",{role:"presentation",className:Pe(I.filler,Y&&I["filler--borderBottom"])}),Z&&i.jsx(el,{header:!0,pinnedRight:J,borderBottom:Y,borderTop:!1})]})},z=(X,W={})=>{const{renderedColumns:K,firstColumnToRender:Y}=k(X),J=[];for(let ne=0;ne<K.length;ne+=1){const Z=K[ne],se=Y+ne,ee=se===0,ae=o!==null&&o.field===Z.field||ee&&!m?0:-1,fe=l!==null&&l.field===Z.field,xe=u.open&&u.field===Z.field,pe=X==null?void 0:X.position,Me=mr(pe,Z.computedWidth,se,j,P,D),Re=pe===Ie.RIGHT?K[ne-1]:K[ne+1],Je=Re?l!==null&&l.field===Re.field:!1,De=se+1===j.length-A.right.length,Oe=ne,Ye=K.length,qe=so(pe,Oe),we=oo(pe,Oe,Ye,v.showColumnVerticalBorder,R);J.push(i.jsx(px,C({},n[Z.field],{columnMenuOpen:xe,filterItemsCounter:r[Z.field]&&r[Z.field].length,headerHeight:_,isDragging:Z.field===p,colDef:Z,colIndex:se,isResizing:x===Z.field,isLast:se===j.length-1,hasFocus:fe,tabIndex:ae,pinnedPosition:pe,pinnedOffset:Me,isLastUnpinned:De,isSiblingFocused:Je,showLeftBorder:qe,showRightBorder:we},W),Z.field))}return H(X,J,0)},q=()=>i.jsxs(Qi,{role:"row","aria-rowindex":c+1,ownerState:v,className:I["row--borderBottom"],children:[$&&z({position:Ie.LEFT,renderContext:$},{disableReorder:!0}),z({renderContext:y}),G&&z({position:Ie.RIGHT,renderContext:G},{disableReorder:!0,separatorSide:Qs.Left})]}),U=({depth:X,params:W})=>{var Ye,qe,we,He;const K=k(W);if(K.renderedColumns.length===0)return null;const{firstColumnToRender:Y,lastColumnToRender:J}=K,ne=f[X],Z=t[Y].field,se=(qe=(Ye=F[Z])==null?void 0:Ye[X])!=null?qe:null,ee=ne.findIndex(({groupId:ve,columnFields:ce})=>ve===se&&ce.includes(Z)),ae=t[J-1].field,fe=(He=(we=F[ae])==null?void 0:we[X])!=null?He:null,xe=ne.findIndex(({groupId:ve,columnFields:ce})=>ve===fe&&ce.includes(ae)),pe=ne.slice(ee,xe+1).map(ve=>C({},ve,{columnFields:ve.columnFields.filter(ce=>d[ce]!==!1)})).filter(ve=>ve.columnFields.length>0),Me=pe[0].columnFields.indexOf(Z),Je=pe[0].columnFields.slice(0,Me).reduce((ve,ce)=>{var Ce;const ye=N[ce];return ve+((Ce=ye.computedWidth)!=null?Ce:0)},0);let De=Y;const Oe=pe.map(({groupId:ve,columnFields:ce},ye)=>{const Ce=a!==null&&a.depth===X&&ce.includes(a.field),Ze=s!==null&&s.depth===X&&ce.includes(s.field)?0:-1,ot={width:ce.reduce((Dt,Ht)=>Dt+N[Ht].computedWidth,0),fields:ce,colIndex:De},Qe=W.position,Pt=mr(Qe,ot.width,De,j,P,D);De+=ce.length;let Tt=ye;return Qe===Ie.LEFT&&(Tt=De-1),i.jsx(Jv,{groupId:ve,width:ot.width,fields:ot.fields,colIndex:ot.colIndex,depth:X,isLastColumn:ye===pe.length-1,maxDepth:c,height:O,hasFocus:Ce,tabIndex:Ze,pinnedPosition:Qe,pinnedOffset:Pt,showLeftBorder:so(Qe,Tt),showRightBorder:oo(Qe,Tt,pe.length,v.showColumnVerticalBorder,R)},ye)});return H(W,Oe,Je)};return{renderContext:y,leftRenderContext:$,rightRenderContext:G,pinnedColumns:A,visibleColumns:t,columnPositions:j,getFillers:H,getColumnHeadersRow:q,getColumnsToRender:k,getColumnGroupHeadersRows:()=>{if(c===0)return null;const X=[];for(let W=0;W<c;W+=1)X.push(i.jsxs(Qi,{role:"row","aria-rowindex":W+1,ownerState:v,children:[$&&U({depth:W,params:{position:Ie.LEFT,renderContext:$,maxLastColumn:$.lastColumnIndex}}),U({depth:W,params:{renderContext:y}}),G&&U({depth:W,params:{position:Ie.RIGHT,renderContext:G,maxLastColumn:G.lastColumnIndex}})]},W));return X},getPinnedCellOffset:mr,isDragging:!!p,getInnerProps:()=>({role:"rowgroup"})}},tS=["className"],nS=e=>{const{classes:t}=e,n={root:["columnHeaders"]};return Xe.default(n,Te,t)},rS=Ge.styled("div",{name:"MuiDataGrid",slot:"ColumnHeaders",overridesResolver:(e,t)=>t.columnHeaders})({display:"flex",flexDirection:"column",borderTopLeftRadius:"var(--unstable_DataGrid-radius)",borderTopRightRadius:"var(--unstable_DataGrid-radius)"}),oS=je(function(t,n){const{className:r}=t,o=me(t,tS),s=ue(),l=nS(s);return i.jsx(rS,C({className:Pe(l.root,r),ownerState:s},o,{role:"presentation",ref:n}))}),sS=["className","visibleColumns","sortColumnLookup","filterColumnLookup","columnHeaderTabIndexState","columnGroupHeaderTabIndexState","columnHeaderFocus","columnGroupHeaderFocus","headerGroupingMaxDepth","columnMenuState","columnVisibility","columnGroupsHeaderStructure","hasOtherElementInTabSequence"],yd=je(function(t,n){const{visibleColumns:r,sortColumnLookup:o,filterColumnLookup:s,columnHeaderTabIndexState:l,columnGroupHeaderTabIndexState:a,columnHeaderFocus:c,columnGroupHeaderFocus:u,headerGroupingMaxDepth:d,columnMenuState:f,columnVisibility:m,columnGroupsHeaderStructure:p,hasOtherElementInTabSequence:b}=t,x=me(t,sS),{getInnerProps:w,getColumnHeadersRow:S,getColumnGroupHeadersRows:v}=eS({visibleColumns:r,sortColumnLookup:o,filterColumnLookup:s,columnHeaderTabIndexState:l,columnGroupHeaderTabIndexState:a,columnHeaderFocus:c,columnGroupHeaderFocus:u,headerGroupingMaxDepth:d,columnMenuState:f,columnVisibility:m,columnGroupsHeaderStructure:p,hasOtherElementInTabSequence:b});return i.jsxs(oS,C({},x,w(),{ref:n,children:[v(),S()]}))});process.env.NODE_ENV!=="production"&&(yd.propTypes={columnGroupHeaderFocus:h.shape({depth:h.number.isRequired,field:h.string.isRequired}),columnGroupHeaderTabIndexState:h.shape({depth:h.number.isRequired,field:h.string.isRequired}),columnGroupsHeaderStructure:h.arrayOf(h.arrayOf(h.shape({columnFields:h.arrayOf(h.string).isRequired,groupId:h.string}))).isRequired,columnHeaderFocus:h.shape({field:h.string.isRequired}),columnHeaderTabIndexState:h.shape({field:h.string.isRequired}),columnMenuState:h.shape({field:h.string,open:h.bool.isRequired}).isRequired,columnVisibility:h.object.isRequired,filterColumnLookup:h.object.isRequired,hasOtherElementInTabSequence:h.bool.isRequired,headerGroupingMaxDepth:h.number.isRequired,sortColumnLookup:h.object.isRequired,visibleColumns:h.arrayOf(h.object).isRequired});const lS=Zt(yd);function iS(e){return null}function aS(e){return null}const cS=je(function(t,n){const o=ke().current.getLocaleText("noResultsOverlayLabel");return i.jsx(So,C({},t,{ref:n,children:o}))}),uS=["sortingOrder"],dS=g.memo(function(t){const{sortingOrder:n}=t,r=me(t,uS),o=ue(),[s]=n,l=s==="asc"?o.slots.columnSortedAscendingIcon:o.slots.columnSortedDescendingIcon;return l?i.jsx(l,C({},r)):null}),fS=["native"];function hS(e){let{native:t}=e,n=me(e,fS);return t?i.jsx("option",C({},n)):i.jsx(Xt.default,C({},n))}const gS={booleanCellTrueIcon:Hx,booleanCellFalseIcon:Wo,columnMenuIcon:Ox,openFilterButtonIcon:Ix,filterPanelDeleteIcon:Wo,columnFilteredIcon:Ti,columnSelectorIcon:Ex,columnUnsortedIcon:dS,columnSortedAscendingIcon:Ii,columnSortedDescendingIcon:Mi,columnResizeIcon:Px,densityCompactIcon:Tx,densityStandardIcon:Fx,densityComfortableIcon:jx,exportIcon:Dx,moreActionsIcon:_x,treeDataCollapseIcon:Pi,treeDataExpandIcon:Ei,groupingCriteriaCollapseIcon:Pi,groupingCriteriaExpandIcon:Ei,detailPanelExpandIcon:Fi,detailPanelCollapseIcon:Rx,rowReorderIcon:ji,quickFilterIcon:Mx,quickFilterClearIcon:Wo,columnMenuHideIcon:Ax,columnMenuSortAscendingIcon:Ii,columnMenuSortDescendingIcon:Mi,columnMenuFilterIcon:Ti,columnMenuManageColumnsIcon:Vx,columnMenuClearIcon:Nx,loadIcon:Lx,filterPanelAddIcon:Fi,filterPanelRemoveAllIcon:$x,columnReorderIcon:ji},mS=C({},gS,{baseBadge:yh.default,baseCheckbox:vh.default,baseDivider:Sh.default,baseTextField:ga.default,baseFormControl:kh.default,baseSelect:Ih.default,baseButton:Mh.default,baseIconButton:ma.default,baseInputAdornment:Eh.default,baseTooltip:pa.default,basePopper:bs.default,baseInputLabel:Ph.default,baseSelectOption:hS,baseChip:Th.default}),pS=C({},mS,{cell:g0,skeletonCell:x0,columnHeaderFilterIconButton:Hu,columnHeaderSortIcon:Sx,columnMenu:Ku,columnHeaders:lS,detailPanels:iS,footer:sd,footerRowCount:cd,toolbar:null,pinnedRows:aS,loadingOverlay:ld,noResultsOverlay:cS,noRowsOverlay:id,pagination:ad,filterPanel:Ju,columnsPanel:Xu,columnsManagement:ed,panel:Yu,row:Q2}),bS={disableMultipleColumnsFiltering:!0,disableMultipleColumnsSorting:!0,throttleRowsMs:void 0,hideFooterRowCount:!1,pagination:!0,checkboxSelectionVisibleOnly:!1,disableColumnReorder:!0,keepColumnPositionIfDraggedOutside:!1,signature:"DataGrid",unstable_listView:!1},CS=pS,wS=e=>{const t=ge.useTheme(),n=l0(g.useMemo(()=>Ge.getThemeProps({props:e,theme:t,name:"MuiDataGrid"}),[t,e])),r=g.useMemo(()=>C({},E1,n.localeText),[n.localeText]),o=g.useMemo(()=>o0({defaultSlots:CS,slots:n.slots}),[n.slots]),s=g.useMemo(()=>Object.keys(ds).reduce((l,a)=>{var c;return l[a]=(c=n[a])!=null?c:ds[a],l},{}),[n]);return g.useMemo(()=>C({},n,s,{localeText:r,slots:o},bS),[n,r,o,s])},xS={hooks:{useGridAriaAttributes:J2,useGridRowAriaAttributes:ey,useCellAggregationResult:()=>null}},vd=je(function(t,n){var s;const r=wS(t),o=Zv(r.apiRef,r);return process.env.NODE_ENV!=="production"&&a0(r,i0),i.jsx(ty,{privateApiRef:o,configuration:xS,props:r,children:i.jsx(_0,C({className:r.className,style:r.style,sx:r.sx},r.forwardedProps,(s=r.slotProps)==null?void 0:s.root,{ref:n}))})}),yS=g.memo(vd);vd.propTypes={apiRef:h.shape({current:h.object.isRequired}),"aria-label":h.string,"aria-labelledby":h.string,autoHeight:h.bool,autoPageSize:h.bool,autosizeOnMount:h.bool,autosizeOptions:h.shape({columns:h.arrayOf(h.string),disableColumnVirtualization:h.bool,expand:h.bool,includeHeaders:h.bool,includeOutliers:h.bool,outliersFactor:h.number}),cellModesModel:h.object,checkboxSelection:h.bool,classes:h.object,clipboardCopyCellDelimiter:h.string,columnBufferPx:h.number,columnGroupHeaderHeight:h.number,columnGroupingModel:h.arrayOf(h.object),columnHeaderHeight:h.number,columns:h.arrayOf(h.object).isRequired,columnVisibilityModel:h.object,density:h.oneOf(["comfortable","compact","standard"]),disableAutosize:h.bool,disableColumnFilter:h.bool,disableColumnMenu:h.bool,disableColumnResize:h.bool,disableColumnSelector:h.bool,disableColumnSorting:h.bool,disableDensitySelector:h.bool,disableEval:h.bool,disableMultipleRowSelection:h.bool,disableRowSelectionOnClick:h.bool,disableVirtualization:h.bool,editMode:h.oneOf(["cell","row"]),estimatedRowCount:h.number,experimentalFeatures:h.shape({warnIfFocusStateIsNotSynced:h.bool}),filterDebounceMs:h.number,filterMode:h.oneOf(["client","server"]),filterModel:h.shape({items:h.arrayOf(h.shape({field:h.string.isRequired,id:h.oneOfType([h.number,h.string]),operator:h.string.isRequired,value:h.any})).isRequired,logicOperator:h.oneOf(["and","or"]),quickFilterExcludeHiddenColumns:h.bool,quickFilterLogicOperator:h.oneOf(["and","or"]),quickFilterValues:h.array}),forwardedProps:h.object,getCellClassName:h.func,getDetailPanelContent:h.func,getEstimatedRowHeight:h.func,getRowClassName:h.func,getRowHeight:h.func,getRowId:h.func,getRowSpacing:h.func,hideFooter:h.bool,hideFooterPagination:h.bool,hideFooterSelectedRowCount:h.bool,ignoreDiacritics:h.bool,ignoreValueFormatterDuringExport:h.oneOfType([h.shape({clipboardExport:h.bool,csvExport:h.bool}),h.bool]),indeterminateCheckboxAction:h.oneOf(["deselect","select"]),initialState:h.object,isCellEditable:h.func,isRowSelectable:h.func,keepNonExistentRowsSelected:h.bool,loading:h.bool,localeText:h.object,logger:h.shape({debug:h.func.isRequired,error:h.func.isRequired,info:h.func.isRequired,warn:h.func.isRequired}),logLevel:h.oneOf(["debug","error","info","warn",!1]),nonce:h.string,onCellClick:h.func,onCellDoubleClick:h.func,onCellEditStart:h.func,onCellEditStop:h.func,onCellKeyDown:h.func,onCellModesModelChange:h.func,onClipboardCopy:h.func,onColumnHeaderClick:h.func,onColumnHeaderContextMenu:h.func,onColumnHeaderDoubleClick:h.func,onColumnHeaderEnter:h.func,onColumnHeaderLeave:h.func,onColumnHeaderOut:h.func,onColumnHeaderOver:h.func,onColumnOrderChange:h.func,onColumnResize:h.func,onColumnVisibilityModelChange:h.func,onColumnWidthChange:h.func,onDensityChange:h.func,onFilterModelChange:h.func,onMenuClose:h.func,onMenuOpen:h.func,onPaginationMetaChange:h.func,onPaginationModelChange:h.func,onPreferencePanelClose:h.func,onPreferencePanelOpen:h.func,onProcessRowUpdateError:h.func,onResize:h.func,onRowClick:h.func,onRowCountChange:h.func,onRowDoubleClick:h.func,onRowEditStart:h.func,onRowEditStop:h.func,onRowModesModelChange:h.func,onRowSelectionModelChange:h.func,onSortModelChange:h.func,onStateChange:h.func,pageSizeOptions:h.arrayOf(h.oneOfType([h.number,h.shape({label:h.string.isRequired,value:h.number.isRequired})]).isRequired),pagination:h.oneOf([!0]),paginationMeta:h.shape({hasNextPage:h.bool}),paginationMode:h.oneOf(["client","server"]),paginationModel:h.shape({page:h.number.isRequired,pageSize:h.number.isRequired}),processRowUpdate:h.func,resetPageOnSortFilter:h.bool,resizeThrottleMs:h.number,rowBufferPx:h.number,rowCount:h.number,rowHeight:h.number,rowModesModel:h.object,rowPositionsDebounceMs:h.number,rows:h.arrayOf(h.object),rowSelection:h.bool,rowSelectionModel:h.oneOfType([h.arrayOf(h.oneOfType([h.number,h.string]).isRequired),h.number,h.string]),rowSpacingType:h.oneOf(["border","margin"]),scrollbarSize:h.number,showCellVerticalBorder:h.bool,showColumnVerticalBorder:h.bool,slotProps:h.object,slots:h.object,sortingMode:h.oneOf(["client","server"]),sortingOrder:h.arrayOf(h.oneOf(["asc","desc"])),sortModel:h.arrayOf(h.shape({field:h.string.isRequired,sort:h.oneOf(["asc","desc"])})),sx:h.oneOfType([h.arrayOf(h.oneOfType([h.func,h.object,h.bool])),h.func,h.object]),unstable_rowSpanning:h.bool,virtualizeColumnsWithAutoRowHeight:h.bool};const vS=({sx:e,...t})=>{const n=ge.useTheme();return i.jsx(yS,{disableRowSelectionOnClick:!0,...t,sx:{border:`1px solid ${n.palette.neutral.lighter}`,borderRadius:"8px",fontFamily:n.typography.fontFamily,fontSize:"0.875rem",[`& .${I.columnHeader}`]:{backgroundColor:"rgba(217, 217, 217, 0.10)",color:n.palette.neutral.dark,fontSize:"0.75rem",fontWeight:600,"&:focus, &:focus-within":{outline:`2px solid ${n.palette.primary.main}`,outlineOffset:"-2px"}},[`& .${I.columnSeparator}`]:{color:n.palette.neutral.lighter},[`& .${I.row}`]:{"&:hover":{backgroundColor:n.palette.neutral.lighter},"&.Mui-selected":{backgroundColor:n.palette.neutral.lighter,"&:hover":{backgroundColor:n.palette.neutral.lighter}}},[`& .${I.cell}`]:{color:n.palette.text.primary,"&:focus, &:focus-within":{outline:`2px solid ${n.palette.primary.main}`,outlineOffset:"-2px"}},[`& .${I.footerContainer}`]:{borderTop:`1px solid ${n.palette.neutral.lighter}`},[`& .${I.overlay}`]:{color:n.palette.neutral.dark},...e}})},SS=e=>"name"in e&&typeof e.name=="string"?e.name:"",kS=({className:e,columns:t,data:n=[],hideStarIcon:r=!1,isLoading:o=!1,sort:s,onConfigure:l,alwaysShowConfigureIcon:a=!1,onDelete:c,onEdit:u,onSelectRow:d,renderInlineEdit:f,labels:m={}})=>{const[p,b]=re.useState(""),{actions:x="Actions",noRecords:w="There are no records.",edit:S="Edit",configure:v="Configure"}=m,F=R=>u?u(p,R).then(()=>b("")):Promise.resolve(),j=re.useCallback((R,_)=>()=>{switch(_){case"configure":l==null||l(R);break;case"delete":c==null||c(R);break;case"edit":b(R);break;case"select":d==null||d(R);break}},[l,c,d]),y=R=>!!(l||c||u)&&R!==p,A="#F5F5F5",N="#555555",M="#FFFFFF",P="#364699";return i.jsx(B.TableContainer,{className:e,children:i.jsxs(Vh.default,{sx:{minWidth:800,"& td, & th":{px:4.5,py:3}},children:[i.jsx(Nh.default,{sx:{background:"rgba(217, 217, 217, 0.10)"},children:i.jsxs(dr.default,{sx:{border:"1px solid #F5F5F5"},children:[t.map((R,_)=>i.jsx(bt.default,{sortDirection:(s==null?void 0:s.column)===R.dataKey?s==null?void 0:s.direction:!1,sx:_<t.length-1?{borderRight:"1px solid #F5F5F5"}:void 0,children:R.onSort?i.jsx($h.default,{active:(s==null?void 0:s.column)===R.dataKey,direction:(s==null?void 0:s.column)===R.dataKey?s==null?void 0:s.direction:"asc",onClick:()=>{var O;return(O=R.onSort)==null?void 0:O.call(R,{column:R.dataKey,direction:(s==null?void 0:s.column)===R.dataKey&&(s==null?void 0:s.direction)==="asc"?"desc":"asc"})},children:i.jsx(B.Typography,{sx:{color:N,textTransform:"capitalize"},variant:"caption",children:R.label})}):i.jsx(B.Typography,{sx:{color:N,textTransform:"capitalize"},variant:"caption",children:R.label})},`${String(R.dataKey)}-header`)),y()&&i.jsx(bt.default,{children:i.jsx("span",{style:{position:"absolute",width:1,height:1,overflow:"hidden",clip:"rect(0,0,0,0)"},children:x})})]})}),o&&i.jsx(Po.default,{sx:{"& td":{borderBottomColor:A}},children:i.jsx(dr.default,{children:i.jsx(bt.default,{colSpan:t.length+(y()?1:0),children:i.jsx(B.LinearProgress,{"aria-label":"Loading"})})})}),!o&&n.length===0&&i.jsx(Po.default,{sx:{"& td":{borderBottomColor:A}},children:i.jsx(dr.default,{children:i.jsx(bt.default,{colSpan:t.length+(y()?1:0),children:i.jsx(B.Typography,{sx:{textAlign:"center",color:N,my:5},children:w})})})}),!o&&n.length>0&&i.jsx(Po.default,{sx:{"& td":{borderBottomColor:A}},children:n.map(R=>i.jsxs(dr.default,{sx:{"&:hover, &:focus-within":{backgroundColor:A},"&:hover .favorite-button, &:focus-within .favorite-button":{backgroundColor:M},"&:hover .hover-icon, &:focus-within .hover-icon":{opacity:1},"&:focus-visible":{outline:`2px solid ${P}`,outlineOffset:"-2px"},cursor:R.id!==p?"pointer":"default"},tabIndex:R.id!==p?0:void 0,onClick:R.id!==p?j(R.id,"select"):void 0,onKeyDown:R.id!==p?_=>{_.target===_.currentTarget&&_.key==="Enter"&&(_.preventDefault(),j(R.id,"select")())}:void 0,children:[R.id===p?i.jsx(bt.default,{colSpan:t.length+(y(R.id)?0:1),children:f?f(R.id,SS(R),F,()=>b("")):null}):t.map((_,O)=>{var D,V;return i.jsx(bt.default,{children:i.jsx("div",{style:O===0?{display:"flex",alignItems:"center",gap:10}:void 0,children:O===0?i.jsxs(i.Fragment,{children:[!r&&i.jsx(B.IconButton,{disabled:!0,"aria-label":"favorite",className:"favorite-button",size:"small",sx:{borderRadius:"10px",backgroundColor:A},children:i.jsx(_h.default,{fontSize:"inherit"})}),i.jsx(B.Typography,{sx:{fontWeight:700,color:"text.primary",fontSize:"0.875rem",cursor:"pointer","&:hover":{textDecoration:"underline"}},onClick:j(R.id,"select"),children:_.render?_.render(R):_.dataKey?String((D=R[_.dataKey])!=null?D:""):""})]}):i.jsx("div",{style:{fontWeight:400,color:N,fontSize:"0.75rem"},children:_.render?_.render(R):_.dataKey?String((V=R[_.dataKey])!=null?V:""):""})})},`${String(R.id)}-${String(_.dataKey)}`)}),y(R.id)&&i.jsxs(bt.default,{align:"right",children:[l&&i.jsx(B.Tooltip,{title:v,children:i.jsx(B.IconButton,{"aria-label":v,className:a?void 0:"hover-icon",size:"small",sx:a?void 0:{opacity:0},onClick:_=>{_.stopPropagation(),j(R.id,"configure")()},children:i.jsx(Ah.default,{fontSize:"inherit"})})}),u&&i.jsx(B.Tooltip,{title:S,children:i.jsx(B.IconButton,{"aria-label":S,className:"hover-icon",size:"small",sx:{opacity:0},onClick:_=>{_.stopPropagation(),j(R.id,"edit")()},children:i.jsx(Hh.default,{fontSize:"inherit"})})})]})]},R.id))})]})})},IS=({children:e})=>i.jsx(B.Table,{sx:{"& .MuiTableHead-root":{background:"rgba(217, 217, 217, 0.10)","& .MuiTableCell-root":{border:"1px solid #F5F5F5",color:"text.secondary"}},"& .MuiTableCell-root":{whiteSpace:"nowrap"},"& .MuiTableBody-root":{"& .MuiTableRow-root":{"&.checked":{background:"#F5F5F5"},"&:hover":{background:"#F5F5F5",transition:"200ms","& .actionIcons":{opacity:"1"},"& .tableButton":{background:"#FFF"}}}}},children:e}),ol=()=>i.jsxs(B.SvgIcon,{fontSize:"small",children:[i.jsx("rect",{fill:"#fff",height:"20",width:"20",x:"2",y:"2"}),i.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z",fill:"none",stroke:"#D9D9D9",strokeWidth:"2"}),i.jsx("path",{d:"M17.99 9l-1.41-1.42-6.59 6.59-2.58-2.57-1.42 1.41 4 3.99z"})]}),Sd=()=>i.jsxs(B.SvgIcon,{fontSize:"small",children:[i.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z",fill:"none",stroke:"#D9D9D9",strokeWidth:"2"}),i.jsx("path",{d:"M7 11h10v2H7z"})]}),kd=({allChecked:e,someChecked:t,onSelectAll:n})=>i.jsx(bt.default,{sx:{padding:"8px 12px",width:"1%"},children:i.jsx(B.Checkbox,{checked:e,checkedIcon:i.jsx(ol,{}),indeterminate:t&&!e,indeterminateIcon:i.jsx(Sd,{}),size:"small",sx:{padding:"0","& .MuiSvgIcon-root":{fill:"#D9D9D9"},"&.Mui-checked .MuiSvgIcon-root, &.MuiCheckbox-indeterminate .MuiSvgIcon-root":{fill:"#364699"}},onChange:n,slotProps:{input:{"aria-label":"Select all rows",ref:r=>{r&&(r.indeterminate=t&&!e)}}}})}),Id=({sortDirection:e})=>i.jsxs("svg",{fill:"none",height:"16",viewBox:"0 0 13 16",width:"13",xmlns:"http://www.w3.org/2000/svg",children:[i.jsx("path",{d:"M3.5 7L6.5 3L9.5 7H3.5Z",fill:"#333333",fillOpacity:e==="desc"?"0":"0.6"}),i.jsx("path",{d:"M3.5 9L6.5 13L9.5 9H3.5Z",fill:"#333333",fillOpacity:e==="asc"?"0":"0.6"})]});function MS({field:e,label:t,sx:n,value:r,setTableSearch:o,setTableSort:s,sortDirection:l,searchable:a=!0}){const[c,u]=re.useState(!1),d=a&&(c||!!r);return i.jsx(bt.default,{sx:{padding:"3px 2px 3px 6px",...n},onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),children:i.jsxs(B.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"2px"},children:[a?i.jsx(B.TextField,{disabled:!d,placeholder:t,size:"small",slotProps:{input:{startAdornment:i.jsx(B.InputAdornment,{position:"start",children:i.jsx(Gh.default,{sx:{transition:f=>f.transitions.create("all",{duration:f.transitions.duration.standard}),transitionDelay:"100ms",opacity:d?1:0,fontSize:"1rem"}})}),endAdornment:i.jsx(B.InputAdornment,{position:"end",sx:{position:"absolute",top:"2px",right:"2px"},children:i.jsx(B.IconButton,{size:"small","aria-label":`Clear ${t} search`,sx:{transition:f=>f.transitions.create("all",{duration:f.transitions.duration.standard}),opacity:r?1:0,pointerEvents:r?"auto":"none"},onClick:()=>o(f=>({...f,[e]:""})),children:i.jsx(zh.default,{sx:{fontSize:"0.75rem"}})})}),autoComplete:"off"}},sx:{"& .MuiInputBase-root":{transition:f=>f.transitions.create("all",{duration:f.transitions.duration.standard}),backgroundColor:d?"neutral.lightest":"transparent",borderRadius:"8px",color:d?"inherit":"text.secondary",fontSize:"0.75rem",height:"unset",paddingLeft:"6px",paddingRight:"4px"},"& .MuiInputBase-input":{transition:f=>f.transitions.create("all",{duration:f.transitions.duration.standard}),cursor:d?"text":"default",position:"relative",left:d?"0":"-18px",padding:"4px 0"},"& .MuiInputBase-input::placeholder":{opacity:"1"},"& .MuiOutlinedInput-notchedOutline":{borderWidth:"1px !important",borderColor:d?"#D9D9D9 !important":"transparent !important"},"& .MuiInputAdornment-positionStart":{marginRight:"4px"}},value:r,onChange:f=>o(m=>({...m,[e]:f.target.value}))}):i.jsx(B.Box,{sx:{color:"text.secondary",fontSize:"0.75rem",lineHeight:1.2,paddingLeft:"6px",whiteSpace:"nowrap"},children:t}),i.jsx(B.IconButton,{size:"small","aria-label":`Sort by ${t}`,onClick:()=>s(f=>{if(!f)return{field:e,direction:"asc"};if(f.direction==="asc")return{field:e,direction:"desc"}}),children:i.jsx(Id,{sortDirection:l})})]})})}const Md=re.memo(MS),ES={position:"absolute",width:"1px",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:0},PS=({shouldRenderCheckbox:e,shouldRenderAction:t,items:n,tableSearch:r,setTableSearch:o,tableSort:s,setTableSort:l,allChecked:a,someChecked:c,onSelectAll:u})=>i.jsx(B.TableHead,{children:i.jsxs(B.TableRow,{children:[e?i.jsx(kd,{allChecked:a,someChecked:c,onSelectAll:u}):null,n.map(d=>{var f;return d.type==="tableCell"?i.jsx(bt.default,{children:i.jsx(B.Typography,{sx:{color:"text.secondary",fontSize:"0.75rem"},children:d.label})},d.id):d.type==="searchable"?i.jsx(Md,{field:d.field,label:d.label,setTableSearch:o,setTableSort:l,sortDirection:(s==null?void 0:s.field)===d.field?s==null?void 0:s.direction:void 0,value:(f=r[d.field])!=null?f:""},d.id):null}),t?i.jsx(bt.default,{children:i.jsx(B.Box,{component:"span",sx:ES,children:"Actions"})}):null]})}),Ed=re.memo(({id:e,index:t,checked:n,onTableRowCheck:r,children:o,onClick:s,shouldRenderCheckbox:l})=>i.jsxs(dr.default,{className:n?"checked":"",sx:{cursor:s?"pointer":void 0},onClick:s,children:[l?i.jsx(bt.default,{sx:{padding:"13px 12px",borderBottom:"1px solid #F5F5F5"},children:i.jsx(B.Checkbox,{checked:n,checkedIcon:i.jsx(ol,{}),indeterminateIcon:i.jsx(Bh.default,{}),size:"small",sx:{padding:"0","& .MuiSvgIcon-root":{fill:"#D9D9D9"},"&.Mui-checked .MuiSvgIcon-root":{fill:"#364699"}},slotProps:{input:{"aria-label":`Select row ${t+1}`}},onClick:r?a=>{a.stopPropagation(),r(e,t,a)}:void 0})}):null,o]},e));Ed.displayName="CustomTableRow";const TS=({label:e})=>i.jsx(bt.default,{sx:{padding:"7px 16px"},children:i.jsx(B.Typography,{sx:{fontSize:"0.75rem"},children:e})});function Pd(e,t,n){const r=u=>typeof u=="string"?u.toLowerCase():Array.isArray(u)&&u.every(d=>typeof d=="string")?u.join(" ").toLowerCase():"",o=(u,d)=>{if(!d)return!0;const f=d.toLowerCase();return typeof u=="string"?u.toLowerCase().includes(f):Array.isArray(u)&&u.every(m=>typeof m=="string")?u.some(m=>m.toLowerCase().includes(f)):!1},s=e.filter(u=>t?Object.entries(t).every(([d,f])=>o(u[d],f)):!0);if(!n)return s;const{field:l,direction:a}=n,c=a==="asc"?1:-1;return[...s].sort((u,d)=>{const f=u[l],m=d[l];if(typeof f=="number"&&typeof m=="number")return c*(f-m);const p=r(f),b=r(m);return p&&b?c*p.localeCompare(b):0})}const FS=e=>{const[t,n]=re.useState({}),[r,o]=re.useState(),[s,l]=re.useState(new Set),[a,c]=re.useState(null),u=Pd(e,t,r),d=u.map(w=>w.id).filter(Boolean),f=d.length>0&&d.every(w=>s.has(w)),m=d.some(w=>s.has(w));return{tableSearch:t,setTableSearch:n,tableSort:r,setTableSort:o,allChecked:f,someChecked:m,onSelectAll:()=>{u.every(w=>s.has(w.id))?l(new Set):l(new Set(u.map(w=>w.id)))},onTableRowCheck:(w,S,v)=>{if(v.shiftKey&&a!==null){const F=Math.min(a,S),j=Math.max(a,S),y=new Set(s);d.slice(F,j+1).forEach(A=>y.add(A)),l(y)}else{const F=new Set(s);F.has(w)?F.delete(w):F.add(w),l(F)}c(S)},filteredTableData:u,checkedIds:s,unselectAll:()=>l(new Set)}},Td=g.default.forwardRef(({onClick:e,holdDuration:t=2e3,holdLabel:n="Hold to confirm...",children:r,disabled:o,...s},l)=>{const[a,c]=re.useState(!1),[u,d]=re.useState(!1),[f,m]=re.useState(0),p=re.useRef(null),b=re.useRef(null),x=re.useRef(0),w=re.useRef(!1),S=()=>{p.current&&(clearTimeout(p.current),p.current=null),b.current&&(clearInterval(b.current),b.current=null)},v=()=>{o||u||a||(S(),x.current=performance.now(),m(0),c(!0),b.current=setInterval(()=>{const j=performance.now()-x.current;m(Math.min(j/t*100,100))},16),p.current=setTimeout(()=>{S(),m(100),c(!1),d(!0),(async()=>{try{await e()}finally{d(!1),m(0)}})()},t))},F=()=>{a&&(S(),c(!1),m(0))};return re.useEffect(()=>()=>S(),[]),i.jsx(B.Box,{sx:{position:"relative"},children:i.jsx(B.Button,{ref:l,disabled:o||u,onPointerDown:v,onPointerUp:F,onPointerLeave:F,onPointerCancel:F,onKeyDown:j=>{j.key!==" "&&j.key!=="Enter"||w.current||(j.preventDefault(),w.current=!0,v())},onKeyUp:j=>{j.key!==" "&&j.key!=="Enter"||(w.current=!1,F())},onBlur:()=>{w.current=!1,F()},sx:{display:"flex",alignItems:"center",gap:1,width:"100%",touchAction:"none"},...s,children:a?i.jsxs(i.Fragment,{children:[i.jsx(B.CircularProgress,{size:18,sx:{color:"inherit","& .MuiCircularProgress-circleDeterminate":{transition:"none"}},thickness:7,value:f,variant:"determinate"}),i.jsx("span",{children:n})]}):r})})});Td.displayName="HoldToConfirmButton";const jS=({menuItems:e,ariaLabel:t="Open menu"})=>{const[n,r]=re.useState(null),o=!!n,s=re.useId(),l=`${s}-trigger`,a=`${s}-menu`,c=f=>{r(f.currentTarget)},u=()=>{r(null)},d=f=>{f(),u()};return i.jsxs(i.Fragment,{children:[i.jsx(B.IconButton,{"aria-controls":o?a:void 0,"aria-expanded":o,"aria-haspopup":"true","aria-label":t,id:l,onClick:c,children:i.jsx(Wh.default,{})}),i.jsx(B.Menu,{anchorEl:n,anchorOrigin:{vertical:"bottom",horizontal:"right"},open:o,slotProps:{list:{id:a,"aria-labelledby":l}},transformOrigin:{vertical:"top",horizontal:"right"},onClose:u,children:e.map((f,m)=>i.jsx(B.MenuItem,{onClick:()=>d(f.onClick),children:f.label},m))})]})},OS=({title:e,className:t,subtitle:n,"data-testid":r})=>i.jsxs("div",{children:[i.jsx("h1",{className:`text-primary text-lg font-bold uppercase ${t!=null?t:""}`,"data-testid":r,children:e}),n&&i.jsx("p",{className:"text-neutral text-sm",children:n})]}),cr=({type:e})=>{switch(e){case"error":return i.jsx(Kh.default,{sx:{color:"#5C0924"}});case"info":return i.jsx(Xh.default,{sx:{color:"#161E4A"}});case"success":return i.jsx(qh.default,{sx:{color:"#00514B"}});case"warning":return i.jsx(Yh.default,{sx:{color:"#816E09"}});case"default":default:return null}},RS=e=>{const t=e.type==="error",n=re.useCallback(r=>{r&&t&&r.focus()},[t]);return i.jsx(ma.default,{ref:n,"aria-label":e.ariaLabel||"Close notification",sx:{position:"absolute",top:8,right:8,padding:"4px"},onClick:()=>e.closeToast(!0),children:i.jsx(Uh.default,{sx:{fontSize:"1rem",color:"#555555"}})})},LS=e=>i.jsx(Kt.ToastContainer,{hideProgressBar:!0,newestOnTop:!0,"aria-label":"Toast",className:"whitespace-pre-wrap",closeButton:RS,position:"top-right",transition:Kt.Slide,...e}),ur="relative min-h-auto! text-sm border-l-[5px] rounded-none! p-2! pr-10!",DS={default:(e,t)=>Kt.toast(e,{ariaLabel:e,autoClose:3e3,className:ur,type:"default",icon:i.jsx(cr,{type:"default"}),...t}),error:(e,t)=>Kt.toast.error(e!=null?e:"There was an error! Please try again.",{ariaLabel:e!=null?e:"There was an error! Please try again",autoClose:15e3,className:`${ur} text-[#5C0924]! bg-[#FBEAEC]! border-[#5C0924]`,type:"error",icon:i.jsx(cr,{type:"error"}),...t}),info:(e,t)=>Kt.toast.info(e,{ariaLabel:e,autoClose:3500,className:`${ur} text-[#161E4A]! bg-[#E9ECF6]! border-[#161E4A]`,type:"info",icon:i.jsx(cr,{type:"info"}),...t}),ok:(e,t)=>Kt.toast.success(e!=null?e:"Success!",{ariaLabel:e!=null?e:"Success!",autoClose:2500,className:`${ur} text-[#00514B]! bg-[#EBF6F5]! border-[#00514B]`,type:"success",icon:i.jsx(cr,{type:"success"}),...t}),warning:(e,t)=>Kt.toast.warning(e,{ariaLabel:e,autoClose:3500,className:`${ur} text-[#816E09]! bg-[#FEFBE0]! border-[#816E09]!`,type:"warning",icon:i.jsx(cr,{type:"warning"}),...t}),dismiss:e=>Kt.toast.dismiss(e),isActive:e=>Kt.toast.isActive(e)},HS=ge.styled(({className:e,...t})=>i.jsx(pa.default,{...t,classes:{popper:e}}))(({theme:e})=>({[`& .${Jo.tooltipClasses.tooltip}`]:{backgroundColor:"#FFFFFF",color:e.palette.text.primary,border:"1px solid #D9D9D9",borderRadius:"8px",padding:"16px",fontSize:"0.875rem",fontWeight:400,boxShadow:"0 4px 4px 0 rgba(85, 85, 85, 0.10)",display:"flex",justifyContent:"center",alignItems:"center",gap:"10px",maxWidth:"none"},[`& .${Jo.tooltipClasses.arrow}`]:{color:"#FFFFFF","&::before":{backgroundColor:"#FFFFFF",border:"1px solid #D9D9D9"}}})),_S=({icon:e,title:t,showOnlyOnOverflow:n=!1,children:r,...o})=>{const[s,l]=re.useState(!1),[a,c]=re.useState(null);re.useEffect(()=>{if(!n||!a)return;const m=()=>{l(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight)};m();const p=new ResizeObserver(m);return p.observe(a),()=>p.disconnect()},[n,a]);const u=e?i.jsxs(B.Box,{sx:{display:"flex",alignItems:"center",gap:"10px"},children:[e,t]}):t,d=n&&re.isValidElement(r)?re.cloneElement(r,{ref:c}):r,f=n?!s:o.disableHoverListener;return i.jsx(HS,{...o,disableHoverListener:f,title:u,children:d})},AS={sm:{width:"1.5rem",height:"1.5rem",fontSize:"0.75rem"},md:{width:"2.5rem",height:"2.5rem",fontSize:"0.875rem"},lg:{width:"3.75rem",height:"3.75rem",fontSize:"1.5rem"},xl:{width:"7.5rem",height:"7.5rem",fontSize:"3rem"}},VS=({user:e,size:t="sm"})=>{var u,d,f,m;const n=ge.useTheme(),r=(d=(u=e==null?void 0:e.personalInfo.firstName)==null?void 0:u.charAt(0).toUpperCase())!=null?d:"",o=(m=(f=e==null?void 0:e.personalInfo.lastName)==null?void 0:f.charAt(0).toUpperCase())!=null?m:"",s=`${r}${o}`.trim()||" ",{width:l,height:a,fontSize:c}=AS[t];return i.jsx(B.Avatar,{sx:{backgroundColor:n.palette.primary.main,color:n.palette.primary.contrastText,width:l,height:a,fontSize:c,border:t==="sm"?`2px solid ${n.palette.neutral.lighter}`:void 0,[n.breakpoints.between("sm","md")]:{width:"33px !important",height:"33px !important"}},children:s})},NS=({messages:e})=>{const t=ge.useTheme();return e.length===0?null:i.jsx(B.Alert,{icon:i.jsx(Zh.default,{sx:{color:"#665312"}}),severity:"warning",sx:{display:"flex",backgroundColor:t.palette.warning.lightest,justifyContent:"center"},children:i.jsx(B.Typography,{sx:{fontFamily:"Lato",fontWeight:500,color:"#665312"},children:e.join(", ")})})},Fd=24,Ji=-40,$S=0,jd=e=>{if(e<=0)return 0;const t=20*Math.log10(e);return Math.min(1,Math.max(0,(t-Ji)/($S-Ji)))},Od=(e,t,n=Fd)=>e<=Math.floor(n*t),zS={default:{height:"18px",gap:"0.25rem",bar:{width:"0.625rem"},radius:"2px"},small:{height:"0.625rem",gap:"2px",bar:{width:"7px",boxSizing:"border-box"},radius:"1px"}},sl=({className:e,volume:t,label:n="Input Level",hideLabel:r=!1,barCount:o=Fd,size:s="default"})=>{const l=ge.useTheme(),a=Array.from({length:o},(d,f)=>f+1),c=zS[s],u=jd(t);return i.jsxs(B.Box,{className:e,sx:{width:"100%",display:"flex",flexDirection:"column",gap:"0.5rem"},children:[!r&&i.jsx(B.Typography,{sx:{fontFamily:l.typography.fontFamily,fontWeight:l.typography.fontWeightBold},children:n}),i.jsx(B.Box,{...r&&{role:"img","aria-label":n},sx:{width:"100%",height:c.height,display:"flex",gap:c.gap},children:a.map(d=>i.jsx(B.Box,{sx:{...c.bar,height:"100%",borderRadius:c.radius,border:`0.5px solid ${l.palette.neutral.light}`,backgroundColor:Od(d,u,o)?l.palette["acuity-green"].main:l.customColors.white}},`audio-volume-bar-${d}`))})]})},ll=e=>{const[t,n]=re.useState(0);return re.useEffect(()=>{if(!e){n(0);return}let r;const o=new AudioContext,s=o.createMediaStreamSource(e),l=o.createAnalyser();l.fftSize=512,s.connect(l);const a=new Uint8Array(l.frequencyBinCount),c=()=>{let u=0;l.getByteTimeDomainData(a);for(let d=0;d<a.length;d++){const f=(a[d]-128)/128;u+=f*f}n(Math.sqrt(u/a.length)),r=requestAnimationFrame(c)};return c(),()=>{cancelAnimationFrame(r),l.disconnect(),s.disconnect(),o.close()}},[e]),t},GS=({stream:e,levelLabel:t})=>{const n=ll(e);return i.jsx(B.Box,{"data-testid":"recording-audio-level",sx:{width:"fit-content"},children:i.jsx(sl,{volume:n,label:t,hideLabel:!0,barCount:8,size:"small"})})},BS=({label:e="Recording",stream:t,levelLabel:n="Input Level",className:r})=>{const o=ge.useTheme();return i.jsxs(B.Box,{className:r,role:"alert",sx:{display:"inline-grid",gridTemplateColumns:"auto auto",alignItems:"center",columnGap:"0.5rem",rowGap:"0.25rem",padding:"0.5rem 0.75rem",backgroundColor:o.customColors.white,borderRadius:"9999px",boxShadow:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)"},children:[i.jsx(B.Box,{"aria-hidden":!0,sx:{width:12,height:12,borderRadius:"50%",backgroundColor:o.palette.error.main,justifySelf:"center"}}),i.jsx(B.Typography,{sx:{fontSize:"0.875rem",fontWeight:500,lineHeight:"1.25rem",color:o.palette.neutral.darkest,margin:0},children:e}),i.jsx(Qh.default,{"aria-hidden":!0,sx:{color:o.palette.neutral.darkest,fontSize:14,justifySelf:"center"}}),i.jsx(GS,{stream:t,levelLabel:n})]})},WS={audio:{label:"Select your Microphone",okMessage:"Microphone is working perfectly!",errorMessage:"There is a problem with your microphone. Please select your input again to proceed with your test."},video:{label:"Select your Camera",okMessage:"Camera is working as intended",errorMessage:"There is a problem with your webcam, Please select your camera input again to proceed with your test. "}},Rd=({className:e,disabled:t,error:n,hideLabel:r=!1,options:o=[],type:s,value:l="",onChange:a,showMessage:c=!0,pendingMessage:u,pendingTone:d="neutral",compact:f=!1,labels:m})=>{const p=ge.useTheme(),{label:b,okMessage:x,errorMessage:w}=m!=null?m:WS[s],S=re.useMemo(()=>({width:f?"329px":r?"485px":"100%",height:f?"49px":r?"54px":"auto",labelFontSize:f?"8px":"10px",valueFontSize:f?"12px":"16px",labelColor:f?p.palette.neutral.darkest:p.palette.neutral.main,valueColor:f?p.palette.neutral.darkest:p.palette.neutral.dark,borderRadius:f?"10px":"8px",gap:f?"0px":"4px"}),[f,r,p.palette.neutral]),v=re.useMemo(()=>r||f?{width:S.width,height:S.height,borderRadius:S.borderRadius,padding:"10px","& .MuiSelect-select":{padding:f?"19px 10px":"10px",display:"flex",flexDirection:"column",gap:"4px"}}:{},[r,f,S]),F=re.useCallback(M=>{a(M.target.value)},[a]),j=re.useCallback(M=>{const P=o.find(R=>R.deviceId===M);return!P||!r&&!f?(P==null?void 0:P.label)||"":i.jsxs(B.Box,{sx:{display:"flex",flexDirection:"column",gap:S.gap},children:[i.jsx(B.Typography,{component:"span",sx:{fontFamily:p.typography.fontFamily,fontSize:S.labelFontSize,fontWeight:600,lineHeight:"20px",color:S.labelColor},children:b}),i.jsx(B.Typography,{component:"span",sx:{fontFamily:p.typography.fontFamily,fontSize:S.valueFontSize,fontWeight:600,lineHeight:"20px",color:S.valueColor},children:P.label})]})},[o,r,f,S,p.typography,b]),y=!n&&!!l&&!!u,A=!n&&!!l&&!u,N=!!n;return i.jsxs(B.Box,{className:e,sx:{width:"100%",minWidth:"300px"},children:[!r&&i.jsx(B.Typography,{sx:{fontFamily:p.typography.fontFamily,fontWeight:p.typography.fontWeightBold,mb:"0.5rem"},children:b}),i.jsx(B.FormControl,{sx:{mb:"0.375rem"},fullWidth:!0,disabled:!o.length,children:i.jsx(B.Select,{SelectDisplayProps:{"aria-label":b},disabled:t,value:l,onChange:F,sx:v,renderValue:j,children:o.map(M=>i.jsx(B.MenuItem,{"aria-label":M.label,value:M.deviceId,children:M.label},M.deviceId))})}),c&&i.jsxs(B.Box,{"aria-live":"polite",sx:{minHeight:"20px",display:"flex",alignItems:"center",gap:"0.5rem"},children:[y&&d==="neutral"&&i.jsxs(i.Fragment,{children:[i.jsx(tg.default,{fontSize:"small",sx:{color:p.palette.neutral.dark}}),i.jsx(B.Typography,{sx:{fontSize:"10px",color:p.palette.neutral.dark},children:u})]}),y&&d==="error"&&i.jsxs(i.Fragment,{children:[i.jsx(ml.default,{fontSize:"small",sx:{color:p.palette["acuity-red"].main}}),i.jsx(B.Typography,{sx:{fontSize:"10px",color:p.palette["acuity-red"].main},children:u})]}),A&&i.jsxs(i.Fragment,{children:[i.jsx(eg.default,{fontSize:"small",sx:{color:p.palette["acuity-green"].darkest}}),i.jsx(B.Typography,{sx:{fontSize:"10px",color:p.palette["acuity-green"].darkest},children:x})]}),N&&i.jsxs(i.Fragment,{children:[i.jsx(ml.default,{fontSize:"small",sx:{color:p.palette["acuity-red"].main}}),i.jsx(B.Typography,{sx:{fontSize:"10px",color:p.palette["acuity-red"].main},children:w})]})]})]})},Ld=.02,Dd=250,Hd=8e3,_d=(e,t)=>{const[n,r]=re.useState(t?"listening":"idle"),o=re.useRef(0),s=e>=Ld,l=n==="detected";return re.useEffect(()=>{if(o.current=0,!t){r("idle");return}r("listening");const a=setTimeout(()=>{r(c=>c==="listening"?"silent":c)},Hd);return()=>clearTimeout(a)},[t]),re.useEffect(()=>{if(!t||!s||l)return;const a=Date.now(),c=setTimeout(()=>r("detected"),Math.max(0,Dd-o.current));return()=>{clearTimeout(c),o.current+=Date.now()-a}},[t,s,l]),n},Ad={speakToTest:"Speak to check your microphone.",noSoundDetected:"No sound detected. Speak into your microphone or choose another device.",inputLevel:"Input Level"},qS=({stream:e})=>{const t=ge.useTheme(),n=re.useRef(null);return re.useEffect(()=>{n.current&&(n.current.srcObject=e!=null?e:null)},[e]),i.jsxs(B.Box,{sx:{position:"relative",width:"100%",aspectRatio:"16 / 9",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"12px",border:`1px solid ${t.palette.neutral.light}`,backgroundColor:t.palette.neutral.lighter,overflow:"hidden"},children:[i.jsx(Jh.default,{"aria-hidden":!0,sx:{fontSize:80,color:t.palette.neutral.dark}}),i.jsx(B.Box,{component:"video",ref:n,autoPlay:!0,muted:!0,playsInline:!0,disablePictureInPicture:!0,"aria-hidden":!0,sx:{position:"absolute",inset:0,width:"100%",height:"100%",objectFit:"cover",transform:"scaleX(-1)",display:e?"block":"none"}})]})},US=({devices:e,labels:t,onStatusChange:n})=>{const r=ll(e.audioStream),o=_d(r,e.audioStream);re.useEffect(()=>n==null?void 0:n(o),[o,n]);let s;return o==="silent"?s=t.noSoundDetected:o!=="detected"&&(s=t.speakToTest),i.jsxs(i.Fragment,{children:[i.jsx(Rd,{type:"audio",disabled:e.audioPerm!=="granted"||!e.audioDevices.length,error:e.audioError,options:e.audioDevices,value:e.activeAudioId,onChange:e.onSelectAudio,pendingMessage:s,pendingTone:o==="silent"?"error":"neutral",labels:t.microphone}),i.jsx(sl,{volume:r,label:t.inputLevel})]})},KS=({devices:e,onMicStatusChange:t,labels:n,className:r})=>{const o=ge.useTheme(),s={...Ad,...n};return i.jsxs(B.Box,{className:r,sx:{width:"100%",display:"flex",justifyContent:"center",flexWrap:{xs:"wrap",md:"nowrap"},gap:"3rem"},children:[i.jsx(B.Box,{sx:{width:"100%",maxWidth:"624px"},children:i.jsx(qS,{stream:e.videoStream})}),i.jsx(B.Box,{sx:{display:{xs:"none",md:"block"},borderLeft:`1px solid ${o.palette.neutral.lighter}`}}),i.jsxs(B.Box,{sx:{width:"100%",maxWidth:"330px",display:"flex",flexDirection:"column",gap:"2.5rem"},children:[i.jsx(Rd,{type:"video",disabled:e.videoPerm!=="granted"||!e.videoDevices.length,error:e.videoError,options:e.videoDevices,value:e.activeVideoId,onChange:e.onSelectVideo,labels:s.camera}),i.jsx(US,{devices:e,labels:s,onStatusChange:t})]})]})};function ea(e){const t=Math.abs(e);return t<10?`0${t}`:t.toString()}function il(e){const t=Math.floor(Math.abs(e)/60)*Math.sign(e),n=Math.abs(e)%60;return`${e<0?"-":""}${ea(t)}:${ea(n)}`}const XS=({timeLeft:e,timerLabel:t,variant:n="info",showClockIcon:r=!0,accessibleLabel:o="Time Left : "})=>{const s=ge.useTheme(),l=il(e),a=n==="info",c=a?s.palette.primary.main:s.palette.warning.darkest,u=a?s.palette.primary.lightest:s.palette.warning.lightest;return i.jsxs(B.Stack,{role:"timer","aria-live":"polite","aria-label":t||o,direction:"row",sx:{color:c,padding:{xs:"0.5rem 0.75rem",sm:"0.75rem 1rem"},backgroundColor:u,justifyContent:"space-between",borderRadius:"1rem",minWidth:0,maxWidth:"100%",overflow:"hidden",flexShrink:1,...a?{}:{border:`1px solid ${c}`}},children:[i.jsxs(B.Stack,{direction:"row",spacing:"0.25rem",alignItems:"center",sx:{minWidth:0,overflow:"hidden",flexShrink:1},children:[r&&i.jsx(ng.default,{sx:{flexShrink:0}}),t&&i.jsx(B.Typography,{sx:{fontSize:{xs:"0.875rem",sm:"1rem"},whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",minWidth:0},children:t})]}),i.jsx(B.Typography,{sx:{fontWeight:"bold",ml:"0.5rem",fontSize:{xs:"0.875rem",sm:"1rem"},flexShrink:0,minWidth:"fit-content"},children:l})]})},Vd=B.styled(B.Box)(()=>({width:"100%",maxWidth:624,aspectRatio:"4/3",borderRadius:10,overflow:"hidden",position:"relative",height:"100%",maxHeight:368,marginBottom:"2.5rem",display:"flex",alignItems:"center",justifyContent:"center"})),YS=({imageUrl:e,altText:t="Preview Image"})=>e?i.jsx(Vd,{children:i.jsx("img",{src:e,alt:t,style:{width:"100%",height:"100%",objectFit:"contain",display:"block"}})}):null,Vt="Lato, sans-serif",ZS=e=>{var t,n,r,o,s,l,a,c,u,d,f,m,p,b,x,w,S,v,F,j,y,A;return{h1:{fontFamily:(t=e.typography.fontFamily)!=null?t:Vt,fontWeight:(n=e.typography.fontWeightBold)!=null?n:700,fontSize:(r=e.typography["4xl"])!=null?r:"3rem",textAlign:"left",verticalAlign:"middle"},h2:{fontFamily:(o=e.typography.fontFamily)!=null?o:Vt,fontWeight:(s=e.typography.fontWeightMedium)!=null?s:600,fontSize:(l=e.typography["3xl"])!=null?l:"2.5rem",textAlign:"left",verticalAlign:"middle"},h3:{fontFamily:(a=e.typography.fontFamily)!=null?a:Vt,fontWeight:(c=e.typography.fontWeightRegular)!=null?c:400,fontSize:(u=e.typography["2xl"])!=null?u:"2rem",textAlign:"left",width:"100%",mt:"1rem"},h4:{fontFamily:(d=e.typography.fontFamily)!=null?d:Vt,fontWeight:(f=e.typography.fontWeightMedium)!=null?f:700,fontSize:(m=e.typography.base)!=null?m:"1rem",textAlign:"left",verticalAlign:"middle"},ul:{fontFamily:(p=e.typography.fontFamily)!=null?p:Vt,fontWeight:(b=e.typography.fontWeightRegular)!=null?b:400,listStyleType:"disc",pl:"1rem",textAlign:"left",width:"100%",pt:0},ol:{fontFamily:(x=e.typography.fontFamily)!=null?x:Vt,fontWeight:(w=e.typography.fontWeightRegular)!=null?w:400,listStyleType:"decimal",pl:"1rem",mt:"0.5rem",textAlign:"left",width:"100%"},p:{fontFamily:(S=e.typography.fontFamily)!=null?S:Vt,fontWeight:(v=e.typography.fontWeightRegular)!=null?v:400,mt:"0.25rem",textAlign:"left",wordBreak:"break-word",width:"100%"},a:{fontFamily:(F=e.typography.fontFamily)!=null?F:Vt,fontWeight:(j=e.typography.fontWeightRegular)!=null?j:400,color:e.palette.primary.main,textDecoration:"underline"},li:{fontFamily:(y=e.typography.fontFamily)!=null?y:Vt,fontWeight:(A=e.typography.fontWeightRegular)!=null?A:400,display:"list-item",p:0}}},tn=(e,t,n)=>{var o,s;const r=e.typography[t];return{fontSize:(o=r==null?void 0:r.fontSize)!=null?o:n.fontSize,lineHeight:(s=r==null?void 0:r.lineHeight)!=null?s:n.lineHeight}},al=e=>{var l,a,c,u;const t=(l=e.typography.fontFamily)!=null?l:Vt,n=(a=e.typography.fontWeightRegular)!=null?a:400,r=(c=e.typography.fontWeightMedium)!=null?c:600,o=(u=e.typography.fontWeightBold)!=null?u:700,s={fontFamily:t,letterSpacing:"normal",textAlign:"left",m:0};return{fontFamily:t,"& h1":{...s,...tn(e,"4xl",{fontSize:"2.25rem",lineHeight:"3rem"}),fontWeight:o},"& h2":{...s,...tn(e,"3xl",{fontSize:"1.625rem",lineHeight:"2.25rem"}),fontWeight:r},"& h3":{...s,...tn(e,"2xl",{fontSize:"1.4375rem",lineHeight:"2rem"}),fontWeight:n,mt:"1rem"},"& h4":{...s,...tn(e,"base",{fontSize:"1rem",lineHeight:"1.5rem"}),fontWeight:r},"& h5":{...s,...tn(e,"sm",{fontSize:"0.875rem",lineHeight:"1.25rem"}),fontWeight:o},"& h6":{...s,...tn(e,"sm",{fontSize:"0.875rem",lineHeight:"1.25rem"}),fontWeight:r},"& p":{fontFamily:t,...tn(e,"base",{fontSize:"1rem",lineHeight:"1.5rem"}),fontWeight:n,letterSpacing:"normal",textAlign:"left",wordBreak:"break-word",m:0,mt:"0.25rem"},"& ul, & ol":{fontFamily:t,...tn(e,"base",{fontSize:"1rem",lineHeight:"1.5rem"}),fontWeight:n,textAlign:"left",m:0,pl:"1rem",pr:0},"& ul":{listStyleType:"disc",pt:0,pb:"0.5rem"},"& ol":{listStyleType:"decimal",mt:"0.5rem",pt:"0.5rem",pb:"0.5rem"},"& li":{display:"list-item",m:0,p:0},"& li > p":{m:0},"& a":{color:e.palette.primary.main,textDecoration:"underline"},"& strong":{fontWeight:o},"& em":{fontStyle:"italic"}}},QS=B.styled(B.Box)(({theme:e})=>({width:"100%",borderRadius:"10px",overflow:"hidden",position:"relative",height:"100%",padding:"0.5rem",fontFamily:e.typography.fontFamily})),JS=({content:e=""})=>{const t=ge.useTheme(),n=re.useMemo(()=>al(t),[t]);return i.jsx(QS,{"data-testid":"content-text",sx:n,children:i.jsx(rg.default,{components:{a({children:r,href:o}){return i.jsx("a",{href:o,target:"_blank",rel:"noopener noreferrer",children:r})}},children:e})})},tt={primary:{darkest:"#161E4A",dark:"#253170",main:"#364699",light:"#7779B8",lighter:"#B0B1D7",lightest:"#E9ECF6"},secondary:{darkest:"#15436E",dark:"#205C94",main:"#2C76BC",light:"#799DD1",lighter:"#B3C6E5",lightest:"#EAF1F9"},error:{darkest:"#720202",dark:"#A90508",main:"#E40A0A",light:"#F97054",lighter:"#FFB19E",lightest:"#FFECE8"},info:{darkest:"#0D556D",dark:"#157393",main:"#5A65E4",light:"#76B2CF",lighter:"#B2D3E3",lightest:"#EBF4F8"},warning:{darkest:"#816E09",dark:"#E0CA01",main:"#FCE833",light:"#FFEE7A",lighter:"#FFF5B1",lightest:"#FEFBE0"},success:{darkest:"#24590A",dark:"#387F14",main:"#4DA81F",light:"#89C368",lighter:"#BCDEA9",lightest:"#EEF8EB"},neutral:{darkest:"#333333",dark:"#555555",main:"#949494",light:"#B8B8B8",lighter:"#F5F5F5",lightest:"#FFFFFF"},"acuity-green":{darkest:"#00514B",dark:"#007A72",main:"#00A59B",light:"#70C0B8",lighter:"#B0DBD6",lightest:"#EBF6F5"},"acuity-red":{darkest:"#5C0924",dark:"#8A1339",main:"#BA1E50",light:"#D66D80",lighter:"#ECACB5",lightest:"#FBEAEC"},customColors:{black:"#000000",white:"#FFFFFF","light-gray":"#D9D9D9","medium-gray":"#767676","transparent-medium":"rgba(0, 0, 0, 0.25)","transparent-light":"rgba(0, 0, 0, 0.05)"}},ta=[1,2,3,4,5,6],Nd={toolbar:"Formatting",undo:"Undo",redo:"Redo",textStyle:"Text style",paragraph:"Paragraph",heading:e=>`Heading ${e}`,bold:"Bold",italic:"Italic",numberedList:"Numbered list",bulletedList:"Bulleted list"},e5=e=>i.jsx(B.SvgIcon,{viewBox:"0 0 24 25",...e,children:i.jsx("path",{d:"M7.404 18.5V17.5H14.658C15.6953 17.5 16.5787 17.1443 17.308 16.433C18.0387 15.7217 18.404 14.853 18.404 13.827C18.404 12.801 18.039 11.9357 17.309 11.231C16.5783 10.5257 15.6947 10.173 14.658 10.173H6.916L9.881 13.138L9.173 13.846L5 9.673L9.173 5.5L9.881 6.208L6.916 9.173H14.658C15.9667 9.173 17.085 9.62433 18.013 10.527C18.9397 11.4297 19.403 12.5297 19.403 13.827C19.403 15.1243 18.9397 16.2277 18.013 17.137C17.0863 18.0463 15.9677 18.5007 14.657 18.5H7.404Z"})}),t5=e=>i.jsx(B.SvgIcon,{viewBox:"0 0 24 25",...e,children:i.jsx("path",{d:"M16.596 18.5V17.5H9.342C8.30467 17.5 7.42133 17.1443 6.692 16.433C5.96133 15.7217 5.596 14.853 5.596 13.827C5.596 12.801 5.961 11.9357 6.691 11.231C7.42167 10.5257 8.30533 10.173 9.342 10.173H17.084L14.119 13.138L14.827 13.846L19 9.673L14.827 5.5L14.119 6.208L17.084 9.173H9.342C8.03333 9.173 6.915 9.62433 5.987 10.527C5.06033 11.4297 4.597 12.5297 4.597 13.827C4.597 15.1243 5.06033 16.2277 5.987 17.137C6.91367 18.0463 8.03233 18.5007 9.343 18.5H16.596Z"})}),n5=ge.alpha(tt.neutral.darkest,.87),Tn=({Icon:e,label:t,onClick:n,disabled:r,pressed:o})=>i.jsx(B.Tooltip,{title:t,children:i.jsx("span",{children:i.jsx(B.IconButton,{"aria-label":t,"aria-pressed":o,disabled:r,size:"small",onClick:n,onMouseDown:s=>s.preventDefault(),sx:{borderRadius:"0.25rem",color:o?tt.customColors.white:tt.neutral.dark,backgroundColor:o?tt.primary.main:"transparent","&:hover":{color:tt.customColors.white,backgroundColor:tt.primary.main},"&.Mui-focusVisible":{outline:`2px solid ${tt.primary.main}`,outlineOffset:2}},children:i.jsx(e,{fontSize:"inherit"})})})}),Zo=()=>i.jsx(B.Divider,{flexItem:!0,orientation:"vertical",sx:{borderColor:tt.neutral.lighter,maxHeight:"30px",mt:"5px",mx:.5}}),r5=({id:e,label:t,value:n,onChange:r,"aria-describedby":o,height:s,disabled:l=!1,labels:a})=>{var S;const c=ge.useTheme(),u={...Nd,...a},d=`label_${e}`,f=re.useRef(n),m=re.useRef(r);re.useEffect(()=>{m.current=r},[r]);const p=Eo.useEditor({extensions:[cg.default.configure({strike:!1,underline:!1,code:!1,codeBlock:!1,horizontalRule:!1,link:{openOnClick:!1}}),sh.Markdown],content:n,contentType:"markdown",editable:!l,editorProps:{attributes:{id:e,role:"textbox","aria-multiline":"true","aria-labelledby":d,...o?{"aria-describedby":o}:{}}},onUpdate:({editor:v})=>{const F=v.getMarkdown();f.current=F,m.current(F)}});re.useEffect(()=>{!p||n===f.current||(f.current=n,p.commands.setContent(n,{contentType:"markdown",emitUpdate:!1}))},[p,n]),re.useEffect(()=>{p==null||p.setEditable(!l)},[p,l]);const b=Eo.useEditorState({editor:p,selector:({editor:v})=>{var F,j,y,A,N,M,P;return{canUndo:(F=v==null?void 0:v.can().undo())!=null?F:!1,canRedo:(j=v==null?void 0:v.can().redo())!=null?j:!1,isBold:(y=v==null?void 0:v.isActive("bold"))!=null?y:!1,isItalic:(A=v==null?void 0:v.isActive("italic"))!=null?A:!1,isOrderedList:(N=v==null?void 0:v.isActive("orderedList"))!=null?N:!1,isBulletList:(M=v==null?void 0:v.isActive("bulletList"))!=null?M:!1,headingLevel:(P=ta.find(R=>v==null?void 0:v.isActive("heading",{level:R})))!=null?P:0}}}),x=re.useMemo(()=>al(c),[c]),w=v=>()=>{l||v()};return i.jsxs(B.Box,{sx:{display:"flex",flexDirection:"column",minWidth:0},children:[i.jsx(B.Typography,{id:d,component:"label",onClick:()=>p==null?void 0:p.commands.focus(),sx:{fontFamily:c.typography.fontFamily,fontSize:"1rem",mb:1,width:"fit-content"},children:t}),i.jsxs(B.Box,{"data-testid":"markdown-editor-frame",sx:{display:"flex",flexDirection:"column",height:s},children:[i.jsxs(B.Box,{role:"toolbar","aria-label":u.toolbar,"aria-controls":e,sx:{display:"flex",flexWrap:"wrap",justifyContent:"flex-start",alignItems:"center",columnGap:.5,rowGap:.5,mb:"0.75rem"},children:[i.jsx(Tn,{Icon:e5,label:u.undo,disabled:l||!(b!=null&&b.canUndo),onClick:w(()=>p==null?void 0:p.chain().focus().undo().run())}),i.jsx(Tn,{Icon:t5,label:u.redo,disabled:l||!(b!=null&&b.canRedo),onClick:w(()=>p==null?void 0:p.chain().focus().redo().run())}),i.jsx(Zo,{}),i.jsx(B.Tooltip,{title:u.textStyle,placement:"top",children:i.jsxs(B.Select,{variant:"standard",disableUnderline:!0,displayEmpty:!0,disabled:l,value:(S=b==null?void 0:b.headingLevel)!=null?S:0,inputProps:{"aria-label":u.textStyle},IconComponent:v=>i.jsx(ag.default,{...v,sx:{fontSize:"1rem"}}),onChange:v=>{const F=Number(v.target.value);F===0?p==null||p.chain().focus().setParagraph().run():p==null||p.chain().focus().setHeading({level:F}).run()},sx:{minWidth:"120px",fontFamily:c.typography.fontFamily,fontSize:"1rem",color:n5,fontWeight:b!=null&&b.headingLevel?700:400,backgroundColor:"transparent"},children:[i.jsx(B.MenuItem,{value:0,sx:{fontWeight:400},children:u.paragraph}),ta.map(v=>i.jsx(B.MenuItem,{value:v,sx:{fontWeight:700},children:u.heading(v)},v))]})}),i.jsx(Zo,{}),i.jsx(Tn,{Icon:og.default,label:u.bold,disabled:l,pressed:b==null?void 0:b.isBold,onClick:w(()=>p==null?void 0:p.chain().focus().toggleBold().run())}),i.jsx(Tn,{Icon:sg.default,label:u.italic,disabled:l,pressed:b==null?void 0:b.isItalic,onClick:w(()=>p==null?void 0:p.chain().focus().toggleItalic().run())}),i.jsx(Zo,{}),i.jsx(Tn,{Icon:ig.default,label:u.numberedList,disabled:l,pressed:b==null?void 0:b.isOrderedList,onClick:w(()=>p==null?void 0:p.chain().focus().toggleOrderedList().run())}),i.jsx(Tn,{Icon:lg.default,label:u.bulletedList,disabled:l,pressed:b==null?void 0:b.isBulletList,onClick:w(()=>p==null?void 0:p.chain().focus().toggleBulletList().run())})]}),i.jsx(B.Box,{"data-testid":"markdown-editor-scroll",onClick:()=>p==null?void 0:p.commands.focus(),sx:{flex:1,minHeight:s===void 0?"300px":0,overflowY:"auto",overflowWrap:"anywhere",border:`1px solid ${tt.customColors["light-gray"]}`,borderRadius:"0.375rem",px:"1.25rem",py:"0.75rem",cursor:l?"default":"text",backgroundColor:l?tt.neutral.lighter:void 0,"&:focus-within":{borderColor:tt.primary.main},"& .tiptap":{outline:"none",minHeight:"100%"},...x},children:i.jsx(Eo.EditorContent,{editor:p})})]})]})},o5=({label:e,onClick:t,ariaLabel:n})=>{const r=ge.useTheme();return i.jsx(B.Button,{onClick:t,"aria-label":n||e,startIcon:i.jsx(ug.default,{sx:{fontSize:24}}),"data-testid":"video-replay-button",sx:{backgroundColor:r.palette.neutral.lightest,minWidth:"200px",maxWidth:"min(80vw, 500px)",minHeight:"52px",borderRadius:4,padding:"14px 16px",gap:1,pointerEvents:"auto",transition:"transform 0.2s ease, box-shadow 0.2s ease",border:"none",color:r.palette.primary.main,fontWeight:700,fontSize:"1rem",textTransform:"none",whiteSpace:"normal",textAlign:"center",wordBreak:"break-word","&:hover":{backgroundColor:r.palette.neutral.lightest,boxShadow:`0 2px 8px ${r.palette.primary.light}`},"& .MuiButton-startIcon":{color:r.palette.primary.main,fontSize:24,flexShrink:0}},children:e})},s5=ge.styled(B.Button)(({theme:e,disabled:t})=>({whiteSpace:"nowrap",padding:"0.75rem 1rem",height:"48px",borderRadius:"16px",fontSize:e.typography.base.fontSize,fontWeight:e.typography.fontWeightBold,textTransform:"none",marginTop:"1rem","&&":{color:e.customColors.white},backgroundColor:t?e.palette.neutral.main:e.palette.primary.main,"&:hover":{backgroundColor:t?e.palette.neutral.light:e.palette.primary.dark},"&:focus":{boxShadow:`0 0 0 4px ${e.palette.primary.lighter}`},[e.breakpoints.down("sm")]:{whiteSpace:"normal",padding:"0.25rem 0.5rem"}})),l5=ge.styled(B.Button)(({theme:e,disabled:t})=>({whiteSpace:"nowrap",padding:"0.25rem 0.75rem",width:"145px",marginBottom:"1rem",marginTop:"1rem",borderRadius:"1.5rem",backgroundColor:t?e.palette.neutral.light:e.palette.error.dark,"&:hover":{backgroundColor:t?e.palette.neutral.light:e.palette.error.main},"&:focus":{boxShadow:`0 0 0 4px ${e.palette.error.lighter}`},display:"flex",alignItems:"center",justifyContent:"center","&&":{color:e.customColors.white},textTransform:"none",[e.breakpoints.down("sm")]:{whiteSpace:"normal",padding:"0.25rem 0.5rem",width:"100%"}})),i5=({children:e})=>{const t=ge.useTheme();return i.jsx(B.BottomNavigation,{sx:{backgroundColor:t.customColors.white,borderTop:1,borderColor:t.palette.neutral.light,height:"88px",minHeight:"88px",maxHeight:"88px",width:"100%",boxSizing:"border-box",display:"flex",alignItems:"center",justifyContent:"center",borderBottomLeftRadius:"1.5rem",borderBottomRightRadius:"1.5rem",overflow:"hidden",padding:0,flexShrink:0,position:"relative",zIndex:15},children:e})},cl={en:"en-CA",fr:"fr-CA"};function a5(e){const t=(e!=null?e:"").toLowerCase().split(/[-_]/)[0];return t in cl?t:"en"}const c5=1e4;function $d(e,t){var o;const n=t.toLowerCase(),r=n.split("-")[0];return(o=e.find(s=>s.lang.toLowerCase().replace("_","-")===n))!=null?o:e.find(s=>s.lang.toLowerCase().startsWith(r))}function Qo(){return typeof window!="undefined"&&"speechSynthesis"in window&&typeof window.SpeechSynthesisUtterance=="function"}const u5=({text:e,language:t,playLabel:n="Text to speech",stopLabel:r="Stop reading aloud"})=>{const[o,s]=re.useState(!1),[l]=re.useState(Qo),a=re.useRef(null),c=re.useCallback(()=>{a.current!==null&&(clearInterval(a.current),a.current=null)},[]),u=re.useCallback(()=>{c(),Qo()&&window.speechSynthesis.cancel(),s(!1)},[c]);re.useEffect(()=>u,[u]),re.useEffect(()=>{u()},[e,u]);const d=re.useCallback(()=>{if(!Qo()||!e)return;window.speechSynthesis.cancel();const f=new SpeechSynthesisUtterance(e),m=cl[t];f.lang=m;const p=$d(window.speechSynthesis.getVoices(),m);p&&(f.voice=p);const b=()=>{c(),s(!1)};f.onend=b,f.onerror=b,s(!0),window.speechSynthesis.speak(f),c(),a.current=setInterval(()=>{if(!window.speechSynthesis.speaking){c();return}window.speechSynthesis.pause(),window.speechSynthesis.resume()},c5)},[e,t,c]);return!l||!e?null:i.jsx(B.Button,{onClick:o?u:d,startIcon:o?i.jsx(dg.default,{}):i.jsx(fg.default,{}),variant:"outlined","aria-live":"polite",sx:{whiteSpace:"nowrap",flexShrink:0,borderRadius:"1rem",textTransform:"none"},children:o?r:n})},zd=ba.default.div`
91
91
  flex-direction: row;
92
92
  display: flex;
93
93
  align-items: center;
@@ -95,8 +95,8 @@ return result$$;`.replaceAll("$$",String(Jl)));return Jl+=1,(a,c)=>s(o,a,c)},kc=
95
95
  height: 45px;
96
96
  width: 100%;
97
97
  z-index: 0;
98
- `,i5=ch.keyframes`
98
+ `,d5=uh.keyframes`
99
99
  from { width: 0%; }
100
100
  to { width: 100%; }
101
- `,a5=pa.default($d,{shouldForwardProp:e=>!["duration","paused"].includes(e)})(({duration:e,paused:t})=>({animation:`${i5} ${e}s linear forwards`,animationPlayState:t?"paused":"running",overflow:"hidden",textWrap:"nowrap",position:"absolute",zIndex:1,top:0,width:0})),c5=i.jsx(fg.default,{}),u5={display:"flex",alignItems:"center",ml:"0.5rem","& > svg":{fontSize:25}},ms=g.default.forwardRef(({timeLeft:e,positionLeftOffset:t,label:n,icon:r},o)=>{const s={position:"absolute",left:t,marginLeft:0};return i.jsxs(i.Fragment,{children:[i.jsx(B.Box,{sx:u5,children:r!=null?r:c5}),n&&i.jsx(B.Typography,{sx:{ml:"0.25rem"},children:n}),i.jsx(B.Typography,{ref:o,sx:{mr:"0.5rem"},style:{marginLeft:"auto",...t?s:{}},children:il(e)})]})});ms.displayName="BarContent";function d5(e,t){switch(!0){case e<50:return{backgroundColor:t.palette["acuity-green"].dark,color:t.palette.common.white};case e<90:return{backgroundColor:t.customColors["yellowy-taupe"],color:t.palette.neutral.darkest};case e>=90:return{backgroundColor:t.palette["acuity-red"].dark,color:t.palette.common.white};default:return{backgroundColor:t.palette["acuity-green"].dark,color:t.palette.common.white}}}function f5(e){return[0,100,e].sort((n,r)=>n-r)[1]}const h5=({secondsLeft:e,paused:t,duration:n,label:r,icon:o})=>{const s=ge.useTheme(),[l,a]=se.useState(0),c=Math.max(e,0),u=f5(Math.floor((n-c)*100/n)),d=se.useRef(null),h=d5(u,s),{backgroundColor:m,color:p}=t?{backgroundColor:ge.alpha(h.backgroundColor,.35),color:s.palette.neutral.darkest}:h;return se.useLayoutEffect(()=>{var x;const b=(x=d.current)==null?void 0:x.offsetLeft;b!==void 0&&b!==l&&a(b)},[l,c,r,o]),i.jsxs(B.Paper,{role:"timer","aria-label":t?"Thinking time is paused":`${c} seconds remaining`,variant:"outlined",sx:{width:"inherit",borderRadius:"20px",position:"relative",overflow:"hidden",...t&&{border:`1px dashed ${s.palette.neutral.dark}`}},children:[i.jsx($d,{"aria-hidden":"true",children:i.jsx(ms,{ref:d,timeLeft:c,label:r,icon:o})}),i.jsx(a5,{duration:n,paused:t,style:{backgroundColor:m,color:p},children:i.jsx(ms,{timeLeft:c,positionLeftOffset:l,label:r,icon:o})})]})},g5=B.styled("div",{shouldForwardProp:e=>!["isBackground","width","variant"].includes(e)})(({theme:e,isBackground:t=!0,width:n=100,variant:r})=>{function o(){return r==="error"?e.palette.error.main:t?e.palette.background.paper:e.palette["acuity-green"].dark}return{display:"flex",flexDirection:"row",alignItems:"center",backgroundColor:o(),height:"100%",zIndex:t?0:1,position:t?"relative":"absolute",width:`${n}%`,overflow:"hidden",top:t?"auto":0,textWrap:"nowrap",transition:`width ${n===100?0:.25}s linear`}}),ta=({isBackground:e=!0,width:t=100,label:n,variant:r})=>{const o=B.useTheme();function s(){return r==="error"?o.palette.common.white:e?o.palette.text.primary:o.palette.common.white}const l=s();return i.jsxs(g5,{isBackground:e,width:t,variant:r,children:[i.jsx(hg.default,{sx:{fontSize:25,ml:"1rem",fill:l}}),i.jsx(B.Typography,{sx:{ml:"0.5rem",mr:"1rem",color:l},children:n})]})},m5={"in-progress":"Uploading your video",error:"There was an error uploading your video"},p5=({percentDone:e,label:t,variant:n,accessibleLabel:r})=>i.jsxs(B.Paper,{role:"progressbar","aria-label":r!=null?r:m5[n],"aria-valuenow":e,"aria-valuemin":0,"aria-valuemax":100,sx:{width:"fit-content",position:"relative",overflow:"hidden",height:"45px",borderRadius:"20px"},children:[i.jsx(ta,{label:t,variant:n}),i.jsx(ta,{isBackground:!1,width:e,label:t,variant:n})]}),zd="@media (min-width: 768px)",b5={position:"absolute",width:"1px",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:0},C5=B.styled(B.FormControl)(()=>({width:"100%",maxWidth:"800px",margin:"1rem 0"})),w5=B.styled("p")(({theme:e})=>({color:e.palette.text.primary,fontWeight:500,fontSize:"1rem",margin:"0 0 1rem 0"})),x5=B.styled(B.Box)(()=>({width:"100%",[zd]:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"0.5rem"}})),na=B.styled(B.Typography)(({theme:e})=>({...b5,fontSize:"0.875rem",color:e.palette.text.secondary,minWidth:"100px",textAlign:"center",[zd]:{position:"static",width:"auto",height:"auto",margin:0,overflow:"visible",clip:"auto",whiteSpace:"normal"}})),y5=B.styled(B.FormControlLabel)(({theme:e})=>({margin:0,"& .MuiFormControlLabel-label":{fontSize:"0.875rem",fontWeight:500},"& .MuiRadio-root":{padding:"8px",color:e.palette.grey[400],"&.Mui-checked":{color:e.palette.primary.main}}})),v5=B.styled(B.RadioGroup)(()=>({flexDirection:"row",justifyContent:"space-evenly",flex:1,gap:"8px"})),S5=({label:e,min:t,max:n,leftLabel:r,rightLabel:o,value:s,onChange:l,name:a,disabled:c=!1,getOptionAriaLabel:u})=>{var F,j;const d=se.useId(),h=a!=null?a:d,m=`${h}-label`,[p,b]=se.useState(),x=(j=(F=s!=null?s:p)==null?void 0:F.toString())!=null?j:"",w=y=>{const A=Number(y.target.value);b(A),l==null||l(A)},k=u!=null?u:(y=>y===t?`${y} of ${n}, ${r}`:y===n?`${y} of ${n}, ${o}`:`${y} of ${n}`),v=Array.from({length:Math.max(n-t+1,0)},(y,A)=>t+A);return i.jsxs(C5,{"data-testid":"numeric-scale",children:[i.jsx(w5,{id:m,children:e}),i.jsxs(x5,{children:[i.jsx(na,{children:r}),i.jsx(v5,{value:x,onChange:w,name:h,"data-testid":"numeric-scale-group","aria-labelledby":m,children:v.map(y=>i.jsx(y5,{value:y.toString(),control:i.jsx(B.Radio,{disabled:c,slotProps:{input:{"aria-label":k(y)}},"data-testid":`numeric-scale-option-${y}`}),label:i.jsx(B.Typography,{variant:"body2",sx:{fontWeight:500},children:y}),labelPlacement:"bottom",disabled:c},y))}),i.jsx(na,{children:o})]})]})},k5=({children:e,sx:t,...n})=>i.jsx(B.Button,{"data-testid":"primary-button",variant:"contained",color:"primary",sx:{height:"45px",borderRadius:"16px",fontSize:"16px",fontWeight:700,textTransform:"none",padding:"16px 32px",...t||{}},...n,children:e}),I5=({section:e,sectionNumber:t,totalSections:n})=>`Step ${t} of ${n}: ${e.label}, ${e.state}`,M5=({completedSections:e,totalSections:t,currentSection:n})=>`Progress stepper: ${e} of ${t} steps completed, currently on step ${n}.`,E5=ge.styled(B.Box)(()=>({marginLeft:"clamp(8px, 1vw, 20px)",marginRight:"clamp(8px, 1vw, 20px)"})),P5=ge.styled(B.Stepper)(({theme:e})=>({paddingLeft:"15vw",paddingRight:"15vw","& .MuiStep-root":{paddingLeft:"15px",paddingRight:"15px"},"& .MuiStep-root:first-of-type":{paddingLeft:"0"},"& .MuiStep-root:last-of-type":{paddingRight:"0"},"& .MuiStepConnector-root":{top:"50%",transform:"translateY(-50%)",left:"calc(-50% + 16px)",right:"calc(50% + 16px)"},"& .MuiStepConnector-line":{height:3,border:0,backgroundColor:e.palette.neutral.lighter,borderRadius:1},[e.breakpoints.down("sm")]:{paddingLeft:"18px",paddingRight:"18px"}})),T5=(e,t)=>{switch(e){case"complete":return{backgroundColor:t.palette.primary.main,color:t.palette.common.white,border:`3px solid ${t.palette.primary.main}`};case"active":return{backgroundColor:t.palette.common.white,color:t.palette.primary.main,border:`3px solid ${t.palette.primary.main}`};case"upcoming":default:return{backgroundColor:t.palette.common.white,color:t.palette.neutral.dark,border:`3px solid ${t.palette.neutral.lighter}`}}},F5=(e,t,n)=>t||n||!!e&&(e.length>3||/\d{3,}/.test(e)||e.includes(" ")),j5=ge.styled("div",{shouldForwardProp:e=>!["state","wide"].includes(e)})(({theme:e,state:t,wide:n})=>({zIndex:1,display:"flex",justifyContent:"center",alignItems:"center",textAlign:"center",fontSize:"0.875rem",fontWeight:600,transition:"all 0.2s ease-in-out",position:"relative",...t==="complete"?{width:"34px",height:"34px",borderRadius:"24px",fontSize:"14px",borderWidth:"2px"}:n?{minWidth:"60px",width:"max-content",maxWidth:"min(180px, 18vw)",height:"34px",borderRadius:"22px",padding:"8px 16px",whiteSpace:"normal",wordWrap:"break-word",lineHeight:1.2}:{width:"34px",height:"34px",borderRadius:"50%"},...T5(t,e),[e.breakpoints.down("sm")]:{width:"23px !important",height:"23px !important",fontSize:"12px !important"}})),O5=ge.styled(B.StepLabel)(()=>({"& .MuiStepLabel-label":{display:"none !important"}})),R5=()=>i.jsx("svg",{width:"10",height:"8",viewBox:"0 0 10 8",fill:"none","data-testid":"check-icon","aria-hidden":"true",children:i.jsx("path",{d:"M9.98242 1.19141L3.33301 7.98145L0.0166016 4.5957L1.16602 3.42188L3.32422 5.62598L3.33301 5.63477L3.3418 5.62598L8.83301 0.0175781L9.98242 1.19141Z",fill:"white"})}),L5=({section:e,sectionNumber:t,totalSections:n,ariaLabel:r})=>i.jsx(j5,{state:e.state,wide:F5(e.label,t===1,t===n),role:"img","aria-label":r,"data-testid":`step-icon-${t}`,children:e.state==="complete"?i.jsx(R5,{}):e.label}),D5=({progress:e,getStepAriaLabel:t=I5,getContainerAriaLabel:n=M5})=>{const r=e==null?void 0:e.sections;if(!r||r.length===0)return null;const o=r.length,s=r.findIndex(c=>c.state==="active"),l=s!==-1?s:0,a=r.filter(c=>c.state==="complete").length;return i.jsx(E5,{children:i.jsx(P5,{activeStep:l,alternativeLabel:!0,"aria-label":n({completedSections:a,totalSections:o,currentSection:l+1}),children:r.map((c,u)=>i.jsx(B.Step,{completed:c.state==="complete",children:i.jsx(O5,{slots:{stepIcon:d=>i.jsx(L5,{...d,section:c,sectionNumber:u+1,totalSections:o,ariaLabel:t({section:c,sectionNumber:u+1,totalSections:o})})}})},`${c.label}-${u}`))})})},H5=B.styled(B.FormControl)(()=>({width:"100%",maxWidth:"800px",margin:"1rem 0"})),_5=B.styled("p")(({theme:e})=>({color:e.palette.text.primary,fontWeight:500,fontSize:"1rem",margin:"0 0 0.75rem 0",display:"block"})),A5=B.styled(B.RadioGroup)(()=>({gap:"0.625rem"})),V5=B.styled(B.FormControlLabel)(({theme:e})=>({marginLeft:0,marginRight:0,padding:0,"& .MuiFormControlLabel-label":{fontSize:"0.875rem"},"& .MuiRadio-root":{color:e.palette.grey[400],"&.Mui-checked":{color:e.palette.primary.main}},"&:hover .MuiRadio-root":{backgroundColor:e.palette.action.hover}})),N5=B.styled(B.Box)(()=>({marginTop:"0.5rem",marginLeft:"2rem"})),$5=B.styled(B.TextField)(({theme:e})=>({"& .MuiOutlinedInput-root":{padding:0,"& fieldset":{display:"none"}},"& .MuiInputBase-input":{fontSize:"0.875rem",padding:"15px 20px",resize:"vertical",backgroundColor:e.palette.common.white,border:`1px solid ${e.palette.grey[400]}`,borderRadius:0,"&:hover":{borderColor:e.palette.primary.main},"&:focus":{borderColor:e.palette.primary.main,outline:"none"}}})),z5=({label:e,options:t,value:n,freeTextValue:r,onChange:o,name:s,disabled:l=!1,freeTextPlaceholder:a="Type your answer"})=>{const c=se.useId(),u=s!=null?s:c,d=`${u}-label`,[h,m]=se.useState(""),[p,b]=se.useState(""),x=n!=null?n:h,w=r!=null?r:p,k=F=>{const j=F.target.value,y=t.find(N=>N.value===j),A=y!=null&&y.allowsFreeText?w:"";m(j),b(A),o==null||o(j,y!=null&&y.allowsFreeText?A:void 0)},v=F=>{const j=F.target.value;b(j),o==null||o(x,j)};return i.jsxs(H5,{"data-testid":"single-select",children:[i.jsx(_5,{id:d,children:e}),i.jsx(A5,{value:x,onChange:k,name:u,"data-testid":"single-select-group","aria-labelledby":d,children:t.map(F=>i.jsxs(B.Box,{children:[i.jsx(V5,{value:F.value,control:i.jsx(B.Radio,{disabled:l,"data-testid":`single-select-option-${F.value}`}),label:F.label,disabled:l}),F.allowsFreeText&&x===F.value&&i.jsx(N5,{children:i.jsx($5,{fullWidth:!0,multiline:!0,minRows:1,placeholder:a,value:w,onChange:v,variant:"outlined",disabled:l,slotProps:{htmlInput:{"aria-label":`${F.label} free text`}}})})]},F.value))})]})},G5=B.styled(B.FormControl)(()=>({width:"100%",maxWidth:"800px",margin:"1rem 0"})),B5=B.styled(B.FormLabel)(({theme:e})=>({color:e.palette.text.primary,fontWeight:500,fontSize:"1rem",marginBottom:"0.5rem",display:"block"})),W5=B.styled(B.TextField)(({theme:e})=>({"& .MuiOutlinedInput-root":{backgroundColor:e.palette.background.paper,"&:hover fieldset":{borderColor:e.palette.primary.main},"&.Mui-focused fieldset":{borderColor:e.palette.primary.main}},"& .MuiInputBase-input":{fontSize:"0.875rem",padding:"12px"}})),q5=B.styled(B.Typography)(({theme:e})=>({fontSize:"0.75rem",color:e.palette.text.secondary,textAlign:"right",marginTop:"0.25rem"})),U5=({label:e,placeholder:t,maxLength:n,value:r,defaultValue:o="",onChange:s,multiline:l=!0,rows:a=4})=>{const[c,u]=se.useState(o),d=r!=null?r:c,h=m=>{const p=m.target.value;n&&p.length>n||(u(p),s==null||s(p))};return i.jsxs(G5,{"data-testid":"text-response",children:[i.jsx(B5,{children:e}),i.jsxs(B.Box,{children:[i.jsx(W5,{multiline:l,rows:l?a:void 0,fullWidth:!0,placeholder:t,value:d,onChange:h,slotProps:{htmlInput:{maxLength:n,"aria-label":e}},variant:"outlined"}),n&&i.jsxs(q5,{children:[d.length,"/",n]})]})]})},K5=({sx:e,...t})=>{const n=ge.useTheme();return i.jsx(B.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"center",width:"1.5em",height:"1.5em",borderRadius:"50%",backgroundColor:n.palette["acuity-green"].main,border:`2px solid ${n.palette.common.white}`,boxSizing:"border-box"},children:i.jsx(gg.default,{...t,sx:{fontSize:"0.9em",fill:n.palette.common.white,color:n.palette.common.white,...e}})})},X5=({"aria-label":e="Acuity Insights",...t})=>i.jsx("svg",{fill:"none",height:"39",role:"img",viewBox:"0 0 39 39",width:"39",xmlns:"http://www.w3.org/2000/svg","aria-label":e,...t,children:i.jsx("path",{d:"M0 19.5C0 30.2696 8.73045 39 19.5 39C30.2696 39 39 30.2696 39 19.5C39 8.73045 30.2696 3.8147e-06 19.5 3.8147e-06C8.73045 3.8147e-06 0 8.73045 0 19.5ZM21.4413 10.2613C21.6667 10.5733 29.64 28.5653 29.64 28.7733C29.64 28.8947 28.9813 28.9467 27.8027 28.912C26.68 28.8802 25.6753 28.2066 25.2196 27.18L22.7413 21.5973C19.916 15.236 19.5 14.404 19.3267 14.7507C19.24 14.976 17.784 18.2347 16.1027 22.0133L13.8001 27.1811C13.3429 28.2072 12.3376 28.8802 11.2147 28.912C10.1747 28.9293 9.36 28.8947 9.36 28.808C9.36 28.652 16.9693 11.4573 17.4373 10.5213C17.68 10.0533 17.6973 10.0533 19.4827 10.0533C20.7133 10.0533 21.3373 10.1227 21.4413 10.2613ZM21.4933 26.9707C21.8747 27.7853 22.1867 28.5653 22.1867 28.704C22.1867 28.8947 21.684 28.9467 19.4827 28.9467H17.1907C16.9822 28.9467 16.8301 28.7497 16.8827 28.548C16.9347 28.3227 17.2467 27.5427 17.576 26.8147L17.6375 26.6793C17.9695 25.9489 18.6977 25.48 19.5 25.48C20.3021 25.48 21.0301 25.9492 21.3614 26.6797L21.4933 26.9707Z",fill:"#4B55A5"})}),Y5=({"aria-label":e="Acuity Insights",...t})=>i.jsxs("svg",{fill:"none",height:"29",role:"img",viewBox:"0 0 28 29",width:"28",xmlns:"http://www.w3.org/2000/svg","aria-label":e,...t,children:[i.jsx("rect",{fill:"#364699",height:"28.86",rx:"6",width:"28"}),i.jsx("path",{d:"M5.74341 14.7997V15.0643C5.74341 19.8224 9.60065 23.6797 14.3588 23.6797C19.1169 23.6797 22.9742 19.8224 22.9742 15.0643V14.7997V14.5351C22.9742 9.77693 19.1169 5.91969 14.3588 5.91969C9.60065 5.91969 5.74341 9.77693 5.74341 14.5351V14.7997ZM15.2165 10.5925C15.3161 10.7346 18.8388 18.9279 18.8388 19.0226C18.8388 19.0779 18.5478 19.1016 18.027 19.0858C17.5319 19.0713 17.09 18.7712 16.894 18.3162L15.7909 15.7548C14.5426 12.8579 14.3588 12.479 14.2822 12.6369C14.2439 12.7395 13.6006 14.2235 12.8578 15.9442L11.8322 18.3167C11.6356 18.7715 11.1935 19.0713 10.6982 19.0858C10.2387 19.0937 9.87879 19.0779 9.87879 19.0384C9.87879 18.9674 13.2407 11.1372 13.4475 10.7109C13.5547 10.4978 13.5623 10.4978 14.3511 10.4978C14.8949 10.4978 15.1706 10.5294 15.2165 10.5925ZM15.2395 18.2017C15.408 18.5727 15.5458 18.9279 15.5458 18.991C15.5458 19.0779 15.3237 19.1016 14.3511 19.1016H13.3437C13.2487 19.1016 13.1791 19.0121 13.2024 18.92C13.2254 18.8174 13.3632 18.4622 13.5087 18.1307L13.5419 18.0554C13.6847 17.7318 14.005 17.5229 14.3588 17.5229C14.7125 17.5229 15.0328 17.7319 15.1752 18.0556L15.2395 18.2017Z",fill:"white"})]}),ra=["Lato","Helvetica Neue","Helvetica","Arial","sans-serif"].join(","),Gd=ge.createTheme({palette:{...tt,primary:{...tt.primary,contrastText:"#FFFFFF"},neutral:{...tt.neutral,darker:tt.neutral.darkest},text:{primary:tt.neutral.darkest,secondary:tt.neutral.dark,disabled:tt.neutral.main}},customColors:{...tt.customColors,transparent:"rgba(0, 0, 0, 0)","yellowy-taupe":"#FCEDCA"},typography:{fontFamily:ra,sm:{fontSize:".875rem",lineHeight:"1.25rem"},base:{fontSize:"1rem",lineHeight:"1.5rem"},lg:{fontSize:"1.125rem",lineHeight:"1.5rem"},xl:{fontSize:"1.25rem",lineHeight:"1.75rem"},"2xl":{fontSize:"1.4375rem",lineHeight:"2rem"},"3xl":{fontSize:"1.625rem",lineHeight:"2.25rem"},"4xl":{fontSize:"2.25rem",lineHeight:"3rem"}},components:{MuiCssBaseline:{styleOverrides:{body:{fontFamily:ra}}}}}),Z5=({children:e,withCssBaseline:t=!1})=>i.jsxs(B.ThemeProvider,{theme:Gd,children:[t&&i.jsx(B.CssBaseline,{}),e]});exports.AcuityDataGrid=CS;exports.AcuityLogo=X5;exports.AcuityLogoMobile=Y5;exports.AcuityMuiThemeProvider=Z5;exports.AddItem=Rp;exports.AdvancedTable=xS;exports.Alert=_a;exports.AlertBanner=HS;exports.AppLayout=Ap;exports.AppLayoutDrawer=Ka;exports.AudioVolumeIndicator=sl;exports.Badge=za;exports.Button=Va;exports.ButtonAddTableItem=Lp;exports.Card=zm;exports.Checkbox=Wm;exports.CheckboxCell=Sd;exports.CheckedIcon=ol;exports.ContentPanelContext=Es;exports.CustomTable=yS;exports.CustomTableHead=kS;exports.CustomTableRow=Md;exports.DEFAULT_DEVICE_PICKER_LABELS=_d;exports.DefaultStepButton=t5;exports.DevicePicker=BS;exports.DigitalTimer=WS;exports.Dropdown=Ep;exports.DropdownAtom=qa;exports.FileDropzone=Dp;exports.FormValidation=Um;exports.Heading=Is;exports.HoldToConfirmButton=Pd;exports.Icon=$t;exports.IconButton=co;exports.ImageFrame=Ad;exports.ImagePreview=qS;exports.IndeterminateIcon=vd;exports.InlineAlert=Hp;exports.KebabMenu=ES;exports.LabelAtom=Ga;exports.LabelCell=IS;exports.Link=op;exports.MIC_SIGNAL_SUSTAIN_MS=Ld;exports.MIC_SIGNAL_THRESHOLD=Rd;exports.MIC_SILENCE_TIMEOUT_MS=Dd;exports.Markdown=XS;exports.MarkdownEditor=JS;exports.Modal=sp;exports.NumericScale=S5;exports.PageTitle=PS;exports.PrimaryButton=k5;exports.ProgressBar=Op;exports.ProgressStepper=D5;exports.Radio=np;exports.RecordStepButton=n5;exports.RecordingBadge=NS;exports.ReplayButton=e5;exports.SPEECH_LOCALES=cl;exports.SingleSelect=z5;exports.SortIcon=kd;exports.SortableTableCell=Id;exports.Spinner=Ur;exports.Tab=dp;exports.Tabs=up;exports.TexFooter=r5;exports.TextInput=Sp;exports.TextInputAtom=Wa;exports.TextResponse=U5;exports.TextToSpeech=l5;exports.Textarea=xp;exports.TextareaAtom=Ba;exports.TimerProgressBar=h5;exports.Toast=FS;exports.Tooltip=RS;exports.UploadProgressBar=p5;exports.UserAvatar=DS;exports.VideoInterviewIcon=K5;exports.acuityMuiTheme=Gd;exports.defaultMarkdownEditorLabels=Vd;exports.filterTableData=Ed;exports.formatTime=il;exports.getMarkdownContentStyles=al;exports.getMarkdownStyles=US;exports.isVolumeBarFilled=jd;exports.pickVoice=Nd;exports.platformPalette=tt;exports.toMeterLevel=Fd;exports.toSpeechLanguage=o5;exports.toast=jS;exports.useContentPanelContext=Ua;exports.useMicSignalCheck=Hd;exports.useMicVolume=ll;exports.useTable=MS;
101
+ `,f5=ba.default(zd,{shouldForwardProp:e=>!["duration","paused"].includes(e)})(({duration:e,paused:t})=>({animation:`${d5} ${e}s linear forwards`,animationPlayState:t?"paused":"running",overflow:"hidden",textWrap:"nowrap",position:"absolute",zIndex:1,top:0,width:0})),h5=i.jsx(hg.default,{}),g5={display:"flex",alignItems:"center",ml:"0.5rem","& > svg":{fontSize:25}},ms=g.default.forwardRef(({timeLeft:e,positionLeftOffset:t,label:n,icon:r},o)=>{const s={position:"absolute",left:t,marginLeft:0};return i.jsxs(i.Fragment,{children:[i.jsx(B.Box,{sx:g5,children:r!=null?r:h5}),n&&i.jsx(B.Typography,{sx:{ml:"0.25rem"},children:n}),i.jsx(B.Typography,{ref:o,sx:{mr:"0.5rem"},style:{marginLeft:"auto",...t?s:{}},children:il(e)})]})});ms.displayName="BarContent";function m5(e,t){switch(!0){case e<50:return{backgroundColor:t.palette["acuity-green"].dark,color:t.palette.common.white};case e<90:return{backgroundColor:t.customColors["yellowy-taupe"],color:t.palette.neutral.darkest};case e>=90:return{backgroundColor:t.palette["acuity-red"].dark,color:t.palette.common.white};default:return{backgroundColor:t.palette["acuity-green"].dark,color:t.palette.common.white}}}function p5(e){return[0,100,e].sort((n,r)=>n-r)[1]}const b5=({secondsLeft:e,paused:t,duration:n,label:r,icon:o})=>{const s=ge.useTheme(),[l,a]=re.useState(0),c=Math.max(e,0),u=p5(Math.floor((n-c)*100/n)),d=re.useRef(null),f=m5(u,s),{backgroundColor:m,color:p}=t?{backgroundColor:ge.alpha(f.backgroundColor,.35),color:s.palette.neutral.darkest}:f;return re.useLayoutEffect(()=>{var x;const b=(x=d.current)==null?void 0:x.offsetLeft;b!==void 0&&b!==l&&a(b)},[l,c,r,o]),i.jsxs(B.Paper,{role:"timer","aria-label":t?"Thinking time is paused":`${c} seconds remaining`,variant:"outlined",sx:{width:"inherit",borderRadius:"20px",position:"relative",overflow:"hidden",...t&&{border:`1px dashed ${s.palette.neutral.dark}`}},children:[i.jsx(zd,{"aria-hidden":"true",children:i.jsx(ms,{ref:d,timeLeft:c,label:r,icon:o})}),i.jsx(f5,{duration:n,paused:t,style:{backgroundColor:m,color:p},children:i.jsx(ms,{timeLeft:c,positionLeftOffset:l,label:r,icon:o})})]})},C5=B.styled("div",{shouldForwardProp:e=>!["isBackground","width","variant"].includes(e)})(({theme:e,isBackground:t=!0,width:n=100,variant:r})=>{function o(){return r==="error"?e.palette.error.main:t?e.palette.background.paper:e.palette["acuity-green"].dark}return{display:"flex",flexDirection:"row",alignItems:"center",backgroundColor:o(),height:"100%",zIndex:t?0:1,position:t?"relative":"absolute",width:`${n}%`,overflow:"hidden",top:t?"auto":0,textWrap:"nowrap",transition:`width ${n===100?0:.25}s linear`}}),na=({isBackground:e=!0,width:t=100,label:n,variant:r})=>{const o=B.useTheme();function s(){return r==="error"?o.palette.common.white:e?o.palette.text.primary:o.palette.common.white}const l=s();return i.jsxs(C5,{isBackground:e,width:t,variant:r,children:[i.jsx(gg.default,{sx:{fontSize:25,ml:"1rem",fill:l}}),i.jsx(B.Typography,{sx:{ml:"0.5rem",mr:"1rem",color:l},children:n})]})},w5={"in-progress":"Uploading your video",error:"There was an error uploading your video"},x5=({percentDone:e,label:t,variant:n,accessibleLabel:r})=>i.jsxs(B.Paper,{role:"progressbar","aria-label":r!=null?r:w5[n],"aria-valuenow":e,"aria-valuemin":0,"aria-valuemax":100,sx:{width:"fit-content",position:"relative",overflow:"hidden",height:"45px",borderRadius:"20px"},children:[i.jsx(na,{label:t,variant:n}),i.jsx(na,{isBackground:!1,width:e,label:t,variant:n})]}),Gd="@media (min-width: 768px)",y5={position:"absolute",width:"1px",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:0},v5=B.styled(B.FormControl)(()=>({width:"100%",maxWidth:"800px",margin:"1rem 0"})),S5=B.styled("p")(({theme:e})=>({color:e.palette.text.primary,fontWeight:500,fontSize:"1rem",margin:"0 0 1rem 0"})),k5=B.styled(B.Box)(()=>({width:"100%",[Gd]:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"0.5rem"}})),ra=B.styled(B.Typography)(({theme:e})=>({...y5,fontSize:"0.875rem",color:e.palette.text.secondary,minWidth:"100px",textAlign:"center",[Gd]:{position:"static",width:"auto",height:"auto",margin:0,overflow:"visible",clip:"auto",whiteSpace:"normal"}})),I5=B.styled(B.FormControlLabel)(({theme:e})=>({margin:0,"& .MuiFormControlLabel-label":{fontSize:"0.875rem",fontWeight:500},"& .MuiRadio-root":{padding:"8px",color:e.palette.grey[400],"&.Mui-checked":{color:e.palette.primary.main}}})),M5=B.styled(B.RadioGroup)(()=>({flexDirection:"row",justifyContent:"space-evenly",flex:1,gap:"8px"})),E5=({label:e,min:t,max:n,leftLabel:r,rightLabel:o,value:s,onChange:l,name:a,disabled:c=!1,getOptionAriaLabel:u})=>{var F,j;const d=re.useId(),f=a!=null?a:d,m=`${f}-label`,[p,b]=re.useState(),x=(j=(F=s!=null?s:p)==null?void 0:F.toString())!=null?j:"",w=y=>{const A=Number(y.target.value);b(A),l==null||l(A)},S=u!=null?u:(y=>y===t?`${y} of ${n}, ${r}`:y===n?`${y} of ${n}, ${o}`:`${y} of ${n}`),v=Array.from({length:Math.max(n-t+1,0)},(y,A)=>t+A);return i.jsxs(v5,{"data-testid":"numeric-scale",children:[i.jsx(S5,{id:m,children:e}),i.jsxs(k5,{children:[i.jsx(ra,{children:r}),i.jsx(M5,{value:x,onChange:w,name:f,"data-testid":"numeric-scale-group","aria-labelledby":m,children:v.map(y=>i.jsx(I5,{value:y.toString(),control:i.jsx(B.Radio,{disabled:c,slotProps:{input:{"aria-label":S(y)}},"data-testid":`numeric-scale-option-${y}`}),label:i.jsx(B.Typography,{variant:"body2",sx:{fontWeight:500},children:y}),labelPlacement:"bottom",disabled:c},y))}),i.jsx(ra,{children:o})]})]})},P5=({children:e,sx:t,...n})=>i.jsx(B.Button,{"data-testid":"primary-button",variant:"contained",color:"primary",sx:{height:"45px",borderRadius:"16px",fontSize:"16px",fontWeight:700,textTransform:"none",padding:"16px 32px",...t||{}},...n,children:e}),T5=({section:e,sectionNumber:t,totalSections:n})=>`Step ${t} of ${n}: ${e.label}, ${e.state}`,F5=({completedSections:e,totalSections:t,currentSection:n})=>`Progress stepper: ${e} of ${t} steps completed, currently on step ${n}.`,j5=ge.styled(B.Box)(()=>({marginLeft:"clamp(8px, 1vw, 20px)",marginRight:"clamp(8px, 1vw, 20px)"})),O5=ge.styled(B.Stepper)(({theme:e})=>({paddingLeft:"15vw",paddingRight:"15vw","& .MuiStep-root":{paddingLeft:"15px",paddingRight:"15px"},"& .MuiStep-root:first-of-type":{paddingLeft:"0"},"& .MuiStep-root:last-of-type":{paddingRight:"0"},"& .MuiStepConnector-root":{top:"50%",transform:"translateY(-50%)",left:"calc(-50% + 16px)",right:"calc(50% + 16px)"},"& .MuiStepConnector-line":{height:3,border:0,backgroundColor:e.palette.neutral.lighter,borderRadius:1},[e.breakpoints.down("sm")]:{paddingLeft:"18px",paddingRight:"18px"}})),R5=(e,t)=>{switch(e){case"complete":return{backgroundColor:t.palette.primary.main,color:t.palette.common.white,border:`3px solid ${t.palette.primary.main}`};case"active":return{backgroundColor:t.palette.common.white,color:t.palette.primary.main,border:`3px solid ${t.palette.primary.main}`};case"upcoming":default:return{backgroundColor:t.palette.common.white,color:t.palette.neutral.dark,border:`3px solid ${t.palette.neutral.lighter}`}}},L5=(e,t,n)=>t||n||!!e&&(e.length>3||/\d{3,}/.test(e)||e.includes(" ")),D5=ge.styled("div",{shouldForwardProp:e=>!["state","wide"].includes(e)})(({theme:e,state:t,wide:n})=>({zIndex:1,display:"flex",justifyContent:"center",alignItems:"center",textAlign:"center",fontSize:"0.875rem",fontWeight:600,transition:"all 0.2s ease-in-out",position:"relative",...t==="complete"?{width:"34px",height:"34px",borderRadius:"24px",fontSize:"14px",borderWidth:"2px"}:n?{minWidth:"60px",width:"max-content",maxWidth:"min(180px, 18vw)",height:"34px",borderRadius:"22px",padding:"8px 16px",whiteSpace:"normal",wordWrap:"break-word",lineHeight:1.2}:{width:"34px",height:"34px",borderRadius:"50%"},...R5(t,e),[e.breakpoints.down("sm")]:{width:"23px !important",height:"23px !important",fontSize:"12px !important"}})),H5=ge.styled(B.StepLabel)(()=>({"& .MuiStepLabel-label":{display:"none !important"}})),_5=()=>i.jsx("svg",{width:"10",height:"8",viewBox:"0 0 10 8",fill:"none","data-testid":"check-icon","aria-hidden":"true",children:i.jsx("path",{d:"M9.98242 1.19141L3.33301 7.98145L0.0166016 4.5957L1.16602 3.42188L3.32422 5.62598L3.33301 5.63477L3.3418 5.62598L8.83301 0.0175781L9.98242 1.19141Z",fill:"white"})}),A5=({section:e,sectionNumber:t,totalSections:n,ariaLabel:r})=>i.jsx(D5,{state:e.state,wide:L5(e.label,t===1,t===n),role:"img","aria-label":r,"data-testid":`step-icon-${t}`,children:e.state==="complete"?i.jsx(_5,{}):e.label}),V5=({progress:e,getStepAriaLabel:t=T5,getContainerAriaLabel:n=F5})=>{const r=e==null?void 0:e.sections;if(!r||r.length===0)return null;const o=r.length,s=r.findIndex(c=>c.state==="active"),l=s!==-1?s:0,a=r.filter(c=>c.state==="complete").length;return i.jsx(j5,{children:i.jsx(O5,{activeStep:l,alternativeLabel:!0,"aria-label":n({completedSections:a,totalSections:o,currentSection:l+1}),children:r.map((c,u)=>i.jsx(B.Step,{completed:c.state==="complete",children:i.jsx(H5,{slots:{stepIcon:d=>i.jsx(A5,{...d,section:c,sectionNumber:u+1,totalSections:o,ariaLabel:t({section:c,sectionNumber:u+1,totalSections:o})})}})},`${c.label}-${u}`))})})},N5=B.styled(B.FormControl)(()=>({width:"100%",maxWidth:"800px",margin:"1rem 0"})),$5=B.styled("p")(({theme:e})=>({color:e.palette.text.primary,fontWeight:500,fontSize:"1rem",margin:"0 0 0.75rem 0",display:"block"})),z5=B.styled(B.RadioGroup)(()=>({gap:"0.625rem"})),G5=B.styled(B.FormControlLabel)(({theme:e})=>({marginLeft:0,marginRight:0,padding:0,"& .MuiFormControlLabel-label":{fontSize:"0.875rem"},"& .MuiRadio-root":{color:e.palette.grey[400],"&.Mui-checked":{color:e.palette.primary.main}},"&:hover .MuiRadio-root":{backgroundColor:e.palette.action.hover}})),B5=B.styled(B.Box)(()=>({marginTop:"0.5rem",marginLeft:"2rem"})),W5=B.styled(B.TextField)(({theme:e})=>({"& .MuiOutlinedInput-root":{padding:0,"& fieldset":{display:"none"}},"& .MuiInputBase-input":{fontSize:"0.875rem",padding:"15px 20px",resize:"vertical",backgroundColor:e.palette.common.white,border:`1px solid ${e.palette.grey[400]}`,borderRadius:0,"&:hover":{borderColor:e.palette.primary.main},"&:focus":{borderColor:e.palette.primary.main,outline:"none"}}})),q5=({label:e,options:t,value:n,freeTextValue:r,onChange:o,name:s,disabled:l=!1,freeTextPlaceholder:a="Type your answer"})=>{const c=re.useId(),u=s!=null?s:c,d=`${u}-label`,[f,m]=re.useState(""),[p,b]=re.useState(""),x=n!=null?n:f,w=r!=null?r:p,S=F=>{const j=F.target.value,y=t.find(N=>N.value===j),A=y!=null&&y.allowsFreeText?w:"";m(j),b(A),o==null||o(j,y!=null&&y.allowsFreeText?A:void 0)},v=F=>{const j=F.target.value;b(j),o==null||o(x,j)};return i.jsxs(N5,{"data-testid":"single-select",children:[i.jsx($5,{id:d,children:e}),i.jsx(z5,{value:x,onChange:S,name:u,"data-testid":"single-select-group","aria-labelledby":d,children:t.map(F=>i.jsxs(B.Box,{children:[i.jsx(G5,{value:F.value,control:i.jsx(B.Radio,{disabled:l,"data-testid":`single-select-option-${F.value}`}),label:F.label,disabled:l}),F.allowsFreeText&&x===F.value&&i.jsx(B5,{children:i.jsx(W5,{fullWidth:!0,multiline:!0,minRows:1,placeholder:a,value:w,onChange:v,variant:"outlined",disabled:l,slotProps:{htmlInput:{"aria-label":`${F.label} free text`}}})})]},F.value))})]})},U5=B.styled(B.FormControl)(()=>({width:"100%",maxWidth:"800px",margin:"1rem 0"})),K5=B.styled(B.FormLabel)(({theme:e})=>({color:e.palette.text.primary,fontWeight:500,fontSize:"1rem",marginBottom:"0.5rem",display:"block"})),X5=B.styled(B.TextField)(({theme:e})=>({"& .MuiOutlinedInput-root":{backgroundColor:e.palette.background.paper,"&:hover fieldset":{borderColor:e.palette.primary.main},"&.Mui-focused fieldset":{borderColor:e.palette.primary.main}},"& .MuiInputBase-input":{fontSize:"0.875rem",padding:"12px"}})),Y5=B.styled(B.Typography)(({theme:e})=>({fontSize:"0.75rem",color:e.palette.text.secondary,textAlign:"right",marginTop:"0.25rem"})),Z5=({label:e,placeholder:t,maxLength:n,value:r,defaultValue:o="",onChange:s,multiline:l=!0,rows:a=4})=>{const[c,u]=re.useState(o),d=r!=null?r:c,f=m=>{const p=m.target.value;n&&p.length>n||(u(p),s==null||s(p))};return i.jsxs(U5,{"data-testid":"text-response",children:[i.jsx(K5,{children:e}),i.jsxs(B.Box,{children:[i.jsx(X5,{multiline:l,rows:l?a:void 0,fullWidth:!0,placeholder:t,value:d,onChange:f,slotProps:{htmlInput:{maxLength:n,"aria-label":e}},variant:"outlined"}),n&&i.jsxs(Y5,{children:[d.length,"/",n]})]})]})},Q5=({sx:e,...t})=>{const n=ge.useTheme();return i.jsx(B.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"center",width:"1.5em",height:"1.5em",borderRadius:"50%",backgroundColor:n.palette["acuity-green"].main,border:`2px solid ${n.palette.common.white}`,boxSizing:"border-box"},children:i.jsx(mg.default,{...t,sx:{fontSize:"0.9em",fill:n.palette.common.white,color:n.palette.common.white,...e}})})},J5=({"aria-label":e="Acuity Insights",...t})=>i.jsx("svg",{fill:"none",height:"39",role:"img",viewBox:"0 0 39 39",width:"39",xmlns:"http://www.w3.org/2000/svg","aria-label":e,...t,children:i.jsx("path",{d:"M0 19.5C0 30.2696 8.73045 39 19.5 39C30.2696 39 39 30.2696 39 19.5C39 8.73045 30.2696 3.8147e-06 19.5 3.8147e-06C8.73045 3.8147e-06 0 8.73045 0 19.5ZM21.4413 10.2613C21.6667 10.5733 29.64 28.5653 29.64 28.7733C29.64 28.8947 28.9813 28.9467 27.8027 28.912C26.68 28.8802 25.6753 28.2066 25.2196 27.18L22.7413 21.5973C19.916 15.236 19.5 14.404 19.3267 14.7507C19.24 14.976 17.784 18.2347 16.1027 22.0133L13.8001 27.1811C13.3429 28.2072 12.3376 28.8802 11.2147 28.912C10.1747 28.9293 9.36 28.8947 9.36 28.808C9.36 28.652 16.9693 11.4573 17.4373 10.5213C17.68 10.0533 17.6973 10.0533 19.4827 10.0533C20.7133 10.0533 21.3373 10.1227 21.4413 10.2613ZM21.4933 26.9707C21.8747 27.7853 22.1867 28.5653 22.1867 28.704C22.1867 28.8947 21.684 28.9467 19.4827 28.9467H17.1907C16.9822 28.9467 16.8301 28.7497 16.8827 28.548C16.9347 28.3227 17.2467 27.5427 17.576 26.8147L17.6375 26.6793C17.9695 25.9489 18.6977 25.48 19.5 25.48C20.3021 25.48 21.0301 25.9492 21.3614 26.6797L21.4933 26.9707Z",fill:"#4B55A5"})}),ek=({"aria-label":e="Acuity Insights",...t})=>i.jsxs("svg",{fill:"none",height:"29",role:"img",viewBox:"0 0 28 29",width:"28",xmlns:"http://www.w3.org/2000/svg","aria-label":e,...t,children:[i.jsx("rect",{fill:"#364699",height:"28.86",rx:"6",width:"28"}),i.jsx("path",{d:"M5.74341 14.7997V15.0643C5.74341 19.8224 9.60065 23.6797 14.3588 23.6797C19.1169 23.6797 22.9742 19.8224 22.9742 15.0643V14.7997V14.5351C22.9742 9.77693 19.1169 5.91969 14.3588 5.91969C9.60065 5.91969 5.74341 9.77693 5.74341 14.5351V14.7997ZM15.2165 10.5925C15.3161 10.7346 18.8388 18.9279 18.8388 19.0226C18.8388 19.0779 18.5478 19.1016 18.027 19.0858C17.5319 19.0713 17.09 18.7712 16.894 18.3162L15.7909 15.7548C14.5426 12.8579 14.3588 12.479 14.2822 12.6369C14.2439 12.7395 13.6006 14.2235 12.8578 15.9442L11.8322 18.3167C11.6356 18.7715 11.1935 19.0713 10.6982 19.0858C10.2387 19.0937 9.87879 19.0779 9.87879 19.0384C9.87879 18.9674 13.2407 11.1372 13.4475 10.7109C13.5547 10.4978 13.5623 10.4978 14.3511 10.4978C14.8949 10.4978 15.1706 10.5294 15.2165 10.5925ZM15.2395 18.2017C15.408 18.5727 15.5458 18.9279 15.5458 18.991C15.5458 19.0779 15.3237 19.1016 14.3511 19.1016H13.3437C13.2487 19.1016 13.1791 19.0121 13.2024 18.92C13.2254 18.8174 13.3632 18.4622 13.5087 18.1307L13.5419 18.0554C13.6847 17.7318 14.005 17.5229 14.3588 17.5229C14.7125 17.5229 15.0328 17.7319 15.1752 18.0556L15.2395 18.2017Z",fill:"white"})]}),oa=["Lato","Helvetica Neue","Helvetica","Arial","sans-serif"].join(","),Bd=ge.createTheme({palette:{...tt,primary:{...tt.primary,contrastText:"#FFFFFF"},neutral:{...tt.neutral,darker:tt.neutral.darkest},text:{primary:tt.neutral.darkest,secondary:tt.neutral.dark,disabled:tt.neutral.main}},customColors:{...tt.customColors,transparent:"rgba(0, 0, 0, 0)","yellowy-taupe":"#FCEDCA"},typography:{fontFamily:oa,sm:{fontSize:".875rem",lineHeight:"1.25rem"},base:{fontSize:"1rem",lineHeight:"1.5rem"},lg:{fontSize:"1.125rem",lineHeight:"1.5rem"},xl:{fontSize:"1.25rem",lineHeight:"1.75rem"},"2xl":{fontSize:"1.4375rem",lineHeight:"2rem"},"3xl":{fontSize:"1.625rem",lineHeight:"2.25rem"},"4xl":{fontSize:"2.25rem",lineHeight:"3rem"}},components:{MuiCssBaseline:{styleOverrides:{body:{fontFamily:oa}}}}}),tk=({children:e,withCssBaseline:t=!1})=>i.jsxs(B.ThemeProvider,{theme:Bd,children:[t&&i.jsx(B.CssBaseline,{}),e]});exports.AcuityDataGrid=vS;exports.AcuityLogo=J5;exports.AcuityLogoMobile=ek;exports.AcuityMuiThemeProvider=tk;exports.AddItem=Lp;exports.AdvancedTable=kS;exports.Alert=Aa;exports.AlertBanner=NS;exports.AppLayout=zp;exports.AppLayoutDrawer=Xa;exports.AudioVolumeIndicator=sl;exports.Badge=Ga;exports.Button=Na;exports.ButtonAddTableItem=Dp;exports.Card=Gm;exports.Checkbox=qm;exports.CheckboxCell=kd;exports.CheckedIcon=ol;exports.ContentPanelContext=Es;exports.CustomTable=IS;exports.CustomTableHead=PS;exports.CustomTableRow=Ed;exports.DEFAULT_DEVICE_PICKER_LABELS=Ad;exports.DefaultStepButton=s5;exports.DevicePicker=KS;exports.DigitalTimer=XS;exports.Dropdown=Pp;exports.DropdownAtom=Ua;exports.FileDropzone=Hp;exports.FormValidation=Km;exports.Heading=Is;exports.HoldToConfirmButton=Td;exports.Icon=$t;exports.IconButton=co;exports.ImageFrame=Vd;exports.ImagePreview=YS;exports.IndeterminateIcon=Sd;exports.InlineAlert=_p;exports.KebabMenu=jS;exports.LabelAtom=Ba;exports.LabelCell=TS;exports.Link=sp;exports.MIC_SIGNAL_SUSTAIN_MS=Dd;exports.MIC_SIGNAL_THRESHOLD=Ld;exports.MIC_SILENCE_TIMEOUT_MS=Hd;exports.Markdown=JS;exports.MarkdownEditor=r5;exports.Modal=lp;exports.NumericScale=E5;exports.PageTitle=OS;exports.PrimaryButton=P5;exports.ProgressBar=Rp;exports.ProgressStepper=V5;exports.Radio=rp;exports.RecordStepButton=l5;exports.RecordingBadge=BS;exports.ReplayButton=o5;exports.SPEECH_LOCALES=cl;exports.SingleSelect=q5;exports.SortIcon=Id;exports.SortableTableCell=Md;exports.Spinner=Ur;exports.Tab=fp;exports.Tabs=dp;exports.TexFooter=i5;exports.TextInput=kp;exports.TextInputAtom=qa;exports.TextResponse=Z5;exports.TextToSpeech=u5;exports.Textarea=yp;exports.TextareaAtom=Wa;exports.TimerProgressBar=b5;exports.Toast=LS;exports.Tooltip=_S;exports.UploadProgressBar=x5;exports.UserAvatar=VS;exports.VideoInterviewIcon=Q5;exports.acuityMuiTheme=Bd;exports.defaultMarkdownEditorLabels=Nd;exports.filterTableData=Pd;exports.formatTime=il;exports.getMarkdownContentStyles=al;exports.getMarkdownStyles=ZS;exports.isVolumeBarFilled=Od;exports.pickVoice=$d;exports.platformPalette=tt;exports.toMeterLevel=jd;exports.toSpeechLanguage=a5;exports.toast=DS;exports.useContentPanelContext=Ka;exports.useMicSignalCheck=_d;exports.useMicVolume=ll;exports.useTable=FS;
102
102
  //# sourceMappingURL=index.cjs.map