@propriety/court-calendar 1.0.45 → 1.0.46

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
@@ -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, E, D, _, R, x, H, L, I, z, Q, $ = e.type;
220
+ var h, f, m, y, v, E, D, _, R, x, H, L, k, F, 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 {
@@ -235,12 +235,12 @@ function Ia(t, e, n, r, i, o, s, c, u) {
235
235
  f.componentDidUpdate(y, v, E);
236
236
  });
237
237
  }
238
- if (f.context = x, f.props = _, f.__P = t, L = Ae.__r, I = 0, "prototype" in $ && $.prototype.render) {
239
- for (f.state = f.__s, f.__d = !1, L && L(e), h = f.render(f.props, f.state, f.context), z = 0; z < f._sb.length; z++) f.__h.push(f._sb[z]);
238
+ if (f.context = x, f.props = _, f.__P = t, L = Ae.__r, k = 0, "prototype" in $ && $.prototype.render) {
239
+ for (f.state = f.__s, f.__d = !1, L && L(e), h = f.render(f.props, f.state, f.context), F = 0; F < f._sb.length; F++) f.__h.push(f._sb[F]);
240
240
  f._sb = [];
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
- while (f.__d && ++I < 25);
243
+ while (f.__d && ++k < 25);
244
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);
@@ -4550,8 +4550,8 @@ function pv(t, e, n, r) {
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;
4553
- for (let z in y) {
4554
- let Q = y[z];
4553
+ for (let F in y) {
4554
+ let Q = y[F];
4555
4555
  if (za(_, Q.range) && (v[Q.defId].overlap === !1 && o.isEvent || R.overlap === !1 || L && !L(
4556
4556
  new it(e, m[Q.defId], Q),
4557
4557
  // still event
@@ -4559,10 +4559,10 @@ function pv(t, e, n, r) {
4559
4559
  )))
4560
4560
  return !1;
4561
4561
  }
4562
- let I = i.eventStore;
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[E], K;
4565
- if ($ ? K = new it(e, $, G) : K = new it(e, x), !z(Ya(Q, e), K))
4562
+ let k = i.eventStore;
4563
+ for (let F of R.allows) {
4564
+ let Q = Object.assign(Object.assign({}, n), { range: D.range, allDay: x.allDay }), $ = k.defs[x.defId], G = k.instances[E], Y;
4565
+ if ($ ? Y = new it(e, $, G) : Y = new it(e, x), !F(Ya(Q, e), Y))
4566
4566
  return !1;
4567
4567
  }
4568
4568
  }
@@ -5728,15 +5728,15 @@ function by(t, e, n, r, i, o) {
5728
5728
  return { widgets: y.map((_) => _.split(",").map((R) => {
5729
5729
  if (R === "title")
5730
5730
  return E = !0, { buttonName: R };
5731
- let x, H, L, I, z, Q;
5731
+ let x, H, L, k, F, Q;
5732
5732
  if (x = c[R])
5733
5733
  L = ($) => {
5734
5734
  x.click && x.click.call($.target, $, $.target);
5735
- }, (I = r.getCustomButtonIconClass(x)) || (I = r.getIconClass(R, s)) || (z = x.text), Q = x.hint || x.text;
5735
+ }, (k = r.getCustomButtonIconClass(x)) || (k = r.getIconClass(R, s)) || (F = x.text), Q = x.hint || x.text;
5736
5736
  else if (H = i[R]) {
5737
5737
  v.push(R), L = () => {
5738
5738
  o.changeView(R);
5739
- }, (z = H.buttonTextOverride) || (I = r.getIconClass(R, s)) || (z = H.buttonTextDefault);
5739
+ }, (F = H.buttonTextOverride) || (k = r.getIconClass(R, s)) || (F = H.buttonTextDefault);
5740
5740
  let $ = H.buttonTextOverride || H.buttonTextDefault;
5741
5741
  Q = Si(
5742
5742
  H.buttonTitleOverride || H.buttonTitleDefault || e.viewHint,
@@ -5747,7 +5747,7 @@ function by(t, e, n, r, i, o) {
5747
5747
  } else if (o[R])
5748
5748
  if (L = () => {
5749
5749
  o[R]();
5750
- }, (z = u[R]) || (I = r.getIconClass(R, s)) || (z = h[R]), R === "prevYear" || R === "nextYear") {
5750
+ }, (F = u[R]) || (k = r.getIconClass(R, s)) || (F = h[R]), R === "prevYear" || R === "nextYear") {
5751
5751
  let $ = R === "prevYear" ? "prev" : "next";
5752
5752
  Q = Si(f[$] || m[$], [
5753
5753
  h.year || "year",
@@ -5758,7 +5758,7 @@ function by(t, e, n, r, i, o) {
5758
5758
  h[$] || $,
5759
5759
  $
5760
5760
  ], h[R]);
5761
- return { buttonName: R, buttonClick: L, buttonIcon: I, buttonText: z, buttonHint: Q };
5761
+ return { buttonName: R, buttonClick: L, buttonIcon: k, buttonText: F, buttonHint: Q };
5762
5762
  })), viewsWithButtons: v, hasTitle: E };
5763
5763
  }
5764
5764
  class wy {
@@ -6098,11 +6098,11 @@ class By {
6098
6098
  eventSelection: gy(r.eventSelection, e),
6099
6099
  eventDrag: my(r.eventDrag, e),
6100
6100
  eventResize: vy(r.eventResize, e)
6101
- }, I = Object.assign(Object.assign({}, h), L);
6101
+ }, k = Object.assign(Object.assign({}, h), L);
6102
6102
  for (let $ of s.pluginHooks.reducers)
6103
- Object.assign(L, $(r, e, I));
6104
- let z = Ys(r, h), Q = Ys(L, h);
6105
- !z && Q ? i.trigger("loading", !0) : z && !Q && i.trigger("loading", !1), this.state = L, n.onAction && n.onAction(e);
6103
+ Object.assign(L, $(r, e, k));
6104
+ let F = Ys(r, h), Q = Ys(L, h);
6105
+ !F && Q ? i.trigger("loading", !0) : F && !Q && i.trigger("loading", !1), this.state = L, n.onAction && n.onAction(e);
6106
6106
  }
6107
6107
  updateData() {
6108
6108
  let { props: e, state: n } = this, r = this.data, i = this.computeOptionsData(e.optionOverrides, n.dynamicOptionOverrides, e.calendarApi), o = this.computeCurrentViewData(n.currentViewType, i, e.optionOverrides, n.dynamicOptionOverrides), s = this.data = Object.assign(Object.assign(Object.assign({ nowManager: this.nowManager, viewTitle: this.buildTitle(n.dateProfile, o.options, i.dateEnv), calendarApi: e.calendarApi, dispatch: this.dispatch, emitter: this.emitter, getCurrentData: this.getCurrentData }, i), o), n), c = i.pluginHooks.optionChangeHandlers, u = r && r.calendarOptions, h = i.calendarOptions;
@@ -8006,11 +8006,11 @@ class tw extends Ge {
8006
8006
  null,
8007
8007
  this.renderHiddenGroups(H, e),
8008
8008
  x.map((L) => {
8009
- let { seg: I, rect: z } = L, Q = I.eventRange.instance.instanceId, $ = _ || !!(!n[Q] && z), G = Ks(z && z.span), K = !_ && z ? this.computeSegHStyle(z) : { left: 0, right: 0 }, ae = !!z && z.stackForward > 0, _e = !!z && z.span.end - z.span.start < u;
8009
+ let { seg: k, rect: F } = L, Q = k.eventRange.instance.instanceId, $ = _ || !!(!n[Q] && F), G = Ks(F && F.span), Y = !_ && F ? this.computeSegHStyle(F) : { left: 0, right: 0 }, ae = !!F && F.stackForward > 0, _e = !!F && F.span.end - F.span.start < u;
8010
8010
  return C(
8011
8011
  "div",
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, E, D)))
8012
+ { className: "fc-timegrid-event-harness" + (ae ? " fc-timegrid-event-harness-inset" : ""), key: s || Q, style: Object.assign(Object.assign({ visibility: $ ? "" : "hidden" }, G), Y) },
8013
+ C(vf, Object.assign({ seg: k, isDragging: r, isResizing: i, isDateSelecting: o, isSelected: Q === v, isShort: _e }, Vn(k, E, D)))
8014
8014
  );
8015
8015
  })
8016
8016
  );
@@ -8185,10 +8185,10 @@ 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], 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);
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), k = r.add(L, u);
8189
8189
  return {
8190
8190
  dateProfile: s,
8191
- dateSpan: Object.assign({ range: { start: L, end: I }, allDay: !1 }, y.extraDateSpan),
8191
+ dateSpan: Object.assign({ range: { start: L, end: k }, allDay: !1 }, y.extraDateSpan),
8192
8192
  dayEl: o.els[f],
8193
8193
  rect: {
8194
8194
  left: o.lefts[f],
@@ -8956,7 +8956,7 @@ class Mi extends si {
8956
8956
  type: "MERGE_EVENTS",
8957
8957
  eventStore: D
8958
8958
  });
8959
- let I = {
8959
+ let k = {
8960
8960
  event: L,
8961
8961
  relatedEvents: _r(D, h, H),
8962
8962
  revert() {
@@ -8966,10 +8966,10 @@ class Mi extends si {
8966
8966
  });
8967
8967
  }
8968
8968
  };
8969
- h.emitter.trigger("eventAdd", I), s.isTouch && h.dispatch({
8969
+ h.emitter.trigger("eventAdd", k), s.isTouch && h.dispatch({
8970
8970
  type: "SELECT_EVENT",
8971
8971
  eventInstanceId: y.instanceId
8972
- }), h.emitter.trigger("drop", Object.assign(Object.assign({}, Df(_.dateSpan, h)), { draggedEl: s.subjectEl, jsEvent: s.origEvent, view: _.context.viewApi })), h.emitter.trigger("eventReceive", Object.assign(Object.assign({}, I), { draggedEl: s.subjectEl, view: _.context.viewApi }));
8972
+ }), h.emitter.trigger("drop", Object.assign(Object.assign({}, Df(_.dateSpan, h)), { draggedEl: s.subjectEl, jsEvent: s.origEvent, view: _.context.viewApi })), h.emitter.trigger("eventReceive", Object.assign(Object.assign({}, k), { draggedEl: s.subjectEl, view: _.context.viewApi }));
8973
8973
  }
8974
8974
  } else
8975
8975
  c.emitter.trigger("_noEventDrop");
