aptechka 0.4.30 → 0.4.32

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/Damped-BJgyFENo.js +258 -0
  2. package/lib/Damped-CbWlWAbx.cjs +1 -0
  3. package/lib/animation/Animation.d.ts +42 -7
  4. package/lib/animation/AnimationLink.d.ts +13 -0
  5. package/lib/animation/Damped.d.ts +23 -28
  6. package/lib/animation/Tweened.d.ts +7 -19
  7. package/lib/animation/index.cjs +1 -1
  8. package/lib/animation/index.d.ts +2 -1
  9. package/lib/animation/index.js +43 -61
  10. package/lib/canvas/index.cjs +1 -1
  11. package/lib/canvas/index.d.ts +1 -1
  12. package/lib/canvas/index.js +35 -35
  13. package/lib/class-linked-status/index.cjs +1 -1
  14. package/lib/class-linked-status/index.d.ts +3 -1
  15. package/lib/class-linked-status/index.js +36 -37
  16. package/lib/controls/index.cjs +1 -1
  17. package/lib/controls/index.js +64 -64
  18. package/lib/css-property/index.cjs +1 -1
  19. package/lib/css-property/index.d.ts +5 -1
  20. package/lib/css-property/index.js +35 -31
  21. package/lib/en3/index.cjs +7 -7
  22. package/lib/en3/index.d.ts +1 -1
  23. package/lib/en3/index.js +264 -277
  24. package/lib/intersector/index.cjs +1 -1
  25. package/lib/intersector/index.js +8 -8
  26. package/lib/ladder/index.cjs +1 -1
  27. package/lib/ladder/index.d.ts +12 -6
  28. package/lib/ladder/index.js +119 -114
  29. package/lib/order/index.cjs +1 -1
  30. package/lib/order/index.d.ts +4 -3
  31. package/lib/order/index.js +1 -1
  32. package/lib/pointer/index.cjs +1 -1
  33. package/lib/pointer/index.js +2 -2
  34. package/lib/scroll/ScrollElement.d.ts +1 -3
  35. package/lib/scroll/ScrollSegmentElement.d.ts +6 -11
  36. package/lib/scroll/index.cjs +1 -1
  37. package/lib/scroll/index.d.ts +1 -1
  38. package/lib/scroll/index.js +497 -500
  39. package/lib/sequence/index.cjs +1 -1
  40. package/lib/sequence/index.d.ts +4 -2
  41. package/lib/sequence/index.js +129 -114
  42. package/lib/source/SourceElement.d.ts +14 -7
  43. package/lib/source/index.cjs +2 -2
  44. package/lib/source/index.d.ts +2 -2
  45. package/lib/source/index.js +66 -56
  46. package/lib/theme/index.cjs +1 -1
  47. package/lib/theme/index.d.ts +15 -0
  48. package/lib/theme/index.js +9 -6
  49. package/lib/ticker/index.cjs +1 -1
  50. package/lib/ticker/index.d.ts +3 -2
  51. package/lib/ticker/index.js +81 -71
  52. package/lib/video/index.cjs +1 -1
  53. package/lib/video/index.js +10 -10
  54. package/package.json +5 -5
  55. package/lib/Damped-B0G_t-pw.cjs +0 -1
  56. package/lib/Damped-DpaKIZqv.js +0 -150
  57. package/lib/en3/instances/en3LazyLoader.d.ts +0 -8
