aptechka 0.3.1 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (141) hide show
  1. package/lib/{Damped-BvkThM-2.cjs → Damped-B0eRyTcV.cjs} +1 -1
  2. package/lib/{Damped-DEHDBwBz.js → Damped-Do9H-LKf.js} +1 -1
  3. package/lib/{Derived-Bc88XJ8J.js → Derived-Dbjm-dob.js} +1 -1
  4. package/lib/{Derived-SjPdLJiZ.cjs → Derived-vGokdC4b.cjs} +1 -1
  5. package/lib/{SourceManager-CI6NfLzW.cjs → SourceManager-CzcqsC3z.cjs} +1 -1
  6. package/lib/{SourceManager-BoP9RAJr.js → SourceManager-noBYGNeX.js} +1 -1
  7. package/lib/{Store-JOKrNVEr.js → Store-DdDuj5hz.js} +42 -41
  8. package/lib/Store-Dis8QUAR.cjs +1 -0
  9. package/lib/{Viewport-COsaberc.cjs → Viewport-CRLSlcoi.cjs} +1 -1
  10. package/lib/{Viewport-CXY5xcGJ.js → Viewport-VSV_isot.js} +1 -1
  11. package/lib/{WheelControls-BJdZsEkS.js → WheelControls-BqO_fTyY.js} +1 -1
  12. package/lib/{WheelControls-CctFwJwY.cjs → WheelControls-fiz52vcl.cjs} +1 -1
  13. package/lib/abstract-elements/index.cjs +1 -1
  14. package/lib/abstract-elements/index.js +2 -2
  15. package/lib/animation/index.cjs +1 -1
  16. package/lib/animation/index.js +2 -2
  17. package/lib/attribute/index.cjs +1 -1
  18. package/lib/attribute/index.d.ts +2 -0
  19. package/lib/attribute/index.js +36 -30
  20. package/lib/canvas/index.cjs +1 -1
  21. package/lib/canvas/index.js +3 -3
  22. package/lib/controls/index.cjs +1 -1
  23. package/lib/controls/index.js +2 -2
  24. package/lib/{createStylesheet-De-6zF24.cjs → createStylesheet-B4vLzvah.cjs} +1 -1
  25. package/lib/{createStylesheet-CYZlwj0H.js → createStylesheet-CR-XQRVT.js} +1 -1
  26. package/lib/device/index.cjs +1 -1
  27. package/lib/device/index.js +1 -1
  28. package/lib/dom-0S_WDL4g.js +42 -0
  29. package/lib/dom-JBOkFLTh.cjs +1 -0
  30. package/lib/element-constructor/ElementConstructor.d.ts +2 -0
  31. package/lib/element-constructor/index.cjs +1 -1
  32. package/lib/element-constructor/index.js +113 -114
  33. package/lib/element-resizer/index.cjs +1 -1
  34. package/lib/element-resizer/index.js +1 -1
  35. package/lib/en3/core/en3.d.ts +2 -1
  36. package/lib/en3/index.cjs +1 -1
  37. package/lib/en3/index.js +6 -6
  38. package/lib/image/index.cjs +1 -1
  39. package/lib/image/index.js +1 -1
  40. package/lib/{index-8MIh-Dcx.js → index-D-FPaxdJ.js} +3 -3
  41. package/lib/{index-CHamNqUl.cjs → index-MKoD8NCT.cjs} +1 -1
  42. package/lib/intersector/index.cjs +1 -1
  43. package/lib/intersector/index.js +1 -1
  44. package/lib/ladder/index.cjs +1 -1
  45. package/lib/ladder/index.js +1 -1
  46. package/lib/layout-box/index.cjs +1 -1
  47. package/lib/layout-box/index.js +1 -1
  48. package/lib/media/index.cjs +1 -1
  49. package/lib/media/index.js +1 -1
  50. package/lib/modal/index.cjs +1 -1
  51. package/lib/modal/index.js +3 -3
  52. package/lib/popover/index.cjs +1 -1
  53. package/lib/popover/index.js +54 -52
  54. package/lib/resized/index.cjs +1 -1
  55. package/lib/resized/index.js +1 -1
  56. package/lib/router/index.cjs +1 -1
  57. package/lib/router/index.js +93 -98
  58. package/lib/scroll/ScrollElement.d.ts +0 -22
  59. package/lib/scroll/index.cjs +1 -1
  60. package/lib/scroll/index.js +159 -183
  61. package/lib/scroll-entries/index.cjs +1 -1
  62. package/lib/scroll-entries/index.js +16 -17
  63. package/lib/select/index.cjs +1 -1
  64. package/lib/select/index.js +1 -1
  65. package/lib/source/index.cjs +1 -1
  66. package/lib/source/index.js +2 -2
  67. package/lib/store/Store.d.ts +1 -0
  68. package/lib/store/index.cjs +1 -1
  69. package/lib/store/index.js +119 -48
  70. package/lib/studio/index.cjs +1 -1
  71. package/lib/studio/index.js +17 -17
  72. package/lib/tags-D3-tO-m6.cjs +1 -0
  73. package/lib/tags-D9nd9mMM.js +846 -0
  74. package/lib/theme/index.cjs +1 -1
  75. package/lib/theme/index.js +2 -2
  76. package/lib/utils/dom.d.ts +1 -0
  77. package/lib/utils/index.cjs +1 -1
  78. package/lib/utils/index.d.ts +1 -1
  79. package/lib/utils/index.js +68 -67
  80. package/lib/video/index.cjs +1 -1
  81. package/lib/video/index.js +1 -1
  82. package/package.json +1 -65
  83. package/lib/ComponentElement-CIl1lnep.cjs +0 -1
  84. package/lib/ComponentElement-CzGRgBvs.js +0 -76
  85. package/lib/Composed-ClTo1f0b.js +0 -79
  86. package/lib/Composed-Mdr4ZFbI.cjs +0 -1
  87. package/lib/ElementConstructor-C_HDpVEZ.cjs +0 -1
  88. package/lib/ElementConstructor-ChgHpqb6.js +0 -326
  89. package/lib/Store-D0_rDIsE.cjs +0 -1
  90. package/lib/animation/hooks/index.cjs +0 -1
  91. package/lib/animation/hooks/index.d.ts +0 -9
  92. package/lib/animation/hooks/index.js +0 -32
  93. package/lib/attribute/hooks/index.d.ts +0 -3
  94. package/lib/controls/hooks/index.d.ts +0 -1
  95. package/lib/createStore-BSUQyZjo.js +0 -15
  96. package/lib/createStore-D61G4jpF.cjs +0 -1
  97. package/lib/dom-BY7JhTx5.js +0 -24
  98. package/lib/dom-qY2LdCVL.cjs +0 -1
  99. package/lib/element-resizer/hooks/index.cjs +0 -1
  100. package/lib/element-resizer/hooks/index.d.ts +0 -5
  101. package/lib/element-resizer/hooks/index.js +0 -12
  102. package/lib/instantiate-CXUQ7AmI.js +0 -72
  103. package/lib/instantiate-D63dC3Vr.cjs +0 -1
  104. package/lib/intersector/hooks/index.cjs +0 -1
  105. package/lib/intersector/hooks/index.d.ts +0 -5
  106. package/lib/intersector/hooks/index.js +0 -12
  107. package/lib/jsx/ComponentElement.d.ts +0 -26
  108. package/lib/jsx/h.d.ts +0 -4
  109. package/lib/jsx/hooks/attachInternals.d.ts +0 -1
  110. package/lib/jsx/hooks/attachShadow.d.ts +0 -1
  111. package/lib/jsx/hooks/attachStylesheet.d.ts +0 -3
  112. package/lib/jsx/hooks/createContext.d.ts +0 -2
  113. package/lib/jsx/hooks/createStore.d.ts +0 -4
  114. package/lib/jsx/hooks/index.cjs +0 -1
  115. package/lib/jsx/hooks/index.d.ts +0 -8
  116. package/lib/jsx/hooks/index.js +0 -73
  117. package/lib/jsx/hooks/onConnect.d.ts +0 -3
  118. package/lib/jsx/hooks/onDisconnect.d.ts +0 -3
  119. package/lib/jsx/hooks/withCurrentComponent.d.ts +0 -3
  120. package/lib/jsx/index.cjs +0 -1
  121. package/lib/jsx/index.d.ts +0 -5
  122. package/lib/jsx/index.js +0 -27
  123. package/lib/jsx/instantiate.d.ts +0 -1
  124. package/lib/jsx/register.d.ts +0 -1
  125. package/lib/jsx/render.d.ts +0 -1
  126. package/lib/jsx/type.d.ts +0 -186
  127. package/lib/onConnect-CNMynOhK.js +0 -9
  128. package/lib/onConnect-DyAwFqQQ.cjs +0 -1
  129. package/lib/store/hooks/index.cjs +0 -1
  130. package/lib/store/hooks/index.d.ts +0 -7
  131. package/lib/store/hooks/index.js +0 -26
  132. package/lib/tags-DSmoyoPZ.js +0 -485
  133. package/lib/tags-Di21YbUL.cjs +0 -1
  134. package/lib/ticker/hooks/index.cjs +0 -1
  135. package/lib/ticker/hooks/index.d.ts +0 -6
  136. package/lib/ticker/hooks/index.js +0 -23
  137. package/lib/window-resizer/hooks/index.cjs +0 -1
  138. package/lib/window-resizer/hooks/index.d.ts +0 -3
  139. package/lib/window-resizer/hooks/index.js +0 -9
  140. package/lib/withCurrentComponent-BDsFmjJ9.cjs +0 -1
  141. package/lib/withCurrentComponent-DIBND_yO.js +0 -7
