aptechka 0.83.1 → 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 (285) 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 +7 -16
  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 +4 -4
  102. package/lib/jsx/index.js +171 -349
  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 +2 -0
  107. package/lib/jsx/type.d.ts +228 -190
  108. package/lib/ladder/index.cjs +1 -1
  109. package/lib/ladder/index.js +86 -84
  110. package/lib/layout-C26zkY7D.js +35 -0
  111. package/lib/layout-CnGLl7oe.cjs +1 -0
  112. package/lib/layout-box/index.cjs +1 -1
  113. package/lib/layout-box/index.js +221 -217
  114. package/lib/loading/index.cjs +1 -1
  115. package/lib/loading/index.js +48 -45
  116. package/lib/local-links/index.cjs +1 -1
  117. package/lib/local-links/index.js +2 -2
  118. package/lib/masonry-layout/index.cjs +1 -1
  119. package/lib/masonry-layout/index.js +48 -45
  120. package/lib/math-C-knY2TL.cjs +1 -0
  121. package/lib/math-r8V23YFe.js +57 -0
  122. package/lib/media/index.cjs +1 -1
  123. package/lib/media/index.js +28 -25
  124. package/lib/metadata-BNdkmeeD.js +15 -0
  125. package/lib/metadata-BrHUfpV9.cjs +1 -0
  126. package/lib/morph/index.cjs +1 -1
  127. package/lib/morph/index.js +561 -556
  128. package/lib/morph-BtgB1YQP.js +256 -0
  129. package/lib/morph-Buhxq-X0.cjs +1 -0
  130. package/lib/need_redo_tweaker/index.cjs +4 -4
  131. package/lib/need_redo_tweaker/index.js +862 -834
  132. package/lib/notifier/index.cjs +1 -1
  133. package/lib/notifier/index.js +29 -26
  134. package/lib/number-Bu4sGvW7.cjs +1 -0
  135. package/lib/number-DiVt2xnh.js +47 -0
  136. package/lib/object-CiIdEmJx.js +98 -0
  137. package/lib/object-DTY_W6xG.cjs +1 -0
  138. package/lib/order/index.cjs +1 -1
  139. package/lib/order/index.js +3 -3
  140. package/lib/page-announcer/index.cjs +1 -1
  141. package/lib/page-announcer/index.js +2 -2
  142. package/lib/page-scroll/index.cjs +1 -1
  143. package/lib/page-scroll/index.js +2 -2
  144. package/lib/pixel-perfect/index.cjs +4 -4
  145. package/lib/pixel-perfect/index.js +43 -40
  146. package/lib/pointer/index.cjs +1 -1
  147. package/lib/pointer/index.js +125 -122
  148. package/lib/polyfills-CG1XJNia.js +28 -0
  149. package/lib/polyfills-DZCuDBkA.cjs +1 -0
  150. package/lib/popover/index.cjs +1 -1
  151. package/lib/popover/index.js +249 -245
  152. package/lib/radio/index.cjs +1 -1
  153. package/lib/radio/index.js +58 -55
  154. package/lib/render-DLcWVnuH.js +355 -0
  155. package/lib/render-DdomypCo.cjs +1 -0
  156. package/lib/router/index.cjs +1 -1
  157. package/lib/router/index.js +196 -194
  158. package/lib/scroll/index.cjs +1 -1
  159. package/lib/scroll/index.js +890 -877
  160. package/lib/scroll-BvIWh1xB.js +41 -0
  161. package/lib/scroll-CT0lpyRZ.cjs +1 -0
  162. package/lib/scroll-entries/index.cjs +1 -1
  163. package/lib/scroll-entries/index.js +37 -34
  164. package/lib/scroll-kit/index.cjs +1 -1
  165. package/lib/scroll-kit/index.js +214 -209
  166. package/lib/sequence/index.cjs +1 -1
  167. package/lib/sequence/index.js +102 -98
  168. package/lib/size-element/index.cjs +1 -1
  169. package/lib/size-element/index.js +29 -26
  170. package/lib/slicer/index.cjs +1 -1
  171. package/lib/slicer/index.js +118 -113
  172. package/lib/source/index.cjs +1 -1
  173. package/lib/source/index.js +5 -5
  174. package/lib/spa/index.cjs +1 -1
  175. package/lib/spa/index.js +94 -94
  176. package/lib/store/index.cjs +1 -1
  177. package/lib/store/index.d.ts +2 -2
  178. package/lib/store/index.js +10 -8
  179. package/lib/string-B3lm2b7v.js +84 -0
  180. package/lib/string-CbRNzmd9.cjs +1 -0
  181. package/lib/style-DBoQWK0d.js +14 -0
  182. package/lib/style-IDJ6db6n.cjs +1 -0
  183. package/lib/stylesheet-CHvuef16.js +28 -0
  184. package/lib/stylesheet-CQdBaIAA.cjs +1 -0
  185. package/lib/ticker/index.cjs +1 -1
  186. package/lib/ticker/index.js +96 -92
  187. package/lib/url-CPCO10Sy.cjs +1 -0
  188. package/lib/url-CWCY_qe_.js +124 -0
  189. package/lib/utils/attributes.d.ts +2 -0
  190. package/lib/utils/dom.d.ts +1 -0
  191. package/lib/utils/index.cjs +1 -1
  192. package/lib/utils/index.js +245 -226
  193. package/lib/utils/polyfills.d.ts +1 -1
  194. package/lib/video/index.cjs +1 -1
  195. package/lib/video/index.js +36 -33
  196. package/lib/window-resizer/index.cjs +1 -1
  197. package/lib/window-resizer/index.js +27 -24
  198. package/lib/youtube/index.cjs +1 -1
  199. package/lib/youtube/index.js +56 -54
  200. package/package.json +11 -24
  201. package/lib/Animation-BzTjZIE-.js +0 -108
  202. package/lib/Animation-C39Ah-LM.cjs +0 -1
  203. package/lib/Composed-C-TV9te3.cjs +0 -1
  204. package/lib/Composed-DyAWjEXE.js +0 -121
  205. package/lib/Damped-CRusiRIV.js +0 -56
  206. package/lib/Damped-Prr0iKu1.cjs +0 -1
  207. package/lib/DragControls-8rNZwQrs.cjs +0 -1
  208. package/lib/DragControls-DBNdMBA4.js +0 -228
  209. package/lib/LocalLinks-BxhSFv_Q.cjs +0 -1
  210. package/lib/LocalLinks-DFZFpbjs.js +0 -62
  211. package/lib/PageAnnouncerElement-0LxZjtVH.js +0 -24
  212. package/lib/PageAnnouncerElement-AQ0Ja6HM.cjs +0 -1
  213. package/lib/PageScroll-0LxFblry.js +0 -62
  214. package/lib/PageScroll-BXJUQwG7.cjs +0 -1
  215. package/lib/SourceElement-BHqPFbna.cjs +0 -5
  216. package/lib/SourceElement-DjbHjynf.js +0 -260
  217. package/lib/Store-Blf4msDz.cjs +0 -1
  218. package/lib/Store-ZThXYBQd.js +0 -152
  219. package/lib/Tweened-Bw1Cn1PJ.js +0 -47
  220. package/lib/Tweened-DWtk9E-O.cjs +0 -1
  221. package/lib/Viewport-BxCr0GlB.cjs +0 -1
  222. package/lib/Viewport-Dt-d9DPi.js +0 -109
  223. package/lib/attributes-69we3byR.js +0 -10
  224. package/lib/attributes-Bf2svn4j.cjs +0 -1
  225. package/lib/canvas-CU5Xjahf.cjs +0 -1
  226. package/lib/canvas-DeZ0SLUJ.js +0 -34
  227. package/lib/coordinates-CgdGoSYs.js +0 -24
  228. package/lib/coordinates-D8Np3cPD.cjs +0 -1
  229. package/lib/custom-elements-DBnCK7Zx.js +0 -24
  230. package/lib/custom-elements-Dh4TWRDJ.cjs +0 -1
  231. package/lib/dom-BETkVSSZ.js +0 -82
  232. package/lib/dom-CBLlqORw.cjs +0 -1
  233. package/lib/easings-BEmRlrDd.js +0 -38
  234. package/lib/easings-GegIwET5.cjs +0 -1
  235. package/lib/element-CGVl1jA-.js +0 -7
  236. package/lib/element-yhcBhsho.cjs +0 -1
  237. package/lib/events-CsVF98U6.js +0 -6
  238. package/lib/events-KVanG9sR.cjs +0 -1
  239. package/lib/file-DSpfWdd9.cjs +0 -1
  240. package/lib/file-GHShUlue.js +0 -24
  241. package/lib/function-C10DGppn.js +0 -17
  242. package/lib/function-MthRj-GJ.cjs +0 -1
  243. package/lib/gestures-C7gbKx11.cjs +0 -1
  244. package/lib/gestures-CcXV6fCp.js +0 -11
  245. package/lib/index-OE2INULi.cjs +0 -1
  246. package/lib/index-e9eDuagL.js +0 -65
  247. package/lib/jsx/hydrate.d.ts +0 -1
  248. package/lib/jsx/integrations/astro/client.cjs +0 -1
  249. package/lib/jsx/integrations/astro/client.d.ts +0 -2
  250. package/lib/jsx/integrations/astro/client.js +0 -50
  251. package/lib/jsx/integrations/astro/index.cjs +0 -1
  252. package/lib/jsx/integrations/astro/index.d.ts +0 -2
  253. package/lib/jsx/integrations/astro/index.js +0 -54
  254. package/lib/jsx/integrations/astro/server.cjs +0 -1
  255. package/lib/jsx/integrations/astro/server.d.ts +0 -3
  256. package/lib/jsx/integrations/astro/server.js +0 -35
  257. package/lib/jsx/plugins/vite.d.ts +0 -21
  258. package/lib/layout-BSMtwCga.js +0 -29
  259. package/lib/layout-Ctc2p3uz.cjs +0 -1
  260. package/lib/math-BOBiC4TN.js +0 -45
  261. package/lib/math-GDWEqu7y.cjs +0 -1
  262. package/lib/metadata-BcYZ5w3T.cjs +0 -1
  263. package/lib/metadata-jfowcCyz.js +0 -12
  264. package/lib/morph-B6sGhLCi.cjs +0 -1
  265. package/lib/morph-BQErz7qP.js +0 -242
  266. package/lib/number-ChAm68cm.cjs +0 -1
  267. package/lib/number-CumqY64S.js +0 -40
  268. package/lib/object-CcMK4y_r.js +0 -87
  269. package/lib/object-baN9pgbU.cjs +0 -1
  270. package/lib/polyfills-DJrTJQky.js +0 -24
  271. package/lib/polyfills-Df4r-ETT.cjs +0 -1
  272. package/lib/render-DQs7rIoN.cjs +0 -1
  273. package/lib/render-D_0FCWEu.js +0 -18
  274. package/lib/scroll-BA2WnUrb.cjs +0 -1
  275. package/lib/scroll-DY5senkF.js +0 -37
  276. package/lib/string-BlMQbe8b.js +0 -70
  277. package/lib/string-DUXXtU8v.cjs +0 -1
  278. package/lib/style-At6aDoqG.cjs +0 -1
  279. package/lib/style-j2TwriJ_.js +0 -10
  280. package/lib/stylesheet-5_o7PFzM.cjs +0 -1
  281. package/lib/stylesheet-DdBzowZY.js +0 -24
  282. package/lib/url-CHgcNwJ1.cjs +0 -1
  283. package/lib/url-CYgo5vrG.js +0 -113
  284. package/lib/vite-C-i3hVDL.js +0 -75
  285. package/lib/vite-DzanPumM.cjs +0 -44