@@ -1,95 +1,95 @@
1
- var Ss = (e, i, r) => {
1
+ var ps = (e, i, r) => {
2
2
  if (!i.has(e))
3
3
  throw TypeError("Cannot " + r);
4
4
  };
5
- var a = (e, i, r) => (Ss(e, i, "read from private field"), r ? r.call(e) : i.get(e)), z = (e, i, r) => {
5
+ var a = (e, i, r) => (ps(e, i, "read from private field"), r ? r.call(e) : i.get(e)), z = (e, i, r) => {
6
6
  if (i.has(e))
7
7
  throw TypeError("Cannot add the same private member more than once");
8
8
  i instanceof WeakSet ? i.add(e) : i.set(e, r);
9
- }, F = (e, i, r, h) => (Ss(e, i, "write to private field"), h ? h.call(e, r) : i.set(e, r), r);
10
- import { D as Gs } from "../Damped-DpaKIZqv.js";
11
- import { i as is } from "../browser-0zX67oeU.js";
12
- import { a as $e, g as De } from "../layout-HoBT_Da2.js";
13
- import { c as rs, s as Ns, b as Us, a as Ks } from "../math-BOBiC4TN.js";
9
+ }, O = (e, i, r, h) => (ps(e, i, "write to private field"), h ? h.call(e, r) : i.set(e, r), r);
10
+ import { S as gt } from "../Store-Cd-E5W1z.js";
11
+ import { D as Hs } from "../Derived-DH-ouLBq.js";
12
+ import { i as ss } from "../browser-0zX67oeU.js";
13
+ import { a as $e, g as Fe } from "../layout-HoBT_Da2.js";
14
+ import { c as ys, s as Gs } from "../math-BOBiC4TN.js";
14
15
  import "../path-data-polyfill-DgeDWYeI.js";
15
- import { S as wt } from "../Store-Cd-E5W1z.js";
16
- import { D as qs } from "../Derived-DH-ouLBq.js";
17
16
  import "../ticker/index.js";
18
- import { WheelControls as Zs, KeyboardControls as Js, DragControls as Qs, AutoplayControls as Xs } from "../controls/index.js";
19
- import { CustomElement as Ws, define as se } from "../custom-element/index.js";
20
- import { TICK_ORDER as Ys, RESIZE_ORDER as hs } from "../order/index.js";
21
- import { windowResizer as jt } from "../window-resizer/index.js";
22
- import { scrollEntries as Ft } from "../scroll-entries/index.js";
23
- import { e as ns, D as Ge, ay as Fe, p as js } from "../tags-BoPv9fDr.js";
24
- import { c as as } from "../createStylesheet-KMRQhSa-.js";
25
- import { cssUnitParser as vs } from "../css-unit-parser/index.js";
17
+ import { TICK_ORDER as ks, RESIZE_ORDER as is } from "../order/index.js";
18
+ import { D as Ps } from "../Damped-BJgyFENo.js";
19
+ import { WheelControls as qs, KeyboardControls as Ns, DragControls as Us, AutoplayControls as Ks } from "../controls/index.js";
20
+ import { CustomElement as Ws, define as re } from "../custom-element/index.js";
21
+ import { windowResizer as ee } from "../window-resizer/index.js";
22
+ import { scrollEntries as Dt } from "../scroll-entries/index.js";
23
+ import { e as rs, D as Ge, ay as De, p as Zs } from "../tags-BoPv9fDr.js";
24
+ import { c as hs } from "../createStylesheet-KMRQhSa-.js";
25
+ import { cssUnitParser as fs } from "../css-unit-parser/index.js";
26
26
  import { CSSProperty as u } from "../css-property/index.js";
27
- import { d as ti } from "../Viewport-Bx-VImCe.js";
28
- import { s as ei } from "../gestures-D2Fdra_G.js";
29
- import { aptechkaTheme as ms } from "../theme/index.js";
30
- import { elementResizer as gs } from "../element-resizer/index.js";
31
- import { f as si } from "../dom-0S_WDL4g.js";
27
+ import { d as Js } from "../Viewport-Bx-VImCe.js";
28
+ import { s as Qs } from "../gestures-D2Fdra_G.js";
29
+ import { aptechkaTheme as ds } from "../theme/index.js";
30
+ import { elementResizer as Ss } from "../element-resizer/index.js";
31
+ import { f as Xs } from "../dom-0S_WDL4g.js";
32
32
  import { d as Ms } from "../function-C10DGppn.js";
33
- var ii = Object.defineProperty, ri = Object.getOwnPropertyDescriptor, hi = (e, i, r, h) => {
34
- for (var n = h > 1 ? void 0 : h ? ri(i, r) : i, p = e.length - 1, S; p >= 0; p--)
35
- (S = e[p]) && (n = (h ? S(i, r, n) : S(n)) || n);
36
- return h && n && ii(i, r, n), n;
37
- }, os = (e, i, r) => {
33
+ var Ys = Object.defineProperty, js = Object.getOwnPropertyDescriptor, ti = (e, i, r, h) => {
34
+ for (var n = h > 1 ? void 0 : h ? js(i, r) : i, p = e.length - 1, d; p >= 0; p--)
35
+ (d = e[p]) && (n = (h ? d(i, r, n) : d(n)) || n);
36
+ return h && n && Ys(i, r, n), n;
37
+ }, ns = (e, i, r) => {
38
38
  if (!i.has(e))
39
39
  throw TypeError("Cannot " + r);
40
- }, t = (e, i, r) => (os(e, i, "read from private field"), r ? r.call(e) : i.get(e)), l = (e, i, r) => {
40
+ }, t = (e, i, r) => (ns(e, i, "read from private field"), r ? r.call(e) : i.get(e)), l = (e, i, r) => {
41
41
  if (i.has(e))
42
42
  throw TypeError("Cannot add the same private member more than once");
43
43
  i instanceof WeakSet ? i.add(e) : i.set(e, r);
44
- }, b = (e, i, r, h) => (os(e, i, "write to private field"), h ? h.call(e, r) : i.set(e, r), r), _ = (e, i, r) => (os(e, i, "access private method"), r), d, O, st, J, it, bt, _t, K, R, At, Rt, Tt, It, ie, at, Bt, Ct, Ht, Gt, g, Oe, c, ge, we, E, C, I, Q, Vt, ut, $, P, re, yt, te, ee, Jt, fe, zt, Qt, Ae, ls, Re, cs, be, Ne, _e, Ue, et, Be, Ke, Es, he, Ce, ye, qe, de, Te, Ze, xs, w, k, Dt, j, vt;
45
- class ni {
44
+ }, b = (e, i, r, h) => (ns(e, i, "write to private field"), h ? h.call(e, r) : i.set(e, r), r), _ = (e, i, r) => (ns(e, i, "access private method"), r), S, A, et, J, st, wt, bt, U, T, At, Rt, Tt, It, he, nt, Bt, _t, Ht, Gt, g, Oe, c, we, be, M, C, I, Q, Vt, pt, F, k, ne, Ct, se, ie, Xt, de, zt, Yt, Ae, as, Re, os, _e, qe, Ce, Ne, tt, Be, Ue, Es, ae, ye, ke, Ke, Se, Te, Ze, xs, w, y, Ft, Y, St;
45
+ class ei {
46
46
  constructor(i, r) {
47
47
  z(this, w, void 0);
48
- z(this, k, void 0);
49
- z(this, Dt, 0);
50
- z(this, j, 0);
51
- z(this, vt, null);
52
- F(this, w, i), F(this, k, r), Ft.register(a(this, w));
48
+ z(this, y, void 0);
49
+ z(this, Ft, 0);
50
+ z(this, Y, 0);
51
+ z(this, St, null);
52
+ O(this, w, i), O(this, y, r), Dt.register(a(this, w));
53
53
  }
54
54
  get size() {
55
- return a(this, Dt);
55
+ return a(this, Ft);
56
56
  }
57
57
  get position() {
58
- return a(this, j);
58
+ return a(this, Y);
59
59
  }
60
60
  destroy() {
61
- Ft.unregister(a(this, w)), a(this, w).style.transform = "", this.mark(null);
61
+ Dt.unregister(a(this, w)), a(this, w).style.transform = "", this.mark(null);
62
62
  }
63
63
  setSize(i) {
64
- i ? (a(this, w).style.setProperty("--size", i + "px"), a(this, k).axisCSSProperty.current === "x" ? (a(this, w).style.width = i + "px", a(this, w).style.height = "") : (a(this, w).style.height = i + "px", a(this, w).style.width = "")) : (a(this, w).style.width = "", a(this, w).style.height = "", a(this, w).style.removeProperty("--size"));
64
+ i ? (a(this, w).style.setProperty("--size", i + "px"), a(this, y).axisCSSProperty.current === "x" ? (a(this, w).style.width = i + "px", a(this, w).style.height = "") : (a(this, w).style.height = i + "px", a(this, w).style.width = "")) : (a(this, w).style.width = "", a(this, w).style.height = "", a(this, w).style.removeProperty("--size"));
65
65
  }
66
66
  resize() {
67
- F(this, Dt, a(this, k).vertical ? a(this, w).offsetHeight : a(this, w).offsetWidth), F(this, j, a(this, k).vertical ? $e(a(this, w)) : De(a(this, w))), F(this, j, a(this, j) - a(this, k).contentPosition);
67
+ O(this, Ft, a(this, y).vertical ? a(this, w).offsetHeight : a(this, w).offsetWidth), O(this, Y, a(this, y).vertical ? $e(a(this, w)) : Fe(a(this, w))), O(this, Y, a(this, Y) - a(this, y).contentPosition);
68
68
  }
69
69
  transform() {
70
70
  let i = 0;
71
- const r = a(this, k).viewportSize * a(this, k).sectionDistanceScaleCSSProperty.current;
72
- a(this, k).infiniteCSSProperty.current && a(this, k).overscroll && a(this, j) + a(this, Dt) < a(this, k).currentScrollValue && (i = a(this, k).distance * -1 - a(this, k).gap), Ft.update(
71
+ const r = a(this, y).viewportSize * a(this, y).sectionDistanceScaleCSSProperty.current;
72
+ a(this, y).infiniteCSSProperty.current && a(this, y).overscroll && a(this, Y) + a(this, Ft) < a(this, y).currentScrollValue && (i = a(this, y).distance * -1 - a(this, y).gap), Dt.update(
73
73
  a(this, w),
74
- a(this, k).axisCSSProperty.current,
74
+ a(this, y).axisCSSProperty.current,
75
75
  i
76
76
  );
77
- const h = a(this, k).currentScrollValue + i, n = a(this, j) - a(this, k).viewportSize - r, p = a(this, j) + a(this, Dt) + r, S = rs(h, n, p);
78
- a(this, k).vertical ? a(this, w).style.transform = `translate3d(0px, ${S * -1}px, 0px)` : a(this, w).style.transform = `translate3d(${S * -1}px, 0px, 0px)`;
77
+ const h = a(this, y).currentScrollValue + i, n = a(this, Y) - a(this, y).viewportSize - r, p = a(this, Y) + a(this, Ft) + r, d = ys(h, n, p);
78
+ a(this, y).vertical ? a(this, w).style.transform = `translate3d(0px, ${d * -1}px, 0px)` : a(this, w).style.transform = `translate3d(${d * -1}px, 0px, 0px)`;
79
79
  }
80
80
  mark(i) {
81
- a(this, vt) !== i && (a(this, vt) && a(this, w).classList.remove(a(this, vt)), i && a(this, w).classList.add(i), F(this, vt, i), a(this, w).dispatchEvent(
81
+ a(this, St) !== i && (a(this, St) && a(this, w).classList.remove(a(this, St)), i && a(this, w).classList.add(i), O(this, St, i), a(this, w).dispatchEvent(
82
82
  new CustomEvent("sectionsChange", {
83
83
  composed: !0,
84
84
  detail: {
85
- mark: a(this, vt)
85
+ mark: a(this, St)
86
86
  }
87
87
  })
88
88
  ));
89
89
  }
90
90
  }
91
- w = new WeakMap(), k = new WeakMap(), Dt = new WeakMap(), j = new WeakMap(), vt = new WeakMap();
92
- const ai = as({
91
+ w = new WeakMap(), y = new WeakMap(), Ft = new WeakMap(), Y = new WeakMap(), St = new WeakMap();
92
+ const si = hs({
93
93
  ":host": {
94
94
  position: "relative",
95
95
  width: "100%",
@@ -124,37 +124,37 @@ const ai = as({
124
124
  });
125
125
  let Ie = class extends Ws {
126
126
  constructor() {
127
- super(), l(this, Jt), l(this, zt), l(this, Ae), l(this, Re), l(this, be), l(this, _e), l(this, Ke), l(this, ye), l(this, de), l(this, Ze), l(this, d, null), l(this, O, new u(this, "--axis", "y")), l(this, st, new u(this, "--pages", 0, {
127
+ super(), l(this, Xt), l(this, zt), l(this, Ae), l(this, Re), l(this, _e), l(this, Ce), l(this, Ue), l(this, ke), l(this, Se), l(this, Ze), l(this, S, null), l(this, A, new u(this, "--axis", "y")), l(this, et, new u(this, "--pages", 0, {
128
128
  validate: (e) => Math.max(0, e - 1)
129
- })), l(this, J, new u(this, "--split", !1)), l(this, it, new u(this, "--sectional", !1)), l(this, bt, new u(this, "--auto-size", !1)), l(this, _t, new u(
129
+ })), l(this, J, new u(this, "--split", !1)), l(this, st, new u(this, "--sectional", !1)), l(this, wt, new u(this, "--auto-size", !1)), l(this, bt, new u(
130
130
  this,
131
131
  "--wheel-max-delta",
132
132
  !1
133
- )), l(this, K, new u(
133
+ )), l(this, U, new u(
134
134
  this,
135
135
  "--sections-in-view",
136
136
  1
137
- )), l(this, R, new u(this, "--infinite", !1)), l(this, At, new u(this, "--damping", 20)), l(this, Rt, new u(this, "--mass", 0)), l(this, Tt, new u(this, "--stiffness", 0)), l(this, It, new u(this, "--mouse-drag", !1)), l(this, ie, new u(
137
+ )), l(this, T, new u(this, "--infinite", !1)), l(this, At, new u(this, "--damping", 20)), l(this, Rt, new u(this, "--mass", 0)), l(this, Tt, new u(this, "--stiffness", 0)), l(this, It, new u(this, "--mouse-drag", !1)), l(this, he, new u(
138
138
  this,
139
139
  "--section-distance-scale",
140
140
  0.5
141
- )), l(this, at, new u(this, "--autoplay", 0)), l(this, Bt, new u(
141
+ )), l(this, nt, new u(this, "--autoplay", 0)), l(this, Bt, new u(
142
142
  this,
143
143
  "--autoplay-pause-duration",
144
144
  0
145
- )), l(this, Ct, new u(
145
+ )), l(this, _t, new u(
146
146
  this,
147
147
  "--autoplay-user-direction",
148
148
  !1
149
- )), l(this, Ht, new u(this, "--disabled", !1)), l(this, Gt, new u(this, "--hibernated", !1)), l(this, g, null), l(this, Oe, null), l(this, c, []), l(this, ge, 0), l(this, we, 0), l(this, E, 0), l(this, C, 0), l(this, I, 0), l(this, Q, null), l(this, Vt, null), l(this, ut, null), l(this, $, null), l(this, P, new wt(0)), l(this, re, 0), l(this, yt, 0), l(this, te, !0), l(this, ee, !0), l(this, et, () => {
150
- t(this, d).unlistenAnimationFrame();
151
- const e = this.currentScrollValue / t(this, C) || 0, i = t(this, P).current;
152
- if (b(this, ge, this.vertical ? $e(this) : De(this)), b(this, we, this.vertical ? $e(t(this, g)) : De(t(this, g))), b(this, E, this.vertical ? this.offsetHeight : this.offsetWidth), this.vertical ? b(this, I, vs.parse(
149
+ )), l(this, Ht, new u(this, "--disabled", !1)), l(this, Gt, new u(this, "--hibernated", !1)), l(this, g, null), l(this, Oe, null), l(this, c, []), l(this, we, 0), l(this, be, 0), l(this, M, 0), l(this, C, 0), l(this, I, 0), l(this, Q, null), l(this, Vt, null), l(this, pt, null), l(this, F, null), l(this, k, new gt(0)), l(this, ne, 0), l(this, Ct, 0), l(this, se, !0), l(this, ie, !0), l(this, tt, () => {
150
+ t(this, S).unlistenAnimationFrame();
151
+ const e = this.currentScrollValue / t(this, C) || 0, i = t(this, k).current;
152
+ if (b(this, we, this.vertical ? $e(this) : Fe(this)), b(this, be, this.vertical ? $e(t(this, g)) : Fe(t(this, g))), b(this, M, this.vertical ? this.offsetHeight : this.offsetWidth), this.vertical ? b(this, I, fs.parse(
153
153
  getComputedStyle(t(this, g)).rowGap
154
- )) : b(this, I, vs.parse(
154
+ )) : b(this, I, fs.parse(
155
155
  getComputedStyle(t(this, g)).columnGap
156
- )), t(this, bt).current && t(this, c).length) {
157
- const r = t(this, K).current, h = (t(this, E) - t(this, I) * (r - 1)) / r;
156
+ )), t(this, wt).current && t(this, c).length) {
157
+ const r = t(this, U).current, h = (t(this, M) - t(this, I) * (r - 1)) / r;
158
158
  t(this, c).forEach((n) => {
159
159
  n.setSize(h);
160
160
  });
@@ -164,141 +164,148 @@ let Ie = class extends Ws {
164
164
  });
165
165
  if (t(this, c).forEach((r) => {
166
166
  r.resize();
167
- }), t(this, st).current) {
168
- b(this, C, t(this, E) * t(this, st).current);
169
- const r = t(this, C) + t(this, E);
167
+ }), t(this, et).current) {
168
+ b(this, C, t(this, M) * t(this, et).current);
169
+ const r = t(this, C) + t(this, M);
170
170
  this.vertical ? (t(this, g).style.width = r + "px", t(this, g).style.height = "100%") : (t(this, g).style.height = r + "px", t(this, g).style.width = "100%");
171
171
  } else
172
- this.vertical ? (t(this, g).style.width = "100%", t(this, g).style.height = "max-content", b(this, C, t(this, g).offsetHeight - t(this, E))) : (t(this, g).style.width = "max-content", t(this, g).style.height = "100%", b(this, C, t(this, g).offsetWidth - t(this, E)));
173
- if (!t(this, R).current) {
172
+ this.vertical ? (t(this, g).style.width = "100%", t(this, g).style.height = "max-content", b(this, C, t(this, g).offsetHeight - t(this, M))) : (t(this, g).style.width = "max-content", t(this, g).style.height = "100%", b(this, C, t(this, g).offsetWidth - t(this, M)));
173
+ if (!t(this, T).current) {
174
174
  const r = getComputedStyle(this), h = this.vertical ? parseFloat(r.paddingBlockStart) + parseFloat(r.paddingBlockEnd) : parseFloat(r.paddingInlineStart) + parseFloat(r.paddingInlineEnd);
175
- b(this, C, t(this, C) + h), t(this, d).max = t(this, C);
175
+ b(this, C, t(this, C) + h), t(this, S).max = t(this, C);
176
176
  }
177
- if (t(this, R).current && t(this, c).length) {
178
- const r = t(this, c)[t(this, c).length - 1], h = r.position + r.size - t(this, E), n = t(this, C) - h;
179
- b(this, yt, r.position + r.size + n);
177
+ if (t(this, T).current && t(this, c).length) {
178
+ const r = t(this, c)[t(this, c).length - 1], h = r.position + r.size - t(this, M), n = t(this, C) - h;
179
+ b(this, Ct, r.position + r.size + n);
180
180
  } else
181
- b(this, yt, t(this, C));
182
- if (t(this, it).current && t(this, c).length) {
181
+ b(this, Ct, t(this, C));
182
+ if (t(this, st).current && t(this, c).length) {
183
183
  const r = t(this, c)[i];
184
- t(this, d).set(r.position, !0);
184
+ t(this, S).set(r.position, {
185
+ equalize: !0
186
+ });
185
187
  } else
186
- t(this, d).set(e * t(this, C), !0);
188
+ t(this, S).set(e * t(this, C), {
189
+ equalize: !0
190
+ });
187
191
  }), l(this, Be, () => {
188
192
  const e = this.currentScrollValue;
189
- if (b(this, re, Math.max(0, e - t(this, C))), t(this, c).length) {
193
+ if (b(this, ne, Math.max(0, e - t(this, C))), t(this, c).length) {
190
194
  let i = 0;
191
195
  for (let r = 0; r < t(this, c).length; r++) {
192
196
  const h = t(this, c)[r];
193
197
  h.transform(), this.targetScrollValue + h.size / 2 >= h.position && (i = r);
194
198
  }
195
- t(this, P).current = i;
199
+ t(this, k).current = i;
196
200
  } else
197
201
  this.vertical ? t(this, g).style.transform = `translate3d(0px, ${e * -1}px, 0px)` : t(this, g).style.transform = `translate3d(${e * -1}px, 0px, 0px)`;
198
- Ft.update(
202
+ Dt.update(
199
203
  this,
200
- t(this, O).current,
204
+ t(this, A).current,
201
205
  e
202
206
  );
203
- }), l(this, he, (e, i) => {
204
- t(this, $).pauseAndContinue(
207
+ }), l(this, ae, (e, i) => {
208
+ t(this, F).pauseAndContinue(
205
209
  t(this, Bt).current
206
- ), t(this, Ct).current && (t(this, $).direction = Math.sign(i) || 1), t(this, Ce).call(this, e, i);
207
- }), l(this, Ce, (e, i) => {
208
- if (!(e === "drag" && !ti.isMobile && !t(this, It).current))
209
- if (t(this, it).current) {
210
+ ), t(this, _t).current && (t(this, F).direction = Math.sign(i) || 1), t(this, ye).call(this, e, i);
211
+ }), l(this, ye, (e, i) => {
212
+ if (!(e === "drag" && !Js.isMobile && !t(this, It).current))
213
+ if (t(this, st).current) {
210
214
  const r = Math.sign(i);
211
- t(this, c).length ? this.shiftSections(r) : t(this, d).shift(r * t(this, E));
215
+ t(this, c).length ? this.shiftSections(r) : t(this, S).shift(r * t(this, M));
212
216
  } else
213
- t(this, d).shift(i);
214
- }), is && (b(this, d, new Gs(0, {
217
+ t(this, S).shift(i);
218
+ }), ss && (b(this, S, new Ps(0, {
215
219
  damping: 0.01,
216
220
  min: 0,
217
- order: Ys.SCROLL
218
- })), this.openShadow(ai), ns(this, {
221
+ order: ks.SCROLL
222
+ })), this.openShadow(si), rs(this, {
219
223
  tabIndex: 0,
220
224
  children: [
221
225
  Ge({
222
226
  class: "static",
223
- children: [Fe({ name: "static" })]
227
+ children: [De({ name: "static" })]
224
228
  }),
225
229
  Ge({
226
230
  class: "content",
227
- children: [Fe({ ref: (e) => b(this, Oe, e) })],
231
+ children: [De({ ref: (e) => b(this, Oe, e) })],
228
232
  style: {
229
- flexDirection: new qs(
230
- t(this, O),
233
+ flexDirection: new Hs(
234
+ t(this, A),
231
235
  (e) => e === "x" ? "row" : "column"
232
236
  )
233
237
  },
234
238
  ref: (e) => b(this, g, e)
235
239
  })
236
240
  ]
237
- }), b(this, Q, new Zs({ element: t(this, g) })), t(this, Q).changeEvent.subscribe(
238
- t(this, he)
239
- ), b(this, Vt, new Js({
241
+ }), b(this, Q, new qs({ element: t(this, g) })), t(this, Q).changeEvent.subscribe(
242
+ t(this, ae)
243
+ ), b(this, Vt, new Ns({
240
244
  element: t(this, g)
241
245
  })), t(this, Vt).changeEvent.subscribe(
242
- t(this, he)
243
- ), b(this, ut, new Qs({ element: t(this, g) })), t(this, ut).changeEvent.subscribe(t(this, he)), b(this, $, new Xs()), t(this, $).changeEvent.subscribe(t(this, Ce)), t(this, O).subscribe(({ current: e }) => {
244
- t(this, g).style.flexDirection = e === "x" ? "row" : "column", t(this, Q).axis = t(this, _t).current ? "max" : e, t(this, Vt).dimension = e === "x" ? "width" : "height", t(this, ut).axis = e, e === "x" ? this.style.touchAction = "pan-y" : e === "y" && (this.style.touchAction = "pan-x"), this.isConnected && t(this, et).call(this);
245
- }), t(this, _t).subscribe((e) => {
246
- t(this, Q).axis = e.current ? "max" : t(this, O).current;
247
- }), t(this, st).subscribe(() => {
248
- this.isConnected && t(this, et).call(this);
249
- }), t(this, J).subscribe(({ current: e }) => {
250
- this.isConnected && (e ? _(this, Jt, fe).call(this) : _(this, zt, Qt).call(this));
251
- }), t(this, it).subscribe((e) => {
252
- t(this, Q).debounce = e.current, t(this, ut).swipe = e.current, t(this, $).interval = e.current, this.isConnected && (e.current && !e.previous && !t(this, c).length ? _(this, Jt, fe).call(this) : !e.current && e.previous && t(this, c).length && _(this, zt, Qt).call(this));
246
+ t(this, ae)
247
+ ), b(this, pt, new Us({ element: t(this, g) })), t(this, pt).changeEvent.subscribe(t(this, ae)), b(this, F, new Ks()), t(this, F).changeEvent.subscribe(t(this, ye)), t(this, A).subscribe(({ current: e }) => {
248
+ t(this, g).style.flexDirection = e === "x" ? "row" : "column", t(this, Q).axis = t(this, bt).current ? "max" : e, t(this, Vt).dimension = e === "x" ? "width" : "height", t(this, pt).axis = e, e === "x" ? this.style.touchAction = "pan-y" : e === "y" && (this.style.touchAction = "pan-x"), this.isConnected && t(this, tt).call(this);
253
249
  }), t(this, bt).subscribe((e) => {
254
- this.isConnected && (t(this, et).call(this), e.current && !e.previous && !t(this, c).length ? _(this, Jt, fe).call(this) : !e.current && e.previous && t(this, c).length && _(this, zt, Qt).call(this));
255
- }), t(this, K).subscribe((e) => {
256
- this.isConnected && (t(this, et).call(this), _(this, de, Te).call(this));
257
- }), t(this, R).subscribe((e) => {
258
- e.current ? (this.isConnected && (t(this, c).length || (t(this, J).current = !0)), t(this, c).length && (t(this, d).max = 1 / 0, t(this, d).min = -1 / 0)) : (b(this, re, 0), t(this, d).max = t(this, C), t(this, d).min = 0);
250
+ t(this, Q).axis = e.current ? "max" : t(this, A).current;
251
+ }), t(this, et).subscribe(() => {
252
+ this.isConnected && t(this, tt).call(this);
253
+ }), t(this, J).subscribe(({ current: e }) => {
254
+ this.isConnected && (e ? _(this, Xt, de).call(this) : _(this, zt, Yt).call(this));
255
+ }), t(this, st).subscribe((e) => {
256
+ t(this, Q).debounce = e.current, t(this, pt).swipe = e.current, t(this, F).interval = e.current, this.isConnected && (e.current && !e.previous && !t(this, c).length ? _(this, Xt, de).call(this) : !e.current && e.previous && t(this, c).length && _(this, zt, Yt).call(this));
257
+ }), t(this, wt).subscribe((e) => {
258
+ this.isConnected && (t(this, tt).call(this), e.current && !e.previous && !t(this, c).length ? _(this, Xt, de).call(this) : !e.current && e.previous && t(this, c).length && _(this, zt, Yt).call(this));
259
+ }), t(this, U).subscribe((e) => {
260
+ this.isConnected && (t(this, tt).call(this), _(this, Se, Te).call(this));
261
+ }), t(this, T).subscribe((e) => {
262
+ e.current ? (this.isConnected && (t(this, c).length || (t(this, J).current = !0)), t(this, c).length && (t(this, S).max = 1 / 0, t(this, S).min = -1 / 0)) : (b(this, ne, 0), t(this, S).max = t(this, C), t(this, S).min = 0);
259
263
  }), t(this, At).subscribe((e) => {
260
- t(this, d).damping = e.current;
264
+ t(this, S).damping = e.current;
261
265
  }), t(this, Rt).subscribe((e) => {
262
- t(this, d).mass = e.current;
266
+ t(this, S).mass = e.current;
263
267
  }), t(this, Tt).subscribe((e) => {
264
- t(this, d).stiffness = e.current;
268
+ t(this, S).stiffness = e.current;
265
269
  }), t(this, Ht).subscribe((e) => {
266
- e.current && !e.previous ? _(this, Ae, ls).call(this) : !e.current && e.previous && _(this, Re, cs).call(this);
270
+ e.current && !e.previous ? _(this, Ae, as).call(this) : !e.current && e.previous && _(this, Re, os).call(this);
267
271
  }), t(this, Gt).subscribe((e) => {
268
- e.current && !e.previous ? _(this, be, Ne).call(this) : !e.current && e.previous && _(this, _e, Ue).call(this);
269
- }), t(this, at).subscribe((e) => {
270
- t(this, $).speed = e.current, e.current && !e.previous ? t(this, $).connect() : !e.current && e.previous && t(this, $).disconnect();
271
- }), t(this, Ct).subscribe((e) => {
272
- e.current || (t(this, $).direction = 1);
273
- }), t(this, d).isRunning.subscribe((e) => {
272
+ e.current && !e.previous ? _(this, _e, qe).call(this) : !e.current && e.previous && _(this, Ce, Ne).call(this);
273
+ }), t(this, nt).subscribe((e) => {
274
+ t(this, F).speed = e.current, e.current && !e.previous ? t(this, F).connect() : !e.current && e.previous && t(this, F).disconnect();
275
+ }), t(this, _t).subscribe((e) => {
276
+ e.current || (t(this, F).direction = 1);
277
+ }), t(this, S).isRunning.subscribe((e) => {
274
278
  this.classList.toggle("active", e.current);
275
- }), t(this, P).subscribe((e) => {
276
- t(this, c).length && _(this, de, Te).call(this);
279
+ }), t(this, k).subscribe((e) => {
280
+ t(this, c).length && _(this, Se, Te).call(this);
277
281
  }));
278
282
  }
283
+ get damped() {
284
+ return t(this, S);
285
+ }
279
286
  get axisCSSProperty() {
280
- return t(this, O);
287
+ return t(this, A);
281
288
  }
282
289
  get pagesCSSProperty() {
283
- return t(this, st);
290
+ return t(this, et);
284
291
  }
285
292
  get splitCSSProperty() {
286
293
  return t(this, J);
287
294
  }
288
295
  get sectionalCSSProperty() {
289
- return t(this, it);
296
+ return t(this, st);
290
297
  }
291
298
  get autoSizeCSSProperty() {
292
- return t(this, bt);
299
+ return t(this, wt);
293
300
  }
294
301
  get wheelMaxDeltaCSSProperty() {
295
- return t(this, _t);
302
+ return t(this, bt);
296
303
  }
297
304
  get sectionsInViewCSSProperty() {
298
- return t(this, K);
305
+ return t(this, U);
299
306
  }
300
307
  get infiniteCSSProperty() {
301
- return t(this, R);
308
+ return t(this, T);
302
309
  }
303
310
  get dampingCSSProperty() {
304
311
  return t(this, At);
@@ -313,16 +320,16 @@ let Ie = class extends Ws {
313
320
  return t(this, It);
314
321
  }
315
322
  get sectionDistanceScaleCSSProperty() {
316
- return t(this, ie);
323
+ return t(this, he);
317
324
  }
318
325
  get autoplayCSSProperty() {
319
- return t(this, at);
326
+ return t(this, nt);
320
327
  }
321
328
  get autoplayPauseDurationCSSProperty() {
322
329
  return t(this, Bt);
323
330
  }
324
331
  get autoplayUserDirectionCSSProperty() {
325
- return t(this, Ct);
332
+ return t(this, _t);
326
333
  }
327
334
  get disabledCSSProperty() {
328
335
  return t(this, Ht);
@@ -331,10 +338,10 @@ let Ie = class extends Ws {
331
338
  return t(this, Gt);
332
339
  }
333
340
  get currentScrollValue() {
334
- return _(this, ye, qe).call(this, "current");
341
+ return _(this, ke, Ke).call(this, "current");
335
342
  }
336
343
  get targetScrollValue() {
337
- return _(this, ye, qe).call(this, "target");
344
+ return _(this, ke, Ke).call(this, "target");
338
345
  }
339
346
  get contentElement() {
340
347
  return t(this, g);
@@ -343,13 +350,13 @@ let Ie = class extends Ws {
343
350
  return t(this, c);
344
351
  }
345
352
  get position() {
346
- return t(this, ge);
353
+ return t(this, we);
347
354
  }
348
355
  get contentPosition() {
349
- return t(this, we);
356
+ return t(this, be);
350
357
  }
351
358
  get viewportSize() {
352
- return t(this, E);
359
+ return t(this, M);
353
360
  }
354
361
  get scrollSize() {
355
362
  return t(this, C);
@@ -358,22 +365,22 @@ let Ie = class extends Ws {
358
365
  return t(this, I);
359
366
  }
360
367
  get counter() {
361
- return t(this, P);
368
+ return t(this, k);
362
369
  }
363
370
  get limit() {
364
- return t(this, c).length - t(this, K).current;
371
+ return t(this, c).length - t(this, U).current;
365
372
  }
366
373
  get distance() {
367
- return t(this, yt);
374
+ return t(this, Ct);
368
375
  }
369
376
  get infiniteDistance() {
370
- return t(this, R).current ? t(this, yt) + t(this, I) : t(this, yt);
377
+ return t(this, T).current ? t(this, Ct) + t(this, I) : t(this, Ct);
371
378
  }
372
379
  get overscroll() {
373
- return t(this, re);
380
+ return t(this, ne);
374
381
  }
375
382
  get vertical() {
376
- return t(this, O).current === "y";
383
+ return t(this, A).current === "y";
377
384
  }
378
385
  get currentProgress() {
379
386
  return this.currentScrollValue / this.infiniteDistance || 0;
@@ -381,26 +388,17 @@ let Ie = class extends Ws {
381
388
  get targetProgress() {
382
389
  return this.targetScrollValue / this.infiniteDistance || 0;
383
390
  }
384
- get speed() {
385
- return t(this, d).speed;
386
- }
387
- get direction() {
388
- return t(this, d).direction;
389
- }
390
- get isRunning() {
391
- return t(this, d).isRunning;
392
- }
393
391
  get scrollWidth() {
394
- return t(this, O).current === "y" ? 0 : t(this, d).length;
392
+ return t(this, A).current === "y" ? 0 : t(this, S).distance;
395
393
  }
396
394
  get scrollHeight() {
397
- return t(this, O).current === "x" ? 0 : t(this, d).length;
395
+ return t(this, A).current === "x" ? 0 : t(this, S).distance;
398
396
  }
399
397
  onScroll(...e) {
400
- return t(this, d).subscribe(...e);
398
+ return t(this, S).subscribe(...e);
401
399
  }
402
400
  offScroll(...e) {
403
- t(this, d).unsubscribe(...e);
401
+ t(this, S).unsubscribe(...e);
404
402
  }
405
403
  //https://github.com/pmndrs/drei/blob/d3282cdd02d170ef603a5e096505d83dc93cd57a/src/web/ScrollControls.tsx#L85C7-L100C9
406
404
  range(e, i, r = 0) {
@@ -417,126 +415,127 @@ let Ie = class extends Ws {
417
415
  scrollToSection(e, i = "smooth") {
418
416
  if (!t(this, c).length)
419
417
  return;
420
- const r = t(this, P).current;
421
- _(this, Ke, Es).call(this, e);
422
- const h = t(this, c)[r], n = t(this, c)[t(this, P).current];
418
+ const r = t(this, k).current;
419
+ _(this, Ue, Es).call(this, e);
420
+ const h = t(this, c)[r], n = t(this, c)[t(this, k).current];
423
421
  if (h && n) {
424
422
  let p = 0;
425
- const S = _(this, Ze, xs).call(this), Hs = S ? this.targetScrollValue - S.position : 0;
426
- t(this, R).current ? t(this, P).current === 0 && r === t(this, c).length - 1 ? p = t(this, C) + t(this, E) - h.position + t(this, I) : t(this, P).current === t(this, c).length - 1 && r === 0 ? p = n.position - (t(this, C) + t(this, E) + t(this, I)) : p = n.position - h.position : p = n.position - h.position, t(this, d).shift(
427
- p - Hs,
428
- i === "instant"
429
- );
423
+ const d = _(this, Ze, xs).call(this), Bs = d ? this.targetScrollValue - d.position : 0;
424
+ t(this, T).current ? t(this, k).current === 0 && r === t(this, c).length - 1 ? p = t(this, C) + t(this, M) - h.position + t(this, I) : t(this, k).current === t(this, c).length - 1 && r === 0 ? p = n.position - (t(this, C) + t(this, M) + t(this, I)) : p = n.position - h.position : p = n.position - h.position, t(this, S).shift(p - Bs, {
425
+ equalize: i === "instant"
426
+ });
430
427
  }
431
428
  }
432
429
  shiftSections(e, i = "smooth") {
433
- t(this, c).length && this.scrollToSection(t(this, P).current + e, i);
430
+ t(this, c).length && this.scrollToSection(t(this, k).current + e, i);
434
431
  }
435
432
  setPosition(e, i = "smooth") {
436
- t(this, d).set(e, i === "instant");
433
+ t(this, S).set(e, {
434
+ equalize: i === "instant"
435
+ });
437
436
  }
438
437
  connectedCallback() {
439
- t(this, O).observe(), t(this, st).observe(), t(this, J).observe(), t(this, it).observe(), t(this, bt).observe(), t(this, _t).observe(), t(this, K).observe(), t(this, R).observe(), t(this, At).observe(), t(this, Rt).observe(), t(this, Tt).observe(), t(this, It).observe(), t(this, ie).observe(), t(this, at).observe(), t(this, at).observe(), t(this, Bt).observe(), t(this, Ct).observe(), t(this, Ht).observe(), t(this, Gt).observe(), _(this, _e, Ue).call(this);
438
+ t(this, A).observe(), t(this, et).observe(), t(this, J).observe(), t(this, st).observe(), t(this, wt).observe(), t(this, bt).observe(), t(this, U).observe(), t(this, T).observe(), t(this, At).observe(), t(this, Rt).observe(), t(this, Tt).observe(), t(this, It).observe(), t(this, he).observe(), t(this, nt).observe(), t(this, nt).observe(), t(this, Bt).observe(), t(this, _t).observe(), t(this, Ht).observe(), t(this, Gt).observe(), _(this, Ce, Ne).call(this);
440
439
  }
441
440
  disconnectedCallback() {
442
- t(this, O).unobserve(), t(this, st).unobserve(), t(this, J).unobserve(), t(this, it).unobserve(), t(this, bt).unobserve(), t(this, _t).unobserve(), t(this, K).unobserve(), t(this, R).unobserve(), t(this, At).unobserve(), t(this, Rt).unobserve(), t(this, Tt).unobserve(), t(this, It).unobserve(), t(this, ie).unobserve(), t(this, at).unobserve(), t(this, Bt).unobserve(), t(this, Ct).unobserve(), t(this, Ht).unobserve(), t(this, Gt).unobserve(), _(this, be, Ne).call(this);
441
+ t(this, A).unobserve(), t(this, et).unobserve(), t(this, J).unobserve(), t(this, st).unobserve(), t(this, wt).unobserve(), t(this, bt).unobserve(), t(this, U).unobserve(), t(this, T).unobserve(), t(this, At).unobserve(), t(this, Rt).unobserve(), t(this, Tt).unobserve(), t(this, It).unobserve(), t(this, he).unobserve(), t(this, nt).unobserve(), t(this, Bt).unobserve(), t(this, _t).unobserve(), t(this, Ht).unobserve(), t(this, Gt).unobserve(), _(this, _e, qe).call(this);
443
442
  }
444
443
  };
445
- d = /* @__PURE__ */ new WeakMap();
446
- O = /* @__PURE__ */ new WeakMap();
447
- st = /* @__PURE__ */ new WeakMap();
444
+ S = /* @__PURE__ */ new WeakMap();
445
+ A = /* @__PURE__ */ new WeakMap();
446
+ et = /* @__PURE__ */ new WeakMap();
448
447
  J = /* @__PURE__ */ new WeakMap();
449
- it = /* @__PURE__ */ new WeakMap();
448
+ st = /* @__PURE__ */ new WeakMap();
449
+ wt = /* @__PURE__ */ new WeakMap();
450
450
  bt = /* @__PURE__ */ new WeakMap();
451
- _t = /* @__PURE__ */ new WeakMap();
452
- K = /* @__PURE__ */ new WeakMap();
453
- R = /* @__PURE__ */ new WeakMap();
451
+ U = /* @__PURE__ */ new WeakMap();
452
+ T = /* @__PURE__ */ new WeakMap();
454
453
  At = /* @__PURE__ */ new WeakMap();
455
454
  Rt = /* @__PURE__ */ new WeakMap();
456
455
  Tt = /* @__PURE__ */ new WeakMap();
457
456
  It = /* @__PURE__ */ new WeakMap();
458
- ie = /* @__PURE__ */ new WeakMap();
459
- at = /* @__PURE__ */ new WeakMap();
457
+ he = /* @__PURE__ */ new WeakMap();
458
+ nt = /* @__PURE__ */ new WeakMap();
460
459
  Bt = /* @__PURE__ */ new WeakMap();
461
- Ct = /* @__PURE__ */ new WeakMap();
460
+ _t = /* @__PURE__ */ new WeakMap();
462
461
  Ht = /* @__PURE__ */ new WeakMap();
463
462
  Gt = /* @__PURE__ */ new WeakMap();
464
463
  g = /* @__PURE__ */ new WeakMap();
465
464
  Oe = /* @__PURE__ */ new WeakMap();
466
465
  c = /* @__PURE__ */ new WeakMap();
467
- ge = /* @__PURE__ */ new WeakMap();
468
466
  we = /* @__PURE__ */ new WeakMap();
469
- E = /* @__PURE__ */ new WeakMap();
467
+ be = /* @__PURE__ */ new WeakMap();
468
+ M = /* @__PURE__ */ new WeakMap();
470
469
  C = /* @__PURE__ */ new WeakMap();
471
470
  I = /* @__PURE__ */ new WeakMap();
472
471
  Q = /* @__PURE__ */ new WeakMap();
473
472
  Vt = /* @__PURE__ */ new WeakMap();
474
- ut = /* @__PURE__ */ new WeakMap();
475
- $ = /* @__PURE__ */ new WeakMap();
476
- P = /* @__PURE__ */ new WeakMap();
477
- re = /* @__PURE__ */ new WeakMap();
478
- yt = /* @__PURE__ */ new WeakMap();
479
- te = /* @__PURE__ */ new WeakMap();
480
- ee = /* @__PURE__ */ new WeakMap();
481
- Jt = /* @__PURE__ */ new WeakSet();
482
- fe = function() {
483
- _(this, zt, Qt).call(this), t(this, Oe).assignedElements().forEach((e) => {
484
- e instanceof HTMLElement && t(this, c).push(new ni(e, this));
473
+ pt = /* @__PURE__ */ new WeakMap();
474
+ F = /* @__PURE__ */ new WeakMap();
475
+ k = /* @__PURE__ */ new WeakMap();
476
+ ne = /* @__PURE__ */ new WeakMap();
477
+ Ct = /* @__PURE__ */ new WeakMap();
478
+ se = /* @__PURE__ */ new WeakMap();
479
+ ie = /* @__PURE__ */ new WeakMap();
480
+ Xt = /* @__PURE__ */ new WeakSet();
481
+ de = function() {
482
+ _(this, zt, Yt).call(this), t(this, Oe).assignedElements().forEach((e) => {
483
+ e instanceof HTMLElement && t(this, c).push(new ei(e, this));
485
484
  }), t(this, g).style.transform = "", this.dispatchEvent(
486
485
  new CustomEvent("sectionsChange", {
487
486
  composed: !0
488
487
  })
489
- ), t(this, et).call(this), _(this, de, Te).call(this);
488
+ ), t(this, tt).call(this), _(this, Se, Te).call(this);
490
489
  };
491
490
  zt = /* @__PURE__ */ new WeakSet();
492
- Qt = function() {
491
+ Yt = function() {
493
492
  t(this, c).forEach((e) => {
494
493
  e.destroy();
495
- }), b(this, c, []), t(this, P).current = 0, t(this, d).reset(), this.dispatchEvent(
494
+ }), b(this, c, []), t(this, k).current = 0, t(this, S).reset(), this.dispatchEvent(
496
495
  new CustomEvent("sectionsChange", {
497
496
  composed: !0
498
497
  })
499
498
  );
500
499
  };
501
500
  Ae = /* @__PURE__ */ new WeakSet();
502
- ls = function() {
503
- t(this, te) || (b(this, te, !0), t(this, d).unsubscribe(t(this, Be)), t(this, d).unlistenAnimationFrame(), t(this, Q).disconnect(), t(this, Vt).disconnect(), t(this, ut).disconnect(), t(this, $).disconnect());
501
+ as = function() {
502
+ t(this, se) || (b(this, se, !0), t(this, S).unsubscribe(t(this, Be)), t(this, S).unlistenAnimationFrame(), t(this, Q).disconnect(), t(this, Vt).disconnect(), t(this, pt).disconnect(), t(this, F).disconnect());
504
503
  };
505
504
  Re = /* @__PURE__ */ new WeakSet();
506
- cs = function() {
507
- t(this, te) && (b(this, te, !1), t(this, d).subscribe(t(this, Be)), t(this, Q).connect(), t(this, Vt).connect(), t(this, ut).connect(), t(this, at).current && t(this, $).connect());
508
- };
509
- be = /* @__PURE__ */ new WeakSet();
510
- Ne = function() {
511
- t(this, ee) || (b(this, ee, !0), jt.unsubscribe(t(this, et)), t(this, d).reset(), _(this, Ae, ls).call(this), t(this, g).style.transform = "", t(this, J).current && _(this, zt, Qt).call(this), Ft.unregister(this));
505
+ os = function() {
506
+ t(this, se) && (b(this, se, !1), t(this, S).subscribe(t(this, Be)), t(this, Q).connect(), t(this, Vt).connect(), t(this, pt).connect(), t(this, nt).current && t(this, F).connect());
512
507
  };
513
508
  _e = /* @__PURE__ */ new WeakSet();
514
- Ue = function() {
515
- t(this, ee) && (b(this, ee, !1), t(this, J).current && _(this, Jt, fe).call(this), Ft.register(this), jt.subscribe(t(this, et), hs.SCROLL), _(this, Re, cs).call(this));
509
+ qe = function() {
510
+ t(this, ie) || (b(this, ie, !0), ee.unsubscribe(t(this, tt)), t(this, S).reset(), _(this, Ae, as).call(this), t(this, g).style.transform = "", t(this, J).current && _(this, zt, Yt).call(this), Dt.unregister(this));
516
511
  };
517
- et = /* @__PURE__ */ new WeakMap();
512
+ Ce = /* @__PURE__ */ new WeakSet();
513
+ Ne = function() {
514
+ t(this, ie) && (b(this, ie, !1), t(this, J).current && _(this, Xt, de).call(this), Dt.register(this), ee.subscribe(t(this, tt), is.SCROLL), _(this, Re, os).call(this));
515
+ };
516
+ tt = /* @__PURE__ */ new WeakMap();
518
517
  Be = /* @__PURE__ */ new WeakMap();
519
- Ke = /* @__PURE__ */ new WeakSet();
518
+ Ue = /* @__PURE__ */ new WeakSet();
520
519
  Es = function(e) {
521
- t(this, R).current ? (t(this, P).current = e % t(this, c).length, t(this, P).current = t(this, P).current < 0 ? t(this, c).length + t(this, P).current : t(this, P).current) : t(this, P).current = rs(e, 0, this.limit);
520
+ t(this, T).current ? (t(this, k).current = e % t(this, c).length, t(this, k).current = t(this, k).current < 0 ? t(this, c).length + t(this, k).current : t(this, k).current) : t(this, k).current = ys(e, 0, this.limit);
522
521
  };
523
- he = /* @__PURE__ */ new WeakMap();
524
- Ce = /* @__PURE__ */ new WeakMap();
525
- ye = /* @__PURE__ */ new WeakSet();
526
- qe = function(e = "current") {
527
- if (t(this, R).current && t(this, c).length) {
528
- const i = t(this, d)[e] % (t(this, C) + t(this, E) + t(this, I));
529
- return i < 0 ? t(this, C) + i + t(this, E) + t(this, I) : i;
522
+ ae = /* @__PURE__ */ new WeakMap();
523
+ ye = /* @__PURE__ */ new WeakMap();
524
+ ke = /* @__PURE__ */ new WeakSet();
525
+ Ke = function(e = "current") {
526
+ if (t(this, T).current && t(this, c).length) {
527
+ const i = t(this, S)[e] % (t(this, C) + t(this, M) + t(this, I));
528
+ return i < 0 ? t(this, C) + i + t(this, M) + t(this, I) : i;
530
529
  } else
531
- return t(this, d)[e];
530
+ return t(this, S)[e];
532
531
  };
533
- de = /* @__PURE__ */ new WeakSet();
532
+ Se = /* @__PURE__ */ new WeakSet();
534
533
  Te = function() {
535
534
  if (t(this, c).length) {
536
- const e = t(this, P).current;
535
+ const e = t(this, k).current;
537
536
  e === 0 ? this.classList.add("start") : this.classList.remove("start"), e === this.limit ? this.classList.add("end") : this.classList.remove("end"), t(this, c).forEach((i, r) => {
538
- const h = e - this.limit - 1, n = e + t(this, K).current, p = this.sections.length - n;
539
- r >= e && r < n || r <= h ? i.mark("current") : r >= n && r < n + p / 2 || r <= h + t(this, K).current ? i.mark("next") : i.mark("previous");
537
+ const h = e - this.limit - 1, n = e + t(this, U).current, p = this.sections.length - n;
538
+ r >= e && r < n || r <= h ? i.mark("current") : r >= n && r < n + p / 2 || r <= h + t(this, U).current ? i.mark("next") : i.mark("previous");
540
539
  });
541
540
  }
542
541
  };
@@ -549,41 +548,41 @@ xs = function() {
549
548
  }
550
549
  return e !== null ? t(this, c)[e] : null;
551
550
  };
552
- Ie = hi([
553
- se("e-scroll")
551
+ Ie = ti([
552
+ re("e-scroll")
554
553
  ], Ie);
555
- var Se;
554
+ var ve;
556
555
  class He extends Ws {
557
556
  constructor() {
558
557
  super(...arguments);
559
- z(this, Se, null);
558
+ z(this, ve, null);
560
559
  }
561
560
  get scrollElement() {
562
- return a(this, Se);
561
+ return a(this, ve);
563
562
  }
564
563
  connectedCallback() {
565
- const r = si(this, Ie);
566
- r instanceof Ie ? F(this, Se, r) : console.error(this, "e-scroll not found");
564
+ const r = Xs(this, Ie);
565
+ r instanceof Ie ? O(this, ve, r) : console.error(this, "e-scroll not found");
567
566
  }
568
567
  }
569
- Se = new WeakMap();
570
- var oi = Object.defineProperty, li = Object.getOwnPropertyDescriptor, ci = (e, i, r, h) => {
571
- for (var n = h > 1 ? void 0 : h ? li(i, r) : i, p = e.length - 1, S; p >= 0; p--)
572
- (S = e[p]) && (n = (h ? S(i, r, n) : S(n)) || n);
573
- return h && n && oi(i, r, n), n;
568
+ ve = new WeakMap();
569
+ var ii = Object.defineProperty, ri = Object.getOwnPropertyDescriptor, hi = (e, i, r, h) => {
570
+ for (var n = h > 1 ? void 0 : h ? ri(i, r) : i, p = e.length - 1, d; p >= 0; p--)
571
+ (d = e[p]) && (n = (h ? d(i, r, n) : d(n)) || n);
572
+ return h && n && ii(i, r, n), n;
574
573
  }, Ls = (e, i, r) => {
575
574
  if (!i.has(e))
576
575
  throw TypeError("Cannot " + r);
577
- }, f = (e, i, r) => (Ls(e, i, "read from private field"), r ? r.call(e) : i.get(e)), U = (e, i, r) => {
576
+ }, f = (e, i, r) => (Ls(e, i, "read from private field"), r ? r.call(e) : i.get(e)), q = (e, i, r) => {
578
577
  if (i.has(e))
579
578
  throw TypeError("Cannot add the same private member more than once");
580
579
  i instanceof WeakSet ? i.add(e) : i.set(e, r);
581
- }, gt = (e, i, r, h) => (Ls(e, i, "write to private field"), h ? h.call(e, r) : i.set(e, r), r), ne, A, rt, ht, ae, oe, Nt, ke, Pe, We;
582
- const ui = as({
580
+ }, mt = (e, i, r, h) => (Ls(e, i, "write to private field"), h ? h.call(e, r) : i.set(e, r), r), oe, R, it, rt, le, ce, qt, Pe, We, Me;
581
+ const ni = hs({
583
582
  ":host": {
584
583
  display: "inline-block",
585
584
  zIndex: "1",
586
- backgroundColor: ms.colorLight.var
585
+ backgroundColor: ds.colorLight.var
587
586
  },
588
587
  ':host([axis="y"])': {
589
588
  position: "absolute",
@@ -600,7 +599,7 @@ const ui = as({
600
599
  height: "1vmin"
601
600
  },
602
601
  ".default-thumb": {
603
- backgroundColor: ms.colorDark.var,
602
+ backgroundColor: ds.colorDark.var,
604
603
  borderRadius: "1vmin",
605
604
  touchAction: "none"
606
605
  },
@@ -608,206 +607,209 @@ const ui = as({
608
607
  touchAction: "none"
609
608
  }
610
609
  });
611
- let ws = class extends He {
610
+ let vs = class extends He {
612
611
  constructor() {
613
- super(), U(this, ne, null), U(this, A, null), U(this, rt, !1), U(this, ht, 0), U(this, ae, 0), U(this, oe, 0), U(this, Nt, () => {
614
- gt(this, rt, this.offsetWidth > this.offsetHeight);
615
- const e = f(this, rt) ? this.offsetWidth : this.offsetHeight;
616
- gt(this, ht, e / ((this.scrollElement.scrollSize + this.scrollElement.viewportSize) / e)), gt(this, ht, Math.max(f(this, ht), 30)), f(this, rt) ? (f(this, A).style.width = f(this, ht) + "px", f(this, A).style.height = "100%") : (f(this, A).style.width = "100%", f(this, A).style.height = f(this, ht) + "px"), gt(this, ae, e - f(this, ht)), this.scrollElement.scrollSize || (this.style.display = "none");
617
- }), U(this, ke, () => {
618
- gt(this, oe, this.scrollElement.currentProgress * f(this, ae)), f(this, rt) ? f(this, A).style.transform = `translate3d(${f(this, oe)}px, 0px, 0px)` : f(this, A).style.transform = `translate3d(0px, ${f(this, oe)}px, 0px)`;
619
- }), U(this, Pe, () => {
612
+ super(), q(this, oe, null), q(this, R, null), q(this, it, !1), q(this, rt, 0), q(this, le, 0), q(this, ce, 0), q(this, qt, () => {
613
+ mt(this, it, this.offsetWidth > this.offsetHeight);
614
+ const e = f(this, it) ? this.offsetWidth : this.offsetHeight;
615
+ mt(this, rt, e / ((this.scrollElement.scrollSize + this.scrollElement.viewportSize) / e)), mt(this, rt, Math.max(f(this, rt), 30)), f(this, it) ? (f(this, R).style.width = f(this, rt) + "px", f(this, R).style.height = "100%") : (f(this, R).style.width = "100%", f(this, R).style.height = f(this, rt) + "px"), mt(this, le, e - f(this, rt)), this.scrollElement.scrollSize || (this.style.display = "none");
616
+ }), q(this, Pe, () => {
617
+ mt(this, ce, this.scrollElement.currentProgress * f(this, le)), f(this, it) ? f(this, R).style.transform = `translate3d(${f(this, ce)}px, 0px, 0px)` : f(this, R).style.transform = `translate3d(0px, ${f(this, ce)}px, 0px)`;
618
+ }), q(this, We, () => {
620
619
  this.setAttribute("axis", this.scrollElement.axisCSSProperty.current);
621
- }), U(this, We, (e) => {
622
- document.documentElement.classList.add("grabbing"), ei(
620
+ }), q(this, Me, (e) => {
621
+ document.documentElement.classList.add("grabbing"), Qs(
623
622
  (h) => {
624
- const n = f(this, rt) ? h.x : h.y, p = this.scrollElement.distance / f(this, ae), S = (n - r) * p;
625
- this.scrollElement.setPosition(i + S);
623
+ const n = f(this, it) ? h.x : h.y, p = this.scrollElement.distance / f(this, le), d = (n - r) * p;
624
+ this.scrollElement.setPosition(i + d);
626
625
  },
627
626
  () => {
628
627
  document.documentElement.classList.remove("grabbing");
629
628
  }
630
629
  );
631
- const i = this.scrollElement.targetScrollValue, r = f(this, rt) ? e.x : e.y;
632
- }), is && (this.openShadow(ui), ns(this, {
630
+ const i = this.scrollElement.targetScrollValue, r = f(this, it) ? e.x : e.y;
631
+ }), ss && (this.openShadow(ni), rs(this, {
633
632
  slot: "static",
634
633
  "drag-dead-zone": "",
635
634
  children: [
636
- Fe({
637
- ref: (e) => gt(this, ne, e),
635
+ De({
636
+ ref: (e) => mt(this, oe, e),
638
637
  children: Ge({ class: "default-thumb" })
639
638
  })
640
639
  ]
641
640
  }));
642
641
  }
643
642
  get thumbElement() {
644
- return f(this, A);
643
+ return f(this, R);
645
644
  }
646
645
  connectedCallback() {
647
646
  super.connectedCallback();
648
- const e = f(this, ne).assignedElements()[0] || f(this, ne).firstElementChild;
649
- gt(this, A, e), f(this, A).addEventListener("pointerdown", f(this, We)), jt.subscribe(f(this, Nt), hs.SCROLL + 1), gs.subscribe(this, f(this, Nt)), this.scrollElement.onScroll(f(this, ke)), this.scrollElement.axisCSSProperty.subscribe(f(this, Pe));
647
+ const e = f(this, oe).assignedElements()[0] || f(this, oe).firstElementChild;
648
+ mt(this, R, e), f(this, R).addEventListener("pointerdown", f(this, Me)), ee.subscribe(f(this, qt), is.SCROLL + 1), Ss.subscribe(this, f(this, qt)), this.scrollElement.onScroll(f(this, Pe)), this.scrollElement.axisCSSProperty.subscribe(f(this, We));
650
649
  }
651
650
  disconnectedCallback() {
652
- f(this, A).removeEventListener("pointerdown", f(this, We)), jt.unsubscribe(f(this, Nt)), gs.unsubscribe(f(this, Nt)), this.scrollElement.offScroll(f(this, ke)), this.scrollElement.axisCSSProperty.unsubscribe(f(this, Pe));
651
+ f(this, R).removeEventListener("pointerdown", f(this, Me)), ee.unsubscribe(f(this, qt)), Ss.unsubscribe(f(this, qt)), this.scrollElement.offScroll(f(this, Pe)), this.scrollElement.axisCSSProperty.unsubscribe(f(this, We));
653
652
  }
654
653
  };
655
- ne = /* @__PURE__ */ new WeakMap();
656
- A = /* @__PURE__ */ new WeakMap();
657
- rt = /* @__PURE__ */ new WeakMap();
658
- ht = /* @__PURE__ */ new WeakMap();
659
- ae = /* @__PURE__ */ new WeakMap();
660
654
  oe = /* @__PURE__ */ new WeakMap();
661
- Nt = /* @__PURE__ */ new WeakMap();
662
- ke = /* @__PURE__ */ new WeakMap();
655
+ R = /* @__PURE__ */ new WeakMap();
656
+ it = /* @__PURE__ */ new WeakMap();
657
+ rt = /* @__PURE__ */ new WeakMap();
658
+ le = /* @__PURE__ */ new WeakMap();
659
+ ce = /* @__PURE__ */ new WeakMap();
660
+ qt = /* @__PURE__ */ new WeakMap();
663
661
  Pe = /* @__PURE__ */ new WeakMap();
664
662
  We = /* @__PURE__ */ new WeakMap();
665
- ws = ci([
666
- se("e-scrollbar")
667
- ], ws);
668
- const pi = as({
663
+ Me = /* @__PURE__ */ new WeakMap();
664
+ vs = hi([
665
+ re("e-scrollbar")
666
+ ], vs);
667
+ const ai = hs({
669
668
  button: {
670
669
  all: "inherit"
671
670
  }
672
671
  });
673
672
  class Vs extends He {
674
673
  constructor() {
675
- super(), this.openShadow(pi), is && ns(this, {
674
+ super(), this.openShadow(ai), ss && rs(this, {
676
675
  children: [
677
- js({
676
+ Zs({
678
677
  onClick: () => {
679
678
  this.handleClick();
680
679
  },
681
- children: [Fe()]
680
+ children: [De()]
682
681
  })
683
682
  ]
684
683
  });
685
684
  }
686
685
  }
687
- var fi = Object.defineProperty, di = Object.getOwnPropertyDescriptor, Si = (e, i, r, h) => {
688
- for (var n = h > 1 ? void 0 : h ? di(i, r) : i, p = e.length - 1, S; p >= 0; p--)
689
- (S = e[p]) && (n = (h ? S(i, r, n) : S(n)) || n);
690
- return h && n && fi(i, r, n), n;
686
+ var oi = Object.defineProperty, li = Object.getOwnPropertyDescriptor, ci = (e, i, r, h) => {
687
+ for (var n = h > 1 ? void 0 : h ? li(i, r) : i, p = e.length - 1, d; p >= 0; p--)
688
+ (d = e[p]) && (n = (h ? d(i, r, n) : d(n)) || n);
689
+ return h && n && oi(i, r, n), n;
691
690
  };
692
- let bs = class extends Vs {
691
+ let ms = class extends Vs {
693
692
  handleClick() {
694
693
  const e = this.getAttribute("index"), i = this.getAttribute("behaviour");
695
694
  this.scrollElement.scrollToSection(parseInt(e || "0"), i);
696
695
  }
697
696
  };
698
- bs = Si([
699
- se("e-scroll-set-button")
700
- ], bs);
701
- var vi = Object.defineProperty, mi = Object.getOwnPropertyDescriptor, gi = (e, i, r, h) => {
702
- for (var n = h > 1 ? void 0 : h ? mi(i, r) : i, p = e.length - 1, S; p >= 0; p--)
703
- (S = e[p]) && (n = (h ? S(i, r, n) : S(n)) || n);
704
- return h && n && vi(i, r, n), n;
697
+ ms = ci([
698
+ re("e-scroll-set-button")
699
+ ], ms);
700
+ var ui = Object.defineProperty, pi = Object.getOwnPropertyDescriptor, fi = (e, i, r, h) => {
701
+ for (var n = h > 1 ? void 0 : h ? pi(i, r) : i, p = e.length - 1, d; p >= 0; p--)
702
+ (d = e[p]) && (n = (h ? d(i, r, n) : d(n)) || n);
703
+ return h && n && ui(i, r, n), n;
705
704
  };
706
- let _s = class extends Vs {
705
+ let gs = class extends Vs {
707
706
  handleClick() {
708
707
  const e = this.getAttribute("step"), i = this.getAttribute("behaviour");
709
708
  this.scrollElement.shiftSections(parseInt(e || "1"), i);
710
709
  }
711
710
  };
712
- _s = gi([
713
- se("e-scroll-step-button")
714
- ], _s);
715
- var wi = Object.defineProperty, bi = Object.getOwnPropertyDescriptor, _i = (e, i, r, h) => {
716
- for (var n = h > 1 ? void 0 : h ? bi(i, r) : i, p = e.length - 1, S; p >= 0; p--)
717
- (S = e[p]) && (n = (h ? S(i, r, n) : S(n)) || n);
718
- return h && n && wi(i, r, n), n;
711
+ gs = fi([
712
+ re("e-scroll-step-button")
713
+ ], gs);
714
+ var di = Object.defineProperty, Si = Object.getOwnPropertyDescriptor, vi = (e, i, r, h) => {
715
+ for (var n = h > 1 ? void 0 : h ? Si(i, r) : i, p = e.length - 1, d; p >= 0; p--)
716
+ (d = e[p]) && (n = (h ? d(i, r, n) : d(n)) || n);
717
+ return h && n && di(i, r, n), n;
719
718
  }, zs = (e, i, r) => {
720
719
  if (!i.has(e))
721
720
  throw TypeError("Cannot " + r);
722
- }, Ot = (e, i, r) => (zs(e, i, "read from private field"), r ? r.call(e) : i.get(e)), Cs = (e, i, r) => {
721
+ }, Ot = (e, i, r) => (zs(e, i, "read from private field"), r ? r.call(e) : i.get(e)), ws = (e, i, r) => {
723
722
  if (i.has(e))
724
723
  throw TypeError("Cannot add the same private member more than once");
725
724
  i instanceof WeakSet ? i.add(e) : i.set(e, r);
726
- }, ys = (e, i, r, h) => (zs(e, i, "write to private field"), h ? h.call(e, r) : i.set(e, r), r), kt, le, tt, mt, Xt, ve, me, Yt;
727
- class Ci {
725
+ }, bs = (e, i, r, h) => (zs(e, i, "write to private field"), h ? h.call(e, r) : i.set(e, r), r), yt, ue, j, vt, jt, me, ge, te;
726
+ class mi {
728
727
  constructor(i, r, h) {
729
- z(this, tt, void 0);
730
- z(this, mt, void 0);
731
- z(this, Xt, void 0);
732
- z(this, ve, void 0);
733
- z(this, me, () => {
734
- a(this, mt).scrollToSection(a(this, Xt), a(this, ve));
728
+ z(this, j, void 0);
729
+ z(this, vt, void 0);
730
+ z(this, jt, void 0);
731
+ z(this, me, void 0);
732
+ z(this, ge, () => {
733
+ a(this, vt).scrollToSection(a(this, jt), a(this, me));
735
734
  });
736
- z(this, Yt, () => {
737
- a(this, tt).classList.toggle(
735
+ z(this, te, () => {
736
+ a(this, j).classList.toggle(
738
737
  "current",
739
- a(this, mt).counter.current === a(this, Xt)
738
+ a(this, vt).counter.current === a(this, jt)
740
739
  );
741
740
  });
742
- F(this, tt, document.createElement("button")), F(this, mt, i), F(this, ve, h), F(this, Xt, r), a(this, tt).addEventListener("click", a(this, me)), a(this, mt).counter.subscribe(a(this, Yt)), a(this, Yt).call(this);
741
+ O(this, j, document.createElement("button")), O(this, vt, i), O(this, me, h), O(this, jt, r), a(this, j).addEventListener("click", a(this, ge)), a(this, vt).counter.subscribe(a(this, te)), a(this, te).call(this);
743
742
  }
744
743
  get element() {
745
- return a(this, tt);
744
+ return a(this, j);
746
745
  }
747
746
  destroy() {
748
- a(this, tt).removeEventListener("click", a(this, me)), a(this, mt).counter.unsubscribe(a(this, Yt)), a(this, tt).remove();
747
+ a(this, j).removeEventListener("click", a(this, ge)), a(this, vt).counter.unsubscribe(a(this, te)), a(this, j).remove();
749
748
  }
750
749
  }
751
- tt = new WeakMap(), mt = new WeakMap(), Xt = new WeakMap(), ve = new WeakMap(), me = new WeakMap(), Yt = new WeakMap();
752
- let ks = class extends He {
750
+ j = new WeakMap(), vt = new WeakMap(), jt = new WeakMap(), me = new WeakMap(), ge = new WeakMap(), te = new WeakMap();
751
+ let _s = class extends He {
753
752
  constructor() {
754
- super(...arguments), Cs(this, kt, []), Cs(this, le, Ms(() => {
755
- Ot(this, kt).forEach((e) => e.destroy()), ys(this, kt, []);
753
+ super(...arguments), ws(this, yt, []), ws(this, ue, Ms(() => {
754
+ Ot(this, yt).forEach((e) => e.destroy()), bs(this, yt, []);
756
755
  for (let e = 0; e < this.scrollElement.sections.length; e++) {
757
- const i = new Ci(
756
+ const i = new mi(
758
757
  this.scrollElement,
759
758
  e,
760
759
  this.getAttribute("behaviour") || "smooth"
761
760
  );
762
- this.appendChild(i.element), Ot(this, kt).push(i);
761
+ this.appendChild(i.element), Ot(this, yt).push(i);
763
762
  }
764
763
  }, 0));
765
764
  }
766
765
  connectedCallback() {
767
766
  super.connectedCallback(), this.scrollElement.addEventListener(
768
767
  "sectionsChange",
769
- Ot(this, le)
770
- ), Ot(this, le).call(this);
768
+ Ot(this, ue)
769
+ ), Ot(this, ue).call(this);
771
770
  }
772
771
  disconnectedCallback() {
773
772
  this.scrollElement.removeEventListener(
774
773
  "sectionsChange",
775
- Ot(this, le)
776
- ), Ot(this, kt).forEach((e) => e.destroy()), ys(this, kt, []);
774
+ Ot(this, ue)
775
+ ), Ot(this, yt).forEach((e) => e.destroy()), bs(this, yt, []);
777
776
  }
778
777
  };
779
- kt = /* @__PURE__ */ new WeakMap();
780
- le = /* @__PURE__ */ new WeakMap();
781
- ks = _i([
782
- se("e-scroll-bullet-buttons")
783
- ], ks);
784
- var yi = Object.defineProperty, ki = Object.getOwnPropertyDescriptor, Pi = (e, i, r, h) => {
785
- for (var n = h > 1 ? void 0 : h ? ki(i, r) : i, p = e.length - 1, S; p >= 0; p--)
786
- (S = e[p]) && (n = (h ? S(i, r, n) : S(n)) || n);
787
- return h && n && yi(i, r, n), n;
788
- }, us = (e, i, r) => {
778
+ yt = /* @__PURE__ */ new WeakMap();
779
+ ue = /* @__PURE__ */ new WeakMap();
780
+ _s = vi([
781
+ re("e-scroll-bullet-buttons")
782
+ ], _s);
783
+ var gi = Object.defineProperty, wi = Object.getOwnPropertyDescriptor, bi = (e, i, r, h) => {
784
+ for (var n = h > 1 ? void 0 : h ? wi(i, r) : i, p = e.length - 1, d; p >= 0; p--)
785
+ (d = e[p]) && (n = (h ? d(i, r, n) : d(n)) || n);
786
+ return h && n && gi(i, r, n), n;
787
+ }, ls = (e, i, r) => {
789
788
  if (!i.has(e))
790
789
  throw TypeError("Cannot " + r);
791
- }, s = (e, i, r) => (us(e, i, "read from private field"), r ? r.call(e) : i.get(e)), o = (e, i, r) => {
790
+ }, s = (e, i, r) => (ls(e, i, "read from private field"), r ? r.call(e) : i.get(e)), o = (e, i, r) => {
792
791
  if (i.has(e))
793
792
  throw TypeError("Cannot add the same private member more than once");
794
793
  i instanceof WeakSet ? i.add(e) : i.set(e, r);
795
- }, v = (e, i, r, h) => (us(e, i, "write to private field"), h ? h.call(e, r) : i.set(e, r), r), y = (e, i, r) => (us(e, i, "access private method"), r), Ut, Pt, Wt, Mt, Et, D, H, G, N, Lt, L, pt, ft, ot, lt, ct, Kt, ce, x, Z, q, dt, St, X, Me, m, qt, Zt, Ee, B, Y, V, M, T, ue, $t, W, xe, Je, ps, $s, Qe, Ds, Xe, Fs, Ye, Os, je, As, ts, Rs, es, Ts, Le, pe, nt, xt, fs, Is, ds, Bs, Ve, ss, ze;
796
- let Ps = class extends He {
794
+ }, m = (e, i, r, h) => (ls(e, i, "write to private field"), h ? h.call(e, r) : i.set(e, r), r), W = (e, i, r) => (ls(e, i, "access private method"), r), Nt, Ut, Kt, Zt, kt, Pt, Wt, Mt, D, B, H, G, Lt, x, at, ot, lt, ct, ut, E, Z, K, ft, dt, X, Ee, v, Jt, Qt, xe, L, Et, $, V, N, pe, $t, P, Je, $s, Qe, Fs, Xe, Ds, Ye, Os, je, As, ts, Rs, Le, fe, ht, xt, cs, Ts, us, Is, Ve, es, ze;
795
+ let Cs = class extends He {
797
796
  constructor() {
798
- super(...arguments), o(this, xe), o(this, ps), o(this, Qe), o(this, Xe), o(this, Ye), o(this, je), o(this, ts), o(this, es), o(this, nt), o(this, fs), o(this, ds), o(this, Ve), o(this, Ut, new u(this, "--target", "")), o(this, Pt, new u(this, "--disabled", !1)), o(this, Wt, new u(
797
+ super(), o(this, Je), o(this, Qe), o(this, Xe), o(this, Ye), o(this, je), o(this, ts), o(this, ht), o(this, cs), o(this, us), o(this, Ve), o(this, Nt, new u(this, "--damping", 20)), o(this, Ut, new u(this, "--mass", 0)), o(this, Kt, new u(this, "--stiffness", 0)), o(this, Zt, new u(this, "--target", "")), o(this, kt, new u(this, "--disabled", !1)), o(this, Pt, new u(
799
798
  this,
800
799
  "--distance-offset",
801
- 0
802
- )), o(this, Mt, new u(this, "--start-offset", 0)), o(this, Et, new u(
800
+ 0,
801
+ { rawValueCheck: !1 }
802
+ )), o(this, Wt, new u(this, "--start-offset", 0, {
803
+ rawValueCheck: !1
804
+ })), o(this, Mt, new u(
803
805
  this,
804
806
  "--capture-once",
805
807
  !1
806
- )), o(this, D, new u(this, "--captured", "")), o(this, H, new u(this, "--released", "")), o(this, G, new u(
808
+ )), o(this, D, new u(this, "--captured", "")), o(this, B, new u(this, "--released", "")), o(this, H, new u(
807
809
  this,
808
810
  "--captured-from-start",
809
811
  ""
810
- )), o(this, N, new u(
812
+ )), o(this, G, new u(
811
813
  this,
812
814
  "--captured-from-finish",
813
815
  ""
@@ -815,331 +817,326 @@ let Ps = class extends He {
815
817
  this,
816
818
  "--released-from-start",
817
819
  ""
818
- )), o(this, L, new u(
820
+ )), o(this, x, new u(
819
821
  this,
820
822
  "--released-from-finish",
821
823
  ""
822
- )), o(this, pt, new u(this, "--passed-var", "")), o(this, ft, new u(this, "--progress-var", "")), o(this, ot, new u(this, "--distance-var", "")), o(this, lt, new u(this, "--start-var", "")), o(this, ct, new u(this, "--finish-var", "")), o(this, Kt, new u(this, "--smoothstep", !1)), o(this, ce, new u(
823
- this,
824
- "--smootherstep",
825
- !1
826
- )), o(this, x, new wt(!1)), o(this, Z, new wt(!1)), o(this, q, new wt(!1)), o(this, dt, new wt(!1)), o(this, St, new wt(!1)), o(this, X, new wt(!1)), o(this, Me, []), o(this, m, this), o(this, qt, 0), o(this, Zt, 0), o(this, Ee, 0), o(this, B, 0), o(this, Y, 0), o(this, V, 0), o(this, M, 0), o(this, T, 0), o(this, ue, !1), o(this, $t, !1), o(this, W, !0), o(this, Le, () => {
827
- s(this, W) || (this.resize(), s(this, pe).call(this));
828
- }), o(this, pe, () => {
829
- !s(this, W) && s(this, ue) && this.tick();
824
+ )), o(this, at, new u(this, "--passed-var", "")), o(this, ot, new u(this, "--progress-var", "")), o(this, lt, new u(this, "--distance-var", "")), o(this, ct, new u(this, "--start-var", "")), o(this, ut, new u(this, "--finish-var", "")), o(this, E, new gt(!1)), o(this, Z, new gt(!1)), o(this, K, new gt(!1)), o(this, ft, new gt(!1)), o(this, dt, new gt(!1)), o(this, X, new gt(!1)), o(this, Ee, []), o(this, v, this), o(this, Jt, 0), o(this, Qt, 0), o(this, xe, 0), o(this, L, new Ps(0, { order: ks.SCROLL - 1, min: 0, max: 1 })), o(this, Et, 0), o(this, $, 0), o(this, V, 0), o(this, N, 0), o(this, pe, !1), o(this, $t, !1), o(this, P, !0), o(this, Le, () => {
825
+ s(this, P) || (this.resize(), s(this, fe).call(this));
826
+ }), o(this, fe, () => {
827
+ !s(this, P) && s(this, pe) && this.tick();
830
828
  }), o(this, ze, Ms(() => {
831
- const e = Ft.getAll(this).reverse();
829
+ const e = Dt.getAll(this).reverse();
832
830
  let i = 0;
833
831
  e.forEach((r, h) => {
834
832
  r.element === this.scrollElement && (i = h);
835
- }), v(this, Me, e.slice(i + 1));
833
+ }), m(this, Ee, e.slice(i + 1));
836
834
  }, 0));
837
835
  }
838
836
  get distanceOffsetCSSProperty() {
839
- return s(this, Wt);
837
+ return s(this, Pt);
840
838
  }
841
839
  get startOffsetCSSProperty() {
842
- return s(this, Mt);
840
+ return s(this, Wt);
843
841
  }
844
842
  get captureOnceCSSProperty() {
845
- return s(this, Et);
843
+ return s(this, Mt);
846
844
  }
847
845
  get capturedCSSProperty() {
848
846
  return s(this, D);
849
847
  }
850
848
  get releasedCSSProperty() {
851
- return s(this, H);
849
+ return s(this, B);
852
850
  }
853
851
  get capturedFromStartCSSProperty() {
854
- return s(this, G);
852
+ return s(this, H);
855
853
  }
856
854
  get capturedFromFinishCSSProperty() {
857
- return s(this, N);
855
+ return s(this, G);
858
856
  }
859
857
  get releasedFromStartCSSProperty() {
860
858
  return s(this, Lt);
861
859
  }
862
860
  get releasedFromFinishCSSProperty() {
863
- return s(this, L);
861
+ return s(this, x);
864
862
  }
865
863
  get passedVarCSSProperty() {
866
- return s(this, pt);
864
+ return s(this, at);
867
865
  }
868
866
  get progressVarCSSProperty() {
869
- return s(this, ft);
867
+ return s(this, ot);
870
868
  }
871
869
  get distanceVarCSSProperty() {
872
- return s(this, ot);
870
+ return s(this, lt);
873
871
  }
874
872
  get startVarCSSProperty() {
875
- return s(this, lt);
873
+ return s(this, ct);
876
874
  }
877
875
  get finishVarCSSProperty() {
878
- return s(this, ct);
876
+ return s(this, ut);
879
877
  }
880
- get smoothstepCSSProperty() {
881
- return s(this, Kt);
878
+ get disabledCSSProperty() {
879
+ return s(this, kt);
882
880
  }
883
- get smootherstepCSSProperty() {
884
- return s(this, ce);
881
+ get dampingCSSProperty() {
882
+ return s(this, Nt);
885
883
  }
886
- get disabledCSSProperty() {
887
- return s(this, Pt);
884
+ get massCSSProperty() {
885
+ return s(this, Ut);
886
+ }
887
+ get stiffnessCSSProperty() {
888
+ return s(this, Kt);
888
889
  }
889
890
  get targetCSSProperty() {
890
- return s(this, Ut);
891
+ return s(this, Zt);
891
892
  }
892
893
  get isCaptured() {
893
- return s(this, x);
894
+ return s(this, E);
894
895
  }
895
896
  get isReleased() {
896
897
  return s(this, Z);
897
898
  }
898
899
  get isCapturedFromStart() {
899
- return s(this, q);
900
+ return s(this, K);
900
901
  }
901
902
  get isReleasedFromStart() {
902
- return s(this, dt);
903
+ return s(this, ft);
903
904
  }
904
905
  get isCapturedFromFinish() {
905
- return s(this, St);
906
+ return s(this, dt);
906
907
  }
907
908
  get isReleasedFromFinish() {
908
909
  return s(this, X);
909
910
  }
910
911
  get directionPosition() {
911
- return s(this, qt);
912
+ return s(this, Jt);
912
913
  }
913
914
  get directionSize() {
914
- return s(this, Zt);
915
+ return s(this, Qt);
915
916
  }
916
917
  get passed() {
917
- return s(this, B);
918
+ return s(this, L);
918
919
  }
919
920
  get progress() {
920
- return s(this, Y);
921
+ return s(this, Et);
921
922
  }
922
923
  get start() {
923
- return s(this, V);
924
+ return s(this, $);
924
925
  }
925
926
  get finish() {
926
- return s(this, T);
927
+ return s(this, N);
927
928
  }
928
929
  get distance() {
929
- return s(this, M);
930
+ return s(this, V);
930
931
  }
931
932
  get isCapturedOnce() {
932
933
  return s(this, $t);
933
934
  }
934
935
  get isDisabled() {
935
- return s(this, W);
936
+ return s(this, P);
936
937
  }
937
938
  resize() {
938
- v(this, Zt, this.scrollElement.vertical ? this.offsetHeight : this.offsetWidth), v(this, qt, this.scrollElement.vertical ? $e(this, this.scrollElement) : De(this, this.scrollElement)), v(this, V, this.getStart()), v(this, M, this.getDistance()), v(this, V, s(this, V) + s(this, Mt).current), v(this, M, s(this, M) + s(this, Wt).current), v(this, T, s(this, V) + s(this, M)), this.scrollElement.currentScrollValue > s(this, T) && !s(this, x).current && !s(this, Z).current && (s(this, x).current = !0), this.setVar(s(this, lt).current, s(this, V)), this.setVar(s(this, ct).current, s(this, T)), this.setVar(s(this, ot).current, s(this, M)), v(this, ue, !0);
939
+ m(this, Qt, this.scrollElement.vertical ? this.offsetHeight : this.offsetWidth), m(this, Jt, this.scrollElement.vertical ? $e(this, this.scrollElement) : Fe(this, this.scrollElement)), m(this, $, this.getStart()), m(this, V, this.getDistance()), m(this, $, s(this, $) + s(this, Wt).current), m(this, V, s(this, V) + s(this, Pt).current), m(this, N, s(this, $) + s(this, V)), this.scrollElement.currentScrollValue > s(this, N) && !s(this, E).current && !s(this, Z).current && (s(this, E).current = !0), this.setVar(s(this, ct).current, s(this, $)), this.setVar(s(this, ut).current, s(this, N)), this.setVar(s(this, lt).current, s(this, V)), s(this, L).max = s(this, V), m(this, pe, !0);
939
940
  }
940
941
  tick() {
941
942
  let e = this.scrollElement.currentScrollValue;
942
- s(this, Me).forEach((r) => {
943
+ s(this, Ee).forEach((r) => {
943
944
  e += r.value;
944
- }), v(this, B, this.updateValue(e - s(this, V), 0, s(this, M)) || 0), v(this, Y, s(this, B) / s(this, M) || 0);
945
+ }), s(this, L).set(e - s(this, $));
945
946
  const i = Math.round(e);
946
- s(this, x).current && (i > s(this, V) ? s(this, q).current || y(this, Ye, Os).call(this) : s(this, q).current && !s(this, dt).current && y(this, ts, Rs).call(this), i < s(this, T) ? s(this, X).current && !s(this, St).current && y(this, je, As).call(this) : s(this, q).current && !s(this, X).current && y(this, es, Ts).call(this)), i > s(this, V) && i < s(this, T) ? (y(this, xe, Je).call(this), s(this, x).current || y(this, Qe, Ds).call(this)) : s(this, x).current && (v(this, B, Ns(s(this, M) / 2, s(this, B), 0, s(this, M))), v(this, Y, s(this, B) / s(this, M)), y(this, xe, Je).call(this), y(this, Xe, Fs).call(this)), s(this, $t) && s(this, Et).current && (s(this, D).current && s(this, m).classList.add(s(this, D).current), v(this, W, !0));
947
+ s(this, E).current && (i > s(this, $) ? s(this, K).current || W(this, Xe, Ds).call(this) : s(this, K).current && !s(this, ft).current && W(this, je, As).call(this), i < s(this, N) ? s(this, X).current && !s(this, dt).current && W(this, Ye, Os).call(this) : s(this, K).current && !s(this, X).current && W(this, ts, Rs).call(this)), i > s(this, $) && i < s(this, N) ? s(this, E).current || W(this, Je, $s).call(this) : s(this, E).current && (s(this, L).set(
948
+ Gs(s(this, V) / 2, s(this, L).current, 0, s(this, V))
949
+ ), W(this, Qe, Fs).call(this)), s(this, $t) && s(this, Mt).current && (s(this, D).current && s(this, v).classList.add(s(this, D).current), m(this, P, !0));
947
950
  }
948
951
  disable() {
949
- this.style.cssText = "", v(this, qt, 0), v(this, Zt, 0), v(this, B, 0), v(this, Y, 0), v(this, V, 0), v(this, M, 0), v(this, T, 0), v(this, ue, !1), s(this, x).current = !1, s(this, Z).current = !1, s(this, q).current = !1, s(this, dt).current = !1, s(this, St).current = !1, s(this, X).current = !1, v(this, $t, !1), v(this, W, !0), y(this, Ve, ss).call(this);
952
+ this.style.cssText = "", m(this, Jt, 0), m(this, Qt, 0), s(this, L).reset(), m(this, Et, 0), m(this, $, 0), m(this, V, 0), m(this, N, 0), m(this, pe, !1), s(this, E).current = !1, s(this, Z).current = !1, s(this, K).current = !1, s(this, ft).current = !1, s(this, dt).current = !1, s(this, X).current = !1, m(this, $t, !1), m(this, P, !0), W(this, Ve, es).call(this);
950
953
  }
951
954
  enable() {
952
- v(this, W, !1);
955
+ m(this, P, !1);
953
956
  }
954
957
  connectedCallback() {
955
- super.connectedCallback(), s(this, Ut).observe(), s(this, Pt).observe(), s(this, Wt).observe(), s(this, Mt).observe(), s(this, Et).observe(), s(this, D).observe(), s(this, H).observe(), s(this, G).observe(), s(this, N).observe(), s(this, Lt).observe(), s(this, L).observe(), s(this, pt).observe(), s(this, ft).observe(), s(this, ot).observe(), s(this, lt).observe(), s(this, ct).observe(), s(this, Kt).observe(), s(this, ce).observe();
958
+ super.connectedCallback(), s(this, Nt).observe(), s(this, Ut).observe(), s(this, Kt).observe(), s(this, Zt).observe(), s(this, kt).observe(), s(this, Pt).observe(), s(this, Wt).observe(), s(this, Mt).observe(), s(this, D).observe(), s(this, B).observe(), s(this, H).observe(), s(this, G).observe(), s(this, Lt).observe(), s(this, x).observe(), s(this, at).observe(), s(this, ot).observe(), s(this, lt).observe(), s(this, ct).observe(), s(this, ut).observe();
956
959
  let e = !1;
957
960
  this.scrollElement.addEventListener(
958
961
  "sectionsChange",
959
962
  s(this, ze)
960
- ), s(this, ze).call(this), s(this, Pt).current || this.enable(), s(this, Ut).subscribe((i) => {
961
- i.previous && y(this, Ve, ss).call(this), i.current ? i.current === "parent" ? v(this, m, this.parentElement || this) : v(this, m, document.querySelector(i.current) || this) : v(this, m, this);
962
- }), s(this, Pt).subscribe((i) => {
963
+ ), s(this, ze).call(this), s(this, kt).current || this.enable(), s(this, Nt).subscribe((i) => {
964
+ s(this, L).damping = i.current;
965
+ }), s(this, Ut).subscribe((i) => {
966
+ s(this, L).mass = i.current;
967
+ }), s(this, Kt).subscribe((i) => {
968
+ s(this, L).stiffness = i.current;
969
+ }), s(this, Zt).subscribe((i) => {
970
+ i.previous && W(this, Ve, es).call(this), i.current ? i.current === "parent" ? m(this, v, this.parentElement || this) : m(this, v, document.querySelector(i.current) || this) : m(this, v, this);
971
+ }), s(this, kt).subscribe((i) => {
963
972
  i.current && !i.previous ? this.disable() : !i.current && i.previous && (this.resize(), this.enable());
964
- }), s(this, Mt).subscribe(() => {
965
- e && !s(this, W) && this.resize();
966
973
  }), s(this, Wt).subscribe(() => {
967
- e && !s(this, W) && this.resize();
974
+ e && !s(this, P) && this.resize();
975
+ }), s(this, Pt).subscribe(() => {
976
+ e && !s(this, P) && this.resize();
968
977
  }), s(this, D).subscribe((i) => {
969
- y(this, nt, xt).call(this, i);
970
- }), s(this, G).subscribe((i) => {
971
- y(this, nt, xt).call(this, i);
972
- }), s(this, N).subscribe((i) => {
973
- y(this, nt, xt).call(this, i);
978
+ W(this, ht, xt).call(this, i);
974
979
  }), s(this, H).subscribe((i) => {
975
- y(this, nt, xt).call(this, i);
980
+ W(this, ht, xt).call(this, i);
981
+ }), s(this, G).subscribe((i) => {
982
+ W(this, ht, xt).call(this, i);
983
+ }), s(this, B).subscribe((i) => {
984
+ W(this, ht, xt).call(this, i);
976
985
  }), s(this, Lt).subscribe((i) => {
977
- y(this, nt, xt).call(this, i);
978
- }), s(this, L).subscribe((i) => {
979
- y(this, nt, xt).call(this, i);
980
- }), s(this, Et).subscribe((i) => {
981
- s(this, W) || !i.current && i.previous && (this.resize(), this.enable());
982
- }), s(this, pt).subscribe((i) => {
983
- s(this, W) || (this.removeVar(i.previous), this.setVar(i.current, this.passed));
984
- }), s(this, ft).subscribe((i) => {
985
- s(this, W) || (this.removeVar(i.previous), this.setVar(i.current, s(this, Y)));
986
- }), s(this, lt).subscribe((i) => {
987
- s(this, W) || (this.removeVar(i.previous), this.setVar(i.current, s(this, V)));
988
- }), s(this, ct).subscribe((i) => {
989
- s(this, W) || (this.removeVar(i.previous), this.setVar(i.current, s(this, T)));
986
+ W(this, ht, xt).call(this, i);
987
+ }), s(this, x).subscribe((i) => {
988
+ W(this, ht, xt).call(this, i);
989
+ }), s(this, Mt).subscribe((i) => {
990
+ s(this, P) || !i.current && i.previous && (this.resize(), this.enable());
991
+ }), s(this, at).subscribe((i) => {
992
+ s(this, P) || (this.removeVar(i.previous), this.setVar(i.current, this.passed.current));
990
993
  }), s(this, ot).subscribe((i) => {
991
- s(this, W) || (this.removeVar(i.previous), this.setVar(i.current, s(this, M)));
992
- }), jt.subscribe(s(this, Le), hs.SEGMENT), this.scrollElement.onScroll(s(this, pe)), e = !0;
994
+ s(this, P) || (this.removeVar(i.previous), this.setVar(i.current, s(this, Et)));
995
+ }), s(this, ct).subscribe((i) => {
996
+ s(this, P) || (this.removeVar(i.previous), this.setVar(i.current, s(this, $)));
997
+ }), s(this, ut).subscribe((i) => {
998
+ s(this, P) || (this.removeVar(i.previous), this.setVar(i.current, s(this, N)));
999
+ }), s(this, lt).subscribe((i) => {
1000
+ s(this, P) || (this.removeVar(i.previous), this.setVar(i.current, s(this, V)));
1001
+ }), s(this, L).subscribe((i) => {
1002
+ m(this, Et, s(this, L).current / s(this, V) || 0), this.setVar(
1003
+ s(this, at).current,
1004
+ s(this, L).current.toFixed(6)
1005
+ ), this.setVar(
1006
+ s(this, ot).current,
1007
+ s(this, Et).toFixed(6)
1008
+ );
1009
+ }), ee.subscribe(s(this, Le), is.SEGMENT), this.scrollElement.onScroll(s(this, fe)), e = !0;
993
1010
  }
994
1011
  disconnectedCallback() {
995
- jt.unsubscribe(s(this, Le)), this.scrollElement.offScroll(s(this, pe)), s(this, Ut).close(), s(this, Pt).close(), s(this, Wt).close(), s(this, Mt).close(), s(this, Et).close(), s(this, D).close(), s(this, H).close(), s(this, G).close(), s(this, N).close(), s(this, Lt).close(), s(this, L).close(), s(this, pt).close(), s(this, ft).close(), s(this, ot).close(), s(this, lt).close(), s(this, ct).close(), s(this, Kt).close(), s(this, ce).close(), s(this, x).close(), s(this, Z).close(), s(this, q).close(), s(this, dt).close(), s(this, St).close(), s(this, X).close(), this.disable();
1012
+ ee.unsubscribe(s(this, Le)), this.scrollElement.offScroll(s(this, fe)), s(this, Nt).close(), s(this, Ut).close(), s(this, Kt).close(), s(this, Zt).close(), s(this, kt).close(), s(this, Pt).close(), s(this, Wt).close(), s(this, Mt).close(), s(this, D).close(), s(this, B).close(), s(this, H).close(), s(this, G).close(), s(this, Lt).close(), s(this, x).close(), s(this, at).close(), s(this, ot).close(), s(this, lt).close(), s(this, ct).close(), s(this, ut).close(), s(this, E).close(), s(this, Z).close(), s(this, K).close(), s(this, ft).close(), s(this, dt).close(), s(this, X).close(), this.disable();
996
1013
  }
997
1014
  removeVar(e) {
998
- e && s(this, m).style.removeProperty(`--${e}`);
1015
+ e && s(this, v).style.removeProperty(`--${e}`);
999
1016
  }
1000
1017
  setVar(e, i) {
1001
- e && s(this, m).style.setProperty(`--${e}`, i.toString());
1002
- }
1003
- updateValue(e, i = 0, r = 1) {
1004
- return this.smootherstepCSSProperty.current ? Us(e, i, r) * r : s(this, Kt).current ? Ks(e, i, r) * r : rs(e, i, r);
1018
+ e && s(this, v).style.setProperty(`--${e}`, i.toString());
1005
1019
  }
1006
1020
  getDistance() {
1007
- return s(this, Zt) + s(this, Ee);
1021
+ return s(this, Qt) + s(this, xe);
1008
1022
  }
1009
1023
  getStart() {
1010
- return s(this, qt) - s(this, Ee);
1024
+ return s(this, Jt) - s(this, xe);
1011
1025
  }
1012
1026
  };
1027
+ Nt = /* @__PURE__ */ new WeakMap();
1013
1028
  Ut = /* @__PURE__ */ new WeakMap();
1029
+ Kt = /* @__PURE__ */ new WeakMap();
1030
+ Zt = /* @__PURE__ */ new WeakMap();
1031
+ kt = /* @__PURE__ */ new WeakMap();
1014
1032
  Pt = /* @__PURE__ */ new WeakMap();
1015
1033
  Wt = /* @__PURE__ */ new WeakMap();
1016
1034
  Mt = /* @__PURE__ */ new WeakMap();
1017
- Et = /* @__PURE__ */ new WeakMap();
1018
1035
  D = /* @__PURE__ */ new WeakMap();
1036
+ B = /* @__PURE__ */ new WeakMap();
1019
1037
  H = /* @__PURE__ */ new WeakMap();
1020
1038
  G = /* @__PURE__ */ new WeakMap();
1021
- N = /* @__PURE__ */ new WeakMap();
1022
1039
  Lt = /* @__PURE__ */ new WeakMap();
1023
- L = /* @__PURE__ */ new WeakMap();
1024
- pt = /* @__PURE__ */ new WeakMap();
1025
- ft = /* @__PURE__ */ new WeakMap();
1040
+ x = /* @__PURE__ */ new WeakMap();
1041
+ at = /* @__PURE__ */ new WeakMap();
1026
1042
  ot = /* @__PURE__ */ new WeakMap();
1027
1043
  lt = /* @__PURE__ */ new WeakMap();
1028
1044
  ct = /* @__PURE__ */ new WeakMap();
1029
- Kt = /* @__PURE__ */ new WeakMap();
1030
- ce = /* @__PURE__ */ new WeakMap();
1031
- x = /* @__PURE__ */ new WeakMap();
1045
+ ut = /* @__PURE__ */ new WeakMap();
1046
+ E = /* @__PURE__ */ new WeakMap();
1032
1047
  Z = /* @__PURE__ */ new WeakMap();
1033
- q = /* @__PURE__ */ new WeakMap();
1048
+ K = /* @__PURE__ */ new WeakMap();
1049
+ ft = /* @__PURE__ */ new WeakMap();
1034
1050
  dt = /* @__PURE__ */ new WeakMap();
1035
- St = /* @__PURE__ */ new WeakMap();
1036
1051
  X = /* @__PURE__ */ new WeakMap();
1037
- Me = /* @__PURE__ */ new WeakMap();
1038
- m = /* @__PURE__ */ new WeakMap();
1039
- qt = /* @__PURE__ */ new WeakMap();
1040
- Zt = /* @__PURE__ */ new WeakMap();
1041
1052
  Ee = /* @__PURE__ */ new WeakMap();
1042
- B = /* @__PURE__ */ new WeakMap();
1043
- Y = /* @__PURE__ */ new WeakMap();
1053
+ v = /* @__PURE__ */ new WeakMap();
1054
+ Jt = /* @__PURE__ */ new WeakMap();
1055
+ Qt = /* @__PURE__ */ new WeakMap();
1056
+ xe = /* @__PURE__ */ new WeakMap();
1057
+ L = /* @__PURE__ */ new WeakMap();
1058
+ Et = /* @__PURE__ */ new WeakMap();
1059
+ $ = /* @__PURE__ */ new WeakMap();
1044
1060
  V = /* @__PURE__ */ new WeakMap();
1045
- M = /* @__PURE__ */ new WeakMap();
1046
- T = /* @__PURE__ */ new WeakMap();
1047
- ue = /* @__PURE__ */ new WeakMap();
1061
+ N = /* @__PURE__ */ new WeakMap();
1062
+ pe = /* @__PURE__ */ new WeakMap();
1048
1063
  $t = /* @__PURE__ */ new WeakMap();
1049
- W = /* @__PURE__ */ new WeakMap();
1050
- xe = /* @__PURE__ */ new WeakSet();
1051
- Je = function() {
1052
- y(this, ps, $s).call(this), this.setVar(s(this, pt).current, s(this, B)), this.setVar(s(this, ft).current, s(this, Y));
1053
- };
1054
- ps = /* @__PURE__ */ new WeakSet();
1064
+ P = /* @__PURE__ */ new WeakMap();
1065
+ Je = /* @__PURE__ */ new WeakSet();
1055
1066
  $s = function() {
1056
- this.dispatchEvent(
1057
- new CustomEvent("segmentPass", {
1058
- detail: {
1059
- distance: s(this, M),
1060
- start: s(this, V),
1061
- finish: s(this, T),
1062
- passed: s(this, B),
1063
- progress: s(this, Y)
1064
- }
1065
- })
1066
- );
1067
+ s(this, E).current = !0, s(this, Z).current = !1, m(this, $t, !0), s(this, B).current && s(this, v).classList.remove(s(this, B).current), s(this, x).current && s(this, v).classList.remove(
1068
+ s(this, x).current
1069
+ ), s(this, x).current && s(this, v).classList.remove(
1070
+ s(this, x).current
1071
+ ), s(this, D).current && s(this, v).classList.add(s(this, D).current);
1067
1072
  };
1068
1073
  Qe = /* @__PURE__ */ new WeakSet();
1069
- Ds = function() {
1070
- s(this, x).current = !0, s(this, Z).current = !1, v(this, $t, !0), s(this, H).current && s(this, m).classList.remove(s(this, H).current), s(this, L).current && s(this, m).classList.remove(
1071
- s(this, L).current
1072
- ), s(this, L).current && s(this, m).classList.remove(
1073
- s(this, L).current
1074
- ), s(this, D).current && s(this, m).classList.add(s(this, D).current);
1075
- };
1076
- Xe = /* @__PURE__ */ new WeakSet();
1077
1074
  Fs = function() {
1078
- s(this, Z).current = !0, s(this, x).current = !1, v(this, $t, !0), s(this, D).current && s(this, m).classList.remove(s(this, D).current), s(this, G).current && s(this, m).classList.remove(
1075
+ s(this, Z).current = !0, s(this, E).current = !1, m(this, $t, !0), s(this, D).current && s(this, v).classList.remove(s(this, D).current), s(this, H).current && s(this, v).classList.remove(
1076
+ s(this, H).current
1077
+ ), s(this, G).current && s(this, v).classList.remove(
1079
1078
  s(this, G).current
1080
- ), s(this, N).current && s(this, m).classList.remove(
1081
- s(this, N).current
1082
- ), s(this, H).current && s(this, m).classList.add(s(this, H).current);
1079
+ ), s(this, B).current && s(this, v).classList.add(s(this, B).current);
1080
+ };
1081
+ Xe = /* @__PURE__ */ new WeakSet();
1082
+ Ds = function() {
1083
+ s(this, E).current = !0, s(this, K).current = !0, s(this, ft).current = !1, s(this, H).current && s(this, v).classList.add(
1084
+ s(this, H).current
1085
+ );
1083
1086
  };
1084
1087
  Ye = /* @__PURE__ */ new WeakSet();
1085
1088
  Os = function() {
1086
- s(this, x).current = !0, s(this, q).current = !0, s(this, dt).current = !1, s(this, G).current && s(this, m).classList.add(
1089
+ s(this, E).current = !0, s(this, dt).current = !0, s(this, X).current = !1, s(this, G).current && s(this, v).classList.add(
1087
1090
  s(this, G).current
1088
1091
  );
1089
1092
  };
1090
1093
  je = /* @__PURE__ */ new WeakSet();
1091
1094
  As = function() {
1092
- s(this, x).current = !0, s(this, St).current = !0, s(this, X).current = !1, s(this, N).current && s(this, m).classList.add(
1093
- s(this, N).current
1095
+ s(this, Z).current = !0, s(this, ft).current = !0, s(this, K).current = !1, s(this, x).current && s(this, v).classList.add(
1096
+ s(this, x).current
1094
1097
  );
1095
1098
  };
1096
1099
  ts = /* @__PURE__ */ new WeakSet();
1097
1100
  Rs = function() {
1098
- s(this, Z).current = !0, s(this, dt).current = !0, s(this, q).current = !1, s(this, L).current && s(this, m).classList.add(
1099
- s(this, L).current
1100
- );
1101
- };
1102
- es = /* @__PURE__ */ new WeakSet();
1103
- Ts = function() {
1104
- s(this, Z).current = !0, s(this, X).current = !0, s(this, St).current = !1, s(this, L).current && s(this, m).classList.add(
1105
- s(this, L).current
1101
+ s(this, Z).current = !0, s(this, X).current = !0, s(this, dt).current = !1, s(this, x).current && s(this, v).classList.add(
1102
+ s(this, x).current
1106
1103
  );
1107
1104
  };
1108
1105
  Le = /* @__PURE__ */ new WeakMap();
1109
- pe = /* @__PURE__ */ new WeakMap();
1110
- nt = /* @__PURE__ */ new WeakSet();
1106
+ fe = /* @__PURE__ */ new WeakMap();
1107
+ ht = /* @__PURE__ */ new WeakSet();
1111
1108
  xt = function(e) {
1112
- if (s(this, W)) {
1113
- e.previous && s(this, m).classList.remove(e.previous), e.current && s(this, m).classList.remove(e.current);
1109
+ if (s(this, P)) {
1110
+ e.previous && s(this, v).classList.remove(e.previous), e.current && s(this, v).classList.remove(e.current);
1114
1111
  return;
1115
1112
  }
1116
- e.current && s(this, x).current ? (e.previous && s(this, m).classList.remove(e.previous), s(this, m).classList.add(e.current)) : !e.current && e.previous && s(this, m).classList.remove(e.previous);
1113
+ e.current && s(this, E).current ? (e.previous && s(this, v).classList.remove(e.previous), s(this, v).classList.add(e.current)) : !e.current && e.previous && s(this, v).classList.remove(e.previous);
1117
1114
  };
1118
- fs = /* @__PURE__ */ new WeakSet();
1119
- Is = function(...e) {
1115
+ cs = /* @__PURE__ */ new WeakSet();
1116
+ Ts = function(...e) {
1120
1117
  e.forEach((i) => {
1121
- i && s(this, m).classList.remove(i);
1118
+ i && s(this, v).classList.remove(i);
1122
1119
  });
1123
1120
  };
1124
- ds = /* @__PURE__ */ new WeakSet();
1125
- Bs = function(...e) {
1121
+ us = /* @__PURE__ */ new WeakSet();
1122
+ Is = function(...e) {
1126
1123
  e.forEach((i) => {
1127
- i && s(this, m).style.removeProperty(`--${i}`);
1124
+ i && s(this, v).style.removeProperty(`--${i}`);
1128
1125
  });
1129
1126
  };
1130
1127
  Ve = /* @__PURE__ */ new WeakSet();
1131
- ss = function() {
1132
- y(this, fs, Is).call(this, s(this, D).current, s(this, G).current, s(this, N).current, s(this, H).current, s(this, Lt).current, s(this, L).current), y(this, ds, Bs).call(this, s(this, pt).current, s(this, ft).current, s(this, ot).current, s(this, lt).current, s(this, ct).current);
1128
+ es = function() {
1129
+ W(this, cs, Ts).call(this, s(this, D).current, s(this, H).current, s(this, G).current, s(this, B).current, s(this, Lt).current, s(this, x).current), W(this, us, Is).call(this, s(this, at).current, s(this, ot).current, s(this, lt).current, s(this, ct).current, s(this, ut).current);
1133
1130
  };
1134
1131
  ze = /* @__PURE__ */ new WeakMap();
1135
- Ps = Pi([
1136
- se("e-scroll-segment")
1137
- ], Ps);
1132
+ Cs = bi([
1133
+ re("e-scroll-segment")
1134
+ ], Cs);
1138
1135
  export {
1139
- ks as ScrollBulletButtonsElement,
1136
+ _s as ScrollBulletButtonsElement,
1140
1137
  Ie as ScrollElement,
1141
- Ps as ScrollSegmentElement,
1142
- bs as ScrollSetButtonElement,
1143
- _s as ScrollStepButtonElement,
1144
- ws as ScrollbarElement
1138
+ Cs as ScrollSegmentElement,
1139
+ ms as ScrollSetButtonElement,
1140
+ gs as ScrollStepButtonElement,
1141
+ vs as ScrollbarElement
1145
1142
  };