@propriety/court-calendar 1.0.44 → 1.0.45

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -13,11 +13,11 @@ import rr from "@mui/material/ToggleButtonGroup";
13
13
  import _t from "@mui/material/ToggleButton";
14
14
  import Ke from "@mui/material/Tooltip";
15
15
  import wh from "@mui/icons-material/FileUpload";
16
- import Eh from "@mui/icons-material/HourglassEmpty";
16
+ import Sh from "@mui/icons-material/HourglassEmpty";
17
17
  import Ra from "@mui/material/InputLabel";
18
18
  import On from "@mui/material/MenuItem";
19
19
  import Ta from "@mui/material/Select";
20
- import Sh from "@mui/icons-material/CalendarViewMonth";
20
+ import Eh from "@mui/icons-material/CalendarViewMonth";
21
21
  import Dh from "@mui/icons-material/CalendarViewWeek";
22
22
  import Ch from "@mui/icons-material/CalendarViewDay";
23
23
  import Ah from "@mui/icons-material/FormatListBulleted";
@@ -30,7 +30,7 @@ import $o from "@mui/material/IconButton";
30
30
  import Wo from "@mui/material/Autocomplete";
31
31
  import Gn from "@mui/material/TextField";
32
32
  import Yl from "@mui/material/InputAdornment";
33
- import Eo from "@mui/icons-material/Cancel";
33
+ import So from "@mui/icons-material/Cancel";
34
34
  import kh from "@mui/icons-material/Search";
35
35
  import _u from "@mui/icons-material/PendingActions";
36
36
  import xu from "@mui/icons-material/WarningAmber";
@@ -41,7 +41,7 @@ import Mh from "@mui/material/DialogTitle";
41
41
  import Oh from "@mui/material/DialogContent";
42
42
  import Tu from "@mui/icons-material/Description";
43
43
  import Nh from "@mui/icons-material/InsertDriveFileOutlined";
44
- import So from "@mui/icons-material/CheckCircle";
44
+ import Eo from "@mui/icons-material/CheckCircle";
45
45
  import Ph from "@mui/icons-material/CheckCircleOutline";
46
46
  import Lh from "@mui/icons-material/SkipNext";
47
47
  import nr from "@mui/material/Avatar";
@@ -174,7 +174,7 @@ function Ao() {
174
174
  Ao.__r = 0;
175
175
  }
176
176
  function Uu(t, e, n, r, i, o, s, c, u, h) {
177
- var f, m, y, v, S, D, _, R = r && r.__k || Lu, x = R.length;
177
+ var f, m, y, v, E, D, _, R = r && r.__k || Lu, x = R.length;
178
178
  for (n.__k = [], f = 0; f < e.length; f++) if ((v = n.__k[f] = (v = e[f]) == null || typeof v == "boolean" ? null : typeof v == "string" || typeof v == "number" || typeof v == "bigint" ? fo(null, v, null, null, v) : Array.isArray(v) ? fo(Qe, { children: v }, null, null, null) : v.__b > 0 ? fo(v.type, v.props, v.key, v.ref ? v.ref : null, v.__v) : v) != null) {
179
179
  if (v.__ = n, v.__b = n.__b + 1, (y = R[f]) === null || y && v.key == y.key && v.type === y.type) R[f] = void 0;
180
180
  else for (m = 0; m < x; m++) {
@@ -184,7 +184,7 @@ function Uu(t, e, n, r, i, o, s, c, u, h) {
184
184
  }
185
185
  y = null;
186
186
  }
187
- Ia(t, v, y = y || Do, i, o, s, c, u, h), S = v.__e, (m = v.ref) && y.ref != m && (_ || (_ = []), y.ref && _.push(y.ref, null, v), _.push(m, v.__c || S, v)), S != null ? (D == null && (D = S), typeof v.type == "function" && v.__k === y.__k ? v.__d = u = Bu(v, u, t) : u = Fu(t, v, y, R, S, u), typeof n.type == "function" && (n.__d = u)) : u && y.__e == u && u.parentNode != t && (u = Ci(y));
187
+ Ia(t, v, y = y || Do, i, o, s, c, u, h), E = v.__e, (m = v.ref) && y.ref != m && (_ || (_ = []), y.ref && _.push(y.ref, null, v), _.push(m, v.__c || E, v)), E != null ? (D == null && (D = E), typeof v.type == "function" && v.__k === y.__k ? v.__d = u = Bu(v, u, t) : u = Fu(t, v, y, R, E, u), typeof n.type == "function" && (n.__d = u)) : u && y.__e == u && u.parentNode != t && (u = Ci(y));
188
188
  }
189
189
  for (n.__e = D, f = x; f--; ) R[f] != null && (typeof n.type == "function" && R[f].__e != null && R[f].__e == n.__d && (n.__d = zu(r).nextSibling), Vu(R[f], R[f]));
190
190
  if (_) for (f = 0; f < _.length; f++) Wu(_[f], _[++f], _[++f]);
@@ -217,7 +217,7 @@ function zu(t) {
217
217
  return null;
218
218
  }
219
219
  function Ia(t, e, n, r, i, o, s, c, u) {
220
- var h, f, m, y, v, S, D, _, R, x, H, L, I, z, Q, $ = e.type;
220
+ var h, f, m, y, v, E, D, _, R, x, H, L, I, z, Q, $ = e.type;
221
221
  if (e.constructor !== void 0) return null;
222
222
  n.__h != null && (u = n.__h, c = e.__e = n.__e, e.__h = null, o = [c]), (h = Ae.__b) && h(e);
223
223
  try {
@@ -232,7 +232,7 @@ function Ia(t, e, n, r, i, o, s, c, u) {
232
232
  break e;
233
233
  }
234
234
  f.componentWillUpdate != null && f.componentWillUpdate(_, f.__s, x), f.componentDidUpdate != null && f.__h.push(function() {
235
- f.componentDidUpdate(y, v, S);
235
+ f.componentDidUpdate(y, v, E);
236
236
  });
237
237
  }
238
238
  if (f.context = x, f.props = _, f.__P = t, L = Ae.__r, I = 0, "prototype" in $ && $.prototype.render) {
@@ -241,7 +241,7 @@ function Ia(t, e, n, r, i, o, s, c, u) {
241
241
  } else do
242
242
  f.__d = !1, L && L(e), h = f.render(f.props, f.state, f.context), f.state = f.__s;
243
243
  while (f.__d && ++I < 25);
244
- f.state = f.__s, f.getChildContext != null && (r = ir(ir({}, r), f.getChildContext())), m || f.getSnapshotBeforeUpdate == null || (S = f.getSnapshotBeforeUpdate(y, v)), Q = h != null && h.type === Qe && h.key == null ? h.props.children : h, Uu(t, Array.isArray(Q) ? Q : [Q], e, n, r, i, o, s, c, u), f.base = e.__e, e.__h = null, f.__h.length && s.push(f), D && (f.__E = f.__ = null), f.__e = !1;
244
+ f.state = f.__s, f.getChildContext != null && (r = ir(ir({}, r), f.getChildContext())), m || f.getSnapshotBeforeUpdate == null || (E = f.getSnapshotBeforeUpdate(y, v)), Q = h != null && h.type === Qe && h.key == null ? h.props.children : h, Uu(t, Array.isArray(Q) ? Q : [Q], e, n, r, i, o, s, c, u), f.base = e.__e, e.__h = null, f.__h.length && s.push(f), D && (f.__E = f.__ = null), f.__e = !1;
245
245
  } else o == null && e.__v === n.__v ? (e.__k = n.__k, e.__e = n.__e) : e.__e = ip(n.__e, e, n, r, i, o, s, u);
246
246
  (h = Ae.diffed) && h(e);
247
247
  } catch (G) {
@@ -260,10 +260,10 @@ function $u(t, e) {
260
260
  });
261
261
  }
262
262
  function ip(t, e, n, r, i, o, s, c) {
263
- var u, h, f, m = n.props, y = e.props, v = e.type, S = 0;
263
+ var u, h, f, m = n.props, y = e.props, v = e.type, E = 0;
264
264
  if (v === "svg" && (i = !0), o != null) {
265
- for (; S < o.length; S++) if ((u = o[S]) && "setAttribute" in u == !!v && (v ? u.localName === v : u.nodeType === 3)) {
266
- t = u, o[S] = null;
265
+ for (; E < o.length; E++) if ((u = o[E]) && "setAttribute" in u == !!v && (v ? u.localName === v : u.nodeType === 3)) {
266
+ t = u, o[E] = null;
267
267
  break;
268
268
  }
269
269
  }
@@ -274,12 +274,12 @@ function ip(t, e, n, r, i, o, s, c) {
274
274
  if (v === null) m === y || c && t.data === y || (t.data = y);
275
275
  else {
276
276
  if (o = o && Vo.call(t.childNodes), h = (m = n.props || Do).dangerouslySetInnerHTML, f = y.dangerouslySetInnerHTML, !c) {
277
- if (o != null) for (m = {}, S = 0; S < t.attributes.length; S++) m[t.attributes[S].name] = t.attributes[S].value;
277
+ if (o != null) for (m = {}, E = 0; E < t.attributes.length; E++) m[t.attributes[E].name] = t.attributes[E].value;
278
278
  (f || h) && (f && (h && f.__html == h.__html || f.__html === t.innerHTML) || (t.innerHTML = f && f.__html || ""));
279
279
  }
280
280
  if (np(t, y, m, i, c), f) e.__k = [];
281
- else if (S = e.props.children, Uu(t, Array.isArray(S) ? S : [S], e, n, r, i && v !== "foreignObject", o, s, o ? o[0] : n.__k && Ci(n, 0), c), o != null) for (S = o.length; S--; ) o[S] != null && ju(o[S]);
282
- c || ("value" in y && (S = y.value) !== void 0 && (S !== t.value || v === "progress" && !S || v === "option" && S !== m.value) && Co(t, "value", S, m.value, !1), "checked" in y && (S = y.checked) !== void 0 && S !== t.checked && Co(t, "checked", S, m.checked, !1));
281
+ else if (E = e.props.children, Uu(t, Array.isArray(E) ? E : [E], e, n, r, i && v !== "foreignObject", o, s, o ? o[0] : n.__k && Ci(n, 0), c), o != null) for (E = o.length; E--; ) o[E] != null && ju(o[E]);
282
+ c || ("value" in y && (E = y.value) !== void 0 && (E !== t.value || v === "progress" && !E || v === "option" && E !== m.value) && Co(t, "value", E, m.value, !1), "checked" in y && (E = y.checked) !== void 0 && E !== t.checked && Co(t, "checked", E, m.checked, !1));
283
283
  }
284
284
  return t;
285
285
  }
@@ -588,7 +588,7 @@ function qo(t) {
588
588
  Xu(e, t);
589
589
  });
590
590
  }
591
- function Ep(t) {
591
+ function Sp(t) {
592
592
  t.isConnected && // sometimes true if SSR system simulates DOM
593
593
  t.getRootNode && Zu(t.getRootNode());
594
594
  }
@@ -602,10 +602,10 @@ function Zu(t) {
602
602
  const r = t === document ? document.head : t, i = t === document ? r.querySelector("script,link[rel=stylesheet],link[as=style],style") : r.firstChild;
603
603
  r.insertBefore(e, i);
604
604
  }
605
- oa.set(t, e), Sp(e);
605
+ oa.set(t, e), Ep(e);
606
606
  }
607
607
  }
608
- function Sp(t) {
608
+ function Ep(t) {
609
609
  for (const e of Qu)
610
610
  Xu(t, e);
611
611
  }
@@ -811,7 +811,7 @@ function Qr(t, e) {
811
811
  let n = String(t);
812
812
  return "000".substr(0, e - n.length) + n;
813
813
  }
814
- function Ei(t, e, n) {
814
+ function Si(t, e, n) {
815
815
  return typeof t == "function" ? t(...e) : typeof t == "string" ? e.reduce((r, i, o) => r.replace("$" + o, i || ""), t) : n;
816
816
  }
817
817
  function Bp(t, e) {
@@ -831,7 +831,7 @@ function Fp(t) {
831
831
  }
832
832
  const wc = ["years", "months", "days", "milliseconds"], zp = /^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;
833
833
  function Ue(t, e) {
834
- return typeof t == "string" ? $p(t) : typeof t == "object" && t ? Ec(t) : typeof t == "number" ? Ec({ [e || "milliseconds"]: t }) : null;
834
+ return typeof t == "string" ? $p(t) : typeof t == "object" && t ? Sc(t) : typeof t == "number" ? Sc({ [e || "milliseconds"]: t }) : null;
835
835
  }
836
836
  function $p(t) {
837
837
  let e = zp.exec(t);
@@ -849,7 +849,7 @@ function $p(t) {
849
849
  }
850
850
  return null;
851
851
  }
852
- function Ec(t) {
852
+ function Sc(t) {
853
853
  let e = {
854
854
  years: t.years || t.year || 0,
855
855
  months: t.months || t.month || 0,
@@ -941,7 +941,7 @@ function dr(t, e, n) {
941
941
  return !0;
942
942
  }
943
943
  const Kp = ["sun", "mon", "tue", "wed", "thu", "fri", "sat"];
944
- function Sc(t, e) {
944
+ function Ec(t, e) {
945
945
  let n = or(t);
946
946
  return n[2] += e * 7, Nt(n);
947
947
  }
@@ -1145,8 +1145,8 @@ class hg {
1145
1145
  let h = this.format(e, r), f = this.format(n, r);
1146
1146
  if (h === f)
1147
1147
  return h;
1148
- let m = wg(o, u), y = Ac(m, s, r), v = y(e), S = y(n), D = Eg(h, v, f, S), _ = s.separator || i || r.defaultSeparator || "";
1149
- return D ? D.before + v + _ + S + D.after : h + _ + f;
1148
+ let m = wg(o, u), y = Ac(m, s, r), v = y(e), E = y(n), D = Sg(h, v, f, E), _ = s.separator || i || r.defaultSeparator || "";
1149
+ return D ? D.before + v + _ + E + D.after : h + _ + f;
1150
1150
  }
1151
1151
  getSmallestUnit() {
1152
1152
  switch (this.smallestUnitNum) {
@@ -1210,7 +1210,7 @@ function wg(t, e) {
1210
1210
  Ro[r] <= e) && (n[r] = t[r]);
1211
1211
  return n;
1212
1212
  }
1213
- function Eg(t, e, n, r) {
1213
+ function Sg(t, e, n, r) {
1214
1214
  let i = 0;
1215
1215
  for (; i < t.length; ) {
1216
1216
  let o = t.indexOf(e, i);
@@ -1261,7 +1261,7 @@ function To(t, e, n, r) {
1261
1261
  defaultSeparator: r || n.defaultSeparator
1262
1262
  };
1263
1263
  }
1264
- class Sg {
1264
+ class Eg {
1265
1265
  constructor(e) {
1266
1266
  this.cmdStr = e;
1267
1267
  }
@@ -1284,7 +1284,7 @@ class Dg {
1284
1284
  }
1285
1285
  }
1286
1286
  function et(t) {
1287
- return typeof t == "object" && t ? new hg(t) : typeof t == "string" ? new Sg(t) : typeof t == "function" ? new Dg(t) : null;
1287
+ return typeof t == "object" && t ? new hg(t) : typeof t == "string" ? new Eg(t) : typeof t == "function" ? new Dg(t) : null;
1288
1288
  }
1289
1289
  const xc = {
1290
1290
  navLinkDayClick: V,
@@ -1460,7 +1460,7 @@ const xc = {
1460
1460
  handleCustomRendering: V,
1461
1461
  customRenderingMetaMap: V,
1462
1462
  customRenderingReplaces: Boolean
1463
- }, Si = {
1463
+ }, Ei = {
1464
1464
  eventDisplay: "auto",
1465
1465
  defaultRangeSeparator: " - ",
1466
1466
  titleRangeSeparator: " – ",
@@ -1969,14 +1969,14 @@ function Hg(t, e, n, r, i, o, s, c, u, h, f, m, y, v) {
1969
1969
  dateProfileGenerator: r,
1970
1970
  theme: s,
1971
1971
  isRtl: n.direction === "rtl",
1972
- addResizeHandler(S) {
1973
- f.on("_resize", S);
1972
+ addResizeHandler(E) {
1973
+ f.on("_resize", E);
1974
1974
  },
1975
- removeResizeHandler(S) {
1976
- f.off("_resize", S);
1975
+ removeResizeHandler(E) {
1976
+ f.off("_resize", E);
1977
1977
  },
1978
- createScrollResponder(S) {
1979
- return new jg(S, f, Ue(n.scrollTime), n.scrollTimeReset);
1978
+ createScrollResponder(E) {
1979
+ return new jg(E, f, Ue(n.scrollTime), n.scrollTimeReset);
1980
1980
  },
1981
1981
  registerInteractiveComponent: y,
1982
1982
  unregisterInteractiveComponent: v
@@ -2666,7 +2666,7 @@ function am(t, e, n, r, i) {
2666
2666
  case "REMOVE_EVENTS":
2667
2667
  return tm(t, e.eventStore);
2668
2668
  case "REMOVE_EVENT_SOURCE":
2669
- return Ed(t, e.sourceId);
2669
+ return Sd(t, e.sourceId);
2670
2670
  case "REMOVE_ALL_EVENT_SOURCES":
2671
2671
  return Ko(t, (o) => !o.sourceId);
2672
2672
  case "REMOVE_ALL_EVENTS":
@@ -2679,7 +2679,7 @@ function lm(t, e, n, r, i, o) {
2679
2679
  if (e && // not already removed
2680
2680
  n === e.latestFetchId) {
2681
2681
  let s = xi(wd(i, e, o), e, o);
2682
- return r && (s = kr(s, r, o)), Ga(Ed(t, e.sourceId), s);
2682
+ return r && (s = kr(s, r, o)), Ga(Sd(t, e.sourceId), s);
2683
2683
  }
2684
2684
  return t;
2685
2685
  }
@@ -2715,7 +2715,7 @@ function Oc(t, e, n) {
2715
2715
  }, forcedStartTzo: n.canComputeOffset ? null : o.forcedStartTzo, forcedEndTzo: n.canComputeOffset ? null : o.forcedEndTzo }));
2716
2716
  return { defs: r, instances: i };
2717
2717
  }
2718
- function Ed(t, e) {
2718
+ function Sd(t, e) {
2719
2719
  return Ko(t, (n) => n.sourceId !== e);
2720
2720
  }
2721
2721
  function dm(t, e) {
@@ -2783,7 +2783,7 @@ function vm(t) {
2783
2783
  let e;
2784
2784
  return t === !0 ? e = [{}] : Array.isArray(t) ? e = t.filter((n) => n.daysOfWeek) : typeof t == "object" && t ? e = [t] : e = [], e = e.map((n) => Object.assign(Object.assign({}, gm), n)), e;
2785
2785
  }
2786
- function Sd(t, e, n) {
2786
+ function Ed(t, e, n) {
2787
2787
  n.emitter.trigger("select", Object.assign(Object.assign({}, Ya(t, n)), { jsEvent: e ? e.origEvent : null, view: n.viewApi || n.calendarApi.view }));
2788
2788
  }
2789
2789
  function ym(t, e) {
@@ -3117,7 +3117,7 @@ function da(t, e, n, r) {
3117
3117
  h[m.defId].display === "inverse-background" && (m.groupId ? (i[m.groupId] = [], s[m.groupId] || (s[m.groupId] = m)) : o[f] = []);
3118
3118
  }
3119
3119
  for (let f in t.instances) {
3120
- let m = t.instances[f], y = t.defs[m.defId], v = h[y.defId], S = m.range, D = !y.allDay && r ? $a(S, r) : S, _ = hr(D, n);
3120
+ let m = t.instances[f], y = t.defs[m.defId], v = h[y.defId], E = m.range, D = !y.allDay && r ? $a(E, r) : E, _ = hr(D, n);
3121
3121
  _ && (v.display === "inverse-background" ? y.groupId ? i[y.groupId].push(_) : o[m.defId].push(_) : v.display !== "none" && (v.display === "background" ? c : u).push({
3122
3122
  def: y,
3123
3123
  ui: v,
@@ -3130,9 +3130,9 @@ function da(t, e, n, r) {
3130
3130
  for (let f in i) {
3131
3131
  let m = i[f], y = kc(m, n);
3132
3132
  for (let v of y) {
3133
- let S = s[f], D = h[S.defId];
3133
+ let E = s[f], D = h[E.defId];
3134
3134
  c.push({
3135
- def: S,
3135
+ def: E,
3136
3136
  ui: D,
3137
3137
  instance: null,
3138
3138
  range: v,
@@ -3155,7 +3155,7 @@ function da(t, e, n, r) {
3155
3155
  }
3156
3156
  return { bg: c, fg: u };
3157
3157
  }
3158
- function Em(t) {
3158
+ function Sm(t) {
3159
3159
  return t.ui.display === "background" || t.ui.display === "inverse-background";
3160
3160
  }
3161
3161
  function Pc(t, e) {
@@ -3173,10 +3173,10 @@ function Cd(t, e) {
3173
3173
  return e[""] && n.push(e[""]), e[t.defId] && n.push(e[t.defId]), n.push(t.ui), vd(n);
3174
3174
  }
3175
3175
  function Qa(t, e) {
3176
- let n = t.map(Sm);
3176
+ let n = t.map(Em);
3177
3177
  return n.sort((r, i) => jp(r, i, e)), n.map((r) => r._seg);
3178
3178
  }
3179
- function Sm(t) {
3179
+ function Em(t) {
3180
3180
  let { eventRange: e } = t, n = e.def, r = e.instance ? e.instance.range : e.range, i = r.start ? r.start.valueOf() : 0, o = r.end ? r.end.valueOf() : 0;
3181
3181
  return Object.assign(Object.assign(Object.assign({}, n.extendedProps), n), {
3182
3182
  id: n.publicId,
@@ -3202,8 +3202,8 @@ function Am(t, e) {
3202
3202
  function Di(t, e, n, r, i, o, s) {
3203
3203
  let { dateEnv: c, options: u } = n, { displayEventTime: h, displayEventEnd: f } = u, m = t.eventRange.def, y = t.eventRange.instance;
3204
3204
  h == null && (h = r !== !1), f == null && (f = i !== !1);
3205
- let v = y.range.start, S = y.range.end, D = o || t.start || t.eventRange.range.start, _ = s || t.end || t.eventRange.range.end, R = Ze(v).valueOf() === Ze(D).valueOf(), x = Ze(fr(S, -1)).valueOf() === Ze(fr(_, -1)).valueOf();
3206
- return h && !m.allDay && (R || x) ? (D = R ? v : D, _ = x ? S : _, f && m.hasEnd ? c.formatRange(D, _, e, {
3205
+ let v = y.range.start, E = y.range.end, D = o || t.start || t.eventRange.range.start, _ = s || t.end || t.eventRange.range.end, R = Ze(v).valueOf() === Ze(D).valueOf(), x = Ze(fr(E, -1)).valueOf() === Ze(fr(_, -1)).valueOf();
3206
+ return h && !m.allDay && (R || x) ? (D = R ? v : D, _ = x ? E : _, f && m.hasEnd ? c.formatRange(D, _, e, {
3207
3207
  forcedStartTzo: o ? null : y.forcedStartTzo,
3208
3208
  forcedEndTzo: s ? null : y.forcedEndTzo
3209
3209
  }) : c.format(D, e, {
@@ -3624,7 +3624,7 @@ class Bm {
3624
3624
  end: n
3625
3625
  };
3626
3626
  let i = this.getCurrentData(), o = Rm(r, i.dateEnv, Ue({ days: 1 }));
3627
- o && (this.dispatch({ type: "SELECT_DATES", selection: o }), Sd(o, null, i));
3627
+ o && (this.dispatch({ type: "SELECT_DATES", selection: o }), Ed(o, null, i));
3628
3628
  }
3629
3629
  unselect(e) {
3630
3630
  let n = this.getCurrentData();
@@ -3876,7 +3876,7 @@ function ni(t, e, n = "day", r = !0) {
3876
3876
  let m = n === "day" ? o.navLinkDayClick : n === "week" ? o.navLinkWeekClick : null;
3877
3877
  typeof m == "function" ? m.call(s, i.toDate(e), f) : (typeof m == "string" && (n = m), s.zoomTo(e, n));
3878
3878
  };
3879
- return Object.assign({ title: Ei(o.navLinkHint, [c, u], c), "data-navlink": "" }, r ? nd(h) : { onClick: h });
3879
+ return Object.assign({ title: Si(o.navLinkHint, [c, u], c), "data-navlink": "" }, r ? nd(h) : { onClick: h });
3880
3880
  }
3881
3881
  return { "aria-label": c };
3882
3882
  }
@@ -4179,11 +4179,11 @@ class Md {
4179
4179
  */
4180
4180
  findInsertion(e) {
4181
4181
  let { levelCoords: n, entriesByLevel: r, strictOrder: i, stackCnts: o } = this, s = n.length, c = 0, u = -1, h = -1, f = null, m = 0;
4182
- for (let S = 0; S < s; S += 1) {
4183
- const D = n[S];
4182
+ for (let E = 0; E < s; E += 1) {
4183
+ const D = n[E];
4184
4184
  if (!i && D >= c + this.getEntryThickness(e))
4185
4185
  break;
4186
- let _ = r[S], R, x = pa(_, e.span.start, ha), H = x[0] + x[1];
4186
+ let _ = r[E], R, x = pa(_, e.span.start, ha), H = x[0] + x[1];
4187
4187
  for (
4188
4188
  ;
4189
4189
  // loop through entries that horizontally intersect
@@ -4191,7 +4191,7 @@ class Md {
4191
4191
  R.span.start < e.span.end;
4192
4192
  ) {
4193
4193
  let L = D + this.getEntryThickness(R);
4194
- L > c && (c = L, f = R, u = S, h = H), L === c && (m = Math.max(m, o[xr(R)] + 1)), H += 1;
4194
+ L > c && (c = L, f = R, u = E, h = H), L === c && (m = Math.max(m, o[xr(R)] + 1)), H += 1;
4195
4195
  }
4196
4196
  }
4197
4197
  let y = 0;
@@ -4298,7 +4298,7 @@ class lv extends Ge {
4298
4298
  let { dateEnv: e, options: n, theme: r, viewApi: i } = this.context, { props: o } = this, { date: s, dateProfile: c } = o, u = Ja(s, o.todayRange, null, c), h = [Od].concat(Zo(u, r)), f = e.format(s, o.dayHeaderFormat), m = !u.isDisabled && o.colCnt > 1 ? ni(this.context, s) : {}, y = e.toDate(s);
4299
4299
  e.namedTimeZoneImpl && (y = fr(y, 36e5));
4300
4300
  let v = Object.assign(Object.assign(Object.assign({ date: y, view: i }, o.extraRenderProps), { text: f }), u);
4301
- return C(xt, { elTag: "th", elClasses: h, elAttrs: Object.assign({ role: "columnheader", colSpan: o.colSpan, "data-date": u.isDisabled ? void 0 : Ti(s) }, o.extraDataAttrs), renderProps: v, generatorName: "dayHeaderContent", customGenerator: n.dayHeaderContent, defaultGenerator: Nd, classNameGenerator: n.dayHeaderClassNames, didMount: n.dayHeaderDidMount, willUnmount: n.dayHeaderWillUnmount }, (S) => C("div", { className: "fc-scrollgrid-sync-inner" }, !u.isDisabled && C(S, { elTag: "a", elAttrs: m, elClasses: [
4301
+ return C(xt, { elTag: "th", elClasses: h, elAttrs: Object.assign({ role: "columnheader", colSpan: o.colSpan, "data-date": u.isDisabled ? void 0 : Ti(s) }, o.extraDataAttrs), renderProps: v, generatorName: "dayHeaderContent", customGenerator: n.dayHeaderContent, defaultGenerator: Nd, classNameGenerator: n.dayHeaderClassNames, didMount: n.dayHeaderDidMount, willUnmount: n.dayHeaderWillUnmount }, (E) => C("div", { className: "fc-scrollgrid-sync-inner" }, !u.isDisabled && C(E, { elTag: "a", elAttrs: m, elClasses: [
4302
4302
  "fc-col-header-cell-cushion",
4303
4303
  o.isSticky && "fc-sticky"
4304
4304
  ] })));
@@ -4545,8 +4545,8 @@ function pv(t, e, n, r) {
4545
4545
  let i = e.getCurrentData(), o = t.eventDrag, s = o.mutatedEvents, c = s.defs, u = s.instances, h = No(c, o.isEvent ? t.eventUiBases : { "": i.selectionConfig });
4546
4546
  r && (h = qn(h, r));
4547
4547
  let f = dm(t.eventStore, o.affectedEvents.instances), m = f.defs, y = f.instances, v = No(m, t.eventUiBases);
4548
- for (let S in u) {
4549
- let D = u[S], _ = D.range, R = h[D.defId], x = c[D.defId];
4548
+ for (let E in u) {
4549
+ let D = u[E], _ = D.range, R = h[D.defId], x = c[D.defId];
4550
4550
  if (!Fd(R.constraints, _, f, t.businessHours, e))
4551
4551
  return !1;
4552
4552
  let { eventOverlap: H } = e.options, L = typeof H == "function" ? H : null;
@@ -4561,7 +4561,7 @@ function pv(t, e, n, r) {
4561
4561
  }
4562
4562
  let I = i.eventStore;
4563
4563
  for (let z of R.allows) {
4564
- let Q = Object.assign(Object.assign({}, n), { range: D.range, allDay: x.allDay }), $ = I.defs[x.defId], G = I.instances[S], K;
4564
+ let Q = Object.assign(Object.assign({}, n), { range: D.range, allDay: x.allDay }), $ = I.defs[x.defId], G = I.instances[E], K;
4565
4565
  if ($ ? K = new it(e, $, G) : K = new it(e, x), !z(Ya(Q, e), K))
4566
4566
  return !1;
4567
4567
  }
@@ -4706,10 +4706,10 @@ function wv(t, e, n, r) {
4706
4706
  role: "presentation"
4707
4707
  }, typeof e.rowContent == "function" ? e.rowContent(n) : e.rowContent));
4708
4708
  }
4709
- function Ev(t, e) {
4709
+ function Sv(t, e) {
4710
4710
  return dr(t, e, fn);
4711
4711
  }
4712
- function Sv(t, e) {
4712
+ function Ev(t, e) {
4713
4713
  let n = [];
4714
4714
  for (let r of t) {
4715
4715
  let i = r.span || 1;
@@ -4762,7 +4762,7 @@ function Wd(t) {
4762
4762
  }
4763
4763
  class il extends Ge {
4764
4764
  constructor() {
4765
- super(...arguments), this.processCols = Ce((e) => e, Ev), this.renderMicroColGroup = Ce(Sv), this.scrollerRefs = new $n(), this.scrollerElRefs = new $n(this._handleScrollerEl.bind(this)), this.state = {
4765
+ super(...arguments), this.processCols = Ce((e) => e, Sv), this.renderMicroColGroup = Ce(Ev), this.scrollerRefs = new $n(), this.scrollerElRefs = new $n(this._handleScrollerEl.bind(this)), this.state = {
4766
4766
  shrinkWidth: null,
4767
4767
  forceYScrollbars: !1,
4768
4768
  scrollerClientWidths: {},
@@ -4781,13 +4781,13 @@ class il extends Ge {
4781
4781
  y.push(this.renderSection(f, s, !1)), h += 1;
4782
4782
  for (; h < u && (f = i[h]).type === "footer"; )
4783
4783
  v.push(this.renderSection(f, s, !0)), h += 1;
4784
- let S = !Rd();
4784
+ let E = !Rd();
4785
4785
  const D = { role: "rowgroup" };
4786
4786
  return C("table", {
4787
4787
  role: "grid",
4788
4788
  className: c.join(" "),
4789
4789
  style: { height: e.height }
4790
- }, !!(!S && m.length) && C("thead", D, ...m), !!(!S && y.length) && C("tbody", D, ...y), !!(!S && v.length) && C("tfoot", D, ...v), S && C("tbody", D, ...m, ...y, ...v));
4790
+ }, !!(!E && m.length) && C("thead", D, ...m), !!(!E && y.length) && C("tbody", D, ...y), !!(!E && v.length) && C("tfoot", D, ...v), E && C("tbody", D, ...m, ...y, ...v));
4791
4791
  }
4792
4792
  renderSection(e, n, r) {
4793
4793
  return "outerContent" in e ? C(Qe, { key: e.key }, e.outerContent) : C("tr", { key: e.key, role: "presentation", className: _v(e, this.props.liquid).join(" ") }, this.renderChunkTd(e, n, e.chunk, r));
@@ -5119,7 +5119,7 @@ class Yd extends Ge {
5119
5119
  render() {
5120
5120
  let { props: e, state: n } = this;
5121
5121
  return C(Yn.Consumer, null, (r) => {
5122
- let { viewApi: i, options: o, calendarApi: s } = r, { moreLinkText: c } = o, { moreCnt: u } = e, h = jc(e), f = typeof c == "function" ? c.call(s, u) : `+${u} ${c}`, m = Ei(o.moreLinkHint, [u], f), y = {
5122
+ let { viewApi: i, options: o, calendarApi: s } = r, { moreLinkText: c } = o, { moreCnt: u } = e, h = jc(e), f = typeof c == "function" ? c.call(s, u) : `+${u} ${c}`, m = Si(o.moreLinkHint, [u], f), y = {
5123
5123
  num: u,
5124
5124
  shortText: `+${u}`,
5125
5125
  text: f,
@@ -5490,11 +5490,11 @@ function Jv(t, e, n, r, i) {
5490
5490
  c = y.unit, y.value === 1 && (u = c, h = e[c] ? e[c].rawOptions : {});
5491
5491
  }
5492
5492
  let f = (y) => {
5493
- let v = y.buttonText || {}, S = t.defaults.buttonTextKey;
5494
- return S != null && v[S] != null ? v[S] : v[t.type] != null ? v[t.type] : v[u] != null ? v[u] : null;
5493
+ let v = y.buttonText || {}, E = t.defaults.buttonTextKey;
5494
+ return E != null && v[E] != null ? v[E] : v[t.type] != null ? v[t.type] : v[u] != null ? v[u] : null;
5495
5495
  }, m = (y) => {
5496
- let v = y.buttonHints || {}, S = t.defaults.buttonTextKey;
5497
- return S != null && v[S] != null ? v[S] : v[t.type] != null ? v[t.type] : v[u] != null ? v[u] : null;
5496
+ let v = y.buttonHints || {}, E = t.defaults.buttonTextKey;
5497
+ return E != null && v[E] != null ? v[E] : v[t.type] != null ? v[t.type] : v[u] != null ? v[u] : null;
5498
5498
  };
5499
5499
  return {
5500
5500
  type: t.type,
@@ -5506,10 +5506,10 @@ function Jv(t, e, n, r, i) {
5506
5506
  optionOverrides: Object.assign(Object.assign({}, h), t.overrides),
5507
5507
  buttonTextOverride: f(r) || f(n) || // constructor-specified buttonText lookup hash takes precedence
5508
5508
  t.overrides.buttonText,
5509
- buttonTextDefault: f(i) || t.defaults.buttonText || f(Si) || t.type,
5509
+ buttonTextDefault: f(i) || t.defaults.buttonText || f(Ei) || t.type,
5510
5510
  // not DRY
5511
5511
  buttonTitleOverride: m(r) || m(n) || t.overrides.buttonHint,
5512
- buttonTitleDefault: m(i) || t.defaults.buttonHint || m(Si)
5512
+ buttonTitleDefault: m(i) || t.defaults.buttonHint || m(Ei)
5513
5513
  // will eventually fall back to buttonText
5514
5514
  };
5515
5515
  }
@@ -5724,10 +5724,10 @@ function Fc(t, e, n, r, i, o) {
5724
5724
  return { sectionWidgets: s, viewsWithButtons: c, hasTitle: u };
5725
5725
  }
5726
5726
  function by(t, e, n, r, i, o) {
5727
- let s = e.direction === "rtl", c = e.customButtons || {}, u = n.buttonText || {}, h = e.buttonText || {}, f = n.buttonHints || {}, m = e.buttonHints || {}, y = t ? t.split(" ") : [], v = [], S = !1;
5727
+ let s = e.direction === "rtl", c = e.customButtons || {}, u = n.buttonText || {}, h = e.buttonText || {}, f = n.buttonHints || {}, m = e.buttonHints || {}, y = t ? t.split(" ") : [], v = [], E = !1;
5728
5728
  return { widgets: y.map((_) => _.split(",").map((R) => {
5729
5729
  if (R === "title")
5730
- return S = !0, { buttonName: R };
5730
+ return E = !0, { buttonName: R };
5731
5731
  let x, H, L, I, z, Q;
5732
5732
  if (x = c[R])
5733
5733
  L = ($) => {
@@ -5738,7 +5738,7 @@ function by(t, e, n, r, i, o) {
5738
5738
  o.changeView(R);
5739
5739
  }, (z = H.buttonTextOverride) || (I = r.getIconClass(R, s)) || (z = H.buttonTextDefault);
5740
5740
  let $ = H.buttonTextOverride || H.buttonTextDefault;
5741
- Q = Ei(
5741
+ Q = Si(
5742
5742
  H.buttonTitleOverride || H.buttonTitleDefault || e.viewHint,
5743
5743
  [$, R],
5744
5744
  // view-name = buttonName
@@ -5749,17 +5749,17 @@ function by(t, e, n, r, i, o) {
5749
5749
  o[R]();
5750
5750
  }, (z = u[R]) || (I = r.getIconClass(R, s)) || (z = h[R]), R === "prevYear" || R === "nextYear") {
5751
5751
  let $ = R === "prevYear" ? "prev" : "next";
5752
- Q = Ei(f[$] || m[$], [
5752
+ Q = Si(f[$] || m[$], [
5753
5753
  h.year || "year",
5754
5754
  "year"
5755
5755
  ], h[R]);
5756
5756
  } else
5757
- Q = ($) => Ei(f[R] || m[R], [
5757
+ Q = ($) => Si(f[R] || m[R], [
5758
5758
  h[$] || $,
5759
5759
  $
5760
5760
  ], h[R]);
5761
5761
  return { buttonName: R, buttonClick: L, buttonIcon: I, buttonText: z, buttonHint: Q };
5762
- })), viewsWithButtons: v, hasTitle: S };
5762
+ })), viewsWithButtons: v, hasTitle: E };
5763
5763
  }
5764
5764
  class wy {
5765
5765
  constructor(e, n, r) {
@@ -5787,7 +5787,7 @@ class wy {
5787
5787
  return this.getCurrentData().options[e];
5788
5788
  }
5789
5789
  }
5790
- let Ey = {
5790
+ let Sy = {
5791
5791
  ignoreRange: !0,
5792
5792
  parseMeta(t) {
5793
5793
  return Array.isArray(t.events) ? t.events : null;
@@ -5798,9 +5798,9 @@ let Ey = {
5798
5798
  });
5799
5799
  }
5800
5800
  };
5801
- const Sy = jn({
5801
+ const Ey = jn({
5802
5802
  name: "array-event-source",
5803
- eventSourceDefs: [Ey]
5803
+ eventSourceDefs: [Sy]
5804
5804
  });
5805
5805
  let Dy = {
5806
5806
  parseMeta(t) {
@@ -5940,7 +5940,7 @@ function Py(t, e) {
5940
5940
  n.hasHandlers("eventsSet") && n.trigger("eventsSet", _r(t, e));
5941
5941
  }
5942
5942
  const Ly = [
5943
- Sy,
5943
+ Ey,
5944
5944
  Cy,
5945
5945
  xy,
5946
5946
  Iy,
@@ -6133,17 +6133,17 @@ class By {
6133
6133
  // always called from behind a memoizer
6134
6134
  processRawCalendarOptions(e, n) {
6135
6135
  let { locales: r, locale: i } = Us([
6136
- Si,
6136
+ Ei,
6137
6137
  e,
6138
6138
  n
6139
6139
  ]), o = this.organizeRawLocales(r), s = o.map, c = this.buildLocale(i || o.defaultCode, s).options, u = this.buildPluginHooks(e.plugins || [], Ly), h = this.currentCalendarOptionsRefiners = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, xc), Rc), Tc), u.listenerRefiners), u.optionRefiners), f = {}, m = Us([
6140
- Si,
6140
+ Ei,
6141
6141
  c,
6142
6142
  e,
6143
6143
  n
6144
- ]), y = {}, v = this.currentCalendarOptionsInput, S = this.currentCalendarOptionsRefined, D = !1;
6144
+ ]), y = {}, v = this.currentCalendarOptionsInput, E = this.currentCalendarOptionsRefined, D = !1;
6145
6145
  for (let _ in m)
6146
- this.optionsForRefining.indexOf(_) === -1 && (m[_] === v[_] || Dr[_] && _ in v && Dr[_](v[_], m[_])) ? y[_] = S[_] : h[_] ? (y[_] = h[_](m[_]), D = !0) : f[_] = v[_];
6146
+ this.optionsForRefining.indexOf(_) === -1 && (m[_] === v[_] || Dr[_] && _ in v && Dr[_](v[_], m[_])) ? y[_] = E[_] : h[_] ? (y[_] = h[_](m[_]), D = !0) : f[_] = v[_];
6147
6147
  return D && (this.currentCalendarOptionsInput = m, this.currentCalendarOptionsRefined = y, this.stableOptionOverrides = e, this.stableDynamicOptionOverrides = n), this.optionsForHandling.push(...this.optionsForRefining), this.optionsForRefining = [], {
6148
6148
  rawOptions: this.currentCalendarOptionsInput,
6149
6149
  refinedOptions: this.currentCalendarOptionsRefined,
@@ -6183,7 +6183,7 @@ class By {
6183
6183
  }
6184
6184
  processRawViewOptions(e, n, r, i, o) {
6185
6185
  let s = Us([
6186
- Si,
6186
+ Ei,
6187
6187
  e.optionDefaults,
6188
6188
  r,
6189
6189
  i,
@@ -6284,8 +6284,8 @@ class Ky extends Ge {
6284
6284
  if (c === "title")
6285
6285
  o = !1, i.push(C("h2", { className: "fc-toolbar-title", id: n.titleId }, n.title));
6286
6286
  else {
6287
- let y = c === n.activeButton, v = !n.isTodayEnabled && c === "today" || !n.isPrevEnabled && c === "prev" || !n.isNextEnabled && c === "next", S = [`fc-${c}-button`, r.getClass("button")];
6288
- y && S.push(r.getClass("buttonActive")), i.push(C("button", { type: "button", title: typeof m == "function" ? m(n.navUnit) : m, disabled: v, "aria-pressed": y, className: S.join(" "), onClick: u }, h || (f ? C("span", { className: f, role: "img" }) : "")));
6287
+ let y = c === n.activeButton, v = !n.isTodayEnabled && c === "today" || !n.isPrevEnabled && c === "prev" || !n.isNextEnabled && c === "next", E = [`fc-${c}-button`, r.getClass("button")];
6288
+ y && E.push(r.getClass("buttonActive")), i.push(C("button", { type: "button", title: typeof m == "function" ? m(n.navUnit) : m, disabled: v, "aria-pressed": y, className: E.join(" "), onClick: u }, h || (f ? C("span", { className: f, role: "img" }) : "")));
6289
6289
  }
6290
6290
  }
6291
6291
  if (i.length > 1) {
@@ -6525,7 +6525,7 @@ class nb extends Bm {
6525
6525
  ))), this.el);
6526
6526
  });
6527
6527
  } else this.isRendered && (this.isRendered = !1, Ai(null, this.el), this.setClassNames([]), this.setHeight(""));
6528
- }, Ep(e), this.el = e, this.renderRunner = new Ma(this.handleRenderRequest), new By({
6528
+ }, Sp(e), this.el = e, this.renderRunner = new Ma(this.handleRenderRequest), new By({
6529
6529
  optionOverrides: n,
6530
6530
  calendarApi: this,
6531
6531
  onAction: this.handleAction,
@@ -6866,7 +6866,7 @@ function pb(t, e, n, r, i, o, s) {
6866
6866
  }
6867
6867
  }) : h.push(x);
6868
6868
  }
6869
- let f = c.addSegs(u), m = c.toRects(), { singleColPlacements: y, multiColPlacements: v, leftoverMargins: S } = gb(m, t, s), D = [], _ = [];
6869
+ let f = c.addSegs(u), m = c.toRects(), { singleColPlacements: y, multiColPlacements: v, leftoverMargins: E } = gb(m, t, s), D = [], _ = [];
6870
6870
  for (let R of h) {
6871
6871
  v[R.firstCol].push({
6872
6872
  seg: R,
@@ -6905,7 +6905,7 @@ function pb(t, e, n, r, i, o, s) {
6905
6905
  });
6906
6906
  }
6907
6907
  for (let R = 0; R < s.length; R += 1)
6908
- _.push(S[R]);
6908
+ _.push(E[R]);
6909
6909
  return { singleColPlacements: y, multiColPlacements: v, moreCnts: D, moreMarginTops: _ };
6910
6910
  }
6911
6911
  function gb(t, e, n) {
@@ -6913,9 +6913,9 @@ function gb(t, e, n) {
6913
6913
  for (let c = 0; c < n.length; c += 1) {
6914
6914
  let u = r[c], h = [], f = 0, m = 0;
6915
6915
  for (let v of u) {
6916
- let S = e[v.index];
6916
+ let E = e[v.index];
6917
6917
  h.push({
6918
- seg: Xr(S, c, c + 1, n),
6918
+ seg: Xr(E, c, c + 1, n),
6919
6919
  isVisible: !0,
6920
6920
  isAbsolute: !1,
6921
6921
  absoluteTop: v.levelCoord,
@@ -6925,15 +6925,15 @@ function gb(t, e, n) {
6925
6925
  let y = [];
6926
6926
  f = 0, m = 0;
6927
6927
  for (let v of u) {
6928
- let S = e[v.index], D = v.span.end - v.span.start > 1, _ = v.span.start === c;
6928
+ let E = e[v.index], D = v.span.end - v.span.start > 1, _ = v.span.start === c;
6929
6929
  m += v.levelCoord - f, f = v.levelCoord + v.thickness, D ? (m += v.thickness, _ && y.push({
6930
- seg: Xr(S, v.span.start, v.span.end, n),
6930
+ seg: Xr(E, v.span.start, v.span.end, n),
6931
6931
  isVisible: !0,
6932
6932
  isAbsolute: !0,
6933
6933
  absoluteTop: v.levelCoord,
6934
6934
  marginTop: 0
6935
6935
  })) : _ && (y.push({
6936
- seg: Xr(S, v.span.start, v.span.end, n),
6936
+ seg: Xr(E, v.span.start, v.span.end, n),
6937
6937
  isVisible: !0,
6938
6938
  isAbsolute: !1,
6939
6939
  absoluteTop: v.levelCoord,
@@ -7003,7 +7003,7 @@ class pf extends gn {
7003
7003
  };
7004
7004
  }
7005
7005
  render() {
7006
- let { props: e, state: n, context: r } = this, { options: i } = r, o = e.cells.length, s = lo(e.businessHourSegs, o), c = lo(e.bgEventSegs, o), u = lo(this.getHighlightSegs(), o), h = lo(this.getMirrorSegs(), o), { singleColPlacements: f, multiColPlacements: m, moreCnts: y, moreMarginTops: v } = pb(Qa(e.fgEventSegs, i.eventOrder), e.dayMaxEvents, e.dayMaxEventRows, i.eventOrderStrict, n.segHeights, n.maxContentHeight, e.cells), S = (
7006
+ let { props: e, state: n, context: r } = this, { options: i } = r, o = e.cells.length, s = lo(e.businessHourSegs, o), c = lo(e.bgEventSegs, o), u = lo(this.getHighlightSegs(), o), h = lo(this.getMirrorSegs(), o), { singleColPlacements: f, multiColPlacements: m, moreCnts: y, moreMarginTops: v } = pb(Qa(e.fgEventSegs, i.eventOrder), e.dayMaxEvents, e.dayMaxEventRows, i.eventOrderStrict, n.segHeights, n.maxContentHeight, e.cells), E = (
7007
7007
  // TODO: messy way to compute this
7008
7008
  e.eventDrag && e.eventDrag.affectedInstances || e.eventResize && e.eventResize.affectedInstances || {}
7009
7009
  );
@@ -7012,7 +7012,7 @@ class pf extends gn {
7012
7012
  { ref: this.rootElRef, role: "row" },
7013
7013
  e.renderIntro && e.renderIntro(),
7014
7014
  e.cells.map((D, _) => {
7015
- let R = this.renderFgSegs(_, e.forPrint ? f[_] : m[_], e.todayRange, S), x = this.renderFgSegs(_, yb(h[_], m), e.todayRange, {}, !!e.eventDrag, !!e.eventResize, !1);
7015
+ let R = this.renderFgSegs(_, e.forPrint ? f[_] : m[_], e.todayRange, E), x = this.renderFgSegs(_, yb(h[_], m), e.todayRange, {}, !!e.eventDrag, !!e.eventResize, !1);
7016
7016
  return C(db, { key: D.key, elRef: this.cellElRefs.createRef(D.key), innerElRef: this.frameElRefs.createRef(D.key), dateProfile: e.dateProfile, date: D.date, showDayNumber: e.showDayNumbers, showWeekNumber: e.showWeekNumbers && _ === 0, forceDayTop: e.showWeekNumbers, todayRange: e.todayRange, eventSelection: e.eventSelection, eventDrag: e.eventDrag, eventResize: e.eventResize, extraRenderProps: D.extraRenderProps, extraDataAttrs: D.extraDataAttrs, extraClassNames: D.extraClassNames, extraDateSpan: D.extraDateSpan, moreCnt: y[_], moreMarginTop: v[_], singlePlacements: f[_], fgContentElRef: this.fgElRefs.createRef(D.key), fgContent: (
7017
7017
  // Fragment scopes the keys
7018
7018
  C(
@@ -7055,12 +7055,12 @@ class pf extends gn {
7055
7055
  renderFgSegs(e, n, r, i, o, s, c) {
7056
7056
  let { context: u } = this, { eventSelection: h } = this.props, { framePositions: f } = this.state, m = this.props.cells.length === 1, y = o || s || c, v = [];
7057
7057
  if (f)
7058
- for (let S of n) {
7059
- let { seg: D } = S, { instanceId: _ } = D.eventRange.instance, R = S.isVisible && !i[_], x = S.isAbsolute, H = "", L = "";
7058
+ for (let E of n) {
7059
+ let { seg: D } = E, { instanceId: _ } = D.eventRange.instance, R = E.isVisible && !i[_], x = E.isAbsolute, H = "", L = "";
7060
7060
  x && (u.isRtl ? (L = 0, H = f.lefts[D.lastCol] - f.lefts[D.firstCol]) : (H = 0, L = f.rights[D.firstCol] - f.rights[D.lastCol])), v.push(C("div", { className: "fc-daygrid-event-harness" + (x ? " fc-daygrid-event-harness-abs" : ""), key: ff(D), ref: y ? null : this.segHarnessRefs.createRef(hf(D)), style: {
7061
7061
  visibility: R ? "" : "hidden",
7062
- marginTop: x ? "" : S.marginTop,
7063
- top: x ? S.absoluteTop : "",
7062
+ marginTop: x ? "" : E.marginTop,
7063
+ top: x ? E.absoluteTop : "",
7064
7064
  left: H,
7065
7065
  right: L
7066
7066
  } }, cf(D) ? C(df, Object.assign({ seg: D, isDragging: o, isSelected: _ === h, defaultDisplayEventEnd: m }, Vn(D, r))) : C(uf, Object.assign({ seg: D, isDragging: o, isResizing: s, isDateSelecting: c, isSelected: _ === h, defaultDisplayEventEnd: m }, Vn(D, r)))));
@@ -7157,26 +7157,26 @@ function bb(t) {
7157
7157
  }
7158
7158
  class wb extends gn {
7159
7159
  constructor() {
7160
- super(...arguments), this.splitBusinessHourSegs = Ce(vo), this.splitBgEventSegs = Ce(Eb), this.splitFgEventSegs = Ce(vo), this.splitDateSelectionSegs = Ce(vo), this.splitEventDrag = Ce(qc), this.splitEventResize = Ce(qc), this.rowRefs = new $n();
7160
+ super(...arguments), this.splitBusinessHourSegs = Ce(vo), this.splitBgEventSegs = Ce(Sb), this.splitFgEventSegs = Ce(vo), this.splitDateSelectionSegs = Ce(vo), this.splitEventDrag = Ce(qc), this.splitEventResize = Ce(qc), this.rowRefs = new $n();
7161
7161
  }
7162
7162
  render() {
7163
7163
  let { props: e, context: n } = this, r = e.cells.length, i = this.splitBusinessHourSegs(e.businessHourSegs, r), o = this.splitBgEventSegs(e.bgEventSegs, r), s = this.splitFgEventSegs(e.fgEventSegs, r), c = this.splitDateSelectionSegs(e.dateSelectionSegs, r), u = this.splitEventDrag(e.eventDrag, r), h = this.splitEventResize(e.eventResize, r), f = r >= 7 && e.clientWidth ? e.clientWidth / n.options.aspectRatio / 6 : null;
7164
- return C(Lr, { unit: "day" }, (m, y) => C(Qe, null, e.cells.map((v, S) => C(pf, {
7165
- ref: this.rowRefs.createRef(S),
7166
- key: v.length ? v[0].date.toISOString() : S,
7164
+ return C(Lr, { unit: "day" }, (m, y) => C(Qe, null, e.cells.map((v, E) => C(pf, {
7165
+ ref: this.rowRefs.createRef(E),
7166
+ key: v.length ? v[0].date.toISOString() : E,
7167
7167
  showDayNumbers: r > 1,
7168
7168
  showWeekNumbers: e.showWeekNumbers,
7169
7169
  todayRange: y,
7170
7170
  dateProfile: e.dateProfile,
7171
7171
  cells: v,
7172
7172
  renderIntro: e.renderRowIntro,
7173
- businessHourSegs: i[S],
7173
+ businessHourSegs: i[E],
7174
7174
  eventSelection: e.eventSelection,
7175
- bgEventSegs: o[S],
7176
- fgEventSegs: s[S],
7177
- dateSelectionSegs: c[S],
7178
- eventDrag: u[S],
7179
- eventResize: h[S],
7175
+ bgEventSegs: o[E],
7176
+ fgEventSegs: s[E],
7177
+ dateSelectionSegs: c[E],
7178
+ eventDrag: u[E],
7179
+ eventResize: h[E],
7180
7180
  dayMaxEvents: e.dayMaxEvents,
7181
7181
  dayMaxEventRows: e.dayMaxEventRows,
7182
7182
  clientWidth: e.clientWidth,
@@ -7248,10 +7248,10 @@ class wb extends gn {
7248
7248
  return { start: r, end: i };
7249
7249
  }
7250
7250
  }
7251
- function Eb(t, e) {
7252
- return vo(t.filter(Sb), e);
7251
+ function Sb(t, e) {
7252
+ return vo(t.filter(Eb), e);
7253
7253
  }
7254
- function Sb(t) {
7254
+ function Eb(t) {
7255
7255
  return t.eventRange.def.allDay;
7256
7256
  }
7257
7257
  class Db extends gn {
@@ -7359,12 +7359,12 @@ class Rb extends hd {
7359
7359
  }
7360
7360
  function Tb(t) {
7361
7361
  let { dateEnv: e, currentRange: n } = t, { start: r, end: i } = n, o;
7362
- if (t.snapToWeek && (r = e.startOfWeek(r), o = e.startOfWeek(i), o.valueOf() !== i.valueOf() && (i = Sc(o, 1))), t.fixedWeekCount) {
7362
+ if (t.snapToWeek && (r = e.startOfWeek(r), o = e.startOfWeek(i), o.valueOf() !== i.valueOf() && (i = Ec(o, 1))), t.fixedWeekCount) {
7363
7363
  let s = e.startOfWeek(e.startOfMonth(dt(n.end, -1))), c = Math.ceil(
7364
7364
  // could be partial weeks due to hiddenDays
7365
7365
  Qp(s, i)
7366
7366
  );
7367
- i = Sc(i, 6 - c);
7367
+ i = Ec(i, 6 - c);
7368
7368
  }
7369
7369
  return { start: r, end: i };
7370
7370
  }
@@ -7408,7 +7408,7 @@ class Mb extends Vm {
7408
7408
  return e.allDay ? ["allDay"] : ["timed"];
7409
7409
  }
7410
7410
  getKeysForEventDef(e) {
7411
- return e.allDay ? Em(e) ? ["timed", "allDay"] : ["allDay"] : ["timed"];
7411
+ return e.allDay ? Sm(e) ? ["timed", "allDay"] : ["allDay"] : ["timed"];
7412
7412
  }
7413
7413
  }
7414
7414
  const Ob = et({
@@ -7613,7 +7613,7 @@ class Hb extends gn {
7613
7613
  )
7614
7614
  )
7615
7615
  }));
7616
- let S = h.options.nowIndicator;
7616
+ let E = h.options.nowIndicator;
7617
7617
  return v.push({
7618
7618
  type: "body",
7619
7619
  key: "body",
@@ -7641,10 +7641,10 @@ class Hb extends gn {
7641
7641
  "div",
7642
7642
  { className: "fc-timegrid-now-indicator-container" },
7643
7643
  C(Lr, {
7644
- unit: S ? "minute" : "day"
7644
+ unit: E ? "minute" : "day"
7645
7645
  /* hacky */
7646
7646
  }, (_) => {
7647
- let R = S && c && c.safeComputeTop(_);
7647
+ let R = E && c && c.safeComputeTop(_);
7648
7648
  return typeof R == "number" ? C(sl, { elClasses: ["fc-timegrid-now-indicator-arrow"], elStyle: { top: R }, isAxis: !0, date: _ }) : null;
7649
7649
  })
7650
7650
  )
@@ -7876,11 +7876,11 @@ function Zb(t, e) {
7876
7876
  else
7877
7877
  for (let v of s)
7878
7878
  if (f === void 0) {
7879
- let S = n(v, i, u);
7880
- f = S[0], m.push(S[1]);
7879
+ let E = n(v, i, u);
7880
+ f = E[0], m.push(E[1]);
7881
7881
  } else {
7882
- let S = n(v, f, 0);
7883
- m.push(S[1]);
7882
+ let E = n(v, f, 0);
7883
+ m.push(E[1]);
7884
7884
  }
7885
7885
  let y = (f - i) * h;
7886
7886
  return [f - y, Object.assign(Object.assign({}, r), { thickness: y, nextLevelNodes: m })];
@@ -8000,7 +8000,7 @@ class tw extends Ge {
8000
8000
  return c.forPrint ? yf(e, c) : this.renderPositionedFgSegs(e, n, r, i, o, s);
8001
8001
  }
8002
8002
  renderPositionedFgSegs(e, n, r, i, o, s) {
8003
- let { eventMaxStack: c, eventShortHeight: u, eventOrderStrict: h, eventMinHeight: f } = this.context.options, { date: m, slatCoords: y, eventSelection: v, todayRange: S, nowDate: D } = this.props, _ = r || i || o, R = Kc(e, m, y, f), { segPlacements: x, hiddenGroups: H } = Jb(e, R, h, c);
8003
+ let { eventMaxStack: c, eventShortHeight: u, eventOrderStrict: h, eventMinHeight: f } = this.context.options, { date: m, slatCoords: y, eventSelection: v, todayRange: E, nowDate: D } = this.props, _ = r || i || o, R = Kc(e, m, y, f), { segPlacements: x, hiddenGroups: H } = Jb(e, R, h, c);
8004
8004
  return C(
8005
8005
  Qe,
8006
8006
  null,
@@ -8010,7 +8010,7 @@ class tw extends Ge {
8010
8010
  return C(
8011
8011
  "div",
8012
8012
  { className: "fc-timegrid-event-harness" + (ae ? " fc-timegrid-event-harness-inset" : ""), key: s || Q, style: Object.assign(Object.assign({ visibility: $ ? "" : "hidden" }, G), K) },
8013
- C(vf, Object.assign({ seg: I, isDragging: r, isResizing: i, isDateSelecting: o, isSelected: Q === v, isShort: _e }, Vn(I, S, D)))
8013
+ C(vf, Object.assign({ seg: I, isDragging: r, isResizing: i, isDateSelecting: o, isSelected: Q === v, isShort: _e }, Vn(I, E, D)))
8014
8014
  );
8015
8015
  })
8016
8016
  );
@@ -8185,7 +8185,7 @@ class ow extends gn {
8185
8185
  queryHit(e, n) {
8186
8186
  let { dateEnv: r, options: i } = this.context, { colCoords: o } = this, { dateProfile: s } = this.props, { slatCoords: c } = this.state, { snapDuration: u, snapsPerSlot: h } = this.processSlotOptions(this.props.slotDuration, i.snapDuration), f = o.leftToIndex(e), m = c.positions.topToIndex(n);
8187
8187
  if (f != null && m != null) {
8188
- let y = this.props.cells[f], v = c.positions.tops[m], S = c.positions.getHeight(m), D = (n - v) / S, _ = Math.floor(D * h), R = m * h + _, x = this.props.cells[f].date, H = sa(s.slotMinTime, qp(u, R)), L = r.add(x, H), I = r.add(L, u);
8188
+ let y = this.props.cells[f], v = c.positions.tops[m], E = c.positions.getHeight(m), D = (n - v) / E, _ = Math.floor(D * h), R = m * h + _, x = this.props.cells[f].date, H = sa(s.slotMinTime, qp(u, R)), L = r.add(x, H), I = r.add(L, u);
8189
8189
  return {
8190
8190
  dateProfile: s,
8191
8191
  dateSpan: Object.assign({ range: { start: L, end: I }, allDay: !1 }, y.extraDateSpan),
@@ -8194,7 +8194,7 @@ class ow extends gn {
8194
8194
  left: o.lefts[f],
8195
8195
  right: o.rights[f],
8196
8196
  top: v,
8197
- bottom: v + S
8197
+ bottom: v + E
8198
8198
  },
8199
8199
  layer: 0
8200
8200
  };
@@ -8273,8 +8273,8 @@ class fw extends Hb {
8273
8273
  super(...arguments), this.buildTimeColsModel = Ce(hw), this.buildSlatMetas = Ce(uw);
8274
8274
  }
8275
8275
  render() {
8276
- let { options: e, dateEnv: n, dateProfileGenerator: r } = this.context, { props: i } = this, { dateProfile: o } = i, s = this.buildTimeColsModel(o, r), c = this.allDaySplitter.splitProps(i), u = this.buildSlatMetas(o.slotMinTime, o.slotMaxTime, e.slotLabelInterval, e.slotDuration, n), { dayMinWidth: h } = e, f = !h, m = h, y = e.dayHeaders && C(Pd, { dates: s.headerDates, dateProfile: o, datesRepDistinctDays: !0, renderIntro: f ? this.renderHeadAxis : null }), v = e.allDaySlot !== !1 && ((D) => C(gf, Object.assign({}, c.allDay, { dateProfile: o, dayTableModel: s, nextDayThreshold: e.nextDayThreshold, tableMinWidth: D.tableMinWidth, colGroupNode: D.tableColGroupNode, renderRowIntro: f ? this.renderTableRowAxis : null, showWeekNumbers: !1, expandRows: !1, headerAlignElRef: this.headerElRef, clientWidth: D.clientWidth, clientHeight: D.clientHeight, forPrint: i.forPrint }, this.getAllDayMaxEventProps()))), S = (D) => C(lw, Object.assign({}, c.timed, { dayTableModel: s, dateProfile: o, axis: f, slotDuration: e.slotDuration, slatMetas: u, forPrint: i.forPrint, tableColGroupNode: D.tableColGroupNode, tableMinWidth: D.tableMinWidth, clientWidth: D.clientWidth, clientHeight: D.clientHeight, onSlatCoords: this.handleSlatCoords, expandRows: D.expandRows, onScrollTopRequest: this.handleScrollTopRequest }));
8277
- return m ? this.renderHScrollLayout(y, v, S, s.colCnt, h, u, this.state.slatCoords) : this.renderSimpleLayout(y, v, S);
8276
+ let { options: e, dateEnv: n, dateProfileGenerator: r } = this.context, { props: i } = this, { dateProfile: o } = i, s = this.buildTimeColsModel(o, r), c = this.allDaySplitter.splitProps(i), u = this.buildSlatMetas(o.slotMinTime, o.slotMaxTime, e.slotLabelInterval, e.slotDuration, n), { dayMinWidth: h } = e, f = !h, m = h, y = e.dayHeaders && C(Pd, { dates: s.headerDates, dateProfile: o, datesRepDistinctDays: !0, renderIntro: f ? this.renderHeadAxis : null }), v = e.allDaySlot !== !1 && ((D) => C(gf, Object.assign({}, c.allDay, { dateProfile: o, dayTableModel: s, nextDayThreshold: e.nextDayThreshold, tableMinWidth: D.tableMinWidth, colGroupNode: D.tableColGroupNode, renderRowIntro: f ? this.renderTableRowAxis : null, showWeekNumbers: !1, expandRows: !1, headerAlignElRef: this.headerElRef, clientWidth: D.clientWidth, clientHeight: D.clientHeight, forPrint: i.forPrint }, this.getAllDayMaxEventProps()))), E = (D) => C(lw, Object.assign({}, c.timed, { dayTableModel: s, dateProfile: o, axis: f, slotDuration: e.slotDuration, slatMetas: u, forPrint: i.forPrint, tableColGroupNode: D.tableColGroupNode, tableMinWidth: D.tableMinWidth, clientWidth: D.clientWidth, clientHeight: D.clientHeight, onSlatCoords: this.handleSlatCoords, expandRows: D.expandRows, onScrollTopRequest: this.handleScrollTopRequest }));
8277
+ return m ? this.renderHScrollLayout(y, v, E, s.colCnt, h, u, this.state.slatCoords) : this.renderSimpleLayout(y, v, E);
8278
8278
  }
8279
8279
  }
8280
8280
  function hw(t, e) {
@@ -8431,7 +8431,7 @@ function ww() {
8431
8431
  function wf(t) {
8432
8432
  ya && t.preventDefault();
8433
8433
  }
8434
- class Ew {
8434
+ class Sw {
8435
8435
  constructor() {
8436
8436
  this.isVisible = !1, this.sourceEl = null, this.mirrorEl = null, this.sourceElRect = null, this.parentNode = document.body, this.zIndex = 9999, this.revertDuration = 0;
8437
8437
  }
@@ -8486,7 +8486,7 @@ class Ew {
8486
8486
  }), this.parentNode.appendChild(n)), n;
8487
8487
  }
8488
8488
  }
8489
- class Ef extends tl {
8489
+ class Sf extends tl {
8490
8490
  constructor(e, n) {
8491
8491
  super(), this.handleScroll = () => {
8492
8492
  this.scrollTop = this.scrollController.getScrollTop(), this.scrollLeft = this.scrollController.getScrollLeft(), this.handleScrollChange();
@@ -8522,7 +8522,7 @@ class Ef extends tl {
8522
8522
  handleScrollChange() {
8523
8523
  }
8524
8524
  }
8525
- class Sf extends Ef {
8525
+ class Ef extends Sf {
8526
8526
  constructor(e, n) {
8527
8527
  super(new nv(e), n);
8528
8528
  }
@@ -8533,7 +8533,7 @@ class Sf extends Ef {
8533
8533
  return ev(this.scrollController.el);
8534
8534
  }
8535
8535
  }
8536
- class Sw extends Ef {
8536
+ class Ew extends Sf {
8537
8537
  constructor(e) {
8538
8538
  super(new rv(), e);
8539
8539
  }
@@ -8619,7 +8619,7 @@ class Dw {
8619
8619
  return i;
8620
8620
  }
8621
8621
  buildCaches(e) {
8622
- return this.queryScrollEls(e).map((n) => n === window ? new Sw(!1) : new Sf(n, !1));
8622
+ return this.queryScrollEls(e).map((n) => n === window ? new Ew(!1) : new Ef(n, !1));
8623
8623
  }
8624
8624
  queryScrollEls(e) {
8625
8625
  let n = [];
@@ -8645,7 +8645,7 @@ class Ii extends sv {
8645
8645
  this.isInteracting && (this.isInteracting = !1, Op(document.body), Pp(document.body), this.emitter.trigger("pointerup", i), this.isDragging && (this.autoScroller.stop(), this.tryStopDrag(i)), this.delayTimeoutId && (clearTimeout(this.delayTimeoutId), this.delayTimeoutId = null));
8646
8646
  };
8647
8647
  let r = this.pointer = new bf(e);
8648
- r.emitter.on("pointerdown", this.onPointerDown), r.emitter.on("pointermove", this.onPointerMove), r.emitter.on("pointerup", this.onPointerUp), n && (r.selector = n), this.mirror = new Ew(), this.autoScroller = new Dw();
8648
+ r.emitter.on("pointerdown", this.onPointerDown), r.emitter.on("pointermove", this.onPointerMove), r.emitter.on("pointerup", this.onPointerUp), n && (r.selector = n), this.mirror = new Sw(), this.autoScroller = new Dw();
8649
8649
  }
8650
8650
  destroy() {
8651
8651
  this.pointer.destroy(), this.onPointerUp({});
@@ -8686,7 +8686,7 @@ class Ii extends sv {
8686
8686
  }
8687
8687
  class Cw {
8688
8688
  constructor(e) {
8689
- this.el = e, this.origRect = el(e), this.scrollCaches = Id(e).map((n) => new Sf(n, !0));
8689
+ this.el = e, this.origRect = el(e), this.scrollCaches = Id(e).map((n) => new Ef(n, !0));
8690
8690
  }
8691
8691
  destroy() {
8692
8692
  for (let e of this.scrollCaches)
@@ -8765,12 +8765,12 @@ class Jo {
8765
8765
  let c = r[s].component, u = i[s];
8766
8766
  if (u && // wasn't destroyed mid-drag
8767
8767
  u.isWithinClipping(e, n)) {
8768
- let h = u.computeLeft(), f = u.computeTop(), m = e - h, y = n - f, { origRect: v } = u, S = v.right - v.left, D = v.bottom - v.top;
8768
+ let h = u.computeLeft(), f = u.computeTop(), m = e - h, y = n - f, { origRect: v } = u, E = v.right - v.left, D = v.bottom - v.top;
8769
8769
  if (
8770
8770
  // must be within the element's bounds
8771
- m >= 0 && m < S && y >= 0 && y < D
8771
+ m >= 0 && m < E && y >= 0 && y < D
8772
8772
  ) {
8773
- let _ = c.queryHit(m, y, S, D);
8773
+ let _ = c.queryHit(m, y, E, D);
8774
8774
  _ && // make sure the hit is within activeRange, meaning it's not a dead cell
8775
8775
  Yo(_.dateProfile.activeRange, _.dateSpan.range) && // Ensure the component we are querying for the hit is accessibly my the pointer
8776
8776
  // Prevents obscured calendars (ex: under a modal dialog) from accepting hit
@@ -8839,7 +8839,7 @@ class Rw extends si {
8839
8839
  }
8840
8840
  h ? u.dispatch({ type: "SELECT_DATES", selection: h }) : c || u.dispatch({ type: "UNSELECT_DATES" }), f ? Na() : Pa(), c || (this.dragSelection = h);
8841
8841
  }, this.handlePointerUp = (s) => {
8842
- this.dragSelection && (Sd(this.dragSelection, s, this.component.context), this.dragSelection = null);
8842
+ this.dragSelection && (Ed(this.dragSelection, s, this.component.context), this.dragSelection = null);
8843
8843
  };
8844
8844
  let { component: n } = e, { options: r } = n.context, i = this.dragging = new Ii(e.el);
8845
8845
  i.touchScrollAllowed = !1, i.minDistance = r.selectMinDistance || 0, i.autoScroller.isEnabled = r.dragScroll;
@@ -8892,7 +8892,7 @@ class Mi extends si {
8892
8892
  }, this.handleHitUpdate = (s, c) => {
8893
8893
  if (!this.isDragging)
8894
8894
  return;
8895
- let u = this.relevantEvents, h = this.hitDragging.initialHit, f = this.component.context, m = null, y = null, v = null, S = !1, D = {
8895
+ let u = this.relevantEvents, h = this.hitDragging.initialHit, f = this.component.context, m = null, y = null, v = null, E = !1, D = {
8896
8896
  affectedEvents: u,
8897
8897
  mutatedEvents: qt(),
8898
8898
  isEvent: !0
@@ -8900,15 +8900,15 @@ class Mi extends si {
8900
8900
  if (s) {
8901
8901
  m = s.context;
8902
8902
  let _ = m.options;
8903
- f === m || _.editable && _.droppable ? (y = Iw(h, s, this.eventRange.instance.range.start, m.getCurrentData().pluginHooks.eventDragMutationMassagers), y && (v = Ka(u, m.getCurrentData().eventUiBases, y, m), D.mutatedEvents = v, Ud(D, s.dateProfile, m) || (S = !0, y = null, v = null, D.mutatedEvents = qt()))) : m = null;
8903
+ f === m || _.editable && _.droppable ? (y = Iw(h, s, this.eventRange.instance.range.start, m.getCurrentData().pluginHooks.eventDragMutationMassagers), y && (v = Ka(u, m.getCurrentData().eventUiBases, y, m), D.mutatedEvents = v, Ud(D, s.dateProfile, m) || (E = !0, y = null, v = null, D.mutatedEvents = qt()))) : m = null;
8904
8904
  }
8905
- this.displayDrag(m, D), S ? Na() : Pa(), c || (f === m && // TODO: write test for this
8905
+ this.displayDrag(m, D), E ? Na() : Pa(), c || (f === m && // TODO: write test for this
8906
8906
  es(h, s) && (y = null), this.dragging.setMirrorNeedsRevert(!y), this.dragging.setMirrorIsVisible(!s || !this.subjectEl.getRootNode().querySelector(".fc-event-mirror")), this.receivingContext = m, this.validMutation = y, this.mutatedRelevantEvents = v);
8907
8907
  }, this.handlePointerUp = () => {
8908
8908
  this.isDragging || this.cleanup();
8909
8909
  }, this.handleDragEnd = (s) => {
8910
8910
  if (this.isDragging) {
8911
- let c = this.component.context, u = c.viewApi, { receivingContext: h, validMutation: f } = this, m = this.eventRange.def, y = this.eventRange.instance, v = new it(c, m, y), S = this.relevantEvents, D = this.mutatedRelevantEvents, { finalHit: _ } = this.hitDragging;
8911
+ let c = this.component.context, u = c.viewApi, { receivingContext: h, validMutation: f } = this, m = this.eventRange.def, y = this.eventRange.instance, v = new it(c, m, y), E = this.relevantEvents, D = this.mutatedRelevantEvents, { finalHit: _ } = this.hitDragging;
8912
8912
  if (this.clearDrag(), c.emitter.trigger("eventDragStop", {
8913
8913
  el: this.subjectEl,
8914
8914
  event: v,
@@ -8928,7 +8928,7 @@ class Mi extends si {
8928
8928
  revert() {
8929
8929
  c.dispatch({
8930
8930
  type: "MERGE_EVENTS",
8931
- eventStore: S
8931
+ eventStore: E
8932
8932
  // the pre-change data
8933
8933
  });
8934
8934
  }
@@ -8939,17 +8939,17 @@ class Mi extends si {
8939
8939
  } else if (h) {
8940
8940
  let R = {
8941
8941
  event: v,
8942
- relatedEvents: _r(S, c, y),
8942
+ relatedEvents: _r(E, c, y),
8943
8943
  revert() {
8944
8944
  c.dispatch({
8945
8945
  type: "MERGE_EVENTS",
8946
- eventStore: S
8946
+ eventStore: E
8947
8947
  });
8948
8948
  }
8949
8949
  };
8950
8950
  c.emitter.trigger("eventLeave", Object.assign(Object.assign({}, R), { draggedEl: s.subjectEl, view: u })), c.dispatch({
8951
8951
  type: "REMOVE_EVENTS",
8952
- eventStore: S
8952
+ eventStore: E
8953
8953
  }), c.emitter.trigger("eventRemove", R);
8954
8954
  let x = D.defs[m.defId], H = D.instances[y.instanceId], L = new it(h, x, H);
8955
8955
  h.dispatch({
@@ -9038,15 +9038,15 @@ class Ow extends si {
9038
9038
  view: s.viewApi
9039
9039
  });
9040
9040
  }, this.handleHitUpdate = (o, s, c) => {
9041
- let { context: u } = this.component, h = this.relevantEvents, f = this.hitDragging.initialHit, m = this.eventRange.instance, y = null, v = null, S = !1, D = {
9041
+ let { context: u } = this.component, h = this.relevantEvents, f = this.hitDragging.initialHit, m = this.eventRange.instance, y = null, v = null, E = !1, D = {
9042
9042
  affectedEvents: h,
9043
9043
  mutatedEvents: qt(),
9044
9044
  isEvent: !0
9045
9045
  };
9046
- o && (o.componentId === f.componentId && this.isHitComboAllowed && !this.isHitComboAllowed(f, o) || (y = Nw(f, o, c.subjectEl.classList.contains("fc-event-resizer-start"), m.range))), y && (v = Ka(h, u.getCurrentData().eventUiBases, y, u), D.mutatedEvents = v, Ud(D, o.dateProfile, u) || (S = !0, y = null, v = null, D.mutatedEvents = null)), v ? u.dispatch({
9046
+ o && (o.componentId === f.componentId && this.isHitComboAllowed && !this.isHitComboAllowed(f, o) || (y = Nw(f, o, c.subjectEl.classList.contains("fc-event-resizer-start"), m.range))), y && (v = Ka(h, u.getCurrentData().eventUiBases, y, u), D.mutatedEvents = v, Ud(D, o.dateProfile, u) || (E = !0, y = null, v = null, D.mutatedEvents = null)), v ? u.dispatch({
9047
9047
  type: "SET_EVENT_RESIZE",
9048
9048
  state: D
9049
- }) : u.dispatch({ type: "UNSET_EVENT_RESIZE" }), S ? Na() : Pa(), s || (y && es(f, o) && (y = null), this.validMutation = y, this.mutatedRelevantEvents = v);
9049
+ }) : u.dispatch({ type: "UNSET_EVENT_RESIZE" }), E ? Na() : Pa(), s || (y && es(f, o) && (y = null), this.validMutation = y, this.mutatedRelevantEvents = v);
9050
9050
  }, this.handleDragEnd = (o) => {
9051
9051
  let { context: s } = this.component, c = this.eventRange.def, u = this.eventRange.instance, h = new it(s, c, u), f = this.relevantEvents, m = this.mutatedRelevantEvents;
9052
9052
  if (s.emitter.trigger("eventResizeStop", {
@@ -9279,10 +9279,10 @@ class qw extends gn {
9279
9279
  for (let y = 0; y < u.length; y += 1) {
9280
9280
  let v = u[y];
9281
9281
  if (v) {
9282
- let S = Ti(n[y]), D = c + "-" + S;
9283
- m.push(C(Uw, { key: S, cellId: D, dayDate: n[y], todayRange: f })), v = Qa(v, i.eventOrder);
9282
+ let E = Ti(n[y]), D = c + "-" + E;
9283
+ m.push(C(Uw, { key: E, cellId: D, dayDate: n[y], todayRange: f })), v = Qa(v, i.eventOrder);
9284
9284
  for (let _ of v)
9285
- m.push(C(zw, Object.assign({ key: S + ":" + _.eventRange.instance.instanceId, seg: _, isDragging: !1, isResizing: !1, isDateSelecting: !1, isSelected: !1, timeHeaderId: o, eventHeaderId: s, dateHeaderId: D }, Vn(_, f, h))));
9285
+ m.push(C(zw, Object.assign({ key: E + ":" + _.eventRange.instance.instanceId, seg: _, isDragging: !1, isResizing: !1, isDateSelecting: !1, isSelected: !1, timeHeaderId: o, eventHeaderId: s, dateHeaderId: D }, Vn(_, f, h))));
9286
9286
  }
9287
9287
  }
9288
9288
  return C(
@@ -9405,7 +9405,7 @@ function Oi() {
9405
9405
  throw new Error("useFilter must be used within a FilterProvider");
9406
9406
  return t;
9407
9407
  }
9408
- function eE({
9408
+ function eS({
9409
9409
  filterCtx: t,
9410
9410
  setFilterCtx: e
9411
9411
  }) {
@@ -9427,11 +9427,11 @@ function eE({
9427
9427
  });
9428
9428
  }
9429
9429
  return /* @__PURE__ */ ee(rr, { value: n, onChange: (s, c) => o(c), children: [
9430
- /* @__PURE__ */ w(Ke, { title: "Adjournment Dates", arrow: !0, placement: "top", children: /* @__PURE__ */ w(_t, { value: "adjournment", children: /* @__PURE__ */ w(Eh, { fontSize: "small" }) }) }),
9430
+ /* @__PURE__ */ w(Ke, { title: "Adjournment Dates", arrow: !0, placement: "top", children: /* @__PURE__ */ w(_t, { value: "adjournment", children: /* @__PURE__ */ w(Sh, { fontSize: "small" }) }) }),
9431
9431
  /* @__PURE__ */ w(Ke, { title: "Upload Deadlines", arrow: !0, placement: "top", children: /* @__PURE__ */ w(_t, { value: "upload", children: /* @__PURE__ */ w(wh, { fontSize: "small" }) }) })
9432
9432
  ] });
9433
9433
  }
9434
- function tE() {
9434
+ function tS() {
9435
9435
  const { filterCtx: t, setFilterCtx: e } = Oi();
9436
9436
  return /* @__PURE__ */ ee(xn, { size: "small", sx: { minWidth: 160 }, children: [
9437
9437
  /* @__PURE__ */ w(Ra, { children: "Calendar Type" }),
@@ -9455,7 +9455,7 @@ function tE() {
9455
9455
  )
9456
9456
  ] });
9457
9457
  }
9458
- function nE({
9458
+ function nS({
9459
9459
  currentView: t,
9460
9460
  setCurrentView: e
9461
9461
  }) {
@@ -9468,7 +9468,7 @@ function nE({
9468
9468
  },
9469
9469
  exclusive: !0,
9470
9470
  children: [
9471
- /* @__PURE__ */ w(Ke, { title: "Month", arrow: !0, placement: "top", children: /* @__PURE__ */ w(_t, { value: "dayGridMonth", children: /* @__PURE__ */ w(Sh, { fontSize: "small" }) }) }),
9471
+ /* @__PURE__ */ w(Ke, { title: "Month", arrow: !0, placement: "top", children: /* @__PURE__ */ w(_t, { value: "dayGridMonth", children: /* @__PURE__ */ w(Eh, { fontSize: "small" }) }) }),
9472
9472
  /* @__PURE__ */ w(Ke, { title: "Week", arrow: !0, placement: "top", children: /* @__PURE__ */ w(_t, { value: "dayGridWeek", children: /* @__PURE__ */ w(Dh, { fontSize: "small" }) }) }),
9473
9473
  /* @__PURE__ */ w(Ke, { title: "Day", arrow: !0, placement: "top", children: /* @__PURE__ */ w(_t, { value: "listDay", children: /* @__PURE__ */ w(Ch, { fontSize: "small" }) }) }),
9474
9474
  /* @__PURE__ */ w(Ke, { title: "Table", arrow: !0, placement: "top", children: /* @__PURE__ */ w(_t, { value: "tableView", children: /* @__PURE__ */ w(Ah, { fontSize: "small" }) }) })
@@ -9476,7 +9476,7 @@ function nE({
9476
9476
  }
9477
9477
  );
9478
9478
  }
9479
- function rE({
9479
+ function rS({
9480
9480
  filterCtx: t,
9481
9481
  setFilterCtx: e
9482
9482
  }) {
@@ -9505,7 +9505,7 @@ function rE({
9505
9505
  ] });
9506
9506
  }
9507
9507
  var dl = /* @__PURE__ */ ((t) => (t.MANUAL = "manual", t.EMAIL = "email", t.ETRACK = "etrack", t))(dl || {}), It = /* @__PURE__ */ ((t) => (t.UNKNOWN = "Other", t.VIRTUAL = "Virtual", t.IN_PERSON = "InPerson", t))(It || {}), $t = /* @__PURE__ */ ((t) => (t.ASSIGNED = "Assigned", t.UPLOADED = "Uploaded", t.SCHEDULED = "Scheduled", t.ADJOURNED = "Adjourned", t))($t || {}), wt = /* @__PURE__ */ ((t) => (t.SCAR = "", t.NEGOTIATIONS = "Negotiations", t))(wt || {});
9508
- const Yt = "https://utils.aventine.ai", iE = "https://aventine-photos.s3.us-east-1.amazonaws.com", oE = "https://aventine-court-notices.s3.us-east-1.amazonaws.com", sE = "https://aventine-court-docs.s3.amazonaws.com", aE = ["s", "w", "d", "nm", "ah"], fl = ["Import", "Memos", "Table", "Note", "Robot", "Ingestion"], lE = "calendar-admin", cr = [1, 10, 22, 23, 24, 29], cE = 1e3 * 60 * 10, uE = 1e3 * 60 * 1, dE = 1e3 * 60 * 1, fE = {
9508
+ const Yt = "https://utils.aventine.ai", iS = "https://aventine-photos.s3.us-east-1.amazonaws.com", oS = "https://aventine-court-notices.s3.us-east-1.amazonaws.com", sS = "https://aventine-court-docs.s3.amazonaws.com", aS = ["s", "w", "d", "nm", "ah"], fl = ["Import", "Memos", "Table", "Note", "Robot", "Ingestion"], lS = "calendar-admin", cr = [1, 10, 22, 23, 24, 29], cS = 1e3 * 60 * 10, uS = 1e3 * 60 * 1, dS = 1e3 * 60 * 1, fS = {
9509
9509
  showInPerson: !0,
9510
9510
  showVirtual: !0,
9511
9511
  showUnknown: !0,
@@ -9519,7 +9519,7 @@ const Yt = "https://utils.aventine.ai", iE = "https://aventine-photos.s3.us-east
9519
9519
  showOnlyUnsettled: !0,
9520
9520
  showOnlyWithoutEvidence: !1,
9521
9521
  showOnlyUnreviewed: !1
9522
- }, hE = {
9522
+ }, hS = {
9523
9523
  ParcelID: "",
9524
9524
  Municipality: "",
9525
9525
  Negotiator: 0,
@@ -9557,7 +9557,7 @@ const Yt = "https://utils.aventine.ai", iE = "https://aventine-photos.s3.us-east
9557
9557
  MultipleDates: null,
9558
9558
  DateType: null
9559
9559
  };
9560
- async function pE(t) {
9560
+ async function pS(t) {
9561
9561
  if (!t) return {};
9562
9562
  const n = await (await fetch(`${Yt}/users/all`, {
9563
9563
  mode: "cors",
@@ -9571,7 +9571,7 @@ async function pE(t) {
9571
9571
  i.Active && (r[i.UserID] = i);
9572
9572
  return r;
9573
9573
  }
9574
- async function gE(t) {
9574
+ async function gS(t) {
9575
9575
  if (!t) return {};
9576
9576
  const n = await (await fetch(`${Yt}/users/hearing-officers`, {
9577
9577
  mode: "cors",
@@ -9585,7 +9585,7 @@ async function gE(t) {
9585
9585
  r[i.OfficerID] = i;
9586
9586
  return r;
9587
9587
  }
9588
- async function mE(t, e) {
9588
+ async function mS(t, e) {
9589
9589
  if (!e) return !1;
9590
9590
  const r = await (await fetch(`${Yt}/users/check-group`, {
9591
9591
  method: "POST",
@@ -9596,12 +9596,12 @@ async function mE(t, e) {
9596
9596
  },
9597
9597
  body: JSON.stringify({
9598
9598
  email: t.UserEmail,
9599
- group_name: lE
9599
+ group_name: lS
9600
9600
  })
9601
9601
  })).json();
9602
9602
  return console.log("Checked admin status:", r), r.is_member === !0;
9603
9603
  }
9604
- async function vE(t) {
9604
+ async function vS(t) {
9605
9605
  if (!t) return {};
9606
9606
  const n = await (await fetch(`${Yt}/utils/get-muni-names`, {
9607
9607
  mode: "cors",
@@ -9616,7 +9616,7 @@ async function vE(t) {
9616
9616
  return r;
9617
9617
  }
9618
9618
  const _f = Fo(null);
9619
- function yE({
9619
+ function yS({
9620
9620
  apiKey: t,
9621
9621
  activeUser: e,
9622
9622
  children: n
@@ -9624,7 +9624,7 @@ function yE({
9624
9624
  const [r, i] = me({}), [o, s] = me({}), [c, u] = me({}), [h, f] = me(!0), [m, y] = me(!1);
9625
9625
  be(() => {
9626
9626
  let _ = !1;
9627
- return f(!0), Promise.all([pE(t), gE(t), vE(t)]).then(
9627
+ return f(!0), Promise.all([pS(t), gS(t), vS(t)]).then(
9628
9628
  ([R, x, H]) => {
9629
9629
  _ || (i(R), s(x), u(H), f(!1));
9630
9630
  }
@@ -9635,7 +9635,7 @@ function yE({
9635
9635
  if (!r || Object.keys(r).length === 0 || !e || e < 0) return;
9636
9636
  const _ = r[e];
9637
9637
  async function R() {
9638
- const x = await mE(_, t);
9638
+ const x = await mS(_, t);
9639
9639
  y(x);
9640
9640
  }
9641
9641
  R();
@@ -9647,7 +9647,7 @@ function yE({
9647
9647
  return R ? _.slice(-2) !== "00" ? R.Village : R.Township : _;
9648
9648
  },
9649
9649
  [c]
9650
- ), S = Tn(
9650
+ ), E = Tn(
9651
9651
  (_) => {
9652
9652
  _.length < 5 && (_ = _ + "00");
9653
9653
  const R = c[_];
@@ -9660,13 +9660,13 @@ function yE({
9660
9660
  allHearingOfficers: o,
9661
9661
  allMuniNames: c,
9662
9662
  getTownshipName: v,
9663
- getCountyName: S,
9663
+ getCountyName: E,
9664
9664
  isLoading: h,
9665
9665
  isAdmin: m,
9666
9666
  apiKey: t,
9667
9667
  activeUser: e
9668
9668
  }),
9669
- [r, o, c, v, S, h, m, t, e]
9669
+ [r, o, c, v, E, h, m, t, e]
9670
9670
  );
9671
9671
  return /* @__PURE__ */ w(_f.Provider, { value: D, children: n });
9672
9672
  }
@@ -9676,7 +9676,7 @@ function Ot() {
9676
9676
  throw new Error("useReferenceData must be used within a ReferenceDataProvider");
9677
9677
  return t;
9678
9678
  }
9679
- function bE({
9679
+ function bS({
9680
9680
  filterCtx: t,
9681
9681
  setFilterCtx: e,
9682
9682
  activeUser: n
@@ -9688,11 +9688,12 @@ function bE({
9688
9688
  showOnlyAssignedToUser: Number(n)
9689
9689
  });
9690
9690
  }
9691
- const o = Object.values(r).filter(
9692
- (c) => c.UserLastName && !fl.includes(c.UserLastName)
9693
- ), s = [
9694
- ...o.filter((c) => cr.includes(c.UserID)),
9695
- ...o.filter((c) => !cr.includes(c.UserID))
9691
+ const o = { UserID: -1, UserFirstName: "Unassigned", UserLastName: "" }, s = Object.values(r).filter(
9692
+ (u) => u.UserLastName && !fl.includes(u.UserLastName)
9693
+ ), c = [
9694
+ o,
9695
+ ...s.filter((u) => cr.includes(u.UserID)),
9696
+ ...s.filter((u) => !cr.includes(u.UserID))
9696
9697
  ];
9697
9698
  return /* @__PURE__ */ ee($e, { direction: "row", spacing: 0, alignItems: "center", borderRadius: "4px", border: 1, children: [
9698
9699
  /* @__PURE__ */ w(Ke, { title: "Me", arrow: !0, placement: "top", children: /* @__PURE__ */ w(
@@ -9714,23 +9715,23 @@ function bE({
9714
9715
  Wo,
9715
9716
  {
9716
9717
  size: "small",
9717
- options: s,
9718
- groupBy: (c) => cr.includes(c.UserID) ? "Negotiators" : "Other",
9719
- getOptionLabel: (c) => `${c.UserFirstName} ${c.UserLastName}`,
9720
- value: s.find((c) => c.UserID === t.showOnlyAssignedToUser) || null,
9721
- onChange: (c, u) => e({
9718
+ options: c,
9719
+ groupBy: (u) => u.UserID === -1 ? "" : cr.includes(u.UserID) ? "Negotiators" : "Other",
9720
+ getOptionLabel: (u) => u.UserID === -1 ? "Unassigned" : `${u.UserFirstName} ${u.UserLastName}`,
9721
+ value: c.find((u) => u.UserID === t.showOnlyAssignedToUser) || null,
9722
+ onChange: (u, h) => e({
9722
9723
  ...t,
9723
- showOnlyAssignedToUser: u ? u.UserID : null
9724
+ showOnlyAssignedToUser: h ? h.UserID : null
9724
9725
  }),
9725
- renderInput: (c) => /* @__PURE__ */ w(
9726
+ renderInput: (u) => /* @__PURE__ */ w(
9726
9727
  Gn,
9727
9728
  {
9728
- ...c,
9729
+ ...u,
9729
9730
  label: "Assigned to",
9730
9731
  fullWidth: !0,
9731
9732
  slotProps: {
9732
9733
  input: {
9733
- ...c.InputProps,
9734
+ ...u.InputProps,
9734
9735
  sx: {
9735
9736
  "& .MuiOutlinedInput-notchedOutline": {
9736
9737
  border: "none"
@@ -9826,7 +9827,7 @@ function xf({
9826
9827
  "aria-label": "Clear search",
9827
9828
  sx: { marginRight: -0.75, paddingY: "2px" },
9828
9829
  onClick: () => i(""),
9829
- children: /* @__PURE__ */ w(Eo, { fontSize: "small" })
9830
+ children: /* @__PURE__ */ w(So, { fontSize: "small" })
9830
9831
  }
9831
9832
  ) }) : null
9832
9833
  }
@@ -9834,7 +9835,7 @@ function xf({
9834
9835
  }
9835
9836
  );
9836
9837
  }
9837
- function wE({
9838
+ function wS({
9838
9839
  filterCtx: t,
9839
9840
  setFilterCtx: e,
9840
9841
  isFetchingCases: n
@@ -9891,8 +9892,8 @@ function Rf({
9891
9892
  be(() => {
9892
9893
  const f = [];
9893
9894
  Object.keys(i).forEach((m) => {
9894
- const y = m.endsWith("00") ? m.slice(0, -2) : m, S = ur(m) ? (i[m].Village || "").replace(/\s+$/, "") : (i[m].Township || "").replace(/\s+$/, "");
9895
- f.push(`(${y}) ${S}, ${i[m].County}`);
9895
+ const y = m.endsWith("00") ? m.slice(0, -2) : m, E = ur(m) ? (i[m].Village || "").replace(/\s+$/, "") : (i[m].Township || "").replace(/\s+$/, "");
9896
+ f.push(`(${y}) ${E}, ${i[m].County}`);
9896
9897
  }), s(f), u(t && f.find((m) => m.includes(`(${t})`)) || null);
9897
9898
  }, [i]), be(() => {
9898
9899
  u(
@@ -9944,7 +9945,7 @@ function Rf({
9944
9945
  }
9945
9946
  );
9946
9947
  }
9947
- function EE({
9948
+ function SS({
9948
9949
  calendarApi: t,
9949
9950
  handleCreateClick: e,
9950
9951
  onPrint: n,
@@ -9973,7 +9974,7 @@ function EE({
9973
9974
  }
9974
9975
  t && v(t.getCurrentData().viewTitle);
9975
9976
  }, [t, r, o]);
9976
- function S() {
9977
+ function E() {
9977
9978
  s(/* @__PURE__ */ new Date()), r !== "tableView" && t && (t.today(), v(t.getCurrentData().viewTitle));
9978
9979
  }
9979
9980
  function D() {
@@ -10005,11 +10006,11 @@ function EE({
10005
10006
  flexWrap: "wrap",
10006
10007
  children: [
10007
10008
  /* @__PURE__ */ ee(Le, { display: "flex", alignItems: "center", gap: 2, children: [
10008
- /* @__PURE__ */ w(xn, { size: "small", children: /* @__PURE__ */ w(nE, { currentView: r, setCurrentView: i }) }),
10009
- /* @__PURE__ */ w(xn, { size: "small", children: /* @__PURE__ */ w(rE, { filterCtx: f, setFilterCtx: m }) }),
10010
- /* @__PURE__ */ w(tE, {}),
10011
- /* @__PURE__ */ w(xn, { size: "small", children: /* @__PURE__ */ w(eE, { filterCtx: f, setFilterCtx: m }) }),
10012
- /* @__PURE__ */ w(xn, { size: "small", children: /* @__PURE__ */ w(wE, { filterCtx: f, setFilterCtx: m, isFetchingCases: u }) })
10009
+ /* @__PURE__ */ w(xn, { size: "small", children: /* @__PURE__ */ w(nS, { currentView: r, setCurrentView: i }) }),
10010
+ /* @__PURE__ */ w(xn, { size: "small", children: /* @__PURE__ */ w(rS, { filterCtx: f, setFilterCtx: m }) }),
10011
+ /* @__PURE__ */ w(tS, {}),
10012
+ /* @__PURE__ */ w(xn, { size: "small", children: /* @__PURE__ */ w(eS, { filterCtx: f, setFilterCtx: m }) }),
10013
+ /* @__PURE__ */ w(xn, { size: "small", children: /* @__PURE__ */ w(wS, { filterCtx: f, setFilterCtx: m, isFetchingCases: u }) })
10013
10014
  ] }),
10014
10015
  /* @__PURE__ */ ee(Le, { display: "flex", alignItems: "center", gap: 2, children: [
10015
10016
  /* @__PURE__ */ w(xn, { size: "small", children: /* @__PURE__ */ w(
@@ -10020,7 +10021,7 @@ function EE({
10020
10021
  width: 200
10021
10022
  }
10022
10023
  ) }),
10023
- /* @__PURE__ */ w(xn, { size: "small", children: /* @__PURE__ */ w(bE, { filterCtx: f, setFilterCtx: m, activeUser: c }) }),
10024
+ /* @__PURE__ */ w(xn, { size: "small", children: /* @__PURE__ */ w(bS, { filterCtx: f, setFilterCtx: m, activeUser: c }) }),
10024
10025
  /* @__PURE__ */ w(xn, { size: "small", sx: { minWidth: 250, minHeight: 45 }, children: /* @__PURE__ */ w(
10025
10026
  Rf,
10026
10027
  {
@@ -10042,7 +10043,7 @@ function EE({
10042
10043
  }
10043
10044
  ),
10044
10045
  /* @__PURE__ */ w(In, { size: "medium", onClick: e, disabled: !h, children: /* @__PURE__ */ w(Au, { fontSize: "medium" }) }),
10045
- /* @__PURE__ */ w(In, { variant: "outlined", size: "medium", onClick: S, children: "Today" }),
10046
+ /* @__PURE__ */ w(In, { variant: "outlined", size: "medium", onClick: E, children: "Today" }),
10046
10047
  /* @__PURE__ */ w(In, { size: "medium", onClick: n, children: /* @__PURE__ */ w(bh, { fontSize: "medium" }) }),
10047
10048
  /* @__PURE__ */ w(In, { size: "medium", onClick: _, children: /* @__PURE__ */ w(yh, { fontSize: "medium" }) }),
10048
10049
  /* @__PURE__ */ w(In, { size: "medium", onClick: D, children: /* @__PURE__ */ w(vh, { fontSize: "medium" }) })
@@ -10054,12 +10055,12 @@ function EE({
10054
10055
  const ii = Math.min, Rr = Math.max, jo = Math.round, co = Math.floor, Nn = (t) => ({
10055
10056
  x: t,
10056
10057
  y: t
10057
- }), SE = {
10058
+ }), ES = {
10058
10059
  left: "right",
10059
10060
  right: "left",
10060
10061
  bottom: "top",
10061
10062
  top: "bottom"
10062
- }, DE = {
10063
+ }, DS = {
10063
10064
  start: "end",
10064
10065
  end: "start"
10065
10066
  };
@@ -10081,48 +10082,48 @@ function Tf(t) {
10081
10082
  function hl(t) {
10082
10083
  return t === "y" ? "height" : "width";
10083
10084
  }
10084
- const CE = /* @__PURE__ */ new Set(["top", "bottom"]);
10085
+ const CS = /* @__PURE__ */ new Set(["top", "bottom"]);
10085
10086
  function ar(t) {
10086
- return CE.has(Ir(t)) ? "y" : "x";
10087
+ return CS.has(Ir(t)) ? "y" : "x";
10087
10088
  }
10088
10089
  function pl(t) {
10089
10090
  return Tf(ar(t));
10090
10091
  }
10091
- function AE(t, e, n) {
10092
+ function AS(t, e, n) {
10092
10093
  n === void 0 && (n = !1);
10093
10094
  const r = Pi(t), i = pl(t), o = hl(i);
10094
10095
  let s = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
10095
10096
  return e.reference[o] > e.floating[o] && (s = Ho(s)), [s, Ho(s)];
10096
10097
  }
10097
- function _E(t) {
10098
+ function _S(t) {
10098
10099
  const e = Ho(t);
10099
10100
  return [wa(t), e, wa(e)];
10100
10101
  }
10101
10102
  function wa(t) {
10102
- return t.replace(/start|end/g, (e) => DE[e]);
10103
+ return t.replace(/start|end/g, (e) => DS[e]);
10103
10104
  }
10104
- const Jc = ["left", "right"], eu = ["right", "left"], xE = ["top", "bottom"], RE = ["bottom", "top"];
10105
- function TE(t, e, n) {
10105
+ const Jc = ["left", "right"], eu = ["right", "left"], xS = ["top", "bottom"], RS = ["bottom", "top"];
10106
+ function TS(t, e, n) {
10106
10107
  switch (t) {
10107
10108
  case "top":
10108
10109
  case "bottom":
10109
10110
  return n ? e ? eu : Jc : e ? Jc : eu;
10110
10111
  case "left":
10111
10112
  case "right":
10112
- return e ? xE : RE;
10113
+ return e ? xS : RS;
10113
10114
  default:
10114
10115
  return [];
10115
10116
  }
10116
10117
  }
10117
- function kE(t, e, n, r) {
10118
+ function kS(t, e, n, r) {
10118
10119
  const i = Pi(t);
10119
- let o = TE(Ir(t), n === "start", r);
10120
+ let o = TS(Ir(t), n === "start", r);
10120
10121
  return i && (o = o.map((s) => s + "-" + i), e && (o = o.concat(o.map(wa)))), o;
10121
10122
  }
10122
10123
  function Ho(t) {
10123
- return t.replace(/left|right|bottom|top/g, (e) => SE[e]);
10124
+ return t.replace(/left|right|bottom|top/g, (e) => ES[e]);
10124
10125
  }
10125
- function IE(t) {
10126
+ function IS(t) {
10126
10127
  return {
10127
10128
  top: 0,
10128
10129
  right: 0,
@@ -10132,7 +10133,7 @@ function IE(t) {
10132
10133
  };
10133
10134
  }
10134
10135
  function kf(t) {
10135
- return typeof t != "number" ? IE(t) : {
10136
+ return typeof t != "number" ? IS(t) : {
10136
10137
  top: t,
10137
10138
  right: t,
10138
10139
  bottom: t,
@@ -10205,7 +10206,7 @@ function tu(t, e, n) {
10205
10206
  }
10206
10207
  return v;
10207
10208
  }
10208
- const ME = async (t, e, n) => {
10209
+ const MS = async (t, e, n) => {
10209
10210
  const {
10210
10211
  placement: r = "bottom",
10211
10212
  strategy: i = "absolute",
@@ -10219,7 +10220,7 @@ const ME = async (t, e, n) => {
10219
10220
  }), {
10220
10221
  x: f,
10221
10222
  y: m
10222
- } = tu(h, r, u), y = r, v = {}, S = 0;
10223
+ } = tu(h, r, u), y = r, v = {}, E = 0;
10223
10224
  for (let D = 0; D < c.length; D++) {
10224
10225
  const {
10225
10226
  name: _,
@@ -10249,7 +10250,7 @@ const ME = async (t, e, n) => {
10249
10250
  ...v[_],
10250
10251
  ...L
10251
10252
  }
10252
- }, I && S <= 50 && (S++, typeof I == "object" && (I.placement && (y = I.placement), I.rects && (h = I.rects === !0 ? await s.getElementRects({
10253
+ }, I && E <= 50 && (E++, typeof I == "object" && (I.placement && (y = I.placement), I.rects && (h = I.rects === !0 ? await s.getElementRects({
10253
10254
  reference: t,
10254
10255
  floating: e,
10255
10256
  strategy: i
@@ -10282,7 +10283,7 @@ async function If(t, e) {
10282
10283
  elementContext: m = "floating",
10283
10284
  altBoundary: y = !1,
10284
10285
  padding: v = 0
10285
- } = Ni(e, t), S = kf(v), _ = c[y ? m === "floating" ? "reference" : "floating" : m], R = Uo(await o.getClippingRect({
10286
+ } = Ni(e, t), E = kf(v), _ = c[y ? m === "floating" ? "reference" : "floating" : m], R = Uo(await o.getClippingRect({
10286
10287
  element: (n = await (o.isElement == null ? void 0 : o.isElement(_))) == null || n ? _ : _.contextElement || await (o.getDocumentElement == null ? void 0 : o.getDocumentElement(c.floating)),
10287
10288
  boundary: h,
10288
10289
  rootBoundary: f,
@@ -10305,13 +10306,13 @@ async function If(t, e) {
10305
10306
  strategy: u
10306
10307
  }) : x);
10307
10308
  return {
10308
- top: (R.top - I.top + S.top) / L.y,
10309
- bottom: (I.bottom - R.bottom + S.bottom) / L.y,
10310
- left: (R.left - I.left + S.left) / L.x,
10311
- right: (I.right - R.right + S.right) / L.x
10309
+ top: (R.top - I.top + E.top) / L.y,
10310
+ bottom: (I.bottom - R.bottom + E.bottom) / L.y,
10311
+ left: (R.left - I.left + E.left) / L.x,
10312
+ right: (I.right - R.right + E.right) / L.x
10312
10313
  };
10313
10314
  }
10314
- const OE = (t) => ({
10315
+ const OS = (t) => ({
10315
10316
  name: "arrow",
10316
10317
  options: t,
10317
10318
  async fn(e) {
@@ -10332,10 +10333,10 @@ const OE = (t) => ({
10332
10333
  const m = kf(f), y = {
10333
10334
  x: n,
10334
10335
  y: r
10335
- }, v = pl(i), S = hl(v), D = await s.getDimensions(h), _ = v === "y", R = _ ? "top" : "left", x = _ ? "bottom" : "right", H = _ ? "clientHeight" : "clientWidth", L = o.reference[S] + o.reference[v] - y[v] - o.floating[S], I = y[v] - o.reference[v], z = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(h));
10336
+ }, v = pl(i), E = hl(v), D = await s.getDimensions(h), _ = v === "y", R = _ ? "top" : "left", x = _ ? "bottom" : "right", H = _ ? "clientHeight" : "clientWidth", L = o.reference[E] + o.reference[v] - y[v] - o.floating[E], I = y[v] - o.reference[v], z = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(h));
10336
10337
  let Q = z ? z[H] : 0;
10337
- (!Q || !await (s.isElement == null ? void 0 : s.isElement(z))) && (Q = c.floating[H] || o.floating[S]);
10338
- const $ = L / 2 - I / 2, G = Q / 2 - D[S] / 2 - 1, K = ii(m[R], G), ae = ii(m[x], G), _e = K, je = Q - D[S] - ae, ie = Q / 2 - D[S] / 2 + $, ne = ba(_e, ie, je), X = !u.arrow && Pi(i) != null && ie !== ne && o.reference[S] / 2 - (ie < _e ? K : ae) - D[S] / 2 < 0, oe = X ? ie < _e ? ie - _e : ie - je : 0;
10338
+ (!Q || !await (s.isElement == null ? void 0 : s.isElement(z))) && (Q = c.floating[H] || o.floating[E]);
10339
+ const $ = L / 2 - I / 2, G = Q / 2 - D[E] / 2 - 1, K = ii(m[R], G), ae = ii(m[x], G), _e = K, je = Q - D[E] - ae, ie = Q / 2 - D[E] / 2 + $, ne = ba(_e, ie, je), X = !u.arrow && Pi(i) != null && ie !== ne && o.reference[E] / 2 - (ie < _e ? K : ae) - D[E] / 2 < 0, oe = X ? ie < _e ? ie - _e : ie - je : 0;
10339
10340
  return {
10340
10341
  [v]: y[v] + oe,
10341
10342
  data: {
@@ -10348,7 +10349,7 @@ const OE = (t) => ({
10348
10349
  reset: X
10349
10350
  };
10350
10351
  }
10351
- }), NE = function(t) {
10352
+ }), NS = function(t) {
10352
10353
  return t === void 0 && (t = {}), {
10353
10354
  name: "flip",
10354
10355
  options: t,
@@ -10366,18 +10367,18 @@ const OE = (t) => ({
10366
10367
  crossAxis: m = !0,
10367
10368
  fallbackPlacements: y,
10368
10369
  fallbackStrategy: v = "bestFit",
10369
- fallbackAxisSideDirection: S = "none",
10370
+ fallbackAxisSideDirection: E = "none",
10370
10371
  flipAlignment: D = !0,
10371
10372
  ..._
10372
10373
  } = Ni(t, e);
10373
10374
  if ((n = o.arrow) != null && n.alignmentOffset)
10374
10375
  return {};
10375
- const R = Ir(i), x = ar(c), H = Ir(c) === c, L = await (u.isRTL == null ? void 0 : u.isRTL(h.floating)), I = y || (H || !D ? [Ho(c)] : _E(c)), z = S !== "none";
10376
- !y && z && I.push(...kE(c, D, S, L));
10376
+ const R = Ir(i), x = ar(c), H = Ir(c) === c, L = await (u.isRTL == null ? void 0 : u.isRTL(h.floating)), I = y || (H || !D ? [Ho(c)] : _S(c)), z = E !== "none";
10377
+ !y && z && I.push(...kS(c, D, E, L));
10377
10378
  const Q = [c, ...I], $ = await If(e, _), G = [];
10378
10379
  let K = ((r = o.flip) == null ? void 0 : r.overflows) || [];
10379
10380
  if (f && G.push($[R]), m) {
10380
- const ie = AE(i, s, L);
10381
+ const ie = AS(i, s, L);
10381
10382
  G.push($[ie[0]], $[ie[1]]);
10382
10383
  }
10383
10384
  if (K = [...K, {
@@ -10429,17 +10430,17 @@ const OE = (t) => ({
10429
10430
  return {};
10430
10431
  }
10431
10432
  };
10432
- }, PE = /* @__PURE__ */ new Set(["left", "top"]);
10433
- async function LE(t, e) {
10433
+ }, PS = /* @__PURE__ */ new Set(["left", "top"]);
10434
+ async function LS(t, e) {
10434
10435
  const {
10435
10436
  placement: n,
10436
10437
  platform: r,
10437
10438
  elements: i
10438
- } = t, o = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), s = Ir(n), c = Pi(n), u = ar(n) === "y", h = PE.has(s) ? -1 : 1, f = o && u ? -1 : 1, m = Ni(e, t);
10439
+ } = t, o = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), s = Ir(n), c = Pi(n), u = ar(n) === "y", h = PS.has(s) ? -1 : 1, f = o && u ? -1 : 1, m = Ni(e, t);
10439
10440
  let {
10440
10441
  mainAxis: y,
10441
10442
  crossAxis: v,
10442
- alignmentAxis: S
10443
+ alignmentAxis: E
10443
10444
  } = typeof m == "number" ? {
10444
10445
  mainAxis: m,
10445
10446
  crossAxis: 0,
@@ -10449,7 +10450,7 @@ async function LE(t, e) {
10449
10450
  crossAxis: m.crossAxis || 0,
10450
10451
  alignmentAxis: m.alignmentAxis
10451
10452
  };
10452
- return c && typeof S == "number" && (v = c === "end" ? S * -1 : S), u ? {
10453
+ return c && typeof E == "number" && (v = c === "end" ? E * -1 : E), u ? {
10453
10454
  x: v * f,
10454
10455
  y: y * h
10455
10456
  } : {
@@ -10457,7 +10458,7 @@ async function LE(t, e) {
10457
10458
  y: v * f
10458
10459
  };
10459
10460
  }
10460
- const jE = function(t) {
10461
+ const jS = function(t) {
10461
10462
  return t === void 0 && (t = 0), {
10462
10463
  name: "offset",
10463
10464
  options: t,
@@ -10468,7 +10469,7 @@ const jE = function(t) {
10468
10469
  y: o,
10469
10470
  placement: s,
10470
10471
  middlewareData: c
10471
- } = e, u = await LE(e, t);
10472
+ } = e, u = await LS(e, t);
10472
10473
  return s === ((n = c.offset) == null ? void 0 : n.placement) && (r = c.arrow) != null && r.alignmentOffset ? {} : {
10473
10474
  x: i + u.x,
10474
10475
  y: o + u.y,
@@ -10479,7 +10480,7 @@ const jE = function(t) {
10479
10480
  };
10480
10481
  }
10481
10482
  };
10482
- }, HE = function(t) {
10483
+ }, HS = function(t) {
10483
10484
  return t === void 0 && (t = {}), {
10484
10485
  name: "shift",
10485
10486
  options: t,
@@ -10508,19 +10509,19 @@ const jE = function(t) {
10508
10509
  x: n,
10509
10510
  y: r
10510
10511
  }, f = await If(e, u), m = ar(Ir(i)), y = Tf(m);
10511
- let v = h[y], S = h[m];
10512
+ let v = h[y], E = h[m];
10512
10513
  if (o) {
10513
10514
  const _ = y === "y" ? "top" : "left", R = y === "y" ? "bottom" : "right", x = v + f[_], H = v - f[R];
10514
10515
  v = ba(x, v, H);
10515
10516
  }
10516
10517
  if (s) {
10517
- const _ = m === "y" ? "top" : "left", R = m === "y" ? "bottom" : "right", x = S + f[_], H = S - f[R];
10518
- S = ba(x, S, H);
10518
+ const _ = m === "y" ? "top" : "left", R = m === "y" ? "bottom" : "right", x = E + f[_], H = E - f[R];
10519
+ E = ba(x, E, H);
10519
10520
  }
10520
10521
  const D = c.fn({
10521
10522
  ...e,
10522
10523
  [y]: v,
10523
- [m]: S
10524
+ [m]: E
10524
10525
  });
10525
10526
  return {
10526
10527
  ...D,
@@ -10562,7 +10563,7 @@ function Ln(t) {
10562
10563
  function nu(t) {
10563
10564
  return !ts() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof Gt(t).ShadowRoot;
10564
10565
  }
10565
- const UE = /* @__PURE__ */ new Set(["inline", "contents"]);
10566
+ const US = /* @__PURE__ */ new Set(["inline", "contents"]);
10566
10567
  function Li(t) {
10567
10568
  const {
10568
10569
  overflow: e,
@@ -10570,15 +10571,15 @@ function Li(t) {
10570
10571
  overflowY: r,
10571
10572
  display: i
10572
10573
  } = pn(t);
10573
- return /auto|scroll|overlay|hidden|clip/.test(e + r + n) && !UE.has(i);
10574
+ return /auto|scroll|overlay|hidden|clip/.test(e + r + n) && !US.has(i);
10574
10575
  }
10575
- const BE = /* @__PURE__ */ new Set(["table", "td", "th"]);
10576
- function FE(t) {
10577
- return BE.has(ai(t));
10576
+ const BS = /* @__PURE__ */ new Set(["table", "td", "th"]);
10577
+ function FS(t) {
10578
+ return BS.has(ai(t));
10578
10579
  }
10579
- const zE = [":popover-open", ":modal"];
10580
+ const zS = [":popover-open", ":modal"];
10580
10581
  function ns(t) {
10581
- return zE.some((e) => {
10582
+ return zS.some((e) => {
10582
10583
  try {
10583
10584
  return t.matches(e);
10584
10585
  } catch {
@@ -10586,12 +10587,12 @@ function ns(t) {
10586
10587
  }
10587
10588
  });
10588
10589
  }
10589
- const $E = ["transform", "translate", "scale", "rotate", "perspective"], WE = ["transform", "translate", "scale", "rotate", "perspective", "filter"], VE = ["paint", "layout", "strict", "content"];
10590
+ const $S = ["transform", "translate", "scale", "rotate", "perspective"], WS = ["transform", "translate", "scale", "rotate", "perspective", "filter"], VS = ["paint", "layout", "strict", "content"];
10590
10591
  function gl(t) {
10591
10592
  const e = ml(), n = hn(t) ? pn(t) : t;
10592
- return $E.some((r) => n[r] ? n[r] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !e && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !e && (n.filter ? n.filter !== "none" : !1) || WE.some((r) => (n.willChange || "").includes(r)) || VE.some((r) => (n.contain || "").includes(r));
10593
+ return $S.some((r) => n[r] ? n[r] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !e && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !e && (n.filter ? n.filter !== "none" : !1) || WS.some((r) => (n.willChange || "").includes(r)) || VS.some((r) => (n.contain || "").includes(r));
10593
10594
  }
10594
- function qE(t) {
10595
+ function qS(t) {
10595
10596
  let e = pr(t);
10596
10597
  for (; Ln(e) && !oi(e); ) {
10597
10598
  if (gl(e))
@@ -10605,9 +10606,9 @@ function qE(t) {
10605
10606
  function ml() {
10606
10607
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
10607
10608
  }
10608
- const GE = /* @__PURE__ */ new Set(["html", "body", "#document"]);
10609
+ const GS = /* @__PURE__ */ new Set(["html", "body", "#document"]);
10609
10610
  function oi(t) {
10610
- return GE.has(ai(t));
10611
+ return GS.has(ai(t));
10611
10612
  }
10612
10613
  function pn(t) {
10613
10614
  return Gt(t).getComputedStyle(t);
@@ -10642,12 +10643,12 @@ function Ri(t, e, n) {
10642
10643
  e === void 0 && (e = []), n === void 0 && (n = !0);
10643
10644
  const i = Of(t), o = i === ((r = t.ownerDocument) == null ? void 0 : r.body), s = Gt(i);
10644
10645
  if (o) {
10645
- const c = Ea(s);
10646
+ const c = Sa(s);
10646
10647
  return e.concat(s, s.visualViewport || [], Li(i) ? i : [], c && n ? Ri(c) : []);
10647
10648
  }
10648
10649
  return e.concat(i, Ri(i, [], n));
10649
10650
  }
10650
- function Ea(t) {
10651
+ function Sa(t) {
10651
10652
  return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
10652
10653
  }
10653
10654
  function Nf(t) {
@@ -10678,15 +10679,15 @@ function Jr(t) {
10678
10679
  y: c
10679
10680
  };
10680
10681
  }
10681
- const YE = /* @__PURE__ */ Nn(0);
10682
+ const YS = /* @__PURE__ */ Nn(0);
10682
10683
  function Pf(t) {
10683
10684
  const e = Gt(t);
10684
- return !ml() || !e.visualViewport ? YE : {
10685
+ return !ml() || !e.visualViewport ? YS : {
10685
10686
  x: e.visualViewport.offsetLeft,
10686
10687
  y: e.visualViewport.offsetTop
10687
10688
  };
10688
10689
  }
10689
- function KE(t, e, n) {
10690
+ function KS(t, e, n) {
10690
10691
  return e === void 0 && (e = !1), !n || e && n !== Gt(t) ? !1 : e;
10691
10692
  }
10692
10693
  function Mr(t, e, n, r) {
@@ -10694,14 +10695,14 @@ function Mr(t, e, n, r) {
10694
10695
  const i = t.getBoundingClientRect(), o = vl(t);
10695
10696
  let s = Nn(1);
10696
10697
  e && (r ? hn(r) && (s = Jr(r)) : s = Jr(t));
10697
- const c = KE(o, n, r) ? Pf(o) : Nn(0);
10698
+ const c = KS(o, n, r) ? Pf(o) : Nn(0);
10698
10699
  let u = (i.left + c.x) / s.x, h = (i.top + c.y) / s.y, f = i.width / s.x, m = i.height / s.y;
10699
10700
  if (o) {
10700
10701
  const y = Gt(o), v = r && hn(r) ? Gt(r) : r;
10701
- let S = y, D = Ea(S);
10702
- for (; D && r && v !== S; ) {
10702
+ let E = y, D = Sa(E);
10703
+ for (; D && r && v !== E; ) {
10703
10704
  const _ = Jr(D), R = D.getBoundingClientRect(), x = pn(D), H = R.left + (D.clientLeft + parseFloat(x.paddingLeft)) * _.x, L = R.top + (D.clientTop + parseFloat(x.paddingTop)) * _.y;
10704
- u *= _.x, h *= _.y, f *= _.x, m *= _.y, u += H, h += L, S = Gt(D), D = Ea(S);
10705
+ u *= _.x, h *= _.y, f *= _.x, m *= _.y, u += H, h += L, E = Gt(D), D = Sa(E);
10705
10706
  }
10706
10707
  }
10707
10708
  return Uo({
@@ -10722,7 +10723,7 @@ function Lf(t, e) {
10722
10723
  y: i
10723
10724
  };
10724
10725
  }
10725
- function QE(t) {
10726
+ function QS(t) {
10726
10727
  let {
10727
10728
  elements: e,
10728
10729
  rect: n,
@@ -10749,10 +10750,10 @@ function QE(t) {
10749
10750
  y: n.y * h.y - u.scrollTop * h.y + f.y + y.y
10750
10751
  };
10751
10752
  }
10752
- function ZE(t) {
10753
+ function ZS(t) {
10753
10754
  return Array.from(t.getClientRects());
10754
10755
  }
10755
- function XE(t) {
10756
+ function XS(t) {
10756
10757
  const e = Hn(t), n = rs(t), r = t.ownerDocument.body, i = Rr(e.scrollWidth, e.clientWidth, r.scrollWidth, r.clientWidth), o = Rr(e.scrollHeight, e.clientHeight, r.scrollHeight, r.clientHeight);
10757
10758
  let s = -n.scrollLeft + is(t);
10758
10759
  const c = -n.scrollTop;
@@ -10764,7 +10765,7 @@ function XE(t) {
10764
10765
  };
10765
10766
  }
10766
10767
  const ru = 25;
10767
- function JE(t, e) {
10768
+ function JS(t, e) {
10768
10769
  const n = Gt(t), r = Hn(t), i = n.visualViewport;
10769
10770
  let o = r.clientWidth, s = r.clientHeight, c = 0, u = 0;
10770
10771
  if (i) {
@@ -10774,8 +10775,8 @@ function JE(t, e) {
10774
10775
  }
10775
10776
  const h = is(r);
10776
10777
  if (h <= 0) {
10777
- const f = r.ownerDocument, m = f.body, y = getComputedStyle(m), v = f.compatMode === "CSS1Compat" && parseFloat(y.marginLeft) + parseFloat(y.marginRight) || 0, S = Math.abs(r.clientWidth - m.clientWidth - v);
10778
- S <= ru && (o -= S);
10778
+ const f = r.ownerDocument, m = f.body, y = getComputedStyle(m), v = f.compatMode === "CSS1Compat" && parseFloat(y.marginLeft) + parseFloat(y.marginRight) || 0, E = Math.abs(r.clientWidth - m.clientWidth - v);
10779
+ E <= ru && (o -= E);
10779
10780
  } else h <= ru && (o += h);
10780
10781
  return {
10781
10782
  width: o,
@@ -10784,8 +10785,8 @@ function JE(t, e) {
10784
10785
  y: u
10785
10786
  };
10786
10787
  }
10787
- const eS = /* @__PURE__ */ new Set(["absolute", "fixed"]);
10788
- function tS(t, e) {
10788
+ const eE = /* @__PURE__ */ new Set(["absolute", "fixed"]);
10789
+ function tE(t, e) {
10789
10790
  const n = Mr(t, !0, e === "fixed"), r = n.top + t.clientTop, i = n.left + t.clientLeft, o = Ln(t) ? Jr(t) : Nn(1), s = t.clientWidth * o.x, c = t.clientHeight * o.y, u = i * o.x, h = r * o.y;
10790
10791
  return {
10791
10792
  width: s,
@@ -10797,11 +10798,11 @@ function tS(t, e) {
10797
10798
  function iu(t, e, n) {
10798
10799
  let r;
10799
10800
  if (e === "viewport")
10800
- r = JE(t, n);
10801
+ r = JS(t, n);
10801
10802
  else if (e === "document")
10802
- r = XE(Hn(t));
10803
+ r = XS(Hn(t));
10803
10804
  else if (hn(e))
10804
- r = tS(e, n);
10805
+ r = tE(e, n);
10805
10806
  else {
10806
10807
  const i = Pf(t);
10807
10808
  r = {
@@ -10817,7 +10818,7 @@ function jf(t, e) {
10817
10818
  const n = pr(t);
10818
10819
  return n === e || !hn(n) || oi(n) ? !1 : pn(n).position === "fixed" || jf(n, e);
10819
10820
  }
10820
- function nS(t, e) {
10821
+ function nE(t, e) {
10821
10822
  const n = e.get(t);
10822
10823
  if (n)
10823
10824
  return n;
@@ -10826,18 +10827,18 @@ function nS(t, e) {
10826
10827
  let s = o ? pr(t) : t;
10827
10828
  for (; hn(s) && !oi(s); ) {
10828
10829
  const c = pn(s), u = gl(s);
10829
- !u && c.position === "fixed" && (i = null), (o ? !u && !i : !u && c.position === "static" && !!i && eS.has(i.position) || Li(s) && !u && jf(t, s)) ? r = r.filter((f) => f !== s) : i = c, s = pr(s);
10830
+ !u && c.position === "fixed" && (i = null), (o ? !u && !i : !u && c.position === "static" && !!i && eE.has(i.position) || Li(s) && !u && jf(t, s)) ? r = r.filter((f) => f !== s) : i = c, s = pr(s);
10830
10831
  }
10831
10832
  return e.set(t, r), r;
10832
10833
  }
10833
- function rS(t) {
10834
+ function rE(t) {
10834
10835
  let {
10835
10836
  element: e,
10836
10837
  boundary: n,
10837
10838
  rootBoundary: r,
10838
10839
  strategy: i
10839
10840
  } = t;
10840
- const s = [...n === "clippingAncestors" ? ns(e) ? [] : nS(e, this._c) : [].concat(n), r], c = s[0], u = s.reduce((h, f) => {
10841
+ const s = [...n === "clippingAncestors" ? ns(e) ? [] : nE(e, this._c) : [].concat(n), r], c = s[0], u = s.reduce((h, f) => {
10841
10842
  const m = iu(e, f, i);
10842
10843
  return h.top = Rr(m.top, h.top), h.right = ii(m.right, h.right), h.bottom = ii(m.bottom, h.bottom), h.left = Rr(m.left, h.left), h;
10843
10844
  }, iu(e, c, i));
@@ -10848,7 +10849,7 @@ function rS(t) {
10848
10849
  y: u.top
10849
10850
  };
10850
10851
  }
10851
- function iS(t) {
10852
+ function iE(t) {
10852
10853
  const {
10853
10854
  width: e,
10854
10855
  height: n
@@ -10858,7 +10859,7 @@ function iS(t) {
10858
10859
  height: n
10859
10860
  };
10860
10861
  }
10861
- function oS(t, e, n) {
10862
+ function oE(t, e, n) {
10862
10863
  const r = Ln(e), i = Hn(e), o = n === "fixed", s = Mr(t, !0, o, e);
10863
10864
  let c = {
10864
10865
  scrollLeft: 0,
@@ -10907,14 +10908,14 @@ function Hf(t, e) {
10907
10908
  return n;
10908
10909
  }
10909
10910
  let r = ou(t, e);
10910
- for (; r && FE(r) && Qs(r); )
10911
+ for (; r && FS(r) && Qs(r); )
10911
10912
  r = ou(r, e);
10912
- return r && oi(r) && Qs(r) && !gl(r) ? n : r || qE(t) || n;
10913
+ return r && oi(r) && Qs(r) && !gl(r) ? n : r || qS(t) || n;
10913
10914
  }
10914
- const sS = async function(t) {
10915
+ const sE = async function(t) {
10915
10916
  const e = this.getOffsetParent || Hf, n = this.getDimensions, r = await n(t.floating);
10916
10917
  return {
10917
- reference: oS(t.reference, await e(t.floating), t.strategy),
10918
+ reference: oE(t.reference, await e(t.floating), t.strategy),
10918
10919
  floating: {
10919
10920
  x: 0,
10920
10921
  y: 0,
@@ -10923,25 +10924,25 @@ const sS = async function(t) {
10923
10924
  }
10924
10925
  };
10925
10926
  };
10926
- function aS(t) {
10927
+ function aE(t) {
10927
10928
  return pn(t).direction === "rtl";
10928
10929
  }
10929
- const lS = {
10930
- convertOffsetParentRelativeRectToViewportRelativeRect: QE,
10930
+ const lE = {
10931
+ convertOffsetParentRelativeRectToViewportRelativeRect: QS,
10931
10932
  getDocumentElement: Hn,
10932
- getClippingRect: rS,
10933
+ getClippingRect: rE,
10933
10934
  getOffsetParent: Hf,
10934
- getElementRects: sS,
10935
- getClientRects: ZE,
10936
- getDimensions: iS,
10935
+ getElementRects: sE,
10936
+ getClientRects: ZS,
10937
+ getDimensions: iE,
10937
10938
  getScale: Jr,
10938
10939
  isElement: hn,
10939
- isRTL: aS
10940
+ isRTL: aE
10940
10941
  };
10941
10942
  function Uf(t, e) {
10942
10943
  return t.x === e.x && t.y === e.y && t.width === e.width && t.height === e.height;
10943
10944
  }
10944
- function cS(t, e) {
10945
+ function cE(t, e) {
10945
10946
  let n = null, r;
10946
10947
  const i = Hn(t);
10947
10948
  function o() {
@@ -10958,8 +10959,8 @@ function cS(t, e) {
10958
10959
  } = h;
10959
10960
  if (c || e(), !y || !v)
10960
10961
  return;
10961
- const S = co(m), D = co(i.clientWidth - (f + y)), _ = co(i.clientHeight - (m + v)), R = co(f), H = {
10962
- rootMargin: -S + "px " + -D + "px " + -_ + "px " + -R + "px",
10962
+ const E = co(m), D = co(i.clientWidth - (f + y)), _ = co(i.clientHeight - (m + v)), R = co(f), H = {
10963
+ rootMargin: -E + "px " + -D + "px " + -_ + "px " + -R + "px",
10963
10964
  threshold: Rr(0, ii(1, u)) || 1
10964
10965
  };
10965
10966
  let L = !0;
@@ -10987,7 +10988,7 @@ function cS(t, e) {
10987
10988
  }
10988
10989
  return s(!0), o;
10989
10990
  }
10990
- function uS(t, e, n, r) {
10991
+ function uE(t, e, n, r) {
10991
10992
  r === void 0 && (r = {});
10992
10993
  const {
10993
10994
  ancestorScroll: i = !0,
@@ -11001,7 +11002,7 @@ function uS(t, e, n, r) {
11001
11002
  passive: !0
11002
11003
  }), o && R.addEventListener("resize", n);
11003
11004
  });
11004
- const m = h && c ? cS(h, n) : null;
11005
+ const m = h && c ? cE(h, n) : null;
11005
11006
  let y = -1, v = null;
11006
11007
  s && (v = new ResizeObserver((R) => {
11007
11008
  let [x] = R;
@@ -11010,39 +11011,39 @@ function uS(t, e, n, r) {
11010
11011
  (H = v) == null || H.observe(e);
11011
11012
  })), n();
11012
11013
  }), h && !u && v.observe(h), v.observe(e));
11013
- let S, D = u ? Mr(t) : null;
11014
+ let E, D = u ? Mr(t) : null;
11014
11015
  u && _();
11015
11016
  function _() {
11016
11017
  const R = Mr(t);
11017
- D && !Uf(D, R) && n(), D = R, S = requestAnimationFrame(_);
11018
+ D && !Uf(D, R) && n(), D = R, E = requestAnimationFrame(_);
11018
11019
  }
11019
11020
  return n(), () => {
11020
11021
  var R;
11021
11022
  f.forEach((x) => {
11022
11023
  i && x.removeEventListener("scroll", n), o && x.removeEventListener("resize", n);
11023
- }), m?.(), (R = v) == null || R.disconnect(), v = null, u && cancelAnimationFrame(S);
11024
+ }), m?.(), (R = v) == null || R.disconnect(), v = null, u && cancelAnimationFrame(E);
11024
11025
  };
11025
11026
  }
11026
- const dS = jE, fS = HE, hS = NE, pS = OE, su = (t, e, n) => {
11027
+ const dE = jS, fE = HS, hE = NS, pE = OS, su = (t, e, n) => {
11027
11028
  const r = /* @__PURE__ */ new Map(), i = {
11028
- platform: lS,
11029
+ platform: lE,
11029
11030
  ...n
11030
11031
  }, o = {
11031
11032
  ...i.platform,
11032
11033
  _c: r
11033
11034
  };
11034
- return ME(t, e, {
11035
+ return MS(t, e, {
11035
11036
  ...i,
11036
11037
  platform: o
11037
11038
  });
11038
11039
  };
11039
- var gS = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
11040
+ var gE = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
11040
11041
  function yl(t) {
11041
11042
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
11042
11043
  }
11043
11044
  var Zs = { exports: {} };
11044
11045
  var au;
11045
- function mS() {
11046
+ function mE() {
11046
11047
  return au || (au = 1, (function(t) {
11047
11048
  (function() {
11048
11049
  var e = {}.hasOwnProperty;
@@ -11074,25 +11075,25 @@ function mS() {
11074
11075
  })();
11075
11076
  })(Zs)), Zs.exports;
11076
11077
  }
11077
- var vS = mS();
11078
- const Sa = /* @__PURE__ */ yl(vS);
11079
- const yS = "react-tooltip-core-styles", bS = "react-tooltip-base-styles", lu = { core: !1, base: !1 };
11080
- function cu({ css: t, id: e = bS, type: n = "base", ref: r }) {
11078
+ var vE = mE();
11079
+ const Ea = /* @__PURE__ */ yl(vE);
11080
+ const yE = "react-tooltip-core-styles", bE = "react-tooltip-base-styles", lu = { core: !1, base: !1 };
11081
+ function cu({ css: t, id: e = bE, type: n = "base", ref: r }) {
11081
11082
  var i, o;
11082
11083
  if (!t || typeof document > "u" || lu[n] || n === "core" && typeof process < "u" && (!((i = process == null ? void 0 : process.env) === null || i === void 0) && i.REACT_TOOLTIP_DISABLE_CORE_STYLES) || n !== "base" && typeof process < "u" && (!((o = process == null ? void 0 : process.env) === null || o === void 0) && o.REACT_TOOLTIP_DISABLE_BASE_STYLES)) return;
11083
- n === "core" && (e = yS), r || (r = {});
11084
+ n === "core" && (e = yE), r || (r = {});
11084
11085
  const { insertAt: s } = r;
11085
11086
  if (document.getElementById(e)) return;
11086
11087
  const c = document.head || document.getElementsByTagName("head")[0], u = document.createElement("style");
11087
11088
  u.id = e, u.type = "text/css", s === "top" && c.firstChild ? c.insertBefore(u, c.firstChild) : c.appendChild(u), u.styleSheet ? u.styleSheet.cssText = t : u.appendChild(document.createTextNode(t)), lu[n] = !0;
11088
11089
  }
11089
- const uu = async ({ elementReference: t = null, tooltipReference: e = null, tooltipArrowReference: n = null, place: r = "top", offset: i = 10, strategy: o = "absolute", middlewares: s = [dS(Number(i)), hS({ fallbackAxisSideDirection: "start" }), fS({ padding: 5 })], border: c, arrowSize: u = 8 }) => {
11090
+ const uu = async ({ elementReference: t = null, tooltipReference: e = null, tooltipArrowReference: n = null, place: r = "top", offset: i = 10, strategy: o = "absolute", middlewares: s = [dE(Number(i)), hE({ fallbackAxisSideDirection: "start" }), fE({ padding: 5 })], border: c, arrowSize: u = 8 }) => {
11090
11091
  if (!t) return { tooltipStyles: {}, tooltipArrowStyles: {}, place: r };
11091
11092
  if (e === null) return { tooltipStyles: {}, tooltipArrowStyles: {}, place: r };
11092
11093
  const h = s;
11093
- return n ? (h.push(pS({ element: n, padding: 5 })), su(t, e, { placement: r, strategy: o, middleware: h }).then((({ x: f, y: m, placement: y, middlewareData: v }) => {
11094
- var S, D;
11095
- const _ = { left: `${f}px`, top: `${m}px`, border: c }, { x: R, y: x } = (S = v.arrow) !== null && S !== void 0 ? S : { x: 0, y: 0 }, H = (D = { top: "bottom", right: "left", bottom: "top", left: "right" }[y.split("-")[0]]) !== null && D !== void 0 ? D : "bottom", L = c && { borderBottom: c, borderRight: c };
11094
+ return n ? (h.push(pE({ element: n, padding: 5 })), su(t, e, { placement: r, strategy: o, middleware: h }).then((({ x: f, y: m, placement: y, middlewareData: v }) => {
11095
+ var E, D;
11096
+ const _ = { left: `${f}px`, top: `${m}px`, border: c }, { x: R, y: x } = (E = v.arrow) !== null && E !== void 0 ? E : { x: 0, y: 0 }, H = (D = { top: "bottom", right: "left", bottom: "top", left: "right" }[y.split("-")[0]]) !== null && D !== void 0 ? D : "bottom", L = c && { borderBottom: c, borderRight: c };
11096
11097
  let I = 0;
11097
11098
  if (c) {
11098
11099
  const z = `${c}`.match(/(\d+)px/);
@@ -11118,7 +11119,7 @@ const uu = async ({ elementReference: t = null, tooltipReference: e = null, tool
11118
11119
  if (!hu(t) || !hu(e)) return t === e;
11119
11120
  const n = Object.keys(t), r = Object.keys(e);
11120
11121
  return n.length === r.length && n.every(((i) => Da(t[i], e[i])));
11121
- }, wS = (t) => {
11122
+ }, wE = (t) => {
11122
11123
  if (!(t instanceof HTMLElement || t instanceof SVGElement)) return !1;
11123
11124
  const e = getComputedStyle(t);
11124
11125
  return ["overflow", "overflow-x", "overflow-y"].some(((n) => {
@@ -11129,28 +11130,28 @@ const uu = async ({ elementReference: t = null, tooltipReference: e = null, tool
11129
11130
  if (!t) return null;
11130
11131
  let e = t.parentElement;
11131
11132
  for (; e; ) {
11132
- if (wS(e)) return e;
11133
+ if (wE(e)) return e;
11133
11134
  e = e.parentElement;
11134
11135
  }
11135
11136
  return document.scrollingElement || document.documentElement;
11136
- }, ES = typeof window < "u" ? ph : be, nn = (t) => {
11137
+ }, SE = typeof window < "u" ? ph : be, nn = (t) => {
11137
11138
  t.current && (clearTimeout(t.current), t.current = null);
11138
- }, SS = "DEFAULT_TOOLTIP_ID", DS = { anchorRefs: /* @__PURE__ */ new Set(), activeAnchor: { current: null }, attach: () => {
11139
+ }, EE = "DEFAULT_TOOLTIP_ID", DE = { anchorRefs: /* @__PURE__ */ new Set(), activeAnchor: { current: null }, attach: () => {
11139
11140
  }, detach: () => {
11140
11141
  }, setActiveAnchor: () => {
11141
- } }, CS = Fo({ getTooltipData: () => DS });
11142
- function Bf(t = SS) {
11143
- return zo(CS).getTooltipData(t);
11142
+ } }, CE = Fo({ getTooltipData: () => DE });
11143
+ function Bf(t = EE) {
11144
+ return zo(CE).getTooltipData(t);
11144
11145
  }
11145
11146
  var qr = { tooltip: "core-styles-module_tooltip__3vRRp", fixed: "core-styles-module_fixed__pcSol", arrow: "core-styles-module_arrow__cvMwQ", noArrow: "core-styles-module_noArrow__xock6", clickable: "core-styles-module_clickable__ZuTTB", show: "core-styles-module_show__Nt9eE", closing: "core-styles-module_closing__sGnxF" }, Xs = { tooltip: "styles-module_tooltip__mnnfp", arrow: "styles-module_arrow__K0L3T", dark: "styles-module_dark__xNqje", light: "styles-module_light__Z6W-X", success: "styles-module_success__A2AKt", warning: "styles-module_warning__SCK0X", error: "styles-module_error__JvumD", info: "styles-module_info__BWdHW" };
11146
- const AS = ({ forwardRef: t, id: e, className: n, classNameArrow: r, variant: i = "dark", anchorId: o, anchorSelect: s, place: c = "top", offset: u = 10, events: h = ["hover"], openOnClick: f = !1, positionStrategy: m = "absolute", middlewares: y, wrapper: v, delayShow: S = 0, delayHide: D = 0, float: _ = !1, hidden: R = !1, noArrow: x = !1, clickable: H = !1, closeOnEsc: L = !1, closeOnScroll: I = !1, closeOnResize: z = !1, openEvents: Q, closeEvents: $, globalCloseEvents: G, imperativeModeOnly: K, style: ae, position: _e, afterShow: je, afterHide: ie, disableTooltip: ne, content: X, contentWrapperRef: oe, isOpen: Z, defaultIsOpen: pe = !1, setIsOpen: ye, previousActiveAnchor: Ie, activeAnchor: De, setActiveAnchor: Me, border: We, opacity: tt, arrowColor: lt, arrowSize: ct = 8, role: Pt = "tooltip" }) => {
11147
+ const AE = ({ forwardRef: t, id: e, className: n, classNameArrow: r, variant: i = "dark", anchorId: o, anchorSelect: s, place: c = "top", offset: u = 10, events: h = ["hover"], openOnClick: f = !1, positionStrategy: m = "absolute", middlewares: y, wrapper: v, delayShow: E = 0, delayHide: D = 0, float: _ = !1, hidden: R = !1, noArrow: x = !1, clickable: H = !1, closeOnEsc: L = !1, closeOnScroll: I = !1, closeOnResize: z = !1, openEvents: Q, closeEvents: $, globalCloseEvents: G, imperativeModeOnly: K, style: ae, position: _e, afterShow: je, afterHide: ie, disableTooltip: ne, content: X, contentWrapperRef: oe, isOpen: Z, defaultIsOpen: pe = !1, setIsOpen: ye, previousActiveAnchor: Ie, activeAnchor: De, setActiveAnchor: Me, border: We, opacity: tt, arrowColor: lt, arrowSize: ct = 8, role: Pt = "tooltip" }) => {
11147
11148
  var te;
11148
- const Ve = mt(null), ut = mt(null), xe = mt(null), pt = mt(null), Kn = mt(null), [Rt, Hr] = me({ tooltipStyles: {}, tooltipArrowStyles: {}, place: c }), [Et, vr] = me(!1), [Qn, Kt] = me(!1), [Be, Un] = me(null), mn = mt(!1), Bn = mt(null), { anchorRefs: vn, setActiveAnchor: Lt } = Bf(e), jt = mt(!1), [Qt, rn] = me([]), on = mt(!1), sn = f || h.includes("click"), Zt = sn || Q?.click || Q?.dblclick || Q?.mousedown, yn = Q ? { ...Q } : { mouseover: !0, focus: !0, mouseenter: !1, click: !1, dblclick: !1, mousedown: !1 };
11149
+ const Ve = mt(null), ut = mt(null), xe = mt(null), pt = mt(null), Kn = mt(null), [Rt, Hr] = me({ tooltipStyles: {}, tooltipArrowStyles: {}, place: c }), [St, vr] = me(!1), [Qn, Kt] = me(!1), [Be, Un] = me(null), mn = mt(!1), Bn = mt(null), { anchorRefs: vn, setActiveAnchor: Lt } = Bf(e), jt = mt(!1), [Qt, rn] = me([]), on = mt(!1), sn = f || h.includes("click"), Zt = sn || Q?.click || Q?.dblclick || Q?.mousedown, yn = Q ? { ...Q } : { mouseover: !0, focus: !0, mouseenter: !1, click: !1, dblclick: !1, mousedown: !1 };
11149
11150
  !Q && sn && Object.assign(yn, { mouseenter: !1, focus: !1, mouseover: !1, click: !0 });
11150
11151
  const an = $ ? { ...$ } : { mouseout: !0, blur: !0, mouseleave: !1, click: !1, dblclick: !1, mouseup: !1 };
11151
11152
  !$ && sn && Object.assign(an, { mouseleave: !1, blur: !1, mouseout: !1 });
11152
11153
  const Xe = G ? { ...G } : { escape: L || !1, scroll: I || !1, resize: z || !1, clickOutsideAnchor: Zt || !1 };
11153
- K && (Object.assign(yn, { mouseover: !1, focus: !1, mouseenter: !1, click: !1, dblclick: !1, mousedown: !1 }), Object.assign(an, { mouseout: !1, blur: !1, mouseleave: !1, click: !1, dblclick: !1, mouseup: !1 }), Object.assign(Xe, { escape: !1, scroll: !1, resize: !1, clickOutsideAnchor: !1 })), ES((() => (on.current = !0, () => {
11154
+ K && (Object.assign(yn, { mouseover: !1, focus: !1, mouseenter: !1, click: !1, dblclick: !1, mousedown: !1 }), Object.assign(an, { mouseout: !1, blur: !1, mouseleave: !1, click: !1, dblclick: !1, mouseup: !1 }), Object.assign(Xe, { escape: !1, scroll: !1, resize: !1, clickOutsideAnchor: !1 })), SE((() => (on.current = !0, () => {
11154
11155
  on.current = !1;
11155
11156
  })), []);
11156
11157
  const he = (J) => {
@@ -11160,24 +11161,24 @@ const AS = ({ forwardRef: t, id: e, className: n, classNameArrow: r, variant: i
11160
11161
  };
11161
11162
  be((() => {
11162
11163
  if (e) {
11163
- if (Et) {
11164
+ if (St) {
11164
11165
  ge(Ie);
11165
- const Se = J(De), Fe = [.../* @__PURE__ */ new Set([...Se, e])].filter(Boolean).join(" ");
11166
+ const Ee = J(De), Fe = [.../* @__PURE__ */ new Set([...Ee, e])].filter(Boolean).join(" ");
11166
11167
  De?.setAttribute("aria-describedby", Fe);
11167
11168
  } else ge(De);
11168
11169
  return () => {
11169
11170
  ge(De), ge(Ie);
11170
11171
  };
11171
11172
  }
11172
- function J(Se) {
11173
+ function J(Ee) {
11173
11174
  var Fe;
11174
- return ((Fe = Se?.getAttribute("aria-describedby")) === null || Fe === void 0 ? void 0 : Fe.split(" ")) || [];
11175
+ return ((Fe = Ee?.getAttribute("aria-describedby")) === null || Fe === void 0 ? void 0 : Fe.split(" ")) || [];
11175
11176
  }
11176
- function ge(Se) {
11177
- const Fe = J(Se).filter(((ot) => ot !== e));
11178
- Fe.length ? Se?.setAttribute("aria-describedby", Fe.join(" ")) : Se?.removeAttribute("aria-describedby");
11177
+ function ge(Ee) {
11178
+ const Fe = J(Ee).filter(((ot) => ot !== e));
11179
+ Fe.length ? Ee?.setAttribute("aria-describedby", Fe.join(" ")) : Ee?.removeAttribute("aria-describedby");
11179
11180
  }
11180
- }), [De, Et, e, Ie]), be((() => {
11181
+ }), [De, St, e, Ie]), be((() => {
11181
11182
  if (Z === void 0) return () => null;
11182
11183
  Z && Kt(!0);
11183
11184
  const J = setTimeout((() => {
@@ -11187,22 +11188,22 @@ const AS = ({ forwardRef: t, id: e, className: n, classNameArrow: r, variant: i
11187
11188
  clearTimeout(J);
11188
11189
  };
11189
11190
  }), [Z]), be((() => {
11190
- if (Et !== mn.current) if (nn(Kn), mn.current = Et, Et) je?.();
11191
+ if (St !== mn.current) if (nn(Kn), mn.current = St, St) je?.();
11191
11192
  else {
11192
11193
  const J = ((ge) => {
11193
- const Se = ge.match(/^([\d.]+)(ms|s)$/);
11194
- if (!Se) return 0;
11195
- const [, Fe, ot] = Se;
11194
+ const Ee = ge.match(/^([\d.]+)(ms|s)$/);
11195
+ if (!Ee) return 0;
11196
+ const [, Fe, ot] = Ee;
11196
11197
  return Number(Fe) * (ot === "ms" ? 1 : 1e3);
11197
11198
  })(getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay"));
11198
11199
  Kn.current = setTimeout((() => {
11199
11200
  Kt(!1), Un(null), ie?.();
11200
11201
  }), J + 25);
11201
11202
  }
11202
- }), [Et]);
11203
+ }), [St]);
11203
11204
  const ln = (J) => {
11204
11205
  Hr(((ge) => Da(ge, J) ? ge : J));
11205
- }, Ht = (J = S) => {
11206
+ }, Ht = (J = E) => {
11206
11207
  nn(xe), Qn ? he(!0) : xe.current = setTimeout((() => {
11207
11208
  he(!0);
11208
11209
  }), J);
@@ -11213,64 +11214,64 @@ const AS = ({ forwardRef: t, id: e, className: n, classNameArrow: r, variant: i
11213
11214
  }, ue = (J) => {
11214
11215
  var ge;
11215
11216
  if (!J) return;
11216
- const Se = (ge = J.currentTarget) !== null && ge !== void 0 ? ge : J.target;
11217
- if (!Se?.isConnected) return Me(null), void Lt({ current: null });
11218
- S ? Ht() : he(!0), Me(Se), Lt({ current: Se }), nn(pt);
11217
+ const Ee = (ge = J.currentTarget) !== null && ge !== void 0 ? ge : J.target;
11218
+ if (!Ee?.isConnected) return Me(null), void Lt({ current: null });
11219
+ E ? Ht() : he(!0), Me(Ee), Lt({ current: Ee }), nn(pt);
11219
11220
  }, bn = () => {
11220
11221
  H ? cn(D || 100) : D ? cn() : he(!1), nn(xe);
11221
11222
  }, Fn = ({ x: J, y: ge }) => {
11222
- var Se;
11223
+ var Ee;
11223
11224
  const Fe = { getBoundingClientRect: () => ({ x: J, y: ge, width: 0, height: 0, top: ge, left: J, right: J, bottom: ge }) };
11224
- uu({ place: (Se = Be?.place) !== null && Se !== void 0 ? Se : c, offset: u, elementReference: Fe, tooltipReference: Ve.current, tooltipArrowReference: ut.current, strategy: m, middlewares: y, border: We, arrowSize: ct }).then(((ot) => {
11225
+ uu({ place: (Ee = Be?.place) !== null && Ee !== void 0 ? Ee : c, offset: u, elementReference: Fe, tooltipReference: Ve.current, tooltipArrowReference: ut.current, strategy: m, middlewares: y, border: We, arrowSize: ct }).then(((ot) => {
11225
11226
  ln(ot);
11226
11227
  }));
11227
11228
  }, wn = (J) => {
11228
11229
  if (!J) return;
11229
- const ge = J, Se = { x: ge.clientX, y: ge.clientY };
11230
- Fn(Se), Bn.current = Se;
11230
+ const ge = J, Ee = { x: ge.clientX, y: ge.clientY };
11231
+ Fn(Ee), Bn.current = Ee;
11231
11232
  }, Zn = (J) => {
11232
11233
  var ge;
11233
- if (!Et) return;
11234
- const Se = J.target;
11235
- Se.isConnected && (!((ge = Ve.current) === null || ge === void 0) && ge.contains(Se) || [document.querySelector(`[id='${o}']`), ...Qt].some(((Fe) => Fe?.contains(Se))) || (he(!1), nn(xe)));
11234
+ if (!St) return;
11235
+ const Ee = J.target;
11236
+ Ee.isConnected && (!((ge = Ve.current) === null || ge === void 0) && ge.contains(Ee) || [document.querySelector(`[id='${o}']`), ...Qt].some(((Fe) => Fe?.contains(Ee))) || (he(!1), nn(xe)));
11236
11237
  }, Xn = fu(ue, 50), st = fu(bn, 50), vt = (J) => {
11237
11238
  st.cancel(), Xn(J);
11238
- }, Ee = () => {
11239
+ }, Se = () => {
11239
11240
  Xn.cancel(), st();
11240
11241
  }, ke = Tn((() => {
11241
11242
  var J, ge;
11242
- const Se = (J = Be?.position) !== null && J !== void 0 ? J : _e;
11243
- Se ? Fn(Se) : _ ? Bn.current && Fn(Bn.current) : De?.isConnected && uu({ place: (ge = Be?.place) !== null && ge !== void 0 ? ge : c, offset: u, elementReference: De, tooltipReference: Ve.current, tooltipArrowReference: ut.current, strategy: m, middlewares: y, border: We, arrowSize: ct }).then(((Fe) => {
11243
+ const Ee = (J = Be?.position) !== null && J !== void 0 ? J : _e;
11244
+ Ee ? Fn(Ee) : _ ? Bn.current && Fn(Bn.current) : De?.isConnected && uu({ place: (ge = Be?.place) !== null && ge !== void 0 ? ge : c, offset: u, elementReference: De, tooltipReference: Ve.current, tooltipArrowReference: ut.current, strategy: m, middlewares: y, border: We, arrowSize: ct }).then(((Fe) => {
11244
11245
  on.current && ln(Fe);
11245
11246
  }));
11246
- }), [Et, De, X, ae, c, Be?.place, u, m, _e, Be?.position, _, ct]);
11247
+ }), [St, De, X, ae, c, Be?.place, u, m, _e, Be?.position, _, ct]);
11247
11248
  be((() => {
11248
11249
  var J, ge;
11249
- const Se = new Set(vn);
11250
+ const Ee = new Set(vn);
11250
11251
  Qt.forEach(((Pe) => {
11251
- ne?.(Pe) || Se.add({ current: Pe });
11252
+ ne?.(Pe) || Ee.add({ current: Pe });
11252
11253
  }));
11253
11254
  const Fe = document.querySelector(`[id='${o}']`);
11254
- Fe && !ne?.(Fe) && Se.add({ current: Fe });
11255
+ Fe && !ne?.(Fe) && Ee.add({ current: Fe });
11255
11256
  const ot = () => {
11256
11257
  he(!1);
11257
11258
  }, Tt = pu(De), Jt = pu(Ve.current);
11258
11259
  Xe.scroll && (window.addEventListener("scroll", ot), Tt?.addEventListener("scroll", ot), Jt?.addEventListener("scroll", ot));
11259
11260
  let nt = null;
11260
- Xe.resize ? window.addEventListener("resize", ot) : De && Ve.current && (nt = uS(De, Ve.current, ke, { ancestorResize: !0, elementResize: !0, layoutShift: !0 }));
11261
+ Xe.resize ? window.addEventListener("resize", ot) : De && Ve.current && (nt = uE(De, Ve.current, ke, { ancestorResize: !0, elementResize: !0, layoutShift: !0 }));
11261
11262
  const ft = (Pe) => {
11262
11263
  Pe.key === "Escape" && he(!1);
11263
11264
  };
11264
11265
  Xe.escape && window.addEventListener("keydown", ft), Xe.clickOutsideAnchor && window.addEventListener("click", Zn);
11265
11266
  const ze = [], un = (Pe) => !!(Pe?.target && De?.contains(Pe.target)), os = (Pe) => {
11266
- Et && un(Pe) || ue(Pe);
11267
- }, En = (Pe) => {
11268
- Et && un(Pe) && bn();
11269
- }, li = ["mouseover", "mouseout", "mouseenter", "mouseleave", "focus", "blur"], Sn = ["click", "dblclick", "mousedown", "mouseup"];
11267
+ St && un(Pe) || ue(Pe);
11268
+ }, Sn = (Pe) => {
11269
+ St && un(Pe) && bn();
11270
+ }, li = ["mouseover", "mouseout", "mouseenter", "mouseleave", "focus", "blur"], En = ["click", "dblclick", "mousedown", "mouseup"];
11270
11271
  Object.entries(yn).forEach((([Pe, ht]) => {
11271
- ht && (li.includes(Pe) ? ze.push({ event: Pe, listener: vt }) : Sn.includes(Pe) && ze.push({ event: Pe, listener: os }));
11272
+ ht && (li.includes(Pe) ? ze.push({ event: Pe, listener: vt }) : En.includes(Pe) && ze.push({ event: Pe, listener: os }));
11272
11273
  })), Object.entries(an).forEach((([Pe, ht]) => {
11273
- ht && (li.includes(Pe) ? ze.push({ event: Pe, listener: Ee }) : Sn.includes(Pe) && ze.push({ event: Pe, listener: En }));
11274
+ ht && (li.includes(Pe) ? ze.push({ event: Pe, listener: Se }) : En.includes(Pe) && ze.push({ event: Pe, listener: Sn }));
11274
11275
  })), _ && ze.push({ event: "pointermove", listener: wn });
11275
11276
  const ci = () => {
11276
11277
  jt.current = !0;
@@ -11278,31 +11279,31 @@ const AS = ({ forwardRef: t, id: e, className: n, classNameArrow: r, variant: i
11278
11279
  jt.current = !1, bn();
11279
11280
  }, rt = H && (an.mouseout || an.mouseleave);
11280
11281
  return rt && ((J = Ve.current) === null || J === void 0 || J.addEventListener("mouseover", ci), (ge = Ve.current) === null || ge === void 0 || ge.addEventListener("mouseout", Ur)), ze.forEach((({ event: Pe, listener: ht }) => {
11281
- Se.forEach(((Br) => {
11282
+ Ee.forEach(((Br) => {
11282
11283
  var en;
11283
11284
  (en = Br.current) === null || en === void 0 || en.addEventListener(Pe, ht);
11284
11285
  }));
11285
11286
  })), () => {
11286
11287
  var Pe, ht;
11287
11288
  Xe.scroll && (window.removeEventListener("scroll", ot), Tt?.removeEventListener("scroll", ot), Jt?.removeEventListener("scroll", ot)), Xe.resize ? window.removeEventListener("resize", ot) : nt?.(), Xe.clickOutsideAnchor && window.removeEventListener("click", Zn), Xe.escape && window.removeEventListener("keydown", ft), rt && ((Pe = Ve.current) === null || Pe === void 0 || Pe.removeEventListener("mouseover", ci), (ht = Ve.current) === null || ht === void 0 || ht.removeEventListener("mouseout", Ur)), ze.forEach((({ event: Br, listener: en }) => {
11288
- Se.forEach(((Fr) => {
11289
+ Ee.forEach(((Fr) => {
11289
11290
  var yr;
11290
11291
  (yr = Fr.current) === null || yr === void 0 || yr.removeEventListener(Br, en);
11291
11292
  }));
11292
11293
  }));
11293
11294
  };
11294
- }), [De, ke, Qn, vn, Qt, Q, $, G, sn, S, D]), be((() => {
11295
+ }), [De, ke, Qn, vn, Qt, Q, $, G, sn, E, D]), be((() => {
11295
11296
  var J, ge;
11296
- let Se = (ge = (J = Be?.anchorSelect) !== null && J !== void 0 ? J : s) !== null && ge !== void 0 ? ge : "";
11297
- !Se && e && (Se = `[data-tooltip-id='${e.replace(/'/g, "\\'")}']`);
11297
+ let Ee = (ge = (J = Be?.anchorSelect) !== null && J !== void 0 ? J : s) !== null && ge !== void 0 ? ge : "";
11298
+ !Ee && e && (Ee = `[data-tooltip-id='${e.replace(/'/g, "\\'")}']`);
11298
11299
  const Fe = new MutationObserver(((ot) => {
11299
11300
  const Tt = [], Jt = [];
11300
11301
  ot.forEach(((nt) => {
11301
11302
  if (nt.type === "attributes" && nt.attributeName === "data-tooltip-id" && (nt.target.getAttribute("data-tooltip-id") === e ? Tt.push(nt.target) : nt.oldValue === e && Jt.push(nt.target)), nt.type === "childList") {
11302
11303
  if (De) {
11303
11304
  const ft = [...nt.removedNodes].filter(((ze) => ze.nodeType === 1));
11304
- if (Se) try {
11305
- Jt.push(...ft.filter(((ze) => ze.matches(Se)))), Jt.push(...ft.flatMap(((ze) => [...ze.querySelectorAll(Se)])));
11305
+ if (Ee) try {
11306
+ Jt.push(...ft.filter(((ze) => ze.matches(Ee)))), Jt.push(...ft.flatMap(((ze) => [...ze.querySelectorAll(Ee)])));
11306
11307
  } catch {
11307
11308
  }
11308
11309
  ft.some(((ze) => {
@@ -11310,9 +11311,9 @@ const AS = ({ forwardRef: t, id: e, className: n, classNameArrow: r, variant: i
11310
11311
  return !!(!((un = ze?.contains) === null || un === void 0) && un.call(ze, De)) && (Kt(!1), he(!1), Me(null), nn(xe), nn(pt), !0);
11311
11312
  }));
11312
11313
  }
11313
- if (Se) try {
11314
+ if (Ee) try {
11314
11315
  const ft = [...nt.addedNodes].filter(((ze) => ze.nodeType === 1));
11315
- Tt.push(...ft.filter(((ze) => ze.matches(Se)))), Tt.push(...ft.flatMap(((ze) => [...ze.querySelectorAll(Se)])));
11316
+ Tt.push(...ft.filter(((ze) => ze.matches(Ee)))), Tt.push(...ft.flatMap(((ze) => [...ze.querySelectorAll(Ee)])));
11316
11317
  } catch {
11317
11318
  }
11318
11319
  }
@@ -11333,23 +11334,23 @@ const AS = ({ forwardRef: t, id: e, className: n, classNameArrow: r, variant: i
11333
11334
  };
11334
11335
  }), [X, oe?.current]), be((() => {
11335
11336
  var J;
11336
- const ge = document.querySelector(`[id='${o}']`), Se = [...Qt, ge];
11337
- De && Se.includes(De) || Me((J = Qt[0]) !== null && J !== void 0 ? J : ge);
11337
+ const ge = document.querySelector(`[id='${o}']`), Ee = [...Qt, ge];
11338
+ De && Ee.includes(De) || Me((J = Qt[0]) !== null && J !== void 0 ? J : ge);
11338
11339
  }), [o, Qt, De]), be((() => (pe && he(!0), () => {
11339
11340
  nn(xe), nn(pt);
11340
11341
  })), []), be((() => {
11341
11342
  var J;
11342
11343
  let ge = (J = Be?.anchorSelect) !== null && J !== void 0 ? J : s;
11343
11344
  if (!ge && e && (ge = `[data-tooltip-id='${e.replace(/'/g, "\\'")}']`), ge) try {
11344
- const Se = Array.from(document.querySelectorAll(ge));
11345
- rn(Se);
11345
+ const Ee = Array.from(document.querySelectorAll(ge));
11346
+ rn(Ee);
11346
11347
  } catch {
11347
11348
  rn([]);
11348
11349
  }
11349
11350
  }), [e, s, Be?.anchorSelect]), be((() => {
11350
- xe.current && (nn(xe), Ht(S));
11351
- }), [S]);
11352
- const yt = (te = Be?.content) !== null && te !== void 0 ? te : X, Xt = Et && Object.keys(Rt.tooltipStyles).length > 0;
11351
+ xe.current && (nn(xe), Ht(E));
11352
+ }), [E]);
11353
+ const yt = (te = Be?.content) !== null && te !== void 0 ? te : X, Xt = St && Object.keys(Rt.tooltipStyles).length > 0;
11353
11354
  return gh(t, (() => ({ open: (J) => {
11354
11355
  if (J?.anchorSelect) try {
11355
11356
  document.querySelector(J.anchorSelect);
@@ -11359,49 +11360,49 @@ const AS = ({ forwardRef: t, id: e, className: n, classNameArrow: r, variant: i
11359
11360
  Un(J ?? null), J?.delay ? Ht(J.delay) : he(!0);
11360
11361
  }, close: (J) => {
11361
11362
  J?.delay ? cn(J.delay) : he(!1);
11362
- }, activeAnchor: De, place: Rt.place, isOpen: !!(Qn && !R && yt && Xt) }))), Qn && !R && yt ? Mn.createElement(v, { id: e, role: Pt, className: Sa("react-tooltip", qr.tooltip, Xs.tooltip, Xs[i], n, `react-tooltip__place-${Rt.place}`, qr[Xt ? "show" : "closing"], Xt ? "react-tooltip__show" : "react-tooltip__closing", m === "fixed" && qr.fixed, H && qr.clickable), onTransitionEnd: (J) => {
11363
- nn(Kn), Et || J.propertyName !== "opacity" || (Kt(!1), Un(null), ie?.());
11364
- }, style: { ...ae, ...Rt.tooltipStyles, opacity: tt !== void 0 && Xt ? tt : void 0 }, ref: Ve }, yt, Mn.createElement(v, { className: Sa("react-tooltip-arrow", qr.arrow, Xs.arrow, r, x && qr.noArrow), style: { ...Rt.tooltipArrowStyles, background: lt ? `linear-gradient(to right bottom, transparent 50%, ${lt} 50%)` : void 0, "--rt-arrow-size": `${ct}px` }, ref: ut })) : null;
11365
- }, _S = ({ content: t }) => Mn.createElement("span", { dangerouslySetInnerHTML: { __html: t } }), xS = Mn.forwardRef((({ id: t, anchorId: e, anchorSelect: n, content: r, html: i, render: o, className: s, classNameArrow: c, variant: u = "dark", place: h = "top", offset: f = 10, wrapper: m = "div", children: y = null, events: v = ["hover"], openOnClick: S = !1, positionStrategy: D = "absolute", middlewares: _, delayShow: R = 0, delayHide: x = 0, float: H = !1, hidden: L = !1, noArrow: I = !1, clickable: z = !1, closeOnEsc: Q = !1, closeOnScroll: $ = !1, closeOnResize: G = !1, openEvents: K, closeEvents: ae, globalCloseEvents: _e, imperativeModeOnly: je = !1, style: ie, position: ne, isOpen: X, defaultIsOpen: oe = !1, disableStyleInjection: Z = !1, border: pe, opacity: ye, arrowColor: Ie, arrowSize: De, setIsOpen: Me, afterShow: We, afterHide: tt, disableTooltip: lt, role: ct = "tooltip" }, Pt) => {
11366
- const [te, Ve] = me(r), [ut, xe] = me(i), [pt, Kn] = me(h), [Rt, Hr] = me(u), [Et, vr] = me(f), [Qn, Kt] = me(R), [Be, Un] = me(x), [mn, Bn] = me(H), [vn, Lt] = me(L), [jt, Qt] = me(m), [rn, on] = me(v), [sn, Zt] = me(D), [yn, an] = me(null), [Xe, he] = me(null), ln = mt(null), Ht = mt(Z), { anchorRefs: cn, activeAnchor: ue } = Bf(t), bn = (st) => st?.getAttributeNames().reduce(((vt, Ee) => {
11363
+ }, activeAnchor: De, place: Rt.place, isOpen: !!(Qn && !R && yt && Xt) }))), Qn && !R && yt ? Mn.createElement(v, { id: e, role: Pt, className: Ea("react-tooltip", qr.tooltip, Xs.tooltip, Xs[i], n, `react-tooltip__place-${Rt.place}`, qr[Xt ? "show" : "closing"], Xt ? "react-tooltip__show" : "react-tooltip__closing", m === "fixed" && qr.fixed, H && qr.clickable), onTransitionEnd: (J) => {
11364
+ nn(Kn), St || J.propertyName !== "opacity" || (Kt(!1), Un(null), ie?.());
11365
+ }, style: { ...ae, ...Rt.tooltipStyles, opacity: tt !== void 0 && Xt ? tt : void 0 }, ref: Ve }, yt, Mn.createElement(v, { className: Ea("react-tooltip-arrow", qr.arrow, Xs.arrow, r, x && qr.noArrow), style: { ...Rt.tooltipArrowStyles, background: lt ? `linear-gradient(to right bottom, transparent 50%, ${lt} 50%)` : void 0, "--rt-arrow-size": `${ct}px` }, ref: ut })) : null;
11366
+ }, _E = ({ content: t }) => Mn.createElement("span", { dangerouslySetInnerHTML: { __html: t } }), xE = Mn.forwardRef((({ id: t, anchorId: e, anchorSelect: n, content: r, html: i, render: o, className: s, classNameArrow: c, variant: u = "dark", place: h = "top", offset: f = 10, wrapper: m = "div", children: y = null, events: v = ["hover"], openOnClick: E = !1, positionStrategy: D = "absolute", middlewares: _, delayShow: R = 0, delayHide: x = 0, float: H = !1, hidden: L = !1, noArrow: I = !1, clickable: z = !1, closeOnEsc: Q = !1, closeOnScroll: $ = !1, closeOnResize: G = !1, openEvents: K, closeEvents: ae, globalCloseEvents: _e, imperativeModeOnly: je = !1, style: ie, position: ne, isOpen: X, defaultIsOpen: oe = !1, disableStyleInjection: Z = !1, border: pe, opacity: ye, arrowColor: Ie, arrowSize: De, setIsOpen: Me, afterShow: We, afterHide: tt, disableTooltip: lt, role: ct = "tooltip" }, Pt) => {
11367
+ const [te, Ve] = me(r), [ut, xe] = me(i), [pt, Kn] = me(h), [Rt, Hr] = me(u), [St, vr] = me(f), [Qn, Kt] = me(R), [Be, Un] = me(x), [mn, Bn] = me(H), [vn, Lt] = me(L), [jt, Qt] = me(m), [rn, on] = me(v), [sn, Zt] = me(D), [yn, an] = me(null), [Xe, he] = me(null), ln = mt(null), Ht = mt(Z), { anchorRefs: cn, activeAnchor: ue } = Bf(t), bn = (st) => st?.getAttributeNames().reduce(((vt, Se) => {
11367
11368
  var ke;
11368
- return Ee.startsWith("data-tooltip-") && (vt[Ee.replace(/^data-tooltip-/, "")] = (ke = st?.getAttribute(Ee)) !== null && ke !== void 0 ? ke : null), vt;
11369
+ return Se.startsWith("data-tooltip-") && (vt[Se.replace(/^data-tooltip-/, "")] = (ke = st?.getAttribute(Se)) !== null && ke !== void 0 ? ke : null), vt;
11369
11370
  }), {}), Fn = (st) => {
11370
- const vt = { place: (Ee) => {
11371
+ const vt = { place: (Se) => {
11371
11372
  var ke;
11372
- Kn((ke = Ee) !== null && ke !== void 0 ? ke : h);
11373
- }, content: (Ee) => {
11374
- Ve(Ee ?? r);
11375
- }, html: (Ee) => {
11376
- xe(Ee ?? i);
11377
- }, variant: (Ee) => {
11373
+ Kn((ke = Se) !== null && ke !== void 0 ? ke : h);
11374
+ }, content: (Se) => {
11375
+ Ve(Se ?? r);
11376
+ }, html: (Se) => {
11377
+ xe(Se ?? i);
11378
+ }, variant: (Se) => {
11378
11379
  var ke;
11379
- Hr((ke = Ee) !== null && ke !== void 0 ? ke : u);
11380
- }, offset: (Ee) => {
11381
- vr(Ee === null ? f : Number(Ee));
11382
- }, wrapper: (Ee) => {
11380
+ Hr((ke = Se) !== null && ke !== void 0 ? ke : u);
11381
+ }, offset: (Se) => {
11382
+ vr(Se === null ? f : Number(Se));
11383
+ }, wrapper: (Se) => {
11383
11384
  var ke;
11384
- Qt((ke = Ee) !== null && ke !== void 0 ? ke : m);
11385
- }, events: (Ee) => {
11386
- const ke = Ee?.split(" ");
11385
+ Qt((ke = Se) !== null && ke !== void 0 ? ke : m);
11386
+ }, events: (Se) => {
11387
+ const ke = Se?.split(" ");
11387
11388
  on(ke ?? v);
11388
- }, "position-strategy": (Ee) => {
11389
+ }, "position-strategy": (Se) => {
11389
11390
  var ke;
11390
- Zt((ke = Ee) !== null && ke !== void 0 ? ke : D);
11391
- }, "delay-show": (Ee) => {
11392
- Kt(Ee === null ? R : Number(Ee));
11393
- }, "delay-hide": (Ee) => {
11394
- Un(Ee === null ? x : Number(Ee));
11395
- }, float: (Ee) => {
11396
- Bn(Ee === null ? H : Ee === "true");
11397
- }, hidden: (Ee) => {
11398
- Lt(Ee === null ? L : Ee === "true");
11399
- }, "class-name": (Ee) => {
11400
- an(Ee);
11391
+ Zt((ke = Se) !== null && ke !== void 0 ? ke : D);
11392
+ }, "delay-show": (Se) => {
11393
+ Kt(Se === null ? R : Number(Se));
11394
+ }, "delay-hide": (Se) => {
11395
+ Un(Se === null ? x : Number(Se));
11396
+ }, float: (Se) => {
11397
+ Bn(Se === null ? H : Se === "true");
11398
+ }, hidden: (Se) => {
11399
+ Lt(Se === null ? L : Se === "true");
11400
+ }, "class-name": (Se) => {
11401
+ an(Se);
11401
11402
  } };
11402
- Object.values(vt).forEach(((Ee) => Ee(null))), Object.entries(st).forEach((([Ee, ke]) => {
11403
+ Object.values(vt).forEach(((Se) => Se(null))), Object.entries(st).forEach((([Se, ke]) => {
11403
11404
  var yt;
11404
- (yt = vt[Ee]) === null || yt === void 0 || yt.call(vt, ke);
11405
+ (yt = vt[Se]) === null || yt === void 0 || yt.call(vt, ke);
11405
11406
  }));
11406
11407
  };
11407
11408
  be((() => {
@@ -11431,20 +11432,20 @@ const AS = ({ forwardRef: t, id: e, className: n, classNameArrow: r, variant: i
11431
11432
  }), []), be((() => {
11432
11433
  var st;
11433
11434
  const vt = new Set(cn);
11434
- let Ee = n;
11435
- if (!Ee && t && (Ee = `[data-tooltip-id='${t.replace(/'/g, "\\'")}']`), Ee) try {
11436
- document.querySelectorAll(Ee).forEach(((ge) => {
11435
+ let Se = n;
11436
+ if (!Se && t && (Se = `[data-tooltip-id='${t.replace(/'/g, "\\'")}']`), Se) try {
11437
+ document.querySelectorAll(Se).forEach(((ge) => {
11437
11438
  vt.add({ current: ge });
11438
11439
  }));
11439
11440
  } catch {
11440
- console.warn(`[react-tooltip] "${Ee}" is not a valid CSS selector`);
11441
+ console.warn(`[react-tooltip] "${Se}" is not a valid CSS selector`);
11441
11442
  }
11442
11443
  const ke = document.querySelector(`[id='${e}']`);
11443
11444
  if (ke && vt.add({ current: ke }), !vt.size) return () => null;
11444
11445
  const yt = (st = Xe ?? ke) !== null && st !== void 0 ? st : ue.current, Xt = new MutationObserver(((ge) => {
11445
- ge.forEach(((Se) => {
11446
+ ge.forEach(((Ee) => {
11446
11447
  var Fe;
11447
- if (!yt || Se.type !== "attributes" || !(!((Fe = Se.attributeName) === null || Fe === void 0) && Fe.startsWith("data-tooltip-"))) return;
11448
+ if (!yt || Ee.type !== "attributes" || !(!((Fe = Ee.attributeName) === null || Fe === void 0) && Fe.startsWith("data-tooltip-"))) return;
11448
11449
  const ot = bn(yt);
11449
11450
  Fn(ot);
11450
11451
  }));
@@ -11465,18 +11466,18 @@ const AS = ({ forwardRef: t, id: e, className: n, classNameArrow: r, variant: i
11465
11466
  const st = o({ content: Xe?.getAttribute("data-tooltip-content") || te || null, activeAnchor: Xe });
11466
11467
  wn = st ? Mn.createElement("div", { ref: Zn, className: "react-tooltip-content-wrapper" }, st) : null;
11467
11468
  } else te && (wn = te);
11468
- ut && (wn = Mn.createElement(_S, { content: ut }));
11469
- const Xn = { forwardRef: Pt, id: t, anchorId: e, anchorSelect: n, className: Sa(s, yn), classNameArrow: c, content: wn, contentWrapperRef: Zn, place: pt, variant: Rt, offset: Et, wrapper: jt, events: rn, openOnClick: S, positionStrategy: sn, middlewares: _, delayShow: Qn, delayHide: Be, float: mn, hidden: vn, noArrow: I, clickable: z, closeOnEsc: Q, closeOnScroll: $, closeOnResize: G, openEvents: K, closeEvents: ae, globalCloseEvents: _e, imperativeModeOnly: je, style: ie, position: ne, isOpen: X, defaultIsOpen: oe, border: pe, opacity: ye, arrowColor: Ie, arrowSize: De, setIsOpen: Me, afterShow: We, afterHide: tt, disableTooltip: lt, activeAnchor: Xe, previousActiveAnchor: ln.current, setActiveAnchor: (st) => {
11469
+ ut && (wn = Mn.createElement(_E, { content: ut }));
11470
+ const Xn = { forwardRef: Pt, id: t, anchorId: e, anchorSelect: n, className: Ea(s, yn), classNameArrow: c, content: wn, contentWrapperRef: Zn, place: pt, variant: Rt, offset: St, wrapper: jt, events: rn, openOnClick: E, positionStrategy: sn, middlewares: _, delayShow: Qn, delayHide: Be, float: mn, hidden: vn, noArrow: I, clickable: z, closeOnEsc: Q, closeOnScroll: $, closeOnResize: G, openEvents: K, closeEvents: ae, globalCloseEvents: _e, imperativeModeOnly: je, style: ie, position: ne, isOpen: X, defaultIsOpen: oe, border: pe, opacity: ye, arrowColor: Ie, arrowSize: De, setIsOpen: Me, afterShow: We, afterHide: tt, disableTooltip: lt, activeAnchor: Xe, previousActiveAnchor: ln.current, setActiveAnchor: (st) => {
11470
11471
  he(((vt) => (st?.isSameNode(vt) || (ln.current = vt), st)));
11471
11472
  }, role: ct };
11472
- return Mn.createElement(AS, { ...Xn });
11473
+ return Mn.createElement(AE, { ...Xn });
11473
11474
  }));
11474
11475
  typeof window < "u" && window.addEventListener("react-tooltip-inject-styles", ((t) => {
11475
11476
  t.detail.disableCore || cu({ css: ":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9;--rt-transition-show-delay:0.15s;--rt-transition-closing-delay:0.15s;--rt-arrow-size:8px}.core-styles-module_tooltip__3vRRp{position:absolute;top:0;left:0;pointer-events:none;opacity:0;will-change:opacity}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit;z-index:-1}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay)ease-out}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay)ease-in}", type: "core" }), t.detail.disableBase || cu({ css: `
11476
11477
  .styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:var(--rt-arrow-size);height:var(--rt-arrow-size)}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}`, type: "base" });
11477
11478
  }));
11478
11479
  var Ye = /* @__PURE__ */ ((t) => (t.DETAILS = "Details", t.EDIT = "Edit", t.CREATE = "Create", t.CASE_DETAILS = "Case Details", t))(Ye || {});
11479
- function RS({
11480
+ function RE({
11480
11481
  modalIsOpen: t,
11481
11482
  modalMode: e,
11482
11483
  setModalMode: n,
@@ -11496,7 +11497,7 @@ function RS({
11496
11497
  e === Ye.CREATE && (s({
11497
11498
  ...Af,
11498
11499
  CourtDate: r ? new Date(r.CourtDate) : void 0
11499
- }), u([{ ...hE }]));
11500
+ }), u([{ ...hS }]));
11500
11501
  }, [e, r]), { editedData: o, setEditedData: s, editedCases: c, setEditedCases: u, clickedCase: h, setClickedCase: f };
11501
11502
  }
11502
11503
  function Rn({
@@ -11545,11 +11546,11 @@ function Js({ label: t, info: e, color: n }) {
11545
11546
  }
11546
11547
  );
11547
11548
  }
11548
- function TS({ fileKey: t }) {
11549
+ function TE({ fileKey: t }) {
11549
11550
  const e = !!t;
11550
11551
  function n() {
11551
11552
  if (!t) return;
11552
- const r = t.startsWith("http") ? t : `${oE}/${t}`;
11553
+ const r = t.startsWith("http") ? t : `${oS}/${t}`;
11553
11554
  window.open(r, "_blank", "noopener,noreferrer");
11554
11555
  }
11555
11556
  return /* @__PURE__ */ ee(
@@ -11579,7 +11580,7 @@ function TS({ fileKey: t }) {
11579
11580
  );
11580
11581
  }
11581
11582
  function ji(t, e) {
11582
- const n = aE;
11583
+ const n = aS;
11583
11584
  if (e) {
11584
11585
  if (!t.VillageSCARDeterminationAction) return !1;
11585
11586
  if (n.some((r) => t.VillageSCARDeterminationAction.toLowerCase().includes(r)))
@@ -11590,15 +11591,15 @@ function ji(t, e) {
11590
11591
  }
11591
11592
  return !1;
11592
11593
  }
11593
- function kS(t, e) {
11594
+ function kE(t, e) {
11594
11595
  return ji(t, e) ? !0 : t.evidence !== null && t.evidence.uploaded !== null && t.evidence.uploaded.Evidence !== null;
11595
11596
  }
11596
- function IS(t) {
11597
+ function IE(t) {
11597
11598
  return !t.evidence || !t.evidence.Evidence || t.evidence.Evidence === null || t.evidence.Evidence.trim() === "";
11598
11599
  }
11599
11600
  function Ca(t, e, n, r) {
11600
11601
  return t.filter((i) => {
11601
- if (e.showOnlyUnsettled && ji(i, n) || e.showOnlyUnreviewed && i.DateCompleted || e.showOnlyWithoutEvidence && !IS(i)) return !1;
11602
+ if (e.showOnlyUnsettled && ji(i, n) || e.showOnlyUnreviewed && i.DateCompleted || e.showOnlyWithoutEvidence && !IE(i)) return !1;
11602
11603
  if (e.searchTerm) {
11603
11604
  const o = e.searchTerm.toLowerCase(), s = (i.property_data?.PropertyOwnerFull ?? "").toLowerCase(), c = (i.property_data?.Address ?? "").toLowerCase(), u = (i.ParcelID ?? "").toLowerCase(), h = (i.SCARIndexNumber ?? "").toLowerCase();
11604
11605
  if (!s.includes(o) && !c.includes(o) && !u.includes(o) && !h.includes(o))
@@ -11615,7 +11616,7 @@ function Ca(t, e, n, r) {
11615
11616
  });
11616
11617
  }
11617
11618
  var Ft = /* @__PURE__ */ ((t) => (t.Skipped = "skipped", t.Inactive = "inactive", t.Active = "active", t.Incomplete = "incomplete", t.Loading = "loading", t))(Ft || {});
11618
- function MS({
11619
+ function ME({
11619
11620
  reviewed: t,
11620
11621
  reviewedCount: e,
11621
11622
  uploaded: n,
@@ -11663,7 +11664,7 @@ function MS({
11663
11664
  const v = h(y);
11664
11665
  return /* @__PURE__ */ ee(Le, { sx: { display: "contents" }, children: [
11665
11666
  /* @__PURE__ */ ee($e, { alignItems: "center", spacing: 0.5, sx: { position: "relative" }, children: [
11666
- s ? /* @__PURE__ */ w(Kr, { size: 28, thickness: 4, sx: { color: "#9e9e9e" } }) : m.status === "active" ? /* @__PURE__ */ w(So, { sx: { color: m.color, fontSize: 28 } }) : m.status === "incomplete" ? /* @__PURE__ */ w(Ph, { sx: { color: "#ff9800", fontSize: 28 } }) : v ? /* @__PURE__ */ w(Lh, { sx: { color: "#9e9e9e", fontSize: 28 } }) : /* @__PURE__ */ w(Eo, { sx: { color: "#f44336", fontSize: 28 } }),
11667
+ s ? /* @__PURE__ */ w(Kr, { size: 28, thickness: 4, sx: { color: "#9e9e9e" } }) : m.status === "active" ? /* @__PURE__ */ w(Eo, { sx: { color: m.color, fontSize: 28 } }) : m.status === "incomplete" ? /* @__PURE__ */ w(Ph, { sx: { color: "#ff9800", fontSize: 28 } }) : v ? /* @__PURE__ */ w(Lh, { sx: { color: "#9e9e9e", fontSize: 28 } }) : /* @__PURE__ */ w(So, { sx: { color: "#f44336", fontSize: 28 } }),
11667
11668
  /* @__PURE__ */ ee(
11668
11669
  we,
11669
11670
  {
@@ -11713,7 +11714,7 @@ function Ff({
11713
11714
  size: r = 30,
11714
11715
  spacing: i = 1
11715
11716
  }) {
11716
- const { allUsers: o } = Ot(), s = t ? o[t] : null, c = e ? o[e] : null, [u, h] = me(null), [f, m] = me(null), [y, v] = me(null), S = r, D = r, _ = Object.values(o).filter(
11717
+ const { allUsers: o } = Ot(), s = t ? o[t] : null, c = e ? o[e] : null, [u, h] = me(null), [f, m] = me(null), [y, v] = me(null), E = r, D = r, _ = Object.values(o).filter(
11717
11718
  ($) => $.UserLastName && !fl.includes($.UserLastName)
11718
11719
  ), R = _.filter(($) => cr.includes($.UserID)), x = _.filter(($) => !cr.includes($.UserID));
11719
11720
  function H($) {
@@ -11743,7 +11744,7 @@ function Ff({
11743
11744
  return /* @__PURE__ */ w(Ke, { title: ae, arrow: !0, children: /* @__PURE__ */ w(
11744
11745
  nr,
11745
11746
  {
11746
- sx: { width: D, height: S, cursor: n ? "pointer" : "default" },
11747
+ sx: { width: D, height: E, cursor: n ? "pointer" : "default" },
11747
11748
  onClick: K,
11748
11749
  className: "CCAvatarIcon",
11749
11750
  children: "?"
@@ -11755,7 +11756,7 @@ function Ff({
11755
11756
  {
11756
11757
  alt: `${$.UserFirstName} ${$.UserLastName}`,
11757
11758
  src: $.Picture,
11758
- sx: { width: D, height: S, cursor: n ? "pointer" : "default" },
11759
+ sx: { width: D, height: E, cursor: n ? "pointer" : "default" },
11759
11760
  onClick: K,
11760
11761
  className: "CCAvatarIcon"
11761
11762
  }
@@ -11768,7 +11769,7 @@ function Ff({
11768
11769
  sx: {
11769
11770
  ..._e.sx,
11770
11771
  width: D,
11771
- height: S,
11772
+ height: E,
11772
11773
  cursor: n ? "pointer" : "default"
11773
11774
  },
11774
11775
  onClick: K,
@@ -11878,7 +11879,7 @@ function Ff({
11878
11879
  )
11879
11880
  ] });
11880
11881
  }
11881
- function OS({
11882
+ function OE({
11882
11883
  firstChair: t,
11883
11884
  secondChair: e,
11884
11885
  onUpdateChair: n
@@ -11910,7 +11911,7 @@ function OS({
11910
11911
  }
11911
11912
  );
11912
11913
  }
11913
- function NS({
11914
+ function NE({
11914
11915
  selectedCourtDate: t,
11915
11916
  cases: e,
11916
11917
  isVillage: n,
@@ -11923,7 +11924,7 @@ function NS({
11923
11924
  return f === e.length ? { status: Ft.Active } : f > 0 ? { status: Ft.Incomplete, count: { done: f, total: e.length } } : { status: Ft.Inactive };
11924
11925
  }, [e]), c = zt(() => {
11925
11926
  if (!t || e.length === 0) return { status: Ft.Inactive };
11926
- const f = e.filter((m) => kS(m, n)).length;
11927
+ const f = e.filter((m) => kE(m, n)).length;
11927
11928
  return f === e.length ? { status: Ft.Active } : f > 0 ? { status: Ft.Incomplete, count: { done: f, total: e.length } } : { status: Ft.Inactive };
11928
11929
  }, [t, e, n]), u = zt(() => {
11929
11930
  if (e.length === 0) return { status: Ft.Inactive };
@@ -11941,7 +11942,7 @@ function NS({
11941
11942
  /* @__PURE__ */ w(Le, { children: /* @__PURE__ */ w(we, { variant: "h6", align: "center", gutterBottom: !0, children: `${o(t.MuniCode) || "Unknown Municipality"} (${t.MuniCode}) ${t.FirstChair || t.SecondChair ? "" : "- Unassigned"}` }) }),
11942
11943
  /* @__PURE__ */ ee(Rn, { gap: 3, alignItems: "stretch", children: [
11943
11944
  /* @__PURE__ */ w(
11944
- OS,
11945
+ OE,
11945
11946
  {
11946
11947
  firstChair: t.FirstChair,
11947
11948
  secondChair: t.SecondChair,
@@ -11967,9 +11968,9 @@ function NS({
11967
11968
  },
11968
11969
  m
11969
11970
  )) }),
11970
- /* @__PURE__ */ w(TS, { fileKey: t.NoticeFile }),
11971
+ /* @__PURE__ */ w(TE, { fileKey: t.NoticeFile }),
11971
11972
  /* @__PURE__ */ w(Rn, { gap: 3, children: /* @__PURE__ */ w(
11972
- MS,
11973
+ ME,
11973
11974
  {
11974
11975
  reviewed: s.status,
11975
11976
  reviewedCount: s.count,
@@ -12014,7 +12015,7 @@ function NS({
12014
12015
  ] })
12015
12016
  ] }) });
12016
12017
  }
12017
- function PS({
12018
+ function PE({
12018
12019
  filterCtx: t,
12019
12020
  setFilterCtx: e,
12020
12021
  onExportCsv: n
@@ -12066,13 +12067,13 @@ function PS({
12066
12067
  /* @__PURE__ */ w(rr, { children: /* @__PURE__ */ w(Ke, { title: "Export to CSV", arrow: !0, placement: "top", children: /* @__PURE__ */ w(_t, { value: "export", onClick: n, children: /* @__PURE__ */ w(Uh, { fontSize: "small" }) }) }) })
12067
12068
  ] });
12068
12069
  }
12069
- var yo = { exports: {} }, LS = yo.exports, gu;
12070
- function jS() {
12070
+ var yo = { exports: {} }, LE = yo.exports, gu;
12071
+ function jE() {
12071
12072
  return gu || (gu = 1, (function(t, e) {
12072
12073
  (function(n, r) {
12073
12074
  t.exports = r();
12074
- })(LS, (function() {
12075
- var n = 1e3, r = 6e4, i = 36e5, o = "millisecond", s = "second", c = "minute", u = "hour", h = "day", f = "week", m = "month", y = "quarter", v = "year", S = "date", D = "Invalid Date", _ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, R = /\[([^\]]+)]|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, x = { 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(ie) {
12075
+ })(LE, (function() {
12076
+ var n = 1e3, r = 6e4, i = 36e5, o = "millisecond", s = "second", c = "minute", u = "hour", h = "day", f = "week", m = "month", y = "quarter", v = "year", E = "date", D = "Invalid Date", _ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, R = /\[([^\]]+)]|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, x = { 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(ie) {
12076
12077
  var ne = ["th", "st", "nd", "rd"], X = ie % 100;
12077
12078
  return "[" + ie + (ne[(X - 20) % 10] || ne[X] || ne[0]) + "]";
12078
12079
  } }, H = function(ie, ne, X) {
@@ -12088,7 +12089,7 @@ function jS() {
12088
12089
  }, a: function(ie) {
12089
12090
  return ie < 0 ? Math.ceil(ie) || 0 : Math.floor(ie);
12090
12091
  }, p: function(ie) {
12091
- return { M: m, y: v, w: f, d: h, D: S, h: u, m: c, s, ms: o, Q: y }[ie] || String(ie || "").toLowerCase().replace(/s$/, "");
12092
+ return { M: m, y: v, w: f, d: h, D: E, h: u, m: c, s, ms: o, Q: y }[ie] || String(ie || "").toLowerCase().replace(/s$/, "");
12092
12093
  }, u: function(ie) {
12093
12094
  return ie === void 0;
12094
12095
  } }, I = "en", z = {};
@@ -12172,7 +12173,7 @@ function jS() {
12172
12173
  var ct = this.$locale().weekStart || 0, Pt = (Me < ct ? Me + 7 : Me) - ct;
12173
12174
  return Ie(pe ? tt - Pt : tt + (6 - Pt), We);
12174
12175
  case h:
12175
- case S:
12176
+ case E:
12176
12177
  return De(lt + "Hours", 0);
12177
12178
  case u:
12178
12179
  return De(lt + "Minutes", 1);
@@ -12186,10 +12187,10 @@ function jS() {
12186
12187
  }, ne.endOf = function(X) {
12187
12188
  return this.startOf(X, !1);
12188
12189
  }, ne.$set = function(X, oe) {
12189
- var Z, pe = ae.p(X), ye = "set" + (this.$u ? "UTC" : ""), Ie = (Z = {}, Z[h] = ye + "Date", Z[S] = ye + "Date", Z[m] = ye + "Month", Z[v] = ye + "FullYear", Z[u] = ye + "Hours", Z[c] = ye + "Minutes", Z[s] = ye + "Seconds", Z[o] = ye + "Milliseconds", Z)[pe], De = pe === h ? this.$D + (oe - this.$W) : oe;
12190
+ var Z, pe = ae.p(X), ye = "set" + (this.$u ? "UTC" : ""), Ie = (Z = {}, Z[h] = ye + "Date", Z[E] = ye + "Date", Z[m] = ye + "Month", Z[v] = ye + "FullYear", Z[u] = ye + "Hours", Z[c] = ye + "Minutes", Z[s] = ye + "Seconds", Z[o] = ye + "Milliseconds", Z)[pe], De = pe === h ? this.$D + (oe - this.$W) : oe;
12190
12191
  if (pe === m || pe === v) {
12191
- var Me = this.clone().set(S, 1);
12192
- Me.$d[Ie](De), Me.init(), this.$d = Me.set(S, Math.min(this.$D, Me.daysInMonth())).$d;
12192
+ var Me = this.clone().set(E, 1);
12193
+ Me.$d[Ie](De), Me.init(), this.$d = Me.set(E, Math.min(this.$D, Me.daysInMonth())).$d;
12193
12194
  } else Ie && this.$d[Ie](De);
12194
12195
  return this.init(), this;
12195
12196
  }, ne.set = function(X, oe) {
@@ -12332,7 +12333,7 @@ function jS() {
12332
12333
  return this.$d.toUTCString();
12333
12334
  }, ie;
12334
12335
  })(), je = _e.prototype;
12335
- return K.prototype = je, [["$ms", o], ["$s", s], ["$m", c], ["$H", u], ["$W", h], ["$M", m], ["$y", v], ["$D", S]].forEach((function(ie) {
12336
+ return K.prototype = je, [["$ms", o], ["$s", s], ["$m", c], ["$H", u], ["$W", h], ["$M", m], ["$y", v], ["$D", E]].forEach((function(ie) {
12336
12337
  je[ie[1]] = function(ne) {
12337
12338
  return this.$g(ne, ie[0], ie[1]);
12338
12339
  };
@@ -12344,8 +12345,8 @@ function jS() {
12344
12345
  }));
12345
12346
  })(yo)), yo.exports;
12346
12347
  }
12347
- var HS = jS();
12348
- const Aa = /* @__PURE__ */ yl(HS), US = xa(function({
12348
+ var HE = jE();
12349
+ const Aa = /* @__PURE__ */ yl(HE), UE = xa(function({
12349
12350
  cases: e,
12350
12351
  isFetchingCases: n,
12351
12352
  setClickedCase: r,
@@ -12355,7 +12356,7 @@ const Aa = /* @__PURE__ */ yl(HS), US = xa(function({
12355
12356
  isAdmin: c,
12356
12357
  onSelectedCasesAdjournmentChange: u
12357
12358
  }) {
12358
- const { filterCtx: h, setFilterCtx: f } = Oi(), [m, y] = me({ type: "include", ids: /* @__PURE__ */ new Set() }), [v, S] = me(null), [D, _] = me(null), R = [
12359
+ const { filterCtx: h, setFilterCtx: f } = Oi(), [m, y] = me({ type: "include", ids: /* @__PURE__ */ new Set() }), [v, E] = me(null), [D, _] = me(null), R = [
12359
12360
  {
12360
12361
  field: "scarIndexNumber",
12361
12362
  headerName: "Index",
@@ -12383,7 +12384,7 @@ const Aa = /* @__PURE__ */ yl(HS), US = xa(function({
12383
12384
  disableColumnMenu: !0,
12384
12385
  renderCell: (G) => {
12385
12386
  const K = G.value === "Yes";
12386
- return /* @__PURE__ */ w(Le, { display: "flex", alignItems: "center", justifyContent: "center", width: "100%", mt: 1.7, children: K ? /* @__PURE__ */ w(So, { sx: { color: "#4caf50", fontSize: 24 } }) : /* @__PURE__ */ w(Eo, { sx: { color: "#f44336", fontSize: 24 } }) });
12387
+ return /* @__PURE__ */ w(Le, { display: "flex", alignItems: "center", justifyContent: "center", width: "100%", mt: 1.7, children: K ? /* @__PURE__ */ w(Eo, { sx: { color: "#4caf50", fontSize: 24 } }) : /* @__PURE__ */ w(So, { sx: { color: "#f44336", fontSize: 24 } }) });
12387
12388
  }
12388
12389
  },
12389
12390
  {
@@ -12395,14 +12396,14 @@ const Aa = /* @__PURE__ */ yl(HS), US = xa(function({
12395
12396
  const K = G.row._case.evidence;
12396
12397
  if (!K || !K.Evidence)
12397
12398
  return /* @__PURE__ */ w(Ke, { title: "No evidence", children: /* @__PURE__ */ ee(Le, { display: "flex", alignItems: "center", gap: 0.5, width: "100%", mt: 1.7, children: [
12398
- /* @__PURE__ */ w(Eo, { sx: { color: "#f44336", fontSize: 20 } }),
12399
+ /* @__PURE__ */ w(So, { sx: { color: "#f44336", fontSize: 20 } }),
12399
12400
  /* @__PURE__ */ w(we, { variant: "body2", children: "None" })
12400
12401
  ] }) });
12401
12402
  const ae = (K.uploaded?.Evidence || K.Evidence).replace(/[[\]"]+/g, "");
12402
12403
  if (K.uploaded && K.uploaded.Evidence) {
12403
12404
  const je = K.uploaded.UploadDate ? new Date(K.uploaded.UploadDate).toLocaleDateString() : "unknown date";
12404
12405
  return /* @__PURE__ */ w(Ke, { title: `Uploaded on ${je}`, children: /* @__PURE__ */ ee(Le, { display: "flex", alignItems: "center", gap: 0.5, width: "100%", mt: 1.7, children: [
12405
- /* @__PURE__ */ w(So, { sx: { color: "#4caf50", fontSize: 20 } }),
12406
+ /* @__PURE__ */ w(Eo, { sx: { color: "#4caf50", fontSize: 20 } }),
12406
12407
  /* @__PURE__ */ w(we, { variant: "body2", children: ae })
12407
12408
  ] }) });
12408
12409
  }
@@ -12507,7 +12508,7 @@ const Aa = /* @__PURE__ */ yl(HS), US = xa(function({
12507
12508
  children: !n && e.length > 0 && /* @__PURE__ */ ee(Or, { children: [
12508
12509
  /* @__PURE__ */ ee($e, { children: [
12509
12510
  /* @__PURE__ */ w(Le, { mb: 2, children: /* @__PURE__ */ w(
12510
- PS,
12511
+ PE,
12511
12512
  {
12512
12513
  filterCtx: h,
12513
12514
  setFilterCtx: f,
@@ -12565,7 +12566,7 @@ const Aa = /* @__PURE__ */ yl(HS), US = xa(function({
12565
12566
  na,
12566
12567
  {
12567
12568
  size: "medium",
12568
- onClick: (G) => S(G.currentTarget),
12569
+ onClick: (G) => E(G.currentTarget),
12569
12570
  sx: { pointerEvents: "auto" },
12570
12571
  children: /* @__PURE__ */ w(Wh, { badgeContent: I, color: "primary", children: /* @__PURE__ */ w(Fh, {}) })
12571
12572
  }
@@ -12578,7 +12579,7 @@ const Aa = /* @__PURE__ */ yl(HS), US = xa(function({
12578
12579
  open: !!v,
12579
12580
  anchorEl: v,
12580
12581
  onClose: () => {
12581
- S(null), _(null);
12582
+ E(null), _(null);
12582
12583
  },
12583
12584
  anchorOrigin: { vertical: "top", horizontal: "center" },
12584
12585
  transformOrigin: { vertical: "bottom", horizontal: "center" },
@@ -12614,7 +12615,7 @@ const Aa = /* @__PURE__ */ yl(HS), US = xa(function({
12614
12615
  `Adjourn ${I} case${I !== 1 ? "s" : ""} to ${G}?
12615
12616
 
12616
12617
  Note: The determination for each selected case will be changed to OA.`
12617
- ) && (u?.(z, D?.toDate() ?? null), S(null), _(null));
12618
+ ) && (u?.(z, D?.toDate() ?? null), E(null), _(null));
12618
12619
  },
12619
12620
  children: "Apply"
12620
12621
  }
@@ -12631,12 +12632,12 @@ function zf(t) {
12631
12632
  function $f(t, e) {
12632
12633
  const n = zf(t);
12633
12634
  if (e) {
12634
- const r = BS(e);
12635
+ const r = BE(e);
12635
12636
  return `${n} ${r}:00`;
12636
12637
  }
12637
12638
  return n;
12638
12639
  }
12639
- function BS(t) {
12640
+ function BE(t) {
12640
12641
  if (/^\d{1,2}:\d{2}$/.test(t.trim())) {
12641
12642
  const [n, r] = t.trim().split(":");
12642
12643
  return `${n.padStart(2, "0")}:${r}`;
@@ -12694,7 +12695,7 @@ async function bo(t, e, n, r, i, o) {
12694
12695
  });
12695
12696
  return s.ok ? (console.log(`Court date ${t} updated successfully.`), !0) : (console.error(`Failed to update court date ${t}. Status: ${s.status}`), !1);
12696
12697
  }
12697
- async function FS(t, e, n) {
12698
+ async function FE(t, e, n) {
12698
12699
  if (!e) return !1;
12699
12700
  const r = await fetch(`${Yt}/court-dates/${t}${n ? `?type=${n}` : ""}`, {
12700
12701
  method: "DELETE",
@@ -12705,7 +12706,7 @@ async function FS(t, e, n) {
12705
12706
  });
12706
12707
  return r.ok ? (console.log(`Court date ${t} deleted successfully.`), !0) : (console.error(`Failed to delete court date ${t}. Status: ${r.status}`), !1);
12707
12708
  }
12708
- async function zS(t, e, n, r, i, o, s) {
12709
+ async function zE(t, e, n, r, i, o, s) {
12709
12710
  if (!n) return null;
12710
12711
  s || (s = wt.SCAR);
12711
12712
  const c = await fetch(`${Yt}/court-dates/create`, {
@@ -12730,7 +12731,7 @@ async function zS(t, e, n, r, i, o, s) {
12730
12731
  } else
12731
12732
  return console.error(`Failed to create court date. Status: ${c.status}`), null;
12732
12733
  }
12733
- async function $S(t, e, n) {
12734
+ async function $E(t, e, n) {
12734
12735
  if (!e) return null;
12735
12736
  const r = await fetch(`${Yt}/court-dates/${t}/edit-log`, {
12736
12737
  method: "GET",
@@ -12750,7 +12751,7 @@ async function $S(t, e, n) {
12750
12751
  } else
12751
12752
  return console.error(`Failed to fetch edit logs for court date ${t}. Status: ${r.status}`), null;
12752
12753
  }
12753
- const WS = [
12754
+ const WE = [
12754
12755
  {
12755
12756
  field: "DateUpdated",
12756
12757
  headerName: "Date",
@@ -12771,7 +12772,7 @@ const WS = [
12771
12772
  { field: "OldValue", headerName: "Old Value", width: 150, disableColumnMenu: !0 },
12772
12773
  { field: "NewValue", headerName: "New Value", width: 150, disableColumnMenu: !0 }
12773
12774
  ];
12774
- function VS({ selectedCourtDate: t }) {
12775
+ function VE({ selectedCourtDate: t }) {
12775
12776
  const [e, n] = me(null), [r, i] = me(!1), { apiKey: o, allUsers: s, allHearingOfficers: c } = Ot();
12776
12777
  function u(f, m) {
12777
12778
  if (m === null) return "—";
@@ -12791,7 +12792,7 @@ function VS({ selectedCourtDate: t }) {
12791
12792
  async function f() {
12792
12793
  if (!t) return;
12793
12794
  i(!0);
12794
- const m = await $S(t.CourtDateID, o);
12795
+ const m = await $E(t.CourtDateID, o);
12795
12796
  n(m), i(!1);
12796
12797
  }
12797
12798
  f();
@@ -12812,7 +12813,7 @@ function VS({ selectedCourtDate: t }) {
12812
12813
  ka,
12813
12814
  {
12814
12815
  rows: h,
12815
- columns: WS,
12816
+ columns: WE,
12816
12817
  className: "themed",
12817
12818
  autoHeight: !0,
12818
12819
  hideFooter: h.length <= 100,
@@ -12849,7 +12850,7 @@ function yu(t) {
12849
12850
  "aria-controls": `simple-tabpanel-${t}`
12850
12851
  };
12851
12852
  }
12852
- function qS({
12853
+ function qE({
12853
12854
  cases: t,
12854
12855
  isFetchingCases: e,
12855
12856
  setClickedCase: n,
@@ -12869,7 +12870,7 @@ function qS({
12869
12870
  /* @__PURE__ */ w(Ql, { label: "Logs", ...yu(1) })
12870
12871
  ] }),
12871
12872
  /* @__PURE__ */ w(vu, { value: h, index: 0, children: /* @__PURE__ */ w(
12872
- US,
12873
+ UE,
12873
12874
  {
12874
12875
  cases: t,
12875
12876
  isFetchingCases: e,
@@ -12881,10 +12882,10 @@ function qS({
12881
12882
  onSelectedCasesAdjournmentChange: c
12882
12883
  }
12883
12884
  ) }),
12884
- /* @__PURE__ */ w(vu, { value: h, index: 1, children: /* @__PURE__ */ w(VS, { selectedCourtDate: u }) })
12885
+ /* @__PURE__ */ w(vu, { value: h, index: 1, children: /* @__PURE__ */ w(VE, { selectedCourtDate: u }) })
12885
12886
  ] });
12886
12887
  }
12887
- function GS({
12888
+ function GE({
12888
12889
  modalMode: t,
12889
12890
  onDelete: e,
12890
12891
  onSave: n,
@@ -12981,7 +12982,7 @@ function ea({ isActive: t, children: e }) {
12981
12982
  }
12982
12983
  );
12983
12984
  }
12984
- function YS({
12985
+ function YE({
12985
12986
  editing: t,
12986
12987
  property: e,
12987
12988
  label: n,
@@ -13010,7 +13011,7 @@ function YS({
13010
13011
  }
13011
13012
  );
13012
13013
  }
13013
- function KS({
13014
+ function KE({
13014
13015
  edited: t,
13015
13016
  setEdited: e,
13016
13017
  enumObject: n,
@@ -13085,7 +13086,7 @@ function bu({
13085
13086
  }
13086
13087
  );
13087
13088
  }
13088
- function QS({
13089
+ function QE({
13089
13090
  label: t,
13090
13091
  edited: e,
13091
13092
  setEdited: n
@@ -13118,7 +13119,7 @@ function QS({
13118
13119
  }
13119
13120
  );
13120
13121
  }
13121
- function ZS({
13122
+ function ZE({
13122
13123
  value: t,
13123
13124
  onChange: e,
13124
13125
  onBlur: n,
@@ -13205,7 +13206,7 @@ function ZS({
13205
13206
  }
13206
13207
  );
13207
13208
  }
13208
- function XS({
13209
+ function XE({
13209
13210
  textFields: t,
13210
13211
  setTextFields: e,
13211
13212
  label: n,
@@ -13236,7 +13237,7 @@ function XS({
13236
13237
  });
13237
13238
  },
13238
13239
  []
13239
- ), S = Tn(() => {
13240
+ ), E = Tn(() => {
13240
13241
  const x = i ? [...i] : [];
13241
13242
  e(h, x);
13242
13243
  }, [h, i, e]), D = Tn(
@@ -13314,12 +13315,12 @@ function XS({
13314
13315
  }
13315
13316
  ),
13316
13317
  i && o && s ? /* @__PURE__ */ w(
13317
- ZS,
13318
+ ZE,
13318
13319
  {
13319
13320
  index: H,
13320
13321
  value: h[H] || "",
13321
13322
  onChange: (z) => v(H, z),
13322
- onBlur: S,
13323
+ onBlur: E,
13323
13324
  onPaste: (z) => R(H, z),
13324
13325
  isToggled: L || !1,
13325
13326
  onToggleChange: (z) => _(H, z),
@@ -13332,7 +13333,7 @@ function XS({
13332
13333
  label: `${I} ${H + 1}`,
13333
13334
  value: h[H] || "",
13334
13335
  onChange: (z) => v(H, z.target.value),
13335
- onBlur: S,
13336
+ onBlur: E,
13336
13337
  onPaste: (z) => R(H, z),
13337
13338
  fullWidth: !0
13338
13339
  },
@@ -13344,7 +13345,7 @@ function XS({
13344
13345
  )
13345
13346
  ] });
13346
13347
  }
13347
- function JS({
13348
+ function JE({
13348
13349
  notes: t,
13349
13350
  currentUserName: e,
13350
13351
  onChange: n
@@ -13382,7 +13383,7 @@ const eD = xa(function({
13382
13383
  modalMode: o,
13383
13384
  activeUser: s
13384
13385
  }) {
13385
- const { allUsers: c, isAdmin: u } = Ot(), { filterCtx: h } = Oi(), f = h.dateTypeFilter === "negotiations" ? wt.NEGOTIATIONS : wt.SCAR, [m, y] = me(r.map(() => !1)), [v, S] = me(0), D = v >= 5, _ = c[s]?.UserFirstName || "Unknown";
13386
+ const { allUsers: c, isAdmin: u } = Ot(), { filterCtx: h } = Oi(), f = h.dateTypeFilter === "negotiations" ? wt.NEGOTIATIONS : wt.SCAR, [m, y] = me(r.map(() => !1)), [v, E] = me(0), D = v >= 5, _ = c[s]?.UserFirstName || "Unknown";
13386
13387
  be(() => {
13387
13388
  if (m.length !== r.length) {
13388
13389
  const L = r.map((I, z) => m[z] || !1);
@@ -13469,7 +13470,7 @@ const eD = xa(function({
13469
13470
  )
13470
13471
  ] }),
13471
13472
  /* @__PURE__ */ w(Rn, { gap: 7, children: /* @__PURE__ */ w(
13472
- JS,
13473
+ JE,
13473
13474
  {
13474
13475
  notes: e.Notes,
13475
13476
  currentUserName: _,
@@ -13489,11 +13490,11 @@ const eD = xa(function({
13489
13490
  Le,
13490
13491
  {
13491
13492
  onClick: () => {
13492
- u && o === Ye.EDIT && !D && S((L) => L + 1);
13493
+ u && o === Ye.EDIT && !D && E((L) => L + 1);
13493
13494
  },
13494
13495
  sx: { cursor: u && o === Ye.EDIT && !D ? "pointer" : "default", width: "100%" },
13495
13496
  children: /* @__PURE__ */ w(
13496
- YS,
13497
+ YE,
13497
13498
  {
13498
13499
  editing: e,
13499
13500
  property: "CourtDate",
@@ -13586,13 +13587,13 @@ const eD = xa(function({
13586
13587
  }
13587
13588
  }
13588
13589
  ),
13589
- /* @__PURE__ */ w(QS, { label: "Hearing Officer", edited: e, setEdited: R })
13590
+ /* @__PURE__ */ w(QE, { label: "Hearing Officer", edited: e, setEdited: R })
13590
13591
  ]
13591
13592
  }
13592
13593
  ),
13593
13594
  /* @__PURE__ */ ee(Rn, { gap: 7, children: [
13594
13595
  /* @__PURE__ */ w(
13595
- KS,
13596
+ KE,
13596
13597
  {
13597
13598
  edited: e,
13598
13599
  setEdited: R,
@@ -13622,7 +13623,7 @@ const eD = xa(function({
13622
13623
  ] }),
13623
13624
  /* @__PURE__ */ w(Ms, {}),
13624
13625
  /* @__PURE__ */ w(Le, { children: /* @__PURE__ */ w(
13625
- XS,
13626
+ XE,
13626
13627
  {
13627
13628
  label: "Case IDs",
13628
13629
  textFields: x,
@@ -13671,7 +13672,7 @@ function ta({
13671
13672
  label: "Uploaded",
13672
13673
  size: "small",
13673
13674
  color: "success",
13674
- icon: /* @__PURE__ */ w(So, {}),
13675
+ icon: /* @__PURE__ */ w(Eo, {}),
13675
13676
  sx: { height: 20, fontSize: "0.7rem" }
13676
13677
  }
13677
13678
  )
@@ -13690,17 +13691,17 @@ function tD({ evidence: t }) {
13690
13691
  const n = t?.uploaded?.Evidence, r = (v) => {
13691
13692
  if (!v) return [];
13692
13693
  try {
13693
- const S = JSON.parse(v);
13694
- return Array.isArray(S) ? S.map((D) => D.toLowerCase()) : [];
13694
+ const E = JSON.parse(v);
13695
+ return Array.isArray(E) ? E.map((D) => D.toLowerCase()) : [];
13695
13696
  } catch {
13696
- return v.toLowerCase().split(",").map((S) => S.trim());
13697
+ return v.toLowerCase().split(",").map((E) => E.trim());
13697
13698
  }
13698
13699
  }, i = r(n ? t.uploaded.Evidence : t?.Evidence), o = i.some((v) => v.includes("sales") || v.includes("unequal")), s = i.some((v) => v.includes("excessive") || v.includes("equity")), c = o || s, u = t?.uploaded?.UploadDate ? new Date(t.uploaded.UploadDate).toLocaleDateString() : "", h = t?.CreatedDate ? new Date(t.CreatedDate).toLocaleDateString() : "", f = t?.User ? e[t?.User] : null, m = f ? `${f.UserFirstName} ${f.UserLastName}` : "", y = (v) => {
13699
13700
  if (!t?.ParcelID || !t?.Year) return "";
13700
13701
  const D = {
13701
13702
  sales: "sales",
13702
13703
  equity: "equity"
13703
- }[v], _ = sE, R = `residential/evidence/${t.Year}/${t.ParcelID}/${D}_comps_fnma.pdf`;
13704
+ }[v], _ = sS, R = `residential/evidence/${t.Year}/${t.ParcelID}/${D}_comps_fnma.pdf`;
13704
13705
  return `${_}/${R}`;
13705
13706
  };
13706
13707
  return /* @__PURE__ */ ee($e, { spacing: 1, direction: "column", children: [
@@ -13745,7 +13746,7 @@ const nD = xa(function({
13745
13746
  VillageSCARIndexNumber: m,
13746
13747
  SCARDeterminationAction: y,
13747
13748
  VillageSCARDeterminationAction: v,
13748
- SCARSettleDate: S,
13749
+ SCARSettleDate: E,
13749
13750
  SCARFileDate: D,
13750
13751
  VillageSCARSettleDate: _,
13751
13752
  VillageSCARFileDate: R,
@@ -13795,7 +13796,7 @@ const nD = xa(function({
13795
13796
  /* @__PURE__ */ w(Le, { children: /* @__PURE__ */ w(
13796
13797
  "img",
13797
13798
  {
13798
- src: `${iE}/${s}.jpg`,
13799
+ src: `${iS}/${s}.jpg`,
13799
13800
  alt: `property ${s} photo`,
13800
13801
  height: 120,
13801
13802
  width: 140,
@@ -13991,7 +13992,7 @@ const nD = xa(function({
13991
13992
  children: "SCAR Settle Date"
13992
13993
  }
13993
13994
  ),
13994
- /* @__PURE__ */ w(we, { variant: "body1", fontWeight: 500, mt: 0.25, children: S ? new Date(S).toLocaleDateString() : "—" })
13995
+ /* @__PURE__ */ w(we, { variant: "body1", fontWeight: 500, mt: 0.25, children: E ? new Date(E).toLocaleDateString() : "—" })
13995
13996
  ] }) }) })
13996
13997
  ] }),
13997
13998
  n && /* @__PURE__ */ w(bt, { size: { xs: 12, sm: 6 }, children: /* @__PURE__ */ w(An, { elevation: 0, sx: { height: "100%" }, children: /* @__PURE__ */ ee(_n, { sx: { py: 1, px: 1.5, "&:last-child": { pb: 1 } }, children: [
@@ -14152,7 +14153,7 @@ function lD({
14152
14153
  z || (h(e), console.error("Failed to update chair assignment, reverted"));
14153
14154
  });
14154
14155
  }
14155
- async function S(x, H) {
14156
+ async function E(x, H) {
14156
14157
  if (!e) return;
14157
14158
  const L = Wt(e), I = new Set(x.map(($) => $.SCARIndexNumber)), z = n.map(
14158
14159
  ($) => I.has($.SCARIndexNumber) ? { ...$, AdjournedDate: H } : $
@@ -14170,7 +14171,7 @@ function lD({
14170
14171
  alert(`Validation failed: ${x.message}`);
14171
14172
  return;
14172
14173
  }
14173
- const H = await zS(
14174
+ const H = await zE(
14174
14175
  r.CourtDate,
14175
14176
  r.MuniCode,
14176
14177
  c,
@@ -14207,9 +14208,9 @@ function lD({
14207
14208
  }
14208
14209
  async function R() {
14209
14210
  if (!window.confirm("Are you sure you want to delete this court date?")) return;
14210
- await FS(e.CourtDateID, c, e.DateType ?? void 0), h(e, !0), e.CourtDateID && m(Wt(e)), s(!1);
14211
+ await FE(e.CourtDateID, c, e.DateType ?? void 0), h(e, !0), e.CourtDateID && m(Wt(e)), s(!1);
14211
14212
  }
14212
- return { handleSave: _, handleDelete: R, handleViewUpdateChair: v, handleSelectedCasesAdjournmentChange: S };
14213
+ return { handleSave: _, handleDelete: R, handleViewUpdateChair: v, handleSelectedCasesAdjournmentChange: E };
14213
14214
  }
14214
14215
  function cD({
14215
14216
  modalIsOpen: t,
@@ -14221,7 +14222,7 @@ function cD({
14221
14222
  selectedCases: s,
14222
14223
  isFetchingCases: c
14223
14224
  }) {
14224
- const { getTownshipName: u, isAdmin: h, activeUser: f } = Ot(), { editedData: m, setEditedData: y, editedCases: v, setEditedCases: S, clickedCase: D, setClickedCase: _ } = RS({
14225
+ const { getTownshipName: u, isAdmin: h, activeUser: f } = Ot(), { editedData: m, setEditedData: y, editedCases: v, setEditedCases: E, clickedCase: D, setClickedCase: _ } = RE({
14225
14226
  modalIsOpen: t,
14226
14227
  modalMode: e,
14227
14228
  setModalMode: n,
@@ -14270,7 +14271,7 @@ function cD({
14270
14271
  /* @__PURE__ */ w(Oh, { dividers: !0, className: "themed", sx: { position: "relative" }, children: /* @__PURE__ */ ee(Yh, { dateAdapter: Qh, children: [
14271
14272
  /* @__PURE__ */ ee(ea, { isActive: e === Ye.DETAILS, children: [
14272
14273
  /* @__PURE__ */ w(
14273
- NS,
14274
+ NE,
14274
14275
  {
14275
14276
  selectedCourtDate: i,
14276
14277
  cases: s,
@@ -14280,7 +14281,7 @@ function cD({
14280
14281
  }
14281
14282
  ),
14282
14283
  /* @__PURE__ */ w(
14283
- qS,
14284
+ qE,
14284
14285
  {
14285
14286
  cases: s,
14286
14287
  isFetchingCases: c,
@@ -14300,7 +14301,7 @@ function cD({
14300
14301
  edited: m,
14301
14302
  setEdited: y,
14302
14303
  editedCases: v,
14303
- setEditedCases: S,
14304
+ setEditedCases: E,
14304
14305
  modalMode: e,
14305
14306
  activeUser: f
14306
14307
  }
@@ -14314,7 +14315,7 @@ function cD({
14314
14315
  ) })
14315
14316
  ] }) }),
14316
14317
  /* @__PURE__ */ w(
14317
- GS,
14318
+ GE,
14318
14319
  {
14319
14320
  modalMode: e,
14320
14321
  onDelete: H,
@@ -14382,7 +14383,7 @@ function uD({
14382
14383
  L && !ji(z, ur(x.MuniCode)) && (L = !1), I && z.DateCompleted === null && (I = !1);
14383
14384
  return I ? H.length > 0 && L ? "Settled/Decision" : x.Lifecycle === $t.UPLOADED ? "NYSCEF Uploaded" : y(x) ? "Adjourned (No Date)" : x.Lifecycle === $t.ADJOURNED ? "Adjourned" : x.Lifecycle === $t.SCHEDULED || x.Lifecycle === $t.ASSIGNED ? "Scheduled" : "Blank" : "Reviewing";
14384
14385
  }
14385
- function S(x) {
14386
+ function E(x) {
14386
14387
  return x.Type === It.IN_PERSON ? "In Person" : x.Type === It.UNKNOWN ? "Unknown" : "Virtual";
14387
14388
  }
14388
14389
  const D = {
@@ -14544,7 +14545,7 @@ function uD({
14544
14545
  status: v(x),
14545
14546
  assigned: { user1ID: x.FirstChair, user2ID: x.SecondChair, courtDateId: x.CourtDateID },
14546
14547
  uploadDeadline: x.UploadDeadline,
14547
- location: S(x)
14548
+ location: E(x)
14548
14549
  }, I = [];
14549
14550
  if (u.showAdjournmentDates) {
14550
14551
  const Q = /* @__PURE__ */ new Map();
@@ -14595,9 +14596,9 @@ function uD({
14595
14596
  }
14596
14597
  ) });
14597
14598
  }
14598
- var wo = { exports: {} }, dD = wo.exports, Eu;
14599
+ var wo = { exports: {} }, dD = wo.exports, Su;
14599
14600
  function fD() {
14600
- return Eu || (Eu = 1, (function(t, e) {
14601
+ return Su || (Su = 1, (function(t, e) {
14601
14602
  (function(n, r) {
14602
14603
  t.exports = r();
14603
14604
  })(dD, function() {
@@ -14617,7 +14618,7 @@ function fD() {
14617
14618
  for (var p, g = 0, b = l.length; g < b; g++) !p && g in l || ((p = p || Array.prototype.slice.call(l, 0, g))[g] = l[g]);
14618
14619
  return a.concat(p || Array.prototype.slice.call(l));
14619
14620
  }
14620
- var o = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : gS, s = Object.keys, c = Array.isArray;
14621
+ var o = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : gE, s = Object.keys, c = Array.isArray;
14621
14622
  function u(a, l) {
14622
14623
  return typeof l != "object" || s(l).forEach(function(d) {
14623
14624
  a[d] = l[d];
@@ -14630,16 +14631,16 @@ function fD() {
14630
14631
  }
14631
14632
  function y(a, l) {
14632
14633
  typeof l == "function" && (l = l(h(a))), (typeof Reflect > "u" ? s : Reflect.ownKeys)(l).forEach(function(d) {
14633
- S(a, d, l[d]);
14634
+ E(a, d, l[d]);
14634
14635
  });
14635
14636
  }
14636
14637
  var v = Object.defineProperty;
14637
- function S(a, l, d, p) {
14638
+ function E(a, l, d, p) {
14638
14639
  v(a, l, u(d && m(d, "get") && typeof d.get == "function" ? { get: d.get, set: d.set, configurable: !0 } : { value: d, configurable: !0, writable: !0 }, p));
14639
14640
  }
14640
14641
  function D(a) {
14641
14642
  return { from: function(l) {
14642
- return a.prototype = Object.create(l.prototype), S(a.prototype, "constructor", a), { extend: y.bind(null, a.prototype) };
14643
+ return a.prototype = Object.create(l.prototype), E(a.prototype, "constructor", a), { extend: y.bind(null, a.prototype) };
14643
14644
  } };
14644
14645
  }
14645
14646
  var _ = Object.getOwnPropertyDescriptor, R = [].slice;
@@ -14665,10 +14666,10 @@ function fD() {
14665
14666
  }
14666
14667
  return d;
14667
14668
  }
14668
- var E = l.indexOf(".");
14669
- if (E !== -1) {
14670
- var A = a[l.substr(0, E)];
14671
- return A == null ? void 0 : z(A, l.substr(E + 1));
14669
+ var S = l.indexOf(".");
14670
+ if (S !== -1) {
14671
+ var A = a[l.substr(0, S)];
14672
+ return A == null ? void 0 : z(A, l.substr(S + 1));
14672
14673
  }
14673
14674
  }
14674
14675
  function Q(a, l, d) {
@@ -14676,8 +14677,8 @@ function fD() {
14676
14677
  L(typeof d != "string" && "length" in d);
14677
14678
  for (var p = 0, g = l.length; p < g; ++p) Q(a, l[p], d[p]);
14678
14679
  } else {
14679
- var b, E, A = l.indexOf(".");
14680
- A !== -1 ? (b = l.substr(0, A), (E = l.substr(A + 1)) === "" ? d === void 0 ? c(a) && !isNaN(parseInt(b)) ? a.splice(b, 1) : delete a[b] : a[b] = d : Q(A = !(A = a[b]) || !m(a, b) ? a[b] = {} : A, E, d)) : d === void 0 ? c(a) && !isNaN(parseInt(l)) ? a.splice(l, 1) : delete a[l] : a[l] = d;
14680
+ var b, S, A = l.indexOf(".");
14681
+ A !== -1 ? (b = l.substr(0, A), (S = l.substr(A + 1)) === "" ? d === void 0 ? c(a) && !isNaN(parseInt(b)) ? a.splice(b, 1) : delete a[b] : a[b] = d : Q(A = !(A = a[b]) || !m(a, b) ? a[b] = {} : A, S, d)) : d === void 0 ? c(a) && !isNaN(parseInt(l)) ? a.splice(l, 1) : delete a[l] : a[l] = d;
14681
14682
  }
14682
14683
  }
14683
14684
  function $(a) {
@@ -14708,8 +14709,8 @@ function fD() {
14708
14709
  for (var g = 0, b = d.length; g < b; ++g) p.push(l(d[g]));
14709
14710
  } else if (ae.has(d.constructor)) p = d;
14710
14711
  else {
14711
- var E, A = h(d);
14712
- for (E in p = A === Object.prototype ? {} : Object.create(A), _e.set(d, p), d) m(d, E) && (p[E] = l(d[E]));
14712
+ var S, A = h(d);
14713
+ for (S in p = A === Object.prototype ? {} : Object.create(A), _e.set(d, p), d) m(d, S) && (p[S] = l(d[S]));
14713
14714
  }
14714
14715
  return p;
14715
14716
  })(a), _e = null, a;
@@ -14813,7 +14814,7 @@ function fD() {
14813
14814
  return p && (this.onsuccess = this.onsuccess ? Rt(p, this.onsuccess) : p), g && (this.onerror = this.onerror ? Rt(g, this.onerror) : g), b !== void 0 ? b : d;
14814
14815
  };
14815
14816
  }
14816
- function Et(a, l) {
14817
+ function St(a, l) {
14817
14818
  return a === xe ? l : function() {
14818
14819
  a.apply(this, arguments);
14819
14820
  var d = this.onsuccess, p = this.onerror;
@@ -14871,10 +14872,10 @@ function fD() {
14871
14872
  g(function(b) {
14872
14873
  if (p._state === null) {
14873
14874
  if (b === p) throw new TypeError("A promise cannot be resolved with itself.");
14874
- var E = p._lib && Ee();
14875
+ var S = p._lib && Se();
14875
14876
  b && typeof b.then == "function" ? d(p, function(A, k) {
14876
14877
  b instanceof ue ? b._then(A, k) : b.then(A, k);
14877
- }) : (p._state = !0, p._value = b, Zn(p)), E && ke();
14878
+ }) : (p._state = !0, p._value = b, Zn(p)), S && ke();
14878
14879
  }
14879
14880
  }, wn.bind(null, p));
14880
14881
  } catch (b) {
@@ -14885,14 +14886,14 @@ function fD() {
14885
14886
  var bn = { get: function() {
14886
14887
  var a = he, l = Tt;
14887
14888
  function d(p, g) {
14888
- var b = this, E = !a.global && (a !== he || l !== Tt), A = E && !ze(), k = new ue(function(M, j) {
14889
- Xn(b, new Fn(ci(p, a, E, A), ci(g, a, E, A), M, j, a));
14889
+ var b = this, S = !a.global && (a !== he || l !== Tt), A = S && !ze(), k = new ue(function(M, j) {
14890
+ Xn(b, new Fn(ci(p, a, S, A), ci(g, a, S, A), M, j, a));
14890
14891
  });
14891
14892
  return this._consoleTask && (k._consoleTask = this._consoleTask), k;
14892
14893
  }
14893
14894
  return d.prototype = mn, d;
14894
14895
  }, set: function(a) {
14895
- S(this, "then", a && a.prototype === mn ? bn : { get: function() {
14896
+ E(this, "then", a && a.prototype === mn ? bn : { get: function() {
14896
14897
  return a;
14897
14898
  }, set: bn.set });
14898
14899
  } };
@@ -14901,7 +14902,7 @@ function fD() {
14901
14902
  }
14902
14903
  function wn(a, l) {
14903
14904
  var d, p;
14904
- yn.push(l), a._state === null && (d = a._lib && Ee(), l = an(l), a._state = !1, a._value = l, p = a, Zt.some(function(g) {
14905
+ yn.push(l), a._state === null && (d = a._lib && Se(), l = an(l), a._state = !1, a._value = l, p = a, Zt.some(function(g) {
14905
14906
  return g._value === p._value;
14906
14907
  }) || Zt.push(p), Zn(a), d && ke());
14907
14908
  }
@@ -14927,7 +14928,7 @@ function fD() {
14927
14928
  !l._state && yn.length && (yn = []), p = Be && l._consoleTask ? l._consoleTask.run(function() {
14928
14929
  return a(g);
14929
14930
  }) : a(g), l._state || yn.indexOf(g) !== -1 || (function(b) {
14930
- for (var E = Zt.length; E; ) if (Zt[--E]._value === b._value) return Zt.splice(E, 1);
14931
+ for (var S = Zt.length; S; ) if (Zt[--S]._value === b._value) return Zt.splice(S, 1);
14931
14932
  })(l), d.resolve(p);
14932
14933
  } catch (b) {
14933
14934
  d.reject(b);
@@ -14936,11 +14937,11 @@ function fD() {
14936
14937
  }
14937
14938
  }
14938
14939
  function vt() {
14939
- Sn(Xe, function() {
14940
- Ee() && ke();
14940
+ En(Xe, function() {
14941
+ Se() && ke();
14941
14942
  });
14942
14943
  }
14943
- function Ee() {
14944
+ function Se() {
14944
14945
  var a = on;
14945
14946
  return sn = on = !1, a;
14946
14947
  }
@@ -14967,13 +14968,13 @@ function fD() {
14967
14968
  function J(a, l) {
14968
14969
  var d = he;
14969
14970
  return function() {
14970
- var p = Ee(), g = he;
14971
+ var p = Se(), g = he;
14971
14972
  try {
14972
- return En(d, !0), a.apply(this, arguments);
14973
+ return Sn(d, !0), a.apply(this, arguments);
14973
14974
  } catch (b) {
14974
14975
  l && l(b);
14975
14976
  } finally {
14976
- En(g, !1), p && ke();
14977
+ Sn(g, !1), p && ke();
14977
14978
  }
14978
14979
  };
14979
14980
  }
@@ -15005,14 +15006,14 @@ function fD() {
15005
15006
  }, a);
15006
15007
  d.then(p, g).finally(clearTimeout.bind(null, b));
15007
15008
  }) : this;
15008
- } }), typeof Symbol < "u" && Symbol.toStringTag && S(ue.prototype, Symbol.toStringTag, "Dexie.Promise"), Xe.env = li(), y(ue, { all: function() {
15009
+ } }), typeof Symbol < "u" && Symbol.toStringTag && E(ue.prototype, Symbol.toStringTag, "Dexie.Promise"), Xe.env = li(), y(ue, { all: function() {
15009
15010
  var a = ye.apply(null, arguments).map(un);
15010
15011
  return new ue(function(l, d) {
15011
15012
  a.length === 0 && l([]);
15012
15013
  var p = a.length;
15013
15014
  a.forEach(function(g, b) {
15014
- return ue.resolve(g).then(function(E) {
15015
- a[b] = E, --p || l(a);
15015
+ return ue.resolve(g).then(function(S) {
15016
+ a[b] = S, --p || l(a);
15016
15017
  }, d);
15017
15018
  });
15018
15019
  });
@@ -15033,7 +15034,7 @@ function fD() {
15033
15034
  return he = a;
15034
15035
  } }, totalEchoes: { get: function() {
15035
15036
  return Tt;
15036
- } }, newPSD: nt, usePSD: Sn, scheduler: { get: function() {
15037
+ } }, newPSD: nt, usePSD: En, scheduler: { get: function() {
15037
15038
  return rn;
15038
15039
  }, set: function(a) {
15039
15040
  rn = a;
@@ -15044,8 +15045,8 @@ function fD() {
15044
15045
  } }, follow: function(a, l) {
15045
15046
  return new ue(function(d, p) {
15046
15047
  return nt(function(g, b) {
15047
- var E = he;
15048
- E.unhandleds = [], E.onunhandled = b, E.finalize = Rt(function() {
15048
+ var S = he;
15049
+ S.unhandleds = [], S.onunhandled = b, S.finalize = Rt(function() {
15049
15050
  var A, k = this;
15050
15051
  A = function() {
15051
15052
  k.unhandleds.length === 0 ? g() : b(k.unhandleds[0]);
@@ -15054,47 +15055,47 @@ function fD() {
15054
15055
  }), ++Ht, rn(function() {
15055
15056
  --Ht == 0 && yt();
15056
15057
  }, []);
15057
- }, E.finalize), a();
15058
+ }, S.finalize), a();
15058
15059
  }, l, d, p);
15059
15060
  });
15060
- } }), jt && (jt.allSettled && S(ue, "allSettled", function() {
15061
+ } }), jt && (jt.allSettled && E(ue, "allSettled", function() {
15061
15062
  var a = ye.apply(null, arguments).map(un);
15062
15063
  return new ue(function(l) {
15063
15064
  a.length === 0 && l([]);
15064
15065
  var d = a.length, p = new Array(d);
15065
15066
  a.forEach(function(g, b) {
15066
- return ue.resolve(g).then(function(E) {
15067
- return p[b] = { status: "fulfilled", value: E };
15068
- }, function(E) {
15069
- return p[b] = { status: "rejected", reason: E };
15067
+ return ue.resolve(g).then(function(S) {
15068
+ return p[b] = { status: "fulfilled", value: S };
15069
+ }, function(S) {
15070
+ return p[b] = { status: "rejected", reason: S };
15070
15071
  }).then(function() {
15071
15072
  return --d || l(p);
15072
15073
  });
15073
15074
  });
15074
15075
  });
15075
- }), jt.any && typeof AggregateError < "u" && S(ue, "any", function() {
15076
+ }), jt.any && typeof AggregateError < "u" && E(ue, "any", function() {
15076
15077
  var a = ye.apply(null, arguments).map(un);
15077
15078
  return new ue(function(l, d) {
15078
15079
  a.length === 0 && d(new AggregateError([]));
15079
15080
  var p = a.length, g = new Array(p);
15080
- a.forEach(function(b, E) {
15081
+ a.forEach(function(b, S) {
15081
15082
  return ue.resolve(b).then(function(A) {
15082
15083
  return l(A);
15083
15084
  }, function(A) {
15084
- g[E] = A, --p || d(new AggregateError(g));
15085
+ g[S] = A, --p || d(new AggregateError(g));
15085
15086
  });
15086
15087
  });
15087
15088
  });
15088
15089
  }), jt.withResolvers && (ue.withResolvers = jt.withResolvers));
15089
- var ge = { awaits: 0, echoes: 0, id: 0 }, Se = 0, Fe = [], ot = 0, Tt = 0, Jt = 0;
15090
+ var ge = { awaits: 0, echoes: 0, id: 0 }, Ee = 0, Fe = [], ot = 0, Tt = 0, Jt = 0;
15090
15091
  function nt(a, l, d, p) {
15091
15092
  var g = he, b = Object.create(g);
15092
15093
  return b.parent = g, b.ref = 0, b.global = !1, b.id = ++Jt, Xe.env, b.env = Qt ? { Promise: ue, PromiseProp: { value: ue, configurable: !0, writable: !0 }, all: ue.all, race: ue.race, allSettled: ue.allSettled, any: ue.any, resolve: ue.resolve, reject: ue.reject } : {}, l && u(b, l), ++g.ref, b.finalize = function() {
15093
15094
  --this.parent.ref || this.parent.finalize();
15094
- }, p = Sn(b, a, d, p), b.ref === 0 && b.finalize(), p;
15095
+ }, p = En(b, a, d, p), b.ref === 0 && b.finalize(), p;
15095
15096
  }
15096
15097
  function ft() {
15097
- return ge.id || (ge.id = ++Se), ++ge.awaits, ge.echoes += Bn, ge.id;
15098
+ return ge.id || (ge.id = ++Ee), ++ge.awaits, ge.echoes += Bn, ge.id;
15098
15099
  }
15099
15100
  function ze() {
15100
15101
  return !!ge.awaits && (--ge.awaits == 0 && (ge.id = 0), ge.echoes = ge.awaits * Bn, !0);
@@ -15108,34 +15109,34 @@ function fD() {
15108
15109
  }
15109
15110
  function os() {
15110
15111
  var a = Fe[Fe.length - 1];
15111
- Fe.pop(), En(a, !1);
15112
+ Fe.pop(), Sn(a, !1);
15112
15113
  }
15113
- function En(a, l) {
15114
+ function Sn(a, l) {
15114
15115
  var d, p = he;
15115
15116
  (l ? !ge.echoes || ot++ && a === he : !ot || --ot && a === he) || queueMicrotask(l ? (function(g) {
15116
- ++Tt, ge.echoes && --ge.echoes != 0 || (ge.echoes = ge.awaits = ge.id = 0), Fe.push(he), En(g, !0);
15117
+ ++Tt, ge.echoes && --ge.echoes != 0 || (ge.echoes = ge.awaits = ge.id = 0), Fe.push(he), Sn(g, !0);
15117
15118
  }).bind(null, a) : os), a !== he && (he = a, p === Xe && (Xe.env = li()), Qt && (d = Xe.env.Promise, l = a.env, (p.global || a.global) && (Object.defineProperty(o, "Promise", l.PromiseProp), d.all = l.all, d.race = l.race, d.resolve = l.resolve, d.reject = l.reject, l.allSettled && (d.allSettled = l.allSettled), l.any && (d.any = l.any))));
15118
15119
  }
15119
15120
  function li() {
15120
15121
  var a = o.Promise;
15121
15122
  return Qt ? { Promise: a, PromiseProp: Object.getOwnPropertyDescriptor(o, "Promise"), all: a.all, race: a.race, allSettled: a.allSettled, any: a.any, resolve: a.resolve, reject: a.reject } : {};
15122
15123
  }
15123
- function Sn(a, l, d, p, g) {
15124
+ function En(a, l, d, p, g) {
15124
15125
  var b = he;
15125
15126
  try {
15126
- return En(a, !0), l(d, p, g);
15127
+ return Sn(a, !0), l(d, p, g);
15127
15128
  } finally {
15128
- En(b, !1);
15129
+ Sn(b, !1);
15129
15130
  }
15130
15131
  }
15131
15132
  function ci(a, l, d, p) {
15132
15133
  return typeof a != "function" ? a : function() {
15133
15134
  var g = he;
15134
- d && ft(), En(l, !0);
15135
+ d && ft(), Sn(l, !0);
15135
15136
  try {
15136
15137
  return a.apply(this, arguments);
15137
15138
  } finally {
15138
- En(g, !1), p && queueMicrotask(ze);
15139
+ Sn(g, !1), p && queueMicrotask(ze);
15139
15140
  }
15140
15141
  };
15141
15142
  }
@@ -15162,7 +15163,7 @@ function fD() {
15162
15163
  }
15163
15164
  function He(a, l) {
15164
15165
  try {
15165
- var d = El(a), p = El(l);
15166
+ var d = Sl(a), p = Sl(l);
15166
15167
  if (d !== p) return d === "Array" ? 1 : p === "Array" ? -1 : d === "binary" ? 1 : p === "binary" ? -1 : d === "string" ? 1 : p === "string" ? -1 : d === "Date" ? 1 : p !== "Date" ? NaN : -1;
15167
15168
  switch (d) {
15168
15169
  case "number":
@@ -15171,27 +15172,27 @@ function fD() {
15171
15172
  return l < a ? 1 : a < l ? -1 : 0;
15172
15173
  case "binary":
15173
15174
  return (function(g, b) {
15174
- for (var E = g.length, A = b.length, k = E < A ? E : A, M = 0; M < k; ++M) if (g[M] !== b[M]) return g[M] < b[M] ? -1 : 1;
15175
- return E === A ? 0 : E < A ? -1 : 1;
15176
- })(Sl(a), Sl(l));
15175
+ for (var S = g.length, A = b.length, k = S < A ? S : A, M = 0; M < k; ++M) if (g[M] !== b[M]) return g[M] < b[M] ? -1 : 1;
15176
+ return S === A ? 0 : S < A ? -1 : 1;
15177
+ })(El(a), El(l));
15177
15178
  case "Array":
15178
15179
  return (function(g, b) {
15179
- for (var E = g.length, A = b.length, k = E < A ? E : A, M = 0; M < k; ++M) {
15180
+ for (var S = g.length, A = b.length, k = S < A ? S : A, M = 0; M < k; ++M) {
15180
15181
  var j = He(g[M], b[M]);
15181
15182
  if (j !== 0) return j;
15182
15183
  }
15183
- return E === A ? 0 : E < A ? -1 : 1;
15184
+ return S === A ? 0 : S < A ? -1 : 1;
15184
15185
  })(a, l);
15185
15186
  }
15186
15187
  } catch {
15187
15188
  }
15188
15189
  return NaN;
15189
15190
  }
15190
- function El(a) {
15191
+ function Sl(a) {
15191
15192
  var l = typeof a;
15192
15193
  return l != "object" ? l : ArrayBuffer.isView(a) ? "binary" : (a = ne(a), a === "ArrayBuffer" ? "binary" : a);
15193
15194
  }
15194
- function Sl(a) {
15195
+ function El(a) {
15195
15196
  return a instanceof Uint8Array ? a : ArrayBuffer.isView(a) ? new Uint8Array(a.buffer, a.byteOffset, a.byteLength) : new Uint8Array(a);
15196
15197
  }
15197
15198
  function Ui(a, l, d) {
@@ -15237,21 +15238,21 @@ function fD() {
15237
15238
  }
15238
15239
  function Cl(a, l) {
15239
15240
  for (var d = s(l), p = d.length, g = !1, b = 0; b < p; ++b) {
15240
- var E = d[b], A = l[E], k = z(a, E);
15241
- A instanceof ui ? (Q(a, E, A.execute(k)), g = !0) : k !== A && (Q(a, E, A), g = !0);
15241
+ var S = d[b], A = l[S], k = z(a, S);
15242
+ A instanceof ui ? (Q(a, S, A.execute(k)), g = !0) : k !== A && (Q(a, S, A), g = !0);
15242
15243
  }
15243
15244
  return g;
15244
15245
  }
15245
15246
  var Al = (Je.prototype._trans = function(a, l, d) {
15246
15247
  var p = this._tx || he.trans, g = this.name, b = Be && typeof console < "u" && console.createTask && console.createTask("Dexie: ".concat(a === "readonly" ? "read" : "write", " ").concat(this.name));
15247
- function E(M, j, T) {
15248
+ function S(M, j, T) {
15248
15249
  if (!T.schema[g]) throw new te.NotFound("Table " + g + " not part of transaction");
15249
15250
  return l(T.idbtrans, T);
15250
15251
  }
15251
- var A = Ee();
15252
+ var A = Se();
15252
15253
  try {
15253
- var k = p && p.db._novip === this.db._novip ? p === he.trans ? p._promise(a, E, d) : nt(function() {
15254
- return p._promise(a, E, d);
15254
+ var k = p && p.db._novip === this.db._novip ? p === he.trans ? p._promise(a, S, d) : nt(function() {
15255
+ return p._promise(a, S, d);
15255
15256
  }, { trans: p, transless: he.transless || he }) : (function M(j, T, B, O) {
15256
15257
  if (j.idbdb && (j._state.openComplete || he.letThrough || j._vip)) {
15257
15258
  var N = j._createTransaction(T, B, j._dbSchema);
@@ -15284,7 +15285,7 @@ function fD() {
15284
15285
  return j._state.dbReadyPromise.then(function() {
15285
15286
  return M(j, T, B, O);
15286
15287
  });
15287
- })(this.db, a, [this.name], E);
15288
+ })(this.db, a, [this.name], S);
15288
15289
  return b && (k._consoleTask = b, k = k.catch(function(M) {
15289
15290
  return console.trace(M), rt(M);
15290
15291
  })), k;
@@ -15325,7 +15326,7 @@ function fD() {
15325
15326
  function g(A, k) {
15326
15327
  return He(A, k) === 0;
15327
15328
  }
15328
- var E = l.reduce(function(T, k) {
15329
+ var S = l.reduce(function(T, k) {
15329
15330
  var M = T[0], j = T[1], T = p[k], B = a[k];
15330
15331
  return [M || T, M || !T ? br(j, T && T.multi ? function(O) {
15331
15332
  return O = z(O, k), c(O) && O.some(function(N) {
@@ -15334,8 +15335,8 @@ function fD() {
15334
15335
  } : function(O) {
15335
15336
  return g(B, z(O, k));
15336
15337
  }) : j];
15337
- }, [null, null]), b = E[0], E = E[1];
15338
- return b ? this.where(b.name).equals(a[b.keyPath]).filter(E) : d ? this.filter(E) : this.where(l).equals("");
15338
+ }, [null, null]), b = S[0], S = S[1];
15339
+ return b ? this.where(b.name).equals(a[b.keyPath]).filter(S) : d ? this.filter(S) : this.where(l).equals("");
15339
15340
  }, Je.prototype.filter = function(a) {
15340
15341
  return this.toCollection().and(a);
15341
15342
  }, Je.prototype.count = function(a) {
@@ -15370,7 +15371,7 @@ function fD() {
15370
15371
  }, enumerable: !1, configurable: !0 }), g.prototype.table = function() {
15371
15372
  return p;
15372
15373
  }, a = g);
15373
- for (var b = /* @__PURE__ */ new Set(), E = a.prototype; E; E = h(E)) Object.getOwnPropertyNames(E).forEach(function(k) {
15374
+ for (var b = /* @__PURE__ */ new Set(), S = a.prototype; S; S = h(S)) Object.getOwnPropertyNames(S).forEach(function(k) {
15374
15375
  return b.add(k);
15375
15376
  });
15376
15377
  function A(k) {
@@ -15388,9 +15389,9 @@ function fD() {
15388
15389
  u(this, a);
15389
15390
  });
15390
15391
  }, Je.prototype.add = function(a, l) {
15391
- var d = this, p = this.schema.primKey, g = p.auto, b = p.keyPath, E = a;
15392
- return b && g && (E = Hi(b)(a)), this._trans("readwrite", function(A) {
15393
- return d.core.mutate({ trans: A, type: "add", keys: l != null ? [l] : null, values: [E] });
15392
+ var d = this, p = this.schema.primKey, g = p.auto, b = p.keyPath, S = a;
15393
+ return b && g && (S = Hi(b)(a)), this._trans("readwrite", function(A) {
15394
+ return d.core.mutate({ trans: A, type: "add", keys: l != null ? [l] : null, values: [S] });
15394
15395
  }).then(function(A) {
15395
15396
  return A.numFailures ? ue.reject(A.failures[0]) : A.lastResult;
15396
15397
  }).then(function(A) {
@@ -15404,8 +15405,8 @@ function fD() {
15404
15405
  var d = this, p = this.schema.primKey.keyPath;
15405
15406
  return this._trans("readwrite", function(g) {
15406
15407
  return d.core.get({ trans: g, key: a }).then(function(b) {
15407
- var E = b ?? {};
15408
- return Cl(E, l), p && Q(E, p, a), d.core.mutate({ trans: g, type: "put", values: [E], keys: [a], upsert: !0, updates: { keys: [a], changeSpecs: [l] } }).then(function(A) {
15408
+ var S = b ?? {};
15409
+ return Cl(S, l), p && Q(S, p, a), d.core.mutate({ trans: g, type: "put", values: [S], keys: [a], upsert: !0, updates: { keys: [a], changeSpecs: [l] } }).then(function(A) {
15409
15410
  return A.numFailures ? ue.reject(A.failures[0]) : !!b;
15410
15411
  });
15411
15412
  });
@@ -15413,9 +15414,9 @@ function fD() {
15413
15414
  }, Je.prototype.update = function(a, l) {
15414
15415
  return typeof a != "object" || c(a) ? this.where(":id").equals(a).modify(l) : (a = z(a, this.schema.primKey.keyPath), a === void 0 ? rt(new te.InvalidArgument("Given object does not contain its primary key")) : this.where(":id").equals(a).modify(l));
15415
15416
  }, Je.prototype.put = function(a, l) {
15416
- var d = this, p = this.schema.primKey, g = p.auto, b = p.keyPath, E = a;
15417
- return b && g && (E = Hi(b)(a)), this._trans("readwrite", function(A) {
15418
- return d.core.mutate({ trans: A, type: "put", values: [E], keys: l != null ? [l] : null });
15417
+ var d = this, p = this.schema.primKey, g = p.auto, b = p.keyPath, S = a;
15418
+ return b && g && (S = Hi(b)(a)), this._trans("readwrite", function(A) {
15419
+ return d.core.mutate({ trans: A, type: "put", values: [S], keys: l != null ? [l] : null });
15419
15420
  }).then(function(A) {
15420
15421
  return A.numFailures ? ue.reject(A.failures[0]) : A.lastResult;
15421
15422
  }).then(function(A) {
@@ -15454,12 +15455,12 @@ function fD() {
15454
15455
  });
15455
15456
  }, Je.prototype.bulkAdd = function(a, l, d) {
15456
15457
  var p = this, g = Array.isArray(l) ? l : void 0, b = (d = d || (g ? void 0 : l)) ? d.allKeys : void 0;
15457
- return this._trans("readwrite", function(E) {
15458
+ return this._trans("readwrite", function(S) {
15458
15459
  var M = p.schema.primKey, A = M.auto, M = M.keyPath;
15459
15460
  if (M && g) throw new te.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");
15460
15461
  if (g && g.length !== a.length) throw new te.InvalidArgument("Arguments objects and keys must have the same length");
15461
15462
  var k = a.length, M = M && A ? a.map(Hi(M)) : a;
15462
- return p.core.mutate({ trans: E, type: "add", keys: g, values: M, wantResults: b }).then(function(N) {
15463
+ return p.core.mutate({ trans: S, type: "add", keys: g, values: M, wantResults: b }).then(function(N) {
15463
15464
  var T = N.numFailures, B = N.results, O = N.lastResult, N = N.failures;
15464
15465
  if (T === 0) return b ? B : O;
15465
15466
  throw new lt("".concat(p.name, ".bulkAdd(): ").concat(T, " of ").concat(k, " operations failed"), N);
@@ -15467,25 +15468,25 @@ function fD() {
15467
15468
  });
15468
15469
  }, Je.prototype.bulkPut = function(a, l, d) {
15469
15470
  var p = this, g = Array.isArray(l) ? l : void 0, b = (d = d || (g ? void 0 : l)) ? d.allKeys : void 0;
15470
- return this._trans("readwrite", function(E) {
15471
+ return this._trans("readwrite", function(S) {
15471
15472
  var M = p.schema.primKey, A = M.auto, M = M.keyPath;
15472
15473
  if (M && g) throw new te.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");
15473
15474
  if (g && g.length !== a.length) throw new te.InvalidArgument("Arguments objects and keys must have the same length");
15474
15475
  var k = a.length, M = M && A ? a.map(Hi(M)) : a;
15475
- return p.core.mutate({ trans: E, type: "put", keys: g, values: M, wantResults: b }).then(function(N) {
15476
+ return p.core.mutate({ trans: S, type: "put", keys: g, values: M, wantResults: b }).then(function(N) {
15476
15477
  var T = N.numFailures, B = N.results, O = N.lastResult, N = N.failures;
15477
15478
  if (T === 0) return b ? B : O;
15478
15479
  throw new lt("".concat(p.name, ".bulkPut(): ").concat(T, " of ").concat(k, " operations failed"), N);
15479
15480
  });
15480
15481
  });
15481
15482
  }, Je.prototype.bulkUpdate = function(a) {
15482
- var l = this, d = this.core, p = a.map(function(E) {
15483
- return E.key;
15484
- }), g = a.map(function(E) {
15485
- return E.changes;
15483
+ var l = this, d = this.core, p = a.map(function(S) {
15484
+ return S.key;
15485
+ }), g = a.map(function(S) {
15486
+ return S.changes;
15486
15487
  }), b = [];
15487
- return this._trans("readwrite", function(E) {
15488
- return d.getMany({ trans: E, keys: p, cache: "clone" }).then(function(A) {
15488
+ return this._trans("readwrite", function(S) {
15489
+ return d.getMany({ trans: S, keys: p, cache: "clone" }).then(function(A) {
15489
15490
  var k = [], M = [];
15490
15491
  a.forEach(function(T, B) {
15491
15492
  var O = T.key, N = T.changes, P = A[B];
@@ -15500,7 +15501,7 @@ function fD() {
15500
15501
  }
15501
15502
  });
15502
15503
  var j = k.length;
15503
- return d.mutate({ trans: E, type: "put", keys: k, values: M, updates: { keys: p, changeSpecs: g } }).then(function(T) {
15504
+ return d.mutate({ trans: S, type: "put", keys: k, values: M, updates: { keys: p, changeSpecs: g } }).then(function(T) {
15504
15505
  var B = T.numFailures, O = T.failures;
15505
15506
  if (B === 0) return j;
15506
15507
  for (var N = 0, P = Object.keys(O); N < P.length; N++) {
@@ -15517,28 +15518,28 @@ function fD() {
15517
15518
  return l.core.mutate({ trans: p, type: "delete", keys: a }).then(function(g) {
15518
15519
  return Ui(l, a, g);
15519
15520
  });
15520
- }).then(function(E) {
15521
- var g = E.numFailures, b = E.lastResult, E = E.failures;
15521
+ }).then(function(S) {
15522
+ var g = S.numFailures, b = S.lastResult, S = S.failures;
15522
15523
  if (g === 0) return b;
15523
- throw new lt("".concat(l.name, ".bulkDelete(): ").concat(g, " of ").concat(d, " operations failed"), E);
15524
+ throw new lt("".concat(l.name, ".bulkDelete(): ").concat(g, " of ").concat(d, " operations failed"), S);
15524
15525
  });
15525
15526
  }, Je);
15526
15527
  function Je() {
15527
15528
  }
15528
15529
  function di(a) {
15529
- function l(E, A) {
15530
+ function l(S, A) {
15530
15531
  if (A) {
15531
15532
  for (var k = arguments.length, M = new Array(k - 1); --k; ) M[k - 1] = arguments[k];
15532
- return d[E].subscribe.apply(null, M), a;
15533
+ return d[S].subscribe.apply(null, M), a;
15533
15534
  }
15534
- if (typeof E == "string") return d[E];
15535
+ if (typeof S == "string") return d[S];
15535
15536
  }
15536
15537
  var d = {};
15537
15538
  l.addEventType = b;
15538
15539
  for (var p = 1, g = arguments.length; p < g; ++p) b(arguments[p]);
15539
15540
  return l;
15540
- function b(E, A, k) {
15541
- if (typeof E != "object") {
15541
+ function b(S, A, k) {
15542
+ if (typeof S != "object") {
15542
15543
  var M;
15543
15544
  A = A || Qn;
15544
15545
  var j = { subscribers: [], fire: k = k || xe, subscribe: function(T) {
@@ -15548,9 +15549,9 @@ function fD() {
15548
15549
  return B !== T;
15549
15550
  }), j.fire = j.subscribers.reduce(A, k);
15550
15551
  } };
15551
- return d[E] = l[E] = j;
15552
+ return d[S] = l[S] = j;
15552
15553
  }
15553
- s(M = E).forEach(function(T) {
15554
+ s(M = S).forEach(function(T) {
15554
15555
  var B = M[T];
15555
15556
  if (c(B)) b(T, M[T][0], M[T][1]);
15556
15557
  else {
@@ -15595,7 +15596,7 @@ function fD() {
15595
15596
  function Fi(a, l, d, p) {
15596
15597
  var g = a.replayFilter ? br(a.filter, a.replayFilter()) : a.filter;
15597
15598
  if (a.or) {
15598
- var b = {}, E = function(A, k, M) {
15599
+ var b = {}, S = function(A, k, M) {
15599
15600
  var j, T;
15600
15601
  g && !g(k, M, function(B) {
15601
15602
  return k.stop(B);
@@ -15603,28 +15604,28 @@ function fD() {
15603
15604
  return k.fail(B);
15604
15605
  }) || ((T = "" + (j = k.primaryKey)) == "[object ArrayBuffer]" && (T = "" + new Uint8Array(j)), m(b, T) || (b[T] = !0, l(A, k, M)));
15605
15606
  };
15606
- return Promise.all([a.or._iterate(E, d), xl(_l(a, p, d), a.algorithm, E, !a.keysOnly && a.valueMapper)]);
15607
+ return Promise.all([a.or._iterate(S, d), xl(_l(a, p, d), a.algorithm, S, !a.keysOnly && a.valueMapper)]);
15607
15608
  }
15608
15609
  return xl(_l(a, p, d), br(a.algorithm, g), l, !a.keysOnly && a.valueMapper);
15609
15610
  }
15610
15611
  function xl(a, l, d, p) {
15611
- var g = J(p ? function(b, E, A) {
15612
- return d(p(b), E, A);
15612
+ var g = J(p ? function(b, S, A) {
15613
+ return d(p(b), S, A);
15613
15614
  } : d);
15614
15615
  return a.then(function(b) {
15615
15616
  if (b) return b.start(function() {
15616
- var E = function() {
15617
+ var S = function() {
15617
15618
  return b.continue();
15618
15619
  };
15619
15620
  l && !l(b, function(A) {
15620
- return E = A;
15621
+ return S = A;
15621
15622
  }, function(A) {
15622
- b.stop(A), E = xe;
15623
+ b.stop(A), S = xe;
15623
15624
  }, function(A) {
15624
- b.fail(A), E = xe;
15625
+ b.fail(A), S = xe;
15625
15626
  }) || g(b.value, b, function(A) {
15626
- return E = A;
15627
- }), E();
15627
+ return S = A;
15628
+ }), S();
15628
15629
  });
15629
15630
  });
15630
15631
  }
@@ -15653,8 +15654,8 @@ function fD() {
15653
15654
  var l = this;
15654
15655
  return this._read(function(d) {
15655
15656
  var p = l._ctx, g = p.table.core;
15656
- if (zr(p, !0)) return g.count({ trans: d, query: { index: Bi(p, g.schema), range: p.range } }).then(function(E) {
15657
- return Math.min(E, p.limit);
15657
+ if (zr(p, !0)) return g.count({ trans: d, query: { index: Bi(p, g.schema), range: p.range } }).then(function(S) {
15658
+ return Math.min(S, p.limit);
15658
15659
  });
15659
15660
  var b = 0;
15660
15661
  return Fi(p, function() {
@@ -15668,9 +15669,9 @@ function fD() {
15668
15669
  function b(k, M) {
15669
15670
  return M ? b(k[d[M]], M - 1) : k[p];
15670
15671
  }
15671
- var E = this._ctx.dir === "next" ? 1 : -1;
15672
+ var S = this._ctx.dir === "next" ? 1 : -1;
15672
15673
  function A(k, M) {
15673
- return He(b(k, g), b(M, g)) * E;
15674
+ return He(b(k, g), b(M, g)) * S;
15674
15675
  }
15675
15676
  return this.toArray(function(k) {
15676
15677
  return k.sort(A);
@@ -15685,11 +15686,11 @@ function fD() {
15685
15686
  return A = A.result, g ? A.map(g) : A;
15686
15687
  });
15687
15688
  }
15688
- var E = [];
15689
+ var S = [];
15689
15690
  return Fi(p, function(A) {
15690
- return E.push(A);
15691
+ return S.push(A);
15691
15692
  }, d, p.table.core).then(function() {
15692
- return E;
15693
+ return S;
15693
15694
  });
15694
15695
  }, a);
15695
15696
  }, qe.prototype.offset = function(a) {
@@ -15794,7 +15795,7 @@ function fD() {
15794
15795
  return this._write(function(p) {
15795
15796
  var g = typeof a == "function" ? a : function(P) {
15796
15797
  return Cl(P, a);
15797
- }, b = d.table.core, M = b.schema.primaryKey, E = M.outbound, A = M.extractKey, k = 200, M = l.db._options.modifyChunkSize;
15798
+ }, b = d.table.core, M = b.schema.primaryKey, S = M.outbound, A = M.extractKey, k = 200, M = l.db._options.modifyChunkSize;
15798
15799
  M && (k = typeof M == "object" ? M[b.name] || M["*"] || 200 : M);
15799
15800
  function j(P, W) {
15800
15801
  var F = W.failures, W = W.numFailures;
@@ -15809,10 +15810,10 @@ function fD() {
15809
15810
  function U(W) {
15810
15811
  var q = Math.min(k, P.length - W), Y = P.slice(W, W + q);
15811
15812
  return (N ? Promise.resolve([]) : b.getMany({ trans: p, keys: Y, cache: "immutable" })).then(function(se) {
15812
- var de = [], re = [], le = E ? [] : null, fe = N ? Y : [];
15813
+ var de = [], re = [], le = S ? [] : null, fe = N ? Y : [];
15813
15814
  if (!N) for (var ce = 0; ce < q; ++ce) {
15814
15815
  var ve = se[ce], Te = { value: je(ve), primKey: P[W + ce] };
15815
- g.call(Te, Te.value, Te) !== !1 && (Te.value == null ? fe.push(P[W + ce]) : E || He(A(ve), A(Te.value)) === 0 ? (re.push(Te.value), E && le.push(P[W + ce])) : (fe.push(P[W + ce]), de.push(Te.value)));
15816
+ g.call(Te, Te.value, Te) !== !1 && (Te.value == null ? fe.push(P[W + ce]) : S || He(A(ve), A(Te.value)) === 0 ? (re.push(Te.value), S && le.push(P[W + ce])) : (fe.push(P[W + ce]), de.push(Te.value)));
15816
15817
  }
15817
15818
  return Promise.resolve(0 < de.length && b.mutate({ trans: p, type: "add", values: de }).then(function(Oe) {
15818
15819
  for (var Ne in Oe.failures) fe.splice(parseInt(Ne), 1);
@@ -15874,7 +15875,7 @@ function fD() {
15874
15875
  }).limit(0);
15875
15876
  }
15876
15877
  function zi(a, l, d, p) {
15877
- var g, b, E, A, k, M, j, T = d.length;
15878
+ var g, b, S, A, k, M, j, T = d.length;
15878
15879
  if (!d.every(function(N) {
15879
15880
  return typeof N == "string";
15880
15881
  })) return Ut(a, Br);
@@ -15887,11 +15888,11 @@ function fD() {
15887
15888
  return U.toLowerCase();
15888
15889
  } : function(U) {
15889
15890
  return U.toUpperCase();
15890
- }, E = N === "next" ? qf : Gf;
15891
+ }, S = N === "next" ? qf : Gf;
15891
15892
  var P = d.map(function(U) {
15892
15893
  return { lower: b(U), upper: g(U) };
15893
15894
  }).sort(function(U, F) {
15894
- return E(U.lower, F.lower);
15895
+ return S(U.lower, F.lower);
15895
15896
  });
15896
15897
  A = P.map(function(U) {
15897
15898
  return U.upper;
@@ -15918,8 +15919,8 @@ function fD() {
15918
15919
  ce(de[Ne], Bt) < 0 && (Oe = Ne);
15919
15920
  }
15920
15921
  return Te < fe.length && ve === "next" ? de + le.substr(de.length) : Te < de.length && ve === "prev" ? de.substr(0, le.length) : Oe < 0 ? null : de.substr(0, Oe) + fe[Oe] + le.substr(Oe + 1);
15921
- })(F, W, A[Y], k[Y], E, M);
15922
- se === null && q === null ? O = Y + 1 : (q === null || 0 < E(q, se)) && (q = se);
15922
+ })(F, W, A[Y], k[Y], S, M);
15923
+ se === null && q === null ? O = Y + 1 : (q === null || 0 < S(q, se)) && (q = se);
15923
15924
  }
15924
15925
  return P(q !== null ? function() {
15925
15926
  N.continue(q + j);
@@ -16000,9 +16001,9 @@ function fD() {
16000
16001
  d = b === "next" ? a._ascending : a._descending, l.sort(d);
16001
16002
  };
16002
16003
  var g = 0;
16003
- return p._addAlgorithm(function(b, E, A) {
16004
- for (var k = b.key; 0 < d(k, l[g]); ) if (++g === l.length) return E(A), !1;
16005
- return d(k, l[g]) === 0 || (E(function() {
16004
+ return p._addAlgorithm(function(b, S, A) {
16005
+ for (var k = b.key; 0 < d(k, l[g]); ) if (++g === l.length) return S(A), !1;
16006
+ return d(k, l[g]) === 0 || (S(function() {
16006
16007
  b.continue(l[g]);
16007
16008
  }), !1);
16008
16009
  }), p;
@@ -16021,7 +16022,7 @@ function fD() {
16021
16022
  }, null);
16022
16023
  return l.push([a[a.length - 1], this.db._maxKey]), this.inAnyRange(l, { includeLowers: !1, includeUppers: !1 });
16023
16024
  }, gt.prototype.inAnyRange = function(F, l) {
16024
- var d = this, p = this._cmp, g = this._ascending, b = this._descending, E = this._min, A = this._max;
16025
+ var d = this, p = this._cmp, g = this._ascending, b = this._descending, S = this._min, A = this._max;
16025
16026
  if (F.length === 0) return $r(this);
16026
16027
  if (!F.every(function(W) {
16027
16028
  return W[0] !== void 0 && W[1] !== void 0 && g(W[0], W[1]) <= 0;
@@ -16035,7 +16036,7 @@ function fD() {
16035
16036
  for (var Y = 0, se = W.length; Y < se; ++Y) {
16036
16037
  var de = W[Y];
16037
16038
  if (p(q[0], de[1]) < 0 && 0 < p(q[1], de[0])) {
16038
- de[0] = E(de[0], q[0]), de[1] = A(de[1], q[1]);
16039
+ de[0] = S(de[0], q[0]), de[1] = A(de[1], q[1]);
16039
16040
  break;
16040
16041
  }
16041
16042
  }
@@ -16087,7 +16088,7 @@ function fD() {
16087
16088
  if (L(!he.global), --this._reculock == 0) for (he.global || (he.lockOwnerFor = null); 0 < this._blockedFuncs.length && !this._locked(); ) {
16088
16089
  var a = this._blockedFuncs.shift();
16089
16090
  try {
16090
- Sn(a[1], a[0]);
16091
+ En(a[1], a[0]);
16091
16092
  } catch {
16092
16093
  }
16093
16094
  }
@@ -16118,24 +16119,24 @@ function fD() {
16118
16119
  var p = this;
16119
16120
  if (a === "readwrite" && this.mode !== "readwrite") return rt(new te.ReadOnly("Transaction is readonly"));
16120
16121
  if (!this.active) return rt(new te.TransactionInactive());
16121
- if (this._locked()) return new ue(function(b, E) {
16122
+ if (this._locked()) return new ue(function(b, S) {
16122
16123
  p._blockedFuncs.push([function() {
16123
- p._promise(a, l, d).then(b, E);
16124
+ p._promise(a, l, d).then(b, S);
16124
16125
  }, he]);
16125
16126
  });
16126
16127
  if (d) return nt(function() {
16127
- var b = new ue(function(E, A) {
16128
+ var b = new ue(function(S, A) {
16128
16129
  p._lock();
16129
- var k = l(E, A, p);
16130
- k && k.then && k.then(E, A);
16130
+ var k = l(S, A, p);
16131
+ k && k.then && k.then(S, A);
16131
16132
  });
16132
16133
  return b.finally(function() {
16133
16134
  return p._unlock();
16134
16135
  }), b._lib = !0, b;
16135
16136
  });
16136
- var g = new ue(function(b, E) {
16137
- var A = l(b, E, p);
16138
- A && A.then && A.then(b, E);
16137
+ var g = new ue(function(b, S) {
16138
+ var A = l(b, S, p);
16139
+ A && A.then && A.then(b, S);
16139
16140
  });
16140
16141
  return g._lib = !0, g;
16141
16142
  }, Cn.prototype._root = function() {
@@ -16149,11 +16150,11 @@ function fD() {
16149
16150
  d._waitingFor && (l.get(-1 / 0).onsuccess = b);
16150
16151
  })());
16151
16152
  var g = d._waitingFor;
16152
- return new ue(function(b, E) {
16153
+ return new ue(function(b, S) {
16153
16154
  p.then(function(A) {
16154
16155
  return d._waitingQueue.push(J(b.bind(null, A)));
16155
16156
  }, function(A) {
16156
- return d._waitingQueue.push(J(E.bind(null, A)));
16157
+ return d._waitingQueue.push(J(S.bind(null, A)));
16157
16158
  }).finally(function() {
16158
16159
  d._waitingFor === g && (d._waitingFor = null);
16159
16160
  });
@@ -16169,8 +16170,8 @@ function fD() {
16169
16170
  }, Cn);
16170
16171
  function Cn() {
16171
16172
  }
16172
- function us(a, l, d, p, g, b, E, A) {
16173
- return { name: a, keyPath: l, unique: d, multi: p, auto: g, compound: b, src: (d && !E ? "&" : "") + (p ? "*" : "") + (g ? "++" : "") + Il(l), type: A };
16173
+ function us(a, l, d, p, g, b, S, A) {
16174
+ return { name: a, keyPath: l, unique: d, multi: p, auto: g, compound: b, src: (d && !S ? "&" : "") + (p ? "*" : "") + (g ? "++" : "") + Il(l), type: A };
16174
16175
  }
16175
16176
  function Il(a) {
16176
16177
  return typeof a == "string" ? a : a ? "[" + [].join.call(a, "+") + "]" : "";
@@ -16178,8 +16179,8 @@ function fD() {
16178
16179
  function ds(a, l, d) {
16179
16180
  return { name: a, primKey: l, indexes: d, mappedClass: null, idxByName: (p = function(g) {
16180
16181
  return [g.name, g];
16181
- }, d.reduce(function(g, b, E) {
16182
- return E = p(b, E), E && (g[E[0]] = E[1]), g;
16182
+ }, d.reduce(function(g, b, S) {
16183
+ return S = p(b, S), S && (g[S[0]] = S[1]), g;
16183
16184
  }, {})) };
16184
16185
  var p;
16185
16186
  }
@@ -16243,10 +16244,10 @@ function fD() {
16243
16244
  else for (Ct = 0; Ct < ve; ++Ct) Oe.push(ce = re[F](Re[Ct])), ce.onerror = Te;
16244
16245
  }
16245
16246
  function eo(kt) {
16246
- kt = kt.target.result, Oe.forEach(function(Sr, ks) {
16247
- return Sr.error != null && (Ne[ks] = Sr.error);
16248
- }), se({ numFailures: Bt, failures: Ne, results: F === "delete" ? W : Oe.map(function(Sr) {
16249
- return Sr.result;
16247
+ kt = kt.target.result, Oe.forEach(function(Er, ks) {
16248
+ return Er.error != null && (Ne[ks] = Er.error);
16249
+ }), se({ numFailures: Bt, failures: Ne, results: F === "delete" ? W : Oe.map(function(Er) {
16250
+ return Er.result;
16250
16251
  }), lastResult: kt });
16251
16252
  }
16252
16253
  ce.onerror = function(kt) {
@@ -16312,8 +16313,8 @@ function fD() {
16312
16313
  throw new Error("Cursor behind last entry");
16313
16314
  }, Re.stop();
16314
16315
  }
16315
- var eo = new Promise(function(kt, Sr) {
16316
- kt = J(kt), ce.onerror = Dn(Sr), Re.fail = Sr, Re.stop = function(ks) {
16316
+ var eo = new Promise(function(kt, Er) {
16317
+ kt = J(kt), ce.onerror = Dn(Er), Re.fail = Er, Re.stop = function(ks) {
16317
16318
  Re.stop = Re.continue = Re.continuePrimaryKey = Re.advance = Bt, kt(ks);
16318
16319
  };
16319
16320
  });
@@ -16333,8 +16334,8 @@ function fD() {
16333
16334
  });
16334
16335
  } };
16335
16336
  }
16336
- var b, E, A, j = (E = k, A = Ml((b = a).objectStoreNames), { schema: { name: b.name, tables: A.map(function(B) {
16337
- return E.objectStore(B);
16337
+ var b, S, A, j = (S = k, A = Ml((b = a).objectStoreNames), { schema: { name: b.name, tables: A.map(function(B) {
16338
+ return S.objectStore(B);
16338
16339
  }).map(function(B) {
16339
16340
  var O = B.keyPath, U = B.autoIncrement, N = c(O), P = {}, U = { name: B.name, primaryKey: { name: null, isPrimaryKey: !0, outbound: O == null, compound: N, keyPath: O, autoIncrement: U, unique: !0, extractKey: fs(O) }, indexes: Ml(B.indexNames).map(function(F) {
16340
16341
  return B.index(F);
@@ -16345,7 +16346,7 @@ function fD() {
16345
16346
  return P[mi(F)];
16346
16347
  } };
16347
16348
  return P[":id"] = U.primaryKey, O != null && (P[mi(O)] = U.primaryKey), U;
16348
- }) }, hasGetAll: 0 < A.length && "getAll" in E.objectStore(A[0]) && !(typeof navigator < "u" && /Safari/.test(navigator.userAgent) && !/(Chrome\/|Edge\/)/.test(navigator.userAgent) && [].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1] < 604) }), k = j.schema, M = j.hasGetAll, j = k.tables.map(g), T = {};
16349
+ }) }, hasGetAll: 0 < A.length && "getAll" in S.objectStore(A[0]) && !(typeof navigator < "u" && /Safari/.test(navigator.userAgent) && !/(Chrome\/|Edge\/)/.test(navigator.userAgent) && [].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1] < 604) }), k = j.schema, M = j.hasGetAll, j = k.tables.map(g), T = {};
16349
16350
  return j.forEach(function(B) {
16350
16351
  return T[B.name] = B;
16351
16352
  }), { stack: "dbcore", transaction: a.transaction.bind(a), table: function(B) {
@@ -16355,31 +16356,31 @@ function fD() {
16355
16356
  }
16356
16357
  function Zf(a, l, d, p) {
16357
16358
  var g = d.IDBKeyRange;
16358
- return d.indexedDB, { dbcore: (p = Qf(l, g, p), a.dbcore.reduce(function(b, E) {
16359
- return E = E.create, r(r({}, b), E(b));
16359
+ return d.indexedDB, { dbcore: (p = Qf(l, g, p), a.dbcore.reduce(function(b, S) {
16360
+ return S = S.create, r(r({}, b), S(b));
16360
16361
  }, p)) };
16361
16362
  }
16362
16363
  function $i(a, p) {
16363
16364
  var d = p.db, p = Zf(a._middlewares, d, a._deps, p);
16364
16365
  a.core = p.dbcore, a.tables.forEach(function(g) {
16365
16366
  var b = g.name;
16366
- a.core.schema.tables.some(function(E) {
16367
- return E.name === b;
16367
+ a.core.schema.tables.some(function(S) {
16368
+ return S.name === b;
16368
16369
  }) && (g.core = a.core.table(b), a[b] instanceof a.Table && (a[b].core = g.core));
16369
16370
  });
16370
16371
  }
16371
16372
  function Wi(a, l, d, p) {
16372
16373
  d.forEach(function(g) {
16373
16374
  var b = p[g];
16374
- l.forEach(function(E) {
16375
+ l.forEach(function(S) {
16375
16376
  var A = (function k(M, j) {
16376
16377
  return _(M, j) || (M = h(M)) && k(M, j);
16377
- })(E, g);
16378
- (!A || "value" in A && A.value === void 0) && (E === a.Transaction.prototype || E instanceof a.Transaction ? S(E, g, { get: function() {
16378
+ })(S, g);
16379
+ (!A || "value" in A && A.value === void 0) && (S === a.Transaction.prototype || S instanceof a.Transaction ? E(S, g, { get: function() {
16379
16380
  return this.table(g);
16380
16381
  }, set: function(k) {
16381
16382
  v(this, g, { value: k, writable: !0, configurable: !0, enumerable: !0 });
16382
- } }) : E[g] = new a.Table(g, b));
16383
+ } }) : S[g] = new a.Table(g, b));
16383
16384
  });
16384
16385
  });
16385
16386
  }
@@ -16396,7 +16397,7 @@ function fD() {
16396
16397
  d.objectStoreNames.contains("$meta") && !g.$meta && (g.$meta = ds("$meta", Nl("")[0], []), a._storeNames.push("$meta"));
16397
16398
  var b = a._createTransaction("readwrite", a._storeNames, g);
16398
16399
  b.create(d), b._completion.catch(p);
16399
- var E = b._reject.bind(b), A = he.transless || he;
16400
+ var S = b._reject.bind(b), A = he.transless || he;
16400
16401
  nt(function() {
16401
16402
  return he.trans = b, he.transless = A, l !== 0 ? ($i(a, d), M = l, ((k = b).storeNames.includes("$meta") ? k.table("$meta").get("version").then(function(j) {
16402
16403
  return j ?? M;
@@ -16452,11 +16453,11 @@ function fD() {
16452
16453
  Ol(U, N);
16453
16454
  })) : ue.resolve();
16454
16455
  var T, B, O, N, P, U;
16455
- }).catch(E)) : (s(g).forEach(function(j) {
16456
+ }).catch(S)) : (s(g).forEach(function(j) {
16456
16457
  gs(d, j, g[j].primKey, g[j].indexes);
16457
16458
  }), $i(a, d), void ue.follow(function() {
16458
16459
  return a.on.populate.fire(b);
16459
- }).catch(E));
16460
+ }).catch(S));
16460
16461
  var k, M;
16461
16462
  });
16462
16463
  }
@@ -16465,11 +16466,11 @@ function fD() {
16465
16466
  var d = qi(0, a.idbdb, l);
16466
16467
  Gi(a, a._dbSchema, l);
16467
16468
  for (var p = 0, g = ps(d, a._dbSchema).change; p < g.length; p++) {
16468
- var b = (function(E) {
16469
- if (E.change.length || E.recreate) return console.warn("Unable to patch indexes of table ".concat(E.name, " because it has changes on the type of index or primary key.")), { value: void 0 };
16470
- var A = l.objectStore(E.name);
16471
- E.add.forEach(function(k) {
16472
- Be && console.debug("Dexie upgrade patch: Creating missing index ".concat(E.name, ".").concat(k.src)), Vi(A, k);
16469
+ var b = (function(S) {
16470
+ if (S.change.length || S.recreate) return console.warn("Unable to patch indexes of table ".concat(S.name, " because it has changes on the type of index or primary key.")), { value: void 0 };
16471
+ var A = l.objectStore(S.name);
16472
+ S.add.forEach(function(k) {
16473
+ Be && console.debug("Dexie upgrade patch: Creating missing index ".concat(S.name, ".").concat(k.src)), Vi(A, k);
16473
16474
  });
16474
16475
  })(g[p]);
16475
16476
  if (typeof b == "object") return b.value;
@@ -16481,16 +16482,16 @@ function fD() {
16481
16482
  for (d in l) {
16482
16483
  var g = a[d], b = l[d];
16483
16484
  if (g) {
16484
- var E = { name: d, def: b, recreate: !1, del: [], add: [], change: [] };
16485
- if ("" + (g.primKey.keyPath || "") != "" + (b.primKey.keyPath || "") || g.primKey.auto !== b.primKey.auto) E.recreate = !0, p.change.push(E);
16485
+ var S = { name: d, def: b, recreate: !1, del: [], add: [], change: [] };
16486
+ if ("" + (g.primKey.keyPath || "") != "" + (b.primKey.keyPath || "") || g.primKey.auto !== b.primKey.auto) S.recreate = !0, p.change.push(S);
16486
16487
  else {
16487
16488
  var A = g.idxByName, k = b.idxByName, M = void 0;
16488
- for (M in A) k[M] || E.del.push(M);
16489
+ for (M in A) k[M] || S.del.push(M);
16489
16490
  for (M in k) {
16490
16491
  var j = A[M], T = k[M];
16491
- j ? j.src !== T.src && E.change.push(T) : E.add.push(T);
16492
+ j ? j.src !== T.src && S.change.push(T) : S.add.push(T);
16492
16493
  }
16493
- (0 < E.del.length || 0 < E.add.length || 0 < E.change.length) && p.change.push(E);
16494
+ (0 < S.del.length || 0 < S.add.length || 0 < S.change.length) && p.change.push(S);
16494
16495
  }
16495
16496
  } else p.add.push([d, b]);
16496
16497
  }
@@ -16513,19 +16514,19 @@ function fD() {
16513
16514
  function qi(a, l, d) {
16514
16515
  var p = {};
16515
16516
  return x(l.objectStoreNames, 0).forEach(function(g) {
16516
- for (var b = d.objectStore(g), E = us(Il(M = b.keyPath), M || "", !0, !1, !!b.autoIncrement, M && typeof M != "string", !0), A = [], k = 0; k < b.indexNames.length; ++k) {
16517
+ for (var b = d.objectStore(g), S = us(Il(M = b.keyPath), M || "", !0, !1, !!b.autoIncrement, M && typeof M != "string", !0), A = [], k = 0; k < b.indexNames.length; ++k) {
16517
16518
  var j = b.index(b.indexNames[k]), M = j.keyPath, j = us(j.name, M, !!j.unique, !!j.multiEntry, !1, M && typeof M != "string", !1);
16518
16519
  A.push(j);
16519
16520
  }
16520
- p[g] = ds(g, E, A);
16521
+ p[g] = ds(g, S, A);
16521
16522
  }), p;
16522
16523
  }
16523
16524
  function Gi(a, l, d) {
16524
16525
  for (var p = d.db.objectStoreNames, g = 0; g < p.length; ++g) {
16525
- var b = p[g], E = d.objectStore(b);
16526
- a._hasGetAll = "getAll" in E;
16527
- for (var A = 0; A < E.indexNames.length; ++A) {
16528
- var k = E.indexNames[A], M = E.index(k).keyPath, j = typeof M == "string" ? M : "[" + x(M).join("+") + "]";
16526
+ var b = p[g], S = d.objectStore(b);
16527
+ a._hasGetAll = "getAll" in S;
16528
+ for (var A = 0; A < S.indexNames.length; ++A) {
16529
+ var k = S.indexNames[A], M = S.index(k).keyPath, j = typeof M == "string" ? M : "[" + x(M).join("+") + "]";
16529
16530
  !l[b] || (M = l[b].idxByName[j]) && (M.name = k, delete l[b].idxByName[j], l[b].idxByName[k] = M);
16530
16531
  }
16531
16532
  }
@@ -16544,9 +16545,9 @@ function fD() {
16544
16545
  var g = d._parseIndexSyntax(a[p]), b = g.shift();
16545
16546
  if (!b) throw new te.Schema("Invalid schema for table " + p + ": " + a[p]);
16546
16547
  if (b.unique = !0, b.multi) throw new te.Schema("Primary key cannot be multiEntry*");
16547
- g.forEach(function(E) {
16548
- if (E.auto) throw new te.Schema("Only primary key can be marked as autoIncrement (++)");
16549
- if (!E.keyPath) throw new te.Schema("Index must have a name and cannot be an empty string");
16548
+ g.forEach(function(S) {
16549
+ if (S.auto) throw new te.Schema("Only primary key can be marked as autoIncrement (++)");
16550
+ if (!S.keyPath) throw new te.Schema("Index must have a name and cannot be an empty string");
16550
16551
  }), g = d._createTableSchema(p, b, g), l[p] = g;
16551
16552
  }
16552
16553
  });
@@ -16577,9 +16578,9 @@ function fD() {
16577
16578
  function bs(a) {
16578
16579
  return !("from" in a);
16579
16580
  }
16580
- var St = function(a, l) {
16581
+ var Et = function(a, l) {
16581
16582
  if (!this) {
16582
- var d = new St();
16583
+ var d = new Et();
16583
16584
  return a && "d" in a && u(d, a), d;
16584
16585
  }
16585
16586
  u(this, arguments.length ? { d: 1, from: a, to: 1 < arguments.length ? l : a } : { d: 0 });
@@ -16597,16 +16598,16 @@ function fD() {
16597
16598
  }
16598
16599
  function yi(a, l) {
16599
16600
  bs(l) || (function d(p, k) {
16600
- var b = k.from, E = k.to, A = k.l, k = k.r;
16601
- vi(p, b, E), A && d(p, A), k && d(p, k);
16601
+ var b = k.from, S = k.to, A = k.l, k = k.r;
16602
+ vi(p, b, S), A && d(p, A), k && d(p, k);
16602
16603
  })(a, l);
16603
16604
  }
16604
16605
  function Pl(a, l) {
16605
16606
  var d = Yi(l), p = d.next();
16606
16607
  if (p.done) return !1;
16607
- for (var g = p.value, b = Yi(a), E = b.next(g.from), A = E.value; !p.done && !E.done; ) {
16608
+ for (var g = p.value, b = Yi(a), S = b.next(g.from), A = S.value; !p.done && !S.done; ) {
16608
16609
  if (He(A.from, g.to) <= 0 && 0 <= He(A.to, g.from)) return !0;
16609
- He(g.from, A.from) < 0 ? g = (p = d.next(A.from)).value : A = (E = b.next(g.from)).value;
16610
+ He(g.from, A.from) < 0 ? g = (p = d.next(A.from)).value : A = (S = b.next(g.from)).value;
16610
16611
  }
16611
16612
  return !1;
16612
16613
  }
@@ -16641,8 +16642,8 @@ function fD() {
16641
16642
  function Ki(a, l) {
16642
16643
  return s(l).forEach(function(d) {
16643
16644
  a[d] ? yi(a[d], l[d]) : a[d] = (function p(g) {
16644
- var b, E, A = {};
16645
- for (b in g) m(g, b) && (E = g[b], A[b] = !E || typeof E != "object" || ae.has(E.constructor) ? E : p(E));
16645
+ var b, S, A = {};
16646
+ for (b in g) m(g, b) && (S = g[b], A[b] = !S || typeof S != "object" || ae.has(S.constructor) ? S : p(S));
16646
16647
  return A;
16647
16648
  })(l[d]);
16648
16649
  }), a;
@@ -16652,7 +16653,7 @@ function fD() {
16652
16653
  return l[d] && Pl(l[d], a[d]);
16653
16654
  });
16654
16655
  }
16655
- y(St.prototype, ((tn = { add: function(a) {
16656
+ y(Et.prototype, ((tn = { add: function(a) {
16656
16657
  return yi(this, a), this;
16657
16658
  }, addKey: function(a) {
16658
16659
  return vi(this, a, a), this;
@@ -16667,27 +16668,27 @@ function fD() {
16667
16668
  } })[X] = function() {
16668
16669
  return Yi(this);
16669
16670
  }, tn));
16670
- var wr = {}, Es = {}, Ss = !1;
16671
+ var wr = {}, Ss = {}, Es = !1;
16671
16672
  function Qi(a) {
16672
- Ki(Es, a), Ss || (Ss = !0, setTimeout(function() {
16673
- Ss = !1, Ds(Es, !(Es = {}));
16673
+ Ki(Ss, a), Es || (Es = !0, setTimeout(function() {
16674
+ Es = !1, Ds(Ss, !(Ss = {}));
16674
16675
  }, 0));
16675
16676
  }
16676
16677
  function Ds(a, l) {
16677
16678
  l === void 0 && (l = !1);
16678
16679
  var d = /* @__PURE__ */ new Set();
16679
- if (a.all) for (var p = 0, g = Object.values(wr); p < g.length; p++) Hl(E = g[p], a, d, l);
16680
+ if (a.all) for (var p = 0, g = Object.values(wr); p < g.length; p++) Hl(S = g[p], a, d, l);
16680
16681
  else for (var b in a) {
16681
- var E, A = /^idb\:\/\/(.*)\/(.*)\//.exec(b);
16682
- A && (b = A[1], A = A[2], (E = wr["idb://".concat(b, "/").concat(A)]) && Hl(E, a, d, l));
16682
+ var S, A = /^idb\:\/\/(.*)\/(.*)\//.exec(b);
16683
+ A && (b = A[1], A = A[2], (S = wr["idb://".concat(b, "/").concat(A)]) && Hl(S, a, d, l));
16683
16684
  }
16684
16685
  d.forEach(function(k) {
16685
16686
  return k();
16686
16687
  });
16687
16688
  }
16688
16689
  function Hl(a, l, d, p) {
16689
- for (var g = [], b = 0, E = Object.entries(a.queries.query); b < E.length; b++) {
16690
- for (var A = E[b], k = A[0], M = [], j = 0, T = A[1]; j < T.length; j++) {
16690
+ for (var g = [], b = 0, S = Object.entries(a.queries.query); b < S.length; b++) {
16691
+ for (var A = S[b], k = A[0], M = [], j = 0, T = A[1]; j < T.length; j++) {
16691
16692
  var B = T[j];
16692
16693
  ws(l, B.obsSet) ? B.subscribers.forEach(function(U) {
16693
16694
  return d.add(U);
@@ -16707,12 +16708,12 @@ function fD() {
16707
16708
  });
16708
16709
  l.isBeingOpened = !0, l.dbOpenError = null, l.openComplete = !1;
16709
16710
  var p = l.openCanceller, g = Math.round(10 * a.verno), b = !1;
16710
- function E() {
16711
+ function S() {
16711
16712
  if (l.openCanceller !== p) throw new te.DatabaseClosed("db.open() was cancelled");
16712
16713
  }
16713
16714
  function A() {
16714
16715
  return new ue(function(B, O) {
16715
- if (E(), !d) throw new te.MissingAPI();
16716
+ if (S(), !d) throw new te.MissingAPI();
16716
16717
  var N = a.name, P = l.autoSchema || !g ? d.open(N) : d.open(N, g);
16717
16718
  if (!P) throw new te.MissingAPI();
16718
16719
  P.onerror = Dn(O), P.onblocked = J(a._fireOnBlocked), P.onupgradeneeded = J(function(U) {
@@ -16758,7 +16759,7 @@ function fD() {
16758
16759
  }).finally(function() {
16759
16760
  return clearInterval(k);
16760
16761
  }) : Promise.resolve()).then(A)]).then(function() {
16761
- return E(), l.onReadyBeingFired = [], ue.resolve(ys(function() {
16762
+ return S(), l.onReadyBeingFired = [], ue.resolve(ys(function() {
16762
16763
  return a.on.ready.fire(a.vip);
16763
16764
  })).then(function B() {
16764
16765
  if (0 < l.onReadyBeingFired.length) {
@@ -16783,8 +16784,8 @@ function fD() {
16783
16784
  var B;
16784
16785
  return T && (B = {}, a.tables.forEach(function(O) {
16785
16786
  O.schema.indexes.forEach(function(N) {
16786
- N.name && (B["idb://".concat(a.name, "/").concat(O.name, "/").concat(N.name)] = new St(-1 / 0, [[[]]]));
16787
- }), B["idb://".concat(a.name, "/").concat(O.name, "/")] = B["idb://".concat(a.name, "/").concat(O.name, "/:dels")] = new St(-1 / 0, [[[]]]);
16787
+ N.name && (B["idb://".concat(a.name, "/").concat(O.name, "/").concat(N.name)] = new Et(-1 / 0, [[[]]]));
16788
+ }), B["idb://".concat(a.name, "/").concat(O.name, "/")] = B["idb://".concat(a.name, "/").concat(O.name, "/:dels")] = new Et(-1 / 0, [[[]]]);
16788
16789
  }), er(pi).fire(B), Ds(B, !0)), a;
16789
16790
  });
16790
16791
  }
@@ -16810,16 +16811,16 @@ function fD() {
16810
16811
  var rh = { stack: "dbcore", name: "VirtualIndexMiddleware", level: 1, create: function(a) {
16811
16812
  return r(r({}, a), { table: function(l) {
16812
16813
  var d = a.table(l), p = d.schema, g = {}, b = [];
16813
- function E(T, B, O) {
16814
+ function S(T, B, O) {
16814
16815
  var N = mi(T), P = g[N] = g[N] || [], U = T == null ? 0 : typeof T == "string" ? 1 : T.length, F = 0 < B, F = r(r({}, O), { name: F ? "".concat(N, "(virtual-from:").concat(O.name, ")") : O.name, lowLevelIndex: O, isVirtual: F, keyTail: B, keyLength: U, extractKey: fs(T), unique: !F && O.unique });
16815
- return P.push(F), F.isPrimaryKey || b.push(F), 1 < U && E(U === 2 ? T[0] : T.slice(0, U - 1), B + 1, O), P.sort(function(W, q) {
16816
+ return P.push(F), F.isPrimaryKey || b.push(F), 1 < U && S(U === 2 ? T[0] : T.slice(0, U - 1), B + 1, O), P.sort(function(W, q) {
16816
16817
  return W.keyTail - q.keyTail;
16817
16818
  }), F;
16818
16819
  }
16819
- l = E(p.primaryKey.keyPath, 0, p.primaryKey), g[":id"] = [l];
16820
+ l = S(p.primaryKey.keyPath, 0, p.primaryKey), g[":id"] = [l];
16820
16821
  for (var A = 0, k = p.indexes; A < k.length; A++) {
16821
16822
  var M = k[A];
16822
- E(M.keyPath, 0, M);
16823
+ S(M.keyPath, 0, M);
16823
16824
  }
16824
16825
  function j(T) {
16825
16826
  var B, O = T.query.index;
@@ -16855,8 +16856,8 @@ function fD() {
16855
16856
  } };
16856
16857
  function As(a, l, d, p) {
16857
16858
  return d = d || {}, p = p || "", s(a).forEach(function(g) {
16858
- var b, E, A;
16859
- m(l, g) ? (b = a[g], E = l[g], typeof b == "object" && typeof E == "object" && b && E ? (A = ne(b)) !== ne(E) ? d[p + g] = l[g] : A === "Object" ? As(b, E, d, p + g + ".") : b !== E && (d[p + g] = l[g]) : b !== E && (d[p + g] = l[g])) : d[p + g] = void 0;
16859
+ var b, S, A;
16860
+ m(l, g) ? (b = a[g], S = l[g], typeof b == "object" && typeof S == "object" && b && S ? (A = ne(b)) !== ne(S) ? d[p + g] = l[g] : A === "Object" ? As(b, S, d, p + g + ".") : b !== S && (d[p + g] = l[g]) : b !== S && (d[p + g] = l[g])) : d[p + g] = void 0;
16860
16861
  }), s(l).forEach(function(g) {
16861
16862
  m(a, g) || (d[p + g] = l[g]);
16862
16863
  }), d;
@@ -16868,7 +16869,7 @@ function fD() {
16868
16869
  return r(r({}, a), { table: function(l) {
16869
16870
  var d = a.table(l), p = d.schema.primaryKey;
16870
16871
  return r(r({}, d), { mutate: function(g) {
16871
- var b = he.trans, E = b.table(l).hook, A = E.deleting, k = E.creating, M = E.updating;
16872
+ var b = he.trans, S = b.table(l).hook, A = S.deleting, k = S.creating, M = S.updating;
16872
16873
  switch (g.type) {
16873
16874
  case "add":
16874
16875
  if (k.fire === xe) break;
@@ -16963,18 +16964,18 @@ function fD() {
16963
16964
  }
16964
16965
  }
16965
16966
  var sh = { stack: "dbcore", level: 0, name: "Observability", create: function(a) {
16966
- var l = a.schema.name, d = new St(a.MIN_KEY, a.MAX_KEY);
16967
+ var l = a.schema.name, d = new Et(a.MIN_KEY, a.MAX_KEY);
16967
16968
  return r(r({}, a), { transaction: function(p, g, b) {
16968
16969
  if (he.subscr && g !== "readonly") throw new te.ReadOnly("Readwrite transaction in liveQuery context. Querier source: ".concat(he.querier));
16969
16970
  return a.transaction(p, g, b);
16970
16971
  }, table: function(p) {
16971
- var g = a.table(p), b = g.schema, E = b.primaryKey, T = b.indexes, A = E.extractKey, k = E.outbound, M = E.autoIncrement && T.filter(function(O) {
16972
- return O.compound && O.keyPath.includes(E.keyPath);
16972
+ var g = a.table(p), b = g.schema, S = b.primaryKey, T = b.indexes, A = S.extractKey, k = S.outbound, M = S.autoIncrement && T.filter(function(O) {
16973
+ return O.compound && O.keyPath.includes(S.keyPath);
16973
16974
  }), j = r(r({}, g), { mutate: function(O) {
16974
16975
  function N(ce) {
16975
- return ce = "idb://".concat(l, "/").concat(p, "/").concat(ce), q[ce] || (q[ce] = new St());
16976
+ return ce = "idb://".concat(l, "/").concat(p, "/").concat(ce), q[ce] || (q[ce] = new Et());
16976
16977
  }
16977
- var P, U, F, W = O.trans, q = O.mutatedParts || (O.mutatedParts = {}), Y = N(""), se = N(":dels"), de = O.type, fe = O.type === "deleteRange" ? [O.range] : O.type === "delete" ? [O.keys] : O.values.length < 50 ? [_s(E, O).filter(function(ce) {
16978
+ var P, U, F, W = O.trans, q = O.mutatedParts || (O.mutatedParts = {}), Y = N(""), se = N(":dels"), de = O.type, fe = O.type === "deleteRange" ? [O.range] : O.type === "delete" ? [O.keys] : O.values.length < 50 ? [_s(S, O).filter(function(ce) {
16978
16979
  return ce;
16979
16980
  }), O.values] : [], re = fe[0], le = fe[1], fe = O.trans._cache;
16980
16981
  return c(re) ? (Y.addKeys(re), (fe = de === "delete" || re.length === le.length ? Ul(re, fe) : null) || se.addKeys(re), (fe || le) && (P = N, U = fe, F = le, b.indexes.forEach(function(ce) {
@@ -16998,25 +16999,25 @@ function fD() {
16998
16999
  for (var Te = O.values.map(function(Re) {
16999
17000
  return ve.extractKey(Re);
17000
17001
  }), Oe = ve.keyPath.findIndex(function(Re) {
17001
- return Re === E.keyPath;
17002
+ return Re === S.keyPath;
17002
17003
  }), Ne = 0, Bt = ce.results.length; Ne < Bt; ++Ne) Te[Ne][Oe] = ce.results[Ne];
17003
17004
  N(ve.name).addKeys(Te);
17004
17005
  })), W.mutatedParts = Ki(W.mutatedParts || {}, q), ce;
17005
17006
  });
17006
17007
  } }), T = function(N) {
17007
17008
  var P = N.query, N = P.index, P = P.range;
17008
- return [N, new St((N = P.lower) !== null && N !== void 0 ? N : a.MIN_KEY, (P = P.upper) !== null && P !== void 0 ? P : a.MAX_KEY)];
17009
+ return [N, new Et((N = P.lower) !== null && N !== void 0 ? N : a.MIN_KEY, (P = P.upper) !== null && P !== void 0 ? P : a.MAX_KEY)];
17009
17010
  }, B = { get: function(O) {
17010
- return [E, new St(O.key)];
17011
+ return [S, new Et(O.key)];
17011
17012
  }, getMany: function(O) {
17012
- return [E, new St().addKeys(O.keys)];
17013
+ return [S, new Et().addKeys(O.keys)];
17013
17014
  }, count: T, query: T, openCursor: T };
17014
17015
  return s(B).forEach(function(O) {
17015
17016
  j[O] = function(N) {
17016
17017
  var P = he.subscr, U = !!P, F = Bl(he, g) && Fl(O, N) ? N.obsSet = {} : P;
17017
17018
  if (U) {
17018
17019
  var W = function(le) {
17019
- return le = "idb://".concat(l, "/").concat(p, "/").concat(le), F[le] || (F[le] = new St());
17020
+ return le = "idb://".concat(l, "/").concat(p, "/").concat(le), F[le] || (F[le] = new Et());
17020
17021
  }, q = W(""), Y = W(":dels"), P = B[O](N), U = P[0], P = P[1];
17021
17022
  if ((O === "query" && U.isPrimaryKey && !N.values ? Y : W(U.name || "")).add(P), !U.isPrimaryKey) {
17022
17023
  if (O !== "count") {
@@ -17066,9 +17067,9 @@ function fD() {
17066
17067
  }
17067
17068
  function $l(a, l, B, p, g, b) {
17068
17069
  if (!B || B.length === 0) return a;
17069
- var E = l.query.index, A = E.multiEntry, k = l.query.range, M = p.schema.primaryKey.extractKey, j = E.extractKey, T = (E.lowLevelIndex || E).extractKey, B = B.reduce(function(O, N) {
17070
+ var S = l.query.index, A = S.multiEntry, k = l.query.range, M = p.schema.primaryKey.extractKey, j = S.extractKey, T = (S.lowLevelIndex || S).extractKey, B = B.reduce(function(O, N) {
17070
17071
  var P = O, U = [];
17071
- if (N.type === "add" || N.type === "put") for (var F = new St(), W = N.values.length - 1; 0 <= W; --W) {
17072
+ if (N.type === "add" || N.type === "put") for (var F = new Et(), W = N.values.length - 1; 0 <= W; --W) {
17072
17073
  var q, Y = N.values[W], se = M(Y);
17073
17074
  F.hasKey(se) || (q = j(Y), (A && c(q) ? q.some(function(ce) {
17074
17075
  return xs(ce, k);
@@ -17076,7 +17077,7 @@ function fD() {
17076
17077
  }
17077
17078
  switch (N.type) {
17078
17079
  case "add":
17079
- var de = new St().addKeys(l.values ? O.map(function(ve) {
17080
+ var de = new Et().addKeys(l.values ? O.map(function(ve) {
17080
17081
  return M(ve);
17081
17082
  }) : O), P = O.concat(l.values ? U.filter(function(ve) {
17082
17083
  return ve = M(ve), !de.hasKey(ve) && (de.addKey(ve), !0);
@@ -17087,7 +17088,7 @@ function fD() {
17087
17088
  }));
17088
17089
  break;
17089
17090
  case "put":
17090
- var re = new St().addKeys(N.values.map(function(ve) {
17091
+ var re = new Et().addKeys(N.values.map(function(ve) {
17091
17092
  return M(ve);
17092
17093
  }));
17093
17094
  P = O.filter(function(ve) {
@@ -17097,7 +17098,7 @@ function fD() {
17097
17098
  }));
17098
17099
  break;
17099
17100
  case "delete":
17100
- var le = new St().addKeys(N.keys);
17101
+ var le = new Et().addKeys(N.keys);
17101
17102
  P = O.filter(function(ve) {
17102
17103
  return !le.hasKey(l.values ? M(ve) : ve);
17103
17104
  });
@@ -17149,8 +17150,8 @@ function fD() {
17149
17150
  var ch = { stack: "dbcore", level: 0, name: "Cache", create: function(a) {
17150
17151
  var l = a.schema.name;
17151
17152
  return r(r({}, a), { transaction: function(d, p, g) {
17152
- var b, E, A = a.transaction(d, p, g);
17153
- return p === "readwrite" && (E = (b = new AbortController()).signal, g = function(k) {
17153
+ var b, S, A = a.transaction(d, p, g);
17154
+ return p === "readwrite" && (S = (b = new AbortController()).signal, g = function(k) {
17154
17155
  return function() {
17155
17156
  if (b.abort(), p === "readwrite") {
17156
17157
  for (var M = /* @__PURE__ */ new Set(), j = 0, T = d; j < T.length; j++) {
@@ -17179,20 +17180,20 @@ function fD() {
17179
17180
  });
17180
17181
  }
17181
17182
  };
17182
- }, A.addEventListener("abort", g(!1), { signal: E }), A.addEventListener("error", g(!1), { signal: E }), A.addEventListener("complete", g(!0), { signal: E })), A;
17183
+ }, A.addEventListener("abort", g(!1), { signal: S }), A.addEventListener("error", g(!1), { signal: S }), A.addEventListener("complete", g(!0), { signal: S })), A;
17183
17184
  }, table: function(d) {
17184
17185
  var p = a.table(d), g = p.schema.primaryKey;
17185
17186
  return r(r({}, p), { mutate: function(b) {
17186
- var E = he.trans;
17187
- if (g.outbound || E.db._options.cache === "disabled" || E.explicit || E.idbtrans.mode !== "readwrite") return p.mutate(b);
17187
+ var S = he.trans;
17188
+ if (g.outbound || S.db._options.cache === "disabled" || S.explicit || S.idbtrans.mode !== "readwrite") return p.mutate(b);
17188
17189
  var A = wr["idb://".concat(l, "/").concat(d)];
17189
- return A ? (E = p.mutate(b), b.type !== "add" && b.type !== "put" || !(50 <= b.values.length || _s(g, b).some(function(k) {
17190
+ return A ? (S = p.mutate(b), b.type !== "add" && b.type !== "put" || !(50 <= b.values.length || _s(g, b).some(function(k) {
17190
17191
  return k == null;
17191
- })) ? (A.optimisticOps.push(b), b.mutatedParts && Qi(b.mutatedParts), E.then(function(k) {
17192
+ })) ? (A.optimisticOps.push(b), b.mutatedParts && Qi(b.mutatedParts), S.then(function(k) {
17192
17193
  0 < k.numFailures && (Z(A.optimisticOps, b), (k = zl(0, b, k)) && A.optimisticOps.push(k), b.mutatedParts && Qi(b.mutatedParts));
17193
- }), E.catch(function() {
17194
+ }), S.catch(function() {
17194
17195
  Z(A.optimisticOps, b), b.mutatedParts && Qi(b.mutatedParts);
17195
- })) : E.then(function(k) {
17196
+ })) : S.then(function(k) {
17196
17197
  var M = zl(0, r(r({}, b), { values: b.values.map(function(j, T) {
17197
17198
  var B;
17198
17199
  return k.failures[T] ? j : (j = (B = g.keyPath) !== null && B !== void 0 && B.includes(".") ? je(j) : r({}, j), Q(j, g.keyPath, k.results[T]), j);
@@ -17200,10 +17201,10 @@ function fD() {
17200
17201
  A.optimisticOps.push(M), queueMicrotask(function() {
17201
17202
  return b.mutatedParts && Qi(b.mutatedParts);
17202
17203
  });
17203
- }), E) : p.mutate(b);
17204
+ }), S) : p.mutate(b);
17204
17205
  }, query: function(b) {
17205
17206
  if (!Bl(he, p) || !Fl("query", b)) return p.query(b);
17206
- var E = ((M = he.trans) === null || M === void 0 ? void 0 : M.db._options.cache) === "immutable", T = he, A = T.requery, k = T.signal, M = (function(N, P, U, F) {
17207
+ var S = ((M = he.trans) === null || M === void 0 ? void 0 : M.db._options.cache) === "immutable", T = he, A = T.requery, k = T.signal, M = (function(N, P, U, F) {
17207
17208
  var W = wr["idb://".concat(N, "/").concat(P)];
17208
17209
  if (!W) return [];
17209
17210
  if (!(P = W.queries[U])) return [null, !1, W, null];
@@ -17225,7 +17226,7 @@ function fD() {
17225
17226
  })(l, d, "query", b), j = M[0], T = M[1], B = M[2], O = M[3];
17226
17227
  return j && T ? j.obsSet = b.obsSet : (T = p.query(b).then(function(N) {
17227
17228
  var P = N.result;
17228
- if (j && (j.res = P), E) {
17229
+ if (j && (j.res = P), S) {
17229
17230
  for (var U = 0, F = P.length; U < F; ++U) Object.freeze(P[U]);
17230
17231
  Object.freeze(P);
17231
17232
  } else N.result = je(P);
@@ -17233,7 +17234,7 @@ function fD() {
17233
17234
  }).catch(function(N) {
17234
17235
  return O && j && Z(O, j), Promise.reject(N);
17235
17236
  }), j = { obsSet: b.obsSet, promise: T, subscribers: /* @__PURE__ */ new Set(), type: "query", req: b, dirty: !1 }, O ? O.push(j) : (O = [j], (B = B || (wr["idb://".concat(l, "/").concat(d)] = { queries: { query: {}, count: {} }, objs: /* @__PURE__ */ new Map(), optimisticOps: [], unsignaledParts: {} })).queries.query[b.query.index.name || ""] = O)), lh(j, O, A, k), j.promise.then(function(N) {
17236
- return { result: $l(N.result, b, B?.optimisticOps, p, j, E) };
17237
+ return { result: $l(N.result, b, B?.optimisticOps, p, j, S) };
17237
17238
  });
17238
17239
  } });
17239
17240
  } });
@@ -17263,8 +17264,8 @@ function fD() {
17263
17264
  }).then(a);
17264
17265
  }, at.prototype.use = function(a) {
17265
17266
  var l = a.stack, d = a.create, p = a.level, g = a.name;
17266
- return g && this.unuse({ stack: l, name: g }), a = this._middlewares[l] || (this._middlewares[l] = []), a.push({ stack: l, create: d, level: p ?? 10, name: g }), a.sort(function(b, E) {
17267
- return b.level - E.level;
17267
+ return g && this.unuse({ stack: l, name: g }), a = this._middlewares[l] || (this._middlewares[l] = []), a.push({ stack: l, create: d, level: p ?? 10, name: g }), a.sort(function(b, S) {
17268
+ return b.level - S.level;
17268
17269
  }), this;
17269
17270
  }, at.prototype.unuse = function(a) {
17270
17271
  var l = a.stack, d = a.name, p = a.create;
@@ -17273,7 +17274,7 @@ function fD() {
17273
17274
  })), this;
17274
17275
  }, at.prototype.open = function() {
17275
17276
  var a = this;
17276
- return Sn(Xe, function() {
17277
+ return En(Xe, function() {
17277
17278
  return nh(a);
17278
17279
  });
17279
17280
  }, at.prototype._close = function() {
@@ -17299,7 +17300,7 @@ function fD() {
17299
17300
  a === void 0 && (a = { disableAutoOpen: !0 });
17300
17301
  var d = 0 < arguments.length && typeof arguments[0] != "object", p = this._state;
17301
17302
  return new ue(function(g, b) {
17302
- function E() {
17303
+ function S() {
17303
17304
  l.close(a);
17304
17305
  var A = l._deps.indexedDB.deleteDatabase(l.name);
17305
17306
  A.onsuccess = J(function() {
@@ -17308,7 +17309,7 @@ function fD() {
17308
17309
  }), A.onerror = Dn(b), A.onblocked = l._fireOnBlocked;
17309
17310
  }
17310
17311
  if (d) throw new te.InvalidArgument("Invalid closeOptions argument to db.delete()");
17311
- p.isBeingOpened ? p.dbReadyPromise.then(E) : E();
17312
+ p.isBeingOpened ? p.dbReadyPromise.then(S) : S();
17312
17313
  });
17313
17314
  }, at.prototype.backendDB = function() {
17314
17315
  return this.idbdb;
@@ -17337,10 +17338,10 @@ function fD() {
17337
17338
  }, at.prototype._transaction = function(a, l, d) {
17338
17339
  var p = this, g = he.trans;
17339
17340
  g && g.db === this && a.indexOf("!") === -1 || (g = null);
17340
- var b, E, A = a.indexOf("?") !== -1;
17341
+ var b, S, A = a.indexOf("?") !== -1;
17341
17342
  a = a.replace("!", "").replace("?", "");
17342
17343
  try {
17343
- if (E = l.map(function(M) {
17344
+ if (S = l.map(function(M) {
17344
17345
  if (M = M instanceof p.Table ? M.name : M, typeof M != "string") throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");
17345
17346
  return M;
17346
17347
  }), a == "r" || a === yr) b = yr;
@@ -17353,7 +17354,7 @@ function fD() {
17353
17354
  if (!A) throw new te.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");
17354
17355
  g = null;
17355
17356
  }
17356
- g && E.forEach(function(M) {
17357
+ g && S.forEach(function(M) {
17357
17358
  if (g && g.storeNames.indexOf(M) === -1) {
17358
17359
  if (!A) throw new te.SubTransaction("Table " + M + " not included in parent transaction.");
17359
17360
  g = null;
@@ -17392,8 +17393,8 @@ function fD() {
17392
17393
  return U._reject(q), rt(q);
17393
17394
  });
17394
17395
  });
17395
- }).bind(null, this, b, E, g, d);
17396
- return g ? g._promise(b, k, "lock") : he.trans ? Sn(he.transless, function() {
17396
+ }).bind(null, this, b, S, g, d);
17397
+ return g ? g._promise(b, k, "lock") : he.trans ? En(he.transless, function() {
17397
17398
  return p._whenReady(k);
17398
17399
  }) : this._whenReady(k);
17399
17400
  }, at.prototype.table = function(a) {
@@ -17405,7 +17406,7 @@ function fD() {
17405
17406
  this._middlewares = {}, this.verno = 0;
17406
17407
  var p = at.dependencies;
17407
17408
  this._options = l = r({ addons: at.addons, autoOpen: !0, indexedDB: p.indexedDB, IDBKeyRange: p.IDBKeyRange, cache: "cloned" }, l), this._deps = { indexedDB: l.indexedDB, IDBKeyRange: l.IDBKeyRange }, p = l.addons, this._dbSchema = {}, this._versions = [], this._storeNames = [], this._allTables = {}, this.idbdb = null, this._novip = this;
17408
- var g, b, E, A, k, M = { dbOpenError: null, isBeingOpened: !1, onReadyBeingFired: null, openComplete: !1, dbReadyResolve: xe, dbReadyPromise: null, cancelOpen: xe, openCanceller: null, autoSchema: !0, PR1398_maxLoop: 3, autoOpen: l.autoOpen };
17409
+ var g, b, S, A, k, M = { dbOpenError: null, isBeingOpened: !1, onReadyBeingFired: null, openComplete: !1, dbReadyResolve: xe, dbReadyPromise: null, cancelOpen: xe, openCanceller: null, autoSchema: !0, PR1398_maxLoop: 3, autoOpen: l.autoOpen };
17409
17410
  M.dbReadyPromise = new ue(function(T) {
17410
17411
  M.dbReadyResolve = T;
17411
17412
  }), M.openCanceller = new ue(function(T, B) {
@@ -17436,14 +17437,14 @@ function fD() {
17436
17437
  var P = F._ctx, U = P.table, F = U.hook.reading.fire;
17437
17438
  this._ctx = { table: U, index: P.index, isPrimKey: !P.index || U.schema.primKey.keyPath && P.index === U.schema.primKey.name, range: O, keysOnly: !1, dir: "next", unique: "", algorithm: null, filter: null, replayFilter: null, justLimit: !0, isMatch: null, offset: 0, limit: 1 / 0, error: N, or: P.or, valueMapper: F !== pt ? F : null };
17438
17439
  })), this.Table = (b = this, fi(Al.prototype, function(T, B, O) {
17439
- this.db = b, this._tx = O, this.name = T, this.schema = B, this.hook = b._allTables[T] ? b._allTables[T].hook : di(null, { creating: [Hr, xe], reading: [Kn, pt], updating: [vr, xe], deleting: [Et, xe] });
17440
- })), this.Transaction = (E = this, fi(Yf.prototype, function(T, B, O, N, P) {
17440
+ this.db = b, this._tx = O, this.name = T, this.schema = B, this.hook = b._allTables[T] ? b._allTables[T].hook : di(null, { creating: [Hr, xe], reading: [Kn, pt], updating: [vr, xe], deleting: [St, xe] });
17441
+ })), this.Transaction = (S = this, fi(Yf.prototype, function(T, B, O, N, P) {
17441
17442
  var U = this;
17442
17443
  T !== "readonly" && B.forEach(function(F) {
17443
17444
  F = (F = O[F]) === null || F === void 0 ? void 0 : F.yProps, F && (B = B.concat(F.map(function(W) {
17444
17445
  return W.updatesTable;
17445
17446
  })));
17446
- }), this.db = E, this.mode = T, this.storeNames = B, this.schema = O, this.chromeTransactionDurability = N, this.idbtrans = null, this.on = di(this, "complete", "error", "abort"), this.parent = P || null, this.active = !0, this._reculock = 0, this._blockedFuncs = [], this._resolve = null, this._reject = null, this._waitingFor = null, this._waitingQueue = null, this._spinCount = 0, this._completion = new ue(function(F, W) {
17447
+ }), this.db = S, this.mode = T, this.storeNames = B, this.schema = O, this.chromeTransactionDurability = N, this.idbtrans = null, this.on = di(this, "complete", "error", "abort"), this.parent = P || null, this.active = !0, this._reculock = 0, this._blockedFuncs = [], this._resolve = null, this._reject = null, this._waitingFor = null, this._waitingQueue = null, this._spinCount = 0, this._completion = new ue(function(F, W) {
17447
17448
  U._resolve = F, U._reject = W;
17448
17449
  }), this._completion.then(function() {
17449
17450
  U.active = !1, U.on.complete.fire();
@@ -17505,10 +17506,10 @@ function fD() {
17505
17506
  }
17506
17507
  function Vl(a) {
17507
17508
  var l, d = !1, p = new uh(function(g) {
17508
- var b = Ie(a), E, A = !1, k = {}, M = {}, j = { get closed() {
17509
+ var b = Ie(a), S, A = !1, k = {}, M = {}, j = { get closed() {
17509
17510
  return A;
17510
17511
  }, unsubscribe: function() {
17511
- A || (A = !0, E && E.abort(), T && er.storagemutated.unsubscribe(O));
17512
+ A || (A = !0, S && S.abort(), T && er.storagemutated.unsubscribe(O));
17512
17513
  } };
17513
17514
  g.start && g.start(j);
17514
17515
  var T = !1, B = function() {
@@ -17517,8 +17518,8 @@ function fD() {
17517
17518
  Ki(k, P), ws(M, k) && B();
17518
17519
  }, N = function() {
17519
17520
  var P, U, F;
17520
- !A && Ji.indexedDB && (k = {}, P = {}, E && E.abort(), E = new AbortController(), F = (function(W) {
17521
- var q = Ee();
17521
+ !A && Ji.indexedDB && (k = {}, P = {}, S && S.abort(), S = new AbortController(), F = (function(W) {
17522
+ var q = Se();
17522
17523
  try {
17523
17524
  b && ft();
17524
17525
  var Y = nt(a, W);
@@ -17526,7 +17527,7 @@ function fD() {
17526
17527
  } finally {
17527
17528
  q && ke();
17528
17529
  }
17529
- })(U = { subscr: P, signal: E.signal, requery: B, querier: a, trans: null }), Promise.resolve(F).then(function(W) {
17530
+ })(U = { subscr: P, signal: S.signal, requery: B, querier: a, trans: null }), Promise.resolve(F).then(function(W) {
17530
17531
  d = !0, l = W, A || U.signal.aborted || (k = {}, (function(q) {
17531
17532
  for (var Y in q) if (m(q, Y)) return;
17532
17533
  return 1;
@@ -17547,7 +17548,7 @@ function fD() {
17547
17548
  return l;
17548
17549
  }, p;
17549
17550
  }
17550
- var Er = zn;
17551
+ var Sr = zn;
17551
17552
  function Ts(a) {
17552
17553
  var l = tr;
17553
17554
  try {
@@ -17556,17 +17557,17 @@ function fD() {
17556
17557
  tr = l;
17557
17558
  }
17558
17559
  }
17559
- y(Er, r(r({}, ut), { delete: function(a) {
17560
- return new Er(a, { addons: [] }).delete();
17560
+ y(Sr, r(r({}, ut), { delete: function(a) {
17561
+ return new Sr(a, { addons: [] }).delete();
17561
17562
  }, exists: function(a) {
17562
- return new Er(a, { addons: [] }).open().then(function(l) {
17563
+ return new Sr(a, { addons: [] }).open().then(function(l) {
17563
17564
  return l.close(), !0;
17564
17565
  }).catch("NoSuchDatabaseError", function() {
17565
17566
  return !1;
17566
17567
  });
17567
17568
  }, getDatabaseNames: function(a) {
17568
17569
  try {
17569
- return l = Er.dependencies, d = l.indexedDB, l = l.IDBKeyRange, (vs(d) ? Promise.resolve(d.databases()).then(function(p) {
17570
+ return l = Sr.dependencies, d = l.indexedDB, l = l.IDBKeyRange, (vs(d) ? Promise.resolve(d.databases()).then(function(p) {
17570
17571
  return p.map(function(g) {
17571
17572
  return g.name;
17572
17573
  }).filter(function(g) {
@@ -17582,7 +17583,7 @@ function fD() {
17582
17583
  u(this, a);
17583
17584
  };
17584
17585
  }, ignoreTransaction: function(a) {
17585
- return he.trans ? Sn(he.transless, a) : a();
17586
+ return he.trans ? En(he.transless, a) : a();
17586
17587
  }, vip: ys, async: function(a) {
17587
17588
  return function() {
17588
17589
  try {
@@ -17602,7 +17603,7 @@ function fD() {
17602
17603
  }, currentTransaction: { get: function() {
17603
17604
  return he.trans || null;
17604
17605
  } }, waitFor: function(a, l) {
17605
- return l = ue.resolve(typeof a == "function" ? Er.ignoreTransaction(a) : a).timeout(l || 6e4), he.trans ? he.trans.waitFor(l) : l;
17606
+ return l = ue.resolve(typeof a == "function" ? Sr.ignoreTransaction(a) : a).timeout(l || 6e4), he.trans ? he.trans.waitFor(l) : l;
17606
17607
  }, Promise: ue, debug: { get: function() {
17607
17608
  return Be;
17608
17609
  }, set: function(a) {
@@ -17615,7 +17616,7 @@ function fD() {
17615
17616
  return parseInt(a);
17616
17617
  }).reduce(function(a, l, d) {
17617
17618
  return a + l / Math.pow(10, 2 * d);
17618
- }) })), Er.maxKey = gi(Er.dependencies.IDBKeyRange), typeof dispatchEvent < "u" && typeof addEventListener < "u" && (er(pi, function(a) {
17619
+ }) })), Sr.maxKey = gi(Sr.dependencies.IDBKeyRange), typeof dispatchEvent < "u" && typeof addEventListener < "u" && (er(pi, function(a) {
17619
17620
  tr || (a = new CustomEvent(cs, { detail: a }), tr = !0, dispatchEvent(a), tr = !1);
17620
17621
  }), addEventListener(cs, function(a) {
17621
17622
  a = a.detail, tr || Ts(a);
@@ -17634,9 +17635,9 @@ function fD() {
17634
17635
  for (var l = 0, d = en; l < d.length; l++) d[l].close({ disableAutoOpen: !1 });
17635
17636
  }
17636
17637
  }), addEventListener("pageshow", function(a) {
17637
- !zn.disableBfCache && a.persisted && (Be && console.debug("Dexie: handling persisted pageshow"), ql(), Ts({ all: new St(-1 / 0, [[]]) }));
17638
+ !zn.disableBfCache && a.persisted && (Be && console.debug("Dexie: handling persisted pageshow"), ql(), Ts({ all: new Et(-1 / 0, [[]]) }));
17638
17639
  })), ue.rejectionMapper = function(a, l) {
17639
- return !a || a instanceof Me || a instanceof TypeError || a instanceof SyntaxError || !a.name || !Ve[a.name] ? a : (l = new Ve[a.name](l || a.message, a), "stack" in a && S(l, "stack", { get: function() {
17640
+ return !a || a instanceof Me || a instanceof TypeError || a instanceof SyntaxError || !a.name || !Ve[a.name] ? a : (l = new Ve[a.name](l || a.message, a), "stack" in a && E(l, "stack", { get: function() {
17640
17641
  return this.inner.stack;
17641
17642
  } }), l);
17642
17643
  }, Un(Be), r(zn, Object.freeze({ __proto__: null, Dexie: zn, liveQuery: Vl, Entity: wl, cmp: He, PropModification: ui, replacePrefix: function(a, l) {
@@ -17645,12 +17646,12 @@ function fD() {
17645
17646
  return new ui({ add: a });
17646
17647
  }, remove: function(a) {
17647
17648
  return new ui({ remove: a });
17648
- }, default: zn, RangeSet: St, mergeRanges: yi, rangesOverlap: Pl }), { default: zn }), zn;
17649
+ }, default: zn, RangeSet: Et, mergeRanges: yi, rangesOverlap: Pl }), { default: zn }), zn;
17649
17650
  });
17650
17651
  })(wo)), wo.exports;
17651
17652
  }
17652
17653
  var hD = fD();
17653
- const _a = /* @__PURE__ */ yl(hD), Su = /* @__PURE__ */ Symbol.for("Dexie"), Bo = globalThis[Su] || (globalThis[Su] = _a);
17654
+ const _a = /* @__PURE__ */ yl(hD), Eu = /* @__PURE__ */ Symbol.for("Dexie"), Bo = globalThis[Eu] || (globalThis[Eu] = _a);
17654
17655
  if (_a.semVer !== Bo.semVer)
17655
17656
  throw new Error(`Two different versions of Dexie loaded in the same app: ${_a.semVer} and ${Bo.semVer}`);
17656
17657
  const {
@@ -17686,7 +17687,7 @@ class pD extends Bo {
17686
17687
  const jr = new pD();
17687
17688
  async function gD(t) {
17688
17689
  const e = await jr.cases.get(t), n = Date.now();
17689
- return e && Array.isArray(e.data) && n - e.timestamp < cE ? e.data : null;
17690
+ return e && Array.isArray(e.data) && n - e.timestamp < cS ? e.data : null;
17690
17691
  }
17691
17692
  async function mD(t, e) {
17692
17693
  try {
@@ -17700,7 +17701,7 @@ async function vD(t) {
17700
17701
  }
17701
17702
  async function yD() {
17702
17703
  const t = await jr.courtDates.get("all"), e = Date.now();
17703
- return t && Array.isArray(t.data) && e - t.timestamp < uE ? t.data : null;
17704
+ return t && Array.isArray(t.data) && e - t.timestamp < uS ? t.data : null;
17704
17705
  }
17705
17706
  async function Du(t) {
17706
17707
  try {
@@ -17711,7 +17712,7 @@ async function Du(t) {
17711
17712
  }
17712
17713
  async function bD() {
17713
17714
  const t = await jr.negotiations.get("all"), e = Date.now();
17714
- return t && Array.isArray(t.data) && e - t.timestamp < dE ? t.data : null;
17715
+ return t && Array.isArray(t.data) && e - t.timestamp < dS ? t.data : null;
17715
17716
  }
17716
17717
  async function Cu(t) {
17717
17718
  try {
@@ -17726,9 +17727,9 @@ function wD({
17726
17727
  selectedCourtDate: n
17727
17728
  }) {
17728
17729
  const [r, i] = me({}), [o, s] = me([]), [c, u] = me(!1);
17729
- async function h(S, D, _) {
17730
- console.log(`Looking for ${S.length} court dates' cases...`), u(!0);
17731
- const R = new Map(S.map((G) => [Wt(G), G])), x = {}, H = [], L = {}, I = [], z = {};
17730
+ async function h(E, D, _) {
17731
+ console.log(`Looking for ${E.length} court dates' cases...`), u(!0);
17732
+ const R = new Map(E.map((G) => [Wt(G), G])), x = {}, H = [], L = {}, I = [], z = {};
17732
17733
  for (const G of R.keys())
17733
17734
  !D && r[G] ? x[G] = r[G] : H.push(G);
17734
17735
  console.log(`Found ${H.length} missing from memory, checking cache...`);
@@ -17759,27 +17760,27 @@ function wD({
17759
17760
  `Cases fetched - Memory: ${Object.keys(x).length}, Cache: ${Object.keys(L).length}, Fetched: ${Object.keys(z).length}`
17760
17761
  ), { ...x, ...L, ...z };
17761
17762
  }
17762
- async function f(S, D) {
17763
+ async function f(E, D) {
17763
17764
  if (console.log(
17764
- `Adding ${Object.keys(S).length} partial cases to ${D ? "memory only" : "memory and cache"}...`
17765
+ `Adding ${Object.keys(E).length} partial cases to ${D ? "memory only" : "memory and cache"}...`
17765
17766
  ), i((_) => {
17766
17767
  const R = { ..._ };
17767
- return Object.entries(S).forEach(([x, H]) => {
17768
+ return Object.entries(E).forEach(([x, H]) => {
17768
17769
  R[x.toString()] = H;
17769
17770
  }), R;
17770
17771
  }), n) {
17771
17772
  const _ = Wt(n);
17772
- S[_] && s(S[_]);
17773
+ E[_] && s(E[_]);
17773
17774
  }
17774
- D || await Promise.all(Object.entries(S).map(([_, R]) => mD(_, R)));
17775
+ D || await Promise.all(Object.entries(E).map(([_, R]) => mD(_, R)));
17775
17776
  }
17776
- async function m(S) {
17777
+ async function m(E) {
17777
17778
  i((D) => {
17778
17779
  const _ = { ...D };
17779
- return delete _[S], _;
17780
- }), await vD(S);
17780
+ return delete _[E], _;
17781
+ }), await vD(E);
17781
17782
  }
17782
- const y = zt(() => e.map((S) => Wt(S)).join(","), [e]);
17783
+ const y = zt(() => e.map((E) => Wt(E)).join(","), [e]);
17783
17784
  be(() => {
17784
17785
  e.length !== 0 && (async () => await h(e, !1, !1))();
17785
17786
  }, [y]);
@@ -17790,19 +17791,19 @@ function wD({
17790
17791
  return;
17791
17792
  }
17792
17793
  (async () => {
17793
- const S = await h([n], !0, !0);
17794
- s(S[Wt(n)] || []);
17794
+ const E = await h([n], !0, !0);
17795
+ s(E[Wt(n)] || []);
17795
17796
  })();
17796
17797
  }, [v]), { allCases: r, selectedCases: o, isFetchingCases: c, addPartialCasesToMemoryAndCache: f, deleteCaseMemoryAndCache: m };
17797
17798
  }
17798
- function ED({
17799
+ function SD({
17799
17800
  courtDates: t,
17800
17801
  allCases: e,
17801
17802
  apiKey: n,
17802
17803
  modalIsOpen: r,
17803
17804
  filterCtx: i
17804
17805
  }) {
17805
- const { getTownshipName: o, activeUser: s, allUsers: c } = Ot(), [u, h] = me([]), [f, m] = me(""), [y, v] = me([]), S = mt(/* @__PURE__ */ new Set());
17806
+ const { getTownshipName: o, activeUser: s, allUsers: c } = Ot(), [u, h] = me([]), [f, m] = me(""), [y, v] = me([]), E = mt(/* @__PURE__ */ new Set());
17806
17807
  be(() => {
17807
17808
  v([]), i.searchTerm.trim() !== "" && (async () => {
17808
17809
  for await (const I of rD(i.searchTerm, n))
@@ -17816,7 +17817,7 @@ function ED({
17816
17817
  const _ = zt(() => t.filter((I) => I.CourtDateID == null ? (console.warn(
17817
17818
  "[UseCalendarEvents] Skipping date with missing CourtDateID — check API response field names:",
17818
17819
  I
17819
- ), !1) : !0).filter((I) => y.length === 0 || i.searchTerm.trim() === "" ? !0 : y.includes(I.CourtDateID)).filter((I) => i.showInPerson ? !0 : I.Type !== It.IN_PERSON).filter((I) => i.showVirtual ? !0 : I.Type !== It.VIRTUAL).filter((I) => i.showUnknown ? !0 : I.Type !== It.UNKNOWN && I.Type !== null).filter((I) => i.showOnlyAssignedToUser !== null ? I.FirstChair === i.showOnlyAssignedToUser || I.SecondChair === i.showOnlyAssignedToUser : !0).filter((I) => i.municode ? I.MuniCode === i.municode : !0).filter((I) => {
17820
+ ), !1) : !0).filter((I) => y.length === 0 || i.searchTerm.trim() === "" ? !0 : y.includes(I.CourtDateID)).filter((I) => i.showInPerson ? !0 : I.Type !== It.IN_PERSON).filter((I) => i.showVirtual ? !0 : I.Type !== It.VIRTUAL).filter((I) => i.showUnknown ? !0 : I.Type !== It.UNKNOWN && I.Type !== null).filter((I) => i.showOnlyAssignedToUser !== null ? i.showOnlyAssignedToUser === -1 ? I.FirstChair === null && I.SecondChair === null : I.FirstChair === i.showOnlyAssignedToUser || I.SecondChair === i.showOnlyAssignedToUser : !0).filter((I) => i.municode ? I.MuniCode === i.municode : !0).filter((I) => {
17820
17821
  if (i.showOnlyUnsettled || i.showOnlyWithoutEvidence || i.showOnlyUnreviewed) {
17821
17822
  const z = e[Wt(I)];
17822
17823
  return z === void 0 || z.length === 0 ? !1 : Ca(z, i, ur(I.MuniCode)).length > 0;
@@ -17939,7 +17940,7 @@ function ED({
17939
17940
  }, [R, H, x, r]), be(() => {
17940
17941
  if (Array.isArray(u)) {
17941
17942
  const I = new Set(u.map((Q) => Q.id?.toString()).filter(Boolean)), z = setTimeout(() => {
17942
- S.current = I;
17943
+ E.current = I;
17943
17944
  }, 0);
17944
17945
  return () => clearTimeout(z);
17945
17946
  }
@@ -17954,10 +17955,10 @@ function ED({
17954
17955
  }
17955
17956
  Array.isArray(u) && (Q = u.filter(ae).filter((Me) => {
17956
17957
  const We = Me.id?.toString();
17957
- return We && !S.current.has(We);
17958
+ return We && !E.current.has(We);
17958
17959
  }), $ = Q.findIndex((Me) => Me.id === I.event.id));
17959
17960
  const _e = I.event.id?.toString();
17960
- _e && !S.current.has(_e) ? (I.el.classList.add("pop-in-ccalendar-event"), I.el.style.animationDelay = `${30 * ($ >= 0 ? $ : 0)}ms`) : (I.el.classList.remove("pop-in-ccalendar-event"), I.el.style.animationDelay = "0ms");
17961
+ _e && !E.current.has(_e) ? (I.el.classList.add("pop-in-ccalendar-event"), I.el.style.animationDelay = `${30 * ($ >= 0 ? $ : 0)}ms`) : (I.el.classList.remove("pop-in-ccalendar-event"), I.el.style.animationDelay = "0ms");
17961
17962
  const je = I.event.extendedProps._bucketUnsettled ?? 0, ie = I.event.extendedProps._bucketTotal ?? 0, ne = I.event.extendedProps._bucketKey !== "original" && I.event.extendedProps._bucketKey !== void 0, X = I.event.extendedProps.MuniCode, oe = `${o(X)} (${X})`, Z = I.event.extendedProps.FirstChair, pe = Z != null ? c[Z] : null, ye = pe ? `${pe.UserFirstName} ${pe.UserLastName}` : "Unassigned", Ie = I.event.start?.toLocaleString("en-US", {
17962
17963
  month: "2-digit",
17963
17964
  day: "2-digit",
@@ -17980,7 +17981,7 @@ function ED({
17980
17981
  }
17981
17982
  return { events: u, filteredDates: _, eventHash: f, handleEventMount: L };
17982
17983
  }
17983
- function SD() {
17984
+ function ED() {
17984
17985
  const [t, e] = me(!1), [n, r] = me(null), [i, o] = me(Ye.DETAILS), [s, c] = me(null);
17985
17986
  function u(m) {
17986
17987
  r({ ...Af, CourtDateID: -1, CourtDate: m || null }), o(Ye.CREATE), e(!0);
@@ -18035,7 +18036,7 @@ function CD({
18035
18036
  CourtDateID: v.CourtDateID ?? v.NegDateID,
18036
18037
  CourtDate: v.CourtDate ?? (v.Date ? new Date(v.Date) : v.CourtDate),
18037
18038
  HearingTime: v.HearingTime ?? v.Time ?? "",
18038
- MultipleDates: Array.isArray(v.MultipleDates) ? v.MultipleDates.map((S) => S instanceof Date ? S : new Date(S)) : null
18039
+ MultipleDates: Array.isArray(v.MultipleDates) ? v.MultipleDates.map((E) => E instanceof Date ? E : new Date(E)) : null
18039
18040
  }));
18040
18041
  }
18041
18042
  async function u() {
@@ -18068,10 +18069,10 @@ function CD({
18068
18069
  return _ !== -1 ? (R = [...D], v ? R.splice(_, 1) : R[_] = y) : R = [...D, y], queueMicrotask(() => Du(R)), R;
18069
18070
  }), n((D) => D && D.CourtDateID === y.CourtDateID ? v ? null : y : D);
18070
18071
  }
18071
- function m(y, v, S) {
18072
+ function m(y, v, E) {
18072
18073
  const D = r.find((R) => R.CourtDateID === y) ?? o.find((R) => R.CourtDateID === y);
18073
18074
  if (!D) return;
18074
- const _ = v === "first" ? { FirstChair: S } : { SecondChair: S };
18075
+ const _ = v === "first" ? { FirstChair: E } : { SecondChair: E };
18075
18076
  f({ ...D, ..._ }), bo(y, _, t, void 0, e, D.DateType ?? void 0).then((R) => {
18076
18077
  R || (f(D), console.error("Failed to update chair assignment, reverted"));
18077
18078
  });
@@ -18117,10 +18118,10 @@ function _D() {
18117
18118
  );
18118
18119
  }
18119
18120
  function aA({ apiKey: t, activeUser: e, showLegend: n = !0 }) {
18120
- return /* @__PURE__ */ w(yE, { apiKey: t, activeUser: e, children: /* @__PURE__ */ w(xD, { apiKey: t, activeUser: e, showLegend: n }) });
18121
+ return /* @__PURE__ */ w(yS, { apiKey: t, activeUser: e, children: /* @__PURE__ */ w(xD, { apiKey: t, activeUser: e, showLegend: n }) });
18121
18122
  }
18122
18123
  function xD({ apiKey: t, activeUser: e, showLegend: n }) {
18123
- const { isAdmin: r } = Ot(), [i, o] = me(null), s = mt(null), [c, u] = me({ ...fE }), [h, f] = me("dayGridMonth"), [m, y] = me(/* @__PURE__ */ new Date()), [v, S] = me(!1), D = mt(h), { modalIsOpen: _, setIsOpen: R, selectedCourtDate: x, setSelectedCourtDate: H, modalMode: L, setModalMode: I, selectedDate: z, openCreateModal: Q, openDetailsModal: $, handleEventClick: G } = SD(), { scrollbarClicked: K, clearScrollbarClick: ae } = DD(), { courtDates: _e, negotiations: je, updateCourtDateInMemory: ie, handleUpdateChair: ne } = CD({ apiKey: t, activeUser: e, setSelectedCourtDate: H }), X = zt(() => [..._e, ...je], [_e, je]), { allCases: oe, selectedCases: Z, isFetchingCases: pe, addPartialCasesToMemoryAndCache: ye, deleteCaseMemoryAndCache: Ie } = wD({ apiKey: t, courtDates: X, selectedCourtDate: x }), { events: De, filteredDates: Me, eventHash: We, handleEventMount: tt } = ED({
18124
+ const { isAdmin: r } = Ot(), [i, o] = me(null), s = mt(null), [c, u] = me({ ...fS }), [h, f] = me("dayGridMonth"), [m, y] = me(/* @__PURE__ */ new Date()), [v, E] = me(!1), D = mt(h), { modalIsOpen: _, setIsOpen: R, selectedCourtDate: x, setSelectedCourtDate: H, modalMode: L, setModalMode: I, selectedDate: z, openCreateModal: Q, openDetailsModal: $, handleEventClick: G } = ED(), { scrollbarClicked: K, clearScrollbarClick: ae } = DD(), { courtDates: _e, negotiations: je, updateCourtDateInMemory: ie, handleUpdateChair: ne } = CD({ apiKey: t, activeUser: e, setSelectedCourtDate: H }), X = zt(() => [..._e, ...je], [_e, je]), { allCases: oe, selectedCases: Z, isFetchingCases: pe, addPartialCasesToMemoryAndCache: ye, deleteCaseMemoryAndCache: Ie } = wD({ apiKey: t, courtDates: X, selectedCourtDate: x }), { events: De, filteredDates: Me, eventHash: We, handleEventMount: tt } = SD({
18124
18125
  courtDates: X,
18125
18126
  allCases: oe,
18126
18127
  apiKey: t,
@@ -18145,12 +18146,12 @@ function xD({ apiKey: t, activeUser: e, showLegend: n }) {
18145
18146
  i && i.changeView(h), h === "dayGridMonth" && D.current !== "dayGridMonth" && (y(/* @__PURE__ */ new Date()), i && i.gotoDate(/* @__PURE__ */ new Date())), D.current = h;
18146
18147
  }, [h, i]);
18147
18148
  function Pt() {
18148
- S(!0);
18149
+ E(!0);
18149
18150
  }
18150
18151
  return be(() => {
18151
18152
  if (!v) return;
18152
18153
  const te = setTimeout(() => {
18153
- window.print(), S(!1);
18154
+ window.print(), E(!1);
18154
18155
  }, 100);
18155
18156
  return () => clearTimeout(te);
18156
18157
  }, [v]), /* @__PURE__ */ w(
@@ -18163,7 +18164,7 @@ function xD({ apiKey: t, activeUser: e, showLegend: n }) {
18163
18164
  },
18164
18165
  children: /* @__PURE__ */ w(Jw, { value: { filterCtx: c, setFilterCtx: u }, children: /* @__PURE__ */ ee("div", { id: "ccalendar-container", children: [
18165
18166
  /* @__PURE__ */ w(
18166
- EE,
18167
+ SS,
18167
18168
  {
18168
18169
  calendarApi: i,
18169
18170
  handleCreateClick: () => Q(i?.getDate() || m || /* @__PURE__ */ new Date()),
@@ -18230,7 +18231,7 @@ function xD({ apiKey: t, activeUser: e, showLegend: n }) {
18230
18231
  isFetchingCases: pe
18231
18232
  }
18232
18233
  ),
18233
- /* @__PURE__ */ w(xS, { id: "event-tooltip", className: "cc-tooltip" }),
18234
+ /* @__PURE__ */ w(xE, { id: "event-tooltip", className: "cc-tooltip" }),
18234
18235
  n && /* @__PURE__ */ w(_D, {})
18235
18236
  ] }) })
18236
18237
  }