aptechka 0.5.19 → 0.5.20

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