aptechka 0.5.20 → 0.5.22

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