aptechka 0.50.28 → 0.51.1

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.
Files changed (57) hide show
  1. package/lib/{Animation-FtUeV8dp.js → Animation-eO5_LIJl.js} +1 -1
  2. package/lib/{Animation-ChZNIOTS.cjs → Animation-rTojHgyz.cjs} +1 -1
  3. package/lib/{Damped-B1lXa9nb.cjs → Damped-DgAIjXp3.cjs} +1 -1
  4. package/lib/{Damped-BXsGpI-B.js → Damped-GyAS-U-z.js} +1 -1
  5. package/lib/Store-GokLe_g-.cjs +1 -0
  6. package/lib/Store-swP_0ymB.js +134 -0
  7. package/lib/{Tweened-BhDWLNF0.js → Tweened-BSC-evuL.js} +1 -1
  8. package/lib/{Tweened-cJ36zq1A.cjs → Tweened-DpJDlbj9.cjs} +1 -1
  9. package/lib/animation/index.cjs +1 -1
  10. package/lib/animation/index.js +3 -3
  11. package/lib/attribute/index.cjs +1 -1
  12. package/lib/attribute/index.d.ts +1 -1
  13. package/lib/attribute/index.js +27 -27
  14. package/lib/class-linked-status/index.cjs +1 -1
  15. package/lib/class-linked-status/index.js +1 -1
  16. package/lib/controls/index.cjs +1 -1
  17. package/lib/controls/index.js +2 -2
  18. package/lib/css-property/index.cjs +1 -1
  19. package/lib/css-property/index.d.ts +1 -1
  20. package/lib/css-property/index.js +28 -28
  21. package/lib/dev/index.cjs +1 -1
  22. package/lib/dev/index.js +1 -1
  23. package/lib/device/index.cjs +1 -1
  24. package/lib/device/index.js +1 -1
  25. package/lib/iframe/index.cjs +1 -1
  26. package/lib/iframe/index.js +1 -1
  27. package/lib/image/index.cjs +1 -1
  28. package/lib/image/index.js +1 -1
  29. package/lib/ladder/index.cjs +1 -1
  30. package/lib/ladder/index.js +1 -1
  31. package/lib/media/index.cjs +1 -1
  32. package/lib/media/index.js +1 -1
  33. package/lib/need_redo_tweaker/index.cjs +1 -1
  34. package/lib/need_redo_tweaker/index.js +1 -1
  35. package/lib/notifier/index.cjs +1 -1
  36. package/lib/notifier/index.d.ts +6 -0
  37. package/lib/notifier/index.js +21 -15
  38. package/lib/pointer/index.cjs +1 -1
  39. package/lib/pointer/index.js +2 -2
  40. package/lib/scroll/index.cjs +1 -1
  41. package/lib/scroll/index.js +233 -232
  42. package/lib/scroll-segment/index.cjs +1 -1
  43. package/lib/scroll-segment/index.js +3 -3
  44. package/lib/sequence/index.cjs +1 -1
  45. package/lib/sequence/index.js +1 -1
  46. package/lib/source/index.cjs +1 -1
  47. package/lib/source/index.js +1 -1
  48. package/lib/store/Store.d.ts +3 -2
  49. package/lib/store/index.cjs +1 -1
  50. package/lib/store/index.js +2 -2
  51. package/lib/video/index.cjs +1 -1
  52. package/lib/video/index.js +1 -1
  53. package/lib/youtube/index.cjs +1 -1
  54. package/lib/youtube/index.js +1 -1
  55. package/package.json +1 -1
  56. package/lib/Store-D2xCXENW.js +0 -134
  57. package/lib/Store-DRp_K37w.cjs +0 -1
@@ -1,60 +1,60 @@
1
1
  var We = Object.defineProperty;
2
2
  var ke = Object.getOwnPropertySymbols;
3
3
  var Fe = Object.prototype.hasOwnProperty, Ne = Object.prototype.propertyIsEnumerable;
