aptechka 0.83.0 → 0.84.0

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 (276) hide show
  1. package/lib/Animation-BAiM6_n1.js +111 -0
  2. package/lib/Animation-DMWabSR0.cjs +1 -0
  3. package/lib/Composed-B0fvCtZz.cjs +1 -0
  4. package/lib/Composed-CgA9lLWA.js +75 -0
  5. package/lib/Damped-BLo-OAVb.cjs +1 -0
  6. package/lib/Damped-Dcz5UdMH.js +57 -0
  7. package/lib/DerivedArray-DFhxap_z.js +63 -0
  8. package/lib/DerivedArray-DYtWMW0n.cjs +1 -0
  9. package/lib/DragControls-BPHsDeH6.cjs +1 -0
  10. package/lib/DragControls-D2a1Cifp.js +234 -0
  11. package/lib/LocalLinks-BWFJYhGX.cjs +1 -0
  12. package/lib/LocalLinks-Dwgf3No6.js +65 -0
  13. package/lib/PageAnnouncerElement-DPMlVJZG.cjs +1 -0
  14. package/lib/PageAnnouncerElement-DV9pm_od.js +28 -0
  15. package/lib/PageScroll-BAatKJx6.cjs +1 -0
  16. package/lib/PageScroll-m3TsHnzR.js +65 -0
  17. package/lib/SourceElement-941MrYpq.js +265 -0
  18. package/lib/SourceElement-DBLZ7b5k.cjs +5 -0
  19. package/lib/Store-BCW70G3Z.cjs +1 -0
  20. package/lib/Store-uLDYY9ed.js +158 -0
  21. package/lib/Tweened-BvtjLCa3.js +48 -0
  22. package/lib/Tweened-DdXm1dbF.cjs +1 -0
  23. package/lib/Viewport-BiDoiU8M.js +113 -0
  24. package/lib/Viewport-CXGKUyDy.cjs +1 -0
  25. package/lib/accordion/index.cjs +1 -1
  26. package/lib/accordion/index.js +97 -93
  27. package/lib/animation/index.cjs +1 -1
  28. package/lib/animation/index.js +6 -6
  29. package/lib/api-fetcher/index.cjs +1 -1
  30. package/lib/api-fetcher/index.js +67 -66
  31. package/lib/attribute/index.cjs +1 -1
  32. package/lib/attribute/index.js +37 -34
  33. package/lib/attributes-BADnRZpK.cjs +1 -0
  34. package/lib/attributes-FObgMNCf.js +36 -0
  35. package/lib/billboard/index.cjs +1 -1
  36. package/lib/billboard/index.js +240 -232
  37. package/lib/cache/index.cjs +1 -1
  38. package/lib/cache/index.js +26 -23
  39. package/lib/canvas/index.cjs +1 -1
  40. package/lib/canvas/index.js +62 -59
  41. package/lib/canvas-BP1ceie3.cjs +1 -0
  42. package/lib/canvas-DsglKco1.js +40 -0
  43. package/lib/connector/index.cjs +1 -1
  44. package/lib/connector/index.js +44 -41
  45. package/lib/controls/index.cjs +1 -1
  46. package/lib/controls/index.js +6 -6
  47. package/lib/coordinates--JG1U6kQ.js +29 -0
  48. package/lib/coordinates-DQ9XV9M1.cjs +1 -0
  49. package/lib/css-property/index.cjs +1 -1
  50. package/lib/css-property/index.d.ts +1 -1
  51. package/lib/css-property/index.js +40 -37
  52. package/lib/css-unit-parser/index.cjs +2 -2
  53. package/lib/css-unit-parser/index.js +22 -19
  54. package/lib/css-value-parser/index.cjs +1 -1
  55. package/lib/css-value-parser/index.js +13 -11
  56. package/lib/custom-elements-BfZCJde6.cjs +1 -0
  57. package/lib/custom-elements-HEMuF7yH.js +27 -0
  58. package/lib/dev/index.cjs +2 -1
  59. package/lib/dev/index.d.ts +1 -0
  60. package/lib/dev/index.js +25 -10
  61. package/lib/device/index.cjs +1 -1
  62. package/lib/device/index.js +5 -5
  63. package/lib/dom-B40i6NXw.cjs +1 -0
  64. package/lib/dom-D8D-_9ty.js +108 -0
  65. package/lib/easings-BSGJFMAo.js +40 -0
  66. package/lib/easings-BWq0pPLq.cjs +1 -0
  67. package/lib/element-CqD0jqBJ.cjs +1 -0
  68. package/lib/element-DKw5H-Tu.js +10 -0
  69. package/lib/element-linked-store/index.cjs +1 -1
  70. package/lib/element-linked-store/index.js +53 -52
  71. package/lib/element-resizer/index.cjs +1 -1
  72. package/lib/element-resizer/index.js +47 -44
  73. package/lib/en3/index.cjs +4 -4
  74. package/lib/en3/index.js +192 -185
  75. package/lib/events-Ds-TuvYW.js +9 -0
  76. package/lib/events-UlGk63iC.cjs +1 -0
  77. package/lib/file-DwQs6bB6.js +28 -0
  78. package/lib/file-RHfA3OS-.cjs +1 -0
  79. package/lib/function-H4b_gTg6.cjs +1 -0
  80. package/lib/function-UmbPrOHm.js +19 -0
  81. package/lib/gestures-DmKKNnh4.js +14 -0
  82. package/lib/gestures-DtYbQr49.cjs +1 -0
  83. package/lib/history/index.cjs +1 -1
  84. package/lib/history/index.js +24 -21
  85. package/lib/iframe/index.cjs +1 -1
  86. package/lib/iframe/index.js +27 -24
  87. package/lib/image/index.cjs +1 -1
  88. package/lib/image/index.js +17 -13
  89. package/lib/index-BpO2RJ__.cjs +1 -0
  90. package/lib/index-DpKsHe97.js +68 -0
  91. package/lib/intersector/index.cjs +1 -1
  92. package/lib/intersector/index.js +3 -3
  93. package/lib/jsx/ComponentElement.d.ts +4 -0
  94. package/lib/jsx/h.d.ts +8 -2
  95. package/lib/jsx/hooks/component/useStylesheet.d.ts +1 -1
  96. package/lib/jsx/hooks/cssProperty.d.ts +6 -0
  97. package/lib/jsx/hooks/resize.d.ts +4 -0
  98. package/lib/jsx/hooks/store.d.ts +1 -2
  99. package/lib/jsx/hooks/ticker.d.ts +5 -0
  100. package/lib/jsx/index.cjs +1 -1
  101. package/lib/jsx/index.d.ts +5 -2
  102. package/lib/jsx/index.js +171 -124
  103. package/lib/jsx/plugins/vite/index.cjs +49 -0
  104. package/lib/jsx/plugins/vite/index.d.ts +38 -0
  105. package/lib/jsx/plugins/vite/index.js +104 -0
  106. package/lib/jsx/render.d.ts +3 -1
  107. package/lib/jsx/type.d.ts +13 -6
  108. package/lib/jsx/utils/children/createElement.d.ts +1 -0
  109. package/lib/jsx/utils/children/hydrateTextNode.d.ts +1 -0
  110. package/lib/ladder/index.cjs +1 -1
  111. package/lib/ladder/index.js +86 -84
  112. package/lib/layout-C26zkY7D.js +35 -0
  113. package/lib/layout-CnGLl7oe.cjs +1 -0
  114. package/lib/layout-box/index.cjs +1 -1
  115. package/lib/layout-box/index.js +221 -217
  116. package/lib/loading/index.cjs +1 -1
  117. package/lib/loading/index.js +48 -45
  118. package/lib/local-links/index.cjs +1 -1
  119. package/lib/local-links/index.js +2 -2
  120. package/lib/masonry-layout/index.cjs +1 -1
  121. package/lib/masonry-layout/index.js +48 -45
  122. package/lib/math-C-knY2TL.cjs +1 -0
  123. package/lib/math-r8V23YFe.js +57 -0
  124. package/lib/media/index.cjs +1 -1
  125. package/lib/media/index.js +28 -25
  126. package/lib/metadata-BNdkmeeD.js +15 -0
  127. package/lib/metadata-BrHUfpV9.cjs +1 -0
  128. package/lib/morph/index.cjs +1 -1
  129. package/lib/morph/index.js +561 -556
  130. package/lib/morph-BtgB1YQP.js +256 -0
  131. package/lib/morph-Buhxq-X0.cjs +1 -0
  132. package/lib/need_redo_tweaker/index.cjs +4 -4
  133. package/lib/need_redo_tweaker/index.js +862 -834
  134. package/lib/notifier/index.cjs +1 -1
  135. package/lib/notifier/index.js +29 -26
  136. package/lib/number-Bu4sGvW7.cjs +1 -0
  137. package/lib/number-DiVt2xnh.js +47 -0
  138. package/lib/object-CiIdEmJx.js +98 -0
  139. package/lib/object-DTY_W6xG.cjs +1 -0
  140. package/lib/order/index.cjs +1 -1
  141. package/lib/order/index.js +3 -3
  142. package/lib/page-announcer/index.cjs +1 -1
  143. package/lib/page-announcer/index.js +2 -2
  144. package/lib/page-scroll/index.cjs +1 -1
  145. package/lib/page-scroll/index.js +2 -2
  146. package/lib/pixel-perfect/index.cjs +4 -4
  147. package/lib/pixel-perfect/index.js +43 -40
  148. package/lib/pointer/index.cjs +1 -1
  149. package/lib/pointer/index.js +125 -122
  150. package/lib/polyfills-CG1XJNia.js +28 -0
  151. package/lib/polyfills-DZCuDBkA.cjs +1 -0
  152. package/lib/popover/index.cjs +1 -1
  153. package/lib/popover/index.js +249 -245
  154. package/lib/radio/index.cjs +1 -1
  155. package/lib/radio/index.js +58 -55
  156. package/lib/render-DLcWVnuH.js +355 -0
  157. package/lib/render-DdomypCo.cjs +1 -0
  158. package/lib/router/index.cjs +1 -1
  159. package/lib/router/index.js +196 -194
  160. package/lib/scroll/index.cjs +1 -1
  161. package/lib/scroll/index.js +890 -877
  162. package/lib/scroll-BvIWh1xB.js +41 -0
  163. package/lib/scroll-CT0lpyRZ.cjs +1 -0
  164. package/lib/scroll-entries/index.cjs +1 -1
  165. package/lib/scroll-entries/index.js +37 -34
  166. package/lib/scroll-kit/index.cjs +1 -1
  167. package/lib/scroll-kit/index.js +214 -209
  168. package/lib/sequence/index.cjs +1 -1
  169. package/lib/sequence/index.js +102 -98
  170. package/lib/size-element/index.cjs +1 -1
  171. package/lib/size-element/index.js +29 -26
  172. package/lib/slicer/index.cjs +1 -1
  173. package/lib/slicer/index.js +118 -113
  174. package/lib/source/index.cjs +1 -1
  175. package/lib/source/index.js +5 -5
  176. package/lib/spa/index.cjs +1 -1
  177. package/lib/spa/index.js +94 -94
  178. package/lib/store/index.cjs +1 -1
  179. package/lib/store/index.d.ts +2 -2
  180. package/lib/store/index.js +11 -10
  181. package/lib/string-B3lm2b7v.js +84 -0
  182. package/lib/string-CbRNzmd9.cjs +1 -0
  183. package/lib/style-DBoQWK0d.js +14 -0
  184. package/lib/style-IDJ6db6n.cjs +1 -0
  185. package/lib/stylesheet-CHvuef16.js +28 -0
  186. package/lib/stylesheet-CQdBaIAA.cjs +1 -0
  187. package/lib/ticker/index.cjs +1 -1
  188. package/lib/ticker/index.js +96 -92
  189. package/lib/url-CPCO10Sy.cjs +1 -0
  190. package/lib/url-CWCY_qe_.js +124 -0
  191. package/lib/utils/attributes.d.ts +2 -0
  192. package/lib/utils/dom.d.ts +1 -0
  193. package/lib/utils/index.cjs +1 -1
  194. package/lib/utils/index.js +245 -226
  195. package/lib/video/index.cjs +1 -1
  196. package/lib/video/index.js +36 -33
  197. package/lib/window-resizer/index.cjs +1 -1
  198. package/lib/window-resizer/index.js +27 -24
  199. package/lib/youtube/index.cjs +1 -1
  200. package/lib/youtube/index.js +56 -54
  201. package/package.json +15 -3
  202. package/lib/Animation-BzTjZIE-.js +0 -108
  203. package/lib/Animation-C39Ah-LM.cjs +0 -1
  204. package/lib/Composed-C-mnUGX6.js +0 -70
  205. package/lib/Composed-RFcm2x5c.cjs +0 -1
  206. package/lib/Damped-CRusiRIV.js +0 -56
  207. package/lib/Damped-Prr0iKu1.cjs +0 -1
  208. package/lib/DerivedArray-DdCR-Oy7.cjs +0 -1
  209. package/lib/DerivedArray-opbeygTL.js +0 -59
  210. package/lib/DragControls-8rNZwQrs.cjs +0 -1
  211. package/lib/DragControls-DBNdMBA4.js +0 -228
  212. package/lib/LocalLinks-BxhSFv_Q.cjs +0 -1
  213. package/lib/LocalLinks-DRAQ-fxE.js +0 -62
  214. package/lib/PageAnnouncerElement-0LxZjtVH.js +0 -24
  215. package/lib/PageAnnouncerElement-AQ0Ja6HM.cjs +0 -1
  216. package/lib/PageScroll-0LxFblry.js +0 -62
  217. package/lib/PageScroll-BXJUQwG7.cjs +0 -1
  218. package/lib/SourceElement-BHqPFbna.cjs +0 -5
  219. package/lib/SourceElement-DjbHjynf.js +0 -260
  220. package/lib/Store-Blf4msDz.cjs +0 -1
  221. package/lib/Store-ZThXYBQd.js +0 -152
  222. package/lib/Tweened-Bw1Cn1PJ.js +0 -47
  223. package/lib/Tweened-DWtk9E-O.cjs +0 -1
  224. package/lib/Viewport-BxCr0GlB.cjs +0 -1
  225. package/lib/Viewport-Dt-d9DPi.js +0 -109
  226. package/lib/attributes-69we3byR.js +0 -10
  227. package/lib/attributes-Bf2svn4j.cjs +0 -1
  228. package/lib/canvas-CU5Xjahf.cjs +0 -1
  229. package/lib/canvas-DeZ0SLUJ.js +0 -34
  230. package/lib/coordinates-CgdGoSYs.js +0 -24
  231. package/lib/coordinates-D8Np3cPD.cjs +0 -1
  232. package/lib/custom-elements-DBnCK7Zx.js +0 -24
  233. package/lib/custom-elements-Dh4TWRDJ.cjs +0 -1
  234. package/lib/dom-BETkVSSZ.js +0 -82
  235. package/lib/dom-CBLlqORw.cjs +0 -1
  236. package/lib/easings-BEmRlrDd.js +0 -38
  237. package/lib/easings-GegIwET5.cjs +0 -1
  238. package/lib/element-CGVl1jA-.js +0 -7
  239. package/lib/element-yhcBhsho.cjs +0 -1
  240. package/lib/events-CsVF98U6.js +0 -6
  241. package/lib/events-KVanG9sR.cjs +0 -1
  242. package/lib/file-DSpfWdd9.cjs +0 -1
  243. package/lib/file-GHShUlue.js +0 -24
  244. package/lib/function-C10DGppn.js +0 -17
  245. package/lib/function-MthRj-GJ.cjs +0 -1
  246. package/lib/gestures-C7gbKx11.cjs +0 -1
  247. package/lib/gestures-CcXV6fCp.js +0 -11
  248. package/lib/index-OE2INULi.cjs +0 -1
  249. package/lib/index-e9eDuagL.js +0 -65
  250. package/lib/jsx/plugins/hmr.d.ts +0 -13
  251. package/lib/layout-BSMtwCga.js +0 -29
  252. package/lib/layout-Ctc2p3uz.cjs +0 -1
  253. package/lib/math-BOBiC4TN.js +0 -45
  254. package/lib/math-GDWEqu7y.cjs +0 -1
  255. package/lib/metadata-BcYZ5w3T.cjs +0 -1
  256. package/lib/metadata-jfowcCyz.js +0 -12
  257. package/lib/morph-B6sGhLCi.cjs +0 -1
  258. package/lib/morph-D_ybmXWR.js +0 -242
  259. package/lib/number-ChAm68cm.cjs +0 -1
  260. package/lib/number-CumqY64S.js +0 -40
  261. package/lib/object-CcMK4y_r.js +0 -87
  262. package/lib/object-baN9pgbU.cjs +0 -1
  263. package/lib/polyfills-DJrTJQky.js +0 -24
  264. package/lib/polyfills-Df4r-ETT.cjs +0 -1
  265. package/lib/render-1u700s93.js +0 -212
  266. package/lib/render-BIOfUddT.cjs +0 -1
  267. package/lib/scroll-BA2WnUrb.cjs +0 -1
  268. package/lib/scroll-DY5senkF.js +0 -37
  269. package/lib/string-BlMQbe8b.js +0 -70
  270. package/lib/string-DUXXtU8v.cjs +0 -1
  271. package/lib/style-At6aDoqG.cjs +0 -1
  272. package/lib/style-j2TwriJ_.js +0 -10
  273. package/lib/stylesheet-5_o7PFzM.cjs +0 -1
  274. package/lib/stylesheet-DdBzowZY.js +0 -24
  275. package/lib/url-CHgcNwJ1.cjs +0 -1
  276. package/lib/url-CYgo5vrG.js +0 -113
