@scmlatam/web-ui 0.1.8 → 0.1.9

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.
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./main-jEaTxT8e.js";
1
+ import { _ as f } from "./main-EQ3lqLbX.js";
2
2
  const o = {
3
3
  config: {
4
4
  isInitialized: !1
@@ -41716,7 +41716,7 @@ async function zw(e) {
41716
41716
  return;
41717
41717
  const {
41718
41718
  default: t
41719
- } = await import("./get-context-C1qO2p6C.js"), r = await t();
41719
+ } = await import("./get-context-DMRGyfrc.js"), r = await t();
41720
41720
  if (!e || !Vw(r))
41721
41721
  return;
41722
41722
  const o = y({}, e, {
@@ -52173,17 +52173,18 @@ const dA = vt(/* @__PURE__ */ p("path", {
52173
52173
  values: o,
52174
52174
  placeholder: n,
52175
52175
  disabled: s,
52176
- white: l
52177
- }) => /* @__PURE__ */ p(Ii, { children: /* @__PURE__ */ ne(vs, { fullWidth: !0, focused: !0, children: [
52176
+ fullWidth: l,
52177
+ white: a
52178
+ }) => /* @__PURE__ */ p(Ii, { children: /* @__PURE__ */ ne(vs, { fullWidth: l, focused: !0, children: [
52178
52179
  /* @__PURE__ */ p(
52179
52180
  Fs,
52180
52181
  {
52181
52182
  id: `filter-table-label-${e}`,
52182
52183
  sx: {
52183
- color: l ? "black" : "white",
52184
+ color: a ? "black" : "white",
52184
52185
  position: "absolute",
52185
52186
  "&.Mui-focused": {
52186
- color: l ? "black" : "white"
52187
+ color: a ? "black" : "white"
52187
52188
  },
52188
52189
  '&[data-shrink="false"]': {
52189
52190
  transform: "translateY(12px) translateX(12px)"
@@ -52199,10 +52200,10 @@ const dA = vt(/* @__PURE__ */ p("path", {
52199
52200
  id: `filter-${e}`,
52200
52201
  value: t,
52201
52202
  label: e,
52202
- onChange: (a) => r(a.target.value),
52203
+ onChange: (c) => r(c.target.value),
52203
52204
  color: "gr-yellow",
52204
52205
  sx: {
52205
- color: l ? "black" : "white"
52206
+ color: a ? "black" : "white"
52206
52207
  },
52207
52208
  IconComponent: dA,
52208
52209
  MenuProps: {
@@ -52217,18 +52218,18 @@ const dA = vt(/* @__PURE__ */ p("path", {
52217
52218
  },
52218
52219
  MenuListProps: {
52219
52220
  sx: {
52220
- backgroundColor: l ? "white" : et["gr-base-dark"].main,
52221
+ backgroundColor: a ? "white" : et["gr-base-dark"].main,
52221
52222
  "& .MuiMenuItem-root": {
52222
- backgroundColor: l ? "white" : et["gr-base-dark"].main,
52223
- color: l ? "black" : "white",
52223
+ backgroundColor: a ? "white" : et["gr-base-dark"].main,
52224
+ color: a ? "black" : "white",
52224
52225
  "&:hover": {
52225
- backgroundColor: l ? "white" : et["gr-base-dark"].main
52226
+ backgroundColor: a ? "white" : et["gr-base-dark"].main
52226
52227
  },
52227
52228
  "&.Mui-selected": {
52228
- backgroundColor: l ? "white" : et["gr-base-dark"].main
52229
+ backgroundColor: a ? "white" : et["gr-base-dark"].main
52229
52230
  },
52230
52231
  "&.Mui-focusVisible": {
52231
- backgroundColor: l ? "white" : et["gr-base-dark"].main
52232
+ backgroundColor: a ? "white" : et["gr-base-dark"].main
52232
52233
  }
52233
52234
  }
52234
52235
  }
@@ -52238,7 +52239,7 @@ const dA = vt(/* @__PURE__ */ p("path", {
52238
52239
  disabled: s,
52239
52240
  children: [
52240
52241
  /* @__PURE__ */ p(lo, { sx: { mt: 2 }, disabled: !0, value: "", children: /* @__PURE__ */ p("em", { children: n }) }),
52241
- o.map((a) => /* @__PURE__ */ p(lo, { value: a.value, children: a.label }, a.value))
52242
+ o.map((c) => /* @__PURE__ */ p(lo, { value: c.value, children: c.label }, c.value))
52242
52243
  ]
52243
52244
  }
52244
52245
  )
@@ -57570,7 +57571,7 @@ const oL = ({
57570
57571
  }
57571
57572
  }
57572
57573
  },
57573
- renderValue: (l) => l.join(", "),
57574
+ renderValue: (l) => o.filter((a) => l.includes(a.value)).map((a) => a.label).join(", "),
57574
57575
  displayEmpty: !0,
57575
57576
  disabled: s,
57576
57577
  multiple: !0,
@@ -57650,7 +57651,8 @@ const oL = ({
57650
57651
  setMultiValue: c,
57651
57652
  values: n,
57652
57653
  placeholder: "Seleccionar",
57653
- disabled: !1
57654
+ disabled: !1,
57655
+ fullWidth: !1
57654
57656
  }
57655
57657
  ) : /* @__PURE__ */ p(
57656
57658
  cE,
@@ -57661,6 +57663,7 @@ const oL = ({
57661
57663
  values: n,
57662
57664
  placeholder: "Seleccionar",
57663
57665
  disabled: !1,
57666
+ fullWidth: !1,
57664
57667
  white: !1
57665
57668
  }
57666
57669
  ),
@@ -57672,6 +57675,7 @@ const oL = ({
57672
57675
  setMultiValue: V,
57673
57676
  values: m,
57674
57677
  placeholder: "Seleccionar",
57678
+ fullWidth: !1,
57675
57679
  disabled: !1
57676
57680
  }
57677
57681
  ) : /* @__PURE__ */ p(
@@ -57683,6 +57687,7 @@ const oL = ({
57683
57687
  values: m,
57684
57688
  placeholder: "Seleccionar",
57685
57689
  disabled: !1,
57690
+ fullWidth: !1,
57686
57691
  white: !1
57687
57692
  }
57688
57693
  ),
@@ -59203,19 +59208,20 @@ const hL = vt(/* @__PURE__ */ p("path", {
59203
59208
  value: t,
59204
59209
  setValue: r,
59205
59210
  disabled: o,
59206
- white: n
59211
+ fullWidth: n,
59212
+ white: s
59207
59213
  }) => /* @__PURE__ */ p(Ii, { children: /* @__PURE__ */ p(sm, { dateAdapter: XA, children: /* @__PURE__ */ p(
59208
59214
  NM,
59209
59215
  {
59210
59216
  label: e,
59211
59217
  value: t,
59212
- onChange: (s) => {
59213
- r(s);
59218
+ onChange: (l) => {
59219
+ r(l);
59214
59220
  },
59215
59221
  InputProps: {
59216
59222
  sx: {
59217
59223
  borderRadius: "16px",
59218
- color: n ? "black !important" : "white !important"
59224
+ color: s ? "black !important" : "white !important"
59219
59225
  }
59220
59226
  },
59221
59227
  size: "small",
@@ -59223,19 +59229,19 @@ const hL = vt(/* @__PURE__ */ p("path", {
59223
59229
  slotProps: {
59224
59230
  textField: {
59225
59231
  InputLabelProps: {
59226
- sx: { color: n ? "black !important" : "white !important" }
59232
+ sx: { color: s ? "black !important" : "white !important" }
59227
59233
  }
59228
59234
  }
59229
59235
  },
59230
59236
  focused: !0,
59231
59237
  format: "YYYY-MM-DD",
59232
59238
  disabled: o,
59233
- fullWidth: !0,
59239
+ fullWidth: n,
59234
59240
  endAdornment: /* @__PURE__ */ p(
59235
59241
  Uu,
59236
59242
  {
59237
59243
  position: "end",
59238
- sx: { color: n ? "black" : "white" },
59244
+ sx: { color: s ? "black" : "white" },
59239
59245
  children: /* @__PURE__ */ p(hL, { sx: { height: "18px", mt: "-4px" } })
59240
59246
  }
59241
59247
  )
@@ -59297,6 +59303,7 @@ const hL = vt(/* @__PURE__ */ p("path", {
59297
59303
  setValue: u.setValue,
59298
59304
  values: u.values,
59299
59305
  disabled: !1,
59306
+ fullWidth: !0,
59300
59307
  white: !0
59301
59308
  }
59302
59309
  ) }, m);
@@ -59308,6 +59315,7 @@ const hL = vt(/* @__PURE__ */ p("path", {
59308
59315
  value: u.value,
59309
59316
  setValue: u.setValue,
59310
59317
  disabled: !1,
59318
+ fullWidth: !0,
59311
59319
  white: !0
59312
59320
  }
59313
59321
  ) }, m);
@@ -59327,7 +59335,7 @@ const hL = vt(/* @__PURE__ */ p("path", {
59327
59335
  Lf,
59328
59336
  {
59329
59337
  open: e,
59330
- onClose: () => t(!1),
59338
+ onClose: () => c(r),
59331
59339
  PaperComponent: zL,
59332
59340
  "aria-labelledby": "draggable-dialog-title",
59333
59341
  children: [
package/dist/web-ui.js CHANGED
@@ -1,4 +1,4 @@
1
- import { C as o, b as r, c as s, F as b, G as t, a as C, T, u as i } from "./main-jEaTxT8e.js";
1
+ import { C as o, b as r, c as s, F as b, G as t, a as C, T, u as i } from "./main-EQ3lqLbX.js";
2
2
  export {
3
3
  o as Core,
4
4
  r as CoreContext,
@@ -490,7 +490,7 @@ return result$$;`.replaceAll("$$",String(rZ)));return rZ+=1,(a,c)=>s(n,a,c)},iZ=
490
490
  `));r[e.field]=t;return}const{groupId:o,children:n}=e;n.forEach(s=>{c3(s,[...t,o],r)})},CM=e=>{if(!e)return{};const t={};return e.forEach(r=>{c3(r,[],t)}),t},fM=(e,t,r)=>{const o=c=>t[c]??[],n=[],s=Math.max(0,...e.map(c=>o(c).length)),l=(c,u,I)=>{const E=o(c),d=o(u);for(let M=0;M<=I;M+=1)if(E[M]!==d[M])return!1;return!0},a=(c,u)=>{const I=r?.left,E=r?.right,d=!!I?.includes(c),M=!!I?.includes(u),V=!!E?.includes(c),R=!!E?.includes(u);return d!==M||V!==R};for(let c=0;c<s;c+=1){const u=[];for(let I=0;I<e.length;I+=1){const E=e[I],d=o(E)[c]??null;if(u.length===0){u.push({columnFields:[E],groupId:d});continue}const M=u[u.length-1],V=M.columnFields[M.columnFields.length-1];M.groupId!==d||!l(V,E,c)||a(V,E)?u.push({columnFields:[E],groupId:d}):M.columnFields.push(E)}n.push(u)}return n},WO=["groupId","children"],ZM=e=>{const t={};for(let r=0;r<e.length;r+=1){const o=e[r];if(Hf(o))continue;const{groupId:n,children:s}=o,l=Ie(o,WO);if(!n)throw new Error("MUI X: An element of the columnGroupingModel does not have either `field` or `groupId`.");process.env.NODE_ENV!=="production"&&!s&&console.warn(`MUI X: group groupId=${n} has no children.`);const a=y({},l,{groupId:n}),c=ZM(s);if(c[n]!==void 0||t[n]!==void 0)throw new Error(`MUI X: The groupId ${n} is used multiple times in the columnGroupingModel.`);Object.assign(t,c),t[n]=a}return t},kO=(e,t,r)=>{if(r.current.caches.columnGrouping={lastColumnGroupingModel:t.columnGroupingModel},!t.columnGroupingModel)return e;const o=Mi(r),n=qn(r),s=ZM(t.columnGroupingModel??[]),l=CM(t.columnGroupingModel??[]),a=fM(o,l,r.current.state.pinnedColumns??{}),c=n.length===0?0:Math.max(...n.map(u=>l[u]?.length??0));return y({},e,{columnGrouping:{lookup:s,unwrappedGroupingModel:l,headerStructure:a,maxDepth:c}})},jO=(e,t)=>{const r=m.useCallback(a=>BZ(e)[a]??[],[e]),o=m.useCallback(()=>LZ(e),[e]);Qe(e,{getColumnGroupPath:r,getAllGroupDetails:o},"public");const s=m.useCallback(()=>{const a=CM(t.columnGroupingModel??[]);e.current.setState(c=>{const u=c.columns?.orderedFields??[],I=c.pinnedColumns??{},E=fM(u,a,I);return y({},c,{columnGrouping:y({},c.columnGrouping,{headerStructure:E})})})},[e,t.columnGroupingModel]),l=m.useCallback(a=>{e.current.caches.columnGrouping.lastColumnGroupingModel=a;const c=e.current.getPinnedColumns?.()??{},u=Mi(e),I=qn(e),E=ZM(a??[]),d=CM(a??[]),M=fM(u,d,c),V=I.length===0?0:Math.max(...I.map(R=>d[R]?.length??0));e.current.setState(R=>y({},R,{columnGrouping:{lookup:E,unwrappedGroupingModel:d,headerStructure:M,maxDepth:V}}))},[e]);Me(e,"columnIndexChange",s),Me(e,"columnsChange",()=>{l(t.columnGroupingModel)}),Me(e,"columnVisibilityModelChange",()=>{l(t.columnGroupingModel)}),m.useEffect(()=>{t.columnGroupingModel!==e.current.caches.columnGrouping.lastColumnGroupingModel&&l(t.columnGroupingModel)},[e,l,t.columnGroupingModel])};function UO(){let e,t;const r=new Promise((o,n)=>{e=o,t=n});return r.resolve=e,r.reject=t,r}function u3(e,t){if(t!==void 0&&e.changedTouches){for(let r=0;r<e.changedTouches.length;r+=1){const o=e.changedTouches[r];if(o.identifier===t)return{x:o.clientX,y:o.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function I3(e,t,r,o){let n=e;return o==="Right"?n+=t-r.left:n+=r.right-t,n}function QO(e,t,r){return r==="Left"?e-t.left:t.right-e}function JO(e){return e==="Right"?"Left":"Right"}function PO(e,t){const r=e.classList.contains(w["columnSeparator--sideRight"])?"Right":"Left";return t?JO(r):r}function m3(e){e.preventDefault(),e.stopImmediatePropagation()}function wO(e){const t=m.useRef(void 0),r=()=>LQ(e),o=re(e,r);return m.useEffect(()=>{t.current&&o===!1&&(t.current.resolve(),t.current=void 0)}),()=>{if(!t.current){if(r()===!1)return Promise.resolve();t.current=UO()}return t.current}}function TO(e,t){if(e.length<4)return e;const r=e.slice();r.sort((a,c)=>a-c);const o=r[Math.floor(r.length*.25)],n=r[Math.floor(r.length*.75)-1],s=n-o,l=s<5?5:s*t;return r.filter(a=>a>o-l&&a<n+l)}function GO(e,t,r){const o={},n=e.current.rootElementRef.current;return n.classList.add(w.autosizing),r.forEach(s=>{const a=fP(e.current,s.field).map(V=>V.getBoundingClientRect().width??0),c=t.includeOutliers?a:TO(a,t.outliersFactor);if(t.includeHeaders){const V=CP(e.current,s.field);if(V){const R=V.querySelector(`.${w.columnHeaderTitle}`),h=V.querySelector(`.${w.columnHeaderTitleContainerContent}`),z=V.querySelector(`.${w.iconButtonContainer}`),f=V.querySelector(`.${w.menuIcon}`),Z=R??h,g=window.getComputedStyle(V,null),p=parseInt(g.paddingLeft,10)+parseInt(g.paddingRight,10),x=Z.scrollWidth+1+p+(z?.clientWidth??0)+(f?.clientWidth??0);c.push(x)}}const u=s.minWidth!==-1/0&&s.minWidth!==void 0,I=s.maxWidth!==1/0&&s.maxWidth!==void 0,E=u?s.minWidth:0,d=I?s.maxWidth:1/0,M=c.length===0?0:Math.max(...c);o[s.field]=pn(M,E,d)}),n.classList.remove(w.autosizing),o}const OO=e=>y({},e,{columnResize:{resizingColumnField:""}});function HO(){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 BO=(e,t)=>{const r=$t(),o=Xt(e,"useGridColumnResize"),n=fn(HO).current,s=m.useRef(null),l=m.useRef(null),a=Zn(),c=m.useRef(void 0),u=v=>{o.debug(`Updating width to ${v} for col ${n.colDef.field}`);const S=n.columnHeaderElement.offsetWidth,b=v-S,A=v-n.initialColWidth;if(A>0){const K=n.initialTotalWidth+A;e.current.rootElementRef?.current?.style.setProperty("--DataGrid-rowWidth",`${K}px`)}n.colDef.computedWidth=v,n.colDef.width=v,n.colDef.flex=0,n.columnHeaderElement.style.width=`${v}px`;const j=n.headerFilterElement;j&&(j.style.width=`${v}px`),n.groupHeaderElements.forEach(K=>{const Y=K;let Q;Y.getAttribute("aria-colspan")==="1"?Q=`${v}px`:Q=`${Y.offsetWidth+b}px`,Y.style.width=Q}),n.cellElements.forEach(K=>{const Y=K;let Q;Y.getAttribute("aria-colspan")==="1"?Q=`${v}px`:Q=`${Y.offsetWidth+b}px`,Y.style.setProperty("--width",Q)});const k=e.current.unstable_applyPipeProcessors("isColumnPinned",!1,n.colDef.field);k===ir.LEFT&&(Gs(n.fillerLeft,"width",b),n.leftPinnedCellsAfter.forEach(K=>{Gs(K,"left",b)}),n.leftPinnedHeadersAfter.forEach(K=>{Gs(K,"left",b)})),k===ir.RIGHT&&(Gs(n.fillerRight,"width",b),n.rightPinnedCellsBefore.forEach(K=>{Gs(K,"right",b)}),n.rightPinnedHeadersBefore.forEach(K=>{Gs(K,"right",b)}))},I=v=>{if(z(),n.previousMouseClickEvent){const S=n.previousMouseClickEvent,b=S.timeStamp,A=S.clientX,j=S.clientY;if(v.timeStamp-b<300&&v.clientX===A&&v.clientY===j){n.previousMouseClickEvent=void 0,e.current.publishEvent("columnResizeStop",null,v);return}}if(n.colDef){e.current.setColumnWidth(n.colDef.field,n.colDef.width),o.debug(`Updating col ${n.colDef.field} with new width: ${n.colDef.width}`);const S=Ki(e);n.groupHeaderElements.forEach(b=>{const A=EP(b),j=b,K=`${A.reduce((Y,Q)=>S.columnVisibilityModel[Q]!==!1?Y+S.lookup[Q].computedWidth:Y,0)}px`;j.style.width=K})}a.start(0,()=>{e.current.publishEvent("columnResizeStop",null,v)})},E=(v,S,b)=>{const A=e.current.rootElementRef.current;n.initialColWidth=v.computedWidth,n.initialTotalWidth=e.current.getRootDimensions().rowWidth,n.colDef=v,n.columnHeaderElement=mP(e.current.columnHeadersContainerRef.current,v.field);const j=A.querySelector(`.${w.headerFilterRow} [data-field="${Co(v.field)}"]`);j&&(n.headerFilterElement=j),n.groupHeaderElements=dP(e.current.columnHeadersContainerRef?.current,v.field),n.cellElements=MP(n.columnHeaderElement,e.current),n.fillerLeft=Yp(e.current,r?"filler--pinnedRight":"filler--pinnedLeft"),n.fillerRight=Yp(e.current,r?"filler--pinnedLeft":"filler--pinnedRight");const k=e.current.unstable_applyPipeProcessors("isColumnPinned",!1,n.colDef.field);n.leftPinnedCellsAfter=k!==ir.LEFT?[]:RP(e.current,n.columnHeaderElement,r),n.rightPinnedCellsBefore=k!==ir.RIGHT?[]:hP(e.current,n.columnHeaderElement,r),n.leftPinnedHeadersAfter=k!==ir.LEFT?[]:VP(e.current,n.columnHeaderElement,r),n.rightPinnedHeadersBefore=k!==ir.RIGHT?[]:zP(e.current,n.columnHeaderElement,r),l.current=PO(S,r),s.current=QO(b,n.columnHeaderElement.getBoundingClientRect(),l.current)},d=ct(I),M=ct(v=>{if(v.buttons===0){d(v);return}let S=I3(s.current,v.clientX,n.columnHeaderElement.getBoundingClientRect(),l.current);S=pn(S,n.colDef.minWidth,n.colDef.maxWidth),u(S);const b={element:n.columnHeaderElement,colDef:n.colDef,width:S};e.current.publishEvent("columnResize",b,v)}),V=ct(v=>{u3(v,c.current)&&I(v)}),R=ct(v=>{const S=u3(v,c.current);if(!S)return;if(v.type==="mousemove"&&v.buttons===0){V(v);return}let b=I3(s.current,S.x,n.columnHeaderElement.getBoundingClientRect(),l.current);b=pn(b,n.colDef.minWidth,n.colDef.maxWidth),u(b);const A={element:n.columnHeaderElement,colDef:n.colDef,width:b};e.current.publishEvent("columnResize",A,v)}),h=ct(v=>{const S=Gu(v.target,w["columnSeparator--resizable"]);if(!S)return;const b=v.changedTouches[0];b!=null&&(c.current=b.identifier);const A=Gu(v.target,w.columnHeader),j=IP(A),k=e.current.getColumn(j);o.debug(`Start Resize on col ${k.field}`),e.current.publishEvent("columnResizeStart",{field:j},v),E(k,S,b.clientX);const K=js(v.currentTarget);K.addEventListener("touchmove",R),K.addEventListener("touchend",V)}),z=m.useCallback(()=>{const v=js(e.current.rootElementRef.current);v.body.style.removeProperty("cursor"),v.removeEventListener("mousemove",M),v.removeEventListener("mouseup",d),v.removeEventListener("touchmove",R),v.removeEventListener("touchend",V),setTimeout(()=>{v.removeEventListener("click",m3,!0)},100),n.columnHeaderElement&&(n.columnHeaderElement.style.pointerEvents="unset")},[e,n,M,d,R,V]),f=m.useCallback(({field:v})=>{e.current.setState(S=>y({},S,{columnResize:y({},S.columnResize,{resizingColumnField:v})}))},[e]),Z=m.useCallback(()=>{e.current.setState(v=>y({},v,{columnResize:y({},v.columnResize,{resizingColumnField:""})}))},[e]),g=ct(({colDef:v},S)=>{if(S.button!==0||!S.currentTarget.classList.contains(w["columnSeparator--resizable"]))return;S.preventDefault(),o.debug(`Start Resize on col ${v.field}`),e.current.publishEvent("columnResizeStart",{field:v.field},S),E(v,S.currentTarget,S.clientX);const b=js(e.current.rootElementRef.current);b.body.style.cursor="col-resize",n.previousMouseClickEvent=S.nativeEvent,b.addEventListener("mousemove",M),b.addEventListener("mouseup",d),b.addEventListener("click",m3,!0)}),p=ct((v,S)=>{if(t.disableAutosize||S.button!==0)return;const b=e.current.state.columns.lookup[v.field];b.resizable!==!1&&e.current.autosizeColumns(y({},t.autosizeOptions,{disableColumnVirtualization:!1,columns:[b.field]}))}),F=wO(e),x=m.useRef(!1),q=m.useCallback(async v=>{if(!e.current.rootElementRef?.current||x.current)return;x.current=!0;const b=Ki(e),A=y({},tJ,v,{columns:v?.columns??b.orderedFields});A.columns=A.columns.filter(k=>b.columnVisibilityModel[k]!==!1);const j=A.columns.map(k=>e.current.state.columns.lookup[k]);try{!t.disableVirtualization&&A.disableColumnVirtualization&&(e.current.unstable_setColumnVirtualization(!1),await F());const k=GO(e,A,j),K=j.map(Y=>y({},Y,{width:k[Y.field],computedWidth:k[Y.field],flex:0}));if(A.expand){const Q=b.orderedFields.map(U=>b.lookup[U]).filter(U=>b.columnVisibilityModel[U.field]!==!1).reduce((U,T)=>U+(k[T.field]??T.computedWidth??T.width),0),W=e.current.getRootDimensions().viewportInnerSize.width-Q;if(W>0){const U=W/(K.length||1);K.forEach(T=>{T.width+=U,T.computedWidth+=U})}}e.current.updateColumns(K),K.forEach((Y,Q)=>{if(Y.width!==j[Q].width){const P=Y.width;e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement(Y.field),colDef:Y,width:P})}})}finally{t.disableVirtualization||e.current.unstable_setColumnVirtualization(!0),x.current=!1}},[e,F,t.disableVirtualization]);m.useEffect(()=>z,[z]),PE(()=>{t.autosizeOnMount&&Promise.resolve().then(()=>{e.current.autosizeColumns(t.autosizeOptions)})}),$Z(e,()=>e.current.columnHeadersContainerRef?.current,"touchstart",h,{passive:!0}),Qe(e,{autosizeColumns:q},"public"),Me(e,"columnResizeStop",Z),Me(e,"columnResizeStart",f),Me(e,"columnSeparatorMouseDown",g),Me(e,"columnSeparatorDoubleClick",p),at(e,"columnResize",t.onColumnResize),at(e,"columnWidthChange",t.onColumnWidthChange)};function Gs(e,t,r){e&&(e.style[t]=`${parseInt(e.style[t],10)+r}px`)}function LO(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 E3(e){return e.firstRowIndex!==0||e.lastRowIndex!==0}const pM=(e,t,r)=>{if(!e)return null;let o=e[t.field];const n=t.rowSpanValueGetter??t.valueGetter;return n&&(o=n(o,e,t,r)),o},d3={spannedCells:{},hiddenCells:{},hiddenCellOriginMap:{}},Os={caches:d3,processedRange:{firstRowIndex:0,lastRowIndex:0}},M3=20,R3=(e,t,r,o,n,s)=>{const l=e.current.virtualizer,a=s?Os:Ws.selectors.state(l.store.state),c=y({},a.caches.spannedCells),u=y({},a.caches.hiddenCells),I=y({},a.caches.hiddenCellOriginMap),E={firstRowIndex:Math.min(a.processedRange.firstRowIndex,n.firstRowIndex),lastRowIndex:Math.max(a.processedRange.lastRowIndex,n.lastRowIndex)};return t.forEach((d,M)=>{for(let V=n.firstRowIndex;V<n.lastRowIndex;V+=1){const R=r[V];if(u[R.id]?.[M])continue;const h=pM(R.model,d,e);if(h==null)continue;let z=R.id,f=V,Z=0;const g=[];if(V===n.firstRowIndex){let F=V-1,x=r[F];for(;F>=o.firstRowIndex&&x&&pM(x.model,d,e)===h;){const q=r[F+1];u[q.id]?u[q.id][M]=!0:u[q.id]={[M]:!0},g.push(V),Z+=1,z=x.id,f=F,F-=1,x=r[F]}}g.forEach(F=>{I[F]?I[F][M]=f:I[F]={[M]:f}});let p=V+1;for(;p<=o.lastRowIndex&&r[p]&&pM(r[p].model,d,e)===h;){const F=r[p];u[F.id]?u[F.id][M]=!0:u[F.id]={[M]:!0},I[p]?I[p][M]=f:I[p]={[M]:f},p+=1,Z+=1}Z>0&&(c[z]?c[z][M]=Z+1:c[z]={[M]:Z+1})}}),{caches:{spannedCells:c,hiddenCells:u,hiddenCellOriginMap:I},processedRange:E}},XO=(e,t)=>{const r=Qo(t).length;if(e.pagination){const o=kZ(t);let n=M3;return o>0&&(n=o-1),{firstRowIndex:0,lastRowIndex:Math.min(n,r)}}return{firstRowIndex:0,lastRowIndex:Math.min(M3,r)}},NO=(e,t,r)=>{if(!t.rowSpanning)return y({},e,{rowSpanning:Os});const o=e.rows.dataRowIds||[],n=e.columns.orderedFields||[],s=e.rows.dataRowIdToModelLookup,l=e.columns.lookup,a=!!e.filter.filterModel.items.length||!!e.filter.filterModel.quickFilterValues?.length;if(!o.length||!n.length||!s||!l||a)return y({},e,{rowSpanning:Os});const c=XO(t,r),u=o.map(d=>({id:d,model:s[d]})),I=n.map(d=>l[d]),E=R3(r,I,u,c,c,!0);return y({},e,{rowSpanning:E})},DO=(e,t)=>{const r=e.current.virtualizer.store,o=m.useCallback((s,l=!1)=>{const{range:a,rows:c}=Bo(e);if(a===null||!E3(s))return;const u=l?Os:Ws.selectors.state(r.state),I=LO({firstRowIndex:s.firstRowIndex,lastRowIndex:Math.min(s.lastRowIndex,a.lastRowIndex-a.firstRowIndex+1)},u.processedRange);if(I===null)return;const E=xt(e),d=R3(e,E,c,a,I,l),M=Object.keys(d.caches.spannedCells).length,V=Object.keys(d.caches.hiddenCells).length,R=Object.keys(u.caches.spannedCells).length,h=Object.keys(u.caches.hiddenCells).length;!(l||M!==R||V!==h)||M===0&&R===0||r.set("rowSpanning",d)},[e,r]),n=m.useCallback(()=>{const s=ks(e);E3(s)&&o(s,!0)},[e,o]);Me(e,"renderedRowsIntervalChange",Ar(t.rowSpanning,o)),Me(e,"sortedRowsSet",Ar(t.rowSpanning,n)),Me(e,"paginationModelChange",Ar(t.rowSpanning,n)),Me(e,"filteredRowsSet",Ar(t.rowSpanning,n)),Me(e,"columnsChange",Ar(t.rowSpanning,n)),m.useEffect(()=>{t.rowSpanning?r.state.rowSpanning.caches===d3&&n():r.state.rowSpanning!==Os&&r.set("rowSpanning",Os)},[e,r,n,t.rowSpanning])},$O=(e,t,r)=>y({},e,{listViewColumn:t.listViewColumn?y({},t.listViewColumn,{computedWidth:qM(r)}):void 0});function _O(e,t){const r=()=>{e.current.setState(s=>s.listViewColumn?y({},s,{listViewColumn:y({},s.listViewColumn,{computedWidth:qM(e)})}):s)},o=m.useRef(null);Me(e,"viewportInnerSizeChange",s=>{o.current!==s.width&&(o.current=s.width,r())}),Me(e,"columnVisibilityModelChange",r),Xr(()=>{const s=t.listViewColumn;s&&e.current.setState(l=>y({},l,{listViewColumn:y({},s,{computedWidth:qM(e)})}))},[e,t.listViewColumn]),m.useEffect(()=>{t.listView&&!t.listViewColumn&&Qr(["MUI X: The `listViewColumn` prop must be set if `listView` is enabled.",'To fix, pass a column definition to the `listViewColumn` 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.listView,t.listViewColumn])}function qM(e){return jt(e).viewportInnerSize.width}const h3=qe(bt,lr,Ot,(e,t,r)=>({groupKeys:[],paginationModel:r,sortModel:t,filterModel:e,start:r.page*r.pageSize,end:r.page*r.pageSize+r.pageSize-1}));let Sn=function(e){return e.Default="set-new-rows",e.LazyLoading="replace-row-range",e}({});class va{constructor(t){this.chunkSize=void 0,this.getCacheKeys=r=>{if(this.chunkSize<1||typeof r.start!="number")return[r];const o=[];for(let n=r.start;n<=r.end;n+=this.chunkSize){const s=Math.min(n+this.chunkSize-1,r.end);o.push(y({},r,{start:n,end:s}))}return o},this.splitResponse=(r,o)=>{const n=this.getCacheKeys(r);if(n.length===1)return new Map([[r,o]]);const s=new Map;return n.forEach(l=>{const a=l.end===r.end,c=y({},o,{pageInfo:y({},o.pageInfo,{hasNextPage:o.pageInfo?.hasNextPage!==void 0&&!a?!0:o.pageInfo?.hasNextPage,nextCursor:o.pageInfo?.nextCursor!==void 0&&!a?o.rows[l.end+1].id:o.pageInfo?.nextCursor}),rows:typeof l.start!="number"||typeof r.start!="number"?o.rows:o.rows.slice(l.start-r.start,l.end-r.start+1)});s.set(l,c)}),s},this.chunkSize=t}}va.mergeResponses=e=>e.length===1?e[0]:e.reduce((t,r)=>({rows:[...t.rows,...r.rows],rowCount:r.rowCount,pageInfo:r.pageInfo}),{rows:[],rowCount:0,pageInfo:{}});const eH=["skipCache"],tH={clear:()=>{},get:()=>{},set:()=>{}};function V3(e,t={}){return e===null?tH:e??new nJ(t)}const rH=(e,t,r={})=>{const o=m.useCallback(()=>{e.current.setStrategyAvailability(Dr.DataSource,Sn.Default,t.dataSource?()=>!0:()=>!1)},[e,t.dataSource]),[n,s]=m.useState(!1),l=re(e,Ot),a=m.useRef(0),c=t.onDataSourceError,u=fn(()=>{if(!t.pagination)return new va(l.pageSize);const p=t.pageSizeOptions.map(x=>typeof x=="number"?x:x.value).sort((x,q)=>x-q),F=Math.min(l.pageSize,p[0]);return new va(F)}).current,[I,E]=m.useState(()=>V3(t.dataSourceCache,r.cacheOptions)),d=m.useCallback(async(p,F)=>{const x=t.dataSource?.getRows;if(!x)return;if(p&&p!==De&&t.signature!=="DataGrid"){r.fetchRowChildren?.([p]);return}r.clearDataSourceState?.();const q=F||{},{skipCache:v}=q,S=Ie(q,eH),b=y({},h3(e),e.current.unstable_applyPipeProcessors("getRowsParams",{}),S),j=u.getCacheKeys(b).map(K=>I.get(K));if(!v&&j.every(K=>K!==void 0)){e.current.applyStrategyProcessor("dataSourceRowsUpdate",{response:va.mergeResponses(j),fetchParams:b});return}(n||e.current.getRowsCount()===0)&&e.current.setLoading(!0);const k=a.current+1;a.current=k;try{const K=await x(b);u.splitResponse(b,K).forEach((Q,P)=>I.set(P,Q)),a.current===k&&e.current.applyStrategyProcessor("dataSourceRowsUpdate",{response:K,fetchParams:b})}catch(K){a.current===k&&(e.current.applyStrategyProcessor("dataSourceRowsUpdate",{error:K,fetchParams:b}),typeof c=="function"?c(new fp({message:K?.message,params:b,cause:K})):process.env.NODE_ENV!=="production"&&Qr(["MUI X: A call to `dataSource.getRows()` threw an error which was not handled because `onDataSourceError()` is missing.","To handle the error pass a callback to the `onDataSourceError` prop, for example `<DataGrid onDataSourceError={(error) => ...} />`.","For more detail, see https://mui.com/x/react-data-grid/server-side-data/#error-handling."],"error"))}finally{n&&a.current===k&&e.current.setLoading(!1)}},[u,I,e,n,t.dataSource?.getRows,c,r,t.signature]),M=m.useCallback(()=>{s(e.current.getActiveStrategy(Dr.DataSource)===Sn.Default)},[e]),V=m.useCallback(p=>{if("error"in p){e.current.setRows([]);return}const{response:F}=p;F.rowCount!==void 0&&e.current.setRowCount(F.rowCount),e.current.setRows(F.rows),e.current.unstable_applyPipeProcessors("processDataSourceRows",{params:p.fetchParams,response:F},!0)},[e]),R=t.dataSource?.updateRow,h=r.handleEditRow,z=m.useCallback(async p=>{if(R)try{const F=await R(p);return typeof h=="function"?(h(p,F),F):(e.current.updateNestedRows([F],[]),F&&!Pr(F,p.previousRow)&&e.current.dataSource.cache.clear(),F)}catch(F){throw typeof c=="function"?c(new sJ({message:F?.message,params:p,cause:F})):process.env.NODE_ENV!=="production"&&Qr(["MUI X: A call to `dataSource.updateRow()` threw an error which was not handled because `onDataSourceError()` is missing.","To handle the error pass a callback to the `onDataSourceError` prop, for example `<DataGrid onDataSourceError={(error) => ...} />`.","For more detail, see https://mui.com/x/react-data-grid/server-side-data/#error-handling."],"error"),F}},[e,R,c,h]),f={dataSource:{fetchRows:d,cache:I,editRow:z}},Z=m.useMemo(()=>Jd(d,0),[d]),g=m.useRef(!0);return m.useEffect(()=>{if(g.current){g.current=!1;return}if(t.dataSourceCache===void 0)return;const p=V3(t.dataSourceCache,r.cacheOptions);E(F=>F!==p?p:F)},[t.dataSourceCache,r.cacheOptions]),m.useEffect(()=>(t.dataSource&&(e.current.dataSource.cache.clear(),e.current.dataSource.fetchRows()),()=>{a.current+=1}),[e,t.dataSource]),{api:{public:f},debouncedFetchRows:Z,strategyProcessor:{strategyName:Sn.Default,group:"dataSourceRowsUpdate",processor:V},setStrategyAvailability:o,cacheChunkManager:u,cache:I,events:{strategyAvailabilityChange:M,sortModelChange:Ar(n,()=>Z()),filterModelChange:Ar(n,()=>Z()),paginationModelChange:Ar(n,()=>Z())}}},iH=e=>{const{classes:t,headerAlign:r,isDragging:o,isLastColumn:n,showLeftBorder:s,showRightBorder:l,groupId:a,pinnedPosition:c}=e,u={root:["columnHeader",r==="left"&&"columnHeader--alignLeft",r==="center"&&"columnHeader--alignCenter",r==="right"&&"columnHeader--alignRight",o&&"columnHeader--moving",l&&"columnHeader--withRightBorder",s&&"columnHeader--withLeftBorder","withBorderColor",a===null?"columnHeader--emptyGroup":"columnHeader--filledGroup",c===$e.LEFT&&"columnHeader--pinnedLeft",c===$e.RIGHT&&"columnHeader--pinnedRight",n&&"columnHeader--last"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer","withBorderColor"],titleContainerContent:["columnHeaderTitleContainerContent"]};return tt(u,we,t)};function oH(e){const{groupId:t,width:r,depth:o,maxDepth:n,fields:s,height:l,colIndex:a,hasFocus:c,tabIndex:u,isLastColumn:I,pinnedPosition:E,pinnedOffset:d}=e,M=fe(),V=$t(),R=m.useRef(null),h=je(),z=re(h,LZ),f=t?z[t]:{},{headerName:Z=t??"",description:g="",headerAlign:p=void 0}=f;let F;const x=t&&z[t]?.renderHeaderGroup,q=m.useMemo(()=>({groupId:t,headerName:Z,description:g,depth:o,maxDepth:n,fields:s,colIndex:a,isLastColumn:I}),[t,Z,g,o,n,s,a,I]);t&&x&&(F=x(q));const v=y({},e,{classes:M.classes,headerAlign:p,depth:o,isDragging:!1}),S=Z??t,b=zt(),A=t===null?`empty-group-cell-${b}`:t,j=iH(v);m.useLayoutEffect(()=>{c&&(R.current.querySelector('[tabindex="0"]')||R.current)?.focus()},[h,c]);const k=m.useCallback(P=>J=>{Ps(J)||h.current.publishEvent(P,q,J)},[h,q]),K=m.useMemo(()=>({onKeyDown:k("columnGroupHeaderKeyDown"),onFocus:k("columnGroupHeaderFocus"),onBlur:k("columnGroupHeaderBlur")}),[k]),Y=typeof f.headerClassName=="function"?f.headerClassName(q):f.headerClassName,Q=m.useMemo(()=>Ra(y({},e.style),V,E,d),[E,d,e.style,V]);return C.jsx(bd,y({ref:R,classes:j,columnMenuOpen:!1,colIndex:a,height:l,isResizing:!1,sortDirection:null,hasFocus:!1,tabIndex:u,isDraggable:!1,headerComponent:F,headerClassName:Y,description:g,elementId:A,width:r,columnMenuIconButton:null,columnTitleIconButtons:null,resizable:!1,label:S,"aria-colspan":s.length,"data-fields":`|-${s.join("-|-")}-|`,style:Q},K))}const AM=ee("div",{name:"MuiDataGrid",slot:"ColumnHeaderRow"})({display:"flex"}),z3=e=>{const{visibleColumns:t,sortColumnLookup:r,filterColumnLookup:o,columnHeaderTabIndexState:n,columnGroupHeaderTabIndexState:s,columnHeaderFocus:l,columnGroupHeaderFocus:a,headerGroupingMaxDepth:c,columnMenuState:u,columnVisibility:I,columnGroupsHeaderStructure:E,hasOtherElementInTabSequence:d}=e,[M,V]=m.useState(""),[R,h]=m.useState(""),z=Mr(),f=fe(),Z=re(z,BZ),g=re(z,wo),p=re(z,DQ),F=re(z,Zs),x=re(z,_i),q=dp(g,p,F.left.length),v=re(z,ea),S=re(z,kE),b=re(z,Ck),A=re(z,fk),j=re(z,jE),k=m.useCallback(B=>h(B.field),[]),K=m.useCallback(()=>h(""),[]),Y=m.useCallback(B=>V(B.field),[]),Q=m.useCallback(()=>V(""),[]),P=m.useMemo(()=>F.left.length?{firstColumnIndex:0,lastColumnIndex:F.left.length}:null,[F.left.length]),J=m.useMemo(()=>F.right.length?{firstColumnIndex:t.length-F.right.length,lastColumnIndex:t.length}:null,[F.right.length,t.length]);Me(z,"columnResizeStart",k),Me(z,"columnResizeStop",K),Me(z,"columnHeaderDragStart",Y),Me(z,"columnHeaderDragEndNative",Q);const W=B=>{const{renderContext:N=p}=B||{},te=N.firstColumnIndex,D=Math.min(N.lastColumnIndex,t.length);return{renderedColumns:t.slice(te,D),firstColumnToRender:te,lastColumnToRender:D}},U=(B,N,te,D=!1)=>{const X=B?.position===$e.RIGHT,ie=B?.position===void 0,L=F.right.length>0&&X||F.right.length===0&&ie,se=q-te;return C.jsxs(m.Fragment,{children:[ie&&C.jsx("div",{role:"presentation",style:{width:se}}),N,ie&&C.jsx("div",{role:"presentation",className:me(w.filler,D&&w["filler--borderBottom"])}),L&&C.jsx(tM,{header:!0,pinnedRight:X,borderBottom:D,borderTop:!1})]})};process.env.NODE_ENV!=="production"&&(U.displayName="getFillers");const T=(B,N={})=>{const{renderedColumns:te,firstColumnToRender:D}=W(B),X=[];for(let ie=0;ie<te.length;ie+=1){const L=te[ie],se=D+ie,oe=se===0,de=n!==null&&n.field===L.field||oe&&!d?0:-1,$=l!==null&&l.field===L.field,Re=u.open&&u.field===L.field,_=B?.position,Ze=Va(_,L.computedWidth,se,g,v,j),Ce=_===$e.RIGHT?te[ie-1]:te[ie+1],Ae=Ce?l!==null&&l.field===Ce.field:!1,he=se+1===g.length-F.right.length,Je=ie,Fe=te.length,He=Ca(_,Je),Ye=za(_,Je,Fe,f.showColumnVerticalBorder,S);X.push(C.jsx(FP,y({},r[L.field],{columnMenuOpen:Re,filterItemsCounter:o[L.field]&&o[L.field].length,headerHeight:b,isDragging:L.field===M,colDef:L,colIndex:se,isResizing:R===L.field,isLast:se===g.length-1,hasFocus:$,tabIndex:de,pinnedPosition:_,pinnedOffset:Ze,isLastUnpinned:he,isSiblingFocused:Ae,showLeftBorder:He,showRightBorder:Ye},N),L.field))}return U(B,X,0)},O=()=>C.jsxs(AM,{role:"row","aria-rowindex":c+1,ownerState:f,className:w["row--borderBottom"],style:{height:b},children:[P&&T({position:$e.LEFT,renderContext:P},{disableReorder:!0}),T({renderContext:p}),J&&T({position:$e.RIGHT,renderContext:J},{disableReorder:!0,separatorSide:Kd.Left})]});process.env.NODE_ENV!=="production"&&(O.displayName="getColumnHeadersRow");const G=({depth:B,params:N})=>{const te=W(N);if(te.renderedColumns.length===0)return null;const{firstColumnToRender:D,lastColumnToRender:X}=te,ie=E[B],L=t[D].field,se=Z[L]?.[B]??null,oe=ie.findIndex(({groupId:Fe,columnFields:He})=>Fe===se&&He.includes(L)),de=t[X-1].field,$=Z[de]?.[B]??null,Re=ie.findIndex(({groupId:Fe,columnFields:He})=>Fe===$&&He.includes(de)),_=ie.slice(oe,Re+1).map(Fe=>y({},Fe,{columnFields:Fe.columnFields.filter(He=>I[He]!==!1)})).filter(Fe=>Fe.columnFields.length>0),Ze=_[0].columnFields.indexOf(L),Ae=_[0].columnFields.slice(0,Ze).reduce((Fe,He)=>{const Ye=x[He];return Fe+(Ye.computedWidth??0)},0);let he=D;const Je=_.map(({groupId:Fe,columnFields:He},Ye)=>{const Te=a!==null&&a.depth===B&&He.includes(a.field),_e=s!==null&&s.depth===B&&He.includes(s.field)?0:-1,le={width:He.reduce((ve,Oe)=>ve+x[Oe].computedWidth,0),fields:He,colIndex:he},ze=N.position,ae=Va(ze,le.width,he,g,v,j);he+=He.length;let pe=Ye;return ze===$e.LEFT&&(pe=he-1),C.jsx(oH,{groupId:Fe,width:le.width,fields:le.fields,colIndex:le.colIndex,depth:B,isLastColumn:Ye===_.length-1,maxDepth:c,height:A,hasFocus:Te,tabIndex:_e,pinnedPosition:ze,pinnedOffset:ae,showLeftBorder:Ca(ze,pe),showRightBorder:za(ze,pe,_.length,f.showColumnVerticalBorder,S)},Ye)});return U(N,Je,Ae)};return{renderContext:p,leftRenderContext:P,rightRenderContext:J,pinnedColumns:F,visibleColumns:t,columnPositions:g,getFillers:U,getColumnHeadersRow:O,getColumnsToRender:W,getColumnGroupHeadersRows:()=>{if(c===0)return null;const B=[];for(let N=0;N<c;N+=1)B.push(C.jsxs(AM,{role:"row","aria-rowindex":N+1,ownerState:f,style:{height:A},children:[P&&G({depth:N,params:{position:$e.LEFT,renderContext:P,maxLastColumn:P.lastColumnIndex}}),G({depth:N,params:{renderContext:p}}),J&&G({depth:N,params:{position:$e.RIGHT,renderContext:J,maxLastColumn:J.lastColumnIndex}})]},N));return B},getPinnedCellOffset:Va,isDragging:!!M,getInnerProps:()=>({role:"rowgroup"})}},nH=["className"],sH=e=>{const{classes:t}=e;return tt({root:["columnHeaders"]},we,t)},lH=ot("div",{name:"MuiDataGrid",slot:"ColumnHeaders"})({display:"flex",flexDirection:"column",borderTopLeftRadius:"var(--unstable_DataGrid-radius)",borderTopRightRadius:"var(--unstable_DataGrid-radius)"}),gM=Ke(function(t,r){const{className:o}=t,n=Ie(t,nH),s=fe(),l=sH(s);return C.jsx(lH,y({className:me(l.root,o),ownerState:s},n,{role:"presentation",ref:r}))});process.env.NODE_ENV!=="production"&&(gM.displayName="GridBaseColumnHeaders");const aH=["className","visibleColumns","sortColumnLookup","filterColumnLookup","columnHeaderTabIndexState","columnGroupHeaderTabIndexState","columnHeaderFocus","columnGroupHeaderFocus","headerGroupingMaxDepth","columnMenuState","columnVisibility","columnGroupsHeaderStructure","hasOtherElementInTabSequence"],yM=Ke(function(t,r){const{visibleColumns:o,sortColumnLookup:n,filterColumnLookup:s,columnHeaderTabIndexState:l,columnGroupHeaderTabIndexState:a,columnHeaderFocus:c,columnGroupHeaderFocus:u,headerGroupingMaxDepth:I,columnMenuState:E,columnVisibility:d,columnGroupsHeaderStructure:M,hasOtherElementInTabSequence:V}=t,R=Ie(t,aH),{getInnerProps:h,getColumnHeadersRow:z,getColumnGroupHeadersRows:f}=z3({visibleColumns:o,sortColumnLookup:n,filterColumnLookup:s,columnHeaderTabIndexState:l,columnGroupHeaderTabIndexState:a,columnHeaderFocus:c,columnGroupHeaderFocus:u,headerGroupingMaxDepth:I,columnMenuState:E,columnVisibility:d,columnGroupsHeaderStructure:M,hasOtherElementInTabSequence:V});return C.jsxs(gM,y({},R,h(),{ref:r,children:[f(),z()]}))});process.env.NODE_ENV!=="production"&&(yM.displayName="GridColumnHeaders"),process.env.NODE_ENV!=="production"&&(yM.propTypes={columnGroupHeaderFocus:i.shape({depth:i.number.isRequired,field:i.string.isRequired}),columnGroupHeaderTabIndexState:i.shape({depth:i.number.isRequired,field:i.string.isRequired}),columnGroupsHeaderStructure:i.arrayOf(i.arrayOf(i.shape({columnFields:i.arrayOf(i.string).isRequired,groupId:i.string}))).isRequired,columnHeaderFocus:i.shape({field:i.string.isRequired}),columnHeaderTabIndexState:i.shape({field:i.string.isRequired}),columnMenuState:i.shape({field:i.string,open:i.bool.isRequired}).isRequired,columnVisibility:i.object.isRequired,filterColumnLookup:i.object.isRequired,hasOtherElementInTabSequence:i.bool.isRequired,headerGroupingMaxDepth:i.number.isRequired,sortColumnLookup:i.object.isRequired,visibleColumns:i.arrayOf(i.object).isRequired});const cH=vi(yM);function uH(e){return null}function IH(e){return null}const C3=Ke(function(t,r){const n=je().current.getLocaleText("noResultsOverlayLabel");return C.jsx(Qs,y({},t,{ref:r,children:n}))});process.env.NODE_ENV!=="production"&&(C3.displayName="GridNoResultsOverlay");const mH=()=>tt({root:["bottomContainer"]},we,{}),EH=ot("div")({position:"sticky",zIndex:40,bottom:"calc(var(--DataGrid-hasScrollX) * var(--DataGrid-scrollbarSize))"});function dH(e){const t=mH();return C.jsx(EH,y({},e,{className:me(t.root,w["container--bottom"]),role:"presentation"}))}const MH=y({},tG,{cell:AJ,skeletonCell:KJ,columnHeaderFilterIconButton:Hp,columnHeaderSortIcon:Op,columnMenu:Wd,columnHeaders:cH,detailPanels:uH,bottomContainer:dH,footer:eM,footerRowCount:nM,toolbar:pq,pinnedRows:IH,loadingOverlay:rM,noResultsOverlay:C3,noRowsOverlay:iM,noColumnsOverlay:oM,pagination:yq,filterPanel:Qd,columnsPanel:a2,columnsManagement:Rq,panel:jd,row:xw});class RH{constructor(){this.maxListeners=20,this.warnOnce=!1,this.events={}}on(t,r,o={}){let n=this.events[t];if(n||(n={highPriority:new Map,regular:new Map},this.events[t]=n),o.isFirst?n.highPriority.set(r,!0):n.regular.set(r,!0),process.env.NODE_ENV!=="production"){const s=n.highPriority.size+n.regular.size;s>this.maxListeners&&!this.warnOnce&&(this.warnOnce=!0,console.warn([`Possible EventEmitter memory leak detected. ${s} ${t} listeners added.`].join(`
491
491
  `)))}}removeListener(t,r){this.events[t]&&(this.events[t].regular.delete(r),this.events[t].highPriority.delete(r))}removeAllListeners(){this.events={}}emit(t,...r){const o=this.events[t];if(!o)return;const n=Array.from(o.highPriority.keys()),s=Array.from(o.regular.keys());for(let l=n.length-1;l>=0;l-=1){const a=n[l];o.highPriority.has(a)&&a.apply(this,r)}for(let l=0;l<s.length;l+=1){const a=s[l];o.regular.has(a)&&a.apply(this,r)}}once(t,r){const o=this;this.on(t,function n(...s){o.removeListener(t,n),r.apply(o,s)})}}const f3=Symbol("mui.api_private"),hH=e=>e.isPropagationStopped!==void 0;let Z3=0;function VH(e){const t=e.current?.[f3];if(t)return t;const r={},o={state:r,store:Mu.create(r),instanceId:{id:Z3}};return Z3+=1,o.getPublicApi=()=>e.current,o.register=(n,s)=>{Object.keys(s).forEach(l=>{const a=s[l],c=o[l];if(c?.spying===!0?c.target=a:o[l]=a,n==="public"){const u=e.current,I=u[l];I?.spying===!0?I.target=a:u[l]=a}})},o.register("private",{caches:{},eventManager:new RH}),o}function zH(e){return{get state(){return e.current.state},get store(){return e.current.store},get instanceId(){return e.current.instanceId},[f3]:e.current}}function CH(e,t){const r=m.useRef(null),o=m.useRef(null);o.current||(o.current=VH(r)),r.current||(r.current=zH(o));const n=m.useCallback((...l)=>{const[a,c,u={}]=l;if(u.defaultMuiPrevented=!1,hH(u)&&u.isPropagationStopped())return;const I=t.signature===Ur.DataGridPro||t.signature===Ur.DataGridPremium?{api:o.current.getPublicApi()}:{};o.current.eventManager.emit(a,c,u,I)},[o,t.signature]),s=m.useCallback((l,a,c)=>{o.current.eventManager.on(l,a,c);const u=o.current;return()=>{u.eventManager.removeListener(l,a)}},[o]);return Qe(o,{subscribeEvent:s,publishEvent:n},"public"),e&&!e.current?.state&&(e.current=r.current),m.useImperativeHandle(e,()=>r.current,[r]),m.useEffect(()=>{const l=o.current;return()=>{l.publishEvent("unmount")}},[o]),o}const fH=(e,t)=>y({},e,{headerFiltering:{enabled:t.headerFilters??!1,editing:null,menuOpen:null}}),ZH=(e,t)=>{const r=Xt(e,"useGridHeaderFiltering"),o=m.useCallback(E=>{e.current.setState(d=>t.signature==="DataGrid"?d:y({},d,{headerFiltering:{enabled:t.headerFilters??!1,editing:E.editing??null,menuOpen:E.menuOpen??null}}))},[e,t.signature,t.headerFilters]),n=m.useCallback(E=>{r.debug(`Starting edit mode on header filter for field: ${E}`),e.current.setHeaderFilterState({editing:E})},[e,r]),s=m.useCallback(()=>{r.debug("Stopping edit mode on header filter"),e.current.setHeaderFilterState({editing:null})},[e,r]),l=m.useCallback(E=>{r.debug(`Opening header filter menu for field: ${E}`),e.current.setHeaderFilterState({menuOpen:E})},[e,r]),a=m.useCallback(()=>{r.debug("Hiding header filter menu for active field");let E=e.current.state.headerFiltering.menuOpen;if(E){const d=_i(e),M=hi(e),V=Mi(e);if(d[E]||(E=V[0]),M[E]===!1){const R=V.filter(z=>z===E?!0:M[z]!==!1),h=R.indexOf(E);E=R[h+1]||R[h-1]}e.current.setHeaderFilterState({menuOpen:null}),e.current.setColumnHeaderFilterFocus(E)}},[e,r]),c={setHeaderFilterState:o};Qe(e,{startHeaderFilterEditMode:n,stopHeaderFilterEditMode:s,showHeaderFilterMenu:l,hideHeaderFilterMenu:a},"public"),Qe(e,c,"private");const I=m.useRef(!0);m.useEffect(()=>{I.current?I.current=!1:e.current.setHeaderFilterState({enabled:t.headerFilters??!1})},[e,t.headerFilters])},pH=typeof window<"u"?m.useLayoutEffect:m.useEffect;function vM(e){const t=m.useRef(e);return pH(()=>{t.current=e}),m.useRef((...r)=>(0,t.current)(...r)).current}const qH=(e,t)=>{const r=re(e,xt),o=sM(e),n=t.rowsLoadingMode==="client"&&!!t.onRowsScrollEnd,s=vM(()=>{const l=e.current.getViewportPageSize(),a={visibleColumns:r,viewportPageSize:l,visibleRowsCount:o.rows.length};e.current.publishEvent("rowsScrollEnd",a)});at(e,"rowsScrollEnd",t.onRowsScrollEnd),Me(e,"rowsScrollEndIntersection",Ar(n,s))};function ki(e,t,r=void 0){const o={};for(const n in e){const s=e[n];let l="",a=!0;for(let c=0;c<s.length;c+=1){const u=s[c];u&&(l+=(a===!0?"":" ")+t(u),a=!1,r&&r[u]&&(l+=" "+r[u]))}o[n]=l}return o}const AH=Vt(e=>e.columnReorder),p3=qe(AH,e=>e.dragCol),q3="left",A3="right",gH=(e,t)=>e.x<=t.x?A3:q3,yH=(e,t)=>e.x!==t.x||e.y!==t.y,vH=e=>{const{classes:t}=e;return ki({columnHeaderDragging:["columnHeader--dragging"]},we,t)},FH=e=>y({},e,{columnReorder:{dragCol:""}}),xH=(e,t)=>{const r=Xt(e,"useGridColumnReorder"),o=m.useRef(null),n=m.useRef({x:0,y:0}),s=m.useRef(null),l=m.useRef({}),a=m.useRef(void 0),c={classes:t.classes},u=vH(c),I=$t();m.useEffect(()=>()=>{clearTimeout(a.current)},[]);const E=m.useCallback((R,h)=>{const z=p3(e);if(!(t.disableColumnReorder||!z)){if(r.debug("End dragging col"),h.preventDefault(),h.stopPropagation(),clearTimeout(a.current),o.current.classList.contains(u.columnHeaderDragging)&&o.current.classList.remove(u.columnHeaderDragging),o.current=null,h.dataTransfer.dropEffect==="none"&&!t.keepColumnPositionIfDraggedOutside)e.current.setColumnIndex(z,s.current),s.current=null;else{const f={column:e.current.getColumn(z),targetIndex:e.current.getColumnIndexRelativeToVisibleColumns(z),oldIndex:s.current};e.current.publishEvent("columnOrderChange",f)}e.current.setState(f=>y({},f,{columnReorder:y({},f.columnReorder,{dragCol:""})}))}},[e,t.disableColumnReorder,t.keepColumnPositionIfDraggedOutside,r,u.columnHeaderDragging]),d=m.useCallback((R,h)=>{if(t.disableColumnReorder||R.colDef.disableReorder)return;r.debug(`Start dragging col ${R.field}`),h.stopPropagation(),o.current=h.currentTarget,o.current.classList.add(u.columnHeaderDragging);const z=q=>{o.current.removeEventListener("dragend",z),e.current.publishEvent("columnHeaderDragEndNative",R,q)};o.current.addEventListener("dragend",z),h.dataTransfer&&(h.dataTransfer.effectAllowed="move"),e.current.setState(q=>y({},q,{columnReorder:y({},q.columnReorder,{dragCol:R.field})})),a.current=setTimeout(()=>{o.current.classList.remove(u.columnHeaderDragging)}),s.current=e.current.getColumnIndex(R.field,!1);const f=e.current.getColumnGroupPath(R.field),Z=s.current,g=e.current.getAllColumns(),p=e.current.getAllGroupDetails(),F=q=>{const v=g[q].field;return e.current.getColumnGroupPath(v)};let x=null;f.forEach(q=>{p[q]?.freeReordering||(Z>0&&F(Z-1).includes(q)||Z+1<g.length&&F(Z+1).includes(q))&&(x=q)}),l.current={};for(let q=0;q<g.length;q+=1){const v=q<=Z?q-1:q,S=q<Z?q:q+1;if(x!==null){let b=!1;(v>=0&&F(v).includes(x)||S<g.length&&F(S).includes(x))&&(b=!0),b||(l.current[q]=!0)}v>=0&&S<g.length&&F(S).forEach(b=>{F(v).includes(b)&&(f.includes(b)||p[b]?.freeReordering||(l.current[q]=!0))})}},[t.disableColumnReorder,u.columnHeaderDragging,r,e]),M=m.useCallback((R,h)=>{h.preventDefault(),h.stopPropagation()},[]),V=m.useCallback((R,h)=>{const z=p3(e);if(!z)return;r.debug(`Dragging over col ${R.field}`),h.preventDefault(),h.stopPropagation();const f={x:h.clientX,y:h.clientY};if(R.field!==z&&yH(n.current,f)){const Z=e.current.getColumnIndex(R.field,!1),g=e.current.getColumnIndex(R.field,!0),p=e.current.getColumn(R.field),F=e.current.getColumnIndex(z,!1),x=e.current.getVisibleColumns(),q=e.current.getAllColumns(),v=gH(n.current,f),S=v===q3&&(I?F<Z:Z<F),b=v===A3&&(I?Z<F:F<Z);if(S||b){let A,j=0;if(p.disableReorder?S?A=g>0&&!x[g-1].disableReorder:A=g<x.length-1&&!x[g+1].disableReorder:A=!0,l.current[Z]){let K,Y=Z+j;if(S)for(K=g>0?x[g-1].field:null;Y>0&&q[Y].field!==K&&l.current[Y];)j-=1,Y=Z+j;else for(K=g+1<x.length?x[g+1].field:null;Y<q.length-1&&q[Y].field!==K&&l.current[Y];)j+=1,Y=Z+j;(l.current[Y]||q[Y].field===K)&&(A=!1)}e.current.unstable_applyPipeProcessors("canBeReordered",A,{targetIndex:g})&&e.current.setColumnIndex(z,Z+j)}n.current=f}},[e,r,I]);Me(e,"columnHeaderDragStart",d),Me(e,"columnHeaderDragEnter",M),Me(e,"columnHeaderDragOver",V),Me(e,"columnHeaderDragEndNative",E),Me(e,"cellDragEnter",M),Me(e,"cellDragOver",V),at(e,"columnOrderChange",t.onColumnOrderChange)},g3=y({},Jr,{type:"custom",sortable:!1,filterable:!1,disableColumnMenu:!0,disableReorder:!0,align:"left",width:200,valueGetter:(e,t,r,o)=>{const n=Vi(o,t),s=ur(o,n);return s?.type==="group"||s?.type==="leaf"?s.groupingKey:void 0}}),eI={field:DE,editable:!1,groupable:!1},KH=(e,t)=>{const r=m.useCallback((o,n)=>{if(e.current.getCellParams(o.id,o.field).colDef.field===DE&&(n.key===" "||n.key==="Enter")&&!n.shiftKey){if(o.rowNode.type!=="group")return;if(t.dataSource&&!o.rowNode.childrenExpanded){e.current.dataSource.fetchRows(o.id);return}e.current.setRowChildrenExpansion(o.id,!o.rowNode.childrenExpanded)}},[e,t.dataSource]);Me(e,"cellKeyDown",r)};let Rr=function(e){return e.Default="tree-data",e.DataSource="tree-data-source",e}({});const bH=e=>{const{apiRef:t,rowTree:r,disableChildrenFiltering:o,isRowMatchingFilters:n}=e,s={},l={},a={},c={},u={passingFilterItems:null,passingQuickFilterValues:null},I=(d,M,V)=>{const R=o&&d.depth>0;let h;if(R)h=null;else if(!n||d.type==="footer")h=!0;else{const g=t.current.getRow(d.id);n(g,void 0,u),h=nZ([u.passingFilterItems],[u.passingQuickFilterValues],e.filterModel,e.apiRef,c)}let z=0,f=0;d.type==="group"&&d.children.forEach(g=>{const p=r[g],F=I(p,h??M,V&&!!d.childrenExpanded);f+=F,F>0&&(z+=1)});let Z;switch(h){case!0:{Z=!0;break}case!1:{Z=f>0;break}default:{Z=M;break}}return Z||(s[d.id]=!1),Z?(l[d.id]=z,a[d.id]=f,d.type==="footer"?f:f+1):0},E=Object.values(r);for(let d=0;d<E.length;d+=1){const M=E[d];M.depth===0&&I(M,!0,!0)}return{filteredRowsLookup:s,filteredChildrenCountLookup:l,filteredDescendantCountLookup:a}},Tr=fe,FM=je,YH=e=>{const{classes:t}=e;return ki({root:["treeDataGroupingCell"],toggle:["treeDataGroupingCellToggle"]},we,t)};function y3(e){const{id:t,field:r,formattedValue:o,rowNode:n,hideDescendantCount:s,offsetMultiplier:l=2}=e,a=Tr(),c=FM(),u=YH(a),E=re(c,Xj)[n.id]??0,d=n.childrenExpanded?a.slots.treeDataCollapseIcon:a.slots.treeDataExpandIcon,M=V=>{c.current.setRowChildrenExpansion(t,!n.childrenExpanded),c.current.setCellFocus(t,r),V.stopPropagation()};return C.jsxs("div",{className:u.root,style:{marginLeft:Ve.spacing(n.depth*l)},children:[C.jsx("div",{className:u.toggle,children:E>0&&C.jsx(a.slots.baseIconButton,y({size:"small",onClick:M,tabIndex:-1,"aria-label":n.childrenExpanded?c.current.getLocaleText("treeDataCollapse"):c.current.getLocaleText("treeDataExpand")},a?.slotProps?.baseIconButton,{children:C.jsx(d,{fontSize:"inherit"})}))}),C.jsxs("span",{children:[o===void 0?n.groupingKey:o,!s&&E>0?` (${E})`:""]})]})}process.env.NODE_ENV!=="production"&&(y3.propTypes={api:i.object.isRequired,cellMode:i.oneOf(["edit","view"]).isRequired,colDef:i.object.isRequired,field:i.string.isRequired,focusElementRef:i.oneOfType([i.func,i.shape({current:i.shape({focus:i.func.isRequired})})]),formattedValue:i.any,hasFocus:i.bool.isRequired,hideDescendantCount:i.bool,id:i.oneOfType([i.number,i.string]).isRequired,isEditable:i.bool,offsetMultiplier:i.number,row:i.any.isRequired,rowNode:i.object.isRequired,tabIndex:i.oneOf([-1,0]).isRequired,value:i.any});function v3(e){const{colDef:t,onClick:r}=e,o=FM(),n=Tr(),s=$t(),l=m.useCallback(E=>d=>{o.current.pinColumn(t.field,E),r(d)},[o,t.field,r]),a=E=>{o.current.unpinColumn(t.field),r(E)},c=C.jsx(n.slots.baseMenuItem,{onClick:l(ir.LEFT),iconStart:C.jsx(n.slots.columnMenuPinLeftIcon,{fontSize:"small"}),children:o.current.getLocaleText("pinToLeft")}),u=C.jsx(n.slots.baseMenuItem,{onClick:l(ir.RIGHT),iconStart:C.jsx(n.slots.columnMenuPinRightIcon,{fontSize:"small"}),children:o.current.getLocaleText("pinToRight")});if(!t)return null;const I=o.current.isColumnPinned(t.field);if(I){const E=I===ir.RIGHT?ir.LEFT:ir.RIGHT,d=E===ir.RIGHT?"pinToRight":"pinToLeft",M=I===ir.RIGHT?n.slots.columnMenuPinLeftIcon:n.slots.columnMenuPinRightIcon;return C.jsxs(m.Fragment,{children:[C.jsx(n.slots.baseMenuItem,{onClick:l(E),iconStart:C.jsx(M,{fontSize:"small"}),children:o.current.getLocaleText(d)}),C.jsx(n.slots.baseMenuItem,{onClick:a,iconStart:"",children:o.current.getLocaleText("unpin")})]})}return s?C.jsxs(m.Fragment,{children:[u,c]}):C.jsxs(m.Fragment,{children:[c,u]})}process.env.NODE_ENV!=="production"&&(v3.propTypes={colDef:i.object.isRequired,onClick:i.func.isRequired});const xM=Vt(e=>e.detailPanel),Lo=qe(xM,e=>e.expandedRowIds),KM=qe(xM,e=>e.contentCache),bM=lt(xM,e=>e.heightCache),SH=e=>{const{classes:t,isExpanded:r}=e;return ki({root:["detailPanelToggleCell",r&&"detailPanelToggleCell--expanded"]},we,t)},WH=qe(Lo,(e,t)=>e.has(t));function F3(e){const{id:t,row:r,api:o}=e,n=o.getRowId(r),s=re({current:o},WH,n),l=Tr(),a=FM(),c={classes:l.classes,isExpanded:s},u=SH(c),I=re(a,KM),E=m.isValidElement(I[t]),d=s?l.slots.detailPanelCollapseIcon:l.slots.detailPanelExpandIcon;return C.jsx(l.slots.baseIconButton,y({size:"small",tabIndex:-1,disabled:!E,className:u.root,"aria-expanded":s,"aria-label":s?a.current.getLocaleText("collapseDetailPanel"):a.current.getLocaleText("expandDetailPanel")},l.slotProps?.baseIconButton,{children:C.jsx(d,{fontSize:"inherit"})}))}process.env.NODE_ENV!=="production"&&(F3.propTypes={api:i.object.isRequired,cellMode:i.oneOf(["edit","view"]).isRequired,colDef:i.object.isRequired,field:i.string.isRequired,focusElementRef:i.oneOfType([i.func,i.shape({current:i.shape({focus:i.func.isRequired})})]),formattedValue:i.any,hasFocus:i.bool.isRequired,id:i.oneOfType([i.number,i.string]).isRequired,isEditable:i.bool,row:i.any.isRequired,rowNode:i.object.isRequired,tabIndex:i.oneOf([-1,0]).isRequired,value:i.any});const kH=e=>{const{isDraggable:t,classes:r}=e;return ki({root:["rowReorderCell",t&&"rowReorderCell--draggable"],placeholder:["rowReorderCellPlaceholder"],icon:["rowReorderIcon"]},we,r)},jH=ot("svg",{name:"MuiDataGrid",slot:"RowReorderIcon"})({color:Ve.colors.foreground.muted});function x3(e){const t=je(),r=Tr(),o=re(t,lr),n=re(t,Uo),s=re(t,Nt),l=e.row.__reorder__||e.id,a=m.useRef(null),c=m.useRef(null),u=m.useMemo(()=>!!r.rowReordering&&!o.length&&n===1&&Object.keys(s).length===0,[r.rowReordering,o,n,s]),I={isDraggable:u,classes:r.classes},E=kH(I),d=m.useCallback((f,Z)=>g=>{Ps(g)||t.current.getRow(e.id)&&(t.current.publishEvent(f,t.current.getRowParams(e.id),g),Z&&Z(g))},[t,e.id]),M=m.useCallback(()=>{t.current.rootElementRef?.current?.classList.add(w["root--disableUserSelection"])},[t]),V=m.useCallback(()=>{t.current.rootElementRef?.current?.classList.remove(w["root--disableUserSelection"])},[t]),R=m.useCallback(f=>{V(),t.current.getRow(e.id)&&t.current.publishEvent("rowDragEnd",t.current.getRowParams(e.id),f),c.current.removeEventListener("dragend",R),c.current=null},[t,e.id,V]),h=m.useCallback(f=>{a.current&&(d("rowDragStart")(f),a.current.addEventListener("dragend",R),c.current=a.current)},[d,R]),z=u?{onDragStart:h,onDragOver:d("rowDragOver"),onMouseDown:M,onMouseUp:V}:null;return e.rowNode.type==="footer"?null:C.jsxs("div",y({ref:a,className:E.root,draggable:u},z,{children:[C.jsx(jH,{as:r.slots.rowReorderIcon,ownerState:I,className:E.icon,fontSize:"small"}),C.jsx("div",{className:E.placeholder,children:l})]}))}process.env.NODE_ENV!=="production"&&(x3.propTypes={api:i.object.isRequired,cellMode:i.oneOf(["edit","view"]).isRequired,colDef:i.object.isRequired,field:i.string.isRequired,focusElementRef:i.oneOfType([i.func,i.shape({current:i.shape({focus:i.func.isRequired})})]),formattedValue:i.any,hasFocus:i.bool.isRequired,id:i.oneOfType([i.number,i.string]).isRequired,isEditable:i.bool,row:i.any.isRequired,rowNode:i.object.isRequired,tabIndex:i.oneOf([-1,0]).isRequired,value:i.any});const K3=e=>e.rowNode.type==="footer"||e.rowNode.type==="pinnedRow"?null:C.jsx(x3,y({},e));process.env.NODE_ENV!=="production"&&(K3.displayName="renderRowReorderCell");const UH=Ct(C.jsx("g",{transform:"rotate(-30 15 10)",children:C.jsx("path",{d:"M16,9V4l1,0c0.55,0,1-0.45,1-1v0c0-0.55-0.45-1-1-1H7C6.45,2,6,2.45,6,3v0 c0,0.55,0.45,1,1,1l1,0v5c0,1.66-1.34,3-3,3h0v2h5.97v7l1,1l1-1v-7H19v-2h0C17.34,12,16,10.66,16,9z",fillRule:"evenodd"})}),"PushPinRight"),QH=Ct(C.jsx("g",{transform:"rotate(30 8 12)",children:C.jsx("path",{d:"M16,9V4l1,0c0.55,0,1-0.45,1-1v0c0-0.55-0.45-1-1-1H7C6.45,2,6,2.45,6,3v0 c0,0.55,0.45,1,1,1l1,0v5c0,1.66-1.34,3-3,3h0v2h5.97v7l1,1l1-1v-7H19v-2h0C17.34,12,16,10.66,16,9z",fillRule:"evenodd"})}),"PushPinLeft"),JH=i.oneOfType([i.func,i.object]);let b3=0;function PH(e){const[t,r]=m.useState(e),o=t;return m.useEffect(()=>{t==null&&(b3+=1,r(`mui-${b3}`))},[t]),o}const Y3={...m}.useId;function S3(e){return Y3!==void 0?Y3():PH(e)}const wH=["operators","item","field","buttonRef","headerFilterMenuRef","disabled","showClearItem","clearFilterItem"];function W3(e){const{operators:t,item:r,field:o,buttonRef:n,headerFilterMenuRef:s,disabled:l=!1,showClearItem:a,clearFilterItem:c}=e,u=Ie(e,wH),I=S3(),E=S3(),d=Tr(),M=je(),R=!!(re(M,ud)===o&&s.current),h=Z=>{s.current=Z.currentTarget,M.current.showHeaderFilterMenu(o)};if(!d.slots.headerFilterMenu)return null;const z=M.current.getLocaleText("filterPanelOperator"),f=z?String(z):void 0;return C.jsxs(m.Fragment,{children:[C.jsx(d.slots.baseIconButton,y({id:I,ref:n,"aria-label":f,title:f,"aria-controls":E,"aria-expanded":R?"true":void 0,"aria-haspopup":"true",tabIndex:-1,size:"small",onClick:h,disabled:l},d.slotProps?.baseIconButton,{children:C.jsx(d.slots.baseBadge,{color:"primary",variant:"dot",badgeContent:a?1:0,children:C.jsx(d.slots.openFilterButtonIcon,{fontSize:"inherit"})})})),C.jsx(d.slots.headerFilterMenu,y({field:o,open:R,item:r,target:s.current,operators:t,labelledBy:I,id:E,clearFilterItem:c,showClearItem:a},u))]})}process.env.NODE_ENV!=="production"&&(W3.propTypes={applyFilterChanges:i.func.isRequired,buttonRef:JH,clearFilterItem:i.func,disabled:i.bool,field:i.string.isRequired,headerFilterMenuRef:i.shape({current:i.object}).isRequired,item:i.shape({field:i.string.isRequired,id:i.oneOfType([i.number,i.string]),operator:i.string.isRequired,value:i.any}).isRequired,operators:i.arrayOf(i.shape({getApplyFilterFn:i.func.isRequired,getValueAsString:i.func,headerLabel:i.string,InputComponent:i.elementType,InputComponentProps:i.shape({apiRef:i.shape({current:i.object.isRequired}),applyValue:i.func,className:i.string,clearButton:i.node,disabled:i.bool,focusElementRef:i.oneOfType([i.func,i.shape({current:i.any.isRequired})]),headerFilterMenu:i.node,inputRef:i.oneOfType([i.func,i.shape({current:(e,t)=>e[t]==null?null:typeof e[t]!="object"||e[t].nodeType!==1?new Error(`Expected prop '${t}' to be of type Element`):null})]),isFilterActive:i.bool,item:i.shape({field:i.string.isRequired,id:i.oneOfType([i.number,i.string]),operator:i.string.isRequired,value:i.any}),onBlur:i.func,onFocus:i.func,slotProps:i.object,tabIndex:i.number}),label:i.string,requiresFilterValue:i.bool,value:i.string.isRequired})).isRequired,showClearItem:i.bool});function TH(...e){const t=m.useRef(void 0),r=m.useCallback(o=>{const n=e.map(s=>{if(s==null)return null;if(typeof s=="function"){const l=s,a=l(o);return typeof a=="function"?a:()=>{l(null)}}return s.current=o,()=>{s.current=null}});return()=>{n.forEach(s=>s?.())}},e);return m.useMemo(()=>e.every(o=>o==null)?null:o=>{t.current&&(t.current(),t.current=void 0),o!=null&&(t.current=r(o))},e)}function GH(e,...t){const r=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(o=>r.searchParams.append("args[]",o)),`Minified MUI error #${e}; visit ${r} for the full message.`}function YM(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":GH(7));return e.charAt(0).toUpperCase()+e.slice(1)}function OH(e){const t=Tr();return C.jsx(t.slots.baseIconButton,y({tabIndex:-1,"aria-label":"Clear filter",size:"small"},t.slotProps?.baseIconButton,e,{children:C.jsx(t.slots.columnMenuClearIcon,{fontSize:"inherit"})}))}const HH=["colIndex","height","hasFocus","width","headerClassName","colDef","item","headerFilterMenuRef","InputComponentProps","showClearIcon","pinnedPosition","pinnedOffset","style","showLeftBorder","showRightBorder"],BH=ee(qr,{name:"MuiDataGrid",slot:"ColumnHeaderFilterInput"})({flex:1,marginRight:Ve.spacing(.5),marginBottom:Ve.spacing(-.25),'& input[type="number"], & input[type="date"], & input[type="datetime-local"]':{'&[value=""]:not(:focus)':{color:"transparent"}},[`& .${nr.input}`]:{fontSize:"14px"},[`.${w["root--densityCompact"]} & .${nr.input}`]:{paddingTop:Ve.spacing(.5),paddingBottom:Ve.spacing(.5),height:23}}),LH=ee("span",{name:"MuiDataGrid",slot:"ColumnHeaderFilterOperatorLabel"})({flex:1,marginRight:Ve.spacing(.5),color:Ve.colors.foreground.muted,whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"}),XH=e=>{const{colDef:t,classes:r,showRightBorder:o,showLeftBorder:n,pinnedPosition:s}=e,l={root:["columnHeader","columnHeader--filter",t.headerAlign==="left"&&"columnHeader--alignLeft",t.headerAlign==="center"&&"columnHeader--alignCenter",t.headerAlign==="right"&&"columnHeader--alignRight","withBorderColor",o&&"columnHeader--withRightBorder",n&&"columnHeader--withLeftBorder",s===$e.LEFT&&"columnHeader--pinnedLeft",s===$e.RIGHT&&"columnHeader--pinnedRight"],input:["columnHeaderFilterInput"],operatorLabel:["columnHeaderFilterOperatorLabel"]};return ki(l,we,r)},NH={string:qr,number:qr,date:Vo,dateTime:Vo,boolean:$E,singleSelect:Su,actions:null,custom:null},SM=Ke((e,t)=>{const{colIndex:r,height:o,hasFocus:n,width:s,headerClassName:l,colDef:a,item:c,headerFilterMenuRef:u,InputComponentProps:I,showClearIcon:E=!1,pinnedPosition:d,pinnedOffset:M,style:V,showLeftBorder:R,showRightBorder:h}=e,z=Ie(e,HH),f=Mr(),Z=$t(),g=re(f,qn),p=Tr(),F=m.useRef(null),x=TH(t,F),q=m.useRef(null),v=m.useRef(null),b=re(f,HZ)===a.field,j=re(f,ud)===a.field,k=m.useMemo(()=>a.filterOperators?a.filterOperators.filter(oe=>oe.value!=="isAnyOf"):[],[a.filterOperators]),K=re(f,bt),Y=re(f,_f),Q=m.useMemo(()=>{if(!K?.items.length)return!1;const oe=K.items.find(de=>de.field===a.field);return oe?!Y[oe.field]:!1},[a.field,K,Y]),P=m.useMemo(()=>k.find(oe=>oe.value===c.operator)??k[0],[c.operator,k]),J=a.filterable||Q?P.InputComponent??NH[a.type]:null,W=m.useCallback(()=>{f.current.deleteFilterItem(c)},[f,c]);let U;a.renderHeaderFilter&&(U=a.renderHeaderFilter(y({},e,{inputRef:q}))),m.useLayoutEffect(()=>{if(n&&!j){let oe=F.current.querySelector('[tabindex="0"]');b&&J&&(oe=q.current),(oe||F.current)?.focus(),f.current.columnHeadersContainerRef.current&&(f.current.columnHeadersContainerRef.current.scrollLeft=0)}},[J,f,n,b,j]);const T=m.useCallback(oe=>{if(!(j||sa(oe.key)||Q))switch(oe.key){case"Escape":b&&f.current.stopHeaderFilterEditMode();break;case"Enter":if(b&&!oe.defaultPrevented){f.current.stopHeaderFilterEditMode();break}if(oe.metaKey||oe.ctrlKey){u.current=v.current,f.current.showHeaderFilterMenu(a.field);break}f.current.startHeaderFilterEditMode(a.field);break;case"Tab":{if(b){const de=g[r+(oe.shiftKey?-1:1)]??null;de&&(f.current.startHeaderFilterEditMode(de),f.current.setColumnHeaderFilterFocus(de,oe))}break}default:if(b||oe.metaKey||oe.ctrlKey||oe.altKey||oe.shiftKey)break;f.current.startHeaderFilterEditMode(a.field);break}},[f,a.field,r,g,u,b,Q,j]),O=m.useCallback((oe,de)=>$=>{f.current.publishEvent(oe,f.current.getColumnHeaderParams(a.field),$),de&&de($)},[f,a.field]),G=m.useCallback(oe=>{n||(q.current?.contains?.(oe.target)&&q.current.focus(),f.current.setColumnHeaderFilterFocus(a.field,oe))},[f,a.field,n]),H=m.useMemo(()=>({onKeyDown:O("headerFilterKeyDown",T),onClick:O("headerFilterClick"),onMouseDown:O("headerFilterMouseDown",G),onBlur:O("headerFilterBlur")}),[G,T,O]),B=y({},p,{pinnedPosition:d,colDef:a,showLeftBorder:R,showRightBorder:h}),N=XH(B),te=P.headerLabel??f.current.getLocaleText(`headerFilterOperator${YM(c.operator)}`),D=P.requiresFilterValue===!1,X=c?.value!==void 0||D,ie=X||n,L=C.jsx(W3,{operators:k,item:c,field:a.field,disabled:Q,applyFilterChanges:f.current.upsertFilterItem,headerFilterMenuRef:u,buttonRef:v,showClearItem:!E&&X,clearFilterItem:W}),se=E&&X?C.jsx(OH,{onClick:W,disabled:Q}):null;return C.jsxs("div",y({className:me(N.root,l),style:Ra(y({height:o,width:s},V),Z,d,M),role:"columnheader","aria-colindex":r+1,"aria-label":U==null?a.headerName??a.field:void 0},z,H,{ref:x,children:[U,U===void 0?C.jsxs(m.Fragment,{children:[D?C.jsxs(m.Fragment,{children:[C.jsx(LH,{className:N.operatorLabel,children:te}),se,L]}):null,J&&!D?C.jsx(BH,y({as:J,className:N.input,apiRef:f,item:c,inputRef:q,applyValue:f.current.upsertFilterItem,onFocus:()=>f.current.startHeaderFilterEditMode(a.field),onBlur:oe=>{f.current.stopHeaderFilterEditMode(),oe.relatedTarget?.className.includes("columnHeader")||f.current.setState(de=>y({},de,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))},isFilterActive:ie,headerFilterMenu:L,clearButton:se,disabled:Q||D,tabIndex:-1,slotProps:{root:{size:"small",label:YM(te),placeholder:""}}},D?{value:""}:{},P?.InputComponentProps,I)):null]}):null]}))});process.env.NODE_ENV!=="production"&&(SM.displayName="GridHeaderFilterCell"),process.env.NODE_ENV!=="production"&&(SM.propTypes={colDef:i.object.isRequired,colIndex:i.number.isRequired,hasFocus:i.bool,headerClassName:i.oneOfType([i.func,i.string]),headerFilterMenuRef:i.shape({current:i.object}).isRequired,height:i.number.isRequired,InputComponentProps:i.shape({apiRef:i.shape({current:i.object.isRequired}),applyValue:i.func,className:i.string,clearButton:i.node,disabled:i.bool,focusElementRef:i.oneOfType([i.func,i.shape({current:i.any.isRequired})]),headerFilterMenu:i.node,inputRef:i.oneOfType([i.func,i.shape({current:(e,t)=>e[t]==null?null:typeof e[t]!="object"||e[t].nodeType!==1?new Error(`Expected prop '${t}' to be of type Element`):null})]),isFilterActive:i.bool,item:i.shape({field:i.string.isRequired,id:i.oneOfType([i.number,i.string]),operator:i.string.isRequired,value:i.any}),onBlur:i.func,onFocus:i.func,slotProps:i.object,tabIndex:i.number}),item:i.shape({field:i.string.isRequired,id:i.oneOfType([i.number,i.string]),operator:i.string.isRequired,value:i.any}).isRequired,pinnedOffset:i.number,pinnedPosition:i.oneOf([0,1,2,3]),showClearIcon:i.bool,showLeftBorder:i.bool.isRequired,showRightBorder:i.bool.isRequired,sortIndex:i.number,style:i.object,tabIndex:i.oneOf([-1,0]).isRequired,width:i.number.isRequired});const DH=vi(SM);function $H(e,t,r,o,n){if(process.env.NODE_ENV==="production")return null;const s=e[t],l=n||t;return s==null?null:s&&s.nodeType!==1?new Error(`Invalid ${o} \`${l}\` supplied to \`${r}\`. Expected an HTMLElement.`):null}function k3({open:e,field:t,target:r,applyFilterChanges:o,operators:n,item:s,id:l,labelledBy:a,showClearItem:c,clearFilterItem:u}){const I=je(),E=fe(),d=m.useCallback(()=>{I.current.hideHeaderFilterMenu()},[I]);return r?C.jsx(ps,{position:"bottom-end",open:e,target:r,onClose:d,children:C.jsxs(E.slots.baseMenuList,{"aria-labelledby":a,id:l,children:[c&&[C.jsx(E.slots.baseMenuItem,{iconStart:C.jsx(E.slots.columnMenuClearIcon,{fontSize:"small"}),onClick:()=>{u(),d()},children:I.current.getLocaleText("headerFilterClear")},"filter-menu-clear-filter"),C.jsx(E.slots.baseDivider,{},"filter-menu-divider")],n.map(M=>{const V=M.value===s.operator,R=M?.headerLabel??I.current.getLocaleText(`headerFilterOperator${YM(M.value)}`);return C.jsx(E.slots.baseMenuItem,{iconStart:V?C.jsx(E.slots.menuItemCheckIcon,{fontSize:"small"}):C.jsx("span",{}),onClick:()=>{o(y({},s,{operator:M.value})),d()},autoFocus:V?e:!1,children:R},`${t}-${M.value}`)})]})}):null}process.env.NODE_ENV!=="production"&&(k3.propTypes={applyFilterChanges:i.func.isRequired,clearFilterItem:i.func.isRequired,field:i.string.isRequired,id:i.string,item:i.shape({field:i.string.isRequired,id:i.oneOfType([i.number,i.string]),operator:i.string.isRequired,value:i.any}).isRequired,labelledBy:i.string,open:i.bool.isRequired,operators:i.arrayOf(i.shape({getApplyFilterFn:i.func.isRequired,getValueAsString:i.func,headerLabel:i.string,InputComponent:i.elementType,InputComponentProps:i.shape({apiRef:i.shape({current:i.object.isRequired}),applyValue:i.func,className:i.string,clearButton:i.node,disabled:i.bool,focusElementRef:i.oneOfType([i.func,i.shape({current:i.any.isRequired})]),headerFilterMenu:i.node,inputRef:i.oneOfType([i.func,i.shape({current:(e,t)=>e[t]==null?null:typeof e[t]!="object"||e[t].nodeType!==1?new Error(`Expected prop '${t}' to be of type Element`):null})]),isFilterActive:i.bool,item:i.shape({field:i.string.isRequired,id:i.oneOfType([i.number,i.string]),operator:i.string.isRequired,value:i.any}),onBlur:i.func,onFocus:i.func,slotProps:i.object,tabIndex:i.number}),label:i.string,requiresFilterValue:i.bool,value:i.string.isRequired})).isRequired,showClearItem:i.bool.isRequired,target:$H});const j3=e=>`auto-generated-row-${e.map(r=>`${r.field}/${r.key}`).join("-")}`,U3=({id:e,tree:t})=>{const r=[];let o=t[e];for(;o.id!==De;)r.push({field:o.type==="leaf"?null:o.groupingField,key:o.groupingKey}),o=t[o.parent];return r.reverse(),r},Q3=(e,t,r)=>{let o;return e.id===De?o=!0:r?o=r(e):o=t===-1||t>e.depth,o},J3=(e,t,r)=>{const o=Q3(e,t,r);return e.childrenExpanded=o,e},tI=(e,t,r,o)=>{t[e.id]=e,r[e.depth]=(r[e.depth]??0)+1;const n=t[e.parent];if(e.type==="group"||e.type==="leaf"){const s=e.groupingField??"__no_field__",l=e.groupingKey??"__no_key__",a=n.childrenFromPath?.[s];o!==null&&o[n.id]===t[n.id]?n.children=[...n.children,e.id]:n.children.push(e.id),a==null?n.childrenFromPath[s]={[l.toString()]:e.id}:a[l.toString()]=e.id}else e.type==="footer"&&(n.footerId=e.id)},WM=({node:e,tree:t,treeDepths:r})=>{delete t[e.id];const o=e.depth,n=r[o];n===1?delete r[o]:r[o]=n-1;const s=t[e.parent];if(e.type==="footer")t[s.id]=y({},s,{footerId:null});else{const l=e.groupingField??"__no_field__",a=e.groupingKey??"__no_key__",c=s.children.filter(I=>I!==e.id),u=s.childrenFromPath;delete u[l][a.toString()],t[s.id]=y({},s,{children:c,childrenFromPath:u})}},P3=({node:e,updatedNode:t,previousTree:r,tree:o,treeDepths:n})=>{e.children.forEach(l=>{o[l]=y({},o[l],{parent:t.id})}),WM({node:e,tree:o,treeDepths:n});const s=y({},e,t);tI(s,o,n,r)},_H=()=>({value:{},addAction(e,t){this.value[e]||(this.value[e]={}),this.value[e][t]=!0}}),w3=({tree:e,filteredRowsLookup:t})=>{if(!t)return{};const r={},o=(s,l)=>{const a=t[s.id]!==!1;s.type==="group"&&s.children.forEach(u=>{const I=e[u];o(I,l&&!!s.childrenExpanded)});const c=a&&l;if(c||(r[s.id]=c),s.type==="group"&&s.footerId!=null){const u=a&&l&&!!s.childrenExpanded;u||(r[s.footerId]=u)}},n=Object.values(e);for(let s=0;s<n.length;s+=1){const l=n[s];l.depth===0&&o(l,!0)}return r},kM=({id:e,path:t,updatedGroupsManager:r,previousTree:o,tree:n,treeDepths:s,onDuplicatePath:l,isGroupExpandedByDefault:a,defaultGroupingExpansionDepth:c,serverChildrenCount:u,groupsToFetch:I})=>{let E=De;for(let d=0;d<t.length;d+=1){const{key:M,field:V}=t[d],R=V??"__no_field__",h=M??"__no_key__",z=n[E].childrenFromPath?.[R]?.[h.toString()];if(d===t.length-1)if(z==null){let f;u!==void 0&&u!==0?(f={type:"group",id:e,parent:E,path:t.map(g=>g.key),depth:d,isAutoGenerated:!1,groupingKey:M,groupingField:V,children:[],childrenFromPath:{},childrenExpanded:!1,serverChildrenCount:u},Q3(f,c,a)&&I?.add(e)):f={type:"leaf",id:e,depth:d,parent:E,groupingKey:M},r?.addAction(E,"insertChildren"),tI(f,n,s,o)}else{const f=n[z];f.type==="group"&&f.isAutoGenerated?(r?.addAction(E,"removeChildren"),r?.addAction(E,"insertChildren"),P3({tree:n,previousTree:o,treeDepths:s,node:f,updatedNode:{id:e,isAutoGenerated:!1}})):l?.(z,e,t)}else if(z==null){const f=j3(t.slice(0,d+1)),Z={type:"group",id:f,parent:E,depth:d,isAutoGenerated:!0,groupingKey:M,groupingField:V,children:[],childrenFromPath:{},childrenExpanded:!1};r?.addAction(E,"insertChildren"),tI(J3(Z,c,a),n,s,o),E=f}else{const f=n[z];if(f.type!=="group"){const Z={type:"group",id:f.id,parent:f.parent,depth:f.depth,isAutoGenerated:!1,groupingKey:M,groupingField:V,children:[],childrenFromPath:{},childrenExpanded:!1};n[z]=J3(Z,c,a)}E=f.id}}},T3=e=>{const t=[],r={[De]:Ef()},o={},n=new Set;for(let s=0;s<e.nodes.length;s+=1){const l=e.nodes[s];t.push(l.id),kM({tree:r,previousTree:e.previousTree,id:l.id,path:l.path,serverChildrenCount:l.serverChildrenCount,onDuplicatePath:e.onDuplicatePath,treeDepths:o,isGroupExpandedByDefault:e.isGroupExpandedByDefault,defaultGroupingExpansionDepth:e.defaultGroupingExpansionDepth,groupsToFetch:n})}return{tree:r,treeDepths:o,groupingName:e.groupingName,dataRowIds:t,groupsToFetch:Array.from(n)}};let G3=class{constructor(t,r){this.next=void 0,this.data=void 0,this.next=r,this.data=t}insertAfter(t){if(!t.first||!t.last)return;const r=this.next;this.next=t.first,t.last.next=r}};class Fa{constructor(t,r){this.first=void 0,this.last=void 0,this.first=t,this.last=r}data(){const t=[];return this.forEach(r=>{t.push(r.data)}),t}forEach(t){let r=this.first;for(;r!==null;)t(r),r=r.next}static from(t){if(t.length===0)return new Fa(null,null);let r=0;const o=new G3(t[r],null);let n=o;for(;r+1<t.length;){r+=1;const s=new G3(t[r],null);n.next=s,n=s}return new Fa(o,n)}}const eB=e=>{const{rowTree:t,disableChildrenSorting:r,sortRowList:o}=e,n=new Map,s=a=>{const c=!!o&&(!r||a.depth===-1);let u;if(c){for(let I=0;I<a.children.length;I+=1){const E=t[a.children[I]];E.type==="group"&&s(E)}u=o(a.children.map(I=>t[I]))}else{for(let I=0;I<a.children.length;I+=1){const E=t[a.children[I]];E.type==="group"&&s(E)}u=[...a.children]}a.footerId!=null&&u.push(a.footerId),n.set(a.id,u)};s(t[De]);const l=Fa.from(n.get(De));return l.forEach(a=>{const c=n.get(a.data);c?.length&&a.insertAfter(Fa.from(c))}),l.data()},tB=["getColumnsToRender","getPinnedCellOffset","renderContext","leftRenderContext","rightRenderContext","pinnedColumns","visibleColumns","columnPositions"],rB=e=>{const{classes:t}=e;return m.useMemo(()=>ki({headerFilterRow:["headerFilterRow"]},we,t),[t])},iB=e=>{const t=Mr(),{headerGroupingMaxDepth:r,hasOtherElementInTabSequence:o}=e,n=re(t,lU),s=z3(y({},e,{hasOtherElementInTabSequence:o||n!==null})),{getColumnsToRender:l,getPinnedCellOffset:a,renderContext:c,leftRenderContext:u,rightRenderContext:I,pinnedColumns:E,visibleColumns:d,columnPositions:M}=s,V=Ie(s,tB),R=m.useRef(null);t.current.register("private",{headerFiltersElementRef:R});const h=m.useRef(null),z=Tr(),f=rB(z),Z=!z.headerFilters,g=re(t,bt),p=re(t,ea),F=re(t,kE),x=re(t,Zk),q=re(t,jE),v=re(t,sU),S=m.useRef(Object.create(null)).current,b=m.useCallback(k=>{const K=g?.items.find(P=>P.field===k.field&&P.operator!=="isAnyOf");if(K!=null)return K;const Y=S[k.field];if(Y!=null)return Y;const Q=Ud(k);return S[k.field]=Q,Q},[g]),A=k=>{const{renderedColumns:K,firstColumnToRender:Y}=l(k),Q=[];for(let P=0;P<K.length;P+=1){const J=K[P],W=Y+P,U=v?.field===J.field,T=W===0,G=n?.field===J.field||T&&!e.hasOtherElementInTabSequence?0:-1,H=typeof J.headerClassName=="function"?J.headerClassName({field:J.field,colDef:J}):J.headerClassName,B=b(J),N=k?.position,te=a(N,J.computedWidth,W,M,p,q),D=P,X=K.length,ie=Ca(N,D),L=za(N,D,X,z.showColumnVerticalBorder,F);Q.push(C.jsx(z.slots.headerFilterCell,y({colIndex:W,height:x,width:J.computedWidth,colDef:J,hasFocus:U,tabIndex:G,headerFilterMenuRef:h,headerClassName:H,"data-field":J.field,item:B,pinnedPosition:N,pinnedOffset:te,showLeftBorder:ie,showRightBorder:L},z.slotProps?.headerFilterCell),`${J.field}-filter`))}return V.getFillers(k,Q,0,!0)},j=()=>Z?null:C.jsxs(AM,{ref:R,className:f.headerFilterRow,role:"row","aria-rowindex":r+2,ownerState:z,children:[u&&A({position:$e.LEFT,renderContext:u,maxLastColumn:u.lastColumnIndex}),A({renderContext:c,maxLastColumn:d.length-E.right.length}),I&&A({position:$e.RIGHT,renderContext:I,maxLastColumn:I.lastColumnIndex})]});return process.env.NODE_ENV!=="production"&&(j.displayName="getColumnFiltersRow"),y({},V,{getColumnFiltersRow:j})},oB=["style","className","visibleColumns","sortColumnLookup","filterColumnLookup","columnHeaderTabIndexState","columnGroupHeaderTabIndexState","columnHeaderFocus","columnGroupHeaderFocus","headerGroupingMaxDepth","columnMenuState","columnVisibility","columnGroupsHeaderStructure","hasOtherElementInTabSequence"],nB=ee("div")({flex:1,backgroundColor:Ve.header.background.base}),jM=Ke(function(t,r){const{className:o,visibleColumns:n,sortColumnLookup:s,filterColumnLookup:l,columnHeaderTabIndexState:a,columnGroupHeaderTabIndexState:c,columnHeaderFocus:u,columnGroupHeaderFocus:I,headerGroupingMaxDepth:E,columnMenuState:d,columnVisibility:M,columnGroupsHeaderStructure:V,hasOtherElementInTabSequence:R}=t,h=Ie(t,oB),{getInnerProps:z,getColumnHeadersRow:f,getColumnFiltersRow:Z,getColumnGroupHeadersRows:g}=iB({visibleColumns:n,sortColumnLookup:s,filterColumnLookup:l,columnHeaderTabIndexState:a,hasOtherElementInTabSequence:R,columnGroupHeaderTabIndexState:c,columnHeaderFocus:u,columnGroupHeaderFocus:I,headerGroupingMaxDepth:E,columnMenuState:d,columnVisibility:M,columnGroupsHeaderStructure:V});return C.jsxs(gM,y({className:o},h,z(),{ref:r,children:[g(),f(),Z(),C.jsx(nB,{})]}))});process.env.NODE_ENV!=="production"&&(jM.displayName="GridColumnHeaders"),process.env.NODE_ENV!=="production"&&(jM.propTypes={columnGroupHeaderFocus:i.shape({depth:i.number.isRequired,field:i.string.isRequired}),columnGroupHeaderTabIndexState:i.shape({depth:i.number.isRequired,field:i.string.isRequired}),columnGroupsHeaderStructure:i.arrayOf(i.arrayOf(i.shape({columnFields:i.arrayOf(i.string).isRequired,groupId:i.string}))).isRequired,columnHeaderFocus:i.shape({field:i.string.isRequired}),columnHeaderTabIndexState:i.shape({field:i.string.isRequired}),columnMenuState:i.shape({field:i.string,open:i.bool.isRequired}).isRequired,columnVisibility:i.object.isRequired,filterColumnLookup:i.object.isRequired,hasOtherElementInTabSequence:i.bool.isRequired,headerGroupingMaxDepth:i.number.isRequired,sortColumnLookup:i.object.isRequired,visibleColumns:i.arrayOf(i.object).isRequired});const sB=y({},uq,{columnMenuPinningItem:v3}),lB=y({},Iq,{columnMenuPinningItem:{displayOrder:15}}),O3=Ke(function(t,r){return C.jsx(Ou,y({},t,{defaultSlots:sB,defaultSlotProps:lB,ref:r}))});process.env.NODE_ENV!=="production"&&(O3.displayName="GridProColumnMenu");const xa=Mr,aB=y({},Jr,{type:"custom",field:gr,editable:!1,sortable:!1,filterable:!1,resizable:!1,aggregable:!1,disableColumnMenu:!0,disableReorder:!0,disableExport:!0,align:"left",width:40,valueGetter:(e,t,r,o)=>{const n=Vi(o,t);return Lo(o).has(n)},rowSpanValueGetter:(e,t,r,o)=>Vi(o,t),renderCell:e=>C.jsx(F3,y({},e)),renderHeader:({colDef:e})=>C.jsx("div",{"aria-label":e.headerName})}),cB=process.env.NODE_ENV==="development"||process.env.NODE_ENV==="test",uB=()=>{};function IB(e,t,r){const o=m.useRef(null);o.current=t,DZ(()=>{if(r===!1||typeof ResizeObserver>"u")return uB;let n=0;const s=e.current,l=new ResizeObserver(a=>{cB?n=requestAnimationFrame(()=>{o.current(a)}):o.current(a)});return s&&l.observe(s),()=>{n&&cancelAnimationFrame(n),l.disconnect()}},[e,r])}const mB=ee("div",{name:"MuiDataGrid",slot:"DetailPanel"})({width:"calc(var(--DataGrid-rowWidth) - var(--DataGrid-hasScrollY) * var(--DataGrid-scrollbarSize))",backgroundColor:Ve.colors.background.base,overflow:"auto"});function EB(e){const{rowId:t,height:r,className:o,children:n}=e,s=xa(),l=m.useRef(null),c=Tr(),u=r==="auto",I=ur(s,t);return m.useLayoutEffect(()=>{u&&typeof ResizeObserver>"u"&&s.current.storeDetailPanelHeight(t,l.current.clientHeight)},[s,u,t]),IB(l,E=>{const[d]=E,M=d.borderBoxSize&&d.borderBoxSize.length>0?d.borderBoxSize[0].blockSize:d.contentRect.height;s.current.storeDetailPanelHeight(t,M)},u),I?.type==="skeletonRow"?null:C.jsx(mB,{ref:l,ownerState:c,role:"presentation",style:{height:r},className:o,children:n})}const dB=()=>ki({detailPanel:["detailPanel"]},we,{});function MB(e){return Tr().getDetailPanelContent?m.createElement(RB,e):null}function RB({virtualScroller:e}){const t=xa(),r=dB(),{setPanels:o}=e,n=re(t,Lo),s=re(t,KM),l=re(t,bM),a=m.useCallback(c=>{const u=s[c],E=t.current.getRowIndexRelativeToVisibleRows(c)!==void 0;if(!m.isValidElement(u)||!E)return null;const d=l[c],M=d.autoHeight?"auto":d.height;return C.jsx(EB,{rowId:c,height:M,className:r.detailPanel,children:u},`panel-${c}`)},[t,r.detailPanel,l,s]);return m.useEffect(()=>{const c=new Map;for(const u of n)c.set(u,a(u));o(c)},[n,o,a]),null}const hB=()=>ki({root:["pinnedRows"]},we,{});function VB({position:e,virtualScroller:t}){const r=hB(),o=Mr(),s=re(o,Rs)[e],{getRows:l}=t,a=m.useMemo(()=>({firstRowIndex:0,lastRowIndex:s.length,firstColumnIndex:-1,lastColumnIndex:-1}),[s]);if(s.length===0)return null;const c=l({position:e,rows:s,renderContext:a},Jt(o));return C.jsx("div",{className:me(r.root,w[`pinnedRows--${e}`]),role:"presentation",children:c})}const zB=y({},{columnMenuPinRightIcon:UH,columnMenuPinLeftIcon:QH}),CB=y({},MH,zB,{columnMenu:O3,columnHeaders:jM,detailPanels:MB,headerFilterCell:DH,headerFilterMenu:k3,pinnedRows:VB}),fB=()=>{const e=rG(),r=Tr().treeData?{role:"treegrid"}:{};return y({},e,r)},ZB=e=>{const t=xa(),r=Tr(),o=iG(),n=re(t,vu),s=re(t,Lj),l=re(t,Nj);return m.useCallback((a,c)=>{const u=o(a,c);if(!a||!(r.treeData||e)||a.type==="footer"||a.type==="pinnedRow")return u;u["aria-level"]=a.depth+1;const I=s[a.id]??0;return a.type==="group"&&I>0&&(u["aria-expanded"]=!!a.childrenExpanded),a.parent!==null&&(u["aria-setsize"]=a.parent===De?n:s[a.parent],u["aria-posinset"]=l[a.id]),u},[r.treeData,e,n,s,l,o])},pB=(e,t,r)=>{r.current.caches.columnPinning={orderedFieldsBeforePinningColumns:null};let o;return t.pinnedColumns?o=t.pinnedColumns:t.initialState?.pinnedColumns?o=t.initialState.pinnedColumns:o={},y({},e,{pinnedColumns:o})},qB=(e,t)=>{const r=re(e,fs),o=m.useCallback((R,h)=>{const z=Zs(e);if(!h.colIndex||z.left.length===0&&z.right.length===0)return R;const f=xt(e),Z=ea(e),g=wo(e),p=e.current.virtualScrollerRef.current.clientWidth,F=Math.abs(e.current.virtualScrollerRef.current.scrollLeft),x=f[h.colIndex].computedWidth,q=g[h.colIndex],v=g[z.left.length],S=Z-g[g.length-z.right.length],b=q+x;if(b-(p-S)>F){const A=b-(p-S);return y({},R,{left:A})}if(q<F+v){const A=q-v;return y({},R,{left:A})}return R},[e]),n=m.useCallback((R,h)=>t.disableColumnPinning||h.pinnable===!1?R:[...R,"columnMenuPinningItem"],[t.disableColumnPinning]),s=m.useCallback((R,{targetIndex:h})=>{const z=Zs(e);if(z.left.length===0&&z.right.length===0)return R;if(z.left.length>0&&h<z.left.length)return!1;if(z.right.length>0){const Z=xt(e).length-z.right.length;return h>=Z?!1:R}return R},[e]),l=m.useCallback((R,h)=>{const z=fs(e);return!h.exportOnlyDirtyModels||t.pinnedColumns!=null||t.initialState?.pinnedColumns!=null||(z.left??[]).length>0||(z.right??[]).length>0?y({},R,{pinnedColumns:z}):R},[e,t.pinnedColumns,t.initialState?.pinnedColumns]),a=m.useCallback((R,h)=>{const z=h.stateToRestore.pinnedColumns;return z!=null&&H3(e,z),R},[e]);it(e,"scrollToIndexes",o),it(e,"columnMenu",n),it(e,"canBeReordered",s),it(e,"exportState",l),it(e,"restoreState",a),e.current.registerControlState({stateId:"pinnedColumns",propModel:t.pinnedColumns,propOnChange:t.onPinnedColumnsChange,stateSelector:fs,changeEvent:"pinnedColumnsChange"});const c=m.useCallback((R,h)=>{if(e.current.isColumnPinned(R)===h)return;const z=h===ir.RIGHT?ir.LEFT:ir.RIGHT,f={[h]:[...r[h]||[],R],[z]:(r[z]||[]).filter(Z=>Z!==R)};e.current.setPinnedColumns(f)},[e,r]),u=m.useCallback(R=>{e.current.setPinnedColumns({left:(r.left||[]).filter(h=>h!==R),right:(r.right||[]).filter(h=>h!==R)})},[e,r.left,r.right]),I=m.useCallback(()=>fs(e),[e]),E=m.useCallback(R=>{H3(e,R),e.current.requestPipeProcessorsApplication("hydrateColumns")},[e]),d=m.useCallback(R=>(r.left||[]).includes(R)?ir.LEFT:(r.right||[]).includes(R)?ir.RIGHT:!1,[r.left,r.right]);Qe(e,{pinColumn:c,unpinColumn:u,getPinnedColumns:I,setPinnedColumns:E,isColumnPinned:d},"public"),Me(e,"columnOrderChange",R=>{if(!e.current.caches.columnPinning.orderedFieldsBeforePinningColumns)return;const{column:h,targetIndex:z,oldIndex:f}=R,Z=z>f?1:-1,p=Mi(e)[z-Z],F=[...e.current.caches.columnPinning.orderedFieldsBeforePinningColumns];let x=F.findIndex(S=>S===h.field),q=x+Z;const v=F.findIndex(S=>S===p);for(;Z>0?x<v:x>v;){for(;e.current.isColumnPinned(F[q]);)q+=Z;const S=F[x];F[x]=F[q],F[q]=S,x=q,q=x+Z}e.current.caches.columnPinning.orderedFieldsBeforePinningColumns=F}),m.useEffect(()=>{t.pinnedColumns&&e.current.setPinnedColumns(t.pinnedColumns)},[e,t.pinnedColumns])};function H3(e,t){e.current.setState(r=>y({},r,{pinnedColumns:t}))}const AB=(e,t)=>{const{disableColumnPinning:r}=t,o=m.useRef([]),n=m.useCallback(l=>{if(l.orderedFields.length===0||r)return l;const a=e.current.state;e.current.state=y({},a,{columns:l});const c=Rj(e);e.current.state=a;const u=c.left,I=c.right;let E;const d=[...u,...I],{orderedFieldsBeforePinningColumns:M}=e.current.caches.columnPinning;if(M){E=new Array(l.orderedFields.length).fill(null);const R=[...E],h=[...l.orderedFields];o.current.forEach(f=>{if(!d.includes(f)&&l.lookup[f]){const Z=M.indexOf(f);E[Z]=f,R[Z]=f,h.splice(h.indexOf(f),1)}}),d.forEach(f=>{let Z=M.indexOf(f);if((Z===-1||Z>=R.length)&&(Z=l.orderedFields.indexOf(f)),R[Z]!==null)for(Z=0;R[Z]!==null;)Z+=1;E[Z]=f,R[Z]=f,h.splice(h.indexOf(f),1)});let z=0;h.forEach(f=>{for(;R[z]!==null;)z+=1;R[z]=f,E[z]=f}),e.current.caches.columnPinning.orderedFieldsBeforePinningColumns=R}else E=[...l.orderedFields],e.current.caches.columnPinning.orderedFieldsBeforePinningColumns=[...l.orderedFields];o.current=d;const V=E.filter(R=>!u.includes(R)&&!I.includes(R));return y({},l,{orderedFields:[...u,...V,...I]})},[e,r]);it(e,"hydrateColumns",n);const s=m.useCallback((l,a)=>e.current.isColumnPinned(a),[e]);it(e,"isColumnPinned",s)};function gB(e){const t={},r=Object.values(e);for(let o=0;o<r.length;o+=1){const n=r[o];t[n.id]=n.serverChildrenCount??0}return{filteredRowsLookup:Cu.filteredRowsLookup,filteredChildrenCountLookup:t,filteredDescendantCountLookup:Cu.filteredDescendantCountLookup}}function yB(e){return ta(e,De,!1)}function vB(e,t){return t.updates.type!=="full"||!t.previousTree?.[e]||t.previousTree[e].depth<1||!("path"in t.previousTree[e])?[]:t.previousTree[e].path||[]}const rI=Vt(e=>e.dataSource);qe(rI,e=>e.loading);const FB=qe(rI,(e,t)=>e.loading[t]??!1),xB=qe(rI,e=>e.errors),KB=qe(rI,(e,t)=>e.errors[t]),B3=e=>{const{classes:t}=e;return ki({root:["treeDataGroupingCell"],toggle:["treeDataGroupingCellToggle"],loadingContainer:["treeDataGroupingCellLoadingContainer"]},we,t)};function bB(e){const t=xa(),r=Tr(),o=B3(r),{rowNode:n,id:s,field:l,descendantCount:a}=e,c=re(t,FB,s),u=re(t,KB,s),I=d=>{n.childrenExpanded?(t.current.setRowChildrenExpansion(s,!1),t.current.removeChildrenRows(s)):t.current.dataSource.fetchRows(s),t.current.setCellFocus(s,l),d.stopPropagation()},E=n.childrenExpanded?r.slots.treeDataCollapseIcon:r.slots.treeDataExpandIcon;return c?C.jsx("div",{className:o.loadingContainer,children:C.jsx(r.slots.baseCircularProgress,{size:"1rem",color:"inherit"})}):a===-1||a>0?C.jsx(r.slots.baseIconButton,y({size:"small",onClick:I,tabIndex:-1,"aria-label":n.childrenExpanded?t.current.getLocaleText("treeDataCollapse"):t.current.getLocaleText("treeDataExpand")},r?.slotProps?.baseIconButton,{children:C.jsx(r.slots.baseTooltip,{title:u?.message??null,children:C.jsx(r.slots.baseBadge,{variant:"dot",color:"error",invisible:!u,children:C.jsx(E,{fontSize:"inherit"})})})})):null}function YB(e){const{id:t,field:r,formattedValue:o,rowNode:n,hideDescendantCount:s,offsetMultiplier:l=2}=e,a=Tr(),c=xa(),u=re(c,gk,t),I=B3(a);let E=0;return u&&(E=a.dataSource?.getChildrenCount?.(u)??0),C.jsxs("div",{className:I.root,style:{marginLeft:Ve.spacing(n.depth*l)},children:[C.jsx("div",{className:I.toggle,children:C.jsx(bB,{id:t,field:r,rowNode:n,row:u,descendantCount:E})}),C.jsxs("span",{children:[o===void 0?n.groupingKey:o,!s&&E>0?` (${E})`:""]})]})}const SB=["hideDescendantCount"],WB=(e,t)=>{const r=m.useCallback(()=>{e.current.setStrategyAvailability(Dr.RowTree,Rr.DataSource,t.treeData&&t.dataSource?()=>!0:()=>!1)},[e,t.treeData,t.dataSource]),o=m.useCallback(()=>{const u=t.groupingColDef;let I;if(typeof u=="function"){const R={groupingName:Rr.DataSource,fields:[]};I=u(R)}else I=u;const E=I??{},{hideDescendantCount:d}=E,M=Ie(E,SB),V=y({},g3,{renderCell:R=>C.jsx(YB,y({},R,{hideDescendantCount:d})),headerName:e.current.getLocaleText("treeDataGroupingHeaderName")});return y({},V,M,eI)},[e,t.groupingColDef]),n=m.useCallback(u=>{if(!t.dataSource)return u;const I=eI.field,E=t.treeData,d=u.lookup[I];if(E){const M=o();d&&(M.width=d.width,M.flex=d.flex),u.lookup[I]=M,d==null&&(u.orderedFields=[I,...u.orderedFields])}else!E&&d&&(delete u.lookup[I],u.orderedFields=u.orderedFields.filter(M=>M!==I));return u},[t.treeData,t.dataSource,o]),s=m.useCallback(u=>{const I=t.dataSource?.getGroupKey;if(!I)throw new Error("MUI X: No `getGroupKey` method provided with the dataSource.");const E=t.dataSource?.getChildrenCount;if(!E)throw new Error("MUI X: No `getChildrenCount` method provided with the dataSource.");const d=V=>{const R=u.updates.groupKeys??vB(V,u),h=E(u.dataRowIdToModelLookup[V]);return{id:V,path:[...R,I(u.dataRowIdToModelLookup[V])].map(z=>({key:z,field:null})),serverChildrenCount:h}},M=(V,R,h)=>{throw new Error(["MUI X: The values returned by `getGroupKey` for all the sibling rows should be unique.",`The rows with id #${V} and #${R} have the same.`,`Path: ${JSON.stringify(h.map(z=>z.key))}.`].join(`
492
492
  `))};return u.updates.type==="full"?T3({previousTree:u.previousTree,nodes:u.updates.rows.map(d),defaultGroupingExpansionDepth:t.defaultGroupingExpansionDepth,isGroupExpandedByDefault:t.isGroupExpandedByDefault,groupingName:Rr.DataSource,onDuplicatePath:M}):nA({nodes:{inserted:u.updates.actions.insert.map(d),modified:u.updates.actions.modify.map(d),removed:u.updates.actions.remove},previousTree:u.previousTree,previousGroupsToFetch:u.previousGroupsToFetch,previousTreeDepth:u.previousTreeDepths,defaultGroupingExpansionDepth:t.defaultGroupingExpansionDepth,isGroupExpandedByDefault:t.isGroupExpandedByDefault,groupingName:Rr.DataSource})},[t.dataSource,t.defaultGroupingExpansionDepth,t.isGroupExpandedByDefault]),l=m.useCallback(()=>{const u=Jt(e);return gB(u)},[e]),a=m.useCallback(()=>{const u=Jt(e);return yB(u)},[e]);it(e,"hydrateColumns",n),wr(e,Rr.DataSource,"rowTreeCreation",s),wr(e,Rr.DataSource,"filtering",l),wr(e,Rr.DataSource,"sorting",a),wr(e,Rr.DataSource,"visibleRowsLookupCreation",w3),zo(()=>{r()});const c=m.useRef(!0);m.useEffect(()=>{c.current?c.current=!1:r()},[r])},kB=new Set,jB=(e,t)=>y({},e,{detailPanel:{heightCache:{},expandedRowIds:t.detailPanelExpandedRowIds??t.initialState?.detailPanel?.expandedRowIds??kB}});function L3(e,t,r,o){if(typeof t!="function")return{};const n=Qo(e),s={},l={};for(let a=0;a<n.length;a+=1){const c=n[a],u=e.current.getRowParams(c),I=t(u);if(s[c]=I,I==null)continue;const E=r(u),d=E==="auto";l[c]={autoHeight:d,height:d?o[c]?.height:E}}return{contentCache:s,heightCache:l}}const UB=(e,t)=>{const r=re(e,KM),o=m.useCallback((f,Z)=>{if(f.field!==gr||t.getDetailPanelContent==null)return;const g=r[f.id];m.isValidElement(g)&&Z.target!==Z.currentTarget&&e.current.toggleDetailPanel(f.id)},[e,r,t.getDetailPanelContent]),n=m.useCallback((f,Z)=>{t.getDetailPanelContent!=null&&f.field===gr&&Z.key===" "&&e.current.toggleDetailPanel(f.id)},[e,t.getDetailPanelContent]);Me(e,"cellClick",o),Me(e,"cellKeyDown",n),e.current.registerControlState({stateId:"detailPanels",propModel:t.detailPanelExpandedRowIds,propOnChange:t.onDetailPanelExpandedRowIdsChange,stateSelector:Lo,changeEvent:"detailPanelsExpandedRowIdsChange"});const s=m.useCallback(f=>{if(t.getDetailPanelContent==null)return;const Z=r[f];if(!m.isValidElement(Z))return;const g=e.current.getExpandedDetailPanels(),p=new Set(g);g.has(f)?p.delete(f):p.add(f),e.current.setExpandedDetailPanels(p)},[e,r,t.getDetailPanelContent]),l=m.useCallback(()=>Lo(e),[e]),a=m.useCallback(f=>{e.current.setState(Z=>y({},Z,{detailPanel:y({},Z.detailPanel,{expandedRowIds:f})})),e.current.requestPipeProcessorsApplication("rowHeight")},[e]),c=m.useCallback((f,Z)=>{const g=bM(e);!g[f]||g[f].height===Z||(e.current.setState(p=>y({},p,{detailPanel:y({},p.detailPanel,{heightCache:y({},g,{[f]:y({},g[f],{height:Z})})})})),e.current.requestPipeProcessorsApplication("rowHeight"))},[e]),u={toggleDetailPanel:s,getExpandedDetailPanels:l,setExpandedDetailPanels:a},I={storeDetailPanelHeight:c};Qe(e,u,"public"),Qe(e,I,"private"),m.useEffect(()=>{t.detailPanelExpandedRowIds&&Lo(e)!==t.detailPanelExpandedRowIds&&e.current.setExpandedDetailPanels(t.detailPanelExpandedRowIds)},[e,t.detailPanelExpandedRowIds]);const E=m.useCallback(()=>{t.getDetailPanelContent&&e.current.setState(f=>y({},f,{detailPanel:y({},f.detailPanel,L3(e,t.getDetailPanelContent,t.getDetailPanelHeight,f.detailPanel.heightCache))}))},[e,t.getDetailPanelContent,t.getDetailPanelHeight]);Me(e,"sortedRowsSet",E);const d=m.useRef(void 0),M=m.useRef(void 0),V=m.useCallback(()=>{t.getDetailPanelContent===d.current&&t.getDetailPanelHeight===M.current||(e.current.setState(f=>y({},f,{detailPanel:y({},f.detailPanel,L3(e,t.getDetailPanelContent,t.getDetailPanelHeight,f.detailPanel.heightCache))})),d.current=t.getDetailPanelContent,M.current=t.getDetailPanelHeight)},[e,t.getDetailPanelContent,t.getDetailPanelHeight]),R=m.useCallback((f,Z)=>{const g=Lo(e);if(!g||!g.has(Z.id))return f.detail=0,f;V();const p=bM(e);return f.detail=p[Z.id]?.height??0,f},[e,V]),h=t.getDetailPanelContent!==void 0;it(e,"rowHeight",R,h);const z=m.useRef(!0);z.current&&V(),m.useEffect(()=>{z.current||V(),z.current=!1},[e,V])},QB=(e,t)=>{const r=m.useCallback(n=>{const s=y({},aB,{headerName:e.current.getLocaleText("detailPanelToggle")}),l=!!t.getDetailPanelContent,a=n.lookup[gr]!=null;return l&&!a?(n.lookup[gr]=s,n.orderedFields=[gr,...n.orderedFields]):!l&&a?(delete n.lookup[gr],n.orderedFields=n.orderedFields.filter(c=>c!==gr)):l&&a&&(n.lookup[gr]=y({},s,n.lookup[gr]),t.columns.some(c=>c.field===gr)||(n.orderedFields=[gr,...n.orderedFields.filter(c=>c!==gr)])),n},[e,t.columns,t.getDetailPanelContent]),o=m.useCallback((n,s)=>t.getDetailPanelContent==null||!Lo(e).has(s)?n:[...n,w["row--detailPanelExpanded"]],[e,t.getDetailPanelContent]);it(e,"hydrateColumns",r),it(e,"rowClassName",o)},UM=y({},Jr,{type:"custom",field:"__reorder__",sortable:!1,filterable:!1,width:50,align:"center",headerAlign:"center",disableColumnMenu:!0,disableExport:!0,disableReorder:!0,resizable:!1,aggregable:!1,renderHeader:()=>" ",renderCell:K3,rowSpanValueGetter:(e,t,r,o)=>Vi(o,t)});var iI=function(e){return e[e.UP=0]="UP",e[e.DOWN=1]="DOWN",e}(iI||{});const X3={previousTargetId:null,dragDirection:null,previousDropPosition:null},JB=e=>{const{classes:t}=e;return ki({rowDragging:["row--dragging"],rowDropAbove:["row--dropAbove"],rowDropBelow:["row--dropBelow"],rowBeingDragged:["row--beingDragged"]},we,t)},PB=e=>y({},e,{rowReorder:{isActive:!1}}),wB=(e,t)=>{const r=Xt(e,"useGridRowReorder"),o=re(e,lr),n=re(e,Uo),s=m.useRef(null),l=m.useRef(null),a=m.useRef(void 0),c=m.useRef(null),u={classes:t.classes},I=JB(u),[E,d]=m.useState(""),M=re(e,Hj),V=m.useRef(X3),[R,h]=m.useState({targetRowId:null,targetRowIndex:null,dropPosition:null});m.useEffect(()=>()=>{clearTimeout(a.current)},[]);const z=m.useMemo(()=>!t.rowReordering||!!o.length||n!==1,[t.rowReordering,o,n]),f=m.useCallback((v,S)=>{if(c.current&&(c.current.classList.remove(I.rowDropAbove,I.rowDropBelow),c.current=null),v&&S){const b=e.current.rootElementRef?.current?.querySelector(`[data-id="${v}"]`);b&&(b.classList.add(S==="above"?I.rowDropAbove:I.rowDropBelow),c.current=b)}},[e,I]),Z=m.useCallback((v,S)=>{if(v){const b=e.current.rootElementRef?.current?.querySelector(`[data-id="${v}"]`);b&&(S?b.classList.add(I.rowBeingDragged):b.classList.remove(I.rowBeingDragged))}},[e,I.rowBeingDragged]),g=m.useCallback(v=>{const S=e.current.rootElementRef?.current;if(!S)return;const b=S.querySelectorAll("[data-id]");if(!b.length)return;const A=Array.from(b),j=new Map;A.forEach(k=>{const K=k.getAttribute("data-id");K&&j.set(K,k.getBoundingClientRect())}),v(),requestAnimationFrame(()=>{const k=S.querySelectorAll("[data-id]"),K=[];k.forEach(Y=>{const Q=Y.getAttribute("data-id");if(!Q)return;const P=j.get(Q);if(!P)return;const J=Y.getBoundingClientRect(),W=P.top-J.top;if(Math.abs(W)>1){const U=Y.animate([{transform:`translateY(${W}px)`},{transform:"translateY(0)"}],{duration:200,easing:"ease-in-out",fill:"forwards"});K.push(U)}}),K.length>0&&Promise.allSettled(K.map(Y=>Y.finished)).then(()=>{})})},[e]),p=m.useCallback((v,S)=>{const b=Nt(e);z||Object.keys(b).length!==0||(r.debug(`Start dragging row ${v.id}`),S.stopPropagation(),e.current.setRowDragActive(!0),s.current=S.currentTarget,s.current.classList.add(I.rowDragging),d(v.id),Z(v.id,!0),a.current=setTimeout(()=>{s.current.classList.remove(I.rowDragging)}),l.current=M[v.id],e.current.setCellFocus(v.id,UM.field))},[e,z,r,I.rowDragging,M,Z]),F=m.useCallback((v,S)=>{if(E==="")return;const b=ur(e,v.id);if(!b||b.type==="footer"||b.type==="pinnedRow"||!S.target)return;const A=S.target.getBoundingClientRect(),j=Math.floor(S.clientY-A.top),k=Math.floor(A.height/2);if(r.debug(`Dragging over row ${v.id}`),S.preventDefault(),S.stopPropagation(),v.id!==E){const K=M[v.id],Y=M[E],Q=j<k?"above":"below",P=Q==="above"&&K===Y+1||Q==="below"&&K===Y-1,J={dragDirection:K<Y?iI.UP:iI.DOWN,previousTargetId:v.id,previousDropPosition:Q};(V.current.previousTargetId!==v.id||V.current.previousDropPosition!==Q)&&(P?(h({targetRowId:null,targetRowIndex:null,dropPosition:null}),f(null,null)):(h({targetRowId:v.id,targetRowIndex:K,dropPosition:Q}),f(v.id,Q)),V.current=J)}else V.current.previousTargetId!==null&&(h({targetRowId:null,targetRowIndex:null,dropPosition:null}),f(null,null),V.current={previousTargetId:null,dragDirection:null,previousDropPosition:null})},[E,e,r,M,f]),x=m.useCallback((v,S)=>{const b=Nt(e);if(E===""||z||Object.keys(b).length!==0)return;r.debug("End dragging row"),S.preventDefault(),S.stopPropagation(),clearTimeout(a.current),s.current=null;const A=V.current.dragDirection;if(V.current=X3,f(null,null),Z(E,!1),e.current.setRowDragActive(!1),!S.dataTransfer||S.dataTransfer.dropEffect==="none")h({targetRowId:null,targetRowIndex:null,dropPosition:null}),l.current=null;else{if(R.targetRowIndex!==null&&R.targetRowId!==null){const j=l.current,k=R.targetRowIndex,K=R.dropPosition;let Y;A===iI.UP?Y=K==="above"?k:k+1:Y=K==="above"?k-1:k,K==="above"&&k===j+1||K==="below"&&k===j-1||R.targetRowId===E||g(()=>{e.current.setRowIndex(E,Y);const P={row:e.current.getRow(E),targetIndex:Y,oldIndex:j};e.current.publishEvent("rowOrderChange",P)})}h({targetRowId:null,targetRowIndex:null,dropPosition:null})}d("")},[e,E,z,r,R,f,Z,g]);Me(e,"rowDragStart",p),Me(e,"rowDragOver",F),Me(e,"rowDragEnd",x),Me(e,"cellDragOver",F),at(e,"rowOrderChange",t.onRowOrderChange);const q=m.useCallback(v=>{e.current.setState(S=>y({},S,{rowReorder:y({},S.rowReorder,{isActive:v})}))},[e]);Qe(e,{setRowDragActive:q},"private")},TB=e=>{const{classes:t}=e;return m.useMemo(()=>ki({rowReorderCellContainer:["rowReorderCellContainer"],columnHeaderReorder:["columnHeaderReorder"]},we,t),[t])},GB=(e,t)=>{const r={classes:t.classes},o=TB(r),n=m.useCallback(s=>{const l=y({},UM,{cellClassName:o.rowReorderCellContainer,headerClassName:o.columnHeaderReorder,headerName:e.current.getLocaleText("rowReorderingHeaderName")}),a=t.rowReordering,c=s.lookup[l.field]!=null;return a&&!c?(s.lookup[l.field]=l,s.orderedFields=[l.field,...s.orderedFields]):!a&&c?(delete s.lookup[l.field],s.orderedFields=s.orderedFields.filter(u=>u!==l.field)):a&&c&&(s.lookup[l.field]=y({},l,s.lookup[l.field]),t.columns.some(u=>u.field===UM.field)||(s.orderedFields=[l.field,...s.orderedFields.filter(u=>u!==l.field)])),s},[e,o,t.columns,t.rowReordering]);it(e,"hydrateColumns",n)};function N3(e,t){const r={topIds:[],bottomIds:[],idLookup:{}};return e?.top?.forEach(o=>{const n=Vs(o,t);r.topIds.push(n),r.idLookup[n]=o}),e?.bottom?.forEach(o=>{const n=Vs(o,t);r.bottomIds.push(n),r.idLookup[n]=o}),r}const OB=(e,t,r)=>(r.current.caches.pinnedRows=N3(t.pinnedRows,t.getRowId),y({},e,{rows:y({},e.rows,{additionalRowGroups:y({},e.rows?.additionalRowGroups,{pinnedRows:{top:[],bottom:[]}})})})),HB=(e,t)=>{const r=m.useCallback(n=>{e.current.caches.pinnedRows=N3(n,t.getRowId),e.current.requestPipeProcessorsApplication("hydrateRows")},[e,t.getRowId]);Qe(e,{unstable_setPinnedRows:r},"public");const o=m.useRef(!0);m.useEffect(()=>{if(o.current){o.current=!1;return}e.current.unstable_setPinnedRows(t.pinnedRows)},[e,t.pinnedRows])};function D3({groupingParams:e,rowModel:t,rowId:r,position:o,apiRef:n,isAutoGenerated:s}){const l=y({},e.dataRowIdToModelLookup),a=y({},e.tree),c=y({},e.treeDepths);tI({type:"pinnedRow",id:r,depth:0,parent:De,isAutoGenerated:s},a,c,null),l[r]=t,n.current.caches.rows.dataRowIdToModelLookup[r]=y({},t);const I=e.additionalRowGroups?.pinnedRows||{},E={id:r,model:t};return e.additionalRowGroups?.pinnedRows?.[o]?.includes(E)?y({},e,{dataRowIdToModelLookup:l,tree:a,treeDepths:c}):y({},e,{dataRowIdToModelLookup:l,tree:a,treeDepths:c,additionalRowGroups:y({},e.additionalRowGroups,{pinnedRows:y({},I,{[o]:[...I[o]||[],E]})})})}const BB=e=>{const t=m.useRef(null),r=m.useCallback(o=>{const n=e.current.caches.pinnedRows||{},s=t.current;t.current=n;let l=y({},o,{additionalRowGroups:y({},o.additionalRowGroups,{pinnedRows:{}})});if(s){const a=c=>{l.tree[c]?.type==="pinnedRow"&&(delete l.tree[c],delete l.dataRowIdToModelLookup[c],delete e.current.caches.rows.dataRowIdToModelLookup[c])};s.topIds?.forEach(a),s.bottomIds?.forEach(a)}if(n.topIds?.forEach(a=>{l=D3({groupingParams:l,rowModel:n.idLookup[a],rowId:a,position:"top",apiRef:e,isAutoGenerated:!1})}),n.bottomIds?.forEach(a=>{l=D3({groupingParams:l,rowModel:n.idLookup[a],rowId:a,position:"bottom",apiRef:e,isAutoGenerated:!1})}),n.bottomIds?.length||n.topIds?.length){const a=u=>!(l.tree[u]&&l.tree[u].type==="pinnedRow"),c=l.tree[De];l.tree[De]=y({},c,{children:c.children.filter(a)}),l.dataRowIds=l.dataRowIds.filter(a)}return l},[e]);it(e,"hydrateRows",r)},$3=({apiRef:e,visibleRows:t,range:r})=>{let{firstRowIndex:o,lastRowIndex:n}=r;const s=t.slice(r.firstRowIndex,r.lastRowIndex);let l=0,a=s.length-1,c=!1;for(;!c&&o<n;){const u=ur(e,s[l].id)?.type==="skeletonRow",I=ur(e,s[a].id)?.type==="skeletonRow";u&&I&&(c=!0),u||(l+=1,o+=1),I||(a-=1,n-=1)}return c?{firstRowIndex:o,lastRowIndex:n}:void 0},LB=(e,t)=>{const r=re(e,lr),o=re(e,bt),n=m.useRef({firstRowToRender:0,lastRowToRender:0}),s=t.rowsLoadingMode!=="server",l=m.useCallback(u=>{if(s)return;const I={firstRowToRender:u.firstRowIndex,lastRowToRender:u.lastRowIndex,sortModel:r,filterModel:o};if(!(n.current.firstRowToRender===u.firstRowIndex&&n.current.lastRowToRender===u.lastRowIndex)){if(n.current={firstRowToRender:u.firstRowIndex,lastRowToRender:u.lastRowIndex},r.length===0&&o.items.length===0){const E=Bo(e,{pagination:t.pagination,paginationMode:t.paginationMode}),d=$3({apiRef:e,visibleRows:E.rows,range:{firstRowIndex:u.firstRowIndex,lastRowIndex:u.lastRowIndex}});if(!d)return;I.firstRowToRender=d.firstRowIndex,I.lastRowToRender=d.lastRowIndex}e.current.publishEvent("fetchRows",I)}},[e,s,t.pagination,t.paginationMode,r,o]),a=m.useCallback(u=>{if(s)return;e.current.requestPipeProcessorsApplication("hydrateRows");const I=ks(e),E={firstRowToRender:I.firstRowIndex,lastRowToRender:I.lastRowIndex,sortModel:u,filterModel:o};e.current.publishEvent("fetchRows",E)},[e,s,o]),c=m.useCallback(u=>{if(s)return;e.current.requestPipeProcessorsApplication("hydrateRows");const I=ks(e),E={firstRowToRender:I.firstRowIndex,lastRowToRender:I.lastRowIndex,sortModel:r,filterModel:u};e.current.publishEvent("fetchRows",E)},[e,s,r]);Me(e,"renderedRowsIntervalChange",l),Me(e,"sortModelChange",a),Me(e,"filterModelChange",c),at(e,"fetchRows",t.onFetchRows)},_3="auto-generated-skeleton-row-root",XB=e=>`${_3}-${e}`,NB=(e,t)=>{const r=m.useCallback(o=>{const n=o.tree[De];if(t.rowsLoadingMode!=="server"||!t.rowCount||n.children.length>=t.rowCount)return o;const s=y({},o.tree),l=[...n.children];for(let a=0;a<t.rowCount-n.children.length;a+=1){const c=XB(a);l.push(c);const u={type:"skeletonRow",id:c,parent:De,depth:0};s[c]=u}return s[De]=y({},n,{children:l}),y({},o,{tree:s})},[t.rowCount,t.rowsLoadingMode]);it(e,"hydrateRows",r)};function DB(e,t=166){let r;function o(...n){const s=()=>{e.apply(this,n)};clearTimeout(r),r=setTimeout(s,t)}return o.clear=()=>{clearTimeout(r)},o}var Wn=function(e){return e[e.VIEWPORT=0]="VIEWPORT",e[e.SCROLL_END=1]="SCROLL_END",e}(Wn||{});const $B={firstRowToRender:0,lastRowToRender:0},eA=e=>`${_3}-${e}`,_B=(e,t)=>{const r=m.useCallback(()=>{e.current.setStrategyAvailability(Dr.DataSource,Sn.LazyLoading,t.dataSource&&t.lazyLoading?()=>!0:()=>!1)},[e,t.lazyLoading,t.dataSource]),[o,n]=m.useState(!1),s=m.useRef($B),l=m.useRef(0),a=m.useRef(null),c=m.useRef(!1),u=m.useRef(null),I=m.useCallback(b=>{e.current.dataSource.fetchRows(De,b)},[e]),E=m.useMemo(()=>DB(I,0),[I]),d=m.useCallback(b=>{if(typeof b.start!="number")return b;const A=Ot(e);return y({},b,{start:b.start-b.start%A.pageSize,end:b.end+A.pageSize-b.end%A.pageSize-1})},[e]),M=m.useCallback(()=>{e.current.setLoading(!0),e.current.dataSource.cache.clear(),c.current=!0,l.current=0;const b=Ot(e),A=lr(e),j=bt(e),k={start:0,end:b.pageSize-1,sortModel:A,filterModel:j};I(k)},[e,I]),V=m.useCallback((b,A)=>{if(b===Wn.VIEWPORT&&A===Wn.SCROLL_END){M();return}const K=[...e.current.state.rows.tree[De].children],Y=e.current.state.pagination.rowCount;K.length>Y&&M()},[e,M]),R=m.useCallback(()=>{const b=e.current.state.rows.tree,A=b[De],j=[...A.children],k=e.current.state.pagination.rowCount,K=j.length;if(K===0)return;const Y=d({start:s.current.firstRowToRender,end:s.current.lastRowToRender});let Q=!1;const P=s.current.firstRowToRender===0&&s.current.lastRowToRender===0;for(let J=0;J<K&&!P;J+=1){if(Y.start<=J&&J<=Y.end||b[j[J]]?.type==="skeletonRow"||b[j[J]]?.id===u.current)continue;const W=b[j[J]].id,U={type:"skeletonRow",id:W,parent:De,depth:0};b[W]=U,Q=!0}if(a.current===Wn.VIEWPORT)for(let J=0;J<k-K;J+=1){const W=eA(J+K);j.push(W);const U={type:"skeletonRow",id:W,parent:De,depth:0};b[W]=U,Q=!0}Q&&(b[De]=y({},A,{children:j}),e.current.setState(J=>y({},J,{rows:y({},J.rows,{tree:b})}),"addSkeletonRows"))},[e,d]),h=m.useCallback(b=>{const A=b===-1?Wn.SCROLL_END:Wn.VIEWPORT;a.current!==null&&V(a.current,A),a.current!==A&&(a.current=A)},[V]),z=m.useCallback(b=>{if("error"in b)return;const{response:A,fetchParams:j}=b,k=e.current.state.pagination.rowCount,K=e.current.state.rows.tree,Y=e.current.state.rows.dataRowIdToModelLookup;if((A.rowCount!==void 0||k===void 0)&&e.current.setRowCount(A.rowCount===void 0?-1:A.rowCount),c.current&&b.fetchParams.start===0)e.current.scroll({top:0}),e.current.setRows(A.rows);else{const Q=K[De],P=[...Q.children],J=ed(e),W=typeof j.start=="string"?Math.max(J.indexOf(j.start),0):j.start;let U=0;A.rows.forEach(T=>{const O=Vi(e,T);if(K[O]||Y[O]){const G=P.indexOf(O);if(G!==-1){const H=eA(G);P[G]=H,K[H]={type:"skeletonRow",id:H,parent:De,depth:0}}delete K[O],delete Y[O],U+=1}}),U>0&&(K[De]=y({},Q,{children:P}),e.current.setState(T=>y({},T,{rows:y({},T.rows,{tree:K,dataRowIdToModelLookup:Y})}))),e.current.unstable_replaceRows(W,A.rows)}c.current=!1,a.current===null&&h(e.current.state.pagination.rowCount),R(),e.current.setLoading(!1),e.current.unstable_applyPipeProcessors("processDataSourceRows",{params:b.fetchParams,response:A},!1),e.current.requestPipeProcessorsApplication("hydrateRows")},[e,h,R]),f=m.useCallback(()=>{c.current||a.current===null||(h(e.current.state.pagination.rowCount),R(),e.current.requestPipeProcessorsApplication("hydrateRows"))},[e,h,R]),Z=vM(()=>{if(c.current||a.current!==Wn.SCROLL_END)return;const b=ks(e);if(l.current>=b.lastRowIndex)return;l.current=b.lastRowIndex;const A=Ot(e),j=lr(e),k=bt(e),K={start:b.lastRowIndex,end:b.lastRowIndex+A.pageSize-1,sortModel:j,filterModel:k};e.current.setLoading(!0),I(d(K))}),g=m.useCallback(b=>{if(c.current)return;const A=lr(e),j=bt(e),k={start:b.firstRowIndex,end:b.lastRowIndex-1,sortModel:A,filterModel:j};if(s.current.firstRowToRender===b.firstRowIndex&&s.current.lastRowToRender===b.lastRowIndex)return;s.current={firstRowToRender:b.firstRowIndex,lastRowToRender:b.lastRowIndex};const K=Bo(e),Y=$3({apiRef:e,visibleRows:K.rows,range:{firstRowIndex:b.firstRowIndex,lastRowIndex:b.lastRowIndex-1}});Y&&(k.start=Y.firstRowIndex,k.end=Y.lastRowIndex,I(d(k)))},[e,d,I]),p=m.useMemo(()=>sp(g,t.lazyLoadingRequestThrottleMs),[t.lazyLoadingRequestThrottleMs,g]);m.useEffect(()=>()=>{p.clear()},[p]);const F=m.useCallback(b=>{c.current=!0,p.clear(),l.current=0;const A=Ot(e),j=bt(e),k={start:0,end:A.pageSize-1,sortModel:b,filterModel:j};e.current.setLoading(!0),E(k)},[e,E,p]),x=m.useCallback(b=>{c.current=!0,p.clear(),l.current=0;const A=Ot(e),j=lr(e),k={start:0,end:A.pageSize-1,sortModel:j,filterModel:b};e.current.setLoading(!0),E(k)},[e,E,p]),q=m.useCallback(b=>{u.current=b.id},[]),v=m.useCallback(()=>{u.current=null},[]),S=m.useCallback(()=>{n(e.current.getActiveStrategy(Dr.DataSource)===Sn.LazyLoading)},[e]);wr(e,Sn.LazyLoading,"dataSourceRowsUpdate",z),Me(e,"strategyAvailabilityChange",S),Me(e,"rowCountChange",Ar(o,f)),Me(e,"rowsScrollEndIntersection",Ar(o,Z)),Me(e,"renderedRowsIntervalChange",Ar(o,p)),Me(e,"sortModelChange",Ar(o,F)),Me(e,"filterModelChange",Ar(o,x)),Me(e,"rowDragStart",Ar(o,q)),Me(e,"rowDragEnd",Ar(o,v)),m.useEffect(()=>{r()},[r])},e6=ot("div")({position:"sticky",left:0,width:0,height:0}),t6=(e,t)=>{const r=re(e,jt).isReady,o=m.useRef(null),n=Zn(),s=m.useRef(null),l=t.rowsLoadingMode==="client"&&!!t.onRowsScrollEnd,a=t.dataSource&&t.lazyLoading,c=l||a,u=vM(([V])=>{const R=V.intersectionRatio;V.isIntersecting&&R===1&&(o.current?.disconnect(),s.current=null,e.current.publishEvent("rowsScrollEndIntersection"))});m.useEffect(()=>{const V=e.current.virtualScrollerRef.current;if(!c||!r||!V)return;o.current?.disconnect();const R=cf(e),h=t.scrollEndThreshold-R;o.current=new IntersectionObserver(u,{threshold:1,root:V,rootMargin:`0px 0px ${h}px 0px`}),s.current&&o.current.observe(s.current)},[e,r,u,c,t.scrollEndThreshold]);const I=V=>{s.current!==V&&(o.current?.disconnect(),s.current=V,s.current&&o.current?.observe(s.current))},E=m.useCallback(V=>{c&&n.start(0,()=>I(V))},[c,n]),M={getInfiniteLoadingTriggerElement:m.useCallback(({lastRowId:V})=>c?C.jsx(e6,{ref:E,role:"presentation"},`trigger-${V}`):null,[c,E])};Qe(e,M,"private")},tA={};function r6(e,t){const r=m.useRef(tA);return r.current===tA&&(r.current=e(t)),r}const i6=1/0;let Ka=function(e){return e[e.QUEUED=0]="QUEUED",e[e.PENDING=1]="PENDING",e[e.SETTLED=2]="SETTLED",e[e.UNKNOWN=3]="UNKNOWN",e}({});class o6{constructor(t,r=i6){this.pendingRequests=new Set,this.queuedRequests=new Set,this.settledRequests=new Set,this.api=void 0,this.maxConcurrentRequests=void 0,this.processQueue=async()=>{if(this.queuedRequests.size===0||this.pendingRequests.size>=this.maxConcurrentRequests)return;const o=Math.min(this.maxConcurrentRequests-this.pendingRequests.size,this.queuedRequests.size);if(o===0)return;const n=Array.from(this.queuedRequests);for(let s=0;s<o;s+=1){const l=n[s];this.queuedRequests.delete(l),this.pendingRequests.add(l),this.api.fetchRowChildren(l)}},this.queue=async o=>{const n={};o.forEach(s=>{this.queuedRequests.add(s),n[s]=!0}),this.api.setState(s=>y({},s,{dataSource:y({},s.dataSource,{loading:y({},s.dataSource.loading,n)})})),this.processQueue()},this.setRequestSettled=o=>{this.pendingRequests.delete(o),this.settledRequests.add(o),this.processQueue()},this.clear=()=>{this.queuedRequests.clear(),Array.from(this.pendingRequests).forEach(o=>this.clearPendingRequest(o))},this.clearPendingRequest=o=>{this.api.dataSource.setChildrenLoading(o,!1),this.pendingRequests.delete(o),this.processQueue()},this.getRequestStatus=o=>this.pendingRequests.has(o)?Ka.PENDING:this.queuedRequests.has(o)?Ka.QUEUED:this.settledRequests.has(o)?Ka.SETTLED:Ka.UNKNOWN,this.getActiveRequestsCount=()=>this.pendingRequests.size+this.queuedRequests.size,this.api=t.current,this.maxConcurrentRequests=r}}const n6=(e,t)=>{let o=e[t].parent;const n=[];for(;o&&o!==De;){const s=e[o];n.push(s.groupingKey??""),o=s.parent}return n.reverse()},QM={loading:{},errors:{}},s6=(e,t,r={})=>{const o=re(e,uf),n=r6(()=>new o6(e)).current,s=m.useRef(0),l=m.useCallback(()=>(n.clear(),s.current=0,e.current.state.dataSource!==QM&&e.current.resetDataSourceState(),null),[e,n]),a=m.useCallback((x,q)=>{const v=n6(Jt(e),x.rowId);e.current.updateNestedRows([q],v),q&&!Pr(q,x.previousRow)&&e.current.dataSource.cache.clear()},[e]),{api:c,debouncedFetchRows:u,strategyProcessor:I,events:E,cacheChunkManager:d,cache:M}=rH(e,t,y({fetchRowChildren:n.queue,clearDataSourceState:l,handleEditRow:a},r)),V=m.useCallback(()=>{e.current.setStrategyAvailability(Dr.DataSource,Sn.Default,t.dataSource&&!t.lazyLoading?()=>!0:()=>!1)},[e,t.dataSource,t.lazyLoading]),R=t.onDataSourceError,h=m.useCallback(async x=>{const q=e.current.unstable_applyPipeProcessors("getRowsParams",{});if(!t.treeData&&(q.groupFields?.length??0)===0){n.clearPendingRequest(x);return}const v=t.dataSource?.getRows;if(!v){n.clearPendingRequest(x);return}const S=e.current.getRowNode(x);if(!S){n.clearPendingRequest(x);return}const b=y({},h3(e),q,{groupKeys:S.path}),j=d.getCacheKeys(b).map(Y=>M.get(Y)),k=j.some(Y=>Y===void 0)?void 0:va.mergeResponses(j);if(k!==void 0){const Y=k.rows;n.setRequestSettled(x),e.current.updateNestedRows(Y,S.path),k.rowCount!==void 0&&e.current.setRowCount(k.rowCount),e.current.setRowChildrenExpansion(x,!0),e.current.dataSource.setChildrenLoading(x,!1);return}(xB(e)[x]??null)&&e.current.dataSource.setChildrenFetchError(x,null);try{const Y=await v(b);if(!e.current.getRowNode(x)){n.clearPendingRequest(x);return}if(n.getRequestStatus(x)===Ka.UNKNOWN){e.current.dataSource.setChildrenLoading(x,!1);return}n.setRequestSettled(x),d.splitResponse(b,Y).forEach((J,W)=>{M.set(W,J)}),Y.rowCount!==void 0&&e.current.setRowCount(Y.rowCount);const P=[];Y.rows.forEach(J=>{const W=Vi(e,J);ur(e,W)&&P.push({id:W,_action:"delete"})}),P.length>0&&e.current.updateNestedRows(P,S.path),e.current.updateNestedRows(Y.rows,S.path),e.current.setRowChildrenExpansion(x,!0)}catch(Y){const Q=Y;e.current.dataSource.setChildrenFetchError(x,Q),typeof R=="function"?R(new fp({message:Q.message,params:b,cause:Q})):process.env.NODE_ENV!=="production"&&Qr(["MUI X: A call to `dataSource.getRows()` threw an error which was not handled because `onDataSourceError()` is missing.","To handle the error pass a callback to the `onDataSourceError` prop, for example `<DataGrid onDataSourceError={(error) => ...} />`.","For more detail, see https://mui.com/x/react-data-grid/server-side-data/#error-handling."],"error")}finally{e.current.dataSource.setChildrenLoading(x,!1),n.setRequestSettled(x)}},[n,d,M,R,e,t.treeData,t.dataSource?.getRows]),z=m.useCallback((x,q)=>{e.current.setState(v=>{if(!v.dataSource.loading[x]&&q===!1)return v;const S=y({},v.dataSource.loading);return q===!1?delete S[x]:S[x]=q,y({},v,{dataSource:y({},v.dataSource,{loading:S})})})},[e]),f=m.useCallback((x,q)=>{e.current.setState(v=>{const S=y({},v.dataSource.errors);return q===null&&S[x]!==void 0?delete S[x]:S[x]=q,y({},v,{dataSource:y({},v.dataSource,{errors:S})})})},[e]),Z=m.useCallback(()=>{e.current.setState(x=>y({},x,{dataSource:QM}))},[e]),g=m.useCallback(x=>{const q=ur(e,x);if(!q||q.type!=="group"||q.children.length===0)return;const v=[],S=b=>{const A=ur(e,b);A&&(A.type==="group"&&A.children.length>0&&A.children.forEach(S),v.push({id:b,_action:"delete"}))};q.children.forEach(S),v.length>0&&e.current.updateNestedRows(v,q.path)},[e]),p={dataSource:y({},c.public.dataSource,{setChildrenLoading:z,setChildrenFetchError:f})},F={fetchRowChildren:h,resetDataSourceState:Z,removeChildrenRows:g};return m.useEffect(()=>{if(o&&o.length&&s.current<o.length){const x=o.slice(s.current);n.queue(x),s.current=o.length}},[e,n,o]),{api:{public:p,private:F},debouncedFetchRows:u,strategyProcessor:I,events:E,setStrategyAvailability:V,cacheChunkManager:d,cache:M}};function l6(e){return JSON.stringify([e.filterModel,e.sortModel,e.groupKeys,e.start,e.end])}const a6=e=>y({},e,{dataSource:QM}),c6={cacheOptions:{getKey:l6}},u6=(e,t)=>{const{api:r,strategyProcessor:o,events:n,setStrategyAvailability:s}=s6(e,t,c6);Qe(e,r.public,"public"),Qe(e,r.private,"private"),wr(e,o.strategyName,o.group,o.processor),Object.entries(n).forEach(([l,a])=>{Me(e,l,a)}),m.useEffect(()=>{s()},[s])},I6=[...VJ,e=>e.pagination&&e.hideFooterRowCount&&"MUI X: The `hideFooterRowCount` prop has no effect when the pagination is enabled."||void 0,e=>e.treeData&&e.filterMode==="server"&&!e.dataSource&&'MUI X: The `filterMode="server"` prop is not available when the `treeData` is enabled.'||void 0,e=>!e.pagination&&e.checkboxSelectionVisibleOnly&&"MUI X: The `checkboxSelectionVisibleOnly` prop has no effect when the pagination is not enabled."||void 0,e=>e.signature!==Ur.DataGrid&&e.paginationMode==="client"&&e.rowsLoadingMode!=="server"&&OE(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"`.'||void 0,e=>e.signature!==Ur.DataGrid&&(e.rowsLoadingMode==="server"||e.onRowsScrollEnd)&&e.lazyLoading&&'MUI X: Usage of the client side lazy loading (`rowsLoadingMode="server"` or `onRowsScrollEnd=...`) cannot be used together with server side lazy loading `lazyLoading="true"`.'||void 0];let m6=function(e){return e.Default="grouping-columns",e.DataSource="grouping-columns-data-source",e}({});const rA=({node:e,tree:t,treeDepths:r})=>{WM({node:e,tree:t,treeDepths:r}),e.type==="group"&&e.footerId!=null&&WM({node:t[e.footerId],tree:t,treeDepths:r})},iA=({node:e,tree:t,treeDepths:r,updatedGroupsManager:o})=>{rA({node:e,tree:t,treeDepths:r});const n=t[e.parent];o?.addAction(n.id,"removeChildren"),n.id!==De&&n.children.length===0&&(n.isAutoGenerated?iA({node:n,tree:t,treeDepths:r}):t[n.id]={type:"leaf",id:n.id,depth:n.depth,parent:n.parent,groupingKey:n.groupingKey})},E6=({node:e,tree:t,treeDepths:r,updatedGroupsManager:o})=>{o?.addAction(e.parent,"removeChildren"),o?.addAction(e.parent,"insertChildren"),P3({previousTree:null,tree:t,treeDepths:r,node:e,updatedNode:{id:j3(U3({id:e.id,tree:t})),isAutoGenerated:!0}})},oA=({id:e,tree:t,treeDepths:r,updatedGroupsManager:o,groupingName:n})=>{const s=t[e];s.type==="group"&&s.children.length>0?E6({node:s,tree:t,treeDepths:r,updatedGroupsManager:o}):n===Rr.Default||n===m6.Default?iA({node:s,tree:t,treeDepths:r,updatedGroupsManager:o}):rA({node:s,tree:t,treeDepths:r})},nA=e=>{const t=y({},e.previousTree),r=y({},e.previousTreeDepth),o=_H(),n=e.previousGroupsToFetch?new Set([...e.previousGroupsToFetch]):new Set([]);for(let l=0;l<e.nodes.inserted.length;l+=1){const{id:a,path:c,serverChildrenCount:u}=e.nodes.inserted[l];kM({previousTree:e.previousTree,tree:t,treeDepths:r,updatedGroupsManager:o,id:a,path:c,serverChildrenCount:u,onDuplicatePath:e.onDuplicatePath,isGroupExpandedByDefault:e.isGroupExpandedByDefault,defaultGroupingExpansionDepth:e.defaultGroupingExpansionDepth,groupsToFetch:n})}for(let l=0;l<e.nodes.removed.length;l+=1){const a=e.nodes.removed[l];oA({tree:t,treeDepths:r,updatedGroupsManager:o,id:a,groupingName:e.groupingName})}for(let l=0;l<e.nodes.modified.length;l+=1){const{id:a,path:c,serverChildrenCount:u}=e.nodes.modified[l],I=U3({tree:t,id:a});Pr(I,c)?o?.addAction(t[a].parent,"modifyChildren"):(oA({tree:t,treeDepths:r,updatedGroupsManager:o,id:a,groupingName:e.groupingName}),kM({previousTree:e.previousTree,tree:t,treeDepths:r,updatedGroupsManager:o,id:a,path:c,serverChildrenCount:u,onDuplicatePath:e.onDuplicatePath,isGroupExpandedByDefault:e.isGroupExpandedByDefault,defaultGroupingExpansionDepth:e.defaultGroupingExpansionDepth,groupsToFetch:n}))}const s=ta(t,De,!0);return{tree:t,treeDepths:r,groupingName:e.groupingName,dataRowIds:s,updatedGroupsManager:o,groupsToFetch:Array.from(n)}},d6=["hideDescendantCount"],M6=(e,t)=>{const r=m.useCallback(()=>{e.current.setStrategyAvailability(Dr.RowTree,Rr.Default,t.treeData&&!t.dataSource?()=>!0:()=>!1)},[e,t.treeData,t.dataSource]),o=m.useCallback(()=>{const u=t.groupingColDef;let I;if(typeof u=="function"){const R={groupingName:Rr.Default,fields:[]};I=u(R)}else I=u;const E=I??{},{hideDescendantCount:d}=E,M=Ie(E,d6),V=y({},g3,{renderCell:R=>C.jsx(y3,y({},R,{hideDescendantCount:d})),headerName:e.current.getLocaleText("treeDataGroupingHeaderName")});return y({},V,M,eI)},[e,t.groupingColDef]),n=m.useCallback(u=>{if(t.dataSource)return u;const I=eI.field,E=t.treeData,d=u.lookup[I];if(E){const M=o();d&&(M.width=d.width,M.flex=d.flex),u.lookup[I]=M,d==null&&(u.orderedFields=[I,...u.orderedFields])}else!E&&d&&(delete u.lookup[I],u.orderedFields=u.orderedFields.filter(M=>M!==I));return u},[t.treeData,t.dataSource,o]),s=m.useCallback(u=>{if(!t.getTreeDataPath)throw new Error("MUI X: No getTreeDataPath given.");const I=d=>({id:d,path:t.getTreeDataPath(u.dataRowIdToModelLookup[d]).map(M=>({key:M,field:null}))}),E=(d,M,V)=>{throw new Error(["MUI X: The path returned by `getTreeDataPath` should be unique.",`The rows with id #${d} and #${M} have the same.`,`Path: ${JSON.stringify(V.map(R=>R.key))}.`].join(`
493
- `))};return u.updates.type==="full"?T3({previousTree:u.previousTree,nodes:u.updates.rows.map(I),defaultGroupingExpansionDepth:t.defaultGroupingExpansionDepth,isGroupExpandedByDefault:t.isGroupExpandedByDefault,groupingName:Rr.Default,onDuplicatePath:E}):nA({nodes:{inserted:u.updates.actions.insert.map(I),modified:u.updates.actions.modify.map(I),removed:u.updates.actions.remove},previousTree:u.previousTree,previousTreeDepth:u.previousTreeDepths,defaultGroupingExpansionDepth:t.defaultGroupingExpansionDepth,isGroupExpandedByDefault:t.isGroupExpandedByDefault,groupingName:Rr.Default})},[t.getTreeDataPath,t.defaultGroupingExpansionDepth,t.isGroupExpandedByDefault]),l=m.useCallback(u=>{const I=Jt(e);return bH({rowTree:I,isRowMatchingFilters:u.isRowMatchingFilters,disableChildrenFiltering:t.disableChildrenFiltering,filterModel:u.filterModel,apiRef:e})},[e,t.disableChildrenFiltering]),a=m.useCallback(u=>{const I=Jt(e);return eB({rowTree:I,sortRowList:u.sortRowList,disableChildrenSorting:t.disableChildrenSorting})},[e,t.disableChildrenSorting]);it(e,"hydrateColumns",n),wr(e,Rr.Default,"rowTreeCreation",s),wr(e,Rr.Default,"filtering",l),wr(e,Rr.Default,"sorting",a),wr(e,Rr.Default,"visibleRowsLookupCreation",w3),zo(()=>{r()});const c=m.useRef(!0);m.useEffect(()=>{c.current?c.current=!1:r()},[r])},R6=(e,t)=>{RG(e,t),QB(e,t),M6(e,t),WB(e,t),CO(e,t),NB(e,t),BB(e),GB(e,t),AB(e,t),MO(e),Yt(dG,e,t),Yt(fH,e,t),Yt(hO,e,t),Yt(PB,e,t),Yt(jB,e,t),Yt(pB,e,t),Yt(FG,e,t),Yt(OB,e,t),Yt(uO,e,t),Yt($G,e,t),Yt(aO,e,t),Yt(OG,e,t),Yt(fO,e,t),Yt(eO,e,t),Yt(PG,e,t),Yt(NO,e,t),Yt(bG,e,t),Yt(FH,e,t),Yt(OO,e,t),Yt(yG,e,t),Yt(kO,e,t),Yt(HQ,e,t),Yt(a6,e,t),Yt(gO,e,t),Yt(KO,e,t),Yt($O,e,t),fG(e,t),ZH(e,t),KH(e,t),XG(e,t),VO(e,t),qB(e,t),HB(e,t),xG(e,t),IO(e,t),DO(e,t),RO(e,t),UB(e,t),SO(e),jO(e,t),cO(e,t),HG(e,t),tO(e,t),GG(e,t),ZO(e,t),YG(e,t),xH(e,t),BO(e,t),_G(e,t),bO(e),wB(e,t),pO(e,t),qH(e,t),LB(e,t),_B(e,t),t6(e,t),vG(e),WG(e,t),JG(e,t),gG(e,t),vO(e,t),qO(e,t),YO(e),BQ(e,t),u6(e,t),_O(e,t),m.useEffect(()=>{e.current.runAppliersForPendingProcessors()})},h6=e=>y({signature:"DataGridPro"},e.dataSource?{filterMode:"server",sortingMode:"server",paginationMode:"server"}:{}),V6=y({},EM,{autosizeOnMount:!1,defaultGroupingExpansionDepth:0,disableAutosize:!1,disableChildrenFiltering:!1,disableChildrenSorting:!1,disableColumnPinning:!1,getDetailPanelHeight:()=>500,headerFilters:!1,keepColumnPositionIfDraggedOutside:!1,rowSelectionPropagation:$j,rowReordering:!1,rowsLoadingMode:"client",scrollEndThreshold:80,treeData:!1,lazyLoading:!1,lazyLoadingRequestThrottleMs:500,listView:!1,multipleColumnsSortingMode:"withModifierKey"}),z6=CB,C6=e=>{const t=xo(),r=m.useMemo(()=>kh({props:e,theme:t,name:"MuiDataGrid"}),[t,e]),o=m.useMemo(()=>y({},Sk,r.localeText),[r.localeText]),n=m.useMemo(()=>hJ({defaultSlots:z6,slots:r.slots}),[r.slots]);return m.useMemo(()=>y({},V6,r,{localeText:o,slots:n},h6(r)),[r,o,n])},f6={hooks:{useCSSVariables:hT,useGridAriaAttributes:fB,useGridRowAriaAttributes:ZB,useCellAggregationResult:()=>null}},sA="MTc1NDYwNDAwMDAwMA==",Z6=C.jsx(mT,{packageName:"x-data-grid-pro",releaseInfo:sA}),JM=Ke(function(t,r){const o=C6(t),n=CH(o.apiRef,o);return R6(n,o),Yq("x-data-grid-pro",sA),process.env.NODE_ENV!=="production"&&zJ(o,I6),C.jsx(Kw,{privateApiRef:n,configuration:f6,props:o,children:C.jsx(HJ,y({className:o.className,style:o.style,sx:o.sx},o.slotProps?.root,{ref:r,children:Z6}))})});process.env.NODE_ENV!=="production"&&(JM.displayName="DataGridProRaw");const lA=m.memo(JM);process.env.NODE_ENV!=="production"&&(lA.displayName="DataGridPro"),JM.propTypes={apiRef:i.shape({current:i.object}),"aria-label":i.string,"aria-labelledby":i.string,autoHeight:i.bool,autoPageSize:i.bool,autosizeOnMount:i.bool,autosizeOptions:i.shape({columns:i.arrayOf(i.string),disableColumnVirtualization:i.bool,expand:i.bool,includeHeaders:i.bool,includeOutliers:i.bool,outliersFactor:i.number}),cellModesModel:i.object,checkboxSelection:i.bool,checkboxSelectionVisibleOnly:i.bool,classes:i.object,className:i.string,clipboardCopyCellDelimiter:i.string,columnBufferPx:i.number,columnFilterDebounceMs:i.number,columnGroupHeaderHeight:i.number,columnGroupingModel:i.arrayOf(i.object),columnHeaderHeight:i.number,columns:i.arrayOf(i.object).isRequired,columnVisibilityModel:i.object,dataSource:i.shape({getChildrenCount:i.func,getGroupKey:i.func,getRows:i.func.isRequired,updateRow:i.func}),dataSourceCache:i.shape({clear:i.func.isRequired,get:i.func.isRequired,set:i.func.isRequired}),defaultGroupingExpansionDepth:i.number,density:i.oneOf(["comfortable","compact","standard"]),detailPanelExpandedRowIds:i.instanceOf(Set),disableAutosize:i.bool,disableChildrenFiltering:i.bool,disableChildrenSorting:i.bool,disableColumnFilter:i.bool,disableColumnMenu:i.bool,disableColumnPinning:i.bool,disableColumnReorder:i.bool,disableColumnResize:i.bool,disableColumnSelector:i.bool,disableColumnSorting:i.bool,disableDensitySelector:i.bool,disableEval:i.bool,disableMultipleColumnsFiltering:i.bool,disableMultipleColumnsSorting:i.bool,disableMultipleRowSelection:i.bool,disableRowSelectionOnClick:i.bool,disableVirtualization:i.bool,editMode:i.oneOf(["cell","row"]),estimatedRowCount:i.number,experimentalFeatures:i.shape({warnIfFocusStateIsNotSynced:i.bool}),filterDebounceMs:i.number,filterMode:i.oneOf(["client","server"]),filterModel:i.shape({items:i.arrayOf(i.shape({field:i.string.isRequired,id:i.oneOfType([i.number,i.string]),operator:i.string.isRequired,value:i.any})).isRequired,logicOperator:i.oneOf(["and","or"]),quickFilterExcludeHiddenColumns:i.bool,quickFilterLogicOperator:i.oneOf(["and","or"]),quickFilterValues:i.array}),getCellClassName:i.func,getDetailPanelContent:i.func,getDetailPanelHeight:i.func,getEstimatedRowHeight:i.func,getRowClassName:i.func,getRowHeight:i.func,getRowId:i.func,getRowSpacing:i.func,getTreeDataPath:i.func,groupingColDef:i.oneOfType([i.func,i.object]),headerFilterHeight:i.number,headerFilters:i.bool,hideFooter:i.bool,hideFooterPagination:i.bool,hideFooterRowCount:i.bool,hideFooterSelectedRowCount:i.bool,ignoreDiacritics:i.bool,ignoreValueFormatterDuringExport:i.oneOfType([i.shape({clipboardExport:i.bool,csvExport:i.bool}),i.bool]),initialState:i.object,isCellEditable:i.func,isGroupExpandedByDefault:i.func,isRowSelectable:i.func,keepColumnPositionIfDraggedOutside:i.bool,keepNonExistentRowsSelected:i.bool,label:i.string,lazyLoading:i.bool,lazyLoadingRequestThrottleMs:i.number,listView:i.bool,listViewColumn:i.shape({align:i.oneOf(["center","left","right"]),cellClassName:i.oneOfType([i.func,i.string]),display:i.oneOf(["flex","text"]),field:i.string.isRequired,renderCell:i.func}),loading:i.bool,localeText:i.object,logger:i.shape({debug:i.func.isRequired,error:i.func.isRequired,info:i.func.isRequired,warn:i.func.isRequired}),logLevel:i.oneOf(["debug","error","info","warn",!1]),multipleColumnsSortingMode:i.oneOf(["always","withModifierKey"]),nonce:i.string,onCellClick:i.func,onCellDoubleClick:i.func,onCellEditStart:i.func,onCellEditStop:i.func,onCellKeyDown:i.func,onCellModesModelChange:i.func,onClipboardCopy:i.func,onColumnHeaderClick:i.func,onColumnHeaderContextMenu:i.func,onColumnHeaderDoubleClick:i.func,onColumnHeaderEnter:i.func,onColumnHeaderLeave:i.func,onColumnHeaderOut:i.func,onColumnHeaderOver:i.func,onColumnOrderChange:i.func,onColumnResize:i.func,onColumnVisibilityModelChange:i.func,onColumnWidthChange:i.func,onDataSourceError:i.func,onDensityChange:i.func,onDetailPanelExpandedRowIdsChange:i.func,onFetchRows:i.func,onFilterModelChange:i.func,onMenuClose:i.func,onMenuOpen:i.func,onPaginationMetaChange:i.func,onPaginationModelChange:i.func,onPinnedColumnsChange:i.func,onPreferencePanelClose:i.func,onPreferencePanelOpen:i.func,onProcessRowUpdateError:i.func,onResize:i.func,onRowClick:i.func,onRowCountChange:i.func,onRowDoubleClick:i.func,onRowEditStart:i.func,onRowEditStop:i.func,onRowModesModelChange:i.func,onRowOrderChange:i.func,onRowSelectionModelChange:i.func,onRowsScrollEnd:i.func,onSortModelChange:i.func,onStateChange:i.func,pageSizeOptions:i.arrayOf(i.oneOfType([i.number,i.shape({label:i.string.isRequired,value:i.number.isRequired})]).isRequired),pagination:i.bool,paginationMeta:i.shape({hasNextPage:i.bool}),paginationMode:i.oneOf(["client","server"]),paginationModel:i.shape({page:i.number.isRequired,pageSize:i.number.isRequired}),pinnedColumns:i.object,pinnedRows:i.shape({bottom:i.arrayOf(i.object),top:i.arrayOf(i.object)}),processRowUpdate:i.func,resizeThrottleMs:i.number,rowBufferPx:i.number,rowCount:i.number,rowHeight:i.number,rowModesModel:i.object,rowReordering:i.bool,rows:i.arrayOf(i.object),rowSelection:i.bool,rowSelectionModel:i.shape({ids:i.instanceOf(Set).isRequired,type:i.oneOf(["exclude","include"]).isRequired}),rowSelectionPropagation:i.shape({descendants:i.bool,parents:i.bool}),rowsLoadingMode:i.oneOf(["client","server"]),rowSpacingType:i.oneOf(["border","margin"]),rowSpanning:i.bool,scrollbarSize:i.number,scrollEndThreshold:i.number,showCellVerticalBorder:i.bool,showColumnVerticalBorder:i.bool,showToolbar:i.bool,slotProps:i.object,slots:i.object,sortingMode:i.oneOf(["client","server"]),sortingOrder:i.arrayOf(i.oneOf(["asc","desc"])),sortModel:i.arrayOf(i.shape({field:i.string.isRequired,sort:i.oneOf(["asc","desc"])})),style:i.object,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),throttleRowsMs:i.number,treeData:i.bool,virtualizeColumnsWithAutoRowHeight:i.bool};const aA=yt(C.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown"),PM=({label:e,value:t,setValue:r,values:o,placeholder:n,disabled:s,white:l})=>C.jsx(C.Fragment,{children:C.jsxs(ls,{fullWidth:!0,focused:!0,children:[C.jsx(us,{id:`filter-table-label-${e}`,sx:{color:l?"black":"white",position:"absolute","&.Mui-focused":{color:l?"black":"white"},'&[data-shrink="false"]':{transform:"translateY(12px) translateX(12px)"}},children:e}),C.jsxs(Vn,{labelId:`filter-table-label-${e}`,id:`filter-${e}`,value:t,label:e,onChange:a=>r(a.target.value),color:"gr-yellow",sx:{color:l?"black":"white"},IconComponent:aA,MenuProps:{PaperProps:{style:{maxHeight:"500px",borderBottomLeftRadius:"32px",borderBottomRightRadius:"32px",borderTopLeftRadius:"0px",borderTopRightRadius:"0px"}},MenuListProps:{sx:{backgroundColor:l?"white":et["gr-base-dark"].main,"& .MuiMenuItem-root":{backgroundColor:l?"white":et["gr-base-dark"].main,color:l?"black":"white","&:hover":{backgroundColor:l?"white":et["gr-base-dark"].main},"&.Mui-selected":{backgroundColor:l?"white":et["gr-base-dark"].main},"&.Mui-focusVisible":{backgroundColor:l?"white":et["gr-base-dark"].main}}}}},displayEmpty:!0,disabled:s,children:[C.jsx(Io,{sx:{mt:2},disabled:!0,value:"",children:C.jsx("em",{children:n})}),o.map(a=>C.jsx(Io,{value:a.value,children:a.label},a.value))]})]})});yt(C.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),yt(C.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),yt(C.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight");const p6=yt(C.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar");yt(C.jsxs(m.Fragment,{children:[C.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),C.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock");const q6=yt(C.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange");yt(C.jsxs(m.Fragment,{children:[C.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),C.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time");const A6=yt(C.jsx("path",{d:"M19 6.41 17.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"),g6=["localeText"],oI=m.createContext(null);process.env.NODE_ENV!=="production"&&(oI.displayName="PickerAdapterContext");const nI=function(t){const{localeText:r}=t,o=Ie(t,g6),{adapter:n,localeText:s}=m.useContext(oI)??{adapter:void 0,localeText:void 0},l=oo({props:o,name:"MuiLocalizationProvider"}),{children:a,dateAdapter:c,dateFormats:u,dateLibInstance:I,adapterLocale:E,localeText:d}=l,M=m.useMemo(()=>y({},d,s,r),[d,s,r]),V=m.useMemo(()=>{if(!c)return n||null;const z=new c({locale:E,formats:u,instance:I});if(!z.isMUIAdapter)throw new Error(["MUI X: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/quickstart/#installation"].join(`
493
+ `))};return u.updates.type==="full"?T3({previousTree:u.previousTree,nodes:u.updates.rows.map(I),defaultGroupingExpansionDepth:t.defaultGroupingExpansionDepth,isGroupExpandedByDefault:t.isGroupExpandedByDefault,groupingName:Rr.Default,onDuplicatePath:E}):nA({nodes:{inserted:u.updates.actions.insert.map(I),modified:u.updates.actions.modify.map(I),removed:u.updates.actions.remove},previousTree:u.previousTree,previousTreeDepth:u.previousTreeDepths,defaultGroupingExpansionDepth:t.defaultGroupingExpansionDepth,isGroupExpandedByDefault:t.isGroupExpandedByDefault,groupingName:Rr.Default})},[t.getTreeDataPath,t.defaultGroupingExpansionDepth,t.isGroupExpandedByDefault]),l=m.useCallback(u=>{const I=Jt(e);return bH({rowTree:I,isRowMatchingFilters:u.isRowMatchingFilters,disableChildrenFiltering:t.disableChildrenFiltering,filterModel:u.filterModel,apiRef:e})},[e,t.disableChildrenFiltering]),a=m.useCallback(u=>{const I=Jt(e);return eB({rowTree:I,sortRowList:u.sortRowList,disableChildrenSorting:t.disableChildrenSorting})},[e,t.disableChildrenSorting]);it(e,"hydrateColumns",n),wr(e,Rr.Default,"rowTreeCreation",s),wr(e,Rr.Default,"filtering",l),wr(e,Rr.Default,"sorting",a),wr(e,Rr.Default,"visibleRowsLookupCreation",w3),zo(()=>{r()});const c=m.useRef(!0);m.useEffect(()=>{c.current?c.current=!1:r()},[r])},R6=(e,t)=>{RG(e,t),QB(e,t),M6(e,t),WB(e,t),CO(e,t),NB(e,t),BB(e),GB(e,t),AB(e,t),MO(e),Yt(dG,e,t),Yt(fH,e,t),Yt(hO,e,t),Yt(PB,e,t),Yt(jB,e,t),Yt(pB,e,t),Yt(FG,e,t),Yt(OB,e,t),Yt(uO,e,t),Yt($G,e,t),Yt(aO,e,t),Yt(OG,e,t),Yt(fO,e,t),Yt(eO,e,t),Yt(PG,e,t),Yt(NO,e,t),Yt(bG,e,t),Yt(FH,e,t),Yt(OO,e,t),Yt(yG,e,t),Yt(kO,e,t),Yt(HQ,e,t),Yt(a6,e,t),Yt(gO,e,t),Yt(KO,e,t),Yt($O,e,t),fG(e,t),ZH(e,t),KH(e,t),XG(e,t),VO(e,t),qB(e,t),HB(e,t),xG(e,t),IO(e,t),DO(e,t),RO(e,t),UB(e,t),SO(e),jO(e,t),cO(e,t),HG(e,t),tO(e,t),GG(e,t),ZO(e,t),YG(e,t),xH(e,t),BO(e,t),_G(e,t),bO(e),wB(e,t),pO(e,t),qH(e,t),LB(e,t),_B(e,t),t6(e,t),vG(e),WG(e,t),JG(e,t),gG(e,t),vO(e,t),qO(e,t),YO(e),BQ(e,t),u6(e,t),_O(e,t),m.useEffect(()=>{e.current.runAppliersForPendingProcessors()})},h6=e=>y({signature:"DataGridPro"},e.dataSource?{filterMode:"server",sortingMode:"server",paginationMode:"server"}:{}),V6=y({},EM,{autosizeOnMount:!1,defaultGroupingExpansionDepth:0,disableAutosize:!1,disableChildrenFiltering:!1,disableChildrenSorting:!1,disableColumnPinning:!1,getDetailPanelHeight:()=>500,headerFilters:!1,keepColumnPositionIfDraggedOutside:!1,rowSelectionPropagation:$j,rowReordering:!1,rowsLoadingMode:"client",scrollEndThreshold:80,treeData:!1,lazyLoading:!1,lazyLoadingRequestThrottleMs:500,listView:!1,multipleColumnsSortingMode:"withModifierKey"}),z6=CB,C6=e=>{const t=xo(),r=m.useMemo(()=>kh({props:e,theme:t,name:"MuiDataGrid"}),[t,e]),o=m.useMemo(()=>y({},Sk,r.localeText),[r.localeText]),n=m.useMemo(()=>hJ({defaultSlots:z6,slots:r.slots}),[r.slots]);return m.useMemo(()=>y({},V6,r,{localeText:o,slots:n},h6(r)),[r,o,n])},f6={hooks:{useCSSVariables:hT,useGridAriaAttributes:fB,useGridRowAriaAttributes:ZB,useCellAggregationResult:()=>null}},sA="MTc1NDYwNDAwMDAwMA==",Z6=C.jsx(mT,{packageName:"x-data-grid-pro",releaseInfo:sA}),JM=Ke(function(t,r){const o=C6(t),n=CH(o.apiRef,o);return R6(n,o),Yq("x-data-grid-pro",sA),process.env.NODE_ENV!=="production"&&zJ(o,I6),C.jsx(Kw,{privateApiRef:n,configuration:f6,props:o,children:C.jsx(HJ,y({className:o.className,style:o.style,sx:o.sx},o.slotProps?.root,{ref:r,children:Z6}))})});process.env.NODE_ENV!=="production"&&(JM.displayName="DataGridProRaw");const lA=m.memo(JM);process.env.NODE_ENV!=="production"&&(lA.displayName="DataGridPro"),JM.propTypes={apiRef:i.shape({current:i.object}),"aria-label":i.string,"aria-labelledby":i.string,autoHeight:i.bool,autoPageSize:i.bool,autosizeOnMount:i.bool,autosizeOptions:i.shape({columns:i.arrayOf(i.string),disableColumnVirtualization:i.bool,expand:i.bool,includeHeaders:i.bool,includeOutliers:i.bool,outliersFactor:i.number}),cellModesModel:i.object,checkboxSelection:i.bool,checkboxSelectionVisibleOnly:i.bool,classes:i.object,className:i.string,clipboardCopyCellDelimiter:i.string,columnBufferPx:i.number,columnFilterDebounceMs:i.number,columnGroupHeaderHeight:i.number,columnGroupingModel:i.arrayOf(i.object),columnHeaderHeight:i.number,columns:i.arrayOf(i.object).isRequired,columnVisibilityModel:i.object,dataSource:i.shape({getChildrenCount:i.func,getGroupKey:i.func,getRows:i.func.isRequired,updateRow:i.func}),dataSourceCache:i.shape({clear:i.func.isRequired,get:i.func.isRequired,set:i.func.isRequired}),defaultGroupingExpansionDepth:i.number,density:i.oneOf(["comfortable","compact","standard"]),detailPanelExpandedRowIds:i.instanceOf(Set),disableAutosize:i.bool,disableChildrenFiltering:i.bool,disableChildrenSorting:i.bool,disableColumnFilter:i.bool,disableColumnMenu:i.bool,disableColumnPinning:i.bool,disableColumnReorder:i.bool,disableColumnResize:i.bool,disableColumnSelector:i.bool,disableColumnSorting:i.bool,disableDensitySelector:i.bool,disableEval:i.bool,disableMultipleColumnsFiltering:i.bool,disableMultipleColumnsSorting:i.bool,disableMultipleRowSelection:i.bool,disableRowSelectionOnClick:i.bool,disableVirtualization:i.bool,editMode:i.oneOf(["cell","row"]),estimatedRowCount:i.number,experimentalFeatures:i.shape({warnIfFocusStateIsNotSynced:i.bool}),filterDebounceMs:i.number,filterMode:i.oneOf(["client","server"]),filterModel:i.shape({items:i.arrayOf(i.shape({field:i.string.isRequired,id:i.oneOfType([i.number,i.string]),operator:i.string.isRequired,value:i.any})).isRequired,logicOperator:i.oneOf(["and","or"]),quickFilterExcludeHiddenColumns:i.bool,quickFilterLogicOperator:i.oneOf(["and","or"]),quickFilterValues:i.array}),getCellClassName:i.func,getDetailPanelContent:i.func,getDetailPanelHeight:i.func,getEstimatedRowHeight:i.func,getRowClassName:i.func,getRowHeight:i.func,getRowId:i.func,getRowSpacing:i.func,getTreeDataPath:i.func,groupingColDef:i.oneOfType([i.func,i.object]),headerFilterHeight:i.number,headerFilters:i.bool,hideFooter:i.bool,hideFooterPagination:i.bool,hideFooterRowCount:i.bool,hideFooterSelectedRowCount:i.bool,ignoreDiacritics:i.bool,ignoreValueFormatterDuringExport:i.oneOfType([i.shape({clipboardExport:i.bool,csvExport:i.bool}),i.bool]),initialState:i.object,isCellEditable:i.func,isGroupExpandedByDefault:i.func,isRowSelectable:i.func,keepColumnPositionIfDraggedOutside:i.bool,keepNonExistentRowsSelected:i.bool,label:i.string,lazyLoading:i.bool,lazyLoadingRequestThrottleMs:i.number,listView:i.bool,listViewColumn:i.shape({align:i.oneOf(["center","left","right"]),cellClassName:i.oneOfType([i.func,i.string]),display:i.oneOf(["flex","text"]),field:i.string.isRequired,renderCell:i.func}),loading:i.bool,localeText:i.object,logger:i.shape({debug:i.func.isRequired,error:i.func.isRequired,info:i.func.isRequired,warn:i.func.isRequired}),logLevel:i.oneOf(["debug","error","info","warn",!1]),multipleColumnsSortingMode:i.oneOf(["always","withModifierKey"]),nonce:i.string,onCellClick:i.func,onCellDoubleClick:i.func,onCellEditStart:i.func,onCellEditStop:i.func,onCellKeyDown:i.func,onCellModesModelChange:i.func,onClipboardCopy:i.func,onColumnHeaderClick:i.func,onColumnHeaderContextMenu:i.func,onColumnHeaderDoubleClick:i.func,onColumnHeaderEnter:i.func,onColumnHeaderLeave:i.func,onColumnHeaderOut:i.func,onColumnHeaderOver:i.func,onColumnOrderChange:i.func,onColumnResize:i.func,onColumnVisibilityModelChange:i.func,onColumnWidthChange:i.func,onDataSourceError:i.func,onDensityChange:i.func,onDetailPanelExpandedRowIdsChange:i.func,onFetchRows:i.func,onFilterModelChange:i.func,onMenuClose:i.func,onMenuOpen:i.func,onPaginationMetaChange:i.func,onPaginationModelChange:i.func,onPinnedColumnsChange:i.func,onPreferencePanelClose:i.func,onPreferencePanelOpen:i.func,onProcessRowUpdateError:i.func,onResize:i.func,onRowClick:i.func,onRowCountChange:i.func,onRowDoubleClick:i.func,onRowEditStart:i.func,onRowEditStop:i.func,onRowModesModelChange:i.func,onRowOrderChange:i.func,onRowSelectionModelChange:i.func,onRowsScrollEnd:i.func,onSortModelChange:i.func,onStateChange:i.func,pageSizeOptions:i.arrayOf(i.oneOfType([i.number,i.shape({label:i.string.isRequired,value:i.number.isRequired})]).isRequired),pagination:i.bool,paginationMeta:i.shape({hasNextPage:i.bool}),paginationMode:i.oneOf(["client","server"]),paginationModel:i.shape({page:i.number.isRequired,pageSize:i.number.isRequired}),pinnedColumns:i.object,pinnedRows:i.shape({bottom:i.arrayOf(i.object),top:i.arrayOf(i.object)}),processRowUpdate:i.func,resizeThrottleMs:i.number,rowBufferPx:i.number,rowCount:i.number,rowHeight:i.number,rowModesModel:i.object,rowReordering:i.bool,rows:i.arrayOf(i.object),rowSelection:i.bool,rowSelectionModel:i.shape({ids:i.instanceOf(Set).isRequired,type:i.oneOf(["exclude","include"]).isRequired}),rowSelectionPropagation:i.shape({descendants:i.bool,parents:i.bool}),rowsLoadingMode:i.oneOf(["client","server"]),rowSpacingType:i.oneOf(["border","margin"]),rowSpanning:i.bool,scrollbarSize:i.number,scrollEndThreshold:i.number,showCellVerticalBorder:i.bool,showColumnVerticalBorder:i.bool,showToolbar:i.bool,slotProps:i.object,slots:i.object,sortingMode:i.oneOf(["client","server"]),sortingOrder:i.arrayOf(i.oneOf(["asc","desc"])),sortModel:i.arrayOf(i.shape({field:i.string.isRequired,sort:i.oneOf(["asc","desc"])})),style:i.object,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),throttleRowsMs:i.number,treeData:i.bool,virtualizeColumnsWithAutoRowHeight:i.bool};const aA=yt(C.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown"),PM=({label:e,value:t,setValue:r,values:o,placeholder:n,disabled:s,fullWidth:l,white:a})=>C.jsx(C.Fragment,{children:C.jsxs(ls,{fullWidth:l,focused:!0,children:[C.jsx(us,{id:`filter-table-label-${e}`,sx:{color:a?"black":"white",position:"absolute","&.Mui-focused":{color:a?"black":"white"},'&[data-shrink="false"]':{transform:"translateY(12px) translateX(12px)"}},children:e}),C.jsxs(Vn,{labelId:`filter-table-label-${e}`,id:`filter-${e}`,value:t,label:e,onChange:c=>r(c.target.value),color:"gr-yellow",sx:{color:a?"black":"white"},IconComponent:aA,MenuProps:{PaperProps:{style:{maxHeight:"500px",borderBottomLeftRadius:"32px",borderBottomRightRadius:"32px",borderTopLeftRadius:"0px",borderTopRightRadius:"0px"}},MenuListProps:{sx:{backgroundColor:a?"white":et["gr-base-dark"].main,"& .MuiMenuItem-root":{backgroundColor:a?"white":et["gr-base-dark"].main,color:a?"black":"white","&:hover":{backgroundColor:a?"white":et["gr-base-dark"].main},"&.Mui-selected":{backgroundColor:a?"white":et["gr-base-dark"].main},"&.Mui-focusVisible":{backgroundColor:a?"white":et["gr-base-dark"].main}}}}},displayEmpty:!0,disabled:s,children:[C.jsx(Io,{sx:{mt:2},disabled:!0,value:"",children:C.jsx("em",{children:n})}),o.map(c=>C.jsx(Io,{value:c.value,children:c.label},c.value))]})]})});yt(C.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),yt(C.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),yt(C.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight");const p6=yt(C.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar");yt(C.jsxs(m.Fragment,{children:[C.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),C.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock");const q6=yt(C.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange");yt(C.jsxs(m.Fragment,{children:[C.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),C.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time");const A6=yt(C.jsx("path",{d:"M19 6.41 17.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"),g6=["localeText"],oI=m.createContext(null);process.env.NODE_ENV!=="production"&&(oI.displayName="PickerAdapterContext");const nI=function(t){const{localeText:r}=t,o=Ie(t,g6),{adapter:n,localeText:s}=m.useContext(oI)??{adapter:void 0,localeText:void 0},l=oo({props:o,name:"MuiLocalizationProvider"}),{children:a,dateAdapter:c,dateFormats:u,dateLibInstance:I,adapterLocale:E,localeText:d}=l,M=m.useMemo(()=>y({},d,s,r),[d,s,r]),V=m.useMemo(()=>{if(!c)return n||null;const z=new c({locale:E,formats:u,instance:I});if(!z.isMUIAdapter)throw new Error(["MUI X: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/quickstart/#installation"].join(`
494
494
  `));return z},[c,E,u,I,n]),R=m.useMemo(()=>V?{minDate:V.date("1900-01-01T00:00:00.000"),maxDate:V.date("2099-12-31T00:00:00.000")}:null,[V]),h=m.useMemo(()=>({utils:V,adapter:V,defaultDates:R,localeText:M}),[R,V,M]);return C.jsx(oI.Provider,{value:h,children:a})};process.env.NODE_ENV!=="production"&&(nI.displayName="LocalizationProvider"),process.env.NODE_ENV!=="production"&&(nI.propTypes={adapterLocale:i.any,children:i.node,dateAdapter:i.func,dateFormats:i.shape({dayOfMonth:i.string,dayOfMonthFull:i.string,fullDate:i.string,fullTime12h:i.string,fullTime24h:i.string,hours12h:i.string,hours24h:i.string,keyboardDate:i.string,keyboardDateTime12h:i.string,keyboardDateTime24h:i.string,meridiem:i.string,minutes:i.string,month:i.string,monthShort:i.string,normalDate:i.string,normalDateWithWeekday:i.string,seconds:i.string,shortDate:i.string,weekday:i.string,weekdayShort:i.string,year:i.string}),dateLibInstance:i.any,localeText:i.object});const cA=m.createContext(null);process.env.NODE_ENV!=="production"&&(cA.displayName="PickerFieldPrivateContext");function uA(){return m.useContext(cA)}const IA=m.createContext(null);process.env.NODE_ENV!=="production"&&(IA.displayName="PickerContext");const y6=m.createContext(null);process.env.NODE_ENV!=="production"&&(y6.displayName="PickerActionsContext");const mA=m.createContext({ownerState:{isPickerDisabled:!1,isPickerReadOnly:!1,isPickerValueEmpty:!1,isPickerOpen:!1,pickerVariant:"desktop",pickerOrientation:"portrait"},rootRefObject:{current:null},labelId:void 0,dismissViews:()=>{},hasUIView:!0,getCurrentViewMode:()=>"UI",triggerElement:null,viewContainerRole:null,defaultActionBarActions:[],onPopperExited:void 0});process.env.NODE_ENV!=="production"&&(mA.displayName="PickerPrivateContext");const wM=()=>m.useContext(mA);function TM(e){const{ownerState:t}=wM(),r=$t();return m.useMemo(()=>y({},t,{isFieldDisabled:e.disabled??!1,isFieldReadOnly:e.readOnly??!1,isFieldRequired:e.required??!1,fieldDirection:r?"rtl":"ltr"}),[t,e.disabled,e.readOnly,e.required,r])}const v6=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:y({},e)}}}}),EA={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"Open previous view",openNextView:"Open next view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"year view is open, switch to calendar view":"calendar view is open, switch to year view",start:"Start",end:"End",startDate:"Start date",startTime:"Start time",endDate:"End date",endTime:"End time",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",nextStepButtonLabel:"Next",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",timeRangePickerToolbarTitle:"Select time range",clockLabelText:(e,t)=>`Select ${e}. ${t?`Selected time is ${t}`:"No time selected"}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,selectViewText:e=>`Select ${e}`,calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:e=>`Week ${e}`,calendarWeekNumberText:e=>`${e}`,openDatePickerDialogue:e=>e?`Choose date, selected date is ${e}`:"Choose date",openTimePickerDialogue:e=>e?`Choose time, selected time is ${e}`:"Choose time",openRangePickerDialogue:e=>e?`Choose range, selected range is ${e}`:"Choose range",fieldClearLabel:"Clear",timeTableLabel:"pick time",dateTableLabel:"pick date",fieldYearPlaceholder:e=>"Y".repeat(e.digitAmount),fieldMonthPlaceholder:e=>e.contentType==="letter"?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:e=>e.contentType==="letter"?"EEEE":"EE",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",fieldSecondsPlaceholder:()=>"ss",fieldMeridiemPlaceholder:()=>"aa",year:"Year",month:"Month",day:"Day",weekDay:"Week day",hours:"Hours",minutes:"Minutes",seconds:"Seconds",meridiem:"Meridiem",empty:"Empty"},F6=EA;v6(EA);const GM=()=>{const e=m.useContext(oI);if(e===null)throw new Error(["MUI X: Can not find the date and time pickers localization context.","It looks like you forgot to wrap your component in LocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package"].join(`
495
495
  `));if(e.adapter===null)throw new Error(["MUI X: Can not find the date and time pickers adapter from its localization context.","It looks like you forgot to pass a `dateAdapter` to your LocalizationProvider."].join(`
496
496
  `));const t=m.useMemo(()=>y({},F6,e.localeText),[e.localeText]);return m.useMemo(()=>y({},e,{localeText:t}),[e,t])},Ci=()=>GM().adapter,ba=()=>GM().localeText,dA=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],MA=["disablePast","disableFuture","minTime","maxTime","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],x6=["minDateTime","maxDateTime"],K6=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef","unstableStartFieldRef","unstableEndFieldRef","enableAccessibleFieldDOMStructure","disabled","readOnly","dateSeparator","autoFocus","focused"],RA=(e,t)=>m.useMemo(()=>{const r=y({},e),o={},n=s=>{r.hasOwnProperty(s)&&(o[s]=r[s],delete r[s])};return K6.forEach(n),t==="date"?dA.forEach(n):t==="time"?MA.forEach(n):t==="date-time"&&(dA.forEach(n),MA.forEach(n),x6.forEach(n)),{forwardedProps:r,internalProps:o}},[e,t]),hA=(e,t,r)=>{let o=t;return o=e.setHours(o,e.getHours(r)),o=e.setMinutes(o,e.getMinutes(r)),o=e.setSeconds(o,e.getSeconds(r)),o=e.setMilliseconds(o,e.getMilliseconds(r)),o},VA=(e,t)=>e.isValid(t)?t:null,sI=(e,t,r)=>t==null||!e.isValid(t)?r:t,OM=(e,t,r)=>!e.isValid(t)&&t!=null&&!e.isValid(r)&&r!=null?!0:e.isEqual(t,r),zA=(e,t)=>{const o=[e.startOfYear(t)];for(;o.length<12;){const n=o[o.length-1];o.push(e.addMonths(n,1))}return o},lI=(e,t,r)=>r==="date"?e.startOfDay(e.date(void 0,t)):e.date(void 0,t),HM=(e,t)=>{const r=e.formatTokenMap[t];if(r==null)throw new Error([`MUI X: The token "${t}" is not supported by the Date and Time Pickers.`,"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join(`
@@ -500,9 +500,9 @@ return result$$;`.replaceAll("$$",String(rZ)));return rZ+=1,(a,c)=>s(n,a,c)},iZ=
500
500
  `));return e},D6=["elements","areAllSectionsEmpty","defaultValue","label","value","onChange","id","autoFocus","endAdornment","startAdornment","renderSuffix","slots","slotProps","contentEditable","tabIndex","onInput","onPaste","onKeyDown","fullWidth","name","readOnly","inputProps","inputRef","sectionListRef","onFocus","onBlur","classes","ownerState"],$6=e=>Math.round(e*1e5)/1e5,uI=ee("div",{name:"MuiPickersInputBase",slot:"Root"})(({theme:e})=>y({},e.typography.body1,{color:(e.vars||e).palette.text.primary,cursor:"text",padding:0,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",boxSizing:"border-box",letterSpacing:`${$6(.15/16)}em`,variants:[{props:{isInputInFullWidth:!0},style:{width:"100%"}}]})),eR=ee(YA,{name:"MuiPickersInputBase",slot:"SectionsContainer"})(({theme:e})=>({padding:"4px 0 5px",fontFamily:e.typography.fontFamily,fontSize:"inherit",lineHeight:"1.4375em",flexGrow:1,outline:"none",display:"flex",flexWrap:"nowrap",overflow:"hidden",letterSpacing:"inherit",width:"182px",variants:[{props:{fieldDirection:"rtl"},style:{textAlign:"right /*! @noflip */"}},{props:{inputSize:"small"},style:{paddingTop:1}},{props:{hasStartAdornment:!1,isFieldFocused:!1,isFieldValueEmpty:!0},style:{color:"currentColor",opacity:0}},{props:{hasStartAdornment:!1,isFieldFocused:!1,isFieldValueEmpty:!0,inputHasLabel:!1},style:e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:e.palette.mode==="light"?.42:.5}}]})),_6=ee(SA,{name:"MuiPickersInputBase",slot:"Section"})(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit",letterSpacing:"inherit",lineHeight:"1.4375em",display:"inline-block",whiteSpace:"nowrap"})),e0=ee(kA,{name:"MuiPickersInputBase",slot:"SectionContent",overridesResolver:(e,t)=>t.content})(({theme:e})=>({fontFamily:e.typography.fontFamily,lineHeight:"1.4375em",letterSpacing:"inherit",width:"fit-content",outline:"none"})),t0=ee(WA,{name:"MuiPickersInputBase",slot:"Separator"})(()=>({whiteSpace:"pre",letterSpacing:"inherit"})),r0=ee("input",{name:"MuiPickersInputBase",slot:"Input",overridesResolver:(e,t)=>t.hiddenInput})(y({},JY)),i0=ee("div",{name:"MuiPickersInputBase",slot:"ActiveBar"})(({theme:e,ownerState:t})=>({display:"none",position:"absolute",height:2,bottom:2,borderTopLeftRadius:2,borderTopRightRadius:2,transition:e.transitions.create(["width","left"],{duration:e.transitions.duration.shortest}),backgroundColor:(e.vars||e).palette.primary.main,'[data-active-range-position="start"] &, [data-active-range-position="end"] &':{display:"block"},'[data-active-range-position="start"] &':{left:t.sectionOffsets[0]},'[data-active-range-position="end"] &':{left:t.sectionOffsets[1]}})),o0=(e,t)=>{const{isFieldFocused:r,isFieldDisabled:o,isFieldReadOnly:n,hasFieldError:s,inputSize:l,isInputInFullWidth:a,inputColor:c,hasStartAdornment:u,hasEndAdornment:I}=t,E={root:["root",r&&!o&&"focused",o&&"disabled",n&&"readOnly",s&&"error",a&&"fullWidth",`color${ne(c)}`,l==="small"&&"inputSizeSmall",u&&"adornedStart",I&&"adornedEnd"],notchedOutline:["notchedOutline"],input:["input"],sectionsContainer:["sectionsContainer"],sectionContent:["sectionContent"],sectionBefore:["sectionBefore"],sectionAfter:["sectionAfter"],activeBar:["activeBar"]};return ke(E,B6,e)};function UA(e,t,r,o){if(e.content.id){const n=t.current?.querySelectorAll(`[data-sectionindex="${r}"] [data-range-position="${o}"]`);if(n)return Array.from(n).reduce((s,l)=>s+l.offsetWidth,0)}return 0}function n0(e,t){let r=0;if(t.current?.getAttribute("data-active-range-position")==="end")for(let n=e.length-1;n>=e.length/2;n-=1)r+=UA(e[n],t,n,"end");else for(let n=0;n<e.length/2;n+=1)r+=UA(e[n],t,n,"start");return{activeBarWidth:r,sectionOffsets:[t.current?.querySelector('[data-sectionindex="0"]')?.offsetLeft||0,t.current?.querySelector(`[data-sectionindex="${e.length/2}"]`)?.offsetLeft||0]}}const Sa=m.forwardRef(function(t,r){const o=oo({props:t,name:"MuiPickersInputBase"}),{elements:n,areAllSectionsEmpty:s,value:l,onChange:a,id:c,endAdornment:u,startAdornment:I,renderSuffix:E,slots:d,slotProps:M,contentEditable:V,tabIndex:R,onInput:h,onPaste:z,onKeyDown:f,name:Z,readOnly:g,inputProps:p,inputRef:F,sectionListRef:x,onFocus:q,onBlur:v,classes:S,ownerState:b}=o,A=Ie(o,D6),j=cI(),k=m.useRef(null),K=m.useRef(null),Y=m.useRef([]),Q=qt(r,k),P=qt(p?.ref,F),J=gi();if(!J)throw new Error("MUI X: PickersInputBase should always be used inside a PickersTextField component");const W=b??j,U=X=>{J.onFocus?.(X),q?.(X)},T=X=>{U(X)},O=X=>{if(f?.(X),X.key==="Enter"&&!X.defaultMuiPrevented){if(k.current?.dataset.multiInput)return;const ie=k.current?.closest("form"),L=ie?.querySelector('[type="submit"]');if(!ie||!L)return;X.preventDefault(),ie.requestSubmit(L)}},G=X=>{J.onBlur?.(X),v?.(X)};m.useEffect(()=>{J&&J.setAdornedStart(!!I)},[J,I]),m.useEffect(()=>{J&&(s?J.onEmpty():J.onFilled())},[J,s]);const H=o0(S,W),B=d?.root||uI,N=vr({elementType:B,externalSlotProps:M?.root,externalForwardedProps:A,additionalProps:{"aria-invalid":J.error,ref:Q},className:H.root,ownerState:W}),te=d?.input||eR,D=n.some(X=>X.content["data-range-position"]!==void 0);return m.useEffect(()=>{if(!D||!W.isPickerOpen)return;const{activeBarWidth:X,sectionOffsets:ie}=n0(n,k);Y.current=[ie[0],ie[1]],K.current&&(K.current.style.width=`${X}px`)},[n,D,W.isPickerOpen]),C.jsxs(B,y({},N,{children:[I,C.jsx($M,{sectionListRef:x,elements:n,contentEditable:V,tabIndex:R,className:H.sectionsContainer,onFocus:U,onBlur:G,onInput:h,onPaste:z,onKeyDown:O,slots:{root:te,section:_6,sectionContent:e0,sectionSeparator:t0},slotProps:{root:y({},M?.input,{ownerState:W}),sectionContent:{className:Hs.sectionContent},sectionSeparator:({separatorPosition:X})=>({className:X==="before"?Hs.sectionBefore:Hs.sectionAfter})}}),u,E?E(y({},J)):null,C.jsx(r0,y({name:Z,className:H.input,value:l,onChange:a,id:c,"aria-hidden":"true",tabIndex:-1,readOnly:g,required:J.required,disabled:J.disabled,onFocus:T},p,{ref:P})),D&&C.jsx(i0,{className:H.activeBar,ref:K,ownerState:{sectionOffsets:Y.current}})]}))});process.env.NODE_ENV!=="production"&&(Sa.displayName="PickersInputBase"),process.env.NODE_ENV!=="production"&&(Sa.propTypes={areAllSectionsEmpty:i.bool.isRequired,className:i.string,component:i.elementType,contentEditable:i.bool.isRequired,"data-multi-input":i.string,elements:i.arrayOf(i.shape({after:i.object.isRequired,before:i.object.isRequired,container:i.object.isRequired,content:i.object.isRequired})).isRequired,endAdornment:i.node,fullWidth:i.bool,id:i.string,inputProps:i.object,inputRef:_t,label:i.node,margin:i.oneOf(["dense","none","normal"]),name:i.string,onChange:i.func.isRequired,onClick:i.func.isRequired,onInput:i.func.isRequired,onKeyDown:i.func.isRequired,onPaste:i.func.isRequired,ownerState:i.any,readOnly:i.bool,renderSuffix:i.func,sectionListRef:i.oneOfType([i.func,i.shape({current:i.shape({getRoot:i.func.isRequired,getSectionContainer:i.func.isRequired,getSectionContent:i.func.isRequired,getSectionIndexFromDOMElement:i.func.isRequired})})]),slotProps:i.object,slots:i.object,startAdornment:i.node,style:i.object,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),value:i.string.isRequired});function s0(e){return Se("MuiPickersOutlinedInput",e)}const ji=y({},Hs,We("MuiPickersOutlinedInput",["root","notchedOutline","input"])),l0=["children","className","label","notched","shrink"],a0=ee("fieldset",{name:"MuiPickersOutlinedInput",slot:"NotchedOutline"})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%",borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),QA=ee("span")(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit"})),c0=ee("legend",{shouldForwardProp:e=>on(e)&&e!=="notched"})(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:{inputHasLabel:!1},style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:{inputHasLabel:!0},style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:{inputHasLabel:!0,notched:!0},style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]}));function u0(e){const{className:t,label:r,notched:o}=e,n=Ie(e,l0),s=cI();return C.jsx(a0,y({"aria-hidden":!0,className:t},n,{ownerState:s,children:C.jsx(c0,{ownerState:s,notched:o,children:r?C.jsx(QA,{children:r}):C.jsx(QA,{className:"notranslate",children:"​"})})}))}const I0=["label","autoFocus","ownerState","classes","notched"],m0=ee(uI,{name:"MuiPickersOutlinedInput",slot:"Root"})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{padding:"0 14px",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${ji.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${ji.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${ji.focused} .${ji.notchedOutline}`]:{borderStyle:"solid",borderWidth:2},[`&.${ji.disabled}`]:{[`& .${ji.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled},"*":{color:(e.vars||e).palette.action.disabled}},[`&.${ji.error} .${ji.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},variants:Object.keys((e.vars??e).palette).filter(r=>(e.vars??e).palette[r]?.main??!1).map(r=>({props:{inputColor:r},style:{[`&.${ji.focused}:not(.${ji.error}) .${ji.notchedOutline}`]:{borderColor:(e.vars||e).palette[r].main}}}))}}),E0=ee(eR,{name:"MuiPickersOutlinedInput",slot:"SectionsContainer"})({padding:"16.5px 0",variants:[{props:{inputSize:"small"},style:{padding:"8.5px 0"}}]}),d0=e=>{const r=ke({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},s0,e);return y({},e,r)},II=m.forwardRef(function(t,r){const o=oo({props:t,name:"MuiPickersOutlinedInput"}),{label:n,classes:s,notched:l}=o,a=Ie(o,I0),c=gi(),u=d0(s);return C.jsx(Sa,y({slots:{root:m0,input:E0},renderSuffix:I=>C.jsx(u0,{shrink:!!(l||I.adornedStart||I.focused||I.filled),notched:!!(l||I.adornedStart||I.focused||I.filled),className:u.notchedOutline,label:n!=null&&n!==""&&c?.required?C.jsxs(m.Fragment,{children:[n," ","*"]}):n})},a,{label:n,classes:u,ref:r}))});process.env.NODE_ENV!=="production"&&(II.displayName="PickersOutlinedInput"),process.env.NODE_ENV!=="production"&&(II.propTypes={areAllSectionsEmpty:i.bool.isRequired,className:i.string,component:i.elementType,contentEditable:i.bool.isRequired,"data-multi-input":i.string,elements:i.arrayOf(i.shape({after:i.object.isRequired,before:i.object.isRequired,container:i.object.isRequired,content:i.object.isRequired})).isRequired,endAdornment:i.node,fullWidth:i.bool,id:i.string,inputProps:i.object,inputRef:_t,label:i.node,margin:i.oneOf(["dense","none","normal"]),name:i.string,notched:i.bool,onChange:i.func.isRequired,onClick:i.func.isRequired,onInput:i.func.isRequired,onKeyDown:i.func.isRequired,onPaste:i.func.isRequired,ownerState:i.any,readOnly:i.bool,renderSuffix:i.func,sectionListRef:i.oneOfType([i.func,i.shape({current:i.shape({getRoot:i.func.isRequired,getSectionContainer:i.func.isRequired,getSectionContent:i.func.isRequired,getSectionIndexFromDOMElement:i.func.isRequired})})]),slotProps:i.object,slots:i.object,startAdornment:i.node,style:i.object,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),value:i.string.isRequired}),II.muiName="Input";function M0(e){return Se("MuiPickersFilledInput",e)}const jn=y({},Hs,We("MuiPickersFilledInput",["root","underline","input"])),R0=["label","autoFocus","disableUnderline","hiddenLabel","classes"],h0=ee(uI,{name:"MuiPickersFilledInput",slot:"Root",shouldForwardProp:e=>on(e)&&e!=="disableUnderline"})(({theme:e})=>{const t=e.palette.mode==="light",r=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",n=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:n,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${jn.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${jn.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s},variants:[...Object.keys((e.vars??e).palette).filter(l=>(e.vars??e).palette[l].main).map(l=>({props:{inputColor:l,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[l]?.main}`}}})),{props:{disableUnderline:!1},style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${jn.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${jn.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${jn.disabled}, .${jn.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${jn.disabled}:before`]:{borderBottomStyle:"dotted"}}},{props:{hasStartAdornment:!0},style:{paddingLeft:12}},{props:{hasEndAdornment:!0},style:{paddingRight:12}}]}}),V0=ee(eR,{name:"MuiPickersFilledInput",slot:"sectionsContainer",shouldForwardProp:e=>on(e)&&e!=="hiddenLabel"})({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,variants:[{props:{inputSize:"small"},style:{paddingTop:21,paddingBottom:4}},{props:{hasStartAdornment:!0},style:{paddingLeft:0}},{props:{hasEndAdornment:!0},style:{paddingRight:0}},{props:{hiddenLabel:!0},style:{paddingTop:16,paddingBottom:17}},{props:{hiddenLabel:!0,inputSize:"small"},style:{paddingTop:8,paddingBottom:9}}]}),z0=(e,t)=>{const{inputHasUnderline:r}=t,n=ke({root:["root",r&&"underline"],input:["input"]},M0,e);return y({},e,n)},mI=m.forwardRef(function(t,r){const o=oo({props:t,name:"MuiPickersFilledInput"}),{label:n,disableUnderline:s=!1,hiddenLabel:l=!1,classes:a}=o,c=Ie(o,R0),u=cI(),I=y({},u,{inputHasUnderline:!s}),E=z0(a,I);return C.jsx(Sa,y({slots:{root:h0,input:V0},slotProps:{root:{disableUnderline:s},input:{hiddenLabel:l}}},c,{label:n,classes:E,ref:r,ownerState:I}))});process.env.NODE_ENV!=="production"&&(mI.displayName="PickersFilledInput"),process.env.NODE_ENV!=="production"&&(mI.propTypes={areAllSectionsEmpty:i.bool.isRequired,className:i.string,component:i.elementType,contentEditable:i.bool.isRequired,"data-multi-input":i.string,disableUnderline:i.bool,elements:i.arrayOf(i.shape({after:i.object.isRequired,before:i.object.isRequired,container:i.object.isRequired,content:i.object.isRequired})).isRequired,endAdornment:i.node,fullWidth:i.bool,hiddenLabel:i.bool,id:i.string,inputProps:i.object,inputRef:_t,label:i.node,margin:i.oneOf(["dense","none","normal"]),name:i.string,onChange:i.func.isRequired,onClick:i.func.isRequired,onInput:i.func.isRequired,onKeyDown:i.func.isRequired,onPaste:i.func.isRequired,ownerState:i.any,readOnly:i.bool,renderSuffix:i.func,sectionListRef:i.oneOfType([i.func,i.shape({current:i.shape({getRoot:i.func.isRequired,getSectionContainer:i.func.isRequired,getSectionContent:i.func.isRequired,getSectionIndexFromDOMElement:i.func.isRequired})})]),slotProps:i.object,slots:i.object,startAdornment:i.node,style:i.object,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),value:i.string.isRequired}),mI.muiName="Input";function C0(e){return Se("MuiPickersFilledInput",e)}const Wa=y({},Hs,We("MuiPickersInput",["root","underline","input"])),f0=["label","autoFocus","disableUnderline","ownerState","classes"],Z0=ee(uI,{name:"MuiPickersInput",slot:"Root",shouldForwardProp:e=>on(e)&&e!=="disableUnderline"})(({theme:e})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{"label + &":{marginTop:16},variants:[...Object.keys((e.vars??e).palette).filter(o=>(e.vars??e).palette[o].main).map(o=>({props:{inputColor:o,inputHasUnderline:!0},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[o].main}`}}})),{props:{inputHasUnderline:!0},style:{"&::after":{background:"red",left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Wa.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Wa.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Wa.disabled}, .${Wa.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Wa.disabled}:before`]:{borderBottomStyle:"dotted"}}}]}}),p0=(e,t)=>{const{inputHasUnderline:r}=t,n=ke({root:["root",!r&&"underline"],input:["input"]},C0,e);return y({},e,n)},EI=m.forwardRef(function(t,r){const o=oo({props:t,name:"MuiPickersInput"}),{label:n,disableUnderline:s=!1,classes:l}=o,a=Ie(o,f0),c=cI(),u=y({},c,{inputHasUnderline:!s}),I=p0(l,u);return C.jsx(Sa,y({slots:{root:Z0},slotProps:{root:{disableUnderline:s}}},a,{ownerState:u,label:n,classes:I,ref:r}))});process.env.NODE_ENV!=="production"&&(EI.displayName="PickersInput"),process.env.NODE_ENV!=="production"&&(EI.propTypes={areAllSectionsEmpty:i.bool.isRequired,className:i.string,component:i.elementType,contentEditable:i.bool.isRequired,"data-multi-input":i.string,disableUnderline:i.bool,elements:i.arrayOf(i.shape({after:i.object.isRequired,before:i.object.isRequired,container:i.object.isRequired,content:i.object.isRequired})).isRequired,endAdornment:i.node,fullWidth:i.bool,id:i.string,inputProps:i.object,inputRef:_t,label:i.node,margin:i.oneOf(["dense","none","normal"]),name:i.string,onChange:i.func.isRequired,onClick:i.func.isRequired,onInput:i.func.isRequired,onKeyDown:i.func.isRequired,onPaste:i.func.isRequired,ownerState:i.any,readOnly:i.bool,renderSuffix:i.func,sectionListRef:i.oneOfType([i.func,i.shape({current:i.shape({getRoot:i.func.isRequired,getSectionContainer:i.func.isRequired,getSectionContent:i.func.isRequired,getSectionIndexFromDOMElement:i.func.isRequired})})]),slotProps:i.object,slots:i.object,startAdornment:i.node,style:i.object,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),value:i.string.isRequired}),EI.muiName="Input";const q0=["onFocus","onBlur","className","classes","color","disabled","error","variant","required","hiddenLabel","InputProps","inputProps","inputRef","sectionListRef","elements","areAllSectionsEmpty","onClick","onKeyDown","onKeyUp","onPaste","onInput","endAdornment","startAdornment","tabIndex","contentEditable","focused","value","onChange","fullWidth","id","name","helperText","FormHelperTextProps","label","InputLabelProps","data-active-range-position"],A0={standard:EI,filled:mI,outlined:II},g0=ee(ls,{name:"MuiPickersTextField",slot:"Root"})({maxWidth:"100%"}),y0=(e,t)=>{const{isFieldFocused:r,isFieldDisabled:o,isFieldRequired:n}=t;return ke({root:["root",r&&!o&&"focused",o&&"disabled",n&&"required"]},H6,e)},dI=m.forwardRef(function(t,r){const o=oo({props:t,name:"MuiPickersTextField"}),{onFocus:n,onBlur:s,className:l,classes:a,color:c="primary",disabled:u=!1,error:I=!1,variant:E="outlined",required:d=!1,hiddenLabel:M=!1,InputProps:V,inputProps:R,inputRef:h,sectionListRef:z,elements:f,areAllSectionsEmpty:Z,onClick:g,onKeyDown:p,onKeyUp:F,onPaste:x,onInput:q,endAdornment:v,startAdornment:S,tabIndex:b,contentEditable:A,focused:j,value:k,onChange:K,fullWidth:Y,id:Q,name:P,helperText:J,FormHelperTextProps:W,label:U,InputLabelProps:T,"data-active-range-position":O}=o,G=Ie(o,q0),H=m.useRef(null),B=qt(r,H),N=oi(Q),te=J&&N?`${N}-helper-text`:void 0,D=U&&N?`${N}-label`:void 0,X=TM({disabled:o.disabled,required:o.required,readOnly:V?.readOnly}),ie=m.useMemo(()=>y({},X,{isFieldValueEmpty:Z,isFieldFocused:j??!1,hasFieldError:I??!1,inputSize:o.size??"medium",inputColor:c??"primary",isInputInFullWidth:Y??!1,hasStartAdornment:!!(S??V?.startAdornment),hasEndAdornment:!!(v??V?.endAdornment),inputHasLabel:!!U}),[X,Z,j,I,o.size,c,Y,S,v,V?.startAdornment,V?.endAdornment,U]),L=y0(a,ie),se=A0[E],oe={};return E==="outlined"?(T&&typeof T.shrink<"u"&&(oe.notched=T.shrink),oe.label=U):E==="filled"&&(oe.hiddenLabel=M),C.jsx(_M.Provider,{value:ie,children:C.jsxs(g0,y({className:me(L.root,l),ref:B,focused:j,disabled:u,variant:E,error:I,color:c,fullWidth:Y,required:d,ownerState:ie},G,{children:[U!=null&&U!==""&&C.jsx(us,y({htmlFor:N,id:D},T,{children:U})),C.jsx(se,y({elements:f,areAllSectionsEmpty:Z,onClick:g,onKeyDown:p,onKeyUp:F,onInput:q,onPaste:x,onFocus:n,onBlur:s,endAdornment:v,startAdornment:S,tabIndex:b,contentEditable:A,value:k,onChange:K,id:N,fullWidth:Y,inputProps:R,inputRef:h,sectionListRef:z,label:U,name:P,role:"group","aria-labelledby":D,"aria-describedby":te,"aria-live":te?"polite":void 0,"data-active-range-position":O},oe,V)),J&&C.jsx(iE,y({id:te},W,{children:J}))]}))})});process.env.NODE_ENV!=="production"&&(dI.displayName="PickersTextField"),process.env.NODE_ENV!=="production"&&(dI.propTypes={areAllSectionsEmpty:i.bool.isRequired,className:i.string,color:i.oneOf(["error","info","primary","secondary","success","warning"]),component:i.elementType,contentEditable:i.bool.isRequired,disabled:i.bool.isRequired,elements:i.arrayOf(i.shape({after:i.object.isRequired,before:i.object.isRequired,container:i.object.isRequired,content:i.object.isRequired})).isRequired,endAdornment:i.node,error:i.bool.isRequired,focused:i.bool,FormHelperTextProps:i.object,fullWidth:i.bool,helperText:i.node,hiddenLabel:i.bool,id:i.string,InputLabelProps:i.object,inputProps:i.object,InputProps:i.object,inputRef:_t,label:i.node,margin:i.oneOf(["dense","none","normal"]),name:i.string,onBlur:i.func.isRequired,onChange:i.func.isRequired,onClick:i.func.isRequired,onFocus:i.func.isRequired,onInput:i.func.isRequired,onKeyDown:i.func.isRequired,onPaste:i.func.isRequired,readOnly:i.bool,required:i.bool,sectionListRef:i.oneOfType([i.func,i.shape({current:i.shape({getRoot:i.func.isRequired,getSectionContainer:i.func.isRequired,getSectionContent:i.func.isRequired,getSectionIndexFromDOMElement:i.func.isRequired})})]),size:i.oneOf(["medium","small"]),startAdornment:i.node,style:i.object,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),value:i.string.isRequired,variant:i.oneOf(["filled","outlined","standard"])});const v0=["enableAccessibleFieldDOMStructure"],F0=["InputProps","readOnly","onClear","clearable","clearButtonPosition","openPickerButtonPosition","openPickerAriaLabel"],x0=["onPaste","onKeyDown","inputMode","readOnly","InputProps","inputProps","inputRef","onClear","clearable","clearButtonPosition","openPickerButtonPosition","openPickerAriaLabel"],K0=["ownerState"],b0=["ownerState"],Y0=["ownerState"],S0=["ownerState"],W0=["InputProps","inputProps"],k0=e=>{let{enableAccessibleFieldDOMStructure:t}=e,r=Ie(e,v0);if(t){const{InputProps:h,readOnly:z,onClear:f,clearable:Z,clearButtonPosition:g,openPickerButtonPosition:p,openPickerAriaLabel:F}=r,x=Ie(r,F0);return{clearable:Z,onClear:f,clearButtonPosition:g,openPickerButtonPosition:p,openPickerAriaLabel:F,textFieldProps:y({},x,{InputProps:y({},h??{},{readOnly:z})})}}const{onPaste:o,onKeyDown:n,inputMode:s,readOnly:l,InputProps:a,inputProps:c,inputRef:u,onClear:I,clearable:E,clearButtonPosition:d,openPickerButtonPosition:M,openPickerAriaLabel:V}=r,R=Ie(r,x0);return{clearable:E,onClear:I,clearButtonPosition:d,openPickerButtonPosition:M,openPickerAriaLabel:V,textFieldProps:y({},R,{InputProps:y({},a??{},{readOnly:l}),inputProps:y({},c??{},{inputMode:s,onPaste:o,onKeyDown:n,ref:u})})}},tR=m.createContext({slots:{},slotProps:{},inputRef:void 0});process.env.NODE_ENV!=="production"&&(tR.displayName="PickerFieldUIContext");function JA(e){const{slots:t,slotProps:r,fieldResponse:o,defaultOpenPickerIcon:n}=e,s=ba(),l=DM(),a=m.useContext(tR),{textFieldProps:c,onClear:u,clearable:I,openPickerAriaLabel:E,clearButtonPosition:d="end",openPickerButtonPosition:M="end"}=k0(o),V=TM(c),R=Ne(J=>{J.preventDefault(),l?.setOpen(W=>!W)}),h=l?l.triggerStatus:"hidden",z=I?d:null,f=h!=="hidden"?M:null,Z=t?.textField??a.slots.textField??(o.enableAccessibleFieldDOMStructure===!1?Cn:dI),g=t?.inputAdornment??a.slots.inputAdornment??Lc,p=vr({elementType:g,externalSlotProps:MI(a.slotProps.inputAdornment,r?.inputAdornment),additionalProps:{position:"start"},ownerState:y({},V,{position:"start"})}),F=Ie(p,K0),x=vr({elementType:g,externalSlotProps:r?.inputAdornment,additionalProps:{position:"end"},ownerState:y({},V,{position:"end"})}),q=Ie(x,b0),v=a.slots.openPickerButton??Zr,S=vr({elementType:v,externalSlotProps:a.slotProps.openPickerButton,additionalProps:{disabled:h==="disabled",onClick:R,"aria-label":E,edge:c.variant!=="standard"?f:!1},ownerState:V}),b=Ie(S,Y0),A=a.slots.openPickerIcon??n,j=vr({elementType:A,externalSlotProps:a.slotProps.openPickerIcon,ownerState:V}),k=t?.clearButton??a.slots.clearButton??Zr,K=vr({elementType:k,externalSlotProps:MI(a.slotProps.clearButton,r?.clearButton),className:"clearButton",additionalProps:{title:s.fieldClearLabel,tabIndex:-1,onClick:u,disabled:o.disabled||o.readOnly,edge:c.variant!=="standard"&&z!==f?z:!1},ownerState:V}),Y=Ie(K,S0),Q=t?.clearIcon??a.slots.clearIcon??A6,P=vr({elementType:Q,externalSlotProps:MI(a.slotProps.clearIcon,r?.clearIcon),additionalProps:{fontSize:"small"},ownerState:V});return c.ref=qt(c.ref,l?.rootRef),c.InputProps||(c.InputProps={}),l&&(c.InputProps.ref=l.triggerRef),!c.InputProps?.startAdornment&&(z==="start"||f==="start")&&(c.InputProps.startAdornment=C.jsxs(g,y({},F,{children:[f==="start"&&C.jsx(v,y({},b,{children:C.jsx(A,y({},j))})),z==="start"&&C.jsx(k,y({},Y,{children:C.jsx(Q,y({},P))}))]}))),!c.InputProps?.endAdornment&&(z==="end"||f==="end")&&(c.InputProps.endAdornment=C.jsxs(g,y({},q,{children:[z==="end"&&C.jsx(k,y({},Y,{children:C.jsx(Q,y({},P))})),f==="end"&&C.jsx(v,y({},b,{children:C.jsx(A,y({},j))}))]}))),z!=null&&(c.sx=[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(c.sx)?c.sx:[c.sx]]),C.jsx(Z,y({},c))}function MI(e,t){return e?t?r=>y({},gc(t,r),gc(e,r)):e:t}function PA(e){const{ref:t,externalForwardedProps:r,slotProps:o}=e,n=m.useContext(tR),s=DM(),l=TM(r),{InputProps:a,inputProps:c}=r,u=Ie(r,W0),I=vr({elementType:dI,externalSlotProps:MI(n.slotProps.textField,o?.textField),externalForwardedProps:u,additionalProps:{ref:t,sx:s?.rootSx,label:s?.label,name:s?.name,className:s?.rootClassName,inputRef:n.inputRef},ownerState:l});return I.inputProps=y({},c,I.inputProps),I.InputProps=y({},a,I.InputProps),I}const wA=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?wA(t.shadowRoot):t:null},fi=e=>wA(cr(e)),j0=({name:e,timezone:t,value:r,defaultValue:o,referenceDate:n,onChange:s,valueManager:l})=>{const a=Ci(),[c,u]=so({name:e,state:"value",controlled:r,default:o??l.emptyValue}),I=m.useMemo(()=>l.getTimezone(a,c),[a,l,c]),E=Ne(R=>I==null?R:l.setTimezone(a,I,R)),d=m.useMemo(()=>t||I||(n?a.getTimezone(Array.isArray(n)?n[0]:n):"default"),[t,I,n,a]),M=m.useMemo(()=>l.setTimezone(a,d,c),[l,a,d,c]),V=Ne((R,...h)=>{const z=E(R);u(z),s?.(z,...h)});return{value:M,handleValueChange:V,timezone:d}},Bs=e=>e.saveQuery!=null,TA=({stateResponse:{localizedDigits:e,sectionsValueBoundaries:t,state:r,timezone:o,setCharacterQuery:n,setTempAndroidValueStr:s,updateSectionValue:l}})=>{const a=Ci(),c=({keyPressed:E,sectionIndex:d},M,V)=>{const R=E.toLowerCase(),h=r.sections[d];if(r.characterQuery!=null&&(!V||V(r.characterQuery.value))&&r.characterQuery.sectionIndex===d){const f=`${r.characterQuery.value}${R}`,Z=M(f,h);if(!Bs(Z))return n({sectionIndex:d,value:f,sectionType:h.type}),Z}const z=M(R,h);return Bs(z)&&!z.saveQuery?(n(null),null):(n({sectionIndex:d,value:R,sectionType:h.type}),Bs(z)?null:z)},u=E=>{const d=(R,h,z)=>{const f=h.filter(Z=>Z.toLowerCase().startsWith(z));return f.length===0?{saveQuery:!1}:{sectionValue:f[0],shouldGoToNextSection:f.length===1}},M=(R,h,z,f)=>{const Z=g=>CA(a,o,h.type,g);if(h.contentType==="letter")return d(h.format,Z(h.format),R);if(z&&f!=null&&HM(a,z).contentType==="letter"){const g=Z(z),p=d(z,g,R);return Bs(p)?{saveQuery:!1}:y({},p,{sectionValue:f(p.sectionValue,g)})}return{saveQuery:!1}};return c(E,(R,h)=>{switch(h.type){case"month":{const z=f=>qA(a,f,a.formats.month,h.format);return M(R,h,a.formats.month,z)}case"weekDay":{const z=(f,Z)=>Z.indexOf(f).toString();return M(R,h,a.formats.weekday,z)}case"meridiem":return M(R,h);default:return{saveQuery:!1}}})},I=E=>{const d=({queryValue:V,skipIfBelowMinimum:R,section:h})=>{const z=kn(V,e),f=Number(z),Z=t[h.type]({currentDate:null,format:h.format,contentType:h.contentType});if(f>Z.maximum)return{saveQuery:!1};if(R&&f<Z.minimum)return{saveQuery:!0};const g=f*10>Z.maximum||z.length===Z.maximum.toString().length;return{sectionValue:pA(a,f,Z,e,h),shouldGoToNextSection:g}};return c(E,(V,R)=>{if(R.contentType==="digit"||R.contentType==="digit-with-letter")return d({queryValue:V,skipIfBelowMinimum:!1,section:R});if(R.type==="month"){AA(a,"digit","month","MM");const h=d({queryValue:V,skipIfBelowMinimum:!0,section:{type:R.type,format:"MM",hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2}});if(Bs(h))return h;const z=qA(a,h.sectionValue,"MM",R.format);return y({},h,{sectionValue:z})}if(R.type==="weekDay"){const h=d({queryValue:V,skipIfBelowMinimum:!0,section:R});if(Bs(h))return h;const z=aI(a,R.format)[Number(h.sectionValue)-1];return y({},h,{sectionValue:z})}return{saveQuery:!1}},V=>ZA(V,e))};return Ne(E=>{const d=r.sections[E.sectionIndex],V=ZA(E.keyPressed,e)?I(y({},E,{keyPressed:BM(E.keyPressed,e)})):u(E);if(V==null){s(null);return}l({section:d,newSectionValue:V.sectionValue,shouldGoToNextSection:V.shouldGoToNextSection})})},GA=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),OA=(e,t)=>(r,o)=>e?t.isAfter(r,o):GA(r,t)>GA(o,t),Un={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},U0=e=>Math.max(...e.map(t=>Un[t.type]??1)),ka=(e,t,r)=>{if(t===Un.year)return e.startOfYear(r);if(t===Un.month)return e.startOfMonth(r);if(t===Un.day)return e.startOfDay(r);let o=r;return t<Un.minutes&&(o=e.setMinutes(o,0)),t<Un.seconds&&(o=e.setSeconds(o,0)),t<Un.milliseconds&&(o=e.setMilliseconds(o,0)),o},HA=({props:e,adapter:t,granularity:r,timezone:o,getTodayDate:n})=>{let s=n?n():ka(t,r,lI(t,o));e.minDate!=null&&t.isAfterDay(e.minDate,s)&&(s=ka(t,r,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,s)&&(s=ka(t,r,e.maxDate));const l=OA(e.disableIgnoringDatePartForTimeValidation??!1,t);return e.minTime!=null&&l(e.minTime,s)&&(s=ka(t,r,e.disableIgnoringDatePartForTimeValidation?e.minTime:hA(t,s,e.minTime))),e.maxTime!=null&&l(s,e.maxTime)&&(s=ka(t,r,e.disableIgnoringDatePartForTimeValidation?e.maxTime:hA(t,s,e.maxTime))),s},Q0=["value","referenceDate"],RI={emptyValue:null,getTodayValue:lI,getInitialReferenceValue:e=>{let{value:t,referenceDate:r}=e,o=Ie(e,Q0);return o.adapter.isValid(t)?t:r??HA(o)},cleanValue:VA,areValuesEqual:OM,isSameError:(e,t)=>e===t,hasError:e=>e!=null,defaultErrorState:null,getTimezone:(e,t)=>e.isValid(t)?e.getTimezone(t):null,setTimezone:(e,t,r)=>r==null?null:e.setTimezone(r,t)},J0={updateReferenceValue:(e,t,r)=>e.isValid(t)?t:r,getSectionsFromValue:(e,t)=>t(e),getV7HiddenInputValueFromSections:gA,getV6InputValueFromSections:yA,parseValueStr:(e,t,r)=>r(e.trim(),t),getDateFromSection:e=>e,getDateSectionsFromValue:e=>e,updateDateInValue:(e,t,r)=>r,clearDateSections:e=>e.map(t=>y({},t,{value:""}))},hI=({props:e,value:t,timezone:r,adapter:o})=>{if(t===null)return null;const{shouldDisableDate:n,shouldDisableMonth:s,shouldDisableYear:l,disablePast:a,disableFuture:c,minDate:u,maxDate:I}=e,E=o.date(void 0,r);switch(!0){case!o.isValid(t):return"invalidDate";case!!(n&&n(t)):return"shouldDisableDate";case!!(s&&s(t)):return"shouldDisableMonth";case!!(l&&l(t)):return"shouldDisableYear";case!!(c&&o.isAfterDay(t,E)):return"disableFuture";case!!(a&&o.isBeforeDay(t,E)):return"disablePast";case!!(u&&o.isBeforeDay(t,u)):return"minDate";case!!(I&&o.isAfterDay(t,I)):return"maxDate";default:return null}};hI.valueManager=RI;const BA=({adapter:e,value:t,timezone:r,props:o})=>{if(t===null)return null;const{minTime:n,maxTime:s,minutesStep:l,shouldDisableTime:a,disableIgnoringDatePartForTimeValidation:c=!1,disablePast:u,disableFuture:I}=o,E=e.date(void 0,r),d=OA(c,e);switch(!0){case!e.isValid(t):return"invalidDate";case!!(n&&d(n,t)):return"minTime";case!!(s&&d(t,s)):return"maxTime";case!!(I&&e.isAfter(t,E)):return"disableFuture";case!!(u&&e.isBefore(t,E)):return"disablePast";case!!(a&&a(t,"hours")):return"shouldDisableTime-hours";case!!(a&&a(t,"minutes")):return"shouldDisableTime-minutes";case!!(a&&a(t,"seconds")):return"shouldDisableTime-seconds";case!!(l&&e.getMinutes(t)%l!==0):return"minutesStep";default:return null}};BA.valueManager=RI;const LA=({adapter:e,value:t,timezone:r,props:o})=>{const n=hI({adapter:e,value:t,timezone:r,props:o});return n!==null?n:BA({adapter:e,value:t,timezone:r,props:o})};LA.valueManager=RI;function P0(e){const{props:t,validator:r,value:o,timezone:n,onError:s}=e,l=Ci(),a=m.useRef(r.valueManager.defaultErrorState),c=r({adapter:l,value:o,timezone:n,props:t}),u=r.valueManager.hasError(c);m.useEffect(()=>{s&&!r.valueManager.isSameError(c,a.current)&&s(c,o),a.current=c},[r,s,c,o]);const I=Ne(E=>r({adapter:l,value:E,timezone:n,props:t}));return{validationError:c,hasValidationError:u,getValidationErrorForNewValue:I}}const w0=5e3,XA=e=>{const t=Ci(),r=ba(),o=$t(),{manager:{validator:n,valueType:s,internal_valueManager:l,internal_fieldValueManager:a},internalPropsWithDefaults:c,internalPropsWithDefaults:{value:u,defaultValue:I,referenceDate:E,onChange:d,format:M,formatDensity:V="dense",selectedSections:R,onSelectedSectionsChange:h,shouldRespectLeadingZeros:z=!1,timezone:f,enableAccessibleFieldDOMStructure:Z=!0},forwardedProps:{error:g}}=e,{value:p,handleValueChange:F,timezone:x}=j0({name:"a field component",timezone:f,value:u,defaultValue:I,referenceDate:E,onChange:d,valueManager:l}),q=m.useRef(p);m.useEffect(()=>{q.current=p},[p]);const{hasValidationError:v}=P0({props:c,validator:n,timezone:x,value:p,onError:c.onError}),S=m.useMemo(()=>g!==void 0?g:v,[v,g]),b=m.useMemo(()=>Y6(t),[t]),A=m.useMemo(()=>k6(t,b,x),[t,b,x]),j=m.useCallback($=>a.getSectionsFromValue($,Re=>bA({adapter:t,localeText:r,localizedDigits:b,format:M,date:Re,formatDensity:V,shouldRespectLeadingZeros:z,enableAccessibleFieldDOMStructure:Z,isRtl:o})),[a,M,r,b,o,z,t,V,Z]),[k,K]=m.useState(()=>{const $=j(p);FA($,s);const Re={sections:$,lastExternalValue:p,lastSectionsDependencies:{format:M,isRtl:o,locale:t.locale},tempValueStrAndroid:null,characterQuery:null},_=U0($),Ze=l.getInitialReferenceValue({referenceDate:E,value:p,adapter:t,props:c,granularity:_,timezone:x});return y({},Re,{referenceValue:Ze})}),[Y,Q]=so({controlled:R,default:null,name:"useField",state:"selectedSections"}),P=$=>{Q($),h?.($)},J=m.useMemo(()=>NM(Y,k.sections),[Y,k.sections]),W=J==="all"?0:J,U=m.useMemo(()=>Q6(k.sections,o&&!Z),[k.sections,o,Z]),T=m.useMemo(()=>k.sections.every($=>$.value===""),[k.sections]),O=$=>{const Re={validationError:n({adapter:t,value:$,timezone:x,props:c})};F($,Re)},G=($,Re)=>{const _=[...k.sections];return _[$]=y({},_[$],{value:Re,modified:!0}),_},H=m.useRef(null),B=si(),N=$=>{W!=null&&(H.current={sectionIndex:W,value:$},B.start(0,()=>{H.current=null}))},te=()=>{l.areValuesEqual(t,p,l.emptyValue)?K($=>y({},$,{sections:$.sections.map(Re=>y({},Re,{value:""})),tempValueStrAndroid:null,characterQuery:null})):(K($=>y({},$,{characterQuery:null})),O(l.emptyValue))},D=()=>{if(W==null)return;const $=k.sections[W];$.value!==""&&(N(""),a.getDateFromSection(p,$)===null?K(Re=>y({},Re,{sections:G(W,""),tempValueStrAndroid:null,characterQuery:null})):(K(Re=>y({},Re,{characterQuery:null})),O(a.updateDateInValue(p,$,null))))},X=$=>{const Re=(Ze,Ce)=>{const Ae=t.parse(Ze,M);if(!t.isValid(Ae))return null;const he=bA({adapter:t,localeText:r,localizedDigits:b,format:M,date:Ae,formatDensity:V,shouldRespectLeadingZeros:z,enableAccessibleFieldDOMStructure:Z,isRtl:o});return KA(t,Ae,he,Ce,!1)},_=a.parseValueStr($,k.referenceValue,Re);O(_)},ie=si(),L=({section:$,newSectionValue:Re,shouldGoToNextSection:_})=>{B.clear(),ie.clear();const Ze=a.getDateFromSection(p,$);_&&W<k.sections.length-1&&P(W+1);const Ce=G(W,Re),Ae=a.getDateSectionsFromValue(Ce,$),he=W6(t,Ae,b);if(t.isValid(he)){const Je=KA(t,he,Ae,a.getDateFromSection(k.referenceValue,$),!0);return Ze==null&&ie.start(0,()=>{q.current===p&&K(Fe=>y({},Fe,{sections:a.clearDateSections(k.sections,$),tempValueStrAndroid:null}))}),O(a.updateDateInValue(p,$,Je))}return Ae.every(Je=>Je.value!=="")&&(Ze==null||t.isValid(Ze))?(N(Re),O(a.updateDateInValue(p,$,he))):Ze!=null?(N(Re),O(a.updateDateInValue(p,$,null))):K(Je=>y({},Je,{sections:Ce,tempValueStrAndroid:null}))},se=$=>K(Re=>y({},Re,{tempValueStrAndroid:$})),oe=Ne($=>{K(Re=>y({},Re,{characterQuery:$}))});if(p!==k.lastExternalValue){let $;H.current!=null&&!t.isValid(a.getDateFromSection(p,k.sections[H.current.sectionIndex]))?$=G(H.current.sectionIndex,H.current.value):$=j(p),K(Re=>y({},Re,{lastExternalValue:p,sections:$,sectionsDependencies:{format:M,isRtl:o,locale:t.locale},referenceValue:a.updateReferenceValue(t,p,Re.referenceValue),tempValueStrAndroid:null}))}if(o!==k.lastSectionsDependencies.isRtl||M!==k.lastSectionsDependencies.format||t.locale!==k.lastSectionsDependencies.locale){const $=j(p);FA($,s),K(Re=>y({},Re,{lastSectionsDependencies:{format:M,isRtl:o,locale:t.locale},sections:$,tempValueStrAndroid:null,characterQuery:null}))}k.characterQuery!=null&&!S&&W==null&&oe(null),k.characterQuery!=null&&k.sections[k.characterQuery.sectionIndex]?.type!==k.characterQuery.sectionType&&oe(null),m.useEffect(()=>{H.current!=null&&(H.current=null)});const de=si();return m.useEffect(()=>(k.characterQuery!=null&&de.start(w0,()=>oe(null)),()=>{}),[k.characterQuery,oe,de]),m.useEffect(()=>{k.tempValueStrAndroid!=null&&W!=null&&D()},[k.sections]),{activeSectionIndex:W,areAllSectionsEmpty:T,error:S,localizedDigits:b,parsedSelectedSections:J,sectionOrder:U,sectionsValueBoundaries:A,state:k,timezone:x,value:p,clearValue:te,clearActiveSection:D,setCharacterQuery:oe,setSelectedSections:P,setTempAndroidValueStr:se,updateSectionValue:L,updateValueFromValueStr:X,getSectionsFromValue:j}};function NA(e){const{manager:{internal_useApplyDefaultValuesToFieldInternalProps:t},internalProps:r,skipContextFieldRefAssignment:o}=e,n=DM(),s=uA(),l=qt(r.unstableFieldRef,o?null:s?.fieldRef),a=n?.setValue,c=m.useCallback((I,E)=>a?.(I,{validationError:E.validationError,shouldClose:!1}),[a]),u=m.useMemo(()=>s!=null&&n!=null?y({value:n.value,onChange:c,timezone:n.timezone,disabled:n.disabled,readOnly:n.readOnly,autoFocus:n.autoFocus&&!n.open,focused:n.open?!0:void 0,format:n.fieldFormat,formatDensity:s.formatDensity,enableAccessibleFieldDOMStructure:s.enableAccessibleFieldDOMStructure,selectedSections:s.selectedSections,onSelectedSectionsChange:s.onSelectedSectionsChange,unstableFieldRef:l},r):r,[n,s,r,c,l]);return t(u)}function rR(e){const{focused:t,domGetters:r,stateResponse:{parsedSelectedSections:o,state:n}}=e;if(!r.isReady())return;const s=cr(r.getRoot()).getSelection();if(!s)return;if(o==null){s.rangeCount>0&&r.getRoot().contains(s.getRangeAt(0).startContainer)&&s.removeAllRanges(),t&&r.getRoot().blur();return}if(!r.getRoot().contains(fi(r.getRoot())))return;const l=new window.Range;let a;o==="all"?a=r.getRoot():n.sections[o].type==="empty"?a=r.getSectionContainer(o):a=r.getSectionContent(o),l.selectNodeContents(a),a.focus(),s.removeAllRanges(),s.addRange(l)}function DA(e){const t=Ci(),{manager:{internal_fieldValueManager:r},internalPropsWithDefaults:{minutesStep:o,disabled:n,readOnly:s},stateResponse:{state:l,value:a,activeSectionIndex:c,parsedSelectedSections:u,sectionsValueBoundaries:I,localizedDigits:E,timezone:d,sectionOrder:M,clearValue:V,clearActiveSection:R,setSelectedSections:h,updateSectionValue:z}}=e;return Ne(f=>{if(!n)switch(!0){case((f.ctrlKey||f.metaKey)&&String.fromCharCode(f.keyCode)==="A"&&!f.shiftKey&&!f.altKey):{f.preventDefault(),h("all");break}case f.key==="ArrowRight":{if(f.preventDefault(),u==null)h(M.startIndex);else if(u==="all")h(M.endIndex);else{const Z=M.neighbors[u].rightIndex;Z!==null&&h(Z)}break}case f.key==="ArrowLeft":{if(f.preventDefault(),u==null)h(M.endIndex);else if(u==="all")h(M.startIndex);else{const Z=M.neighbors[u].leftIndex;Z!==null&&h(Z)}break}case f.key==="Delete":{if(f.preventDefault(),s)break;u==null||u==="all"?V():R();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(f.key):{if(f.preventDefault(),s||c==null)break;u==="all"&&h(c);const Z=l.sections[c],g=G0(t,d,Z,f.key,I,E,r.getDateFromSection(a,Z),{minutesStep:o});z({section:Z,newSectionValue:g,shouldGoToNextSection:!1});break}}})}function T0(e){switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}}function G0(e,t,r,o,n,s,l,a){const c=T0(o),u=o==="Home",I=o==="End",E=r.value===""||u||I,d=()=>{const V=n[r.type]({currentDate:l,format:r.format,contentType:r.contentType}),R=f=>pA(e,f,V,s,r),h=r.type==="minutes"&&a?.minutesStep?a.minutesStep:1;let z;if(E){if(r.type==="year"&&!I&&!u)return e.formatByString(e.date(void 0,t),r.format);c>0||u?z=V.minimum:z=V.maximum}else z=parseInt(kn(r.value,s),10)+c*h;return z%h!==0&&((c<0||u)&&(z+=h-(h+z)%h),(c>0||I)&&(z-=z%h)),z>V.maximum?R(V.minimum+(z-V.maximum-1)%(V.maximum-V.minimum+1)):z<V.minimum?R(V.maximum-(V.minimum-z-1)%(V.maximum-V.minimum+1)):R(z)},M=()=>{const V=CA(e,t,r.type,r.format);if(V.length===0)return r.value;if(E)return c>0||u?V[0]:V[V.length-1];const z=((V.indexOf(r.value)+c)%V.length+V.length)%V.length;return V[z]};return r.contentType==="digit"||r.contentType==="digit-with-letter"?d():M()}function O0(e){const{manager:t,focused:r,setFocused:o,domGetters:n,stateResponse:s,applyCharacterEditing:l,internalPropsWithDefaults:a,stateResponse:{parsedSelectedSections:c,sectionOrder:u,state:I,clearValue:E,setCharacterQuery:d,setSelectedSections:M,updateValueFromValueStr:V},internalPropsWithDefaults:{disabled:R=!1,readOnly:h=!1}}=e,z=DA({manager:t,internalPropsWithDefaults:a,stateResponse:s}),f=si(),Z=Ne(q=>{R||!n.isReady()||(o(!0),c==="all"?f.start(0,()=>{const v=document.getSelection().getRangeAt(0).startOffset;if(v===0){M(u.startIndex);return}let S=0,b=0;for(;b<v&&S<I.sections.length;){const A=I.sections[S];S+=1,b+=`${A.startSeparator}${A.value||A.placeholder}${A.endSeparator}`.length}M(S-1)}):r?n.getRoot().contains(q.target)||M(u.startIndex):(o(!0),M(u.startIndex)))}),g=Ne(q=>{if(!n.isReady()||c!=="all")return;const S=q.target.textContent??"";n.getRoot().innerHTML=I.sections.map(b=>`${b.startSeparator}${b.value||b.placeholder}${b.endSeparator}`).join(""),rR({focused:r,domGetters:n,stateResponse:s}),S.length===0||S.charCodeAt(0)===10?(E(),M("all")):S.length>1?V(S):(c==="all"&&M(0),l({keyPressed:S,sectionIndex:0}))}),p=Ne(q=>{if(h||c!=="all"){q.preventDefault();return}const v=q.clipboardData.getData("text");q.preventDefault(),d(null),V(v)}),F=Ne(()=>{if(r||R||!n.isReady())return;const q=fi(n.getRoot());o(!0),n.getSectionIndexFromDOMElement(q)!=null||M(u.startIndex)}),x=Ne(()=>{setTimeout(()=>{if(!n.isReady())return;const q=fi(n.getRoot());!n.getRoot().contains(q)&&(o(!1),M(null))})});return{onKeyDown:z,onBlur:x,onFocus:F,onClick:Z,onPaste:p,onInput:g,contentEditable:c==="all",tabIndex:c===0?-1:0}}function H0(e){const{manager:{internal_fieldValueManager:t},stateResponse:{areAllSectionsEmpty:r,state:o,updateValueFromValueStr:n}}=e,s=Ne(a=>{n(a.target.value)});return{value:m.useMemo(()=>r?"":t.getV7HiddenInputValueFromSections(o.sections),[r,o.sections,t]),onChange:s}}function B0(e){const{stateResponse:{setSelectedSections:t},internalPropsWithDefaults:{disabled:r=!1}}=e,o=m.useCallback(n=>s=>{r||s.isDefaultPrevented()||t(n)},[r,t]);return m.useCallback(n=>({"data-sectionindex":n,onClick:o(n)}),[o])}function L0(e){const t=Ci(),r=ba(),o=oi(),{focused:n,domGetters:s,stateResponse:l,applyCharacterEditing:a,manager:{internal_fieldValueManager:c},stateResponse:{parsedSelectedSections:u,sectionsValueBoundaries:I,state:E,value:d,clearActiveSection:M,setCharacterQuery:V,setSelectedSections:R,updateSectionValue:h,updateValueFromValueStr:z},internalPropsWithDefaults:{disabled:f=!1,readOnly:Z=!1}}=e,g=u==="all",p=!g&&!f&&!Z,F=Ne(A=>{if(!s.isReady())return;const j=E.sections[A];s.getSectionContent(A).innerHTML=j.value||j.placeholder,rR({focused:n,domGetters:s,stateResponse:l})}),x=Ne(A=>{if(!s.isReady())return;const j=A.target,k=j.textContent??"",K=s.getSectionIndexFromDOMElement(j),Y=E.sections[K];if(Z){F(K);return}if(k.length===0){if(Y.value===""){F(K);return}const Q=A.nativeEvent.inputType;if(Q==="insertParagraph"||Q==="insertLineBreak"){F(K);return}F(K),M();return}a({keyPressed:k,sectionIndex:K}),F(K)}),q=Ne(A=>{A.preventDefault()}),v=Ne(A=>{if(A.preventDefault(),Z||f||typeof u!="number")return;const j=E.sections[u],k=A.clipboardData.getData("text"),K=/^[a-zA-Z]+$/.test(k),Y=/^[0-9]+$/.test(k),Q=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(k);j.contentType==="letter"&&K||j.contentType==="digit"&&Y||j.contentType==="digit-with-letter"&&Q?(V(null),h({section:j,newSectionValue:k,shouldGoToNextSection:!0})):!K&&!Y&&(V(null),z(k))}),S=Ne(A=>{A.preventDefault(),A.dataTransfer.dropEffect="none"}),b=m.useCallback(A=>()=>{f||R(A)},[f,R]);return m.useCallback((A,j)=>{const k=I[A.type]({currentDate:c.getDateFromSection(d,A),contentType:A.contentType,format:A.format});return{onInput:x,onPaste:v,onMouseUp:q,onDragOver:S,onFocus:b(j),"aria-labelledby":`${o}-${A.type}`,"aria-readonly":Z,"aria-valuenow":N0(A,t),"aria-valuemin":k.minimum,"aria-valuemax":k.maximum,"aria-valuetext":A.value?X0(A,t):r.empty,"aria-label":r[A.type],"aria-disabled":f,tabIndex:g||j>0?-1:0,contentEditable:!g&&!f&&!Z,role:"spinbutton",id:`${o}-${A.type}`,"data-range-position":A.dateName||void 0,spellCheck:p?!1:void 0,autoCapitalize:p?"off":void 0,autoCorrect:p?"off":void 0,children:A.value||A.placeholder,inputMode:A.contentType==="letter"?"text":"numeric"}},[I,o,g,f,Z,p,r,t,x,v,q,S,b,c,d])}function X0(e,t){if(e.value)switch(e.type){case"month":{if(e.contentType==="digit")return t.format(t.setMonth(t.date(),Number(e.value)-1),"month");const r=t.parse(e.value,e.format);return r?t.format(r,"month"):void 0}case"day":return e.contentType==="digit"?t.format(t.setDate(t.startOfYear(t.date()),Number(e.value)),"dayOfMonthFull"):e.value;case"weekDay":return;default:return}}function N0(e,t){if(e.value)switch(e.type){case"weekDay":return e.contentType==="letter"?void 0:Number(e.value);case"meridiem":{const r=t.parse(`01:00 ${e.value}`,`${t.formats.hours12h}:${t.formats.minutes} ${e.format}`);return r?t.getHours(r)>=12?1:0:void 0}case"day":return e.contentType==="digit-with-letter"?parseInt(e.value,10):Number(e.value);case"month":{if(e.contentType==="digit")return Number(e.value);const r=t.parse(e.value,e.format);return r?t.getMonth(r)+1:void 0}default:return e.contentType!=="letter"?Number(e.value):void 0}}const D0=e=>{const{props:t,manager:r,skipContextFieldRefAssignment:o,manager:{valueType:n,internal_useOpenPickerButtonAriaLabel:s}}=e,{internalProps:l,forwardedProps:a}=RA(t,n),c=NA({manager:r,internalProps:l,skipContextFieldRefAssignment:o}),{sectionListRef:u,onBlur:I,onClick:E,onFocus:d,onInput:M,onPaste:V,onKeyDown:R,onClear:h,clearable:z}=a,{disabled:f=!1,readOnly:Z=!1,autoFocus:g=!1,focused:p,unstableFieldRef:F}=c,x=m.useRef(null),q=qt(u,x),v=m.useMemo(()=>({isReady:()=>x.current!=null,getRoot:()=>x.current.getRoot(),getSectionContainer:$=>x.current.getSectionContainer($),getSectionContent:$=>x.current.getSectionContent($),getSectionIndexFromDOMElement:$=>x.current.getSectionIndexFromDOMElement($)}),[x]),S=XA({manager:r,internalPropsWithDefaults:c,forwardedProps:a}),{areAllSectionsEmpty:b,error:A,parsedSelectedSections:j,sectionOrder:k,state:K,value:Y,clearValue:Q,setSelectedSections:P}=S,J=TA({stateResponse:S}),W=s(Y),[U,T]=m.useState(!1);function O($=0){if(f||!x.current||$A(x)!=null)return;const Re=NM($,K.sections);T(!0),x.current.getSectionContent(Re).focus()}const G=O0({manager:r,internalPropsWithDefaults:c,stateResponse:S,applyCharacterEditing:J,focused:U,setFocused:T,domGetters:v}),H=H0({manager:r,stateResponse:S}),B=B0({stateResponse:S,internalPropsWithDefaults:c}),N=L0({manager:r,stateResponse:S,applyCharacterEditing:J,internalPropsWithDefaults:c,domGetters:v,focused:U}),te=Ne($=>{R?.($),G.onKeyDown($)}),D=Ne($=>{I?.($),G.onBlur($)}),X=Ne($=>{d?.($),G.onFocus($)}),ie=Ne($=>{$.isDefaultPrevented()||(E?.($),G.onClick($))}),L=Ne($=>{V?.($),G.onPaste($)}),se=Ne($=>{M?.($),G.onInput($)}),oe=Ne(($,...Re)=>{$.preventDefault(),h?.($,...Re),Q(),_A(x)?P(k.startIndex):O(0)}),de=m.useMemo(()=>K.sections.map(($,Re)=>{const _=N($,Re);return{container:B(Re),content:N($,Re),before:{children:$.startSeparator},after:{children:$.endSeparator,"data-range-position":$.isEndFormatSeparator?_["data-range-position"]:void 0}}}),[K.sections,B,N]);return m.useEffect(()=>{if(x.current==null)throw new Error(["MUI X: The `sectionListRef` prop has not been initialized by `PickersSectionList`","You probably tried to pass a component to the `textField` slot that contains an `<input />` element instead of a `PickersSectionList`.","","If you want to keep using an `<input />` HTML element for the editing, please add the `enableAccessibleFieldDOMStructure={false}` prop to your Picker or Field component:","","<DatePicker enableAccessibleFieldDOMStructure={false} slots={{ textField: MyCustomTextField }} />","","Learn more about the field accessible DOM structure on the MUI documentation: https://mui.com/x/react-date-pickers/fields/#fields-to-edit-a-single-element"].join(`
501
501
  `));g&&!f&&x.current&&x.current.getSectionContent(k.startIndex).focus()},[]),fr(()=>{if(!(!U||!x.current)){if(j==="all")x.current.getRoot().focus();else if(typeof j=="number"){const $=x.current.getSectionContent(j);$&&$.focus()}}},[j,U]),fr(()=>{rR({focused:U,domGetters:v,stateResponse:S})}),m.useImperativeHandle(F,()=>({getSections:()=>K.sections,getActiveSectionIndex:()=>$A(x),setSelectedSections:$=>{if(f||!x.current)return;const Re=NM($,K.sections);T((Re==="all"?0:Re)!==null),P($)},focusField:O,isFieldFocused:()=>_A(x)})),y({},a,G,{onBlur:D,onClick:ie,onFocus:X,onInput:se,onPaste:L,onKeyDown:te,onClear:oe},H,{error:A,clearable:!!(z&&!b&&!Z&&!f),focused:p??U,sectionListRef:q,enableAccessibleFieldDOMStructure:!0,elements:de,areAllSectionsEmpty:b,disabled:f,readOnly:Z,autoFocus:g,openPickerAriaLabel:W})};function $A(e){const t=fi(e.current?.getRoot());return!t||!e.current||!e.current.getRoot().contains(t)?null:e.current.getSectionIndexFromDOMElement(t)}function _A(e){const t=fi(e.current?.getRoot());return!!e.current&&e.current.getRoot().contains(t)}const Ls=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),$0=(e,t,r)=>{let o=0,n=r?1:0;const s=[];for(let l=0;l<e.length;l+=1){const a=e[l],c=XM(a,r?"input-rtl":"input-ltr",t),u=`${a.startSeparator}${c}${a.endSeparator}`,I=Ls(u).length,E=u.length,d=Ls(c),M=n+(d===""?0:c.indexOf(d[0]))+a.startSeparator.length,V=M+d.length;s.push(y({},a,{start:o,end:o+I,startInInput:M,endInInput:V})),o+=I,n+=E}return s},_0=e=>{const t=$t(),r=si(),o=si(),{props:n,manager:s,skipContextFieldRefAssignment:l,manager:{valueType:a,internal_valueManager:c,internal_fieldValueManager:u,internal_useOpenPickerButtonAriaLabel:I}}=e,{internalProps:E,forwardedProps:d}=RA(n,a),M=NA({manager:s,internalProps:E,skipContextFieldRefAssignment:l}),{onFocus:V,onClick:R,onPaste:h,onBlur:z,onKeyDown:f,onClear:Z,clearable:g,inputRef:p,placeholder:F}=d,{readOnly:x=!1,disabled:q=!1,autoFocus:v=!1,focused:S,unstableFieldRef:b}=M,A=m.useRef(null),j=qt(p,A),k=XA({manager:s,internalPropsWithDefaults:M,forwardedProps:d}),{activeSectionIndex:K,areAllSectionsEmpty:Y,error:Q,localizedDigits:P,parsedSelectedSections:J,sectionOrder:W,state:U,value:T,clearValue:O,clearActiveSection:G,setCharacterQuery:H,setSelectedSections:B,setTempAndroidValueStr:N,updateSectionValue:te,updateValueFromValueStr:D,getSectionsFromValue:X}=k,ie=TA({stateResponse:k}),L=I(T),se=m.useMemo(()=>$0(U.sections,P,t),[U.sections,P,t]);function oe(){const le=A.current.selectionStart??0;let ze;le<=se[0].startInInput||le>=se[se.length-1].endInInput?ze=1:ze=se.findIndex(pe=>pe.startInInput-pe.startSeparator.length>le);const ae=ze===-1?se.length-1:ze-1;B(ae)}function de(le=0){fi(A.current)!==A.current&&(A.current?.focus(),B(le))}const $=Ne(le=>{V?.(le);const ze=A.current;r.start(0,()=>{!ze||ze!==A.current||K==null&&(ze.value.length&&Number(ze.selectionEnd)-Number(ze.selectionStart)===ze.value.length?B("all"):oe())})}),Re=Ne((le,...ze)=>{le.isDefaultPrevented()||(R?.(le,...ze),oe())}),_=Ne(le=>{if(h?.(le),le.preventDefault(),x||q)return;const ze=le.clipboardData.getData("text");if(typeof J=="number"){const ae=U.sections[J],pe=/^[a-zA-Z]+$/.test(ze),ve=/^[0-9]+$/.test(ze),Oe=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(ze);if(ae.contentType==="letter"&&pe||ae.contentType==="digit"&&ve||ae.contentType==="digit-with-letter"&&Oe){H(null),te({section:ae,newSectionValue:ze,shouldGoToNextSection:!0});return}if(pe||ve)return}H(null),D(ze)}),Ze=Ne(le=>{z?.(le),B(null)}),Ce=Ne(le=>{if(x)return;const ze=le.target.value;if(ze===""){O();return}const ae=le.nativeEvent.data,pe=ae&&ae.length>1,ve=pe?ae:ze,Oe=Ls(ve);if(J==="all"&&B(K),K==null||pe){D(pe?ae:Oe);return}let St;if(J==="all"&&Oe.length===1)St=Oe;else{const ge=Ls(u.getV6InputValueFromSections(se,P,t));let Pe=-1,st=-1;for(let wt=0;wt<ge.length;wt+=1)Pe===-1&&ge[wt]!==Oe[wt]&&(Pe=wt),st===-1&&ge[ge.length-wt-1]!==Oe[Oe.length-wt-1]&&(st=wt);const Ut=se[K];if(Pe<Ut.start||ge.length-st-1>Ut.end)return;const hr=Oe.length-ge.length+Ut.end-Ls(Ut.endSeparator||"").length;St=Oe.slice(Ut.start+Ls(Ut.startSeparator||"").length,hr)}if(St.length===0){U6()&&N(ve),G();return}ie({keyPressed:St,sectionIndex:K})}),Ae=Ne((le,...ze)=>{le.preventDefault(),Z?.(le,...ze),O(),e7(A)?B(W.startIndex):de(0)}),he=DA({manager:s,internalPropsWithDefaults:M,stateResponse:k}),Je=Ne(le=>{f?.(le),he(le)}),Fe=m.useMemo(()=>F!==void 0?F:u.getV6InputValueFromSections(X(c.emptyValue),P,t),[F,u,X,c.emptyValue,P,t]),He=m.useMemo(()=>U.tempValueStrAndroid??u.getV6InputValueFromSections(U.sections,P,t),[U.sections,u,U.tempValueStrAndroid,P,t]);m.useEffect(()=>{A.current&&A.current===fi(A.current)&&B("all")},[]),fr(()=>{function le(){if(!A.current)return;if(J==null){A.current.scrollLeft&&(A.current.scrollLeft=0);return}if(A.current!==fi(A.current))return;const ze=A.current.scrollTop;if(J==="all")A.current.select();else{const ae=se[J],pe=ae.type==="empty"?ae.startInInput-ae.startSeparator.length:ae.startInInput,ve=ae.type==="empty"?ae.endInInput+ae.endSeparator.length:ae.endInInput;(pe!==A.current.selectionStart||ve!==A.current.selectionEnd)&&A.current===fi(A.current)&&A.current.setSelectionRange(pe,ve),o.start(0,()=>{A.current&&A.current===fi(A.current)&&A.current.selectionStart===A.current.selectionEnd&&(A.current.selectionStart!==pe||A.current.selectionEnd!==ve)&&le()})}A.current.scrollTop=ze}le()});const Ye=m.useMemo(()=>K==null||U.sections[K].contentType==="letter"?"text":"numeric",[K,U.sections]),_e=!(A.current&&A.current===fi(A.current))&&Y;return m.useImperativeHandle(b,()=>({getSections:()=>U.sections,getActiveSectionIndex:()=>{const le=A.current.selectionStart??0,ze=A.current.selectionEnd??0;if(le===0&&ze===0)return null;const ae=le<=se[0].startInInput?1:se.findIndex(pe=>pe.startInInput-pe.startSeparator.length>le);return ae===-1?se.length-1:ae-1},setSelectedSections:le=>B(le),focusField:de,isFieldFocused:()=>e7(A)})),y({},d,{error:Q,clearable:!!(g&&!Y&&!x&&!q),onBlur:Ze,onClick:Re,onFocus:$,onPaste:_,onKeyDown:Je,onClear:Ae,inputRef:j,enableAccessibleFieldDOMStructure:!1,placeholder:Fe,inputMode:Ye,autoComplete:"off",value:_e?"":He,onChange:Ce,focused:S,disabled:q,readOnly:x,autoFocus:v,openPickerAriaLabel:L})};function e7(e){return e.current===fi(e.current)}const t7=e=>{const t=uA();return(e.props.enableAccessibleFieldDOMStructure??t?.enableAccessibleFieldDOMStructure??!0?D0:_0)(e)},r7=()=>GM().defaultDates;function eL(e){const t=Ci(),r=r7();return m.useMemo(()=>({disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,minDate:sI(t,e.minDate,r.minDate),maxDate:sI(t,e.maxDate,r.maxDate)}),[e.minDate,e.maxDate,e.disableFuture,e.disablePast,t,r])}function tL(e={}){const{enableAccessibleFieldDOMStructure:t=!0}=e;return m.useMemo(()=>({valueType:"date-time",validator:LA,internal_valueManager:RI,internal_fieldValueManager:J0,internal_enableAccessibleFieldDOMStructure:t,internal_useApplyDefaultValuesToFieldInternalProps:iL,internal_useOpenPickerButtonAriaLabel:rL}),[t])}function rL(e){const t=Ci(),r=ba();return m.useMemo(()=>{const o=t.isValid(e)?t.format(e,"fullDate"):null;return r.openDatePickerDialogue(o)},[e,r,t])}function iL(e){const t=Ci(),r=oL(e),o=m.useMemo(()=>e.ampm??t.is12HourCycleInCurrentLocale(),[e.ampm,t]);return m.useMemo(()=>y({},e,r,{format:e.format??(o?t.formats.keyboardDateTime12h:t.formats.keyboardDateTime24h)}),[e,r,o,t])}function oL(e){const t=Ci(),r=r7();return m.useMemo(()=>({disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,disableIgnoringDatePartForTimeValidation:!!e.minDateTime||!!e.maxDateTime||!!e.disableFuture||!!e.disablePast,minDate:sI(t,e.minDateTime??e.minDate,r.minDate),maxDate:sI(t,e.maxDateTime??e.maxDate,r.maxDate),minTime:e.minDateTime??e.minTime,maxTime:e.maxDateTime??e.maxTime}),[e.minDateTime,e.maxDateTime,e.minTime,e.maxTime,e.minDate,e.maxDate,e.disableFuture,e.disablePast,t,r])}const VI=e=>{const t=[],r=[];return e.forEach(o=>{o.dateName==="start"?t.push(o):r.push(o)}),{startDate:t,endDate:r}},nL=e=>e.map((t,r)=>r===e.length-1?y({},t,{separator:null}):t),sL=["value","referenceDate"],i7={emptyValue:[null,null],getTodayValue:(e,t,r)=>[lI(e,t,r),lI(e,t,r)],getInitialReferenceValue:e=>{let{value:t,referenceDate:r}=e,o=Ie(e,sL);const n=o.adapter.isValid(t[0]),s=o.adapter.isValid(t[1]);if(n&&s)return t;const l=r??HA(o),a=Array.isArray(l)?l[0]:l,c=Array.isArray(l)?l[1]:l;return[n?t[0]:a,s?t[1]:c]},cleanValue:(e,t)=>t.map(r=>VA(e,r)),areValuesEqual:(e,t,r)=>OM(e,t[0],r[0])&&OM(e,t[1],r[1]),isSameError:(e,t)=>t!==null&&e[1]===t[1]&&e[0]===t[0],hasError:e=>e[0]!=null||e[1]!=null,defaultErrorState:[null,null],getTimezone:(e,t)=>{const r=e.isValid(t[0])?e.getTimezone(t[0]):null,o=e.isValid(t[1])?e.getTimezone(t[1]):null;if(r!=null&&o!=null&&r!==o)throw new Error("MUI X: The timezone of the start and the end date should be the same.");return r??o},setTimezone:(e,t,r)=>[r[0]==null?null:e.setTimezone(r[0],t),r[1]==null?null:e.setTimezone(r[1],t)]},lL=({dateSeparator:e="–"})=>({updateReferenceValue:(t,r,o)=>{const n=t.isValid(r[0]),s=t.isValid(r[1]);return!n&&!s?o:n&&s?r:n?[r[0],o[0]]:[o[1],r[1]]},getSectionsFromValue:([t,r],o)=>{const n=(s,l)=>{const a=o(s);return a.map((c,u)=>u===a.length-1&&l==="start"?y({},c,{dateName:l,endSeparator:`${c.endSeparator} ${e} `}):y({},c,{dateName:l}))};return[...n(t,"start"),...n(r,"end")]},getV7HiddenInputValueFromSections:t=>{const r=VI(t);return gA([...r.startDate,...r.endDate])},getV6InputValueFromSections:(t,r,o)=>{const n=VI(t);return yA([...n.startDate,...n.endDate],r,o)},parseValueStr:(t,r,o)=>{const[n,s]=t.split(e);return[n,s].map((l,a)=>l==null?null:o(l.trim(),r[a]))},getDateFromSection:(t,r)=>t[zI(r)],getDateSectionsFromValue:(t,r)=>{const o=VI(t);return zI(r)===0?nL(o.startDate):o.endDate},updateDateInValue:(t,r,o)=>zI(r)===0?[o,t[1]]:[t[0],o],clearDateSections:(t,r)=>{const o=VI(t);return zI(r)===0?[...o.startDate.map(n=>y({},n,{value:""})),...o.endDate]:[...o.startDate,...o.endDate.map(n=>y({},n,{value:""}))]}});function zI(e){return e==null||e.dateName==="start"?0:1}const o7=(e,t)=>e.isValid(t[0])&&e.isValid(t[1])&&!e.isBefore(t[1],t[0]),aL=(e,t,r)=>o7(e,t)?`${e.format(t[0],r)} - ${e.format(t[1],r)}`:null,cL=["shouldDisableDate"],n7=({adapter:e,value:t,timezone:r,props:o})=>{const[n,s]=t,{shouldDisableDate:l}=o,a=Ie(o,cL),c=[hI({adapter:e,value:n,timezone:r,props:y({},a,{shouldDisableDate:u=>!!l?.(u,"start")})}),hI({adapter:e,value:s,timezone:r,props:y({},a,{shouldDisableDate:u=>!!l?.(u,"end")})})];return c[0]||c[1]?c:n===null||s===null?[null,null]:o7(e,t)?[null,null]:["invalidRange","invalidRange"]};n7.valueManager=i7;function uL(e={}){const{enableAccessibleFieldDOMStructure:t=!0,dateSeparator:r}=e;return m.useMemo(()=>({valueType:"date",validator:n7,internal_valueManager:i7,internal_fieldValueManager:lL({dateSeparator:r}),internal_enableAccessibleFieldDOMStructure:t,internal_useApplyDefaultValuesToFieldInternalProps:mL,internal_useOpenPickerButtonAriaLabel:IL}),[t,r])}function IL(e){const t=Ci(),r=ba();return m.useMemo(()=>r.openRangePickerDialogue(aL(t,e,"fullDate")),[e,r,t])}function mL(e){const t=Ci(),r=eL(e);return m.useMemo(()=>y({},e,r,{format:e.format??t.formats.keyboardDate}),[e,r,t])}const EL=e=>{const t=uL(e);return t7({manager:t,props:e})},dL=["slots","slotProps"],CI=m.forwardRef(function(t,r){const o=oo({props:t,name:"MuiSingleInputDateRangeField"}),{slots:n,slotProps:s}=o,l=Ie(o,dL),a=PA({slotProps:s,ref:r,externalForwardedProps:l}),c=EL(a);return C.jsx(JA,{slots:n,slotProps:s,fieldResponse:c,defaultOpenPickerIcon:q6})});process.env.NODE_ENV!=="production"&&(CI.displayName="SingleInputDateRangeField"),CI.fieldType="single-input",process.env.NODE_ENV!=="production"&&(CI.propTypes={autoFocus:i.bool,className:i.string,clearable:i.bool,clearButtonPosition:i.oneOf(["end","start"]),color:i.oneOf(["error","info","primary","secondary","success","warning"]),component:i.elementType,dateSeparator:i.string,defaultValue:i.arrayOf(i.object),disabled:i.bool,disableFuture:i.bool,disablePast:i.bool,enableAccessibleFieldDOMStructure:i.bool,focused:i.bool,format:i.string,formatDensity:i.oneOf(["dense","spacious"]),FormHelperTextProps:i.object,fullWidth:i.bool,helperText:i.node,hiddenLabel:i.bool,id:i.string,InputLabelProps:i.object,inputProps:i.object,InputProps:i.object,inputRef:_t,label:i.node,margin:i.oneOf(["dense","none","normal"]),maxDate:i.object,minDate:i.object,name:i.string,onBlur:i.func,onChange:i.func,onClear:i.func,onError:i.func,onFocus:i.func,onSelectedSectionsChange:i.func,readOnly:i.bool,referenceDate:i.oneOfType([i.arrayOf(i.object),i.object]),required:i.bool,selectedSections:i.oneOfType([i.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),i.number]),shouldDisableDate:i.func,shouldRespectLeadingZeros:i.bool,size:i.oneOf(["medium","small"]),slotProps:i.object,slots:i.object,style:i.object,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),timezone:i.string,unstableFieldRef:i.oneOfType([i.func,i.object]),value:i.arrayOf(i.object),variant:i.oneOf(["filled","outlined","standard"])});var fI={exports:{}},ML=fI.exports,s7;function RL(){return s7||(s7=1,function(e,t){(function(r,o){e.exports=o()})(ML,function(){var r=1e3,o=6e4,n=36e5,s="millisecond",l="second",a="minute",c="hour",u="day",I="week",E="month",d="quarter",M="year",V="date",R="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,z=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,f={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(k){var K=["th","st","nd","rd"],Y=k%100;return"["+k+(K[(Y-20)%10]||K[Y]||K[0])+"]"}},Z=function(k,K,Y){var Q=String(k);return!Q||Q.length>=K?k:""+Array(K+1-Q.length).join(Y)+k},g={s:Z,z:function(k){var K=-k.utcOffset(),Y=Math.abs(K),Q=Math.floor(Y/60),P=Y%60;return(K<=0?"+":"-")+Z(Q,2,"0")+":"+Z(P,2,"0")},m:function k(K,Y){if(K.date()<Y.date())return-k(Y,K);var Q=12*(Y.year()-K.year())+(Y.month()-K.month()),P=K.clone().add(Q,E),J=Y-P<0,W=K.clone().add(Q+(J?-1:1),E);return+(-(Q+(Y-P)/(J?P-W:W-P))||0)},a:function(k){return k<0?Math.ceil(k)||0:Math.floor(k)},p:function(k){return{M:E,y:M,w:I,d:u,D:V,h:c,m:a,s:l,ms:s,Q:d}[k]||String(k||"").toLowerCase().replace(/s$/,"")},u:function(k){return k===void 0}},p="en",F={};F[p]=f;var x="$isDayjsObject",q=function(k){return k instanceof A||!(!k||!k[x])},v=function k(K,Y,Q){var P;if(!K)return p;if(typeof K=="string"){var J=K.toLowerCase();F[J]&&(P=J),Y&&(F[J]=Y,P=J);var W=K.split("-");if(!P&&W.length>1)return k(W[0])}else{var U=K.name;F[U]=K,P=U}return!Q&&P&&(p=P),P||!Q&&p},S=function(k,K){if(q(k))return k.clone();var Y=typeof K=="object"?K:{};return Y.date=k,Y.args=arguments,new A(Y)},b=g;b.l=v,b.i=q,b.w=function(k,K){return S(k,{locale:K.$L,utc:K.$u,x:K.$x,$offset:K.$offset})};var A=function(){function k(Y){this.$L=v(Y.locale,null,!0),this.parse(Y),this.$x=this.$x||Y.x||{},this[x]=!0}var K=k.prototype;return K.parse=function(Y){this.$d=function(Q){var P=Q.date,J=Q.utc;if(P===null)return new Date(NaN);if(b.u(P))return new Date;if(P instanceof Date)return new Date(P);if(typeof P=="string"&&!/Z$/i.test(P)){var W=P.match(h);if(W){var U=W[2]-1||0,T=(W[7]||"0").substring(0,3);return J?new Date(Date.UTC(W[1],U,W[3]||1,W[4]||0,W[5]||0,W[6]||0,T)):new Date(W[1],U,W[3]||1,W[4]||0,W[5]||0,W[6]||0,T)}}return new Date(P)}(Y),this.init()},K.init=function(){var Y=this.$d;this.$y=Y.getFullYear(),this.$M=Y.getMonth(),this.$D=Y.getDate(),this.$W=Y.getDay(),this.$H=Y.getHours(),this.$m=Y.getMinutes(),this.$s=Y.getSeconds(),this.$ms=Y.getMilliseconds()},K.$utils=function(){return b},K.isValid=function(){return this.$d.toString()!==R},K.isSame=function(Y,Q){var P=S(Y);return this.startOf(Q)<=P&&P<=this.endOf(Q)},K.isAfter=function(Y,Q){return S(Y)<this.startOf(Q)},K.isBefore=function(Y,Q){return this.endOf(Q)<S(Y)},K.$g=function(Y,Q,P){return b.u(Y)?this[Q]:this.set(P,Y)},K.unix=function(){return Math.floor(this.valueOf()/1e3)},K.valueOf=function(){return this.$d.getTime()},K.startOf=function(Y,Q){var P=this,J=!!b.u(Q)||Q,W=b.p(Y),U=function(D,X){var ie=b.w(P.$u?Date.UTC(P.$y,X,D):new Date(P.$y,X,D),P);return J?ie:ie.endOf(u)},T=function(D,X){return b.w(P.toDate()[D].apply(P.toDate("s"),(J?[0,0,0,0]:[23,59,59,999]).slice(X)),P)},O=this.$W,G=this.$M,H=this.$D,B="set"+(this.$u?"UTC":"");switch(W){case M:return J?U(1,0):U(31,11);case E:return J?U(1,G):U(0,G+1);case I:var N=this.$locale().weekStart||0,te=(O<N?O+7:O)-N;return U(J?H-te:H+(6-te),G);case u:case V:return T(B+"Hours",0);case c:return T(B+"Minutes",1);case a:return T(B+"Seconds",2);case l:return T(B+"Milliseconds",3);default:return this.clone()}},K.endOf=function(Y){return this.startOf(Y,!1)},K.$set=function(Y,Q){var P,J=b.p(Y),W="set"+(this.$u?"UTC":""),U=(P={},P[u]=W+"Date",P[V]=W+"Date",P[E]=W+"Month",P[M]=W+"FullYear",P[c]=W+"Hours",P[a]=W+"Minutes",P[l]=W+"Seconds",P[s]=W+"Milliseconds",P)[J],T=J===u?this.$D+(Q-this.$W):Q;if(J===E||J===M){var O=this.clone().set(V,1);O.$d[U](T),O.init(),this.$d=O.set(V,Math.min(this.$D,O.daysInMonth())).$d}else U&&this.$d[U](T);return this.init(),this},K.set=function(Y,Q){return this.clone().$set(Y,Q)},K.get=function(Y){return this[b.p(Y)]()},K.add=function(Y,Q){var P,J=this;Y=Number(Y);var W=b.p(Q),U=function(G){var H=S(J);return b.w(H.date(H.date()+Math.round(G*Y)),J)};if(W===E)return this.set(E,this.$M+Y);if(W===M)return this.set(M,this.$y+Y);if(W===u)return U(1);if(W===I)return U(7);var T=(P={},P[a]=o,P[c]=n,P[l]=r,P)[W]||1,O=this.$d.getTime()+Y*T;return b.w(O,this)},K.subtract=function(Y,Q){return this.add(-1*Y,Q)},K.format=function(Y){var Q=this,P=this.$locale();if(!this.isValid())return P.invalidDate||R;var J=Y||"YYYY-MM-DDTHH:mm:ssZ",W=b.z(this),U=this.$H,T=this.$m,O=this.$M,G=P.weekdays,H=P.months,B=P.meridiem,N=function(X,ie,L,se){return X&&(X[ie]||X(Q,J))||L[ie].slice(0,se)},te=function(X){return b.s(U%12||12,X,"0")},D=B||function(X,ie,L){var se=X<12?"AM":"PM";return L?se.toLowerCase():se};return J.replace(z,function(X,ie){return ie||function(L){switch(L){case"YY":return String(Q.$y).slice(-2);case"YYYY":return b.s(Q.$y,4,"0");case"M":return O+1;case"MM":return b.s(O+1,2,"0");case"MMM":return N(P.monthsShort,O,H,3);case"MMMM":return N(H,O);case"D":return Q.$D;case"DD":return b.s(Q.$D,2,"0");case"d":return String(Q.$W);case"dd":return N(P.weekdaysMin,Q.$W,G,2);case"ddd":return N(P.weekdaysShort,Q.$W,G,3);case"dddd":return G[Q.$W];case"H":return String(U);case"HH":return b.s(U,2,"0");case"h":return te(1);case"hh":return te(2);case"a":return D(U,T,!0);case"A":return D(U,T,!1);case"m":return String(T);case"mm":return b.s(T,2,"0");case"s":return String(Q.$s);case"ss":return b.s(Q.$s,2,"0");case"SSS":return b.s(Q.$ms,3,"0");case"Z":return W}return null}(X)||W.replace(":","")})},K.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},K.diff=function(Y,Q,P){var J,W=this,U=b.p(Q),T=S(Y),O=(T.utcOffset()-this.utcOffset())*o,G=this-T,H=function(){return b.m(W,T)};switch(U){case M:J=H()/12;break;case E:J=H();break;case d:J=H()/3;break;case I:J=(G-O)/6048e5;break;case u:J=(G-O)/864e5;break;case c:J=G/n;break;case a:J=G/o;break;case l:J=G/r;break;default:J=G}return P?J:b.a(J)},K.daysInMonth=function(){return this.endOf(E).$D},K.$locale=function(){return F[this.$L]},K.locale=function(Y,Q){if(!Y)return this.$L;var P=this.clone(),J=v(Y,Q,!0);return J&&(P.$L=J),P},K.clone=function(){return b.w(this.$d,this)},K.toDate=function(){return new Date(this.valueOf())},K.toJSON=function(){return this.isValid()?this.toISOString():null},K.toISOString=function(){return this.$d.toISOString()},K.toString=function(){return this.$d.toUTCString()},k}(),j=A.prototype;return S.prototype=j,[["$ms",s],["$s",l],["$m",a],["$H",c],["$W",u],["$M",E],["$y",M],["$D",V]].forEach(function(k){j[k[1]]=function(K){return this.$g(K,k[0],k[1])}}),S.extend=function(k,K){return k.$i||(k(K,A,S),k.$i=!0),S},S.locale=v,S.isDayjs=q,S.unix=function(k){return S(1e3*k)},S.en=F[p],S.Ls=F,S.p={},S})}(fI)),fI.exports}var hL=RL();const Ir=qo(hL);var ZI={exports:{}},VL=ZI.exports,l7;function zL(){return l7||(l7=1,function(e,t){(function(r,o){e.exports=o()})(VL,function(){var r="week",o="year";return function(n,s,l){var a=s.prototype;a.week=function(c){if(c===void 0&&(c=null),c!==null)return this.add(7*(c-this.week()),"day");var u=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var I=l(this).startOf(o).add(1,o).date(u),E=l(this).endOf(r);if(I.isBefore(E))return 1}var d=l(this).startOf(o).date(u).startOf(r).subtract(1,"millisecond"),M=this.diff(d,r,!0);return M<0?l(this).startOf("week").week():Math.ceil(M)},a.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}})}(ZI)),ZI.exports}var CL=zL();const fL=qo(CL);var pI={exports:{}},ZL=pI.exports,a7;function pL(){return a7||(a7=1,function(e,t){(function(r,o){e.exports=o()})(ZL,function(){var r={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},o=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,s=/\d\d/,l=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,c={},u=function(h){return(h=+h)+(h>68?1900:2e3)},I=function(h){return function(z){this[h]=+z}},E=[/[+-]\d\d:?(\d\d)?|Z/,function(h){(this.zone||(this.zone={})).offset=function(z){if(!z||z==="Z")return 0;var f=z.match(/([+-]|\d\d)/g),Z=60*f[1]+(+f[2]||0);return Z===0?0:f[0]==="+"?-Z:Z}(h)}],d=function(h){var z=c[h];return z&&(z.indexOf?z:z.s.concat(z.f))},M=function(h,z){var f,Z=c.meridiem;if(Z){for(var g=1;g<=24;g+=1)if(h.indexOf(Z(g,0,z))>-1){f=g>12;break}}else f=h===(z?"pm":"PM");return f},V={A:[a,function(h){this.afternoon=M(h,!1)}],a:[a,function(h){this.afternoon=M(h,!0)}],Q:[n,function(h){this.month=3*(h-1)+1}],S:[n,function(h){this.milliseconds=100*+h}],SS:[s,function(h){this.milliseconds=10*+h}],SSS:[/\d{3}/,function(h){this.milliseconds=+h}],s:[l,I("seconds")],ss:[l,I("seconds")],m:[l,I("minutes")],mm:[l,I("minutes")],H:[l,I("hours")],h:[l,I("hours")],HH:[l,I("hours")],hh:[l,I("hours")],D:[l,I("day")],DD:[s,I("day")],Do:[a,function(h){var z=c.ordinal,f=h.match(/\d+/);if(this.day=f[0],z)for(var Z=1;Z<=31;Z+=1)z(Z).replace(/\[|\]/g,"")===h&&(this.day=Z)}],w:[l,I("week")],ww:[s,I("week")],M:[l,I("month")],MM:[s,I("month")],MMM:[a,function(h){var z=d("months"),f=(d("monthsShort")||z.map(function(Z){return Z.slice(0,3)})).indexOf(h)+1;if(f<1)throw new Error;this.month=f%12||f}],MMMM:[a,function(h){var z=d("months").indexOf(h)+1;if(z<1)throw new Error;this.month=z%12||z}],Y:[/[+-]?\d+/,I("year")],YY:[s,function(h){this.year=u(h)}],YYYY:[/\d{4}/,I("year")],Z:E,ZZ:E};function R(h){var z,f;z=h,f=c&&c.formats;for(var Z=(h=z.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(S,b,A){var j=A&&A.toUpperCase();return b||f[A]||r[A]||f[j].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(k,K,Y){return K||Y.slice(1)})})).match(o),g=Z.length,p=0;p<g;p+=1){var F=Z[p],x=V[F],q=x&&x[0],v=x&&x[1];Z[p]=v?{regex:q,parser:v}:F.replace(/^\[|\]$/g,"")}return function(S){for(var b={},A=0,j=0;A<g;A+=1){var k=Z[A];if(typeof k=="string")j+=k.length;else{var K=k.regex,Y=k.parser,Q=S.slice(j),P=K.exec(Q)[0];Y.call(b,P),S=S.replace(P,"")}}return function(J){var W=J.afternoon;if(W!==void 0){var U=J.hours;W?U<12&&(J.hours+=12):U===12&&(J.hours=0),delete J.afternoon}}(b),b}}return function(h,z,f){f.p.customParseFormat=!0,h&&h.parseTwoDigitYear&&(u=h.parseTwoDigitYear);var Z=z.prototype,g=Z.parse;Z.parse=function(p){var F=p.date,x=p.utc,q=p.args;this.$u=x;var v=q[1];if(typeof v=="string"){var S=q[2]===!0,b=q[3]===!0,A=S||b,j=q[2];b&&(j=q[2]),c=this.$locale(),!S&&j&&(c=f.Ls[j]),this.$d=function(Q,P,J,W){try{if(["x","X"].indexOf(P)>-1)return new Date((P==="X"?1e3:1)*Q);var U=R(P)(Q),T=U.year,O=U.month,G=U.day,H=U.hours,B=U.minutes,N=U.seconds,te=U.milliseconds,D=U.zone,X=U.week,ie=new Date,L=G||(T||O?1:ie.getDate()),se=T||ie.getFullYear(),oe=0;T&&!O||(oe=O>0?O-1:ie.getMonth());var de,$=H||0,Re=B||0,_=N||0,Ze=te||0;return D?new Date(Date.UTC(se,oe,L,$,Re,_,Ze+60*D.offset*1e3)):J?new Date(Date.UTC(se,oe,L,$,Re,_,Ze)):(de=new Date(se,oe,L,$,Re,_,Ze),X&&(de=W(de).week(X).toDate()),de)}catch{return new Date("")}}(F,v,x,f),this.init(),j&&j!==!0&&(this.$L=this.locale(j).$L),A&&F!=this.format(v)&&(this.$d=new Date("")),c={}}else if(v instanceof Array)for(var k=v.length,K=1;K<=k;K+=1){q[1]=v[K-1];var Y=f.apply(this,q);if(Y.isValid()){this.$d=Y.$d,this.$L=Y.$L,this.init();break}K===k&&(this.$d=new Date(""))}else g.call(this,p)}}})}(pI)),pI.exports}var qL=pL();const AL=qo(qL);var qI={exports:{}},gL=qI.exports,c7;function yL(){return c7||(c7=1,function(e,t){(function(r,o){e.exports=o()})(gL,function(){var r={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(o,n,s){var l=n.prototype,a=l.format;s.en.formats=r,l.format=function(c){c===void 0&&(c="YYYY-MM-DDTHH:mm:ssZ");var u=this.$locale().formats,I=function(E,d){return E.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(M,V,R){var h=R&&R.toUpperCase();return V||d[R]||r[R]||d[h].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(z,f,Z){return f||Z.slice(1)})})}(c,u===void 0?{}:u);return a.call(this,I)}}})}(qI)),qI.exports}var vL=yL();const FL=qo(vL);var AI={exports:{}},xL=AI.exports,u7;function KL(){return u7||(u7=1,function(e,t){(function(r,o){e.exports=o()})(xL,function(){return function(r,o,n){o.prototype.isBetween=function(s,l,a,c){var u=n(s),I=n(l),E=(c=c||"()")[0]==="(",d=c[1]===")";return(E?this.isAfter(u,a):!this.isBefore(u,a))&&(d?this.isBefore(I,a):!this.isAfter(I,a))||(E?this.isBefore(u,a):!this.isAfter(u,a))&&(d?this.isAfter(I,a):!this.isBefore(I,a))}}})}(AI)),AI.exports}var bL=KL();const YL=qo(bL);var gI={exports:{}},SL=gI.exports,I7;function WL(){return I7||(I7=1,function(e,t){(function(r,o){e.exports=o()})(SL,function(){return function(r,o){var n=o.prototype,s=n.format;n.format=function(l){var a=this,c=this.$locale();if(!this.isValid())return s.bind(this)(l);var u=this.$utils(),I=(l||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(E){switch(E){case"Q":return Math.ceil((a.$M+1)/3);case"Do":return c.ordinal(a.$D);case"gggg":return a.weekYear();case"GGGG":return a.isoWeekYear();case"wo":return c.ordinal(a.week(),"W");case"w":case"ww":return u.s(a.week(),E==="w"?1:2,"0");case"W":case"WW":return u.s(a.isoWeek(),E==="W"?1:2,"0");case"k":case"kk":return u.s(String(a.$H===0?24:a.$H),E==="k"?1:2,"0");case"X":return Math.floor(a.$d.getTime()/1e3);case"x":return a.$d.getTime();case"z":return"["+a.offsetName()+"]";case"zzz":return"["+a.offsetName("long")+"]";default:return E}});return s.bind(this)(I)}}})}(gI)),gI.exports}var kL=WL();const jL=qo(kL);Ir.extend(FL),Ir.extend(fL),Ir.extend(YL),Ir.extend(jL);const UL={YY:"year",YYYY:{sectionType:"year",contentType:"digit",maxLength:4},M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:{sectionType:"day",contentType:"digit",maxLength:2},DD:"day",Do:{sectionType:"day",contentType:"digit-with-letter"},d:{sectionType:"weekDay",contentType:"digit",maxLength:2},dd:{sectionType:"weekDay",contentType:"letter"},ddd:{sectionType:"weekDay",contentType:"letter"},dddd:{sectionType:"weekDay",contentType:"letter"},A:"meridiem",a:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},QL={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",dayOfMonthFull:"Do",weekday:"dddd",weekdayShort:"dd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},iR=["Missing UTC plugin","To be able to use UTC or timezones, you have to enable the `utc` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-utc"].join(`
502
502
  `),m7=["Missing timezone plugin","To be able to use timezones, you have to enable both the `utc` and the `timezone` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-timezone"].join(`
503
- `);class E7{constructor({locale:t,formats:r}={}){this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="dayjs",this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"[",end:"]"},this.formatTokenMap=UL,this.setLocaleToValue=o=>{const n=this.getCurrentLocaleCode();return n===o.locale()?o:o.locale(n)},this.hasUTCPlugin=()=>typeof Ir.utc<"u",this.hasTimezonePlugin=()=>typeof Ir.tz<"u",this.isSame=(o,n,s)=>{const l=this.setTimezone(n,this.getTimezone(o));return o.format(s)===l.format(s)},this.cleanTimezone=o=>{switch(o){case"default":return;case"system":return Ir.tz.guess();default:return o}},this.createSystemDate=o=>{let n;if(this.hasUTCPlugin()&&this.hasTimezonePlugin()){const s=Ir.tz.guess();s==="UTC"?n=Ir(o):n=Ir.tz(o,s)}else n=Ir(o);return this.setLocaleToValue(n)},this.createUTCDate=o=>{if(!this.hasUTCPlugin())throw new Error(iR);return this.setLocaleToValue(Ir.utc(o))},this.createTZDate=(o,n)=>{if(!this.hasUTCPlugin())throw new Error(iR);if(!this.hasTimezonePlugin())throw new Error(m7);const s=o!==void 0&&!o.endsWith("Z");return this.setLocaleToValue(Ir(o).tz(this.cleanTimezone(n),s))},this.getLocaleFormats=()=>{const o=Ir.Ls,n=this.locale||"en";let s=o[n];return s===void 0&&(process.env.NODE_ENV!=="production"&&Qr(["MUI X: Your locale has not been found.","Either the locale key is not a supported one. Locales supported by dayjs are available here: https://github.com/iamkun/dayjs/tree/dev/src/locale.","Or you forget to import the locale from 'dayjs/locale/{localeUsed}'","fallback on English locale."]),s=o.en),s.formats},this.adjustOffset=o=>{if(!this.hasTimezonePlugin())return o;const n=this.getTimezone(o);if(n!=="UTC"){const s=o.tz(this.cleanTimezone(n),!0);if(s.$offset===(o.$offset??0))return o;o.$offset=s.$offset}return o},this.date=(o,n="default")=>o===null?null:n==="UTC"?this.createUTCDate(o):n==="system"||n==="default"&&!this.hasTimezonePlugin()?this.createSystemDate(o):this.createTZDate(o,n),this.getInvalidDate=()=>Ir(new Date("Invalid date")),this.getTimezone=o=>{if(this.hasTimezonePlugin()){const n=o.$x?.$timezone;if(n)return n}return this.hasUTCPlugin()&&o.isUTC()?"UTC":"system"},this.setTimezone=(o,n)=>{if(this.getTimezone(o)===n)return o;if(n==="UTC"){if(!this.hasUTCPlugin())throw new Error(iR);return o.utc()}if(n==="system")return o.local();if(!this.hasTimezonePlugin()){if(n==="default")return o;throw new Error(m7)}return this.setLocaleToValue(Ir.tz(o,this.cleanTimezone(n)))},this.toJsDate=o=>o.toDate(),this.parse=(o,n)=>o===""?null:Ir(o,n,this.locale,!0),this.getCurrentLocaleCode=()=>this.locale||"en",this.is12HourCycleInCurrentLocale=()=>/A|a/.test(this.getLocaleFormats().LT||""),this.expandFormat=o=>{const n=this.getLocaleFormats(),s=l=>l.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(a,c,u)=>c||u.slice(1));return o.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(l,a,c)=>{const u=c&&c.toUpperCase();return a||n[c]||s(n[u])})},this.isValid=o=>o==null?!1:o.isValid(),this.format=(o,n)=>this.formatByString(o,this.formats[n]),this.formatByString=(o,n)=>this.setLocaleToValue(o).format(n),this.formatNumber=o=>o,this.isEqual=(o,n)=>o===null&&n===null?!0:o===null||n===null?!1:o.toDate().getTime()===n.toDate().getTime(),this.isSameYear=(o,n)=>this.isSame(o,n,"YYYY"),this.isSameMonth=(o,n)=>this.isSame(o,n,"YYYY-MM"),this.isSameDay=(o,n)=>this.isSame(o,n,"YYYY-MM-DD"),this.isSameHour=(o,n)=>o.isSame(n,"hour"),this.isAfter=(o,n)=>o>n,this.isAfterYear=(o,n)=>this.hasUTCPlugin()?!this.isSameYear(o,n)&&o.utc()>n.utc():o.isAfter(n,"year"),this.isAfterDay=(o,n)=>this.hasUTCPlugin()?!this.isSameDay(o,n)&&o.utc()>n.utc():o.isAfter(n,"day"),this.isBefore=(o,n)=>o<n,this.isBeforeYear=(o,n)=>this.hasUTCPlugin()?!this.isSameYear(o,n)&&o.utc()<n.utc():o.isBefore(n,"year"),this.isBeforeDay=(o,n)=>this.hasUTCPlugin()?!this.isSameDay(o,n)&&o.utc()<n.utc():o.isBefore(n,"day"),this.isWithinRange=(o,[n,s])=>o>=n&&o<=s,this.startOfYear=o=>this.adjustOffset(o.startOf("year")),this.startOfMonth=o=>this.adjustOffset(o.startOf("month")),this.startOfWeek=o=>this.adjustOffset(this.setLocaleToValue(o).startOf("week")),this.startOfDay=o=>this.adjustOffset(o.startOf("day")),this.endOfYear=o=>this.adjustOffset(o.endOf("year")),this.endOfMonth=o=>this.adjustOffset(o.endOf("month")),this.endOfWeek=o=>this.adjustOffset(this.setLocaleToValue(o).endOf("week")),this.endOfDay=o=>this.adjustOffset(o.endOf("day")),this.addYears=(o,n)=>this.adjustOffset(o.add(n,"year")),this.addMonths=(o,n)=>this.adjustOffset(o.add(n,"month")),this.addWeeks=(o,n)=>this.adjustOffset(o.add(n,"week")),this.addDays=(o,n)=>this.adjustOffset(o.add(n,"day")),this.addHours=(o,n)=>this.adjustOffset(o.add(n,"hour")),this.addMinutes=(o,n)=>this.adjustOffset(o.add(n,"minute")),this.addSeconds=(o,n)=>this.adjustOffset(o.add(n,"second")),this.getYear=o=>o.year(),this.getMonth=o=>o.month(),this.getDate=o=>o.date(),this.getHours=o=>o.hour(),this.getMinutes=o=>o.minute(),this.getSeconds=o=>o.second(),this.getMilliseconds=o=>o.millisecond(),this.setYear=(o,n)=>this.adjustOffset(o.set("year",n)),this.setMonth=(o,n)=>this.adjustOffset(o.set("month",n)),this.setDate=(o,n)=>this.adjustOffset(o.set("date",n)),this.setHours=(o,n)=>this.adjustOffset(o.set("hour",n)),this.setMinutes=(o,n)=>this.adjustOffset(o.set("minute",n)),this.setSeconds=(o,n)=>this.adjustOffset(o.set("second",n)),this.setMilliseconds=(o,n)=>this.adjustOffset(o.set("millisecond",n)),this.getDaysInMonth=o=>o.daysInMonth(),this.getWeekArray=o=>{const n=this.startOfWeek(this.startOfMonth(o)),s=this.endOfWeek(this.endOfMonth(o));let l=0,a=n;const c=[];for(;a<s;){const u=Math.floor(l/7);c[u]=c[u]||[],c[u].push(a),a=this.addDays(a,1),l+=1}return c},this.getWeekNumber=o=>o.week(),this.getYearRange=([o,n])=>{const s=this.startOfYear(o),l=this.endOfYear(n),a=[];let c=s;for(;this.isBefore(c,l);)a.push(c),c=this.addYears(c,1);return a},this.locale=t,this.formats=y({},QL,r),Ir.extend(AL)}getDayOfWeek(t){return t.day()+1}}const JL=({label:e,value:t,setValue:r,disabled:o})=>C.jsx(C.Fragment,{children:C.jsx(nI,{dateAdapter:E7,children:C.jsx(CI,{label:e,value:t,onChange:n=>{r(n)},InputProps:{sx:{borderRadius:"16px",width:"260px"},color:n=>n.palette["gr-yellow"].main},size:"small",color:"gr-yellow",slotProps:{textField:{InputLabelProps:{sx:{color:"white !important"}}}},focused:!0,format:"YYYY-MM-DD",disabled:o})})}),d7=({label:e,multiValue:t,setMultiValue:r,values:o,placeholder:n,disabled:s})=>C.jsx(C.Fragment,{children:C.jsxs(ls,{focused:!0,children:[C.jsx(us,{id:`filter-table-label-${e}`,sx:{color:"white",position:"absolute","&.Mui-focused":{color:"white"},'&[data-shrink="false"]':{transform:"translateY(12px) translateX(12px)"}},children:e}),C.jsxs(Vn,{labelId:`filter-table-label-${e}`,id:`filter-${e}`,value:t,label:e,onChange:l=>{const{target:{value:a}}=l;r(typeof a=="string"?a.split(","):a)},color:"gr-yellow",sx:{width:"260px",color:"white"},IconComponent:aA,MenuProps:{PaperProps:{style:{maxHeight:"500px",width:"260px",borderBottomLeftRadius:"32px",borderBottomRightRadius:"32px",borderTopLeftRadius:"0px",borderTopRightRadius:"0px"}},MenuListProps:{sx:{backgroundColor:et["gr-base-dark"].main,"& .MuiMenuItem-root":{backgroundColor:et["gr-base-dark"].main,color:"white","&:hover":{backgroundColor:et["gr-base-dark"].main},"&.Mui-selected":{backgroundColor:et["gr-base-dark"].main},"&.Mui-focusVisible":{backgroundColor:et["gr-base-dark"].main}}}}},renderValue:l=>l.join(", "),displayEmpty:!0,disabled:s,multiple:!0,children:[C.jsx(Io,{disabled:!0,value:"",children:C.jsx("em",{children:n})}),o.map(l=>C.jsxs(Io,{value:l.value,children:[C.jsx(Nm,{checked:t.includes(l.value)}),C.jsx(ms,{slotProps:{primary:{sx:{color:"#FFFFFF"}}},primary:l.label})]},l.value))]})]})}),PL=e=>{const{range:t=[null,null],setRange:r=()=>{},multipleTags:o=!1,tags:n=[],tagSelected:s="",setTagSelected:l=()=>{},tagMultipleSelected:a=[],setTagMultipleSelected:c=()=>{},multipleEmployees:u=!1,employees:I=[],employeeSelected:E="",setEmployeeSelected:d=()=>{},employeeMultipleSelected:M=[],setEmployeeMultipleSelected:V=()=>{},search:R=()=>{}}=e;return C.jsxs(sr,{sx:{bgcolor:h=>h.palette.background.paper,height:"70px",borderTopLeftRadius:"20px",borderTopRightRadius:"20px",display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"flex-end",padding:"20px",gap:"20px"},children:[C.jsx(JL,{label:"Rango de días",value:t,setValue:r,disabled:!1}),o?C.jsx(d7,{label:"Etiquetas",multiValue:a,setMultiValue:c,values:n,placeholder:"Seleccionar",disabled:!1}):C.jsx(PM,{label:"Etiquetas",value:s,setValue:l,values:n,placeholder:"Seleccionar",disabled:!1,white:!1}),u?C.jsx(d7,{label:"Trabajadores",multiValue:M,setMultiValue:V,values:I,placeholder:"Seleccionar",disabled:!1}):C.jsx(PM,{label:"Trabajadores",value:E,setValue:d,values:I,placeholder:"Seleccionar",disabled:!1,white:!1}),C.jsx(mi,{variant:"contained",color:"gr-yellow",sx:{borderRadius:"20px",color:h=>h.palette.background.paper},onClick:()=>R(),children:"Buscar"})]})},wL=({contextMenu:e,setContextMenu:t,options:r,checked:o})=>C.jsxs(C.Fragment,{children:[C.jsx(dE,{open:e!==null,onClose:()=>t(null),anchorReference:"anchorPosition",anchorPosition:e!==null?{top:e.mouseY,left:e.mouseX}:void 0,slots:{transition:Wl},slotProps:{paper:{sx:{bgcolor:"white",borderRadius:"12px"},elevation:1}},sx:{cursor:"pointer"},children:r.filter(n=>!n.hide).map((n,s)=>C.jsxs(sr,{children:[s!==0&&r[s-1].group!==n.group?C.jsx(Ul,{}):null,C.jsxs(Io,{onClick:n.click,disabled:n.disabled,children:[C.jsx(Is,{sx:{color:l=>l.palette["gr-grey"].main},children:n.icon}),C.jsx(ms,{sx:{color:l=>l.palette["gr-grey"].main},children:n.name}),n.selected?C.jsxs(pr,{sx:{pl:3,color:l=>l.palette["gr-grey"].main},variant:"body2",children:["selecionados",":",o.length]}):null,n.onlyOne?C.jsx(pr,{sx:{pl:3,color:l=>l.palette["gr-grey"].main},variant:"body2",children:"solo uno"}):null]},s)]},s))}),r.filter(n=>!n.hide).map((n,s)=>C.jsx(sr,{children:n.dialog},s))]}),TL=e=>C.jsxs(C.Fragment,{children:[C.jsx(lA,{...e,showToolbar:!0,slots:{toolbar:PL},slotProps:{toolbar:{range:e.range,setRange:e.setRange,multipleTags:e.multipleTags,tags:e.tags,tagSelected:e.tagSelected,setTagSelected:e.setTagSelected,tagMultipleSelected:e.tagMultipleSelected,setTagMultipleSelected:e.setTagMultipleSelected,multipleEmployees:e.multipleEmployees,employees:e.employees,employeeSelected:e.employeeSelected,setEmployeeSelected:e.setEmployeeSelected,employeeMultipleSelected:e.employeeMultipleSelected,setEmployeeMultipleSelected:e.setEmployeeMultipleSelected,search:e.search}},sx:{border:"none",color:"black","& .MuiDataGrid-columnHeaderCheckbox":{backgroundColor:"white"},"& .MuiDataGrid-columnHeader":{backgroundColor:"white"},"& .MuiDataGrid-virtualScroller":{bgcolor:"white",borderBottomLeftRadius:"20px",borderBottomRightRadius:"20px"},"& .MuiDataGrid-checkboxInput":{color:t=>t.palette.background.paper},"& .MuiDataGrid-footerContainer":{borderTop:"none",fontWeight:"500",display:"flex",justifyContent:"center",alignItems:"center"},"& .MuiIconButton-root":{color:t=>t.palette.background.paper,"&.Mui-disabled":{color:"#888",backgroundColor:"#eee",opacity:.7}}},loading:e.loading,checkboxSelection:!0,pagination:!0,autoPageSize:!0,paginationModel:e.paginationModel,onPaginationModelChange:t=>{e.setPaginationModel(t)},onRowSelectionModelChange:t=>{e.setRowSelectionModel(t)},rowSelectionModel:e.rowSelectionModel}),C.jsx(wL,{contextMenu:e.contextMenu,setContextMenu:e.setContextMenu,options:e.options,checked:e.rowSelectionModel})]}),GL=()=>{const[e,t]=xe.useState([null,null]),[r,o]=xe.useState([]),[n,s]=xe.useState(""),[l,a]=xe.useState([]),[c,u]=xe.useState([]),[I,E]=xe.useState(""),[d,M]=xe.useState([]),[V,R]=xe.useState(!1),[h,z]=xe.useState([]),[f,Z]=xe.useState({pageSize:25,page:0}),[g,p]=xe.useState({type:"include",ids:new Set}),[F,x]=xe.useState(null);return{rows:h,setRows:z,range:e,setRange:t,tags:r,setTags:o,tagSelected:n,setTagSelected:s,tagMultipleSelected:l,setTagMultipleSelected:a,employees:c,setEmployees:u,employeeSelected:I,setEmployeeSelected:E,employeeMultipleSelected:d,setEmployeeMultipleSelected:M,loading:V,setLoading:R,paginationModel:f,setPaginationModel:Z,rowSelectionModel:g,setRowSelectionModel:p,contextMenu:F,setContextMenu:x}};var ja={exports:{}},oR={},yI={exports:{}},M7;function OL(){if(M7)return yI.exports;M7=1;function e(r){var o,n,s="";if(typeof r=="string"||typeof r=="number")s+=r;else if(typeof r=="object")if(Array.isArray(r)){var l=r.length;for(o=0;o<l;o++)r[o]&&(n=e(r[o]))&&(s&&(s+=" "),s+=n)}else for(n in r)r[n]&&(s&&(s+=" "),s+=n);return s}function t(){for(var r,o,n=0,s="",l=arguments.length;n<l;n++)(r=arguments[n])&&(o=e(r))&&(s&&(s+=" "),s+=o);return s}return yI.exports=t,yI.exports.clsx=t,yI.exports}var er={},Xo={},R7;function vI(){if(R7)return Xo;R7=1,Object.defineProperty(Xo,"__esModule",{value:!0}),Xo.dontSetMe=n,Xo.findInArray=e,Xo.int=o,Xo.isFunction=t,Xo.isNum=r;function e(s,l){for(let a=0,c=s.length;a<c;a++)if(l.apply(l,[s[a],a,s]))return s[a]}function t(s){return typeof s=="function"||Object.prototype.toString.call(s)==="[object Function]"}function r(s){return typeof s=="number"&&!isNaN(s)}function o(s){return parseInt(s,10)}function n(s,l,a){if(s[l])return new Error(`Invalid prop ${l} passed to ${a} - do not set this, set it on the child.`)}return Xo}var No={},h7;function HL(){if(h7)return No;h7=1,Object.defineProperty(No,"__esModule",{value:!0}),No.browserPrefixToKey=r,No.browserPrefixToStyle=o,No.default=void 0,No.getPrefix=t;const e=["Moz","Webkit","O","ms"];function t(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window>"u")return"";const l=window.document?.documentElement?.style;if(!l||s in l)return"";for(let a=0;a<e.length;a++)if(r(s,e[a])in l)return e[a];return""}function r(s,l){return l?`${l}${n(s)}`:s}function o(s,l){return l?`-${l.toLowerCase()}-${s}`:s}function n(s){let l="",a=!0;for(let c=0;c<s.length;c++)a?(l+=s[c].toUpperCase(),a=!1):s[c]==="-"?a=!0:l+=s[c];return l}return No.default=t(),No}var V7;function nR(){if(V7)return er;V7=1,Object.defineProperty(er,"__esModule",{value:!0}),er.addClassName=p,er.addEvent=l,er.addUserSelectStyles=f,er.createCSSTransform=M,er.createSVGTransform=V,er.getTouch=h,er.getTouchIdentifier=z,er.getTranslation=R,er.innerHeight=I,er.innerWidth=E,er.matchesSelector=n,er.matchesSelectorAndParentsTo=s,er.offsetXYFromParent=d,er.outerHeight=c,er.outerWidth=u,er.removeClassName=F,er.removeEvent=a,er.scheduleRemoveUserSelectStyles=Z;var e=vI(),t=r(HL());function r(x,q){if(typeof WeakMap=="function")var v=new WeakMap,S=new WeakMap;return(r=function(b,A){if(!A&&b&&b.__esModule)return b;var j,k,K={__proto__:null,default:b};if(b===null||typeof b!="object"&&typeof b!="function")return K;if(j=A?S:v){if(j.has(b))return j.get(b);j.set(b,K)}for(const Y in b)Y!=="default"&&{}.hasOwnProperty.call(b,Y)&&((k=(j=Object.defineProperty)&&Object.getOwnPropertyDescriptor(b,Y))&&(k.get||k.set)?j(K,Y,k):K[Y]=b[Y]);return K})(x,q)}let o="";function n(x,q){return o||(o=(0,e.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(v){return(0,e.isFunction)(x[v])})),(0,e.isFunction)(x[o])?x[o](q):!1}function s(x,q,v){let S=x;do{if(n(S,q))return!0;if(S===v)return!1;S=S.parentNode}while(S);return!1}function l(x,q,v,S){if(!x)return;const b={capture:!0,...S};x.addEventListener?x.addEventListener(q,v,b):x.attachEvent?x.attachEvent("on"+q,v):x["on"+q]=v}function a(x,q,v,S){if(!x)return;const b={capture:!0,...S};x.removeEventListener?x.removeEventListener(q,v,b):x.detachEvent?x.detachEvent("on"+q,v):x["on"+q]=null}function c(x){let q=x.clientHeight;const v=x.ownerDocument.defaultView.getComputedStyle(x);return q+=(0,e.int)(v.borderTopWidth),q+=(0,e.int)(v.borderBottomWidth),q}function u(x){let q=x.clientWidth;const v=x.ownerDocument.defaultView.getComputedStyle(x);return q+=(0,e.int)(v.borderLeftWidth),q+=(0,e.int)(v.borderRightWidth),q}function I(x){let q=x.clientHeight;const v=x.ownerDocument.defaultView.getComputedStyle(x);return q-=(0,e.int)(v.paddingTop),q-=(0,e.int)(v.paddingBottom),q}function E(x){let q=x.clientWidth;const v=x.ownerDocument.defaultView.getComputedStyle(x);return q-=(0,e.int)(v.paddingLeft),q-=(0,e.int)(v.paddingRight),q}function d(x,q,v){const b=q===q.ownerDocument.body?{left:0,top:0}:q.getBoundingClientRect(),A=(x.clientX+q.scrollLeft-b.left)/v,j=(x.clientY+q.scrollTop-b.top)/v;return{x:A,y:j}}function M(x,q){const v=R(x,q,"px");return{[(0,t.browserPrefixToKey)("transform",t.default)]:v}}function V(x,q){return R(x,q,"")}function R(x,q,v){let{x:S,y:b}=x,A=`translate(${S}${v},${b}${v})`;if(q){const j=`${typeof q.x=="string"?q.x:q.x+v}`,k=`${typeof q.y=="string"?q.y:q.y+v}`;A=`translate(${j}, ${k})`+A}return A}function h(x,q){return x.targetTouches&&(0,e.findInArray)(x.targetTouches,v=>q===v.identifier)||x.changedTouches&&(0,e.findInArray)(x.changedTouches,v=>q===v.identifier)}function z(x){if(x.targetTouches&&x.targetTouches[0])return x.targetTouches[0].identifier;if(x.changedTouches&&x.changedTouches[0])return x.changedTouches[0].identifier}function f(x){if(!x)return;let q=x.getElementById("react-draggable-style-el");q||(q=x.createElement("style"),q.type="text/css",q.id="react-draggable-style-el",q.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
503
+ `);class E7{constructor({locale:t,formats:r}={}){this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="dayjs",this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"[",end:"]"},this.formatTokenMap=UL,this.setLocaleToValue=o=>{const n=this.getCurrentLocaleCode();return n===o.locale()?o:o.locale(n)},this.hasUTCPlugin=()=>typeof Ir.utc<"u",this.hasTimezonePlugin=()=>typeof Ir.tz<"u",this.isSame=(o,n,s)=>{const l=this.setTimezone(n,this.getTimezone(o));return o.format(s)===l.format(s)},this.cleanTimezone=o=>{switch(o){case"default":return;case"system":return Ir.tz.guess();default:return o}},this.createSystemDate=o=>{let n;if(this.hasUTCPlugin()&&this.hasTimezonePlugin()){const s=Ir.tz.guess();s==="UTC"?n=Ir(o):n=Ir.tz(o,s)}else n=Ir(o);return this.setLocaleToValue(n)},this.createUTCDate=o=>{if(!this.hasUTCPlugin())throw new Error(iR);return this.setLocaleToValue(Ir.utc(o))},this.createTZDate=(o,n)=>{if(!this.hasUTCPlugin())throw new Error(iR);if(!this.hasTimezonePlugin())throw new Error(m7);const s=o!==void 0&&!o.endsWith("Z");return this.setLocaleToValue(Ir(o).tz(this.cleanTimezone(n),s))},this.getLocaleFormats=()=>{const o=Ir.Ls,n=this.locale||"en";let s=o[n];return s===void 0&&(process.env.NODE_ENV!=="production"&&Qr(["MUI X: Your locale has not been found.","Either the locale key is not a supported one. Locales supported by dayjs are available here: https://github.com/iamkun/dayjs/tree/dev/src/locale.","Or you forget to import the locale from 'dayjs/locale/{localeUsed}'","fallback on English locale."]),s=o.en),s.formats},this.adjustOffset=o=>{if(!this.hasTimezonePlugin())return o;const n=this.getTimezone(o);if(n!=="UTC"){const s=o.tz(this.cleanTimezone(n),!0);if(s.$offset===(o.$offset??0))return o;o.$offset=s.$offset}return o},this.date=(o,n="default")=>o===null?null:n==="UTC"?this.createUTCDate(o):n==="system"||n==="default"&&!this.hasTimezonePlugin()?this.createSystemDate(o):this.createTZDate(o,n),this.getInvalidDate=()=>Ir(new Date("Invalid date")),this.getTimezone=o=>{if(this.hasTimezonePlugin()){const n=o.$x?.$timezone;if(n)return n}return this.hasUTCPlugin()&&o.isUTC()?"UTC":"system"},this.setTimezone=(o,n)=>{if(this.getTimezone(o)===n)return o;if(n==="UTC"){if(!this.hasUTCPlugin())throw new Error(iR);return o.utc()}if(n==="system")return o.local();if(!this.hasTimezonePlugin()){if(n==="default")return o;throw new Error(m7)}return this.setLocaleToValue(Ir.tz(o,this.cleanTimezone(n)))},this.toJsDate=o=>o.toDate(),this.parse=(o,n)=>o===""?null:Ir(o,n,this.locale,!0),this.getCurrentLocaleCode=()=>this.locale||"en",this.is12HourCycleInCurrentLocale=()=>/A|a/.test(this.getLocaleFormats().LT||""),this.expandFormat=o=>{const n=this.getLocaleFormats(),s=l=>l.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(a,c,u)=>c||u.slice(1));return o.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(l,a,c)=>{const u=c&&c.toUpperCase();return a||n[c]||s(n[u])})},this.isValid=o=>o==null?!1:o.isValid(),this.format=(o,n)=>this.formatByString(o,this.formats[n]),this.formatByString=(o,n)=>this.setLocaleToValue(o).format(n),this.formatNumber=o=>o,this.isEqual=(o,n)=>o===null&&n===null?!0:o===null||n===null?!1:o.toDate().getTime()===n.toDate().getTime(),this.isSameYear=(o,n)=>this.isSame(o,n,"YYYY"),this.isSameMonth=(o,n)=>this.isSame(o,n,"YYYY-MM"),this.isSameDay=(o,n)=>this.isSame(o,n,"YYYY-MM-DD"),this.isSameHour=(o,n)=>o.isSame(n,"hour"),this.isAfter=(o,n)=>o>n,this.isAfterYear=(o,n)=>this.hasUTCPlugin()?!this.isSameYear(o,n)&&o.utc()>n.utc():o.isAfter(n,"year"),this.isAfterDay=(o,n)=>this.hasUTCPlugin()?!this.isSameDay(o,n)&&o.utc()>n.utc():o.isAfter(n,"day"),this.isBefore=(o,n)=>o<n,this.isBeforeYear=(o,n)=>this.hasUTCPlugin()?!this.isSameYear(o,n)&&o.utc()<n.utc():o.isBefore(n,"year"),this.isBeforeDay=(o,n)=>this.hasUTCPlugin()?!this.isSameDay(o,n)&&o.utc()<n.utc():o.isBefore(n,"day"),this.isWithinRange=(o,[n,s])=>o>=n&&o<=s,this.startOfYear=o=>this.adjustOffset(o.startOf("year")),this.startOfMonth=o=>this.adjustOffset(o.startOf("month")),this.startOfWeek=o=>this.adjustOffset(this.setLocaleToValue(o).startOf("week")),this.startOfDay=o=>this.adjustOffset(o.startOf("day")),this.endOfYear=o=>this.adjustOffset(o.endOf("year")),this.endOfMonth=o=>this.adjustOffset(o.endOf("month")),this.endOfWeek=o=>this.adjustOffset(this.setLocaleToValue(o).endOf("week")),this.endOfDay=o=>this.adjustOffset(o.endOf("day")),this.addYears=(o,n)=>this.adjustOffset(o.add(n,"year")),this.addMonths=(o,n)=>this.adjustOffset(o.add(n,"month")),this.addWeeks=(o,n)=>this.adjustOffset(o.add(n,"week")),this.addDays=(o,n)=>this.adjustOffset(o.add(n,"day")),this.addHours=(o,n)=>this.adjustOffset(o.add(n,"hour")),this.addMinutes=(o,n)=>this.adjustOffset(o.add(n,"minute")),this.addSeconds=(o,n)=>this.adjustOffset(o.add(n,"second")),this.getYear=o=>o.year(),this.getMonth=o=>o.month(),this.getDate=o=>o.date(),this.getHours=o=>o.hour(),this.getMinutes=o=>o.minute(),this.getSeconds=o=>o.second(),this.getMilliseconds=o=>o.millisecond(),this.setYear=(o,n)=>this.adjustOffset(o.set("year",n)),this.setMonth=(o,n)=>this.adjustOffset(o.set("month",n)),this.setDate=(o,n)=>this.adjustOffset(o.set("date",n)),this.setHours=(o,n)=>this.adjustOffset(o.set("hour",n)),this.setMinutes=(o,n)=>this.adjustOffset(o.set("minute",n)),this.setSeconds=(o,n)=>this.adjustOffset(o.set("second",n)),this.setMilliseconds=(o,n)=>this.adjustOffset(o.set("millisecond",n)),this.getDaysInMonth=o=>o.daysInMonth(),this.getWeekArray=o=>{const n=this.startOfWeek(this.startOfMonth(o)),s=this.endOfWeek(this.endOfMonth(o));let l=0,a=n;const c=[];for(;a<s;){const u=Math.floor(l/7);c[u]=c[u]||[],c[u].push(a),a=this.addDays(a,1),l+=1}return c},this.getWeekNumber=o=>o.week(),this.getYearRange=([o,n])=>{const s=this.startOfYear(o),l=this.endOfYear(n),a=[];let c=s;for(;this.isBefore(c,l);)a.push(c),c=this.addYears(c,1);return a},this.locale=t,this.formats=y({},QL,r),Ir.extend(AL)}getDayOfWeek(t){return t.day()+1}}const JL=({label:e,value:t,setValue:r,disabled:o})=>C.jsx(C.Fragment,{children:C.jsx(nI,{dateAdapter:E7,children:C.jsx(CI,{label:e,value:t,onChange:n=>{r(n)},InputProps:{sx:{borderRadius:"16px",width:"260px"},color:n=>n.palette["gr-yellow"].main},size:"small",color:"gr-yellow",slotProps:{textField:{InputLabelProps:{sx:{color:"white !important"}}}},focused:!0,format:"YYYY-MM-DD",disabled:o})})}),d7=({label:e,multiValue:t,setMultiValue:r,values:o,placeholder:n,disabled:s})=>C.jsx(C.Fragment,{children:C.jsxs(ls,{focused:!0,children:[C.jsx(us,{id:`filter-table-label-${e}`,sx:{color:"white",position:"absolute","&.Mui-focused":{color:"white"},'&[data-shrink="false"]':{transform:"translateY(12px) translateX(12px)"}},children:e}),C.jsxs(Vn,{labelId:`filter-table-label-${e}`,id:`filter-${e}`,value:t,label:e,onChange:l=>{const{target:{value:a}}=l;r(typeof a=="string"?a.split(","):a)},color:"gr-yellow",sx:{width:"260px",color:"white"},IconComponent:aA,MenuProps:{PaperProps:{style:{maxHeight:"500px",width:"260px",borderBottomLeftRadius:"32px",borderBottomRightRadius:"32px",borderTopLeftRadius:"0px",borderTopRightRadius:"0px"}},MenuListProps:{sx:{backgroundColor:et["gr-base-dark"].main,"& .MuiMenuItem-root":{backgroundColor:et["gr-base-dark"].main,color:"white","&:hover":{backgroundColor:et["gr-base-dark"].main},"&.Mui-selected":{backgroundColor:et["gr-base-dark"].main},"&.Mui-focusVisible":{backgroundColor:et["gr-base-dark"].main}}}}},renderValue:l=>o.filter(a=>l.includes(a.value)).map(a=>a.label).join(", "),displayEmpty:!0,disabled:s,multiple:!0,children:[C.jsx(Io,{disabled:!0,value:"",children:C.jsx("em",{children:n})}),o.map(l=>C.jsxs(Io,{value:l.value,children:[C.jsx(Nm,{checked:t.includes(l.value)}),C.jsx(ms,{slotProps:{primary:{sx:{color:"#FFFFFF"}}},primary:l.label})]},l.value))]})]})}),PL=e=>{const{range:t=[null,null],setRange:r=()=>{},multipleTags:o=!1,tags:n=[],tagSelected:s="",setTagSelected:l=()=>{},tagMultipleSelected:a=[],setTagMultipleSelected:c=()=>{},multipleEmployees:u=!1,employees:I=[],employeeSelected:E="",setEmployeeSelected:d=()=>{},employeeMultipleSelected:M=[],setEmployeeMultipleSelected:V=()=>{},search:R=()=>{}}=e;return C.jsxs(sr,{sx:{bgcolor:h=>h.palette.background.paper,height:"70px",borderTopLeftRadius:"20px",borderTopRightRadius:"20px",display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"flex-end",padding:"20px",gap:"20px"},children:[C.jsx(JL,{label:"Rango de días",value:t,setValue:r,disabled:!1}),o?C.jsx(d7,{label:"Etiquetas",multiValue:a,setMultiValue:c,values:n,placeholder:"Seleccionar",disabled:!1,fullWidth:!1}):C.jsx(PM,{label:"Etiquetas",value:s,setValue:l,values:n,placeholder:"Seleccionar",disabled:!1,fullWidth:!1,white:!1}),u?C.jsx(d7,{label:"Trabajadores",multiValue:M,setMultiValue:V,values:I,placeholder:"Seleccionar",fullWidth:!1,disabled:!1}):C.jsx(PM,{label:"Trabajadores",value:E,setValue:d,values:I,placeholder:"Seleccionar",disabled:!1,fullWidth:!1,white:!1}),C.jsx(mi,{variant:"contained",color:"gr-yellow",sx:{borderRadius:"20px",color:h=>h.palette.background.paper},onClick:()=>R(),children:"Buscar"})]})},wL=({contextMenu:e,setContextMenu:t,options:r,checked:o})=>C.jsxs(C.Fragment,{children:[C.jsx(dE,{open:e!==null,onClose:()=>t(null),anchorReference:"anchorPosition",anchorPosition:e!==null?{top:e.mouseY,left:e.mouseX}:void 0,slots:{transition:Wl},slotProps:{paper:{sx:{bgcolor:"white",borderRadius:"12px"},elevation:1}},sx:{cursor:"pointer"},children:r.filter(n=>!n.hide).map((n,s)=>C.jsxs(sr,{children:[s!==0&&r[s-1].group!==n.group?C.jsx(Ul,{}):null,C.jsxs(Io,{onClick:n.click,disabled:n.disabled,children:[C.jsx(Is,{sx:{color:l=>l.palette["gr-grey"].main},children:n.icon}),C.jsx(ms,{sx:{color:l=>l.palette["gr-grey"].main},children:n.name}),n.selected?C.jsxs(pr,{sx:{pl:3,color:l=>l.palette["gr-grey"].main},variant:"body2",children:["selecionados",":",o.length]}):null,n.onlyOne?C.jsx(pr,{sx:{pl:3,color:l=>l.palette["gr-grey"].main},variant:"body2",children:"solo uno"}):null]},s)]},s))}),r.filter(n=>!n.hide).map((n,s)=>C.jsx(sr,{children:n.dialog},s))]}),TL=e=>C.jsxs(C.Fragment,{children:[C.jsx(lA,{...e,showToolbar:!0,slots:{toolbar:PL},slotProps:{toolbar:{range:e.range,setRange:e.setRange,multipleTags:e.multipleTags,tags:e.tags,tagSelected:e.tagSelected,setTagSelected:e.setTagSelected,tagMultipleSelected:e.tagMultipleSelected,setTagMultipleSelected:e.setTagMultipleSelected,multipleEmployees:e.multipleEmployees,employees:e.employees,employeeSelected:e.employeeSelected,setEmployeeSelected:e.setEmployeeSelected,employeeMultipleSelected:e.employeeMultipleSelected,setEmployeeMultipleSelected:e.setEmployeeMultipleSelected,search:e.search}},sx:{border:"none",color:"black","& .MuiDataGrid-columnHeaderCheckbox":{backgroundColor:"white"},"& .MuiDataGrid-columnHeader":{backgroundColor:"white"},"& .MuiDataGrid-virtualScroller":{bgcolor:"white",borderBottomLeftRadius:"20px",borderBottomRightRadius:"20px"},"& .MuiDataGrid-checkboxInput":{color:t=>t.palette.background.paper},"& .MuiDataGrid-footerContainer":{borderTop:"none",fontWeight:"500",display:"flex",justifyContent:"center",alignItems:"center"},"& .MuiIconButton-root":{color:t=>t.palette.background.paper,"&.Mui-disabled":{color:"#888",backgroundColor:"#eee",opacity:.7}}},loading:e.loading,checkboxSelection:!0,pagination:!0,autoPageSize:!0,paginationModel:e.paginationModel,onPaginationModelChange:t=>{e.setPaginationModel(t)},onRowSelectionModelChange:t=>{e.setRowSelectionModel(t)},rowSelectionModel:e.rowSelectionModel}),C.jsx(wL,{contextMenu:e.contextMenu,setContextMenu:e.setContextMenu,options:e.options,checked:e.rowSelectionModel})]}),GL=()=>{const[e,t]=xe.useState([null,null]),[r,o]=xe.useState([]),[n,s]=xe.useState(""),[l,a]=xe.useState([]),[c,u]=xe.useState([]),[I,E]=xe.useState(""),[d,M]=xe.useState([]),[V,R]=xe.useState(!1),[h,z]=xe.useState([]),[f,Z]=xe.useState({pageSize:25,page:0}),[g,p]=xe.useState({type:"include",ids:new Set}),[F,x]=xe.useState(null);return{rows:h,setRows:z,range:e,setRange:t,tags:r,setTags:o,tagSelected:n,setTagSelected:s,tagMultipleSelected:l,setTagMultipleSelected:a,employees:c,setEmployees:u,employeeSelected:I,setEmployeeSelected:E,employeeMultipleSelected:d,setEmployeeMultipleSelected:M,loading:V,setLoading:R,paginationModel:f,setPaginationModel:Z,rowSelectionModel:g,setRowSelectionModel:p,contextMenu:F,setContextMenu:x}};var ja={exports:{}},oR={},yI={exports:{}},M7;function OL(){if(M7)return yI.exports;M7=1;function e(r){var o,n,s="";if(typeof r=="string"||typeof r=="number")s+=r;else if(typeof r=="object")if(Array.isArray(r)){var l=r.length;for(o=0;o<l;o++)r[o]&&(n=e(r[o]))&&(s&&(s+=" "),s+=n)}else for(n in r)r[n]&&(s&&(s+=" "),s+=n);return s}function t(){for(var r,o,n=0,s="",l=arguments.length;n<l;n++)(r=arguments[n])&&(o=e(r))&&(s&&(s+=" "),s+=o);return s}return yI.exports=t,yI.exports.clsx=t,yI.exports}var er={},Xo={},R7;function vI(){if(R7)return Xo;R7=1,Object.defineProperty(Xo,"__esModule",{value:!0}),Xo.dontSetMe=n,Xo.findInArray=e,Xo.int=o,Xo.isFunction=t,Xo.isNum=r;function e(s,l){for(let a=0,c=s.length;a<c;a++)if(l.apply(l,[s[a],a,s]))return s[a]}function t(s){return typeof s=="function"||Object.prototype.toString.call(s)==="[object Function]"}function r(s){return typeof s=="number"&&!isNaN(s)}function o(s){return parseInt(s,10)}function n(s,l,a){if(s[l])return new Error(`Invalid prop ${l} passed to ${a} - do not set this, set it on the child.`)}return Xo}var No={},h7;function HL(){if(h7)return No;h7=1,Object.defineProperty(No,"__esModule",{value:!0}),No.browserPrefixToKey=r,No.browserPrefixToStyle=o,No.default=void 0,No.getPrefix=t;const e=["Moz","Webkit","O","ms"];function t(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window>"u")return"";const l=window.document?.documentElement?.style;if(!l||s in l)return"";for(let a=0;a<e.length;a++)if(r(s,e[a])in l)return e[a];return""}function r(s,l){return l?`${l}${n(s)}`:s}function o(s,l){return l?`-${l.toLowerCase()}-${s}`:s}function n(s){let l="",a=!0;for(let c=0;c<s.length;c++)a?(l+=s[c].toUpperCase(),a=!1):s[c]==="-"?a=!0:l+=s[c];return l}return No.default=t(),No}var V7;function nR(){if(V7)return er;V7=1,Object.defineProperty(er,"__esModule",{value:!0}),er.addClassName=p,er.addEvent=l,er.addUserSelectStyles=f,er.createCSSTransform=M,er.createSVGTransform=V,er.getTouch=h,er.getTouchIdentifier=z,er.getTranslation=R,er.innerHeight=I,er.innerWidth=E,er.matchesSelector=n,er.matchesSelectorAndParentsTo=s,er.offsetXYFromParent=d,er.outerHeight=c,er.outerWidth=u,er.removeClassName=F,er.removeEvent=a,er.scheduleRemoveUserSelectStyles=Z;var e=vI(),t=r(HL());function r(x,q){if(typeof WeakMap=="function")var v=new WeakMap,S=new WeakMap;return(r=function(b,A){if(!A&&b&&b.__esModule)return b;var j,k,K={__proto__:null,default:b};if(b===null||typeof b!="object"&&typeof b!="function")return K;if(j=A?S:v){if(j.has(b))return j.get(b);j.set(b,K)}for(const Y in b)Y!=="default"&&{}.hasOwnProperty.call(b,Y)&&((k=(j=Object.defineProperty)&&Object.getOwnPropertyDescriptor(b,Y))&&(k.get||k.set)?j(K,Y,k):K[Y]=b[Y]);return K})(x,q)}let o="";function n(x,q){return o||(o=(0,e.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(v){return(0,e.isFunction)(x[v])})),(0,e.isFunction)(x[o])?x[o](q):!1}function s(x,q,v){let S=x;do{if(n(S,q))return!0;if(S===v)return!1;S=S.parentNode}while(S);return!1}function l(x,q,v,S){if(!x)return;const b={capture:!0,...S};x.addEventListener?x.addEventListener(q,v,b):x.attachEvent?x.attachEvent("on"+q,v):x["on"+q]=v}function a(x,q,v,S){if(!x)return;const b={capture:!0,...S};x.removeEventListener?x.removeEventListener(q,v,b):x.detachEvent?x.detachEvent("on"+q,v):x["on"+q]=null}function c(x){let q=x.clientHeight;const v=x.ownerDocument.defaultView.getComputedStyle(x);return q+=(0,e.int)(v.borderTopWidth),q+=(0,e.int)(v.borderBottomWidth),q}function u(x){let q=x.clientWidth;const v=x.ownerDocument.defaultView.getComputedStyle(x);return q+=(0,e.int)(v.borderLeftWidth),q+=(0,e.int)(v.borderRightWidth),q}function I(x){let q=x.clientHeight;const v=x.ownerDocument.defaultView.getComputedStyle(x);return q-=(0,e.int)(v.paddingTop),q-=(0,e.int)(v.paddingBottom),q}function E(x){let q=x.clientWidth;const v=x.ownerDocument.defaultView.getComputedStyle(x);return q-=(0,e.int)(v.paddingLeft),q-=(0,e.int)(v.paddingRight),q}function d(x,q,v){const b=q===q.ownerDocument.body?{left:0,top:0}:q.getBoundingClientRect(),A=(x.clientX+q.scrollLeft-b.left)/v,j=(x.clientY+q.scrollTop-b.top)/v;return{x:A,y:j}}function M(x,q){const v=R(x,q,"px");return{[(0,t.browserPrefixToKey)("transform",t.default)]:v}}function V(x,q){return R(x,q,"")}function R(x,q,v){let{x:S,y:b}=x,A=`translate(${S}${v},${b}${v})`;if(q){const j=`${typeof q.x=="string"?q.x:q.x+v}`,k=`${typeof q.y=="string"?q.y:q.y+v}`;A=`translate(${j}, ${k})`+A}return A}function h(x,q){return x.targetTouches&&(0,e.findInArray)(x.targetTouches,v=>q===v.identifier)||x.changedTouches&&(0,e.findInArray)(x.changedTouches,v=>q===v.identifier)}function z(x){if(x.targetTouches&&x.targetTouches[0])return x.targetTouches[0].identifier;if(x.changedTouches&&x.changedTouches[0])return x.changedTouches[0].identifier}function f(x){if(!x)return;let q=x.getElementById("react-draggable-style-el");q||(q=x.createElement("style"),q.type="text/css",q.id="react-draggable-style-el",q.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
504
504
  `,q.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
505
- `,x.getElementsByTagName("head")[0].appendChild(q)),x.body&&p(x.body,"react-draggable-transparent-selection")}function Z(x){window.requestAnimationFrame?window.requestAnimationFrame(()=>{g(x)}):g(x)}function g(x){if(x)try{if(x.body&&F(x.body,"react-draggable-transparent-selection"),x.selection)x.selection.empty();else{const q=(x.defaultView||window).getSelection();q&&q.type!=="Caret"&&q.removeAllRanges()}}catch{}}function p(x,q){x.classList?x.classList.add(q):x.className.match(new RegExp(`(?:^|\\s)${q}(?!\\S)`))||(x.className+=` ${q}`)}function F(x,q){x.classList?x.classList.remove(q):x.className=x.className.replace(new RegExp(`(?:^|\\s)${q}(?!\\S)`,"g"),"")}return er}var to={},z7;function C7(){if(z7)return to;z7=1,Object.defineProperty(to,"__esModule",{value:!0}),to.canDragX=n,to.canDragY=s,to.createCoreData=a,to.createDraggableData=c,to.getBoundPosition=r,to.getControlPosition=l,to.snapToGrid=o;var e=vI(),t=nR();function r(E,d,M){if(!E.props.bounds)return[d,M];let{bounds:V}=E.props;V=typeof V=="string"?V:u(V);const R=I(E);if(typeof V=="string"){const{ownerDocument:h}=R,z=h.defaultView;let f;if(V==="parent"?f=R.parentNode:f=R.getRootNode().querySelector(V),!(f instanceof z.HTMLElement))throw new Error('Bounds selector "'+V+'" could not find an element.');const Z=f,g=z.getComputedStyle(R),p=z.getComputedStyle(Z);V={left:-R.offsetLeft+(0,e.int)(p.paddingLeft)+(0,e.int)(g.marginLeft),top:-R.offsetTop+(0,e.int)(p.paddingTop)+(0,e.int)(g.marginTop),right:(0,t.innerWidth)(Z)-(0,t.outerWidth)(R)-R.offsetLeft+(0,e.int)(p.paddingRight)-(0,e.int)(g.marginRight),bottom:(0,t.innerHeight)(Z)-(0,t.outerHeight)(R)-R.offsetTop+(0,e.int)(p.paddingBottom)-(0,e.int)(g.marginBottom)}}return(0,e.isNum)(V.right)&&(d=Math.min(d,V.right)),(0,e.isNum)(V.bottom)&&(M=Math.min(M,V.bottom)),(0,e.isNum)(V.left)&&(d=Math.max(d,V.left)),(0,e.isNum)(V.top)&&(M=Math.max(M,V.top)),[d,M]}function o(E,d,M){const V=Math.round(d/E[0])*E[0],R=Math.round(M/E[1])*E[1];return[V,R]}function n(E){return E.props.axis==="both"||E.props.axis==="x"}function s(E){return E.props.axis==="both"||E.props.axis==="y"}function l(E,d,M){const V=typeof d=="number"?(0,t.getTouch)(E,d):null;if(typeof d=="number"&&!V)return null;const R=I(M),h=M.props.offsetParent||R.offsetParent||R.ownerDocument.body;return(0,t.offsetXYFromParent)(V||E,h,M.props.scale)}function a(E,d,M){const V=!(0,e.isNum)(E.lastX),R=I(E);return V?{node:R,deltaX:0,deltaY:0,lastX:d,lastY:M,x:d,y:M}:{node:R,deltaX:d-E.lastX,deltaY:M-E.lastY,lastX:E.lastX,lastY:E.lastY,x:d,y:M}}function c(E,d){const M=E.props.scale;return{node:d.node,x:E.state.x+d.deltaX/M,y:E.state.y+d.deltaY/M,deltaX:d.deltaX/M,deltaY:d.deltaY/M,lastX:E.state.x,lastY:E.state.y}}function u(E){return{left:E.left,top:E.top,right:E.right,bottom:E.bottom}}function I(E){const d=E.findDOMNode();if(!d)throw new Error("<DraggableCore>: Unmounted during event!");return d}return to}var Ua={},FI={},f7;function Z7(){if(f7)return FI;f7=1,Object.defineProperty(FI,"__esModule",{value:!0}),FI.default=e;function e(){}return FI}var p7;function BL(){if(p7)return Ua;p7=1,Object.defineProperty(Ua,"__esModule",{value:!0}),Ua.default=void 0;var e=c(xe),t=a(tm()),r=a(tn),o=nR(),n=C7(),s=vI(),l=a(Z7());function a(R){return R&&R.__esModule?R:{default:R}}function c(R,h){if(typeof WeakMap=="function")var z=new WeakMap,f=new WeakMap;return(c=function(Z,g){if(!g&&Z&&Z.__esModule)return Z;var p,F,x={__proto__:null,default:Z};if(Z===null||typeof Z!="object"&&typeof Z!="function")return x;if(p=g?f:z){if(p.has(Z))return p.get(Z);p.set(Z,x)}for(const q in Z)q!=="default"&&{}.hasOwnProperty.call(Z,q)&&((F=(p=Object.defineProperty)&&Object.getOwnPropertyDescriptor(Z,q))&&(F.get||F.set)?p(x,q,F):x[q]=Z[q]);return x})(R,h)}function u(R,h,z){return(h=I(h))in R?Object.defineProperty(R,h,{value:z,enumerable:!0,configurable:!0,writable:!0}):R[h]=z,R}function I(R){var h=E(R,"string");return typeof h=="symbol"?h:h+""}function E(R,h){if(typeof R!="object"||!R)return R;var z=R[Symbol.toPrimitive];if(z!==void 0){var f=z.call(R,h);if(typeof f!="object")return f;throw new TypeError("@@toPrimitive must return a primitive value.")}return(h==="string"?String:Number)(R)}const d={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let M=d.mouse,V=class extends e.Component{constructor(){super(...arguments),u(this,"dragging",!1),u(this,"lastX",NaN),u(this,"lastY",NaN),u(this,"touchIdentifier",null),u(this,"mounted",!1),u(this,"handleDragStart",h=>{if(this.props.onMouseDown(h),!this.props.allowAnyClick&&typeof h.button=="number"&&h.button!==0)return!1;const z=this.findDOMNode();if(!z||!z.ownerDocument||!z.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:f}=z;if(this.props.disabled||!(h.target instanceof f.defaultView.Node)||this.props.handle&&!(0,o.matchesSelectorAndParentsTo)(h.target,this.props.handle,z)||this.props.cancel&&(0,o.matchesSelectorAndParentsTo)(h.target,this.props.cancel,z))return;h.type==="touchstart"&&!this.props.allowMobileScroll&&h.preventDefault();const Z=(0,o.getTouchIdentifier)(h);this.touchIdentifier=Z;const g=(0,n.getControlPosition)(h,Z,this);if(g==null)return;const{x:p,y:F}=g,x=(0,n.createCoreData)(this,p,F);(0,l.default)("DraggableCore: handleDragStart: %j",x),(0,l.default)("calling",this.props.onStart),!(this.props.onStart(h,x)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,o.addUserSelectStyles)(f),this.dragging=!0,this.lastX=p,this.lastY=F,(0,o.addEvent)(f,M.move,this.handleDrag),(0,o.addEvent)(f,M.stop,this.handleDragStop))}),u(this,"handleDrag",h=>{const z=(0,n.getControlPosition)(h,this.touchIdentifier,this);if(z==null)return;let{x:f,y:Z}=z;if(Array.isArray(this.props.grid)){let F=f-this.lastX,x=Z-this.lastY;if([F,x]=(0,n.snapToGrid)(this.props.grid,F,x),!F&&!x)return;f=this.lastX+F,Z=this.lastY+x}const g=(0,n.createCoreData)(this,f,Z);if((0,l.default)("DraggableCore: handleDrag: %j",g),this.props.onDrag(h,g)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch{const x=document.createEvent("MouseEvents");x.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(x)}return}this.lastX=f,this.lastY=Z}),u(this,"handleDragStop",h=>{if(!this.dragging)return;const z=(0,n.getControlPosition)(h,this.touchIdentifier,this);if(z==null)return;let{x:f,y:Z}=z;if(Array.isArray(this.props.grid)){let x=f-this.lastX||0,q=Z-this.lastY||0;[x,q]=(0,n.snapToGrid)(this.props.grid,x,q),f=this.lastX+x,Z=this.lastY+q}const g=(0,n.createCoreData)(this,f,Z);if(this.props.onStop(h,g)===!1||this.mounted===!1)return!1;const F=this.findDOMNode();F&&this.props.enableUserSelectHack&&(0,o.scheduleRemoveUserSelectStyles)(F.ownerDocument),(0,l.default)("DraggableCore: handleDragStop: %j",g),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,F&&((0,l.default)("DraggableCore: Removing handlers"),(0,o.removeEvent)(F.ownerDocument,M.move,this.handleDrag),(0,o.removeEvent)(F.ownerDocument,M.stop,this.handleDragStop))}),u(this,"onMouseDown",h=>(M=d.mouse,this.handleDragStart(h))),u(this,"onMouseUp",h=>(M=d.mouse,this.handleDragStop(h))),u(this,"onTouchStart",h=>(M=d.touch,this.handleDragStart(h))),u(this,"onTouchEnd",h=>(M=d.touch,this.handleDragStop(h)))}componentDidMount(){this.mounted=!0;const h=this.findDOMNode();h&&(0,o.addEvent)(h,d.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const h=this.findDOMNode();if(h){const{ownerDocument:z}=h;(0,o.removeEvent)(z,d.mouse.move,this.handleDrag),(0,o.removeEvent)(z,d.touch.move,this.handleDrag),(0,o.removeEvent)(z,d.mouse.stop,this.handleDragStop),(0,o.removeEvent)(z,d.touch.stop,this.handleDragStop),(0,o.removeEvent)(h,d.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,o.scheduleRemoveUserSelectStyles)(z)}}findDOMNode(){return this.props?.nodeRef?this.props?.nodeRef?.current:r.default.findDOMNode(this)}render(){return e.cloneElement(e.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};return Ua.default=V,u(V,"displayName","DraggableCore"),u(V,"propTypes",{allowAnyClick:t.default.bool,allowMobileScroll:t.default.bool,children:t.default.node.isRequired,disabled:t.default.bool,enableUserSelectHack:t.default.bool,offsetParent:function(R,h){if(R[h]&&R[h].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:t.default.arrayOf(t.default.number),handle:t.default.string,cancel:t.default.string,nodeRef:t.default.object,onStart:t.default.func,onDrag:t.default.func,onStop:t.default.func,onMouseDown:t.default.func,scale:t.default.number,className:s.dontSetMe,style:s.dontSetMe,transform:s.dontSetMe}),u(V,"defaultProps",{allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),Ua}var q7;function LL(){return q7||(q7=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return c.default}}),e.default=void 0;var t=E(xe),r=I(tm()),o=I(tn),n=OL(),s=nR(),l=C7(),a=vI(),c=I(BL()),u=I(Z7());function I(z){return z&&z.__esModule?z:{default:z}}function E(z,f){if(typeof WeakMap=="function")var Z=new WeakMap,g=new WeakMap;return(E=function(p,F){if(!F&&p&&p.__esModule)return p;var x,q,v={__proto__:null,default:p};if(p===null||typeof p!="object"&&typeof p!="function")return v;if(x=F?g:Z){if(x.has(p))return x.get(p);x.set(p,v)}for(const S in p)S!=="default"&&{}.hasOwnProperty.call(p,S)&&((q=(x=Object.defineProperty)&&Object.getOwnPropertyDescriptor(p,S))&&(q.get||q.set)?x(v,S,q):v[S]=p[S]);return v})(z,f)}function d(){return d=Object.assign?Object.assign.bind():function(z){for(var f=1;f<arguments.length;f++){var Z=arguments[f];for(var g in Z)({}).hasOwnProperty.call(Z,g)&&(z[g]=Z[g])}return z},d.apply(null,arguments)}function M(z,f,Z){return(f=V(f))in z?Object.defineProperty(z,f,{value:Z,enumerable:!0,configurable:!0,writable:!0}):z[f]=Z,z}function V(z){var f=R(z,"string");return typeof f=="symbol"?f:f+""}function R(z,f){if(typeof z!="object"||!z)return z;var Z=z[Symbol.toPrimitive];if(Z!==void 0){var g=Z.call(z,f);if(typeof g!="object")return g;throw new TypeError("@@toPrimitive must return a primitive value.")}return(f==="string"?String:Number)(z)}class h extends t.Component{static getDerivedStateFromProps(f,Z){let{position:g}=f,{prevPropsPosition:p}=Z;return g&&(!p||g.x!==p.x||g.y!==p.y)?((0,u.default)("Draggable: getDerivedStateFromProps %j",{position:g,prevPropsPosition:p}),{x:g.x,y:g.y,prevPropsPosition:{...g}}):null}constructor(f){super(f),M(this,"onDragStart",(Z,g)=>{if((0,u.default)("Draggable: onDragStart: %j",g),this.props.onStart(Z,(0,l.createDraggableData)(this,g))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),M(this,"onDrag",(Z,g)=>{if(!this.state.dragging)return!1;(0,u.default)("Draggable: onDrag: %j",g);const p=(0,l.createDraggableData)(this,g),F={x:p.x,y:p.y,slackX:0,slackY:0};if(this.props.bounds){const{x:q,y:v}=F;F.x+=this.state.slackX,F.y+=this.state.slackY;const[S,b]=(0,l.getBoundPosition)(this,F.x,F.y);F.x=S,F.y=b,F.slackX=this.state.slackX+(q-F.x),F.slackY=this.state.slackY+(v-F.y),p.x=F.x,p.y=F.y,p.deltaX=F.x-this.state.x,p.deltaY=F.y-this.state.y}if(this.props.onDrag(Z,p)===!1)return!1;this.setState(F)}),M(this,"onDragStop",(Z,g)=>{if(!this.state.dragging||this.props.onStop(Z,(0,l.createDraggableData)(this,g))===!1)return!1;(0,u.default)("Draggable: onDragStop: %j",g);const F={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:q,y:v}=this.props.position;F.x=q,F.y=v}this.setState(F)}),this.state={dragging:!1,dragged:!1,x:f.position?f.position.x:f.defaultPosition.x,y:f.position?f.position.y:f.defaultPosition.y,prevPropsPosition:{...f.position},slackX:0,slackY:0,isElementSVG:!1},f.position&&!(f.onDrag||f.onStop)&&console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){typeof window.SVGElement<"u"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.state.dragging&&this.setState({dragging:!1})}findDOMNode(){return this.props?.nodeRef?.current??o.default.findDOMNode(this)}render(){const{axis:f,bounds:Z,children:g,defaultPosition:p,defaultClassName:F,defaultClassNameDragging:x,defaultClassNameDragged:q,position:v,positionOffset:S,scale:b,...A}=this.props;let j={},k=null;const Y=!!!v||this.state.dragging,Q=v||p,P={x:(0,l.canDragX)(this)&&Y?this.state.x:Q.x,y:(0,l.canDragY)(this)&&Y?this.state.y:Q.y};this.state.isElementSVG?k=(0,s.createSVGTransform)(P,S):j=(0,s.createCSSTransform)(P,S);const J=(0,n.clsx)(g.props.className||"",F,{[x]:this.state.dragging,[q]:this.state.dragged});return t.createElement(c.default,d({},A,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),t.cloneElement(t.Children.only(g),{className:J,style:{...g.props.style,...j},transform:k}))}}e.default=h,M(h,"displayName","Draggable"),M(h,"propTypes",{...c.default.propTypes,axis:r.default.oneOf(["both","x","y","none"]),bounds:r.default.oneOfType([r.default.shape({left:r.default.number,right:r.default.number,top:r.default.number,bottom:r.default.number}),r.default.string,r.default.oneOf([!1])]),defaultClassName:r.default.string,defaultClassNameDragging:r.default.string,defaultClassNameDragged:r.default.string,defaultPosition:r.default.shape({x:r.default.number,y:r.default.number}),positionOffset:r.default.shape({x:r.default.oneOfType([r.default.number,r.default.string]),y:r.default.oneOfType([r.default.number,r.default.string])}),position:r.default.shape({x:r.default.number,y:r.default.number}),className:a.dontSetMe,style:a.dontSetMe,transform:a.dontSetMe}),M(h,"defaultProps",{...c.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})}(oR)),oR}var A7;function XL(){if(A7)return ja.exports;A7=1;const{default:e,DraggableCore:t}=LL();return ja.exports=e,ja.exports.default=e,ja.exports.DraggableCore=t,ja.exports}var NL=XL();const DL=qo(NL),$L=yt(C.jsx("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}),"Warning"),_L=e=>{const t=tL(e);return t7({manager:t,props:e})},eX=["slots","slotProps"],sR=m.forwardRef(function(t,r){const o=oo({props:t,name:"MuiDateTimeField"}),{slots:n,slotProps:s}=o,l=Ie(o,eX),a=PA({slotProps:s,ref:r,externalForwardedProps:l}),c=_L(a);return C.jsx(JA,{slots:n,slotProps:s,fieldResponse:c,defaultOpenPickerIcon:p6})});process.env.NODE_ENV!=="production"&&(sR.displayName="DateTimeField"),process.env.NODE_ENV!=="production"&&(sR.propTypes={ampm:i.bool,autoFocus:i.bool,className:i.string,clearable:i.bool,clearButtonPosition:i.oneOf(["end","start"]),color:i.oneOf(["error","info","primary","secondary","success","warning"]),component:i.elementType,defaultValue:i.object,disabled:i.bool,disableFuture:i.bool,disableIgnoringDatePartForTimeValidation:i.bool,disablePast:i.bool,enableAccessibleFieldDOMStructure:i.bool,focused:i.bool,format:i.string,formatDensity:i.oneOf(["dense","spacious"]),FormHelperTextProps:i.object,fullWidth:i.bool,helperText:i.node,hiddenLabel:i.bool,id:i.string,InputLabelProps:i.object,inputProps:i.object,InputProps:i.object,inputRef:_t,label:i.node,margin:i.oneOf(["dense","none","normal"]),maxDate:i.object,maxDateTime:i.object,maxTime:i.object,minDate:i.object,minDateTime:i.object,minTime:i.object,minutesStep:i.number,name:i.string,onBlur:i.func,onChange:i.func,onClear:i.func,onError:i.func,onFocus:i.func,onSelectedSectionsChange:i.func,openPickerButtonPosition:i.oneOf(["end","start"]),readOnly:i.bool,referenceDate:i.object,required:i.bool,selectedSections:i.oneOfType([i.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),i.number]),shouldDisableDate:i.func,shouldDisableMonth:i.func,shouldDisableTime:i.func,shouldDisableYear:i.func,shouldRespectLeadingZeros:i.bool,size:i.oneOf(["medium","small"]),slotProps:i.object,slots:i.object,style:i.object,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),timezone:i.string,unstableFieldRef:i.oneOfType([i.func,i.object]),value:i.object,variant:i.oneOf(["filled","outlined","standard"])});const tX=yt(C.jsx("path",{d:"M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 18H4V8h16z"}),"CalendarToday"),rX=({label:e,value:t,setValue:r,disabled:o,white:n})=>C.jsx(C.Fragment,{children:C.jsx(nI,{dateAdapter:E7,children:C.jsx(sR,{label:e,value:t,onChange:s=>{r(s)},InputProps:{sx:{borderRadius:"16px",color:n?"black !important":"white !important"}},size:"small",color:"gr-yellow",slotProps:{textField:{InputLabelProps:{sx:{color:n?"black !important":"white !important"}}}},focused:!0,format:"YYYY-MM-DD",disabled:o,fullWidth:!0,endAdornment:C.jsx(Lc,{position:"end",sx:{color:n?"black":"white"},children:C.jsx(tX,{sx:{height:"18px",mt:"-4px"}})})})})}),iX=e=>{const t=xe.useRef(null);return C.jsx(C.Fragment,{children:C.jsx(DL,{nodeRef:t,handle:"#draggable-dialog-title",cancel:'[class*="MuiDialogContent-root"]',children:C.jsx(lo,{...e,ref:t,sx:{bgcolor:"white",color:r=>r.palette.background.paper,padding:"20px",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:"50px",borderRadius:"20px"}})})})},oX=({open:e,setOpen:t,fields:r,onClickSave:o})=>{const[n,s]=xe.useState(!1),l=(u,I)=>{switch(u.type){case"text":return C.jsx(kt,{size:u.ncolumn,sx:{mb:"20px"},children:C.jsx(Cn,{fullWidth:!0,variant:"outlined",label:u.label,type:u.type,placeholder:u.placeholder,focused:!0,value:u.value,onChange:E=>{u.setValue(E.target.value)}})},I);case"select":return C.jsx(kt,{size:u.ncolumn,sx:{mb:"20px"},children:C.jsx(PM,{label:u.label,placeholder:u.placeholder,value:u.value,setValue:u.setValue,values:u.values,disabled:!1,white:!0})},I);case"date":return C.jsx(kt,{size:u.ncolumn,sx:{mb:"20px"},children:C.jsx(rX,{label:u.label,value:u.value,setValue:u.setValue,disabled:!1,white:!0})},I);default:return C.jsx(C.Fragment,{})}},a=()=>{r.forEach(u=>{u.setValue(u.initialValue)}),s(!1)},c=u=>{u.some(E=>E.value!==E.initialValue)?s(!0):t(!1)};return C.jsx(C.Fragment,{children:C.jsxs(Sz,{open:e,onClose:()=>t(!1),PaperComponent:iX,"aria-labelledby":"draggable-dialog-title",children:[C.jsx(kz,{style:{cursor:"move",textAlign:"center",margin:0,padding:0},id:"draggable-dialog-title",children:"Agregar empleado"}),n&&C.jsx(rE,{sx:{padding:0,margin:0,width:"100%"},children:C.jsxs(jV,{icon:C.jsx($L,{}),sx:{borderRadius:"24px",bgcolor:"#FFEFE5",border:u=>`1px solid ${u.palette["gr-orange"].main}`,"& .MuiAlert-icon":{color:u=>u.palette["gr-orange"].main}},action:C.jsxs(sr,{sx:{mt:3.75},children:[C.jsx(mi,{color:"gr-grey",size:"small",onClick:()=>s(!1),children:C.jsx("b",{children:"SI"})}),C.jsx(mi,{color:"gr-grey",size:"small",onClick:()=>{a(),t(!1)},children:C.jsx("b",{children:"NO"})})]}),children:[C.jsx(JV,{children:"Hay cambios sin guardar"}),C.jsx(pr,{variant:"body2",children:"¿Desea continuar?"})]})}),C.jsx(rE,{sx:{padding:0,margin:0},children:C.jsx(kt,{container:!0,spacing:2,sx:{mt:1},children:r.map((u,I)=>l(u,I))})}),C.jsxs(Wz,{sx:{display:"flex",flexDirection:"row",justifyContent:"flex-end",alignItems:"center",width:"100%"},children:[C.jsx(mi,{variant:"outlined",autoFocus:!0,onClick:()=>c(r),sx:{minWidth:"130px",borderRadius:"44px",fontWeight:"500"},color:"gr-base-dark",children:"Cancel"}),C.jsx(mi,{variant:"contained",onClick:()=>{console.log("data",r.map(u=>({label:u.label,value:u.value}))),o()},sx:{minWidth:"130px",borderRadius:"44px",color:"white",fontWeight:"500"},color:"gr-base-dark",disableElevation:!0,children:"Agregar"})]})]})})},Qn={config:{isInitialized:!1},traits:{}},nX="__mui_x_telemetry_";function g7(e){return nX+btoa(e)}function lR(e,t,r){try{if(typeof window<"u"&&window[e])return window[e].setItem(g7(t),r),!0}catch{}return!1}function aR(e,t){try{if(typeof window<"u"&&window[e])return window[e].getItem(g7(t))}catch{}return null}function cR(e){let t="";const r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",o=r.length;let n=0;for(;n<e;)t+=r.charAt(Math.floor(Math.random()*o)),n+=1;return t}function sX(e,t){return t.reduce((r,o)=>(r[o]=e[o],r),{})}const lX=typeof window>"u"||process.env.NODE_ENV==="test"?()=>{}:async()=>{const e="fingerprint";try{const t=aR("localStorage",e);if(t)return JSON.parse(t);const r=await Promise.resolve().then(()=>U8),n=await(await r.load({monitoring:!1})).get(),s=y({},n.components);delete s.cookiesEnabled;const l=r.hashComponents(s),a=r.hashComponents(y({},sX(s,["fonts","audio","languages","deviceMemory","timezone","sessionStorage","localStorage","indexedDB","openDatabase","platform","canvas","vendor","vendorFlavors","colorGamut","forcedColors","monochrome","contrast","reducedMotion","math","videoCard","architecture"]))),c={fullHash:l,coreHash:a};return lR("localStorage",e,JSON.stringify(c)),c}catch{return null}};function aX(){const e="anonymous_id",t=aR("localStorage",e);if(t)return t;const r=`anid_${cR(32)}`;return lR("localStorage",e,r)?r:""}function cX(){const e="session_id",t=aR("sessionStorage",e);if(t)return t;const r=`sesid_${cR(32)}`;return lR("sessionStorage",e,r)?r:`sestp_${cR(32)}`}async function uX(){return Qn.traits.sessionId=cX(),Qn.config.isInitialized||(Qn.traits.anonymousId=aX(),Qn.config.isInitialized=!0),Qn.traits.fingerprint||(Qn.traits.fingerprint=await lX()),Qn}const IX=Object.freeze(Object.defineProperty({__proto__:null,default:uX},Symbol.toStringTag,{value:"Module"}));var uR=function(){return uR=Object.assign||function(t){for(var r,o=1,n=arguments.length;o<n;o++){r=arguments[o];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},uR.apply(this,arguments)};function fo(e,t,r,o){function n(s){return s instanceof r?s:new r(function(l){l(s)})}return new(r||(r=Promise))(function(s,l){function a(I){try{u(o.next(I))}catch(E){l(E)}}function c(I){try{u(o.throw(I))}catch(E){l(E)}}function u(I){I.done?s(I.value):n(I.value).then(a,c)}u((o=o.apply(e,t||[])).next())})}function Zo(e,t){var r={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},o,n,s,l=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return l.next=a(0),l.throw=a(1),l.return=a(2),typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function a(u){return function(I){return c([u,I])}}function c(u){if(o)throw new TypeError("Generator is already executing.");for(;l&&(l=0,u[0]&&(r=0)),r;)try{if(o=1,n&&(s=u[0]&2?n.return:u[0]?n.throw||((s=n.return)&&s.call(n),0):n.next)&&!(s=s.call(n,u[1])).done)return s;switch(n=0,s&&(u=[u[0]&2,s.value]),u[0]){case 0:case 1:s=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,n=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(s=r.trys,!(s=s.length>0&&s[s.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!s||u[1]>s[0]&&u[1]<s[3])){r.label=u[1];break}if(u[0]===6&&r.label<s[1]){r.label=s[1],s=u;break}if(s&&r.label<s[2]){r.label=s[2],r.ops.push(u);break}s[2]&&r.ops.pop(),r.trys.pop();continue}u=t.call(e,r)}catch(I){u=[6,I],n=0}finally{o=s=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function y7(e,t,r){if(r||arguments.length===2)for(var o=0,n=t.length,s;o<n;o++)(s||!(o in t))&&(s||(s=Array.prototype.slice.call(t,0,o)),s[o]=t[o]);return e.concat(s||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var v7="3.4.2";function Qa(e,t){return new Promise(function(r){return setTimeout(r,e,t)})}function mX(e,t){t===void 0&&(t=1/0);var r=window.requestIdleCallback;return r?new Promise(function(o){return r.call(window,function(){return o()},{timeout:t})}):Qa(Math.min(e,t))}function xI(e){return!!e&&typeof e.then=="function"}function F7(e,t){try{var r=e();xI(r)?r.then(function(o){return t(!0,o)},function(o){return t(!1,o)}):t(!0,r)}catch(o){t(!1,o)}}function x7(e,t,r){return r===void 0&&(r=16),fo(this,void 0,void 0,function(){var o,n,s,l;return Zo(this,function(a){switch(a.label){case 0:o=Array(e.length),n=Date.now(),s=0,a.label=1;case 1:return s<e.length?(o[s]=t(e[s],s),l=Date.now(),l>=n+r?(n=l,[4,Qa(0)]):[3,3]):[3,4];case 2:a.sent(),a.label=3;case 3:return++s,[3,1];case 4:return[2,o]}})})}function Ja(e){e.then(void 0,function(){})}function Do(e,t){e=[e[0]>>>16,e[0]&65535,e[1]>>>16,e[1]&65535],t=[t[0]>>>16,t[0]&65535,t[1]>>>16,t[1]&65535];var r=[0,0,0,0];return r[3]+=e[3]+t[3],r[2]+=r[3]>>>16,r[3]&=65535,r[2]+=e[2]+t[2],r[1]+=r[2]>>>16,r[2]&=65535,r[1]+=e[1]+t[1],r[0]+=r[1]>>>16,r[1]&=65535,r[0]+=e[0]+t[0],r[0]&=65535,[r[0]<<16|r[1],r[2]<<16|r[3]]}function Zi(e,t){e=[e[0]>>>16,e[0]&65535,e[1]>>>16,e[1]&65535],t=[t[0]>>>16,t[0]&65535,t[1]>>>16,t[1]&65535];var r=[0,0,0,0];return r[3]+=e[3]*t[3],r[2]+=r[3]>>>16,r[3]&=65535,r[2]+=e[2]*t[3],r[1]+=r[2]>>>16,r[2]&=65535,r[2]+=e[3]*t[2],r[1]+=r[2]>>>16,r[2]&=65535,r[1]+=e[1]*t[3],r[0]+=r[1]>>>16,r[1]&=65535,r[1]+=e[2]*t[2],r[0]+=r[1]>>>16,r[1]&=65535,r[1]+=e[3]*t[1],r[0]+=r[1]>>>16,r[1]&=65535,r[0]+=e[0]*t[3]+e[1]*t[2]+e[2]*t[1]+e[3]*t[0],r[0]&=65535,[r[0]<<16|r[1],r[2]<<16|r[3]]}function Xs(e,t){return t%=64,t===32?[e[1],e[0]]:t<32?[e[0]<<t|e[1]>>>32-t,e[1]<<t|e[0]>>>32-t]:(t-=32,[e[1]<<t|e[0]>>>32-t,e[0]<<t|e[1]>>>32-t])}function $r(e,t){return t%=64,t===0?e:t<32?[e[0]<<t|e[1]>>>32-t,e[1]<<t]:[e[1]<<t-32,0]}function Pt(e,t){return[e[0]^t[0],e[1]^t[1]]}function K7(e){return e=Pt(e,[0,e[0]>>>1]),e=Zi(e,[4283543511,3981806797]),e=Pt(e,[0,e[0]>>>1]),e=Zi(e,[3301882366,444984403]),e=Pt(e,[0,e[0]>>>1]),e}function b7(e,t){e=e||"",t=t||0;var r=e.length%16,o=e.length-r,n=[0,t],s=[0,t],l=[0,0],a=[0,0],c=[2277735313,289559509],u=[1291169091,658871167],I;for(I=0;I<o;I=I+16)l=[e.charCodeAt(I+4)&255|(e.charCodeAt(I+5)&255)<<8|(e.charCodeAt(I+6)&255)<<16|(e.charCodeAt(I+7)&255)<<24,e.charCodeAt(I)&255|(e.charCodeAt(I+1)&255)<<8|(e.charCodeAt(I+2)&255)<<16|(e.charCodeAt(I+3)&255)<<24],a=[e.charCodeAt(I+12)&255|(e.charCodeAt(I+13)&255)<<8|(e.charCodeAt(I+14)&255)<<16|(e.charCodeAt(I+15)&255)<<24,e.charCodeAt(I+8)&255|(e.charCodeAt(I+9)&255)<<8|(e.charCodeAt(I+10)&255)<<16|(e.charCodeAt(I+11)&255)<<24],l=Zi(l,c),l=Xs(l,31),l=Zi(l,u),n=Pt(n,l),n=Xs(n,27),n=Do(n,s),n=Do(Zi(n,[0,5]),[0,1390208809]),a=Zi(a,u),a=Xs(a,33),a=Zi(a,c),s=Pt(s,a),s=Xs(s,31),s=Do(s,n),s=Do(Zi(s,[0,5]),[0,944331445]);switch(l=[0,0],a=[0,0],r){case 15:a=Pt(a,$r([0,e.charCodeAt(I+14)],48));case 14:a=Pt(a,$r([0,e.charCodeAt(I+13)],40));case 13:a=Pt(a,$r([0,e.charCodeAt(I+12)],32));case 12:a=Pt(a,$r([0,e.charCodeAt(I+11)],24));case 11:a=Pt(a,$r([0,e.charCodeAt(I+10)],16));case 10:a=Pt(a,$r([0,e.charCodeAt(I+9)],8));case 9:a=Pt(a,[0,e.charCodeAt(I+8)]),a=Zi(a,u),a=Xs(a,33),a=Zi(a,c),s=Pt(s,a);case 8:l=Pt(l,$r([0,e.charCodeAt(I+7)],56));case 7:l=Pt(l,$r([0,e.charCodeAt(I+6)],48));case 6:l=Pt(l,$r([0,e.charCodeAt(I+5)],40));case 5:l=Pt(l,$r([0,e.charCodeAt(I+4)],32));case 4:l=Pt(l,$r([0,e.charCodeAt(I+3)],24));case 3:l=Pt(l,$r([0,e.charCodeAt(I+2)],16));case 2:l=Pt(l,$r([0,e.charCodeAt(I+1)],8));case 1:l=Pt(l,[0,e.charCodeAt(I)]),l=Zi(l,c),l=Xs(l,31),l=Zi(l,u),n=Pt(n,l)}return n=Pt(n,[0,e.length]),s=Pt(s,[0,e.length]),n=Do(n,s),s=Do(s,n),n=K7(n),s=K7(s),n=Do(n,s),s=Do(s,n),("00000000"+(n[0]>>>0).toString(16)).slice(-8)+("00000000"+(n[1]>>>0).toString(16)).slice(-8)+("00000000"+(s[0]>>>0).toString(16)).slice(-8)+("00000000"+(s[1]>>>0).toString(16)).slice(-8)}function EX(e){var t;return uR({name:e.name,message:e.message,stack:(t=e.stack)===null||t===void 0?void 0:t.split(`
505
+ `,x.getElementsByTagName("head")[0].appendChild(q)),x.body&&p(x.body,"react-draggable-transparent-selection")}function Z(x){window.requestAnimationFrame?window.requestAnimationFrame(()=>{g(x)}):g(x)}function g(x){if(x)try{if(x.body&&F(x.body,"react-draggable-transparent-selection"),x.selection)x.selection.empty();else{const q=(x.defaultView||window).getSelection();q&&q.type!=="Caret"&&q.removeAllRanges()}}catch{}}function p(x,q){x.classList?x.classList.add(q):x.className.match(new RegExp(`(?:^|\\s)${q}(?!\\S)`))||(x.className+=` ${q}`)}function F(x,q){x.classList?x.classList.remove(q):x.className=x.className.replace(new RegExp(`(?:^|\\s)${q}(?!\\S)`,"g"),"")}return er}var to={},z7;function C7(){if(z7)return to;z7=1,Object.defineProperty(to,"__esModule",{value:!0}),to.canDragX=n,to.canDragY=s,to.createCoreData=a,to.createDraggableData=c,to.getBoundPosition=r,to.getControlPosition=l,to.snapToGrid=o;var e=vI(),t=nR();function r(E,d,M){if(!E.props.bounds)return[d,M];let{bounds:V}=E.props;V=typeof V=="string"?V:u(V);const R=I(E);if(typeof V=="string"){const{ownerDocument:h}=R,z=h.defaultView;let f;if(V==="parent"?f=R.parentNode:f=R.getRootNode().querySelector(V),!(f instanceof z.HTMLElement))throw new Error('Bounds selector "'+V+'" could not find an element.');const Z=f,g=z.getComputedStyle(R),p=z.getComputedStyle(Z);V={left:-R.offsetLeft+(0,e.int)(p.paddingLeft)+(0,e.int)(g.marginLeft),top:-R.offsetTop+(0,e.int)(p.paddingTop)+(0,e.int)(g.marginTop),right:(0,t.innerWidth)(Z)-(0,t.outerWidth)(R)-R.offsetLeft+(0,e.int)(p.paddingRight)-(0,e.int)(g.marginRight),bottom:(0,t.innerHeight)(Z)-(0,t.outerHeight)(R)-R.offsetTop+(0,e.int)(p.paddingBottom)-(0,e.int)(g.marginBottom)}}return(0,e.isNum)(V.right)&&(d=Math.min(d,V.right)),(0,e.isNum)(V.bottom)&&(M=Math.min(M,V.bottom)),(0,e.isNum)(V.left)&&(d=Math.max(d,V.left)),(0,e.isNum)(V.top)&&(M=Math.max(M,V.top)),[d,M]}function o(E,d,M){const V=Math.round(d/E[0])*E[0],R=Math.round(M/E[1])*E[1];return[V,R]}function n(E){return E.props.axis==="both"||E.props.axis==="x"}function s(E){return E.props.axis==="both"||E.props.axis==="y"}function l(E,d,M){const V=typeof d=="number"?(0,t.getTouch)(E,d):null;if(typeof d=="number"&&!V)return null;const R=I(M),h=M.props.offsetParent||R.offsetParent||R.ownerDocument.body;return(0,t.offsetXYFromParent)(V||E,h,M.props.scale)}function a(E,d,M){const V=!(0,e.isNum)(E.lastX),R=I(E);return V?{node:R,deltaX:0,deltaY:0,lastX:d,lastY:M,x:d,y:M}:{node:R,deltaX:d-E.lastX,deltaY:M-E.lastY,lastX:E.lastX,lastY:E.lastY,x:d,y:M}}function c(E,d){const M=E.props.scale;return{node:d.node,x:E.state.x+d.deltaX/M,y:E.state.y+d.deltaY/M,deltaX:d.deltaX/M,deltaY:d.deltaY/M,lastX:E.state.x,lastY:E.state.y}}function u(E){return{left:E.left,top:E.top,right:E.right,bottom:E.bottom}}function I(E){const d=E.findDOMNode();if(!d)throw new Error("<DraggableCore>: Unmounted during event!");return d}return to}var Ua={},FI={},f7;function Z7(){if(f7)return FI;f7=1,Object.defineProperty(FI,"__esModule",{value:!0}),FI.default=e;function e(){}return FI}var p7;function BL(){if(p7)return Ua;p7=1,Object.defineProperty(Ua,"__esModule",{value:!0}),Ua.default=void 0;var e=c(xe),t=a(tm()),r=a(tn),o=nR(),n=C7(),s=vI(),l=a(Z7());function a(R){return R&&R.__esModule?R:{default:R}}function c(R,h){if(typeof WeakMap=="function")var z=new WeakMap,f=new WeakMap;return(c=function(Z,g){if(!g&&Z&&Z.__esModule)return Z;var p,F,x={__proto__:null,default:Z};if(Z===null||typeof Z!="object"&&typeof Z!="function")return x;if(p=g?f:z){if(p.has(Z))return p.get(Z);p.set(Z,x)}for(const q in Z)q!=="default"&&{}.hasOwnProperty.call(Z,q)&&((F=(p=Object.defineProperty)&&Object.getOwnPropertyDescriptor(Z,q))&&(F.get||F.set)?p(x,q,F):x[q]=Z[q]);return x})(R,h)}function u(R,h,z){return(h=I(h))in R?Object.defineProperty(R,h,{value:z,enumerable:!0,configurable:!0,writable:!0}):R[h]=z,R}function I(R){var h=E(R,"string");return typeof h=="symbol"?h:h+""}function E(R,h){if(typeof R!="object"||!R)return R;var z=R[Symbol.toPrimitive];if(z!==void 0){var f=z.call(R,h);if(typeof f!="object")return f;throw new TypeError("@@toPrimitive must return a primitive value.")}return(h==="string"?String:Number)(R)}const d={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let M=d.mouse,V=class extends e.Component{constructor(){super(...arguments),u(this,"dragging",!1),u(this,"lastX",NaN),u(this,"lastY",NaN),u(this,"touchIdentifier",null),u(this,"mounted",!1),u(this,"handleDragStart",h=>{if(this.props.onMouseDown(h),!this.props.allowAnyClick&&typeof h.button=="number"&&h.button!==0)return!1;const z=this.findDOMNode();if(!z||!z.ownerDocument||!z.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:f}=z;if(this.props.disabled||!(h.target instanceof f.defaultView.Node)||this.props.handle&&!(0,o.matchesSelectorAndParentsTo)(h.target,this.props.handle,z)||this.props.cancel&&(0,o.matchesSelectorAndParentsTo)(h.target,this.props.cancel,z))return;h.type==="touchstart"&&!this.props.allowMobileScroll&&h.preventDefault();const Z=(0,o.getTouchIdentifier)(h);this.touchIdentifier=Z;const g=(0,n.getControlPosition)(h,Z,this);if(g==null)return;const{x:p,y:F}=g,x=(0,n.createCoreData)(this,p,F);(0,l.default)("DraggableCore: handleDragStart: %j",x),(0,l.default)("calling",this.props.onStart),!(this.props.onStart(h,x)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,o.addUserSelectStyles)(f),this.dragging=!0,this.lastX=p,this.lastY=F,(0,o.addEvent)(f,M.move,this.handleDrag),(0,o.addEvent)(f,M.stop,this.handleDragStop))}),u(this,"handleDrag",h=>{const z=(0,n.getControlPosition)(h,this.touchIdentifier,this);if(z==null)return;let{x:f,y:Z}=z;if(Array.isArray(this.props.grid)){let F=f-this.lastX,x=Z-this.lastY;if([F,x]=(0,n.snapToGrid)(this.props.grid,F,x),!F&&!x)return;f=this.lastX+F,Z=this.lastY+x}const g=(0,n.createCoreData)(this,f,Z);if((0,l.default)("DraggableCore: handleDrag: %j",g),this.props.onDrag(h,g)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch{const x=document.createEvent("MouseEvents");x.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(x)}return}this.lastX=f,this.lastY=Z}),u(this,"handleDragStop",h=>{if(!this.dragging)return;const z=(0,n.getControlPosition)(h,this.touchIdentifier,this);if(z==null)return;let{x:f,y:Z}=z;if(Array.isArray(this.props.grid)){let x=f-this.lastX||0,q=Z-this.lastY||0;[x,q]=(0,n.snapToGrid)(this.props.grid,x,q),f=this.lastX+x,Z=this.lastY+q}const g=(0,n.createCoreData)(this,f,Z);if(this.props.onStop(h,g)===!1||this.mounted===!1)return!1;const F=this.findDOMNode();F&&this.props.enableUserSelectHack&&(0,o.scheduleRemoveUserSelectStyles)(F.ownerDocument),(0,l.default)("DraggableCore: handleDragStop: %j",g),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,F&&((0,l.default)("DraggableCore: Removing handlers"),(0,o.removeEvent)(F.ownerDocument,M.move,this.handleDrag),(0,o.removeEvent)(F.ownerDocument,M.stop,this.handleDragStop))}),u(this,"onMouseDown",h=>(M=d.mouse,this.handleDragStart(h))),u(this,"onMouseUp",h=>(M=d.mouse,this.handleDragStop(h))),u(this,"onTouchStart",h=>(M=d.touch,this.handleDragStart(h))),u(this,"onTouchEnd",h=>(M=d.touch,this.handleDragStop(h)))}componentDidMount(){this.mounted=!0;const h=this.findDOMNode();h&&(0,o.addEvent)(h,d.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const h=this.findDOMNode();if(h){const{ownerDocument:z}=h;(0,o.removeEvent)(z,d.mouse.move,this.handleDrag),(0,o.removeEvent)(z,d.touch.move,this.handleDrag),(0,o.removeEvent)(z,d.mouse.stop,this.handleDragStop),(0,o.removeEvent)(z,d.touch.stop,this.handleDragStop),(0,o.removeEvent)(h,d.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,o.scheduleRemoveUserSelectStyles)(z)}}findDOMNode(){return this.props?.nodeRef?this.props?.nodeRef?.current:r.default.findDOMNode(this)}render(){return e.cloneElement(e.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};return Ua.default=V,u(V,"displayName","DraggableCore"),u(V,"propTypes",{allowAnyClick:t.default.bool,allowMobileScroll:t.default.bool,children:t.default.node.isRequired,disabled:t.default.bool,enableUserSelectHack:t.default.bool,offsetParent:function(R,h){if(R[h]&&R[h].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:t.default.arrayOf(t.default.number),handle:t.default.string,cancel:t.default.string,nodeRef:t.default.object,onStart:t.default.func,onDrag:t.default.func,onStop:t.default.func,onMouseDown:t.default.func,scale:t.default.number,className:s.dontSetMe,style:s.dontSetMe,transform:s.dontSetMe}),u(V,"defaultProps",{allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),Ua}var q7;function LL(){return q7||(q7=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return c.default}}),e.default=void 0;var t=E(xe),r=I(tm()),o=I(tn),n=OL(),s=nR(),l=C7(),a=vI(),c=I(BL()),u=I(Z7());function I(z){return z&&z.__esModule?z:{default:z}}function E(z,f){if(typeof WeakMap=="function")var Z=new WeakMap,g=new WeakMap;return(E=function(p,F){if(!F&&p&&p.__esModule)return p;var x,q,v={__proto__:null,default:p};if(p===null||typeof p!="object"&&typeof p!="function")return v;if(x=F?g:Z){if(x.has(p))return x.get(p);x.set(p,v)}for(const S in p)S!=="default"&&{}.hasOwnProperty.call(p,S)&&((q=(x=Object.defineProperty)&&Object.getOwnPropertyDescriptor(p,S))&&(q.get||q.set)?x(v,S,q):v[S]=p[S]);return v})(z,f)}function d(){return d=Object.assign?Object.assign.bind():function(z){for(var f=1;f<arguments.length;f++){var Z=arguments[f];for(var g in Z)({}).hasOwnProperty.call(Z,g)&&(z[g]=Z[g])}return z},d.apply(null,arguments)}function M(z,f,Z){return(f=V(f))in z?Object.defineProperty(z,f,{value:Z,enumerable:!0,configurable:!0,writable:!0}):z[f]=Z,z}function V(z){var f=R(z,"string");return typeof f=="symbol"?f:f+""}function R(z,f){if(typeof z!="object"||!z)return z;var Z=z[Symbol.toPrimitive];if(Z!==void 0){var g=Z.call(z,f);if(typeof g!="object")return g;throw new TypeError("@@toPrimitive must return a primitive value.")}return(f==="string"?String:Number)(z)}class h extends t.Component{static getDerivedStateFromProps(f,Z){let{position:g}=f,{prevPropsPosition:p}=Z;return g&&(!p||g.x!==p.x||g.y!==p.y)?((0,u.default)("Draggable: getDerivedStateFromProps %j",{position:g,prevPropsPosition:p}),{x:g.x,y:g.y,prevPropsPosition:{...g}}):null}constructor(f){super(f),M(this,"onDragStart",(Z,g)=>{if((0,u.default)("Draggable: onDragStart: %j",g),this.props.onStart(Z,(0,l.createDraggableData)(this,g))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),M(this,"onDrag",(Z,g)=>{if(!this.state.dragging)return!1;(0,u.default)("Draggable: onDrag: %j",g);const p=(0,l.createDraggableData)(this,g),F={x:p.x,y:p.y,slackX:0,slackY:0};if(this.props.bounds){const{x:q,y:v}=F;F.x+=this.state.slackX,F.y+=this.state.slackY;const[S,b]=(0,l.getBoundPosition)(this,F.x,F.y);F.x=S,F.y=b,F.slackX=this.state.slackX+(q-F.x),F.slackY=this.state.slackY+(v-F.y),p.x=F.x,p.y=F.y,p.deltaX=F.x-this.state.x,p.deltaY=F.y-this.state.y}if(this.props.onDrag(Z,p)===!1)return!1;this.setState(F)}),M(this,"onDragStop",(Z,g)=>{if(!this.state.dragging||this.props.onStop(Z,(0,l.createDraggableData)(this,g))===!1)return!1;(0,u.default)("Draggable: onDragStop: %j",g);const F={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:q,y:v}=this.props.position;F.x=q,F.y=v}this.setState(F)}),this.state={dragging:!1,dragged:!1,x:f.position?f.position.x:f.defaultPosition.x,y:f.position?f.position.y:f.defaultPosition.y,prevPropsPosition:{...f.position},slackX:0,slackY:0,isElementSVG:!1},f.position&&!(f.onDrag||f.onStop)&&console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){typeof window.SVGElement<"u"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.state.dragging&&this.setState({dragging:!1})}findDOMNode(){return this.props?.nodeRef?.current??o.default.findDOMNode(this)}render(){const{axis:f,bounds:Z,children:g,defaultPosition:p,defaultClassName:F,defaultClassNameDragging:x,defaultClassNameDragged:q,position:v,positionOffset:S,scale:b,...A}=this.props;let j={},k=null;const Y=!!!v||this.state.dragging,Q=v||p,P={x:(0,l.canDragX)(this)&&Y?this.state.x:Q.x,y:(0,l.canDragY)(this)&&Y?this.state.y:Q.y};this.state.isElementSVG?k=(0,s.createSVGTransform)(P,S):j=(0,s.createCSSTransform)(P,S);const J=(0,n.clsx)(g.props.className||"",F,{[x]:this.state.dragging,[q]:this.state.dragged});return t.createElement(c.default,d({},A,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),t.cloneElement(t.Children.only(g),{className:J,style:{...g.props.style,...j},transform:k}))}}e.default=h,M(h,"displayName","Draggable"),M(h,"propTypes",{...c.default.propTypes,axis:r.default.oneOf(["both","x","y","none"]),bounds:r.default.oneOfType([r.default.shape({left:r.default.number,right:r.default.number,top:r.default.number,bottom:r.default.number}),r.default.string,r.default.oneOf([!1])]),defaultClassName:r.default.string,defaultClassNameDragging:r.default.string,defaultClassNameDragged:r.default.string,defaultPosition:r.default.shape({x:r.default.number,y:r.default.number}),positionOffset:r.default.shape({x:r.default.oneOfType([r.default.number,r.default.string]),y:r.default.oneOfType([r.default.number,r.default.string])}),position:r.default.shape({x:r.default.number,y:r.default.number}),className:a.dontSetMe,style:a.dontSetMe,transform:a.dontSetMe}),M(h,"defaultProps",{...c.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})}(oR)),oR}var A7;function XL(){if(A7)return ja.exports;A7=1;const{default:e,DraggableCore:t}=LL();return ja.exports=e,ja.exports.default=e,ja.exports.DraggableCore=t,ja.exports}var NL=XL();const DL=qo(NL),$L=yt(C.jsx("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}),"Warning"),_L=e=>{const t=tL(e);return t7({manager:t,props:e})},eX=["slots","slotProps"],sR=m.forwardRef(function(t,r){const o=oo({props:t,name:"MuiDateTimeField"}),{slots:n,slotProps:s}=o,l=Ie(o,eX),a=PA({slotProps:s,ref:r,externalForwardedProps:l}),c=_L(a);return C.jsx(JA,{slots:n,slotProps:s,fieldResponse:c,defaultOpenPickerIcon:p6})});process.env.NODE_ENV!=="production"&&(sR.displayName="DateTimeField"),process.env.NODE_ENV!=="production"&&(sR.propTypes={ampm:i.bool,autoFocus:i.bool,className:i.string,clearable:i.bool,clearButtonPosition:i.oneOf(["end","start"]),color:i.oneOf(["error","info","primary","secondary","success","warning"]),component:i.elementType,defaultValue:i.object,disabled:i.bool,disableFuture:i.bool,disableIgnoringDatePartForTimeValidation:i.bool,disablePast:i.bool,enableAccessibleFieldDOMStructure:i.bool,focused:i.bool,format:i.string,formatDensity:i.oneOf(["dense","spacious"]),FormHelperTextProps:i.object,fullWidth:i.bool,helperText:i.node,hiddenLabel:i.bool,id:i.string,InputLabelProps:i.object,inputProps:i.object,InputProps:i.object,inputRef:_t,label:i.node,margin:i.oneOf(["dense","none","normal"]),maxDate:i.object,maxDateTime:i.object,maxTime:i.object,minDate:i.object,minDateTime:i.object,minTime:i.object,minutesStep:i.number,name:i.string,onBlur:i.func,onChange:i.func,onClear:i.func,onError:i.func,onFocus:i.func,onSelectedSectionsChange:i.func,openPickerButtonPosition:i.oneOf(["end","start"]),readOnly:i.bool,referenceDate:i.object,required:i.bool,selectedSections:i.oneOfType([i.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),i.number]),shouldDisableDate:i.func,shouldDisableMonth:i.func,shouldDisableTime:i.func,shouldDisableYear:i.func,shouldRespectLeadingZeros:i.bool,size:i.oneOf(["medium","small"]),slotProps:i.object,slots:i.object,style:i.object,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),timezone:i.string,unstableFieldRef:i.oneOfType([i.func,i.object]),value:i.object,variant:i.oneOf(["filled","outlined","standard"])});const tX=yt(C.jsx("path",{d:"M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 18H4V8h16z"}),"CalendarToday"),rX=({label:e,value:t,setValue:r,disabled:o,fullWidth:n,white:s})=>C.jsx(C.Fragment,{children:C.jsx(nI,{dateAdapter:E7,children:C.jsx(sR,{label:e,value:t,onChange:l=>{r(l)},InputProps:{sx:{borderRadius:"16px",color:s?"black !important":"white !important"}},size:"small",color:"gr-yellow",slotProps:{textField:{InputLabelProps:{sx:{color:s?"black !important":"white !important"}}}},focused:!0,format:"YYYY-MM-DD",disabled:o,fullWidth:n,endAdornment:C.jsx(Lc,{position:"end",sx:{color:s?"black":"white"},children:C.jsx(tX,{sx:{height:"18px",mt:"-4px"}})})})})}),iX=e=>{const t=xe.useRef(null);return C.jsx(C.Fragment,{children:C.jsx(DL,{nodeRef:t,handle:"#draggable-dialog-title",cancel:'[class*="MuiDialogContent-root"]',children:C.jsx(lo,{...e,ref:t,sx:{bgcolor:"white",color:r=>r.palette.background.paper,padding:"20px",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:"50px",borderRadius:"20px"}})})})},oX=({open:e,setOpen:t,fields:r,onClickSave:o})=>{const[n,s]=xe.useState(!1),l=(u,I)=>{switch(u.type){case"text":return C.jsx(kt,{size:u.ncolumn,sx:{mb:"20px"},children:C.jsx(Cn,{fullWidth:!0,variant:"outlined",label:u.label,type:u.type,placeholder:u.placeholder,focused:!0,value:u.value,onChange:E=>{u.setValue(E.target.value)}})},I);case"select":return C.jsx(kt,{size:u.ncolumn,sx:{mb:"20px"},children:C.jsx(PM,{label:u.label,placeholder:u.placeholder,value:u.value,setValue:u.setValue,values:u.values,disabled:!1,fullWidth:!0,white:!0})},I);case"date":return C.jsx(kt,{size:u.ncolumn,sx:{mb:"20px"},children:C.jsx(rX,{label:u.label,value:u.value,setValue:u.setValue,disabled:!1,fullWidth:!0,white:!0})},I);default:return C.jsx(C.Fragment,{})}},a=()=>{r.forEach(u=>{u.setValue(u.initialValue)}),s(!1)},c=u=>{u.some(E=>E.value!==E.initialValue)?s(!0):t(!1)};return C.jsx(C.Fragment,{children:C.jsxs(Sz,{open:e,onClose:()=>c(r),PaperComponent:iX,"aria-labelledby":"draggable-dialog-title",children:[C.jsx(kz,{style:{cursor:"move",textAlign:"center",margin:0,padding:0},id:"draggable-dialog-title",children:"Agregar empleado"}),n&&C.jsx(rE,{sx:{padding:0,margin:0,width:"100%"},children:C.jsxs(jV,{icon:C.jsx($L,{}),sx:{borderRadius:"24px",bgcolor:"#FFEFE5",border:u=>`1px solid ${u.palette["gr-orange"].main}`,"& .MuiAlert-icon":{color:u=>u.palette["gr-orange"].main}},action:C.jsxs(sr,{sx:{mt:3.75},children:[C.jsx(mi,{color:"gr-grey",size:"small",onClick:()=>s(!1),children:C.jsx("b",{children:"SI"})}),C.jsx(mi,{color:"gr-grey",size:"small",onClick:()=>{a(),t(!1)},children:C.jsx("b",{children:"NO"})})]}),children:[C.jsx(JV,{children:"Hay cambios sin guardar"}),C.jsx(pr,{variant:"body2",children:"¿Desea continuar?"})]})}),C.jsx(rE,{sx:{padding:0,margin:0},children:C.jsx(kt,{container:!0,spacing:2,sx:{mt:1},children:r.map((u,I)=>l(u,I))})}),C.jsxs(Wz,{sx:{display:"flex",flexDirection:"row",justifyContent:"flex-end",alignItems:"center",width:"100%"},children:[C.jsx(mi,{variant:"outlined",autoFocus:!0,onClick:()=>c(r),sx:{minWidth:"130px",borderRadius:"44px",fontWeight:"500"},color:"gr-base-dark",children:"Cancel"}),C.jsx(mi,{variant:"contained",onClick:()=>{console.log("data",r.map(u=>({label:u.label,value:u.value}))),o()},sx:{minWidth:"130px",borderRadius:"44px",color:"white",fontWeight:"500"},color:"gr-base-dark",disableElevation:!0,children:"Agregar"})]})]})})},Qn={config:{isInitialized:!1},traits:{}},nX="__mui_x_telemetry_";function g7(e){return nX+btoa(e)}function lR(e,t,r){try{if(typeof window<"u"&&window[e])return window[e].setItem(g7(t),r),!0}catch{}return!1}function aR(e,t){try{if(typeof window<"u"&&window[e])return window[e].getItem(g7(t))}catch{}return null}function cR(e){let t="";const r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",o=r.length;let n=0;for(;n<e;)t+=r.charAt(Math.floor(Math.random()*o)),n+=1;return t}function sX(e,t){return t.reduce((r,o)=>(r[o]=e[o],r),{})}const lX=typeof window>"u"||process.env.NODE_ENV==="test"?()=>{}:async()=>{const e="fingerprint";try{const t=aR("localStorage",e);if(t)return JSON.parse(t);const r=await Promise.resolve().then(()=>U8),n=await(await r.load({monitoring:!1})).get(),s=y({},n.components);delete s.cookiesEnabled;const l=r.hashComponents(s),a=r.hashComponents(y({},sX(s,["fonts","audio","languages","deviceMemory","timezone","sessionStorage","localStorage","indexedDB","openDatabase","platform","canvas","vendor","vendorFlavors","colorGamut","forcedColors","monochrome","contrast","reducedMotion","math","videoCard","architecture"]))),c={fullHash:l,coreHash:a};return lR("localStorage",e,JSON.stringify(c)),c}catch{return null}};function aX(){const e="anonymous_id",t=aR("localStorage",e);if(t)return t;const r=`anid_${cR(32)}`;return lR("localStorage",e,r)?r:""}function cX(){const e="session_id",t=aR("sessionStorage",e);if(t)return t;const r=`sesid_${cR(32)}`;return lR("sessionStorage",e,r)?r:`sestp_${cR(32)}`}async function uX(){return Qn.traits.sessionId=cX(),Qn.config.isInitialized||(Qn.traits.anonymousId=aX(),Qn.config.isInitialized=!0),Qn.traits.fingerprint||(Qn.traits.fingerprint=await lX()),Qn}const IX=Object.freeze(Object.defineProperty({__proto__:null,default:uX},Symbol.toStringTag,{value:"Module"}));var uR=function(){return uR=Object.assign||function(t){for(var r,o=1,n=arguments.length;o<n;o++){r=arguments[o];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},uR.apply(this,arguments)};function fo(e,t,r,o){function n(s){return s instanceof r?s:new r(function(l){l(s)})}return new(r||(r=Promise))(function(s,l){function a(I){try{u(o.next(I))}catch(E){l(E)}}function c(I){try{u(o.throw(I))}catch(E){l(E)}}function u(I){I.done?s(I.value):n(I.value).then(a,c)}u((o=o.apply(e,t||[])).next())})}function Zo(e,t){var r={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},o,n,s,l=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return l.next=a(0),l.throw=a(1),l.return=a(2),typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function a(u){return function(I){return c([u,I])}}function c(u){if(o)throw new TypeError("Generator is already executing.");for(;l&&(l=0,u[0]&&(r=0)),r;)try{if(o=1,n&&(s=u[0]&2?n.return:u[0]?n.throw||((s=n.return)&&s.call(n),0):n.next)&&!(s=s.call(n,u[1])).done)return s;switch(n=0,s&&(u=[u[0]&2,s.value]),u[0]){case 0:case 1:s=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,n=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(s=r.trys,!(s=s.length>0&&s[s.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!s||u[1]>s[0]&&u[1]<s[3])){r.label=u[1];break}if(u[0]===6&&r.label<s[1]){r.label=s[1],s=u;break}if(s&&r.label<s[2]){r.label=s[2],r.ops.push(u);break}s[2]&&r.ops.pop(),r.trys.pop();continue}u=t.call(e,r)}catch(I){u=[6,I],n=0}finally{o=s=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function y7(e,t,r){if(r||arguments.length===2)for(var o=0,n=t.length,s;o<n;o++)(s||!(o in t))&&(s||(s=Array.prototype.slice.call(t,0,o)),s[o]=t[o]);return e.concat(s||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var v7="3.4.2";function Qa(e,t){return new Promise(function(r){return setTimeout(r,e,t)})}function mX(e,t){t===void 0&&(t=1/0);var r=window.requestIdleCallback;return r?new Promise(function(o){return r.call(window,function(){return o()},{timeout:t})}):Qa(Math.min(e,t))}function xI(e){return!!e&&typeof e.then=="function"}function F7(e,t){try{var r=e();xI(r)?r.then(function(o){return t(!0,o)},function(o){return t(!1,o)}):t(!0,r)}catch(o){t(!1,o)}}function x7(e,t,r){return r===void 0&&(r=16),fo(this,void 0,void 0,function(){var o,n,s,l;return Zo(this,function(a){switch(a.label){case 0:o=Array(e.length),n=Date.now(),s=0,a.label=1;case 1:return s<e.length?(o[s]=t(e[s],s),l=Date.now(),l>=n+r?(n=l,[4,Qa(0)]):[3,3]):[3,4];case 2:a.sent(),a.label=3;case 3:return++s,[3,1];case 4:return[2,o]}})})}function Ja(e){e.then(void 0,function(){})}function Do(e,t){e=[e[0]>>>16,e[0]&65535,e[1]>>>16,e[1]&65535],t=[t[0]>>>16,t[0]&65535,t[1]>>>16,t[1]&65535];var r=[0,0,0,0];return r[3]+=e[3]+t[3],r[2]+=r[3]>>>16,r[3]&=65535,r[2]+=e[2]+t[2],r[1]+=r[2]>>>16,r[2]&=65535,r[1]+=e[1]+t[1],r[0]+=r[1]>>>16,r[1]&=65535,r[0]+=e[0]+t[0],r[0]&=65535,[r[0]<<16|r[1],r[2]<<16|r[3]]}function Zi(e,t){e=[e[0]>>>16,e[0]&65535,e[1]>>>16,e[1]&65535],t=[t[0]>>>16,t[0]&65535,t[1]>>>16,t[1]&65535];var r=[0,0,0,0];return r[3]+=e[3]*t[3],r[2]+=r[3]>>>16,r[3]&=65535,r[2]+=e[2]*t[3],r[1]+=r[2]>>>16,r[2]&=65535,r[2]+=e[3]*t[2],r[1]+=r[2]>>>16,r[2]&=65535,r[1]+=e[1]*t[3],r[0]+=r[1]>>>16,r[1]&=65535,r[1]+=e[2]*t[2],r[0]+=r[1]>>>16,r[1]&=65535,r[1]+=e[3]*t[1],r[0]+=r[1]>>>16,r[1]&=65535,r[0]+=e[0]*t[3]+e[1]*t[2]+e[2]*t[1]+e[3]*t[0],r[0]&=65535,[r[0]<<16|r[1],r[2]<<16|r[3]]}function Xs(e,t){return t%=64,t===32?[e[1],e[0]]:t<32?[e[0]<<t|e[1]>>>32-t,e[1]<<t|e[0]>>>32-t]:(t-=32,[e[1]<<t|e[0]>>>32-t,e[0]<<t|e[1]>>>32-t])}function $r(e,t){return t%=64,t===0?e:t<32?[e[0]<<t|e[1]>>>32-t,e[1]<<t]:[e[1]<<t-32,0]}function Pt(e,t){return[e[0]^t[0],e[1]^t[1]]}function K7(e){return e=Pt(e,[0,e[0]>>>1]),e=Zi(e,[4283543511,3981806797]),e=Pt(e,[0,e[0]>>>1]),e=Zi(e,[3301882366,444984403]),e=Pt(e,[0,e[0]>>>1]),e}function b7(e,t){e=e||"",t=t||0;var r=e.length%16,o=e.length-r,n=[0,t],s=[0,t],l=[0,0],a=[0,0],c=[2277735313,289559509],u=[1291169091,658871167],I;for(I=0;I<o;I=I+16)l=[e.charCodeAt(I+4)&255|(e.charCodeAt(I+5)&255)<<8|(e.charCodeAt(I+6)&255)<<16|(e.charCodeAt(I+7)&255)<<24,e.charCodeAt(I)&255|(e.charCodeAt(I+1)&255)<<8|(e.charCodeAt(I+2)&255)<<16|(e.charCodeAt(I+3)&255)<<24],a=[e.charCodeAt(I+12)&255|(e.charCodeAt(I+13)&255)<<8|(e.charCodeAt(I+14)&255)<<16|(e.charCodeAt(I+15)&255)<<24,e.charCodeAt(I+8)&255|(e.charCodeAt(I+9)&255)<<8|(e.charCodeAt(I+10)&255)<<16|(e.charCodeAt(I+11)&255)<<24],l=Zi(l,c),l=Xs(l,31),l=Zi(l,u),n=Pt(n,l),n=Xs(n,27),n=Do(n,s),n=Do(Zi(n,[0,5]),[0,1390208809]),a=Zi(a,u),a=Xs(a,33),a=Zi(a,c),s=Pt(s,a),s=Xs(s,31),s=Do(s,n),s=Do(Zi(s,[0,5]),[0,944331445]);switch(l=[0,0],a=[0,0],r){case 15:a=Pt(a,$r([0,e.charCodeAt(I+14)],48));case 14:a=Pt(a,$r([0,e.charCodeAt(I+13)],40));case 13:a=Pt(a,$r([0,e.charCodeAt(I+12)],32));case 12:a=Pt(a,$r([0,e.charCodeAt(I+11)],24));case 11:a=Pt(a,$r([0,e.charCodeAt(I+10)],16));case 10:a=Pt(a,$r([0,e.charCodeAt(I+9)],8));case 9:a=Pt(a,[0,e.charCodeAt(I+8)]),a=Zi(a,u),a=Xs(a,33),a=Zi(a,c),s=Pt(s,a);case 8:l=Pt(l,$r([0,e.charCodeAt(I+7)],56));case 7:l=Pt(l,$r([0,e.charCodeAt(I+6)],48));case 6:l=Pt(l,$r([0,e.charCodeAt(I+5)],40));case 5:l=Pt(l,$r([0,e.charCodeAt(I+4)],32));case 4:l=Pt(l,$r([0,e.charCodeAt(I+3)],24));case 3:l=Pt(l,$r([0,e.charCodeAt(I+2)],16));case 2:l=Pt(l,$r([0,e.charCodeAt(I+1)],8));case 1:l=Pt(l,[0,e.charCodeAt(I)]),l=Zi(l,c),l=Xs(l,31),l=Zi(l,u),n=Pt(n,l)}return n=Pt(n,[0,e.length]),s=Pt(s,[0,e.length]),n=Do(n,s),s=Do(s,n),n=K7(n),s=K7(s),n=Do(n,s),s=Do(s,n),("00000000"+(n[0]>>>0).toString(16)).slice(-8)+("00000000"+(n[1]>>>0).toString(16)).slice(-8)+("00000000"+(s[0]>>>0).toString(16)).slice(-8)+("00000000"+(s[1]>>>0).toString(16)).slice(-8)}function EX(e){var t;return uR({name:e.name,message:e.message,stack:(t=e.stack)===null||t===void 0?void 0:t.split(`
506
506
  `)},e)}function dX(e,t){for(var r=0,o=e.length;r<o;++r)if(e[r]===t)return!0;return!1}function MX(e,t){return!dX(e,t)}function IR(e){return parseInt(e)}function Ui(e){return parseFloat(e)}function po(e,t){return typeof e=="number"&&isNaN(e)?t:e}function Qi(e){return e.reduce(function(t,r){return t+(r?1:0)},0)}function Y7(e,t){if(t===void 0&&(t=1),Math.abs(t)>=1)return Math.round(e/t)*t;var r=1/t;return Math.round(e*r)/r}function RX(e){for(var t,r,o="Unexpected syntax '".concat(e,"'"),n=/^\s*([a-z-]*)(.*)$/i.exec(e),s=n[1]||void 0,l={},a=/([.:#][\w-]+|\[.+?\])/gi,c=function(d,M){l[d]=l[d]||[],l[d].push(M)};;){var u=a.exec(n[2]);if(!u)break;var I=u[0];switch(I[0]){case".":c("class",I.slice(1));break;case"#":c("id",I.slice(1));break;case"[":{var E=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(I);if(E)c(E[1],(r=(t=E[4])!==null&&t!==void 0?t:E[5])!==null&&r!==void 0?r:"");else throw new Error(o);break}default:throw new Error(o)}}return[s,l]}function S7(e){return e&&typeof e=="object"&&"message"in e?e:{message:e}}function W7(e){return typeof e!="function"}function hX(e,t){var r=new Promise(function(o){var n=Date.now();F7(e.bind(null,t),function(){for(var s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];var a=Date.now()-n;if(!s[0])return o(function(){return{error:S7(s[1]),duration:a}});var c=s[1];if(W7(c))return o(function(){return{value:c,duration:a}});o(function(){return new Promise(function(u){var I=Date.now();F7(c,function(){for(var E=[],d=0;d<arguments.length;d++)E[d]=arguments[d];var M=a+Date.now()-I;if(!E[0])return u({error:S7(E[1]),duration:M});u({value:E[1],duration:M})})})})})});return Ja(r),function(){return r.then(function(n){return n()})}}function k7(e,t,r){var o=Object.keys(e).filter(function(s){return MX(r,s)}),n=x7(o,function(s){return hX(e[s],t)});return Ja(n),function(){return fo(this,void 0,void 0,function(){var l,a,c,u,I;return Zo(this,function(E){switch(E.label){case 0:return[4,n];case 1:return l=E.sent(),[4,x7(l,function(d){var M=d();return Ja(M),M})];case 2:return a=E.sent(),[4,Promise.all(a)];case 3:for(c=E.sent(),u={},I=0;I<o.length;++I)u[o[I]]=c[I];return[2,u]}})})}}function VX(e,t){var r=function(o){return W7(o)?t(o):function(){var n=o();return xI(n)?n.then(t):t(n)}};return function(o){var n=e(o);return xI(n)?n.then(r):r(n)}}function mR(){var e=window,t=navigator;return Qi(["MSCSSMatrix"in e,"msSetImmediate"in e,"msIndexedDB"in e,"msMaxTouchPoints"in t,"msPointerEnabled"in t])>=4}function j7(){var e=window,t=navigator;return Qi(["msWriteProfilerMark"in e,"MSStream"in e,"msLaunchUri"in t,"msSaveBlob"in t])>=3&&!mR()}function KI(){var e=window,t=navigator;return Qi(["webkitPersistentStorage"in t,"webkitTemporaryStorage"in t,t.vendor.indexOf("Google")===0,"webkitResolveLocalFileSystemURL"in e,"BatteryManager"in e,"webkitMediaStream"in e,"webkitSpeechGrammar"in e])>=5}function Ns(){var e=window,t=navigator;return Qi(["ApplePayError"in e,"CSSPrimitiveValue"in e,"Counter"in e,t.vendor.indexOf("Apple")===0,"getStorageUpdates"in t,"WebKitMediaKeys"in e])>=4}function bI(){var e=window;return Qi(["safari"in e,!("DeviceMotionEvent"in e),!("ongestureend"in e),!("standalone"in navigator)])>=3}function U7(){var e,t,r=window;return Qi(["buildID"in navigator,"MozAppearance"in((t=(e=document.documentElement)===null||e===void 0?void 0:e.style)!==null&&t!==void 0?t:{}),"onmozfullscreenchange"in r,"mozInnerScreenX"in r,"CSSMozDocumentRule"in r,"CanvasCaptureMediaStream"in r])>=4}function zX(){var e=window;return Qi([!("MediaSettingsRange"in e),"RTCEncodedAudioFrame"in e,""+e.Intl=="[object Intl]",""+e.Reflect=="[object Reflect]"])>=3}function CX(){var e=window;return Qi(["DOMRectList"in e,"RTCPeerConnectionIceEvent"in e,"SVGGeometryElement"in e,"ontransitioncancel"in e])>=3}function fX(){if(navigator.platform==="iPad")return!0;var e=screen,t=e.width/e.height;return Qi(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,t>.65&&t<1.53])>=2}function Q7(){var e=document;return e.fullscreenElement||e.msFullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement||null}function ZX(){var e=document;return(e.exitFullscreen||e.msExitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen).call(e)}function ER(){var e=KI(),t=U7();if(!e&&!t)return!1;var r=window;return Qi(["onorientationchange"in r,"orientation"in r,e&&!("SharedWorker"in r),t&&/android/i.test(navigator.appVersion)])>=2}function pX(){var e=window,t=e.OfflineAudioContext||e.webkitOfflineAudioContext;if(!t)return-2;if(qX())return-1;var r=4500,o=5e3,n=new t(1,o,44100),s=n.createOscillator();s.type="triangle",s.frequency.value=1e4;var l=n.createDynamicsCompressor();l.threshold.value=-50,l.knee.value=40,l.ratio.value=12,l.attack.value=0,l.release.value=.25,s.connect(l),l.connect(n.destination),s.start(0);var a=AX(n),c=a[0],u=a[1],I=c.then(function(E){return gX(E.getChannelData(0).subarray(r))},function(E){if(E.name==="timeout"||E.name==="suspended")return-3;throw E});return Ja(I),function(){return u(),I}}function qX(){return Ns()&&!bI()&&!CX()}function AX(e){var t=3,r=500,o=500,n=5e3,s=function(){},l=new Promise(function(a,c){var u=!1,I=0,E=0;e.oncomplete=function(V){return a(V.renderedBuffer)};var d=function(){setTimeout(function(){return c(J7("timeout"))},Math.min(o,E+n-Date.now()))},M=function(){try{var V=e.startRendering();switch(xI(V)&&Ja(V),e.state){case"running":E=Date.now(),u&&d();break;case"suspended":document.hidden||I++,u&&I>=t?c(J7("suspended")):setTimeout(M,r);break}}catch(R){c(R)}};M(),s=function(){u||(u=!0,E>0&&d())}});return[l,s]}function gX(e){for(var t=0,r=0;r<e.length;++r)t+=Math.abs(e[r]);return t}function J7(e){var t=new Error(e);return t.name=e,t}function dR(e,t,r){var o,n,s;return r===void 0&&(r=50),fo(this,void 0,void 0,function(){var l,a;return Zo(this,function(c){switch(c.label){case 0:l=document,c.label=1;case 1:return l.body?[3,3]:[4,Qa(r)];case 2:return c.sent(),[3,1];case 3:a=l.createElement("iframe"),c.label=4;case 4:return c.trys.push([4,,10,11]),[4,new Promise(function(u,I){var E=!1,d=function(){E=!0,u()},M=function(h){E=!0,I(h)};a.onload=d,a.onerror=M;var V=a.style;V.setProperty("display","block","important"),V.position="absolute",V.top="0",V.left="0",V.visibility="hidden",t&&"srcdoc"in a?a.srcdoc=t:a.src="about:blank",l.body.appendChild(a);var R=function(){var h,z;E||(((z=(h=a.contentWindow)===null||h===void 0?void 0:h.document)===null||z===void 0?void 0:z.readyState)==="complete"?d():setTimeout(R,10))};R()})];case 5:c.sent(),c.label=6;case 6:return!((n=(o=a.contentWindow)===null||o===void 0?void 0:o.document)===null||n===void 0)&&n.body?[3,8]:[4,Qa(r)];case 7:return c.sent(),[3,6];case 8:return[4,e(a,a.contentWindow)];case 9:return[2,c.sent()];case 10:return(s=a.parentNode)===null||s===void 0||s.removeChild(a),[7];case 11:return[2]}})})}function yX(e){for(var t=RX(e),r=t[0],o=t[1],n=document.createElement(r??"div"),s=0,l=Object.keys(o);s<l.length;s++){var a=l[s],c=o[a].join(" ");a==="style"?vX(n.style,c):n.setAttribute(a,c)}return n}function vX(e,t){for(var r=0,o=t.split(";");r<o.length;r++){var n=o[r],s=/^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(n);if(s){var l=s[1],a=s[2],c=s[4];e.setProperty(l,a,c||"")}}}var FX="mmMwWLliI0O&1",xX="48px",Ds=["monospace","sans-serif","serif"],P7=["sans-serif-thin","ARNO PRO","Agency FB","Arabic Typesetting","Arial Unicode MS","AvantGarde Bk BT","BankGothic Md BT","Batang","Bitstream Vera Sans Mono","Calibri","Century","Century Gothic","Clarendon","EUROSTILE","Franklin Gothic","Futura Bk BT","Futura Md BT","GOTHAM","Gill Sans","HELV","Haettenschweiler","Helvetica Neue","Humanst521 BT","Leelawadee","Letter Gothic","Levenim MT","Lucida Bright","Lucida Sans","Menlo","MS Mincho","MS Outlook","MS Reference Specialty","MS UI Gothic","MT Extra","MYRIAD PRO","Marlett","Meiryo UI","Microsoft Uighur","Minion Pro","Monotype Corsiva","PMingLiU","Pristina","SCRIPTINA","Segoe UI Light","Serifa","SimHei","Small Fonts","Staccato222 BT","TRAJAN PRO","Univers CE 55 Medium","Vrinda","ZWAdobeF"];function KX(){return dR(function(e,t){var r=t.document,o=r.body;o.style.fontSize=xX;var n=r.createElement("div"),s={},l={},a=function(R){var h=r.createElement("span"),z=h.style;return z.position="absolute",z.top="0",z.left="0",z.fontFamily=R,h.textContent=FX,n.appendChild(h),h},c=function(R,h){return a("'".concat(R,"',").concat(h))},u=function(){return Ds.map(a)},I=function(){for(var R={},h=function(g){R[g]=Ds.map(function(p){return c(g,p)})},z=0,f=P7;z<f.length;z++){var Z=f[z];h(Z)}return R},E=function(R){return Ds.some(function(h,z){return R[z].offsetWidth!==s[h]||R[z].offsetHeight!==l[h]})},d=u(),M=I();o.appendChild(n);for(var V=0;V<Ds.length;V++)s[Ds[V]]=d[V].offsetWidth,l[Ds[V]]=d[V].offsetHeight;return P7.filter(function(R){return E(M[R])})})}function bX(){var e=navigator.plugins;if(e){for(var t=[],r=0;r<e.length;++r){var o=e[r];if(o){for(var n=[],s=0;s<o.length;++s){var l=o[s];n.push({type:l.type,suffixes:l.suffixes})}t.push({name:o.name,description:o.description,mimeTypes:n})}}return t}}function YX(){var e=!1,t,r,o=SX(),n=o[0],s=o[1];if(!WX(n,s))t=r="";else{e=kX(s),jX(n,s);var l=MR(n),a=MR(n);l!==a?t=r="unstable":(r=l,UX(n,s),t=MR(n))}return{winding:e,geometry:t,text:r}}function SX(){var e=document.createElement("canvas");return e.width=1,e.height=1,[e,e.getContext("2d")]}function WX(e,t){return!!(t&&e.toDataURL)}function kX(e){return e.rect(0,0,10,10),e.rect(2,2,6,6),!e.isPointInPath(5,5,"evenodd")}function jX(e,t){e.width=240,e.height=60,t.textBaseline="alphabetic",t.fillStyle="#f60",t.fillRect(100,1,62,20),t.fillStyle="#069",t.font='11pt "Times New Roman"';var r="Cwm fjordbank gly ".concat("😃");t.fillText(r,2,15),t.fillStyle="rgba(102, 204, 0, 0.2)",t.font="18pt Arial",t.fillText(r,4,45)}function UX(e,t){e.width=122,e.height=110,t.globalCompositeOperation="multiply";for(var r=0,o=[["#f2f",40,40],["#2ff",80,40],["#ff2",60,80]];r<o.length;r++){var n=o[r],s=n[0],l=n[1],a=n[2];t.fillStyle=s,t.beginPath(),t.arc(l,a,40,0,Math.PI*2,!0),t.closePath(),t.fill()}t.fillStyle="#f9c",t.arc(60,60,60,0,Math.PI*2,!0),t.arc(60,60,20,0,Math.PI*2,!0),t.fill("evenodd")}function MR(e){return e.toDataURL()}function QX(){var e=navigator,t=0,r;e.maxTouchPoints!==void 0?t=IR(e.maxTouchPoints):e.msMaxTouchPoints!==void 0&&(t=e.msMaxTouchPoints);try{document.createEvent("TouchEvent"),r=!0}catch{r=!1}var o="ontouchstart"in window;return{maxTouchPoints:t,touchEvent:r,touchStart:o}}function JX(){return navigator.oscpu}function PX(){var e=navigator,t=[],r=e.language||e.userLanguage||e.browserLanguage||e.systemLanguage;if(r!==void 0&&t.push([r]),Array.isArray(e.languages))KI()&&zX()||t.push(e.languages);else if(typeof e.languages=="string"){var o=e.languages;o&&t.push(o.split(","))}return t}function wX(){return window.screen.colorDepth}function TX(){return po(Ui(navigator.deviceMemory),void 0)}function GX(){var e=screen,t=function(o){return po(IR(o),null)},r=[t(e.width),t(e.height)];return r.sort().reverse(),r}var OX=2500,HX=10,YI,RR;function BX(){if(RR===void 0){var e=function(){var t=hR();VR(t)?RR=setTimeout(e,OX):(YI=t,RR=void 0)};e()}}function w7(){var e=this;return BX(),function(){return fo(e,void 0,void 0,function(){var t;return Zo(this,function(r){switch(r.label){case 0:return t=hR(),VR(t)?YI?[2,y7([],YI,!0)]:Q7()?[4,ZX()]:[3,2]:[3,2];case 1:r.sent(),t=hR(),r.label=2;case 2:return VR(t)||(YI=t),[2,t]}})})}}function LX(){var e=this,t=w7();return function(){return fo(e,void 0,void 0,function(){var r,o;return Zo(this,function(n){switch(n.label){case 0:return[4,t()];case 1:return r=n.sent(),o=function(s){return s===null?null:Y7(s,HX)},[2,[o(r[0]),o(r[1]),o(r[2]),o(r[3])]]}})})}}function hR(){var e=screen;return[po(Ui(e.availTop),null),po(Ui(e.width)-Ui(e.availWidth)-po(Ui(e.availLeft),0),null),po(Ui(e.height)-Ui(e.availHeight)-po(Ui(e.availTop),0),null),po(Ui(e.availLeft),null)]}function VR(e){for(var t=0;t<4;++t)if(e[t])return!1;return!0}function XX(){return po(IR(navigator.hardwareConcurrency),void 0)}function NX(){var e,t=(e=window.Intl)===null||e===void 0?void 0:e.DateTimeFormat;if(t){var r=new t().resolvedOptions().timeZone;if(r)return r}var o=-DX();return"UTC".concat(o>=0?"+":"").concat(Math.abs(o))}function DX(){var e=new Date().getFullYear();return Math.max(Ui(new Date(e,0,1).getTimezoneOffset()),Ui(new Date(e,6,1).getTimezoneOffset()))}function $X(){try{return!!window.sessionStorage}catch{return!0}}function _X(){try{return!!window.localStorage}catch{return!0}}function e8(){if(!(mR()||j7()))try{return!!window.indexedDB}catch{return!0}}function t8(){return!!window.openDatabase}function r8(){return navigator.cpuClass}function i8(){var e=navigator.platform;return e==="MacIntel"&&Ns()&&!bI()?fX()?"iPad":"iPhone":e}function o8(){return navigator.vendor||""}function n8(){for(var e=[],t=0,r=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];t<r.length;t++){var o=r[t],n=window[o];n&&typeof n=="object"&&e.push(o)}return e.sort()}function s8(){var e=document;try{e.cookie="cookietest=1; SameSite=Strict;";var t=e.cookie.indexOf("cookietest=")!==-1;return e.cookie="cookietest=1; SameSite=Strict; expires=Thu, 01-Jan-1970 00:00:01 GMT",t}catch{return!1}}function l8(){var e=atob;return{abpIndo:["#Iklan-Melayang","#Kolom-Iklan-728","#SidebarIklan-wrapper",'[title="ALIENBOLA" i]',e("I0JveC1CYW5uZXItYWRz")],abpvn:[".quangcao","#mobileCatfish",e("LmNsb3NlLWFkcw=="),'[id^="bn_bottom_fixed_"]',"#pmadv"],adBlockFinland:[".mainostila",e("LnNwb25zb3JpdA=="),".ylamainos",e("YVtocmVmKj0iL2NsaWNrdGhyZ2guYXNwPyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9hcHAucmVhZHBlYWsuY29tL2FkcyJd")],adBlockPersian:["#navbar_notice_50",".kadr",'TABLE[width="140px"]',"#divAgahi",e("YVtocmVmXj0iaHR0cDovL2cxLnYuZndtcm0ubmV0L2FkLyJd")],adBlockWarningRemoval:["#adblock-honeypot",".adblocker-root",".wp_adblock_detect",e("LmhlYWRlci1ibG9ja2VkLWFk"),e("I2FkX2Jsb2NrZXI=")],adGuardAnnoyances:[".hs-sosyal","#cookieconsentdiv",'div[class^="app_gdpr"]',".as-oil",'[data-cypress="soft-push-notification-modal"]'],adGuardBase:[".BetterJsPopOverlay",e("I2FkXzMwMFgyNTA="),e("I2Jhbm5lcmZsb2F0MjI="),e("I2NhbXBhaWduLWJhbm5lcg=="),e("I0FkLUNvbnRlbnQ=")],adGuardChinese:[e("LlppX2FkX2FfSA=="),e("YVtocmVmKj0iLmh0aGJldDM0LmNvbSJd"),"#widget-quan",e("YVtocmVmKj0iLzg0OTkyMDIwLnh5eiJd"),e("YVtocmVmKj0iLjE5NTZobC5jb20vIl0=")],adGuardFrench:["#pavePub",e("LmFkLWRlc2t0b3AtcmVjdGFuZ2xl"),".mobile_adhesion",".widgetadv",e("LmFkc19iYW4=")],adGuardGerman:['aside[data-portal-id="leaderboard"]'],adGuardJapanese:["#kauli_yad_1",e("YVtocmVmXj0iaHR0cDovL2FkMi50cmFmZmljZ2F0ZS5uZXQvIl0="),e("Ll9wb3BJbl9pbmZpbml0ZV9hZA=="),e("LmFkZ29vZ2xl"),e("Ll9faXNib29zdFJldHVybkFk")],adGuardMobile:[e("YW1wLWF1dG8tYWRz"),e("LmFtcF9hZA=="),'amp-embed[type="24smi"]',"#mgid_iframe1",e("I2FkX2ludmlld19hcmVh")],adGuardRussian:[e("YVtocmVmXj0iaHR0cHM6Ly9hZC5sZXRtZWFkcy5jb20vIl0="),e("LnJlY2xhbWE="),'div[id^="smi2adblock"]',e("ZGl2W2lkXj0iQWRGb3hfYmFubmVyXyJd"),"#psyduckpockeball"],adGuardSocial:[e("YVtocmVmXj0iLy93d3cuc3R1bWJsZXVwb24uY29tL3N1Ym1pdD91cmw9Il0="),e("YVtocmVmXj0iLy90ZWxlZ3JhbS5tZS9zaGFyZS91cmw/Il0="),".etsy-tweet","#inlineShare",".popup-social"],adGuardSpanishPortuguese:["#barraPublicidade","#Publicidade","#publiEspecial","#queTooltip",".cnt-publi"],adGuardTrackingProtection:["#qoo-counter",e("YVtocmVmXj0iaHR0cDovL2NsaWNrLmhvdGxvZy5ydS8iXQ=="),e("YVtocmVmXj0iaHR0cDovL2hpdGNvdW50ZXIucnUvdG9wL3N0YXQucGhwIl0="),e("YVtocmVmXj0iaHR0cDovL3RvcC5tYWlsLnJ1L2p1bXAiXQ=="),"#top100counter"],adGuardTurkish:["#backkapat",e("I3Jla2xhbWk="),e("YVtocmVmXj0iaHR0cDovL2Fkc2Vydi5vbnRlay5jb20udHIvIl0="),e("YVtocmVmXj0iaHR0cDovL2l6bGVuemkuY29tL2NhbXBhaWduLyJd"),e("YVtocmVmXj0iaHR0cDovL3d3dy5pbnN0YWxsYWRzLm5ldC8iXQ==")],bulgarian:[e("dGQjZnJlZW5ldF90YWJsZV9hZHM="),"#ea_intext_div",".lapni-pop-over","#xenium_hot_offers"],easyList:[".yb-floorad",e("LndpZGdldF9wb19hZHNfd2lkZ2V0"),e("LnRyYWZmaWNqdW5reS1hZA=="),".textad_headline",e("LnNwb25zb3JlZC10ZXh0LWxpbmtz")],easyListChina:[e("LmFwcGd1aWRlLXdyYXBbb25jbGljayo9ImJjZWJvcy5jb20iXQ=="),e("LmZyb250cGFnZUFkdk0="),"#taotaole","#aafoot.top_box",".cfa_popup"],easyListCookie:[".ezmob-footer",".cc-CookieWarning","[data-cookie-number]",e("LmF3LWNvb2tpZS1iYW5uZXI="),".sygnal24-gdpr-modal-wrap"],easyListCzechSlovak:["#onlajny-stickers",e("I3Jla2xhbW5pLWJveA=="),e("LnJla2xhbWEtbWVnYWJvYXJk"),".sklik",e("W2lkXj0ic2tsaWtSZWtsYW1hIl0=")],easyListDutch:[e("I2FkdmVydGVudGll"),e("I3ZpcEFkbWFya3RCYW5uZXJCbG9jaw=="),".adstekst",e("YVtocmVmXj0iaHR0cHM6Ly94bHR1YmUubmwvY2xpY2svIl0="),"#semilo-lrectangle"],easyListGermany:["#SSpotIMPopSlider",e("LnNwb25zb3JsaW5rZ3J1ZW4="),e("I3dlcmJ1bmdza3k="),e("I3Jla2xhbWUtcmVjaHRzLW1pdHRl"),e("YVtocmVmXj0iaHR0cHM6Ly9iZDc0Mi5jb20vIl0=")],easyListItaly:[e("LmJveF9hZHZfYW5udW5jaQ=="),".sb-box-pubbliredazionale",e("YVtocmVmXj0iaHR0cDovL2FmZmlsaWF6aW9uaWFkcy5zbmFpLml0LyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9hZHNlcnZlci5odG1sLml0LyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9hZmZpbGlhemlvbmlhZHMuc25haS5pdC8iXQ==")],easyListLithuania:[e("LnJla2xhbW9zX3RhcnBhcw=="),e("LnJla2xhbW9zX251b3JvZG9z"),e("aW1nW2FsdD0iUmVrbGFtaW5pcyBza3lkZWxpcyJd"),e("aW1nW2FsdD0iRGVkaWt1b3RpLmx0IHNlcnZlcmlhaSJd"),e("aW1nW2FsdD0iSG9zdGluZ2FzIFNlcnZlcmlhaS5sdCJd")],estonian:[e("QVtocmVmKj0iaHR0cDovL3BheTRyZXN1bHRzMjQuZXUiXQ==")],fanboyAnnoyances:["#ac-lre-player",".navigate-to-top","#subscribe_popup",".newsletter_holder","#back-top"],fanboyAntiFacebook:[".util-bar-module-firefly-visible"],fanboyEnhancedTrackers:[".open.pushModal","#issuem-leaky-paywall-articles-zero-remaining-nag","#sovrn_container",'div[class$="-hide"][zoompage-fontsize][style="display: block;"]',".BlockNag__Card"],fanboySocial:["#FollowUs","#meteored_share","#social_follow",".article-sharer",".community__social-desc"],frellwitSwedish:[e("YVtocmVmKj0iY2FzaW5vcHJvLnNlIl1bdGFyZ2V0PSJfYmxhbmsiXQ=="),e("YVtocmVmKj0iZG9rdG9yLXNlLm9uZWxpbmsubWUiXQ=="),"article.category-samarbete",e("ZGl2LmhvbGlkQWRz"),"ul.adsmodern"],greekAdBlock:[e("QVtocmVmKj0iYWRtYW4ub3RlbmV0LmdyL2NsaWNrPyJd"),e("QVtocmVmKj0iaHR0cDovL2F4aWFiYW5uZXJzLmV4b2R1cy5nci8iXQ=="),e("QVtocmVmKj0iaHR0cDovL2ludGVyYWN0aXZlLmZvcnRobmV0LmdyL2NsaWNrPyJd"),"DIV.agores300","TABLE.advright"],hungarian:["#cemp_doboz",".optimonk-iframe-container",e("LmFkX19tYWlu"),e("W2NsYXNzKj0iR29vZ2xlQWRzIl0="),"#hirdetesek_box"],iDontCareAboutCookies:['.alert-info[data-block-track*="CookieNotice"]',".ModuleTemplateCookieIndicator",".o--cookies--container","#cookies-policy-sticky","#stickyCookieBar"],icelandicAbp:[e("QVtocmVmXj0iL2ZyYW1ld29yay9yZXNvdXJjZXMvZm9ybXMvYWRzLmFzcHgiXQ==")],latvian:[e("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiAxMjBweDsgaGVpZ2h0OiA0MHB4OyBvdmVyZmxvdzogaGlkZGVuOyBwb3NpdGlvbjogcmVsYXRpdmU7Il0="),e("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiA4OHB4OyBoZWlnaHQ6IDMxcHg7IG92ZXJmbG93OiBoaWRkZW47IHBvc2l0aW9uOiByZWxhdGl2ZTsiXQ==")],listKr:[e("YVtocmVmKj0iLy9hZC5wbGFuYnBsdXMuY28ua3IvIl0="),e("I2xpdmVyZUFkV3JhcHBlcg=="),e("YVtocmVmKj0iLy9hZHYuaW1hZHJlcC5jby5rci8iXQ=="),e("aW5zLmZhc3R2aWV3LWFk"),".revenue_unit_item.dable"],listeAr:[e("LmdlbWluaUxCMUFk"),".right-and-left-sponsers",e("YVtocmVmKj0iLmFmbGFtLmluZm8iXQ=="),e("YVtocmVmKj0iYm9vcmFxLm9yZyJd"),e("YVtocmVmKj0iZHViaXp6bGUuY29tL2FyLz91dG1fc291cmNlPSJd")],listeFr:[e("YVtocmVmXj0iaHR0cDovL3Byb21vLnZhZG9yLmNvbS8iXQ=="),e("I2FkY29udGFpbmVyX3JlY2hlcmNoZQ=="),e("YVtocmVmKj0id2Vib3JhbWEuZnIvZmNnaS1iaW4vIl0="),".site-pub-interstitiel",'div[id^="crt-"][data-criteo-id]'],officialPolish:["#ceneo-placeholder-ceneo-12",e("W2hyZWZePSJodHRwczovL2FmZi5zZW5kaHViLnBsLyJd"),e("YVtocmVmXj0iaHR0cDovL2Fkdm1hbmFnZXIudGVjaGZ1bi5wbC9yZWRpcmVjdC8iXQ=="),e("YVtocmVmXj0iaHR0cDovL3d3dy50cml6ZXIucGwvP3V0bV9zb3VyY2UiXQ=="),e("ZGl2I3NrYXBpZWNfYWQ=")],ro:[e("YVtocmVmXj0iLy9hZmZ0cmsuYWx0ZXgucm8vQ291bnRlci9DbGljayJd"),e("YVtocmVmXj0iaHR0cHM6Ly9ibGFja2ZyaWRheXNhbGVzLnJvL3Ryay9zaG9wLyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9ldmVudC4ycGVyZm9ybWFudC5jb20vZXZlbnRzL2NsaWNrIl0="),e("YVtocmVmXj0iaHR0cHM6Ly9sLnByb2ZpdHNoYXJlLnJvLyJd"),'a[href^="/url/"]'],ruAd:[e("YVtocmVmKj0iLy9mZWJyYXJlLnJ1LyJd"),e("YVtocmVmKj0iLy91dGltZy5ydS8iXQ=="),e("YVtocmVmKj0iOi8vY2hpa2lkaWtpLnJ1Il0="),"#pgeldiz",".yandex-rtb-block"],thaiAds:["a[href*=macau-uta-popup]",e("I2Fkcy1nb29nbGUtbWlkZGxlX3JlY3RhbmdsZS1ncm91cA=="),e("LmFkczMwMHM="),".bumq",".img-kosana"],webAnnoyancesUltralist:["#mod-social-share-2","#social-tools",e("LmN0cGwtZnVsbGJhbm5lcg=="),".zergnet-recommend",".yt.btn-link.btn-md.btn"]}}function a8(e){var t=e===void 0?{}:e,r=t.debug;return fo(this,void 0,void 0,function(){var o,n,s,l,a,c;return Zo(this,function(u){switch(u.label){case 0:return c8()?(o=l8(),n=Object.keys(o),s=(c=[]).concat.apply(c,n.map(function(I){return o[I]})),[4,u8(s)]):[2,void 0];case 1:return l=u.sent(),r&&I8(o,l),a=n.filter(function(I){var E=o[I],d=Qi(E.map(function(M){return l[M]}));return d>E.length*.6}),a.sort(),[2,a]}})})}function c8(){return Ns()||ER()}function u8(e){var t;return fo(this,void 0,void 0,function(){var r,o,n,s,c,l,a,c;return Zo(this,function(u){switch(u.label){case 0:for(r=document,o=r.createElement("div"),n=new Array(e.length),s={},T7(o),c=0;c<e.length;++c)l=yX(e[c]),l.tagName==="DIALOG"&&l.show(),a=r.createElement("div"),T7(a),a.appendChild(l),o.appendChild(a),n[c]=l;u.label=1;case 1:return r.body?[3,3]:[4,Qa(50)];case 2:return u.sent(),[3,1];case 3:r.body.appendChild(o);try{for(c=0;c<e.length;++c)n[c].offsetParent||(s[e[c]]=!0)}finally{(t=o.parentNode)===null||t===void 0||t.removeChild(o)}return[2,s]}})})}function T7(e){e.style.setProperty("display","block","important")}function I8(e,t){for(var r="DOM blockers debug:\n```",o=0,n=Object.keys(e);o<n.length;o++){var s=n[o];r+=`
507
507
  `.concat(s,":");for(var l=0,a=e[s];l<a.length;l++){var c=a[l];r+=`
508
508
  `.concat(t[c]?"🚫":"➡️"," ").concat(c)}}console.log("".concat(r,"\n```"))}function m8(){for(var e=0,t=["rec2020","p3","srgb"];e<t.length;e++){var r=t[e];if(matchMedia("(color-gamut: ".concat(r,")")).matches)return r}}function E8(){if(G7("inverted"))return!0;if(G7("none"))return!1}function G7(e){return matchMedia("(inverted-colors: ".concat(e,")")).matches}function d8(){if(O7("active"))return!0;if(O7("none"))return!1}function O7(e){return matchMedia("(forced-colors: ".concat(e,")")).matches}var M8=100;function R8(){if(matchMedia("(min-monochrome: 0)").matches){for(var e=0;e<=M8;++e)if(matchMedia("(max-monochrome: ".concat(e,")")).matches)return e;throw new Error("Too high value")}}function h8(){if($s("no-preference"))return 0;if($s("high")||$s("more"))return 1;if($s("low")||$s("less"))return-1;if($s("forced"))return 10}function $s(e){return matchMedia("(prefers-contrast: ".concat(e,")")).matches}function V8(){if(H7("reduce"))return!0;if(H7("no-preference"))return!1}function H7(e){return matchMedia("(prefers-reduced-motion: ".concat(e,")")).matches}function z8(){if(B7("high"))return!0;if(B7("standard"))return!1}function B7(e){return matchMedia("(dynamic-range: ".concat(e,")")).matches}var ft=Math,Yr=function(){return 0};function C8(){var e=ft.acos||Yr,t=ft.acosh||Yr,r=ft.asin||Yr,o=ft.asinh||Yr,n=ft.atanh||Yr,s=ft.atan||Yr,l=ft.sin||Yr,a=ft.sinh||Yr,c=ft.cos||Yr,u=ft.cosh||Yr,I=ft.tan||Yr,E=ft.tanh||Yr,d=ft.exp||Yr,M=ft.expm1||Yr,V=ft.log1p||Yr,R=function(q){return ft.pow(ft.PI,q)},h=function(q){return ft.log(q+ft.sqrt(q*q-1))},z=function(q){return ft.log(q+ft.sqrt(q*q+1))},f=function(q){return ft.log((1+q)/(1-q))/2},Z=function(q){return ft.exp(q)-1/ft.exp(q)/2},g=function(q){return(ft.exp(q)+1/ft.exp(q))/2},p=function(q){return ft.exp(q)-1},F=function(q){return(ft.exp(2*q)-1)/(ft.exp(2*q)+1)},x=function(q){return ft.log(1+q)};return{acos:e(.12312423423423424),acosh:t(1e308),acoshPf:h(1e154),asin:r(.12312423423423424),asinh:o(1),asinhPf:z(1),atanh:n(.5),atanhPf:f(.5),atan:s(.5),sin:l(-1e300),sinh:a(1),sinhPf:Z(1),cos:c(10.000000000123),cosh:u(1),coshPf:g(1),tan:I(-1e300),tanh:E(1),tanhPf:F(1),exp:d(1),expm1:M(1),expm1Pf:p(1),log1p:V(10),log1pPf:x(10),powPI:R(-100)}}var f8="mmMwWLliI0fiflO&1",zR={default:[],apple:[{font:"-apple-system-body"}],serif:[{fontFamily:"serif"}],sans:[{fontFamily:"sans-serif"}],mono:[{fontFamily:"monospace"}],min:[{fontSize:"1px"}],system:[{fontFamily:"system-ui"}]};function Z8(){return p8(function(e,t){for(var r={},o={},n=0,s=Object.keys(zR);n<s.length;n++){var l=s[n],a=zR[l],c=a[0],u=c===void 0?{}:c,I=a[1],E=I===void 0?f8:I,d=e.createElement("span");d.textContent=E,d.style.whiteSpace="nowrap";for(var M=0,V=Object.keys(u);M<V.length;M++){var R=V[M],h=u[R];h!==void 0&&(d.style[R]=h)}r[l]=d,t.appendChild(e.createElement("br")),t.appendChild(d)}for(var z=0,f=Object.keys(zR);z<f.length;z++){var l=f[z];o[l]=r[l].getBoundingClientRect().width}return o})}function p8(e,t){return t===void 0&&(t=4e3),dR(function(r,o){var n=o.document,s=n.body,l=s.style;l.width="".concat(t,"px"),l.webkitTextSizeAdjust=l.textSizeAdjust="none",KI()?s.style.zoom="".concat(1/o.devicePixelRatio):Ns()&&(s.style.zoom="reset");var a=n.createElement("div");return a.textContent=y7([],Array(t/20<<0),!0).map(function(){return"word"}).join(" "),s.appendChild(a),e(n,s)},'<!doctype html><html><head><meta name="viewport" content="width=device-width, initial-scale=1">')}function q8(){var e,t=document.createElement("canvas"),r=(e=t.getContext("webgl"))!==null&&e!==void 0?e:t.getContext("experimental-webgl");if(r&&"getExtension"in r){var o=r.getExtension("WEBGL_debug_renderer_info");if(o)return{vendor:(r.getParameter(o.UNMASKED_VENDOR_WEBGL)||"").toString(),renderer:(r.getParameter(o.UNMASKED_RENDERER_WEBGL)||"").toString()}}}function A8(){return navigator.pdfViewerEnabled}function g8(){var e=new Float32Array(1),t=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],t[3]}var L7={fonts:KX,domBlockers:a8,fontPreferences:Z8,audio:pX,screenFrame:LX,osCpu:JX,languages:PX,colorDepth:wX,deviceMemory:TX,screenResolution:GX,hardwareConcurrency:XX,timezone:NX,sessionStorage:$X,localStorage:_X,indexedDB:e8,openDatabase:t8,cpuClass:r8,platform:i8,plugins:bX,canvas:YX,touchSupport:QX,vendor:o8,vendorFlavors:n8,cookiesEnabled:s8,colorGamut:m8,invertedColors:E8,forcedColors:d8,monochrome:R8,contrast:h8,reducedMotion:V8,hdr:z8,math:C8,videoCard:q8,pdfViewerEnabled:A8,architecture:g8};function y8(e){return k7(L7,e,[])}var v8="$ if upgrade to Pro: https://fpjs.dev/pro";function F8(e){var t=x8(e),r=K8(t);return{score:t,comment:v8.replace(/\$/g,"".concat(r))}}function x8(e){if(ER())return .4;if(Ns())return bI()?.5:.3;var t=e.platform.value||"";return/^Win/.test(t)?.6:/^Mac/.test(t)?.5:.7}function K8(e){return Y7(.99+.01*e,1e-4)}function b8(e){for(var t="",r=0,o=Object.keys(e).sort();r<o.length;r++){var n=o[r],s=e[n],l=s.error?"error":JSON.stringify(s.value);t+="".concat(t?"|":"").concat(n.replace(/([:|\\])/g,"\\$1"),":").concat(l)}return t}function CR(e){return JSON.stringify(e,function(t,r){return r instanceof Error?EX(r):r},2)}function fR(e){return b7(b8(e))}function Y8(e){var t,r=F8(e);return{get visitorId(){return t===void 0&&(t=fR(this.components)),t},set visitorId(o){t=o},confidence:r,components:e,version:v7}}function X7(e){return e===void 0&&(e=50),mX(e,e*2)}function S8(e,t){var r=Date.now();return{get:function(o){return fo(this,void 0,void 0,function(){var n,s,l;return Zo(this,function(a){switch(a.label){case 0:return n=Date.now(),[4,e()];case 1:return s=a.sent(),l=Y8(s),(t||o?.debug)&&console.log("Copy the text below to get the debug data:\n\n```\nversion: ".concat(l.version,`
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@scmlatam/web-ui",
3
3
  "private": false,
4
- "version": "0.1.8",
4
+ "version": "0.1.9",
5
5
  "type": "module",
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -48,18 +48,18 @@
48
48
  },
49
49
  "devDependencies": {
50
50
  "@eslint/js": "^9.33.0",
51
- "@types/node": "^24.2.1",
52
- "@types/react": "^19.1.10",
51
+ "@types/node": "^24.3.0",
52
+ "@types/react": "^19.1.11",
53
53
  "@types/react-dom": "^19.1.7",
54
- "@vitejs/plugin-react": "^5.0.0",
54
+ "@vitejs/plugin-react": "^5.0.1",
55
55
  "ajv": "^8.17.1",
56
56
  "eslint": "^9.33.0",
57
57
  "eslint-plugin-react-hooks": "^5.2.0",
58
58
  "eslint-plugin-react-refresh": "^0.4.20",
59
59
  "globals": "^16.3.0",
60
60
  "typescript": "~5.9.2",
61
- "typescript-eslint": "^8.39.1",
62
- "vite": "^7.1.2",
61
+ "typescript-eslint": "^8.40.0",
62
+ "vite": "^7.1.3",
63
63
  "vite-plugin-dts": "^4.5.4",
64
64
  "vite-plugin-svgr": "^4.3.0"
65
65
  }