@@ -1,319 +1,323 @@
1
- var Q = (i) => {
2
- throw TypeError(i);
1
+ var __defProp = Object.defineProperty;
2
+ var __typeError = (msg) => {
3
+ throw TypeError(msg);
3
4
  };
4
- var K = (i, e, s) => e.has(i) || Q("Cannot " + s);
5
- var t = (i, e, s) => (K(i, e, "read from private field"), s ? s.call(i) : e.get(i)), h = (i, e, s) => e.has(i) ? Q("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(i) : e.set(i, s), r = (i, e, s, l) => (K(i, e, "write to private field"), l ? l.call(i, s) : e.set(i, s), s), L = (i, e, s) => (K(i, e, "access private method"), s);
6
- import { cssUnitParser as ut } from "../css-unit-parser/index.js";
7
- import { Ladder as N } from "../ladder/index.js";
8
- import { RESIZE_ORDER as St, TICK_ORDER as dt } from "../order/index.js";
9
- import { scrollEntries as $ } from "../scroll-entries/index.js";
10
- import { ticker as j } from "../ticker/index.js";
11
- import { i as tt } from "../index-e9eDuagL.js";
12
- import { g as et } from "../dom-BETkVSSZ.js";
13
- import { g as F, a as G } from "../layout-BSMtwCga.js";
5
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: !0 });
6
+ var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
7
+ 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);
8
+ import { cssUnitParser } from "../css-unit-parser/index.js";
9
+ import { Ladder } from "../ladder/index.js";
10
+ import { RESIZE_ORDER, TICK_ORDER } from "../order/index.js";
11
+ import { scrollEntries } from "../scroll-entries/index.js";
12
+ import { ticker } from "../ticker/index.js";
13
+ import { i as isBrowser } from "../index-DpKsHe97.js";
14
+ import { g as getElement } from "../dom-D8D-_9ty.js";
15
+ import { g as getCumulativeOffsetLeft, a as getCumulativeOffsetTop } from "../layout-C26zkY7D.js";
14
16
  import "construct-style-sheets-polyfill";