@@ -1,111 +1,113 @@
1
- var w = Object.defineProperty;
2
- var k = Object.getOwnPropertySymbols;
3
- var V = Object.prototype.hasOwnProperty, x = Object.prototype.propertyIsEnumerable;
4
- var m = (e) => {
5
- throw TypeError(e);
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
3
+ var __hasOwnProp = Object.prototype.hasOwnProperty, __propIsEnum = Object.prototype.propertyIsEnumerable;
4
+ var __typeError = (msg) => {
5
+ throw TypeError(msg);
6
6
  };
7
- var S = (e, s, t) => s in e ? w(e, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[s] = t, v = (e, s) => {
8
- for (var t in s || (s = {}))
9
- V.call(s, t) && S(e, t, s[t]);
10
- if (k)
11
- for (var t of k(s))
12
- x.call(s, t) && S(e, t, s[t]);
13
- return e;
7
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: !0, configurable: !0, writable: !0, value }) : obj[key] = value, __spreadValues = (a, b) => {
8
+ for (var prop in b || (b = {}))
9
+ __hasOwnProp.call(b, prop) && __defNormalProp(a, prop, b[prop]);
10
+ if (__getOwnPropSymbols)
11
+ for (var prop of __getOwnPropSymbols(b))
12
+ __propIsEnum.call(b, prop) && __defNormalProp(a, prop, b[prop]);
13
+ return a;
14
14
  };
15
- var g = (e, s, t) => s.has(e) || m("Cannot " + t);
16
- var r = (e, s, t) => (g(e, s, "read from private field"), t ? t.call(e) : s.get(e)), u = (e, s, t) => s.has(e) ? m("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(e) : s.set(e, t), d = (e, s, t, i) => (g(e, s, "write to private field"), i ? i.call(e, t) : s.set(e, t), t), b = (e, s, t) => (g(e, s, "access private method"), t);
17
- import { S as M } from "../Store-ZThXYBQd.js";
15
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: !0 });
16
+ var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
17
+ var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj)), __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value), __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value), __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
18
+ import { S as Store } from "../Store-uLDYY9ed.js";
18
19
  import "construct-style-sheets-polyfill";
