@cagatayfdn/flora-components 0.0.151 → 0.0.152

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.
@@ -4,7 +4,7 @@ import { c as wt } from "./index-BHf7G3IG.js";
4
4
  import "./hooks/useAauth.js";
5
5
  import Wo from "./hooks/useNiceModal.js";
6
6
  import "./components/Drawer/Provider.js";
7
- import Se from "./components/Icon/index.js";
7
+ import ye from "./components/Icon/index.js";
8
8
  import { N as No } from "./index-H7XbDVmH.js";
9
9
  import "./assets/images/500_error_2x.gif";
10
10
  import et, { t as pt } from "./locales/i18n.js";
@@ -79,7 +79,7 @@ function On(e, t) {
79
79
  function se(...e) {
80
80
  return e;
81
81
  }
82
- function J(e, t) {
82
+ function Q(e, t) {
83
83
  return e(Fe, t);
84
84
  }
85
85
  function G(e, t) {
@@ -92,9 +92,9 @@ function ce(e) {
92
92
  return e(Oo);
93
93
  }
94
94
  function M(e, t) {
95
- return J(e, Nn(t, _t));
95
+ return Q(e, Nn(t, _t));
96
96
  }
97
- function je(e, t) {
97
+ function Me(e, t) {
98
98
  const o = e(Fe, (n) => {
99
99
  o(), t(n);
100
100
  });
@@ -138,7 +138,7 @@ function x(e, ...t) {
138
138
  Kt(e);
139
139
  return;
140
140
  case Fe:
141
- return J(e, o(r));
141
+ return Q(e, o(r));
142
142
  }
143
143
  };
144
144
  }
@@ -166,7 +166,7 @@ function F(...e) {
166
166
  const r = Math.pow(2, e.length) - 1;
167
167
  return e.forEach((i, s) => {
168
168
  const l = Math.pow(2, s);
169
- J(i, (c) => {
169
+ Q(i, (c) => {
170
170
  const a = o;
171
171
  o = o | l, t[s] = c, a !== r && o === r && n && (n(), n = null);
172
172
  });
@@ -186,7 +186,7 @@ function Dn(e) {
186
186
  return function(r, i) {
187
187
  switch (r) {
188
188
  case Fe:
189
- return i ? o === i ? void 0 : (n(), o = i, t = J(e, i), t) : (n(), mt);
189
+ return i ? o === i ? void 0 : (n(), o = i, t = Q(e, i), t) : (n(), mt);
190
190
  case nt:
191
191
  n(), o = null;
192
192
  return;
@@ -234,10 +234,10 @@ function U() {
234
234
  }
235
235
  };
236
236
  }
237
- function be(e) {
237
+ function He(e) {
238
238
  return Rt(U(), (t) => M(e, t));
239
239
  }
240
- function Q(e, t = [], { singleton: o } = { singleton: !0 }) {
240
+ function ee(e, t = [], { singleton: o } = { singleton: !0 }) {
241
241
  return {
242
242
  constructor: e,
243
243
  dependencies: t,
@@ -255,13 +255,13 @@ function Gn(e) {
255
255
  };
256
256
  return o(e);
257
257
  }
258
- function ae(...e) {
258
+ function ue(...e) {
259
259
  const t = U(), o = new Array(e.length);
260
260
  let n = 0;
261
261
  const r = Math.pow(2, e.length) - 1;
262
262
  return e.forEach((i, s) => {
263
263
  const l = Math.pow(2, s);
264
- J(i, (c) => {
264
+ Q(i, (c) => {
265
265
  o[s] = c, n = n | l, n === r && G(t, o);
266
266
  });
267
267
  }), function(i, s) {
@@ -271,7 +271,7 @@ function ae(...e) {
271
271
  return;
272
272
  }
273
273
  case Fe:
274
- return n === r && s(o), J(t, s);
274
+ return n === r && s(o), Q(t, s);
275
275
  }
276
276
  };
277
277
  }
@@ -284,7 +284,7 @@ function Dt(...e) {
284
284
  case nt:
285
285
  return;
286
286
  case Fe:
287
- return An(...e.map((n) => J(n, o)));
287
+ return An(...e.map((n) => Q(n, o)));
288
288
  }
289
289
  };
290
290
  }
@@ -294,7 +294,7 @@ const Fn = {
294
294
  3: "error",
295
295
  1: "log",
296
296
  2: "warn"
297
- }, $n = () => typeof globalThis > "u" ? window : globalThis, $e = Q(
297
+ }, $n = () => typeof globalThis > "u" ? window : globalThis, $e = ee(
298
298
  () => {
299
299
  const e = H(
300
300
  3
@@ -422,7 +422,7 @@ function Vo(e, t, o) {
422
422
  }
423
423
  }, [l, t, s]), i;
424
424
  }
425
- const xe = Q(
425
+ const xe = ee(
426
426
  () => {
427
427
  const e = U(), t = U(), o = H(0), n = U(), r = H(0), i = U(), s = U(), l = H(0), c = H(0), a = H(0), h = H(0), w = U(), g = U(), v = H(!1), S = H(!1), k = H(!1);
428
428
  return M(
@@ -481,19 +481,19 @@ function ct(e, t) {
481
481
  if (!ne(e))
482
482
  return t === e.k ? e.v : t < e.k ? ct(e.l, t) : ct(e.r, t);
483
483
  }
484
- function Me(e, t, o = "k") {
484
+ function We(e, t, o = "k") {
485
485
  if (ne(e))
486
486
  return [-1 / 0, void 0];
487
487
  if (Number(e[o]) === t)
488
488
  return [e.k, e.v];
489
489
  if (Number(e[o]) < t) {
490
- const n = Me(e.r, t, o);
490
+ const n = We(e.r, t, o);
491
491
  return n[0] === -1 / 0 ? [e.k, e.v] : n;
492
492
  }
493
- return Me(e.l, t, o);
493
+ return We(e.l, t, o);
494
494
  }
495
- function ye(e, t, o) {
496
- return ne(e) ? qo(t, o, 1) : t === e.k ? de(e, { k: t, v: o }) : t < e.k ? To(de(e, { l: ye(e.l, t, o) })) : To(de(e, { r: ye(e.r, t, o) }));
495
+ function be(e, t, o) {
496
+ return ne(e) ? qo(t, o, 1) : t === e.k ? me(e, { k: t, v: o }) : t < e.k ? To(me(e, { l: be(e.l, t, o) })) : To(me(e, { r: be(e.r, t, o) }));
497
497
  }
498
498
  function ot() {
499
499
  return lt;
@@ -501,7 +501,7 @@ function ot() {
501
501
  function Et(e, t, o) {
502
502
  if (ne(e))
503
503
  return [];
504
- const n = Me(e, t)[0];
504
+ const n = We(e, t)[0];
505
505
  return Kn(Gt(e, n, o));
506
506
  }
507
507
  function Vt(e, t) {
@@ -515,10 +515,10 @@ function Vt(e, t) {
515
515
  return n;
516
516
  {
517
517
  const [i, s] = $o(n);
518
- return Ct(de(e, { k: i, l: Fo(n), v: s }));
518
+ return Ct(me(e, { k: i, l: Fo(n), v: s }));
519
519
  }
520
520
  } else
521
- return t < o ? Ct(de(e, { l: Vt(n, t) })) : Ct(de(e, { r: Vt(r, t) }));
521
+ return t < o ? Ct(me(e, { l: Vt(n, t) })) : Ct(me(e, { r: Vt(r, t) }));
522
522
  }
523
523
  function Ke(e) {
524
524
  return ne(e) ? [] : [...Ke(e.l), { k: e.k, v: e.v }, ...Ke(e.r)];
@@ -536,12 +536,12 @@ function Ct(e) {
536
536
  return e;
537
537
  if (o > n.lvl + 1) {
538
538
  if (Mt(t))
539
- return Uo(de(e, { lvl: o - 1 }));
539
+ return Uo(me(e, { lvl: o - 1 }));
540
540
  if (!ne(t) && !ne(t.r))
541
- return de(t.r, {
542
- l: de(t, { r: t.r.l }),
541
+ return me(t.r, {
542
+ l: me(t, { r: t.r.l }),
543
543
  lvl: o,
544
- r: de(e, {
544
+ r: me(e, {
545
545
  l: t.r.r,
546
546
  lvl: o - 1
547
547
  })
@@ -549,22 +549,22 @@ function Ct(e) {
549
549
  throw new Error("Unexpected empty nodes");
550
550
  } else {
551
551
  if (Mt(e))
552
- return Ft(de(e, { lvl: o - 1 }));
552
+ return Ft(me(e, { lvl: o - 1 }));
553
553
  if (!ne(n) && !ne(n.l)) {
554
554
  const r = n.l, i = Mt(r) ? n.lvl - 1 : n.lvl;
555
- return de(r, {
556
- l: de(e, {
555
+ return me(r, {
556
+ l: me(e, {
557
557
  lvl: o - 1,
558
558
  r: r.l
559
559
  }),
560
560
  lvl: r.lvl + 1,
561
- r: Ft(de(n, { l: r.r, lvl: i }))
561
+ r: Ft(me(n, { l: r.r, lvl: i }))
562
562
  });
563
563
  } else
564
564
  throw new Error("Unexpected empty nodes");
565
565
  }
566
566
  }
567
- function de(e, t) {
567
+ function me(e, t) {
568
568
  return qo(
569
569
  t.k !== void 0 ? t.k : e.k,
570
570
  t.v !== void 0 ? t.v : e.v,
@@ -574,7 +574,7 @@ function de(e, t) {
574
574
  );
575
575
  }
576
576
  function Fo(e) {
577
- return ne(e.r) ? e.l : Ct(de(e, { r: Fo(e.r) }));
577
+ return ne(e.r) ? e.l : Ct(me(e, { r: Fo(e.r) }));
578
578
  }
579
579
  function Mt(e) {
580
580
  return ne(e) || e.lvl > e.r.lvl;
@@ -590,11 +590,11 @@ function To(e) {
590
590
  }
591
591
  function Uo(e) {
592
592
  const { l: t } = e;
593
- return !ne(t) && t.lvl === e.lvl ? de(t, { r: de(e, { l: t.r }) }) : e;
593
+ return !ne(t) && t.lvl === e.lvl ? me(t, { r: me(e, { l: t.r }) }) : e;
594
594
  }
595
595
  function Ft(e) {
596
596
  const { lvl: t, r: o } = e;
597
- return !ne(o) && !ne(o.r) && o.lvl === t && o.r.lvl === t ? de(o, { l: de(e, { r: o.l }), lvl: t + 1 }) : e;
597
+ return !ne(o) && !ne(o.r) && o.lvl === t && o.r.lvl === t ? me(o, { l: me(e, { r: o.l }), lvl: t + 1 }) : e;
598
598
  }
599
599
  function Kn(e) {
600
600
  return Go(e, ({ k: t, v: o }) => ({ index: t, value: o }));
@@ -605,7 +605,7 @@ function Ko(e, t) {
605
605
  function at(e, t) {
606
606
  return !!(e && e[0] === t[0] && e[1] === t[1]);
607
607
  }
608
- const Xt = Q(
608
+ const Xt = ee(
609
609
  () => ({ recalcInProgress: H(!1) }),
610
610
  [],
611
611
  { singleton: !0 }
@@ -660,7 +660,7 @@ function Zn(e, t) {
660
660
  for (const n of t) {
661
661
  const { endIndex: r, size: i, startIndex: s } = n;
662
662
  if (o = Math.min(o, s), ne(e)) {
663
- e = ye(e, 0, i);
663
+ e = be(e, 0, i);
664
664
  continue;
665
665
  }
666
666
  const l = Et(e, s - 1, r + 1);
@@ -668,8 +668,8 @@ function Zn(e, t) {
668
668
  continue;
669
669
  let c = !1, a = !1;
670
670
  for (const { end: h, start: w, value: g } of l)
671
- c ? (r >= w || i === g) && (e = Vt(e, w)) : (a = g !== i, c = !0), h > r && r >= w && g !== i && (e = ye(e, r + 1, g));
672
- a && (e = ye(e, s, i));
671
+ c ? (r >= w || i === g) && (e = Vt(e, w)) : (a = g !== i, c = !0), h > r && r >= w && g !== i && (e = be(e, r + 1, g));
672
+ a && (e = be(e, s, i));
673
673
  }
674
674
  return [e, o];
675
675
  }
@@ -711,7 +711,7 @@ function tr(e, [t, o, n, r]) {
711
711
  let s = i, l = 0;
712
712
  if (o.length > 0 && ne(i) && t.length === 2) {
713
713
  const g = t[0].size, v = t[1].size;
714
- s = o.reduce((S, k) => ye(ye(S, k, g), k + 1, v), s);
714
+ s = o.reduce((S, k) => be(be(S, k, g), k + 1, v), s);
715
715
  } else
716
716
  [s, l] = Zn(s, t);
717
717
  if (s === i)
@@ -719,7 +719,7 @@ function tr(e, [t, o, n, r]) {
719
719
  const { lastIndex: c, lastOffset: a, lastSize: h, offsetTree: w } = $t(e.offsetTree, l, s, r);
720
720
  return {
721
721
  groupIndices: o,
722
- groupOffsetTree: o.reduce((g, v) => ye(g, v, ut(v, w, r)), ot()),
722
+ groupOffsetTree: o.reduce((g, v) => be(g, v, ut(v, w, r)), ot()),
723
723
  lastIndex: c,
724
724
  lastOffset: a,
725
725
  lastSize: h,
@@ -743,8 +743,8 @@ function $t(e, t, o, n) {
743
743
  let r = e, i = 0, s = 0, l = 0, c = 0;
744
744
  if (t !== 0) {
745
745
  c = yt(r, t - 1, Zt), l = r[c].offset;
746
- const a = Me(o, t - 1);
747
- i = a[0], s = a[1], r.length && r[c].size === Me(o, t)[1] && (c -= 1), r = r.slice(0, c + 1);
746
+ const a = We(o, t - 1);
747
+ i = a[0], s = a[1], r.length && r[c].size === We(o, t)[1] && (c -= 1), r = r.slice(0, c + 1);
748
748
  } else
749
749
  r = [];
750
750
  for (const { start: a, value: h } of Et(o, t, 1 / 0)) {
@@ -772,7 +772,7 @@ function rr(e) {
772
772
  const ir = {
773
773
  offsetHeight: "height",
774
774
  offsetWidth: "width"
775
- }, Oe = Q(
775
+ }, Oe = ee(
776
776
  ([{ log: e }, { recalcInProgress: t }]) => {
777
777
  const o = U(), n = U(), r = pe(n, 0), i = U(), s = U(), l = H(0), c = H([]), a = H(void 0), h = H(void 0), w = H((m, u) => Ge(m, ir[u])), g = H(void 0), v = H(0), S = Xn(), k = pe(
778
778
  x(o, F(c, e, v), Ae(tr, S), ie()),
@@ -795,7 +795,7 @@ const ir = {
795
795
  P((m) => m.length > 0),
796
796
  F(k, v),
797
797
  E(([m, u, y]) => {
798
- const _ = m.reduce((j, z, N) => ye(j, z, ut(z, u.offsetTree, y) || N), ot());
798
+ const _ = m.reduce((j, z, N) => be(j, z, ut(z, u.offsetTree, y) || N), ot());
799
799
  return {
800
800
  ...u,
801
801
  groupIndices: m,
@@ -834,7 +834,7 @@ const ir = {
834
834
  ),
835
835
  o
836
836
  );
837
- const d = be(
837
+ const d = He(
838
838
  x(
839
839
  o,
840
840
  F(k),
@@ -848,7 +848,7 @@ const ir = {
848
848
  E((m) => m.changed)
849
849
  )
850
850
  );
851
- J(
851
+ Q(
852
852
  x(
853
853
  l,
854
854
  Ae(
@@ -866,14 +866,14 @@ const ir = {
866
866
  y.length > 0 && (m -= wo(-m, y)), G(s, m);
867
867
  }
868
868
  }
869
- ), J(x(l, F(e)), ([m, u]) => {
869
+ ), Q(x(l, F(e)), ([m, u]) => {
870
870
  m < 0 && u(
871
871
  "`firstItemIndex` prop should not be set to less than zero. If you don't know the total count, just use a very high value",
872
872
  { firstItemIndex: l },
873
873
  Ie.ERROR
874
874
  );
875
875
  });
876
- const b = be(i);
876
+ const b = He(i);
877
877
  M(
878
878
  x(
879
879
  i,
@@ -895,9 +895,9 @@ const ir = {
895
895
  startIndex: B + 1
896
896
  }), $++, N += K + 1;
897
897
  }
898
- const ee = Ke(u.sizeTree);
899
- return N !== m && ee.shift(), ee.reduce(
900
- (B, { k: K, v: Y }) => {
898
+ const te = Ke(u.sizeTree);
899
+ return N !== m && te.shift(), te.reduce(
900
+ (B, { k: K, v: X }) => {
901
901
  let ve = B.ranges;
902
902
  return B.prevSize !== 0 && (ve = [
903
903
  ...B.ranges,
@@ -908,7 +908,7 @@ const ir = {
908
908
  }
909
909
  ]), {
910
910
  prevIndex: K + m,
911
- prevSize: Y,
911
+ prevSize: X,
912
912
  ranges: ve
913
913
  };
914
914
  },
@@ -935,7 +935,7 @@ const ir = {
935
935
  ),
936
936
  o
937
937
  );
938
- const R = be(
938
+ const R = He(
939
939
  x(
940
940
  s,
941
941
  F(k, v),
@@ -958,14 +958,14 @@ const ir = {
958
958
  let z = 0, N = 0, $ = 0;
959
959
  for (; z < -m; ) {
960
960
  $ = j[N];
961
- const ee = j[N + 1] - $ - 1;
962
- N++, z += ee + 1;
961
+ const te = j[N + 1] - $ - 1;
962
+ N++, z += te + 1;
963
963
  }
964
- if (_ = Ke(u.sizeTree).reduce((ee, { k: B, v: K }) => ye(ee, Math.max(0, B + m), K), _), z !== -m) {
965
- const ee = ct(u.sizeTree, $);
966
- _ = ye(_, 0, ee);
967
- const B = Me(u.sizeTree, -m + 1)[1];
968
- _ = ye(_, 1, B);
964
+ if (_ = Ke(u.sizeTree).reduce((te, { k: B, v: K }) => be(te, Math.max(0, B + m), K), _), z !== -m) {
965
+ const te = ct(u.sizeTree, $);
966
+ _ = be(_, 0, te);
967
+ const B = We(u.sizeTree, -m + 1)[1];
968
+ _ = be(_, 1, B);
969
969
  }
970
970
  return {
971
971
  ...u,
@@ -973,7 +973,7 @@ const ir = {
973
973
  ...$t(u.offsetTree, 0, _, y)
974
974
  };
975
975
  } else {
976
- const _ = Ke(u.sizeTree).reduce((j, { k: z, v: N }) => ye(j, Math.max(0, z + m), N), ot());
976
+ const _ = Ke(u.sizeTree).reduce((j, { k: z, v: N }) => be(j, Math.max(0, z + m), N), ot());
977
977
  return {
978
978
  ...u,
979
979
  sizeTree: _,
@@ -1017,9 +1017,9 @@ function sr(e) {
1017
1017
  }
1018
1018
  );
1019
1019
  }
1020
- const Jo = Q(
1020
+ const Jo = ee(
1021
1021
  ([{ groupIndices: e, sizes: t, totalCount: o }, { headerHeight: n, scrollTop: r }]) => {
1022
- const i = U(), s = U(), l = be(x(i, E(sr)));
1022
+ const i = U(), s = U(), l = He(x(i, E(sr)));
1023
1023
  return M(
1024
1024
  x(
1025
1025
  l,
@@ -1034,9 +1034,9 @@ const Jo = Q(
1034
1034
  e
1035
1035
  ), M(
1036
1036
  x(
1037
- ae(r, t, n),
1037
+ ue(r, t, n),
1038
1038
  P(([c, a]) => zt(a)),
1039
- E(([c, a, h]) => Me(a.groupOffsetTree, Math.max(c - h, 0), "v")[0]),
1039
+ E(([c, a, h]) => We(a.groupOffsetTree, Math.max(c - h, 0), "v")[0]),
1040
1040
  ie(),
1041
1041
  E((c) => [c])
1042
1042
  ),
@@ -1044,16 +1044,16 @@ const Jo = Q(
1044
1044
  ), { groupCounts: i, topItemsIndexes: s };
1045
1045
  },
1046
1046
  se(Oe, xe)
1047
- ), qe = Q(
1047
+ ), qe = ee(
1048
1048
  ([{ log: e }]) => {
1049
- const t = H(!1), o = be(
1049
+ const t = H(!1), o = He(
1050
1050
  x(
1051
1051
  t,
1052
1052
  P((n) => n),
1053
1053
  ie()
1054
1054
  )
1055
1055
  );
1056
- return J(t, (n) => {
1056
+ return Q(t, (n) => {
1057
1057
  n && ce(e)("props updated", {}, Ie.DEBUG);
1058
1058
  }), { didMount: o, propsReady: t };
1059
1059
  },
@@ -1064,7 +1064,7 @@ function Qo(e) {
1064
1064
  const t = typeof e == "number" ? { index: e } : e;
1065
1065
  return t.align || (t.align = "start"), (!t.behavior || !lr) && (t.behavior = "auto"), t.offset || (t.offset = 0), t;
1066
1066
  }
1067
- const ft = Q(
1067
+ const ft = ee(
1068
1068
  ([
1069
1069
  { gap: e, listRefresh: t, sizes: o, totalCount: n },
1070
1070
  {
@@ -1093,27 +1093,27 @@ const ft = Q(
1093
1093
  ([
1094
1094
  [R, m, u, y, _, j, z, N],
1095
1095
  $,
1096
- ee,
1096
+ te,
1097
1097
  B
1098
1098
  ]) => {
1099
- const K = Qo(R), { align: Y, behavior: ve, offset: Te } = K, we = y - 1, fe = Zo(K, m, we);
1100
- let me = ut(fe, m.offsetTree, $) + j;
1101
- Y === "end" ? (me += ee + Me(m.sizeTree, fe)[1] - u + B, fe === we && (me += z)) : Y === "center" ? me += (ee + Me(m.sizeTree, fe)[1] - u + B) / 2 : me -= _, Te && (me += Te);
1102
- const Be = (Ce) => {
1099
+ const K = Qo(R), { align: X, behavior: ve, offset: Te } = K, we = y - 1, he = Zo(K, m, we);
1100
+ let fe = ut(he, m.offsetTree, $) + j;
1101
+ X === "end" ? (fe += te + We(m.sizeTree, he)[1] - u + B, he === we && (fe += z)) : X === "center" ? fe += (te + We(m.sizeTree, he)[1] - u + B) / 2 : fe -= _, Te && (fe += Te);
1102
+ const Le = (Ce) => {
1103
1103
  b(), Ce ? (N("retrying to scroll to", { location: R }, Ie.DEBUG), G(v, R)) : (G(S, !0), N("list did not change, scroll successful", {}, Ie.DEBUG));
1104
1104
  };
1105
1105
  if (b(), ve === "smooth") {
1106
1106
  let Ce = !1;
1107
- d = J(t, (Ve) => {
1107
+ d = Q(t, (Ve) => {
1108
1108
  Ce = Ce || Ve;
1109
- }), p = je(h, () => {
1110
- Be(Ce);
1109
+ }), p = Me(h, () => {
1110
+ Le(Ce);
1111
1111
  });
1112
1112
  } else
1113
- p = je(x(t, cr(150)), Be);
1113
+ p = Me(x(t, cr(150)), Le);
1114
1114
  return f = setTimeout(() => {
1115
1115
  b();
1116
- }, 1200), G(c, !0), N("scrolling from index to", { behavior: ve, index: fe, top: me }, Ie.DEBUG), { behavior: ve, top: me };
1116
+ }, 1200), G(c, !0), N("scrolling from index to", { behavior: ve, index: he, top: fe }, Ie.DEBUG), { behavior: ve, top: fe };
1117
1117
  }
1118
1118
  )
1119
1119
  ),
@@ -1146,7 +1146,7 @@ function Qt(e, t) {
1146
1146
  const o = t - 1;
1147
1147
  return typeof e == "number" ? e : e.index === "LAST" ? o : e.index;
1148
1148
  }
1149
- const ht = Q(
1149
+ const ht = ee(
1150
1150
  ([{ defaultItemSize: e, listRefresh: t, sizes: o }, { scrollTop: n }, { scrollTargetReached: r, scrollToIndex: i }, { didMount: s }]) => {
1151
1151
  const l = H(!0), c = H(0), a = H(!0);
1152
1152
  return M(
@@ -1165,18 +1165,18 @@ const ht = Q(
1165
1165
  Ne(!1)
1166
1166
  ),
1167
1167
  a
1168
- ), J(
1168
+ ), Q(
1169
1169
  x(
1170
- ae(t, s),
1170
+ ue(t, s),
1171
1171
  F(l, o, e, a),
1172
1172
  P(([[, h], w, { sizeTree: g }, v, S]) => h && (!ne(g) || Ut(v)) && !w && !S),
1173
1173
  F(c)
1174
1174
  ),
1175
1175
  ([, h]) => {
1176
- je(r, () => {
1176
+ Me(r, () => {
1177
1177
  G(a, !0);
1178
1178
  }), Jt(4, () => {
1179
- je(n, () => {
1179
+ Me(n, () => {
1180
1180
  G(l, !0);
1181
1181
  }), G(i, h);
1182
1182
  });
@@ -1202,7 +1202,7 @@ const dt = "up", it = "down", ar = "none", ur = {
1202
1202
  scrollTop: 0,
1203
1203
  viewportHeight: 0
1204
1204
  }
1205
- }, dr = 0, gt = Q(([{ footerHeight: e, headerHeight: t, scrollBy: o, scrollContainerState: n, scrollTop: r, viewportHeight: i }]) => {
1205
+ }, dr = 0, gt = ee(([{ footerHeight: e, headerHeight: t, scrollBy: o, scrollContainerState: n, scrollTop: r, viewportHeight: i }]) => {
1206
1206
  const s = H(!1), l = H(!0), c = U(), a = U(), h = H(4), w = H(dr), g = pe(
1207
1207
  x(
1208
1208
  Dt(x(A(r), Ye(1), Ne(!0)), x(A(r), Ye(1), Ne(!1), vo(100))),
@@ -1215,15 +1215,15 @@ const dt = "up", it = "down", ar = "none", ur = {
1215
1215
  );
1216
1216
  M(
1217
1217
  x(
1218
- ae(A(r), A(w)),
1218
+ ue(A(r), A(w)),
1219
1219
  E(([d, b]) => d <= b),
1220
1220
  ie()
1221
1221
  ),
1222
1222
  l
1223
1223
  ), M(x(l, De(50)), a);
1224
- const S = be(
1224
+ const S = He(
1225
1225
  x(
1226
- ae(n, A(i), A(t), A(e), A(h)),
1226
+ ue(n, A(i), A(t), A(e), A(h)),
1227
1227
  Ae((d, [{ scrollHeight: b, scrollTop: R }, m, u, y, _]) => {
1228
1228
  const j = R + m - b > -_, z = {
1229
1229
  scrollHeight: b,
@@ -1231,11 +1231,11 @@ const dt = "up", it = "down", ar = "none", ur = {
1231
1231
  viewportHeight: m
1232
1232
  };
1233
1233
  if (j) {
1234
- let $, ee;
1235
- return R > d.state.scrollTop ? ($ = "SCROLLED_DOWN", ee = d.state.scrollTop - R) : ($ = "SIZE_DECREASED", ee = d.state.scrollTop - R || d.scrollTopDelta), {
1234
+ let $, te;
1235
+ return R > d.state.scrollTop ? ($ = "SCROLLED_DOWN", te = d.state.scrollTop - R) : ($ = "SIZE_DECREASED", te = d.state.scrollTop - R || d.scrollTopDelta), {
1236
1236
  atBottom: !0,
1237
1237
  atBottomBecause: $,
1238
- scrollTopDelta: ee,
1238
+ scrollTopDelta: te,
1239
1239
  state: z
1240
1240
  };
1241
1241
  }
@@ -1342,11 +1342,11 @@ function yo(e, t) {
1342
1342
  var o;
1343
1343
  return typeof e == "number" ? e : (o = e[t]) != null ? o : 0;
1344
1344
  }
1345
- const eo = Q(
1345
+ const eo = ee(
1346
1346
  ([{ deviation: e, fixedHeaderHeight: t, headerHeight: o, scrollTop: n, viewportHeight: r }]) => {
1347
1347
  const i = U(), s = H(0), l = H(0), c = H(0), a = pe(
1348
1348
  x(
1349
- ae(
1349
+ ue(
1350
1350
  A(n),
1351
1351
  A(r),
1352
1352
  A(o),
@@ -1400,7 +1400,7 @@ function mr(e, t, o) {
1400
1400
  if (zt(t)) {
1401
1401
  const n = Xo(e, t);
1402
1402
  return [
1403
- { index: Me(t.groupOffsetTree, n)[0], offset: 0, size: 0 },
1403
+ { index: We(t.groupOffsetTree, n)[0], offset: 0, size: 0 },
1404
1404
  { data: o == null ? void 0 : o[0], index: n, offset: 0, size: 0 }
1405
1405
  ];
1406
1406
  }
@@ -1480,7 +1480,7 @@ function bo(e, t, o) {
1480
1480
  }
1481
1481
  return i;
1482
1482
  }
1483
- const Ze = Q(
1483
+ const Ze = ee(
1484
1484
  ([
1485
1485
  { data: e, firstItemIndex: t, gap: o, sizes: n, totalCount: r },
1486
1486
  i,
@@ -1495,7 +1495,7 @@ const Ze = Q(
1495
1495
  M(i.topItemsIndexes, k);
1496
1496
  const d = pe(
1497
1497
  x(
1498
- ae(
1498
+ ue(
1499
1499
  v,
1500
1500
  S,
1501
1501
  A(c, at),
@@ -1522,56 +1522,56 @@ const Ze = Q(
1522
1522
  z,
1523
1523
  N,
1524
1524
  $,
1525
- ee,
1525
+ te,
1526
1526
  B,
1527
1527
  K
1528
1528
  ]) => {
1529
- const Y = j, { offsetTree: ve, sizeTree: Te } = Y, we = ce(p);
1529
+ const X = j, { offsetTree: ve, sizeTree: Te } = X, we = ce(p);
1530
1530
  if (_ === 0)
1531
1531
  return { ...Wt, totalCount: _ };
1532
1532
  if (u === 0 && y === 0)
1533
- return we === 0 ? { ...Wt, totalCount: _ } : tn(we, z, j, ee, B, K || []);
1533
+ return we === 0 ? { ...Wt, totalCount: _ } : tn(we, z, j, te, B, K || []);
1534
1534
  if (ne(Te))
1535
1535
  return we > 0 ? null : St(
1536
- mr(Qt(z, _), Y, K),
1536
+ mr(Qt(z, _), X, K),
1537
1537
  [],
1538
1538
  _,
1539
1539
  B,
1540
- Y,
1541
- ee
1540
+ X,
1541
+ te
1542
1542
  );
1543
- const fe = [];
1543
+ const he = [];
1544
1544
  if ($.length > 0) {
1545
- const Le = $[0], He = $[$.length - 1];
1546
- let ke = 0;
1547
- for (const T of Et(Te, Le, He)) {
1548
- const O = T.value, te = Math.max(T.start, Le), ue = Math.min(T.end, He);
1549
- for (let C = te; C <= ue; C++)
1550
- fe.push({ data: K == null ? void 0 : K[C], index: C, offset: ke, size: O }), ke += O;
1545
+ const je = $[0], ke = $[$.length - 1];
1546
+ let _e = 0;
1547
+ for (const T of Et(Te, je, ke)) {
1548
+ const O = T.value, oe = Math.max(T.start, je), de = Math.min(T.end, ke);
1549
+ for (let C = oe; C <= de; C++)
1550
+ he.push({ data: K == null ? void 0 : K[C], index: C, offset: _e, size: O }), _e += O;
1551
1551
  }
1552
1552
  }
1553
1553
  if (!N)
1554
- return St([], fe, _, B, Y, ee);
1555
- const me = $.length > 0 ? $[$.length - 1] + 1 : 0, Be = er(ve, u, y, me);
1556
- if (Be.length === 0)
1554
+ return St([], he, _, B, X, te);
1555
+ const fe = $.length > 0 ? $[$.length - 1] + 1 : 0, Le = er(ve, u, y, fe);
1556
+ if (Le.length === 0)
1557
1557
  return null;
1558
- const Ce = _ - 1, Ve = Rt([], (Le) => {
1559
- for (const He of Be) {
1560
- const ke = He.value;
1561
- let T = ke.offset, O = He.start;
1562
- const te = ke.size;
1563
- if (ke.offset < u) {
1564
- O += Math.floor((u - ke.offset + B) / (te + B));
1565
- const C = O - He.start;
1566
- T += C * te + C * B;
1558
+ const Ce = _ - 1, Ve = Rt([], (je) => {
1559
+ for (const ke of Le) {
1560
+ const _e = ke.value;
1561
+ let T = _e.offset, O = ke.start;
1562
+ const oe = _e.size;
1563
+ if (_e.offset < u) {
1564
+ O += Math.floor((u - _e.offset + B) / (oe + B));
1565
+ const C = O - ke.start;
1566
+ T += C * oe + C * B;
1567
1567
  }
1568
- O < me && (T += (me - O) * te, O = me);
1569
- const ue = Math.min(He.end, Ce);
1570
- for (let C = O; C <= ue && !(T >= y); C++)
1571
- Le.push({ data: K == null ? void 0 : K[C], index: C, offset: T, size: te }), T += te + B;
1568
+ O < fe && (T += (fe - O) * oe, O = fe);
1569
+ const de = Math.min(ke.end, Ce);
1570
+ for (let C = O; C <= de && !(T >= y); C++)
1571
+ je.push({ data: K == null ? void 0 : K[C], index: C, offset: T, size: oe }), T += oe + B;
1572
1572
  }
1573
1573
  });
1574
- return St(Ve, fe, _, B, Y, ee);
1574
+ return St(Ve, he, _, B, X, te);
1575
1575
  }
1576
1576
  ),
1577
1577
  //@ts-expect-error filter needs to be fixed
@@ -1606,7 +1606,7 @@ const Ze = Q(
1606
1606
  ),
1607
1607
  f
1608
1608
  );
1609
- const b = be(
1609
+ const b = He(
1610
1610
  x(
1611
1611
  d,
1612
1612
  P(({ items: u }) => u.length > 0),
@@ -1616,7 +1616,7 @@ const Ze = Q(
1616
1616
  ie(at),
1617
1617
  E(([u]) => u)
1618
1618
  )
1619
- ), R = be(
1619
+ ), R = He(
1620
1620
  x(
1621
1621
  d,
1622
1622
  De(200),
@@ -1624,7 +1624,7 @@ const Ze = Q(
1624
1624
  E(({ items: u }) => u[0].index),
1625
1625
  ie()
1626
1626
  )
1627
- ), m = be(
1627
+ ), m = He(
1628
1628
  x(
1629
1629
  d,
1630
1630
  P(({ items: u }) => u.length > 0),
@@ -1655,11 +1655,11 @@ const Ze = Q(
1655
1655
  Xt
1656
1656
  ),
1657
1657
  { singleton: !0 }
1658
- ), on = Q(
1658
+ ), on = ee(
1659
1659
  ([{ fixedFooterHeight: e, fixedHeaderHeight: t, footerHeight: o, headerHeight: n }, { listState: r }]) => {
1660
1660
  const i = U(), s = pe(
1661
1661
  x(
1662
- ae(o, e, n, t, r),
1662
+ ue(o, e, n, t, r),
1663
1663
  E(([l, c, a, h, w]) => l + c + a + h + w.offsetBottom + w.bottom)
1664
1664
  ),
1665
1665
  0
@@ -1668,11 +1668,11 @@ const Ze = Q(
1668
1668
  },
1669
1669
  se(xe, Ze),
1670
1670
  { singleton: !0 }
1671
- ), fr = Q(
1671
+ ), fr = ee(
1672
1672
  ([{ viewportHeight: e }, { totalListHeight: t }]) => {
1673
1673
  const o = H(!1), n = pe(
1674
1674
  x(
1675
- ae(o, e, t),
1675
+ ue(o, e, t),
1676
1676
  P(([r]) => r),
1677
1677
  E(([, r, i]) => Math.max(0, r - i)),
1678
1678
  De(0),
@@ -1684,7 +1684,7 @@ const Ze = Q(
1684
1684
  },
1685
1685
  se(xe, on),
1686
1686
  { singleton: !0 }
1687
- ), nn = Q(() => ({
1687
+ ), nn = ee(() => ({
1688
1688
  context: H(null)
1689
1689
  })), hr = ({
1690
1690
  itemBottom: e,
@@ -1692,7 +1692,7 @@ const Ze = Q(
1692
1692
  locationParams: { align: o, behavior: n, ...r },
1693
1693
  viewportBottom: i,
1694
1694
  viewportTop: s
1695
- }) => t < s ? { ...r, align: o ?? "start", behavior: n } : e > i ? { ...r, align: o ?? "end", behavior: n } : null, rn = Q(
1695
+ }) => t < s ? { ...r, align: o ?? "start", behavior: n } : e > i ? { ...r, align: o ?? "end", behavior: n } : null, rn = ee(
1696
1696
  ([
1697
1697
  { gap: e, sizes: t, totalCount: o },
1698
1698
  { fixedFooterHeight: n, fixedHeaderHeight: r, headerHeight: i, scrollingInProgress: s, scrollTop: l, viewportHeight: c },
@@ -1705,14 +1705,14 @@ const Ze = Q(
1705
1705
  F(t, c, o, i, r, n, l),
1706
1706
  F(e),
1707
1707
  E(([[w, g, v, S, k, p, f, d], b]) => {
1708
- const { align: R, behavior: m, calculateViewLocation: u = hr, done: y, ..._ } = w, j = Zo(w, g, S - 1), z = ut(j, g.offsetTree, b) + k + p, N = z + Me(g.sizeTree, j)[1], $ = d + p, ee = d + v - f, B = u({
1708
+ const { align: R, behavior: m, calculateViewLocation: u = hr, done: y, ..._ } = w, j = Zo(w, g, S - 1), z = ut(j, g.offsetTree, b) + k + p, N = z + We(g.sizeTree, j)[1], $ = d + p, te = d + v - f, B = u({
1709
1709
  itemBottom: N,
1710
1710
  itemTop: z,
1711
1711
  locationParams: { align: R, behavior: m, ..._ },
1712
- viewportBottom: ee,
1712
+ viewportBottom: te,
1713
1713
  viewportTop: $
1714
1714
  });
1715
- return B ? y && je(
1715
+ return B ? y && Me(
1716
1716
  x(
1717
1717
  s,
1718
1718
  P((K) => !K),
@@ -1736,7 +1736,7 @@ const Ze = Q(
1736
1736
  function Ho(e) {
1737
1737
  return e ? e === "smooth" ? "smooth" : "auto" : !1;
1738
1738
  }
1739
- const gr = (e, t) => typeof e == "function" ? Ho(e(t)) : t && Ho(e), pr = Q(
1739
+ const gr = (e, t) => typeof e == "function" ? Ho(e(t)) : t && Ho(e), pr = ee(
1740
1740
  ([
1741
1741
  { listRefresh: e, totalCount: t, fixedItemSize: o, data: n },
1742
1742
  { atBottomState: r, isAtBottom: i },
@@ -1757,9 +1757,9 @@ const gr = (e, t) => typeof e == "function" ? Ho(e(t)) : t && Ho(e), pr = Q(
1757
1757
  index: "LAST"
1758
1758
  });
1759
1759
  }
1760
- J(
1760
+ Q(
1761
1761
  x(
1762
- ae(x(A(t), Ye(1)), c),
1762
+ ue(x(A(t), Ye(1)), c),
1763
1763
  F(A(S), i, l, w),
1764
1764
  E(([[m, u], y, _, j, z]) => {
1765
1765
  let N = u && j, $ = "auto";
@@ -1770,20 +1770,20 @@ const gr = (e, t) => typeof e == "function" ? Ho(e(t)) : t && Ho(e), pr = Q(
1770
1770
  ({ followOutputBehavior: m, totalCount: u }) => {
1771
1771
  p && (p(), p = null), ce(o) ? requestAnimationFrame(() => {
1772
1772
  ce(h)("following output to ", { totalCount: u }, Ie.DEBUG), f(m);
1773
- }) : p = je(e, () => {
1773
+ }) : p = Me(e, () => {
1774
1774
  ce(h)("following output to ", { totalCount: u }, Ie.DEBUG), f(m), p = null;
1775
1775
  });
1776
1776
  }
1777
1777
  );
1778
1778
  function d(m) {
1779
- const u = je(r, (y) => {
1779
+ const u = Me(r, (y) => {
1780
1780
  m && !y.atBottom && y.notAtBottomBecause === "SIZE_INCREASED" && !p && (ce(h)("scrolling to bottom due to increased size", {}, Ie.DEBUG), f("auto"));
1781
1781
  });
1782
1782
  setTimeout(u, 100);
1783
1783
  }
1784
- J(
1784
+ Q(
1785
1785
  x(
1786
- ae(A(S), t, a),
1786
+ ue(A(S), t, a),
1787
1787
  P(([m, , u]) => m && u),
1788
1788
  Ae(
1789
1789
  ({ value: m }, [, u]) => ({ refreshed: m === u, value: u }),
@@ -1795,9 +1795,9 @@ const gr = (e, t) => typeof e == "function" ? Ho(e(t)) : t && Ho(e), pr = Q(
1795
1795
  ([, m]) => {
1796
1796
  ce(l) && d(m !== !1);
1797
1797
  }
1798
- ), J(k, () => {
1798
+ ), Q(k, () => {
1799
1799
  d(ce(S) !== !1);
1800
- }), J(ae(A(S), r), ([m, u]) => {
1800
+ }), Q(ue(A(S), r), ([m, u]) => {
1801
1801
  m && !u.atBottom && u.notAtBottomBecause === "VIEWPORT_HEIGHT_DECREASING" && f("auto");
1802
1802
  });
1803
1803
  const b = H(null), R = U();
@@ -1813,9 +1813,9 @@ const gr = (e, t) => typeof e == "function" ? Ho(e(t)) : t && Ho(e), pr = Q(
1813
1813
  x(A(t))
1814
1814
  ),
1815
1815
  R
1816
- ), J(
1816
+ ), Q(
1817
1817
  x(
1818
- ae(x(R, Ye(1)), c),
1818
+ ue(x(R, Ye(1)), c),
1819
1819
  F(A(b), l, w, g),
1820
1820
  E(([[m, u], y, _, j, z]) => u && _ && (y == null ? void 0 : y({ context: z, totalCount: m, scrollingInProgress: j }))),
1821
1821
  P((m) => !!m),
@@ -1824,7 +1824,7 @@ const gr = (e, t) => typeof e == "function" ? Ho(e(t)) : t && Ho(e), pr = Q(
1824
1824
  (m) => {
1825
1825
  p && (p(), p = null), ce(o) ? requestAnimationFrame(() => {
1826
1826
  ce(h)("scrolling into view", {}), G(v, m);
1827
- }) : p = je(e, () => {
1827
+ }) : p = Me(e, () => {
1828
1828
  ce(h)("scrolling into view", {}), G(v, m), p = null;
1829
1829
  });
1830
1830
  }
@@ -1841,7 +1841,7 @@ const gr = (e, t) => typeof e == "function" ? Ho(e(t)) : t && Ho(e), pr = Q(
1841
1841
  nn,
1842
1842
  rn
1843
1843
  )
1844
- ), xr = Q(
1844
+ ), xr = ee(
1845
1845
  ([{ data: e, firstItemIndex: t, gap: o, sizes: n }, { initialTopMostItemIndex: r }, { initialItemCount: i, listState: s }, { didMount: l }]) => (M(
1846
1846
  x(
1847
1847
  l,
@@ -1854,10 +1854,10 @@ const gr = (e, t) => typeof e == "function" ? Ho(e(t)) : t && Ho(e), pr = Q(
1854
1854
  ), {}),
1855
1855
  se(Oe, ht, Ze, qe),
1856
1856
  { singleton: !0 }
1857
- ), vr = Q(
1857
+ ), vr = ee(
1858
1858
  ([{ didMount: e }, { scrollTo: t }, { listState: o }]) => {
1859
1859
  const n = H(0);
1860
- return J(
1860
+ return Q(
1861
1861
  x(
1862
1862
  e,
1863
1863
  F(n),
@@ -1865,7 +1865,7 @@ const gr = (e, t) => typeof e == "function" ? Ho(e(t)) : t && Ho(e), pr = Q(
1865
1865
  E(([, r]) => ({ top: r }))
1866
1866
  ),
1867
1867
  (r) => {
1868
- je(
1868
+ Me(
1869
1869
  x(
1870
1870
  o,
1871
1871
  Ye(1),
@@ -1884,7 +1884,7 @@ const gr = (e, t) => typeof e == "function" ? Ho(e(t)) : t && Ho(e), pr = Q(
1884
1884
  },
1885
1885
  se(qe, xe, Ze),
1886
1886
  { singleton: !0 }
1887
- ), sn = Q(
1887
+ ), sn = ee(
1888
1888
  ([{ scrollVelocity: e }]) => {
1889
1889
  const t = H(!1), o = U(), n = H(!1);
1890
1890
  return M(
@@ -1904,8 +1904,8 @@ const gr = (e, t) => typeof e == "function" ? Ho(e(t)) : t && Ho(e), pr = Q(
1904
1904
  ie()
1905
1905
  ),
1906
1906
  t
1907
- ), J(
1908
- x(ae(t, e, o), F(n)),
1907
+ ), Q(
1908
+ x(ue(t, e, o), F(n)),
1909
1909
  ([[r, i, s], l]) => {
1910
1910
  r && l && l.change && l.change(i, s);
1911
1911
  }
@@ -1913,11 +1913,11 @@ const gr = (e, t) => typeof e == "function" ? Ho(e(t)) : t && Ho(e), pr = Q(
1913
1913
  },
1914
1914
  se(gt),
1915
1915
  { singleton: !0 }
1916
- ), to = Q(([{ scrollContainerState: e, scrollTo: t }]) => {
1916
+ ), to = ee(([{ scrollContainerState: e, scrollTo: t }]) => {
1917
1917
  const o = U(), n = U(), r = U(), i = H(!1), s = H(void 0);
1918
1918
  return M(
1919
1919
  x(
1920
- ae(o, n),
1920
+ ue(o, n),
1921
1921
  E(([{ scrollHeight: l, scrollTop: c, viewportHeight: a }, { offsetTop: h }]) => ({
1922
1922
  scrollHeight: l,
1923
1923
  scrollTop: Math.max(0, c - h),
@@ -1945,7 +1945,7 @@ const gr = (e, t) => typeof e == "function" ? Ho(e(t)) : t && Ho(e), pr = Q(
1945
1945
  windowScrollTo: r,
1946
1946
  windowViewportRect: n
1947
1947
  };
1948
- }, se(xe)), Ir = Q(
1948
+ }, se(xe)), Ir = ee(
1949
1949
  ([
1950
1950
  { sizeRanges: e, sizes: t },
1951
1951
  { headerHeight: o, scrollTop: n },
@@ -1954,7 +1954,7 @@ const gr = (e, t) => typeof e == "function" ? Ho(e(t)) : t && Ho(e), pr = Q(
1954
1954
  { useWindowScroll: s, windowScrollContainerState: l, windowViewportRect: c }
1955
1955
  ]) => {
1956
1956
  const a = U(), h = H(void 0), w = H(null), g = H(null);
1957
- return M(l, w), M(c, g), J(
1957
+ return M(l, w), M(c, g), Q(
1958
1958
  x(
1959
1959
  a,
1960
1960
  F(t, n, s, w, g, o)
@@ -1982,7 +1982,7 @@ const gr = (e, t) => typeof e == "function" ? Ho(e(t)) : t && Ho(e), pr = Q(
1982
1982
  function Tr(e) {
1983
1983
  return { align: "start", index: 0, offset: e.scrollTop };
1984
1984
  }
1985
- const wr = Q(([{ topItemsIndexes: e }]) => {
1985
+ const wr = ee(([{ topItemsIndexes: e }]) => {
1986
1986
  const t = H(0);
1987
1987
  return M(
1988
1988
  x(
@@ -1997,7 +1997,7 @@ function ln(e) {
1997
1997
  let t = !1, o;
1998
1998
  return () => (t || (t = !0, o = e()), o);
1999
1999
  }
2000
- const Cr = ln(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.test(navigator.userAgent)), Sr = Q(
2000
+ const Cr = ln(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.test(navigator.userAgent)), Sr = ee(
2001
2001
  ([
2002
2002
  { deviation: e, scrollBy: t, scrollingInProgress: o, scrollTop: n },
2003
2003
  { isAtBottom: r, isScrolling: i, lastJumpDueToItemResize: s, scrollDirection: l },
@@ -2006,7 +2006,7 @@ const Cr = ln(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
2006
2006
  { log: v },
2007
2007
  { recalcInProgress: S }
2008
2008
  ]) => {
2009
- const k = be(
2009
+ const k = He(
2010
2010
  x(
2011
2011
  c,
2012
2012
  F(s),
@@ -2027,11 +2027,11 @@ const Cr = ln(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
2027
2027
  function p(f) {
2028
2028
  f > 0 ? (G(t, { behavior: "auto", top: -f }), G(e, 0)) : (G(e, 0), G(t, { behavior: "auto", top: -f }));
2029
2029
  }
2030
- return J(x(k, F(e, i)), ([f, d, b]) => {
2030
+ return Q(x(k, F(e, i)), ([f, d, b]) => {
2031
2031
  b && Cr() ? G(e, d - f) : p(-f);
2032
- }), J(
2032
+ }), Q(
2033
2033
  x(
2034
- ae(pe(i, !1), e, S),
2034
+ ue(pe(i, !1), e, S),
2035
2035
  P(([f, d, b]) => !f && !b && d !== 0),
2036
2036
  E(([f, d]) => d),
2037
2037
  De(1)
@@ -2043,7 +2043,7 @@ const Cr = ln(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
2043
2043
  E((f) => ({ top: -f }))
2044
2044
  ),
2045
2045
  t
2046
- ), J(
2046
+ ), Q(
2047
2047
  x(
2048
2048
  a,
2049
2049
  F(g, h),
@@ -2076,7 +2076,7 @@ const Cr = ln(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
2076
2076
  ), { deviation: e };
2077
2077
  },
2078
2078
  se(xe, gt, Ze, Oe, $e, Xt)
2079
- ), yr = Q(
2079
+ ), yr = ee(
2080
2080
  ([
2081
2081
  e,
2082
2082
  t,
@@ -2115,7 +2115,7 @@ const Cr = ln(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
2115
2115
  $e,
2116
2116
  nn
2117
2117
  )
2118
- ), br = Q(
2118
+ ), br = ee(
2119
2119
  ([
2120
2120
  {
2121
2121
  data: e,
@@ -2233,7 +2233,7 @@ function cn(e, t, o) {
2233
2233
  })), [m] = L.useState(xo(h, R));
2234
2234
  vt(() => {
2235
2235
  for (const y of s)
2236
- y in b && J(m[y], b[y]);
2236
+ y in b && Q(m[y], b[y]);
2237
2237
  return () => {
2238
2238
  Object.values(m).map(Kt);
2239
2239
  };
@@ -2252,7 +2252,7 @@ function cn(e, t, o) {
2252
2252
  );
2253
2253
  }, v = (p) => {
2254
2254
  const f = L.useContext(l)[p], d = L.useCallback(
2255
- (b) => J(f, b),
2255
+ (b) => Q(f, b),
2256
2256
  [f]
2257
2257
  );
2258
2258
  return L.useSyncExternalStore(
@@ -2263,7 +2263,7 @@ function cn(e, t, o) {
2263
2263
  }, S = (p) => {
2264
2264
  const f = L.useContext(l)[p], [d, b] = L.useState(xo(ce, f));
2265
2265
  return vt(
2266
- () => J(f, (R) => {
2266
+ () => Q(f, (R) => {
2267
2267
  R !== d && b(po(R));
2268
2268
  }),
2269
2269
  [f, d]
@@ -2273,7 +2273,7 @@ function cn(e, t, o) {
2273
2273
  Component: w,
2274
2274
  useEmitter: (p, f) => {
2275
2275
  const d = L.useContext(l)[p];
2276
- vt(() => J(d, f), [f, d]);
2276
+ vt(() => Q(d, f), [f, d]);
2277
2277
  },
2278
2278
  useEmitterValue: k,
2279
2279
  usePublisher: g
@@ -2346,7 +2346,7 @@ const At = "-webkit-sticky", ko = "sticky", oo = ln(() => {
2346
2346
  function fn(e) {
2347
2347
  return e;
2348
2348
  }
2349
- const _r = /* @__PURE__ */ Q(() => {
2349
+ const _r = /* @__PURE__ */ ee(() => {
2350
2350
  const e = H((l) => `Item ${l}`), t = H((l) => `Group ${l}`), o = H({}), n = H(fn), r = H("div"), i = H(mt), s = (l, c = null) => pe(
2351
2351
  x(
2352
2352
  o,
@@ -2372,11 +2372,11 @@ const _r = /* @__PURE__ */ Q(() => {
2372
2372
  ScrollSeekPlaceholder: s("ScrollSeekPlaceholder"),
2373
2373
  TopItemListComponent: s("TopItemList")
2374
2374
  };
2375
- }), Rr = /* @__PURE__ */ Q(
2375
+ }), Rr = /* @__PURE__ */ ee(
2376
2376
  ([e, t]) => ({ ...e, ...t }),
2377
2377
  se(br, _r)
2378
2378
  ), Er = ({ height: e }) => /* @__PURE__ */ I.jsx("div", { style: { height: e } }), zr = { overflowAnchor: "none", position: oo(), zIndex: 1 }, hn = { overflowAnchor: "none" }, Br = { ...hn, display: "inline-block", height: "100%" }, _o = /* @__PURE__ */ L.memo(function({ showTopList: e = !1 }) {
2379
- const t = V("listState"), o = Ee("sizeRanges"), n = V("useWindowScroll"), r = V("customScrollParent"), i = Ee("windowScrollContainerState"), s = Ee("scrollContainerState"), l = r || n ? i : s, c = V("itemContent"), a = V("context"), h = V("groupContent"), w = V("trackItemSizes"), g = V("itemSize"), v = V("log"), S = Ee("gap"), k = V("horizontalDirection"), { callbackRef: p } = qn(
2379
+ const t = V("listState"), o = ze("sizeRanges"), n = V("useWindowScroll"), r = V("customScrollParent"), i = ze("windowScrollContainerState"), s = ze("scrollContainerState"), l = r || n ? i : s, c = V("itemContent"), a = V("context"), h = V("groupContent"), w = V("trackItemSizes"), g = V("itemSize"), v = V("log"), S = ze("gap"), k = V("horizontalDirection"), { callbackRef: p } = qn(
2380
2380
  o,
2381
2381
  g,
2382
2382
  w,
@@ -2390,7 +2390,7 @@ const _r = /* @__PURE__ */ Q(() => {
2390
2390
  no("deviation", (B) => {
2391
2391
  f !== B && d(B);
2392
2392
  });
2393
- const b = V("EmptyPlaceholder"), R = V("ScrollSeekPlaceholder") || Er, m = V("ListComponent"), u = V("ItemComponent"), y = V("GroupComponent"), _ = V("computeItemKey"), j = V("isSeeking"), z = V("groupIndices").length > 0, N = V("alignToBottom"), $ = V("initialItemFinalLocationReached"), ee = e ? {} : {
2393
+ const b = V("EmptyPlaceholder"), R = V("ScrollSeekPlaceholder") || Er, m = V("ListComponent"), u = V("ItemComponent"), y = V("GroupComponent"), _ = V("computeItemKey"), j = V("isSeeking"), z = V("groupIndices").length > 0, N = V("alignToBottom"), $ = V("initialItemFinalLocationReached"), te = e ? {} : {
2394
2394
  boxSizing: "border-box",
2395
2395
  ...k ? {
2396
2396
  display: "inline-block",
@@ -2406,46 +2406,46 @@ const _r = /* @__PURE__ */ Q(() => {
2406
2406
  },
2407
2407
  ...$ ? {} : { visibility: "hidden" }
2408
2408
  };
2409
- return !e && t.totalCount === 0 && b ? /* @__PURE__ */ I.jsx(b, { ...he(b, a) }) : /* @__PURE__ */ I.jsx(
2409
+ return !e && t.totalCount === 0 && b ? /* @__PURE__ */ I.jsx(b, { ...ge(b, a) }) : /* @__PURE__ */ I.jsx(
2410
2410
  m,
2411
2411
  {
2412
- ...he(m, a),
2412
+ ...ge(m, a),
2413
2413
  "data-testid": e ? "virtuoso-top-item-list" : "virtuoso-item-list",
2414
2414
  ref: p,
2415
- style: ee,
2415
+ style: te,
2416
2416
  children: (e ? t.topItems : t.items).map((B) => {
2417
- const K = B.originalIndex, Y = _(K + t.firstItemIndex, B.data, a);
2417
+ const K = B.originalIndex, X = _(K + t.firstItemIndex, B.data, a);
2418
2418
  return j ? /* @__PURE__ */ Tt(
2419
2419
  R,
2420
2420
  {
2421
- ...he(R, a),
2421
+ ...ge(R, a),
2422
2422
  height: B.size,
2423
2423
  index: B.index,
2424
- key: Y,
2424
+ key: X,
2425
2425
  type: B.type || "item",
2426
2426
  ...B.type === "group" ? {} : { groupIndex: B.groupIndex }
2427
2427
  }
2428
2428
  ) : B.type === "group" ? /* @__PURE__ */ Tt(
2429
2429
  y,
2430
2430
  {
2431
- ...he(y, a),
2431
+ ...ge(y, a),
2432
2432
  "data-index": K,
2433
2433
  "data-item-index": B.index,
2434
2434
  "data-known-size": B.size,
2435
- key: Y,
2435
+ key: X,
2436
2436
  style: zr
2437
2437
  },
2438
2438
  h(B.index, a)
2439
2439
  ) : /* @__PURE__ */ Tt(
2440
2440
  u,
2441
2441
  {
2442
- ...he(u, a),
2442
+ ...ge(u, a),
2443
2443
  ...Wr(u, B.data),
2444
2444
  "data-index": K,
2445
2445
  "data-item-group-index": B.groupIndex,
2446
2446
  "data-item-index": B.index,
2447
2447
  "data-known-size": B.size,
2448
- key: Y,
2448
+ key: X,
2449
2449
  style: k ? Br : hn
2450
2450
  },
2451
2451
  z ? c(B.index, B.groupIndex, B.data, a) : c(B.index, B.data, a)
@@ -2475,7 +2475,7 @@ const _r = /* @__PURE__ */ Q(() => {
2475
2475
  width: "100%",
2476
2476
  zIndex: 1
2477
2477
  };
2478
- function he(e, t) {
2478
+ function ge(e, t) {
2479
2479
  if (typeof e != "string")
2480
2480
  return { context: t };
2481
2481
  }
@@ -2483,7 +2483,7 @@ function Wr(e, t) {
2483
2483
  return { item: typeof e == "string" ? void 0 : t };
2484
2484
  }
2485
2485
  const Nr = /* @__PURE__ */ L.memo(function() {
2486
- const e = V("HeaderComponent"), t = Ee("headerHeight"), o = V("HeaderFooterTag"), n = Xe(
2486
+ const e = V("HeaderComponent"), t = ze("headerHeight"), o = V("HeaderFooterTag"), n = Xe(
2487
2487
  L.useMemo(
2488
2488
  () => (i) => {
2489
2489
  t(Ge(i, "height"));
@@ -2493,9 +2493,9 @@ const Nr = /* @__PURE__ */ L.memo(function() {
2493
2493
  !0,
2494
2494
  V("skipAnimationFrameInResizeObserver")
2495
2495
  ), r = V("context");
2496
- return e ? /* @__PURE__ */ I.jsx(o, { ref: n, children: /* @__PURE__ */ I.jsx(e, { ...he(e, r) }) }) : null;
2496
+ return e ? /* @__PURE__ */ I.jsx(o, { ref: n, children: /* @__PURE__ */ I.jsx(e, { ...ge(e, r) }) }) : null;
2497
2497
  }), Ar = /* @__PURE__ */ L.memo(function() {
2498
- const e = V("FooterComponent"), t = Ee("footerHeight"), o = V("HeaderFooterTag"), n = Xe(
2498
+ const e = V("FooterComponent"), t = ze("footerHeight"), o = V("HeaderFooterTag"), n = Xe(
2499
2499
  L.useMemo(
2500
2500
  () => (i) => {
2501
2501
  t(Ge(i, "height"));
@@ -2505,7 +2505,7 @@ const Nr = /* @__PURE__ */ L.memo(function() {
2505
2505
  !0,
2506
2506
  V("skipAnimationFrameInResizeObserver")
2507
2507
  ), r = V("context");
2508
- return e ? /* @__PURE__ */ I.jsx(o, { ref: n, children: /* @__PURE__ */ I.jsx(e, { ...he(e, r) }) }) : null;
2508
+ return e ? /* @__PURE__ */ I.jsx(o, { ref: n, children: /* @__PURE__ */ I.jsx(e, { ...ge(e, r) }) }) : null;
2509
2509
  });
2510
2510
  function gn({ useEmitter: e, useEmitterValue: t, usePublisher: o }) {
2511
2511
  return L.memo(function({ children: n, style: r, context: i, ...s }) {
@@ -2526,7 +2526,7 @@ function gn({ useEmitter: e, useEmitterValue: t, usePublisher: o }) {
2526
2526
  style: { ...w ? jr : Lr, ...r },
2527
2527
  tabIndex: 0,
2528
2528
  ...s,
2529
- ...he(c, i),
2529
+ ...ge(c, i),
2530
2530
  children: n
2531
2531
  }
2532
2532
  );
@@ -2553,14 +2553,14 @@ function pn({ useEmitter: e, useEmitterValue: t, usePublisher: o }) {
2553
2553
  "data-virtuoso-scroller": !0,
2554
2554
  style: { position: "relative", ...r, ...h !== 0 ? { height: h + w } : {} },
2555
2555
  ...s,
2556
- ...he(c, i),
2556
+ ...ge(c, i),
2557
2557
  children: n
2558
2558
  }
2559
2559
  );
2560
2560
  });
2561
2561
  }
2562
2562
  const Or = ({ children: e }) => {
2563
- const t = L.useContext(an), o = Ee("viewportHeight"), n = Ee("fixedItemHeight"), r = V("alignToBottom"), i = V("horizontalDirection"), s = L.useMemo(
2563
+ const t = L.useContext(an), o = ze("viewportHeight"), n = ze("fixedItemHeight"), r = V("alignToBottom"), i = V("horizontalDirection"), s = L.useMemo(
2564
2564
  () => Po(o, (c) => Ge(c, i ? "width" : "height")),
2565
2565
  [o, i]
2566
2566
  ), l = Xe(s, !0, V("skipAnimationFrameInResizeObserver"));
@@ -2568,7 +2568,7 @@ const Or = ({ children: e }) => {
2568
2568
  t && (o(t.viewportHeight), n(t.itemHeight));
2569
2569
  }, [t, o, n]), /* @__PURE__ */ I.jsx("div", { "data-viewport-type": "element", ref: l, style: Bt(r), children: e });
2570
2570
  }, Pr = ({ children: e }) => {
2571
- const t = L.useContext(an), o = Ee("windowViewportRect"), n = Ee("fixedItemHeight"), r = V("customScrollParent"), i = Vo(
2571
+ const t = L.useContext(an), o = ze("windowViewportRect"), n = ze("fixedItemHeight"), r = V("customScrollParent"), i = Vo(
2572
2572
  o,
2573
2573
  r,
2574
2574
  V("skipAnimationFrameInResizeObserver")
@@ -2578,7 +2578,7 @@ const Or = ({ children: e }) => {
2578
2578
  }, [t, o, n]), /* @__PURE__ */ I.jsx("div", { "data-viewport-type": "window", ref: i, style: Bt(s), children: e });
2579
2579
  }, Dr = ({ children: e }) => {
2580
2580
  const t = V("TopItemListComponent") || "div", o = V("headerHeight"), n = { ...Mr, marginTop: `${o}px` }, r = V("context");
2581
- return /* @__PURE__ */ I.jsx(t, { style: n, ...he(t, r), children: e });
2581
+ return /* @__PURE__ */ I.jsx(t, { style: n, ...ge(t, r), children: e });
2582
2582
  }, Vr = /* @__PURE__ */ L.memo(function(e) {
2583
2583
  const t = V("useWindowScroll"), o = V("topItemsIndexes").length > 0, n = V("customScrollParent"), r = V("context");
2584
2584
  return /* @__PURE__ */ I.jsxs(n || t ? $r : Fr, { ...e, context: r, children: [
@@ -2593,7 +2593,7 @@ const Or = ({ children: e }) => {
2593
2593
  Component: Gr,
2594
2594
  useEmitter: no,
2595
2595
  useEmitterValue: V,
2596
- usePublisher: Ee
2596
+ usePublisher: ze
2597
2597
  } = /* @__PURE__ */ cn(
2598
2598
  Rr,
2599
2599
  {
@@ -2653,7 +2653,7 @@ const Or = ({ children: e }) => {
2653
2653
  }
2654
2654
  },
2655
2655
  Vr
2656
- ), Fr = /* @__PURE__ */ gn({ useEmitter: no, useEmitterValue: V, usePublisher: Ee }), $r = /* @__PURE__ */ pn({ useEmitter: no, useEmitterValue: V, usePublisher: Ee }), qr = Gr;
2656
+ ), Fr = /* @__PURE__ */ gn({ useEmitter: no, useEmitterValue: V, usePublisher: ze }), $r = /* @__PURE__ */ pn({ useEmitter: no, useEmitterValue: V, usePublisher: ze }), qr = Gr;
2657
2657
  oo();
2658
2658
  const Ro = {
2659
2659
  bottom: 0,
@@ -2687,7 +2687,7 @@ function It(e, t) {
2687
2687
  function Yr(e, t) {
2688
2688
  return e && e.column === t.column && e.row === t.row;
2689
2689
  }
2690
- const Xr = /* @__PURE__ */ Q(
2690
+ const Xr = /* @__PURE__ */ ee(
2691
2691
  ([
2692
2692
  { increaseViewportBy: e, listBoundary: t, overscan: o, visibleRange: n },
2693
2693
  { footerHeight: r, headerHeight: i, scrollBy: s, scrollContainerState: l, scrollTo: c, scrollTop: a, smoothScrollTargetReached: h, viewportHeight: w },
@@ -2697,26 +2697,26 @@ const Xr = /* @__PURE__ */ Q(
2697
2697
  { customScrollParent: p, useWindowScroll: f, windowScrollContainerState: d, windowScrollTo: b, windowViewportRect: R },
2698
2698
  m
2699
2699
  ]) => {
2700
- const u = H(0), y = H(0), _ = H(Ro), j = H({ height: 0, width: 0 }), z = H({ height: 0, width: 0 }), N = U(), $ = U(), ee = H(0), B = H(null), K = H({ column: 0, row: 0 }), Y = U(), ve = U(), Te = H(!1), we = H(0), fe = H(!0), me = H(!1), Be = H(!1);
2701
- J(
2700
+ const u = H(0), y = H(0), _ = H(Ro), j = H({ height: 0, width: 0 }), z = H({ height: 0, width: 0 }), N = U(), $ = U(), te = H(0), B = H(null), K = H({ column: 0, row: 0 }), X = U(), ve = U(), Te = H(!1), we = H(0), he = H(!0), fe = H(!1), Le = H(!1);
2701
+ Q(
2702
2702
  x(
2703
2703
  S,
2704
2704
  F(we),
2705
2705
  P(([T, O]) => !!O)
2706
2706
  ),
2707
2707
  () => {
2708
- G(fe, !1);
2708
+ G(he, !1);
2709
2709
  }
2710
- ), J(
2710
+ ), Q(
2711
2711
  x(
2712
- ae(S, fe, z, j, we, me),
2713
- P(([T, O, te, ue, , C]) => T && !O && te.height !== 0 && ue.height !== 0 && !C)
2712
+ ue(S, he, z, j, we, fe),
2713
+ P(([T, O, oe, de, , C]) => T && !O && oe.height !== 0 && de.height !== 0 && !C)
2714
2714
  ),
2715
2715
  ([, , , , T]) => {
2716
- G(me, !0), Jt(1, () => {
2716
+ G(fe, !0), Jt(1, () => {
2717
2717
  G(N, T);
2718
- }), je(x(a), () => {
2719
- G(t, [0, 0]), G(fe, !0);
2718
+ }), Me(x(a), () => {
2719
+ G(t, [0, 0]), G(he, !0);
2720
2720
  });
2721
2721
  }
2722
2722
  ), M(
@@ -2726,14 +2726,14 @@ const Xr = /* @__PURE__ */ Q(
2726
2726
  Ne(0)
2727
2727
  ),
2728
2728
  y
2729
- ), J(
2729
+ ), Q(
2730
2730
  x(
2731
2731
  S,
2732
2732
  F(ve),
2733
2733
  P(([, T]) => T != null)
2734
2734
  ),
2735
2735
  ([, T]) => {
2736
- T && (G(j, T.viewport), G(z, T.item), G(K, T.gap), T.scrollTop > 0 && (G(Te, !0), je(x(a, Ye(1)), (O) => {
2736
+ T && (G(j, T.viewport), G(z, T.item), G(K, T.gap), T.scrollTop > 0 && (G(Te, !0), Me(x(a, Ye(1)), (O) => {
2737
2737
  G(Te, !1);
2738
2738
  }), G(c, { top: T.scrollTop })));
2739
2739
  }
@@ -2745,23 +2745,23 @@ const Xr = /* @__PURE__ */ Q(
2745
2745
  w
2746
2746
  ), M(
2747
2747
  x(
2748
- ae(
2748
+ ue(
2749
2749
  A(j, It),
2750
2750
  A(z, It),
2751
2751
  A(K, (T, O) => T && T.column === O.column && T.row === O.row),
2752
2752
  A(a)
2753
2753
  ),
2754
- E(([T, O, te, ue]) => ({
2755
- gap: te,
2754
+ E(([T, O, oe, de]) => ({
2755
+ gap: oe,
2756
2756
  item: O,
2757
- scrollTop: ue,
2757
+ scrollTop: de,
2758
2758
  viewport: T
2759
2759
  }))
2760
2760
  ),
2761
- Y
2761
+ X
2762
2762
  ), M(
2763
2763
  x(
2764
- ae(
2764
+ ue(
2765
2765
  A(u),
2766
2766
  n,
2767
2767
  A(K, Yr),
@@ -2770,35 +2770,35 @@ const Xr = /* @__PURE__ */ Q(
2770
2770
  A(B),
2771
2771
  A(y),
2772
2772
  A(Te),
2773
- A(fe),
2773
+ A(he),
2774
2774
  A(we)
2775
2775
  ),
2776
2776
  P(([, , , , , , , T]) => !T),
2777
2777
  E(
2778
2778
  ([
2779
2779
  T,
2780
- [O, te],
2781
- ue,
2780
+ [O, oe],
2781
+ de,
2782
2782
  C,
2783
2783
  W,
2784
- X,
2784
+ Z,
2785
2785
  D,
2786
2786
  ,
2787
2787
  q,
2788
- oe
2788
+ J
2789
2789
  ]) => {
2790
- const { column: Z, row: ge } = ue, { height: We, width: Pe } = C, { width: _e } = W;
2791
- if (D === 0 && (T === 0 || _e === 0))
2790
+ const { column: Y, row: ae } = de, { height: Se, width: Pe } = C, { width: Re } = W;
2791
+ if (D === 0 && (T === 0 || Re === 0))
2792
2792
  return Ro;
2793
2793
  if (Pe === 0) {
2794
- const co = Qt(oe, T), Tn = co + Math.max(D - 1, 0);
2795
- return Kr(Bo(co, Tn, X));
2794
+ const co = Qt(J, T), Tn = co + Math.max(D - 1, 0);
2795
+ return Kr(Bo(co, Tn, Z));
2796
2796
  }
2797
- const Re = xn(_e, Pe, Z);
2797
+ const Ee = xn(Re, Pe, Y);
2798
2798
  let Je, Ue;
2799
- q ? O === 0 && te === 0 && D > 0 ? (Je = 0, Ue = D - 1) : (Je = Re * kt((O + ge) / (We + ge)), Ue = Re * Eo((te + ge) / (We + ge)) - 1, Ue = Ot(T - 1, st(Ue, Re - 1)), Je = Ot(Ue, st(0, Je))) : (Je = 0, Ue = -1);
2800
- const ro = Bo(Je, Ue, X), { bottom: io, top: so } = Lo(W, ue, C, ro), lo = Eo(T / Re), In = lo * We + (lo - 1) * ge - io;
2801
- return { bottom: io, itemHeight: We, items: ro, itemWidth: Pe, offsetBottom: In, offsetTop: so, top: so };
2799
+ q ? O === 0 && oe === 0 && D > 0 ? (Je = 0, Ue = D - 1) : (Je = Ee * kt((O + ae) / (Se + ae)), Ue = Ee * Eo((oe + ae) / (Se + ae)) - 1, Ue = Ot(T - 1, st(Ue, Ee - 1)), Je = Ot(Ue, st(0, Je))) : (Je = 0, Ue = -1);
2800
+ const ro = Bo(Je, Ue, Z), { bottom: io, top: so } = Lo(W, de, C, ro), lo = Eo(T / Ee), In = lo * Se + (lo - 1) * ae - io;
2801
+ return { bottom: io, itemHeight: Se, items: ro, itemWidth: Pe, offsetBottom: In, offsetTop: so, top: so };
2802
2802
  }
2803
2803
  )
2804
2804
  ),
@@ -2812,10 +2812,10 @@ const Xr = /* @__PURE__ */ Q(
2812
2812
  u
2813
2813
  ), M(
2814
2814
  x(
2815
- ae(j, z, _, K),
2816
- P(([T, O, { items: te }]) => te.length > 0 && O.height !== 0 && T.height !== 0),
2817
- E(([T, O, { items: te }, ue]) => {
2818
- const { bottom: C, top: W } = Lo(T, ue, O, te);
2815
+ ue(j, z, _, K),
2816
+ P(([T, O, { items: oe }]) => oe.length > 0 && O.height !== 0 && T.height !== 0),
2817
+ E(([T, O, { items: oe }, de]) => {
2818
+ const { bottom: C, top: W } = Lo(T, de, O, oe);
2819
2819
  return [W, C];
2820
2820
  }),
2821
2821
  ie(at)
@@ -2831,26 +2831,26 @@ const Xr = /* @__PURE__ */ Q(
2831
2831
  ),
2832
2832
  Ce
2833
2833
  );
2834
- const Ve = be(
2834
+ const Ve = He(
2835
2835
  x(
2836
- ae(_, u),
2836
+ ue(_, u),
2837
2837
  P(([{ items: T }]) => T.length > 0),
2838
2838
  F(Ce),
2839
- P(([[T, O], te]) => {
2840
- const ue = T.items[T.items.length - 1].index === O - 1;
2841
- return (te || T.bottom > 0 && T.itemHeight > 0 && T.offsetBottom === 0 && T.items.length === O) && ue;
2839
+ P(([[T, O], oe]) => {
2840
+ const de = T.items[T.items.length - 1].index === O - 1;
2841
+ return (oe || T.bottom > 0 && T.itemHeight > 0 && T.offsetBottom === 0 && T.items.length === O) && de;
2842
2842
  }),
2843
2843
  E(([[, T]]) => T - 1),
2844
2844
  ie()
2845
2845
  )
2846
- ), Le = be(
2846
+ ), je = He(
2847
2847
  x(
2848
2848
  A(_),
2849
2849
  P(({ items: T }) => T.length > 0 && T[0].index === 0),
2850
2850
  Ne(0),
2851
2851
  ie()
2852
2852
  )
2853
- ), He = be(
2853
+ ), ke = He(
2854
2854
  x(
2855
2855
  A(_),
2856
2856
  F(Te),
@@ -2863,21 +2863,21 @@ const Xr = /* @__PURE__ */ Q(
2863
2863
  De(0)
2864
2864
  )
2865
2865
  );
2866
- M(He, v.scrollSeekRangeChanged), M(
2866
+ M(ke, v.scrollSeekRangeChanged), M(
2867
2867
  x(
2868
2868
  N,
2869
2869
  F(j, z, u, K),
2870
- E(([T, O, te, ue, C]) => {
2871
- const W = Qo(T), { align: X, behavior: D, offset: q } = W;
2872
- let oe = W.index;
2873
- oe === "LAST" && (oe = ue - 1), oe = st(0, oe, Ot(ue - 1, oe));
2874
- let Z = qt(O, C, te, oe);
2875
- return X === "end" ? Z = zo(Z - O.height + te.height) : X === "center" && (Z = zo(Z - O.height / 2 + te.height / 2)), q && (Z += q), { behavior: D, top: Z };
2870
+ E(([T, O, oe, de, C]) => {
2871
+ const W = Qo(T), { align: Z, behavior: D, offset: q } = W;
2872
+ let J = W.index;
2873
+ J === "LAST" && (J = de - 1), J = st(0, J, Ot(de - 1, J));
2874
+ let Y = qt(O, C, oe, J);
2875
+ return Z === "end" ? Y = zo(Y - O.height + oe.height) : Z === "center" && (Y = zo(Y - O.height / 2 + oe.height / 2)), q && (Y += q), { behavior: D, top: Y };
2876
2876
  })
2877
2877
  ),
2878
2878
  c
2879
2879
  );
2880
- const ke = pe(
2880
+ const _e = pe(
2881
2881
  x(
2882
2882
  _,
2883
2883
  E((T) => T.offsetBottom + T.bottom)
@@ -2894,7 +2894,7 @@ const Xr = /* @__PURE__ */ Q(
2894
2894
  customScrollParent: p,
2895
2895
  // input
2896
2896
  data: B,
2897
- deviation: ee,
2897
+ deviation: te,
2898
2898
  footerHeight: r,
2899
2899
  gap: K,
2900
2900
  headerHeight: i,
@@ -2919,15 +2919,15 @@ const Xr = /* @__PURE__ */ Q(
2919
2919
  ...v,
2920
2920
  // output
2921
2921
  gridState: _,
2922
- horizontalDirection: Be,
2922
+ horizontalDirection: Le,
2923
2923
  initialTopMostItemIndex: we,
2924
- totalListHeight: ke,
2924
+ totalListHeight: _e,
2925
2925
  ...g,
2926
2926
  endReached: Ve,
2927
2927
  propsReady: k,
2928
- rangeChanged: He,
2929
- startReached: Le,
2930
- stateChanged: Y,
2928
+ rangeChanged: ke,
2929
+ startReached: je,
2930
+ stateChanged: X,
2931
2931
  stateRestoreInProgress: Te,
2932
2932
  ...m
2933
2933
  };
@@ -2948,7 +2948,7 @@ function qt(e, t, o, n) {
2948
2948
  const r = xn(e.width, o.width, t.column), i = kt(n / r), s = i * o.height + st(0, i - 1) * t.row;
2949
2949
  return s > 0 ? s + t.row : s;
2950
2950
  }
2951
- const Zr = /* @__PURE__ */ Q(() => {
2951
+ const Zr = /* @__PURE__ */ ee(() => {
2952
2952
  const e = H((w) => `Item ${w}`), t = H({}), o = H(null), n = H("virtuoso-grid-item"), r = H("virtuoso-grid-list"), i = H(fn), s = H("div"), l = H(mt), c = (w, g = null) => pe(
2953
2953
  x(
2954
2954
  t,
@@ -2975,11 +2975,11 @@ const Zr = /* @__PURE__ */ Q(() => {
2975
2975
  scrollerRef: l,
2976
2976
  ScrollSeekPlaceholder: c("ScrollSeekPlaceholder", "div")
2977
2977
  };
2978
- }), Jr = /* @__PURE__ */ Q(
2978
+ }), Jr = /* @__PURE__ */ ee(
2979
2979
  ([e, t]) => ({ ...e, ...t }),
2980
2980
  se(Xr, Zr)
2981
2981
  ), Qr = /* @__PURE__ */ L.memo(function() {
2982
- const e = re("gridState"), t = re("listClassName"), o = re("itemClassName"), n = re("itemContent"), r = re("computeItemKey"), i = re("isSeeking"), s = ze("scrollHeight"), l = re("ItemComponent"), c = re("ListComponent"), a = re("ScrollSeekPlaceholder"), h = re("context"), w = ze("itemDimensions"), g = ze("gap"), v = re("log"), S = re("stateRestoreInProgress"), k = ze("reportReadyState"), p = Xe(
2982
+ const e = re("gridState"), t = re("listClassName"), o = re("itemClassName"), n = re("itemContent"), r = re("computeItemKey"), i = re("isSeeking"), s = Be("scrollHeight"), l = re("ItemComponent"), c = re("ListComponent"), a = re("ScrollSeekPlaceholder"), h = re("context"), w = Be("itemDimensions"), g = Be("gap"), v = re("log"), S = re("stateRestoreInProgress"), k = Be("reportReadyState"), p = Xe(
2983
2983
  L.useMemo(
2984
2984
  () => (f) => {
2985
2985
  const d = f.parentElement.parentElement.scrollHeight;
@@ -3006,7 +3006,7 @@ const Zr = /* @__PURE__ */ Q(() => {
3006
3006
  {
3007
3007
  className: t,
3008
3008
  ref: p,
3009
- ...he(c, h),
3009
+ ...ge(c, h),
3010
3010
  "data-testid": "virtuoso-item-list",
3011
3011
  style: { paddingBottom: e.offsetBottom, paddingTop: e.offsetTop },
3012
3012
  children: e.items.map((f) => {
@@ -3014,7 +3014,7 @@ const Zr = /* @__PURE__ */ Q(() => {
3014
3014
  return i ? /* @__PURE__ */ I.jsx(
3015
3015
  a,
3016
3016
  {
3017
- ...he(a, h),
3017
+ ...ge(a, h),
3018
3018
  height: e.itemHeight,
3019
3019
  index: f.index,
3020
3020
  width: e.itemWidth
@@ -3023,7 +3023,7 @@ const Zr = /* @__PURE__ */ Q(() => {
3023
3023
  ) : /* @__PURE__ */ Tt(
3024
3024
  l,
3025
3025
  {
3026
- ...he(l, h),
3026
+ ...ge(l, h),
3027
3027
  className: o,
3028
3028
  "data-index": f.index,
3029
3029
  key: d
@@ -3034,7 +3034,7 @@ const Zr = /* @__PURE__ */ Q(() => {
3034
3034
  }
3035
3035
  );
3036
3036
  }), ei = L.memo(function() {
3037
- const e = re("HeaderComponent"), t = ze("headerHeight"), o = re("headerFooterTag"), n = Xe(
3037
+ const e = re("HeaderComponent"), t = Be("headerHeight"), o = re("headerFooterTag"), n = Xe(
3038
3038
  L.useMemo(
3039
3039
  () => (i) => {
3040
3040
  t(Ge(i, "height"));
@@ -3044,9 +3044,9 @@ const Zr = /* @__PURE__ */ Q(() => {
3044
3044
  !0,
3045
3045
  !1
3046
3046
  ), r = re("context");
3047
- return e ? /* @__PURE__ */ I.jsx(o, { ref: n, children: /* @__PURE__ */ I.jsx(e, { ...he(e, r) }) }) : null;
3047
+ return e ? /* @__PURE__ */ I.jsx(o, { ref: n, children: /* @__PURE__ */ I.jsx(e, { ...ge(e, r) }) }) : null;
3048
3048
  }), ti = L.memo(function() {
3049
- const e = re("FooterComponent"), t = ze("footerHeight"), o = re("headerFooterTag"), n = Xe(
3049
+ const e = re("FooterComponent"), t = Be("footerHeight"), o = re("headerFooterTag"), n = Xe(
3050
3050
  L.useMemo(
3051
3051
  () => (i) => {
3052
3052
  t(Ge(i, "height"));
@@ -3056,9 +3056,9 @@ const Zr = /* @__PURE__ */ Q(() => {
3056
3056
  !0,
3057
3057
  !1
3058
3058
  ), r = re("context");
3059
- return e ? /* @__PURE__ */ I.jsx(o, { ref: n, children: /* @__PURE__ */ I.jsx(e, { ...he(e, r) }) }) : null;
3059
+ return e ? /* @__PURE__ */ I.jsx(o, { ref: n, children: /* @__PURE__ */ I.jsx(e, { ...ge(e, r) }) }) : null;
3060
3060
  }), oi = ({ children: e }) => {
3061
- const t = L.useContext(un), o = ze("itemDimensions"), n = ze("viewportDimensions"), r = Xe(
3061
+ const t = L.useContext(un), o = Be("itemDimensions"), n = Be("viewportDimensions"), r = Xe(
3062
3062
  L.useMemo(
3063
3063
  () => (i) => {
3064
3064
  n(i.getBoundingClientRect());
@@ -3072,13 +3072,13 @@ const Zr = /* @__PURE__ */ Q(() => {
3072
3072
  t && (n({ height: t.viewportHeight, width: t.viewportWidth }), o({ height: t.itemHeight, width: t.itemWidth }));
3073
3073
  }, [t, n, o]), /* @__PURE__ */ I.jsx("div", { ref: r, style: Bt(!1), children: e });
3074
3074
  }, ni = ({ children: e }) => {
3075
- const t = L.useContext(un), o = ze("windowViewportRect"), n = ze("itemDimensions"), r = re("customScrollParent"), i = Vo(o, r, !1);
3075
+ const t = L.useContext(un), o = Be("windowViewportRect"), n = Be("itemDimensions"), r = re("customScrollParent"), i = Vo(o, r, !1);
3076
3076
  return L.useEffect(() => {
3077
3077
  t && (n({ height: t.itemHeight, width: t.itemWidth }), o({ offsetTop: 0, visibleHeight: t.viewportHeight, visibleWidth: t.viewportWidth }));
3078
3078
  }, [t, o, n]), /* @__PURE__ */ I.jsx("div", { ref: i, style: Bt(!1), children: e });
3079
3079
  }, ri = /* @__PURE__ */ L.memo(function({ ...e }) {
3080
3080
  const t = re("useWindowScroll"), o = re("customScrollParent"), n = o || t ? si : ii, r = o || t ? ni : oi, i = re("context");
3081
- return /* @__PURE__ */ I.jsx(n, { ...e, ...he(n, i), children: /* @__PURE__ */ I.jsxs(r, { children: [
3081
+ return /* @__PURE__ */ I.jsx(n, { ...e, ...ge(n, i), children: /* @__PURE__ */ I.jsxs(r, { children: [
3082
3082
  /* @__PURE__ */ I.jsx(ei, {}),
3083
3083
  /* @__PURE__ */ I.jsx(Qr, {}),
3084
3084
  /* @__PURE__ */ I.jsx(ti, {})
@@ -3087,7 +3087,7 @@ const Zr = /* @__PURE__ */ Q(() => {
3087
3087
  Component: ws,
3088
3088
  useEmitter: vn,
3089
3089
  useEmitterValue: re,
3090
- usePublisher: ze
3090
+ usePublisher: Be
3091
3091
  } = /* @__PURE__ */ cn(
3092
3092
  Jr,
3093
3093
  {
@@ -3129,7 +3129,7 @@ const Zr = /* @__PURE__ */ Q(() => {
3129
3129
  }
3130
3130
  },
3131
3131
  ri
3132
- ), ii = /* @__PURE__ */ gn({ useEmitter: vn, useEmitterValue: re, usePublisher: ze }), si = /* @__PURE__ */ pn({ useEmitter: vn, useEmitterValue: re, usePublisher: ze });
3132
+ ), ii = /* @__PURE__ */ gn({ useEmitter: vn, useEmitterValue: re, usePublisher: Be }), si = /* @__PURE__ */ pn({ useEmitter: vn, useEmitterValue: re, usePublisher: Be });
3133
3133
  function jo(e, t, o) {
3134
3134
  return t !== "normal" && !(t != null && t.endsWith("px")) && o(`${e} was not resolved to pixel value correctly`, t, Ie.WARN), t === "normal" ? 0 : parseInt(t ?? "0", 10);
3135
3135
  }
@@ -3206,78 +3206,81 @@ const li = "_realTimeLogModalStyle_1f0fd_2", ci = "_customHeader_1f0fd_10", ai =
3206
3206
  onFetchLogs: w,
3207
3207
  onClearLogs: g,
3208
3208
  withoutPermission: v
3209
- } = e, S = Lt(null), [, k] = Wo(e.id), [p, f] = Qe(!1), [d, b] = Qe(), [R, m] = Qe(""), [u, y] = Qe(), [_, j] = Qe(0), z = s || [], N = c === void 0, $ = (C, W, X, D) => {
3209
+ } = e, S = Lt(null), [, k] = Wo(e.id), [p, f] = Qe(!1), [d, b] = Qe(), [R, m] = Qe(""), [u, y] = Qe(), [_, j] = Qe(0), z = s || [], N = c === void 0;
3210
+ console.log("isFirstRequestisFirstRequest", N);
3211
+ const $ = (C, W, Z, D) => {
3210
3212
  const q = {
3211
3213
  applications: [W || i[0].value],
3212
3214
  scroll_mode: C || void 0
3213
3215
  };
3214
3216
  w({ projectPk: o, appPk: r, applications: q.applications, scroll_mode: q.scroll_mode, withoutPermission: v }).then(
3215
- (oe) => {
3216
- if (Object.prototype.hasOwnProperty.call(oe, "error")) {
3217
+ (J) => {
3218
+ var Y, ae, Se;
3219
+ if (console.log("onFetchLogs res", J, Object), J && ((Se = (ae = (Y = Object == null ? void 0 : Object.prototype) == null ? void 0 : Y.hasOwnProperty) == null ? void 0 : ae.call) != null && Se.call(ae, J, "error"))) {
3217
3220
  D && D();
3218
3221
  return;
3219
3222
  }
3220
- X && X();
3223
+ Z && Z();
3221
3224
  }
3222
3225
  );
3223
3226
  };
3224
- function ee(C) {
3227
+ function te(C) {
3225
3228
  let W = 0;
3226
- const X = {};
3229
+ const Z = {};
3227
3230
  return C.forEach((D, q) => {
3228
- const oe = D.message.match(/<mark\b[^>]*>/g);
3229
- W += oe ? oe.length : 0, oe && (X[q] = oe);
3230
- }), { total: W, filteredLogs: X };
3231
+ const J = D.message.match(/<mark\b[^>]*>/g);
3232
+ W += J ? J.length : 0, J && (Z[q] = J);
3233
+ }), { total: W, filteredLogs: Z };
3231
3234
  }
3232
- const B = bn($, n * 1e3), K = Lt(), Y = Lt(B), ve = (C, W, X, D) => {
3235
+ const B = bn($, n * 1e3), K = Lt(), X = Lt(B), ve = (C, W, Z, D) => {
3233
3236
  if (!W || W.length < 1)
3234
3237
  return C;
3235
3238
  let q = C;
3236
3239
  if (D.group)
3237
3240
  if (D.regex) {
3238
- let Z;
3241
+ let Y;
3239
3242
  try {
3240
- Z = new RegExp(
3243
+ Y = new RegExp(
3241
3244
  W,
3242
3245
  D.caseSensitive ? "g" : "gi"
3243
3246
  );
3244
3247
  } catch {
3245
3248
  return C;
3246
3249
  }
3247
- q = C.filter((ge) => Z.test(ge.message));
3250
+ q = C.filter((ae) => Y.test(ae.message));
3248
3251
  } else
3249
3252
  D.caseSensitive ? q = C.filter(
3250
- (Z) => Z.message.includes(W)
3253
+ (Y) => Y.message.includes(W)
3251
3254
  ) : q = C.filter(
3252
- (Z) => Z.message.toLocaleLowerCase().includes(W.toLocaleLowerCase())
3255
+ (Y) => Y.message.toLocaleLowerCase().includes(W.toLocaleLowerCase())
3253
3256
  );
3254
- return q.map((Z, ge) => ({
3255
- ...Z,
3256
- message: Te(Z.message, W, D, ge) + `
3257
+ return q.map((Y, ae) => ({
3258
+ ...Y,
3259
+ message: Te(Y.message, W, D, ae) + `
3257
3260
  `
3258
3261
  }));
3259
- }, Te = (C, W, X, D) => {
3262
+ }, Te = (C, W, Z, D) => {
3260
3263
  if (!W)
3261
3264
  return C;
3262
3265
  try {
3263
- if (X.regex) {
3266
+ if (Z.regex) {
3264
3267
  let q;
3265
- const oe = W.match(/^\/(.+)\/([gimsuy]*)$/);
3266
- return oe ? q = new RegExp(oe[1], oe[2]) : q = new RegExp(
3268
+ const J = W.match(/^\/(.+)\/([gimsuy]*)$/);
3269
+ return J ? q = new RegExp(J[1], J[2]) : q = new RegExp(
3267
3270
  W,
3268
- X.caseSensitive ? "g" : "gi"
3271
+ Z.caseSensitive ? "g" : "gi"
3269
3272
  ), C.replace(
3270
3273
  q,
3271
- (Z) => `<mark data-mark-index="${D}">${Z}</mark>`
3274
+ (Y) => `<mark data-mark-index="${D}">${Y}</mark>`
3272
3275
  );
3273
3276
  } else {
3274
- if (X.caseSensitive)
3277
+ if (Z.caseSensitive)
3275
3278
  return C.split(W).join(`<mark data-mark-index="${D}">${W}</mark>`);
3276
3279
  {
3277
3280
  const q = new RegExp(W, "gi");
3278
3281
  return C.replace(
3279
3282
  q,
3280
- (oe) => `<mark data-mark-index="${D}">${oe}</mark>`
3283
+ (J) => `<mark data-mark-index="${D}">${J}</mark>`
3281
3284
  );
3282
3285
  }
3283
3286
  }
@@ -3286,9 +3289,9 @@ const li = "_realTimeLogModalStyle_1f0fd_2", ci = "_customHeader_1f0fd_10", ai =
3286
3289
  }
3287
3290
  }, we = () => {
3288
3291
  m("");
3289
- }, fe = () => {
3292
+ }, he = () => {
3290
3293
  f(!p);
3291
- }, me = () => {
3294
+ }, fe = () => {
3292
3295
  let C = "";
3293
3296
  z.forEach((W) => {
3294
3297
  C += W.message;
@@ -3297,94 +3300,94 @@ const li = "_realTimeLogModalStyle_1f0fd_2", ci = "_customHeader_1f0fd_10", ai =
3297
3300
  message: pt("text.copied"),
3298
3301
  closeTime: 3e3
3299
3302
  }), navigator.clipboard.writeText(C);
3300
- }, Be = (C, W) => {
3303
+ }, Le = (C, W) => {
3301
3304
  C.currentTarget.classList.toggle(le.activeIcon), y({
3302
3305
  ...u,
3303
3306
  [W]: !(u != null && u[W])
3304
3307
  });
3305
3308
  }, Ce = (C) => {
3306
- var W, X;
3307
- b(C), clearTimeout(K.current), (W = Y.current) == null || W.stopInterval(), (X = Y.current) == null || X.fetch(void 0, C), jt(() => {
3309
+ var W, Z;
3310
+ b(C), clearTimeout(K.current), (W = X.current) == null || W.stopInterval(), (Z = X.current) == null || Z.fetch(void 0, C), jt(() => {
3308
3311
  var D;
3309
3312
  (D = S.current) == null || D.scrollToIndex({ index: "LAST" });
3310
3313
  }, 300)();
3311
3314
  }, Ve = (C) => {
3312
3315
  C.classList.add(le.selectedMark);
3313
- }, Le = (C) => {
3316
+ }, je = (C) => {
3314
3317
  Array.from(C).forEach(
3315
3318
  (W) => W.classList.remove(le.selectedMark)
3316
3319
  );
3317
- }, He = (C, W, X) => {
3318
- var oe;
3320
+ }, ke = (C, W, Z) => {
3321
+ var J;
3319
3322
  let D = C - 1;
3320
3323
  D < 1 && (D = W), j(D);
3321
3324
  let q = 0;
3322
- for (const Z in X) {
3323
- const ge = X[Z];
3324
- if (q + ge.length >= D) {
3325
- const We = D - q - 1;
3326
- (oe = S.current) == null || oe.scrollToIndex({ index: Number(Z) });
3325
+ for (const Y in Z) {
3326
+ const ae = Z[Y];
3327
+ if (q + ae.length >= D) {
3328
+ const Se = D - q - 1;
3329
+ (J = S.current) == null || J.scrollToIndex({ index: Number(Y) });
3327
3330
  const Pe = document.querySelector(
3328
- `[data-index="${Number(Z) + 1}"]`
3331
+ `[data-index="${Number(Y) + 1}"]`
3329
3332
  );
3330
3333
  if (Pe) {
3331
- const _e = Pe.getElementsByTagName("mark");
3332
- Le(_e);
3334
+ const Re = Pe.getElementsByTagName("mark");
3335
+ je(Re);
3333
3336
  }
3334
3337
  jt(() => {
3335
- const _e = document.querySelector(
3336
- `[data-index="${Z}"]`
3338
+ const Re = document.querySelector(
3339
+ `[data-index="${Y}"]`
3337
3340
  );
3338
- if (_e) {
3339
- const Re = _e.getElementsByTagName("mark");
3340
- Re[We] && (Le(Re), Ve(Re[We]));
3341
+ if (Re) {
3342
+ const Ee = Re.getElementsByTagName("mark");
3343
+ Ee[Se] && (je(Ee), Ve(Ee[Se]));
3341
3344
  }
3342
3345
  }, 300)();
3343
3346
  break;
3344
3347
  } else
3345
- q += ge.length;
3348
+ q += ae.length;
3346
3349
  }
3347
- }, ke = (C, W, X) => {
3348
- var oe;
3350
+ }, _e = (C, W, Z) => {
3351
+ var J;
3349
3352
  let D = C + 1;
3350
3353
  D > W && (D = 1), j(D);
3351
3354
  let q = 0;
3352
- for (const Z in X) {
3353
- const ge = X[Z];
3354
- if (q + ge.length >= D) {
3355
- const We = D - q - 1;
3356
- (oe = S.current) == null || oe.scrollToIndex({ index: Number(Z) });
3355
+ for (const Y in Z) {
3356
+ const ae = Z[Y];
3357
+ if (q + ae.length >= D) {
3358
+ const Se = D - q - 1;
3359
+ (J = S.current) == null || J.scrollToIndex({ index: Number(Y) });
3357
3360
  const Pe = document.querySelector(
3358
- `[data-index="${Number(Z) - 1}"]`
3361
+ `[data-index="${Number(Y) - 1}"]`
3359
3362
  );
3360
3363
  if (Pe) {
3361
- const _e = Pe.getElementsByTagName("mark");
3362
- Le(_e);
3364
+ const Re = Pe.getElementsByTagName("mark");
3365
+ je(Re);
3363
3366
  }
3364
3367
  jt(() => {
3365
- const _e = document.querySelector(
3366
- `[data-index="${Z}"]`
3368
+ const Re = document.querySelector(
3369
+ `[data-index="${Y}"]`
3367
3370
  );
3368
- if (_e) {
3369
- const Re = _e.getElementsByTagName("mark");
3370
- Re[We] && (Le(Re), Ve(Re[We]));
3371
+ if (Re) {
3372
+ const Ee = Re.getElementsByTagName("mark");
3373
+ Ee[Se] && (je(Ee), Ve(Ee[Se]));
3371
3374
  }
3372
3375
  }, 300)();
3373
3376
  break;
3374
3377
  } else
3375
- q += ge.length;
3378
+ q += ae.length;
3376
3379
  }
3377
- }, T = ve(z, R, Y, {
3380
+ }, T = ve(z, R, X, {
3378
3381
  regex: u == null ? void 0 : u.regex,
3379
3382
  caseSensitive: u == null ? void 0 : u.caseSensitive,
3380
3383
  group: u == null ? void 0 : u.group
3381
- }), O = ee(T), te = (C) => {
3382
- C.key === "Enter" && ke(
3384
+ }), O = te(T), oe = (C) => {
3385
+ C.key === "Enter" && _e(
3383
3386
  _,
3384
3387
  O.total,
3385
3388
  O.filteredLogs
3386
3389
  );
3387
- }, ue = (C, W) => /* @__PURE__ */ I.jsx(
3390
+ }, de = (C, W) => /* @__PURE__ */ I.jsx(
3388
3391
  "div",
3389
3392
  {
3390
3393
  "data-index": C,
@@ -3393,11 +3396,11 @@ const li = "_realTimeLogModalStyle_1f0fd_2", ci = "_customHeader_1f0fd_10", ai =
3393
3396
  );
3394
3397
  return ao(() => {
3395
3398
  var C, W;
3396
- return (C = Y.current) == null || C.fetch(void 0, d), (W = Y.current) == null || W.startInterval("newer", d), () => {
3397
- clearTimeout(K.current), Y.current.stopInterval(), g();
3399
+ return (C = X.current) == null || C.fetch(void 0, d), (W = X.current) == null || W.startInterval("newer", d), () => {
3400
+ clearTimeout(K.current), X.current.stopInterval(), g();
3398
3401
  };
3399
- }, []), ao(() => (window.removeEventListener("keydown", te), window.addEventListener("keydown", te), () => {
3400
- window.removeEventListener("keydown", te);
3402
+ }, []), ao(() => (window.removeEventListener("keydown", oe), window.addEventListener("keydown", oe), () => {
3403
+ window.removeEventListener("keydown", oe);
3401
3404
  }), [_, O.total, O.filteredLogs]), /* @__PURE__ */ I.jsx(
3402
3405
  Ao,
3403
3406
  {
@@ -3420,10 +3423,10 @@ const li = "_realTimeLogModalStyle_1f0fd_2", ci = "_customHeader_1f0fd_10", ai =
3420
3423
  onClick: () => {
3421
3424
  t && t(), k();
3422
3425
  },
3423
- children: /* @__PURE__ */ I.jsx(Se, { name: "close-window" })
3426
+ children: /* @__PURE__ */ I.jsx(ye, { name: "close-window" })
3424
3427
  }
3425
3428
  ),
3426
- /* @__PURE__ */ I.jsx("div", { className: le.iosIcon, onClick: fe, children: /* @__PURE__ */ I.jsx(Se, { name: "expand-window" }) })
3429
+ /* @__PURE__ */ I.jsx("div", { className: le.iosIcon, onClick: he, children: /* @__PURE__ */ I.jsx(ye, { name: "expand-window" }) })
3427
3430
  ] }),
3428
3431
  /* @__PURE__ */ I.jsx("div", { children: /* @__PURE__ */ I.jsx(
3429
3432
  Hn,
@@ -3455,38 +3458,38 @@ const li = "_realTimeLogModalStyle_1f0fd_2", ci = "_customHeader_1f0fd_10", ai =
3455
3458
  suffixClickable: !0,
3456
3459
  onChange: (C) => {
3457
3460
  var W;
3458
- m(C.target.value), C.target.value.length > 1 && ((W = Y.current) == null || W.stopInterval()), j(0);
3461
+ m(C.target.value), C.target.value.length > 1 && ((W = X.current) == null || W.stopInterval()), j(0);
3459
3462
  },
3460
3463
  prefix: /* @__PURE__ */ I.jsxs("div", { className: le.iconGroup, children: [
3461
3464
  /* @__PURE__ */ I.jsx(
3462
- Se,
3465
+ ye,
3463
3466
  {
3464
3467
  name: "group",
3465
3468
  onClick: (C) => {
3466
- Be(C, "group");
3469
+ Le(C, "group");
3467
3470
  }
3468
3471
  }
3469
3472
  ),
3470
3473
  /* @__PURE__ */ I.jsx(
3471
- Se,
3474
+ ye,
3472
3475
  {
3473
3476
  name: "case-sensitive",
3474
3477
  onClick: (C) => {
3475
- Be(C, "caseSensitive");
3478
+ Le(C, "caseSensitive");
3476
3479
  }
3477
3480
  }
3478
3481
  ),
3479
3482
  /* @__PURE__ */ I.jsx(
3480
- Se,
3483
+ ye,
3481
3484
  {
3482
3485
  name: "regex",
3483
3486
  onClick: (C) => {
3484
- Be(C, "regex");
3487
+ Le(C, "regex");
3485
3488
  }
3486
3489
  }
3487
3490
  )
3488
3491
  ] }),
3489
- suffix: R.length > 0 ? /* @__PURE__ */ I.jsx("div", { children: /* @__PURE__ */ I.jsx(Se, { onClick: we, name: "close" }) }) : /* @__PURE__ */ I.jsx("div", { children: /* @__PURE__ */ I.jsx(Se, { name: "search" }) })
3492
+ suffix: R.length > 0 ? /* @__PURE__ */ I.jsx("div", { children: /* @__PURE__ */ I.jsx(ye, { onClick: we, name: "close" }) }) : /* @__PURE__ */ I.jsx("div", { children: /* @__PURE__ */ I.jsx(ye, { name: "search" }) })
3490
3493
  }
3491
3494
  ),
3492
3495
  /* @__PURE__ */ I.jsxs("div", { className: le.searchResult, children: [
@@ -3498,11 +3501,11 @@ const li = "_realTimeLogModalStyle_1f0fd_2", ci = "_customHeader_1f0fd_10", ai =
3498
3501
  ] }),
3499
3502
  /* @__PURE__ */ I.jsxs("div", { className: le.chevronIcons, children: [
3500
3503
  /* @__PURE__ */ I.jsx(
3501
- Se,
3504
+ ye,
3502
3505
  {
3503
3506
  name: "chevron-left",
3504
3507
  onClick: () => {
3505
- ke(
3508
+ _e(
3506
3509
  _,
3507
3510
  O.total,
3508
3511
  O.filteredLogs
@@ -3511,11 +3514,11 @@ const li = "_realTimeLogModalStyle_1f0fd_2", ci = "_customHeader_1f0fd_10", ai =
3511
3514
  }
3512
3515
  ),
3513
3516
  /* @__PURE__ */ I.jsx(
3514
- Se,
3517
+ ye,
3515
3518
  {
3516
3519
  name: "chevron-left",
3517
3520
  onClick: () => {
3518
- He(
3521
+ ke(
3519
3522
  _,
3520
3523
  O.total,
3521
3524
  O.filteredLogs
@@ -3549,7 +3552,7 @@ const li = "_realTimeLogModalStyle_1f0fd_2", ci = "_customHeader_1f0fd_10", ai =
3549
3552
  !0
3550
3553
  );
3551
3554
  },
3552
- children: /* @__PURE__ */ I.jsx(Se, { name: tt.Download })
3555
+ children: /* @__PURE__ */ I.jsx(ye, { name: tt.Download })
3553
3556
  }
3554
3557
  ),
3555
3558
  /* @__PURE__ */ I.jsx(
@@ -3559,8 +3562,8 @@ const li = "_realTimeLogModalStyle_1f0fd_2", ci = "_customHeader_1f0fd_10", ai =
3559
3562
  className: wt(le.copyIconBtn, {
3560
3563
  [le.copyIconBtn__disabled]: z.length === 0
3561
3564
  }),
3562
- onClick: me,
3563
- children: /* @__PURE__ */ I.jsx(Se, { name: tt.Copy })
3565
+ onClick: fe,
3566
+ children: /* @__PURE__ */ I.jsx(ye, { name: tt.Copy })
3564
3567
  }
3565
3568
  )
3566
3569
  ] }) })
@@ -3576,25 +3579,25 @@ const li = "_realTimeLogModalStyle_1f0fd_2", ci = "_customHeader_1f0fd_10", ai =
3576
3579
  data: T,
3577
3580
  initialTopMostItemIndex: T.length - 1 || 0,
3578
3581
  totalCount: T.length,
3579
- itemContent: ue,
3582
+ itemContent: de,
3580
3583
  onScroll: (C) => {
3581
- C.currentTarget.scrollHeight - C.currentTarget.scrollTop <= C.currentTarget.clientHeight + Mo || Y.current.stopInterval();
3584
+ C.currentTarget.scrollHeight - C.currentTarget.scrollTop <= C.currentTarget.clientHeight + Mo || X.current.stopInterval();
3582
3585
  },
3583
3586
  atTopThreshold: zi,
3584
3587
  atTopStateChange: (C) => {
3585
3588
  var D;
3586
3589
  if (console.log("atTop, filteredLogs.length, responseCount, minLineLimit, atTop", T.length, c, l, C), R.length > 0 || N)
3587
3590
  return;
3588
- const W = () => T.length - a < 30 || a === 0 ? 10 : a, X = () => {
3591
+ const W = () => T.length - a < 30 || a === 0 ? 10 : a, Z = () => {
3589
3592
  var q;
3590
3593
  (q = S.current) == null || q.scrollToIndex({
3591
3594
  index: W()
3592
3595
  });
3593
3596
  };
3594
- C && !N && ((D = Y.current) == null || D.fetch(
3597
+ C && !N && ((D = X.current) == null || D.fetch(
3595
3598
  "older",
3596
3599
  d,
3597
- X
3600
+ Z
3598
3601
  ));
3599
3602
  },
3600
3603
  atBottomThreshold: Mo,
@@ -3606,26 +3609,26 @@ const li = "_realTimeLogModalStyle_1f0fd_2", ci = "_customHeader_1f0fd_10", ai =
3606
3609
  if (console.log("onNewerSuccess ,first", T.length), (D = S.current) == null || D.scrollToIndex({
3607
3610
  index: T.length - 50
3608
3611
  }), c < l) {
3609
- Y.current.stopInterval(), console.log(
3612
+ X.current.stopInterval(), console.log(
3610
3613
  "onNewerSuccess minLineLimit",
3611
3614
  c,
3612
3615
  l
3613
3616
  ), (q = S.current) == null || q.scrollToIndex({
3614
3617
  index: T.length - 1
3615
- }), Y.current.startInterval("newer", d);
3618
+ }), X.current.startInterval("newer", d);
3616
3619
  return;
3617
3620
  }
3618
- }, X = () => {
3621
+ }, Z = () => {
3619
3622
  var D;
3620
- console.log("Error fetching newer logs"), Y.current.stopInterval(), (D = S.current) == null || D.scrollToIndex({
3623
+ console.log("Error fetching newer logs"), X.current.stopInterval(), (D = S.current) == null || D.scrollToIndex({
3621
3624
  index: T.length - 10
3622
- }), Y.current.startInterval("newer", d);
3625
+ }), X.current.startInterval("newer", d);
3623
3626
  };
3624
- C && Y.current.fetch(
3627
+ C && X.current.fetch(
3625
3628
  "newer",
3626
3629
  d,
3627
3630
  W,
3628
- X
3631
+ Z
3629
3632
  );
3630
3633
  }
3631
3634
  }
@@ -3658,10 +3661,10 @@ const li = "_realTimeLogModalStyle_1f0fd_2", ci = "_customHeader_1f0fd_10", ai =
3658
3661
  onClick: () => {
3659
3662
  l && l(), s();
3660
3663
  },
3661
- children: /* @__PURE__ */ I.jsx(Se, { name: "close-window" })
3664
+ children: /* @__PURE__ */ I.jsx(ye, { name: "close-window" })
3662
3665
  }
3663
3666
  ),
3664
- /* @__PURE__ */ I.jsx("div", { className: rt.iosIcon, onClick: c, children: /* @__PURE__ */ I.jsx(Se, { name: "expand-window" }) })
3667
+ /* @__PURE__ */ I.jsx("div", { className: rt.iosIcon, onClick: c, children: /* @__PURE__ */ I.jsx(ye, { name: "expand-window" }) })
3665
3668
  ] }) }),
3666
3669
  /* @__PURE__ */ I.jsx("div", { children: n("title.error_log") })
3667
3670
  ] }),