@@ -10229,7 +10229,7 @@ const MS = async (t, e, n) => {
10229
10229
  x,
10230
10230
  y: H,
10231
10231
  data: L,
10232
- reset: I
10232
+ reset: k
10233
10233
  } = await R({
10234
10234
  x: f,
10235
10235
  y: m,
@@ -10250,11 +10250,11 @@ const MS = async (t, e, n) => {
10250
10250
  ...v[_],
10251
10251
  ...L
10252
10252
  }
10253
- }, I && E <= 50 && (E++, typeof I == "object" && (I.placement && (y = I.placement), I.rects && (h = I.rects === !0 ? await s.getElementRects({
10253
+ }, k && E <= 50 && (E++, typeof k == "object" && (k.placement && (y = k.placement), k.rects && (h = k.rects === !0 ? await s.getElementRects({
10254
10254
  reference: t,
10255
10255
  floating: e,
10256
10256
  strategy: i
10257
- }) : I.rects), {
10257
+ }) : k.rects), {
10258
10258
  x: f,
10259
10259
  y: m
10260
10260
  } = tu(h, y, u)), D = -1);
@@ -10299,17 +10299,17 @@ async function If(t, e) {
10299
10299
  } : {
10300
10300
  x: 1,
10301
10301
  y: 1
10302
- }, I = Uo(o.convertOffsetParentRelativeRectToViewportRelativeRect ? await o.convertOffsetParentRelativeRectToViewportRelativeRect({
10302
+ }, k = Uo(o.convertOffsetParentRelativeRectToViewportRelativeRect ? await o.convertOffsetParentRelativeRectToViewportRelativeRect({
10303
10303
  elements: c,
10304
10304
  rect: x,
10305
10305
  offsetParent: H,
10306
10306
  strategy: u
10307
10307
  }) : x);
10308
10308
  return {
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
10309
+ top: (R.top - k.top + E.top) / L.y,
10310
+ bottom: (k.bottom - R.bottom + E.bottom) / L.y,
10311
+ left: (R.left - k.left + E.left) / L.x,
10312
+ right: (k.right - R.right + E.right) / L.x
10313
10313
  };
10314
10314
  }
10315
10315
  const OS = (t) => ({
@@ -10333,10 +10333,10 @@ const OS = (t) => ({
10333
10333
  const m = kf(f), y = {
10334
10334
  x: n,
10335
10335
  y: r
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));
10337
- let Q = z ? z[H] : 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;
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], k = y[v] - o.reference[v], F = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(h));
10337
+ let Q = F ? F[H] : 0;
10338
+ (!Q || !await (s.isElement == null ? void 0 : s.isElement(F))) && (Q = c.floating[H] || o.floating[E]);
10339
+ const $ = L / 2 - k / 2, G = Q / 2 - D[E] / 2 - 1, Y = ii(m[R], G), ae = ii(m[x], G), _e = Y, 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 ? Y : ae) - D[E] / 2 < 0, oe = X ? ie < _e ? ie - _e : ie - je : 0;
10340
10340
  return {
10341
10341
  [v]: y[v] + oe,
10342
10342
  data: {
@@ -10373,15 +10373,15 @@ const OS = (t) => ({
10373
10373
  } = Ni(t, e);
10374
10374
  if ((n = o.arrow) != null && n.alignmentOffset)
10375
10375
  return {};
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));
10378
- const Q = [c, ...I], $ = await If(e, _), G = [];
10379
- let K = ((r = o.flip) == null ? void 0 : r.overflows) || [];
10376
+ const R = Ir(i), x = ar(c), H = Ir(c) === c, L = await (u.isRTL == null ? void 0 : u.isRTL(h.floating)), k = y || (H || !D ? [Ho(c)] : _S(c)), F = E !== "none";
10377
+ !y && F && k.push(...kS(c, D, E, L));
10378
+ const Q = [c, ...k], $ = await If(e, _), G = [];
10379
+ let Y = ((r = o.flip) == null ? void 0 : r.overflows) || [];
10380
10380
  if (f && G.push($[R]), m) {
10381
10381
  const ie = AS(i, s, L);
10382
10382
  G.push($[ie[0]], $[ie[1]]);
10383
10383
  }
10384
- if (K = [...K, {
10384
+ if (Y = [...Y, {
10385
10385
  placement: i,
10386
10386
  overflows: G
10387
10387
  }], !G.every((ie) => ie <= 0)) {
@@ -10389,30 +10389,30 @@ const OS = (t) => ({
10389
10389
  const ie = (((ae = o.flip) == null ? void 0 : ae.index) || 0) + 1, ne = Q[ie];
10390
10390
  if (ne && (!(m === "alignment" ? x !== ar(ne) : !1) || // We leave the current main axis only if every placement on that axis
10391
10391
  // overflows the main axis.
10392
- K.every((Z) => ar(Z.placement) === x ? Z.overflows[0] > 0 : !0)))
10392
+ Y.every((Z) => ar(Z.placement) === x ? Z.overflows[0] > 0 : !0)))
10393
10393
  return {
10394
10394
  data: {
10395
10395
  index: ie,
10396
- overflows: K
10396
+ overflows: Y
10397
10397
  },
10398
10398
  reset: {
10399
10399
  placement: ne
10400
10400
  }
10401
10401
  };
10402
- let X = (_e = K.filter((oe) => oe.overflows[0] <= 0).sort((oe, Z) => oe.overflows[1] - Z.overflows[1])[0]) == null ? void 0 : _e.placement;
10402
+ let X = (_e = Y.filter((oe) => oe.overflows[0] <= 0).sort((oe, Z) => oe.overflows[1] - Z.overflows[1])[0]) == null ? void 0 : _e.placement;
10403
10403
  if (!X)
10404
10404
  switch (v) {
10405
10405
  case "bestFit": {
10406
10406
  var je;
10407
- const oe = (je = K.filter((Z) => {
10408
- if (z) {
10409
- const pe = ar(Z.placement);
10410
- return pe === x || // Create a bias to the `y` side axis due to horizontal
10407
+ const oe = (je = Y.filter((Z) => {
10408
+ if (F) {
10409
+ const he = ar(Z.placement);
10410
+ return he === x || // Create a bias to the `y` side axis due to horizontal
10411
10411
  // reading directions favoring greater width.
10412
- pe === "y";
10412
+ he === "y";
10413
10413
  }
10414
10414
  return !0;
10415
- }).map((Z) => [Z.placement, Z.overflows.filter((pe) => pe > 0).reduce((pe, ye) => pe + ye, 0)]).sort((Z, pe) => Z[1] - pe[1])[0]) == null ? void 0 : je[0];
10415
+ }).map((Z) => [Z.placement, Z.overflows.filter((he) => he > 0).reduce((he, ve) => he + ve, 0)]).sort((Z, he) => Z[1] - he[1])[0]) == null ? void 0 : je[0];
10416
10416
  oe && (X = oe);
10417
10417
  break;
10418
10418
  }
@@ -10964,8 +10964,8 @@ function cE(t, e) {
10964
10964
  threshold: Rr(0, ii(1, u)) || 1
10965
10965
  };
10966
10966
  let L = !0;
10967
- function I(z) {
10968
- const Q = z[0].intersectionRatio;
10967
+ function k(F) {
10968
+ const Q = F[0].intersectionRatio;
10969
10969
  if (Q !== u) {
10970
10970
  if (!L)
10971
10971
  return s();
@@ -10976,13 +10976,13 @@ function cE(t, e) {
10976
10976
  Q === 1 && !Uf(h, t.getBoundingClientRect()) && s(), L = !1;
10977
10977
  }
10978
10978
  try {
10979
- n = new IntersectionObserver(I, {
10979
+ n = new IntersectionObserver(k, {
10980
10980
  ...H,
10981
10981
  // Handle <iframe>s
10982
10982
  root: i.ownerDocument
10983
10983
  });
10984
10984
  } catch {
10985
- n = new IntersectionObserver(I, H);
10985
+ n = new IntersectionObserver(k, H);
10986
10986
  }
10987
10987
  n.observe(t);
10988
10988
  }
@@ -11094,12 +11094,12 @@ const uu = async ({ elementReference: t = null, tooltipReference: e = null, tool
11094
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
11095
  var E, D;
11096
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 };
11097
- let I = 0;
11097
+ let k = 0;
11098
11098
  if (c) {
11099
- const z = `${c}`.match(/(\d+)px/);
11100
- I = z?.[1] ? Number(z[1]) : 1;
11099
+ const F = `${c}`.match(/(\d+)px/);
11100
+ k = F?.[1] ? Number(F[1]) : 1;
11101
11101
  }
11102
- return { tooltipStyles: _, tooltipArrowStyles: { left: R != null ? `${R}px` : "", top: x != null ? `${x}px` : "", right: "", bottom: "", ...L, [H]: `-${u / 2 + I}px` }, place: y };
11102
+ return { tooltipStyles: _, tooltipArrowStyles: { left: R != null ? `${R}px` : "", top: x != null ? `${x}px` : "", right: "", bottom: "", ...L, [H]: `-${u / 2 + k}px` }, place: y };
11103
11103
  }))) : su(t, e, { placement: "bottom", strategy: o, middleware: h }).then((({ x: f, y: m, placement: y }) => ({ tooltipStyles: { left: `${f}px`, top: `${m}px` }, tooltipArrowStyles: {}, place: y })));
11104
11104
  }, du = (t, e) => !("CSS" in window && "supports" in window.CSS) || window.CSS.supports(t, e), fu = (t, e, n) => {
11105
11105
  let r = null;
@@ -11144,30 +11144,30 @@ function Bf(t = EE) {
11144
11144
  return zo(CE).getTooltipData(t);
11145
11145
  }
11146
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" };
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
+ 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: k = !1, closeOnResize: F = !1, openEvents: Q, closeEvents: $, globalCloseEvents: G, imperativeModeOnly: Y, style: ae, position: _e, afterShow: je, afterHide: ie, disableTooltip: ne, content: X, contentWrapperRef: oe, isOpen: Z, defaultIsOpen: he = !1, setIsOpen: ve, previousActiveAnchor: Te, activeAnchor: De, setActiveAnchor: Me, border: We, opacity: tt, arrowColor: lt, arrowSize: ct = 8, role: Pt = "tooltip" }) => {
11148
11148
  var te;
11149
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 };
11150
11150
  !Q && sn && Object.assign(yn, { mouseenter: !1, focus: !1, mouseover: !1, click: !0 });
11151
11151
  const an = $ ? { ...$ } : { mouseout: !0, blur: !0, mouseleave: !1, click: !1, dblclick: !1, mouseup: !1 };
11152
11152
  !$ && sn && Object.assign(an, { mouseleave: !1, blur: !1, mouseout: !1 });
11153
- const Xe = G ? { ...G } : { escape: L || !1, scroll: I || !1, resize: z || !1, clickOutsideAnchor: Zt || !1 };
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, () => {
11153
+ const Xe = G ? { ...G } : { escape: L || !1, scroll: k || !1, resize: F || !1, clickOutsideAnchor: Zt || !1 };
11154
+ Y && (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, () => {
11155
11155
  on.current = !1;
11156
11156
  })), []);
11157
- const he = (J) => {
11157
+ const pe = (J) => {
11158
11158
  on.current && (J && Kt(!0), setTimeout((() => {
11159
- on.current && (ye?.(J), Z === void 0 && vr(J));
11159
+ on.current && (ve?.(J), Z === void 0 && vr(J));
11160
11160
  }), 10));
11161
11161
  };
11162
11162
  be((() => {
11163
11163
  if (e) {
11164
11164
  if (St) {
11165
- ge(Ie);
11165
+ ge(Te);
11166
11166
  const Ee = J(De), Fe = [.../* @__PURE__ */ new Set([...Ee, e])].filter(Boolean).join(" ");
11167
11167
  De?.setAttribute("aria-describedby", Fe);
11168
11168
  } else ge(De);
11169
11169
  return () => {
11170
- ge(De), ge(Ie);
11170
+ ge(De), ge(Te);
11171
11171
  };
11172
11172
  }
11173
11173
  function J(Ee) {
@@ -11178,7 +11178,7 @@ const AE = ({ forwardRef: t, id: e, className: n, classNameArrow: r, variant: i
11178
11178
  const Fe = J(Ee).filter(((ot) => ot !== e));
11179
11179
  Fe.length ? Ee?.setAttribute("aria-describedby", Fe.join(" ")) : Ee?.removeAttribute("aria-describedby");
11180
11180
  }
11181
- }), [De, St, e, Ie]), be((() => {
11181
+ }), [De, St, e, Te]), be((() => {
11182
11182
  if (Z === void 0) return () => null;
11183
11183
  Z && Kt(!0);
11184
11184
  const J = setTimeout((() => {
@@ -11204,21 +11204,21 @@ const AE = ({ forwardRef: t, id: e, className: n, classNameArrow: r, variant: i
11204
11204
  const ln = (J) => {
11205
11205
  Hr(((ge) => Da(ge, J) ? ge : J));
11206
11206
  }, Ht = (J = E) => {
11207
- nn(xe), Qn ? he(!0) : xe.current = setTimeout((() => {
11208
- he(!0);
11207
+ nn(xe), Qn ? pe(!0) : xe.current = setTimeout((() => {
11208
+ pe(!0);
11209
11209
  }), J);
11210
11210
  }, cn = (J = D) => {
11211
11211
  nn(pt), pt.current = setTimeout((() => {
11212
- jt.current || he(!1);
11212
+ jt.current || pe(!1);
11213
11213
  }), J);
11214
11214
  }, ue = (J) => {
11215
11215
  var ge;
11216
11216
  if (!J) return;
11217
11217
  const Ee = (ge = J.currentTarget) !== null && ge !== void 0 ? ge : J.target;
11218
11218
  if (!Ee?.isConnected) return Me(null), void Lt({ current: null });
11219
- E ? Ht() : he(!0), Me(Ee), Lt({ current: Ee }), nn(pt);
11219
+ E ? Ht() : pe(!0), Me(Ee), Lt({ current: Ee }), nn(pt);
11220
11220
  }, bn = () => {
11221
- H ? cn(D || 100) : D ? cn() : he(!1), nn(xe);
11221
+ H ? cn(D || 100) : D ? cn() : pe(!1), nn(xe);
11222
11222
  }, Fn = ({ x: J, y: ge }) => {
11223
11223
  var Ee;
11224
11224
  const Fe = { getBoundingClientRect: () => ({ x: J, y: ge, width: 0, height: 0, top: ge, left: J, right: J, bottom: ge }) };
@@ -11233,12 +11233,12 @@ const AE = ({ forwardRef: t, id: e, className: n, classNameArrow: r, variant: i
11233
11233
  var ge;
11234
11234
  if (!St) return;
11235
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
+ Ee.isConnected && (!((ge = Ve.current) === null || ge === void 0) && ge.contains(Ee) || [document.querySelector(`[id='${o}']`), ...Qt].some(((Fe) => Fe?.contains(Ee))) || (pe(!1), nn(xe)));
11237
11237
  }, Xn = fu(ue, 50), st = fu(bn, 50), vt = (J) => {
11238
11238
  st.cancel(), Xn(J);
11239
11239
  }, Se = () => {
11240
11240
  Xn.cancel(), st();
11241
- }, ke = Tn((() => {
11241
+ }, Ie = Tn((() => {
11242
11242
  var J, ge;
11243
11243
  const Ee = (J = Be?.position) !== null && J !== void 0 ? J : _e;
11244
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) => {
@@ -11254,13 +11254,13 @@ const AE = ({ forwardRef: t, id: e, className: n, classNameArrow: r, variant: i
11254
11254
  const Fe = document.querySelector(`[id='${o}']`);
11255
11255
  Fe && !ne?.(Fe) && Ee.add({ current: Fe });
11256
11256
  const ot = () => {
11257
- he(!1);
11257
+ pe(!1);
11258
11258
  }, Tt = pu(De), Jt = pu(Ve.current);
11259
11259
  Xe.scroll && (window.addEventListener("scroll", ot), Tt?.addEventListener("scroll", ot), Jt?.addEventListener("scroll", ot));
11260
11260
  let nt = null;
11261
- Xe.resize ? window.addEventListener("resize", ot) : De && Ve.current && (nt = uE(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, Ie, { ancestorResize: !0, elementResize: !0, layoutShift: !0 }));
11262
11262
  const ft = (Pe) => {
11263
- Pe.key === "Escape" && he(!1);
11263
+ Pe.key === "Escape" && pe(!1);
11264
11264
  };
11265
11265
  Xe.escape && window.addEventListener("keydown", ft), Xe.clickOutsideAnchor && window.addEventListener("click", Zn);
11266
11266
  const ze = [], un = (Pe) => !!(Pe?.target && De?.contains(Pe.target)), os = (Pe) => {
@@ -11292,7 +11292,7 @@ const AE = ({ forwardRef: t, id: e, className: n, classNameArrow: r, variant: i
11292
11292
  }));
11293
11293
  }));
11294
11294
  };
11295
- }), [De, ke, Qn, vn, Qt, Q, $, G, sn, E, D]), be((() => {
11295
+ }), [De, Ie, Qn, vn, Qt, Q, $, G, sn, E, D]), be((() => {
11296
11296
  var J, ge;
11297
11297
  let Ee = (ge = (J = Be?.anchorSelect) !== null && J !== void 0 ? J : s) !== null && ge !== void 0 ? ge : "";
11298
11298
  !Ee && e && (Ee = `[data-tooltip-id='${e.replace(/'/g, "\\'")}']`);
@@ -11308,7 +11308,7 @@ const AE = ({ forwardRef: t, id: e, className: n, classNameArrow: r, variant: i
11308
11308
  }
11309
11309
  ft.some(((ze) => {
11310
11310
  var un;
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
+ return !!(!((un = ze?.contains) === null || un === void 0) && un.call(ze, De)) && (Kt(!1), pe(!1), Me(null), nn(xe), nn(pt), !0);
11312
11312
  }));
11313
11313
  }
11314
11314
  if (Ee) try {
@@ -11323,11 +11323,11 @@ const AE = ({ forwardRef: t, id: e, className: n, classNameArrow: r, variant: i
11323
11323
  Fe.disconnect();
11324
11324
  };
11325
11325
  }), [e, s, Be?.anchorSelect, De]), be((() => {
11326
- ke();
11327
- }), [ke]), be((() => {
11326
+ Ie();
11327
+ }), [Ie]), be((() => {
11328
11328
  if (!oe?.current) return () => null;
11329
11329
  const J = new ResizeObserver((() => {
11330
- setTimeout((() => ke()));
11330
+ setTimeout((() => Ie()));
11331
11331
  }));
11332
11332
  return J.observe(oe.current), () => {
11333
11333
  J.disconnect();
@@ -11336,7 +11336,7 @@ const AE = ({ forwardRef: t, id: e, className: n, classNameArrow: r, variant: i
11336
11336
  var J;
11337
11337
  const ge = document.querySelector(`[id='${o}']`), Ee = [...Qt, ge];
11338
11338
  De && Ee.includes(De) || Me((J = Qt[0]) !== null && J !== void 0 ? J : ge);
11339
- }), [o, Qt, De]), be((() => (pe && he(!0), () => {
11339
+ }), [o, Qt, De]), be((() => (he && pe(!0), () => {
11340
11340
  nn(xe), nn(pt);
11341
11341
  })), []), be((() => {
11342
11342
  var J;
@@ -11357,38 +11357,38 @@ const AE = ({ forwardRef: t, id: e, className: n, classNameArrow: r, variant: i
11357
11357
  } catch {
11358
11358
  return void console.warn(`[react-tooltip] "${J.anchorSelect}" is not a valid CSS selector`);
11359
11359
  }
11360
- Un(J ?? null), J?.delay ? Ht(J.delay) : he(!0);
11360
+ Un(J ?? null), J?.delay ? Ht(J.delay) : pe(!0);
11361
11361
  }, close: (J) => {
11362
- J?.delay ? cn(J.delay) : he(!1);
11362
+ J?.delay ? cn(J.delay) : pe(!1);
11363
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
11364
  nn(Kn), St || J.propertyName !== "opacity" || (Kt(!1), Un(null), ie?.());
11365
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) => {
11368
- var ke;
11369
- return Se.startsWith("data-tooltip-") && (vt[Se.replace(/^data-tooltip-/, "")] = (ke = st?.getAttribute(Se)) !== null && ke !== void 0 ? ke : null), vt;
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: k = !1, clickable: F = !1, closeOnEsc: Q = !1, closeOnScroll: $ = !1, closeOnResize: G = !1, openEvents: Y, closeEvents: ae, globalCloseEvents: _e, imperativeModeOnly: je = !1, style: ie, position: ne, isOpen: X, defaultIsOpen: oe = !1, disableStyleInjection: Z = !1, border: he, opacity: ve, arrowColor: Te, 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, pe] = me(null), ln = mt(null), Ht = mt(Z), { anchorRefs: cn, activeAnchor: ue } = Bf(t), bn = (st) => st?.getAttributeNames().reduce(((vt, Se) => {
11368
+ var Ie;
11369
+ return Se.startsWith("data-tooltip-") && (vt[Se.replace(/^data-tooltip-/, "")] = (Ie = st?.getAttribute(Se)) !== null && Ie !== void 0 ? Ie : null), vt;
11370
11370
  }), {}), Fn = (st) => {
11371
11371
  const vt = { place: (Se) => {
11372
- var ke;
11373
- Kn((ke = Se) !== null && ke !== void 0 ? ke : h);
11372
+ var Ie;
11373
+ Kn((Ie = Se) !== null && Ie !== void 0 ? Ie : h);
11374
11374
  }, content: (Se) => {
11375
11375
  Ve(Se ?? r);
11376
11376
  }, html: (Se) => {
11377
11377
  xe(Se ?? i);
11378
11378
  }, variant: (Se) => {
11379
- var ke;
11380
- Hr((ke = Se) !== null && ke !== void 0 ? ke : u);
11379
+ var Ie;
11380
+ Hr((Ie = Se) !== null && Ie !== void 0 ? Ie : u);
11381
11381
  }, offset: (Se) => {
11382
11382
  vr(Se === null ? f : Number(Se));
11383
11383
  }, wrapper: (Se) => {
11384
- var ke;
11385
- Qt((ke = Se) !== null && ke !== void 0 ? ke : m);
11384
+ var Ie;
11385
+ Qt((Ie = Se) !== null && Ie !== void 0 ? Ie : m);
11386
11386
  }, events: (Se) => {
11387
- const ke = Se?.split(" ");
11388
- on(ke ?? v);
11387
+ const Ie = Se?.split(" ");
11388
+ on(Ie ?? v);
11389
11389
  }, "position-strategy": (Se) => {
11390
- var ke;
11391
- Zt((ke = Se) !== null && ke !== void 0 ? ke : D);
11390
+ var Ie;
11391
+ Zt((Ie = Se) !== null && Ie !== void 0 ? Ie : D);
11392
11392
  }, "delay-show": (Se) => {
11393
11393
  Kt(Se === null ? R : Number(Se));
11394
11394
  }, "delay-hide": (Se) => {
@@ -11400,9 +11400,9 @@ const AE = ({ forwardRef: t, id: e, className: n, classNameArrow: r, variant: i
11400
11400
  }, "class-name": (Se) => {
11401
11401
  an(Se);
11402
11402
  } };
11403
- Object.values(vt).forEach(((Se) => Se(null))), Object.entries(st).forEach((([Se, ke]) => {
11403
+ Object.values(vt).forEach(((Se) => Se(null))), Object.entries(st).forEach((([Se, Ie]) => {
11404
11404
  var yt;
11405
- (yt = vt[Se]) === null || yt === void 0 || yt.call(vt, ke);
11405
+ (yt = vt[Se]) === null || yt === void 0 || yt.call(vt, Ie);
11406
11406
  }));
11407
11407
  };
11408
11408
  be((() => {
@@ -11440,9 +11440,9 @@ const AE = ({ forwardRef: t, id: e, className: n, classNameArrow: r, variant: i
11440
11440
  } catch {
11441
11441
  console.warn(`[react-tooltip] "${Se}" is not a valid CSS selector`);
11442
11442
  }
11443
- const ke = document.querySelector(`[id='${e}']`);
11444
- if (ke && vt.add({ current: ke }), !vt.size) return () => null;
11445
- const yt = (st = Xe ?? ke) !== null && st !== void 0 ? st : ue.current, Xt = new MutationObserver(((ge) => {
11443
+ const Ie = document.querySelector(`[id='${e}']`);
11444
+ if (Ie && vt.add({ current: Ie }), !vt.size) return () => null;
11445
+ const yt = (st = Xe ?? Ie) !== null && st !== void 0 ? st : ue.current, Xt = new MutationObserver(((ge) => {
11446
11446
  ge.forEach(((Ee) => {
11447
11447
  var Fe;
11448
11448
  if (!yt || Ee.type !== "attributes" || !(!((Fe = Ee.attributeName) === null || Fe === void 0) && Fe.startsWith("data-tooltip-"))) return;
@@ -11458,7 +11458,7 @@ const AE = ({ forwardRef: t, id: e, className: n, classNameArrow: r, variant: i
11458
11458
  Xt.disconnect();
11459
11459
  };
11460
11460
  }), [cn, ue, Xe, e, n]), be((() => {
11461
- ie?.border && console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."), pe && !du("border", `${pe}`) && console.warn(`[react-tooltip] "${pe}" is not a valid \`border\`.`), ie?.opacity && console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."), ye && !du("opacity", `${ye}`) && console.warn(`[react-tooltip] "${ye}" is not a valid \`opacity\`.`);
11461
+ ie?.border && console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."), he && !du("border", `${he}`) && console.warn(`[react-tooltip] "${he}" is not a valid \`border\`.`), ie?.opacity && console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."), ve && !du("opacity", `${ve}`) && console.warn(`[react-tooltip] "${ve}" is not a valid \`opacity\`.`);
11462
11462
  }), []);
11463
11463
  let wn = y;
11464
11464
  const Zn = mt(null);
@@ -11467,8 +11467,8 @@ const AE = ({ forwardRef: t, id: e, className: n, classNameArrow: r, variant: i
11467
11467
  wn = st ? Mn.createElement("div", { ref: Zn, className: "react-tooltip-content-wrapper" }, st) : null;
11468
11468
  } else te && (wn = te);
11469
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) => {
11471
- he(((vt) => (st?.isSameNode(vt) || (ln.current = vt), st)));
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: k, clickable: F, closeOnEsc: Q, closeOnScroll: $, closeOnResize: G, openEvents: Y, closeEvents: ae, globalCloseEvents: _e, imperativeModeOnly: je, style: ie, position: ne, isOpen: X, defaultIsOpen: oe, border: he, opacity: ve, arrowColor: Te, arrowSize: De, setIsOpen: Me, afterShow: We, afterHide: tt, disableTooltip: lt, activeAnchor: Xe, previousActiveAnchor: ln.current, setActiveAnchor: (st) => {
11471
+ pe(((vt) => (st?.isSameNode(vt) || (ln.current = vt), st)));
11472
11472
  }, role: ct };
11473
11473
  return Mn.createElement(AE, { ...Xn });
11474
11474
  }));
@@ -11718,12 +11718,12 @@ function Ff({
11718
11718
  ($) => $.UserLastName && !fl.includes($.UserLastName)
11719
11719
  ), R = _.filter(($) => cr.includes($.UserID)), x = _.filter(($) => !cr.includes($.UserID));
11720
11720
  function H($) {
11721
- let G = 0, K;
11722
- for (K = 0; K < $.length; K += 1)
11723
- G = $.charCodeAt(K) + ((G << 5) - G);
11721
+ let G = 0, Y;
11722
+ for (Y = 0; Y < $.length; Y += 1)
11723
+ G = $.charCodeAt(Y) + ((G << 5) - G);
11724
11724
  let ae = "#";
11725
- for (K = 0; K < 3; K += 1) {
11726
- const _e = G >> K * 8 & 255;
11725
+ for (Y = 0; Y < 3; Y += 1) {
11726
+ const _e = G >> Y * 8 & 255;
11727
11727
  ae += `00${_e.toString(16)}`.slice(-2);
11728
11728
  }
11729
11729
  return ae;
@@ -11736,8 +11736,8 @@ function Ff({
11736
11736
  children: `${$.split(" ")[0][0]}${$.split(" ")[1][0]}`
11737
11737
  };
11738
11738
  }
11739
- function I($, G) {
11740
- const K = (_e) => {
11739
+ function k($, G) {
11740
+ const Y = (_e) => {
11741
11741
  n && (_e.stopPropagation(), h(_e.currentTarget), m(G));
11742
11742
  }, ae = $ ? `${$.UserFirstName} ${$.UserLastName}` : "Unassigned";
11743
11743
  if (!$)
@@ -11745,7 +11745,7 @@ function Ff({
11745
11745
  nr,
11746
11746
  {
11747
11747
  sx: { width: D, height: E, cursor: n ? "pointer" : "default" },
11748
- onClick: K,
11748
+ onClick: Y,
11749
11749
  className: "CCAvatarIcon",
11750
11750
  children: "?"
11751
11751
  }
@@ -11757,7 +11757,7 @@ function Ff({
11757
11757
  alt: `${$.UserFirstName} ${$.UserLastName}`,
11758
11758
  src: $.Picture,
11759
11759
  sx: { width: D, height: E, cursor: n ? "pointer" : "default" },
11760
- onClick: K,
11760
+ onClick: Y,
11761
11761
  className: "CCAvatarIcon"
11762
11762
  }
11763
11763
  ) });
@@ -11772,19 +11772,19 @@ function Ff({
11772
11772
  height: E,
11773
11773
  cursor: n ? "pointer" : "default"
11774
11774
  },
11775
- onClick: K,
11775
+ onClick: Y,
11776
11776
  className: "CCAvatarIcon",
11777
11777
  children: _e.children
11778
11778
  }
11779
11779
  ) });
11780
11780
  }
11781
11781
  }
11782
- function z() {
11782
+ function F() {
11783
11783
  h(null), m(null), v(null);
11784
11784
  }
11785
11785
  function Q($) {
11786
11786
  const G = f;
11787
- z(), n && G && setTimeout(() => n(G, $), 0);
11787
+ F(), n && G && setTimeout(() => n(G, $), 0);
11788
11788
  }
11789
11789
  return /* @__PURE__ */ ee(Or, { children: [
11790
11790
  /* @__PURE__ */ ee(
@@ -11798,8 +11798,8 @@ function Ff({
11798
11798
  className: "iconHolder",
11799
11799
  onClick: n ? ($) => $.stopPropagation() : void 0,
11800
11800
  children: [
11801
- I(s, "first"),
11802
- I(c, "second")
11801
+ k(s, "first"),
11802
+ k(c, "second")
11803
11803
  ]
11804
11804
  }
11805
11805
  ),
@@ -11808,7 +11808,7 @@ function Ff({
11808
11808
  {
11809
11809
  anchorEl: u,
11810
11810
  open: !!u,
11811
- onClose: z,
11811
+ onClose: F,
11812
11812
  onClick: ($) => $.stopPropagation(),
11813
11813
  classes: { paper: "themed" },
11814
11814
  transitionDuration: 200,
@@ -12084,38 +12084,38 @@ function jE() {
12084
12084
  return (ne <= 0 ? "+" : "-") + H(oe, 2, "0") + ":" + H(Z, 2, "0");
12085
12085
  }, m: function ie(ne, X) {
12086
12086
  if (ne.date() < X.date()) return -ie(X, ne);
12087
- var oe = 12 * (X.year() - ne.year()) + (X.month() - ne.month()), Z = ne.clone().add(oe, m), pe = X - Z < 0, ye = ne.clone().add(oe + (pe ? -1 : 1), m);
12088
- return +(-(oe + (X - Z) / (pe ? Z - ye : ye - Z)) || 0);
12087
+ var oe = 12 * (X.year() - ne.year()) + (X.month() - ne.month()), Z = ne.clone().add(oe, m), he = X - Z < 0, ve = ne.clone().add(oe + (he ? -1 : 1), m);
12088
+ return +(-(oe + (X - Z) / (he ? Z - ve : ve - Z)) || 0);
12089
12089
  }, a: function(ie) {
12090
12090
  return ie < 0 ? Math.ceil(ie) || 0 : Math.floor(ie);
12091
12091
  }, p: function(ie) {
12092
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$/, "");
12093
12093
  }, u: function(ie) {
12094
12094
  return ie === void 0;
12095
- } }, I = "en", z = {};
12096
- z[I] = x;
12095
+ } }, k = "en", F = {};
12096
+ F[k] = x;
12097
12097
  var Q = "$isDayjsObject", $ = function(ie) {
12098
12098
  return ie instanceof _e || !(!ie || !ie[Q]);
12099
12099
  }, G = function ie(ne, X, oe) {
12100
12100
  var Z;
12101
- if (!ne) return I;
12101
+ if (!ne) return k;
12102
12102
  if (typeof ne == "string") {
12103
- var pe = ne.toLowerCase();
12104
- z[pe] && (Z = pe), X && (z[pe] = X, Z = pe);
12105
- var ye = ne.split("-");
12106
- if (!Z && ye.length > 1) return ie(ye[0]);
12103
+ var he = ne.toLowerCase();
12104
+ F[he] && (Z = he), X && (F[he] = X, Z = he);
12105
+ var ve = ne.split("-");
12106
+ if (!Z && ve.length > 1) return ie(ve[0]);
12107
12107
  } else {
12108
- var Ie = ne.name;
12109
- z[Ie] = ne, Z = Ie;
12108
+ var Te = ne.name;
12109
+ F[Te] = ne, Z = Te;
12110
12110
  }
12111
- return !oe && Z && (I = Z), Z || !oe && I;
12112
- }, K = function(ie, ne) {
12111
+ return !oe && Z && (k = Z), Z || !oe && k;
12112
+ }, Y = function(ie, ne) {
12113
12113
  if ($(ie)) return ie.clone();
12114
12114
  var X = typeof ne == "object" ? ne : {};
12115
12115
  return X.date = ie, X.args = arguments, new _e(X);
12116
12116
  }, ae = L;
12117
12117
  ae.l = G, ae.i = $, ae.w = function(ie, ne) {
12118
- return K(ie, { locale: ne.$L, utc: ne.$u, x: ne.$x, $offset: ne.$offset });
12118
+ return Y(ie, { locale: ne.$L, utc: ne.$u, x: ne.$x, $offset: ne.$offset });
12119
12119
  };
12120
12120
  var _e = (function() {
12121
12121
  function ie(X) {
@@ -12124,15 +12124,15 @@ function jE() {
12124
12124
  var ne = ie.prototype;
12125
12125
  return ne.parse = function(X) {
12126
12126
  this.$d = (function(oe) {
12127
- var Z = oe.date, pe = oe.utc;
12127
+ var Z = oe.date, he = oe.utc;
12128
12128
  if (Z === null) return /* @__PURE__ */ new Date(NaN);
12129
12129
  if (ae.u(Z)) return /* @__PURE__ */ new Date();
12130
12130
  if (Z instanceof Date) return new Date(Z);
12131
12131
  if (typeof Z == "string" && !/Z$/i.test(Z)) {
12132
- var ye = Z.match(_);
12133
- if (ye) {
12134
- var Ie = ye[2] - 1 || 0, De = (ye[7] || "0").substring(0, 3);
12135
- return pe ? new Date(Date.UTC(ye[1], Ie, ye[3] || 1, ye[4] || 0, ye[5] || 0, ye[6] || 0, De)) : new Date(ye[1], Ie, ye[3] || 1, ye[4] || 0, ye[5] || 0, ye[6] || 0, De);
12132
+ var ve = Z.match(_);
12133
+ if (ve) {
12134
+ var Te = ve[2] - 1 || 0, De = (ve[7] || "0").substring(0, 3);
12135
+ return he ? new Date(Date.UTC(ve[1], Te, ve[3] || 1, ve[4] || 0, ve[5] || 0, ve[6] || 0, De)) : new Date(ve[1], Te, ve[3] || 1, ve[4] || 0, ve[5] || 0, ve[6] || 0, De);
12136
12136
  }
12137
12137
  }
12138
12138
  return new Date(Z);
@@ -12145,12 +12145,12 @@ function jE() {
12145
12145
  }, ne.isValid = function() {
12146
12146
  return this.$d.toString() !== D;
12147
12147
  }, ne.isSame = function(X, oe) {
12148
- var Z = K(X);
12148
+ var Z = Y(X);
12149
12149
  return this.startOf(oe) <= Z && Z <= this.endOf(oe);
12150
12150
  }, ne.isAfter = function(X, oe) {
12151
- return K(X) < this.startOf(oe);
12151
+ return Y(X) < this.startOf(oe);
12152
12152
  }, ne.isBefore = function(X, oe) {
12153
- return this.endOf(oe) < K(X);
12153
+ return this.endOf(oe) < Y(X);
12154
12154
  }, ne.$g = function(X, oe, Z) {
12155
12155
  return ae.u(X) ? this[oe] : this.set(Z, X);
12156
12156
  }, ne.unix = function() {
@@ -12158,20 +12158,20 @@ function jE() {
12158
12158
  }, ne.valueOf = function() {
12159
12159
  return this.$d.getTime();
12160
12160
  }, ne.startOf = function(X, oe) {
12161
- var Z = this, pe = !!ae.u(oe) || oe, ye = ae.p(X), Ie = function(te, Ve) {
12161
+ var Z = this, he = !!ae.u(oe) || oe, ve = ae.p(X), Te = function(te, Ve) {
12162
12162
  var ut = ae.w(Z.$u ? Date.UTC(Z.$y, Ve, te) : new Date(Z.$y, Ve, te), Z);
12163
- return pe ? ut : ut.endOf(h);
12163
+ return he ? ut : ut.endOf(h);
12164
12164
  }, De = function(te, Ve) {
12165
- return ae.w(Z.toDate()[te].apply(Z.toDate("s"), (pe ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(Ve)), Z);
12165
+ return ae.w(Z.toDate()[te].apply(Z.toDate("s"), (he ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(Ve)), Z);
12166
12166
  }, Me = this.$W, We = this.$M, tt = this.$D, lt = "set" + (this.$u ? "UTC" : "");
12167
- switch (ye) {
12167
+ switch (ve) {
12168
12168
  case v:
12169
- return pe ? Ie(1, 0) : Ie(31, 11);
12169
+ return he ? Te(1, 0) : Te(31, 11);
12170
12170
  case m:
12171
- return pe ? Ie(1, We) : Ie(0, We + 1);
12171
+ return he ? Te(1, We) : Te(0, We + 1);
12172
12172
  case f:
12173
12173
  var ct = this.$locale().weekStart || 0, Pt = (Me < ct ? Me + 7 : Me) - ct;
12174
- return Ie(pe ? tt - Pt : tt + (6 - Pt), We);
12174
+ return Te(he ? tt - Pt : tt + (6 - Pt), We);
12175
12175
  case h:
12176
12176
  case E:
12177
12177
  return De(lt + "Hours", 0);
@@ -12187,43 +12187,43 @@ function jE() {
12187
12187
  }, ne.endOf = function(X) {
12188
12188
  return this.startOf(X, !1);
12189
12189
  }, ne.$set = function(X, 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;
12191
- if (pe === m || pe === v) {
12190
+ var Z, he = ae.p(X), ve = "set" + (this.$u ? "UTC" : ""), Te = (Z = {}, Z[h] = ve + "Date", Z[E] = ve + "Date", Z[m] = ve + "Month", Z[v] = ve + "FullYear", Z[u] = ve + "Hours", Z[c] = ve + "Minutes", Z[s] = ve + "Seconds", Z[o] = ve + "Milliseconds", Z)[he], De = he === h ? this.$D + (oe - this.$W) : oe;
12191
+ if (he === m || he === v) {
12192
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;
12194
- } else Ie && this.$d[Ie](De);
12193
+ Me.$d[Te](De), Me.init(), this.$d = Me.set(E, Math.min(this.$D, Me.daysInMonth())).$d;
12194
+ } else Te && this.$d[Te](De);
12195
12195
  return this.init(), this;
12196
12196
  }, ne.set = function(X, oe) {
12197
12197
  return this.clone().$set(X, oe);
12198
12198
  }, ne.get = function(X) {
12199
12199
  return this[ae.p(X)]();
12200
12200
  }, ne.add = function(X, oe) {
12201
- var Z, pe = this;
12201
+ var Z, he = this;
12202
12202
  X = Number(X);
12203
- var ye = ae.p(oe), Ie = function(We) {
12204
- var tt = K(pe);
12205
- return ae.w(tt.date(tt.date() + Math.round(We * X)), pe);
12203
+ var ve = ae.p(oe), Te = function(We) {
12204
+ var tt = Y(he);
12205
+ return ae.w(tt.date(tt.date() + Math.round(We * X)), he);
12206
12206
  };
12207
- if (ye === m) return this.set(m, this.$M + X);
12208
- if (ye === v) return this.set(v, this.$y + X);
12209
- if (ye === h) return Ie(1);
12210
- if (ye === f) return Ie(7);
12211
- var De = (Z = {}, Z[c] = r, Z[u] = i, Z[s] = n, Z)[ye] || 1, Me = this.$d.getTime() + X * De;
12207
+ if (ve === m) return this.set(m, this.$M + X);
12208
+ if (ve === v) return this.set(v, this.$y + X);
12209
+ if (ve === h) return Te(1);
12210
+ if (ve === f) return Te(7);
12211
+ var De = (Z = {}, Z[c] = r, Z[u] = i, Z[s] = n, Z)[ve] || 1, Me = this.$d.getTime() + X * De;
12212
12212
  return ae.w(Me, this);
12213
12213
  }, ne.subtract = function(X, oe) {
12214
12214
  return this.add(-1 * X, oe);
12215
12215
  }, ne.format = function(X) {
12216
12216
  var oe = this, Z = this.$locale();
12217
12217
  if (!this.isValid()) return Z.invalidDate || D;
12218
- var pe = X || "YYYY-MM-DDTHH:mm:ssZ", ye = ae.z(this), Ie = this.$H, De = this.$m, Me = this.$M, We = Z.weekdays, tt = Z.months, lt = Z.meridiem, ct = function(Ve, ut, xe, pt) {
12219
- return Ve && (Ve[ut] || Ve(oe, pe)) || xe[ut].slice(0, pt);
12218
+ var he = X || "YYYY-MM-DDTHH:mm:ssZ", ve = ae.z(this), Te = this.$H, De = this.$m, Me = this.$M, We = Z.weekdays, tt = Z.months, lt = Z.meridiem, ct = function(Ve, ut, xe, pt) {
12219
+ return Ve && (Ve[ut] || Ve(oe, he)) || xe[ut].slice(0, pt);
12220
12220
  }, Pt = function(Ve) {
12221
- return ae.s(Ie % 12 || 12, Ve, "0");
12221
+ return ae.s(Te % 12 || 12, Ve, "0");
12222
12222
  }, te = lt || function(Ve, ut, xe) {
12223
12223
  var pt = Ve < 12 ? "AM" : "PM";
12224
12224
  return xe ? pt.toLowerCase() : pt;
12225
12225
  };
12226
- return pe.replace(R, (function(Ve, ut) {
12226
+ return he.replace(R, (function(Ve, ut) {
12227
12227
  return ut || (function(xe) {
12228
12228
  switch (xe) {
12229
12229
  case "YY":
@@ -12251,17 +12251,17 @@ function jE() {
12251
12251
  case "dddd":
12252
12252
  return We[oe.$W];
12253
12253
  case "H":
12254
- return String(Ie);
12254
+ return String(Te);
12255
12255
  case "HH":
12256
- return ae.s(Ie, 2, "0");
12256
+ return ae.s(Te, 2, "0");
12257
12257
  case "h":
12258
12258
  return Pt(1);
12259
12259
  case "hh":
12260
12260
  return Pt(2);
12261
12261
  case "a":
12262
- return te(Ie, De, !0);
12262
+ return te(Te, De, !0);
12263
12263
  case "A":
12264
- return te(Ie, De, !1);
12264
+ return te(Te, De, !1);
12265
12265
  case "m":
12266
12266
  return String(De);
12267
12267
  case "mm":
@@ -12273,54 +12273,54 @@ function jE() {
12273
12273
  case "SSS":
12274
12274
  return ae.s(oe.$ms, 3, "0");
12275
12275
  case "Z":
12276
- return ye;
12276
+ return ve;
12277
12277
  }
12278
12278
  return null;
12279
- })(Ve) || ye.replace(":", "");
12279
+ })(Ve) || ve.replace(":", "");
12280
12280
  }));
12281
12281
  }, ne.utcOffset = function() {
12282
12282
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
12283
12283
  }, ne.diff = function(X, oe, Z) {
12284
- var pe, ye = this, Ie = ae.p(oe), De = K(X), Me = (De.utcOffset() - this.utcOffset()) * r, We = this - De, tt = function() {
12285
- return ae.m(ye, De);
12284
+ var he, ve = this, Te = ae.p(oe), De = Y(X), Me = (De.utcOffset() - this.utcOffset()) * r, We = this - De, tt = function() {
12285
+ return ae.m(ve, De);
12286
12286
  };
12287
- switch (Ie) {
12287
+ switch (Te) {
12288
12288
  case v:
12289
- pe = tt() / 12;
12289
+ he = tt() / 12;
12290
12290
  break;
12291
12291
  case m:
12292
- pe = tt();
12292
+ he = tt();
12293
12293
  break;
12294
12294
  case y:
12295
- pe = tt() / 3;
12295
+ he = tt() / 3;
12296
12296
  break;
12297
12297
  case f:
12298
- pe = (We - Me) / 6048e5;
12298
+ he = (We - Me) / 6048e5;
12299
12299
  break;
12300
12300
  case h:
12301
- pe = (We - Me) / 864e5;
12301
+ he = (We - Me) / 864e5;
12302
12302
  break;
12303
12303
  case u:
12304
- pe = We / i;
12304
+ he = We / i;
12305
12305
  break;
12306
12306
  case c:
12307
- pe = We / r;
12307
+ he = We / r;
12308
12308
  break;
12309
12309
  case s:
12310
- pe = We / n;
12310
+ he = We / n;
12311
12311
  break;
12312
12312
  default:
12313
- pe = We;
12313
+ he = We;
12314
12314
  }
12315
- return Z ? pe : ae.a(pe);
12315
+ return Z ? he : ae.a(he);
12316
12316
  }, ne.daysInMonth = function() {
12317
12317
  return this.endOf(m).$D;
12318
12318
  }, ne.$locale = function() {
12319
- return z[this.$L];
12319
+ return F[this.$L];
12320
12320
  }, ne.locale = function(X, oe) {
12321
12321
  if (!X) return this.$L;
12322
- var Z = this.clone(), pe = G(X, oe, !0);
12323
- return pe && (Z.$L = pe), Z;
12322
+ var Z = this.clone(), he = G(X, oe, !0);
12323
+ return he && (Z.$L = he), Z;
12324
12324
  }, ne.clone = function() {
12325
12325
  return ae.w(this.$d, this);
12326
12326
  }, ne.toDate = function() {
@@ -12333,15 +12333,15 @@ function jE() {
12333
12333
  return this.$d.toUTCString();
12334
12334
  }, ie;
12335
12335
  })(), je = _e.prototype;
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
+ return Y.prototype = je, [["$ms", o], ["$s", s], ["$m", c], ["$H", u], ["$W", h], ["$M", m], ["$y", v], ["$D", E]].forEach((function(ie) {
12337
12337
  je[ie[1]] = function(ne) {
12338
12338
  return this.$g(ne, ie[0], ie[1]);
12339
12339
  };
12340
- })), K.extend = function(ie, ne) {
12341
- return ie.$i || (ie(ne, _e, K), ie.$i = !0), K;
12342
- }, K.locale = G, K.isDayjs = $, K.unix = function(ie) {
12343
- return K(1e3 * ie);
12344
- }, K.en = z[I], K.Ls = z, K.p = {}, K;
12340
+ })), Y.extend = function(ie, ne) {
12341
+ return ie.$i || (ie(ne, _e, Y), ie.$i = !0), Y;
12342
+ }, Y.locale = G, Y.isDayjs = $, Y.unix = function(ie) {
12343
+ return Y(1e3 * ie);
12344
+ }, Y.en = F[k], Y.Ls = F, Y.p = {}, Y;
12345
12345
  }));
12346
12346
  })(yo)), yo.exports;
12347
12347
  }
@@ -12383,8 +12383,8 @@ const Aa = /* @__PURE__ */ yl(HE), UE = xa(function({
12383
12383
  width: 100,
12384
12384
  disableColumnMenu: !0,
12385
12385
  renderCell: (G) => {
12386
- const K = G.value === "Yes";
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 } }) });
12386
+ const Y = G.value === "Yes";
12387
+ return /* @__PURE__ */ w(Le, { display: "flex", alignItems: "center", justifyContent: "center", width: "100%", mt: 1.7, children: Y ? /* @__PURE__ */ w(Eo, { sx: { color: "#4caf50", fontSize: 24 } }) : /* @__PURE__ */ w(So, { sx: { color: "#f44336", fontSize: 24 } }) });
12388
12388
  }
12389
12389
  },
12390
12390
  {
@@ -12393,15 +12393,15 @@ const Aa = /* @__PURE__ */ yl(HE), UE = xa(function({
12393
12393
  width: 150,
12394
12394
  disableColumnMenu: !0,
12395
12395
  renderCell: (G) => {
12396
- const K = G.row._case.evidence;
12397
- if (!K || !K.Evidence)
12396
+ const Y = G.row._case.evidence;
12397
+ if (!Y || !Y.Evidence)
12398
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: [
12399
12399
  /* @__PURE__ */ w(So, { sx: { color: "#f44336", fontSize: 20 } }),
12400
12400
  /* @__PURE__ */ w(we, { variant: "body2", children: "None" })
12401
12401
  ] }) });
12402
- const ae = (K.uploaded?.Evidence || K.Evidence).replace(/[[\]"]+/g, "");
12403
- if (K.uploaded && K.uploaded.Evidence) {
12404
- const je = K.uploaded.UploadDate ? new Date(K.uploaded.UploadDate).toLocaleDateString() : "unknown date";
12402
+ const ae = (Y.uploaded?.Evidence || Y.Evidence).replace(/[[\]"]+/g, "");
12403
+ if (Y.uploaded && Y.uploaded.Evidence) {
12404
+ const je = Y.uploaded.UploadDate ? new Date(Y.uploaded.UploadDate).toLocaleDateString() : "unknown date";
12405
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: [
12406
12406
  /* @__PURE__ */ w(Eo, { sx: { color: "#4caf50", fontSize: 20 } }),
12407
12407
  /* @__PURE__ */ w(we, { variant: "body2", children: ae })
@@ -12426,13 +12426,13 @@ const Aa = /* @__PURE__ */ yl(HE), UE = xa(function({
12426
12426
  disableColumnMenu: !0,
12427
12427
  sortable: !1,
12428
12428
  renderCell: (G) => {
12429
- const K = G.row._case.AdjournedDate ? new Date(G.row._case.AdjournedDate) : null;
12429
+ const Y = G.row._case.AdjournedDate ? new Date(G.row._case.AdjournedDate) : null;
12430
12430
  return /* @__PURE__ */ w(Le, { display: "flex", alignItems: "center", height: "100%", width: "100%", children: /* @__PURE__ */ w(
12431
12431
  we,
12432
12432
  {
12433
12433
  variant: "body2",
12434
- sx: { color: K ? "warning.main" : "text.disabled", fontSize: 13 },
12435
- children: K ? K.toLocaleDateString() : "—"
12434
+ sx: { color: Y ? "warning.main" : "text.disabled", fontSize: 13 },
12435
+ children: Y ? Y.toLocaleDateString() : "—"
12436
12436
  }
12437
12437
  ) });
12438
12438
  }
@@ -12445,31 +12445,31 @@ const Aa = /* @__PURE__ */ yl(HE), UE = xa(function({
12445
12445
  sortable: !1,
12446
12446
  filterable: !1,
12447
12447
  renderCell: (G) => {
12448
- const K = G.row.pid;
12448
+ const Y = G.row.pid;
12449
12449
  return /* @__PURE__ */ w("div", { style: { width: "100%", height: "100%", display: "flex", alignItems: "center" }, children: /* @__PURE__ */ w(Ke, { title: "Click to copy PID", placement: "top", arrow: !0, children: /* @__PURE__ */ w(
12450
12450
  we,
12451
12451
  {
12452
12452
  variant: "body2",
12453
12453
  onClick: (ae) => {
12454
- ae.stopPropagation(), navigator?.clipboard && navigator.clipboard.writeText(K);
12454
+ ae.stopPropagation(), navigator?.clipboard && navigator.clipboard.writeText(Y);
12455
12455
  },
12456
12456
  sx: { cursor: "pointer", fontSize: 13 },
12457
- children: K
12457
+ children: Y
12458
12458
  }
12459
12459
  ) }) });
12460
12460
  }
12461
12461
  }
12462
- ], x = zt(() => e.length <= 0 ? [] : Ca(e, h, o, i).map((K, ae) => ({
12462
+ ], x = zt(() => e.length <= 0 ? [] : Ca(e, h, o, i).map((Y, ae) => ({
12463
12463
  id: ae,
12464
- scarIndexNumber: o ? K.VillageSCARIndexNumber : K.SCARIndexNumber,
12465
- owner: K.property_data?.PropertyOwnerFull || "Loading...",
12466
- reviewed: K.DateCompleted ? "Yes" : "No",
12467
- address: K.property_data?.Address || "Loading...",
12468
- evidence: K.evidence,
12469
- determination: H(K),
12470
- pid: K.ParcelID || "N/A",
12471
- adjournedDate: K.AdjournedDate ? new Date(K.AdjournedDate).toLocaleDateString() : "",
12472
- _case: K
12464
+ scarIndexNumber: o ? Y.VillageSCARIndexNumber : Y.SCARIndexNumber,
12465
+ owner: Y.property_data?.PropertyOwnerFull || "Loading...",
12466
+ reviewed: Y.DateCompleted ? "Yes" : "No",
12467
+ address: Y.property_data?.Address || "Loading...",
12468
+ evidence: Y.evidence,
12469
+ determination: H(Y),
12470
+ pid: Y.ParcelID || "N/A",
12471
+ adjournedDate: Y.AdjournedDate ? new Date(Y.AdjournedDate).toLocaleDateString() : "",
12472
+ _case: Y
12473
12473
  })), [e, h, i]);
12474
12474
  function H(G) {
12475
12475
  if (o) {
@@ -12478,7 +12478,7 @@ const Aa = /* @__PURE__ */ yl(HE), UE = xa(function({
12478
12478
  } else return G.SCARDeterminationAction;
12479
12479
  return "";
12480
12480
  }
12481
- const L = Hh(), I = m.type === "exclude" ? x.length - m.ids.size : m.ids.size, z = zt(
12481
+ const L = Hh(), k = m.type === "exclude" ? x.length - m.ids.size : m.ids.size, F = zt(
12482
12482
  () => x.filter(
12483
12483
  (G) => m.type === "exclude" ? !m.ids.has(G.id) : m.ids.has(G.id)
12484
12484
  ).map((G) => G._case),
@@ -12562,13 +12562,13 @@ const Aa = /* @__PURE__ */ yl(HE), UE = xa(function({
12562
12562
  backgroundColor: "transparent !important"
12563
12563
  },
12564
12564
  className: "fab-bar",
12565
- children: /* @__PURE__ */ w(Vh, { in: c && I > 0, unmountOnExit: !0, children: /* @__PURE__ */ w(Ke, { title: `Adjourn ${I} selected case${I !== 1 ? "s" : ""}`, children: /* @__PURE__ */ w(
12565
+ children: /* @__PURE__ */ w(Vh, { in: c && k > 0, unmountOnExit: !0, children: /* @__PURE__ */ w(Ke, { title: `Adjourn ${k} selected case${k !== 1 ? "s" : ""}`, children: /* @__PURE__ */ w(
12566
12566
  na,
12567
12567
  {
12568
12568
  size: "medium",
12569
12569
  onClick: (G) => E(G.currentTarget),
12570
12570
  sx: { pointerEvents: "auto" },
12571
- children: /* @__PURE__ */ w(Wh, { badgeContent: I, color: "primary", children: /* @__PURE__ */ w(Fh, {}) })
12571
+ children: /* @__PURE__ */ w(Wh, { badgeContent: k, color: "primary", children: /* @__PURE__ */ w(Fh, {}) })
12572
12572
  }
12573
12573
  ) }) })
12574
12574
  }
@@ -12587,9 +12587,9 @@ const Aa = /* @__PURE__ */ yl(HE), UE = xa(function({
12587
12587
  children: /* @__PURE__ */ ee($e, { spacing: 1.5, p: 2, minWidth: 220, children: [
12588
12588
  /* @__PURE__ */ ee(we, { variant: "body2", sx: { color: "var(--text)", opacity: 0.7 }, children: [
12589
12589
  "Adjourn ",
12590
- I,
12590
+ k,
12591
12591
  " case",
12592
- I !== 1 ? "s" : "",
12592
+ k !== 1 ? "s" : "",
12593
12593
  " to:"
12594
12594
  ] }),
12595
12595
  /* @__PURE__ */ w(
@@ -12612,10 +12612,10 @@ const Aa = /* @__PURE__ */ yl(HE), UE = xa(function({
12612
12612
  onClick: () => {
12613
12613
  const G = D ? D.toDate().toLocaleDateString() : "no specific date";
12614
12614
  window.confirm(
12615
- `Adjourn ${I} case${I !== 1 ? "s" : ""} to ${G}?
12615
+ `Adjourn ${k} case${k !== 1 ? "s" : ""} to ${G}?
12616
12616
 
12617
12617
  Note: The determination for each selected case will be changed to OA.`
12618
- ) && (u?.(z, D?.toDate() ?? null), E(null), _(null));
12618
+ ) && (u?.(F, D?.toDate() ?? null), E(null), _(null));
12619
12619
  },
12620
12620
  children: "Apply"
12621
12621
  }
@@ -12658,12 +12658,21 @@ async function mu(t, e) {
12658
12658
  "x-api-key": t
12659
12659
  }
12660
12660
  })).json();
12661
- console.log("Fetched dates:", r), e || (e = wt.SCAR);
12662
- for (const i of r.dates)
12663
- i.NegDateID !== void 0 && i.CourtDateID == null && (i.CourtDateID = i.NegDateID), i.Date !== void 0 && i.CourtDate == null && (i.CourtDate = new Date(i.Date)), i.Time !== void 0 && i.HearingTime == null && (i.HearingTime = i.Time), i.Lifecycle || (i.Lifecycle = $t.SCHEDULED), i.Type || (i.Type = It.UNKNOWN), i.DateType || (i.DateType = e), i.MultipleDates = Array.isArray(i.MultipleDates) ? i.MultipleDates.map((o) => {
12664
- const [s, c, u] = o.split("T")[0].split("-").map(Number);
12665
- return new Date(s, c - 1, u);
12661
+ console.log("Fetched dates:", r), console.log("123 MultipleDates raw:", JSON.stringify(r.dates[123]?.MultipleDates)), e || (e = wt.SCAR);
12662
+ for (const i of r.dates) {
12663
+ i.NegDateID !== void 0 && i.CourtDateID == null && (i.CourtDateID = i.NegDateID), i.Date !== void 0 && i.CourtDate == null && (i.CourtDate = new Date(i.Date)), i.Time !== void 0 && i.HearingTime == null && (i.HearingTime = i.Time), i.Lifecycle || (i.Lifecycle = $t.SCHEDULED), i.Type || (i.Type = It.UNKNOWN), i.DateType || (i.DateType = e);
12664
+ const o = i.MultipleDates, s = Array.isArray(o) ? o : typeof o == "string" ? (() => {
12665
+ try {
12666
+ return JSON.parse(o);
12667
+ } catch {
12668
+ return null;
12669
+ }
12670
+ })() : null;
12671
+ i.MultipleDates = Array.isArray(s) ? s.map((c) => {
12672
+ const [u, h, f] = c.split("T")[0].split("-").map(Number);
12673
+ return new Date(u, h - 1, f);
12666
12674
  }) : null;
12675
+ }
12667
12676
  return r.dates || [];
12668
12677
  }
12669
12678
  async function bo(t, e, n, r, i, o) {
@@ -13232,8 +13241,8 @@ function XE({
13232
13241
  }, [o, i]), v = Tn(
13233
13242
  (x, H) => {
13234
13243
  f((L) => {
13235
- const I = [...L];
13236
- return I[x] = H, I;
13244
+ const k = [...L];
13245
+ return k[x] = H, k;
13237
13246
  });
13238
13247
  },
13239
13248
  []
@@ -13260,8 +13269,8 @@ function XE({
13260
13269
  const L = H.clipboardData.getData("text").split(/\r?\n/).map((Q) => Q.trim()).filter(Boolean);
13261
13270
  if (L.length <= 1) return;
13262
13271
  H.preventDefault();
13263
- const I = [...h.slice(0, x), ...L, ...h.slice(x + 1)], z = i ? [...i.slice(0, x), ...L.map(() => !1), ...i.slice(x + 1)] : void 0;
13264
- f(I), u(I.length), e(I, z ?? []), o && z && o(z), setTimeout(() => {
13272
+ const k = [...h.slice(0, x), ...L, ...h.slice(x + 1)], F = i ? [...i.slice(0, x), ...L.map(() => !1), ...i.slice(x + 1)] : void 0;
13273
+ f(k), u(k.length), e(k, F ?? []), o && F && o(F), setTimeout(() => {
13265
13274
  m.current && (m.current.scrollTop = m.current.scrollHeight);
13266
13275
  }, 0);
13267
13276
  },
@@ -13298,7 +13307,7 @@ function XE({
13298
13307
  },
13299
13308
  ref: m,
13300
13309
  children: /* @__PURE__ */ w($e, { spacing: 2, children: Array.from({ length: c }).map((x, H) => {
13301
- const L = i && i[H], I = L ? s : r;
13310
+ const L = i && i[H], k = L ? s : r;
13302
13311
  return /* @__PURE__ */ ee($e, { direction: "row", spacing: 1, alignItems: "center", children: [
13303
13312
  /* @__PURE__ */ w(
13304
13313
  na,
@@ -13319,22 +13328,22 @@ function XE({
13319
13328
  {
13320
13329
  index: H,
13321
13330
  value: h[H] || "",
13322
- onChange: (z) => v(H, z),
13331
+ onChange: (F) => v(H, F),
13323
13332
  onBlur: E,
13324
- onPaste: (z) => R(H, z),
13333
+ onPaste: (F) => R(H, F),
13325
13334
  isToggled: L || !1,
13326
- onToggleChange: (z) => _(H, z),
13335
+ onToggleChange: (F) => _(H, F),
13327
13336
  fieldLabelPrefix: r,
13328
13337
  alternateFieldLabelPrefix: s
13329
13338
  }
13330
13339
  ) : /* @__PURE__ */ w(
13331
13340
  Gn,
13332
13341
  {
13333
- label: `${I} ${H + 1}`,
13342
+ label: `${k} ${H + 1}`,
13334
13343
  value: h[H] || "",
13335
- onChange: (z) => v(H, z.target.value),
13344
+ onChange: (F) => v(H, F.target.value),
13336
13345
  onBlur: E,
13337
- onPaste: (z) => R(H, z),
13346
+ onPaste: (F) => R(H, F),
13338
13347
  fullWidth: !0
13339
13348
  },
13340
13349
  H
@@ -13386,7 +13395,7 @@ const eD = xa(function({
13386
13395
  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";
13387
13396
  be(() => {
13388
13397
  if (m.length !== r.length) {
13389
- const L = r.map((I, z) => m[z] || !1);
13398
+ const L = r.map((k, F) => m[F] || !1);
13390
13399
  y(L);
13391
13400
  }
13392
13401
  }, [r.length]);
@@ -13399,18 +13408,18 @@ const eD = xa(function({
13399
13408
  });
13400
13409
  }
13401
13410
  const x = zt(
13402
- () => r.map((L, I) => m[I] ? L.ParcelID : L.SCARIndexNumber),
13411
+ () => r.map((L, k) => m[k] ? L.ParcelID : L.SCARIndexNumber),
13403
13412
  [r, m]
13404
13413
  ), H = Tn(
13405
- (L, I) => {
13406
- const z = L.map((Q, $) => {
13407
- const G = I ? I[$] : m[$];
13414
+ (L, k) => {
13415
+ const F = L.map((Q, $) => {
13416
+ const G = k ? k[$] : m[$];
13408
13417
  return {
13409
13418
  ...r[$],
13410
13419
  ...G ? { ParcelID: Q } : { SCARIndexNumber: Q }
13411
13420
  };
13412
13421
  });
13413
- i(z);
13422
+ i(F);
13414
13423
  },
13415
13424
  [r, m, i]
13416
13425
  );
@@ -13527,15 +13536,15 @@ const eD = xa(function({
13527
13536
  children: "+ Add Date"
13528
13537
  }
13529
13538
  ),
13530
- /* @__PURE__ */ w($e, { direction: "row", flexWrap: "wrap", gap: 1, children: (e.MultipleDates || []).map((L, I) => /* @__PURE__ */ ee($e, { direction: "row", alignItems: "center", spacing: 0.5, children: [
13539
+ /* @__PURE__ */ w($e, { direction: "row", flexWrap: "wrap", gap: 1, children: (e.MultipleDates || []).map((L, k) => /* @__PURE__ */ ee($e, { direction: "row", alignItems: "center", spacing: 0.5, children: [
13531
13540
  /* @__PURE__ */ w(
13532
13541
  Iu,
13533
13542
  {
13534
- label: `Day ${I + 2}`,
13543
+ label: `Day ${k + 2}`,
13535
13544
  value: Aa(L),
13536
- onChange: (z) => {
13545
+ onChange: (F) => {
13537
13546
  const Q = [...e.MultipleDates || []];
13538
- Q[I] = z.toDate(), R({ ...e, MultipleDates: Q });
13547
+ Q[k] = F.toDate(), R({ ...e, MultipleDates: Q });
13539
13548
  },
13540
13549
  reduceAnimations: !0,
13541
13550
  sx: { width: 180 },
@@ -13547,16 +13556,16 @@ const eD = xa(function({
13547
13556
  {
13548
13557
  size: "small",
13549
13558
  onClick: () => {
13550
- const z = (e.MultipleDates || []).filter((Q, $) => $ !== I);
13559
+ const F = (e.MultipleDates || []).filter((Q, $) => $ !== k);
13551
13560
  R({
13552
13561
  ...e,
13553
- MultipleDates: z.length ? z : null
13562
+ MultipleDates: F.length ? F : null
13554
13563
  });
13555
13564
  },
13556
13565
  children: /* @__PURE__ */ w(ku, { fontSize: "small" })
13557
13566
  }
13558
13567
  )
13559
- ] }, I)) })
13568
+ ] }, k)) })
13560
13569
  ] })
13561
13570
  }
13562
13571
  )
@@ -13755,10 +13764,10 @@ const nD = xa(function({
13755
13764
  } = e, L = async () => {
13756
13765
  try {
13757
13766
  await navigator.clipboard.writeText(s), o("Copied!"), setTimeout(() => o("Copy"), 2e3);
13758
- } catch (z) {
13759
- console.error("Failed to copy:", z);
13767
+ } catch (F) {
13768
+ console.error("Failed to copy:", F);
13760
13769
  }
13761
- }, I = () => e.DateCompleted !== null;
13770
+ }, k = () => e.DateCompleted !== null;
13762
13771
  return /* @__PURE__ */ ee($e, { spacing: 4, mt: 1, children: [
13763
13772
  /* @__PURE__ */ ee(
13764
13773
  Le,
@@ -13841,12 +13850,12 @@ const nD = xa(function({
13841
13850
  /* @__PURE__ */ w(
13842
13851
  uo,
13843
13852
  {
13844
- label: `${I() ? "Reviewed" : "Unreviewed"}`,
13853
+ label: `${k() ? "Reviewed" : "Unreviewed"}`,
13845
13854
  size: "medium",
13846
13855
  variant: "outlined",
13847
13856
  sx: {
13848
13857
  "&.MuiChip-outlined": {
13849
- borderColor: I() ? "green !important" : "red !important"
13858
+ borderColor: k() ? "green !important" : "red !important"
13850
13859
  }
13851
13860
  }
13852
13861
  }
@@ -14148,17 +14157,17 @@ function lD({
14148
14157
  }
14149
14158
  function v(x, H) {
14150
14159
  if (!e) return;
14151
- const L = x === "first" ? { FirstChair: H } : { SecondChair: H }, I = { ...e, ...L };
14152
- h(I), bo(e.CourtDateID, L, c, void 0, u, e.DateType ?? void 0).then((z) => {
14153
- z || (h(e), console.error("Failed to update chair assignment, reverted"));
14160
+ const L = x === "first" ? { FirstChair: H } : { SecondChair: H }, k = { ...e, ...L };
14161
+ h(k), bo(e.CourtDateID, L, c, void 0, u, e.DateType ?? void 0).then((F) => {
14162
+ F || (h(e), console.error("Failed to update chair assignment, reverted"));
14154
14163
  });
14155
14164
  }
14156
14165
  async function E(x, H) {
14157
14166
  if (!e) return;
14158
- const L = Wt(e), I = new Set(x.map(($) => $.SCARIndexNumber)), z = n.map(
14159
- ($) => I.has($.SCARIndexNumber) ? { ...$, AdjournedDate: H } : $
14167
+ const L = Wt(e), k = new Set(x.map(($) => $.SCARIndexNumber)), F = n.map(
14168
+ ($) => k.has($.SCARIndexNumber) ? { ...$, AdjournedDate: H } : $
14160
14169
  );
14161
- f({ [L]: z }), await oD(
14170
+ f({ [L]: F }), await oD(
14162
14171
  x.map(($) => ({ indexNumber: $.SCARIndexNumber, year: $.Year })),
14163
14172
  H,
14164
14173
  c
@@ -14228,7 +14237,7 @@ function cD({
14228
14237
  setModalMode: n,
14229
14238
  selectedCourtDate: i,
14230
14239
  selectedCases: s
14231
- }), R = i ? `${u(i.MuniCode)}_${new Date(i.CourtDate).toLocaleDateString("en-CA")}` : "cases", { handleSave: x, handleDelete: H, handleViewUpdateChair: L, handleSelectedCasesAdjournmentChange: I } = lD({
14240
+ }), R = i ? `${u(i.MuniCode)}_${new Date(i.CourtDate).toLocaleDateString("en-CA")}` : "cases", { handleSave: x, handleDelete: H, handleViewUpdateChair: L, handleSelectedCasesAdjournmentChange: k } = lD({
14232
14241
  modalMode: e,
14233
14242
  selectedCourtDate: i,
14234
14243
  selectedCases: s,
@@ -14291,7 +14300,7 @@ function cD({
14291
14300
  csvFileName: R,
14292
14301
  isAdmin: h,
14293
14302
  selectedCourtDate: i,
14294
- onSelectedCasesAdjournmentChange: h ? I : void 0
14303
+ onSelectedCasesAdjournmentChange: h ? k : void 0
14295
14304
  }
14296
14305
  )
14297
14306
  ] }),
@@ -14371,17 +14380,17 @@ function uD({
14371
14380
  // isCaseSettled true
14372
14381
  };
14373
14382
  function y(x) {
14374
- const H = ur(x.MuniCode), L = (I) => (I || "").toLowerCase() === "oa";
14383
+ const H = ur(x.MuniCode), L = (k) => (k || "").toLowerCase() === "oa";
14375
14384
  return (i[Wt(x)] || []).some(
14376
- (I) => L(H ? I.VillageSCARDeterminationAction : I.SCARDeterminationAction)
14385
+ (k) => L(H ? k.VillageSCARDeterminationAction : k.SCARDeterminationAction)
14377
14386
  );
14378
14387
  }
14379
14388
  function v(x) {
14380
14389
  const H = i[Wt(x)] || [];
14381
- let L = !0, I = !0;
14382
- for (const z of H)
14383
- L && !ji(z, ur(x.MuniCode)) && (L = !1), I && z.DateCompleted === null && (I = !1);
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";
14390
+ let L = !0, k = !0;
14391
+ for (const F of H)
14392
+ L && !ji(F, ur(x.MuniCode)) && (L = !1), k && F.DateCompleted === null && (k = !1);
14393
+ return k ? 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";
14385
14394
  }
14386
14395
  function E(x) {
14387
14396
  return x.Type === It.IN_PERSON ? "In Person" : x.Type === It.UNKNOWN ? "Unknown" : "Virtual";
@@ -14498,7 +14507,7 @@ function uD({
14498
14507
  {
14499
14508
  user1ID: H.user1ID,
14500
14509
  user2ID: H.user2ID,
14501
- onUpdateChair: r ? (L, I) => r(H.courtDateId, L, I) : void 0
14510
+ onUpdateChair: r ? (L, k) => r(H.courtDateId, L, k) : void 0
14502
14511
  }
14503
14512
  );
14504
14513
  }
@@ -14546,34 +14555,34 @@ function uD({
14546
14555
  assigned: { user1ID: x.FirstChair, user2ID: x.SecondChair, courtDateId: x.CourtDateID },
14547
14556
  uploadDeadline: x.UploadDeadline,
14548
14557
  location: E(x)
14549
- }, I = [];
14558
+ }, k = [];
14550
14559
  if (u.showAdjournmentDates) {
14551
14560
  const Q = /* @__PURE__ */ new Map();
14552
14561
  for (const $ of i[Wt(x)] || []) {
14553
14562
  if (!$.AdjournedDate) continue;
14554
- const G = new Date($.AdjournedDate), K = `${G.getFullYear()}-${String(G.getMonth() + 1).padStart(2, "0")}-${String(G.getDate()).padStart(2, "0")}`;
14555
- Q.set(K, [...Q.get(K) || [], $]);
14563
+ const G = new Date($.AdjournedDate), Y = `${G.getFullYear()}-${String(G.getMonth() + 1).padStart(2, "0")}-${String(G.getDate()).padStart(2, "0")}`;
14564
+ Q.set(Y, [...Q.get(Y) || [], $]);
14556
14565
  }
14557
14566
  for (const [$, G] of Q) {
14558
- const [K, ae, _e] = $.split("-").map(Number);
14559
- I.push({
14567
+ const [Y, ae, _e] = $.split("-").map(Number);
14568
+ k.push({
14560
14569
  ...L,
14561
14570
  id: `${x.CourtDateID}-adj-${$}`,
14562
14571
  township: `${s(x.MuniCode)} (${x.MuniCode}) - Adjournment`,
14563
14572
  numCases: G.length,
14564
- courtDate: new Date(K, ae - 1, _e),
14573
+ courtDate: new Date(Y, ae - 1, _e),
14565
14574
  status: "Adjourned"
14566
14575
  });
14567
14576
  }
14568
14577
  }
14569
- if (!H) return [L, ...I];
14570
- const z = x.MultipleDates.filter(Boolean).map((Q, $) => ({
14578
+ if (!H) return [L, ...k];
14579
+ const F = x.MultipleDates.filter(Boolean).map((Q, $) => ({
14571
14580
  ...L,
14572
14581
  id: `${x.CourtDateID}-extra-${$}`,
14573
14582
  township: `${s(x.MuniCode)} (day ${$ + 2})`,
14574
14583
  courtDate: Q
14575
14584
  }));
14576
- return [L, ...I, ...z];
14585
+ return [L, ...k, ...F];
14577
14586
  });
14578
14587
  return /* @__PURE__ */ w("div", { style: { height: o ? "auto" : 600, width: "100%" }, children: /* @__PURE__ */ w(
14579
14588
  ka,
@@ -14589,7 +14598,7 @@ function uD({
14589
14598
  }
14590
14599
  },
14591
14600
  onRowClick: (x) => {
14592
- const H = parseInt(x.id.toString().split("-")[0], 10), L = t.find((I) => I.CourtDateID === H);
14601
+ const H = parseInt(x.id.toString().split("-")[0], 10), L = t.find((k) => k.CourtDateID === H);
14593
14602
  L && e(L);
14594
14603
  },
14595
14604
  getRowClassName: () => "ccalendar-list-row"
@@ -14653,15 +14662,15 @@ function fD() {
14653
14662
  function L(a) {
14654
14663
  if (!a) throw new Error("Assertion Failed");
14655
14664
  }
14656
- function I(a) {
14665
+ function k(a) {
14657
14666
  o.setImmediate ? setImmediate(a) : setTimeout(a, 0);
14658
14667
  }
14659
- function z(a, l) {
14668
+ function F(a, l) {
14660
14669
  if (typeof l == "string" && m(a, l)) return a[l];
14661
14670
  if (!l) return a;
14662
14671
  if (typeof l != "string") {
14663
14672
  for (var d = [], p = 0, g = l.length; p < g; ++p) {
14664
- var b = z(a, l[p]);
14673
+ var b = F(a, l[p]);
14665
14674
  d.push(b);
14666
14675
  }
14667
14676
  return d;
@@ -14669,7 +14678,7 @@ function fD() {
14669
14678
  var S = l.indexOf(".");
14670
14679
  if (S !== -1) {
14671
14680
  var A = a[l.substr(0, S)];
14672
- return A == null ? void 0 : z(A, l.substr(S + 1));
14681
+ return A == null ? void 0 : F(A, l.substr(S + 1));
14673
14682
  }
14674
14683
  }
14675
14684
  function Q(a, l, d) {
@@ -14687,10 +14696,10 @@ function fD() {
14687
14696
  return d;
14688
14697
  }
14689
14698
  var G = [].concat;
14690
- function K(a) {
14699
+ function Y(a) {
14691
14700
  return G.apply([], a);
14692
14701
  }
14693
- var Lt = "BigUint64Array,BigInt64Array,Array,Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,FileSystemDirectoryHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey".split(",").concat(K([8, 16, 32, 64].map(function(a) {
14702
+ var Lt = "BigUint64Array,BigInt64Array,Array,Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,FileSystemDirectoryHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey".split(",").concat(Y([8, 16, 32, 64].map(function(a) {
14694
14703
  return ["Int", "Uint", "Float"].map(function(l) {
14695
14704
  return l + a + "Array";
14696
14705
  });
@@ -14728,12 +14737,12 @@ function fD() {
14728
14737
  function Z(a, l) {
14729
14738
  return l = a.indexOf(l), 0 <= l && a.splice(l, 1), 0 <= l;
14730
14739
  }
14731
- var pe = {};
14732
- function ye(a) {
14740
+ var he = {};
14741
+ function ve(a) {
14733
14742
  var l, d, p, g;
14734
14743
  if (arguments.length === 1) {
14735
14744
  if (c(a)) return a.slice();
14736
- if (this === pe && typeof a == "string") return [a];
14745
+ if (this === he && typeof a == "string") return [a];
14737
14746
  if (g = oe(a)) {
14738
14747
  for (d = []; !(p = g.next()).done; ) d.push(p.value);
14739
14748
  return d;
@@ -14746,7 +14755,7 @@ function fD() {
14746
14755
  for (l = arguments.length, d = new Array(l); l--; ) d[l] = arguments[l];
14747
14756
  return d;
14748
14757
  }
14749
- var Ie = typeof Symbol < "u" ? function(a) {
14758
+ var Te = typeof Symbol < "u" ? function(a) {
14750
14759
  return a[Symbol.toStringTag] === "AsyncFunction";
14751
14760
  } : function() {
14752
14761
  return !1;
@@ -14858,11 +14867,11 @@ function fD() {
14858
14867
  return [l, h(l), a];
14859
14868
  })(), vn = Lt[0], tn = Lt[1], Lt = Lt[2], tn = tn && tn.then, jt = vn && vn.constructor, Qt = !!Lt, rn = function(a, l) {
14860
14869
  ln.push([a, l]), sn && (queueMicrotask(vt), sn = !1);
14861
- }, on = !0, sn = !0, Zt = [], yn = [], an = pt, Xe = { id: "global", global: !0, ref: 0, unhandleds: [], onunhandled: xe, pgp: !1, env: {}, finalize: xe }, he = Xe, ln = [], Ht = 0, cn = [];
14870
+ }, on = !0, sn = !0, Zt = [], yn = [], an = pt, Xe = { id: "global", global: !0, ref: 0, unhandleds: [], onunhandled: xe, pgp: !1, env: {}, finalize: xe }, pe = Xe, ln = [], Ht = 0, cn = [];
14862
14871
  function ue(a) {
14863
14872
  if (typeof this != "object") throw new TypeError("Promises must be constructed via new");
14864
14873
  this._listeners = [], this._lib = !1;
14865
- var l = this._PSD = he;
14874
+ var l = this._PSD = pe;
14866
14875
  if (typeof a != "function") {
14867
14876
  if (a !== mn) throw new TypeError("Not a function");
14868
14877
  return this._state = arguments[1], this._value = arguments[2], void (this._state === !1 && wn(this, this._value));
@@ -14873,9 +14882,9 @@ function fD() {
14873
14882
  if (p._state === null) {
14874
14883
  if (b === p) throw new TypeError("A promise cannot be resolved with itself.");
14875
14884
  var S = p._lib && Se();
14876
- b && typeof b.then == "function" ? d(p, function(A, k) {
14877
- b instanceof ue ? b._then(A, k) : b.then(A, k);
14878
- }) : (p._state = !0, p._value = b, Zn(p)), S && ke();
14885
+ b && typeof b.then == "function" ? d(p, function(A, I) {
14886
+ b instanceof ue ? b._then(A, I) : b.then(A, I);
14887
+ }) : (p._state = !0, p._value = b, Zn(p)), S && Ie();
14879
14888
  }
14880
14889
  }, wn.bind(null, p));
14881
14890
  } catch (b) {
@@ -14884,12 +14893,12 @@ function fD() {
14884
14893
  })(this, a);
14885
14894
  }
14886
14895
  var bn = { get: function() {
14887
- var a = he, l = Tt;
14896
+ var a = pe, l = Tt;
14888
14897
  function d(p, g) {
14889
- var b = this, S = !a.global && (a !== he || l !== Tt), A = S && !ze(), k = new ue(function(M, j) {
14898
+ var b = this, S = !a.global && (a !== pe || l !== Tt), A = S && !ze(), I = new ue(function(M, j) {
14890
14899
  Xn(b, new Fn(ci(p, a, S, A), ci(g, a, S, A), M, j, a));
14891
14900
  });
14892
- return this._consoleTask && (k._consoleTask = this._consoleTask), k;
14901
+ return this._consoleTask && (I._consoleTask = this._consoleTask), I;
14893
14902
  }
14894
14903
  return d.prototype = mn, d;
14895
14904
  }, set: function(a) {
@@ -14904,7 +14913,7 @@ function fD() {
14904
14913
  var d, p;
14905
14914
  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) {
14906
14915
  return g._value === p._value;
14907
- }) || Zt.push(p), Zn(a), d && ke());
14916
+ }) || Zt.push(p), Zn(a), d && Ie());
14908
14917
  }
14909
14918
  function Zn(a) {
14910
14919
  var l = a._listeners;
@@ -14938,14 +14947,14 @@ function fD() {
14938
14947
  }
14939
14948
  function vt() {
14940
14949
  En(Xe, function() {
14941
- Se() && ke();
14950
+ Se() && Ie();
14942
14951
  });
14943
14952
  }
14944
14953
  function Se() {
14945
14954
  var a = on;
14946
14955
  return sn = on = !1, a;
14947
14956
  }
14948
- function ke() {
14957
+ function Ie() {
14949
14958
  var a, l, d;
14950
14959
  do
14951
14960
  for (; 0 < ln.length; ) for (a = ln, ln = [], d = a.length, l = 0; l < d; ++l) {
@@ -14966,20 +14975,20 @@ function fD() {
14966
14975
  return new ue(mn, !1, a);
14967
14976
  }
14968
14977
  function J(a, l) {
14969
- var d = he;
14978
+ var d = pe;
14970
14979
  return function() {
14971
- var p = Se(), g = he;
14980
+ var p = Se(), g = pe;
14972
14981
  try {
14973
14982
  return Sn(d, !0), a.apply(this, arguments);
14974
14983
  } catch (b) {
14975
14984
  l && l(b);
14976
14985
  } finally {
14977
- Sn(g, !1), p && ke();
14986
+ Sn(g, !1), p && Ie();
14978
14987
  }
14979
14988
  };
14980
14989
  }
14981
14990
  y(ue.prototype, { then: bn, _then: function(a, l) {
14982
- Xn(this, new Fn(null, null, a, l, he));
14991
+ Xn(this, new Fn(null, null, a, l, pe));
14983
14992
  }, catch: function(a) {
14984
14993
  if (arguments.length === 1) return this.then(null, a);
14985
14994
  var l = a, d = arguments[1];
@@ -15007,7 +15016,7 @@ function fD() {
15007
15016
  d.then(p, g).finally(clearTimeout.bind(null, b));
15008
15017
  }) : this;
15009
15018
  } }), typeof Symbol < "u" && Symbol.toStringTag && E(ue.prototype, Symbol.toStringTag, "Dexie.Promise"), Xe.env = li(), y(ue, { all: function() {
15010
- var a = ye.apply(null, arguments).map(un);
15019
+ var a = ve.apply(null, arguments).map(un);
15011
15020
  return new ue(function(l, d) {
15012
15021
  a.length === 0 && l([]);
15013
15022
  var p = a.length;
@@ -15022,16 +15031,16 @@ function fD() {
15022
15031
  a.then(l, d);
15023
15032
  }) : new ue(mn, !0, a);
15024
15033
  }, reject: Xt, race: function() {
15025
- var a = ye.apply(null, arguments).map(un);
15034
+ var a = ve.apply(null, arguments).map(un);
15026
15035
  return new ue(function(l, d) {
15027
15036
  a.map(function(p) {
15028
15037
  return ue.resolve(p).then(l, d);
15029
15038
  });
15030
15039
  });
15031
15040
  }, PSD: { get: function() {
15032
- return he;
15041
+ return pe;
15033
15042
  }, set: function(a) {
15034
- return he = a;
15043
+ return pe = a;
15035
15044
  } }, totalEchoes: { get: function() {
15036
15045
  return Tt;
15037
15046
  } }, newPSD: nt, usePSD: En, scheduler: { get: function() {
@@ -15045,11 +15054,11 @@ function fD() {
15045
15054
  } }, follow: function(a, l) {
15046
15055
  return new ue(function(d, p) {
15047
15056
  return nt(function(g, b) {
15048
- var S = he;
15057
+ var S = pe;
15049
15058
  S.unhandleds = [], S.onunhandled = b, S.finalize = Rt(function() {
15050
- var A, k = this;
15059
+ var A, I = this;
15051
15060
  A = function() {
15052
- k.unhandleds.length === 0 ? g() : b(k.unhandleds[0]);
15061
+ I.unhandleds.length === 0 ? g() : b(I.unhandleds[0]);
15053
15062
  }, cn.push(function M() {
15054
15063
  A(), cn.splice(cn.indexOf(M), 1);
15055
15064
  }), ++Ht, rn(function() {
@@ -15059,7 +15068,7 @@ function fD() {
15059
15068
  }, l, d, p);
15060
15069
  });
15061
15070
  } }), jt && (jt.allSettled && E(ue, "allSettled", function() {
15062
- var a = ye.apply(null, arguments).map(un);
15071
+ var a = ve.apply(null, arguments).map(un);
15063
15072
  return new ue(function(l) {
15064
15073
  a.length === 0 && l([]);
15065
15074
  var d = a.length, p = new Array(d);
@@ -15074,7 +15083,7 @@ function fD() {
15074
15083
  });
15075
15084
  });
15076
15085
  }), jt.any && typeof AggregateError < "u" && E(ue, "any", function() {
15077
- var a = ye.apply(null, arguments).map(un);
15086
+ var a = ve.apply(null, arguments).map(un);
15078
15087
  return new ue(function(l, d) {
15079
15088
  a.length === 0 && d(new AggregateError([]));
15080
15089
  var p = a.length, g = new Array(p);
@@ -15089,7 +15098,7 @@ function fD() {
15089
15098
  }), jt.withResolvers && (ue.withResolvers = jt.withResolvers));
15090
15099
  var ge = { awaits: 0, echoes: 0, id: 0 }, Ee = 0, Fe = [], ot = 0, Tt = 0, Jt = 0;
15091
15100
  function nt(a, l, d, p) {
15092
- var g = he, b = Object.create(g);
15101
+ var g = pe, b = Object.create(g);
15093
15102
  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() {
15094
15103
  --this.parent.ref || this.parent.finalize();
15095
15104
  }, p = En(b, a, d, p), b.ref === 0 && b.finalize(), p;
@@ -15112,17 +15121,17 @@ function fD() {
15112
15121
  Fe.pop(), Sn(a, !1);
15113
15122
  }
15114
15123
  function Sn(a, l) {
15115
- var d, p = he;
15116
- (l ? !ge.echoes || ot++ && a === he : !ot || --ot && a === he) || queueMicrotask(l ? (function(g) {
15117
- ++Tt, ge.echoes && --ge.echoes != 0 || (ge.echoes = ge.awaits = ge.id = 0), Fe.push(he), Sn(g, !0);
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))));
15124
+ var d, p = pe;
15125
+ (l ? !ge.echoes || ot++ && a === pe : !ot || --ot && a === pe) || queueMicrotask(l ? (function(g) {
15126
+ ++Tt, ge.echoes && --ge.echoes != 0 || (ge.echoes = ge.awaits = ge.id = 0), Fe.push(pe), Sn(g, !0);
15127
+ }).bind(null, a) : os), a !== pe && (pe = 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))));
15119
15128
  }
15120
15129
  function li() {
15121
15130
  var a = o.Promise;
15122
15131
  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 } : {};
15123
15132
  }
15124
15133
  function En(a, l, d, p, g) {
15125
- var b = he;
15134
+ var b = pe;
15126
15135
  try {
15127
15136
  return Sn(a, !0), l(d, p, g);
15128
15137
  } finally {
@@ -15131,7 +15140,7 @@ function fD() {
15131
15140
  }
15132
15141
  function ci(a, l, d, p) {
15133
15142
  return typeof a != "function" ? a : function() {
15134
- var g = he;
15143
+ var g = pe;
15135
15144
  d && ft(), Sn(l, !0);
15136
15145
  try {
15137
15146
  return a.apply(this, arguments);
@@ -15172,12 +15181,12 @@ function fD() {
15172
15181
  return l < a ? 1 : a < l ? -1 : 0;
15173
15182
  case "binary":
15174
15183
  return (function(g, b) {
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;
15184
+ for (var S = g.length, A = b.length, I = S < A ? S : A, M = 0; M < I; ++M) if (g[M] !== b[M]) return g[M] < b[M] ? -1 : 1;
15176
15185
  return S === A ? 0 : S < A ? -1 : 1;
15177
15186
  })(El(a), El(l));
15178
15187
  case "Array":
15179
15188
  return (function(g, b) {
15180
- for (var S = g.length, A = b.length, k = S < A ? S : A, M = 0; M < k; ++M) {
15189
+ for (var S = g.length, A = b.length, I = S < A ? S : A, M = 0; M < I; ++M) {
15181
15190
  var j = He(g[M], b[M]);
15182
15191
  if (j !== 0) return j;
15183
15192
  }
@@ -15238,23 +15247,23 @@ function fD() {
15238
15247
  }
15239
15248
  function Cl(a, l) {
15240
15249
  for (var d = s(l), p = d.length, g = !1, b = 0; b < p; ++b) {
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);
15250
+ var S = d[b], A = l[S], I = F(a, S);
15251
+ A instanceof ui ? (Q(a, S, A.execute(I)), g = !0) : I !== A && (Q(a, S, A), g = !0);
15243
15252
  }
15244
15253
  return g;
15245
15254
  }
15246
15255
  var Al = (Je.prototype._trans = function(a, l, d) {
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));
15256
+ var p = this._tx || pe.trans, g = this.name, b = Be && typeof console < "u" && console.createTask && console.createTask("Dexie: ".concat(a === "readonly" ? "read" : "write", " ").concat(this.name));
15248
15257
  function S(M, j, T) {
15249
15258
  if (!T.schema[g]) throw new te.NotFound("Table " + g + " not part of transaction");
15250
15259
  return l(T.idbtrans, T);
15251
15260
  }
15252
15261
  var A = Se();
15253
15262
  try {
15254
- var k = p && p.db._novip === this.db._novip ? p === he.trans ? p._promise(a, S, d) : nt(function() {
15263
+ var I = p && p.db._novip === this.db._novip ? p === pe.trans ? p._promise(a, S, d) : nt(function() {
15255
15264
  return p._promise(a, S, d);
15256
- }, { trans: p, transless: he.transless || he }) : (function M(j, T, B, O) {
15257
- if (j.idbdb && (j._state.openComplete || he.letThrough || j._vip)) {
15265
+ }, { trans: p, transless: pe.transless || pe }) : (function M(j, T, B, O) {
15266
+ if (j.idbdb && (j._state.openComplete || pe.letThrough || j._vip)) {
15258
15267
  var N = j._createTransaction(T, B, j._dbSchema);
15259
15268
  try {
15260
15269
  N.create(), j._state.PR1398_maxLoop = 3;
@@ -15265,7 +15274,7 @@ function fD() {
15265
15274
  }
15266
15275
  return N._promise(T, function(P, U) {
15267
15276
  return nt(function() {
15268
- return he.trans = N, O(P, U, N);
15277
+ return pe.trans = N, O(P, U, N);
15269
15278
  });
15270
15279
  }).then(function(P) {
15271
15280
  if (T === "readwrite") try {
@@ -15286,11 +15295,11 @@ function fD() {
15286
15295
  return M(j, T, B, O);
15287
15296
  });
15288
15297
  })(this.db, a, [this.name], S);
15289
- return b && (k._consoleTask = b, k = k.catch(function(M) {
15298
+ return b && (I._consoleTask = b, I = I.catch(function(M) {
15290
15299
  return console.trace(M), rt(M);
15291
- })), k;
15300
+ })), I;
15292
15301
  } finally {
15293
- A && ke();
15302
+ A && Ie();
15294
15303
  }
15295
15304
  }, Je.prototype.get = function(a, l) {
15296
15305
  var d = this;
@@ -15308,32 +15317,32 @@ function fD() {
15308
15317
  if (A.compound && l.every(function(M) {
15309
15318
  return 0 <= A.keyPath.indexOf(M);
15310
15319
  })) {
15311
- for (var k = 0; k < l.length; ++k) if (l.indexOf(A.keyPath[k]) === -1) return !1;
15320
+ for (var I = 0; I < l.length; ++I) if (l.indexOf(A.keyPath[I]) === -1) return !1;
15312
15321
  return !0;
15313
15322
  }
15314
15323
  return !1;
15315
- }).sort(function(A, k) {
15316
- return A.keyPath.length - k.keyPath.length;
15324
+ }).sort(function(A, I) {
15325
+ return A.keyPath.length - I.keyPath.length;
15317
15326
  })[0];
15318
15327
  if (d && this.db._maxKey !== Pe) {
15319
15328
  var b = d.keyPath.slice(0, l.length);
15320
- return this.where(b).equals(b.map(function(k) {
15321
- return a[k];
15329
+ return this.where(b).equals(b.map(function(I) {
15330
+ return a[I];
15322
15331
  }));
15323
15332
  }
15324
15333
  !d && Be && console.warn("The query ".concat(JSON.stringify(a), " on ").concat(this.name, " would benefit from a ") + "compound index [".concat(l.join("+"), "]"));
15325
15334
  var p = this.schema.idxByName;
15326
- function g(A, k) {
15327
- return He(A, k) === 0;
15335
+ function g(A, I) {
15336
+ return He(A, I) === 0;
15328
15337
  }
15329
- var S = l.reduce(function(T, k) {
15330
- var M = T[0], j = T[1], T = p[k], B = a[k];
15338
+ var S = l.reduce(function(T, I) {
15339
+ var M = T[0], j = T[1], T = p[I], B = a[I];
15331
15340
  return [M || T, M || !T ? br(j, T && T.multi ? function(O) {
15332
- return O = z(O, k), c(O) && O.some(function(N) {
15341
+ return O = F(O, I), c(O) && O.some(function(N) {
15333
15342
  return g(B, N);
15334
15343
  });
15335
15344
  } : function(O) {
15336
- return g(B, z(O, k));
15345
+ return g(B, F(O, I));
15337
15346
  }) : j];
15338
15347
  }, [null, null]), b = S[0], S = S[1];
15339
15348
  return b ? this.where(b.name).equals(a[b.keyPath]).filter(S) : d ? this.filter(S) : this.where(l).equals("");
@@ -15360,25 +15369,25 @@ function fD() {
15360
15369
  function g() {
15361
15370
  return l !== null && l.apply(this, arguments) || this;
15362
15371
  }
15363
- (this.schema.mappedClass = a).prototype instanceof wl && ((function(k, M) {
15372
+ (this.schema.mappedClass = a).prototype instanceof wl && ((function(I, M) {
15364
15373
  if (typeof M != "function" && M !== null) throw new TypeError("Class extends value " + String(M) + " is not a constructor or null");
15365
15374
  function j() {
15366
- this.constructor = k;
15375
+ this.constructor = I;
15367
15376
  }
15368
- n(k, M), k.prototype = M === null ? Object.create(M) : (j.prototype = M.prototype, new j());
15377
+ n(I, M), I.prototype = M === null ? Object.create(M) : (j.prototype = M.prototype, new j());
15369
15378
  })(g, l = a), Object.defineProperty(g.prototype, "db", { get: function() {
15370
15379
  return d;
15371
15380
  }, enumerable: !1, configurable: !0 }), g.prototype.table = function() {
15372
15381
  return p;
15373
15382
  }, a = g);
15374
- for (var b = /* @__PURE__ */ new Set(), S = a.prototype; S; S = h(S)) Object.getOwnPropertyNames(S).forEach(function(k) {
15375
- return b.add(k);
15383
+ for (var b = /* @__PURE__ */ new Set(), S = a.prototype; S; S = h(S)) Object.getOwnPropertyNames(S).forEach(function(I) {
15384
+ return b.add(I);
15376
15385
  });
15377
- function A(k) {
15378
- if (!k) return k;
15386
+ function A(I) {
15387
+ if (!I) return I;
15379
15388
  var M, j = Object.create(a.prototype);
15380
- for (M in k) if (!b.has(M)) try {
15381
- j[M] = k[M];
15389
+ for (M in I) if (!b.has(M)) try {
15390
+ j[M] = I[M];
15382
15391
  } catch {
15383
15392
  }
15384
15393
  return j;
@@ -15412,7 +15421,7 @@ function fD() {
15412
15421
  });
15413
15422
  });
15414
15423
  }, Je.prototype.update = function(a, l) {
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));
15424
+ return typeof a != "object" || c(a) ? this.where(":id").equals(a).modify(l) : (a = F(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));
15416
15425
  }, Je.prototype.put = function(a, l) {
15417
15426
  var d = this, p = this.schema.primKey, g = p.auto, b = p.keyPath, S = a;
15418
15427
  return b && g && (S = Hi(b)(a)), this._trans("readwrite", function(A) {
@@ -15459,11 +15468,11 @@ function fD() {
15459
15468
  var M = p.schema.primKey, A = M.auto, M = M.keyPath;
15460
15469
  if (M && g) throw new te.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");
15461
15470
  if (g && g.length !== a.length) throw new te.InvalidArgument("Arguments objects and keys must have the same length");
15462
- var k = a.length, M = M && A ? a.map(Hi(M)) : a;
15471
+ var I = a.length, M = M && A ? a.map(Hi(M)) : a;
15463
15472
  return p.core.mutate({ trans: S, type: "add", keys: g, values: M, wantResults: b }).then(function(N) {
15464
15473
  var T = N.numFailures, B = N.results, O = N.lastResult, N = N.failures;
15465
15474
  if (T === 0) return b ? B : O;
15466
- throw new lt("".concat(p.name, ".bulkAdd(): ").concat(T, " of ").concat(k, " operations failed"), N);
15475
+ throw new lt("".concat(p.name, ".bulkAdd(): ").concat(T, " of ").concat(I, " operations failed"), N);
15467
15476
  });
15468
15477
  });
15469
15478
  }, Je.prototype.bulkPut = function(a, l, d) {
@@ -15472,11 +15481,11 @@ function fD() {
15472
15481
  var M = p.schema.primKey, A = M.auto, M = M.keyPath;
15473
15482
  if (M && g) throw new te.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");
15474
15483
  if (g && g.length !== a.length) throw new te.InvalidArgument("Arguments objects and keys must have the same length");
15475
- var k = a.length, M = M && A ? a.map(Hi(M)) : a;
15484
+ var I = a.length, M = M && A ? a.map(Hi(M)) : a;
15476
15485
  return p.core.mutate({ trans: S, type: "put", keys: g, values: M, wantResults: b }).then(function(N) {
15477
15486
  var T = N.numFailures, B = N.results, O = N.lastResult, N = N.failures;
15478
15487
  if (T === 0) return b ? B : O;
15479
- throw new lt("".concat(p.name, ".bulkPut(): ").concat(T, " of ").concat(k, " operations failed"), N);
15488
+ throw new lt("".concat(p.name, ".bulkPut(): ").concat(T, " of ").concat(I, " operations failed"), N);
15480
15489
  });
15481
15490
  });
15482
15491
  }, Je.prototype.bulkUpdate = function(a) {
@@ -15487,26 +15496,26 @@ function fD() {
15487
15496
  }), b = [];
15488
15497
  return this._trans("readwrite", function(S) {
15489
15498
  return d.getMany({ trans: S, keys: p, cache: "clone" }).then(function(A) {
15490
- var k = [], M = [];
15499
+ var I = [], M = [];
15491
15500
  a.forEach(function(T, B) {
15492
15501
  var O = T.key, N = T.changes, P = A[B];
15493
15502
  if (P) {
15494
- for (var U = 0, F = Object.keys(N); U < F.length; U++) {
15495
- var W = F[U], q = N[W];
15503
+ for (var U = 0, z = Object.keys(N); U < z.length; U++) {
15504
+ var W = z[U], q = N[W];
15496
15505
  if (W === l.schema.primKey.keyPath) {
15497
15506
  if (He(q, O) !== 0) throw new te.Constraint("Cannot update primary key in bulkUpdate()");
15498
15507
  } else Q(P, W, q);
15499
15508
  }
15500
- b.push(B), k.push(O), M.push(P);
15509
+ b.push(B), I.push(O), M.push(P);
15501
15510
  }
15502
15511
  });
15503
- var j = k.length;
15504
- return d.mutate({ trans: S, type: "put", keys: k, values: M, updates: { keys: p, changeSpecs: g } }).then(function(T) {
15512
+ var j = I.length;
15513
+ return d.mutate({ trans: S, type: "put", keys: I, values: M, updates: { keys: p, changeSpecs: g } }).then(function(T) {
15505
15514
  var B = T.numFailures, O = T.failures;
15506
15515
  if (B === 0) return j;
15507
15516
  for (var N = 0, P = Object.keys(O); N < P.length; N++) {
15508
- var U, F = P[N], W = b[Number(F)];
15509
- W != null && (U = O[F], delete O[F], O[W] = U);
15517
+ var U, z = P[N], W = b[Number(z)];
15518
+ W != null && (U = O[z], delete O[z], O[W] = U);
15510
15519
  }
15511
15520
  throw new lt("".concat(l.name, ".bulkUpdate(): ").concat(B, " of ").concat(j, " operations failed"), O);
15512
15521
  });
@@ -15529,7 +15538,7 @@ function fD() {
15529
15538
  function di(a) {
15530
15539
  function l(S, A) {
15531
15540
  if (A) {
15532
- for (var k = arguments.length, M = new Array(k - 1); --k; ) M[k - 1] = arguments[k];
15541
+ for (var I = arguments.length, M = new Array(I - 1); --I; ) M[I - 1] = arguments[I];
15533
15542
  return d[S].subscribe.apply(null, M), a;
15534
15543
  }
15535
15544
  if (typeof S == "string") return d[S];
@@ -15538,16 +15547,16 @@ function fD() {
15538
15547
  l.addEventType = b;
15539
15548
  for (var p = 1, g = arguments.length; p < g; ++p) b(arguments[p]);
15540
15549
  return l;
15541
- function b(S, A, k) {
15550
+ function b(S, A, I) {
15542
15551
  if (typeof S != "object") {
15543
15552
  var M;
15544
15553
  A = A || Qn;
15545
- var j = { subscribers: [], fire: k = k || xe, subscribe: function(T) {
15554
+ var j = { subscribers: [], fire: I = I || xe, subscribe: function(T) {
15546
15555
  j.subscribers.indexOf(T) === -1 && (j.subscribers.push(T), j.fire = A(j.fire, T));
15547
15556
  }, unsubscribe: function(T) {
15548
15557
  j.subscribers = j.subscribers.filter(function(B) {
15549
15558
  return B !== T;
15550
- }), j.fire = j.subscribers.reduce(A, k);
15559
+ }), j.fire = j.subscribers.reduce(A, I);
15551
15560
  } };
15552
15561
  return d[S] = l[S] = j;
15553
15562
  }
@@ -15559,7 +15568,7 @@ function fD() {
15559
15568
  var O = b(T, pt, function() {
15560
15569
  for (var N = arguments.length, P = new Array(N); N--; ) P[N] = arguments[N];
15561
15570
  O.subscribers.forEach(function(U) {
15562
- I(function() {
15571
+ k(function() {
15563
15572
  U.apply(null, P);
15564
15573
  });
15565
15574
  });
@@ -15596,13 +15605,13 @@ function fD() {
15596
15605
  function Fi(a, l, d, p) {
15597
15606
  var g = a.replayFilter ? br(a.filter, a.replayFilter()) : a.filter;
15598
15607
  if (a.or) {
15599
- var b = {}, S = function(A, k, M) {
15608
+ var b = {}, S = function(A, I, M) {
15600
15609
  var j, T;
15601
- g && !g(k, M, function(B) {
15602
- return k.stop(B);
15610
+ g && !g(I, M, function(B) {
15611
+ return I.stop(B);
15603
15612
  }, function(B) {
15604
- return k.fail(B);
15605
- }) || ((T = "" + (j = k.primaryKey)) == "[object ArrayBuffer]" && (T = "" + new Uint8Array(j)), m(b, T) || (b[T] = !0, l(A, k, M)));
15613
+ return I.fail(B);
15614
+ }) || ((T = "" + (j = I.primaryKey)) == "[object ArrayBuffer]" && (T = "" + new Uint8Array(j)), m(b, T) || (b[T] = !0, l(A, I, M)));
15606
15615
  };
15607
15616
  return Promise.all([a.or._iterate(S, d), xl(_l(a, p, d), a.algorithm, S, !a.keysOnly && a.valueMapper)]);
15608
15617
  }
@@ -15666,15 +15675,15 @@ function fD() {
15666
15675
  }).then(a);
15667
15676
  }, qe.prototype.sortBy = function(a, l) {
15668
15677
  var d = a.split(".").reverse(), p = d[0], g = d.length - 1;
15669
- function b(k, M) {
15670
- return M ? b(k[d[M]], M - 1) : k[p];
15678
+ function b(I, M) {
15679
+ return M ? b(I[d[M]], M - 1) : I[p];
15671
15680
  }
15672
15681
  var S = this._ctx.dir === "next" ? 1 : -1;
15673
- function A(k, M) {
15674
- return He(b(k, g), b(M, g)) * S;
15682
+ function A(I, M) {
15683
+ return He(b(I, g), b(M, g)) * S;
15675
15684
  }
15676
- return this.toArray(function(k) {
15677
- return k.sort(A);
15685
+ return this.toArray(function(I) {
15686
+ return I.sort(A);
15678
15687
  }).then(l);
15679
15688
  }, qe.prototype.toArray = function(a) {
15680
15689
  var l = this;
@@ -15795,45 +15804,45 @@ function fD() {
15795
15804
  return this._write(function(p) {
15796
15805
  var g = typeof a == "function" ? a : function(P) {
15797
15806
  return Cl(P, a);
15798
- }, b = d.table.core, M = b.schema.primaryKey, S = M.outbound, A = M.extractKey, k = 200, M = l.db._options.modifyChunkSize;
15799
- M && (k = typeof M == "object" ? M[b.name] || M["*"] || 200 : M);
15807
+ }, b = d.table.core, M = b.schema.primaryKey, S = M.outbound, A = M.extractKey, I = 200, M = l.db._options.modifyChunkSize;
15808
+ M && (I = typeof M == "object" ? M[b.name] || M["*"] || 200 : M);
15800
15809
  function j(P, W) {
15801
- var F = W.failures, W = W.numFailures;
15810
+ var z = W.failures, W = W.numFailures;
15802
15811
  B += P - W;
15803
- for (var q = 0, Y = s(F); q < Y.length; q++) {
15804
- var se = Y[q];
15805
- T.push(F[se]);
15812
+ for (var q = 0, K = s(z); q < K.length; q++) {
15813
+ var se = K[q];
15814
+ T.push(z[se]);
15806
15815
  }
15807
15816
  }
15808
15817
  var T = [], B = 0, O = [], N = a === Rl;
15809
15818
  return l.clone().primaryKeys().then(function(P) {
15810
15819
  function U(W) {
15811
- var q = Math.min(k, P.length - W), Y = P.slice(W, W + q);
15812
- return (N ? Promise.resolve([]) : b.getMany({ trans: p, keys: Y, cache: "immutable" })).then(function(se) {
15813
- var de = [], re = [], le = S ? [] : null, fe = N ? Y : [];
15820
+ var q = Math.min(I, P.length - W), K = P.slice(W, W + q);
15821
+ return (N ? Promise.resolve([]) : b.getMany({ trans: p, keys: K, cache: "immutable" })).then(function(se) {
15822
+ var de = [], re = [], le = S ? [] : null, fe = N ? K : [];
15814
15823
  if (!N) for (var ce = 0; ce < q; ++ce) {
15815
- var ve = se[ce], Te = { value: je(ve), primKey: P[W + ce] };
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)));
15824
+ var ye = se[ce], ke = { value: je(ye), primKey: P[W + ce] };
15825
+ g.call(ke, ke.value, ke) !== !1 && (ke.value == null ? fe.push(P[W + ce]) : S || He(A(ye), A(ke.value)) === 0 ? (re.push(ke.value), S && le.push(P[W + ce])) : (fe.push(P[W + ce]), de.push(ke.value)));
15817
15826
  }
15818
15827
  return Promise.resolve(0 < de.length && b.mutate({ trans: p, type: "add", values: de }).then(function(Oe) {
15819
15828
  for (var Ne in Oe.failures) fe.splice(parseInt(Ne), 1);
15820
15829
  j(de.length, Oe);
15821
15830
  })).then(function() {
15822
- return (0 < re.length || F && typeof a == "object") && b.mutate({ trans: p, type: "put", keys: le, values: re, criteria: F, changeSpec: typeof a != "function" && a, isAdditionalChunk: 0 < W }).then(function(Oe) {
15831
+ return (0 < re.length || z && typeof a == "object") && b.mutate({ trans: p, type: "put", keys: le, values: re, criteria: z, changeSpec: typeof a != "function" && a, isAdditionalChunk: 0 < W }).then(function(Oe) {
15823
15832
  return j(re.length, Oe);
15824
15833
  });
15825
15834
  }).then(function() {
15826
- return (0 < fe.length || F && N) && b.mutate({ trans: p, type: "delete", keys: fe, criteria: F, isAdditionalChunk: 0 < W }).then(function(Oe) {
15835
+ return (0 < fe.length || z && N) && b.mutate({ trans: p, type: "delete", keys: fe, criteria: z, isAdditionalChunk: 0 < W }).then(function(Oe) {
15827
15836
  return Ui(d.table, fe, Oe);
15828
15837
  }).then(function(Oe) {
15829
15838
  return j(fe.length, Oe);
15830
15839
  });
15831
15840
  }).then(function() {
15832
- return P.length > W + q && U(W + k);
15841
+ return P.length > W + q && U(W + I);
15833
15842
  });
15834
15843
  });
15835
15844
  }
15836
- var F = zr(d) && d.limit === 1 / 0 && (typeof a != "function" || N) && { index: d.index, range: d.range };
15845
+ var z = zr(d) && d.limit === 1 / 0 && (typeof a != "function" || N) && { index: d.index, range: d.range };
15837
15846
  return U(0).then(function() {
15838
15847
  if (0 < T.length) throw new tt("Error modifying one or more objects", T, B, O);
15839
15848
  return P.length;
@@ -15845,12 +15854,12 @@ function fD() {
15845
15854
  return !zr(a) || a.table.schema.yProps || !a.isPrimKey && l.type !== 3 ? this.modify(Rl) : this._write(function(d) {
15846
15855
  var p = a.table.core.schema.primaryKey, g = l;
15847
15856
  return a.table.core.count({ trans: d, query: { index: p, range: g } }).then(function(b) {
15848
- return a.table.core.mutate({ trans: d, type: "deleteRange", range: g }).then(function(k) {
15849
- var A = k.failures, k = k.numFailures;
15850
- if (k) throw new tt("Could not delete some values", Object.keys(A).map(function(M) {
15857
+ return a.table.core.mutate({ trans: d, type: "deleteRange", range: g }).then(function(I) {
15858
+ var A = I.failures, I = I.numFailures;
15859
+ if (I) throw new tt("Could not delete some values", Object.keys(A).map(function(M) {
15851
15860
  return A[M];
15852
- }), b - k);
15853
- return b - k;
15861
+ }), b - I);
15862
+ return b - I;
15854
15863
  });
15855
15864
  });
15856
15865
  });
@@ -15875,7 +15884,7 @@ function fD() {
15875
15884
  }).limit(0);
15876
15885
  }
15877
15886
  function zi(a, l, d, p) {
15878
- var g, b, S, A, k, M, j, T = d.length;
15887
+ var g, b, S, A, I, M, j, T = d.length;
15879
15888
  if (!d.every(function(N) {
15880
15889
  return typeof N == "string";
15881
15890
  })) return Ut(a, Br);
@@ -15891,36 +15900,36 @@ function fD() {
15891
15900
  }, S = N === "next" ? qf : Gf;
15892
15901
  var P = d.map(function(U) {
15893
15902
  return { lower: b(U), upper: g(U) };
15894
- }).sort(function(U, F) {
15895
- return S(U.lower, F.lower);
15903
+ }).sort(function(U, z) {
15904
+ return S(U.lower, z.lower);
15896
15905
  });
15897
15906
  A = P.map(function(U) {
15898
15907
  return U.upper;
15899
- }), k = P.map(function(U) {
15908
+ }), I = P.map(function(U) {
15900
15909
  return U.lower;
15901
15910
  }), j = (M = N) === "next" ? "" : p;
15902
15911
  }
15903
15912
  B("next"), a = new a.Collection(a, function() {
15904
- return Jn(A[0], k[T - 1] + p);
15913
+ return Jn(A[0], I[T - 1] + p);
15905
15914
  }), a._ondirectionchange = function(N) {
15906
15915
  B(N);
15907
15916
  };
15908
15917
  var O = 0;
15909
15918
  return a._addAlgorithm(function(N, P, U) {
15910
- var F = N.key;
15911
- if (typeof F != "string") return !1;
15912
- var W = b(F);
15913
- if (l(W, k, O)) return !0;
15914
- for (var q = null, Y = O; Y < T; ++Y) {
15915
- var se = (function(de, re, le, fe, ce, ve) {
15916
- for (var Te = Math.min(de.length, fe.length), Oe = -1, Ne = 0; Ne < Te; ++Ne) {
15919
+ var z = N.key;
15920
+ if (typeof z != "string") return !1;
15921
+ var W = b(z);
15922
+ if (l(W, I, O)) return !0;
15923
+ for (var q = null, K = O; K < T; ++K) {
15924
+ var se = (function(de, re, le, fe, ce, ye) {
15925
+ for (var ke = Math.min(de.length, fe.length), Oe = -1, Ne = 0; Ne < ke; ++Ne) {
15917
15926
  var Bt = re[Ne];
15918
15927
  if (Bt !== fe[Ne]) return ce(de[Ne], le[Ne]) < 0 ? de.substr(0, Ne) + le[Ne] + le.substr(Ne + 1) : ce(de[Ne], fe[Ne]) < 0 ? de.substr(0, Ne) + fe[Ne] + le.substr(Ne + 1) : 0 <= Oe ? de.substr(0, Oe) + re[Oe] + le.substr(Oe + 1) : null;
15919
15928
  ce(de[Ne], Bt) < 0 && (Oe = Ne);
15920
15929
  }
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);
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);
15930
+ return ke < fe.length && ye === "next" ? de + le.substr(de.length) : ke < de.length && ye === "prev" ? de.substr(0, le.length) : Oe < 0 ? null : de.substr(0, Oe) + fe[Oe] + le.substr(Oe + 1);
15931
+ })(z, W, A[K], I[K], S, M);
15932
+ se === null && q === null ? O = K + 1 : (q === null || 0 < S(q, se)) && (q = se);
15924
15933
  }
15925
15934
  return P(q !== null ? function() {
15926
15935
  N.continue(q + j);
@@ -15975,19 +15984,19 @@ function fD() {
15975
15984
  return l === d[0];
15976
15985
  }, [a], "");
15977
15986
  }, gt.prototype.anyOfIgnoreCase = function() {
15978
- var a = ye.apply(pe, arguments);
15987
+ var a = ve.apply(he, arguments);
15979
15988
  return a.length === 0 ? $r(this) : zi(this, function(l, d) {
15980
15989
  return d.indexOf(l) !== -1;
15981
15990
  }, a, "");
15982
15991
  }, gt.prototype.startsWithAnyOfIgnoreCase = function() {
15983
- var a = ye.apply(pe, arguments);
15992
+ var a = ve.apply(he, arguments);
15984
15993
  return a.length === 0 ? $r(this) : zi(this, function(l, d) {
15985
15994
  return d.some(function(p) {
15986
15995
  return l.indexOf(p) === 0;
15987
15996
  });
15988
15997
  }, a, Pe);
15989
15998
  }, gt.prototype.anyOf = function() {
15990
- var a = this, l = ye.apply(pe, arguments), d = this._cmp;
15999
+ var a = this, l = ve.apply(he, arguments), d = this._cmp;
15991
16000
  try {
15992
16001
  l.sort(d);
15993
16002
  } catch {
@@ -16002,15 +16011,15 @@ function fD() {
16002
16011
  };
16003
16012
  var g = 0;
16004
16013
  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() {
16014
+ for (var I = b.key; 0 < d(I, l[g]); ) if (++g === l.length) return S(A), !1;
16015
+ return d(I, l[g]) === 0 || (S(function() {
16007
16016
  b.continue(l[g]);
16008
16017
  }), !1);
16009
16018
  }), p;
16010
16019
  }, gt.prototype.notEqual = function(a) {
16011
16020
  return this.inAnyRange([[-1 / 0, a], [a, this.db._maxKey]], { includeLowers: !1, includeUppers: !1 });
16012
16021
  }, gt.prototype.noneOf = function() {
16013
- var a = ye.apply(pe, arguments);
16022
+ var a = ve.apply(he, arguments);
16014
16023
  if (a.length === 0) return new this.Collection(this);
16015
16024
  try {
16016
16025
  a.sort(this._ascending);
@@ -16021,26 +16030,26 @@ function fD() {
16021
16030
  return d ? d.concat([[d[d.length - 1][1], p]]) : [[-1 / 0, p]];
16022
16031
  }, null);
16023
16032
  return l.push([a[a.length - 1], this.db._maxKey]), this.inAnyRange(l, { includeLowers: !1, includeUppers: !1 });
16024
- }, gt.prototype.inAnyRange = function(F, l) {
16033
+ }, gt.prototype.inAnyRange = function(z, l) {
16025
16034
  var d = this, p = this._cmp, g = this._ascending, b = this._descending, S = this._min, A = this._max;
16026
- if (F.length === 0) return $r(this);
16027
- if (!F.every(function(W) {
16035
+ if (z.length === 0) return $r(this);
16036
+ if (!z.every(function(W) {
16028
16037
  return W[0] !== void 0 && W[1] !== void 0 && g(W[0], W[1]) <= 0;
16029
16038
  })) return Ut(this, "First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower", te.InvalidArgument);
16030
- var k = !l || l.includeLowers !== !1, M = l && l.includeUppers === !0, j, T = g;
16039
+ var I = !l || l.includeLowers !== !1, M = l && l.includeUppers === !0, j, T = g;
16031
16040
  function B(W, q) {
16032
16041
  return T(W[0], q[0]);
16033
16042
  }
16034
16043
  try {
16035
- (j = F.reduce(function(W, q) {
16036
- for (var Y = 0, se = W.length; Y < se; ++Y) {
16037
- var de = W[Y];
16044
+ (j = z.reduce(function(W, q) {
16045
+ for (var K = 0, se = W.length; K < se; ++K) {
16046
+ var de = W[K];
16038
16047
  if (p(q[0], de[1]) < 0 && 0 < p(q[1], de[0])) {
16039
16048
  de[0] = S(de[0], q[0]), de[1] = A(de[1], q[1]);
16040
16049
  break;
16041
16050
  }
16042
16051
  }
16043
- return Y === se && W.push(q), W;
16052
+ return K === se && W.push(q), W;
16044
16053
  }, [])).sort(B);
16045
16054
  } catch {
16046
16055
  return Ut(this, ht);
@@ -16049,23 +16058,23 @@ function fD() {
16049
16058
  return 0 < g(W, j[O][1]);
16050
16059
  } : function(W) {
16051
16060
  return 0 <= g(W, j[O][1]);
16052
- }, P = k ? function(W) {
16061
+ }, P = I ? function(W) {
16053
16062
  return 0 < b(W, j[O][0]);
16054
16063
  } : function(W) {
16055
16064
  return 0 <= b(W, j[O][0]);
16056
- }, U = N, F = new this.Collection(this, function() {
16057
- return Jn(j[0][0], j[j.length - 1][1], !k, !M);
16065
+ }, U = N, z = new this.Collection(this, function() {
16066
+ return Jn(j[0][0], j[j.length - 1][1], !I, !M);
16058
16067
  });
16059
- return F._ondirectionchange = function(W) {
16068
+ return z._ondirectionchange = function(W) {
16060
16069
  T = W === "next" ? (U = N, g) : (U = P, b), j.sort(B);
16061
- }, F._addAlgorithm(function(W, q, Y) {
16062
- for (var se, de = W.key; U(de); ) if (++O === j.length) return q(Y), !1;
16070
+ }, z._addAlgorithm(function(W, q, K) {
16071
+ for (var se, de = W.key; U(de); ) if (++O === j.length) return q(K), !1;
16063
16072
  return !N(se = de) && !P(se) || (d._cmp(de, j[O][1]) === 0 || d._cmp(de, j[O][0]) === 0 || q(function() {
16064
16073
  T === g ? W.continue(j[O][0]) : W.continue(j[O][1]);
16065
16074
  }), !1);
16066
- }), F;
16075
+ }), z;
16067
16076
  }, gt.prototype.startsWithAnyOf = function() {
16068
- var a = ye.apply(pe, arguments);
16077
+ var a = ve.apply(he, arguments);
16069
16078
  return a.every(function(l) {
16070
16079
  return typeof l == "string";
16071
16080
  }) ? a.length === 0 ? $r(this) : this.inAnyRange(a.map(function(l) {
@@ -16083,9 +16092,9 @@ function fD() {
16083
16092
  a.stopPropagation && a.stopPropagation(), a.preventDefault && a.preventDefault();
16084
16093
  }
16085
16094
  var pi = "storagemutated", cs = "x-storagemutated-1", er = di(null, pi), Yf = (Cn.prototype._lock = function() {
16086
- return L(!he.global), ++this._reculock, this._reculock !== 1 || he.global || (he.lockOwnerFor = this), this;
16095
+ return L(!pe.global), ++this._reculock, this._reculock !== 1 || pe.global || (pe.lockOwnerFor = this), this;
16087
16096
  }, Cn.prototype._unlock = function() {
16088
- if (L(!he.global), --this._reculock == 0) for (he.global || (he.lockOwnerFor = null); 0 < this._blockedFuncs.length && !this._locked(); ) {
16097
+ if (L(!pe.global), --this._reculock == 0) for (pe.global || (pe.lockOwnerFor = null); 0 < this._blockedFuncs.length && !this._locked(); ) {
16089
16098
  var a = this._blockedFuncs.shift();
16090
16099
  try {
16091
16100
  En(a[1], a[0]);
@@ -16094,7 +16103,7 @@ function fD() {
16094
16103
  }
16095
16104
  return this;
16096
16105
  }, Cn.prototype._locked = function() {
16097
- return this._reculock && he.lockOwnerFor !== this;
16106
+ return this._reculock && pe.lockOwnerFor !== this;
16098
16107
  }, Cn.prototype.create = function(a) {
16099
16108
  var l = this;
16100
16109
  if (!this.mode) return this;
@@ -16122,13 +16131,13 @@ function fD() {
16122
16131
  if (this._locked()) return new ue(function(b, S) {
16123
16132
  p._blockedFuncs.push([function() {
16124
16133
  p._promise(a, l, d).then(b, S);
16125
- }, he]);
16134
+ }, pe]);
16126
16135
  });
16127
16136
  if (d) return nt(function() {
16128
16137
  var b = new ue(function(S, A) {
16129
16138
  p._lock();
16130
- var k = l(S, A, p);
16131
- k && k.then && k.then(S, A);
16139
+ var I = l(S, A, p);
16140
+ I && I.then && I.then(S, A);
16132
16141
  });
16133
16142
  return b.finally(function() {
16134
16143
  return p._unlock();
@@ -16200,9 +16209,9 @@ function fD() {
16200
16209
  } : typeof a == "string" ? (l = a).split(".").length === 1 ? function(d) {
16201
16210
  return d[l];
16202
16211
  } : function(d) {
16203
- return z(d, l);
16212
+ return F(d, l);
16204
16213
  } : function(d) {
16205
- return z(d, a);
16214
+ return F(d, a);
16206
16215
  };
16207
16216
  var l;
16208
16217
  }
@@ -16213,7 +16222,7 @@ function fD() {
16213
16222
  function mi(a) {
16214
16223
  return a == null ? ":id" : typeof a == "string" ? a : "[".concat(a.join("+"), "]");
16215
16224
  }
16216
- function Qf(a, l, k) {
16225
+ function Qf(a, l, I) {
16217
16226
  function p(U) {
16218
16227
  if (U.type === 3) return null;
16219
16228
  if (U.type === 4) throw new Error("Cannot convert never type to IDBKeyRange");
@@ -16223,75 +16232,75 @@ function fD() {
16223
16232
  function g(B) {
16224
16233
  var O, N = B.name;
16225
16234
  return { name: N, schema: B, mutate: function(P) {
16226
- var U = P.trans, F = P.type, W = P.keys, q = P.values, Y = P.range;
16235
+ var U = P.trans, z = P.type, W = P.keys, q = P.values, K = P.range;
16227
16236
  return new Promise(function(se, de) {
16228
16237
  se = J(se);
16229
- var re = U.objectStore(N), le = re.keyPath == null, fe = F === "put" || F === "add";
16230
- if (!fe && F !== "delete" && F !== "deleteRange") throw new Error("Invalid operation type: " + F);
16231
- var ce, ve = (W || q || { length: 1 }).length;
16238
+ var re = U.objectStore(N), le = re.keyPath == null, fe = z === "put" || z === "add";
16239
+ if (!fe && z !== "delete" && z !== "deleteRange") throw new Error("Invalid operation type: " + z);
16240
+ var ce, ye = (W || q || { length: 1 }).length;
16232
16241
  if (W && q && W.length !== q.length) throw new Error("Given keys array must have same length as given values array.");
16233
- if (ve === 0) return se({ numFailures: 0, failures: {}, results: [], lastResult: void 0 });
16234
- function Te(kt) {
16242
+ if (ye === 0) return se({ numFailures: 0, failures: {}, results: [], lastResult: void 0 });
16243
+ function ke(kt) {
16235
16244
  ++Bt, hi(kt);
16236
16245
  }
16237
16246
  var Oe = [], Ne = [], Bt = 0;
16238
- if (F === "deleteRange") {
16239
- if (Y.type === 4) return se({ numFailures: Bt, failures: Ne, results: [], lastResult: void 0 });
16240
- Y.type === 3 ? Oe.push(ce = re.clear()) : Oe.push(ce = re.delete(p(Y)));
16247
+ if (z === "deleteRange") {
16248
+ if (K.type === 4) return se({ numFailures: Bt, failures: Ne, results: [], lastResult: void 0 });
16249
+ K.type === 3 ? Oe.push(ce = re.clear()) : Oe.push(ce = re.delete(p(K)));
16241
16250
  } else {
16242
16251
  var le = fe ? le ? [q, W] : [q, null] : [W, null], Re = le[0], Dt = le[1];
16243
- if (fe) for (var Ct = 0; Ct < ve; ++Ct) Oe.push(ce = Dt && Dt[Ct] !== void 0 ? re[F](Re[Ct], Dt[Ct]) : re[F](Re[Ct])), ce.onerror = Te;
16244
- else for (Ct = 0; Ct < ve; ++Ct) Oe.push(ce = re[F](Re[Ct])), ce.onerror = Te;
16252
+ if (fe) for (var Ct = 0; Ct < ye; ++Ct) Oe.push(ce = Dt && Dt[Ct] !== void 0 ? re[z](Re[Ct], Dt[Ct]) : re[z](Re[Ct])), ce.onerror = ke;
16253
+ else for (Ct = 0; Ct < ye; ++Ct) Oe.push(ce = re[z](Re[Ct])), ce.onerror = ke;
16245
16254
  }
16246
16255
  function eo(kt) {
16247
16256
  kt = kt.target.result, Oe.forEach(function(Er, ks) {
16248
16257
  return Er.error != null && (Ne[ks] = Er.error);
16249
- }), se({ numFailures: Bt, failures: Ne, results: F === "delete" ? W : Oe.map(function(Er) {
16258
+ }), se({ numFailures: Bt, failures: Ne, results: z === "delete" ? W : Oe.map(function(Er) {
16250
16259
  return Er.result;
16251
16260
  }), lastResult: kt });
16252
16261
  }
16253
16262
  ce.onerror = function(kt) {
16254
- Te(kt), eo(kt);
16263
+ ke(kt), eo(kt);
16255
16264
  }, ce.onsuccess = eo;
16256
16265
  });
16257
16266
  }, getMany: function(P) {
16258
- var U = P.trans, F = P.keys;
16267
+ var U = P.trans, z = P.keys;
16259
16268
  return new Promise(function(W, q) {
16260
16269
  W = J(W);
16261
- for (var Y, se = U.objectStore(N), de = F.length, re = new Array(de), le = 0, fe = 0, ce = function(Oe) {
16270
+ for (var K, se = U.objectStore(N), de = z.length, re = new Array(de), le = 0, fe = 0, ce = function(Oe) {
16262
16271
  Oe = Oe.target, re[Oe._pos] = Oe.result, ++fe === le && W(re);
16263
- }, ve = Dn(q), Te = 0; Te < de; ++Te) F[Te] != null && ((Y = se.get(F[Te]))._pos = Te, Y.onsuccess = ce, Y.onerror = ve, ++le);
16272
+ }, ye = Dn(q), ke = 0; ke < de; ++ke) z[ke] != null && ((K = se.get(z[ke]))._pos = ke, K.onsuccess = ce, K.onerror = ye, ++le);
16264
16273
  le === 0 && W(re);
16265
16274
  });
16266
16275
  }, get: function(P) {
16267
- var U = P.trans, F = P.key;
16276
+ var U = P.trans, z = P.key;
16268
16277
  return new Promise(function(W, q) {
16269
16278
  W = J(W);
16270
- var Y = U.objectStore(N).get(F);
16271
- Y.onsuccess = function(se) {
16279
+ var K = U.objectStore(N).get(z);
16280
+ K.onsuccess = function(se) {
16272
16281
  return W(se.target.result);
16273
- }, Y.onerror = Dn(q);
16282
+ }, K.onerror = Dn(q);
16274
16283
  });
16275
16284
  }, query: (O = M, function(P) {
16276
- return new Promise(function(U, F) {
16285
+ return new Promise(function(U, z) {
16277
16286
  U = J(U);
16278
- var W, q, Y, le = P.trans, se = P.values, de = P.limit, ce = P.query, re = de === 1 / 0 ? void 0 : de, fe = ce.index, ce = ce.range, le = le.objectStore(N), fe = fe.isPrimaryKey ? le : le.index(fe.name), ce = p(ce);
16287
+ var W, q, K, le = P.trans, se = P.values, de = P.limit, ce = P.query, re = de === 1 / 0 ? void 0 : de, fe = ce.index, ce = ce.range, le = le.objectStore(N), fe = fe.isPrimaryKey ? le : le.index(fe.name), ce = p(ce);
16279
16288
  if (de === 0) return U({ result: [] });
16280
- O ? ((re = se ? fe.getAll(ce, re) : fe.getAllKeys(ce, re)).onsuccess = function(ve) {
16281
- return U({ result: ve.target.result });
16282
- }, re.onerror = Dn(F)) : (W = 0, q = !se && "openKeyCursor" in fe ? fe.openKeyCursor(ce) : fe.openCursor(ce), Y = [], q.onsuccess = function(ve) {
16283
- var Te = q.result;
16284
- return Te ? (Y.push(se ? Te.value : Te.primaryKey), ++W === de ? U({ result: Y }) : void Te.continue()) : U({ result: Y });
16285
- }, q.onerror = Dn(F));
16289
+ O ? ((re = se ? fe.getAll(ce, re) : fe.getAllKeys(ce, re)).onsuccess = function(ye) {
16290
+ return U({ result: ye.target.result });
16291
+ }, re.onerror = Dn(z)) : (W = 0, q = !se && "openKeyCursor" in fe ? fe.openKeyCursor(ce) : fe.openCursor(ce), K = [], q.onsuccess = function(ye) {
16292
+ var ke = q.result;
16293
+ return ke ? (K.push(se ? ke.value : ke.primaryKey), ++W === de ? U({ result: K }) : void ke.continue()) : U({ result: K });
16294
+ }, q.onerror = Dn(z));
16286
16295
  });
16287
16296
  }), openCursor: function(P) {
16288
- var U = P.trans, F = P.values, W = P.query, q = P.reverse, Y = P.unique;
16297
+ var U = P.trans, z = P.values, W = P.query, q = P.reverse, K = P.unique;
16289
16298
  return new Promise(function(se, de) {
16290
16299
  se = J(se);
16291
- var fe = W.index, re = W.range, le = U.objectStore(N), le = fe.isPrimaryKey ? le : le.index(fe.name), fe = q ? Y ? "prevunique" : "prev" : Y ? "nextunique" : "next", ce = !F && "openKeyCursor" in le ? le.openKeyCursor(p(re), fe) : le.openCursor(p(re), fe);
16292
- ce.onerror = Dn(de), ce.onsuccess = J(function(ve) {
16293
- var Te, Oe, Ne, Bt, Re = ce.result;
16294
- Re ? (Re.___id = ++Kf, Re.done = !1, Te = Re.continue.bind(Re), Oe = (Oe = Re.continuePrimaryKey) && Oe.bind(Re), Ne = Re.advance.bind(Re), Bt = function() {
16300
+ var fe = W.index, re = W.range, le = U.objectStore(N), le = fe.isPrimaryKey ? le : le.index(fe.name), fe = q ? K ? "prevunique" : "prev" : K ? "nextunique" : "next", ce = !z && "openKeyCursor" in le ? le.openKeyCursor(p(re), fe) : le.openCursor(p(re), fe);
16301
+ ce.onerror = Dn(de), ce.onsuccess = J(function(ye) {
16302
+ var ke, Oe, Ne, Bt, Re = ce.result;
16303
+ Re ? (Re.___id = ++Kf, Re.done = !1, ke = Re.continue.bind(Re), Oe = (Oe = Re.continuePrimaryKey) && Oe.bind(Re), Ne = Re.advance.bind(Re), Bt = function() {
16295
16304
  throw new Error("Cursor not stopped");
16296
16305
  }, Re.trans = U, Re.stop = Re.continue = Re.continuePrimaryKey = Re.advance = function() {
16297
16306
  throw new Error("Cursor not started");
@@ -16320,39 +16329,39 @@ function fD() {
16320
16329
  });
16321
16330
  return ce.onsuccess = J(function(kt) {
16322
16331
  ce.onsuccess = Ct, Ct();
16323
- }), Re.continue = Te, Re.continuePrimaryKey = Oe, Re.advance = Ne, Ct(), eo;
16332
+ }), Re.continue = ke, Re.continuePrimaryKey = Oe, Re.advance = Ne, Ct(), eo;
16324
16333
  }, se(Re)) : se(null);
16325
16334
  }, de);
16326
16335
  });
16327
16336
  }, count: function(P) {
16328
- var U = P.query, F = P.trans, W = U.index, q = U.range;
16329
- return new Promise(function(Y, se) {
16330
- var de = F.objectStore(N), re = W.isPrimaryKey ? de : de.index(W.name), de = p(q), re = de ? re.count(de) : re.count();
16337
+ var U = P.query, z = P.trans, W = U.index, q = U.range;
16338
+ return new Promise(function(K, se) {
16339
+ var de = z.objectStore(N), re = W.isPrimaryKey ? de : de.index(W.name), de = p(q), re = de ? re.count(de) : re.count();
16331
16340
  re.onsuccess = J(function(le) {
16332
- return Y(le.target.result);
16341
+ return K(le.target.result);
16333
16342
  }), re.onerror = Dn(se);
16334
16343
  });
16335
16344
  } };
16336
16345
  }
16337
- var b, S, A, j = (S = k, A = Ml((b = a).objectStoreNames), { schema: { name: b.name, tables: A.map(function(B) {
16346
+ var b, S, A, j = (S = I, A = Ml((b = a).objectStoreNames), { schema: { name: b.name, tables: A.map(function(B) {
16338
16347
  return S.objectStore(B);
16339
16348
  }).map(function(B) {
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) {
16341
- return B.index(F);
16342
- }).map(function(Y) {
16343
- var W = Y.name, q = Y.unique, se = Y.multiEntry, Y = Y.keyPath, se = { name: W, compound: c(Y), keyPath: Y, unique: q, multiEntry: se, extractKey: fs(Y) };
16344
- return P[mi(Y)] = se;
16345
- }), getIndexByKeyPath: function(F) {
16346
- return P[mi(F)];
16349
+ 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(z) {
16350
+ return B.index(z);
16351
+ }).map(function(K) {
16352
+ var W = K.name, q = K.unique, se = K.multiEntry, K = K.keyPath, se = { name: W, compound: c(K), keyPath: K, unique: q, multiEntry: se, extractKey: fs(K) };
16353
+ return P[mi(K)] = se;
16354
+ }), getIndexByKeyPath: function(z) {
16355
+ return P[mi(z)];
16347
16356
  } };
16348
16357
  return P[":id"] = U.primaryKey, O != null && (P[mi(O)] = U.primaryKey), U;
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 = {};
16358
+ }) }, 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) }), I = j.schema, M = j.hasGetAll, j = I.tables.map(g), T = {};
16350
16359
  return j.forEach(function(B) {
16351
16360
  return T[B.name] = B;
16352
16361
  }), { stack: "dbcore", transaction: a.transaction.bind(a), table: function(B) {
16353
16362
  if (!T[B]) throw new Error("Table '".concat(B, "' not found"));
16354
16363
  return T[B];
16355
- }, MIN_KEY: -1 / 0, MAX_KEY: gi(l), schema: k };
16364
+ }, MIN_KEY: -1 / 0, MAX_KEY: gi(l), schema: I };
16356
16365
  }
16357
16366
  function Zf(a, l, d, p) {
16358
16367
  var g = d.IDBKeyRange;
@@ -16373,13 +16382,13 @@ function fD() {
16373
16382
  d.forEach(function(g) {
16374
16383
  var b = p[g];
16375
16384
  l.forEach(function(S) {
16376
- var A = (function k(M, j) {
16377
- return _(M, j) || (M = h(M)) && k(M, j);
16385
+ var A = (function I(M, j) {
16386
+ return _(M, j) || (M = h(M)) && I(M, j);
16378
16387
  })(S, g);
16379
16388
  (!A || "value" in A && A.value === void 0) && (S === a.Transaction.prototype || S instanceof a.Transaction ? E(S, g, { get: function() {
16380
16389
  return this.table(g);
16381
- }, set: function(k) {
16382
- v(this, g, { value: k, writable: !0, configurable: !0, enumerable: !0 });
16390
+ }, set: function(I) {
16391
+ v(this, g, { value: I, writable: !0, configurable: !0, enumerable: !0 });
16383
16392
  } }) : S[g] = new a.Table(g, b));
16384
16393
  });
16385
16394
  });
@@ -16397,58 +16406,58 @@ function fD() {
16397
16406
  d.objectStoreNames.contains("$meta") && !g.$meta && (g.$meta = ds("$meta", Nl("")[0], []), a._storeNames.push("$meta"));
16398
16407
  var b = a._createTransaction("readwrite", a._storeNames, g);
16399
16408
  b.create(d), b._completion.catch(p);
16400
- var S = b._reject.bind(b), A = he.transless || he;
16409
+ var S = b._reject.bind(b), A = pe.transless || pe;
16401
16410
  nt(function() {
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) {
16411
+ return pe.trans = b, pe.transless = A, l !== 0 ? ($i(a, d), M = l, ((I = b).storeNames.includes("$meta") ? I.table("$meta").get("version").then(function(j) {
16403
16412
  return j ?? M;
16404
16413
  }) : ue.resolve(M)).then(function(j) {
16405
- return B = j, O = b, N = d, P = [], j = (T = a)._versions, U = T._dbSchema = qi(0, T.idbdb, N), (j = j.filter(function(F) {
16406
- return F._cfg.version >= B;
16407
- })).length !== 0 ? (j.forEach(function(F) {
16414
+ return B = j, O = b, N = d, P = [], j = (T = a)._versions, U = T._dbSchema = qi(0, T.idbdb, N), (j = j.filter(function(z) {
16415
+ return z._cfg.version >= B;
16416
+ })).length !== 0 ? (j.forEach(function(z) {
16408
16417
  P.push(function() {
16409
- var W = U, q = F._cfg.dbschema;
16418
+ var W = U, q = z._cfg.dbschema;
16410
16419
  Gi(T, W, N), Gi(T, q, N), U = T._dbSchema = q;
16411
- var Y = ps(W, q);
16412
- Y.add.forEach(function(fe) {
16420
+ var K = ps(W, q);
16421
+ K.add.forEach(function(fe) {
16413
16422
  gs(N, fe[0], fe[1].primKey, fe[1].indexes);
16414
- }), Y.change.forEach(function(fe) {
16423
+ }), K.change.forEach(function(fe) {
16415
16424
  if (fe.recreate) throw new te.Upgrade("Not yet support for changing primary key");
16416
16425
  var ce = N.objectStore(fe.name);
16417
- fe.add.forEach(function(ve) {
16418
- return Vi(ce, ve);
16419
- }), fe.change.forEach(function(ve) {
16420
- ce.deleteIndex(ve.name), Vi(ce, ve);
16421
- }), fe.del.forEach(function(ve) {
16422
- return ce.deleteIndex(ve);
16426
+ fe.add.forEach(function(ye) {
16427
+ return Vi(ce, ye);
16428
+ }), fe.change.forEach(function(ye) {
16429
+ ce.deleteIndex(ye.name), Vi(ce, ye);
16430
+ }), fe.del.forEach(function(ye) {
16431
+ return ce.deleteIndex(ye);
16423
16432
  });
16424
16433
  });
16425
- var se = F._cfg.contentUpgrade;
16426
- if (se && F._cfg.version > B) {
16434
+ var se = z._cfg.contentUpgrade;
16435
+ if (se && z._cfg.version > B) {
16427
16436
  $i(T, N), O._memoizedTables = {};
16428
16437
  var de = $(q);
16429
- Y.del.forEach(function(fe) {
16438
+ K.del.forEach(function(fe) {
16430
16439
  de[fe] = W[fe];
16431
16440
  }), hs(T, [T.Transaction.prototype]), Wi(T, [T.Transaction.prototype], s(de), de), O.schema = de;
16432
- var re, le = Ie(se);
16433
- return le && ft(), Y = ue.follow(function() {
16441
+ var re, le = Te(se);
16442
+ return le && ft(), K = ue.follow(function() {
16434
16443
  var fe;
16435
16444
  (re = se(O)) && le && (fe = ze.bind(null, null), re.then(fe, fe));
16436
- }), re && typeof re.then == "function" ? ue.resolve(re) : Y.then(function() {
16445
+ }), re && typeof re.then == "function" ? ue.resolve(re) : K.then(function() {
16437
16446
  return re;
16438
16447
  });
16439
16448
  }
16440
16449
  }), P.push(function(W) {
16441
- var q, Y, se = F._cfg.dbschema;
16442
- q = se, Y = W, [].slice.call(Y.db.objectStoreNames).forEach(function(de) {
16443
- return q[de] == null && Y.db.deleteObjectStore(de);
16450
+ var q, K, se = z._cfg.dbschema;
16451
+ q = se, K = W, [].slice.call(K.db.objectStoreNames).forEach(function(de) {
16452
+ return q[de] == null && K.db.deleteObjectStore(de);
16444
16453
  }), hs(T, [T.Transaction.prototype]), Wi(T, [T.Transaction.prototype], T._storeNames, T._dbSchema), O.schema = T._dbSchema;
16445
16454
  }), P.push(function(W) {
16446
- T.idbdb.objectStoreNames.contains("$meta") && (Math.ceil(T.idbdb.version / 10) === F._cfg.version ? (T.idbdb.deleteObjectStore("$meta"), delete T._dbSchema.$meta, T._storeNames = T._storeNames.filter(function(q) {
16455
+ T.idbdb.objectStoreNames.contains("$meta") && (Math.ceil(T.idbdb.version / 10) === z._cfg.version ? (T.idbdb.deleteObjectStore("$meta"), delete T._dbSchema.$meta, T._storeNames = T._storeNames.filter(function(q) {
16447
16456
  return q !== "$meta";
16448
- })) : W.objectStore("$meta").put(F._cfg.version, "version"));
16457
+ })) : W.objectStore("$meta").put(z._cfg.version, "version"));
16449
16458
  });
16450
- }), (function F() {
16451
- return P.length ? ue.resolve(P.shift()(O.idbtrans)).then(F) : ue.resolve();
16459
+ }), (function z() {
16460
+ return P.length ? ue.resolve(P.shift()(O.idbtrans)).then(z) : ue.resolve();
16452
16461
  })().then(function() {
16453
16462
  Ol(U, N);
16454
16463
  })) : ue.resolve();
@@ -16458,7 +16467,7 @@ function fD() {
16458
16467
  }), $i(a, d), void ue.follow(function() {
16459
16468
  return a.on.populate.fire(b);
16460
16469
  }).catch(S));
16461
- var k, M;
16470
+ var I, M;
16462
16471
  });
16463
16472
  }
16464
16473
  function eh(a, l) {
@@ -16469,8 +16478,8 @@ function fD() {
16469
16478
  var b = (function(S) {
16470
16479
  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
16480
  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);
16481
+ S.add.forEach(function(I) {
16482
+ Be && console.debug("Dexie upgrade patch: Creating missing index ".concat(S.name, ".").concat(I.src)), Vi(A, I);
16474
16483
  });
16475
16484
  })(g[p]);
16476
16485
  if (typeof b == "object") return b.value;
@@ -16485,10 +16494,10 @@ function fD() {
16485
16494
  var S = { name: d, def: b, recreate: !1, del: [], add: [], change: [] };
16486
16495
  if ("" + (g.primKey.keyPath || "") != "" + (b.primKey.keyPath || "") || g.primKey.auto !== b.primKey.auto) S.recreate = !0, p.change.push(S);
16487
16496
  else {
16488
- var A = g.idxByName, k = b.idxByName, M = void 0;
16489
- for (M in A) k[M] || S.del.push(M);
16490
- for (M in k) {
16491
- var j = A[M], T = k[M];
16497
+ var A = g.idxByName, I = b.idxByName, M = void 0;
16498
+ for (M in A) I[M] || S.del.push(M);
16499
+ for (M in I) {
16500
+ var j = A[M], T = I[M];
16492
16501
  j ? j.src !== T.src && S.change.push(T) : S.add.push(T);
16493
16502
  }
16494
16503
  (0 < S.del.length || 0 < S.add.length || 0 < S.change.length) && p.change.push(S);
@@ -16514,8 +16523,8 @@ function fD() {
16514
16523
  function qi(a, l, d) {
16515
16524
  var p = {};
16516
16525
  return x(l.objectStoreNames, 0).forEach(function(g) {
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) {
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);
16526
+ for (var b = d.objectStore(g), S = us(Il(M = b.keyPath), M || "", !0, !1, !!b.autoIncrement, M && typeof M != "string", !0), A = [], I = 0; I < b.indexNames.length; ++I) {
16527
+ var j = b.index(b.indexNames[I]), M = j.keyPath, j = us(j.name, M, !!j.unique, !!j.multiEntry, !1, M && typeof M != "string", !1);
16519
16528
  A.push(j);
16520
16529
  }
16521
16530
  p[g] = ds(g, S, A);
@@ -16526,8 +16535,8 @@ function fD() {
16526
16535
  var b = p[g], S = d.objectStore(b);
16527
16536
  a._hasGetAll = "getAll" in S;
16528
16537
  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("+") + "]";
16530
- !l[b] || (M = l[b].idxByName[j]) && (M.name = k, delete l[b].idxByName[j], l[b].idxByName[k] = M);
16538
+ var I = S.indexNames[A], M = S.index(I).keyPath, j = typeof M == "string" ? M : "[" + x(M).join("+") + "]";
16539
+ !l[b] || (M = l[b].idxByName[j]) && (M.name = I, delete l[b].idxByName[j], l[b].idxByName[I] = M);
16531
16540
  }
16532
16541
  }
16533
16542
  typeof navigator < "u" && /Safari/.test(navigator.userAgent) && !/(Chrome\/|Edge\/)/.test(navigator.userAgent) && o.WorkerGlobalScope && o instanceof o.WorkerGlobalScope && [].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1] < 604 && (a._hasGetAll = !1);
@@ -16572,7 +16581,7 @@ function fD() {
16572
16581
  }
16573
16582
  function ys(a) {
16574
16583
  return nt(function() {
16575
- return he.letThrough = !0, a();
16584
+ return pe.letThrough = !0, a();
16576
16585
  });
16577
16586
  }
16578
16587
  function bs(a) {
@@ -16597,9 +16606,9 @@ function fD() {
16597
16606
  }
16598
16607
  }
16599
16608
  function yi(a, l) {
16600
- bs(l) || (function 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);
16609
+ bs(l) || (function d(p, I) {
16610
+ var b = I.from, S = I.to, A = I.l, I = I.r;
16611
+ vi(p, b, S), A && d(p, A), I && d(p, I);
16603
16612
  })(a, l);
16604
16613
  }
16605
16614
  function Pl(a, l) {
@@ -16682,23 +16691,23 @@ function fD() {
16682
16691
  var S, A = /^idb\:\/\/(.*)\/(.*)\//.exec(b);
16683
16692
  A && (b = A[1], A = A[2], (S = wr["idb://".concat(b, "/").concat(A)]) && Hl(S, a, d, l));
16684
16693
  }
16685
- d.forEach(function(k) {
16686
- return k();
16694
+ d.forEach(function(I) {
16695
+ return I();
16687
16696
  });
16688
16697
  }
16689
16698
  function Hl(a, l, d, p) {
16690
16699
  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++) {
16700
+ for (var A = S[b], I = A[0], M = [], j = 0, T = A[1]; j < T.length; j++) {
16692
16701
  var B = T[j];
16693
16702
  ws(l, B.obsSet) ? B.subscribers.forEach(function(U) {
16694
16703
  return d.add(U);
16695
16704
  }) : p && M.push(B);
16696
16705
  }
16697
- p && g.push([k, M]);
16706
+ p && g.push([I, M]);
16698
16707
  }
16699
16708
  if (p) for (var O = 0, N = g; O < N.length; O++) {
16700
- var P = N[O], k = P[0], M = P[1];
16701
- a.queries.query[k] = M;
16709
+ var P = N[O], I = P[0], M = P[1];
16710
+ a.queries.query[I] = M;
16702
16711
  }
16703
16712
  }
16704
16713
  function nh(a) {
@@ -16717,17 +16726,17 @@ function fD() {
16717
16726
  var N = a.name, P = l.autoSchema || !g ? d.open(N) : d.open(N, g);
16718
16727
  if (!P) throw new te.MissingAPI();
16719
16728
  P.onerror = Dn(O), P.onblocked = J(a._fireOnBlocked), P.onupgradeneeded = J(function(U) {
16720
- var F;
16721
- j = P.transaction, l.autoSchema && !a._options.allowEmptyDB ? (P.onerror = hi, j.abort(), P.result.close(), (F = d.deleteDatabase(N)).onsuccess = F.onerror = J(function() {
16729
+ var z;
16730
+ j = P.transaction, l.autoSchema && !a._options.allowEmptyDB ? (P.onerror = hi, j.abort(), P.result.close(), (z = d.deleteDatabase(N)).onsuccess = z.onerror = J(function() {
16722
16731
  O(new te.NoSuchDatabase("Database ".concat(N, " doesnt exist")));
16723
16732
  })) : (j.onerror = Dn(O), U = U.oldVersion > Math.pow(2, 62) ? 0 : U.oldVersion, T = U < 1, a.idbdb = P.result, b && eh(a, j), Jf(a, U / 10, j, O));
16724
16733
  }, O), P.onsuccess = J(function() {
16725
16734
  j = null;
16726
- var U, F, W, q, Y, se = a.idbdb = P.result, de = x(se.objectStoreNames);
16735
+ var U, z, W, q, K, se = a.idbdb = P.result, de = x(se.objectStoreNames);
16727
16736
  if (0 < de.length) try {
16728
16737
  var re = se.transaction((q = de).length === 1 ? q[0] : q, "readonly");
16729
- if (l.autoSchema) F = se, W = re, (U = a).verno = F.version / 10, W = U._dbSchema = qi(0, F, W), U._storeNames = x(F.objectStoreNames, 0), Wi(U, [U._allTables], s(W), W);
16730
- else if (Gi(a, a._dbSchema, re), ((Y = ps(qi(0, (Y = a).idbdb, re), Y._dbSchema)).add.length || Y.change.some(function(le) {
16738
+ if (l.autoSchema) z = se, W = re, (U = a).verno = z.version / 10, W = U._dbSchema = qi(0, z, W), U._storeNames = x(z.objectStoreNames, 0), Wi(U, [U._allTables], s(W), W);
16739
+ else if (Gi(a, a._dbSchema, re), ((K = ps(qi(0, (K = a).idbdb, re), K._dbSchema)).add.length || K.change.some(function(le) {
16731
16740
  return le.add.length || le.change.length;
16732
16741
  })) && !b) return console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Dexie will add missing parts and increment native version number to workaround this."), se.close(), g = se.version + 1, b = !0, B(A());
16733
16742
  $i(a, re);
@@ -16737,7 +16746,7 @@ function fD() {
16737
16746
  l.vcFired = !0, a.on("versionchange").fire(le);
16738
16747
  }), se.onclose = J(function() {
16739
16748
  a.close({ disableAutoOpen: !1 });
16740
- }), T && (Y = a._deps, re = N, se = Y.indexedDB, Y = Y.IDBKeyRange, vs(se) || re === Fr || ms(se, Y).put({ name: re }).catch(xe)), B();
16749
+ }), T && (K = a._deps, re = N, se = K.indexedDB, K = K.IDBKeyRange, vs(se) || re === Fr || ms(se, K).put({ name: re }).catch(xe)), B();
16741
16750
  }, O);
16742
16751
  }).catch(function(B) {
16743
16752
  switch (B?.name) {
@@ -16750,14 +16759,14 @@ function fD() {
16750
16759
  return ue.reject(B);
16751
16760
  });
16752
16761
  }
16753
- var k, M = l.dbReadyResolve, j = null, T = !1;
16762
+ var I, M = l.dbReadyResolve, j = null, T = !1;
16754
16763
  return ue.race([p, (typeof navigator > "u" ? ue.resolve() : !navigator.userAgentData && /Safari\//.test(navigator.userAgent) && !/Chrom(e|ium)\//.test(navigator.userAgent) && indexedDB.databases ? new Promise(function(B) {
16755
16764
  function O() {
16756
16765
  return indexedDB.databases().finally(B);
16757
16766
  }
16758
- k = setInterval(O, 100), O();
16767
+ I = setInterval(O, 100), O();
16759
16768
  }).finally(function() {
16760
- return clearInterval(k);
16769
+ return clearInterval(I);
16761
16770
  }) : Promise.resolve()).then(A)]).then(function() {
16762
16771
  return S(), l.onReadyBeingFired = [], ue.resolve(ys(function() {
16763
16772
  return a.on.ready.fire(a.vip);
@@ -16797,9 +16806,9 @@ function fD() {
16797
16806
  return a.throw(b);
16798
16807
  });
16799
16808
  function g(b) {
16800
- return function(k) {
16801
- var A = b(k), k = A.value;
16802
- return A.done ? k : k && typeof k.then == "function" ? k.then(d, p) : c(k) ? Promise.all(k).then(d, p) : d(k);
16809
+ return function(I) {
16810
+ var A = b(I), I = A.value;
16811
+ return A.done ? I : I && typeof I.then == "function" ? I.then(d, p) : c(I) ? Promise.all(I).then(d, p) : d(I);
16803
16812
  };
16804
16813
  }
16805
16814
  return g(l)();
@@ -16812,14 +16821,14 @@ function fD() {
16812
16821
  return r(r({}, a), { table: function(l) {
16813
16822
  var d = a.table(l), p = d.schema, g = {}, b = [];
16814
16823
  function S(T, B, O) {
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 });
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) {
16824
+ var N = mi(T), P = g[N] = g[N] || [], U = T == null ? 0 : typeof T == "string" ? 1 : T.length, z = 0 < B, z = r(r({}, O), { name: z ? "".concat(N, "(virtual-from:").concat(O.name, ")") : O.name, lowLevelIndex: O, isVirtual: z, keyTail: B, keyLength: U, extractKey: fs(T), unique: !z && O.unique });
16825
+ return P.push(z), z.isPrimaryKey || b.push(z), 1 < U && S(U === 2 ? T[0] : T.slice(0, U - 1), B + 1, O), P.sort(function(W, q) {
16817
16826
  return W.keyTail - q.keyTail;
16818
- }), F;
16827
+ }), z;
16819
16828
  }
16820
16829
  l = S(p.primaryKey.keyPath, 0, p.primaryKey), g[":id"] = [l];
16821
- for (var A = 0, k = p.indexes; A < k.length; A++) {
16822
- var M = k[A];
16830
+ for (var A = 0, I = p.indexes; A < I.length; A++) {
16831
+ var M = I[A];
16823
16832
  S(M.keyPath, 0, M);
16824
16833
  }
16825
16834
  function j(T) {
@@ -16834,21 +16843,21 @@ function fD() {
16834
16843
  return d.query(j(T));
16835
16844
  }, openCursor: function(T) {
16836
16845
  var B = T.query.index, O = B.keyTail, N = B.isVirtual, P = B.keyLength;
16837
- return N ? d.openCursor(j(T)).then(function(F) {
16838
- return F && U(F);
16846
+ return N ? d.openCursor(j(T)).then(function(z) {
16847
+ return z && U(z);
16839
16848
  }) : d.openCursor(T);
16840
- function U(F) {
16841
- return Object.create(F, { continue: { value: function(W) {
16842
- W != null ? F.continue(Zi(W, T.reverse ? a.MAX_KEY : a.MIN_KEY, O)) : T.unique ? F.continue(F.key.slice(0, P).concat(T.reverse ? a.MIN_KEY : a.MAX_KEY, O)) : F.continue();
16849
+ function U(z) {
16850
+ return Object.create(z, { continue: { value: function(W) {
16851
+ W != null ? z.continue(Zi(W, T.reverse ? a.MAX_KEY : a.MIN_KEY, O)) : T.unique ? z.continue(z.key.slice(0, P).concat(T.reverse ? a.MIN_KEY : a.MAX_KEY, O)) : z.continue();
16843
16852
  } }, continuePrimaryKey: { value: function(W, q) {
16844
- F.continuePrimaryKey(Zi(W, a.MAX_KEY, O), q);
16853
+ z.continuePrimaryKey(Zi(W, a.MAX_KEY, O), q);
16845
16854
  } }, primaryKey: { get: function() {
16846
- return F.primaryKey;
16855
+ return z.primaryKey;
16847
16856
  } }, key: { get: function() {
16848
- var W = F.key;
16857
+ var W = z.key;
16849
16858
  return P === 1 ? W[0] : W.slice(0, P);
16850
16859
  } }, value: { get: function() {
16851
- return F.value;
16860
+ return z.value;
16852
16861
  } } });
16853
16862
  }
16854
16863
  } });
@@ -16869,15 +16878,15 @@ function fD() {
16869
16878
  return r(r({}, a), { table: function(l) {
16870
16879
  var d = a.table(l), p = d.schema.primaryKey;
16871
16880
  return r(r({}, d), { mutate: function(g) {
16872
- var b = he.trans, S = b.table(l).hook, A = S.deleting, k = S.creating, M = S.updating;
16881
+ var b = pe.trans, S = b.table(l).hook, A = S.deleting, I = S.creating, M = S.updating;
16873
16882
  switch (g.type) {
16874
16883
  case "add":
16875
- if (k.fire === xe) break;
16884
+ if (I.fire === xe) break;
16876
16885
  return b._promise("readwrite", function() {
16877
16886
  return j(g);
16878
16887
  }, !0);
16879
16888
  case "put":
16880
- if (k.fire === xe && M.fire === xe) break;
16889
+ if (I.fire === xe && M.fire === xe) break;
16881
16890
  return b._promise("readwrite", function() {
16882
16891
  return j(g);
16883
16892
  }, !0);
@@ -16892,8 +16901,8 @@ function fD() {
16892
16901
  return (function T(B, O, N) {
16893
16902
  return d.query({ trans: B, values: !1, query: { index: p, range: O }, limit: N }).then(function(P) {
16894
16903
  var U = P.result;
16895
- return j({ type: "delete", keys: U, trans: B }).then(function(F) {
16896
- return 0 < F.numFailures ? Promise.reject(F.failures[0]) : U.length < N ? { failures: [], numFailures: 0, lastResult: void 0 } : T(B, r(r({}, O), { lower: U[U.length - 1], lowerOpen: !0 }), N);
16904
+ return j({ type: "delete", keys: U, trans: B }).then(function(z) {
16905
+ return 0 < z.numFailures ? Promise.reject(z.failures[0]) : U.length < N ? { failures: [], numFailures: 0, lastResult: void 0 } : T(B, r(r({}, O), { lower: U[U.length - 1], lowerOpen: !0 }), N);
16897
16906
  });
16898
16907
  });
16899
16908
  })(g.trans, g.range, 1e4);
@@ -16901,24 +16910,24 @@ function fD() {
16901
16910
  }
16902
16911
  return d.mutate(g);
16903
16912
  function j(T) {
16904
- var B, O, N, P = he.trans, U = T.keys || _s(p, T);
16913
+ var B, O, N, P = pe.trans, U = T.keys || _s(p, T);
16905
16914
  if (!U) throw new Error("Keys missing");
16906
- return (T = T.type === "add" || T.type === "put" ? r(r({}, T), { keys: U }) : r({}, T)).type !== "delete" && (T.values = i([], T.values)), T.keys && (T.keys = i([], T.keys)), B = d, N = U, ((O = T).type === "add" ? Promise.resolve([]) : B.getMany({ trans: O.trans, keys: N, cache: "immutable" })).then(function(F) {
16907
- var W = U.map(function(q, Y) {
16908
- var se, de, re, le = F[Y], fe = { onerror: null, onsuccess: null };
16909
- return T.type === "delete" ? A.fire.call(fe, q, le, P) : T.type === "add" || le === void 0 ? (se = k.fire.call(fe, q, T.values[Y], P), q == null && se != null && (T.keys[Y] = q = se, p.outbound || Q(T.values[Y], p.keyPath, q))) : (se = As(le, T.values[Y]), (de = M.fire.call(fe, se, q, le, P)) && (re = T.values[Y], Object.keys(de).forEach(function(ce) {
16915
+ return (T = T.type === "add" || T.type === "put" ? r(r({}, T), { keys: U }) : r({}, T)).type !== "delete" && (T.values = i([], T.values)), T.keys && (T.keys = i([], T.keys)), B = d, N = U, ((O = T).type === "add" ? Promise.resolve([]) : B.getMany({ trans: O.trans, keys: N, cache: "immutable" })).then(function(z) {
16916
+ var W = U.map(function(q, K) {
16917
+ var se, de, re, le = z[K], fe = { onerror: null, onsuccess: null };
16918
+ return T.type === "delete" ? A.fire.call(fe, q, le, P) : T.type === "add" || le === void 0 ? (se = I.fire.call(fe, q, T.values[K], P), q == null && se != null && (T.keys[K] = q = se, p.outbound || Q(T.values[K], p.keyPath, q))) : (se = As(le, T.values[K]), (de = M.fire.call(fe, se, q, le, P)) && (re = T.values[K], Object.keys(de).forEach(function(ce) {
16910
16919
  m(re, ce) ? re[ce] = de[ce] : Q(re, ce, de[ce]);
16911
16920
  }))), fe;
16912
16921
  });
16913
16922
  return d.mutate(T).then(function(q) {
16914
- for (var Y = q.failures, se = q.results, de = q.numFailures, q = q.lastResult, re = 0; re < U.length; ++re) {
16923
+ for (var K = q.failures, se = q.results, de = q.numFailures, q = q.lastResult, re = 0; re < U.length; ++re) {
16915
16924
  var le = (se || U)[re], fe = W[re];
16916
- le == null ? fe.onerror && fe.onerror(Y[re]) : fe.onsuccess && fe.onsuccess(T.type === "put" && F[re] ? T.values[re] : le);
16925
+ le == null ? fe.onerror && fe.onerror(K[re]) : fe.onsuccess && fe.onsuccess(T.type === "put" && z[re] ? T.values[re] : le);
16917
16926
  }
16918
- return { failures: Y, results: se, numFailures: de, lastResult: q };
16927
+ return { failures: K, results: se, numFailures: de, lastResult: q };
16919
16928
  }).catch(function(q) {
16920
- return W.forEach(function(Y) {
16921
- return Y.onerror && Y.onerror(q);
16929
+ return W.forEach(function(K) {
16930
+ return K.onerror && K.onerror(q);
16922
16931
  }), Promise.reject(q);
16923
16932
  });
16924
16933
  });
@@ -16966,42 +16975,42 @@ function fD() {
16966
16975
  var sh = { stack: "dbcore", level: 0, name: "Observability", create: function(a) {
16967
16976
  var l = a.schema.name, d = new Et(a.MIN_KEY, a.MAX_KEY);
16968
16977
  return r(r({}, a), { transaction: function(p, g, b) {
16969
- if (he.subscr && g !== "readonly") throw new te.ReadOnly("Readwrite transaction in liveQuery context. Querier source: ".concat(he.querier));
16978
+ if (pe.subscr && g !== "readonly") throw new te.ReadOnly("Readwrite transaction in liveQuery context. Querier source: ".concat(pe.querier));
16970
16979
  return a.transaction(p, g, b);
16971
16980
  }, table: function(p) {
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) {
16981
+ var g = a.table(p), b = g.schema, S = b.primaryKey, T = b.indexes, A = S.extractKey, I = S.outbound, M = S.autoIncrement && T.filter(function(O) {
16973
16982
  return O.compound && O.keyPath.includes(S.keyPath);
16974
16983
  }), j = r(r({}, g), { mutate: function(O) {
16975
16984
  function N(ce) {
16976
16985
  return ce = "idb://".concat(l, "/").concat(p, "/").concat(ce), q[ce] || (q[ce] = new Et());
16977
16986
  }
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) {
16987
+ var P, U, z, W = O.trans, q = O.mutatedParts || (O.mutatedParts = {}), K = 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) {
16979
16988
  return ce;
16980
16989
  }), O.values] : [], re = fe[0], le = fe[1], fe = O.trans._cache;
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) {
16982
- var ve = P(ce.name || "");
16983
- function Te(Ne) {
16990
+ return c(re) ? (K.addKeys(re), (fe = de === "delete" || re.length === le.length ? Ul(re, fe) : null) || se.addKeys(re), (fe || le) && (P = N, U = fe, z = le, b.indexes.forEach(function(ce) {
16991
+ var ye = P(ce.name || "");
16992
+ function ke(Ne) {
16984
16993
  return Ne != null ? ce.extractKey(Ne) : null;
16985
16994
  }
16986
16995
  function Oe(Ne) {
16987
16996
  return ce.multiEntry && c(Ne) ? Ne.forEach(function(Bt) {
16988
- return ve.addKey(Bt);
16989
- }) : ve.addKey(Ne);
16997
+ return ye.addKey(Bt);
16998
+ }) : ye.addKey(Ne);
16990
16999
  }
16991
- (U || F).forEach(function(Ne, Dt) {
16992
- var Re = U && Te(U[Dt]), Dt = F && Te(F[Dt]);
17000
+ (U || z).forEach(function(Ne, Dt) {
17001
+ var Re = U && ke(U[Dt]), Dt = z && ke(z[Dt]);
16993
17002
  He(Re, Dt) !== 0 && (Re != null && Oe(Re), Dt != null && Oe(Dt));
16994
17003
  });
16995
- }))) : re ? (le = { from: (le = re.lower) !== null && le !== void 0 ? le : a.MIN_KEY, to: (le = re.upper) !== null && le !== void 0 ? le : a.MAX_KEY }, se.add(le), Y.add(le)) : (Y.add(d), se.add(d), b.indexes.forEach(function(ce) {
17004
+ }))) : re ? (le = { from: (le = re.lower) !== null && le !== void 0 ? le : a.MIN_KEY, to: (le = re.upper) !== null && le !== void 0 ? le : a.MAX_KEY }, se.add(le), K.add(le)) : (K.add(d), se.add(d), b.indexes.forEach(function(ce) {
16996
17005
  return N(ce.name).add(d);
16997
17006
  })), g.mutate(O).then(function(ce) {
16998
- return !re || O.type !== "add" && O.type !== "put" || (Y.addKeys(ce.results), M && M.forEach(function(ve) {
16999
- for (var Te = O.values.map(function(Re) {
17000
- return ve.extractKey(Re);
17001
- }), Oe = ve.keyPath.findIndex(function(Re) {
17007
+ return !re || O.type !== "add" && O.type !== "put" || (K.addKeys(ce.results), M && M.forEach(function(ye) {
17008
+ for (var ke = O.values.map(function(Re) {
17009
+ return ye.extractKey(Re);
17010
+ }), Oe = ye.keyPath.findIndex(function(Re) {
17002
17011
  return Re === S.keyPath;
17003
- }), Ne = 0, Bt = ce.results.length; Ne < Bt; ++Ne) Te[Ne][Oe] = ce.results[Ne];
17004
- N(ve.name).addKeys(Te);
17012
+ }), Ne = 0, Bt = ce.results.length; Ne < Bt; ++Ne) ke[Ne][Oe] = ce.results[Ne];
17013
+ N(ye.name).addKeys(ke);
17005
17014
  })), W.mutatedParts = Ki(W.mutatedParts || {}, q), ce;
17006
17015
  });
17007
17016
  } }), T = function(N) {
@@ -17014,36 +17023,36 @@ function fD() {
17014
17023
  }, count: T, query: T, openCursor: T };
17015
17024
  return s(B).forEach(function(O) {
17016
17025
  j[O] = function(N) {
17017
- var P = he.subscr, U = !!P, F = Bl(he, g) && Fl(O, N) ? N.obsSet = {} : P;
17026
+ var P = pe.subscr, U = !!P, z = Bl(pe, g) && Fl(O, N) ? N.obsSet = {} : P;
17018
17027
  if (U) {
17019
17028
  var W = function(le) {
17020
- return le = "idb://".concat(l, "/").concat(p, "/").concat(le), F[le] || (F[le] = new Et());
17021
- }, q = W(""), Y = W(":dels"), P = B[O](N), U = P[0], P = P[1];
17022
- if ((O === "query" && U.isPrimaryKey && !N.values ? Y : W(U.name || "")).add(P), !U.isPrimaryKey) {
17029
+ return le = "idb://".concat(l, "/").concat(p, "/").concat(le), z[le] || (z[le] = new Et());
17030
+ }, q = W(""), K = W(":dels"), P = B[O](N), U = P[0], P = P[1];
17031
+ if ((O === "query" && U.isPrimaryKey && !N.values ? K : W(U.name || "")).add(P), !U.isPrimaryKey) {
17023
17032
  if (O !== "count") {
17024
- var se = O === "query" && k && N.values && g.query(r(r({}, N), { values: !1 }));
17033
+ var se = O === "query" && I && N.values && g.query(r(r({}, N), { values: !1 }));
17025
17034
  return g[O].apply(this, arguments).then(function(le) {
17026
17035
  if (O === "query") {
17027
- if (k && N.values) return se.then(function(Te) {
17028
- return Te = Te.result, q.addKeys(Te), le;
17036
+ if (I && N.values) return se.then(function(ke) {
17037
+ return ke = ke.result, q.addKeys(ke), le;
17029
17038
  });
17030
17039
  var fe = N.values ? le.result.map(A) : le.result;
17031
- (N.values ? q : Y).addKeys(fe);
17040
+ (N.values ? q : K).addKeys(fe);
17032
17041
  } else if (O === "openCursor") {
17033
- var ce = le, ve = N.values;
17042
+ var ce = le, ye = N.values;
17034
17043
  return ce && Object.create(ce, { key: { get: function() {
17035
- return Y.addKey(ce.primaryKey), ce.key;
17044
+ return K.addKey(ce.primaryKey), ce.key;
17036
17045
  } }, primaryKey: { get: function() {
17037
- var Te = ce.primaryKey;
17038
- return Y.addKey(Te), Te;
17046
+ var ke = ce.primaryKey;
17047
+ return K.addKey(ke), ke;
17039
17048
  } }, value: { get: function() {
17040
- return ve && q.addKey(ce.primaryKey), ce.value;
17049
+ return ye && q.addKey(ce.primaryKey), ce.value;
17041
17050
  } } });
17042
17051
  }
17043
17052
  return le;
17044
17053
  });
17045
17054
  }
17046
- Y.add(d);
17055
+ K.add(d);
17047
17056
  }
17048
17057
  }
17049
17058
  return g[O].apply(this, arguments);
@@ -17067,46 +17076,46 @@ function fD() {
17067
17076
  }
17068
17077
  function $l(a, l, B, p, g, b) {
17069
17078
  if (!B || B.length === 0) return a;
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) {
17079
+ var S = l.query.index, A = S.multiEntry, I = l.query.range, M = p.schema.primaryKey.extractKey, j = S.extractKey, T = (S.lowLevelIndex || S).extractKey, B = B.reduce(function(O, N) {
17071
17080
  var P = O, U = [];
17072
- if (N.type === "add" || N.type === "put") for (var F = new Et(), W = N.values.length - 1; 0 <= W; --W) {
17073
- var q, Y = N.values[W], se = M(Y);
17074
- F.hasKey(se) || (q = j(Y), (A && c(q) ? q.some(function(ce) {
17075
- return xs(ce, k);
17076
- }) : xs(q, k)) && (F.addKey(se), U.push(Y)));
17081
+ if (N.type === "add" || N.type === "put") for (var z = new Et(), W = N.values.length - 1; 0 <= W; --W) {
17082
+ var q, K = N.values[W], se = M(K);
17083
+ z.hasKey(se) || (q = j(K), (A && c(q) ? q.some(function(ce) {
17084
+ return xs(ce, I);
17085
+ }) : xs(q, I)) && (z.addKey(se), U.push(K)));
17077
17086
  }
17078
17087
  switch (N.type) {
17079
17088
  case "add":
17080
- var de = new Et().addKeys(l.values ? O.map(function(ve) {
17081
- return M(ve);
17082
- }) : O), P = O.concat(l.values ? U.filter(function(ve) {
17083
- return ve = M(ve), !de.hasKey(ve) && (de.addKey(ve), !0);
17084
- }) : U.map(function(ve) {
17085
- return M(ve);
17086
- }).filter(function(ve) {
17087
- return !de.hasKey(ve) && (de.addKey(ve), !0);
17089
+ var de = new Et().addKeys(l.values ? O.map(function(ye) {
17090
+ return M(ye);
17091
+ }) : O), P = O.concat(l.values ? U.filter(function(ye) {
17092
+ return ye = M(ye), !de.hasKey(ye) && (de.addKey(ye), !0);
17093
+ }) : U.map(function(ye) {
17094
+ return M(ye);
17095
+ }).filter(function(ye) {
17096
+ return !de.hasKey(ye) && (de.addKey(ye), !0);
17088
17097
  }));
17089
17098
  break;
17090
17099
  case "put":
17091
- var re = new Et().addKeys(N.values.map(function(ve) {
17092
- return M(ve);
17100
+ var re = new Et().addKeys(N.values.map(function(ye) {
17101
+ return M(ye);
17093
17102
  }));
17094
- P = O.filter(function(ve) {
17095
- return !re.hasKey(l.values ? M(ve) : ve);
17096
- }).concat(l.values ? U : U.map(function(ve) {
17097
- return M(ve);
17103
+ P = O.filter(function(ye) {
17104
+ return !re.hasKey(l.values ? M(ye) : ye);
17105
+ }).concat(l.values ? U : U.map(function(ye) {
17106
+ return M(ye);
17098
17107
  }));
17099
17108
  break;
17100
17109
  case "delete":
17101
17110
  var le = new Et().addKeys(N.keys);
17102
- P = O.filter(function(ve) {
17103
- return !le.hasKey(l.values ? M(ve) : ve);
17111
+ P = O.filter(function(ye) {
17112
+ return !le.hasKey(l.values ? M(ye) : ye);
17104
17113
  });
17105
17114
  break;
17106
17115
  case "deleteRange":
17107
17116
  var fe = N.range;
17108
- P = O.filter(function(ve) {
17109
- return !xs(M(ve), fe);
17117
+ P = O.filter(function(ye) {
17118
+ return !xs(M(ye), fe);
17110
17119
  });
17111
17120
  }
17112
17121
  return P;
@@ -17151,32 +17160,32 @@ function fD() {
17151
17160
  var l = a.schema.name;
17152
17161
  return r(r({}, a), { transaction: function(d, p, g) {
17153
17162
  var b, S, A = a.transaction(d, p, g);
17154
- return p === "readwrite" && (S = (b = new AbortController()).signal, g = function(k) {
17163
+ return p === "readwrite" && (S = (b = new AbortController()).signal, g = function(I) {
17155
17164
  return function() {
17156
17165
  if (b.abort(), p === "readwrite") {
17157
17166
  for (var M = /* @__PURE__ */ new Set(), j = 0, T = d; j < T.length; j++) {
17158
17167
  var B = T[j], O = wr["idb://".concat(l, "/").concat(B)];
17159
17168
  if (O) {
17160
- var N = a.table(B), P = O.optimisticOps.filter(function(ve) {
17161
- return ve.trans === A;
17169
+ var N = a.table(B), P = O.optimisticOps.filter(function(ye) {
17170
+ return ye.trans === A;
17162
17171
  });
17163
- if (A._explicit && k && A.mutatedParts) for (var U = 0, F = Object.values(O.queries.query); U < F.length; U++) for (var W = 0, q = (de = F[U]).slice(); W < q.length; W++) ws((re = q[W]).obsSet, A.mutatedParts) && (Z(de, re), re.subscribers.forEach(function(ve) {
17164
- return M.add(ve);
17172
+ if (A._explicit && I && A.mutatedParts) for (var U = 0, z = Object.values(O.queries.query); U < z.length; U++) for (var W = 0, q = (de = z[U]).slice(); W < q.length; W++) ws((re = q[W]).obsSet, A.mutatedParts) && (Z(de, re), re.subscribers.forEach(function(ye) {
17173
+ return M.add(ye);
17165
17174
  }));
17166
17175
  else if (0 < P.length) {
17167
- O.optimisticOps = O.optimisticOps.filter(function(ve) {
17168
- return ve.trans !== A;
17176
+ O.optimisticOps = O.optimisticOps.filter(function(ye) {
17177
+ return ye.trans !== A;
17169
17178
  });
17170
- for (var Y = 0, se = Object.values(O.queries.query); Y < se.length; Y++) for (var de, re, le, fe = 0, ce = (de = se[Y]).slice(); fe < ce.length; fe++) (re = ce[fe]).res != null && A.mutatedParts && (k && !re.dirty ? (le = Object.isFrozen(re.res), le = $l(re.res, re.req, P, N, re, le), re.dirty ? (Z(de, re), re.subscribers.forEach(function(ve) {
17171
- return M.add(ve);
17172
- })) : le !== re.res && (re.res = le, re.promise = ue.resolve({ result: le }))) : (re.dirty && Z(de, re), re.subscribers.forEach(function(ve) {
17173
- return M.add(ve);
17179
+ for (var K = 0, se = Object.values(O.queries.query); K < se.length; K++) for (var de, re, le, fe = 0, ce = (de = se[K]).slice(); fe < ce.length; fe++) (re = ce[fe]).res != null && A.mutatedParts && (I && !re.dirty ? (le = Object.isFrozen(re.res), le = $l(re.res, re.req, P, N, re, le), re.dirty ? (Z(de, re), re.subscribers.forEach(function(ye) {
17180
+ return M.add(ye);
17181
+ })) : le !== re.res && (re.res = le, re.promise = ue.resolve({ result: le }))) : (re.dirty && Z(de, re), re.subscribers.forEach(function(ye) {
17182
+ return M.add(ye);
17174
17183
  })));
17175
17184
  }
17176
17185
  }
17177
17186
  }
17178
- M.forEach(function(ve) {
17179
- return ve();
17187
+ M.forEach(function(ye) {
17188
+ return ye();
17180
17189
  });
17181
17190
  }
17182
17191
  };
@@ -17184,56 +17193,56 @@ function fD() {
17184
17193
  }, table: function(d) {
17185
17194
  var p = a.table(d), g = p.schema.primaryKey;
17186
17195
  return r(r({}, p), { mutate: function(b) {
17187
- var S = he.trans;
17196
+ var S = pe.trans;
17188
17197
  if (g.outbound || S.db._options.cache === "disabled" || S.explicit || S.idbtrans.mode !== "readwrite") return p.mutate(b);
17189
17198
  var A = wr["idb://".concat(l, "/").concat(d)];
17190
- return A ? (S = p.mutate(b), b.type !== "add" && b.type !== "put" || !(50 <= b.values.length || _s(g, b).some(function(k) {
17191
- return k == null;
17192
- })) ? (A.optimisticOps.push(b), b.mutatedParts && Qi(b.mutatedParts), S.then(function(k) {
17193
- 0 < k.numFailures && (Z(A.optimisticOps, b), (k = zl(0, b, k)) && A.optimisticOps.push(k), b.mutatedParts && Qi(b.mutatedParts));
17199
+ return A ? (S = p.mutate(b), b.type !== "add" && b.type !== "put" || !(50 <= b.values.length || _s(g, b).some(function(I) {
17200
+ return I == null;
17201
+ })) ? (A.optimisticOps.push(b), b.mutatedParts && Qi(b.mutatedParts), S.then(function(I) {
17202
+ 0 < I.numFailures && (Z(A.optimisticOps, b), (I = zl(0, b, I)) && A.optimisticOps.push(I), b.mutatedParts && Qi(b.mutatedParts));
17194
17203
  }), S.catch(function() {
17195
17204
  Z(A.optimisticOps, b), b.mutatedParts && Qi(b.mutatedParts);
17196
- })) : S.then(function(k) {
17205
+ })) : S.then(function(I) {
17197
17206
  var M = zl(0, r(r({}, b), { values: b.values.map(function(j, T) {
17198
17207
  var B;
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
- }) }), k);
17208
+ return I.failures[T] ? j : (j = (B = g.keyPath) !== null && B !== void 0 && B.includes(".") ? je(j) : r({}, j), Q(j, g.keyPath, I.results[T]), j);
17209
+ }) }), I);
17201
17210
  A.optimisticOps.push(M), queueMicrotask(function() {
17202
17211
  return b.mutatedParts && Qi(b.mutatedParts);
17203
17212
  });
17204
17213
  }), S) : p.mutate(b);
17205
17214
  }, query: function(b) {
17206
- if (!Bl(he, p) || !Fl("query", b)) return p.query(b);
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) {
17215
+ if (!Bl(pe, p) || !Fl("query", b)) return p.query(b);
17216
+ var S = ((M = pe.trans) === null || M === void 0 ? void 0 : M.db._options.cache) === "immutable", T = pe, A = T.requery, I = T.signal, M = (function(N, P, U, z) {
17208
17217
  var W = wr["idb://".concat(N, "/").concat(P)];
17209
17218
  if (!W) return [];
17210
17219
  if (!(P = W.queries[U])) return [null, !1, W, null];
17211
- var q = P[(F.query ? F.query.index.name : null) || ""];
17220
+ var q = P[(z.query ? z.query.index.name : null) || ""];
17212
17221
  if (!q) return [null, !1, W, null];
17213
17222
  switch (U) {
17214
17223
  case "query":
17215
- var Y = q.find(function(se) {
17216
- return se.req.limit === F.limit && se.req.values === F.values && Wl(se.req.query.range, F.query.range);
17224
+ var K = q.find(function(se) {
17225
+ return se.req.limit === z.limit && se.req.values === z.values && Wl(se.req.query.range, z.query.range);
17217
17226
  });
17218
- return Y ? [Y, !0, W, q] : [q.find(function(se) {
17219
- return ("limit" in se.req ? se.req.limit : 1 / 0) >= F.limit && (!F.values || se.req.values) && ah(se.req.query.range, F.query.range);
17227
+ return K ? [K, !0, W, q] : [q.find(function(se) {
17228
+ return ("limit" in se.req ? se.req.limit : 1 / 0) >= z.limit && (!z.values || se.req.values) && ah(se.req.query.range, z.query.range);
17220
17229
  }), !1, W, q];
17221
17230
  case "count":
17222
- return Y = q.find(function(se) {
17223
- return Wl(se.req.query.range, F.query.range);
17224
- }), [Y, !!Y, W, q];
17231
+ return K = q.find(function(se) {
17232
+ return Wl(se.req.query.range, z.query.range);
17233
+ }), [K, !!K, W, q];
17225
17234
  }
17226
17235
  })(l, d, "query", b), j = M[0], T = M[1], B = M[2], O = M[3];
17227
17236
  return j && T ? j.obsSet = b.obsSet : (T = p.query(b).then(function(N) {
17228
17237
  var P = N.result;
17229
17238
  if (j && (j.res = P), S) {
17230
- for (var U = 0, F = P.length; U < F; ++U) Object.freeze(P[U]);
17239
+ for (var U = 0, z = P.length; U < z; ++U) Object.freeze(P[U]);
17231
17240
  Object.freeze(P);
17232
17241
  } else N.result = je(P);
17233
17242
  return N;
17234
17243
  }).catch(function(N) {
17235
17244
  return O && j && Z(O, j), Promise.reject(N);
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) {
17245
+ }), 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, I), j.promise.then(function(N) {
17237
17246
  return { result: $l(N.result, b, B?.optimisticOps, p, j, S) };
17238
17247
  });
17239
17248
  } });
@@ -17254,7 +17263,7 @@ function fD() {
17254
17263
  return d || (d = new this.Version(a), l.push(d), l.sort(Xf), d.stores({}), this._state.autoSchema = !1, d);
17255
17264
  }, at.prototype._whenReady = function(a) {
17256
17265
  var l = this;
17257
- return this.idbdb && (this._state.openComplete || he.letThrough || this._vip) ? a() : new ue(function(d, p) {
17266
+ return this.idbdb && (this._state.openComplete || pe.letThrough || this._vip) ? a() : new ue(function(d, p) {
17258
17267
  if (l._state.openComplete) return p(new te.DatabaseClosed(l._state.dbOpenError));
17259
17268
  if (!l._state.isBeingOpened) {
17260
17269
  if (!l._state.autoOpen) return void p(new te.DatabaseClosed());
@@ -17304,8 +17313,8 @@ function fD() {
17304
17313
  l.close(a);
17305
17314
  var A = l._deps.indexedDB.deleteDatabase(l.name);
17306
17315
  A.onsuccess = J(function() {
17307
- var k, M, j;
17308
- k = l._deps, M = l.name, j = k.indexedDB, k = k.IDBKeyRange, vs(j) || M === Fr || ms(j, k).delete(M).catch(xe), g();
17316
+ var I, M, j;
17317
+ I = l._deps, M = l.name, j = I.indexedDB, I = I.IDBKeyRange, vs(j) || M === Fr || ms(j, I).delete(M).catch(xe), g();
17309
17318
  }), A.onerror = Dn(b), A.onblocked = l._fireOnBlocked;
17310
17319
  }
17311
17320
  if (d) throw new te.InvalidArgument("Invalid closeOptions argument to db.delete()");
@@ -17332,11 +17341,11 @@ function fD() {
17332
17341
  var g = arguments.length;
17333
17342
  if (g < 2) throw new te.InvalidArgument("Too few arguments");
17334
17343
  for (var b = new Array(g - 1); --g; ) b[g - 1] = arguments[g];
17335
- return p = b.pop(), [l, K(b), p];
17344
+ return p = b.pop(), [l, Y(b), p];
17336
17345
  }).apply(this, arguments);
17337
17346
  return this._transaction.apply(this, a);
17338
17347
  }, at.prototype._transaction = function(a, l, d) {
17339
- var p = this, g = he.trans;
17348
+ var p = this, g = pe.trans;
17340
17349
  g && g.db === this && a.indexOf("!") === -1 || (g = null);
17341
17350
  var b, S, A = a.indexOf("?") !== -1;
17342
17351
  a = a.replace("!", "").replace("?", "");
@@ -17366,9 +17375,9 @@ function fD() {
17366
17375
  T(M);
17367
17376
  }) : rt(M);
17368
17377
  }
17369
- var k = (function M(j, T, B, O, N) {
17378
+ var I = (function M(j, T, B, O, N) {
17370
17379
  return ue.resolve().then(function() {
17371
- var P = he.transless || he, U = j._createTransaction(T, B, j._dbSchema, O);
17380
+ var P = pe.transless || pe, U = j._createTransaction(T, B, j._dbSchema, O);
17372
17381
  if (U.explicit = !0, P = { trans: U, transless: P }, O) U.idbtrans = O.idbtrans;
17373
17382
  else try {
17374
17383
  U.create(), U.idbtrans._explicit = !0, j._state.PR1398_maxLoop = 3;
@@ -17377,14 +17386,14 @@ function fD() {
17377
17386
  return M(j, T, B, null, N);
17378
17387
  })) : rt(q);
17379
17388
  }
17380
- var F, W = Ie(N);
17389
+ var z, W = Te(N);
17381
17390
  return W && ft(), P = ue.follow(function() {
17382
17391
  var q;
17383
- (F = N.call(U, U)) && (W ? (q = ze.bind(null, null), F.then(q, q)) : typeof F.next == "function" && typeof F.throw == "function" && (F = Cs(F)));
17384
- }, P), (F && typeof F.then == "function" ? ue.resolve(F).then(function(q) {
17392
+ (z = N.call(U, U)) && (W ? (q = ze.bind(null, null), z.then(q, q)) : typeof z.next == "function" && typeof z.throw == "function" && (z = Cs(z)));
17393
+ }, P), (z && typeof z.then == "function" ? ue.resolve(z).then(function(q) {
17385
17394
  return U.active ? q : rt(new te.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"));
17386
17395
  }) : P.then(function() {
17387
- return F;
17396
+ return z;
17388
17397
  })).then(function(q) {
17389
17398
  return O && U._resolve(), U._completion.then(function() {
17390
17399
  return q;
@@ -17394,9 +17403,9 @@ function fD() {
17394
17403
  });
17395
17404
  });
17396
17405
  }).bind(null, this, b, S, g, d);
17397
- return g ? g._promise(b, k, "lock") : he.trans ? En(he.transless, function() {
17398
- return p._whenReady(k);
17399
- }) : this._whenReady(k);
17406
+ return g ? g._promise(b, I, "lock") : pe.trans ? En(pe.transless, function() {
17407
+ return p._whenReady(I);
17408
+ }) : this._whenReady(I);
17400
17409
  }, at.prototype.table = function(a) {
17401
17410
  if (!m(this._allTables, a)) throw new te.InvalidTable("Table ".concat(a, " does not exist"));
17402
17411
  return this._allTables[a];
@@ -17406,7 +17415,7 @@ function fD() {
17406
17415
  this._middlewares = {}, this.verno = 0;
17407
17416
  var p = at.dependencies;
17408
17417
  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;
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 };
17418
+ var g, b, S, A, I, 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 };
17410
17419
  M.dbReadyPromise = new ue(function(T) {
17411
17420
  M.dbReadyResolve = T;
17412
17421
  }), M.openCanceller = new ue(function(T, B) {
@@ -17426,7 +17435,7 @@ function fD() {
17426
17435
  }));
17427
17436
  });
17428
17437
  };
17429
- }), this.Collection = (g = this, fi(Vf.prototype, function(F, U) {
17438
+ }), this.Collection = (g = this, fi(Vf.prototype, function(z, U) {
17430
17439
  this.db = g;
17431
17440
  var O = bl, N = null;
17432
17441
  if (U) try {
@@ -17434,34 +17443,34 @@ function fD() {
17434
17443
  } catch (W) {
17435
17444
  N = W;
17436
17445
  }
17437
- var P = F._ctx, U = P.table, F = U.hook.reading.fire;
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 };
17446
+ var P = z._ctx, U = P.table, z = U.hook.reading.fire;
17447
+ 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: z !== pt ? z : null };
17439
17448
  })), this.Table = (b = this, fi(Al.prototype, function(T, B, O) {
17440
17449
  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
17450
  })), this.Transaction = (S = this, fi(Yf.prototype, function(T, B, O, N, P) {
17442
17451
  var U = this;
17443
- T !== "readonly" && B.forEach(function(F) {
17444
- F = (F = O[F]) === null || F === void 0 ? void 0 : F.yProps, F && (B = B.concat(F.map(function(W) {
17452
+ T !== "readonly" && B.forEach(function(z) {
17453
+ z = (z = O[z]) === null || z === void 0 ? void 0 : z.yProps, z && (B = B.concat(z.map(function(W) {
17445
17454
  return W.updatesTable;
17446
17455
  })));
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) {
17448
- U._resolve = F, U._reject = W;
17456
+ }), 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(z, W) {
17457
+ U._resolve = z, U._reject = W;
17449
17458
  }), this._completion.then(function() {
17450
17459
  U.active = !1, U.on.complete.fire();
17451
- }, function(F) {
17460
+ }, function(z) {
17452
17461
  var W = U.active;
17453
- return U.active = !1, U.on.error.fire(F), U.parent ? U.parent._reject(F) : W && U.idbtrans && U.idbtrans.abort(), rt(F);
17462
+ return U.active = !1, U.on.error.fire(z), U.parent ? U.parent._reject(z) : W && U.idbtrans && U.idbtrans.abort(), rt(z);
17454
17463
  });
17455
17464
  })), this.Version = (A = this, fi(th.prototype, function(T) {
17456
17465
  this.db = A, this._cfg = { version: T, storesSource: null, dbschema: {}, tables: {}, contentUpgrade: null };
17457
- })), this.WhereClause = (k = this, fi(kl.prototype, function(T, B, O) {
17458
- if (this.db = k, this._ctx = { table: T, index: B === ":id" ? null : B, or: O }, this._cmp = this._ascending = He, this._descending = function(N, P) {
17466
+ })), this.WhereClause = (I = this, fi(kl.prototype, function(T, B, O) {
17467
+ if (this.db = I, this._ctx = { table: T, index: B === ":id" ? null : B, or: O }, this._cmp = this._ascending = He, this._descending = function(N, P) {
17459
17468
  return He(P, N);
17460
17469
  }, this._max = function(N, P) {
17461
17470
  return 0 < He(N, P) ? N : P;
17462
17471
  }, this._min = function(N, P) {
17463
17472
  return He(N, P) < 0 ? N : P;
17464
- }, this._IDBKeyRange = k._deps.IDBKeyRange, !this._IDBKeyRange) throw new te.MissingAPI();
17473
+ }, this._IDBKeyRange = I._deps.IDBKeyRange, !this._IDBKeyRange) throw new te.MissingAPI();
17465
17474
  })), this.on("versionchange", function(T) {
17466
17475
  0 < T.newVersion ? console.warn("Another connection wants to upgrade database '".concat(d.name, "'. Closing db now to resume the upgrade.")) : console.warn("Another connection wants to delete database '".concat(d.name, "'. Closing db now to resume the delete request.")), d.close({ disableAutoOpen: !1 });
17467
17476
  }), this.on("blocked", function(T) {
@@ -17506,7 +17515,7 @@ function fD() {
17506
17515
  }
17507
17516
  function Vl(a) {
17508
17517
  var l, d = !1, p = new uh(function(g) {
17509
- var b = Ie(a), S, A = !1, k = {}, M = {}, j = { get closed() {
17518
+ var b = Te(a), S, A = !1, I = {}, M = {}, j = { get closed() {
17510
17519
  return A;
17511
17520
  }, unsubscribe: function() {
17512
17521
  A || (A = !0, S && S.abort(), T && er.storagemutated.unsubscribe(O));
@@ -17515,21 +17524,21 @@ function fD() {
17515
17524
  var T = !1, B = function() {
17516
17525
  return Ur(N);
17517
17526
  }, O = function(P) {
17518
- Ki(k, P), ws(M, k) && B();
17527
+ Ki(I, P), ws(M, I) && B();
17519
17528
  }, N = function() {
17520
- var P, U, F;
17521
- !A && Ji.indexedDB && (k = {}, P = {}, S && S.abort(), S = new AbortController(), F = (function(W) {
17529
+ var P, U, z;
17530
+ !A && Ji.indexedDB && (I = {}, P = {}, S && S.abort(), S = new AbortController(), z = (function(W) {
17522
17531
  var q = Se();
17523
17532
  try {
17524
17533
  b && ft();
17525
- var Y = nt(a, W);
17526
- return Y = b ? Y.finally(ze) : Y;
17534
+ var K = nt(a, W);
17535
+ return K = b ? K.finally(ze) : K;
17527
17536
  } finally {
17528
- q && ke();
17537
+ q && Ie();
17529
17538
  }
17530
- })(U = { subscr: P, signal: S.signal, requery: B, querier: a, trans: null }), Promise.resolve(F).then(function(W) {
17531
- d = !0, l = W, A || U.signal.aborted || (k = {}, (function(q) {
17532
- for (var Y in q) if (m(q, Y)) return;
17539
+ })(U = { subscr: P, signal: S.signal, requery: B, querier: a, trans: null }), Promise.resolve(z).then(function(W) {
17540
+ d = !0, l = W, A || U.signal.aborted || (I = {}, (function(q) {
17541
+ for (var K in q) if (m(q, K)) return;
17533
17542
  return 1;
17534
17543
  })(M = P) || T || (er(pi, O), T = !0), Ur(function() {
17535
17544
  return !A && g.next && g.next(W);
@@ -17583,7 +17592,7 @@ function fD() {
17583
17592
  u(this, a);
17584
17593
  };
17585
17594
  }, ignoreTransaction: function(a) {
17586
- return he.trans ? En(he.transless, a) : a();
17595
+ return pe.trans ? En(pe.transless, a) : a();
17587
17596
  }, vip: ys, async: function(a) {
17588
17597
  return function() {
17589
17598
  try {
@@ -17601,18 +17610,18 @@ function fD() {
17601
17610
  return rt(g);
17602
17611
  }
17603
17612
  }, currentTransaction: { get: function() {
17604
- return he.trans || null;
17613
+ return pe.trans || null;
17605
17614
  } }, waitFor: function(a, l) {
17606
- return l = ue.resolve(typeof a == "function" ? Sr.ignoreTransaction(a) : a).timeout(l || 6e4), he.trans ? he.trans.waitFor(l) : l;
17615
+ return l = ue.resolve(typeof a == "function" ? Sr.ignoreTransaction(a) : a).timeout(l || 6e4), pe.trans ? pe.trans.waitFor(l) : l;
17607
17616
  }, Promise: ue, debug: { get: function() {
17608
17617
  return Be;
17609
17618
  }, set: function(a) {
17610
17619
  Un(a);
17611
- } }, derive: D, extend: u, props: y, override: H, Events: di, on: er, liveQuery: Vl, extendObservabilitySet: Ki, getByKeyPath: z, setByKeyPath: Q, delByKeyPath: function(a, l) {
17620
+ } }, derive: D, extend: u, props: y, override: H, Events: di, on: er, liveQuery: Vl, extendObservabilitySet: Ki, getByKeyPath: F, setByKeyPath: Q, delByKeyPath: function(a, l) {
17612
17621
  typeof l == "string" ? Q(a, l, void 0) : "length" in l && [].map.call(l, function(d) {
17613
17622
  Q(a, d, void 0);
17614
17623
  });
17615
- }, shallowClone: $, deepClone: je, getObjectDiff: As, cmp: He, asap: I, minKey: -1 / 0, addons: [], connections: en, errnames: ct, dependencies: Ji, cache: wr, semVer: "4.2.1", version: "4.2.1".split(".").map(function(a) {
17624
+ }, shallowClone: $, deepClone: je, getObjectDiff: As, cmp: He, asap: k, minKey: -1 / 0, addons: [], connections: en, errnames: ct, dependencies: Ji, cache: wr, semVer: "4.2.1", version: "4.2.1".split(".").map(function(a) {
17616
17625
  return parseInt(a);
17617
17626
  }).reduce(function(a, l, d) {
17618
17627
  return a + l / Math.pow(10, 2 * d);
@@ -17729,36 +17738,36 @@ function wD({
17729
17738
  const [r, i] = me({}), [o, s] = me([]), [c, u] = me(!1);
17730
17739
  async function h(E, D, _) {
17731
17740
  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 = {};
17741
+ const R = new Map(E.map((G) => [Wt(G), G])), x = {}, H = [], L = {}, k = [], F = {};
17733
17742
  for (const G of R.keys())
17734
17743
  !D && r[G] ? x[G] = r[G] : H.push(G);
17735
17744
  console.log(`Found ${H.length} missing from memory, checking cache...`);
17736
17745
  for (const G of H) {
17737
- const K = _ ? null : await gD(G);
17738
- K ? L[G] = K : I.push(G);
17746
+ const Y = _ ? null : await gD(G);
17747
+ Y ? L[G] = Y : k.push(G);
17739
17748
  }
17740
- await f(L, !0), console.log(`Found ${I.length} missing from cache, fetching from API...`);
17741
- const Q = I.filter((G) => !G.startsWith("neg_")), $ = I.filter((G) => G.startsWith("neg_"));
17749
+ await f(L, !0), console.log(`Found ${k.length} missing from cache, fetching from API...`);
17750
+ const Q = k.filter((G) => !G.startsWith("neg_")), $ = k.filter((G) => G.startsWith("neg_"));
17742
17751
  if (Q.length > 10)
17743
17752
  for await (const G of iD(t))
17744
- Object.entries(G).forEach(([K, ae]) => {
17745
- Q.includes(K) && (z[K] = ae);
17746
- }), await f(z, !1);
17753
+ Object.entries(G).forEach(([Y, ae]) => {
17754
+ Q.includes(Y) && (F[Y] = ae);
17755
+ }), await f(F, !1);
17747
17756
  else
17748
17757
  await Promise.all(
17749
17758
  Q.map(async (G) => {
17750
- const K = R.get(G), ae = await wu(K.CourtDateID.toString(), t);
17751
- z[G] = ae ?? [], await f(z, !1);
17759
+ const Y = R.get(G), ae = await wu(Y.CourtDateID.toString(), t);
17760
+ F[G] = ae ?? [], await f(F, !1);
17752
17761
  })
17753
17762
  );
17754
17763
  return await Promise.all(
17755
17764
  $.map(async (G) => {
17756
- const K = R.get(G), ae = await wu(K.CourtDateID.toString(), t, wt.NEGOTIATIONS);
17757
- z[G] = ae ?? [], await f(z, !1);
17765
+ const Y = R.get(G), ae = await wu(Y.CourtDateID.toString(), t, wt.NEGOTIATIONS);
17766
+ F[G] = ae ?? [], await f(F, !1);
17758
17767
  })
17759
17768
  ), u(!1), console.log(
17760
- `Cases fetched - Memory: ${Object.keys(x).length}, Cache: ${Object.keys(L).length}, Fetched: ${Object.keys(z).length}`
17761
- ), { ...x, ...L, ...z };
17769
+ `Cases fetched - Memory: ${Object.keys(x).length}, Cache: ${Object.keys(L).length}, Fetched: ${Object.keys(F).length}`
17770
+ ), { ...x, ...L, ...F };
17762
17771
  }
17763
17772
  async function f(E, D) {
17764
17773
  if (console.log(
@@ -17806,36 +17815,36 @@ function SD({
17806
17815
  const { getTownshipName: o, activeUser: s, allUsers: c } = Ot(), [u, h] = me([]), [f, m] = me(""), [y, v] = me([]), E = mt(/* @__PURE__ */ new Set());
17807
17816
  be(() => {
17808
17817
  v([]), i.searchTerm.trim() !== "" && (async () => {
17809
- for await (const I of rD(i.searchTerm, n))
17810
- v((z) => [...z, ...I]);
17818
+ for await (const k of rD(i.searchTerm, n))
17819
+ v((F) => [...F, ...k]);
17811
17820
  })();
17812
17821
  }, [i.searchTerm]);
17813
- function D(I, z) {
17814
- const Q = ur(z), $ = I.length, G = Ca(I, i, Q).length, K = I.filter((ae) => !ji(ae, Q)).length;
17815
- return { filtered: G, total: $, unsettled: K };
17822
+ function D(k, F) {
17823
+ const Q = ur(F), $ = k.length, G = Ca(k, i, Q).length, Y = k.filter((ae) => !ji(ae, Q)).length;
17824
+ return { filtered: G, total: $, unsettled: Y };
17816
17825
  }
17817
- const _ = zt(() => t.filter((I) => I.CourtDateID == null ? (console.warn(
17826
+ const _ = zt(() => t.filter((k) => k.CourtDateID == null ? (console.warn(
17818
17827
  "[UseCalendarEvents] Skipping date with missing CourtDateID — check API response field names:",
17819
- 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) => {
17828
+ k
17829
+ ), !1) : !0).filter((k) => y.length === 0 || i.searchTerm.trim() === "" ? !0 : y.includes(k.CourtDateID)).filter((k) => i.showInPerson ? !0 : k.Type !== It.IN_PERSON).filter((k) => i.showVirtual ? !0 : k.Type !== It.VIRTUAL).filter((k) => i.showUnknown ? !0 : k.Type !== It.UNKNOWN && k.Type !== null).filter((k) => i.showOnlyAssignedToUser !== null ? i.showOnlyAssignedToUser === -1 ? k.FirstChair === null && k.SecondChair === null : k.FirstChair === i.showOnlyAssignedToUser || k.SecondChair === i.showOnlyAssignedToUser : !0).filter((k) => i.municode ? k.MuniCode === i.municode : !0).filter((k) => {
17821
17830
  if (i.showOnlyUnsettled || i.showOnlyWithoutEvidence || i.showOnlyUnreviewed) {
17822
- const z = e[Wt(I)];
17823
- return z === void 0 || z.length === 0 ? !1 : Ca(z, i, ur(I.MuniCode)).length > 0;
17831
+ const F = e[Wt(k)];
17832
+ return F === void 0 || F.length === 0 ? !1 : Ca(F, i, ur(k.MuniCode)).length > 0;
17824
17833
  }
17825
17834
  return !0;
17826
- }).filter((I) => i.dateTypeFilter === "negotiations" ? I.DateType === wt.NEGOTIATIONS : i.dateTypeFilter === "scar" ? I.DateType !== wt.NEGOTIATIONS : !0), [t, i, s, e, y]), R = zt(() => {
17827
- const I = [];
17828
- for (const z of _) {
17829
- if (!z.CourtDate) continue;
17830
- const Q = e[Wt(z)] || [], $ = Array.isArray(z.MultipleDates) && z.MultipleDates.length > 0;
17835
+ }).filter((k) => i.dateTypeFilter === "negotiations" ? k.DateType === wt.NEGOTIATIONS : i.dateTypeFilter === "scar" ? k.DateType !== wt.NEGOTIATIONS : !0), [t, i, s, e, y]), R = zt(() => {
17836
+ const k = [];
17837
+ for (const F of _) {
17838
+ if (!F.CourtDate) continue;
17839
+ const Q = e[Wt(F)] || [], $ = Array.isArray(F.MultipleDates) && F.MultipleDates.length > 0;
17831
17840
  if (Q.length === 0) {
17832
- I.push({
17833
- id: z.CourtDateID.toString(),
17834
- title: `${o(z.MuniCode)} (${z.MuniCode}) x0 (0)${$ ? " (day 1)" : ""}`,
17835
- start: z.CourtDate,
17841
+ k.push({
17842
+ id: F.CourtDateID.toString(),
17843
+ title: `${o(F.MuniCode)} (${F.MuniCode}) x0 (0)${$ ? " (day 1)" : ""}`,
17844
+ start: F.CourtDate,
17836
17845
  allDay: !1,
17837
17846
  extendedProps: {
17838
- ...z,
17847
+ ...F,
17839
17848
  _bucketKey: "original",
17840
17849
  _bucketFiltered: 0,
17841
17850
  _bucketTotal: 0,
@@ -17843,8 +17852,8 @@ function SD({
17843
17852
  },
17844
17853
  classNames: [
17845
17854
  "courtdate-event",
17846
- z.Type?.toString().toLowerCase() || "unknown",
17847
- ...z.DateType ? [z.DateType.toString().toLowerCase()] : []
17855
+ F.Type?.toString().toLowerCase() || "unknown",
17856
+ ...F.DateType ? [F.DateType.toString().toLowerCase()] : []
17848
17857
  ]
17849
17858
  });
17850
17859
  continue;
@@ -17859,22 +17868,22 @@ function SD({
17859
17868
  const je = G.get(_e) || [];
17860
17869
  G.set(_e, [...je, ae]);
17861
17870
  }
17862
- const K = G.get("original") || [];
17863
- if (K.length > 0) {
17864
- const { filtered: ae, total: _e, unsettled: je } = D(K, z.MuniCode), ie = (oe) => (oe || "").toLowerCase() === "oa", ne = K.some(
17871
+ const Y = G.get("original") || [];
17872
+ if (Y.length > 0) {
17873
+ const { filtered: ae, total: _e, unsettled: je } = D(Y, F.MuniCode), ie = (oe) => (oe || "").toLowerCase() === "oa", ne = Y.some(
17865
17874
  (oe) => ie(oe.SCARDeterminationAction) || ie(oe.VillageSCARDeterminationAction)
17866
17875
  ), X = [
17867
17876
  "courtdate-event",
17868
- z.Type?.toString().toLowerCase() || "unknown",
17869
- ...z.DateType ? [z.DateType.toString().toLowerCase()] : []
17877
+ F.Type?.toString().toLowerCase() || "unknown",
17878
+ ...F.DateType ? [F.DateType.toString().toLowerCase()] : []
17870
17879
  ];
17871
- ne && X.push("adjourned-no-date"), I.push({
17872
- id: z.CourtDateID.toString(),
17873
- title: `${o(z.MuniCode)} (${z.MuniCode}) x${ae} (${_e})${$ ? " (day 1)" : ""}`,
17874
- start: z.CourtDate,
17880
+ ne && X.push("adjourned-no-date"), k.push({
17881
+ id: F.CourtDateID.toString(),
17882
+ title: `${o(F.MuniCode)} (${F.MuniCode}) x${ae} (${_e})${$ ? " (day 1)" : ""}`,
17883
+ start: F.CourtDate,
17875
17884
  allDay: !1,
17876
17885
  extendedProps: {
17877
- ...z,
17886
+ ...F,
17878
17887
  _bucketKey: "original",
17879
17888
  _bucketFiltered: ae,
17880
17889
  _bucketTotal: _e,
@@ -17886,17 +17895,21 @@ function SD({
17886
17895
  if (i.showAdjournmentDates)
17887
17896
  for (const [ae, _e] of G) {
17888
17897
  if (ae === "original") continue;
17889
- const { filtered: je, total: ie, unsettled: ne } = D(_e, z.MuniCode);
17890
- I.push({
17891
- id: `adjournment-${z.CourtDateID}-${ae}`,
17892
- title: `Adjournment - ${o(z.MuniCode)} (${z.MuniCode}) x${je} (${ie})`,
17898
+ const { filtered: je, total: ie, unsettled: ne } = D(_e, F.MuniCode);
17899
+ k.push({
17900
+ id: `adjournment-${F.CourtDateID}-${ae}`,
17901
+ title: `Adjournment - ${o(F.MuniCode)} (${F.MuniCode}) x${je} (${ie})`,
17893
17902
  start: (() => {
17894
- const [X, oe, Z] = ae.split("-").map(Number);
17895
- return new Date(X, oe - 1, Z);
17903
+ const [X, oe, Z] = ae.split("-").map(Number), he = new Date(X, oe - 1, Z);
17904
+ if (F.HearingTime) {
17905
+ const [ve, Te] = F.HearingTime.split(":").map(Number);
17906
+ he.setHours(ve, Te, 0, 0);
17907
+ }
17908
+ return he;
17896
17909
  })(),
17897
17910
  allDay: !1,
17898
17911
  extendedProps: {
17899
- ...z,
17912
+ ...F,
17900
17913
  _bucketKey: ae,
17901
17914
  _bucketFiltered: je,
17902
17915
  _bucketTotal: ie,
@@ -17904,62 +17917,69 @@ function SD({
17904
17917
  },
17905
17918
  classNames: [
17906
17919
  "adjournment-event",
17907
- z.Type?.toString().toLowerCase() || "unknown",
17908
- ...z.DateType ? [z.DateType.toString().toLowerCase()] : []
17920
+ F.Type?.toString().toLowerCase() || "unknown",
17921
+ ...F.DateType ? [F.DateType.toString().toLowerCase()] : []
17909
17922
  ]
17910
17923
  });
17911
17924
  }
17912
17925
  }
17913
- return I;
17914
- }, [_, i, o, e]), x = zt(() => _.flatMap((I) => !Array.isArray(I.MultipleDates) || I.MultipleDates.length === 0 ? [] : I.MultipleDates.filter(Boolean).map((z, Q) => ({
17915
- id: `multipledate-${I.CourtDateID}-${Q}`,
17916
- title: `${o(I.MuniCode)} (${I.MuniCode}) (day ${Q + 2})`,
17917
- start: z,
17918
- allDay: !1,
17919
- extendedProps: I,
17920
- classNames: [
17921
- "multipledate-event",
17922
- I.Type?.toString().toLowerCase() || "unknown",
17923
- ...I.DateType ? [I.DateType.toString().toLowerCase()] : []
17924
- ]
17925
- }))), [_, o]), H = zt(() => i.showUploadDeadlines ? _.filter((I) => I.UploadDeadline !== null).map((I) => ({
17926
- id: `deadline-${I.CourtDateID}`,
17927
- title: `Upload ${o(I.MuniCode)} (${I.MuniCode})`,
17928
- start: I.UploadDeadline,
17926
+ return k;
17927
+ }, [_, i, o, e]), x = zt(() => _.flatMap((k) => !Array.isArray(k.MultipleDates) || k.MultipleDates.length === 0 ? [] : k.MultipleDates.filter(Boolean).map((F, Q) => {
17928
+ const $ = new Date(F);
17929
+ if (k.HearingTime) {
17930
+ const [G, Y] = k.HearingTime.split(":").map(Number);
17931
+ $.setHours(G, Y, 0, 0);
17932
+ }
17933
+ return {
17934
+ id: `multipledate-${k.CourtDateID}-${Q}`,
17935
+ title: `${o(k.MuniCode)} (${k.MuniCode}) (day ${Q + 2})`,
17936
+ start: $,
17937
+ allDay: !1,
17938
+ extendedProps: k,
17939
+ classNames: [
17940
+ "multipledate-event",
17941
+ k.Type?.toString().toLowerCase() || "unknown",
17942
+ ...k.DateType ? [k.DateType.toString().toLowerCase()] : []
17943
+ ]
17944
+ };
17945
+ })), [_, o]), H = zt(() => i.showUploadDeadlines ? _.filter((k) => k.UploadDeadline !== null).map((k) => ({
17946
+ id: `deadline-${k.CourtDateID}`,
17947
+ title: `Upload ${o(k.MuniCode)} (${k.MuniCode})`,
17948
+ start: k.UploadDeadline,
17929
17949
  allDay: !0,
17930
- extendedProps: I,
17950
+ extendedProps: k,
17931
17951
  classNames: [
17932
17952
  "deadline-event",
17933
- I.Type?.toString().toLowerCase() || "unknown",
17934
- ...I.DateType ? [I.DateType.toString().toLowerCase()] : [],
17935
- I.Lifecycle === $t.UPLOADED ? "status-uploaded" : I.Lifecycle === $t.ASSIGNED ? "status-assigned" : "status-unknown"
17953
+ k.Type?.toString().toLowerCase() || "unknown",
17954
+ ...k.DateType ? [k.DateType.toString().toLowerCase()] : [],
17955
+ k.Lifecycle === $t.UPLOADED ? "status-uploaded" : k.Lifecycle === $t.ASSIGNED ? "status-assigned" : "status-unknown"
17936
17956
  ]
17937
17957
  })) : [], [_, i, o]);
17938
17958
  be(() => {
17939
17959
  r || (h([...R, ...H, ...x]), m(JSON.stringify([...R, ...H, ...x])));
17940
17960
  }, [R, H, x, r]), be(() => {
17941
17961
  if (Array.isArray(u)) {
17942
- const I = new Set(u.map((Q) => Q.id?.toString()).filter(Boolean)), z = setTimeout(() => {
17943
- E.current = I;
17962
+ const k = new Set(u.map((Q) => Q.id?.toString()).filter(Boolean)), F = setTimeout(() => {
17963
+ E.current = k;
17944
17964
  }, 0);
17945
- return () => clearTimeout(z);
17965
+ return () => clearTimeout(F);
17946
17966
  }
17947
17967
  }, [u, f]);
17948
- function L(I, z) {
17949
- let Q = [], $ = 0, G = null, K = null;
17950
- z && (G = z.view.activeStart, K = z.view.activeEnd);
17968
+ function L(k, F) {
17969
+ let Q = [], $ = 0, G = null, Y = null;
17970
+ F && (G = F.view.activeStart, Y = F.view.activeEnd);
17951
17971
  function ae(Me) {
17952
- if (!G || !K) return !0;
17972
+ if (!G || !Y) return !0;
17953
17973
  const We = new Date(Me.start);
17954
- return We >= G && We < K;
17974
+ return We >= G && We < Y;
17955
17975
  }
17956
17976
  Array.isArray(u) && (Q = u.filter(ae).filter((Me) => {
17957
17977
  const We = Me.id?.toString();
17958
17978
  return We && !E.current.has(We);
17959
- }), $ = Q.findIndex((Me) => Me.id === I.event.id));
17960
- const _e = I.event.id?.toString();
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");
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", {
17979
+ }), $ = Q.findIndex((Me) => Me.id === k.event.id));
17980
+ const _e = k.event.id?.toString();
17981
+ _e && !E.current.has(_e) ? (k.el.classList.add("pop-in-ccalendar-event"), k.el.style.animationDelay = `${30 * ($ >= 0 ? $ : 0)}ms`) : (k.el.classList.remove("pop-in-ccalendar-event"), k.el.style.animationDelay = "0ms");
17982
+ const je = k.event.extendedProps._bucketUnsettled ?? 0, ie = k.event.extendedProps._bucketTotal ?? 0, ne = k.event.extendedProps._bucketKey !== "original" && k.event.extendedProps._bucketKey !== void 0, X = k.event.extendedProps.MuniCode, oe = `${o(X)} (${X})`, Z = k.event.extendedProps.FirstChair, he = Z != null ? c[Z] : null, ve = he ? `${he.UserFirstName} ${he.UserLastName}` : "Unassigned", Te = k.event.start?.toLocaleString("en-US", {
17963
17983
  month: "2-digit",
17964
17984
  day: "2-digit",
17965
17985
  year: "2-digit",
@@ -17968,16 +17988,16 @@ function SD({
17968
17988
  hour12: !0
17969
17989
  }), De = `
17970
17990
  <div><strong>${oe}</strong><br/>
17971
- <em>Date:</em> ${Ie}<br/>
17972
- ${ne ? `<strong>Adjournment event for ${I.event.extendedProps._bucketKey}</strong><br/>` : ""}
17973
- <em>Upload Deadline:</em> ${I.event.extendedProps.UploadDeadline}<br/>
17991
+ <em>Date:</em> ${Te}<br/>
17992
+ ${ne ? `<strong>Adjournment event for ${k.event.extendedProps._bucketKey}</strong><br/>` : ""}
17993
+ <em>Upload Deadline:</em> ${k.event.extendedProps.UploadDeadline}<br/>
17974
17994
  <em>Cases:</em> ${je} Open (${ie} Total)<br/>
17975
- <em>Status:</em> ${I.event.extendedProps.Lifecycle}<br />
17976
- <em>First Chair:</em> ${ye}<br/>
17995
+ <em>Status:</em> ${k.event.extendedProps.Lifecycle}<br />
17996
+ <em>First Chair:</em> ${ve}<br/>
17977
17997
  <em>Click for more details</em>
17978
17998
  </div>
17979
17999
  `;
17980
- I.el.setAttribute("data-tooltip-id", "event-tooltip"), I.el.setAttribute("data-tooltip-html", De);
18000
+ k.el.setAttribute("data-tooltip-id", "event-tooltip"), k.el.setAttribute("data-tooltip-html", De);
17981
18001
  }
17982
18002
  return { events: u, filteredDates: _, eventHash: f, handleEventMount: L };
17983
18003
  }
@@ -18121,7 +18141,7 @@ function aA({ apiKey: t, activeUser: e, showLegend: n = !0 }) {
18121
18141
  return /* @__PURE__ */ w(yS, { apiKey: t, activeUser: e, children: /* @__PURE__ */ w(xD, { apiKey: t, activeUser: e, showLegend: n }) });
18122
18142
  }
18123
18143
  function xD({ apiKey: t, activeUser: e, showLegend: n }) {
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({
18144
+ 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: k, selectedDate: F, openCreateModal: Q, openDetailsModal: $, handleEventClick: G } = ED(), { scrollbarClicked: Y, 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: he, addPartialCasesToMemoryAndCache: ve, deleteCaseMemoryAndCache: Te } = wD({ apiKey: t, courtDates: X, selectedCourtDate: x }), { events: De, filteredDates: Me, eventHash: We, handleEventMount: tt } = SD({
18125
18145
  courtDates: X,
18126
18146
  allCases: oe,
18127
18147
  apiKey: t,
@@ -18129,7 +18149,7 @@ function xD({ apiKey: t, activeUser: e, showLegend: n }) {
18129
18149
  filterCtx: c
18130
18150
  });
18131
18151
  function lt(te) {
18132
- if (K) {
18152
+ if (Y) {
18133
18153
  ae();
18134
18154
  return;
18135
18155
  }
@@ -18159,8 +18179,8 @@ function xD({ apiKey: t, activeUser: e, showLegend: n }) {
18159
18179
  {
18160
18180
  value: {
18161
18181
  updateCourtDateInMemory: ie,
18162
- updateCases: (te) => ye(te, !1),
18163
- deleteCases: Ie
18182
+ updateCases: (te) => ve(te, !1),
18183
+ deleteCases: Te
18164
18184
  },
18165
18185
  children: /* @__PURE__ */ w(Jw, { value: { filterCtx: c, setFilterCtx: u }, children: /* @__PURE__ */ ee("div", { id: "ccalendar-container", children: [
18166
18186
  /* @__PURE__ */ w(
@@ -18174,7 +18194,7 @@ function xD({ apiKey: t, activeUser: e, showLegend: n }) {
18174
18194
  currentDate: m,
18175
18195
  setCurrentDate: y,
18176
18196
  activeUser: e,
18177
- isFetchingCases: pe,
18197
+ isFetchingCases: he,
18178
18198
  isAdmin: r
18179
18199
  }
18180
18200
  ),
@@ -18223,12 +18243,12 @@ function xD({ apiKey: t, activeUser: e, showLegend: n }) {
18223
18243
  {
18224
18244
  modalIsOpen: _,
18225
18245
  modalMode: L,
18226
- setModalMode: I,
18246
+ setModalMode: k,
18227
18247
  setIsOpen: R,
18228
18248
  selectedCourtDate: x,
18229
- selectedDate: z,
18249
+ selectedDate: F,
18230
18250
  selectedCases: Z,
18231
- isFetchingCases: pe
18251
+ isFetchingCases: he
18232
18252
  }
18233
18253
  ),
18234
18254
  /* @__PURE__ */ w(xE, { id: "event-tooltip", className: "cc-tooltip" }),