15
- import { elementResizer as st } from "../element-resizer/index.js";
16
- import { windowResizer as it } from "../window-resizer/index.js";
17
- import { Notifier as ft } from "../notifier/index.js";
18
- function pt(i) {
19
- const e = Math.sqrt(
20
- i.m11 * i.m11 + i.m12 * i.m12 + i.m13 * i.m13
21
- ), s = Math.sqrt(
22
- i.m21 * i.m21 + i.m22 * i.m22 + i.m23 * i.m23
23
- ), l = Math.sqrt(
24
- i.m31 * i.m31 + i.m32 * i.m32 + i.m33 * i.m33
25
- ), y = Math.atan2(i.m32, i.m33), A = Math.atan2(
26
- -i.m31,
27
- Math.sqrt(i.m32 * i.m32 + i.m33 * i.m33)
28
- ), k = Math.atan2(i.m21, i.m11), u = i.m41, V = i.m42 * -1, O = i.m43;
17
+ import { elementResizer } from "../element-resizer/index.js";
18
+ import { windowResizer } from "../window-resizer/index.js";
19
+ import { Notifier } from "../notifier/index.js";
20
+ function decomposeCSSMatrix(matrix) {
21
+ const scaleX = Math.sqrt(
22
+ matrix.m11 * matrix.m11 + matrix.m12 * matrix.m12 + matrix.m13 * matrix.m13
23
+ ), scaleY = Math.sqrt(
24
+ matrix.m21 * matrix.m21 + matrix.m22 * matrix.m22 + matrix.m23 * matrix.m23
25
+ ), scaleZ = Math.sqrt(
26
+ matrix.m31 * matrix.m31 + matrix.m32 * matrix.m32 + matrix.m33 * matrix.m33
27
+ ), rotationX = Math.atan2(matrix.m32, matrix.m33), rotationY = Math.atan2(
28
+ -matrix.m31,
29
+ Math.sqrt(matrix.m32 * matrix.m32 + matrix.m33 * matrix.m33)
30
+ ), rotationZ = Math.atan2(matrix.m21, matrix.m11), translationX = matrix.m41, translationY = matrix.m42 * -1, translationZ = matrix.m43;
29
31
  return {
30
- scaleX: e,
31
- scaleY: s,
32
- scaleZ: l,
33
- rotationX: y,
34
- rotationY: A,
35
- rotationZ: k,
36
- translationX: u,
37
- translationY: V,
38
- translationZ: O
32
+ scaleX,
33
+ scaleY,
34
+ scaleZ,
35
+ rotationX,
36
+ rotationY,
37
+ rotationZ,
38
+ translationX,
39
+ translationY,
40
+ translationZ
39
41
  };
40
42
  }
41
- var a, z, b, _, W, X, v, w, q, B, x, M, Y, S, d, C, H, I, D, p, m, g, c, n, o, E, R, T, f, J, ht, rt, nt, P, U, Z;
42
- class Pt {
43
- constructor(e, s) {
44
- h(this, f);
45
- h(this, a, null);
46
- h(this, z, null);
47
- h(this, b, []);
48
- h(this, _, "auto");
49
- h(this, W, "top");
50
- h(this, X, !1);
51
- h(this, v, !0);
52
- h(this, w, !0);
53
- h(this, q, !0);
54
- h(this, B, !0);
55
- h(this, x, 0);
56
- h(this, M, 0);
57
- h(this, Y, 0);
58
- h(this, S, 0);
59
- h(this, d, 0);
60
- h(this, C, 0);
61
- h(this, H, 0);
62
- h(this, I, 0);
63
- h(this, D, 0);
64
- h(this, p, { x: 0, y: 0, z: 0 });
65
- h(this, m, { x: 0, y: 0, z: 0 });
66
- h(this, g, { x: 1, y: 1, z: 1 });
67
- h(this, c, new N({ x: 0, y: 0, z: 0 }));
68
- h(this, n, new N({ x: 0, y: 0, z: 0 }));
69
- h(this, o, new N({ x: 0, y: 0, z: 0 }));
70
- h(this, E, { x: 0, y: 0, z: 0 });
71
- h(this, R, /* @__PURE__ */ new Map());
72
- h(this, T, new ft());
73
- h(this, P, () => {
74
- tt && L(this, f, rt).call(this);
75
- });
76
- h(this, U, () => {
77
- L(this, f, nt).call(this), L(this, f, J).call(this);
78
- });
79
- h(this, Z, () => {
80
- const e = $.getAll(this.element);
81
- t(this, R).forEach((s, l) => {
82
- e.includes(l) || (this.deleteScrollStep(s), t(this, R).delete(l));
83
- }), e.forEach((s) => {
84
- if (!t(this, R).has(s)) {
85
- const l = () => s;
86
- t(this, R).set(s, l), this.setScrollStep(l);
43
+ __name(decomposeCSSMatrix, "decomposeCSSMatrix");
44
+ 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;
45
+ const _LayoutBox = class _LayoutBox {
46
+ constructor(element, options) {
47
+ __privateAdd(this, _LayoutBox_instances);
48
+ __privateAdd(this, _element, null);
49
+ __privateAdd(this, _containerElement, null);
50
+ __privateAdd(this, _scrollStepSetterCallbacks, []);
51
+ __privateAdd(this, _scrollAxis, "auto");
52
+ __privateAdd(this, _frontSide, "top");
53
+ __privateAdd(this, _isCartesian, !1);
54
+ __privateAdd(this, _isSizeStep, !0);
55
+ __privateAdd(this, _isPositionStep, !0);
56
+ __privateAdd(this, _isTransformStep, !0);
57
+ __privateAdd(this, _isScrollStep, !0);
58
+ __privateAdd(this, _width, 0);
59
+ __privateAdd(this, _height, 0);
60
+ __privateAdd(this, _depth, 0);
61
+ __privateAdd(this, _top, 0);
62
+ __privateAdd(this, _left, 0);
63
+ __privateAdd(this, _front, 0);
64
+ __privateAdd(this, _x, 0);
65
+ __privateAdd(this, _y, 0);
66
+ __privateAdd(this, _z, 0);
67
+ __privateAdd(this, _CSSTranslation, { x: 0, y: 0, z: 0 });
68
+ __privateAdd(this, _CSSRotation, { x: 0, y: 0, z: 0 });
69
+ __privateAdd(this, _CSSScale, { x: 1, y: 1, z: 1 });
70
+ __privateAdd(this, _rotation, new Ladder({ x: 0, y: 0, z: 0 }));
71
+ __privateAdd(this, _position, new Ladder({ x: 0, y: 0, z: 0 }));
72
+ __privateAdd(this, _scale, new Ladder({ x: 0, y: 0, z: 0 }));
73
+ __privateAdd(this, _scrollValue, { x: 0, y: 0, z: 0 });
74
+ __privateAdd(this, _scrollEntries, /* @__PURE__ */ new Map());
75
+ __privateAdd(this, _resizeNotifier, new Notifier());
76
+ __privateAdd(this, _resizeListener, /* @__PURE__ */ __name(() => {
77
+ isBrowser && __privateMethod(this, _LayoutBox_instances, updateDimensions_fn).call(this);
78
+ }, "#resizeListener"));
79
+ __privateAdd(this, _tickListener, /* @__PURE__ */ __name(() => {
80
+ __privateMethod(this, _LayoutBox_instances, updateScrollPosition_fn).call(this), __privateMethod(this, _LayoutBox_instances, recalculate_fn).call(this);
81
+ }, "#tickListener"));
82
+ __privateAdd(this, _scrollEntriesListener, /* @__PURE__ */ __name(() => {
83
+ const allEntries = scrollEntries.getAll(this.element);
84
+ __privateGet(this, _scrollEntries).forEach((value, key) => {
85
+ allEntries.includes(key) || (this.deleteScrollStep(value), __privateGet(this, _scrollEntries).delete(key));
86
+ }), allEntries.forEach((entry) => {
87
+ if (!__privateGet(this, _scrollEntries).has(entry)) {
88
+ const callback = /* @__PURE__ */ __name(() => entry, "callback");
89
+ __privateGet(this, _scrollEntries).set(entry, callback), this.setScrollStep(callback);
87
90
  }
88
91
  });
89
- });
90
- tt && (r(this, a, et(e) || document.body), r(this, z, et(s == null ? void 0 : s.containerElement) || document.body), r(this, _, (s == null ? void 0 : s.scrollAxis) || "auto"), r(this, W, (s == null ? void 0 : s.frontSide) || "top"), r(this, X, (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, q, (s == null ? void 0 : s.transformStep) !== void 0 ? s.transformStep : !0), r(this, B, (s == null ? void 0 : s.scrollStep) !== void 0 ? s.scrollStep : !0), t(this, o).setStep("_size", "+", {
92
+ }, "#scrollEntriesListener"));
93
+ isBrowser && (__privateSet(this, _element, getElement(element) || document.body), __privateSet(this, _containerElement, 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", "+", {
91
94
  x: 1,
92
95
  y: 1,
93
96
  z: 1
94
- }), t(this, n).setStep("_position", "+", {
97
+ }), __privateGet(this, _position).setStep("_position", "+", {
95
98
  x: 0,
96
99
  y: 0,
97
100
  z: 0
98
- }), t(this, o).setStep("_scale", "*", {
101
+ }), __privateGet(this, _scale).setStep("_scale", "*", {
99
102
  x: 1,
100
103
  y: 1,
101
104
  z: 1
102
- }), t(this, n).setStep("_translation", "+", {
105
+ }), __privateGet(this, _position).setStep("_translation", "+", {
103
106
  x: 0,
104
107
  y: 0,
105
108
  z: 0
106
- }), t(this, c).setStep("_rotation", "+", {
109
+ }), __privateGet(this, _rotation).setStep("_rotation", "+", {
107
110
  x: 0,
108
111
  y: 0,
109
112
  z: 0
110
- }), t(this, B) && ($.notifier.subscribe(t(this, Z)), t(this, Z).call(this)), st.subscribe(this.element, t(this, P)), it.subscribe(t(this, P), St.LAYOUT_BOX), j.subscribe(t(this, U), {
111
- order: dt.LAYOUT_BOX,
112
- culling: s != null && s.culling ? this.element : void 0
113
+ }), __privateGet(this, _isScrollStep) && (scrollEntries.notifier.subscribe(__privateGet(this, _scrollEntriesListener)), __privateGet(this, _scrollEntriesListener).call(this)), elementResizer.subscribe(this.element, __privateGet(this, _resizeListener)), windowResizer.subscribe(__privateGet(this, _resizeListener), RESIZE_ORDER.LAYOUT_BOX), ticker.subscribe(__privateGet(this, _tickListener), {
114
+ order: TICK_ORDER.LAYOUT_BOX,
115
+ culling: options != null && options.culling ? this.element : void 0
113
116
  }));
114
117
  }
115
118
  get element() {
116
- return t(this, a);
119
+ return __privateGet(this, _element);
117
120
  }
118
121
  get containerElement() {
119
- return t(this, z);
122
+ return __privateGet(this, _containerElement);
120
123
  }
121
124
  get position() {
122
- return t(this, n).current;
125
+ return __privateGet(this, _position).current;
123
126
  }
124
127
  get rotation() {
125
- return t(this, c).current;
128
+ return __privateGet(this, _rotation).current;
126
129
  }
127
130
  get scale() {
128
- return t(this, o).current;
131
+ return __privateGet(this, _scale).current;
129
132
  }
130
133
  get scrollValue() {
131
- return t(this, E);
134
+ return __privateGet(this, _scrollValue);
132
135
  }
133
136
  get left() {
134
- return t(this, d);
137
+ return __privateGet(this, _left);
135
138
  }
136
139
  get top() {
137
- return t(this, S);
140
+ return __privateGet(this, _top);
138
141
  }
139
142
  get CSSTranslation() {
140
- return t(this, p);
143
+ return __privateGet(this, _CSSTranslation);
141
144
  }
142
145
  get CSSRotation() {
143
- return t(this, m);
146
+ return __privateGet(this, _CSSRotation);
144
147
  }
145
148
  get CSSScale() {
146
- return t(this, g);
149
+ return __privateGet(this, _CSSScale);
147
150
  }
148
151
  get front() {
149
- return t(this, C);
152
+ return __privateGet(this, _front);
150
153
  }
151
154
  get width() {
152
- return t(this, x);
155
+ return __privateGet(this, _width);
153
156
  }
154
157
  get height() {
155
- return t(this, M);
158
+ return __privateGet(this, _height);
156
159
  }
157
160
  get depth() {
158
- return t(this, Y);
161
+ return __privateGet(this, _depth);
159
162
  }
160
163
  destroy() {
161
- j.unsubscribe(t(this, U)), st.unsubscribe(t(this, P)), it.unsubscribe(t(this, P)), $.notifier.unsubscribe(t(this, Z)), t(this, R).clear(), t(this, n).close(), t(this, c).close(), t(this, o).close();
164
+ ticker.unsubscribe(__privateGet(this, _tickListener)), elementResizer.unsubscribe(__privateGet(this, _resizeListener)), windowResizer.unsubscribe(__privateGet(this, _resizeListener)), scrollEntries.notifier.unsubscribe(__privateGet(this, _scrollEntriesListener)), __privateGet(this, _scrollEntries).clear(), __privateGet(this, _position).close(), __privateGet(this, _rotation).close(), __privateGet(this, _scale).close();
162
165
  }
163
- bindObject(e) {
164
- e.position && t(this, n).bind(e.position), e.rotation && t(this, c).bind(e.rotation), e.scale && t(this, o).bind(e.scale);
166
+ bindObject(object) {
167
+ object.position && __privateGet(this, _position).bind(object.position), object.rotation && __privateGet(this, _rotation).bind(object.rotation), object.scale && __privateGet(this, _scale).bind(object.scale);
165
168
  }
166
- unbindObject(e) {
167
- e.position && t(this, n).unbind(e.position), e.rotation && t(this, c).unbind(e.rotation), e.scale && t(this, o).unbind(e.scale);
169
+ unbindObject(object) {
170
+ object.position && __privateGet(this, _position).unbind(object.position), object.rotation && __privateGet(this, _rotation).unbind(object.rotation), object.scale && __privateGet(this, _scale).unbind(object.scale);
168
171
  }
169
- setScrollStep(e) {
170
- return t(this, b).includes(e) || t(this, b).push(e), () => this.deleteScrollStep(e);
172
+ setScrollStep(callback) {
173
+ return __privateGet(this, _scrollStepSetterCallbacks).includes(callback) || __privateGet(this, _scrollStepSetterCallbacks).push(callback), () => this.deleteScrollStep(callback);
171
174
  }
172
- deleteScrollStep(e) {
173
- r(this, b, t(this, b).filter(
174
- (s) => s !== e
175
+ deleteScrollStep(callback) {
176
+ __privateSet(this, _scrollStepSetterCallbacks, __privateGet(this, _scrollStepSetterCallbacks).filter(
177
+ (s) => s !== callback
175
178
  ));
176
179
  }
177
- setPositionStep(...e) {
178
- t(this, n).setStep(...e);
180
+ setPositionStep(...args) {
181
+ __privateGet(this, _position).setStep(...args);
179
182
  }
180
- getPositionStep(...e) {
181
- return t(this, n).getStepValue(...e);
183
+ getPositionStep(...args) {
184
+ return __privateGet(this, _position).getStepValue(...args);
182
185
  }
183
- setRotationStep(...e) {
184
- t(this, c).setStep(...e);
186
+ setRotationStep(...args) {
187
+ __privateGet(this, _rotation).setStep(...args);
185
188
  }
186
- getRotationStep(...e) {
187
- return t(this, c).getStepValue(...e);
189
+ getRotationStep(...args) {
190
+ return __privateGet(this, _rotation).getStepValue(...args);
188
191
  }
189
- getExcludedRotationSteps(...e) {
190
- return t(this, c).getExcludedStepsValue(...e);
192
+ getExcludedRotationSteps(...args) {
193
+ return __privateGet(this, _rotation).getExcludedStepsValue(...args);
191
194
  }
192
- getIncludedRotationSteps(...e) {
193
- return t(this, c).getIncludedStepsValue(...e);
195
+ getIncludedRotationSteps(...args) {
196
+ return __privateGet(this, _rotation).getIncludedStepsValue(...args);
194
197
  }
195
- setScaleStep(...e) {
196
- t(this, o).setStep(...e);
198
+ setScaleStep(...args) {
199
+ __privateGet(this, _scale).setStep(...args);
197
200
  }
198
- getScaleStep(...e) {
199
- return t(this, o).getStepValue(...e);
201
+ getScaleStep(...args) {
202
+ return __privateGet(this, _scale).getStepValue(...args);
200
203
  }
201
- getExcludedScaleSteps(...e) {
202
- return t(this, o).getExcludedStepsValue(...e);
204
+ getExcludedScaleSteps(...args) {
205
+ return __privateGet(this, _scale).getExcludedStepsValue(...args);
203
206
  }
204
- getIncludedScaleSteps(...e) {
205
- return t(this, o).getIncludedStepsValue(...e);
207
+ getIncludedScaleSteps(...args) {
208
+ return __privateGet(this, _scale).getIncludedStepsValue(...args);
206
209
  }
207
- deletePositionStep(...e) {
208
- t(this, n).deleteStep(...e);
210
+ deletePositionStep(...args) {
211
+ __privateGet(this, _position).deleteStep(...args);
209
212
  }
210
- getExcludedPositionSteps(...e) {
211
- return t(this, n).getExcludedStepsValue(...e);
213
+ getExcludedPositionSteps(...args) {
214
+ return __privateGet(this, _position).getExcludedStepsValue(...args);
212
215
  }
213
- getIncludedPositionSteps(...e) {
214
- return t(this, n).getIncludedStepsValue(...e);
216
+ getIncludedPositionSteps(...args) {
217
+ return __privateGet(this, _position).getIncludedStepsValue(...args);
215
218
  }
216
- deleteRotationStep(...e) {
217
- t(this, c).deleteStep(...e);
219
+ deleteRotationStep(...args) {
220
+ __privateGet(this, _rotation).deleteStep(...args);
218
221
  }
219
- deleteScaleStep(...e) {
220
- t(this, o).deleteStep(...e);
222
+ deleteScaleStep(...args) {
223
+ __privateGet(this, _scale).deleteStep(...args);
221
224
  }
222
- onPosition(...e) {
223
- return t(this, n).subscribe(...e);
225
+ onPosition(...args) {
226
+ return __privateGet(this, _position).subscribe(...args);
224
227
  }
225
- offPosition(...e) {
226
- t(this, n).unsubscribe(...e);
228
+ offPosition(...args) {
229
+ __privateGet(this, _position).unsubscribe(...args);
227
230
  }
228
- onScale(...e) {
229
- return t(this, o).subscribe(...e);
231
+ onScale(...args) {
232
+ return __privateGet(this, _scale).subscribe(...args);
230
233
  }
231
- offScale(...e) {
232
- t(this, o).unsubscribe(...e);
234
+ offScale(...args) {
235
+ __privateGet(this, _scale).unsubscribe(...args);
233
236
  }
234
- onRotation(...e) {
235
- return t(this, c).subscribe(...e);
237
+ onRotation(...args) {
238
+ return __privateGet(this, _rotation).subscribe(...args);
236
239
  }
237
- offRotation(...e) {
238
- t(this, c).unsubscribe(...e);
240
+ offRotation(...args) {
241
+ __privateGet(this, _rotation).unsubscribe(...args);
239
242
  }
240
- onResize(...e) {
241
- return t(this, T).subscribe(...e);
243
+ onResize(...args) {
244
+ return __privateGet(this, _resizeNotifier).subscribe(...args);
242
245
  }
243
- offResize(...e) {
244
- return t(this, T).unsubscribe(...e);
246
+ offResize(...args) {
247
+ return __privateGet(this, _resizeNotifier).unsubscribe(...args);
245
248
  }
246
- }
247
- a = new WeakMap(), z = new WeakMap(), b = new WeakMap(), _ = new WeakMap(), W = new WeakMap(), X = new WeakMap(), v = new WeakMap(), w = new WeakMap(), q = new WeakMap(), B = new WeakMap(), x = new WeakMap(), M = new WeakMap(), Y = new WeakMap(), S = new WeakMap(), d = new WeakMap(), C = new WeakMap(), H = new WeakMap(), I = new WeakMap(), D = new WeakMap(), p = new WeakMap(), m = new WeakMap(), g = new WeakMap(), c = new WeakMap(), n = new WeakMap(), o = new WeakMap(), E = new WeakMap(), R = new WeakMap(), T = new WeakMap(), f = new WeakSet(), J = function() {
248
- t(this, o).calculate(), t(this, n).calculate(), t(this, c).calculate();
249
- }, ht = function() {
250
- t(this, o).setStep("_size", "+", {
251
- x: t(this, v) ? t(this, x) : 1,
252
- y: t(this, v) ? t(this, M) : 1,
253
- z: t(this, v) ? t(this, Y) : 1
249
+ };
250
+ _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 = /* @__PURE__ */ __name(function() {
251
+ __privateGet(this, _scale).calculate(), __privateGet(this, _position).calculate(), __privateGet(this, _rotation).calculate();
252
+ }, "#recalculate"), composeSteps_fn = /* @__PURE__ */ __name(function() {
253
+ __privateGet(this, _scale).setStep("_size", "+", {
254
+ x: __privateGet(this, _isSizeStep) ? __privateGet(this, _width) : 1,
255
+ y: __privateGet(this, _isSizeStep) ? __privateGet(this, _height) : 1,
256
+ z: __privateGet(this, _isSizeStep) ? __privateGet(this, _depth) : 1
254
257
  });
255
- const e = t(this, w) ? t(this, H) : 0, s = t(this, w) ? t(this, I) : 0, l = t(this, w) ? t(this, D) : 0;
256
- t(this, n).setStep("_position", "+", {
257
- x: e,
258
- y: s,
259
- z: l
260
- }), t(this, q) ? (t(this, o).setStep("_scale", "*", {
261
- x: t(this, g).x,
262
- y: t(this, g).y,
263
- z: t(this, g).z
264
- }), t(this, n).setStep("_translation", "+", {
265
- x: t(this, p).x,
266
- y: t(this, p).y,
267
- z: t(this, p).z
268
- }), t(this, c).setStep("_rotation", "+", {
269
- x: t(this, m).x,
270
- y: t(this, m).y,
271
- z: t(this, m).z
272
- })) : (t(this, o).setStep("_scale", "*", {
258
+ 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;
259
+ __privateGet(this, _position).setStep("_position", "+", {
260
+ x: xPosition,
261
+ y: yPosition,
262
+ z: zPosition
263
+ }), __privateGet(this, _isTransformStep) ? (__privateGet(this, _scale).setStep("_scale", "*", {
264
+ x: __privateGet(this, _CSSScale).x,
265
+ y: __privateGet(this, _CSSScale).y,
266
+ z: __privateGet(this, _CSSScale).z
267
+ }), __privateGet(this, _position).setStep("_translation", "+", {
268
+ x: __privateGet(this, _CSSTranslation).x,
269
+ y: __privateGet(this, _CSSTranslation).y,
270
+ z: __privateGet(this, _CSSTranslation).z
271
+ }), __privateGet(this, _rotation).setStep("_rotation", "+", {
272
+ x: __privateGet(this, _CSSRotation).x,
273
+ y: __privateGet(this, _CSSRotation).y,
274
+ z: __privateGet(this, _CSSRotation).z
275
+ })) : (__privateGet(this, _scale).setStep("_scale", "*", {
273
276
  x: 1,
274
277
  y: 1,
275
278
  z: 1
276
- }), t(this, n).setStep("_translation", "+", {
279
+ }), __privateGet(this, _position).setStep("_translation", "+", {
277
280
  x: 0,
278
281
  y: 0,
279
282
  z: 0
280
- }), t(this, c).setStep("_rotation", "+", {
283
+ }), __privateGet(this, _rotation).setStep("_rotation", "+", {
281
284
  x: 0,
282
285
  y: 0,
283
286
  z: 0
284
287
  }));
285
- }, rt = function() {
286
- const e = getComputedStyle(t(this, a));
287
- r(this, x, Math.max(t(this, a).clientWidth, 1)), r(this, M, Math.max(t(this, a).clientHeight, 1)), r(this, Y, Math.max(
288
- ut.parse(e.getPropertyValue("--depth") || "0px"),
288
+ }, "#composeSteps"), updateDimensions_fn = /* @__PURE__ */ __name(function() {
289
+ const computed = getComputedStyle(__privateGet(this, _element));
290
+ __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(
291
+ cssUnitParser.parse(computed.getPropertyValue("--depth") || "0px"),
289
292
  1
290
293
  ));
291
- const s = F(t(this, z)), l = G(t(this, z)), y = t(this, z).clientWidth, A = t(this, z).clientHeight;
292
- if (r(this, d, F(t(this, a)) - s), r(this, S, G(t(this, a)) - l), t(this, _) === "z") {
293
- const V = t(this, d) / y, O = t(this, S) / A;
294
- r(this, d, (V - Math.floor(V)) * y), r(this, S, (O - Math.floor(O)) * A), t(this, W) === "left" ? r(this, C, F(t(this, a)) - s - t(this, d)) : r(this, C, G(t(this, a)) - l - t(this, S));
295
- }
296
- if (r(this, d, t(this, d) + t(this, a).clientLeft), r(this, S, t(this, S) + t(this, a).clientTop), t(this, X)) {
297
- const V = Math.round(y / 2), O = Math.round(A / 2), lt = t(this, x) ? Math.round(t(this, x) / 2) : 0, ot = t(this, M) ? Math.round(t(this, M) / 2) : 0, ct = t(this, d) - V + lt, at = (t(this, S) - O + ot) * -1;
298
- r(this, H, ct), r(this, I, at);
294
+ const vl = getCumulativeOffsetLeft(__privateGet(this, _containerElement)), vt = getCumulativeOffsetTop(__privateGet(this, _containerElement)), vw = __privateGet(this, _containerElement).clientWidth, vh = __privateGet(this, _containerElement).clientHeight;
295
+ if (__privateSet(this, _left, getCumulativeOffsetLeft(__privateGet(this, _element)) - vl), __privateSet(this, _top, getCumulativeOffsetTop(__privateGet(this, _element)) - vt), __privateGet(this, _scrollAxis) === "z") {
296
+ const nl = __privateGet(this, _left) / vw, nt = __privateGet(this, _top) / vh;
297
+ __privateSet(this, _left, (nl - Math.floor(nl)) * vw), __privateSet(this, _top, (nt - Math.floor(nt)) * vh), __privateGet(this, _frontSide) === "left" ? __privateSet(this, _front, getCumulativeOffsetLeft(__privateGet(this, _element)) - vl - __privateGet(this, _left)) : __privateSet(this, _front, getCumulativeOffsetTop(__privateGet(this, _element)) - vt - __privateGet(this, _top));
298
+ }
299
+ if (__privateSet(this, _left, __privateGet(this, _left) + __privateGet(this, _element).clientLeft), __privateSet(this, _top, __privateGet(this, _top) + __privateGet(this, _element).clientTop), __privateGet(this, _isCartesian)) {
300
+ 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;
301
+ __privateSet(this, _x, positionX), __privateSet(this, _y, positionY);
299
302
  } else
300
- r(this, H, t(this, d)), r(this, I, t(this, S));
301
- r(this, D, t(this, C) * -1);
302
- const k = new WebKitCSSMatrix(e.transform), u = pt(k);
303
- t(this, p).x = u.translationX, t(this, p).y = u.translationY, t(this, p).z = u.translationZ, t(this, g).x = u.scaleX, t(this, g).y = u.scaleY, t(this, g).z = u.scaleZ, t(this, m).x = u.rotationX, t(this, m).y = u.rotationY, t(this, m).z = u.rotationZ, L(this, f, ht).call(this), L(this, f, J).call(this), t(this, T).notify();
304
- }, nt = function() {
305
- t(this, E).x = 0, t(this, E).y = 0, t(this, E).z = 0;
306
- for (let e = 0; e < t(this, b).length; e++) {
307
- const s = t(this, b)[e]();
308
- let l = s.axis;
309
- t(this, _) !== "auto" && (l = t(this, _));
310
- const y = s.value * (l === "x" ? -1 : t(this, X) ? 1 : -1);
311
- t(this, E)[l] += y, t(this, n).setStep(`_scroll_${e}`, "+", {
312
- [l]: y
303
+ __privateSet(this, _x, __privateGet(this, _left)), __privateSet(this, _y, __privateGet(this, _top));
304
+ __privateSet(this, _z, __privateGet(this, _front) * -1);
305
+ const cssMatrix = new WebKitCSSMatrix(computed.transform), decomposedMatrix = decomposeCSSMatrix(cssMatrix);
306
+ __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();
307
+ }, "#updateDimensions"), updateScrollPosition_fn = /* @__PURE__ */ __name(function() {
308
+ __privateGet(this, _scrollValue).x = 0, __privateGet(this, _scrollValue).y = 0, __privateGet(this, _scrollValue).z = 0;
309
+ for (let index = 0; index < __privateGet(this, _scrollStepSetterCallbacks).length; index++) {
310
+ const callbackReturn = __privateGet(this, _scrollStepSetterCallbacks)[index]();
311
+ let axis = callbackReturn.axis;
312
+ __privateGet(this, _scrollAxis) !== "auto" && (axis = __privateGet(this, _scrollAxis));
313
+ const value = callbackReturn.value * (axis === "x" ? -1 : __privateGet(this, _isCartesian) ? 1 : -1);
314
+ __privateGet(this, _scrollValue)[axis] += value, __privateGet(this, _position).setStep(`_scroll_${index}`, "+", {
315
+ [axis]: value
313
316
  });
314
317
  }
315
- }, P = new WeakMap(), U = new WeakMap(), Z = new WeakMap();
318
+ }, "#updateScrollPosition"), _resizeListener = new WeakMap(), _tickListener = new WeakMap(), _scrollEntriesListener = new WeakMap(), __name(_LayoutBox, "LayoutBox");
319
+ let LayoutBox = _LayoutBox;
316
320
  export {
317
- Pt as LayoutBox,
318
- pt as decomposeCSSMatrix
321
+ LayoutBox,
322
+ decomposeCSSMatrix
319
323
  };
@@ -1 +1 @@
1
- "use strict";var m=i=>{throw TypeError(i)};var v=(i,t,s)=>t.has(i)||m("Cannot "+s);var e=(i,t,s)=>(v(i,t,"read from private field"),s?s.call(i):t.get(i)),r=(i,t,s)=>t.has(i)?m("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(i):t.set(i,s),n=(i,t,s,d)=>(v(i,t,"write to private field"),d?d.call(i,s):t.set(i,s),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("../events-KVanG9sR.cjs"),E=require("../function-MthRj-GJ.cjs");require("construct-style-sheets-polyfill");require("../index-OE2INULi.cjs");var o,a,h,l,u,c,p;class q{constructor(){r(this,o,new Map);r(this,a,!1);r(this,h,0);r(this,l,0);r(this,u,E.debounce(()=>{e(this,a)||(n(this,a,!0),g.dispatchEvent(document,"loadingStart"),e(this,c).call(this))},0));r(this,c,t=>{if(!e(this,a))return;const s=e(this,o).size,d=Array.from(e(this,o)).filter(b=>b[1]).length,f=d/s;n(this,h,d),n(this,l,f),g.dispatchEvent(document,"loadingProgress",{detail:{total:s,loaded:d,progress:f,resourceName:t}}),f===1&&e(this,p).call(this)});r(this,p,E.debounce(()=>{n(this,a,!1),g.dispatchEvent(document,"loadingComplete",{detail:{total:e(this,o).size}}),n(this,h,0),n(this,l,0),e(this,o).clear()},0))}get total(){return e(this,o).size}get loaded(){return e(this,h)}get progress(){return e(this,l)}get map(){return e(this,o)}add(t){e(this,o).set(t,!1),e(this,u).call(this)}complete(t){e(this,o).set(t,!0),e(this,c).call(this,t)}error(t){e(this,o).has(t)&&(console.error(`Failed to load ${t}`),e(this,o).delete(t),g.dispatchEvent(document,"loadingError",{detail:{name:t}})),e(this,c).call(this)}}o=new WeakMap,a=new WeakMap,h=new WeakMap,l=new WeakMap,u=new WeakMap,c=new WeakMap,p=new WeakMap;const S=new q;exports.loading=S;
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);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const events=require("../events-UlGk63iC.cjs"),_function=require("../function-H4b_gTg6.cjs");require("construct-style-sheets-polyfill");require("../index-BpO2RJ__.cjs");var _map,_isStarted,_loaded,_progress,_start,_check,_complete;const _Loading=class _Loading{constructor(){__privateAdd(this,_map,new Map);__privateAdd(this,_isStarted,!1);__privateAdd(this,_loaded,0);__privateAdd(this,_progress,0);__privateAdd(this,_start,_function.debounce(()=>{__privateGet(this,_isStarted)||(__privateSet(this,_isStarted,!0),events.dispatchEvent(document,"loadingStart"),__privateGet(this,_check).call(this))},0));__privateAdd(this,_check,__name(resourceName=>{if(!__privateGet(this,_isStarted))return;const total=__privateGet(this,_map).size,loaded=Array.from(__privateGet(this,_map)).filter(item=>item[1]).length,progress=loaded/total;__privateSet(this,_loaded,loaded),__privateSet(this,_progress,progress),events.dispatchEvent(document,"loadingProgress",{detail:{total,loaded,progress,resourceName}}),progress===1&&__privateGet(this,_complete).call(this)},"#check"));__privateAdd(this,_complete,_function.debounce(()=>{__privateSet(this,_isStarted,!1),events.dispatchEvent(document,"loadingComplete",{detail:{total:__privateGet(this,_map).size}}),__privateSet(this,_loaded,0),__privateSet(this,_progress,0),__privateGet(this,_map).clear()},0))}get total(){return __privateGet(this,_map).size}get loaded(){return __privateGet(this,_loaded)}get progress(){return __privateGet(this,_progress)}get map(){return __privateGet(this,_map)}add(resourceName){__privateGet(this,_map).set(resourceName,!1),__privateGet(this,_start).call(this)}complete(resourceName){__privateGet(this,_map).set(resourceName,!0),__privateGet(this,_check).call(this,resourceName)}error(resourceName){__privateGet(this,_map).has(resourceName)&&(console.error(`Failed to load ${resourceName}`),__privateGet(this,_map).delete(resourceName),events.dispatchEvent(document,"loadingError",{detail:{name:resourceName}})),__privateGet(this,_check).call(this)}};_map=new WeakMap,_isStarted=new WeakMap,_loaded=new WeakMap,_progress=new WeakMap,_start=new WeakMap,_check=new WeakMap,_complete=new WeakMap,__name(_Loading,"Loading");let Loading=_Loading;const loading=new Loading;exports.loading=loading;