4
- var Me = (u) => {
5
- throw TypeError(u);
4
+ var Me = (d) => {
5
+ throw TypeError(d);
6
6
  };
7
- var Ae = (u, r, e) => r in u ? We(u, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : u[r] = e, Te = (u, r) => {
8
- for (var e in r || (r = {}))
9
- Fe.call(r, e) && Ae(u, e, r[e]);
7
+ var Ae = (d, n, e) => n in d ? We(d, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : d[n] = e, Te = (d, n) => {
8
+ for (var e in n || (n = {}))
9
+ Fe.call(n, e) && Ae(d, e, n[e]);
10
10
  if (ke)
11
- for (var e of ke(r))
12
- Ne.call(r, e) && Ae(u, e, r[e]);
13
- return u;
11
+ for (var e of ke(n))
12
+ Ne.call(n, e) && Ae(d, e, n[e]);
13
+ return d;
14
14
  };
15
- var ve = (u, r, e) => r.has(u) || Me("Cannot " + e);
16
- var t = (u, r, e) => (ve(u, r, "read from private field"), e ? e.call(u) : r.get(u)), s = (u, r, e) => r.has(u) ? Me("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(u) : r.set(u, e), h = (u, r, e, i) => (ve(u, r, "write to private field"), i ? i.call(u, e) : r.set(u, e), e), l = (u, r, e) => (ve(u, r, "access private method"), e);
17
- import { S as qe } from "../Store-D2xCXENW.js";
15
+ var ve = (d, n, e) => n.has(d) || Me("Cannot " + e);
16
+ var t = (d, n, e) => (ve(d, n, "read from private field"), e ? e.call(d) : n.get(d)), s = (d, n, e) => n.has(d) ? Me("Cannot add the same private member more than once") : n instanceof WeakSet ? n.add(d) : n.set(d, e), h = (d, n, e, i) => (ve(d, n, "write to private field"), i ? i.call(d, e) : n.set(d, e), e), l = (d, n, e) => (ve(d, n, "access private method"), e);
17
+ import { S as qe } from "../Store-swP_0ymB.js";
18
18
  import { i as H } from "../index-euf5anj6.js";
19
19
  import { a as Ue } from "../easings-Bni3YAAW.js";
20
- import { d as te } from "../events-CsVF98U6.js";
20
+ import { d as Yt } from "../events-CsVF98U6.js";
21
21
  import { c as Ve } from "../jss-DtnXPEnq.js";
22
- import { a as Ce, g as ye } from "../layout-DpZo-I0y.js";
22
+ import { a as ye, g as Ce } from "../layout-DpZo-I0y.js";
23
23
  import { c as Re } from "../math-BOBiC4TN.js";
24
24
  import { l as Ge } from "../number-DwCxt_Ck.js";
25
25
  import "../ticker/index.js";
26
26
  import { TICK_ORDER as Ke, RESIZE_ORDER as we } from "../order/index.js";
27
- import { D as _e } from "../Damped-BXsGpI-B.js";
28
- import { T as Ze } from "../Tweened-BhDWLNF0.js";
27
+ import { D as _e } from "../Damped-GyAS-U-z.js";
28
+ import { T as Ze } from "../Tweened-BSC-evuL.js";
29
29
  import { WheelControls as je, KeyboardControls as Je, DragControls as Qe, AutoplayControls as Xe } from "../controls/index.js";
30
- import { windowResizer as Dt } from "../window-resizer/index.js";
30
+ import { windowResizer as Vt } from "../window-resizer/index.js";
31
31
  import { scrollEntries as gt } from "../scroll-entries/index.js";
32
32
  import { cssUnitParser as De } from "../css-unit-parser/index.js";
33
33
  import { CSSProperty as f } from "../css-property/index.js";
34
34
  import { device as Ye } from "../device/index.js";
35
- import { elementResizer as re } from "../element-resizer/index.js";
35
+ import { elementResizer as ie } from "../element-resizer/index.js";
36
36
  import { s as ts } from "../gestures-CcXV6fCp.js";
37
37
  import { b as Oe } from "../dom-CVWzyXPH.js";
38
38
  import { d as es } from "../function-C10DGppn.js";
39
39
  import { ScrollSegmentElement as ss } from "../scroll-segment/index.js";
40
- var b, Rt, g, vt, $, Y, Ct, yt, ee;
40
+ var b, Ot, g, vt, $, Y, yt, Ct, te;
41
41
  class is {
42
- constructor(r, e, i) {
43
- s(this, yt);
42
+ constructor(n, e, i) {
43
+ s(this, Ct);
44
44
  s(this, b);
45
- s(this, Rt);
45
+ s(this, Ot);
46
46
  s(this, g);
47
47
  s(this, vt, 0);
48
48
  s(this, $, 0);
49
49
  s(this, Y, null);
50
- s(this, Ct, 0);
51
- h(this, b, r), h(this, Rt, e), h(this, g, i), gt.register(t(this, b)), this.setIndex(t(this, Rt));
50
+ s(this, yt, 0);
51
+ h(this, b, n), h(this, Ot, e), h(this, g, i), gt.register(t(this, b)), this.setIndex(t(this, Ot));
52
52
  }
53
53
  get element() {
54
54
  return t(this, b);
55
55
  }
56
56
  get index() {
57
- return t(this, Rt);
57
+ return t(this, Ot);
58
58
  }
59
59
  get size() {
60
60
  return t(this, vt);
@@ -63,7 +63,7 @@ class is {
63
63
  return t(this, $);
64
64
  }
65
65
  get transformPosition() {
66
- return t(this, Ct);
66
+ return t(this, yt);
67
67
  }
68
68
  destroy() {
69
69
  gt.unregister(t(this, b)), this.unsetTransform();
@@ -71,27 +71,26 @@ class is {
71
71
  unsetTransform() {
72
72
  t(this, b).style.transform = "", this.setMark(null), this.setIndex(null), this.setCurrentIndex(null), this.setCurrentIndexArc(null), this.setCurrentIndexArcAbs(null), this.setMiddle(!1), this.setSize();
73
73
  }
74
- setSize(r) {
75
- r ? (t(this, b).style.setProperty("--size", r + "px"), t(this, g).axisCSSProperty.current === "x" ? (t(this, b).style.width = r + "px", t(this, b).style.height = "") : (t(this, b).style.height = r + "px", t(this, b).style.width = "")) : (t(this, b).style.width = "", t(this, b).style.height = "", t(this, b).style.removeProperty("--size"));
74
+ setSize(n) {
75
+ n ? (t(this, b).style.setProperty("--size", n + "px"), t(this, g).axisCSSProperty.current === "x" ? (t(this, b).style.width = n + "px", t(this, b).style.height = "") : (t(this, b).style.height = n + "px", t(this, b).style.width = "")) : (t(this, b).style.width = "", t(this, b).style.height = "", t(this, b).style.removeProperty("--size"));
76
76
  }
77
77
  resize() {
78
- h(this, vt, t(this, g).vertical ? t(this, b).offsetHeight : t(this, b).offsetWidth), h(this, $, t(this, g).vertical ? Ce(t(this, b)) : ye(t(this, b))), h(this, $, t(this, $) - t(this, g).contentPosition);
78
+ h(this, vt, t(this, g).vertical ? t(this, b).offsetHeight : t(this, b).offsetWidth), h(this, $, t(this, g).vertical ? ye(t(this, b)) : Ce(t(this, b))), h(this, $, t(this, $) - t(this, g).contentPosition);
79
79
  }
80
80
  transform() {
81
- const r = t(this, g).shiftSectionPositionCSSProperty.current;
82
- console.log(r);
83
- let e = r;
81
+ const n = t(this, g).shiftSectionPositionCSSProperty.current;
82
+ let e = n;
84
83
  const i = t(this, g).viewportSize * t(this, g).sectionDistanceScaleCSSProperty.current;
85
- t(this, g).loopCSSProperty.current && t(this, $) + t(this, vt) < t(this, g).currentScrollValue - r && (e = (t(this, g).distance - r) * -1 - t(this, g).gap), gt.update(
84
+ t(this, g).loopCSSProperty.current && t(this, $) + t(this, vt) < t(this, g).currentScrollValue - n && (e = (t(this, g).distance - n) * -1 - t(this, g).gap), gt.update(
86
85
  t(this, b),
87
86
  t(this, g).axisCSSProperty.current,
88
87
  e
89
88
  );
90
- const n = t(this, g).currentScrollValue + e, a = t(this, $) - t(this, g).viewportSize - i, m = t(this, $) + t(this, vt) + i, v = Re(n, a, m);
91
- h(this, Ct, v * -1), t(this, g).vertical ? t(this, b).style.transform = `translate3d(0px, ${t(this, Ct)}px, 0px)` : t(this, b).style.transform = `translate3d(${t(this, Ct)}px, 0px, 0px)`;
89
+ const r = t(this, g).currentScrollValue + e, a = t(this, $) - t(this, g).viewportSize - i, m = t(this, $) + t(this, vt) + i, v = Re(r, a, m);
90
+ h(this, yt, v * -1), t(this, g).vertical ? t(this, b).style.transform = `translate3d(0px, ${t(this, yt)}px, 0px)` : t(this, b).style.transform = `translate3d(${t(this, yt)}px, 0px, 0px)`;
92
91
  }
93
- setMark(r) {
94
- t(this, Y) !== r && (t(this, Y) && t(this, b).classList.remove(t(this, Y)), r && t(this, b).classList.add(r), h(this, Y, r), te(t(this, b), "scrollSectionMarkChange", {
92
+ setMark(n) {
93
+ t(this, Y) !== n && (t(this, Y) && t(this, b).classList.remove(t(this, Y)), n && t(this, b).classList.add(n), h(this, Y, n), Yt(t(this, b), "scrollSectionMarkChange", {
95
94
  composed: !0,
96
95
  detail: {
97
96
  mark: t(this, Y)
@@ -99,24 +98,24 @@ class is {
99
98
  custom: !0
100
99
  }));
101
100
  }
102
- setMiddle(r) {
103
- t(this, b).classList.toggle("middle", r);
101
+ setMiddle(n) {
102
+ t(this, b).classList.toggle("middle", n);
104
103
  }
105
- setIndex(r) {
106
- l(this, yt, ee).call(this, "index", r);
104
+ setIndex(n) {
105
+ l(this, Ct, te).call(this, "index", n);
107
106
  }
108
- setCurrentIndex(r) {
109
- l(this, yt, ee).call(this, "current-index", r);
107
+ setCurrentIndex(n) {
108
+ l(this, Ct, te).call(this, "current-index", n);
110
109
  }
111
- setCurrentIndexArc(r) {
112
- l(this, yt, ee).call(this, "current-index-arc", r);
110
+ setCurrentIndexArc(n) {
111
+ l(this, Ct, te).call(this, "current-index-arc", n);
113
112
  }
114
- setCurrentIndexArcAbs(r) {
115
- l(this, yt, ee).call(this, "current-index-arc-abs", r);
113
+ setCurrentIndexArcAbs(n) {
114
+ l(this, Ct, te).call(this, "current-index-arc-abs", n);
116
115
  }
117
116
  }
118
- b = new WeakMap(), Rt = new WeakMap(), g = new WeakMap(), vt = new WeakMap(), $ = new WeakMap(), Y = new WeakMap(), Ct = new WeakMap(), yt = new WeakSet(), ee = function(r, e) {
119
- e !== null ? (t(this, b).style.setProperty(`--${r}`, e.toString()), t(this, b).setAttribute(`data-${r}`, e.toString())) : (t(this, b).style.removeProperty(`--${r}`), t(this, b).removeAttribute(`data-${r}`));
117
+ b = new WeakMap(), Ot = new WeakMap(), g = new WeakMap(), vt = new WeakMap(), $ = new WeakMap(), Y = new WeakMap(), yt = new WeakMap(), Ct = new WeakSet(), te = function(n, e) {
118
+ e !== null ? (t(this, b).style.setProperty(`--${n}`, e.toString()), t(this, b).setAttribute(`data-${n}`, e.toString())) : (t(this, b).style.removeProperty(`--${n}`), t(this, b).removeAttribute(`data-${n}`));
120
119
  };
121
120
  const rs = Ve({
122
121
  ":host": {
@@ -156,12 +155,12 @@ const rs = Ve({
156
155
  flexShrink: "0"
157
156
  }
158
157
  });
159
- var d, wt, E, tt, B, W, F, T, et, st, N, it, xt, D, y, Et, Pt, Lt, zt, Ot, A, It, rt, M, nt, q, Ht, ht, kt, ot, lt, ct, p, $t, c, ne, he, C, S, k, V, at, R, w, P, Bt, U, G, K, _, Wt, ut, Z, Ft, O, x, oe, dt, o, xe, se, Tt, me, Se, Ee, Pe, L, Nt, He, qt, le, Le, ze, St, $e, ie, ce;
160
- class Vt extends HTMLElement {
158
+ var u, wt, E, tt, B, W, F, T, et, st, N, it, xt, D, C, Et, Pt, Lt, zt, Ht, A, It, rt, M, nt, q, kt, ht, At, ot, lt, ct, p, $t, c, re, ne, y, S, k, V, at, R, x, P, Bt, U, G, K, _, Wt, ut, Z, Ft, O, w, he, dt, o, xe, ee, Dt, me, Se, Ee, Pe, L, oe, He, Nt, le, Le, ze, St, $e, se, ce;
159
+ class Rt extends HTMLElement {
161
160
  constructor() {
162
161
  super();
163
162
  s(this, o);
164
- s(this, d, null);
163
+ s(this, u, null);
165
164
  s(this, wt, new f(this, "--controls", !0));
166
165
  s(this, E, new f(this, "--axis", "y"));
167
166
  s(this, tt, new f(this, "--reverse", !1));
@@ -193,12 +192,12 @@ class Vt extends HTMLElement {
193
192
  "--sections-in-view",
194
193
  1
195
194
  ));
196
- s(this, y, new f(this, "--loop", !1));
195
+ s(this, C, new f(this, "--loop", !1));
197
196
  s(this, Et, new f(this, "--damping", 20));
198
197
  s(this, Pt, new f(this, "--mass", 0));
199
198
  s(this, Lt, new f(this, "--stiffness", 0));
200
199
  s(this, zt, new f(this, "--mouse-drag", !1));
201
- s(this, Ot, new f(
200
+ s(this, Ht, new f(
202
201
  this,
203
202
  "--section-distance-scale",
204
203
  0.5
@@ -225,14 +224,14 @@ class Vt extends HTMLElement {
225
224
  "--current-index-end-offset",
226
225
  0
227
226
  ));
228
- s(this, Ht, new f(
227
+ s(this, kt, new f(
229
228
  this,
230
229
  "--shift-section-position",
231
230
  0,
232
231
  { rawValueCheck: !1 }
233
232
  ));
234
233
  s(this, ht, new f(this, "--focus-delay", 0));
235
- s(this, kt, new f(
234
+ s(this, At, new f(
236
235
  this,
237
236
  "--focus-duration",
238
237
  3e3
@@ -243,15 +242,15 @@ class Vt extends HTMLElement {
243
242
  s(this, p, null);
244
243
  s(this, $t, null);
245
244
  s(this, c, []);
245
+ s(this, re, 0);
246
246
  s(this, ne, 0);
247
- s(this, he, 0);
248
- s(this, C, 0);
247
+ s(this, y, 0);
249
248
  s(this, S, 0);
250
249
  s(this, k, 0);
251
250
  s(this, V, null);
252
251
  s(this, at, null);
253
252
  s(this, R, null);
254
- s(this, w, null);
253
+ s(this, x, null);
255
254
  s(this, P, new qe(0));
256
255
  s(this, Bt, 0);
257
256
  s(this, U, 0);
@@ -263,63 +262,63 @@ class Vt extends HTMLElement {
263
262
  s(this, Z, new Ze());
264
263
  s(this, Ft, !1);
265
264
  s(this, O, null);
266
- s(this, x, !1);
267
- s(this, oe, null);
265
+ s(this, w, !1);
266
+ s(this, he, null);
268
267
  s(this, dt, []);
269
268
  s(this, L, () => {
270
269
  if (t(this, lt).current)
271
270
  return;
272
- t(this, d).unlistenAnimationFrame();
271
+ t(this, u).unlistenAnimationFrame();
273
272
  const e = this.currentScrollValue / t(this, S) || 0, i = t(this, P).current;
274
- if (h(this, ne, this.vertical ? Ce(this) : ye(this)), h(this, he, this.vertical ? Ce(t(this, p)) : ye(t(this, p))), h(this, C, this.vertical ? this.offsetHeight : this.offsetWidth), this.vertical ? h(this, k, De.parse(
273
+ if (h(this, re, this.vertical ? ye(this) : Ce(this)), h(this, ne, this.vertical ? ye(t(this, p)) : Ce(t(this, p))), h(this, y, this.vertical ? this.offsetHeight : this.offsetWidth), this.vertical ? h(this, k, De.parse(
275
274
  getComputedStyle(t(this, p)).rowGap
276
275
  )) : h(this, k, De.parse(
277
276
  getComputedStyle(t(this, p)).columnGap
278
277
  )), t(this, N).current && t(this, c).length) {
279
- const n = t(this, D).current, a = (t(this, C) - t(this, k) * (n - 1)) / n;
278
+ const r = t(this, D).current, a = (t(this, y) - t(this, k) * (r - 1)) / r;
280
279
  t(this, c).forEach((m) => {
281
280
  m.setSize(a);
282
281
  });
283
282
  } else
284
- t(this, c).forEach((n) => {
285
- n.setSize();
283
+ t(this, c).forEach((r) => {
284
+ r.setSize();
286
285
  });
287
- if (t(this, c).forEach((n) => {
288
- n.resize();
286
+ if (t(this, c).forEach((r) => {
287
+ r.resize();
289
288
  }), t(this, W).current) {
290
- h(this, S, t(this, C) * t(this, W).current);
291
- const n = t(this, S) + t(this, C);
292
- this.vertical ? (t(this, p).style.width = n + "px", t(this, p).style.height = "100%") : (t(this, p).style.height = n + "px", t(this, p).style.width = "100%");
289
+ h(this, S, t(this, y) * t(this, W).current);
290
+ const r = t(this, S) + t(this, y);
291
+ this.vertical ? (t(this, p).style.width = r + "px", t(this, p).style.height = "100%") : (t(this, p).style.height = r + "px", t(this, p).style.width = "100%");
293
292
  } else
294
- this.vertical ? (t(this, p).style.width = "100%", t(this, p).style.height = "max-content", h(this, S, t(this, p).offsetHeight - t(this, C))) : (t(this, p).style.width = "max-content", t(this, p).style.height = "100%", h(this, S, t(this, p).offsetWidth - t(this, C)));
295
- if (!t(this, y).current) {
296
- const n = getComputedStyle(this), a = this.vertical ? parseFloat(n.paddingBlockStart) + parseFloat(n.paddingBlockEnd) : parseFloat(n.paddingInlineStart) + parseFloat(n.paddingInlineEnd);
297
- h(this, S, t(this, S) + a), t(this, d).max = t(this, S);
293
+ this.vertical ? (t(this, p).style.width = "100%", t(this, p).style.height = "max-content", h(this, S, t(this, p).offsetHeight - t(this, y))) : (t(this, p).style.width = "max-content", t(this, p).style.height = "100%", h(this, S, t(this, p).offsetWidth - t(this, y)));
294
+ if (!t(this, C).current) {
295
+ const r = getComputedStyle(this), a = this.vertical ? parseFloat(r.paddingBlockStart) + parseFloat(r.paddingBlockEnd) : parseFloat(r.paddingInlineStart) + parseFloat(r.paddingInlineEnd);
296
+ h(this, S, t(this, S) + a), t(this, u).max = t(this, S);
298
297
  }
299
- if (t(this, y).current && t(this, c).length) {
300
- const n = t(this, c)[t(this, c).length - 1], a = n.position + n.size - t(this, C), m = t(this, S) - a;
301
- h(this, U, n.position + n.size + m);
298
+ if (t(this, C).current && t(this, c).length) {
299
+ const r = t(this, c)[t(this, c).length - 1], a = r.position + r.size - t(this, y), m = t(this, S) - a;
300
+ h(this, U, r.position + r.size + m);
302
301
  } else
303
302
  h(this, U, t(this, S));
304
303
  if (t(this, T).current && t(this, c).length) {
305
- const n = t(this, c)[i];
306
- t(this, d).set(n.position, {
304
+ const r = t(this, c)[i];
305
+ t(this, u).set(r.position, {
307
306
  equalize: !0
308
307
  });
309
308
  } else
310
- t(this, d).set(e * t(this, S), {
309
+ t(this, u).set(e * t(this, S), {
311
310
  equalize: !0
312
311
  });
313
- h(this, G, (this.vertical ? t(this, p).offsetHeight : t(this, p).offsetWidth) > t(this, C)), this.classList.toggle("has-overflow", t(this, G)), t(this, G) ? t(this, ot).current || l(this, o, Se).call(this) : l(this, o, me).call(this), te(this, "scrollResize", { custom: !0 }), t(this, Nt).call(this);
312
+ h(this, G, (this.vertical ? t(this, p).offsetHeight : t(this, p).offsetWidth) > t(this, y)), this.classList.toggle("has-overflow", t(this, G)), t(this, G) ? t(this, ot).current || l(this, o, Se).call(this) : l(this, o, me).call(this), Yt(this, "scrollResize", { custom: !0 }), t(this, u).notify();
314
313
  });
315
- s(this, Nt, () => {
314
+ s(this, oe, () => {
316
315
  if (!t(this, G) || t(this, _) || t(this, K))
317
316
  return;
318
317
  const e = this.currentScrollValue;
319
318
  if (h(this, Bt, Math.max(0, e - t(this, S))), t(this, c).length) {
320
319
  for (let i = 0; i < t(this, c).length; i++)
321
320
  t(this, c)[i].transform();
322
- t(this, P).current = l(this, o, ie).call(this);
321
+ t(this, P).current = l(this, o, se).call(this);
323
322
  } else
324
323
  this.vertical ? t(this, p).style.transform = `translate3d(0px, ${e * -1}px, 0px)` : t(this, p).style.transform = `translate3d(${e * -1}px, 0px, 0px)`;
325
324
  l(this, o, $e).call(this), gt.update(
@@ -328,7 +327,7 @@ class Vt extends HTMLElement {
328
327
  e
329
328
  );
330
329
  });
331
- s(this, qt, (e, i) => {
330
+ s(this, Nt, (e, i) => {
332
331
  t(this, wt).current && (l(this, o, Le).call(this, Math.sign(i) || 1), t(this, le).call(this, e, i));
333
332
  });
334
333
  s(this, le, (e, i) => {
@@ -339,16 +338,16 @@ class Vt extends HTMLElement {
339
338
  return;
340
339
  }
341
340
  if (t(this, ut) || t(this, Z).unlistenAnimationFrame(), !t(this, A).current && t(this, ht).current && (clearInterval(t(this, Wt)), h(this, Wt, setTimeout(() => {
342
- const n = t(this, c)[l(this, o, ie).call(this)];
343
- n && this.scrollToSection(n.index, {
341
+ const r = t(this, c)[l(this, o, se).call(this)];
342
+ r && this.scrollToSection(r.index, {
344
343
  tween: {
345
- duration: t(this, kt).current,
344
+ duration: t(this, At).current,
346
345
  easing: Ue
347
346
  }
348
347
  });
349
348
  }, t(this, ht).current))), !(e.includes("drag") && !Ye.isTouch && !t(this, zt).current)) {
350
349
  if (t(this, T).current && e !== "drag") {
351
- const n = Math.sign(i);
350
+ const r = Math.sign(i);
352
351
  if (t(this, c).length) {
353
352
  const a = {
354
353
  tween: t(this, et).current || t(this, st).current ? {
@@ -356,28 +355,28 @@ class Vt extends HTMLElement {
356
355
  duration: t(this, st).current || 500
357
356
  } : void 0
358
357
  };
359
- t(this, Ft) ? this.scrollToSection(l(this, o, ie).call(this, !0), a) : this.shiftSections(n, a);
358
+ t(this, Ft) ? this.scrollToSection(l(this, o, se).call(this, !0), a) : this.shiftSections(r, a);
360
359
  } else
361
- t(this, d).shift(n * t(this, C));
360
+ t(this, u).shift(r * t(this, y));
362
361
  } else
363
- t(this, d).shift(i);
362
+ t(this, u).shift(i);
364
363
  h(this, Ft, e === "drag");
365
364
  }
366
365
  });
367
366
  s(this, ce, () => {
368
- h(this, x, !0), this.hibernatedCSSProperty.current || l(this, o, Pe).call(this);
367
+ h(this, w, !0), this.hibernatedCSSProperty.current || l(this, o, Pe).call(this);
369
368
  });
370
369
  if (H) {
371
370
  const e = this.attachShadow({ mode: "open" });
372
371
  e.adoptedStyleSheets = [rs];
373
372
  const i = document.createElement("div");
374
- i.className = "static", i.innerHTML = '<slot name="static"></slot>', e.appendChild(i), h(this, ct, document.createElement("div")), t(this, ct).className = "content-wrapper", h(this, p, document.createElement("div")), t(this, p).className = "content", h(this, $t, document.createElement("slot")), t(this, p).appendChild(t(this, $t)), t(this, ct).appendChild(t(this, p)), e.appendChild(t(this, ct)), h(this, oe, new MutationObserver((n) => {
373
+ i.className = "static", i.innerHTML = '<slot name="static"></slot>', e.appendChild(i), h(this, ct, document.createElement("div")), t(this, ct).className = "content-wrapper", h(this, p, document.createElement("div")), t(this, p).className = "content", h(this, $t, document.createElement("slot")), t(this, p).appendChild(t(this, $t)), t(this, ct).appendChild(t(this, p)), e.appendChild(t(this, ct)), h(this, he, new MutationObserver((r) => {
375
374
  this.tryResplit();
376
375
  }));
377
376
  }
378
377
  }
379
378
  get damped() {
380
- return t(this, d);
379
+ return t(this, u);
381
380
  }
382
381
  get controlsCSSProperty() {
383
382
  return t(this, wt);
@@ -419,7 +418,7 @@ class Vt extends HTMLElement {
419
418
  return t(this, D);
420
419
  }
421
420
  get loopCSSProperty() {
422
- return t(this, y);
421
+ return t(this, C);
423
422
  }
424
423
  get dampingCSSProperty() {
425
424
  return t(this, Et);
@@ -434,7 +433,7 @@ class Vt extends HTMLElement {
434
433
  return t(this, zt);
435
434
  }
436
435
  get sectionDistanceScaleCSSProperty() {
437
- return t(this, Ot);
436
+ return t(this, Ht);
438
437
  }
439
438
  get autoplayCSSProperty() {
440
439
  return t(this, A);
@@ -455,13 +454,13 @@ class Vt extends HTMLElement {
455
454
  return t(this, q);
456
455
  }
457
456
  get shiftSectionPositionCSSProperty() {
458
- return t(this, Ht);
457
+ return t(this, kt);
459
458
  }
460
459
  get focusDelayCSSProperty() {
461
460
  return t(this, ht);
462
461
  }
463
462
  get focusDurationCSSProperty() {
464
- return t(this, kt);
463
+ return t(this, At);
465
464
  }
466
465
  get disabledCSSProperty() {
467
466
  return t(this, ot);
@@ -485,13 +484,13 @@ class Vt extends HTMLElement {
485
484
  return t(this, c);
486
485
  }
487
486
  get position() {
488
- return t(this, ne);
487
+ return t(this, re);
489
488
  }
490
489
  get contentPosition() {
491
- return t(this, he);
490
+ return t(this, ne);
492
491
  }
493
492
  get viewportSize() {
494
- return t(this, C);
493
+ return t(this, y);
495
494
  }
496
495
  get scrollSize() {
497
496
  return t(this, S);
@@ -511,7 +510,7 @@ class Vt extends HTMLElement {
511
510
  return t(this, U);
512
511
  }
513
512
  get loopDistance() {
514
- return t(this, y).current ? t(this, U) + t(this, k) : t(this, U);
513
+ return t(this, C).current ? t(this, U) + t(this, k) : t(this, U);
515
514
  }
516
515
  get hasOverflow() {
517
516
  return t(this, G);
@@ -532,67 +531,67 @@ class Vt extends HTMLElement {
532
531
  return this.targetScrollValue / this.loopDistance || 0;
533
532
  }
534
533
  get scrollWidth() {
535
- return t(this, E).current === "y" ? 0 : t(this, d).distance;
534
+ return t(this, E).current === "y" ? 0 : t(this, u).distance;
536
535
  }
537
536
  get scrollHeight() {
538
- return t(this, E).current === "x" ? 0 : t(this, d).distance;
537
+ return t(this, E).current === "x" ? 0 : t(this, u).distance;
539
538
  }
540
539
  tryResplit() {
541
- !t(this, _) && (t(this, y).current || t(this, F).current || t(this, y).current || t(this, N).current || t(this, T).current) && l(this, o, se).call(this);
540
+ !t(this, _) && (t(this, C).current || t(this, F).current || t(this, C).current || t(this, N).current || t(this, T).current) && l(this, o, ee).call(this);
542
541
  }
543
542
  onScroll(...e) {
544
- return t(this, d).subscribe(...e);
543
+ return t(this, u).subscribe(...e);
545
544
  }
546
545
  offScroll(...e) {
547
- t(this, d).unsubscribe(...e);
546
+ t(this, u).unsubscribe(...e);
548
547
  }
549
548
  //https://github.com/pmndrs/drei/blob/d3282cdd02d170ef603a5e096505d83dc93cd57a/src/web/ScrollControls.tsx#L85C7-L100C9
550
- range(e, i, n = 0) {
551
- const a = e - n, m = a + i + n * 2;
549
+ range(e, i, r = 0) {
550
+ const a = e - r, m = a + i + r * 2;
552
551
  return this.currentProgress < a ? 0 : this.currentProgress > m ? 1 : (this.currentProgress - a) / (m - a);
553
552
  }
554
- curve(e, i, n = 0) {
555
- return Math.sin(this.range(e, i, n) * Math.PI);
553
+ curve(e, i, r = 0) {
554
+ return Math.sin(this.range(e, i, r) * Math.PI);
556
555
  }
557
- visible(e, i, n = 0) {
558
- const a = e - n, m = a + i + n * 2;
556
+ visible(e, i, r = 0) {
557
+ const a = e - r, m = a + i + r * 2;
559
558
  return this.currentProgress >= a && this.currentProgress <= m;
560
559
  }
561
560
  scrollToSection(e, i) {
562
561
  if (!t(this, c).length)
563
562
  return;
564
- const n = t(this, P).current, a = l(this, o, He).call(this, e), m = t(this, c)[n], v = t(this, c)[a];
563
+ const r = t(this, P).current, a = l(this, o, He).call(this, e), m = t(this, c)[r], v = t(this, c)[a];
565
564
  if (m && v) {
566
565
  let I = 0;
567
- const ge = l(this, o, ie).call(this), Mt = t(this, c)[ge], be = Mt ? this.targetScrollValue - Mt.position : 0;
568
- t(this, y).current ? a === 0 && n === t(this, c).length - 1 ? I = t(this, S) + t(this, C) - m.position + t(this, k) : a === t(this, c).length - 1 && n === 0 ? I = v.position - (t(this, S) + t(this, C) + t(this, k)) : I = v.position - m.position : I = v.position - m.position, this.shiftPosition(I - be, i);
566
+ const ge = l(this, o, se).call(this), Tt = t(this, c)[ge], be = Tt ? this.targetScrollValue - Tt.position : 0;
567
+ t(this, C).current ? a === 0 && r === t(this, c).length - 1 ? I = t(this, S) + t(this, y) - m.position + t(this, k) : a === t(this, c).length - 1 && r === 0 ? I = v.position - (t(this, S) + t(this, y) + t(this, k)) : I = v.position - m.position : I = v.position - m.position, this.shiftPosition(I - be, i);
569
568
  }
570
569
  }
571
570
  shiftSections(e, i) {
572
571
  t(this, c).length && this.scrollToSection(t(this, P).current + e, i);
573
572
  }
574
573
  setPosition(e, i) {
575
- l(this, o, Le).call(this, Math.sign(e) || 1), i != null && i.tween ? t(this, ut) || (t(this, Z).set(t(this, d).current, { equalize: !0 }), t(this, Z).set(e, Te({}, i.tween)), h(this, ut, setTimeout(() => {
574
+ l(this, o, Le).call(this, Math.sign(e) || 1), i != null && i.tween ? t(this, ut) || (t(this, Z).set(t(this, u).current, { equalize: !0 }), t(this, Z).set(e, Te({}, i.tween)), h(this, ut, setTimeout(() => {
576
575
  h(this, ut, void 0);
577
- }, i.tween.duration || 0))) : t(this, d).set(e, {
576
+ }, i.tween.duration || 0))) : t(this, u).set(e, {
578
577
  equalize: (i == null ? void 0 : i.behaviour) === "instant"
579
578
  });
580
579
  }
581
580
  shiftPosition(e, i) {
582
- this.setPosition(t(this, d).target + e, i);
581
+ this.setPosition(t(this, u).target + e, i);
583
582
  }
584
583
  connectedCallback() {
585
- gt.register(this), h(this, d, new _e(0, {
584
+ gt.register(this), h(this, u, new _e(0, {
586
585
  damping: 0.01,
587
586
  min: 0,
588
587
  order: Ke.SCROLL
589
- })), this.setAttribute("tabindex", "0"), h(this, V, new je({ element: t(this, p) })), t(this, V).changeEvent.subscribe(t(this, qt)), h(this, at, new Je({
588
+ })), this.setAttribute("tabindex", "0"), h(this, V, new je({ element: t(this, p) })), t(this, V).changeEvent.subscribe(t(this, Nt)), h(this, at, new Je({
590
589
  element: this
591
590
  })), t(this, at).changeEvent.subscribe(
592
- t(this, qt)
593
- ), h(this, R, new Qe({ element: t(this, p) })), t(this, R).changeEvent.subscribe(t(this, qt)), h(this, w, new Xe({
591
+ t(this, Nt)
592
+ ), h(this, R, new Qe({ element: t(this, p) })), t(this, R).changeEvent.subscribe(t(this, Nt)), h(this, x, new Xe({
594
593
  culling: this
595
- })), t(this, w).changeEvent.subscribe(t(this, le)), t(this, E).subscribe(() => {
594
+ })), t(this, x).changeEvent.subscribe(t(this, le)), t(this, E).subscribe(() => {
596
595
  l(this, o, xe).call(this);
597
596
  }), t(this, tt).subscribe(() => {
598
597
  l(this, o, xe).call(this);
@@ -601,126 +600,128 @@ class Vt extends HTMLElement {
601
600
  }), t(this, xt).subscribe((e) => {
602
601
  t(this, R).inertion = typeof e.current == "number" ? e.current : 1;
603
602
  }), t(this, W).subscribe(() => {
604
- t(this, x) && t(this, L).call(this);
603
+ t(this, w) && t(this, L).call(this);
605
604
  }), t(this, F).subscribe(({ current: e }) => {
606
- t(this, x) && (e ? l(this, o, se).call(this) : l(this, o, Tt).call(this));
605
+ t(this, w) && (e ? l(this, o, ee).call(this) : l(this, o, Dt).call(this));
607
606
  }), t(this, T).subscribe((e) => {
608
- t(this, V).debounce = e.current, t(this, R).swipe = e.current, t(this, w).interval = e.current, t(this, x) && (e.current && !e.previous && !t(this, c).length ? l(this, o, se).call(this) : !e.current && e.previous && t(this, c).length && l(this, o, Tt).call(this));
607
+ t(this, V).debounce = e.current, t(this, R).swipe = e.current, t(this, x).interval = e.current, t(this, w) && (e.current && !e.previous && !t(this, c).length ? l(this, o, ee).call(this) : !e.current && e.previous && t(this, c).length && l(this, o, Dt).call(this));
609
608
  }), t(this, N).subscribe((e) => {
610
- t(this, x) && (t(this, L).call(this), e.current && !e.previous && !t(this, c).length ? l(this, o, se).call(this) : !e.current && e.previous && t(this, c).length && l(this, o, Tt).call(this));
609
+ t(this, w) && (t(this, L).call(this), e.current && !e.previous && !t(this, c).length ? l(this, o, ee).call(this) : !e.current && e.previous && t(this, c).length && l(this, o, Dt).call(this));
611
610
  }), t(this, D).subscribe((e) => {
612
- t(this, x) && (t(this, L).call(this), l(this, o, St).call(this));
613
- }), t(this, y).subscribe((e) => {
614
- e.current ? (t(this, x) && (t(this, c).length || (t(this, F).current = !0)), t(this, d).max = 1 / 0, t(this, d).min = -1 / 0) : (h(this, Bt, 0), t(this, d).max = t(this, S), t(this, d).min = 0);
611
+ t(this, w) && (t(this, L).call(this), l(this, o, St).call(this));
612
+ }), t(this, C).subscribe((e) => {
613
+ e.current ? (t(this, w) && (t(this, c).length || (t(this, F).current = !0)), t(this, u).max = 1 / 0, t(this, u).min = -1 / 0) : (h(this, Bt, 0), t(this, u).max = t(this, S), t(this, u).min = 0);
615
614
  }), t(this, Et).subscribe((e) => {
616
- t(this, d).damping = e.current;
615
+ t(this, u).damping = e.current;
617
616
  }), t(this, Pt).subscribe((e) => {
618
- t(this, d).mass = e.current;
617
+ t(this, u).mass = e.current;
619
618
  }), t(this, Lt).subscribe((e) => {
620
- t(this, d).stiffness = e.current;
619
+ t(this, u).stiffness = e.current;
621
620
  }), t(this, A).subscribe((e) => {
622
- t(this, w).speed = e.current, !t(this, K) && e.current && !e.previous ? t(this, w).connect() : !e.current && e.previous && t(this, w).disconnect();
621
+ t(this, x).speed = e.current, !t(this, K) && e.current && !e.previous ? t(this, x).connect() : !e.current && e.previous && t(this, x).disconnect();
623
622
  }), t(this, rt).subscribe((e) => {
624
- e.current || (t(this, w).direction = 1);
623
+ e.current || (t(this, x).direction = 1);
625
624
  }), t(this, M).subscribe((e) => {
626
- t(this, x) && l(this, o, St).call(this);
625
+ t(this, w) && l(this, o, St).call(this);
627
626
  }), t(this, nt).subscribe((e) => {
628
- t(this, x) && t(this, M).current && l(this, o, St).call(this);
627
+ t(this, w) && t(this, M).current && l(this, o, St).call(this);
629
628
  }), t(this, q).subscribe((e) => {
630
- t(this, x) && t(this, M).current && l(this, o, St).call(this);
631
- }), t(this, d).isRunning.subscribe((e) => {
629
+ t(this, w) && t(this, M).current && l(this, o, St).call(this);
630
+ }), t(this, kt).subscribe((e) => {
631
+ t(this, w) && t(this, u).notify();
632
+ }), t(this, u).isRunning.subscribe((e) => {
632
633
  this.classList.toggle("active", e.current);
633
634
  }), t(this, P).subscribe((e) => {
634
635
  t(this, c).length && l(this, o, St).call(this);
635
636
  }), t(this, Z).subscribe((e) => {
636
- t(this, Z).isRunning.current && t(this, d).set(e.current, { equalize: !0 });
637
+ t(this, Z).isRunning.current && t(this, u).set(e.current, { equalize: !0 });
637
638
  }), t(this, ot).subscribe((e) => {
638
639
  e.current && !e.previous ? (this.classList.add("disabled"), l(this, o, me).call(this)) : !e.current && e.previous && (this.classList.remove("disabled"), l(this, o, Se).call(this));
639
640
  }), t(this, lt).subscribe((e) => {
640
641
  e.current && !e.previous ? (this.classList.add("hibernated"), l(this, o, Ee).call(this)) : !e.current && e.previous && (this.classList.remove("hibernated"), l(this, o, Pe).call(this));
641
- }), t(this, wt).observe(), t(this, E).observe(), t(this, tt).observe(), t(this, B).observe(), t(this, W).observe(), t(this, F).observe(), t(this, T).observe(), t(this, et).observe(), t(this, st).observe(), t(this, N).observe(), t(this, it).observe(), t(this, xt).observe(), t(this, D).observe(), t(this, y).observe(), t(this, Et).observe(), t(this, Pt).observe(), t(this, Lt).observe(), t(this, zt).observe(), t(this, Ot).observe(), t(this, A).observe(), t(this, A).observe(), t(this, It).observe(), t(this, rt).observe(), t(this, M).observe(), t(this, nt).observe(), t(this, q).observe(), t(this, Ht).observe(), t(this, ht).observe(), t(this, kt).observe(), t(this, ot).observe(), t(this, lt).observe(), Dt.subscribe(t(this, ce), we.LAST);
642
+ }), t(this, wt).observe(), t(this, E).observe(), t(this, tt).observe(), t(this, B).observe(), t(this, W).observe(), t(this, F).observe(), t(this, T).observe(), t(this, et).observe(), t(this, st).observe(), t(this, N).observe(), t(this, it).observe(), t(this, xt).observe(), t(this, D).observe(), t(this, C).observe(), t(this, Et).observe(), t(this, Pt).observe(), t(this, Lt).observe(), t(this, zt).observe(), t(this, Ht).observe(), t(this, A).observe(), t(this, A).observe(), t(this, It).observe(), t(this, rt).observe(), t(this, M).observe(), t(this, nt).observe(), t(this, q).observe(), t(this, kt).observe(), t(this, ht).observe(), t(this, At).observe(), t(this, ot).observe(), t(this, lt).observe(), Vt.subscribe(t(this, ce), we.LAST);
642
643
  }
643
644
  disconnectedCallback() {
644
- this.removeAttribute("tabindex"), this.classList.remove("disabled"), this.classList.remove("hibernated"), t(this, wt).unobserve(), t(this, E).unobserve(), t(this, tt).unobserve(), t(this, B).unobserve(), t(this, W).unobserve(), t(this, F).unobserve(), t(this, T).unobserve(), t(this, et).unobserve(), t(this, st).unobserve(), t(this, N).unobserve(), t(this, it).unobserve(), t(this, xt).unobserve(), t(this, D).unobserve(), t(this, y).unobserve(), t(this, Et).unobserve(), t(this, Pt).unobserve(), t(this, Lt).unobserve(), t(this, zt).unobserve(), t(this, Ot).unobserve(), t(this, A).unobserve(), t(this, It).unobserve(), t(this, rt).unobserve(), t(this, M).unobserve(), t(this, nt).unobserve(), t(this, q).unobserve(), t(this, Ht).unobserve(), t(this, ht).unobserve(), t(this, kt).unobserve(), t(this, ot).unobserve(), t(this, lt).unobserve(), Dt.unsubscribe(t(this, ce)), l(this, o, Ee).call(this), t(this, oe).disconnect();
645
+ this.removeAttribute("tabindex"), this.classList.remove("disabled"), this.classList.remove("hibernated"), t(this, wt).unobserve(), t(this, E).unobserve(), t(this, tt).unobserve(), t(this, B).unobserve(), t(this, W).unobserve(), t(this, F).unobserve(), t(this, T).unobserve(), t(this, et).unobserve(), t(this, st).unobserve(), t(this, N).unobserve(), t(this, it).unobserve(), t(this, xt).unobserve(), t(this, D).unobserve(), t(this, C).unobserve(), t(this, Et).unobserve(), t(this, Pt).unobserve(), t(this, Lt).unobserve(), t(this, zt).unobserve(), t(this, Ht).unobserve(), t(this, A).unobserve(), t(this, It).unobserve(), t(this, rt).unobserve(), t(this, M).unobserve(), t(this, nt).unobserve(), t(this, q).unobserve(), t(this, kt).unobserve(), t(this, ht).unobserve(), t(this, At).unobserve(), t(this, ot).unobserve(), t(this, lt).unobserve(), Vt.unsubscribe(t(this, ce)), l(this, o, Ee).call(this), t(this, he).disconnect();
645
646
  }
646
647
  }
647
- d = new WeakMap(), wt = new WeakMap(), E = new WeakMap(), tt = new WeakMap(), B = new WeakMap(), W = new WeakMap(), F = new WeakMap(), T = new WeakMap(), et = new WeakMap(), st = new WeakMap(), N = new WeakMap(), it = new WeakMap(), xt = new WeakMap(), D = new WeakMap(), y = new WeakMap(), Et = new WeakMap(), Pt = new WeakMap(), Lt = new WeakMap(), zt = new WeakMap(), Ot = new WeakMap(), A = new WeakMap(), It = new WeakMap(), rt = new WeakMap(), M = new WeakMap(), nt = new WeakMap(), q = new WeakMap(), Ht = new WeakMap(), ht = new WeakMap(), kt = new WeakMap(), ot = new WeakMap(), lt = new WeakMap(), ct = new WeakMap(), p = new WeakMap(), $t = new WeakMap(), c = new WeakMap(), ne = new WeakMap(), he = new WeakMap(), C = new WeakMap(), S = new WeakMap(), k = new WeakMap(), V = new WeakMap(), at = new WeakMap(), R = new WeakMap(), w = new WeakMap(), P = new WeakMap(), Bt = new WeakMap(), U = new WeakMap(), G = new WeakMap(), K = new WeakMap(), _ = new WeakMap(), Wt = new WeakMap(), ut = new WeakMap(), Z = new WeakMap(), Ft = new WeakMap(), O = new WeakMap(), x = new WeakMap(), oe = new WeakMap(), dt = new WeakMap(), o = new WeakSet(), xe = function() {
648
+ u = new WeakMap(), wt = new WeakMap(), E = new WeakMap(), tt = new WeakMap(), B = new WeakMap(), W = new WeakMap(), F = new WeakMap(), T = new WeakMap(), et = new WeakMap(), st = new WeakMap(), N = new WeakMap(), it = new WeakMap(), xt = new WeakMap(), D = new WeakMap(), C = new WeakMap(), Et = new WeakMap(), Pt = new WeakMap(), Lt = new WeakMap(), zt = new WeakMap(), Ht = new WeakMap(), A = new WeakMap(), It = new WeakMap(), rt = new WeakMap(), M = new WeakMap(), nt = new WeakMap(), q = new WeakMap(), kt = new WeakMap(), ht = new WeakMap(), At = new WeakMap(), ot = new WeakMap(), lt = new WeakMap(), ct = new WeakMap(), p = new WeakMap(), $t = new WeakMap(), c = new WeakMap(), re = new WeakMap(), ne = new WeakMap(), y = new WeakMap(), S = new WeakMap(), k = new WeakMap(), V = new WeakMap(), at = new WeakMap(), R = new WeakMap(), x = new WeakMap(), P = new WeakMap(), Bt = new WeakMap(), U = new WeakMap(), G = new WeakMap(), K = new WeakMap(), _ = new WeakMap(), Wt = new WeakMap(), ut = new WeakMap(), Z = new WeakMap(), Ft = new WeakMap(), O = new WeakMap(), w = new WeakMap(), he = new WeakMap(), dt = new WeakMap(), o = new WeakSet(), xe = function() {
648
649
  const e = t(this, E).current, i = t(this, tt).current ? "-reverse" : "";
649
- t(this, p).style.flexDirection = e === "x" ? `row${i}` : `column${i}`, t(this, V).axis = t(this, it).current ? "max" : e, t(this, at).dimension = e === "x" ? "width" : "height", t(this, R).axis = e, e === "x" ? this.style.touchAction = "pan-y" : e === "y" && (this.style.touchAction = "pan-x"), t(this, x) && t(this, L).call(this);
650
- }, se = function() {
651
- l(this, o, Tt).call(this), t(this, $t).assignedElements().forEach((e, i) => {
650
+ t(this, p).style.flexDirection = e === "x" ? `row${i}` : `column${i}`, t(this, V).axis = t(this, it).current ? "max" : e, t(this, at).dimension = e === "x" ? "width" : "height", t(this, R).axis = e, e === "x" ? this.style.touchAction = "pan-y" : e === "y" && (this.style.touchAction = "pan-x"), t(this, w) && t(this, L).call(this);
651
+ }, ee = function() {
652
+ l(this, o, Dt).call(this), t(this, $t).assignedElements().forEach((e, i) => {
652
653
  e instanceof HTMLElement && t(this, c).push(new is(e, i, this));
653
- }), t(this, p).style.transform = "", te(this, "scrollSectionsChange", {
654
+ }), t(this, p).style.transform = "", Yt(this, "scrollSectionsChange", {
654
655
  custom: !0,
655
656
  composed: !0
656
657
  }), t(this, L).call(this), l(this, o, St).call(this);
657
- }, Tt = function() {
658
+ }, Dt = function() {
658
659
  t(this, c).forEach((e) => {
659
660
  e.destroy();
660
- }), h(this, c, []), t(this, P).reset(), t(this, d).reset(), te(this, "scrollSectionsChange", {
661
+ }), h(this, c, []), t(this, P).reset(), t(this, u).reset(), Yt(this, "scrollSectionsChange", {
661
662
  custom: !0,
662
663
  composed: !0
663
664
  });
664
665
  }, me = function() {
665
- t(this, K) || (h(this, K, !0), t(this, d).unsubscribe(t(this, Nt)), t(this, d).unlistenAnimationFrame(), clearInterval(t(this, Wt)), clearInterval(t(this, ut)), t(this, Z).unlistenAnimationFrame(), t(this, V).disconnect(), t(this, at).disconnect(), t(this, R).disconnect(), t(this, w).disconnect(), t(this, G) || (this.sections.forEach((e) => {
666
+ t(this, K) || (h(this, K, !0), t(this, u).unsubscribe(t(this, oe)), t(this, u).unlistenAnimationFrame(), clearInterval(t(this, Wt)), clearInterval(t(this, ut)), t(this, Z).unlistenAnimationFrame(), t(this, V).disconnect(), t(this, at).disconnect(), t(this, R).disconnect(), t(this, x).disconnect(), t(this, G) || (this.sections.forEach((e) => {
666
667
  e.unsetTransform();
667
668
  }), t(this, L).call(this)));
668
669
  }, Se = function() {
669
- t(this, K) && (h(this, K, !1), t(this, d).subscribe(t(this, Nt)), t(this, V).connect(), t(this, at).connect(), t(this, R).connect(), t(this, A).current && t(this, w).connect());
670
+ t(this, K) && (h(this, K, !1), t(this, u).subscribe(t(this, oe), -1e4), t(this, u).notify(), t(this, V).connect(), t(this, at).connect(), t(this, R).connect(), t(this, A).current && t(this, x).connect());
670
671
  }, Ee = function() {
671
- t(this, _) || (h(this, _, !0), Dt.unsubscribe(t(this, L)), re.unsubscribe(t(this, L)), l(this, o, me).call(this), t(this, p).style.transform = "", t(this, p).style.height = "", t(this, p).style.width = "", this.classList.remove("has-overflow", "start", "end"), t(this, c).length ? l(this, o, Tt).call(this) : (t(this, P).reset(), t(this, d).reset()), gt.unregister(this));
672
+ t(this, _) || (h(this, _, !0), Vt.unsubscribe(t(this, L)), ie.unsubscribe(t(this, L)), l(this, o, me).call(this), t(this, p).style.transform = "", t(this, p).style.height = "", t(this, p).style.width = "", this.classList.remove("has-overflow", "start", "end"), t(this, c).length ? l(this, o, Dt).call(this) : (t(this, P).reset(), t(this, u).reset()), gt.unregister(this));
672
673
  }, Pe = function() {
673
- t(this, _) && (h(this, _, !1), gt.register(this), this.tryResplit(), l(this, o, Se).call(this), Dt.subscribe(t(this, L), we.SCROLL), re.subscribe(this, t(this, L)));
674
- }, L = new WeakMap(), Nt = new WeakMap(), He = function(e) {
674
+ t(this, _) && (h(this, _, !1), gt.register(this), this.tryResplit(), l(this, o, Se).call(this), Vt.subscribe(t(this, L), we.SCROLL), ie.subscribe(this, t(this, L)));
675
+ }, L = new WeakMap(), oe = new WeakMap(), He = function(e) {
675
676
  let i = t(this, P).current;
676
- return t(this, y).current ? i = Ge(e, t(this, c).length) : i = Re(e, 0, this.limit), i;
677
- }, qt = new WeakMap(), le = new WeakMap(), Le = function(e = 1) {
678
- t(this, rt).current && (t(this, w).direction = e), t(this, A).current && t(this, w).pauseAndContinue(
677
+ return t(this, C).current ? i = Ge(e, t(this, c).length) : i = Re(e, 0, this.limit), i;
678
+ }, Nt = new WeakMap(), le = new WeakMap(), Le = function(e = 1) {
679
+ t(this, rt).current && (t(this, x).direction = e), t(this, A).current && t(this, x).pauseAndContinue(
679
680
  t(this, It).current,
680
681
  this.sectionalCSSProperty.current
681
682
  );
682
683
  }, ze = function(e = "current") {
683
- if (t(this, y).current && t(this, c).length) {
684
- const i = t(this, d)[e] % Math.round(t(this, S) + t(this, C) + t(this, k));
685
- return i < 0 ? t(this, S) + i + t(this, C) + t(this, k) : i;
684
+ if (t(this, C).current && t(this, c).length) {
685
+ const i = t(this, u)[e] % Math.round(t(this, S) + t(this, y) + t(this, k));
686
+ return i < 0 ? t(this, S) + i + t(this, y) + t(this, k) : i;
686
687
  } else
687
- return t(this, d)[e];
688
+ return t(this, u)[e];
688
689
  }, St = function() {
689
690
  if (t(this, c).length) {
690
691
  const e = t(this, P).current + t(this, nt).current;
691
- if (e === 0 ? h(this, O, "start") : e === this.limit ? h(this, O, "end") : h(this, O, null), te(this, "scrollLine", {
692
+ if (e === 0 ? h(this, O, "start") : e === this.limit ? h(this, O, "end") : h(this, O, null), Yt(this, "scrollLine", {
692
693
  detail: { line: t(this, O) }
693
694
  }), t(this, M).current) {
694
695
  this.classList.remove("end", "start"), t(this, O) && this.classList.add(t(this, O));
695
696
  const i = t(this, D).current + t(this, q).current;
696
- h(this, dt, []), t(this, c).forEach((n, a) => {
697
- n.setCurrentIndex(null), n.setCurrentIndexArc(null), n.setCurrentIndexArcAbs(null);
697
+ h(this, dt, []), t(this, c).forEach((r, a) => {
698
+ r.setCurrentIndex(null), r.setCurrentIndexArc(null), r.setCurrentIndexArcAbs(null), r.setMiddle(!1);
698
699
  const m = e - this.limit - 1 + t(this, q).current, v = e + i, I = this.sections.length - v;
699
- a >= e && a < v || a <= m ? (n.setMark("current"), t(this, dt).push(n)) : a >= v && a < v + I / 2 || a <= m + i ? n.setMark("next") : n.setMark("previous");
700
+ a >= e && a < v || a <= m ? (r.setMark("current"), t(this, dt).push(r)) : a >= v && a < v + I / 2 || a <= m + i ? r.setMark("next") : r.setMark("previous");
700
701
  });
701
702
  }
702
703
  }
703
704
  }, $e = function() {
704
705
  if (t(this, M).current) {
705
706
  const e = Math.floor(t(this, dt).length / 2);
706
- t(this, dt).sort((i, n) => i.element.getBoundingClientRect().left - n.element.getBoundingClientRect().left), t(this, dt).forEach((i, n) => {
707
- const a = n - e;
708
- i.setCurrentIndex(n), i.setCurrentIndexArc(a), i.setCurrentIndexArcAbs(Math.abs(a)), i.setMiddle(n === e);
707
+ t(this, dt).sort((i, r) => i.element.getBoundingClientRect().left - r.element.getBoundingClientRect().left), t(this, dt).forEach((i, r) => {
708
+ const a = r - e;
709
+ i.setCurrentIndex(r), i.setCurrentIndexArc(a), i.setCurrentIndexArcAbs(Math.abs(a)), i.setMiddle(r === e);
709
710
  });
710
711
  }
711
- }, ie = function(e = !1) {
712
- let i = this.targetScrollValue, n = 1 / 0, a = 0;
713
- const m = t(this, d).direction;
712
+ }, se = function(e = !1) {
713
+ let i = this.targetScrollValue, r = 1 / 0, a = 0;
714
+ const m = t(this, u).direction;
714
715
  for (let v = 0; v < t(this, c).length; v++) {
715
716
  const I = t(this, c)[v];
716
- let ge = t(this, Ft) ? I.size * m * -1 * 0.4 : 0, Mt = I.position;
717
- this.overscroll && Mt === 0 && e && (Mt = t(this, U));
718
- let be = Math.abs(Mt + ge - i);
719
- be <= n && (n = be, a = v);
717
+ let ge = t(this, Ft) ? I.size * m * -1 * 0.4 : 0, Tt = I.position;
718
+ this.overscroll && Tt === 0 && e && (Tt = t(this, U));
719
+ let be = Math.abs(Tt + ge - i);
720
+ be <= r && (r = be, a = v);
720
721
  }
721
722
  return a;
722
723
  }, ce = new WeakMap();
723
- H && !customElements.get("e-scroll") && customElements.define("e-scroll", Vt);
724
+ H && !customElements.get("e-scroll") && customElements.define("e-scroll", Rt);
724
725
  var ae;
725
726
  class Ie extends HTMLElement {
726
727
  constructor() {
@@ -731,12 +732,12 @@ class Ie extends HTMLElement {
731
732
  return t(this, ae);
732
733
  }
733
734
  connectedCallback() {
734
- const e = Oe(this, Vt);
735
- e instanceof Vt ? h(this, ae, e) : console.error(this, "e-scroll not found");
735
+ const e = Oe(this, Rt);
736
+ e instanceof Rt ? h(this, ae, e) : console.error(this, "e-scroll not found");
736
737
  }
737
738
  }
738
739
  ae = new WeakMap();
739
- var ft, z, j, J, Ut, Gt, pt, Kt, ue, de;
740
+ var ft, z, j, J, qt, Ut, pt, Gt, ue, de;
740
741
  class ns extends Ie {
741
742
  constructor() {
742
743
  super();
@@ -744,15 +745,15 @@ class ns extends Ie {
744
745
  s(this, z, null);
745
746
  s(this, j, !1);
746
747
  s(this, J, 0);
748
+ s(this, qt, 0);
747
749
  s(this, Ut, 0);
748
- s(this, Gt, 0);
749
750
  s(this, pt, () => {
750
751
  h(this, j, this.offsetWidth > this.offsetHeight);
751
752
  const e = t(this, j) ? this.offsetWidth : this.offsetHeight;
752
- h(this, J, e / ((this.scrollElement.scrollSize + this.scrollElement.viewportSize) / e)), h(this, J, Math.max(t(this, J), 30)), t(this, j) ? (t(this, z).style.width = t(this, J) + "px", t(this, z).style.height = "100%") : (t(this, z).style.width = "100%", t(this, z).style.height = t(this, J) + "px"), h(this, Ut, e - t(this, J)), this.scrollElement.scrollSize <= 0 ? this.style.display = "none" : this.style.display = "", t(this, Kt).call(this);
753
+ h(this, J, e / ((this.scrollElement.scrollSize + this.scrollElement.viewportSize) / e)), h(this, J, Math.max(t(this, J), 30)), t(this, j) ? (t(this, z).style.width = t(this, J) + "px", t(this, z).style.height = "100%") : (t(this, z).style.width = "100%", t(this, z).style.height = t(this, J) + "px"), h(this, qt, e - t(this, J)), this.scrollElement.scrollSize <= 0 ? this.style.display = "none" : this.style.display = "", t(this, Gt).call(this);
753
754
  });
754
- s(this, Kt, () => {
755
- h(this, Gt, this.scrollElement.currentProgress * t(this, Ut)), t(this, j) ? t(this, z).style.transform = `translate3d(${t(this, Gt)}px, 0px, 0px)` : t(this, z).style.transform = `translate3d(0px, ${t(this, Gt)}px, 0px)`;
755
+ s(this, Gt, () => {
756
+ h(this, Ut, this.scrollElement.currentProgress * t(this, qt)), t(this, j) ? t(this, z).style.transform = `translate3d(${t(this, Ut)}px, 0px, 0px)` : t(this, z).style.transform = `translate3d(0px, ${t(this, Ut)}px, 0px)`;
756
757
  });
757
758
  s(this, ue, () => {
758
759
  this.setAttribute("axis", this.scrollElement.axisCSSProperty.current);
@@ -760,14 +761,14 @@ class ns extends Ie {
760
761
  s(this, de, (e) => {
761
762
  document.documentElement.classList.add("grabbing"), ts(
762
763
  (a) => {
763
- const m = t(this, j) ? a.x : a.y, v = this.scrollElement.distance / t(this, Ut), I = (m - n) * v;
764
+ const m = t(this, j) ? a.x : a.y, v = this.scrollElement.distance / t(this, qt), I = (m - r) * v;
764
765
  this.scrollElement.setPosition(i + I);
765
766
  },
766
767
  () => {
767
768
  document.documentElement.classList.remove("grabbing");
768
769
  }
769
770
  );
770
- const i = this.scrollElement.damped.target, n = t(this, j) ? e.x : e.y;
771
+ const i = this.scrollElement.damped.target, r = t(this, j) ? e.x : e.y;
771
772
  });
772
773
  if (H) {
773
774
  const e = this.attachShadow({ mode: "open" });
@@ -810,65 +811,65 @@ class ns extends Ie {
810
811
  connectedCallback() {
811
812
  super.connectedCallback(), this.setAttribute("drag-dead-zone", "");
812
813
  const e = t(this, ft).assignedElements()[0] || t(this, ft).firstElementChild;
813
- h(this, z, e), t(this, z).addEventListener("pointerdown", t(this, de)), Dt.subscribe(t(this, pt), we.SCROLL), re.subscribe(this, t(this, pt)), re.subscribe(this.scrollElement, t(this, pt)), this.scrollElement.onScroll(t(this, Kt)), this.scrollElement.axisCSSProperty.subscribe(t(this, ue));
814
+ h(this, z, e), t(this, z).addEventListener("pointerdown", t(this, de)), Vt.subscribe(t(this, pt), we.SCROLL), ie.subscribe(this, t(this, pt)), ie.subscribe(this.scrollElement, t(this, pt)), this.scrollElement.onScroll(t(this, Gt)), this.scrollElement.axisCSSProperty.subscribe(t(this, ue));
814
815
  }
815
816
  disconnectedCallback() {
816
- this.removeAttribute("drag-dead-zone"), this.style.display = "", t(this, z).removeEventListener("pointerdown", t(this, de)), Dt.unsubscribe(t(this, pt)), re.unsubscribe(t(this, pt)), this.scrollElement.offScroll(t(this, Kt)), this.scrollElement.axisCSSProperty.unsubscribe(t(this, ue));
817
+ this.removeAttribute("drag-dead-zone"), this.style.display = "", t(this, z).removeEventListener("pointerdown", t(this, de)), Vt.unsubscribe(t(this, pt)), ie.unsubscribe(t(this, pt)), this.scrollElement.offScroll(t(this, Gt)), this.scrollElement.axisCSSProperty.unsubscribe(t(this, ue));
817
818
  }
818
819
  }
819
- ft = new WeakMap(), z = new WeakMap(), j = new WeakMap(), J = new WeakMap(), Ut = new WeakMap(), Gt = new WeakMap(), pt = new WeakMap(), Kt = new WeakMap(), ue = new WeakMap(), de = new WeakMap();
820
+ ft = new WeakMap(), z = new WeakMap(), j = new WeakMap(), J = new WeakMap(), qt = new WeakMap(), Ut = new WeakMap(), pt = new WeakMap(), Gt = new WeakMap(), ue = new WeakMap(), de = new WeakMap();
820
821
  H && !customElements.get("e-scrollbar") && customElements.define("e-scrollbar", ns);
821
- var _t, Zt, jt;
822
+ var Kt, _t, Zt;
822
823
  class Be extends Ie {
823
824
  constructor() {
824
825
  super();
825
- s(this, _t, new f(this, "--behaviour", "smooth"));
826
- s(this, Zt, new f(
826
+ s(this, Kt, new f(this, "--behaviour", "smooth"));
827
+ s(this, _t, new f(
827
828
  this,
828
829
  "--tween-easing",
829
830
  !1
830
831
  ));
831
- s(this, jt, new f(this, "--tween-duration", 0));
832
+ s(this, Zt, new f(this, "--tween-duration", 0));
832
833
  H && this.addEventListener("click", () => {
833
- const e = t(this, _t).current, i = t(this, Zt).current, n = t(this, jt).current;
834
+ const e = t(this, Kt).current, i = t(this, _t).current, r = t(this, Zt).current;
834
835
  this.handleClick({
835
836
  behaviour: e,
836
- tween: i || n ? { easing: i, duration: n } : void 0
837
+ tween: i || r ? { easing: i, duration: r } : void 0
837
838
  });
838
839
  });
839
840
  }
840
841
  connectedCallback() {
841
- super.connectedCallback(), t(this, _t).observe(), t(this, Zt).observe(), t(this, jt).observe();
842
+ super.connectedCallback(), t(this, Kt).observe(), t(this, _t).observe(), t(this, Zt).observe();
842
843
  }
843
844
  disconnectedCallback() {
844
- t(this, _t).close(), t(this, Zt).close(), t(this, jt).close();
845
+ t(this, Kt).close(), t(this, _t).close(), t(this, Zt).close();
845
846
  }
846
847
  }
847
- _t = new WeakMap(), Zt = new WeakMap(), jt = new WeakMap();
848
- var Jt;
848
+ Kt = new WeakMap(), _t = new WeakMap(), Zt = new WeakMap();
849
+ var jt;
849
850
  class hs extends Be {
850
851
  constructor() {
851
852
  super(...arguments);
852
- s(this, Jt, new f(this, "--set", 1));
853
+ s(this, jt, new f(this, "--set", 1));
853
854
  }
854
855
  handleClick(e) {
855
- this.scrollElement.scrollToSection(t(this, Jt).current, e);
856
+ this.scrollElement.scrollToSection(t(this, jt).current, e);
856
857
  }
857
858
  connectedCallback() {
858
- super.connectedCallback(), t(this, Jt).observe();
859
+ super.connectedCallback(), t(this, jt).observe();
859
860
  }
860
861
  disconnectedCallback() {
861
- super.disconnectedCallback(), t(this, Jt).close();
862
+ super.disconnectedCallback(), t(this, jt).close();
862
863
  }
863
864
  }
864
- Jt = new WeakMap();
865
+ jt = new WeakMap();
865
866
  H && !customElements.get("e-scroll-set-button") && customElements.define("e-scroll-set-button", hs);
866
- var Q, Qt;
867
+ var Q, Jt;
867
868
  class os extends Be {
868
869
  constructor() {
869
870
  super(...arguments);
870
871
  s(this, Q, new f(this, "--step", 1));
871
- s(this, Qt, () => {
872
+ s(this, Jt, () => {
872
873
  this.scrollElement.loopCSSProperty.current ? this.removeAttribute("disabled") : t(this, Q).current > 0 && this.scrollElement.scrollLine === "end" || t(this, Q).current < 0 && this.scrollElement.scrollLine === "start" ? this.setAttribute("disabled", "") : this.removeAttribute("disabled");
873
874
  });
874
875
  }
@@ -877,93 +878,93 @@ class os extends Be {
877
878
  }
878
879
  connectedCallback() {
879
880
  super.connectedCallback(), this.scrollElement && (t(this, Q).subscribe(() => {
880
- t(this, Qt).call(this);
881
+ t(this, Jt).call(this);
881
882
  }), t(this, Q).observe(), this.scrollElement.addEventListener(
882
883
  "scrollLine",
883
- t(this, Qt)
884
- ), t(this, Qt).call(this));
884
+ t(this, Jt)
885
+ ), t(this, Jt).call(this));
885
886
  }
886
887
  disconnectedCallback() {
887
888
  super.disconnectedCallback(), t(this, Q).close(), this.removeAttribute("disabled");
888
889
  }
889
890
  }
890
- Q = new WeakMap(), Qt = new WeakMap();
891
+ Q = new WeakMap(), Jt = new WeakMap();
891
892
  H && !customElements.get("e-scroll-step-button") && customElements.define("e-scroll-step-button", os);
892
- var X, bt, Xt, fe, pe, Yt;
893
+ var X, bt, Qt, fe, pe, Xt;
893
894
  class ls {
894
- constructor(r, e, i) {
895
+ constructor(n, e, i) {
895
896
  s(this, X, null);
896
897
  s(this, bt, null);
897
- s(this, Xt, null);
898
+ s(this, Qt, null);
898
899
  s(this, fe, null);
899
900
  s(this, pe, () => {
900
- t(this, bt).scrollToSection(t(this, Xt), {
901
+ t(this, bt).scrollToSection(t(this, Qt), {
901
902
  behaviour: t(this, fe)
902
903
  });
903
904
  });
904
- s(this, Yt, () => {
905
+ s(this, Xt, () => {
905
906
  t(this, X).classList.toggle(
906
907
  "current",
907
- t(this, bt).counter.current === t(this, Xt)
908
+ t(this, bt).counter.current === t(this, Qt)
908
909
  );
909
910
  });
910
- H && (h(this, X, document.createElement("button")), h(this, bt, r), h(this, fe, i), h(this, Xt, e), t(this, X).addEventListener("click", t(this, pe)), t(this, bt).counter.subscribe(t(this, Yt)), t(this, Yt).call(this));
911
+ H && (h(this, X, document.createElement("button")), h(this, bt, n), h(this, fe, i), h(this, Qt, e), t(this, X).addEventListener("click", t(this, pe)), t(this, bt).counter.subscribe(t(this, Xt)), t(this, Xt).call(this));
911
912
  }
912
913
  get element() {
913
914
  return t(this, X);
914
915
  }
915
916
  destroy() {
916
- t(this, X).removeEventListener("click", t(this, pe)), t(this, bt).counter.unsubscribe(t(this, Yt)), t(this, X).remove();
917
+ t(this, X).removeEventListener("click", t(this, pe)), t(this, bt).counter.unsubscribe(t(this, Xt)), t(this, X).remove();
917
918
  }
918
919
  }
919
- X = new WeakMap(), bt = new WeakMap(), Xt = new WeakMap(), fe = new WeakMap(), pe = new WeakMap(), Yt = new WeakMap();
920
- var mt, At;
920
+ X = new WeakMap(), bt = new WeakMap(), Qt = new WeakMap(), fe = new WeakMap(), pe = new WeakMap(), Xt = new WeakMap();
921
+ var mt, Mt;
921
922
  class cs extends Ie {
922
923
  constructor() {
923
924
  super(...arguments);
924
925
  s(this, mt, []);
925
- s(this, At, es(() => {
926
+ s(this, Mt, es(() => {
926
927
  t(this, mt).forEach((i) => i.destroy()), h(this, mt, []);
927
928
  const e = this.scrollElement.sections.length - Math.max(this.scrollElement.sectionsInViewCSSProperty.current - 1, 0);
928
929
  for (let i = 0; i < e; i++) {
929
- const n = new ls(
930
+ const r = new ls(
930
931
  this.scrollElement,
931
932
  i,
932
933
  this.getAttribute("behaviour") || "smooth"
933
934
  );
934
- this.appendChild(n.element), t(this, mt).push(n);
935
+ this.appendChild(r.element), t(this, mt).push(r);
935
936
  }
936
937
  }, 0));
937
938
  }
938
939
  connectedCallback() {
939
940
  super.connectedCallback(), this.scrollElement.addEventListener(
940
941
  "sectionsChange",
941
- t(this, At)
942
+ t(this, Mt)
942
943
  ), this.scrollElement.sectionsInViewCSSProperty.subscribe(
943
- t(this, At)
944
+ t(this, Mt)
944
945
  );
945
946
  }
946
947
  disconnectedCallback() {
947
948
  this.scrollElement.removeEventListener(
948
949
  "sectionsChange",
949
- t(this, At)
950
+ t(this, Mt)
950
951
  ), this.scrollElement.sectionsInViewCSSProperty.unsubscribe(
951
- t(this, At)
952
+ t(this, Mt)
952
953
  ), t(this, mt).forEach((e) => e.destroy()), h(this, mt, []);
953
954
  }
954
955
  }
955
- mt = new WeakMap(), At = new WeakMap();
956
+ mt = new WeakMap(), Mt = new WeakMap();
956
957
  H && !customElements.get("e-scroll-bullet-buttons") && customElements.define("e-scroll-bullet-buttons", cs);
957
958
  class as extends ss {
958
959
  connectedCallback() {
959
- const r = Oe(this, Vt);
960
- r instanceof Vt ? (this.scrollContainer = r, this.scrollContainer.addEventListener(
960
+ const n = Oe(this, Rt);
961
+ n instanceof Rt ? (this.scrollContainer = n, this.scrollContainer.addEventListener(
961
962
  "scrollSectionsChange",
962
963
  this.findAnotherScrollEntries
963
964
  ), this.scrollContainer.addEventListener("scrollResize", this.resize), this.resize()) : console.error(this, "e-scroll not found");
964
965
  }
965
966
  disconnectedCallback() {
966
- super.disconnectedCallback(), this.scrollContainer instanceof Vt && (this.scrollContainer.removeEventListener(
967
+ super.disconnectedCallback(), this.scrollContainer instanceof Rt && (this.scrollContainer.removeEventListener(
967
968
  "scrollSectionsChange",
968
969
  this.findAnotherScrollEntries
969
970
  ), this.scrollContainer.removeEventListener("scrollResize", this.resize));
@@ -972,7 +973,7 @@ class as extends ss {
972
973
  H && !customElements.get("e-scroll-segment") && customElements.define("e-scroll-segment", as);
973
974
  export {
974
975
  cs as ScrollBulletButtonsElement,
975
- Vt as ScrollElement,
976
+ Rt as ScrollElement,
976
977
  as as ScrollSegmentElement,
977
978
  hs as ScrollSetButtonElement,
978
979
  os as ScrollStepButtonElement,