@@ -2,74 +2,74 @@ var Mt = (e, s, i) => {
2
2
  if (!s.has(e))
3
3
  throw TypeError("Cannot " + i);
4
4
  };
5
- var n = (e, s, i) => (Mt(e, s, "read from private field"), i ? i.call(e) : s.get(e)), D = (e, s, i) => {
5
+ var n = (e, s, i) => (Mt(e, s, "read from private field"), i ? i.call(e) : s.get(e)), H = (e, s, i) => {
6
6
  if (s.has(e))
7
7
  throw TypeError("Cannot add the same private member more than once");
8
8
  s instanceof WeakSet ? s.add(e) : s.set(e, i);
9
- }, V = (e, s, i, r) => (Mt(e, s, "write to private field"), r ? r.call(e, i) : s.set(e, i), i);
10
- import { D as Ft } from "../Damped-DEHDBwBz.js";
11
- import { S as Bt } from "../Store-JOKrNVEr.js";
12
- import { D as Kt } from "../Derived-Bc88XJ8J.js";
13
- import { i as At } from "../browser-0zX67oeU.js";
14
- import { a as wt, g as vt } from "../layout-HoBT_Da2.js";
15
- import { c as zt } from "../math-BOBiC4TN.js";
9
+ }, D = (e, s, i, r) => (Mt(e, s, "write to private field"), r ? r.call(e, i) : s.set(e, i), i);
10
+ import { D as Ft } from "../Damped-Do9H-LKf.js";
11
+ import { S as Bt } from "../Store-DdDuj5hz.js";
12
+ import { D as Kt } from "../Derived-Dbjm-dob.js";
13
+ import { i as Lt } from "../browser-0zX67oeU.js";
14
+ import { a as bt, g as vt } from "../layout-HoBT_Da2.js";
15
+ import { c as Pt } from "../math-BOBiC4TN.js";
16
16
  import "../ticker/index.js";
17
- import { Attribute as E } from "../attribute/index.js";
18
- import { W as Gt, K as Ut } from "../WheelControls-BJdZsEkS.js";
19
- import { CustomElement as Lt, define as Vt } from "../custom-element/index.js";
20
- import { TICK_ORDER as Zt, RESIZE_ORDER as $t } from "../order/index.js";
17
+ import { Attribute as W } from "../attribute/index.js";
18
+ import { W as Gt, K as Ut } from "../WheelControls-BqO_fTyY.js";
19
+ import { CustomElement as zt, define as $t } from "../custom-element/index.js";
20
+ import { TICK_ORDER as Zt, RESIZE_ORDER as Ot } from "../order/index.js";
21
21
  import { windowResizer as ct } from "../window-resizer/index.js";
22
- import { scrollEntries as H } from "../scroll-entries/index.js";
23
- import { e as Ot, D as Ct, ax as bt } from "../tags-DSmoyoPZ.js";
24
- import { c as Rt } from "../createStylesheet-CYZlwj0H.js";
22
+ import { scrollEntries as G } from "../scroll-entries/index.js";
23
+ import { e as Vt, D as Ct, ay as wt } from "../tags-D9nd9mMM.js";
24
+ import { c as Dt } from "../createStylesheet-CR-XQRVT.js";
25
25
  import { cssUnitParser as qt } from "../css-unit-parser/index.js";
