aptechka 0.71.28 → 0.71.30

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.
@@ -18,19 +18,19 @@ var zs = (d, n, e) => new Promise((s, h) => {
18
18
  var u = (C) => {
19
19
  try {
20
20
  v(e.next(C));
21
- } catch (ce) {
22
- h(ce);
21
+ } catch (ue) {
22
+ h(ue);
23
23
  }
24
24
  }, g = (C) => {
25
25
  try {
26
26
  v(e.throw(C));
27
- } catch (ce) {
28
- h(ce);
27
+ } catch (ue) {
28
+ h(ue);
29
29
  }
30
30
  }, v = (C) => C.done ? s(C.value) : Promise.resolve(C.value).then(u, g);
31
31
  v((e = e.apply(d, n)).next());
32
32
  });
33
- import { S as ue } from "../Store-0BVty6AZ.js";
33
+ import { S as ae } from "../Store-0BVty6AZ.js";
34
34
  import { i as q } from "../index-Bv9zgfdb.js";
35
35
  import { q as fi } from "../easings-BEmRlrDd.js";
36
36
  import { i as pi } from "../element-CGVl1jA-.js";
@@ -46,7 +46,7 @@ import { D as Xs } from "../Damped-CtQmJ52v.js";
46
46
  import { T as vi } from "../Tweened-BlZB0vl4.js";
47
47
  import { W as yi, K as Ci, D as Pi, A as Ei } from "../DragControls-CkhCt-4W.js";
48
48
  import { windowResizer as pt } from "../window-resizer/index.js";
49
- import { scrollEntries as le } from "../scroll-entries/index.js";
49
+ import { scrollEntries as ce } from "../scroll-entries/index.js";
50
50
  import { cssUnitParser as Zs } from "../css-unit-parser/index.js";
51
51
  import { CSSProperty as l } from "../css-property/index.js";
52
52
  import { d as wi } from "../Viewport-DA10iWAO.js";
@@ -54,20 +54,20 @@ import "construct-style-sheets-polyfill";
54
54
  import { elementResizer as os } from "../element-resizer/index.js";
55
55
  import { s as xi } from "../gestures-CcXV6fCp.js";
56
56
  import { b as Li } from "../dom-CVWzyXPH.js";
