react-virtuoso 4.18.3 → 4.18.5

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
@@ -1,7 +1,7 @@
1
- import { jsx as G, jsxs as Dt } from "react/jsx-runtime";
2
- import H, { createElement as Nt } from "react";
1
+ import { jsx as W, jsxs as Dt } from "react/jsx-runtime";
2
+ import E, { createElement as Nt } from "react";
3
3
  import ao from "react-dom";
4
- const we = 0, Wt = 1, Zt = 2, kn = 4;
4
+ const we = 0, Gt = 1, Zt = 2, kn = 4;
5
5
  function un(t) {
6
6
  return () => t;
7
7
  }
@@ -37,7 +37,7 @@ function ot(...t) {
37
37
  return t;
38
38
  }
39
39
  function Y(t, e) {
40
- return t(Wt, e);
40
+ return t(Gt, e);
41
41
  }
42
42
  function _(t, e) {
43
43
  t(we, e);
@@ -52,7 +52,7 @@ function L(t, e) {
52
52
  return Y(t, mo(e, we));
53
53
  }
54
54
  function yt(t, e) {
55
- const n = t(Wt, (o) => {
55
+ const n = t(Gt, (o) => {
56
56
  n(), e(o);
57
57
  });
58
58
  return n;
@@ -74,7 +74,7 @@ function et(t = Ln) {
74
74
  t(e, o) || (e = o, n(o));
75
75
  };
76
76
  }
77
- function W(t) {
77
+ function G(t) {
78
78
  return (e) => (n) => {
79
79
  t(n) && e(n);
80
80
  };
@@ -94,7 +94,7 @@ function I(t, ...e) {
94
94
  case Zt:
95
95
  Me(t);
96
96
  return;
97
- case Wt:
97
+ case Gt:
98
98
  return Y(t, n(r));
99
99
  }
100
100
  });
@@ -142,7 +142,7 @@ function Io(t) {
142
142
  const o = () => e?.();
143
143
  return function(r, s) {
144
144
  switch (r) {
145
- case Wt:
145
+ case Gt:
146
146
  return s ? n === s ? void 0 : (o(), n = s, e = Y(t, s), e) : (o(), Xt);
147
147
  case Zt:
148
148
  o(), n = null;
@@ -158,7 +158,7 @@ function v(t) {
158
158
  case we:
159
159
  e = r;
160
160
  break;
161
- case Wt: {
161
+ case Gt: {
162
162
  r(e);
163
163
  break;
164
164
  }
@@ -183,7 +183,7 @@ function U() {
183
183
  case Zt:
184
184
  t.splice(0, t.length);
185
185
  return;
186
- case Wt:
186
+ case Gt:
187
187
  return t.push(n), () => {
188
188
  const o = t.indexOf(n);
189
189
  o > -1 && t.splice(o, 1);
@@ -227,7 +227,7 @@ function at(...t) {
227
227
  Me(e);
228
228
  return;
229
229
  }
230
- case Wt:
230
+ case Gt:
231
231
  return o === r && i(n), Y(e, i);
232
232
  }
233
233
  };
@@ -240,7 +240,7 @@ function ze(...t) {
240
240
  switch (e) {
241
241
  case Zt:
242
242
  return;
243
- case Wt:
243
+ case Gt:
244
244
  return po(...t.map((o) => Y(o, n)));
245
245
  }
246
246
  };
@@ -259,7 +259,7 @@ const ft = {
259
259
  [ft.ERROR]: "error",
260
260
  [ft.INFO]: "log",
261
261
  [ft.WARN]: "warn"
262
- }, vo = () => typeof globalThis > "u" ? window : globalThis, Gt = j(
262
+ }, vo = () => typeof globalThis > "u" ? window : globalThis, Wt = j(
263
263
  () => {
264
264
  const t = v(ft.ERROR);
265
265
  return {
@@ -283,10 +283,10 @@ function kt(t, e, n) {
283
283
  return _e(t, e, n).callbackRef;
284
284
  }
285
285
  function _e(t, e, n) {
286
- const o = H.useRef(null);
286
+ const o = E.useRef(null);
287
287
  let r = (i) => {
288
288
  };
289
- const s = H.useMemo(() => typeof ResizeObserver < "u" ? new ResizeObserver((i) => {
289
+ const s = E.useMemo(() => typeof ResizeObserver < "u" ? new ResizeObserver((i) => {
290
290
  const l = () => {
291
291
  const c = i[0].target;
292
292
  c.offsetParent !== null && t(c);
@@ -298,7 +298,7 @@ function _e(t, e, n) {
298
298
  }, { callbackRef: r, ref: o };
299
299
  }
300
300
  function zn(t, e, n, o, r, s, i, l, c) {
301
- const d = H.useCallback(
301
+ const d = E.useCallback(
302
302
  (m) => {
303
303
  const x = Co(m.children, e, l ? "offsetWidth" : "offsetHeight", r);
304
304
  let p = m.parentElement;
@@ -341,7 +341,7 @@ function fn(t, e, n) {
341
341
  return e !== "normal" && e?.endsWith("px") !== !0 && n(`${t} was not resolved to pixel value correctly`, e, ft.WARN), e === "normal" ? 0 : parseInt(e ?? "0", 10);
342
342
  }
343
343
  function Ne(t, e, n) {
344
- const o = H.useRef(null), r = H.useCallback(
344
+ const o = E.useRef(null), r = E.useCallback(
345
345
  (c) => {
346
346
  if (!c?.offsetParent)
347
347
  return;
@@ -355,6 +355,7 @@ function Ne(t, e, n) {
355
355
  p = T.innerHeight - Math.max(0, d.top), x = d.top + T.scrollY;
356
356
  }
357
357
  o.current = {
358
+ listHeight: d.height,
358
359
  offsetTop: x,
359
360
  visibleHeight: p,
360
361
  visibleWidth: m
@@ -362,10 +363,10 @@ function Ne(t, e, n) {
362
363
  },
363
364
  // oxlint-disable-next-line exhaustive-deps
364
365
  [t, e]
365
- ), { callbackRef: s, ref: i } = _e(r, !0, n), l = H.useCallback(() => {
366
+ ), { callbackRef: s, ref: i } = _e(r, !0, n), l = E.useCallback(() => {
366
367
  r(i.current);
367
368
  }, [r, i]);
368
- return H.useEffect(() => {
369
+ return E.useEffect(() => {
369
370
  if (e) {
370
371
  e.addEventListener("scroll", l);
371
372
  const d = new ResizeObserver(() => {
@@ -452,7 +453,7 @@ function Rt(t, e, n = "k") {
452
453
  return Rt(t.l, e, n);
453
454
  }
454
455
  function Tt(t, e, n) {
455
- return J(t) ? Wn(e, n, 1) : e === t.k ? dt(t, { k: e, v: n }) : e < t.k ? mn(dt(t, { l: Tt(t.l, e, n) })) : mn(dt(t, { r: Tt(t.r, e, n) }));
456
+ return J(t) ? Gn(e, n, 1) : e === t.k ? dt(t, { k: e, v: n }) : e < t.k ? mn(dt(t, { l: Tt(t.l, e, n) })) : mn(dt(t, { r: Tt(t.r, e, n) }));
456
457
  }
457
458
  function qt() {
458
459
  return se;
@@ -492,8 +493,8 @@ function Se(t) {
492
493
  if (o.lvl >= n - 1 && e.lvl >= n - 1)
493
494
  return t;
494
495
  if (n > o.lvl + 1) {
495
- if (He(e))
496
- return Gn(dt(t, { lvl: n - 1 }));
496
+ if (Ee(e))
497
+ return Wn(dt(t, { lvl: n - 1 }));
497
498
  if (!J(e) && !J(e.r))
498
499
  return dt(e.r, {
499
500
  l: dt(e, { r: e.r.l }),
@@ -505,10 +506,10 @@ function Se(t) {
505
506
  });
506
507
  throw new Error("Unexpected empty nodes");
507
508
  }
508
- if (He(t))
509
+ if (Ee(t))
509
510
  return Pe(dt(t, { lvl: n - 1 }));
510
511
  if (!J(o) && !J(o.l)) {
511
- const r = o.l, s = He(r) ? o.lvl - 1 : o.lvl;
512
+ const r = o.l, s = Ee(r) ? o.lvl - 1 : o.lvl;
512
513
  return dt(r, {
513
514
  l: dt(t, {
514
515
  lvl: n - 1,
@@ -521,7 +522,7 @@ function Se(t) {
521
522
  throw new Error("Unexpected empty nodes");
522
523
  }
523
524
  function dt(t, e) {
524
- return Wn(
525
+ return Gn(
525
526
  e.k !== void 0 ? e.k : t.k,
526
527
  e.v !== void 0 ? e.v : t.v,
527
528
  e.lvl !== void 0 ? e.lvl : t.lvl,
@@ -532,19 +533,19 @@ function dt(t, e) {
532
533
  function Vn(t) {
533
534
  return J(t.r) ? t.l : Se(dt(t, { r: Vn(t.r) }));
534
535
  }
535
- function He(t) {
536
+ function Ee(t) {
536
537
  return J(t) || t.lvl > t.r.lvl;
537
538
  }
538
539
  function Pn(t) {
539
540
  return J(t.r) ? [t.k, t.v] : Pn(t.r);
540
541
  }
541
- function Wn(t, e, n, o = se, r = se) {
542
+ function Gn(t, e, n, o = se, r = se) {
542
543
  return { k: t, l: o, lvl: n, r, v: e };
543
544
  }
544
545
  function mn(t) {
545
- return Pe(Gn(t));
546
+ return Pe(Wn(t));
546
547
  }
547
- function Gn(t) {
548
+ function Wn(t) {
548
549
  const { l: e } = t;
549
550
  return !J(e) && e.lvl === t.lvl ? dt(e, { r: dt(t, { l: e.r }) }) : t;
550
551
  }
@@ -591,7 +592,7 @@ function yo(t, e, n, o) {
591
592
  const r = ve(t, e, o), s = ve(t, n, o, r);
592
593
  return t.slice(r, s + 1);
593
594
  }
594
- function Et(t, e) {
595
+ function Ht(t, e) {
595
596
  return Math.round(t.getBoundingClientRect()[e]);
596
597
  }
597
598
  function be(t) {
@@ -629,10 +630,10 @@ function Ro(t, e) {
629
630
  }
630
631
  return [t, n];
631
632
  }
632
- function Eo(t) {
633
+ function Ho(t) {
633
634
  return typeof t.groupIndex < "u";
634
635
  }
635
- function Ho({ offset: t }, e) {
636
+ function Eo({ offset: t }, e) {
636
637
  return e === t ? 0 : e < t ? -1 : 1;
637
638
  }
638
639
  function ce(t, e, n) {
@@ -650,14 +651,14 @@ function _n(t, e) {
650
651
  return t + n;
651
652
  }
652
653
  function Nn(t, e, n) {
653
- if (Eo(t))
654
+ if (Ho(t))
654
655
  return e.groupIndices[t.groupIndex] + 1;
655
656
  const o = t.index === "LAST" ? n : t.index;
656
657
  let r = _n(o, e);
657
658
  return r = Math.max(0, r, Math.min(n, r)), r;
658
659
  }
659
660
  function Bo(t, e, n, o = 0) {
660
- return o > 0 && (e = Math.max(e, Mn(t, o, $e).offset)), Fn(yo(t, e, n, Ho), Lo);
661
+ return o > 0 && (e = Math.max(e, Mn(t, o, $e).offset)), Fn(yo(t, e, n, Eo), Lo);
661
662
  }
662
663
  function Oo(t, [e, n, o, r]) {
663
664
  e.length > 0 && o("received item sizes", e, ft.DEBUG);
@@ -670,7 +671,7 @@ function Oo(t, [e, n, o, r]) {
670
671
  [i, l] = Ro(i, e);
671
672
  if (i === s)
672
673
  return t;
673
- const { lastIndex: c, lastOffset: d, lastSize: m, offsetTree: x } = We(t.offsetTree, l, i, r);
674
+ const { lastIndex: c, lastOffset: d, lastSize: m, offsetTree: x } = Ge(t.offsetTree, l, i, r);
674
675
  return {
675
676
  groupIndices: n,
676
677
  groupOffsetTree: n.reduce((p, T) => Tt(p, T, ce(T, x, r)), qt()),
@@ -693,7 +694,7 @@ function pn(t, e) {
693
694
  n += e[o + 1] - e[o] - 1, o++;
694
695
  return o - (n === t ? 0 : 1);
695
696
  }
696
- function We(t, e, n, o) {
697
+ function Ge(t, e, n, o) {
697
698
  let r = t, s = 0, i = 0, l = 0, c = 0;
698
699
  if (e !== 0) {
699
700
  c = ve(r, e - 1, $e), l = r[c].offset;
@@ -728,7 +729,7 @@ const Fo = {
728
729
  offsetWidth: "width"
729
730
  }, Lt = j(
730
731
  ([{ log: t }, { recalcInProgress: e }]) => {
731
- const n = U(), o = U(), r = ht(o, 0), s = U(), i = U(), l = v(0), c = v([]), d = v(void 0), m = v(void 0), x = v(void 0), p = v(void 0), T = v((u, g) => Et(u, Fo[g])), w = v(void 0), R = v(0), h = bo(), f = ht(
732
+ const n = U(), o = U(), r = ht(o, 0), s = U(), i = U(), l = v(0), c = v([]), d = v(void 0), m = v(void 0), x = v(void 0), p = v(void 0), T = v((u, g) => Ht(u, Fo[g])), w = v(void 0), R = v(0), h = bo(), f = ht(
732
733
  I(n, $(c, t, R), Ot(Oo, h), et()),
733
734
  h
734
735
  ), a = ht(
@@ -746,7 +747,7 @@ const Fo = {
746
747
  L(
747
748
  I(
748
749
  c,
749
- W((u) => u.length > 0),
750
+ G((u) => u.length > 0),
750
751
  $(f, R),
751
752
  B(([u, g, C]) => {
752
753
  const z = u.reduce((O, V, N) => Tt(O, V, ce(V, g.offsetTree, C) || N), qt());
@@ -762,7 +763,7 @@ const Fo = {
762
763
  I(
763
764
  o,
764
765
  $(f),
765
- W(([u, { lastIndex: g }]) => u < g),
766
+ G(([u, { lastIndex: g }]) => u < g),
766
767
  B(([u, { lastIndex: g, lastSize: C }]) => [
767
768
  {
768
769
  endIndex: g,
@@ -783,7 +784,7 @@ const Fo = {
783
784
  L(
784
785
  I(
785
786
  m,
786
- W((u) => u !== void 0 && J(it(f).sizeTree)),
787
+ G((u) => u !== void 0 && J(it(f).sizeTree)),
787
788
  B((u) => {
788
789
  const g = it(x), C = it(c).length > 0;
789
790
  return g !== void 0 && g !== 0 ? C ? [
@@ -796,7 +797,7 @@ const Fo = {
796
797
  ), L(
797
798
  I(
798
799
  p,
799
- W((u) => u !== void 0 && u.length > 0 && J(it(f).sizeTree)),
800
+ G((u) => u !== void 0 && u.length > 0 && J(it(f).sizeTree)),
800
801
  B((u) => {
801
802
  const g = [];
802
803
  let C = u[0], z = 0;
@@ -820,7 +821,7 @@ const Fo = {
820
821
  I(
821
822
  c,
822
823
  $(x, m),
823
- W(([, u, g]) => u !== void 0 && g !== void 0),
824
+ G(([, u, g]) => u !== void 0 && g !== void 0),
824
825
  B(([u, g, C]) => {
825
826
  const z = [];
826
827
  for (let O = 0; O < u.length; O++) {
@@ -840,7 +841,7 @@ const Fo = {
840
841
  ),
841
842
  n
842
843
  );
843
- const E = vt(
844
+ const H = vt(
844
845
  I(
845
846
  n,
846
847
  $(f),
@@ -976,14 +977,14 @@ const Fo = {
976
977
  return {
977
978
  ...g,
978
979
  sizeTree: V,
979
- ...We(g.offsetTree, 0, V, C)
980
+ ...Ge(g.offsetTree, 0, V, C)
980
981
  };
981
982
  }
982
983
  const O = _t(g.sizeTree).reduce((V, { k: N, v: Z }) => Tt(V, Math.max(0, N + u), Z), qt());
983
984
  return {
984
985
  ...g,
985
986
  sizeTree: O,
986
- ...We(g.offsetTree, 0, O, C)
987
+ ...Ge(g.offsetTree, 0, O, C)
987
988
  };
988
989
  })
989
990
  ),
@@ -1000,7 +1001,7 @@ const Fo = {
1000
1001
  groupIndices: c,
1001
1002
  heightEstimates: p,
1002
1003
  itemSize: T,
1003
- listRefresh: E,
1004
+ listRefresh: H,
1004
1005
  shiftWith: i,
1005
1006
  shiftWithOffset: k,
1006
1007
  sizeRanges: n,
@@ -1012,7 +1013,7 @@ const Fo = {
1012
1013
  unshiftWith: s
1013
1014
  };
1014
1015
  },
1015
- ot(Gt, De),
1016
+ ot(Wt, De),
1016
1017
  { singleton: !0 }
1017
1018
  );
1018
1019
  function Vo(t) {
@@ -1042,7 +1043,7 @@ const Dn = j(
1042
1043
  ), L(
1043
1044
  I(
1044
1045
  at(r, e, o),
1045
- W(([c, d]) => be(d)),
1046
+ G(([c, d]) => be(d)),
1046
1047
  B(([c, d, m]) => Rt(d.groupOffsetTree, Math.max(c - m, 0), "v")[0]),
1047
1048
  et(),
1048
1049
  B((c) => [c])
@@ -1056,7 +1057,7 @@ const Dn = j(
1056
1057
  const e = v(!1), n = vt(
1057
1058
  I(
1058
1059
  e,
1059
- W((o) => o),
1060
+ G((o) => o),
1060
1061
  et()
1061
1062
  )
1062
1063
  );
@@ -1064,7 +1065,7 @@ const Dn = j(
1064
1065
  o && it(t)("props updated", {}, ft.DEBUG);
1065
1066
  }), { didMount: n, propsReady: e };
1066
1067
  },
1067
- ot(Gt),
1068
+ ot(Wt),
1068
1069
  { singleton: !0 }
1069
1070
  ), Po = typeof document < "u" && "scrollBehavior" in document.documentElement.style;
1070
1071
  function $n(t) {
@@ -1098,16 +1099,16 @@ const fe = j(
1098
1099
  $(t, s, r),
1099
1100
  B(
1100
1101
  ([
1101
- [E, y, k, u, g, C, z, O],
1102
+ [H, y, k, u, g, C, z, O],
1102
1103
  V,
1103
1104
  N,
1104
1105
  Z
1105
1106
  ]) => {
1106
- const F = $n(E), { align: mt, behavior: q, offset: Q } = F, gt = u - 1, ut = Nn(F, y, gt);
1107
+ const F = $n(H), { align: mt, behavior: q, offset: Q } = F, gt = u - 1, ut = Nn(F, y, gt);
1107
1108
  let xt = ce(ut, y.offsetTree, V) + C;
1108
1109
  mt === "end" ? (xt += N + Rt(y.sizeTree, ut)[1] - k + Z, ut === gt && (xt += z)) : mt === "center" ? xt += (N + Rt(y.sizeTree, ut)[1] - k + Z) / 2 : xt -= g, Q !== void 0 && Q !== 0 && (xt += Q);
1109
1110
  const Ft = (pt) => {
1110
- S(), pt ? (O("retrying to scroll to", { location: E }, ft.DEBUG), _(T, E)) : (_(w, !0), O("list did not change, scroll successful", {}, ft.DEBUG));
1111
+ S(), pt ? (O("retrying to scroll to", { location: H }, ft.DEBUG), _(T, H)) : (_(w, !0), O("list did not change, scroll successful", {}, ft.DEBUG));
1111
1112
  };
1112
1113
  if (S(), q === "smooth") {
1113
1114
  let pt = !1;
@@ -1117,7 +1118,7 @@ const fe = j(
1117
1118
  Ft(pt);
1118
1119
  });
1119
1120
  } else
1120
- h = yt(I(e, Wo(150)), Ft);
1121
+ h = yt(I(e, Go(150)), Ft);
1121
1122
  return f = setTimeout(() => {
1122
1123
  S();
1123
1124
  }, 1200), _(c, !0), O("scrolling from index to", { behavior: q, index: ut, top: xt }, ft.DEBUG), { behavior: q, top: xt };
@@ -1131,10 +1132,10 @@ const fe = j(
1131
1132
  topListHeight: R
1132
1133
  };
1133
1134
  },
1134
- ot(Lt, It, Gt),
1135
+ ot(Lt, It, Wt),
1135
1136
  { singleton: !0 }
1136
1137
  );
1137
- function Wo(t) {
1138
+ function Go(t) {
1138
1139
  return (e) => {
1139
1140
  const n = setTimeout(() => {
1140
1141
  e(!1);
@@ -1160,7 +1161,7 @@ const me = j(
1160
1161
  I(
1161
1162
  i,
1162
1163
  $(c),
1163
- W(([m, x]) => x !== 0),
1164
+ G(([m, x]) => x !== 0),
1164
1165
  Bt(!1)
1165
1166
  ),
1166
1167
  l
@@ -1168,7 +1169,7 @@ const me = j(
1168
1169
  I(
1169
1170
  i,
1170
1171
  $(c),
1171
- W(([m, x]) => x !== 0),
1172
+ G(([m, x]) => x !== 0),
1172
1173
  Bt(!1)
1173
1174
  ),
1174
1175
  d
@@ -1176,7 +1177,7 @@ const me = j(
1176
1177
  I(
1177
1178
  at(e, i),
1178
1179
  $(l, n, t, d),
1179
- W(([[, m], x, { sizeTree: p }, T, w]) => m && (!J(p) || Ae(T)) && !x && !w),
1180
+ G(([[, m], x, { sizeTree: p }, T, w]) => m && (!J(p) || Ae(T)) && !x && !w),
1180
1181
  $(c)
1181
1182
  ),
1182
1183
  ([, m]) => {
@@ -1200,7 +1201,7 @@ const me = j(
1200
1201
  function Un(t, e) {
1201
1202
  return Math.abs(t - e) < 1.01;
1202
1203
  }
1203
- const ue = "up", ne = "down", Go = "none", Ao = {
1204
+ const ue = "up", ne = "down", Wo = "none", Ao = {
1204
1205
  atBottom: !1,
1205
1206
  notAtBottomBecause: "NOT_SHOWING_LAST_ITEM",
1206
1207
  state: {
@@ -1231,15 +1232,15 @@ const ue = "up", ne = "down", Go = "none", Ao = {
1231
1232
  const w = vt(
1232
1233
  I(
1233
1234
  at(o, P(s), P(e), P(t), P(m)),
1234
- Ot((a, [{ scrollHeight: S, scrollTop: E }, y, k, u, g]) => {
1235
- const C = E + y - S > -g, z = {
1235
+ Ot((a, [{ scrollHeight: S, scrollTop: H }, y, k, u, g]) => {
1236
+ const C = H + y - S > -g, z = {
1236
1237
  scrollHeight: S,
1237
- scrollTop: E,
1238
+ scrollTop: H,
1238
1239
  viewportHeight: y
1239
1240
  };
1240
1241
  if (C) {
1241
1242
  let V, N;
1242
- return E > a.state.scrollTop ? (V = "SCROLLED_DOWN", N = a.state.scrollTop - E) : (V = "SIZE_DECREASED", N = a.state.scrollTop - E || a.scrollTopDelta), {
1243
+ return H > a.state.scrollTop ? (V = "SCROLLED_DOWN", N = a.state.scrollTop - H) : (V = "SIZE_DECREASED", N = a.state.scrollTop - H || a.scrollTopDelta), {
1243
1244
  atBottom: !0,
1244
1245
  atBottomBecause: V,
1245
1246
  scrollTopDelta: N,
@@ -1247,7 +1248,7 @@ const ue = "up", ne = "down", Go = "none", Ao = {
1247
1248
  };
1248
1249
  }
1249
1250
  let O;
1250
- return z.scrollHeight > a.state.scrollHeight ? O = "SIZE_INCREASED" : y < a.state.viewportHeight ? O = "VIEWPORT_HEIGHT_DECREASING" : E < a.state.scrollTop ? O = "SCROLLING_UPWARDS" : O = "NOT_FULLY_SCROLLED_TO_LAST_ITEM_BOTTOM", {
1251
+ return z.scrollHeight > a.state.scrollHeight ? O = "SIZE_INCREASED" : y < a.state.viewportHeight ? O = "VIEWPORT_HEIGHT_DECREASING" : H < a.state.scrollTop ? O = "SCROLLING_UPWARDS" : O = "NOT_FULLY_SCROLLED_TO_LAST_ITEM_BOTTOM", {
1251
1252
  atBottom: !1,
1252
1253
  notAtBottomBecause: O,
1253
1254
  state: z
@@ -1259,31 +1260,31 @@ const ue = "up", ne = "down", Go = "none", Ao = {
1259
1260
  I(
1260
1261
  o,
1261
1262
  Ot(
1262
- (a, { scrollHeight: S, scrollTop: E, viewportHeight: y }) => {
1263
+ (a, { scrollHeight: S, scrollTop: H, viewportHeight: y }) => {
1263
1264
  if (!Un(a.scrollHeight, S)) {
1264
- const k = S - (E + y) < 1;
1265
- return a.scrollTop !== E && k ? {
1265
+ const k = S - (H + y) < 1;
1266
+ return a.scrollTop !== H && k ? {
1266
1267
  changed: !0,
1267
- jump: a.scrollTop - E,
1268
+ jump: a.scrollTop - H,
1268
1269
  scrollHeight: S,
1269
- scrollTop: E
1270
+ scrollTop: H
1270
1271
  } : {
1271
1272
  changed: !0,
1272
1273
  jump: 0,
1273
1274
  scrollHeight: S,
1274
- scrollTop: E
1275
+ scrollTop: H
1275
1276
  };
1276
1277
  }
1277
1278
  return {
1278
1279
  changed: !1,
1279
1280
  jump: 0,
1280
1281
  scrollHeight: S,
1281
- scrollTop: E
1282
+ scrollTop: H
1282
1283
  };
1283
1284
  },
1284
1285
  { changed: !1, jump: 0, scrollHeight: 0, scrollTop: 0 }
1285
1286
  ),
1286
- W((a) => a.changed),
1287
+ G((a) => a.changed),
1287
1288
  B((a) => a.jump)
1288
1289
  ),
1289
1290
  0
@@ -1308,12 +1309,12 @@ const ue = "up", ne = "down", Go = "none", Ao = {
1308
1309
  B((a) => a.direction)
1309
1310
  ),
1310
1311
  h
1311
- ), L(I(o, zt(50), Bt(Go)), h);
1312
+ ), L(I(o, zt(50), Bt(Wo)), h);
1312
1313
  const f = v(0);
1313
1314
  return L(
1314
1315
  I(
1315
1316
  p,
1316
- W((a) => !a),
1317
+ G((a) => !a),
1317
1318
  Bt(0)
1318
1319
  ),
1319
1320
  f
@@ -1322,8 +1323,8 @@ const ue = "up", ne = "down", Go = "none", Ao = {
1322
1323
  r,
1323
1324
  zt(100),
1324
1325
  $(p),
1325
- W(([a, S]) => S),
1326
- Ot(([a, S], [E]) => [S, E], [0, 0]),
1326
+ G(([a, S]) => S),
1327
+ Ot(([a, S], [H]) => [S, H], [0, 0]),
1327
1328
  B(([a, S]) => S - a)
1328
1329
  ),
1329
1330
  f
@@ -1374,16 +1375,16 @@ const je = j(
1374
1375
  a,
1375
1376
  S
1376
1377
  ]) => {
1377
- const E = m - a, y = h + f, k = Math.max(p - E, 0);
1378
+ const H = m - a, y = h + f, k = Math.max(p - H, 0);
1378
1379
  let u = hn;
1379
1380
  const g = In(S, ae), C = In(S, de);
1380
1381
  return T -= a, T += p + f, w += p + f, w -= a, T > m + y - g && (u = ue), w < m - k + x + C && (u = ne), u !== hn ? [
1381
- Math.max(E - p - gn(R, ae, u) - g, 0),
1382
- E - k - f + x + gn(R, de, u) + C
1382
+ Math.max(H - p - gn(R, ae, u) - g, 0),
1383
+ H - k - f + x + gn(R, de, u) + C
1383
1384
  ] : null;
1384
1385
  }
1385
1386
  ),
1386
- W((m) => m !== null),
1387
+ G((m) => m !== null),
1387
1388
  et(le)
1388
1389
  ),
1389
1390
  [0, 0]
@@ -1517,7 +1518,7 @@ const Ut = j(
1517
1518
  P(a),
1518
1519
  t
1519
1520
  ),
1520
- W(([u, g, , C, , , , , , , , z]) => {
1521
+ G(([u, g, , C, , , , , , , , z]) => {
1521
1522
  const O = z !== void 0 && z.length !== C;
1522
1523
  return u && !g && !O;
1523
1524
  }),
@@ -1565,7 +1566,7 @@ const Ut = j(
1565
1566
  const pt = N.length > 0 ? N[N.length - 1] + 1 : 0, Kt = Bo(gt, u, g, pt);
1566
1567
  if (Kt.length === 0)
1567
1568
  return null;
1568
- const Qt = C - 1, Ht = ye([], (D) => {
1569
+ const Qt = C - 1, Et = ye([], (D) => {
1569
1570
  for (const K of Kt) {
1570
1571
  const rt = K.value;
1571
1572
  let tt = rt.offset, X = K.start;
@@ -1581,8 +1582,8 @@ const Ut = j(
1581
1582
  D.push({ data: q?.[ct], index: ct, offset: tt, size: lt }), tt += lt + F;
1582
1583
  }
1583
1584
  }), te = Sn(mt, ae), b = Sn(mt, de);
1584
- if (Ht.length > 0 && (te > 0 || b > 0)) {
1585
- const D = Ht[0], K = Ht[Ht.length - 1];
1585
+ if (Et.length > 0 && (te > 0 || b > 0)) {
1586
+ const D = Et[0], K = Et[Et.length - 1];
1586
1587
  if (te > 0 && D.index > pt) {
1587
1588
  const rt = Math.min(te, D.index - pt), tt = [];
1588
1589
  let X = D.offset;
@@ -1590,22 +1591,22 @@ const Ut = j(
1590
1591
  const ct = Yt(ut, lt, lt)[0]?.value ?? D.size;
1591
1592
  X -= ct + F, tt.unshift({ data: q?.[lt], index: lt, offset: X, size: ct });
1592
1593
  }
1593
- Ht.unshift(...tt);
1594
+ Et.unshift(...tt);
1594
1595
  }
1595
1596
  if (b > 0 && K.index < Qt) {
1596
1597
  const rt = Math.min(b, Qt - K.index);
1597
1598
  let tt = K.offset + K.size + F;
1598
1599
  for (let X = K.index + 1; X <= K.index + rt; X++) {
1599
1600
  const St = Yt(ut, X, X)[0]?.value ?? K.size;
1600
- Ht.push({ data: q?.[X], index: X, offset: tt, size: St }), tt += St + F;
1601
+ Et.push({ data: q?.[X], index: X, offset: tt, size: St }), tt += St + F;
1601
1602
  }
1602
1603
  }
1603
1604
  }
1604
- return Te(Ht, Ft, C, F, Q, Z);
1605
+ return Te(Et, Ft, C, F, Q, Z);
1605
1606
  }
1606
1607
  ),
1607
1608
  //@ts-expect-error filter needs to be fixed
1608
- W((u) => u !== null),
1609
+ G((u) => u !== null),
1609
1610
  et()
1610
1611
  ),
1611
1612
  Be
@@ -1613,7 +1614,7 @@ const Ut = j(
1613
1614
  L(
1614
1615
  I(
1615
1616
  t,
1616
- W(Ae),
1617
+ G(Ae),
1617
1618
  B((u) => u?.length)
1618
1619
  ),
1619
1620
  r
@@ -1636,12 +1637,12 @@ const Ut = j(
1636
1637
  ),
1637
1638
  f
1638
1639
  );
1639
- const E = vt(
1640
+ const H = vt(
1640
1641
  I(
1641
1642
  S,
1642
- W(({ items: u }) => u.length > 0),
1643
+ G(({ items: u }) => u.length > 0),
1643
1644
  $(r, t),
1644
- W(([{ items: u }, g]) => u[u.length - 1].originalIndex === g - 1),
1645
+ G(([{ items: u }, g]) => u[u.length - 1].originalIndex === g - 1),
1645
1646
  B(([, u, g]) => [u - 1, g]),
1646
1647
  et(le),
1647
1648
  B(([u]) => u)
@@ -1650,14 +1651,14 @@ const Ut = j(
1650
1651
  I(
1651
1652
  S,
1652
1653
  zt(200),
1653
- W(({ items: u, topItems: g }) => u.length > 0 && u[0].originalIndex === g.length),
1654
+ G(({ items: u, topItems: g }) => u.length > 0 && u[0].originalIndex === g.length),
1654
1655
  B(({ items: u }) => u[0].index),
1655
1656
  et()
1656
1657
  )
1657
1658
  ), k = vt(
1658
1659
  I(
1659
1660
  S,
1660
- W(({ items: u }) => u.length > 0),
1661
+ G(({ items: u }) => u.length > 0),
1661
1662
  B(({ items: u }) => {
1662
1663
  let g = 0, C = u.length - 1;
1663
1664
  for (; u[g].type === "group" && g < C; )
@@ -1673,7 +1674,7 @@ const Ut = j(
1673
1674
  )
1674
1675
  );
1675
1676
  return {
1676
- endReached: E,
1677
+ endReached: H,
1677
1678
  initialItemCount: h,
1678
1679
  itemsRendered: f,
1679
1680
  listState: S,
@@ -1713,7 +1714,7 @@ const Ut = j(
1713
1714
  const n = v(!1), o = ht(
1714
1715
  I(
1715
1716
  at(n, t, e),
1716
- W(([r]) => r),
1717
+ G(([r]) => r),
1717
1718
  B(([, r, s]) => Math.max(0, r - s)),
1718
1719
  zt(0),
1719
1720
  et()
@@ -1745,7 +1746,7 @@ const Ut = j(
1745
1746
  $(e, c, n, s, r, o, l),
1746
1747
  $(t),
1747
1748
  B(([[x, p, T, w, R, h, f, a], S]) => {
1748
- const { calculateViewLocation: E = Do, done: y, ...k } = x, u = Nn(x, p, w - 1), g = ce(u, p.offsetTree, S) + R + h, C = g + Rt(p.sizeTree, u)[1], z = a + h, O = a + T - f, V = E({
1749
+ const { calculateViewLocation: H = Do, done: y, ...k } = x, u = Nn(x, p, w - 1), g = ce(u, p.offsetTree, S) + R + h, C = g + Rt(p.sizeTree, u)[1], z = a + h, O = a + T - f, V = H({
1749
1750
  itemBottom: C,
1750
1751
  itemTop: g,
1751
1752
  locationParams: k,
@@ -1755,7 +1756,7 @@ const Ut = j(
1755
1756
  return V !== null ? y && yt(
1756
1757
  I(
1757
1758
  i,
1758
- W((N) => !N),
1759
+ G((N) => !N),
1759
1760
  // skips the initial publish of false, and the cleanup call.
1760
1761
  // but if scrollingInProgress is true, we skip the initial publish.
1761
1762
  $t(it(i) ? 1 : 2)
@@ -1763,14 +1764,14 @@ const Ut = j(
1763
1764
  y
1764
1765
  ) : y?.(), V;
1765
1766
  }),
1766
- W((x) => x !== null)
1767
+ G((x) => x !== null)
1767
1768
  ),
1768
1769
  d
1769
1770
  ), {
1770
1771
  scrollIntoView: m
1771
1772
  };
1772
1773
  },
1773
- ot(Lt, It, fe, Ut, Gt),
1774
+ ot(Lt, It, fe, Ut, Wt),
1774
1775
  { singleton: !0 }
1775
1776
  );
1776
1777
  function Tn(t) {
@@ -1805,7 +1806,7 @@ const $o = (t, e) => typeof t == "function" ? Tn(t(e)) : e && Tn(t), Uo = j(
1805
1806
  let O = k && C, V = "auto";
1806
1807
  return O && (V = $o(u, g || z), O = O && V !== !1), { followOutputBehavior: V, shouldFollow: O, totalCount: y };
1807
1808
  }),
1808
- W(({ shouldFollow: y }) => y)
1809
+ G(({ shouldFollow: y }) => y)
1809
1810
  ),
1810
1811
  ({ followOutputBehavior: y, totalCount: k }) => {
1811
1812
  h !== null && (h(), h = null), it(n) !== void 0 ? requestAnimationFrame(() => {
@@ -1824,12 +1825,12 @@ const $o = (t, e) => typeof t == "function" ? Tn(t(e)) : e && Tn(t), Uo = j(
1824
1825
  Y(
1825
1826
  I(
1826
1827
  at(P(w), e, d),
1827
- W(([y, , k]) => y !== !1 && k),
1828
+ G(([y, , k]) => y !== !1 && k),
1828
1829
  Ot(
1829
1830
  ({ value: y }, [, k]) => ({ refreshed: y === k, value: k }),
1830
1831
  { refreshed: !1, value: 0 }
1831
1832
  ),
1832
- W(({ refreshed: y }) => y),
1833
+ G(({ refreshed: y }) => y),
1833
1834
  $(w, e)
1834
1835
  ),
1835
1836
  ([, y]) => {
@@ -1840,7 +1841,7 @@ const $o = (t, e) => typeof t == "function" ? Tn(t(e)) : e && Tn(t), Uo = j(
1840
1841
  }), Y(at(P(w), r), ([y, k]) => {
1841
1842
  y !== !1 && !k.atBottom && k.notAtBottomBecause === "VIEWPORT_HEIGHT_DECREASING" && f("auto");
1842
1843
  });
1843
- const S = v(null), E = U();
1844
+ const S = v(null), H = U();
1844
1845
  return L(
1845
1846
  ze(
1846
1847
  I(
@@ -1849,13 +1850,13 @@ const $o = (t, e) => typeof t == "function" ? Tn(t(e)) : e && Tn(t), Uo = j(
1849
1850
  ),
1850
1851
  I(P(e))
1851
1852
  ),
1852
- E
1853
+ H
1853
1854
  ), Y(
1854
1855
  I(
1855
- at(I(E, $t(1)), c),
1856
+ at(I(H, $t(1)), c),
1856
1857
  $(P(S), l, x, p),
1857
1858
  B(([[y, k], u, g, C, z]) => k && g && u?.({ context: z, totalCount: y, scrollingInProgress: C })),
1858
- W((y) => !!y),
1859
+ G((y) => !!y),
1859
1860
  zt(0)
1860
1861
  ),
1861
1862
  (y) => {
@@ -1873,7 +1874,7 @@ const $o = (t, e) => typeof t == "function" ? Tn(t(e)) : e && Tn(t), Uo = j(
1873
1874
  fe,
1874
1875
  me,
1875
1876
  At,
1876
- Gt,
1877
+ Wt,
1877
1878
  It,
1878
1879
  qn,
1879
1880
  Yn
@@ -1883,7 +1884,7 @@ const $o = (t, e) => typeof t == "function" ? Tn(t(e)) : e && Tn(t), Uo = j(
1883
1884
  I(
1884
1885
  l,
1885
1886
  $(s),
1886
- W(([, c]) => c !== 0),
1887
+ G(([, c]) => c !== 0),
1887
1888
  $(r, o, e, n, t),
1888
1889
  B(([[, c], d, m, x, p, T = []]) => Kn(c, d, m, x, p, T))
1889
1890
  ),
@@ -1898,7 +1899,7 @@ const $o = (t, e) => typeof t == "function" ? Tn(t(e)) : e && Tn(t), Uo = j(
1898
1899
  I(
1899
1900
  t,
1900
1901
  $(o),
1901
- W(([, r]) => r !== 0),
1902
+ G(([, r]) => r !== 0),
1902
1903
  B(([, r]) => ({ top: r }))
1903
1904
  ),
1904
1905
  (r) => {
@@ -1906,7 +1907,7 @@ const $o = (t, e) => typeof t == "function" ? Tn(t(e)) : e && Tn(t), Uo = j(
1906
1907
  I(
1907
1908
  n,
1908
1909
  $t(1),
1909
- W((s) => s.items.length > 1)
1910
+ G((s) => s.items.length > 1)
1910
1911
  ),
1911
1912
  () => {
1912
1913
  requestAnimationFrame(() => {
@@ -1928,7 +1929,7 @@ const $o = (t, e) => typeof t == "function" ? Tn(t(e)) : e && Tn(t), Uo = j(
1928
1929
  I(
1929
1930
  t,
1930
1931
  $(o, e, n),
1931
- W(([r, s]) => s !== !1 && s !== void 0),
1932
+ G(([r, s]) => s !== !1 && s !== void 0),
1932
1933
  B(([r, s, i, l]) => {
1933
1934
  const { enter: c, exit: d } = s;
1934
1935
  if (i) {
@@ -1955,10 +1956,10 @@ const $o = (t, e) => typeof t == "function" ? Tn(t(e)) : e && Tn(t), Uo = j(
1955
1956
  return L(
1956
1957
  I(
1957
1958
  at(n, o),
1958
- B(([{ scrollHeight: l, scrollTop: c, viewportHeight: d }, { offsetTop: m }]) => ({
1959
- scrollHeight: l,
1960
- scrollTop: Math.max(0, c - m),
1961
- viewportHeight: d
1959
+ B(([{ scrollTop: l, viewportHeight: c }, { offsetTop: d, listHeight: m }]) => ({
1960
+ scrollHeight: m,
1961
+ scrollTop: Math.max(0, l - d),
1962
+ viewportHeight: c
1962
1963
  }))
1963
1964
  ),
1964
1965
  t
@@ -1997,14 +1998,14 @@ const $o = (t, e) => typeof t == "function" ? Tn(t(e)) : e && Tn(t), Uo = j(
1997
1998
  $(e, o, i, x, p, n)
1998
1999
  ),
1999
2000
  ([T, w, R, h, f, a, S]) => {
2000
- const E = ko(w.sizeTree);
2001
- h && f !== null && a !== null && (R = f.scrollTop - a.offsetTop), R -= S, T({ ranges: E, scrollTop: R });
2001
+ const H = ko(w.sizeTree);
2002
+ h && f !== null && a !== null && (R = f.scrollTop - a.offsetTop), R -= S, T({ ranges: H, scrollTop: R });
2002
2003
  }
2003
- ), L(I(m, W(Ae), B(Yo)), r), L(
2004
+ ), L(I(m, G(Ae), B(Yo)), r), L(
2004
2005
  I(
2005
2006
  s,
2006
2007
  $(m),
2007
- W(([, T]) => T !== void 0),
2008
+ G(([, T]) => T !== void 0),
2008
2009
  et(),
2009
2010
  B(([, T]) => T.ranges)
2010
2011
  ),
@@ -2024,7 +2025,7 @@ const Zo = j(([{ topItemsIndexes: t }]) => {
2024
2025
  return L(
2025
2026
  I(
2026
2027
  e,
2027
- W((n) => n >= 0),
2028
+ G((n) => n >= 0),
2028
2029
  B((n) => Array.from({ length: n }).map((o, r) => r))
2029
2030
  ),
2030
2031
  t
@@ -2048,16 +2049,16 @@ const Xo = Xn(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
2048
2049
  c,
2049
2050
  $(i),
2050
2051
  Ot(
2051
- ([, f, a, S], [{ bottom: E, items: y, offsetBottom: k, totalCount: u }, g]) => {
2052
- const C = E + k;
2052
+ ([, f, a, S], [{ bottom: H, items: y, offsetBottom: k, totalCount: u }, g]) => {
2053
+ const C = H + k;
2053
2054
  let z = 0;
2054
2055
  return a === u && f.length > 0 && y.length > 0 && (y[0].originalIndex === 0 && f[0].originalIndex === 0 || (z = C - S, z !== 0 && (z += g))), [z, y, u, C];
2055
2056
  },
2056
2057
  [0, [], 0, 0]
2057
2058
  ),
2058
- W(([f]) => f !== 0),
2059
+ G(([f]) => f !== 0),
2059
2060
  $(o, l, n, r, T, w),
2060
- W(([, f, a, S, , , E]) => !E && !S && f !== 0 && a === ue),
2061
+ G(([, f, a, S, , , H]) => !H && !S && f !== 0 && a === ue),
2061
2062
  B(([[f], , , , , a]) => (a("Upward scrolling compensation", { amount: f }, ft.DEBUG), f))
2062
2063
  )
2063
2064
  );
@@ -2069,7 +2070,7 @@ const Xo = Xn(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
2069
2070
  }), Y(
2070
2071
  I(
2071
2072
  at(ht(s, !1), t, w),
2072
- W(([f, a, S]) => !f && !S && a !== 0),
2073
+ G(([f, a, S]) => !f && !S && a !== 0),
2073
2074
  B(([f, a]) => a),
2074
2075
  zt(1)
2075
2076
  ),
@@ -2084,14 +2085,14 @@ const Xo = Xn(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
2084
2085
  I(
2085
2086
  d,
2086
2087
  $(p, m),
2087
- B(([f, { groupIndices: a, lastSize: S, sizeTree: E }, y]) => {
2088
+ B(([f, { groupIndices: a, lastSize: S, sizeTree: H }, y]) => {
2088
2089
  function k(O) {
2089
2090
  return O * (S + y);
2090
2091
  }
2091
2092
  if (a.length === 0)
2092
2093
  return k(f);
2093
2094
  let u = 0;
2094
- const g = ie(E, 0);
2095
+ const g = ie(H, 0);
2095
2096
  let C = 0, z = 0;
2096
2097
  for (; C < f; ) {
2097
2098
  C++, u += g;
@@ -2110,7 +2111,7 @@ const Xo = Xn(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
2110
2111
  }
2111
2112
  ), { deviation: t };
2112
2113
  },
2113
- ot(It, pe, Ut, Lt, Gt, De)
2114
+ ot(It, pe, Ut, Lt, Wt, De)
2114
2115
  ), Qo = j(
2115
2116
  ([
2116
2117
  t,
@@ -2147,7 +2148,7 @@ const Xo = Xn(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
2147
2148
  No,
2148
2149
  qe,
2149
2150
  Yn,
2150
- Gt,
2151
+ Wt,
2151
2152
  qn
2152
2153
  )
2153
2154
  ), Jn = j(
@@ -2172,14 +2173,14 @@ const Xo = Xn(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
2172
2173
  f,
2173
2174
  a,
2174
2175
  S,
2175
- E,
2176
+ H,
2176
2177
  { scrollToIndex: y },
2177
2178
  k,
2178
2179
  { topItemCount: u },
2179
2180
  { groupCounts: g },
2180
2181
  C
2181
2182
  ]) => {
2182
- const { listState: z, minOverscanItemCount: O, topItemsIndexes: V, rangeChanged: N, ...Z } = E;
2183
+ const { listState: z, minOverscanItemCount: O, topItemsIndexes: V, rangeChanged: N, ...Z } = H;
2183
2184
  return L(N, C.scrollSeekRangeChanged), L(
2184
2185
  I(
2185
2186
  C.windowViewportRect,
@@ -2246,35 +2247,35 @@ function tr(t, e) {
2246
2247
  Object.hasOwn(o, i) || (n[i] = e[i]);
2247
2248
  return n;
2248
2249
  }
2249
- const Ie = typeof document < "u" ? H.useLayoutEffect : H.useEffect;
2250
+ const Ie = typeof document < "u" ? E.useLayoutEffect : E.useEffect;
2250
2251
  function Ye(t, e, n) {
2251
- const o = Object.keys(e.required || {}), r = Object.keys(e.optional || {}), s = Object.keys(e.methods || {}), i = Object.keys(e.events || {}), l = H.createContext({});
2252
+ const o = Object.keys(e.required || {}), r = Object.keys(e.optional || {}), s = Object.keys(e.methods || {}), i = Object.keys(e.events || {}), l = E.createContext({});
2252
2253
  function c(f, a) {
2253
2254
  f.propsReady !== void 0 && _(f.propsReady, !1);
2254
2255
  for (const S of o) {
2255
- const E = f[e.required[S]];
2256
- _(E, a[S]);
2256
+ const H = f[e.required[S]];
2257
+ _(H, a[S]);
2257
2258
  }
2258
2259
  for (const S of r)
2259
2260
  if (S in a) {
2260
- const E = f[e.optional[S]];
2261
- _(E, a[S]);
2261
+ const H = f[e.optional[S]];
2262
+ _(H, a[S]);
2262
2263
  }
2263
2264
  f.propsReady !== void 0 && _(f.propsReady, !0);
2264
2265
  }
2265
2266
  function d(f) {
2266
- return s.reduce((a, S) => (a[S] = (E) => {
2267
+ return s.reduce((a, S) => (a[S] = (H) => {
2267
2268
  const y = f[e.methods[S]];
2268
- _(y, E);
2269
+ _(y, H);
2269
2270
  }, a), {});
2270
2271
  }
2271
2272
  function m(f) {
2272
2273
  return i.reduce((a, S) => (a[S] = Io(f[e.events[S]]), a), {});
2273
2274
  }
2274
- const x = H.forwardRef(function(a, S) {
2275
- const { children: E, ...y } = a, [k] = H.useState(() => ye(So(t), (C) => {
2275
+ const x = E.forwardRef(function(a, S) {
2276
+ const { children: H, ...y } = a, [k] = E.useState(() => ye(So(t), (C) => {
2276
2277
  c(C, y);
2277
- })), [u] = H.useState(an(m, k));
2278
+ })), [u] = E.useState(an(m, k));
2278
2279
  Ie(() => {
2279
2280
  for (const C of i)
2280
2281
  C in y && Y(u[C], y[C]);
@@ -2283,52 +2284,52 @@ function Ye(t, e, n) {
2283
2284
  };
2284
2285
  }, [y, u, k]), Ie(() => {
2285
2286
  c(k, y);
2286
- }), H.useImperativeHandle(S, un(d(k)));
2287
+ }), E.useImperativeHandle(S, un(d(k)));
2287
2288
  const g = n;
2288
- return /* @__PURE__ */ G(l.Provider, { value: k, children: n !== void 0 ? /* @__PURE__ */ G(g, { ...tr([...o, ...r, ...i], y), children: E }) : E });
2289
+ return /* @__PURE__ */ W(l.Provider, { value: k, children: n !== void 0 ? /* @__PURE__ */ W(g, { ...tr([...o, ...r, ...i], y), children: H }) : H });
2289
2290
  }), p = (f) => {
2290
- const a = H.useContext(l);
2291
- return H.useCallback(
2291
+ const a = E.useContext(l);
2292
+ return E.useCallback(
2292
2293
  (S) => {
2293
2294
  _(a[f], S);
2294
2295
  },
2295
2296
  [a, f]
2296
2297
  );
2297
2298
  }, T = (f) => {
2298
- const S = H.useContext(l)[f], E = H.useCallback(
2299
+ const S = E.useContext(l)[f], H = E.useCallback(
2299
2300
  (y) => Y(S, y),
2300
2301
  [S]
2301
2302
  );
2302
- return H.useSyncExternalStore(
2303
- E,
2303
+ return E.useSyncExternalStore(
2304
+ H,
2304
2305
  () => it(S),
2305
2306
  () => it(S)
2306
2307
  );
2307
2308
  }, w = (f) => {
2308
- const S = H.useContext(l)[f], [E, y] = H.useState(an(it, S));
2309
+ const S = E.useContext(l)[f], [H, y] = E.useState(an(it, S));
2309
2310
  return Ie(
2310
2311
  () => Y(S, (k) => {
2311
- k !== E && y(un(k));
2312
+ k !== H && y(un(k));
2312
2313
  }),
2313
- [S, E]
2314
- ), E;
2315
- }, R = H.version.startsWith("18") ? T : w;
2314
+ [S, H]
2315
+ ), H;
2316
+ }, R = parseInt(E.version) >= 18 ? T : w;
2316
2317
  return {
2317
2318
  Component: x,
2318
2319
  useEmitter: (f, a) => {
2319
- const E = H.useContext(l)[f];
2320
- Ie(() => Y(E, a), [a, E]);
2320
+ const H = E.useContext(l)[f];
2321
+ Ie(() => Y(H, a), [a, H]);
2321
2322
  },
2322
2323
  useEmitterValue: R,
2323
2324
  usePublisher: p
2324
2325
  };
2325
2326
  }
2326
- const Re = H.createContext(void 0), Qn = H.createContext(void 0), Oe = "-webkit-sticky", vn = "sticky", Ze = Xn(() => {
2327
+ const Re = E.createContext(void 0), Qn = E.createContext(void 0), Oe = "-webkit-sticky", vn = "sticky", Ze = Xn(() => {
2327
2328
  if (typeof document > "u")
2328
2329
  return vn;
2329
2330
  const t = document.createElement("div");
2330
2331
  return t.style.position = Oe, t.style.position === Oe ? Oe : vn;
2331
- }), to = typeof document < "u" ? H.useLayoutEffect : H.useEffect;
2332
+ }), to = typeof document < "u" ? E.useLayoutEffect : E.useEffect;
2332
2333
  function ke(t) {
2333
2334
  return "self" in t;
2334
2335
  }
@@ -2336,7 +2337,7 @@ function er(t) {
2336
2337
  return "body" in t;
2337
2338
  }
2338
2339
  function eo(t, e, n, o = Xt, r, s) {
2339
- const i = H.useRef(null), l = H.useRef(null), c = H.useRef(null), d = H.useCallback(
2340
+ const i = E.useRef(null), l = E.useRef(null), c = E.useRef(null), d = E.useCallback(
2340
2341
  (p) => {
2341
2342
  let T, w, R;
2342
2343
  const h = p.target;
@@ -2356,7 +2357,7 @@ function eo(t, e, n, o = Xt, r, s) {
2356
2357
  },
2357
2358
  [t, e, s]
2358
2359
  );
2359
- H.useEffect(() => {
2360
+ E.useEffect(() => {
2360
2361
  const p = r || i.current;
2361
2362
  return o(r || i.current), d({ suppressFlushSync: !0, target: p }), p.addEventListener("scroll", d, { passive: !0 }), () => {
2362
2363
  o(null), p.removeEventListener("scroll", d);
@@ -2369,9 +2370,9 @@ function eo(t, e, n, o = Xt, r, s) {
2369
2370
  const w = p.behavior === "smooth";
2370
2371
  let R, h, f;
2371
2372
  ke(T) ? (h = Math.max(
2372
- Et(T.document.documentElement, s === !0 ? "width" : "height"),
2373
+ Ht(T.document.documentElement, s === !0 ? "width" : "height"),
2373
2374
  s === !0 ? T.document.documentElement.scrollWidth : T.document.documentElement.scrollHeight
2374
- ), R = s === !0 ? T.innerWidth : T.innerHeight, f = s === !0 ? window.scrollX : window.scrollY) : (h = T[s === !0 ? "scrollWidth" : "scrollHeight"], R = Et(T, s === !0 ? "width" : "height"), f = T[s === !0 ? "scrollLeft" : "scrollTop"]);
2375
+ ), R = s === !0 ? T.innerWidth : T.innerHeight, f = s === !0 ? window.scrollX : window.scrollY) : (h = T[s === !0 ? "scrollWidth" : "scrollHeight"], R = Ht(T, s === !0 ? "width" : "height"), f = T[s === !0 ? "scrollLeft" : "scrollTop"]);
2375
2376
  const a = h - R;
2376
2377
  if (p.top = Math.ceil(Math.max(Math.min(a, p.top), 0)), Un(R, h) || p.top === f) {
2377
2378
  t({ scrollHeight: h, scrollTop: f, viewportHeight: R }), w && e(!0);
@@ -2421,7 +2422,7 @@ const nr = /* @__PURE__ */ j(() => {
2421
2422
  }), or = /* @__PURE__ */ j(
2422
2423
  ([t, e]) => ({ ...t, ...e }),
2423
2424
  ot(Jn, nr)
2424
- ), rr = ({ height: t }) => /* @__PURE__ */ G("div", { style: { height: t } }), sr = { overflowAnchor: "none", position: Ze(), zIndex: 1 }, no = { overflowAnchor: "none" }, ir = { ...no, display: "inline-block", height: "100%" }, Cn = /* @__PURE__ */ H.memo(function({ showTopList: e = !1 }) {
2425
+ ), rr = ({ height: t }) => /* @__PURE__ */ W("div", { style: { height: t } }), sr = { overflowAnchor: "none", position: Ze(), zIndex: 1 }, no = { overflowAnchor: "none" }, ir = { ...no, display: "inline-block", height: "100%" }, Cn = /* @__PURE__ */ E.memo(function({ showTopList: e = !1 }) {
2425
2426
  const n = A("listState"), o = Ct("sizeRanges"), r = A("useWindowScroll"), s = A("customScrollParent"), i = Ct("windowScrollContainerState"), l = Ct("scrollContainerState"), c = s || r ? i : l, d = A("itemContent"), m = A("context"), x = A("groupContent"), p = A("trackItemSizes"), T = A("itemSize"), w = A("log"), R = Ct("gap"), h = A("horizontalDirection"), { callbackRef: f } = zn(
2426
2427
  o,
2427
2428
  T,
@@ -2432,11 +2433,11 @@ const nr = /* @__PURE__ */ j(() => {
2432
2433
  s,
2433
2434
  h,
2434
2435
  A("skipAnimationFrameInResizeObserver")
2435
- ), [a, S] = H.useState(0);
2436
+ ), [a, S] = E.useState(0);
2436
2437
  tn("deviation", (F) => {
2437
2438
  a !== F && S(F);
2438
2439
  });
2439
- const E = A("EmptyPlaceholder"), y = A("ScrollSeekPlaceholder") ?? rr, k = A("ListComponent"), u = A("ItemComponent"), g = A("GroupComponent"), C = A("computeItemKey"), z = A("isSeeking"), O = A("groupIndices").length > 0, V = A("alignToBottom"), N = A("initialItemFinalLocationReached"), Z = e ? {} : {
2440
+ const H = A("EmptyPlaceholder"), y = A("ScrollSeekPlaceholder") ?? rr, k = A("ListComponent"), u = A("ItemComponent"), g = A("GroupComponent"), C = A("computeItemKey"), z = A("isSeeking"), O = A("groupIndices").length > 0, V = A("alignToBottom"), N = A("initialItemFinalLocationReached"), Z = e ? {} : {
2440
2441
  boxSizing: "border-box",
2441
2442
  ...h ? {
2442
2443
  display: "inline-block",
@@ -2452,7 +2453,7 @@ const nr = /* @__PURE__ */ j(() => {
2452
2453
  },
2453
2454
  ...N ? {} : { visibility: "hidden" }
2454
2455
  };
2455
- return !e && n.totalCount === 0 && E !== null && E !== void 0 ? /* @__PURE__ */ G(E, { ...nt(E, m) }) : /* @__PURE__ */ G(
2456
+ return !e && n.totalCount === 0 && H !== null && H !== void 0 ? /* @__PURE__ */ W(H, { ...nt(H, m) }) : /* @__PURE__ */ W(
2456
2457
  k,
2457
2458
  {
2458
2459
  ...nt(k, m),
@@ -2528,33 +2529,33 @@ function nt(t, e) {
2528
2529
  function oo(t, e) {
2529
2530
  return { item: typeof t == "string" ? void 0 : e };
2530
2531
  }
2531
- const ar = /* @__PURE__ */ H.memo(function() {
2532
+ const ar = /* @__PURE__ */ E.memo(function() {
2532
2533
  const e = A("HeaderComponent"), n = Ct("headerHeight"), o = A("HeaderFooterTag"), r = kt(
2533
- H.useMemo(
2534
+ E.useMemo(
2534
2535
  () => (i) => {
2535
- n(Et(i, "height"));
2536
+ n(Ht(i, "height"));
2536
2537
  },
2537
2538
  [n]
2538
2539
  ),
2539
2540
  !0,
2540
2541
  A("skipAnimationFrameInResizeObserver")
2541
2542
  ), s = A("context");
2542
- return e != null ? /* @__PURE__ */ G(o, { ref: r, children: /* @__PURE__ */ G(e, { ...nt(e, s) }) }) : null;
2543
- }), dr = /* @__PURE__ */ H.memo(function() {
2543
+ return e != null ? /* @__PURE__ */ W(o, { ref: r, children: /* @__PURE__ */ W(e, { ...nt(e, s) }) }) : null;
2544
+ }), dr = /* @__PURE__ */ E.memo(function() {
2544
2545
  const e = A("FooterComponent"), n = Ct("footerHeight"), o = A("HeaderFooterTag"), r = kt(
2545
- H.useMemo(
2546
+ E.useMemo(
2546
2547
  () => (i) => {
2547
- n(Et(i, "height"));
2548
+ n(Ht(i, "height"));
2548
2549
  },
2549
2550
  [n]
2550
2551
  ),
2551
2552
  !0,
2552
2553
  A("skipAnimationFrameInResizeObserver")
2553
2554
  ), s = A("context");
2554
- return e != null ? /* @__PURE__ */ G(o, { ref: r, children: /* @__PURE__ */ G(e, { ...nt(e, s) }) }) : null;
2555
+ return e != null ? /* @__PURE__ */ W(o, { ref: r, children: /* @__PURE__ */ W(e, { ...nt(e, s) }) }) : null;
2555
2556
  });
2556
2557
  function Je({ useEmitter: t, useEmitterValue: e, usePublisher: n }) {
2557
- return H.memo(function({ children: s, style: i, context: l, ...c }) {
2558
+ return E.memo(function({ children: s, style: i, context: l, ...c }) {
2558
2559
  const d = n("scrollContainerState"), m = e("ScrollerComponent"), x = n("smoothScrollTargetReached"), p = e("scrollerRef"), T = e("horizontalDirection") || !1, { scrollByCallback: w, scrollerRef: R, scrollToCallback: h } = eo(
2559
2560
  d,
2560
2561
  x,
@@ -2563,7 +2564,7 @@ function Je({ useEmitter: t, useEmitterValue: e, usePublisher: n }) {
2563
2564
  void 0,
2564
2565
  T
2565
2566
  );
2566
- return t("scrollTo", h), t("scrollBy", w), /* @__PURE__ */ G(
2567
+ return t("scrollTo", h), t("scrollBy", w), /* @__PURE__ */ W(
2567
2568
  m,
2568
2569
  {
2569
2570
  "data-testid": "virtuoso-scroller",
@@ -2579,8 +2580,8 @@ function Je({ useEmitter: t, useEmitterValue: e, usePublisher: n }) {
2579
2580
  });
2580
2581
  }
2581
2582
  function Qe({ useEmitter: t, useEmitterValue: e, usePublisher: n }) {
2582
- return H.memo(function({ children: s, style: i, context: l, ...c }) {
2583
- const d = n("windowScrollContainerState"), m = e("ScrollerComponent"), x = n("smoothScrollTargetReached"), p = e("totalListHeight"), T = e("deviation"), w = e("customScrollParent"), R = H.useRef(null), h = e("scrollerRef"), { scrollByCallback: f, scrollerRef: a, scrollToCallback: S } = eo(
2583
+ return E.memo(function({ children: s, style: i, context: l, ...c }) {
2584
+ const d = n("windowScrollContainerState"), m = e("ScrollerComponent"), x = n("smoothScrollTargetReached"), p = e("totalListHeight"), T = e("deviation"), w = e("customScrollParent"), R = E.useRef(null), h = e("scrollerRef"), { scrollByCallback: f, scrollerRef: a, scrollToCallback: S } = eo(
2584
2585
  d,
2585
2586
  x,
2586
2587
  m,
@@ -2589,7 +2590,7 @@ function Qe({ useEmitter: t, useEmitterValue: e, usePublisher: n }) {
2589
2590
  );
2590
2591
  return to(() => (a.current = w || R.current?.ownerDocument.defaultView, () => {
2591
2592
  a.current = null;
2592
- }), [a, w]), t("windowScrollTo", S), t("scrollBy", f), /* @__PURE__ */ G(
2593
+ }), [a, w]), t("windowScrollTo", S), t("scrollBy", f), /* @__PURE__ */ W(
2593
2594
  m,
2594
2595
  {
2595
2596
  ref: R,
@@ -2603,33 +2604,33 @@ function Qe({ useEmitter: t, useEmitterValue: e, usePublisher: n }) {
2603
2604
  });
2604
2605
  }
2605
2606
  const fr = ({ children: t }) => {
2606
- const e = H.useContext(Re), n = Ct("viewportHeight"), o = Ct("fixedItemHeight"), r = A("alignToBottom"), s = A("horizontalDirection"), i = H.useMemo(
2607
- () => re(n, (c) => Et(c, s ? "width" : "height")),
2607
+ const e = E.useContext(Re), n = Ct("viewportHeight"), o = Ct("fixedItemHeight"), r = A("alignToBottom"), s = A("horizontalDirection"), i = E.useMemo(
2608
+ () => re(n, (c) => Ht(c, s ? "width" : "height")),
2608
2609
  [n, s]
2609
2610
  ), l = kt(i, !0, A("skipAnimationFrameInResizeObserver"));
2610
- return H.useEffect(() => {
2611
+ return E.useEffect(() => {
2611
2612
  e && (n(e.viewportHeight), o(e.itemHeight));
2612
- }, [e, n, o]), /* @__PURE__ */ G("div", { "data-viewport-type": "element", ref: l, style: Jt(r), children: t });
2613
+ }, [e, n, o]), /* @__PURE__ */ W("div", { "data-viewport-type": "element", ref: l, style: Jt(r), children: t });
2613
2614
  }, mr = ({ children: t }) => {
2614
- const e = H.useContext(Re), n = Ct("windowViewportRect"), o = Ct("fixedItemHeight"), r = A("customScrollParent"), s = Ne(
2615
+ const e = E.useContext(Re), n = Ct("windowViewportRect"), o = Ct("fixedItemHeight"), r = A("customScrollParent"), s = Ne(
2615
2616
  n,
2616
2617
  r,
2617
2618
  A("skipAnimationFrameInResizeObserver")
2618
2619
  ), i = A("alignToBottom");
2619
- return H.useEffect(() => {
2620
- e && (o(e.itemHeight), n({ offsetTop: 0, visibleHeight: e.viewportHeight, visibleWidth: 100 }));
2621
- }, [e, n, o]), /* @__PURE__ */ G("div", { "data-viewport-type": "window", ref: s, style: Jt(i), children: t });
2620
+ return E.useEffect(() => {
2621
+ e && (o(e.itemHeight), n({ listHeight: 0, offsetTop: 0, visibleHeight: e.viewportHeight, visibleWidth: 100 }));
2622
+ }, [e, n, o]), /* @__PURE__ */ W("div", { "data-viewport-type": "window", ref: s, style: Jt(i), children: t });
2622
2623
  }, pr = ({ children: t }) => {
2623
2624
  const e = A("TopItemListComponent") ?? "div", n = A("headerHeight"), o = { ...ur, marginTop: `${n}px` }, r = A("context");
2624
- return /* @__PURE__ */ G(e, { style: o, ...nt(e, r), children: t });
2625
- }, hr = /* @__PURE__ */ H.memo(function(e) {
2625
+ return /* @__PURE__ */ W(e, { style: o, ...nt(e, r), children: t });
2626
+ }, hr = /* @__PURE__ */ E.memo(function(e) {
2626
2627
  const n = A("useWindowScroll"), o = A("topItemsIndexes").length > 0, r = A("customScrollParent"), s = A("context");
2627
2628
  return /* @__PURE__ */ Dt(r || n ? Ir : gr, { ...e, context: s, children: [
2628
- o && /* @__PURE__ */ G(pr, { children: /* @__PURE__ */ G(Cn, { showTopList: !0 }) }),
2629
+ o && /* @__PURE__ */ W(pr, { children: /* @__PURE__ */ W(Cn, { showTopList: !0 }) }),
2629
2630
  /* @__PURE__ */ Dt(r || n ? mr : fr, { children: [
2630
- /* @__PURE__ */ G(ar, {}),
2631
- /* @__PURE__ */ G(Cn, {}),
2632
- /* @__PURE__ */ G(dr, {})
2631
+ /* @__PURE__ */ W(ar, {}),
2632
+ /* @__PURE__ */ W(Cn, {}),
2633
+ /* @__PURE__ */ W(dr, {})
2633
2634
  ] })
2634
2635
  ] });
2635
2636
  }), {
@@ -2737,7 +2738,7 @@ const fr = ({ children: t }) => {
2737
2738
  }), Sr = /* @__PURE__ */ j(
2738
2739
  ([t, e]) => ({ ...t, ...e }),
2739
2740
  ot(Jn, xr)
2740
- ), Tr = ({ height: t }) => /* @__PURE__ */ G("tr", { children: /* @__PURE__ */ G("td", { style: { height: t } }) }), vr = ({ height: t }) => /* @__PURE__ */ G("tr", { children: /* @__PURE__ */ G("td", { style: { border: 0, height: t, padding: 0 } }) }), Cr = { overflowAnchor: "none" }, wn = { position: Ze(), zIndex: 2, overflowAnchor: "none" }, yn = /* @__PURE__ */ H.memo(function({ showTopList: e = !1 }) {
2741
+ ), Tr = ({ height: t }) => /* @__PURE__ */ W("tr", { children: /* @__PURE__ */ W("td", { style: { height: t } }) }), vr = ({ height: t }) => /* @__PURE__ */ W("tr", { children: /* @__PURE__ */ W("td", { style: { border: 0, height: t, padding: 0 } }) }), Cr = { overflowAnchor: "none" }, wn = { position: Ze(), zIndex: 2, overflowAnchor: "none" }, yn = /* @__PURE__ */ E.memo(function({ showTopList: e = !1 }) {
2741
2742
  const n = M("listState"), o = M("computeItemKey"), r = M("firstItemIndex"), s = M("context"), i = M("isSeeking"), l = M("fixedHeaderHeight"), c = M("groupIndices").length > 0, d = M("itemContent"), m = M("groupContent"), x = M("ScrollSeekPlaceholder") ?? Tr, p = M("GroupComponent"), T = M("TableRowComponent"), w = (e ? n.topItems : []).reduce((h, f, a) => (a === 0 ? h.push(f.size) : h.push(h[a - 1] + f.size), h), []);
2742
2743
  return (e ? n.topItems : n.items).map((h) => {
2743
2744
  const f = h.originalIndex, a = o(f + r, h.data, s), S = e ? f === 0 ? 0 : w[f - 1] : 0;
@@ -2779,7 +2780,7 @@ const fr = ({ children: t }) => {
2779
2780
  c ? d(h.index, h.groupIndex, h.data, s) : d(h.index, h.data, s)
2780
2781
  );
2781
2782
  });
2782
- }), wr = /* @__PURE__ */ H.memo(function() {
2783
+ }), wr = /* @__PURE__ */ E.memo(function() {
2783
2784
  const e = M("listState"), n = M("topItemsIndexes").length > 0, o = bt("sizeRanges"), r = M("useWindowScroll"), s = M("customScrollParent"), i = bt("windowScrollContainerState"), l = bt("scrollContainerState"), c = s || r ? i : l, d = M("trackItemSizes"), m = M("itemSize"), x = M("log"), { callbackRef: p, ref: T } = zn(
2784
2785
  o,
2785
2786
  m,
@@ -2790,48 +2791,48 @@ const fr = ({ children: t }) => {
2790
2791
  s,
2791
2792
  !1,
2792
2793
  M("skipAnimationFrameInResizeObserver")
2793
- ), [w, R] = H.useState(0);
2794
+ ), [w, R] = E.useState(0);
2794
2795
  en("deviation", (O) => {
2795
2796
  w !== O && (T.current.style.marginTop = `${O}px`, R(O));
2796
2797
  });
2797
- const h = M("EmptyPlaceholder"), f = M("FillerRow") ?? vr, a = M("TableBodyComponent"), S = M("paddingTopAddition"), E = M("statefulTotalCount"), y = M("context");
2798
- if (E === 0 && h !== null && h !== void 0)
2799
- return /* @__PURE__ */ G(h, { ...nt(h, y) });
2800
- const k = (n ? e.topItems : []).reduce((O, V) => O + V.size, 0), u = e.offsetTop + S + w - k, g = e.offsetBottom, C = u > 0 ? /* @__PURE__ */ G(f, { context: y, height: u }, "padding-top") : null, z = g > 0 ? /* @__PURE__ */ G(f, { context: y, height: g }, "padding-bottom") : null;
2798
+ const h = M("EmptyPlaceholder"), f = M("FillerRow") ?? vr, a = M("TableBodyComponent"), S = M("paddingTopAddition"), H = M("statefulTotalCount"), y = M("context");
2799
+ if (H === 0 && h !== null && h !== void 0)
2800
+ return /* @__PURE__ */ W(h, { ...nt(h, y) });
2801
+ const k = (n ? e.topItems : []).reduce((O, V) => O + V.size, 0), u = e.offsetTop + S + w - k, g = e.offsetBottom, C = u > 0 ? /* @__PURE__ */ W(f, { context: y, height: u }, "padding-top") : null, z = g > 0 ? /* @__PURE__ */ W(f, { context: y, height: g }, "padding-bottom") : null;
2801
2802
  return /* @__PURE__ */ Dt(a, { "data-testid": "virtuoso-item-list", ref: p, ...nt(a, y), children: [
2802
2803
  C,
2803
- n && /* @__PURE__ */ G(yn, { showTopList: !0 }),
2804
- /* @__PURE__ */ G(yn, {}),
2804
+ n && /* @__PURE__ */ W(yn, { showTopList: !0 }),
2805
+ /* @__PURE__ */ W(yn, {}),
2805
2806
  z
2806
2807
  ] });
2807
2808
  }), yr = ({ children: t }) => {
2808
- const e = H.useContext(Re), n = bt("viewportHeight"), o = bt("fixedItemHeight"), r = kt(
2809
- H.useMemo(() => re(n, (s) => Et(s, "height")), [n]),
2809
+ const e = E.useContext(Re), n = bt("viewportHeight"), o = bt("fixedItemHeight"), r = kt(
2810
+ E.useMemo(() => re(n, (s) => Ht(s, "height")), [n]),
2810
2811
  !0,
2811
2812
  M("skipAnimationFrameInResizeObserver")
2812
2813
  );
2813
- return H.useEffect(() => {
2814
+ return E.useEffect(() => {
2814
2815
  e && (n(e.viewportHeight), o(e.itemHeight));
2815
- }, [e, n, o]), /* @__PURE__ */ G("div", { "data-viewport-type": "element", ref: r, style: Jt(!1), children: t });
2816
+ }, [e, n, o]), /* @__PURE__ */ W("div", { "data-viewport-type": "element", ref: r, style: Jt(!1), children: t });
2816
2817
  }, br = ({ children: t }) => {
2817
- const e = H.useContext(Re), n = bt("windowViewportRect"), o = bt("fixedItemHeight"), r = M("customScrollParent"), s = Ne(
2818
+ const e = E.useContext(Re), n = bt("windowViewportRect"), o = bt("fixedItemHeight"), r = M("customScrollParent"), s = Ne(
2818
2819
  n,
2819
2820
  r,
2820
2821
  M("skipAnimationFrameInResizeObserver")
2821
2822
  );
2822
- return H.useEffect(() => {
2823
- e && (o(e.itemHeight), n({ offsetTop: 0, visibleHeight: e.viewportHeight, visibleWidth: 100 }));
2824
- }, [e, n, o]), /* @__PURE__ */ G("div", { "data-viewport-type": "window", ref: s, style: Jt(!1), children: t });
2825
- }, Rr = /* @__PURE__ */ H.memo(function(e) {
2823
+ return E.useEffect(() => {
2824
+ e && (o(e.itemHeight), n({ listHeight: 0, offsetTop: 0, visibleHeight: e.viewportHeight, visibleWidth: 100 }));
2825
+ }, [e, n, o]), /* @__PURE__ */ W("div", { "data-viewport-type": "window", ref: s, style: Jt(!1), children: t });
2826
+ }, Rr = /* @__PURE__ */ E.memo(function(e) {
2826
2827
  const n = M("useWindowScroll"), o = M("customScrollParent"), r = bt("fixedHeaderHeight"), s = bt("fixedFooterHeight"), i = M("fixedHeaderContent"), l = M("fixedFooterContent"), c = M("context"), d = kt(
2827
- H.useMemo(() => re(r, (a) => Et(a, "height")), [r]),
2828
+ E.useMemo(() => re(r, (a) => Ht(a, "height")), [r]),
2828
2829
  !0,
2829
2830
  M("skipAnimationFrameInResizeObserver")
2830
2831
  ), m = kt(
2831
- H.useMemo(() => re(s, (a) => Et(a, "height")), [s]),
2832
+ E.useMemo(() => re(s, (a) => Ht(a, "height")), [s]),
2832
2833
  !0,
2833
2834
  M("skipAnimationFrameInResizeObserver")
2834
- ), x = o || n ? Hr : Er, p = o || n ? br : yr, T = M("TableComponent"), w = M("TableHeadComponent"), R = M("TableFooterComponent"), h = i ? /* @__PURE__ */ G(
2835
+ ), x = o || n ? Er : Hr, p = o || n ? br : yr, T = M("TableComponent"), w = M("TableHeadComponent"), R = M("TableFooterComponent"), h = i ? /* @__PURE__ */ W(
2835
2836
  w,
2836
2837
  {
2837
2838
  ref: d,
@@ -2840,7 +2841,7 @@ const fr = ({ children: t }) => {
2840
2841
  children: i()
2841
2842
  },
2842
2843
  "TableHead"
2843
- ) : null, f = l ? /* @__PURE__ */ G(
2844
+ ) : null, f = l ? /* @__PURE__ */ W(
2844
2845
  R,
2845
2846
  {
2846
2847
  ref: m,
@@ -2850,9 +2851,9 @@ const fr = ({ children: t }) => {
2850
2851
  },
2851
2852
  "TableFoot"
2852
2853
  ) : null;
2853
- return /* @__PURE__ */ G(x, { ...e, ...nt(x, c), children: /* @__PURE__ */ G(p, { children: /* @__PURE__ */ Dt(T, { style: { borderSpacing: 0, overflowAnchor: "none" }, ...nt(T, c), children: [
2854
+ return /* @__PURE__ */ W(x, { ...e, ...nt(x, c), children: /* @__PURE__ */ W(p, { children: /* @__PURE__ */ Dt(T, { style: { borderSpacing: 0, overflowAnchor: "none" }, ...nt(T, c), children: [
2854
2855
  h,
2855
- /* @__PURE__ */ G(wr, {}, "TableBody"),
2856
+ /* @__PURE__ */ W(wr, {}, "TableBody"),
2856
2857
  f
2857
2858
  ] }) }) });
2858
2859
  }), {
@@ -2918,7 +2919,7 @@ const fr = ({ children: t }) => {
2918
2919
  }
2919
2920
  },
2920
2921
  Rr
2921
- ), Er = /* @__PURE__ */ Je({ useEmitter: en, useEmitterValue: M, usePublisher: bt }), Hr = /* @__PURE__ */ Qe({ useEmitter: en, useEmitterValue: M, usePublisher: bt }), Zr = so, Xr = so, bn = {
2922
+ ), Hr = /* @__PURE__ */ Je({ useEmitter: en, useEmitterValue: M, usePublisher: bt }), Er = /* @__PURE__ */ Qe({ useEmitter: en, useEmitterValue: M, usePublisher: bt }), Zr = so, Xr = so, bn = {
2922
2923
  bottom: 0,
2923
2924
  itemHeight: 0,
2924
2925
  items: [],
@@ -2934,8 +2935,8 @@ const fr = ({ children: t }) => {
2934
2935
  offsetBottom: 0,
2935
2936
  offsetTop: 0,
2936
2937
  top: 0
2937
- }, { ceil: Rn, floor: Ce, max: oe, min: Le, round: En } = Math;
2938
- function Hn(t, e, n) {
2938
+ }, { ceil: Rn, floor: Ce, max: oe, min: Le, round: Hn } = Math;
2939
+ function En(t, e, n) {
2939
2940
  return Array.from({ length: e - t + 1 }).map((o, r) => ({ data: n === null ? null : n[r + t], index: r + t }));
2940
2941
  }
2941
2942
  function Or(t) {
@@ -2957,7 +2958,7 @@ const Lr = /* @__PURE__ */ j(
2957
2958
  p,
2958
2959
  T,
2959
2960
  { didMount: w, propsReady: R },
2960
- { customScrollParent: h, useWindowScroll: f, windowScrollContainerState: a, windowScrollTo: S, windowViewportRect: E },
2961
+ { customScrollParent: h, useWindowScroll: f, windowScrollContainerState: a, windowScrollTo: S, windowViewportRect: H },
2961
2962
  y
2962
2963
  ]) => {
2963
2964
  const k = v(0), u = v(0), g = v(bn), C = v({ height: 0, width: 0 }), z = v({ height: 0, width: 0 }), O = U(), V = U(), N = v(0), Z = v(null), F = v({ column: 0, row: 0 }), mt = U(), q = U(), Q = v(!1), gt = v(0), ut = v(!0), xt = v(!1), Ft = v(!1);
@@ -2965,7 +2966,7 @@ const Lr = /* @__PURE__ */ j(
2965
2966
  I(
2966
2967
  w,
2967
2968
  $(gt),
2968
- W(([b, D]) => D !== 0)
2969
+ G(([b, D]) => D !== 0)
2969
2970
  ),
2970
2971
  () => {
2971
2972
  _(ut, !1);
@@ -2973,7 +2974,7 @@ const Lr = /* @__PURE__ */ j(
2973
2974
  ), Y(
2974
2975
  I(
2975
2976
  at(w, ut, z, C, gt, xt),
2976
- W(([b, D, K, rt, , tt]) => b && !D && K.height !== 0 && rt.height !== 0 && !tt)
2977
+ G(([b, D, K, rt, , tt]) => b && !D && K.height !== 0 && rt.height !== 0 && !tt)
2977
2978
  ),
2978
2979
  ([, , , , b]) => {
2979
2980
  _(xt, !0), Ue(1, () => {
@@ -2985,7 +2986,7 @@ const Lr = /* @__PURE__ */ j(
2985
2986
  ), L(
2986
2987
  I(
2987
2988
  q,
2988
- W((b) => b != null && b.scrollTop > 0),
2989
+ G((b) => b != null && b.scrollTop > 0),
2989
2990
  Bt(0)
2990
2991
  ),
2991
2992
  u
@@ -2993,7 +2994,7 @@ const Lr = /* @__PURE__ */ j(
2993
2994
  I(
2994
2995
  w,
2995
2996
  $(q),
2996
- W(([, b]) => b != null)
2997
+ G(([, b]) => b != null)
2997
2998
  ),
2998
2999
  ([, b]) => {
2999
3000
  b && (_(C, b.viewport), _(z, b.item), _(F, b.gap), b.scrollTop > 0 && (_(Q, !0), yt(I(d, $t(1)), (D) => {
@@ -3036,7 +3037,7 @@ const Lr = /* @__PURE__ */ j(
3036
3037
  P(ut),
3037
3038
  P(gt)
3038
3039
  ),
3039
- W(([, , , , , , , b]) => !b),
3040
+ G(([, , , , , , , b]) => !b),
3040
3041
  B(
3041
3042
  ([
3042
3043
  b,
@@ -3050,18 +3051,18 @@ const Lr = /* @__PURE__ */ j(
3050
3051
  ct,
3051
3052
  Vt
3052
3053
  ]) => {
3053
- const { column: Pt, row: ee } = rt, { height: he, width: Ee } = tt, { width: nn } = X;
3054
+ const { column: Pt, row: ee } = rt, { height: he, width: He } = tt, { width: nn } = X;
3054
3055
  if (St === 0 && (b === 0 || nn === 0))
3055
3056
  return bn;
3056
- if (Ee === 0) {
3057
+ if (He === 0) {
3057
3058
  const cn = Ke(Vt, b), uo = cn + Math.max(St - 1, 0);
3058
- return Or(Hn(cn, uo, lt));
3059
+ return Or(En(cn, uo, lt));
3059
3060
  }
3060
- const ge = io(nn, Ee, Pt);
3061
+ const ge = io(nn, He, Pt);
3061
3062
  let jt, Mt;
3062
3063
  ct ? D === 0 && K === 0 && St > 0 ? (jt = 0, Mt = St - 1) : (jt = ge * Ce((D + ee) / (he + ee)), Mt = ge * Rn((K + ee) / (he + ee)) - 1, Mt = Le(b - 1, oe(Mt, ge - 1)), jt = Le(Mt, oe(0, jt))) : (jt = 0, Mt = -1);
3063
- const on = Hn(jt, Mt, lt), { bottom: rn, top: sn } = Bn(X, rt, tt, on), ln = Rn(b / ge), co = ln * he + (ln - 1) * ee - rn;
3064
- return { bottom: rn, itemHeight: he, items: on, itemWidth: Ee, offsetBottom: co, offsetTop: sn, top: sn };
3064
+ const on = En(jt, Mt, lt), { bottom: rn, top: sn } = Bn(X, rt, tt, on), ln = Rn(b / ge), co = ln * he + (ln - 1) * ee - rn;
3065
+ return { bottom: rn, itemHeight: he, items: on, itemWidth: He, offsetBottom: co, offsetTop: sn, top: sn };
3065
3066
  }
3066
3067
  )
3067
3068
  ),
@@ -3069,14 +3070,14 @@ const Lr = /* @__PURE__ */ j(
3069
3070
  ), L(
3070
3071
  I(
3071
3072
  Z,
3072
- W((b) => b !== null),
3073
+ G((b) => b !== null),
3073
3074
  B((b) => b.length)
3074
3075
  ),
3075
3076
  k
3076
3077
  ), L(
3077
3078
  I(
3078
3079
  at(C, z, g, F),
3079
- W(([b, D, { items: K }]) => K.length > 0 && D.height !== 0 && b.height !== 0),
3080
+ G(([b, D, { items: K }]) => K.length > 0 && D.height !== 0 && b.height !== 0),
3080
3081
  B(([b, D, { items: K }, rt]) => {
3081
3082
  const { bottom: tt, top: X } = Bn(b, rt, D, K);
3082
3083
  return [X, tt];
@@ -3097,9 +3098,9 @@ const Lr = /* @__PURE__ */ j(
3097
3098
  const Kt = vt(
3098
3099
  I(
3099
3100
  at(g, k),
3100
- W(([{ items: b }]) => b.length > 0),
3101
+ G(([{ items: b }]) => b.length > 0),
3101
3102
  $(pt),
3102
- W(([[b, D], K]) => {
3103
+ G(([[b, D], K]) => {
3103
3104
  const tt = b.items[b.items.length - 1].index === D - 1;
3104
3105
  return (K || b.bottom > 0 && b.itemHeight > 0 && b.offsetBottom === 0 && b.items.length === D) && tt;
3105
3106
  }),
@@ -3109,15 +3110,15 @@ const Lr = /* @__PURE__ */ j(
3109
3110
  ), Qt = vt(
3110
3111
  I(
3111
3112
  P(g),
3112
- W(({ items: b }) => b.length > 0 && b[0].index === 0),
3113
+ G(({ items: b }) => b.length > 0 && b[0].index === 0),
3113
3114
  Bt(0),
3114
3115
  et()
3115
3116
  )
3116
- ), Ht = vt(
3117
+ ), Et = vt(
3117
3118
  I(
3118
3119
  P(g),
3119
3120
  $(Q),
3120
- W(([{ items: b }, D]) => b.length > 0 && !D),
3121
+ G(([{ items: b }, D]) => b.length > 0 && !D),
3121
3122
  B(([{ items: b }]) => ({
3122
3123
  endIndex: b[b.length - 1].index,
3123
3124
  startIndex: b[0].index
@@ -3126,7 +3127,7 @@ const Lr = /* @__PURE__ */ j(
3126
3127
  zt(0)
3127
3128
  )
3128
3129
  );
3129
- L(Ht, T.scrollSeekRangeChanged), L(
3130
+ L(Et, T.scrollSeekRangeChanged), L(
3130
3131
  I(
3131
3132
  O,
3132
3133
  $(C, z, k, F),
@@ -3134,8 +3135,8 @@ const Lr = /* @__PURE__ */ j(
3134
3135
  const X = $n(b), { align: lt, behavior: St, offset: ct } = X;
3135
3136
  let Vt = X.index;
3136
3137
  Vt === "LAST" && (Vt = rt - 1), Vt = oe(0, Vt, Le(rt - 1, Vt));
3137
- let Pt = Ge(D, tt, K, Vt);
3138
- return lt === "end" ? Pt = En(Pt - D.height + K.height) : lt === "center" && (Pt = En(Pt - D.height / 2 + K.height / 2)), ct !== void 0 && ct !== 0 && (Pt += ct), { behavior: St, top: Pt };
3138
+ let Pt = We(D, tt, K, Vt);
3139
+ return lt === "end" ? Pt = Hn(Pt - D.height + K.height) : lt === "center" && (Pt = Hn(Pt - D.height / 2 + K.height / 2)), ct !== void 0 && ct !== 0 && (Pt += ct), { behavior: St, top: Pt };
3139
3140
  })
3140
3141
  ),
3141
3142
  c
@@ -3149,7 +3150,7 @@ const Lr = /* @__PURE__ */ j(
3149
3150
  );
3150
3151
  return L(
3151
3152
  I(
3152
- E,
3153
+ H,
3153
3154
  B((b) => ({ height: b.visibleHeight, width: b.visibleWidth }))
3154
3155
  ),
3155
3156
  C
@@ -3178,7 +3179,7 @@ const Lr = /* @__PURE__ */ j(
3178
3179
  viewportDimensions: C,
3179
3180
  windowScrollContainerState: a,
3180
3181
  windowScrollTo: S,
3181
- windowViewportRect: E,
3182
+ windowViewportRect: H,
3182
3183
  ...T,
3183
3184
  // output
3184
3185
  gridState: g,
@@ -3188,14 +3189,14 @@ const Lr = /* @__PURE__ */ j(
3188
3189
  ...p,
3189
3190
  endReached: Kt,
3190
3191
  propsReady: R,
3191
- rangeChanged: Ht,
3192
+ rangeChanged: Et,
3192
3193
  startReached: Qt,
3193
3194
  stateChanged: mt,
3194
3195
  stateRestoreInProgress: Q,
3195
3196
  ...y
3196
3197
  };
3197
3198
  },
3198
- ot(je, It, pe, Zn, At, qe, Gt)
3199
+ ot(je, It, pe, Zn, At, qe, Wt)
3199
3200
  );
3200
3201
  function io(t, e, n) {
3201
3202
  return oe(1, Ce((t + n) / (Ce(e) + n)));
@@ -3204,10 +3205,10 @@ function Bn(t, e, n, o) {
3204
3205
  const { height: r } = n;
3205
3206
  if (r === void 0 || o.length === 0)
3206
3207
  return { bottom: 0, top: 0 };
3207
- const s = Ge(t, e, n, o[0].index);
3208
- return { bottom: Ge(t, e, n, o[o.length - 1].index) + r, top: s };
3208
+ const s = We(t, e, n, o[0].index);
3209
+ return { bottom: We(t, e, n, o[o.length - 1].index) + r, top: s };
3209
3210
  }
3210
- function Ge(t, e, n, o) {
3211
+ function We(t, e, n, o) {
3211
3212
  const r = io(t.width, n.width, e.column), s = Ce(o / r), i = s * n.height + oe(0, s - 1) * e.row;
3212
3213
  return i > 0 ? i + e.row : i;
3213
3214
  }
@@ -3241,15 +3242,15 @@ const zr = /* @__PURE__ */ j(() => {
3241
3242
  }), Fr = /* @__PURE__ */ j(
3242
3243
  ([t, e]) => ({ ...t, ...e }),
3243
3244
  ot(Lr, zr)
3244
- ), Vr = /* @__PURE__ */ H.memo(function() {
3245
+ ), Vr = /* @__PURE__ */ E.memo(function() {
3245
3246
  const e = st("gridState"), n = st("listClassName"), o = st("itemClassName"), r = st("itemContent"), s = st("computeItemKey"), i = st("isSeeking"), l = wt("scrollHeight"), c = st("ItemComponent"), d = st("ListComponent"), m = st("ScrollSeekPlaceholder"), x = st("context"), p = wt("itemDimensions"), T = wt("gap"), w = st("log"), R = st("stateRestoreInProgress"), h = wt("reportReadyState"), f = kt(
3246
- H.useMemo(
3247
+ E.useMemo(
3247
3248
  () => (a) => {
3248
3249
  const S = a.parentElement.parentElement.scrollHeight;
3249
3250
  l(S);
3250
- const E = a.firstChild;
3251
- if (E !== null) {
3252
- const { height: y, width: k } = E.getBoundingClientRect();
3251
+ const H = a.firstChild;
3252
+ if (H !== null) {
3253
+ const { height: y, width: k } = H.getBoundingClientRect();
3253
3254
  p({ height: y, width: k });
3254
3255
  }
3255
3256
  T({
@@ -3264,7 +3265,7 @@ const zr = /* @__PURE__ */ j(() => {
3264
3265
  );
3265
3266
  return to(() => {
3266
3267
  e.itemHeight > 0 && e.itemWidth > 0 && h(!0);
3267
- }, [e]), R ? null : /* @__PURE__ */ G(
3268
+ }, [e]), R ? null : /* @__PURE__ */ W(
3268
3269
  d,
3269
3270
  {
3270
3271
  className: n,
@@ -3274,7 +3275,7 @@ const zr = /* @__PURE__ */ j(() => {
3274
3275
  style: { paddingBottom: e.offsetBottom, paddingTop: e.offsetTop },
3275
3276
  children: e.items.map((a) => {
3276
3277
  const S = s(a.index, a.data, x);
3277
- return i ? /* @__PURE__ */ G(
3278
+ return i ? /* @__PURE__ */ W(
3278
3279
  m,
3279
3280
  {
3280
3281
  ...nt(m, x),
@@ -3296,33 +3297,33 @@ const zr = /* @__PURE__ */ j(() => {
3296
3297
  })
3297
3298
  }
3298
3299
  );
3299
- }), Pr = H.memo(function() {
3300
+ }), Pr = E.memo(function() {
3300
3301
  const e = st("HeaderComponent"), n = wt("headerHeight"), o = st("headerFooterTag"), r = kt(
3301
- H.useMemo(
3302
+ E.useMemo(
3302
3303
  () => (i) => {
3303
- n(Et(i, "height"));
3304
+ n(Ht(i, "height"));
3304
3305
  },
3305
3306
  [n]
3306
3307
  ),
3307
3308
  !0,
3308
3309
  !1
3309
3310
  ), s = st("context");
3310
- return e != null ? /* @__PURE__ */ G(o, { ref: r, children: /* @__PURE__ */ G(e, { ...nt(e, s) }) }) : null;
3311
- }), Wr = H.memo(function() {
3311
+ return e != null ? /* @__PURE__ */ W(o, { ref: r, children: /* @__PURE__ */ W(e, { ...nt(e, s) }) }) : null;
3312
+ }), Gr = E.memo(function() {
3312
3313
  const e = st("FooterComponent"), n = wt("footerHeight"), o = st("headerFooterTag"), r = kt(
3313
- H.useMemo(
3314
+ E.useMemo(
3314
3315
  () => (i) => {
3315
- n(Et(i, "height"));
3316
+ n(Ht(i, "height"));
3316
3317
  },
3317
3318
  [n]
3318
3319
  ),
3319
3320
  !0,
3320
3321
  !1
3321
3322
  ), s = st("context");
3322
- return e != null ? /* @__PURE__ */ G(o, { ref: r, children: /* @__PURE__ */ G(e, { ...nt(e, s) }) }) : null;
3323
- }), Gr = ({ children: t }) => {
3324
- const e = H.useContext(Qn), n = wt("itemDimensions"), o = wt("viewportDimensions"), r = kt(
3325
- H.useMemo(
3323
+ return e != null ? /* @__PURE__ */ W(o, { ref: r, children: /* @__PURE__ */ W(e, { ...nt(e, s) }) }) : null;
3324
+ }), Wr = ({ children: t }) => {
3325
+ const e = E.useContext(Qn), n = wt("itemDimensions"), o = wt("viewportDimensions"), r = kt(
3326
+ E.useMemo(
3326
3327
  () => (s) => {
3327
3328
  o(s.getBoundingClientRect());
3328
3329
  },
@@ -3331,20 +3332,20 @@ const zr = /* @__PURE__ */ j(() => {
3331
3332
  !0,
3332
3333
  !1
3333
3334
  );
3334
- return H.useEffect(() => {
3335
+ return E.useEffect(() => {
3335
3336
  e && (o({ height: e.viewportHeight, width: e.viewportWidth }), n({ height: e.itemHeight, width: e.itemWidth }));
3336
- }, [e, o, n]), /* @__PURE__ */ G("div", { ref: r, style: Jt(!1), children: t });
3337
+ }, [e, o, n]), /* @__PURE__ */ W("div", { ref: r, style: Jt(!1), children: t });
3337
3338
  }, Ar = ({ children: t }) => {
3338
- const e = H.useContext(Qn), n = wt("windowViewportRect"), o = wt("itemDimensions"), r = st("customScrollParent"), s = Ne(n, r, !1);
3339
- return H.useEffect(() => {
3340
- e && (o({ height: e.itemHeight, width: e.itemWidth }), n({ offsetTop: 0, visibleHeight: e.viewportHeight, visibleWidth: e.viewportWidth }));
3341
- }, [e, n, o]), /* @__PURE__ */ G("div", { ref: s, style: Jt(!1), children: t });
3342
- }, Mr = /* @__PURE__ */ H.memo(function({ ...e }) {
3343
- const n = st("useWindowScroll"), o = st("customScrollParent"), r = o || n ? Dr : Nr, s = o || n ? Ar : Gr, i = st("context");
3344
- return /* @__PURE__ */ G(r, { ...e, ...nt(r, i), children: /* @__PURE__ */ Dt(s, { children: [
3345
- /* @__PURE__ */ G(Pr, {}),
3346
- /* @__PURE__ */ G(Vr, {}),
3347
- /* @__PURE__ */ G(Wr, {})
3339
+ const e = E.useContext(Qn), n = wt("windowViewportRect"), o = wt("itemDimensions"), r = st("customScrollParent"), s = Ne(n, r, !1);
3340
+ return E.useEffect(() => {
3341
+ e && (o({ height: e.itemHeight, width: e.itemWidth }), n({ listHeight: 0, offsetTop: 0, visibleHeight: e.viewportHeight, visibleWidth: e.viewportWidth }));
3342
+ }, [e, n, o]), /* @__PURE__ */ W("div", { ref: s, style: Jt(!1), children: t });
3343
+ }, Mr = /* @__PURE__ */ E.memo(function({ ...e }) {
3344
+ const n = st("useWindowScroll"), o = st("customScrollParent"), r = o || n ? Dr : Nr, s = o || n ? Ar : Wr, i = st("context");
3345
+ return /* @__PURE__ */ W(r, { ...e, ...nt(r, i), children: /* @__PURE__ */ Dt(s, { children: [
3346
+ /* @__PURE__ */ W(Pr, {}),
3347
+ /* @__PURE__ */ W(Vr, {}),
3348
+ /* @__PURE__ */ W(Gr, {})
3348
3349
  ] }) });
3349
3350
  }), {
3350
3351
  Component: _r,