26
- import { f as Jt } from "../dom-BY7JhTx5.js";
26
+ import { f as Jt } from "../dom-0S_WDL4g.js";
27
27
  var Nt = Object.defineProperty, Qt = Object.getOwnPropertyDescriptor, Xt = (e, s, i, r) => {
28
28
  for (var a = r > 1 ? void 0 : r ? Qt(s, i) : s, f = e.length - 1, v; f >= 0; f--)
29
29
  (v = e[f]) && (a = (r ? v(s, i, a) : v(a)) || a);
30
30
  return r && a && Nt(s, i, a), a;
31
- }, kt = (e, s, i) => {
31
+ }, Et = (e, s, i) => {
32
32
  if (!s.has(e))
33
33
  throw TypeError("Cannot " + i);
34
- }, t = (e, s, i) => (kt(e, s, "read from private field"), i ? i.call(e) : s.get(e)), h = (e, s, i) => {
34
+ }, t = (e, s, i) => (Et(e, s, "read from private field"), i ? i.call(e) : s.get(e)), h = (e, s, i) => {
35
35
  if (s.has(e))
36
36
  throw TypeError("Cannot add the same private member more than once");
37
37
  s instanceof WeakSet ? s.add(e) : s.set(e, i);
38
- }, d = (e, s, i, r) => (kt(e, s, "write to private field"), r ? r.call(e, i) : s.set(e, i), i), m = (e, s, i) => (kt(e, s, "access private method"), i), l, C, T, O, I, Q, k, K, X, Y, u, ut, c, j, tt, _, p, z, W, F, w, G, $, q, pt, B, J, ft, Wt, dt, yt, et, _t, st, St, R, gt, xt, Dt, it, rt, Et, S, g, L, y;
38
+ }, d = (e, s, i, r) => (Et(e, s, "write to private field"), r ? r.call(e, i) : s.set(e, i), i), m = (e, s, i) => (Et(e, s, "access private method"), i), l, E, L, y, P, F, x, R, B, K, u, ut, c, j, tt, _, p, O, M, U, b, q, T, Q, pt, Z, X, ft, Wt, dt, yt, et, _t, st, St, I, gt, xt, Rt, it, rt, kt, S, g, V, C;
39
39
  class Yt {
40
40
  constructor(s, i) {
41
- D(this, S, void 0);
42
- D(this, g, void 0);
43
- D(this, L, 0);
44
- D(this, y, 0);
45
- V(this, S, s), V(this, g, i), H.register(n(this, S));
41
+ H(this, S, void 0);
42
+ H(this, g, void 0);
43
+ H(this, V, 0);
44
+ H(this, C, 0);
45
+ D(this, S, s), D(this, g, i), G.register(n(this, S));
46
46
  }
47
47
  get size() {
48
- return n(this, L);
48
+ return n(this, V);
49
49
  }
50
50
  get position() {
51
- return n(this, y);
51
+ return n(this, C);
52
52
  }
53
53
  destroy() {
54
- H.unregister(n(this, S)), n(this, S).style.transform = "";
54
+ G.unregister(n(this, S)), n(this, S).style.transform = "";
55
55
  }
56
56
  resize() {
57
- V(this, L, n(this, g).vertical ? n(this, S).offsetHeight : n(this, S).offsetWidth), V(this, y, n(this, g).vertical ? wt(n(this, S)) : vt(n(this, S))), V(this, y, n(this, y) - n(this, g).contentPosition);
57
+ D(this, V, n(this, g).vertical ? n(this, S).offsetHeight : n(this, S).offsetWidth), D(this, C, n(this, g).vertical ? bt(n(this, S)) : vt(n(this, S))), D(this, C, n(this, C) - n(this, g).contentPosition);
58
58
  }
59
59
  transform() {
60
60
  let s = 0;
61
- const i = n(this, g).viewportSize - n(this, L);
62
- n(this, g).infiniteAttribute.current && n(this, g).overscroll && n(this, y) + n(this, L) < n(this, g).currentScrollValue && (s = n(this, g).distance * -1 - n(this, g).gap), H.update(
61
+ const i = n(this, g).viewportSize - n(this, V);
62
+ n(this, g).infiniteAttribute.current && n(this, g).overscroll && n(this, C) + n(this, V) < n(this, g).currentScrollValue && (s = n(this, g).distance * -1 - n(this, g).gap), G.update(
63
63
  n(this, S),
64
64
  n(this, g).axisAttibute.current,
65
65
  s
66
66
  );
67
- const r = n(this, g).currentScrollValue + s, a = n(this, y) - n(this, g).viewportSize - i, f = n(this, y) + n(this, L) + i, v = zt(r, a, f);
67
+ const r = n(this, g).currentScrollValue + s, a = n(this, C) - n(this, g).viewportSize - i, f = n(this, C) + n(this, V) + i, v = Pt(r, a, f);
68
68
  n(this, g).vertical ? n(this, S).style.transform = `translate3d(0px, ${v * -1}px, 0px)` : n(this, S).style.transform = `translate3d(${v * -1}px, 0px, 0px)`;
69
69
  }
70
70
  }
71
- S = new WeakMap(), g = new WeakMap(), L = new WeakMap(), y = new WeakMap();
72
- const jt = Rt({
71
+ S = new WeakMap(), g = new WeakMap(), V = new WeakMap(), C = new WeakMap();
72
+ const jt = Dt({
73
73
  ":host": {
74
74
  position: "relative",
75
75
  width: "100%",
@@ -101,135 +101,135 @@ const jt = Rt({
101
101
  flexShrink: "0"
102
102
  }
103
103
  });
104
- let mt = class extends Lt {
104
+ let mt = class extends zt {
105
105
  constructor() {
106
- super(), h(this, q), h(this, B), h(this, ft), h(this, dt), h(this, et), h(this, st), h(this, xt), h(this, rt), h(this, l, null), h(this, C, new E(this, "axis", "y")), h(this, T, new E(this, "pages", 0, {
106
+ super(), h(this, Q), h(this, Z), h(this, ft), h(this, dt), h(this, et), h(this, st), h(this, xt), h(this, rt), h(this, l, null), h(this, E, new W(this, "axis", "y")), h(this, L, new W(this, "pages", 0, {
107
107
  validate: (e) => Math.max(0, e - 1)
108
- })), h(this, O, new E(this, "split", !1)), h(this, I, new E(this, "sectional", !1)), h(this, Q, new E(
108
+ })), h(this, y, new W(this, "split", !1)), h(this, P, new W(this, "sectional", !1)), h(this, F, new W(
109
109
  this,
110
110
  "wheel-max-delta",
111
111
  !1
112
- )), h(this, k, new E(this, "infinite", !1)), h(this, K, new E(this, "damping", 0.03)), h(this, X, new E(this, "disabled", !1)), h(this, Y, new E(this, "hibernated", !1)), h(this, u, null), h(this, ut, null), h(this, c, []), h(this, j, 0), h(this, tt, 0), h(this, _, 0), h(this, p, 0), h(this, z, 0), h(this, W, null), h(this, F, null), h(this, w, new Bt(0)), h(this, G, 0), h(this, $, 0), h(this, R, () => {
112
+ )), h(this, x, new W(this, "infinite", !1)), h(this, R, new W(this, "damping", 0.03)), h(this, B, new W(this, "disabled", !1)), h(this, K, new W(this, "hibernated", !1)), h(this, u, null), h(this, ut, null), h(this, c, []), h(this, j, 0), h(this, tt, 0), h(this, _, 0), h(this, p, 0), h(this, O, 0), h(this, M, null), h(this, U, null), h(this, b, new Bt(0)), h(this, q, 0), h(this, T, 0), h(this, I, () => {
113
113
  const e = this.currentScrollValue / t(this, p) || 0;
114
- if (d(this, j, this.vertical ? wt(this) : vt(this)), d(this, tt, this.vertical ? wt(t(this, u)) : vt(t(this, u))), d(this, _, this.vertical ? this.offsetHeight : this.offsetWidth), t(this, T).current) {
115
- d(this, p, t(this, _) * t(this, T).current);
114
+ if (d(this, j, this.vertical ? bt(this) : vt(this)), d(this, tt, this.vertical ? bt(t(this, u)) : vt(t(this, u))), d(this, _, this.vertical ? this.offsetHeight : this.offsetWidth), t(this, L).current) {
115
+ d(this, p, t(this, _) * t(this, L).current);
116
116
  const s = t(this, p) + t(this, _);
117
117
  this.vertical ? (t(this, u).style.width = s + "px", t(this, u).style.height = "100%") : (t(this, u).style.height = s + "px", t(this, u).style.width = "100%");
118
118
  } else
119
119
  this.vertical ? (t(this, u).style.width = "100%", t(this, u).style.height = "max-content", d(this, p, t(this, u).offsetHeight - t(this, _))) : (t(this, u).style.width = "max-content", t(this, u).style.height = "100%", d(this, p, t(this, u).offsetWidth - t(this, _)));
120
- if (d(this, z, qt.parse(getComputedStyle(t(this, u)).gap)), !t(this, k).current) {
120
+ if (d(this, O, qt.parse(getComputedStyle(t(this, u)).gap)), !t(this, x).current) {
121
121
  const s = getComputedStyle(this);
122
122
  d(this, p, t(this, p) + (this.vertical ? parseFloat(s.paddingBlockStart) + parseFloat(s.paddingBlockEnd) : parseFloat(s.paddingInlineStart) + parseFloat(s.paddingInlineEnd))), t(this, l).max = t(this, p);
123
123
  }
124
124
  if (t(this, c).forEach((s) => {
125
125
  s.resize(), s.transform();
126
- }), t(this, k).current && t(this, c).length) {
126
+ }), t(this, x).current && t(this, c).length) {
127
127
  const s = t(this, c)[t(this, c).length - 1], i = s.position + s.size - t(this, _), r = t(this, p) - i;
128
- d(this, $, s.position + s.size + r);
128
+ d(this, T, s.position + s.size + r);
129
129
  } else
130
- d(this, $, t(this, p));
131
- if (t(this, I).current && t(this, c).length) {
132
- const s = t(this, c)[t(this, w).current];
130
+ d(this, T, t(this, p));
131
+ if (t(this, P).current && t(this, c).length) {
132
+ const s = t(this, c)[t(this, b).current];
133
133
  t(this, l).set(s.position, !0);
134
134
  } else
135
135
  t(this, l).set(e * t(this, p), !0);
136
136
  }), h(this, gt, () => {
137
137
  const e = this.currentScrollValue;
138
- if (d(this, G, Math.max(0, e - t(this, p))), t(this, c).length) {
138
+ if (d(this, q, Math.max(0, e - t(this, p))), t(this, c).length) {
139
139
  let s = 0;
140
140
  for (let i = 0; i < t(this, c).length; i++) {
141
141
  const r = t(this, c)[i];
142
142
  r.transform(), // this.targetScrollValue + this.viewportSize / 2 >=
143
143
  this.targetScrollValue + this.viewportSize / 2 >= r.position && (s = i);
144
144
  }
145
- t(this, w).current = s;
145
+ t(this, b).current = s;
146
146
  } else
147
147
  this.vertical ? t(this, u).style.transform = `translate3d(0px, ${e * -1}px, 0px)` : t(this, u).style.transform = `translate3d(${e * -1}px, 0px, 0px)`;
148
- H.update(this, t(this, C).current, e);
148
+ G.update(this, t(this, E).current, e);
149
149
  }), h(this, it, (e) => {
150
150
  if (typeof e == "number")
151
- if (t(this, I).current) {
151
+ if (t(this, P).current) {
152
152
  const s = Math.sign(e);
153
153
  t(this, c).length ? this.shiftSections(s) : t(this, l).shift(s * t(this, _));
154
154
  } else
155
155
  t(this, l).shift(e);
156
156
  else
157
157
  e === "min" ? t(this, l).set(t(this, l).min) : e === "max" && t(this, l).set(t(this, l).length);
158
- }), At && (d(this, l, new Ft(0, {
158
+ }), Lt && (d(this, l, new Ft(0, {
159
159
  damping: 0.01,
160
160
  min: 0,
161
161
  order: Zt.SCROLL
162
- })), this.openShadow(jt), Ot(this, {
162
+ })), this.openShadow(jt), Vt(this, {
163
163
  tabIndex: 0,
164
164
  children: [
165
165
  Ct({
166
166
  class: "static",
167
- children: [bt({ name: "static" })]
167
+ children: [wt({ name: "static" })]
168
168
  }),
169
169
  Ct({
170
170
  class: "content",
171
- children: [bt({ ref: (e) => d(this, ut, e) })],
171
+ children: [wt({ ref: (e) => d(this, ut, e) })],
172
172
  style: {
173
173
  flexDirection: new Kt(
174
- t(this, C),
174
+ t(this, E),
175
175
  (e) => e === "x" ? "row" : "column"
176
176
  )
177
177
  },
178
178
  ref: (e) => d(this, u, e)
179
179
  })
180
180
  ]
181
- }), d(this, W, new Gt({ element: this })), t(this, W).changeEvent.subscribe(t(this, it)), d(this, F, new Ut({ element: this })), t(this, F).changeEvent.subscribe(t(this, it)), t(this, C).subscribe(({ current: e }) => {
182
- t(this, u).style.flexDirection = e === "x" ? "row" : "column", t(this, W).axis = t(this, Q).current ? "max" : e, this.isConnected && t(this, R).call(this);
183
- }), t(this, Q).subscribe((e) => {
184
- t(this, W).axis = e.current ? "max" : t(this, C).current;
185
- }), t(this, T).subscribe(() => {
186
- this.isConnected && t(this, R).call(this);
187
- }), t(this, O).subscribe(({ current: e }) => {
188
- this.isConnected && (e ? m(this, q, pt).call(this) : m(this, B, J).call(this));
189
- }), t(this, I).subscribe((e) => {
190
- t(this, w).current = 0, t(this, W).debounce = e.current, t(this, l).reset(), this.isConnected && (e.current && !e.previous ? m(this, q, pt).call(this) : !e.current && e.previous && m(this, B, J).call(this));
191
- }), t(this, k).subscribe((e) => {
192
- e.current ? (this.isConnected && (t(this, c).length || (t(this, O).current = !0)), t(this, c).length && (t(this, l).max = 1 / 0, t(this, l).min = -1 / 0)) : (d(this, G, 0), t(this, l).max = t(this, p), t(this, l).min = 0);
193
- }), t(this, K).subscribe((e) => {
181
+ }), d(this, M, new Gt({ element: this })), t(this, M).changeEvent.subscribe(t(this, it)), d(this, U, new Ut({ element: this })), t(this, U).changeEvent.subscribe(t(this, it)), t(this, E).subscribe(({ current: e }) => {
182
+ t(this, u).style.flexDirection = e === "x" ? "row" : "column", t(this, M).axis = t(this, F).current ? "max" : e, this.isConnected && t(this, I).call(this);
183
+ }), t(this, F).subscribe((e) => {
184
+ t(this, M).axis = e.current ? "max" : t(this, E).current;
185
+ }), t(this, L).subscribe(() => {
186
+ this.isConnected && t(this, I).call(this);
187
+ }), t(this, y).subscribe(({ current: e }) => {
188
+ this.isConnected && (e ? m(this, Q, pt).call(this) : m(this, Z, X).call(this));
189
+ }), t(this, P).subscribe((e) => {
190
+ t(this, b).current = 0, t(this, M).debounce = e.current, t(this, l).reset(), this.isConnected && (e.current && !e.previous ? m(this, Q, pt).call(this) : !e.current && e.previous && m(this, Z, X).call(this));
191
+ }), t(this, x).subscribe((e) => {
192
+ e.current ? (this.isConnected && (t(this, c).length || (t(this, y).current = !0)), t(this, c).length && (t(this, l).max = 1 / 0, t(this, l).min = -1 / 0)) : (d(this, q, 0), t(this, l).max = t(this, p), t(this, l).min = 0);
193
+ }), t(this, R).subscribe((e) => {
194
194
  t(this, l).damping = e.current;
195
- }), t(this, X).subscribe((e) => {
195
+ }), t(this, B).subscribe((e) => {
196
196
  e.current && !e.previous ? m(this, ft, Wt).call(this) : !e.current && e.previous && m(this, dt, yt).call(this);
197
- }), t(this, Y).subscribe((e) => {
197
+ }), t(this, K).subscribe((e) => {
198
198
  e.current && !e.previous ? m(this, et, _t).call(this) : !e.current && e.previous && m(this, st, St).call(this);
199
199
  }));
200
200
  }
201
201
  get dampingAttribute() {
202
- return t(this, K);
202
+ return t(this, R);
203
203
  }
204
204
  get axisAttibute() {
205
- return t(this, C);
205
+ return t(this, E);
206
206
  }
207
207
  get pagesAttibute() {
208
- return t(this, T);
208
+ return t(this, L);
209
209
  }
210
210
  get splitAttibute() {
211
- return t(this, O);
211
+ return t(this, y);
212
212
  }
213
213
  get sectionalAttibute() {
214
- return t(this, I);
214
+ return t(this, P);
215
215
  }
216
216
  get infiniteAttribute() {
217
- return t(this, k);
217
+ return t(this, x);
218
218
  }
219
219
  get dampingAttibute() {
220
- return t(this, K);
220
+ return t(this, R);
221
221
  }
222
222
  get disabledAttibute() {
223
- return t(this, X);
223
+ return t(this, B);
224
224
  }
225
225
  get hibernatedAttibute() {
226
- return t(this, Y);
226
+ return t(this, K);
227
227
  }
228
228
  get currentScrollValue() {
229
- return m(this, rt, Et).call(this, "current");
229
+ return m(this, rt, kt).call(this, "current");
230
230
  }
231
231
  get targetScrollValue() {
232
- return m(this, rt, Et).call(this, "target");
232
+ return m(this, rt, kt).call(this, "target");
233
233
  }
234
234
  get contentElement() {
235
235
  return t(this, u);
@@ -247,25 +247,25 @@ let mt = class extends Lt {
247
247
  return t(this, p);
248
248
  }
249
249
  get gap() {
250
- return t(this, z);
250
+ return t(this, O);
251
251
  }
252
252
  get counter() {
253
- return t(this, w);
253
+ return t(this, b);
254
254
  }
255
255
  get distance() {
256
- return t(this, $);
256
+ return t(this, T);
257
257
  }
258
258
  get overscroll() {
259
- return t(this, G);
259
+ return t(this, q);
260
260
  }
261
261
  get vertical() {
262
- return t(this, C).current === "y";
262
+ return t(this, E).current === "y";
263
263
  }
264
264
  get currentProgress() {
265
- return this.currentScrollValue / t(this, $) || 0;
265
+ return this.currentScrollValue / t(this, T) || 0;
266
266
  }
267
267
  get targetProgress() {
268
- return this.targetScrollValue / t(this, $) || 0;
268
+ return this.targetScrollValue / t(this, T) || 0;
269
269
  }
270
270
  get speed() {
271
271
  return t(this, l).speed;
@@ -282,30 +282,6 @@ let mt = class extends Lt {
282
282
  offScroll(...e) {
283
283
  t(this, l).unsubscribe(...e);
284
284
  }
285
- get context() {
286
- return {
287
- currentScrollValue: this.currentScrollValue,
288
- targetScrollValue: this.targetScrollValue,
289
- contentElement: this.contentElement,
290
- position: this.position,
291
- contentPosition: this.contentPosition,
292
- viewportSize: this.viewportSize,
293
- scrollSize: this.scrollSize,
294
- gap: this.gap,
295
- counter: this.counter,
296
- distance: this.distance,
297
- overscroll: this.overscroll,
298
- vertical: this.vertical,
299
- currentProgress: this.currentProgress,
300
- targetProgress: this.targetProgress,
301
- speed: this.speed,
302
- direction: this.direction,
303
- isRunning: this.isRunning,
304
- range: this.range,
305
- curve: this.curve,
306
- visible: this.visible
307
- };
308
- }
309
285
  //https://github.com/pmndrs/drei/blob/d3282cdd02d170ef603a5e096505d83dc93cd57a/src/web/ScrollControls.tsx#L85C7-L100C9
310
286
  range(e, s, i = 0) {
311
287
  const r = e - i, a = r + s + i * 2;
@@ -322,38 +298,38 @@ let mt = class extends Lt {
322
298
  scrollToSection(e, s = "smooth") {
323
299
  if (!t(this, c).length)
324
300
  return;
325
- const i = t(this, w).current;
326
- m(this, xt, Dt).call(this, e);
327
- const r = t(this, c)[i], a = t(this, c)[t(this, w).current];
301
+ const i = t(this, b).current;
302
+ m(this, xt, Rt).call(this, e);
303
+ const r = t(this, c)[i], a = t(this, c)[t(this, b).current];
328
304
  if (r && a) {
329
305
  let f = 0;
330
306
  const v = t(this, c).length - 1;
331
- t(this, k).current ? t(this, w).current === 0 && i === v ? f = t(this, p) + t(this, _) - r.position + t(this, z) : t(this, w).current === v && i === 0 ? f = a.position - (t(this, p) + t(this, _) + t(this, z)) : f = a.position - r.position : f = a.position - r.position, t(this, l).shift(f, s === "instant");
307
+ t(this, x).current ? t(this, b).current === 0 && i === v ? f = t(this, p) + t(this, _) - r.position + t(this, O) : t(this, b).current === v && i === 0 ? f = a.position - (t(this, p) + t(this, _) + t(this, O)) : f = a.position - r.position : f = a.position - r.position, t(this, l).shift(f, s === "instant");
332
308
  }
333
309
  }
334
310
  shiftSections(e, s = "smooth") {
335
- t(this, c).length && this.scrollToSection(t(this, w).current + e, s);
311
+ t(this, c).length && this.scrollToSection(t(this, b).current + e, s);
336
312
  }
337
313
  setPosition(e, s = "smooth") {
338
314
  t(this, l).set(e, s === "instant");
339
315
  }
340
316
  connectedCallback() {
341
- m(this, st, St).call(this);
317
+ t(this, E).observe(), t(this, L).observe(), t(this, y).observe(), t(this, P).observe(), t(this, F).observe(), t(this, x).observe(), t(this, R).observe(), t(this, B).observe(), t(this, K).observe(), m(this, st, St).call(this);
342
318
  }
343
319
  disconnectedCallback() {
344
- m(this, et, _t).call(this);
320
+ t(this, E).unobserve(), t(this, L).unobserve(), t(this, y).unobserve(), t(this, P).unobserve(), t(this, F).unobserve(), t(this, x).unobserve(), t(this, R).unobserve(), t(this, B).unobserve(), t(this, K).unobserve(), m(this, et, _t).call(this);
345
321
  }
346
322
  };
347
323
  l = /* @__PURE__ */ new WeakMap();
348
- C = /* @__PURE__ */ new WeakMap();
349
- T = /* @__PURE__ */ new WeakMap();
350
- O = /* @__PURE__ */ new WeakMap();
351
- I = /* @__PURE__ */ new WeakMap();
352
- Q = /* @__PURE__ */ new WeakMap();
353
- k = /* @__PURE__ */ new WeakMap();
324
+ E = /* @__PURE__ */ new WeakMap();
325
+ L = /* @__PURE__ */ new WeakMap();
326
+ y = /* @__PURE__ */ new WeakMap();
327
+ P = /* @__PURE__ */ new WeakMap();
328
+ F = /* @__PURE__ */ new WeakMap();
329
+ x = /* @__PURE__ */ new WeakMap();
330
+ R = /* @__PURE__ */ new WeakMap();
331
+ B = /* @__PURE__ */ new WeakMap();
354
332
  K = /* @__PURE__ */ new WeakMap();
355
- X = /* @__PURE__ */ new WeakMap();
356
- Y = /* @__PURE__ */ new WeakMap();
357
333
  u = /* @__PURE__ */ new WeakMap();
358
334
  ut = /* @__PURE__ */ new WeakMap();
359
335
  c = /* @__PURE__ */ new WeakMap();
@@ -361,73 +337,73 @@ j = /* @__PURE__ */ new WeakMap();
361
337
  tt = /* @__PURE__ */ new WeakMap();
362
338
  _ = /* @__PURE__ */ new WeakMap();
363
339
  p = /* @__PURE__ */ new WeakMap();
364
- z = /* @__PURE__ */ new WeakMap();
365
- W = /* @__PURE__ */ new WeakMap();
366
- F = /* @__PURE__ */ new WeakMap();
367
- w = /* @__PURE__ */ new WeakMap();
368
- G = /* @__PURE__ */ new WeakMap();
369
- $ = /* @__PURE__ */ new WeakMap();
370
- q = /* @__PURE__ */ new WeakSet();
340
+ O = /* @__PURE__ */ new WeakMap();
341
+ M = /* @__PURE__ */ new WeakMap();
342
+ U = /* @__PURE__ */ new WeakMap();
343
+ b = /* @__PURE__ */ new WeakMap();
344
+ q = /* @__PURE__ */ new WeakMap();
345
+ T = /* @__PURE__ */ new WeakMap();
346
+ Q = /* @__PURE__ */ new WeakSet();
371
347
  pt = function() {
372
- m(this, B, J).call(this), t(this, ut).assignedElements().forEach((e) => {
348
+ m(this, Z, X).call(this), t(this, ut).assignedElements().forEach((e) => {
373
349
  e instanceof HTMLElement && t(this, c).push(new Yt(e, this));
374
- }), t(this, u).style.transform = "", t(this, R).call(this);
350
+ }), t(this, u).style.transform = "", t(this, I).call(this);
375
351
  };
376
- B = /* @__PURE__ */ new WeakSet();
377
- J = function() {
352
+ Z = /* @__PURE__ */ new WeakSet();
353
+ X = function() {
378
354
  t(this, c).forEach((e) => {
379
355
  e.destroy();
380
356
  }), d(this, c, []);
381
357
  };
382
358
  ft = /* @__PURE__ */ new WeakSet();
383
359
  Wt = function() {
384
- t(this, l).unsubscribe(t(this, gt)), t(this, l).stopAnimation(), t(this, W).disconnect(), t(this, F).disconnect();
360
+ t(this, l).unsubscribe(t(this, gt)), t(this, l).stopAnimation(), t(this, M).disconnect(), t(this, U).disconnect();
385
361
  };
386
362
  dt = /* @__PURE__ */ new WeakSet();
387
363
  yt = function() {
388
- t(this, l).subscribe(t(this, gt)), t(this, W).connect(), t(this, F).connect();
364
+ t(this, l).subscribe(t(this, gt)), t(this, M).connect(), t(this, U).connect();
389
365
  };
390
366
  et = /* @__PURE__ */ new WeakSet();
391
367
  _t = function() {
392
- ct.unsubscribe(t(this, R)), t(this, l).reset(), m(this, ft, Wt).call(this), t(this, u).style.transform = "", t(this, O).current && m(this, B, J).call(this), H.unregister(this);
368
+ ct.unsubscribe(t(this, I)), t(this, l).reset(), m(this, ft, Wt).call(this), t(this, u).style.transform = "", t(this, y).current && m(this, Z, X).call(this), G.unregister(this);
393
369
  };
394
370
  st = /* @__PURE__ */ new WeakSet();
395
371
  St = function() {
396
- t(this, O).current && m(this, q, pt).call(this), H.register(this), ct.subscribe(t(this, R), $t.SCROLL), m(this, dt, yt).call(this);
372
+ t(this, y).current && m(this, Q, pt).call(this), G.register(this), ct.subscribe(t(this, I), Ot.SCROLL), m(this, dt, yt).call(this);
397
373
  };
398
- R = /* @__PURE__ */ new WeakMap();
374
+ I = /* @__PURE__ */ new WeakMap();
399
375
  gt = /* @__PURE__ */ new WeakMap();
400
376
  xt = /* @__PURE__ */ new WeakSet();
401
- Dt = function(e) {
402
- t(this, k).current ? (t(this, w).current = e % t(this, c).length, t(this, w).current = t(this, w).current < 0 ? t(this, c).length + t(this, w).current : t(this, w).current) : t(this, w).current = zt(e, 0, t(this, c).length - 1);
377
+ Rt = function(e) {
378
+ t(this, x).current ? (t(this, b).current = e % t(this, c).length, t(this, b).current = t(this, b).current < 0 ? t(this, c).length + t(this, b).current : t(this, b).current) : t(this, b).current = Pt(e, 0, t(this, c).length - 1);
403
379
  };
404
380
  it = /* @__PURE__ */ new WeakMap();
405
381
  rt = /* @__PURE__ */ new WeakSet();
406
- Et = function(e = "current") {
407
- if (t(this, k).current && t(this, c).length) {
408
- const s = t(this, l)[e] % (t(this, p) + t(this, _) + t(this, z));
409
- return s < 0 ? t(this, p) + s + t(this, _) + t(this, z) : s;
382
+ kt = function(e = "current") {
383
+ if (t(this, x).current && t(this, c).length) {
384
+ const s = t(this, l)[e] % (t(this, p) + t(this, _) + t(this, O));
385
+ return s < 0 ? t(this, p) + s + t(this, _) + t(this, O) : s;
410
386
  } else
411
387
  return t(this, l)[e];
412
388
  };
413
389
  mt = Xt([
414
- Vt("e-scroll")
390
+ $t("e-scroll")
415
391
  ], mt);
416
- var N;
417
- class te extends Lt {
392
+ var Y;
393
+ class te extends zt {
418
394
  constructor() {
419
395
  super(...arguments);
420
- D(this, N, null);
396
+ H(this, Y, null);
421
397
  }
422
398
  get scrollElement() {
423
- return n(this, N);
399
+ return n(this, Y);
424
400
  }
425
401
  connectedCallback() {
426
402
  const i = Jt(this, mt);
427
- i instanceof mt ? V(this, N, i) : console.error(this, "e-scroll not found");
403
+ i instanceof mt ? D(this, Y, i) : console.error(this, "e-scroll not found");
428
404
  }
429
405
  }
430
- N = new WeakMap();
406
+ Y = new WeakMap();
431
407
  var ee = Object.defineProperty, se = Object.getOwnPropertyDescriptor, ie = (e, s, i, r) => {
432
408
  for (var a = r > 1 ? void 0 : r ? se(s, i) : s, f = e.length - 1, v; f >= 0; f--)
433
409
  (v = e[f]) && (a = (r ? v(s, i, a) : v(a)) || a);
@@ -435,12 +411,12 @@ var ee = Object.defineProperty, se = Object.getOwnPropertyDescriptor, ie = (e, s
435
411
  }, Tt = (e, s, i) => {
436
412
  if (!s.has(e))
437
413
  throw TypeError("Cannot " + i);
438
- }, o = (e, s, i) => (Tt(e, s, "read from private field"), i ? i.call(e) : s.get(e)), x = (e, s, i) => {
414
+ }, o = (e, s, i) => (Tt(e, s, "read from private field"), i ? i.call(e) : s.get(e)), k = (e, s, i) => {
439
415
  if (s.has(e))
440
416
  throw TypeError("Cannot add the same private member more than once");
441
417
  s instanceof WeakSet ? s.add(e) : s.set(e, i);
442
- }, M = (e, s, i, r) => (Tt(e, s, "write to private field"), r ? r.call(e, i) : s.set(e, i), i), nt, b, P, A, U, Z, ht, ot, lt, at;
443
- const re = Rt({
418
+ }, A = (e, s, i, r) => (Tt(e, s, "write to private field"), r ? r.call(e, i) : s.set(e, i), i), nt, w, z, $, J, N, ht, ot, lt, at;
419
+ const re = Dt({
444
420
  ":host": {
445
421
  display: "inline-block",
446
422
  zIndex: "1",
@@ -469,55 +445,55 @@ const re = Rt({
469
445
  touchAction: "none"
470
446
  }
471
447
  });
472
- let Pt = class extends te {
448
+ let At = class extends te {
473
449
  constructor() {
474
- super(), x(this, nt, null), x(this, b, null), x(this, P, !1), x(this, A, 0), x(this, U, 0), x(this, Z, 0), x(this, ht, () => {
475
- M(this, P, this.offsetWidth > this.offsetHeight);
476
- const e = o(this, P) ? this.offsetWidth : this.offsetHeight;
477
- M(this, A, e / ((this.scrollElement.scrollSize + this.scrollElement.viewportSize) / e)), M(this, A, Math.max(o(this, A), 30)), o(this, P) ? (o(this, b).style.width = o(this, A) + "px", o(this, b).style.height = "100%") : (o(this, b).style.width = "100%", o(this, b).style.height = o(this, A) + "px"), M(this, U, e - o(this, A)), this.scrollElement.scrollSize || (this.style.display = "none");
478
- }), x(this, ot, () => {
479
- M(this, Z, this.scrollElement.currentProgress * o(this, U)), o(this, P) ? o(this, b).style.transform = `translate3d(${o(this, Z)}px, 0px, 0px)` : o(this, b).style.transform = `translate3d(0px, ${o(this, Z)}px, 0px)`;
480
- }), x(this, lt, () => {
450
+ super(), k(this, nt, null), k(this, w, null), k(this, z, !1), k(this, $, 0), k(this, J, 0), k(this, N, 0), k(this, ht, () => {
451
+ A(this, z, this.offsetWidth > this.offsetHeight);
452
+ const e = o(this, z) ? this.offsetWidth : this.offsetHeight;
453
+ A(this, $, e / ((this.scrollElement.scrollSize + this.scrollElement.viewportSize) / e)), A(this, $, Math.max(o(this, $), 30)), o(this, z) ? (o(this, w).style.width = o(this, $) + "px", o(this, w).style.height = "100%") : (o(this, w).style.width = "100%", o(this, w).style.height = o(this, $) + "px"), A(this, J, e - o(this, $)), this.scrollElement.scrollSize || (this.style.display = "none");
454
+ }), k(this, ot, () => {
455
+ A(this, N, this.scrollElement.currentProgress * o(this, J)), o(this, z) ? o(this, w).style.transform = `translate3d(${o(this, N)}px, 0px, 0px)` : o(this, w).style.transform = `translate3d(0px, ${o(this, N)}px, 0px)`;
456
+ }), k(this, lt, () => {
481
457
  this.setAttribute("axis", this.scrollElement.axisAttibute.current);
482
- }), x(this, at, (e) => {
458
+ }), k(this, at, (e) => {
483
459
  const s = (f) => {
484
- const v = o(this, P) ? f.x : f.y, It = this.scrollElement.distance / o(this, U), Ht = (v - a) * It;
460
+ const v = o(this, z) ? f.x : f.y, It = this.scrollElement.distance / o(this, J), Ht = (v - a) * It;
485
461
  this.scrollElement.setPosition(r + Ht);
486
462
  }, i = () => {
487
463
  removeEventListener("pointermove", s), removeEventListener("pointerup", i), removeEventListener("touchend", i);
488
464
  };
489
465
  addEventListener("pointermove", s), addEventListener("pointerup", i), addEventListener("touchend", i);
490
- const r = this.scrollElement.targetScrollValue, a = o(this, P) ? e.x : e.y;
491
- }), At && (this.openShadow(re), Ot(this, {
492
- children: [bt({ ref: (e) => M(this, nt, e) })]
466
+ const r = this.scrollElement.targetScrollValue, a = o(this, z) ? e.x : e.y;
467
+ }), Lt && (this.openShadow(re), Vt(this, {
468
+ children: [wt({ ref: (e) => A(this, nt, e) })]
493
469
  }));
494
470
  }
495
471
  get thumbElement() {
496
- return o(this, b);
472
+ return o(this, w);
497
473
  }
498
474
  connectedCallback() {
499
475
  super.connectedCallback();
500
476
  const e = o(this, nt).assignedElements()[0];
501
- e instanceof HTMLElement ? M(this, b, e) : (M(this, b, document.createElement("div")), o(this, b).classList.add("default-thumb"), this.shadowRoot.appendChild(o(this, b))), o(this, b).addEventListener("pointerdown", o(this, at)), ct.subscribe(o(this, ht), $t.SCROLL + 1), this.scrollElement.onScroll(o(this, ot)), this.scrollElement.axisAttibute.subscribe(o(this, lt));
477
+ e instanceof HTMLElement ? A(this, w, e) : (A(this, w, document.createElement("div")), o(this, w).classList.add("default-thumb"), this.shadowRoot.appendChild(o(this, w))), o(this, w).addEventListener("pointerdown", o(this, at)), ct.subscribe(o(this, ht), Ot.SCROLL + 1), this.scrollElement.onScroll(o(this, ot)), this.scrollElement.axisAttibute.subscribe(o(this, lt));
502
478
  }
503
479
  disconnectedCallback() {
504
- o(this, b).removeEventListener("pointerdown", o(this, at)), ct.unsubscribe(o(this, ht)), this.scrollElement.offScroll(o(this, ot)), this.scrollElement.axisAttibute.unsubscribe(o(this, lt));
480
+ o(this, w).removeEventListener("pointerdown", o(this, at)), ct.unsubscribe(o(this, ht)), this.scrollElement.offScroll(o(this, ot)), this.scrollElement.axisAttibute.unsubscribe(o(this, lt));
505
481
  }
506
482
  };
507
483
  nt = /* @__PURE__ */ new WeakMap();
508
- b = /* @__PURE__ */ new WeakMap();
509
- P = /* @__PURE__ */ new WeakMap();
510
- A = /* @__PURE__ */ new WeakMap();
511
- U = /* @__PURE__ */ new WeakMap();
512
- Z = /* @__PURE__ */ new WeakMap();
484
+ w = /* @__PURE__ */ new WeakMap();
485
+ z = /* @__PURE__ */ new WeakMap();
486
+ $ = /* @__PURE__ */ new WeakMap();
487
+ J = /* @__PURE__ */ new WeakMap();
488
+ N = /* @__PURE__ */ new WeakMap();
513
489
  ht = /* @__PURE__ */ new WeakMap();
514
490
  ot = /* @__PURE__ */ new WeakMap();
515
491
  lt = /* @__PURE__ */ new WeakMap();
516
492
  at = /* @__PURE__ */ new WeakMap();
517
- Pt = ie([
518
- Vt("e-scrollbar")
519
- ], Pt);
493
+ At = ie([
494
+ $t("e-scrollbar")
495
+ ], At);
520
496
  export {
521
497
  mt as ScrollElement,
522
- Pt as ScrollbarElement
498
+ At as ScrollbarElement
523
499
  };
@@ -1 +1 @@
1
- "use strict";var o=(r,t,e)=>{if(!t.has(r))throw TypeError("Cannot "+e)};var s=(r,t,e)=>(o(r,t,"read from private field"),e?e.call(r):t.get(r)),h=(r,t,e)=>{if(t.has(r))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(r):t.set(r,e)};Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var a,n;class u{constructor(){h(this,a,new Set);h(this,n,new WeakMap)}register(t){s(this,n).set(t,{axis:"y",value:0}),s(this,a).add(t)}unregister(t){s(this,n).delete(t),s(this,a).delete(t)}update(t,e,l){const i=s(this,n).get(t);i.axis=e,i.value=l}hasEntry(t){return s(this,n).has(t)}getEntry(t){return s(this,n).get(t)}getClosest(t){let e=t.parentElement;for(;e&&!this.hasEntry(e);)e=e.parentElement;if(e&&e!==t){const l=this.getEntry(e);return l||this.getClosest(e)}return null}getAll(t){const e=Array.from(s(this,a)).filter(i=>i!==t&&i.contains(t)),l=[];return e.forEach(i=>{s(this,n).has(i)&&l.push(s(this,n).get(i))}),l}}a=new WeakMap,n=new WeakMap;const c=new u;exports.scrollEntries=c;
1
+ "use strict";var o=(r,t,e)=>{if(!t.has(r))throw TypeError("Cannot "+e)};var s=(r,t,e)=>(o(r,t,"read from private field"),e?e.call(r):t.get(r)),h=(r,t,e)=>{if(t.has(r))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(r):t.set(r,e)};Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("../dom-JBOkFLTh.cjs");var a,n;class c{constructor(){h(this,a,new Set);h(this,n,new WeakMap)}register(t){s(this,n).set(t,{axis:"y",value:0}),s(this,a).add(t)}unregister(t){s(this,n).delete(t),s(this,a).delete(t)}update(t,e,i){const l=s(this,n).get(t);l.axis=e,l.value=i}hasEntry(t){return s(this,n).has(t)}getEntry(t){return s(this,n).get(t)}getClosest(t){let e=t.parentElement;for(;e&&!this.hasEntry(e);)e=e.parentElement;if(e&&e!==t){const i=this.getEntry(e);return i||this.getClosest(e)}return null}getAll(t){const e=u.getAllParentElements(t).filter(l=>s(this,a).has(l)),i=[];return e.forEach(l=>{s(this,n).has(l)&&i.push(s(this,n).get(l))}),i}}a=new WeakMap,n=new WeakMap;const g=new c;exports.scrollEntries=g;