57
- var p, Re, E, us, as, fe, bt, Ot, pe, Ht, Fe;
57
+ var p, Re, E, us, as, pe, bt, $t, be, Bt, Fe;
58
58
  class ki {
59
59
  constructor(n, e, s) {
60
- i(this, Ht);
60
+ i(this, Bt);
61
61
  i(this, p);
62
62
  i(this, Re);
63
63
  i(this, E);
64
64
  i(this, us, 0);
65
65
  i(this, as, 0);
66
- i(this, fe, 0);
67
- i(this, bt, 0);
68
- i(this, Ot, null);
69
66
  i(this, pe, 0);
70
- r(this, p, n), r(this, Re, e), r(this, E, s), le.register(t(this, p)), this.setIndex(t(this, Re));
67
+ i(this, bt, 0);
68
+ i(this, $t, null);
69
+ i(this, be, 0);
70
+ r(this, p, n), r(this, Re, e), r(this, E, s), ce.register(t(this, p)), this.setIndex(t(this, Re));
71
71
  }
72
72
  get element() {
73
73
  return t(this, p);
@@ -76,7 +76,7 @@ class ki {
76
76
  return t(this, Re);
77
77
  }
78
78
  get size() {
79
- return t(this, fe);
79
+ return t(this, pe);
80
80
  }
81
81
  get width() {
82
82
  return t(this, us);
@@ -88,10 +88,10 @@ class ki {
88
88
  return t(this, bt);
89
89
  }
90
90
  get transformPosition() {
91
- return t(this, pe);
91
+ return t(this, be);
92
92
  }
93
93
  destroy() {
94
- le.unregister(t(this, p)), this.unsetTransform();
94
+ ce.unregister(t(this, p)), this.unsetTransform();
95
95
  }
96
96
  unsetTransform() {
97
97
  t(this, p).style.transform = "", this.setMark(null), this.setIndex(null), this.setCurrentIndex(null), this.setCurrentIndexArc(null), this.setCurrentIndexArcAbs(null), this.setOffsetIndex(null), this.setMiddle(!1), this.setSize();
@@ -100,25 +100,25 @@ class ki {
100
100
  n ? (t(this, p).style.setProperty("--size", n + "px"), t(this, E).axisCSSProperty.current === "x" ? (t(this, p).style.width = n + "px", t(this, p).style.height = "") : (t(this, p).style.height = n + "px", t(this, p).style.width = "")) : (t(this, p).style.width = "", t(this, p).style.height = "", t(this, p).style.removeProperty("--size"));
101
101
  }
102
102
  resize() {
103
- r(this, us, t(this, p).offsetWidth), r(this, as, t(this, p).offsetHeight), r(this, fe, t(this, E).vertical ? t(this, p).offsetHeight : t(this, p).offsetWidth), r(this, bt, t(this, E).vertical ? ls(t(this, p)) : cs(t(this, p))), r(this, bt, t(this, bt) - t(this, E).contentPosition);
103
+ r(this, us, t(this, p).offsetWidth), r(this, as, t(this, p).offsetHeight), r(this, pe, t(this, E).vertical ? t(this, p).offsetHeight : t(this, p).offsetWidth), r(this, bt, t(this, E).vertical ? ls(t(this, p)) : cs(t(this, p))), r(this, bt, t(this, bt) - t(this, E).contentPosition);
104
104
  }
105
105
  transform() {
106
106
  const n = t(this, E).shiftSectionPositionCSSProperty.current;
107
107
  let e = n;
108
108
  const s = t(this, E).viewportSize * t(this, E).sectionDistanceScaleCSSProperty.current;
109
- t(this, E).loopCSSProperty.current && t(this, bt) + t(this, fe) <= t(this, E).currentScrollValue - n / 2 && (e = (t(this, E).distance - n) * -1 - t(this, E).gap), le.update(
109
+ t(this, E).loopCSSProperty.current && t(this, bt) + t(this, pe) <= t(this, E).currentScrollValue - n / 2 && (e = (t(this, E).distance - n) * -1 - t(this, E).gap), ce.update(
110
110
  t(this, p),
111
111
  t(this, E).axisCSSProperty.current,
112
112
  e
113
113
  );
114
- const h = t(this, E).currentScrollValue + e, u = t(this, bt) - t(this, E).viewportSize - s, g = t(this, bt) + t(this, fe) + s, v = Si(js(h, u, g), 3);
115
- r(this, pe, v * -1), t(this, E).vertical ? t(this, p).style.transform = `translate3d(0px, ${t(this, pe)}px, 0px)` : t(this, p).style.transform = `translate3d(${t(this, pe)}px, 0px, 0px)`;
114
+ const h = t(this, E).currentScrollValue + e, u = t(this, bt) - t(this, E).viewportSize - s, g = t(this, bt) + t(this, pe) + s, v = Si(js(h, u, g), 3);
115
+ r(this, be, v * -1), t(this, E).vertical ? t(this, p).style.transform = `translate3d(0px, ${t(this, be)}px, 0px)` : t(this, p).style.transform = `translate3d(${t(this, be)}px, 0px, 0px)`;
116
116
  }
117
117
  setMark(n) {
118
- t(this, Ot) !== n && (t(this, Ot) && t(this, p).classList.remove(t(this, Ot)), n && t(this, p).classList.add(n), r(this, Ot, n), st(t(this, p), "scrollSectionMarkChange", {
118
+ t(this, $t) !== n && (t(this, $t) && t(this, p).classList.remove(t(this, $t)), n && t(this, p).classList.add(n), r(this, $t, n), st(t(this, p), "scrollSectionMarkChange", {
119
119
  composed: !0,
120
120
  detail: {
121
- mark: t(this, Ot)
121
+ mark: t(this, $t)
122
122
  },
123
123
  custom: !0
124
124
  }));
@@ -127,22 +127,22 @@ class ki {
127
127
  t(this, p).classList.toggle("middle", n);
128
128
  }
129
129
  setIndex(n) {
130
- o(this, Ht, Fe).call(this, "index", n);
130
+ o(this, Bt, Fe).call(this, "index", n);
131
131
  }
132
132
  setCurrentIndex(n) {
133
- o(this, Ht, Fe).call(this, "current-index", n);
133
+ o(this, Bt, Fe).call(this, "current-index", n);
134
134
  }
135
135
  setCurrentIndexArc(n) {
136
- o(this, Ht, Fe).call(this, "current-index-arc", n);
136
+ o(this, Bt, Fe).call(this, "current-index-arc", n);
137
137
  }
138
138
  setOffsetIndex(n) {
139
- o(this, Ht, Fe).call(this, "offset-index", n);
139
+ o(this, Bt, Fe).call(this, "offset-index", n);
140
140
  }
141
141
  setCurrentIndexArcAbs(n) {
142
- o(this, Ht, Fe).call(this, "current-index-arc-abs", n);
142
+ o(this, Bt, Fe).call(this, "current-index-arc-abs", n);
143
143
  }
144
144
  }
145
- p = new WeakMap(), Re = new WeakMap(), E = new WeakMap(), us = new WeakMap(), as = new WeakMap(), fe = new WeakMap(), bt = new WeakMap(), Ot = new WeakMap(), pe = new WeakMap(), Ht = new WeakSet(), Fe = function(n, e) {
145
+ p = new WeakMap(), Re = new WeakMap(), E = new WeakMap(), us = new WeakMap(), as = new WeakMap(), pe = new WeakMap(), bt = new WeakMap(), $t = new WeakMap(), be = new WeakMap(), Bt = new WeakSet(), Fe = function(n, e) {
146
146
  e !== null ? (t(this, p).style.setProperty(`--${n}`, e.toString()), t(this, p).setAttribute(`data-${n}`, e.toString())) : (t(this, p).style.removeProperty(`--${n}`), t(this, p).removeAttribute(`data-${n}`));
147
147
  };
148
148
  const Vi = Js({
@@ -184,61 +184,61 @@ const Vi = Js({
184
184
  flexShrink: "0"
185
185
  }
186
186
  });
187
- var f, be, D, $t, mt, St, gt, J, Bt, Wt, vt, Nt, me, Q, V, Se, ge, ve, ye, De, Ce, X, Pe, qt, Y, yt, Ct, Ee, Gt, we, xe, Ut, Kt, Zt, b, Oe, G, a, ds, fs, L, P, U, it, jt, rt, F, z, He, Pt, Et, wt, K, $e, Jt, Qt, Le, ht, A, Be, xt, ke, We, c, Is, hs, Te, Es, ws, Ms, Fs, T, ps, Ys, Ne, bs, Ts, Rs, ae, _s, ms, ns, qe;
187
+ var f, me, D, Wt, mt, St, gt, J, Nt, qt, vt, Gt, Se, Q, V, ge, ve, ye, Ce, De, Pe, X, Ee, Ut, Y, yt, Ct, we, Kt, xe, Le, Zt, jt, Jt, b, Oe, G, a, ds, fs, L, P, U, it, Qt, rt, F, z, He, Pt, Et, wt, K, $e, xt, Xt, Lt, ht, A, Be, kt, ke, We, c, Is, hs, Te, Es, ws, Ms, Fs, T, ps, Ys, Ne, bs, Ts, Rs, de, _s, ms, ns, qe;
188
188
  class As extends HTMLElement {
189
189
  constructor() {
190
190
  super();
191
191
  i(this, c);
192
192
  i(this, f, null);
193
- i(this, be, new l(this, "--controls", !0));
193
+ i(this, me, new l(this, "--controls", !0));
194
194
  i(this, D, new l(this, "--axis", "y"));
195
- i(this, $t, new l(this, "--reverse", !1));
195
+ i(this, Wt, new l(this, "--reverse", !1));
196
196
  i(this, mt, new l(this, "--direction", 0));
197
197
  i(this, St, new l(this, "--pages", 0, {
198
198
  validate: (e) => Math.max(0, e - 1)
199
199
  }));
200
200
  i(this, gt, new l(this, "--split", !1));
201
201
  i(this, J, new l(this, "--sectional", !1));
202
- i(this, Bt, new l(
202
+ i(this, Nt, new l(
203
203
  this,
204
204
  "--tween-easing",
205
205
  !1
206
206
  ));
207
- i(this, Wt, new l(
207
+ i(this, qt, new l(
208
208
  this,
209
209
  "--tween-duration",
210
210
  !1
211
211
  ));
212
212
  i(this, vt, new l(this, "--auto-size", !1));
213
- i(this, Nt, new l(
213
+ i(this, Gt, new l(
214
214
  this,
215
215
  "--wheel-max-delta",
216
216
  !1
217
217
  ));
218
- i(this, me, new l(this, "--drag-inertion", 1));
218
+ i(this, Se, new l(this, "--drag-inertion", 1));
219
219
  i(this, Q, new l(
220
220
  this,
221
221
  "--sections-in-view",
222
222
  1
223
223
  ));
224
224
  i(this, V, new l(this, "--loop", !1));
225
- i(this, Se, new l(this, "--damping", 20));
226
- i(this, ge, new l(this, "--mass", 0));
227
- i(this, ve, new l(this, "--stiffness", 0));
228
- i(this, ye, new l(this, "--mouse-drag", !1));
225
+ i(this, ge, new l(this, "--damping", 20));
226
+ i(this, ve, new l(this, "--mass", 0));
227
+ i(this, ye, new l(this, "--stiffness", 0));
228
+ i(this, Ce, new l(this, "--mouse-drag", !1));
229
229
  i(this, De, new l(
230
230
  this,
231
231
  "--section-distance-scale",
232
232
  0.5
233
233
  ));
234
- i(this, Ce, new l(this, "--start-section", 0));
234
+ i(this, Pe, new l(this, "--start-section", 0));
235
235
  i(this, X, new l(this, "--autoplay", 0));
236
- i(this, Pe, new l(
236
+ i(this, Ee, new l(
237
237
  this,
238
238
  "--autoplay-pause-duration",
239
239
  0
240
240
  ));
241
- i(this, qt, new l(
241
+ i(this, Ut, new l(
242
242
  this,
243
243
  "--autoplay-user-direction",
244
244
  !1
@@ -254,22 +254,22 @@ class As extends HTMLElement {
254
254
  "--current-index-end-offset",
255
255
  0
256
256
  ));
257
- i(this, Ee, new l(
257
+ i(this, we, new l(
258
258
  this,
259
259
  "--shift-section-position",
260
260
  0,
261
261
  { rawValueCheck: !1 }
262
262
  ));
263
- i(this, Gt, new l(this, "--focus-delay", 0));
264
- i(this, we, new l(
263
+ i(this, Kt, new l(this, "--focus-delay", 0));
264
+ i(this, xe, new l(
265
265
  this,
266
266
  "--focus-duration",
267
267
  3e3
268
268
  ));
269
- i(this, xe, new l(this, "--shift-limit", 0));
270
- i(this, Ut, new l(this, "--disabled", !1));
271
- i(this, Kt, new l(this, "--hibernate", !1));
272
- i(this, Zt, null);
269
+ i(this, Le, new l(this, "--shift-limit", 0));
270
+ i(this, Zt, new l(this, "--disabled", !1));
271
+ i(this, jt, new l(this, "--hibernate", !1));
272
+ i(this, Jt, null);
273
273
  i(this, b, null);
274
274
  i(this, Oe, null);
275
275
  i(this, G, []);
@@ -280,23 +280,23 @@ class As extends HTMLElement {
280
280
  i(this, P, 0);
281
281
  i(this, U, 0);
282
282
  i(this, it, null);
283
- i(this, jt, null);
283
+ i(this, Qt, null);
284
284
  i(this, rt, null);
285
285
  i(this, F, null);
286
- i(this, z, new ue(0));
286
+ i(this, z, new ae(0));
287
287
  i(this, He, 0);
288
288
  i(this, Pt, 0);
289
289
  i(this, Et, !1);
290
290
  i(this, wt, !0);
291
291
  i(this, K, !0);
292
292
  i(this, $e);
293
- i(this, Jt);
294
- i(this, Qt, new vi());
295
- i(this, Le, !1);
293
+ i(this, xt);
294
+ i(this, Xt, new vi());
295
+ i(this, Lt, !1);
296
296
  i(this, ht, null);
297
297
  i(this, A, !1);
298
298
  i(this, Be, null);
299
- i(this, xt, []);
299
+ i(this, kt, []);
300
300
  i(this, ke, !1);
301
301
  i(this, We);
302
302
  i(this, T, (e) => {
@@ -313,55 +313,51 @@ class As extends HTMLElement {
313
313
  if (r(this, He, Math.max(0, e - t(this, P))), t(this, a).length) {
314
314
  for (let s = 0; s < t(this, G).length; s++)
315
315
  t(this, G)[s].transform();
316
- t(this, J).current || (t(this, z).current = o(this, c, ns).call(this));
316
+ (t(this, Lt) || !t(this, J).current) && (t(this, z).current = o(this, c, ns).call(this));
317
317
  } else
318
318
  this.vertical ? t(this, b).style.transform = `translate3d(0px, ${e * -1}px, 0px)` : t(this, b).style.transform = `translate3d(${e * -1}px, 0px, 0px)`;
319
- o(this, c, _s).call(this), le.update(
319
+ o(this, c, _s).call(this), ce.update(
320
320
  this,
321
321
  t(this, D).current,
322
322
  e
323
323
  );
324
324
  });
325
325
  i(this, Ne, (e, s) => {
326
- t(this, be).current && (o(this, c, Ts).call(this, Math.sign(s) || 1), t(this, bs).call(this, e, s));
326
+ t(this, me).current && (o(this, c, Ts).call(this, Math.sign(s) || 1), t(this, bs).call(this, e, s));
327
327
  });
328
328
  i(this, bs, (e, s) => {
329
- if (!t(this, Jt)) {
329
+ if (!t(this, xt)) {
330
330
  if (t(this, mt).current) {
331
331
  if (t(this, mt).current < 0 && s > 0)
332
332
  return;
333
333
  if (t(this, mt).current > 0 && s < 0)
334
334
  return;
335
335
  }
336
- if (!t(this, X).current && t(this, Gt).current && (clearInterval(t(this, $e)), r(this, $e, setTimeout(() => {
336
+ if (!t(this, X).current && t(this, Kt).current && (clearInterval(t(this, $e)), r(this, $e, setTimeout(() => {
337
337
  const h = t(this, a)[o(this, c, ns).call(this)];
338
338
  h && this.scrollToSection(h.index, {
339
339
  tween: {
340
- duration: t(this, we).current,
340
+ duration: t(this, xe).current,
341
341
  easing: fi
342
342
  }
343
343
  });
344
- }, t(this, Gt).current))), !(e.includes("drag") && !wi.isTouch && !t(this, ye).current)) {
344
+ }, t(this, Kt).current))), !(e.includes("drag") && !wi.isTouch && !t(this, Ce).current)) {
345
345
  if (t(this, J).current && e !== "drag") {
346
346
  const h = Math.sign(s);
347
- if (t(this, a).length) {
348
- const u = {
349
- tween: t(this, Bt).current || t(this, Wt).current ? {
350
- easing: t(this, Bt).current || "easeInOutCubic",
351
- duration: t(this, Wt).current || 500
352
- } : void 0
353
- };
354
- t(this, Le) ? this.scrollToSection(o(this, c, ns).call(this, !0), u) : this.shiftSections(h, u);
355
- } else
356
- t(this, f).shift(h * t(this, L));
347
+ t(this, a).length ? t(this, Lt) ? this.scrollToSection(o(this, c, ns).call(this, !0)) : this.shiftSections(h, {
348
+ tween: t(this, Nt).current || t(this, qt).current ? {
349
+ easing: t(this, Nt).current || "easeInOutCubic",
350
+ duration: t(this, qt).current || 500
351
+ } : void 0
352
+ }) : t(this, f).shift(h * t(this, L));
357
353
  } else
358
354
  t(this, f).shift(s);
359
- r(this, Le, e === "drag");
355
+ r(this, Lt, e === "drag");
360
356
  }
361
357
  }
362
358
  });
363
359
  i(this, ms, xs(() => {
364
- const e = t(this, xt).reduce((s, h) => {
360
+ const e = t(this, kt).reduce((s, h) => {
365
361
  const u = this.vertical ? h.width : h.height;
366
362
  return u > s ? u : s;
367
363
  }, 0);
@@ -376,7 +372,7 @@ class As extends HTMLElement {
376
372
  const e = this.attachShadow({ mode: "open" });
377
373
  e.adoptedStyleSheets = [Vi];
378
374
  const s = document.createElement("div");
379
- s.className = "static", s.innerHTML = '<slot name="static"></slot>', e.appendChild(s), r(this, Zt, document.createElement("div")), t(this, Zt).className = "content-wrapper", r(this, b, document.createElement("div")), t(this, b).className = "content", r(this, Oe, document.createElement("slot")), t(this, b).appendChild(t(this, Oe)), t(this, Zt).appendChild(t(this, b)), e.appendChild(t(this, Zt)), r(this, Be, new MutationObserver(
375
+ s.className = "static", s.innerHTML = '<slot name="static"></slot>', e.appendChild(s), r(this, Jt, document.createElement("div")), t(this, Jt).className = "content-wrapper", r(this, b, document.createElement("div")), t(this, b).className = "content", r(this, Oe, document.createElement("slot")), t(this, b).appendChild(t(this, Oe)), t(this, Jt).appendChild(t(this, b)), e.appendChild(t(this, Jt)), r(this, Be, new MutationObserver(
380
376
  xs(() => {
381
377
  this.tryResplit();
382
378
  }, 10)
@@ -387,13 +383,13 @@ class As extends HTMLElement {
387
383
  return t(this, f);
388
384
  }
389
385
  get controlsCSSProperty() {
390
- return t(this, be);
386
+ return t(this, me);
391
387
  }
392
388
  get axisCSSProperty() {
393
389
  return t(this, D);
394
390
  }
395
391
  get reverseCSSProperty() {
396
- return t(this, $t);
392
+ return t(this, Wt);
397
393
  }
398
394
  get directionCSSProperty() {
399
395
  return t(this, mt);
@@ -408,19 +404,19 @@ class As extends HTMLElement {
408
404
  return t(this, J);
409
405
  }
410
406
  get easingCSSProperty() {
411
- return t(this, Bt);
407
+ return t(this, Nt);
412
408
  }
413
409
  get durationCSSProperty() {
414
- return t(this, Wt);
410
+ return t(this, qt);
415
411
  }
416
412
  get autoSizeCSSProperty() {
417
413
  return t(this, vt);
418
414
  }
419
415
  get wheelMaxDeltaCSSProperty() {
420
- return t(this, Nt);
416
+ return t(this, Gt);
421
417
  }
422
418
  get dragInertionCSSProperty() {
423
- return t(this, me);
419
+ return t(this, Se);
424
420
  }
425
421
  get sectionsInViewCSSProperty() {
426
422
  return t(this, Q);
@@ -429,31 +425,31 @@ class As extends HTMLElement {
429
425
  return t(this, V);
430
426
  }
431
427
  get dampingCSSProperty() {
432
- return t(this, Se);
428
+ return t(this, ge);
433
429
  }
434
430
  get massCSSProperty() {
435
- return t(this, ge);
431
+ return t(this, ve);
436
432
  }
437
433
  get stiffnessCSSProperty() {
438
- return t(this, ve);
434
+ return t(this, ye);
439
435
  }
440
436
  get mouseDragCSSProperty() {
441
- return t(this, ye);
437
+ return t(this, Ce);
442
438
  }
443
439
  get sectionDistanceScaleCSSProperty() {
444
440
  return t(this, De);
445
441
  }
446
442
  get startSectionCSSProperty() {
447
- return t(this, Ce);
443
+ return t(this, Pe);
448
444
  }
449
445
  get autoplayCSSProperty() {
450
446
  return t(this, X);
451
447
  }
452
448
  get autoplayPauseDurationCSSProperty() {
453
- return t(this, Pe);
449
+ return t(this, Ee);
454
450
  }
455
451
  get autoplayUserDirectionCSSProperty() {
456
- return t(this, qt);
452
+ return t(this, Ut);
457
453
  }
458
454
  get classesCSSProperty() {
459
455
  return t(this, Y);
@@ -465,22 +461,22 @@ class As extends HTMLElement {
465
461
  return t(this, Ct);
466
462
  }
467
463
  get shiftSectionPositionCSSProperty() {
468
- return t(this, Ee);
464
+ return t(this, we);
469
465
  }
470
466
  get focusDelayCSSProperty() {
471
- return t(this, Gt);
467
+ return t(this, Kt);
472
468
  }
473
469
  get focusDurationCSSProperty() {
474
- return t(this, we);
470
+ return t(this, xe);
475
471
  }
476
472
  get shiftLimitCSSProperty() {
477
- return t(this, xe);
473
+ return t(this, Le);
478
474
  }
479
475
  get disabledCSSProperty() {
480
- return t(this, Ut);
476
+ return t(this, Zt);
481
477
  }
482
478
  get hibernatedCSSProperty() {
483
- return t(this, Kt);
479
+ return t(this, jt);
484
480
  }
485
481
  get currentScrollValue() {
486
482
  return o(this, c, Rs).call(this, "current");
@@ -489,7 +485,7 @@ class As extends HTMLElement {
489
485
  return o(this, c, Rs).call(this, "target");
490
486
  }
491
487
  get contentWrapperElement() {
492
- return t(this, Zt);
488
+ return t(this, Jt);
493
489
  }
494
490
  get contentElement() {
495
491
  return t(this, b);
@@ -520,7 +516,7 @@ class As extends HTMLElement {
520
516
  }
521
517
  get limit() {
522
518
  return Math.ceil(
523
- t(this, a).length - t(this, Q).current + t(this, xe).current
519
+ t(this, a).length - t(this, Q).current + t(this, Le).current
524
520
  );
525
521
  }
526
522
  get distance() {
@@ -575,24 +571,24 @@ class As extends HTMLElement {
575
571
  return this.currentProgress >= u && this.currentProgress <= g;
576
572
  }
577
573
  scrollToSection(e, s) {
578
- if (!t(this, a).length || t(this, K))
574
+ if (!t(this, a).length || t(this, K) || t(this, xt))
579
575
  return;
580
576
  const h = t(this, z).current, u = o(this, c, Ys).call(this, e);
581
- t(this, z).current = u;
577
+ t(this, Lt) || (t(this, z).current = u);
582
578
  const g = t(this, a)[h], v = t(this, a)[u];
583
579
  if (g && v) {
584
580
  let C = 0;
585
- const ce = o(this, c, ns).call(this), Me = t(this, a)[ce];
581
+ const ue = o(this, c, ns).call(this), Me = t(this, a)[ue];
586
582
  let rs = Me ? this.targetScrollValue - Me.position : 0;
587
- t(this, V).current ? u === 0 && h === t(this, a).length - 1 ? (C = t(this, P) + t(this, L) - g.position + t(this, U), t(this, Le) || (rs = 0)) : u === t(this, a).length - 1 && h === 0 ? C = v.position - (t(this, P) + t(this, L) + t(this, U)) : C = v.position - g.position : C = v.position - g.position, this.shiftPosition(C - rs, s);
583
+ t(this, V).current ? u === 0 && h === t(this, a).length - 1 ? (C = t(this, P) + t(this, L) - g.position + t(this, U), t(this, Lt) || (rs = 0)) : u === t(this, a).length - 1 && h === 0 ? C = v.position - (t(this, P) + t(this, L) + t(this, U)) : C = v.position - g.position : C = v.position - g.position, this.shiftPosition(C - rs, s);
588
584
  }
589
585
  }
590
586
  shiftSections(e, s) {
591
587
  t(this, a).length && this.scrollToSection(t(this, z).current + e, s);
592
588
  }
593
589
  setPosition(e, s) {
594
- t(this, K) || (o(this, c, Ts).call(this, Math.sign(e) || 1), s != null && s.tween ? (clearTimeout(t(this, Jt)), t(this, Qt).set(t(this, f).current, { equalize: !0 }), t(this, Qt).set(e, Ks({}, s.tween)), r(this, Jt, setTimeout(() => {
595
- r(this, Jt, void 0);
590
+ t(this, K) || (o(this, c, Ts).call(this, Math.sign(e) || 1), s != null && s.tween ? (clearTimeout(t(this, xt)), t(this, Xt).set(t(this, f).current, { equalize: !0 }), t(this, Xt).set(e, Ks({}, s.tween)), r(this, xt, setTimeout(() => {
591
+ r(this, xt, void 0);
596
592
  }, s.tween.duration || 0))) : t(this, f).set(e, {
597
593
  equalize: (s == null ? void 0 : s.behaviour) === "instant"
598
594
  }));
@@ -601,7 +597,7 @@ class As extends HTMLElement {
601
597
  this.setPosition(t(this, f).target + e, s);
602
598
  }
603
599
  resize() {
604
- if (t(this, Kt).current)
600
+ if (t(this, jt).current)
605
601
  return;
606
602
  r(this, a, t(this, G).filter(
607
603
  (h) => pi(h.element)
@@ -649,16 +645,16 @@ class As extends HTMLElement {
649
645
  t(this, f).set(e * t(this, P), {
650
646
  equalize: !0
651
647
  });
652
- r(this, Et, (this.vertical ? t(this, b).offsetHeight : t(this, b).offsetWidth) > t(this, L)), this.classList.toggle("has-overflow", t(this, Et)), t(this, Et) ? t(this, Ut).current || o(this, c, ws).call(this) : o(this, c, Es).call(this), t(this, ms).call(this), st(this, "scrollResize", { custom: !0 }), t(this, f).notify();
648
+ r(this, Et, (this.vertical ? t(this, b).offsetHeight : t(this, b).offsetWidth) > t(this, L)), this.classList.toggle("has-overflow", t(this, Et)), t(this, Et) ? t(this, Zt).current || o(this, c, ws).call(this) : o(this, c, Es).call(this), t(this, ms).call(this), st(this, "scrollResize", { custom: !0 }), t(this, f).notify();
653
649
  }
654
650
  connectedCallback() {
655
- le.register(this), r(this, f, new Xs(0, {
651
+ ce.register(this), r(this, f, new Xs(0, {
656
652
  damping: 0.01,
657
653
  min: 0,
658
654
  order: Qs.SCROLL
659
- })), this.setAttribute("tabindex", "0"), r(this, it, new yi({ element: t(this, b) })), t(this, it).changeEvent.subscribe(t(this, Ne)), r(this, jt, new Ci({
655
+ })), this.setAttribute("tabindex", "0"), r(this, it, new yi({ element: t(this, b) })), t(this, it).changeEvent.subscribe(t(this, Ne)), r(this, Qt, new Ci({
660
656
  element: this
661
- })), t(this, jt).changeEvent.subscribe(
657
+ })), t(this, Qt).changeEvent.subscribe(
662
658
  t(this, Ne)
663
659
  ), r(this, rt, new Pi({
664
660
  element: t(this, b),
@@ -667,11 +663,11 @@ class As extends HTMLElement {
667
663
  culling: this
668
664
  })), t(this, F).changeEvent.subscribe(t(this, bs)), t(this, D).subscribe(() => {
669
665
  o(this, c, Is).call(this);
670
- }), t(this, $t).subscribe(() => {
666
+ }), t(this, Wt).subscribe(() => {
671
667
  o(this, c, Is).call(this);
672
- }), t(this, Nt).subscribe((e) => {
668
+ }), t(this, Gt).subscribe((e) => {
673
669
  t(this, it).axis = e.current ? "max" : t(this, D).current;
674
- }), t(this, me).subscribe((e) => {
670
+ }), t(this, Se).subscribe((e) => {
675
671
  t(this, rt).inertion = typeof e.current == "number" ? e.current : 1;
676
672
  }), t(this, St).subscribe(() => {
677
673
  t(this, A) && t(this, T).call(this);
@@ -682,53 +678,53 @@ class As extends HTMLElement {
682
678
  }), t(this, vt).subscribe((e) => {
683
679
  t(this, A) && (t(this, T).call(this), e.current && !e.previous && !t(this, a).length ? o(this, c, hs).call(this) : !e.current && e.previous && t(this, a).length && o(this, c, Te).call(this));
684
680
  }), t(this, Q).subscribe((e) => {
685
- t(this, A) && (t(this, T).call(this), o(this, c, ae).call(this));
681
+ t(this, A) && (t(this, T).call(this), o(this, c, de).call(this));
686
682
  }), t(this, V).subscribe((e) => {
687
683
  e.current ? (t(this, A) && (t(this, a).length || (t(this, gt).current = !0)), t(this, f).max = 1 / 0, t(this, f).min = -1 / 0) : (r(this, He, 0), t(this, f).max = t(this, P), t(this, f).min = 0), this.classList.toggle("loop", !!e.current);
688
- }), t(this, Se).subscribe((e) => {
689
- t(this, f).damping = e.current;
690
684
  }), t(this, ge).subscribe((e) => {
691
- t(this, f).mass = e.current;
685
+ t(this, f).damping = e.current;
692
686
  }), t(this, ve).subscribe((e) => {
687
+ t(this, f).mass = e.current;
688
+ }), t(this, ye).subscribe((e) => {
693
689
  t(this, f).stiffness = e.current;
694
690
  }), t(this, X).subscribe((e) => {
695
691
  t(this, F).speed = e.current, !t(this, wt) && e.current && !e.previous ? t(this, F).connect() : !e.current && e.previous && t(this, F).disconnect();
696
- }), t(this, qt).subscribe((e) => {
692
+ }), t(this, Ut).subscribe((e) => {
697
693
  e.current || (t(this, F).direction = 1);
698
694
  }), t(this, Y).subscribe((e) => {
699
- t(this, A) && o(this, c, ae).call(this);
695
+ t(this, A) && o(this, c, de).call(this);
700
696
  }), t(this, yt).subscribe((e) => {
701
- t(this, A) && t(this, Y).current && o(this, c, ae).call(this);
697
+ t(this, A) && t(this, Y).current && o(this, c, de).call(this);
702
698
  }), t(this, Ct).subscribe((e) => {
703
- t(this, A) && t(this, Y).current && o(this, c, ae).call(this);
704
- }), t(this, Ee).subscribe((e) => {
699
+ t(this, A) && t(this, Y).current && o(this, c, de).call(this);
700
+ }), t(this, we).subscribe((e) => {
705
701
  t(this, A) && t(this, f).notify();
706
702
  }), t(this, f).isRunning.subscribe((e) => {
707
703
  this.classList.toggle("active", e.current);
708
704
  }), t(this, z).subscribe((e) => {
709
- t(this, K) || (t(this, a).length && o(this, c, ae).call(this), this.style.setProperty("--counter", e.current + ""));
710
- }), t(this, Qt).subscribe((e) => {
711
- t(this, Qt).isRunning.current && t(this, f).set(e.current, { equalize: !0 });
712
- }), t(this, Ut).subscribe((e) => {
705
+ t(this, K) || (t(this, a).length && o(this, c, de).call(this), this.style.setProperty("--counter", e.current + ""));
706
+ }), t(this, Xt).subscribe((e) => {
707
+ t(this, Xt).isRunning.current && t(this, f).set(e.current, { equalize: !0 });
708
+ }), t(this, Zt).subscribe((e) => {
713
709
  e.current && !e.previous ? (this.classList.add("disabled"), o(this, c, Es).call(this)) : !e.current && e.previous && (this.classList.remove("disabled"), o(this, c, ws).call(this));
714
- }), t(this, Kt).subscribe((e) => {
710
+ }), t(this, jt).subscribe((e) => {
715
711
  e.current && !e.previous ? (this.classList.add("hibernated"), o(this, c, Ms).call(this)) : !e.current && e.previous && (this.classList.remove("hibernated"), o(this, c, Fs).call(this));
716
- }), t(this, be).observe(), t(this, D).observe(), t(this, $t).observe(), t(this, mt).observe(), t(this, St).observe(), t(this, gt).observe(), t(this, J).observe(), t(this, Bt).observe(), t(this, Wt).observe(), t(this, vt).observe(), t(this, Nt).observe(), t(this, me).observe(), t(this, Q).observe(), t(this, V).observe(), t(this, Se).observe(), t(this, ge).observe(), t(this, ve).observe(), t(this, ye).observe(), t(this, De).observe(), t(this, Ce).observe(), t(this, X).observe(), t(this, X).observe(), t(this, Pe).observe(), t(this, qt).observe(), t(this, Y).observe(), t(this, yt).observe(), t(this, Ct).observe(), t(this, Ee).observe(), t(this, Gt).observe(), t(this, we).observe(), t(this, xe).observe(), t(this, Ut).observe(), t(this, Kt).observe(), pt.subscribe(t(this, qe), Ls.LAST), t(this, Be).observe(this, { childList: !0 });
712
+ }), t(this, me).observe(), t(this, D).observe(), t(this, Wt).observe(), t(this, mt).observe(), t(this, St).observe(), t(this, gt).observe(), t(this, J).observe(), t(this, Nt).observe(), t(this, qt).observe(), t(this, vt).observe(), t(this, Gt).observe(), t(this, Se).observe(), t(this, Q).observe(), t(this, V).observe(), t(this, ge).observe(), t(this, ve).observe(), t(this, ye).observe(), t(this, Ce).observe(), t(this, De).observe(), t(this, Pe).observe(), t(this, X).observe(), t(this, X).observe(), t(this, Ee).observe(), t(this, Ut).observe(), t(this, Y).observe(), t(this, yt).observe(), t(this, Ct).observe(), t(this, we).observe(), t(this, Kt).observe(), t(this, xe).observe(), t(this, Le).observe(), t(this, Zt).observe(), t(this, jt).observe(), pt.subscribe(t(this, qe), Ls.LAST), t(this, Be).observe(this, { childList: !0 });
717
713
  }
718
714
  disconnectedCallback() {
719
- this.removeAttribute("tabindex"), this.classList.remove("disabled"), this.classList.remove("hibernated"), t(this, be).unobserve(), t(this, D).unobserve(), t(this, $t).unobserve(), t(this, mt).unobserve(), t(this, St).unobserve(), t(this, gt).unobserve(), t(this, J).unobserve(), t(this, Bt).unobserve(), t(this, Wt).unobserve(), t(this, vt).unobserve(), t(this, Nt).unobserve(), t(this, me).unobserve(), t(this, Q).unobserve(), t(this, V).unobserve(), t(this, Se).unobserve(), t(this, ge).unobserve(), t(this, ve).unobserve(), t(this, ye).unobserve(), t(this, De).unobserve(), t(this, Ce).unobserve(), t(this, X).unobserve(), t(this, Pe).unobserve(), t(this, qt).unobserve(), t(this, Y).unobserve(), t(this, yt).unobserve(), t(this, Ct).unobserve(), t(this, Ee).unobserve(), t(this, Gt).unobserve(), t(this, we).unobserve(), t(this, xe).unobserve(), t(this, Ut).unobserve(), t(this, Kt).unobserve(), pt.unsubscribe(t(this, qe)), pt.unsubscribe(t(this, T)), os.unsubscribe(t(this, T)), o(this, c, Ms).call(this), t(this, Be).disconnect();
715
+ this.removeAttribute("tabindex"), this.classList.remove("disabled"), this.classList.remove("hibernated"), t(this, me).unobserve(), t(this, D).unobserve(), t(this, Wt).unobserve(), t(this, mt).unobserve(), t(this, St).unobserve(), t(this, gt).unobserve(), t(this, J).unobserve(), t(this, Nt).unobserve(), t(this, qt).unobserve(), t(this, vt).unobserve(), t(this, Gt).unobserve(), t(this, Se).unobserve(), t(this, Q).unobserve(), t(this, V).unobserve(), t(this, ge).unobserve(), t(this, ve).unobserve(), t(this, ye).unobserve(), t(this, Ce).unobserve(), t(this, De).unobserve(), t(this, Pe).unobserve(), t(this, X).unobserve(), t(this, Ee).unobserve(), t(this, Ut).unobserve(), t(this, Y).unobserve(), t(this, yt).unobserve(), t(this, Ct).unobserve(), t(this, we).unobserve(), t(this, Kt).unobserve(), t(this, xe).unobserve(), t(this, Le).unobserve(), t(this, Zt).unobserve(), t(this, jt).unobserve(), pt.unsubscribe(t(this, qe)), pt.unsubscribe(t(this, T)), os.unsubscribe(t(this, T)), o(this, c, Ms).call(this), t(this, Be).disconnect();
720
716
  }
721
717
  }
722
- f = new WeakMap(), be = new WeakMap(), D = new WeakMap(), $t = new WeakMap(), mt = new WeakMap(), St = new WeakMap(), gt = new WeakMap(), J = new WeakMap(), Bt = new WeakMap(), Wt = new WeakMap(), vt = new WeakMap(), Nt = new WeakMap(), me = new WeakMap(), Q = new WeakMap(), V = new WeakMap(), Se = new WeakMap(), ge = new WeakMap(), ve = new WeakMap(), ye = new WeakMap(), De = new WeakMap(), Ce = new WeakMap(), X = new WeakMap(), Pe = new WeakMap(), qt = new WeakMap(), Y = new WeakMap(), yt = new WeakMap(), Ct = new WeakMap(), Ee = new WeakMap(), Gt = new WeakMap(), we = new WeakMap(), xe = new WeakMap(), Ut = new WeakMap(), Kt = new WeakMap(), Zt = new WeakMap(), b = new WeakMap(), Oe = new WeakMap(), G = new WeakMap(), a = new WeakMap(), ds = new WeakMap(), fs = new WeakMap(), L = new WeakMap(), P = new WeakMap(), U = new WeakMap(), it = new WeakMap(), jt = new WeakMap(), rt = new WeakMap(), F = new WeakMap(), z = new WeakMap(), He = new WeakMap(), Pt = new WeakMap(), Et = new WeakMap(), wt = new WeakMap(), K = new WeakMap(), $e = new WeakMap(), Jt = new WeakMap(), Qt = new WeakMap(), Le = new WeakMap(), ht = new WeakMap(), A = new WeakMap(), Be = new WeakMap(), xt = new WeakMap(), ke = new WeakMap(), We = new WeakMap(), c = new WeakSet(), Is = function() {
723
- const e = t(this, D).current, s = t(this, $t).current ? "-reverse" : "";
724
- t(this, b).style.flexDirection = e === "x" ? `row${s}` : `column${s}`, t(this, it).axis = t(this, Nt).current ? "max" : e, t(this, jt).dimension = e === "x" ? "width" : "height", t(this, rt).axis = e, e === "x" ? this.style.touchAction = "pan-y" : e === "y" && (this.style.touchAction = "pan-x"), t(this, A) && t(this, T).call(this);
718
+ f = new WeakMap(), me = new WeakMap(), D = new WeakMap(), Wt = new WeakMap(), mt = new WeakMap(), St = new WeakMap(), gt = new WeakMap(), J = new WeakMap(), Nt = new WeakMap(), qt = new WeakMap(), vt = new WeakMap(), Gt = new WeakMap(), Se = new WeakMap(), Q = new WeakMap(), V = new WeakMap(), ge = new WeakMap(), ve = new WeakMap(), ye = new WeakMap(), Ce = new WeakMap(), De = new WeakMap(), Pe = new WeakMap(), X = new WeakMap(), Ee = new WeakMap(), Ut = new WeakMap(), Y = new WeakMap(), yt = new WeakMap(), Ct = new WeakMap(), we = new WeakMap(), Kt = new WeakMap(), xe = new WeakMap(), Le = new WeakMap(), Zt = new WeakMap(), jt = new WeakMap(), Jt = new WeakMap(), b = new WeakMap(), Oe = new WeakMap(), G = new WeakMap(), a = new WeakMap(), ds = new WeakMap(), fs = new WeakMap(), L = new WeakMap(), P = new WeakMap(), U = new WeakMap(), it = new WeakMap(), Qt = new WeakMap(), rt = new WeakMap(), F = new WeakMap(), z = new WeakMap(), He = new WeakMap(), Pt = new WeakMap(), Et = new WeakMap(), wt = new WeakMap(), K = new WeakMap(), $e = new WeakMap(), xt = new WeakMap(), Xt = new WeakMap(), Lt = new WeakMap(), ht = new WeakMap(), A = new WeakMap(), Be = new WeakMap(), kt = new WeakMap(), ke = new WeakMap(), We = new WeakMap(), c = new WeakSet(), Is = function() {
719
+ const e = t(this, D).current, s = t(this, Wt).current ? "-reverse" : "";
720
+ t(this, b).style.flexDirection = e === "x" ? `row${s}` : `column${s}`, t(this, it).axis = t(this, Gt).current ? "max" : e, t(this, Qt).dimension = e === "x" ? "width" : "height", t(this, rt).axis = e, e === "x" ? this.style.touchAction = "pan-y" : e === "y" && (this.style.touchAction = "pan-x"), t(this, A) && t(this, T).call(this);
725
721
  }, hs = function() {
726
722
  o(this, c, Te).call(this), t(this, Oe).assignedElements().forEach((e, s) => {
727
723
  e instanceof HTMLElement && e.tagName !== "SCRIPT" && t(this, G).push(new ki(e, s, this));
728
724
  }), r(this, a, [...t(this, G)]), t(this, b).style.transform = "", st(this, "scrollSectionsChange", {
729
725
  custom: !0,
730
726
  composed: !0
731
- }), t(this, T).call(this), o(this, c, ae).call(this);
727
+ }), t(this, T).call(this), o(this, c, de).call(this);
732
728
  }, Te = function() {
733
729
  t(this, G).forEach((e) => {
734
730
  e.destroy();
@@ -737,32 +733,32 @@ f = new WeakMap(), be = new WeakMap(), D = new WeakMap(), $t = new WeakMap(), mt
737
733
  composed: !0
738
734
  });
739
735
  }, Es = function() {
740
- t(this, wt) || (r(this, wt, !0), t(this, f).unsubscribe(t(this, ps)), t(this, f).unlistenAnimationFrame(), clearInterval(t(this, $e)), clearInterval(t(this, Jt)), t(this, Qt).unlistenAnimationFrame(), t(this, it).disconnect(), t(this, jt).disconnect(), t(this, rt).disconnect(), t(this, F).disconnect(), t(this, Et) || (this.sections.forEach((e) => {
736
+ t(this, wt) || (r(this, wt, !0), t(this, f).unsubscribe(t(this, ps)), t(this, f).unlistenAnimationFrame(), clearInterval(t(this, $e)), clearInterval(t(this, xt)), t(this, Xt).unlistenAnimationFrame(), t(this, it).disconnect(), t(this, Qt).disconnect(), t(this, rt).disconnect(), t(this, F).disconnect(), t(this, Et) || (this.sections.forEach((e) => {
741
737
  e.unsetTransform();
742
738
  }), t(this, T).call(this)));
743
739
  }, ws = function() {
744
- t(this, wt) && (r(this, wt, !1), t(this, f).subscribe(t(this, ps), -1e4), t(this, f).notify(), t(this, it).connect(), t(this, jt).connect(), t(this, rt).connect(), t(this, X).current && t(this, F).connect());
740
+ t(this, wt) && (r(this, wt, !1), t(this, f).subscribe(t(this, ps), -1e4), t(this, f).notify(), t(this, it).connect(), t(this, Qt).connect(), t(this, rt).connect(), t(this, X).current && t(this, F).connect());
745
741
  }, Ms = function() {
746
- t(this, K) || (r(this, K, !0), clearTimeout(t(this, We)), pt.unsubscribe(t(this, T)), o(this, c, Es).call(this), t(this, b).style.transform = "", t(this, b).style.height = "", t(this, b).style.width = "", this.classList.remove("has-overflow", "start", "end"), this.style.removeProperty("--counter"), t(this, G).length ? o(this, c, Te).call(this) : (t(this, z).reset(), t(this, f).reset()), le.unregister(this));
742
+ t(this, K) || (r(this, K, !0), clearTimeout(t(this, We)), pt.unsubscribe(t(this, T)), o(this, c, Es).call(this), t(this, b).style.transform = "", t(this, b).style.height = "", t(this, b).style.width = "", this.classList.remove("has-overflow", "start", "end"), this.style.removeProperty("--counter"), t(this, G).length ? o(this, c, Te).call(this) : (t(this, z).reset(), t(this, f).reset()), ce.unregister(this));
747
743
  }, Fs = function() {
748
- t(this, K) && (r(this, K, !1), le.register(this), this.tryResplit(), o(this, c, ws).call(this), this.scrollToSection(t(this, Ce).current, {
744
+ t(this, K) && (r(this, K, !1), ce.register(this), this.tryResplit(), o(this, c, ws).call(this), this.scrollToSection(t(this, Pe).current, {
749
745
  behaviour: "instant"
750
746
  }), pt.subscribe(t(this, T), Ls.SCROLL));
751
747
  }, T = new WeakMap(), ps = new WeakMap(), Ys = function(e) {
752
748
  let s = t(this, z).current;
753
749
  return t(this, V).current ? s = gi(e, t(this, a).length) : s = js(e, 0, this.limit), s;
754
750
  }, Ne = new WeakMap(), bs = new WeakMap(), Ts = function(e = 1) {
755
- t(this, qt).current && (t(this, F).direction = e), t(this, X).current && t(this, F).pauseAndContinue(
756
- t(this, Pe).current,
751
+ t(this, Ut).current && (t(this, F).direction = e), t(this, X).current && t(this, F).pauseAndContinue(
752
+ t(this, Ee).current,
757
753
  this.sectionalCSSProperty.current
758
754
  );
759
755
  }, Rs = function(e = "current") {
760
756
  if (t(this, V).current && t(this, a).length) {
761
- const s = t(this, f)[e] % Math.round(t(this, P) + t(this, L) + t(this, U));
757
+ const s = Math.floor(t(this, f)[e]) % Math.floor(t(this, P) + t(this, L) + t(this, U));
762
758
  return s < 0 ? t(this, P) + s + t(this, L) + t(this, U) : s;
763
759
  } else
764
760
  return t(this, f)[e];
765
- }, ae = function() {
761
+ }, de = function() {
766
762
  if (t(this, a).length) {
767
763
  const e = t(this, z).current + t(this, yt).current;
768
764
  if (e === t(this, yt).current ? r(this, ht, "start") : e === this.limit ? r(this, ht, "end") : r(this, ht, null), st(this, "scrollLine", {
@@ -770,17 +766,17 @@ f = new WeakMap(), be = new WeakMap(), D = new WeakMap(), $t = new WeakMap(), mt
770
766
  }), t(this, Y).current) {
771
767
  this.classList.remove("end", "start"), t(this, ht) && this.classList.add(t(this, ht));
772
768
  const s = t(this, Q).current + t(this, Ct).current;
773
- r(this, xt, []), t(this, a).forEach((h, u) => {
769
+ r(this, kt, []), t(this, a).forEach((h, u) => {
774
770
  h.setCurrentIndex(null), h.setCurrentIndexArc(null), h.setCurrentIndexArcAbs(null), h.setMiddle(!1);
775
771
  const g = e - this.limit - 1 + t(this, Ct).current, v = e + s, C = this.sections.length - v;
776
- u >= e && u < v || u <= g ? (h.setMark("current"), t(this, xt).push(h)) : u >= v && u < v + C / 2 || u <= g + s ? h.setMark("next") : h.setMark("previous");
772
+ u >= e && u < v || u <= g ? (h.setMark("current"), t(this, kt).push(h)) : u >= v && u < v + C / 2 || u <= g + s ? h.setMark("next") : h.setMark("previous");
777
773
  }), t(this, ms).call(this);
778
774
  }
779
775
  }
780
776
  }, _s = function() {
781
777
  if (t(this, Y).current) {
782
- const e = Math.floor(t(this, xt).length / 2);
783
- t(this, xt).sort((s, h) => s.element.getBoundingClientRect().left - h.element.getBoundingClientRect().left), t(this, xt).forEach((s, h) => {
778
+ const e = Math.floor(t(this, kt).length / 2);
779
+ t(this, kt).sort((s, h) => s.element.getBoundingClientRect().left - h.element.getBoundingClientRect().left), t(this, kt).forEach((s, h) => {
784
780
  const u = h - e;
785
781
  s.setCurrentIndex(h), s.setCurrentIndexArc(u), s.setCurrentIndexArcAbs(Math.abs(u)), s.setMiddle(h === e);
786
782
  }), t(this, a).forEach((s, h) => {
@@ -794,9 +790,9 @@ f = new WeakMap(), be = new WeakMap(), D = new WeakMap(), $t = new WeakMap(), mt
794
790
  const g = t(this, f).direction;
795
791
  for (let v = 0; v < t(this, a).length; v++) {
796
792
  const C = t(this, a)[v];
797
- let ce = t(this, Le) ? C.size * g * -1 * 0.4 : 0, Me = C.position;
793
+ let ue = t(this, Lt) ? C.size * g * -1 * 0.4 : 0, Me = C.position;
798
794
  this.overscroll && Me === 0 && e && (Me = t(this, Pt));
799
- let rs = Math.abs(Me + ce - s);
795
+ let rs = Math.abs(Me + ue - s);
800
796
  rs <= h && (h = rs, u = v);
801
797
  }
802
798
  return u;
@@ -817,23 +813,23 @@ class is extends HTMLElement {
817
813
  }
818
814
  }
819
815
  Ss = new WeakMap();
820
- var Xt, O, Lt, kt, Ge, Ue, Yt, Ke, gs, vs;
816
+ var Yt, O, Vt, zt, Ge, Ue, _t, Ke, gs, vs;
821
817
  class zi extends is {
822
818
  constructor() {
823
819
  super();
824
- i(this, Xt, null);
820
+ i(this, Yt, null);
825
821
  i(this, O, null);
826
- i(this, Lt, !1);
827
- i(this, kt, 0);
822
+ i(this, Vt, !1);
823
+ i(this, zt, 0);
828
824
  i(this, Ge, 0);
829
825
  i(this, Ue, 0);
830
- i(this, Yt, () => {
831
- r(this, Lt, this.offsetWidth > this.offsetHeight);
832
- const e = t(this, Lt) ? this.offsetWidth : this.offsetHeight;
833
- r(this, kt, e / ((this.scrollElement.scrollSize + this.scrollElement.viewportSize) / e)), r(this, kt, Math.max(t(this, kt), 30)), t(this, Lt) ? (t(this, O).style.width = t(this, kt) + "px", t(this, O).style.height = "100%") : (t(this, O).style.width = "100%", t(this, O).style.height = t(this, kt) + "px"), r(this, Ge, e - t(this, kt)), this.scrollElement.scrollSize <= 0 ? this.style.display = "none" : this.style.display = "", t(this, Ke).call(this);
826
+ i(this, _t, () => {
827
+ r(this, Vt, this.offsetWidth > this.offsetHeight);
828
+ const e = t(this, Vt) ? this.offsetWidth : this.offsetHeight;
829
+ r(this, zt, e / ((this.scrollElement.scrollSize + this.scrollElement.viewportSize) / e)), r(this, zt, Math.max(t(this, zt), 30)), t(this, Vt) ? (t(this, O).style.width = t(this, zt) + "px", t(this, O).style.height = "100%") : (t(this, O).style.width = "100%", t(this, O).style.height = t(this, zt) + "px"), r(this, Ge, e - t(this, zt)), this.scrollElement.scrollSize <= 0 ? this.style.display = "none" : this.style.display = "", t(this, Ke).call(this);
834
830
  });
835
831
  i(this, Ke, () => {
836
- r(this, Ue, this.scrollElement.currentProgress * t(this, Ge)), t(this, Lt) ? t(this, O).style.transform = `translate3d(${t(this, Ue)}px, 0px, 0px)` : t(this, O).style.transform = `translate3d(0px, ${t(this, Ue)}px, 0px)`;
832
+ r(this, Ue, this.scrollElement.currentProgress * t(this, Ge)), t(this, Vt) ? t(this, O).style.transform = `translate3d(${t(this, Ue)}px, 0px, 0px)` : t(this, O).style.transform = `translate3d(0px, ${t(this, Ue)}px, 0px)`;
837
833
  });
838
834
  i(this, gs, () => {
839
835
  this.setAttribute("axis", this.scrollElement.axisCSSProperty.current);
@@ -841,14 +837,14 @@ class zi extends is {
841
837
  i(this, vs, (e) => {
842
838
  document.documentElement.classList.add("grabbing"), xi(
843
839
  (u) => {
844
- const g = t(this, Lt) ? u.x : u.y, v = this.scrollElement.distance / t(this, Ge), C = (g - h) * v;
840
+ const g = t(this, Vt) ? u.x : u.y, v = this.scrollElement.distance / t(this, Ge), C = (g - h) * v;
845
841
  this.scrollElement.setPosition(s + C);
846
842
  },
847
843
  () => {
848
844
  document.documentElement.classList.remove("grabbing");
849
845
  }
850
846
  );
851
- const s = this.scrollElement.damped.target, h = t(this, Lt) ? e.x : e.y;
847
+ const s = this.scrollElement.damped.target, h = t(this, Vt) ? e.x : e.y;
852
848
  });
853
849
  if (q) {
854
850
  const e = this.attachShadow({ mode: "open" });
@@ -882,7 +878,7 @@ class zi extends is {
882
878
  touchAction: "none"
883
879
  }
884
880
  })
885
- ], r(this, Xt, document.createElement("slot")), t(this, Xt).innerHTML = '<div class="default-thumb"></div>', e.appendChild(t(this, Xt));
881
+ ], r(this, Yt, document.createElement("slot")), t(this, Yt).innerHTML = '<div class="default-thumb"></div>', e.appendChild(t(this, Yt));
886
882
  }
887
883
  }
888
884
  get thumbElement() {
@@ -890,14 +886,14 @@ class zi extends is {
890
886
  }
891
887
  connectedCallback() {
892
888
  super.connectedCallback(), this.setAttribute("drag-dead-zone", "");
893
- const e = t(this, Xt).assignedElements()[0] || t(this, Xt).firstElementChild;
894
- r(this, O, e), t(this, O).addEventListener("pointerdown", t(this, vs)), pt.subscribe(t(this, Yt), Ls.SCROLL), os.subscribe(this, t(this, Yt)), os.subscribe(this.scrollElement, t(this, Yt)), this.scrollElement.onScroll(t(this, Ke)), this.scrollElement.axisCSSProperty.subscribe(t(this, gs));
889
+ const e = t(this, Yt).assignedElements()[0] || t(this, Yt).firstElementChild;
890
+ r(this, O, e), t(this, O).addEventListener("pointerdown", t(this, vs)), pt.subscribe(t(this, _t), Ls.SCROLL), os.subscribe(this, t(this, _t)), os.subscribe(this.scrollElement, t(this, _t)), this.scrollElement.onScroll(t(this, Ke)), this.scrollElement.axisCSSProperty.subscribe(t(this, gs));
895
891
  }
896
892
  disconnectedCallback() {
897
- this.removeAttribute("drag-dead-zone"), this.style.display = "", t(this, O).removeEventListener("pointerdown", t(this, vs)), pt.unsubscribe(t(this, Yt)), os.unsubscribe(t(this, Yt)), this.scrollElement.offScroll(t(this, Ke)), this.scrollElement.axisCSSProperty.unsubscribe(t(this, gs));
893
+ this.removeAttribute("drag-dead-zone"), this.style.display = "", t(this, O).removeEventListener("pointerdown", t(this, vs)), pt.unsubscribe(t(this, _t)), os.unsubscribe(t(this, _t)), this.scrollElement.offScroll(t(this, Ke)), this.scrollElement.axisCSSProperty.unsubscribe(t(this, gs));
898
894
  }
899
895
  }
900
- Xt = new WeakMap(), O = new WeakMap(), Lt = new WeakMap(), kt = new WeakMap(), Ge = new WeakMap(), Ue = new WeakMap(), Yt = new WeakMap(), Ke = new WeakMap(), gs = new WeakMap(), vs = new WeakMap();
896
+ Yt = new WeakMap(), O = new WeakMap(), Vt = new WeakMap(), zt = new WeakMap(), Ge = new WeakMap(), Ue = new WeakMap(), _t = new WeakMap(), Ke = new WeakMap(), gs = new WeakMap(), vs = new WeakMap();
901
897
  q && !customElements.get("e-scrollbar") && customElements.define("e-scrollbar", zi);
902
898
  var Ze, je, Je;
903
899
  class Bs extends is {
@@ -944,68 +940,68 @@ class Ai extends Bs {
944
940
  }
945
941
  Qe = new WeakMap();
946
942
  q && !customElements.get("e-scroll-set-button") && customElements.define("e-scroll-set-button", Ai);
947
- var Vt, Xe;
943
+ var At, Xe;
948
944
  class Ii extends Bs {
949
945
  constructor() {
950
946
  super(...arguments);
951
- i(this, Vt, new l(this, "--step", 1));
947
+ i(this, At, new l(this, "--step", 1));
952
948
  i(this, Xe, () => {
953
- this.scrollElement.loopCSSProperty.current ? this.removeAttribute("disabled") : t(this, Vt).current > 0 && this.scrollElement.scrollLine === "end" || t(this, Vt).current < 0 && this.scrollElement.scrollLine === "start" ? this.setAttribute("disabled", "") : this.removeAttribute("disabled");
949
+ this.scrollElement.loopCSSProperty.current ? this.removeAttribute("disabled") : t(this, At).current > 0 && this.scrollElement.scrollLine === "end" || t(this, At).current < 0 && this.scrollElement.scrollLine === "start" ? this.setAttribute("disabled", "") : this.removeAttribute("disabled");
954
950
  });
955
951
  }
956
952
  handleClick(e) {
957
- this.scrollElement.shiftSections(t(this, Vt).current, e);
953
+ this.scrollElement.shiftSections(t(this, At).current, e);
958
954
  }
959
955
  connectedCallback() {
960
- super.connectedCallback(), this.scrollElement && (t(this, Vt).subscribe(() => {
956
+ super.connectedCallback(), this.scrollElement && (t(this, At).subscribe(() => {
961
957
  t(this, Xe).call(this);
962
- }), t(this, Vt).observe(), this.scrollElement.addEventListener(
958
+ }), t(this, At).observe(), this.scrollElement.addEventListener(
963
959
  "scrollLine",
964
960
  t(this, Xe)
965
961
  ), t(this, Xe).call(this));
966
962
  }
967
963
  disconnectedCallback() {
968
- super.disconnectedCallback(), t(this, Vt).close(), this.removeAttribute("disabled");
964
+ super.disconnectedCallback(), t(this, At).close(), this.removeAttribute("disabled");
969
965
  }
970
966
  }
971
- Vt = new WeakMap(), Xe = new WeakMap();
967
+ At = new WeakMap(), Xe = new WeakMap();
972
968
  q && !customElements.get("e-scroll-step-button") && customElements.define("e-scroll-step-button", Ii);
973
- var nt, _t, Ye, ys, Cs, _e;
969
+ var nt, te, Ye, ys, Cs, _e;
974
970
  class Mi {
975
971
  constructor(n, e, s) {
976
972
  i(this, nt, null);
977
- i(this, _t, null);
973
+ i(this, te, null);
978
974
  i(this, Ye, null);
979
975
  i(this, ys, null);
980
976
  i(this, Cs, () => {
981
- t(this, _t).scrollToSection(t(this, Ye), {
977
+ t(this, te).scrollToSection(t(this, Ye), {
982
978
  behaviour: t(this, ys)
983
979
  });
984
980
  });
985
981
  i(this, _e, () => {
986
982
  t(this, nt).classList.toggle(
987
983
  "current",
988
- t(this, _t).counter.current === t(this, Ye)
984
+ t(this, te).counter.current === t(this, Ye)
989
985
  );
990
986
  });
991
- q && (r(this, nt, document.createElement("button")), t(this, nt).setAttribute("aria-label", `Go to section ${e + 1}`), r(this, _t, n), r(this, ys, s), r(this, Ye, e), t(this, nt).addEventListener("click", t(this, Cs)), t(this, _t).counter.subscribe(t(this, _e)), t(this, _e).call(this));
987
+ q && (r(this, nt, document.createElement("button")), t(this, nt).setAttribute("aria-label", `Go to section ${e + 1}`), r(this, te, n), r(this, ys, s), r(this, Ye, e), t(this, nt).addEventListener("click", t(this, Cs)), t(this, te).counter.subscribe(t(this, _e)), t(this, _e).call(this));
992
988
  }
993
989
  get element() {
994
990
  return t(this, nt);
995
991
  }
996
992
  destroy() {
997
- t(this, nt).removeEventListener("click", t(this, Cs)), t(this, _t).counter.unsubscribe(t(this, _e)), t(this, nt).remove();
993
+ t(this, nt).removeEventListener("click", t(this, Cs)), t(this, te).counter.unsubscribe(t(this, _e)), t(this, nt).remove();
998
994
  }
999
995
  }
1000
- nt = new WeakMap(), _t = new WeakMap(), Ye = new WeakMap(), ys = new WeakMap(), Cs = new WeakMap(), _e = new WeakMap();
1001
- var Ve, te, ot;
996
+ nt = new WeakMap(), te = new WeakMap(), Ye = new WeakMap(), ys = new WeakMap(), Cs = new WeakMap(), _e = new WeakMap();
997
+ var Ve, ee, ot;
1002
998
  class Fi extends is {
1003
999
  constructor() {
1004
1000
  super(...arguments);
1005
1001
  i(this, Ve, null);
1006
- i(this, te, []);
1002
+ i(this, ee, []);
1007
1003
  i(this, ot, xs(() => {
1008
- t(this, te).forEach((s) => s.destroy()), r(this, te, []);
1004
+ t(this, ee).forEach((s) => s.destroy()), r(this, ee, []);
1009
1005
  let e = 0;
1010
1006
  this.scrollElement.loopCSSProperty.current ? e = this.scrollElement.visibleSections.length : e = this.scrollElement.visibleSections.length - Math.max(this.scrollElement.sectionsInViewCSSProperty.current - 1, 0);
1011
1007
  for (let s = 0; s < e; s++) {
@@ -1014,7 +1010,7 @@ class Fi extends is {
1014
1010
  s,
1015
1011
  this.getAttribute("behaviour") || "smooth"
1016
1012
  );
1017
- t(this, Ve).appendChild(h.element), t(this, te).push(h);
1013
+ t(this, Ve).appendChild(h.element), t(this, ee).push(h);
1018
1014
  }
1019
1015
  }, 0));
1020
1016
  }
@@ -1032,34 +1028,34 @@ class Fi extends is {
1032
1028
  t(this, ot)
1033
1029
  ), this.scrollElement.sectionsInViewCSSProperty.unsubscribe(
1034
1030
  t(this, ot)
1035
- ), this.scrollElement.loopCSSProperty.unsubscribe(t(this, ot)), t(this, te).forEach((e) => e.destroy()), r(this, te, []), t(this, Ve).remove();
1031
+ ), this.scrollElement.loopCSSProperty.unsubscribe(t(this, ot)), t(this, ee).forEach((e) => e.destroy()), r(this, ee, []), t(this, Ve).remove();
1036
1032
  }
1037
1033
  }
1038
- Ve = new WeakMap(), te = new WeakMap(), ot = new WeakMap();
1034
+ Ve = new WeakMap(), ee = new WeakMap(), ot = new WeakMap();
1039
1035
  q && !customElements.get("e-scroll-bullet-buttons") && customElements.define("e-scroll-bullet-buttons", Fi);
1040
- var ee, se, ie, re, zt, At, It, Mt, I, H, $, B, Ft, k, lt, ct, _, Tt, ze, ut, at, dt, w, W, N, tt, et, Z, ts, S, Rt, he, es, x, ft, R, M, j, Ae, Dt, y, ne, m, ti, ei, si, ii, ri, hi, ss, Ie, Ds, de, ni, oi, Os;
1036
+ var se, ie, re, he, It, Mt, Ft, Tt, I, H, $, B, Rt, k, lt, ct, _, Dt, ze, ut, at, dt, w, W, N, tt, et, Z, ts, S, Ot, ne, es, x, ft, R, M, j, Ae, Ht, y, oe, m, ti, ei, si, ii, ri, hi, ss, Ie, Ds, fe, ni, oi, Os;
1041
1037
  class Ti extends is {
1042
1038
  constructor() {
1043
1039
  super(...arguments);
1044
1040
  i(this, m);
1045
- i(this, ee);
1046
1041
  i(this, se);
1047
1042
  i(this, ie);
1048
1043
  i(this, re);
1049
- i(this, zt);
1050
- i(this, At);
1044
+ i(this, he);
1051
1045
  i(this, It);
1052
1046
  i(this, Mt);
1047
+ i(this, Ft);
1048
+ i(this, Tt);
1053
1049
  i(this, I);
1054
1050
  i(this, H);
1055
1051
  i(this, $);
1056
1052
  i(this, B);
1057
- i(this, Ft);
1053
+ i(this, Rt);
1058
1054
  i(this, k);
1059
1055
  i(this, lt);
1060
1056
  i(this, ct);
1061
1057
  i(this, _);
1062
- i(this, Tt);
1058
+ i(this, Dt);
1063
1059
  i(this, ze);
1064
1060
  i(this, ut);
1065
1061
  i(this, at);
@@ -1072,8 +1068,8 @@ class Ti extends is {
1072
1068
  i(this, Z);
1073
1069
  i(this, ts);
1074
1070
  i(this, S);
1075
- i(this, Rt);
1076
- i(this, he);
1071
+ i(this, Ot);
1072
+ i(this, ne);
1077
1073
  i(this, es);
1078
1074
  i(this, x);
1079
1075
  i(this, ft);
@@ -1081,19 +1077,19 @@ class Ti extends is {
1081
1077
  i(this, M);
1082
1078
  i(this, j);
1083
1079
  i(this, Ae);
1084
- i(this, Dt);
1080
+ i(this, Ht);
1085
1081
  i(this, y);
1086
- i(this, ne);
1082
+ i(this, oe);
1087
1083
  i(this, ss);
1088
1084
  i(this, Ie);
1089
- r(this, ee, new l(this, "--damping", 20)), r(this, se, new l(this, "--mass", 0)), r(this, ie, new l(this, "--stiffness", 0)), r(this, re, new l(this, "--target", "")), r(this, zt, new l(this, "--disabled", !1)), r(this, At, new l(
1085
+ r(this, se, new l(this, "--damping", 20)), r(this, ie, new l(this, "--mass", 0)), r(this, re, new l(this, "--stiffness", 0)), r(this, he, new l(this, "--target", "")), r(this, It, new l(this, "--disabled", !1)), r(this, Mt, new l(
1090
1086
  this,
1091
1087
  "--distance-offset",
1092
1088
  0,
1093
1089
  { rawValueCheck: !1 }
1094
- )), r(this, It, new l(this, "--start-offset", 0, {
1090
+ )), r(this, Ft, new l(this, "--start-offset", 0, {
1095
1091
  rawValueCheck: !1
1096
- })), r(this, Mt, new l(
1092
+ })), r(this, Tt, new l(
1097
1093
  this,
1098
1094
  "--capture-once",
1099
1095
  !1
@@ -1105,7 +1101,7 @@ class Ti extends is {
1105
1101
  this,
1106
1102
  "--captured-from-finish",
1107
1103
  ""
1108
- )), r(this, Ft, new l(
1104
+ )), r(this, Rt, new l(
1109
1105
  this,
1110
1106
  "--released-from-start",
1111
1107
  ""
@@ -1117,7 +1113,7 @@ class Ti extends is {
1117
1113
  this,
1118
1114
  "--progress-arc-var",
1119
1115
  ""
1120
- )), r(this, Tt, new l(
1116
+ )), r(this, Dt, new l(
1121
1117
  this,
1122
1118
  "--progress-arc-mult",
1123
1119
  1
@@ -1125,15 +1121,15 @@ class Ti extends is {
1125
1121
  this,
1126
1122
  "--animation-var-type",
1127
1123
  "target"
1128
- )), r(this, ut, new l(this, "--distance-var", "")), r(this, at, new l(this, "--start-var", "")), r(this, dt, new l(this, "--finish-var", "")), r(this, w, new ue(!1)), r(this, W, new ue(!1)), r(this, N, new ue(!1)), r(this, tt, new ue(!1)), r(this, et, new ue(!1)), r(this, Z, new ue(!1)), r(this, ts, []), r(this, S, this), r(this, Rt, 0), r(this, he, 0), r(this, es, 0), r(this, x, new Xs(0, { order: Qs.SEGMENT, min: 0, max: 1 })), r(this, ft, 0), r(this, R, 0), r(this, M, 0), r(this, j, 0), r(this, Ae, !1), r(this, Dt, !1), r(this, y, !0), r(this, ne, !1), this.resize = () => {
1129
- r(this, he, this.scrollElement.vertical ? this.offsetHeight : this.offsetWidth), r(this, Rt, this.scrollElement.vertical ? ls(this, this.scrollElement) : cs(this, this.scrollElement));
1124
+ )), r(this, ut, new l(this, "--distance-var", "")), r(this, at, new l(this, "--start-var", "")), r(this, dt, new l(this, "--finish-var", "")), r(this, w, new ae(!1)), r(this, W, new ae(!1)), r(this, N, new ae(!1)), r(this, tt, new ae(!1)), r(this, et, new ae(!1)), r(this, Z, new ae(!1)), r(this, ts, []), r(this, S, this), r(this, Ot, 0), r(this, ne, 0), r(this, es, 0), r(this, x, new Xs(0, { order: Qs.SEGMENT, min: 0, max: 1 })), r(this, ft, 0), r(this, R, 0), r(this, M, 0), r(this, j, 0), r(this, Ae, !1), r(this, Ht, !1), r(this, y, !0), r(this, oe, !1), this.resize = () => {
1125
+ r(this, ne, this.scrollElement.vertical ? this.offsetHeight : this.offsetWidth), r(this, Ot, this.scrollElement.vertical ? ls(this, this.scrollElement) : cs(this, this.scrollElement));
1130
1126
  const e = bi(
1131
1127
  this,
1132
1128
  this.scrollElement.vertical ? "top" : "left"
1133
1129
  );
1134
- r(this, Rt, t(this, Rt) - e), r(this, R, this.getStart()), r(this, M, this.getDistance()), r(this, R, t(this, R) + t(this, It).current), r(this, M, t(this, M) + t(this, At).current), r(this, j, t(this, R) + t(this, M)), this.scrollElement.currentScrollValue > t(this, j) && !t(this, w).current && !t(this, W).current && (t(this, w).current = !0), this.setVar(t(this, at).current, t(this, R)), this.setVar(t(this, dt).current, t(this, j)), this.setVar(t(this, ut).current, t(this, M)), t(this, x).max = t(this, M), r(this, Ae, !0), t(this, Ie).call(this);
1130
+ r(this, Ot, t(this, Ot) - e), r(this, R, this.getStart()), r(this, M, this.getDistance()), r(this, R, t(this, R) + t(this, Ft).current), r(this, M, t(this, M) + t(this, Mt).current), r(this, j, t(this, R) + t(this, M)), this.scrollElement.currentScrollValue > t(this, j) && !t(this, w).current && !t(this, W).current && (t(this, w).current = !0), this.setVar(t(this, at).current, t(this, R)), this.setVar(t(this, dt).current, t(this, j)), this.setVar(t(this, ut).current, t(this, M)), t(this, x).max = t(this, M), r(this, Ae, !0), t(this, Ie).call(this);
1135
1131
  }, this.findAnotherScrollEntries = xs(() => {
1136
- const e = le.getAll(this).reverse();
1132
+ const e = ce.getAll(this).reverse();
1137
1133
  let s = 0;
1138
1134
  e.forEach((h, u) => {
1139
1135
  h.element === this.scrollElement && (s = u);
@@ -1145,13 +1141,13 @@ class Ti extends is {
1145
1141
  });
1146
1142
  }
1147
1143
  get distanceOffsetCSSProperty() {
1148
- return t(this, At);
1144
+ return t(this, Mt);
1149
1145
  }
1150
1146
  get startOffsetCSSProperty() {
1151
- return t(this, It);
1147
+ return t(this, Ft);
1152
1148
  }
1153
1149
  get captureOnceCSSProperty() {
1154
- return t(this, Mt);
1150
+ return t(this, Tt);
1155
1151
  }
1156
1152
  get capturedCSSProperty() {
1157
1153
  return t(this, I);
@@ -1166,7 +1162,7 @@ class Ti extends is {
1166
1162
  return t(this, B);
1167
1163
  }
1168
1164
  get releasedFromStartCSSProperty() {
1169
- return t(this, Ft);
1165
+ return t(this, Rt);
1170
1166
  }
1171
1167
  get releasedFromFinishCSSProperty() {
1172
1168
  return t(this, k);
@@ -1181,7 +1177,7 @@ class Ti extends is {
1181
1177
  return t(this, _);
1182
1178
  }
1183
1179
  get progressArcMultCSSProperty() {
1184
- return t(this, Tt);
1180
+ return t(this, Dt);
1185
1181
  }
1186
1182
  get animationVarTypeCSSProperty() {
1187
1183
  return t(this, ze);
@@ -1196,19 +1192,19 @@ class Ti extends is {
1196
1192
  return t(this, dt);
1197
1193
  }
1198
1194
  get disabledCSSProperty() {
1199
- return t(this, zt);
1195
+ return t(this, It);
1200
1196
  }
1201
1197
  get dampingCSSProperty() {
1202
- return t(this, ee);
1198
+ return t(this, se);
1203
1199
  }
1204
1200
  get massCSSProperty() {
1205
- return t(this, se);
1201
+ return t(this, ie);
1206
1202
  }
1207
1203
  get stiffnessCSSProperty() {
1208
- return t(this, ie);
1204
+ return t(this, re);
1209
1205
  }
1210
1206
  get targetCSSProperty() {
1211
- return t(this, re);
1207
+ return t(this, he);
1212
1208
  }
1213
1209
  get isCaptured() {
1214
1210
  return t(this, w);
@@ -1229,10 +1225,10 @@ class Ti extends is {
1229
1225
  return t(this, Z);
1230
1226
  }
1231
1227
  get directionPosition() {
1232
- return t(this, Rt);
1228
+ return t(this, Ot);
1233
1229
  }
1234
1230
  get directionSize() {
1235
- return t(this, he);
1231
+ return t(this, ne);
1236
1232
  }
1237
1233
  get passed() {
1238
1234
  return t(this, x);
@@ -1241,7 +1237,7 @@ class Ti extends is {
1241
1237
  return t(this, ft);
1242
1238
  }
1243
1239
  get progressArc() {
1244
- return Math.abs(Math.cos(t(this, ft) * Math.PI)) * t(this, Tt).current;
1240
+ return Math.abs(Math.cos(t(this, ft) * Math.PI)) * t(this, Dt).current;
1245
1241
  }
1246
1242
  get start() {
1247
1243
  return t(this, R);
@@ -1253,7 +1249,7 @@ class Ti extends is {
1253
1249
  return t(this, M);
1254
1250
  }
1255
1251
  get isCapturedOnce() {
1256
- return t(this, Dt);
1252
+ return t(this, Ht);
1257
1253
  }
1258
1254
  get isDisabled() {
1259
1255
  return t(this, y);
@@ -1264,14 +1260,14 @@ class Ti extends is {
1264
1260
  e += u.value;
1265
1261
  });
1266
1262
  const s = e - t(this, R);
1267
- t(this, ne) || r(this, ne, t(this, x).previous ? Math.abs(t(this, x).previous - s) > 1e3 : !1), t(this, x).set(s);
1263
+ t(this, oe) || r(this, oe, t(this, x).previous ? Math.abs(t(this, x).previous - s) > 1e3 : !1), t(this, x).set(s);
1268
1264
  const h = Math.round(e);
1269
1265
  t(this, w).current && (h >= t(this, R) ? t(this, N).current || o(this, m, si).call(this) : t(this, N).current && !t(this, tt).current && o(this, m, ri).call(this), h < t(this, j) ? t(this, Z).current && !t(this, et).current && o(this, m, ii).call(this) : t(this, N).current && !t(this, Z).current && o(this, m, hi).call(this)), h >= t(this, R) && h < t(this, j) ? t(this, w).current || o(this, m, ti).call(this) : t(this, w).current && (t(this, x).set(
1270
1266
  mi(t(this, M) / 2, t(this, x).target, 0, t(this, M))
1271
- ), o(this, m, ei).call(this)), t(this, Dt) && t(this, Mt).current && (t(this, I).current && t(this, S).classList.add(t(this, I).current), r(this, y, !0));
1267
+ ), o(this, m, ei).call(this)), t(this, Ht) && t(this, Tt).current && (t(this, I).current && t(this, S).classList.add(t(this, I).current), r(this, y, !0));
1272
1268
  }
1273
1269
  disable() {
1274
- this.style.cssText = "", r(this, Rt, 0), r(this, he, 0), t(this, x).reset(), r(this, ft, 0), r(this, R, 0), r(this, M, 0), r(this, j, 0), r(this, Ae, !1), t(this, w).current = !1, t(this, W).current = !1, t(this, N).current = !1, t(this, tt).current = !1, t(this, et).current = !1, t(this, Z).current = !1, r(this, Dt, !1), r(this, y, !0), o(this, m, Os).call(this);
1270
+ this.style.cssText = "", r(this, Ot, 0), r(this, ne, 0), t(this, x).reset(), r(this, ft, 0), r(this, R, 0), r(this, M, 0), r(this, j, 0), r(this, Ae, !1), t(this, w).current = !1, t(this, W).current = !1, t(this, N).current = !1, t(this, tt).current = !1, t(this, et).current = !1, t(this, Z).current = !1, r(this, Ht, !1), r(this, y, !0), o(this, m, Os).call(this);
1275
1271
  }
1276
1272
  enable() {
1277
1273
  r(this, y, !1);
@@ -1307,35 +1303,35 @@ class Ti extends is {
1307
1303
  composed: !0,
1308
1304
  custom: !0
1309
1305
  });
1310
- }), t(this, ee).observe(), t(this, se).observe(), t(this, ie).observe(), t(this, re).observe(), t(this, zt).observe(), t(this, At).observe(), t(this, It).observe(), t(this, Mt).observe(), t(this, I).observe(), t(this, H).observe(), t(this, $).observe(), t(this, B).observe(), t(this, Ft).observe(), t(this, k).observe(), t(this, lt).observe(), t(this, ct).observe(), t(this, _).observe(), t(this, Tt).observe(), t(this, ze).observe(), t(this, ut).observe(), t(this, at).observe(), t(this, dt).observe();
1306
+ }), t(this, se).observe(), t(this, ie).observe(), t(this, re).observe(), t(this, he).observe(), t(this, It).observe(), t(this, Mt).observe(), t(this, Ft).observe(), t(this, Tt).observe(), t(this, I).observe(), t(this, H).observe(), t(this, $).observe(), t(this, B).observe(), t(this, Rt).observe(), t(this, k).observe(), t(this, lt).observe(), t(this, ct).observe(), t(this, _).observe(), t(this, Dt).observe(), t(this, ze).observe(), t(this, ut).observe(), t(this, at).observe(), t(this, dt).observe();
1311
1307
  let e = !1;
1312
- this.findAnotherScrollEntries(), t(this, zt).current || this.enable(), t(this, ee).subscribe((s) => {
1308
+ this.findAnotherScrollEntries(), t(this, It).current || this.enable(), t(this, se).subscribe((s) => {
1313
1309
  t(this, x).damping = s.current;
1314
- }), t(this, se).subscribe((s) => {
1315
- t(this, x).mass = s.current;
1316
1310
  }), t(this, ie).subscribe((s) => {
1317
- t(this, x).stiffness = s.current;
1311
+ t(this, x).mass = s.current;
1318
1312
  }), t(this, re).subscribe((s) => {
1313
+ t(this, x).stiffness = s.current;
1314
+ }), t(this, he).subscribe((s) => {
1319
1315
  s.previous && o(this, m, Os).call(this), s.current ? s.current === "parent" ? r(this, S, this.parentElement || this) : r(this, S, document.querySelector(s.current) || this) : r(this, S, this);
1320
- }), t(this, zt).subscribe((s) => {
1316
+ }), t(this, It).subscribe((s) => {
1321
1317
  s.current && !s.previous ? this.disable() : !s.current && s.previous && (this.resize(), this.enable());
1322
- }), t(this, It).subscribe(() => {
1318
+ }), t(this, Ft).subscribe(() => {
1323
1319
  e && !t(this, y) && this.resize();
1324
- }), t(this, At).subscribe(() => {
1320
+ }), t(this, Mt).subscribe(() => {
1325
1321
  e && !t(this, y) && this.resize();
1326
1322
  }), t(this, I).subscribe((s) => {
1327
- o(this, m, de).call(this, s);
1323
+ o(this, m, fe).call(this, s);
1328
1324
  }), t(this, $).subscribe((s) => {
1329
- o(this, m, de).call(this, s);
1325
+ o(this, m, fe).call(this, s);
1330
1326
  }), t(this, B).subscribe((s) => {
1331
- o(this, m, de).call(this, s);
1327
+ o(this, m, fe).call(this, s);
1332
1328
  }), t(this, H).subscribe((s) => {
1333
- o(this, m, de).call(this, s);
1334
- }), t(this, Ft).subscribe((s) => {
1335
- o(this, m, de).call(this, s);
1329
+ o(this, m, fe).call(this, s);
1330
+ }), t(this, Rt).subscribe((s) => {
1331
+ o(this, m, fe).call(this, s);
1336
1332
  }), t(this, k).subscribe((s) => {
1337
- o(this, m, de).call(this, s);
1338
- }), t(this, Mt).subscribe((s) => {
1333
+ o(this, m, fe).call(this, s);
1334
+ }), t(this, Tt).subscribe((s) => {
1339
1335
  t(this, y) || !s.current && s.previous && (this.resize(), this.enable());
1340
1336
  }), t(this, lt).subscribe((s) => {
1341
1337
  t(this, y) || (this.removeVar(s.previous), this.setVar(s.current, this.passed.current));
@@ -1343,7 +1339,7 @@ class Ti extends is {
1343
1339
  t(this, y) || (this.removeVar(s.previous), this.setVar(s.current, t(this, ft)));
1344
1340
  }), t(this, _).subscribe((s) => {
1345
1341
  t(this, y) || (this.removeVar(s.previous), this.setVar(s.current, this.progressArc));
1346
- }), t(this, Tt).subscribe((s) => {
1342
+ }), t(this, Dt).subscribe((s) => {
1347
1343
  t(this, y) || o(this, m, Ds).call(this);
1348
1344
  }), t(this, at).subscribe((s) => {
1349
1345
  t(this, y) || (this.removeVar(s.previous), this.setVar(s.current, t(this, R)));
@@ -1352,8 +1348,8 @@ class Ti extends is {
1352
1348
  }), t(this, ut).subscribe((s) => {
1353
1349
  t(this, y) || (this.removeVar(s.previous), this.setVar(s.current, t(this, M)));
1354
1350
  }), t(this, x).subscribe((s) => {
1355
- if (t(this, ne)) {
1356
- r(this, ne, !1);
1351
+ if (t(this, oe)) {
1352
+ r(this, oe, !1);
1357
1353
  return;
1358
1354
  }
1359
1355
  o(this, m, Ds).call(this);
@@ -1366,7 +1362,7 @@ class Ti extends is {
1366
1362
  pt.unsubscribe(t(this, ss)), this.scrollElement.offScroll(t(this, Ie)), this.scrollElement.removeEventListener(
1367
1363
  "scrollSectionsChange",
1368
1364
  this.findAnotherScrollEntries
1369
- ), this.scrollElement.removeEventListener("scrollResize", this.resize), t(this, ee).close(), t(this, se).close(), t(this, ie).close(), t(this, re).close(), t(this, zt).close(), t(this, At).close(), t(this, It).close(), t(this, Mt).close(), t(this, I).close(), t(this, H).close(), t(this, $).close(), t(this, B).close(), t(this, Ft).close(), t(this, k).close(), t(this, lt).close(), t(this, ct).close(), t(this, _).close(), t(this, Tt).close(), t(this, ut).close(), t(this, at).close(), t(this, dt).close(), t(this, w).close(), t(this, W).close(), t(this, N).close(), t(this, tt).close(), t(this, et).close(), t(this, Z).close(), this.disable(), t(this, x).close();
1365
+ ), this.scrollElement.removeEventListener("scrollResize", this.resize), t(this, se).close(), t(this, ie).close(), t(this, re).close(), t(this, he).close(), t(this, It).close(), t(this, Mt).close(), t(this, Ft).close(), t(this, Tt).close(), t(this, I).close(), t(this, H).close(), t(this, $).close(), t(this, B).close(), t(this, Rt).close(), t(this, k).close(), t(this, lt).close(), t(this, ct).close(), t(this, _).close(), t(this, Dt).close(), t(this, ut).close(), t(this, at).close(), t(this, dt).close(), t(this, w).close(), t(this, W).close(), t(this, N).close(), t(this, tt).close(), t(this, et).close(), t(this, Z).close(), this.disable(), t(this, x).close();
1370
1366
  }
1371
1367
  removeVar(e) {
1372
1368
  e && t(this, S).style.removeProperty(`--${e}`);
@@ -1378,20 +1374,20 @@ class Ti extends is {
1378
1374
  }
1379
1375
  }
1380
1376
  getDistance() {
1381
- return t(this, he) + t(this, es);
1377
+ return t(this, ne) + t(this, es);
1382
1378
  }
1383
1379
  getStart() {
1384
- return t(this, Rt) - t(this, es);
1380
+ return t(this, Ot) - t(this, es);
1385
1381
  }
1386
1382
  }
1387
- ee = new WeakMap(), se = new WeakMap(), ie = new WeakMap(), re = new WeakMap(), zt = new WeakMap(), At = new WeakMap(), It = new WeakMap(), Mt = new WeakMap(), I = new WeakMap(), H = new WeakMap(), $ = new WeakMap(), B = new WeakMap(), Ft = new WeakMap(), k = new WeakMap(), lt = new WeakMap(), ct = new WeakMap(), _ = new WeakMap(), Tt = new WeakMap(), ze = new WeakMap(), ut = new WeakMap(), at = new WeakMap(), dt = new WeakMap(), w = new WeakMap(), W = new WeakMap(), N = new WeakMap(), tt = new WeakMap(), et = new WeakMap(), Z = new WeakMap(), ts = new WeakMap(), S = new WeakMap(), Rt = new WeakMap(), he = new WeakMap(), es = new WeakMap(), x = new WeakMap(), ft = new WeakMap(), R = new WeakMap(), M = new WeakMap(), j = new WeakMap(), Ae = new WeakMap(), Dt = new WeakMap(), y = new WeakMap(), ne = new WeakMap(), m = new WeakSet(), ti = function() {
1388
- t(this, w).current = !0, t(this, W).current = !1, r(this, Dt, !0), t(this, H).current && t(this, S).classList.remove(t(this, H).current), t(this, k).current && t(this, S).classList.remove(
1383
+ se = new WeakMap(), ie = new WeakMap(), re = new WeakMap(), he = new WeakMap(), It = new WeakMap(), Mt = new WeakMap(), Ft = new WeakMap(), Tt = new WeakMap(), I = new WeakMap(), H = new WeakMap(), $ = new WeakMap(), B = new WeakMap(), Rt = new WeakMap(), k = new WeakMap(), lt = new WeakMap(), ct = new WeakMap(), _ = new WeakMap(), Dt = new WeakMap(), ze = new WeakMap(), ut = new WeakMap(), at = new WeakMap(), dt = new WeakMap(), w = new WeakMap(), W = new WeakMap(), N = new WeakMap(), tt = new WeakMap(), et = new WeakMap(), Z = new WeakMap(), ts = new WeakMap(), S = new WeakMap(), Ot = new WeakMap(), ne = new WeakMap(), es = new WeakMap(), x = new WeakMap(), ft = new WeakMap(), R = new WeakMap(), M = new WeakMap(), j = new WeakMap(), Ae = new WeakMap(), Ht = new WeakMap(), y = new WeakMap(), oe = new WeakMap(), m = new WeakSet(), ti = function() {
1384
+ t(this, w).current = !0, t(this, W).current = !1, r(this, Ht, !0), t(this, H).current && t(this, S).classList.remove(t(this, H).current), t(this, k).current && t(this, S).classList.remove(
1389
1385
  t(this, k).current
1390
1386
  ), t(this, k).current && t(this, S).classList.remove(
1391
1387
  t(this, k).current
1392
1388
  ), t(this, I).current && t(this, S).classList.add(t(this, I).current);
1393
1389
  }, ei = function() {
1394
- t(this, W).current = !0, t(this, w).current = !1, r(this, Dt, !0), t(this, I).current && t(this, S).classList.remove(t(this, I).current), t(this, $).current && t(this, S).classList.remove(
1390
+ t(this, W).current = !0, t(this, w).current = !1, r(this, Ht, !0), t(this, I).current && t(this, S).classList.remove(t(this, I).current), t(this, $).current && t(this, S).classList.remove(
1395
1391
  t(this, $).current
1396
1392
  ), t(this, B).current && t(this, S).classList.remove(
1397
1393
  t(this, B).current
@@ -1415,7 +1411,7 @@ ee = new WeakMap(), se = new WeakMap(), ie = new WeakMap(), re = new WeakMap(),
1415
1411
  }, ss = new WeakMap(), Ie = new WeakMap(), Ds = function() {
1416
1412
  const e = t(this, x)[t(this, ze).current];
1417
1413
  this.setVar(t(this, lt).current, e), r(this, ft, e / t(this, M) || 0), this.setVar(t(this, ct).current, t(this, ft)), t(this, _).current && this.setVar(t(this, _).current, this.progressArc);
1418
- }, de = function(e) {
1414
+ }, fe = function(e) {
1419
1415
  if (t(this, y)) {
1420
1416
  e.previous && t(this, S).classList.remove(e.previous), e.current && t(this, S).classList.remove(e.current);
1421
1417
  return;
@@ -1430,7 +1426,7 @@ ee = new WeakMap(), se = new WeakMap(), ie = new WeakMap(), re = new WeakMap(),
1430
1426
  s && t(this, S).style.removeProperty(`--${s}`);
1431
1427
  });
1432
1428
  }, Os = function() {
1433
- o(this, m, ni).call(this, t(this, I).current, t(this, $).current, t(this, B).current, t(this, H).current, t(this, Ft).current, t(this, k).current), o(this, m, oi).call(this, t(this, lt).current, t(this, ct).current, t(this, _).current, t(this, ut).current, t(this, at).current, t(this, dt).current);
1429
+ o(this, m, ni).call(this, t(this, I).current, t(this, $).current, t(this, B).current, t(this, H).current, t(this, Rt).current, t(this, k).current), o(this, m, oi).call(this, t(this, lt).current, t(this, ct).current, t(this, _).current, t(this, ut).current, t(this, at).current, t(this, dt).current);
1434
1430
  };
1435
1431
  q && !customElements.get("e-scroll-segment") && customElements.define("e-scroll-segment", Ti);
1436
1432
  class Ri extends Bs {
@@ -1469,11 +1465,11 @@ const Ws = class Ws extends is {
1469
1465
  Ps = new WeakMap();
1470
1466
  let Hs = Ws;
1471
1467
  q && !customElements.get("e-scroll-counter") && customElements.define("e-scroll-counter", Hs);
1472
- var oe;
1468
+ var le;
1473
1469
  const Ns = class Ns extends is {
1474
1470
  constructor() {
1475
1471
  super(...arguments);
1476
- i(this, oe, () => {
1472
+ i(this, le, () => {
1477
1473
  const e = this.scrollElement.limit + 1, s = parseInt(this.getAttribute("pad") || "0");
1478
1474
  this.textContent = e.toString().padStart(s, "0");
1479
1475
  });
@@ -1481,23 +1477,23 @@ const Ns = class Ns extends is {
1481
1477
  connectedCallback() {
1482
1478
  return zs(this, null, function* () {
1483
1479
  Vs(Ns.prototype, this, "connectedCallback").call(this), this.scrollElement.sectionsInViewCSSProperty.subscribe(
1484
- t(this, oe)
1480
+ t(this, le)
1485
1481
  ), this.scrollElement.addEventListener(
1486
1482
  "scrollSectionsChange",
1487
- t(this, oe)
1488
- ), t(this, oe).call(this);
1483
+ t(this, le)
1484
+ ), t(this, le).call(this);
1489
1485
  });
1490
1486
  }
1491
1487
  disconnectedCallback() {
1492
1488
  this.scrollElement.sectionsInViewCSSProperty.unsubscribe(
1493
- t(this, oe)
1489
+ t(this, le)
1494
1490
  ), this.scrollElement.removeEventListener(
1495
1491
  "scrollSectionsChange",
1496
- t(this, oe)
1492
+ t(this, le)
1497
1493
  );
1498
1494
  }
1499
1495
  };
1500
- oe = new WeakMap();
1496
+ le = new WeakMap();
1501
1497
  let $s = Ns;
1502
1498
  q && !customElements.get("e-scroll-total") && customElements.define("e-scroll-total", $s);
1503
1499
  export {