19
- import "../index-e9eDuagL.js";
20
- var f, h, a, p, y;
21
- class L extends M {
22
- constructor(t) {
23
- super(t, {
24
- equalityCheck: () => !1
20
+ import "../index-DpKsHe97.js";
21
+ var _base, _steps, _bindings, _Ladder_instances, calculate_fn;
22
+ const _Ladder = class _Ladder extends Store {
23
+ constructor(base) {
24
+ super(base, {
25
+ equalityCheck: /* @__PURE__ */ __name(() => !1, "equalityCheck")
25
26
  });
26
- u(this, p);
27
- u(this, f);
28
- u(this, h);
29
- u(this, a);
30
- d(this, f, v({}, t)), d(this, h, /* @__PURE__ */ new Map()), d(this, a, /* @__PURE__ */ new Set());
27
+ __privateAdd(this, _Ladder_instances);
28
+ __privateAdd(this, _base);
29
+ __privateAdd(this, _steps);
30
+ __privateAdd(this, _bindings);
31
+ __privateSet(this, _base, __spreadValues({}, base)), __privateSet(this, _steps, /* @__PURE__ */ new Map()), __privateSet(this, _bindings, /* @__PURE__ */ new Set());
31
32
  }
32
33
  get base() {
33
- return r(this, f);
34
+ return __privateGet(this, _base);
34
35
  }
35
36
  get steps() {
36
- return r(this, h);
37
+ return __privateGet(this, _steps);
37
38
  }
38
39
  close() {
39
- super.close(), r(this, a).clear(), r(this, h).clear();
40
+ super.close(), __privateGet(this, _bindings).clear(), __privateGet(this, _steps).clear();
40
41
  }
41
- bind(t) {
42
- r(this, a).add(t);
42
+ bind(sub) {
43
+ __privateGet(this, _bindings).add(sub);
43
44
  }
44
- unbind(t) {
45
- r(this, a).delete(t);
45
+ unbind(sub) {
46
+ __privateGet(this, _bindings).delete(sub);
46
47
  }
47
- deleteStep(t) {
48
- this.steps.delete(t);
48
+ deleteStep(stepName) {
49
+ this.steps.delete(stepName);
49
50
  }
50
- getStepValue(t) {
51
- var i;
52
- return (i = this.steps.get(t)) == null ? void 0 : i[1];
51
+ getStepValue(stepName) {
52
+ var _a;
53
+ return (_a = this.steps.get(stepName)) == null ? void 0 : _a[1];
53
54
  }
54
- getExcludedStepsValue(...t) {
55
- const i = /* @__PURE__ */ new Map();
56
- return t.map((o) => {
57
- const n = this.steps.get(o);
58
- n && i.set(o, n);
59
- }), b(this, p, y).call(this, i);
55
+ getExcludedStepsValue(...stepNames) {
56
+ const steps = /* @__PURE__ */ new Map();
57
+ return stepNames.map((name) => {
58
+ const step = this.steps.get(name);
59
+ step && steps.set(name, step);
60
+ }), __privateMethod(this, _Ladder_instances, calculate_fn).call(this, steps);
60
61
  }
61
- getIncludedStepsValue(...t) {
62
- const i = new Map(this.steps);
63
- return t.map((o) => {
64
- this.steps.has(o) && i.delete(o);
65
- }), b(this, p, y).call(this, i);
62
+ getIncludedStepsValue(...stepNames) {
63
+ const steps = new Map(this.steps);
64
+ return stepNames.map((name) => {
65
+ this.steps.has(name) && steps.delete(name);
66
+ }), __privateMethod(this, _Ladder_instances, calculate_fn).call(this, steps);
66
67
  }
67
- setStep(t, i, o) {
68
- const n = {};
69
- for (const c in this.current)
70
- n[c] = o[c] || 0;
71
- this.steps.set(t, [i, n]), this.calculate();
68
+ setStep(stepName, action, value) {
69
+ const readyValue = {};
70
+ for (const key in this.current)
71
+ readyValue[key] = value[key] || 0;
72
+ this.steps.set(stepName, [action, readyValue]), this.calculate();
72
73
  }
73
74
  calculate() {
74
- this.current = b(this, p, y).call(this, r(this, h));
75
+ this.current = __privateMethod(this, _Ladder_instances, calculate_fn).call(this, __privateGet(this, _steps));
75
76
  }
76
- }
77
- f = new WeakMap(), h = new WeakMap(), a = new WeakMap(), p = new WeakSet(), y = function(t) {
78
- const i = {};
79
- for (const o in this.base)
80
- i[o] = this.base[o];
81
- for (const o of t) {
82
- const n = o[1];
83
- if (n[0] === "+")
84
- for (const c in this.base) {
85
- const l = n[1][c];
86
- i[c] += l;
77
+ };
78
+ _base = new WeakMap(), _steps = new WeakMap(), _bindings = new WeakMap(), _Ladder_instances = new WeakSet(), calculate_fn = /* @__PURE__ */ __name(function(steps) {
79
+ const calculated = {};
80
+ for (const key in this.base)
81
+ calculated[key] = this.base[key];
82
+ for (const item of steps) {
83
+ const step = item[1];
84
+ if (step[0] === "+")
85
+ for (const key in this.base) {
86
+ const value = step[1][key];
87
+ calculated[key] += value;
87
88
  }
88
- else if (n[0] === "*")
89
- for (const c in this.base) {
90
- const l = n[1][c];
91
- i[c] *= l;
89
+ else if (step[0] === "*")
90
+ for (const key in this.base) {
91
+ const value = step[1][key];
92
+ calculated[key] *= value;
92
93
  }
93
- else if (n[0] === "/")
94
- for (const c in this.base) {
95
- const l = n[1][c];
96
- i[c] /= l;
94
+ else if (step[0] === "/")
95
+ for (const key in this.base) {
96
+ const value = step[1][key];
97
+ calculated[key] /= value;
97
98
  }
98
- else if (n[0] === "-")
99
- for (const c in this.base) {
100
- const l = n[1][c];
101
- i[c] -= l;
99
+ else if (step[0] === "-")
100
+ for (const key in this.base) {
101
+ const value = step[1][key];
102
+ calculated[key] -= value;
102
103
  }
103
104
  }
104
- for (const o of r(this, a))
105
- for (const n in i)
106
- o[n] = i[n];
107
- return i;
108
- };
105
+ for (const sub of __privateGet(this, _bindings))
106
+ for (const key in calculated)
107
+ sub[key] = calculated[key];
108
+ return calculated;
109
+ }, "#calculate"), __name(_Ladder, "Ladder");
110
+ let Ladder = _Ladder;
109
111
  export {
110
- L as Ladder
112
+ Ladder
111
113
  };
@@ -0,0 +1,35 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: !0 });
3
+ function getCumulativePosition(target, from = "offsetLeft", stopElement) {
4
+ let acc = 0;
5
+ do
6
+ acc += target[from] || 0, target = target.offsetParent;
7
+ while (target && target !== stopElement);
8
+ return acc;
9
+ }
10
+ __name(getCumulativePosition, "getCumulativePosition");
11
+ function getCumulativeOffsetLeft(target, stopElement) {
12
+ return getCumulativePosition(target, "offsetLeft", stopElement);
13
+ }
14
+ __name(getCumulativeOffsetLeft, "getCumulativeOffsetLeft");
15
+ function getCumulativeOffsetTop(target, stopElement) {
16
+ return getCumulativePosition(target, "offsetTop", stopElement);
17
+ }
18
+ __name(getCumulativeOffsetTop, "getCumulativeOffsetTop");
19
+ function getStickyOffset(el, type) {
20
+ const stickyParents = [];
21
+ let parent = el.parentElement;
22
+ for (; parent; )
23
+ window.getComputedStyle(parent).position === "sticky" && stickyParents.push(parent), parent = parent.parentElement;
24
+ return stickyParents.reduce(
25
+ (p, c) => p + (type === "top" ? c.offsetTop : c.offsetLeft),
26
+ 0
27
+ );
28
+ }
29
+ __name(getStickyOffset, "getStickyOffset");
30
+ export {
31
+ getCumulativeOffsetTop as a,
32
+ getStickyOffset as b,
33
+ getCumulativePosition as c,
34
+ getCumulativeOffsetLeft as g
35
+ };
@@ -0,0 +1 @@
1
+ "use strict";var __defProp=Object.defineProperty;var __name=(target,value)=>__defProp(target,"name",{value,configurable:!0});function getCumulativePosition(target,from="offsetLeft",stopElement){let acc=0;do acc+=target[from]||0,target=target.offsetParent;while(target&&target!==stopElement);return acc}__name(getCumulativePosition,"getCumulativePosition");function getCumulativeOffsetLeft(target,stopElement){return getCumulativePosition(target,"offsetLeft",stopElement)}__name(getCumulativeOffsetLeft,"getCumulativeOffsetLeft");function getCumulativeOffsetTop(target,stopElement){return getCumulativePosition(target,"offsetTop",stopElement)}__name(getCumulativeOffsetTop,"getCumulativeOffsetTop");function getStickyOffset(el,type){const stickyParents=[];let parent=el.parentElement;for(;parent;)window.getComputedStyle(parent).position==="sticky"&&stickyParents.push(parent),parent=parent.parentElement;return stickyParents.reduce((p,c)=>p+(type==="top"?c.offsetTop:c.offsetLeft),0)}__name(getStickyOffset,"getStickyOffset");exports.getCumulativeOffsetLeft=getCumulativeOffsetLeft;exports.getCumulativeOffsetTop=getCumulativeOffsetTop;exports.getCumulativePosition=getCumulativePosition;exports.getStickyOffset=getStickyOffset;
@@ -1 +1 @@
1
- "use strict";var J=i=>{throw TypeError(i)};var N=(i,e,s)=>e.has(i)||J("Cannot "+s);var t=(i,e,s)=>(N(i,e,"read from private field"),s?s.call(i):e.get(i)),h=(i,e,s)=>e.has(i)?J("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,s),r=(i,e,s,l)=>(N(i,e,"write to private field"),l?l.call(i,s):e.set(i,s),s),L=(i,e,s)=>(N(i,e,"access private method"),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const St=require("../css-unit-parser/index.cjs"),$=require("../ladder/index.cjs"),Q=require("../order/index.cjs"),F=require("../scroll-entries/index.cjs"),j=require("../ticker/index.cjs"),tt=require("../index-OE2INULi.cjs"),et=require("../dom-CBLlqORw.cjs"),V=require("../layout-Ctc2p3uz.cjs");require("construct-style-sheets-polyfill");const st=require("../element-resizer/index.cjs"),it=require("../window-resizer/index.cjs"),dt=require("../notifier/index.cjs");function ht(i){const e=Math.sqrt(i.m11*i.m11+i.m12*i.m12+i.m13*i.m13),s=Math.sqrt(i.m21*i.m21+i.m22*i.m22+i.m23*i.m23),l=Math.sqrt(i.m31*i.m31+i.m32*i.m32+i.m33*i.m33),y=Math.atan2(i.m32,i.m33),B=Math.atan2(-i.m31,Math.sqrt(i.m32*i.m32+i.m33*i.m33)),K=Math.atan2(i.m21,i.m11),a=i.m41,P=i.m42*-1,O=i.m43;return{scaleX:e,scaleY:s,scaleZ:l,rotationX:y,rotationY:B,rotationZ:K,translationX:a,translationY:P,translationZ:O}}var u,b,m,R,A,T,v,w,W,k,x,_,X,S,d,C,Y,H,U,g,p,z,o,n,c,E,M,I,f,G,rt,nt,lt,q,D,Z;class ft{constructor(e,s){h(this,f);h(this,u,null);h(this,b,null);h(this,m,[]);h(this,R,"auto");h(this,A,"top");h(this,T,!1);h(this,v,!0);h(this,w,!0);h(this,W,!0);h(this,k,!0);h(this,x,0);h(this,_,0);h(this,X,0);h(this,S,0);h(this,d,0);h(this,C,0);h(this,Y,0);h(this,H,0);h(this,U,0);h(this,g,{x:0,y:0,z:0});h(this,p,{x:0,y:0,z:0});h(this,z,{x:1,y:1,z:1});h(this,o,new $.Ladder({x:0,y:0,z:0}));h(this,n,new $.Ladder({x:0,y:0,z:0}));h(this,c,new $.Ladder({x:0,y:0,z:0}));h(this,E,{x:0,y:0,z:0});h(this,M,new Map);h(this,I,new dt.Notifier);h(this,q,()=>{tt.isBrowser&&L(this,f,nt).call(this)});h(this,D,()=>{L(this,f,lt).call(this),L(this,f,G).call(this)});h(this,Z,()=>{const e=F.scrollEntries.getAll(this.element);t(this,M).forEach((s,l)=>{e.includes(l)||(this.deleteScrollStep(s),t(this,M).delete(l))}),e.forEach(s=>{if(!t(this,M).has(s)){const l=()=>s;t(this,M).set(s,l),this.setScrollStep(l)}})});tt.isBrowser&&(r(this,u,et.getElement(e)||document.body),r(this,b,et.getElement(s==null?void 0:s.containerElement)||document.body),r(this,R,(s==null?void 0:s.scrollAxis)||"auto"),r(this,A,(s==null?void 0:s.frontSide)||"top"),r(this,T,(s==null?void 0:s.cartesian)||!1),r(this,v,(s==null?void 0:s.sizeStep)!==void 0?s.sizeStep:!0),r(this,w,(s==null?void 0:s.positionStep)!==void 0?s.positionStep:!0),r(this,W,(s==null?void 0:s.transformStep)!==void 0?s.transformStep:!0),r(this,k,(s==null?void 0:s.scrollStep)!==void 0?s.scrollStep:!0),t(this,c).setStep("_size","+",{x:1,y:1,z:1}),t(this,n).setStep("_position","+",{x:0,y:0,z:0}),t(this,c).setStep("_scale","*",{x:1,y:1,z:1}),t(this,n).setStep("_translation","+",{x:0,y:0,z:0}),t(this,o).setStep("_rotation","+",{x:0,y:0,z:0}),t(this,k)&&(F.scrollEntries.notifier.subscribe(t(this,Z)),t(this,Z).call(this)),st.elementResizer.subscribe(this.element,t(this,q)),it.windowResizer.subscribe(t(this,q),Q.RESIZE_ORDER.LAYOUT_BOX),j.ticker.subscribe(t(this,D),{order:Q.TICK_ORDER.LAYOUT_BOX,culling:s!=null&&s.culling?this.element:void 0}))}get element(){return t(this,u)}get containerElement(){return t(this,b)}get position(){return t(this,n).current}get rotation(){return t(this,o).current}get scale(){return t(this,c).current}get scrollValue(){return t(this,E)}get left(){return t(this,d)}get top(){return t(this,S)}get CSSTranslation(){return t(this,g)}get CSSRotation(){return t(this,p)}get CSSScale(){return t(this,z)}get front(){return t(this,C)}get width(){return t(this,x)}get height(){return t(this,_)}get depth(){return t(this,X)}destroy(){j.ticker.unsubscribe(t(this,D)),st.elementResizer.unsubscribe(t(this,q)),it.windowResizer.unsubscribe(t(this,q)),F.scrollEntries.notifier.unsubscribe(t(this,Z)),t(this,M).clear(),t(this,n).close(),t(this,o).close(),t(this,c).close()}bindObject(e){e.position&&t(this,n).bind(e.position),e.rotation&&t(this,o).bind(e.rotation),e.scale&&t(this,c).bind(e.scale)}unbindObject(e){e.position&&t(this,n).unbind(e.position),e.rotation&&t(this,o).unbind(e.rotation),e.scale&&t(this,c).unbind(e.scale)}setScrollStep(e){return t(this,m).includes(e)||t(this,m).push(e),()=>this.deleteScrollStep(e)}deleteScrollStep(e){r(this,m,t(this,m).filter(s=>s!==e))}setPositionStep(...e){t(this,n).setStep(...e)}getPositionStep(...e){return t(this,n).getStepValue(...e)}setRotationStep(...e){t(this,o).setStep(...e)}getRotationStep(...e){return t(this,o).getStepValue(...e)}getExcludedRotationSteps(...e){return t(this,o).getExcludedStepsValue(...e)}getIncludedRotationSteps(...e){return t(this,o).getIncludedStepsValue(...e)}setScaleStep(...e){t(this,c).setStep(...e)}getScaleStep(...e){return t(this,c).getStepValue(...e)}getExcludedScaleSteps(...e){return t(this,c).getExcludedStepsValue(...e)}getIncludedScaleSteps(...e){return t(this,c).getIncludedStepsValue(...e)}deletePositionStep(...e){t(this,n).deleteStep(...e)}getExcludedPositionSteps(...e){return t(this,n).getExcludedStepsValue(...e)}getIncludedPositionSteps(...e){return t(this,n).getIncludedStepsValue(...e)}deleteRotationStep(...e){t(this,o).deleteStep(...e)}deleteScaleStep(...e){t(this,c).deleteStep(...e)}onPosition(...e){return t(this,n).subscribe(...e)}offPosition(...e){t(this,n).unsubscribe(...e)}onScale(...e){return t(this,c).subscribe(...e)}offScale(...e){t(this,c).unsubscribe(...e)}onRotation(...e){return t(this,o).subscribe(...e)}offRotation(...e){t(this,o).unsubscribe(...e)}onResize(...e){return t(this,I).subscribe(...e)}offResize(...e){return t(this,I).unsubscribe(...e)}}u=new WeakMap,b=new WeakMap,m=new WeakMap,R=new WeakMap,A=new WeakMap,T=new WeakMap,v=new WeakMap,w=new WeakMap,W=new WeakMap,k=new WeakMap,x=new WeakMap,_=new WeakMap,X=new WeakMap,S=new WeakMap,d=new WeakMap,C=new WeakMap,Y=new WeakMap,H=new WeakMap,U=new WeakMap,g=new WeakMap,p=new WeakMap,z=new WeakMap,o=new WeakMap,n=new WeakMap,c=new WeakMap,E=new WeakMap,M=new WeakMap,I=new WeakMap,f=new WeakSet,G=function(){t(this,c).calculate(),t(this,n).calculate(),t(this,o).calculate()},rt=function(){t(this,c).setStep("_size","+",{x:t(this,v)?t(this,x):1,y:t(this,v)?t(this,_):1,z:t(this,v)?t(this,X):1});const e=t(this,w)?t(this,Y):0,s=t(this,w)?t(this,H):0,l=t(this,w)?t(this,U):0;t(this,n).setStep("_position","+",{x:e,y:s,z:l}),t(this,W)?(t(this,c).setStep("_scale","*",{x:t(this,z).x,y:t(this,z).y,z:t(this,z).z}),t(this,n).setStep("_translation","+",{x:t(this,g).x,y:t(this,g).y,z:t(this,g).z}),t(this,o).setStep("_rotation","+",{x:t(this,p).x,y:t(this,p).y,z:t(this,p).z})):(t(this,c).setStep("_scale","*",{x:1,y:1,z:1}),t(this,n).setStep("_translation","+",{x:0,y:0,z:0}),t(this,o).setStep("_rotation","+",{x:0,y:0,z:0}))},nt=function(){const e=getComputedStyle(t(this,u));r(this,x,Math.max(t(this,u).clientWidth,1)),r(this,_,Math.max(t(this,u).clientHeight,1)),r(this,X,Math.max(St.cssUnitParser.parse(e.getPropertyValue("--depth")||"0px"),1));const s=V.getCumulativeOffsetLeft(t(this,b)),l=V.getCumulativeOffsetTop(t(this,b)),y=t(this,b).clientWidth,B=t(this,b).clientHeight;if(r(this,d,V.getCumulativeOffsetLeft(t(this,u))-s),r(this,S,V.getCumulativeOffsetTop(t(this,u))-l),t(this,R)==="z"){const P=t(this,d)/y,O=t(this,S)/B;r(this,d,(P-Math.floor(P))*y),r(this,S,(O-Math.floor(O))*B),t(this,A)==="left"?r(this,C,V.getCumulativeOffsetLeft(t(this,u))-s-t(this,d)):r(this,C,V.getCumulativeOffsetTop(t(this,u))-l-t(this,S))}if(r(this,d,t(this,d)+t(this,u).clientLeft),r(this,S,t(this,S)+t(this,u).clientTop),t(this,T)){const P=Math.round(y/2),O=Math.round(B/2),ct=t(this,x)?Math.round(t(this,x)/2):0,ot=t(this,_)?Math.round(t(this,_)/2):0,ut=t(this,d)-P+ct,at=(t(this,S)-O+ot)*-1;r(this,Y,ut),r(this,H,at)}else r(this,Y,t(this,d)),r(this,H,t(this,S));r(this,U,t(this,C)*-1);const K=new WebKitCSSMatrix(e.transform),a=ht(K);t(this,g).x=a.translationX,t(this,g).y=a.translationY,t(this,g).z=a.translationZ,t(this,z).x=a.scaleX,t(this,z).y=a.scaleY,t(this,z).z=a.scaleZ,t(this,p).x=a.rotationX,t(this,p).y=a.rotationY,t(this,p).z=a.rotationZ,L(this,f,rt).call(this),L(this,f,G).call(this),t(this,I).notify()},lt=function(){t(this,E).x=0,t(this,E).y=0,t(this,E).z=0;for(let e=0;e<t(this,m).length;e++){const s=t(this,m)[e]();let l=s.axis;t(this,R)!=="auto"&&(l=t(this,R));const y=s.value*(l==="x"?-1:t(this,T)?1:-1);t(this,E)[l]+=y,t(this,n).setStep(`_scroll_${e}`,"+",{[l]:y})}},q=new WeakMap,D=new WeakMap,Z=new WeakMap;exports.LayoutBox=ft;exports.decomposeCSSMatrix=ht;
1
+ "use strict";var __defProp=Object.defineProperty;var __typeError=msg=>{throw TypeError(msg)};var __name=(target,value)=>__defProp(target,"name",{value,configurable:!0});var __accessCheck=(obj,member,msg)=>member.has(obj)||__typeError("Cannot "+msg);var __privateGet=(obj,member,getter)=>(__accessCheck(obj,member,"read from private field"),getter?getter.call(obj):member.get(obj)),__privateAdd=(obj,member,value)=>member.has(obj)?__typeError("Cannot add the same private member more than once"):member instanceof WeakSet?member.add(obj):member.set(obj,value),__privateSet=(obj,member,value,setter)=>(__accessCheck(obj,member,"write to private field"),setter?setter.call(obj,value):member.set(obj,value),value),__privateMethod=(obj,member,method)=>(__accessCheck(obj,member,"access private method"),method);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const cssUnitParser_index=require("../css-unit-parser/index.cjs"),ladder_index=require("../ladder/index.cjs"),order_index=require("../order/index.cjs"),scrollEntries_index=require("../scroll-entries/index.cjs"),ticker_index=require("../ticker/index.cjs"),intersector_index=require("../index-BpO2RJ__.cjs"),dom=require("../dom-B40i6NXw.cjs"),layout=require("../layout-CnGLl7oe.cjs");require("construct-style-sheets-polyfill");const elementResizer_index=require("../element-resizer/index.cjs"),windowResizer_index=require("../window-resizer/index.cjs"),notifier_index=require("../notifier/index.cjs");function decomposeCSSMatrix(matrix){const scaleX=Math.sqrt(matrix.m11*matrix.m11+matrix.m12*matrix.m12+matrix.m13*matrix.m13),scaleY=Math.sqrt(matrix.m21*matrix.m21+matrix.m22*matrix.m22+matrix.m23*matrix.m23),scaleZ=Math.sqrt(matrix.m31*matrix.m31+matrix.m32*matrix.m32+matrix.m33*matrix.m33),rotationX=Math.atan2(matrix.m32,matrix.m33),rotationY=Math.atan2(-matrix.m31,Math.sqrt(matrix.m32*matrix.m32+matrix.m33*matrix.m33)),rotationZ=Math.atan2(matrix.m21,matrix.m11),translationX=matrix.m41,translationY=matrix.m42*-1,translationZ=matrix.m43;return{scaleX,scaleY,scaleZ,rotationX,rotationY,rotationZ,translationX,translationY,translationZ}}__name(decomposeCSSMatrix,"decomposeCSSMatrix");var _element,_containerElement,_scrollStepSetterCallbacks,_scrollAxis,_frontSide,_isCartesian,_isSizeStep,_isPositionStep,_isTransformStep,_isScrollStep,_width,_height,_depth,_top,_left,_front,_x,_y,_z,_CSSTranslation,_CSSRotation,_CSSScale,_rotation,_position,_scale,_scrollValue,_scrollEntries,_resizeNotifier,_LayoutBox_instances,recalculate_fn,composeSteps_fn,updateDimensions_fn,updateScrollPosition_fn,_resizeListener,_tickListener,_scrollEntriesListener;const _LayoutBox=class _LayoutBox{constructor(element,options){__privateAdd(this,_LayoutBox_instances);__privateAdd(this,_element,null);__privateAdd(this,_containerElement,null);__privateAdd(this,_scrollStepSetterCallbacks,[]);__privateAdd(this,_scrollAxis,"auto");__privateAdd(this,_frontSide,"top");__privateAdd(this,_isCartesian,!1);__privateAdd(this,_isSizeStep,!0);__privateAdd(this,_isPositionStep,!0);__privateAdd(this,_isTransformStep,!0);__privateAdd(this,_isScrollStep,!0);__privateAdd(this,_width,0);__privateAdd(this,_height,0);__privateAdd(this,_depth,0);__privateAdd(this,_top,0);__privateAdd(this,_left,0);__privateAdd(this,_front,0);__privateAdd(this,_x,0);__privateAdd(this,_y,0);__privateAdd(this,_z,0);__privateAdd(this,_CSSTranslation,{x:0,y:0,z:0});__privateAdd(this,_CSSRotation,{x:0,y:0,z:0});__privateAdd(this,_CSSScale,{x:1,y:1,z:1});__privateAdd(this,_rotation,new ladder_index.Ladder({x:0,y:0,z:0}));__privateAdd(this,_position,new ladder_index.Ladder({x:0,y:0,z:0}));__privateAdd(this,_scale,new ladder_index.Ladder({x:0,y:0,z:0}));__privateAdd(this,_scrollValue,{x:0,y:0,z:0});__privateAdd(this,_scrollEntries,new Map);__privateAdd(this,_resizeNotifier,new notifier_index.Notifier);__privateAdd(this,_resizeListener,__name(()=>{intersector_index.isBrowser&&__privateMethod(this,_LayoutBox_instances,updateDimensions_fn).call(this)},"#resizeListener"));__privateAdd(this,_tickListener,__name(()=>{__privateMethod(this,_LayoutBox_instances,updateScrollPosition_fn).call(this),__privateMethod(this,_LayoutBox_instances,recalculate_fn).call(this)},"#tickListener"));__privateAdd(this,_scrollEntriesListener,__name(()=>{const allEntries=scrollEntries_index.scrollEntries.getAll(this.element);__privateGet(this,_scrollEntries).forEach((value,key)=>{allEntries.includes(key)||(this.deleteScrollStep(value),__privateGet(this,_scrollEntries).delete(key))}),allEntries.forEach(entry=>{if(!__privateGet(this,_scrollEntries).has(entry)){const callback=__name(()=>entry,"callback");__privateGet(this,_scrollEntries).set(entry,callback),this.setScrollStep(callback)}})},"#scrollEntriesListener"));intersector_index.isBrowser&&(__privateSet(this,_element,dom.getElement(element)||document.body),__privateSet(this,_containerElement,dom.getElement(options==null?void 0:options.containerElement)||document.body),__privateSet(this,_scrollAxis,(options==null?void 0:options.scrollAxis)||"auto"),__privateSet(this,_frontSide,(options==null?void 0:options.frontSide)||"top"),__privateSet(this,_isCartesian,(options==null?void 0:options.cartesian)||!1),__privateSet(this,_isSizeStep,(options==null?void 0:options.sizeStep)!==void 0?options.sizeStep:!0),__privateSet(this,_isPositionStep,(options==null?void 0:options.positionStep)!==void 0?options.positionStep:!0),__privateSet(this,_isTransformStep,(options==null?void 0:options.transformStep)!==void 0?options.transformStep:!0),__privateSet(this,_isScrollStep,(options==null?void 0:options.scrollStep)!==void 0?options.scrollStep:!0),__privateGet(this,_scale).setStep("_size","+",{x:1,y:1,z:1}),__privateGet(this,_position).setStep("_position","+",{x:0,y:0,z:0}),__privateGet(this,_scale).setStep("_scale","*",{x:1,y:1,z:1}),__privateGet(this,_position).setStep("_translation","+",{x:0,y:0,z:0}),__privateGet(this,_rotation).setStep("_rotation","+",{x:0,y:0,z:0}),__privateGet(this,_isScrollStep)&&(scrollEntries_index.scrollEntries.notifier.subscribe(__privateGet(this,_scrollEntriesListener)),__privateGet(this,_scrollEntriesListener).call(this)),elementResizer_index.elementResizer.subscribe(this.element,__privateGet(this,_resizeListener)),windowResizer_index.windowResizer.subscribe(__privateGet(this,_resizeListener),order_index.RESIZE_ORDER.LAYOUT_BOX),ticker_index.ticker.subscribe(__privateGet(this,_tickListener),{order:order_index.TICK_ORDER.LAYOUT_BOX,culling:options!=null&&options.culling?this.element:void 0}))}get element(){return __privateGet(this,_element)}get containerElement(){return __privateGet(this,_containerElement)}get position(){return __privateGet(this,_position).current}get rotation(){return __privateGet(this,_rotation).current}get scale(){return __privateGet(this,_scale).current}get scrollValue(){return __privateGet(this,_scrollValue)}get left(){return __privateGet(this,_left)}get top(){return __privateGet(this,_top)}get CSSTranslation(){return __privateGet(this,_CSSTranslation)}get CSSRotation(){return __privateGet(this,_CSSRotation)}get CSSScale(){return __privateGet(this,_CSSScale)}get front(){return __privateGet(this,_front)}get width(){return __privateGet(this,_width)}get height(){return __privateGet(this,_height)}get depth(){return __privateGet(this,_depth)}destroy(){ticker_index.ticker.unsubscribe(__privateGet(this,_tickListener)),elementResizer_index.elementResizer.unsubscribe(__privateGet(this,_resizeListener)),windowResizer_index.windowResizer.unsubscribe(__privateGet(this,_resizeListener)),scrollEntries_index.scrollEntries.notifier.unsubscribe(__privateGet(this,_scrollEntriesListener)),__privateGet(this,_scrollEntries).clear(),__privateGet(this,_position).close(),__privateGet(this,_rotation).close(),__privateGet(this,_scale).close()}bindObject(object){object.position&&__privateGet(this,_position).bind(object.position),object.rotation&&__privateGet(this,_rotation).bind(object.rotation),object.scale&&__privateGet(this,_scale).bind(object.scale)}unbindObject(object){object.position&&__privateGet(this,_position).unbind(object.position),object.rotation&&__privateGet(this,_rotation).unbind(object.rotation),object.scale&&__privateGet(this,_scale).unbind(object.scale)}setScrollStep(callback){return __privateGet(this,_scrollStepSetterCallbacks).includes(callback)||__privateGet(this,_scrollStepSetterCallbacks).push(callback),()=>this.deleteScrollStep(callback)}deleteScrollStep(callback){__privateSet(this,_scrollStepSetterCallbacks,__privateGet(this,_scrollStepSetterCallbacks).filter(s=>s!==callback))}setPositionStep(...args){__privateGet(this,_position).setStep(...args)}getPositionStep(...args){return __privateGet(this,_position).getStepValue(...args)}setRotationStep(...args){__privateGet(this,_rotation).setStep(...args)}getRotationStep(...args){return __privateGet(this,_rotation).getStepValue(...args)}getExcludedRotationSteps(...args){return __privateGet(this,_rotation).getExcludedStepsValue(...args)}getIncludedRotationSteps(...args){return __privateGet(this,_rotation).getIncludedStepsValue(...args)}setScaleStep(...args){__privateGet(this,_scale).setStep(...args)}getScaleStep(...args){return __privateGet(this,_scale).getStepValue(...args)}getExcludedScaleSteps(...args){return __privateGet(this,_scale).getExcludedStepsValue(...args)}getIncludedScaleSteps(...args){return __privateGet(this,_scale).getIncludedStepsValue(...args)}deletePositionStep(...args){__privateGet(this,_position).deleteStep(...args)}getExcludedPositionSteps(...args){return __privateGet(this,_position).getExcludedStepsValue(...args)}getIncludedPositionSteps(...args){return __privateGet(this,_position).getIncludedStepsValue(...args)}deleteRotationStep(...args){__privateGet(this,_rotation).deleteStep(...args)}deleteScaleStep(...args){__privateGet(this,_scale).deleteStep(...args)}onPosition(...args){return __privateGet(this,_position).subscribe(...args)}offPosition(...args){__privateGet(this,_position).unsubscribe(...args)}onScale(...args){return __privateGet(this,_scale).subscribe(...args)}offScale(...args){__privateGet(this,_scale).unsubscribe(...args)}onRotation(...args){return __privateGet(this,_rotation).subscribe(...args)}offRotation(...args){__privateGet(this,_rotation).unsubscribe(...args)}onResize(...args){return __privateGet(this,_resizeNotifier).subscribe(...args)}offResize(...args){return __privateGet(this,_resizeNotifier).unsubscribe(...args)}};_element=new WeakMap,_containerElement=new WeakMap,_scrollStepSetterCallbacks=new WeakMap,_scrollAxis=new WeakMap,_frontSide=new WeakMap,_isCartesian=new WeakMap,_isSizeStep=new WeakMap,_isPositionStep=new WeakMap,_isTransformStep=new WeakMap,_isScrollStep=new WeakMap,_width=new WeakMap,_height=new WeakMap,_depth=new WeakMap,_top=new WeakMap,_left=new WeakMap,_front=new WeakMap,_x=new WeakMap,_y=new WeakMap,_z=new WeakMap,_CSSTranslation=new WeakMap,_CSSRotation=new WeakMap,_CSSScale=new WeakMap,_rotation=new WeakMap,_position=new WeakMap,_scale=new WeakMap,_scrollValue=new WeakMap,_scrollEntries=new WeakMap,_resizeNotifier=new WeakMap,_LayoutBox_instances=new WeakSet,recalculate_fn=__name(function(){__privateGet(this,_scale).calculate(),__privateGet(this,_position).calculate(),__privateGet(this,_rotation).calculate()},"#recalculate"),composeSteps_fn=__name(function(){__privateGet(this,_scale).setStep("_size","+",{x:__privateGet(this,_isSizeStep)?__privateGet(this,_width):1,y:__privateGet(this,_isSizeStep)?__privateGet(this,_height):1,z:__privateGet(this,_isSizeStep)?__privateGet(this,_depth):1});const xPosition=__privateGet(this,_isPositionStep)?__privateGet(this,_x):0,yPosition=__privateGet(this,_isPositionStep)?__privateGet(this,_y):0,zPosition=__privateGet(this,_isPositionStep)?__privateGet(this,_z):0;__privateGet(this,_position).setStep("_position","+",{x:xPosition,y:yPosition,z:zPosition}),__privateGet(this,_isTransformStep)?(__privateGet(this,_scale).setStep("_scale","*",{x:__privateGet(this,_CSSScale).x,y:__privateGet(this,_CSSScale).y,z:__privateGet(this,_CSSScale).z}),__privateGet(this,_position).setStep("_translation","+",{x:__privateGet(this,_CSSTranslation).x,y:__privateGet(this,_CSSTranslation).y,z:__privateGet(this,_CSSTranslation).z}),__privateGet(this,_rotation).setStep("_rotation","+",{x:__privateGet(this,_CSSRotation).x,y:__privateGet(this,_CSSRotation).y,z:__privateGet(this,_CSSRotation).z})):(__privateGet(this,_scale).setStep("_scale","*",{x:1,y:1,z:1}),__privateGet(this,_position).setStep("_translation","+",{x:0,y:0,z:0}),__privateGet(this,_rotation).setStep("_rotation","+",{x:0,y:0,z:0}))},"#composeSteps"),updateDimensions_fn=__name(function(){const computed=getComputedStyle(__privateGet(this,_element));__privateSet(this,_width,Math.max(__privateGet(this,_element).clientWidth,1)),__privateSet(this,_height,Math.max(__privateGet(this,_element).clientHeight,1)),__privateSet(this,_depth,Math.max(cssUnitParser_index.cssUnitParser.parse(computed.getPropertyValue("--depth")||"0px"),1));const vl=layout.getCumulativeOffsetLeft(__privateGet(this,_containerElement)),vt=layout.getCumulativeOffsetTop(__privateGet(this,_containerElement)),vw=__privateGet(this,_containerElement).clientWidth,vh=__privateGet(this,_containerElement).clientHeight;if(__privateSet(this,_left,layout.getCumulativeOffsetLeft(__privateGet(this,_element))-vl),__privateSet(this,_top,layout.getCumulativeOffsetTop(__privateGet(this,_element))-vt),__privateGet(this,_scrollAxis)==="z"){const nl=__privateGet(this,_left)/vw,nt=__privateGet(this,_top)/vh;__privateSet(this,_left,(nl-Math.floor(nl))*vw),__privateSet(this,_top,(nt-Math.floor(nt))*vh),__privateGet(this,_frontSide)==="left"?__privateSet(this,_front,layout.getCumulativeOffsetLeft(__privateGet(this,_element))-vl-__privateGet(this,_left)):__privateSet(this,_front,layout.getCumulativeOffsetTop(__privateGet(this,_element))-vt-__privateGet(this,_top))}if(__privateSet(this,_left,__privateGet(this,_left)+__privateGet(this,_element).clientLeft),__privateSet(this,_top,__privateGet(this,_top)+__privateGet(this,_element).clientTop),__privateGet(this,_isCartesian)){const viewHalfWidth=Math.round(vw/2),viewHalfHeight=Math.round(vh/2),thisHalfWidth=__privateGet(this,_width)?Math.round(__privateGet(this,_width)/2):0,thisHalfHeight=__privateGet(this,_height)?Math.round(__privateGet(this,_height)/2):0,positionX=__privateGet(this,_left)-viewHalfWidth+thisHalfWidth,positionY=(__privateGet(this,_top)-viewHalfHeight+thisHalfHeight)*-1;__privateSet(this,_x,positionX),__privateSet(this,_y,positionY)}else __privateSet(this,_x,__privateGet(this,_left)),__privateSet(this,_y,__privateGet(this,_top));__privateSet(this,_z,__privateGet(this,_front)*-1);const cssMatrix=new WebKitCSSMatrix(computed.transform),decomposedMatrix=decomposeCSSMatrix(cssMatrix);__privateGet(this,_CSSTranslation).x=decomposedMatrix.translationX,__privateGet(this,_CSSTranslation).y=decomposedMatrix.translationY,__privateGet(this,_CSSTranslation).z=decomposedMatrix.translationZ,__privateGet(this,_CSSScale).x=decomposedMatrix.scaleX,__privateGet(this,_CSSScale).y=decomposedMatrix.scaleY,__privateGet(this,_CSSScale).z=decomposedMatrix.scaleZ,__privateGet(this,_CSSRotation).x=decomposedMatrix.rotationX,__privateGet(this,_CSSRotation).y=decomposedMatrix.rotationY,__privateGet(this,_CSSRotation).z=decomposedMatrix.rotationZ,__privateMethod(this,_LayoutBox_instances,composeSteps_fn).call(this),__privateMethod(this,_LayoutBox_instances,recalculate_fn).call(this),__privateGet(this,_resizeNotifier).notify()},"#updateDimensions"),updateScrollPosition_fn=__name(function(){__privateGet(this,_scrollValue).x=0,__privateGet(this,_scrollValue).y=0,__privateGet(this,_scrollValue).z=0;for(let index=0;index<__privateGet(this,_scrollStepSetterCallbacks).length;index++){const callbackReturn=__privateGet(this,_scrollStepSetterCallbacks)[index]();let axis=callbackReturn.axis;__privateGet(this,_scrollAxis)!=="auto"&&(axis=__privateGet(this,_scrollAxis));const value=callbackReturn.value*(axis==="x"?-1:__privateGet(this,_isCartesian)?1:-1);__privateGet(this,_scrollValue)[axis]+=value,__privateGet(this,_position).setStep(`_scroll_${index}`,"+",{[axis]:value})}},"#updateScrollPosition"),_resizeListener=new WeakMap,_tickListener=new WeakMap,_scrollEntriesListener=new WeakMap,__name(_LayoutBox,"LayoutBox");let LayoutBox=_LayoutBox;exports.LayoutBox=LayoutBox;exports.decomposeCSSMatrix=decomposeCSSMatrix;