aptechka 0.12.0 → 0.13.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 (430) hide show
  1. package/{client-lib/Animation-uimN7sdT.js → lib/Animation-DF5jPON_.js} +23 -28
  2. package/lib/Animation-seVC6-fS.cjs +1 -0
  3. package/lib/Composed-ChlKoJEp.cjs +1 -0
  4. package/lib/Composed-CoX1ImVk.js +31 -0
  5. package/lib/Damped-BDO-F13V.js +53 -0
  6. package/lib/Damped-C7WAqKPh.cjs +1 -0
  7. package/lib/Derived-B-2UXnVE.cjs +1 -0
  8. package/lib/Derived-CDGpSMKu.js +56 -0
  9. package/{client-lib/SourceManager--L_rA28b.js → lib/SourceManager-B8-EMNnd.js} +26 -30
  10. package/lib/SourceManager-TzU9Rw08.cjs +1 -0
  11. package/lib/Store-BnA-dJsE.cjs +1 -0
  12. package/{client-lib/Store-Qr3SNOSf.js → lib/Store-DGtldlBH.js} +29 -34
  13. package/lib/Tweened-CHhmfvzo.js +44 -0
  14. package/lib/Tweened-DSXD0I0k.cjs +1 -0
  15. package/lib/Viewport-BmLTk_6k.cjs +1 -0
  16. package/lib/Viewport-DTlImj28.js +123 -0
  17. package/lib/accordion/index.cjs +1 -0
  18. package/lib/accordion/index.js +167 -0
  19. package/{client-lib → lib}/animation/index.cjs +1 -1
  20. package/lib/animation/index.js +8 -0
  21. package/lib/attribute/index.cjs +1 -0
  22. package/{client-lib → lib}/attribute/index.js +15 -20
  23. package/lib/canvas/index.cjs +1 -0
  24. package/lib/canvas/index.js +111 -0
  25. package/lib/checkbox/index.cjs +1 -0
  26. package/{client-lib → lib}/checkbox/index.js +20 -25
  27. package/lib/class-linked-status/index.cjs +1 -0
  28. package/lib/class-linked-status/index.js +45 -0
  29. package/lib/connector/index.cjs +1 -0
  30. package/{client-lib → lib}/connector/index.js +14 -18
  31. package/lib/controls/index.cjs +1 -0
  32. package/lib/controls/index.js +207 -0
  33. package/{client-lib/createStylesheet-BqjaCUhm.cjs → lib/createStylesheet-CaDI99iu.cjs} +1 -1
  34. package/{client-lib/createStylesheet-DNG2b5X4.js → lib/createStylesheet-DO5t5q-m.js} +1 -1
  35. package/lib/css-property/index.cjs +1 -0
  36. package/lib/css-property/index.js +58 -0
  37. package/lib/css-unit-parser/index.cjs +8 -0
  38. package/lib/css-unit-parser/index.js +31 -0
  39. package/{client-lib → lib}/dev/index.cjs +1 -1
  40. package/{client-lib → lib}/dev/index.js +1 -1
  41. package/{client-lib → lib}/device/index.cjs +1 -1
  42. package/{client-lib → lib}/device/index.js +1 -1
  43. package/{client-lib → lib}/element-constructor/index.cjs +1 -1
  44. package/{client-lib → lib}/element-constructor/index.js +2 -2
  45. package/lib/element-resizer/index.cjs +1 -0
  46. package/{client-lib → lib}/element-resizer/index.js +12 -16
  47. package/lib/en3/helpers/index.cjs +1 -0
  48. package/{client-lib → lib}/en3/helpers/index.js +612 -646
  49. package/{client-lib → lib}/en3/index.cjs +1 -1
  50. package/lib/en3/index.js +6 -0
  51. package/{client-lib → lib}/en3/libs/index.js +1 -2
  52. package/lib/en3/loaders/index.cjs +1 -0
  53. package/{client-lib → lib}/en3/loaders/index.js +152 -167
  54. package/lib/en3/misc/index.cjs +10 -0
  55. package/{client-lib → lib}/en3/misc/index.js +18 -23
  56. package/{client-lib → lib}/en3/utils/index.cjs +1 -1
  57. package/{client-lib → lib}/en3/utils/index.js +2 -2
  58. package/lib/en3-C1fLmsjs.cjs +8 -0
  59. package/{client-lib/en3-THFHEReu.js → lib/en3-x-Ki30MY.js} +59 -64
  60. package/{client-lib → lib}/image/index.cjs +1 -1
  61. package/{client-lib → lib}/image/index.js +1 -1
  62. package/{client-lib/index-BuvwT3dS.js → lib/index-BhbT9PrL.js} +35 -40
  63. package/lib/index-BpsQqM-8.cjs +9 -0
  64. package/lib/intersector/index.cjs +1 -0
  65. package/{client-lib → lib}/intersector/index.js +12 -16
  66. package/lib/ladder/index.cjs +1 -0
  67. package/{client-lib → lib}/ladder/index.js +20 -25
  68. package/lib/layout-box/index.cjs +1 -0
  69. package/lib/layout-box/index.js +318 -0
  70. package/lib/loading/index.cjs +1 -0
  71. package/{client-lib → lib}/loading/index.js +17 -21
  72. package/lib/media/index.cjs +1 -0
  73. package/lib/media/index.js +26 -0
  74. package/lib/modal/index.cjs +1 -0
  75. package/{client-lib → lib}/modal/index.js +22 -26
  76. package/lib/morph/index.cjs +1 -0
  77. package/lib/morph/index.js +225 -0
  78. package/lib/notifier/index.cjs +1 -0
  79. package/lib/notifier/index.js +36 -0
  80. package/lib/pointer/index.cjs +1 -0
  81. package/{client-lib → lib}/pointer/index.js +37 -41
  82. package/lib/popover/index.cjs +1 -0
  83. package/{client-lib → lib}/popover/index.js +71 -79
  84. package/lib/router/index.cjs +1 -0
  85. package/{client-lib → lib}/router/index.js +54 -60
  86. package/lib/scroll/index.cjs +1 -0
  87. package/lib/scroll/index.js +1131 -0
  88. package/lib/scroll-entries/index.cjs +1 -0
  89. package/{client-lib → lib}/scroll-entries/index.js +11 -15
  90. package/{client-lib → lib}/select/index.cjs +1 -1
  91. package/{client-lib → lib}/select/index.js +1 -1
  92. package/lib/sequence/index.cjs +1 -0
  93. package/{client-lib → lib}/sequence/index.js +26 -30
  94. package/lib/slicer/index.cjs +11 -0
  95. package/{client-lib → lib}/slicer/index.js +27 -31
  96. package/lib/source/index.cjs +5 -0
  97. package/{client-lib → lib}/source/index.js +19 -24
  98. package/lib/store/index.cjs +1 -0
  99. package/{client-lib → lib}/store/index.js +29 -33
  100. package/{client-lib → lib}/svg-path-data/index.js +3 -6
  101. package/lib/tags-4AoxVUe3.js +833 -0
  102. package/lib/tags-v-OSVkiQ.cjs +1 -0
  103. package/{client-lib → lib}/theme/index.cjs +1 -1
  104. package/{client-lib → lib}/theme/index.js +2 -2
  105. package/lib/ticker/index.cjs +1 -0
  106. package/lib/ticker/index.js +119 -0
  107. package/{client-lib/traverseMaterials-BtBXV88O.cjs → lib/traverseMaterials-CD_3_56D.cjs} +1 -1
  108. package/{client-lib/traverseMaterials-BKSwwNmo.js → lib/traverseMaterials-mGC2_FkG.js} +1 -1
  109. package/lib/tweaker/index.cjs +10 -0
  110. package/{client-lib → lib}/tweaker/index.js +271 -279
  111. package/{client-lib → lib}/utils/index.js +1 -2
  112. package/lib/video/index.cjs +1 -0
  113. package/{client-lib → lib}/video/index.js +13 -17
  114. package/lib/window-resizer/index.cjs +1 -0
  115. package/lib/window-resizer/index.js +42 -0
  116. package/package.json +351 -378
  117. package/client-lib/Animation-BInSRYNr.cjs +0 -1
  118. package/client-lib/Composed-Fa7owymK.js +0 -35
  119. package/client-lib/Composed-Iihn8fT4.cjs +0 -1
  120. package/client-lib/Damped-Da3EnNN4.cjs +0 -1
  121. package/client-lib/Damped-yrNXlkDE.js +0 -57
  122. package/client-lib/Derived-CNbsNMn_.cjs +0 -1
  123. package/client-lib/Derived-rInkx3e4.js +0 -60
  124. package/client-lib/SourceManager-D6D2LVKf.cjs +0 -1
  125. package/client-lib/Store-Cr3VaD9G.cjs +0 -1
  126. package/client-lib/Tweened-CjgvoOwL.js +0 -48
  127. package/client-lib/Tweened-DksN-Rz6.cjs +0 -1
  128. package/client-lib/Viewport-BBYt1Ivy.cjs +0 -1
  129. package/client-lib/Viewport-Cgtq2I_K.js +0 -127
  130. package/client-lib/accordion/AccordionElement.d.ts +0 -30
  131. package/client-lib/accordion/index.cjs +0 -1
  132. package/client-lib/accordion/index.d.ts +0 -1
  133. package/client-lib/accordion/index.js +0 -176
  134. package/client-lib/animation/Animation.d.ts +0 -35
  135. package/client-lib/animation/Damped.d.ts +0 -19
  136. package/client-lib/animation/Tweened.d.ts +0 -15
  137. package/client-lib/animation/index.d.ts +0 -3
  138. package/client-lib/animation/index.js +0 -8
  139. package/client-lib/attribute/index.cjs +0 -1
  140. package/client-lib/attribute/index.d.ts +0 -15
  141. package/client-lib/canvas/index.cjs +0 -1
  142. package/client-lib/canvas/index.d.ts +0 -35
  143. package/client-lib/canvas/index.js +0 -119
  144. package/client-lib/checkbox/index.cjs +0 -1
  145. package/client-lib/checkbox/index.d.ts +0 -14
  146. package/client-lib/class-linked-status/index.cjs +0 -1
  147. package/client-lib/class-linked-status/index.d.ts +0 -12
  148. package/client-lib/class-linked-status/index.js +0 -49
  149. package/client-lib/connector/index.cjs +0 -1
  150. package/client-lib/connector/index.d.ts +0 -15
  151. package/client-lib/controls/AutoplayControls.d.ts +0 -17
  152. package/client-lib/controls/Controls.d.ts +0 -9
  153. package/client-lib/controls/DragControls.d.ts +0 -16
  154. package/client-lib/controls/KeyboardControls.d.ts +0 -14
  155. package/client-lib/controls/WheelControls.d.ts +0 -19
  156. package/client-lib/controls/index.cjs +0 -1
  157. package/client-lib/controls/index.d.ts +0 -5
  158. package/client-lib/controls/index.js +0 -213
  159. package/client-lib/counter/index.d.ts +0 -6
  160. package/client-lib/css-property/index.cjs +0 -1
  161. package/client-lib/css-property/index.d.ts +0 -17
  162. package/client-lib/css-property/index.js +0 -62
  163. package/client-lib/css-unit-parser/index.cjs +0 -8
  164. package/client-lib/css-unit-parser/index.d.ts +0 -6
  165. package/client-lib/css-unit-parser/index.js +0 -36
  166. package/client-lib/css-value-parser/index.d.ts +0 -6
  167. package/client-lib/dev/index.d.ts +0 -1
  168. package/client-lib/device/Device.d.ts +0 -19
  169. package/client-lib/device/Viewport.d.ts +0 -29
  170. package/client-lib/device/index.d.ts +0 -2
  171. package/client-lib/element-constructor/ElementConstructor.d.ts +0 -75
  172. package/client-lib/element-constructor/createStylesheet.d.ts +0 -3
  173. package/client-lib/element-constructor/createTheme.d.ts +0 -13
  174. package/client-lib/element-constructor/index.d.ts +0 -4
  175. package/client-lib/element-constructor/knownSvgTags.d.ts +0 -1
  176. package/client-lib/element-constructor/tags.d.ts +0 -119
  177. package/client-lib/element-resizer/index.cjs +0 -1
  178. package/client-lib/element-resizer/index.d.ts +0 -10
  179. package/client-lib/en3/core/En3Raycaster.d.ts +0 -21
  180. package/client-lib/en3/core/En3View.d.ts +0 -40
  181. package/client-lib/en3/core/en3.d.ts +0 -39
  182. package/client-lib/en3/core/en3Cache.d.ts +0 -4
  183. package/client-lib/en3/helpers/En3ComposerManager.d.ts +0 -5
  184. package/client-lib/en3/helpers/En3GridHelper.d.ts +0 -8
  185. package/client-lib/en3/helpers/En3Helpers.d.ts +0 -5
  186. package/client-lib/en3/helpers/En3Object3dManager.d.ts +0 -14
  187. package/client-lib/en3/helpers/En3OrbitControls.d.ts +0 -8
  188. package/client-lib/en3/helpers/En3ParametersManager.d.ts +0 -16
  189. package/client-lib/en3/helpers/En3TransformControls.d.ts +0 -8
  190. package/client-lib/en3/helpers/index.cjs +0 -1
  191. package/client-lib/en3/helpers/index.d.ts +0 -2
  192. package/client-lib/en3/index.d.ts +0 -3
  193. package/client-lib/en3/index.js +0 -6
  194. package/client-lib/en3/libs/MeshoptDecoder.d.ts +0 -1
  195. package/client-lib/en3/libs/index.d.ts +0 -1
  196. package/client-lib/en3/loaders/En3GLTFLoader.d.ts +0 -12
  197. package/client-lib/en3/loaders/En3TextureLoader.d.ts +0 -8
  198. package/client-lib/en3/loaders/index.cjs +0 -1
  199. package/client-lib/en3/loaders/index.d.ts +0 -3
  200. package/client-lib/en3/loaders/loaders.d.ts +0 -13
  201. package/client-lib/en3/misc/En3ModifiedMaterial.d.ts +0 -33
  202. package/client-lib/en3/misc/En3SourceManager.d.ts +0 -32
  203. package/client-lib/en3/misc/index.cjs +0 -10
  204. package/client-lib/en3/misc/index.d.ts +0 -2
  205. package/client-lib/en3/objects/En3Clip.d.ts +0 -15
  206. package/client-lib/en3/objects/En3ClipHelpers.d.ts +0 -6
  207. package/client-lib/en3/objects/En3GLTF.d.ts +0 -11
  208. package/client-lib/en3/objects/En3Image.d.ts +0 -8
  209. package/client-lib/en3/objects/En3ImageLike.d.ts +0 -25
  210. package/client-lib/en3/objects/En3SourceConsumer.d.ts +0 -5
  211. package/client-lib/en3/objects/En3Video.d.ts +0 -13
  212. package/client-lib/en3/objects/fluid/Advection.d.ts +0 -30
  213. package/client-lib/en3/objects/fluid/Divergence.d.ts +0 -23
  214. package/client-lib/en3/objects/fluid/En3Fluid.d.ts +0 -16
  215. package/client-lib/en3/objects/fluid/En3FluidElement.d.ts +0 -13
  216. package/client-lib/en3/objects/fluid/En3FluidPointer.d.ts +0 -13
  217. package/client-lib/en3/objects/fluid/ExternalForce.d.ts +0 -19
  218. package/client-lib/en3/objects/fluid/Poisson.d.ts +0 -24
  219. package/client-lib/en3/objects/fluid/Pressure.d.ts +0 -26
  220. package/client-lib/en3/objects/fluid/ShaderPass.d.ts +0 -24
  221. package/client-lib/en3/objects/fluid/Simulation.d.ts +0 -33
  222. package/client-lib/en3/objects/fluid/Viscous.d.ts +0 -30
  223. package/client-lib/en3/objects/fluid/index.d.ts +0 -3
  224. package/client-lib/en3/objects/index.d.ts +0 -7
  225. package/client-lib/en3/utils/coverTexture.d.ts +0 -7
  226. package/client-lib/en3/utils/dispose.d.ts +0 -3
  227. package/client-lib/en3/utils/getCurrentViewport.d.ts +0 -9
  228. package/client-lib/en3/utils/index.d.ts +0 -5
  229. package/client-lib/en3/utils/traverseMaterials.d.ts +0 -3
  230. package/client-lib/en3/utils/traverseMeshes.d.ts +0 -3
  231. package/client-lib/en3-CBBYE8rb.cjs +0 -8
  232. package/client-lib/image/index.d.ts +0 -11
  233. package/client-lib/index-Ctct2GyP.cjs +0 -9
  234. package/client-lib/intersector/index.cjs +0 -1
  235. package/client-lib/intersector/index.d.ts +0 -10
  236. package/client-lib/ladder/index.cjs +0 -1
  237. package/client-lib/ladder/index.d.ts +0 -24
  238. package/client-lib/layout-box/index.cjs +0 -1
  239. package/client-lib/layout-box/index.d.ts +0 -96
  240. package/client-lib/layout-box/index.js +0 -326
  241. package/client-lib/libs/path-data-polyfill.d.ts +0 -1
  242. package/client-lib/loading/index.cjs +0 -1
  243. package/client-lib/loading/index.d.ts +0 -39
  244. package/client-lib/media/index.cjs +0 -1
  245. package/client-lib/media/index.d.ts +0 -12
  246. package/client-lib/media/index.js +0 -30
  247. package/client-lib/modal/ModalElement.d.ts +0 -13
  248. package/client-lib/modal/index.cjs +0 -1
  249. package/client-lib/modal/index.d.ts +0 -1
  250. package/client-lib/morph/Link.d.ts +0 -7
  251. package/client-lib/morph/Morph.d.ts +0 -37
  252. package/client-lib/morph/index.cjs +0 -1
  253. package/client-lib/morph/index.d.ts +0 -1
  254. package/client-lib/morph/index.js +0 -235
  255. package/client-lib/notifier/index.cjs +0 -1
  256. package/client-lib/notifier/index.d.ts +0 -8
  257. package/client-lib/notifier/index.js +0 -40
  258. package/client-lib/order/index.d.ts +0 -22
  259. package/client-lib/pointer/Pointer.d.ts +0 -23
  260. package/client-lib/pointer/PointerElement.d.ts +0 -14
  261. package/client-lib/pointer/index.cjs +0 -1
  262. package/client-lib/pointer/index.d.ts +0 -2
  263. package/client-lib/popover/PopoverButtonElement.d.ts +0 -15
  264. package/client-lib/popover/PopoverElement.d.ts +0 -26
  265. package/client-lib/popover/index.cjs +0 -1
  266. package/client-lib/popover/index.d.ts +0 -2
  267. package/client-lib/router/Link.d.ts +0 -7
  268. package/client-lib/router/Route.d.ts +0 -21
  269. package/client-lib/router/Router.d.ts +0 -41
  270. package/client-lib/router/index.cjs +0 -1
  271. package/client-lib/router/index.d.ts +0 -2
  272. package/client-lib/scroll/ScrollBulletButtonsElement.d.ts +0 -12
  273. package/client-lib/scroll/ScrollButtonElement.d.ts +0 -6
  274. package/client-lib/scroll/ScrollElement.d.ts +0 -82
  275. package/client-lib/scroll/ScrollSection.d.ts +0 -23
  276. package/client-lib/scroll/ScrollSegmentElement.d.ts +0 -63
  277. package/client-lib/scroll/ScrollSetButtonElement.d.ts +0 -10
  278. package/client-lib/scroll/ScrollStepButtonElement.d.ts +0 -10
  279. package/client-lib/scroll/ScrollUserElement.d.ts +0 -7
  280. package/client-lib/scroll/ScrollbarElement.d.ts +0 -14
  281. package/client-lib/scroll/index.cjs +0 -1
  282. package/client-lib/scroll/index.d.ts +0 -6
  283. package/client-lib/scroll/index.js +0 -1154
  284. package/client-lib/scroll-entries/index.cjs +0 -1
  285. package/client-lib/scroll-entries/index.d.ts +0 -21
  286. package/client-lib/select/SelectElement.d.ts +0 -24
  287. package/client-lib/select/SelectHeadElement.d.ts +0 -13
  288. package/client-lib/select/SelectOptionElement.d.ts +0 -14
  289. package/client-lib/select/SelectUserElement.d.ts +0 -7
  290. package/client-lib/select/index.d.ts +0 -4
  291. package/client-lib/sequence/index.cjs +0 -1
  292. package/client-lib/sequence/index.d.ts +0 -21
  293. package/client-lib/slicer/DecoderElement.d.ts +0 -11
  294. package/client-lib/slicer/Letter.d.ts +0 -11
  295. package/client-lib/slicer/SlicerElement.d.ts +0 -21
  296. package/client-lib/slicer/Word.d.ts +0 -17
  297. package/client-lib/slicer/index.cjs +0 -11
  298. package/client-lib/slicer/index.d.ts +0 -4
  299. package/client-lib/source/SourceClass.d.ts +0 -11
  300. package/client-lib/source/SourceElement.d.ts +0 -25
  301. package/client-lib/source/SourceManager.d.ts +0 -14
  302. package/client-lib/source/SourceSet.d.ts +0 -9
  303. package/client-lib/source/index.cjs +0 -5
  304. package/client-lib/source/index.d.ts +0 -4
  305. package/client-lib/store/Cached.d.ts +0 -18
  306. package/client-lib/store/Composed.d.ts +0 -8
  307. package/client-lib/store/Derived.d.ts +0 -13
  308. package/client-lib/store/DerivedArray.d.ts +0 -13
  309. package/client-lib/store/Resource.d.ts +0 -12
  310. package/client-lib/store/Store.d.ts +0 -76
  311. package/client-lib/store/StoreRegistry.d.ts +0 -23
  312. package/client-lib/store/index.cjs +0 -1
  313. package/client-lib/store/index.d.ts +0 -7
  314. package/client-lib/svg-path-data/index.d.ts +0 -15
  315. package/client-lib/tags-B0do5eeb.cjs +0 -1
  316. package/client-lib/tags-wG5k157g.js +0 -860
  317. package/client-lib/test/starting-style/index.d.ts +0 -1
  318. package/client-lib/theme/index.d.ts +0 -35
  319. package/client-lib/ticker/index.cjs +0 -1
  320. package/client-lib/ticker/index.d.ts +0 -22
  321. package/client-lib/ticker/index.js +0 -125
  322. package/client-lib/tweaker/TweakerBooleanManagerElement.d.ts +0 -11
  323. package/client-lib/tweaker/TweakerColorManagerElement.d.ts +0 -11
  324. package/client-lib/tweaker/TweakerElement.d.ts +0 -18
  325. package/client-lib/tweaker/TweakerFieldElement.d.ts +0 -21
  326. package/client-lib/tweaker/TweakerFolderElement.d.ts +0 -24
  327. package/client-lib/tweaker/TweakerLinkManagerElement.d.ts +0 -11
  328. package/client-lib/tweaker/TweakerNumberManagerElement.d.ts +0 -14
  329. package/client-lib/tweaker/TweakerSelectManagerElement.d.ts +0 -11
  330. package/client-lib/tweaker/TweakerStoreManagerElement.d.ts +0 -10
  331. package/client-lib/tweaker/TweakerStringManagerElement.d.ts +0 -11
  332. package/client-lib/tweaker/index.cjs +0 -10
  333. package/client-lib/tweaker/index.d.ts +0 -1
  334. package/client-lib/tweaker/tweakerManagerConstructors.d.ts +0 -6
  335. package/client-lib/tweaker/tweakerStorage.d.ts +0 -23
  336. package/client-lib/utils/array.d.ts +0 -2
  337. package/client-lib/utils/attributes.d.ts +0 -2
  338. package/client-lib/utils/browser.d.ts +0 -1
  339. package/client-lib/utils/bytes.d.ts +0 -1
  340. package/client-lib/utils/canvas.d.ts +0 -7
  341. package/client-lib/utils/collisions.d.ts +0 -4
  342. package/client-lib/utils/coordinates.d.ts +0 -14
  343. package/client-lib/utils/cssom.d.ts +0 -5
  344. package/client-lib/utils/decoding.d.ts +0 -2
  345. package/client-lib/utils/dom.d.ts +0 -5
  346. package/client-lib/utils/easings.d.ts +0 -17
  347. package/client-lib/utils/events.d.ts +0 -8
  348. package/client-lib/utils/file.d.ts +0 -1
  349. package/client-lib/utils/function.d.ts +0 -2
  350. package/client-lib/utils/gestures.d.ts +0 -1
  351. package/client-lib/utils/index.d.ts +0 -26
  352. package/client-lib/utils/layout.d.ts +0 -3
  353. package/client-lib/utils/math.d.ts +0 -12
  354. package/client-lib/utils/number.d.ts +0 -3
  355. package/client-lib/utils/object.d.ts +0 -9
  356. package/client-lib/utils/polyfills.d.ts +0 -1
  357. package/client-lib/utils/promises.d.ts +0 -1
  358. package/client-lib/utils/string.d.ts +0 -8
  359. package/client-lib/utils/style.d.ts +0 -2
  360. package/client-lib/utils/ts-shape.d.ts +0 -20
  361. package/client-lib/utils/ts-utility.d.ts +0 -26
  362. package/client-lib/utils/url.d.ts +0 -9
  363. package/client-lib/video/index.cjs +0 -1
  364. package/client-lib/video/index.d.ts +0 -22
  365. package/client-lib/window-resizer/index.cjs +0 -1
  366. package/client-lib/window-resizer/index.d.ts +0 -10
  367. package/client-lib/window-resizer/index.js +0 -46
  368. package/server-lib/optimizer/FFmpeg.d.ts +0 -10
  369. package/server-lib/optimizer/generateFavicon.d.ts +0 -4
  370. package/server-lib/optimizer/generateSequence.d.ts +0 -3
  371. package/server-lib/optimizer/generateSprite.d.ts +0 -4
  372. package/server-lib/optimizer/index.d.ts +0 -10
  373. package/server-lib/optimizer/index.js +0 -404
  374. package/server-lib/optimizer/inputFiles.d.ts +0 -26
  375. package/server-lib/optimizer/optimize.d.ts +0 -13
  376. package/server-lib/optimizer/optimizeImage.d.ts +0 -4
  377. package/server-lib/optimizer/optimizeVideo.d.ts +0 -3
  378. package/server-lib/optimizer/optimizer.d.ts +0 -5
  379. package/server-lib/optimizer/types.d.ts +0 -51
  380. package/server-lib/optimizer/utils.d.ts +0 -1
  381. package/server-lib/utils/buffer.d.ts +0 -1
  382. package/server-lib/utils/fs.d.ts +0 -11
  383. package/server-lib/utils/index.d.ts +0 -5
  384. package/server-lib/utils/index.js +0 -65
  385. package/server-lib/utils/math.d.ts +0 -1
  386. package/server-lib/utils/path.d.ts +0 -3
  387. package/server-lib/utils/types.d.ts +0 -8
  388. /package/{client-lib → lib}/attributes-69we3byR.js +0 -0
  389. /package/{client-lib → lib}/attributes-Bf2svn4j.cjs +0 -0
  390. /package/{client-lib → lib}/browser-0zX67oeU.js +0 -0
  391. /package/{client-lib → lib}/browser-CpzFX2xg.cjs +0 -0
  392. /package/{client-lib → lib}/canvas-CU5Xjahf.cjs +0 -0
  393. /package/{client-lib → lib}/canvas-DeZ0SLUJ.js +0 -0
  394. /package/{client-lib → lib}/coordinates-CgdGoSYs.js +0 -0
  395. /package/{client-lib → lib}/coordinates-D8Np3cPD.cjs +0 -0
  396. /package/{client-lib → lib}/createTheme-CHnsCgAr.js +0 -0
  397. /package/{client-lib → lib}/createTheme-Cfaw9UmV.cjs +0 -0
  398. /package/{client-lib → lib}/css-value-parser/index.cjs +0 -0
  399. /package/{client-lib → lib}/css-value-parser/index.js +0 -0
  400. /package/{client-lib → lib}/dom-JBOkFLTh.cjs +0 -0
  401. /package/{client-lib → lib}/dom-P5QbAASX.js +0 -0
  402. /package/{client-lib → lib}/easings-BKi40vHz.js +0 -0
  403. /package/{client-lib → lib}/easings-DsS5-Kqc.cjs +0 -0
  404. /package/{client-lib → lib}/en3/libs/index.cjs +0 -0
  405. /package/{client-lib → lib}/events-BGwqaxVW.cjs +0 -0
  406. /package/{client-lib → lib}/events-CJTUMSLU.js +0 -0
  407. /package/{client-lib → lib}/file-EevnUtRj.cjs +0 -0
  408. /package/{client-lib → lib}/file-lxi_oXJf.js +0 -0
  409. /package/{client-lib → lib}/function-C10DGppn.js +0 -0
  410. /package/{client-lib → lib}/function-MthRj-GJ.cjs +0 -0
  411. /package/{client-lib → lib}/gestures-D2Fdra_G.js +0 -0
  412. /package/{client-lib → lib}/gestures-DHLrn6Q8.cjs +0 -0
  413. /package/{client-lib → lib}/layout-8ryRAMGJ.cjs +0 -0
  414. /package/{client-lib → lib}/layout-HoBT_Da2.js +0 -0
  415. /package/{client-lib → lib}/math-BOBiC4TN.js +0 -0
  416. /package/{client-lib → lib}/math-GDWEqu7y.cjs +0 -0
  417. /package/{client-lib → lib}/object-CCiXnER2.cjs +0 -0
  418. /package/{client-lib → lib}/object-D6MVWB4l.js +0 -0
  419. /package/{client-lib → lib}/order/index.cjs +0 -0
  420. /package/{client-lib → lib}/order/index.js +0 -0
  421. /package/{client-lib → lib}/polyfills-CM4SCDTt.cjs +0 -0
  422. /package/{client-lib → lib}/polyfills-X6KXuHg-.js +0 -0
  423. /package/{client-lib → lib}/string-DhgS_iFl.cjs +0 -0
  424. /package/{client-lib → lib}/string-f0Dnk0L1.js +0 -0
  425. /package/{client-lib → lib}/style-At6aDoqG.cjs +0 -0
  426. /package/{client-lib → lib}/style-j2TwriJ_.js +0 -0
  427. /package/{client-lib → lib}/svg-path-data/index.cjs +0 -0
  428. /package/{client-lib → lib}/url-C3dWnJQg.cjs +0 -0
  429. /package/{client-lib → lib}/url-DMNfW7uN.js +0 -0
  430. /package/{client-lib → lib}/utils/index.cjs +0 -0
@@ -1,1154 +0,0 @@
1
- var Me = Object.defineProperty;
2
- var de = Object.getOwnPropertySymbols;
3
- var Re = Object.prototype.hasOwnProperty, Oe = Object.prototype.propertyIsEnumerable;
4
- var pe = (f, n, e) => n in f ? Me(f, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : f[n] = e, Se = (f, n) => {
5
- for (var e in n || (n = {}))
6
- Re.call(n, e) && pe(f, e, n[e]);
7
- if (de)
8
- for (var e of de(n))
9
- Oe.call(n, e) && pe(f, e, n[e]);
10
- return f;
11
- };
12
- var Ys = (f, n, e) => {
13
- if (!n.has(f))
14
- throw TypeError("Cannot " + e);
15
- };
16
- var t = (f, n, e) => (Ys(f, n, "read from private field"), e ? e.call(f) : n.get(f)), i = (f, n, e) => {
17
- if (n.has(f))
18
- throw TypeError("Cannot add the same private member more than once");
19
- n instanceof WeakSet ? n.add(f) : n.set(f, e);
20
- }, r = (f, n, e, s) => (Ys(f, n, "write to private field"), s ? s.call(f, e) : n.set(f, e), e);
21
- var o = (f, n, e) => (Ys(f, n, "access private method"), e);
22
- import { S as kt } from "../Store-Qr3SNOSf.js";
23
- import { D as Ae } from "../Derived-rInkx3e4.js";
24
- import { i as le } from "../browser-0zX67oeU.js";
25
- import { p as Te } from "../easings-BKi40vHz.js";
26
- import { a as $s, g as Bs } from "../layout-HoBT_Da2.js";
27
- import { c as ge, s as He } from "../math-BOBiC4TN.js";
28
- import "../ticker/index.js";
29
- import { TICK_ORDER as ve, RESIZE_ORDER as ue } from "../order/index.js";
30
- import { D as ye } from "../Damped-yrNXlkDE.js";
31
- import { T as $e } from "../Tweened-CjgvoOwL.js";
32
- import { WheelControls as Be, KeyboardControls as We, DragControls as qe, AutoplayControls as Ue } from "../controls/index.js";
33
- import { windowResizer as ps } from "../window-resizer/index.js";
34
- import { scrollEntries as Yt } from "../scroll-entries/index.js";
35
- import { e as ae, D as te, ay as Ws, p as Ge } from "../tags-wG5k157g.js";
36
- import { c as fe } from "../createStylesheet-DNG2b5X4.js";
37
- import { cssUnitParser as me } from "../css-unit-parser/index.js";
38
- import { CSSProperty as c } from "../css-property/index.js";
39
- import { d as Ne } from "../Viewport-Cgtq2I_K.js";
40
- import { elementResizer as qs } from "../element-resizer/index.js";
41
- import { s as Ke } from "../gestures-D2Fdra_G.js";
42
- import { aptechkaTheme as be } from "../theme/index.js";
43
- import { f as _e } from "../dom-P5QbAASX.js";
44
- import { d as Ce } from "../function-C10DGppn.js";
45
- var S, ms, v, Mt, _, ft;
46
- class Ze {
47
- constructor(n, e, s) {
48
- i(this, S, void 0);
49
- i(this, ms, void 0);
50
- i(this, v, void 0);
51
- i(this, Mt, 0);
52
- i(this, _, 0);
53
- i(this, ft, null);
54
- r(this, S, n), r(this, ms, e), r(this, v, s), Yt.register(t(this, S));
55
- }
56
- get index() {
57
- return t(this, ms);
58
- }
59
- get size() {
60
- return t(this, Mt);
61
- }
62
- get position() {
63
- return t(this, _);
64
- }
65
- destroy() {
66
- Yt.unregister(t(this, S)), t(this, S).style.transform = "", this.mark(null);
67
- }
68
- setSize(n) {
69
- n ? (t(this, S).style.setProperty("--size", n + "px"), t(this, v).axisCSSProperty.current === "x" ? (t(this, S).style.width = n + "px", t(this, S).style.height = "") : (t(this, S).style.height = n + "px", t(this, S).style.width = "")) : (t(this, S).style.width = "", t(this, S).style.height = "", t(this, S).style.removeProperty("--size"));
70
- }
71
- resize() {
72
- r(this, Mt, t(this, v).vertical ? t(this, S).offsetHeight : t(this, S).offsetWidth), r(this, _, t(this, v).vertical ? $s(t(this, S)) : Bs(t(this, S))), r(this, _, t(this, _) - t(this, v).contentPosition);
73
- }
74
- transform() {
75
- let n = 0;
76
- const e = t(this, v).viewportSize * t(this, v).sectionDistanceScaleCSSProperty.current;
77
- t(this, v).loopCSSProperty.current && t(this, v).overscroll && t(this, _) + t(this, Mt) < t(this, v).currentScrollValue && (n = t(this, v).distance * -1 - t(this, v).gap), Yt.update(
78
- t(this, S),
79
- t(this, v).axisCSSProperty.current,
80
- n
81
- );
82
- const s = t(this, v).currentScrollValue + n, h = t(this, _) - t(this, v).viewportSize - e, u = t(this, _) + t(this, Mt) + e, m = ge(s, h, u);
83
- t(this, v).vertical ? t(this, S).style.transform = `translate3d(0px, ${m * -1}px, 0px)` : t(this, S).style.transform = `translate3d(${m * -1}px, 0px, 0px)`;
84
- }
85
- mark(n) {
86
- t(this, ft) !== n && (t(this, ft) && t(this, S).classList.remove(t(this, ft)), n && t(this, S).classList.add(n), r(this, ft, n), t(this, S).dispatchEvent(
87
- new CustomEvent(
88
- "sectionsChange",
89
- {
90
- composed: !0,
91
- detail: {
92
- mark: t(this, ft)
93
- }
94
- }
95
- )
96
- ));
97
- }
98
- }
99
- S = new WeakMap(), ms = new WeakMap(), v = new WeakMap(), Mt = new WeakMap(), _ = new WeakMap(), ft = new WeakMap();
100
- const je = fe({
101
- ":host": {
102
- position: "relative",
103
- width: "100%",
104
- height: "100%",
105
- display: "block",
106
- outline: "none"
107
- },
108
- ':host([hibernated="true"])': {
109
- display: "contents"
110
- },
111
- ".static": {
112
- position: "var(--static-position, absolute)",
113
- top: "var(--static-top, 0)",
114
- left: "var(--static-left, 0)",
115
- width: "var(--static-width, 100%)",
116
- height: "var(--static-height, 100%)"
117
- },
118
- ".content": {
119
- position: "relative",
120
- display: "flex",
121
- width: "100%",
122
- height: "100%",
123
- gap: "var(--gap, 0px)",
124
- willChange: "var(--will-change, transform)"
125
- },
126
- ':host([hibernated="true"]) .content': {
127
- display: "contents"
128
- },
129
- "::slotted(*)": {
130
- flexShrink: "0"
131
- }
132
- });
133
- var a, Rt, z, Z, j, W, J, dt, pt, q, F, Ot, At, Tt, Ht, es, U, $t, St, G, mt, Q, bt, Bt, Wt, qt, p, bs, l, gs, vs, C, b, M, N, gt, X, x, g, is, vt, Ut, Gt, rs, Y, Nt, Ss, yt, ss, ys, ee, Cs, ie, Ps, re, ws, he, R, Es, Us, Pe, hs, xs, Ls, ne, tt, Dt, Vs, oe;
134
- class se extends HTMLElement {
135
- constructor() {
136
- super();
137
- i(this, Nt);
138
- i(this, yt);
139
- i(this, ys);
140
- i(this, Cs);
141
- i(this, Ps);
142
- i(this, ws);
143
- i(this, Us);
144
- i(this, Ls);
145
- i(this, tt);
146
- i(this, Vs);
147
- i(this, a, null);
148
- i(this, Rt, new c(this, "--controls", !0));
149
- i(this, z, new c(this, "--axis", "y"));
150
- i(this, Z, new c(this, "--direction", 0));
151
- i(this, j, new c(this, "--pages", 0, {
152
- validate: (e) => Math.max(0, e - 1)
153
- }));
154
- i(this, W, new c(this, "--split", !1));
155
- i(this, J, new c(this, "--sectional", !1));
156
- i(this, dt, new c(this, "--auto-size", !1));
157
- i(this, pt, new c(
158
- this,
159
- "--wheel-max-delta",
160
- !1
161
- ));
162
- i(this, q, new c(
163
- this,
164
- "--sections-in-view",
165
- 1
166
- ));
167
- i(this, F, new c(this, "--loop", !1));
168
- i(this, Ot, new c(this, "--damping", 20));
169
- i(this, At, new c(this, "--mass", 0));
170
- i(this, Tt, new c(this, "--stiffness", 0));
171
- i(this, Ht, new c(this, "--mouse-drag", !1));
172
- i(this, es, new c(
173
- this,
174
- "--section-distance-scale",
175
- 0.5
176
- ));
177
- i(this, U, new c(this, "--autoplay", 0));
178
- i(this, $t, new c(
179
- this,
180
- "--autoplay-pause-duration",
181
- 0
182
- ));
183
- i(this, St, new c(
184
- this,
185
- "--autoplay-user-direction",
186
- !1
187
- ));
188
- i(this, G, new c(this, "--classes", 0));
189
- i(this, mt, new c(
190
- this,
191
- "--current-index-start-offset",
192
- 0
193
- ));
194
- i(this, Q, new c(
195
- this,
196
- "--current-index-end-offset",
197
- 0
198
- ));
199
- i(this, bt, new c(this, "--focus-delay", 0));
200
- i(this, Bt, new c(
201
- this,
202
- "--focus-duration",
203
- 3e3
204
- ));
205
- i(this, Wt, new c(this, "--disabled", !1));
206
- i(this, qt, new c(this, "--hibernated", !1));
207
- i(this, p, null);
208
- i(this, bs, null);
209
- i(this, l, []);
210
- i(this, gs, 0);
211
- i(this, vs, 0);
212
- i(this, C, 0);
213
- i(this, b, 0);
214
- i(this, M, 0);
215
- i(this, N, null);
216
- i(this, gt, null);
217
- i(this, X, null);
218
- i(this, x, null);
219
- i(this, g, new kt(0));
220
- i(this, is, 0);
221
- i(this, vt, 0);
222
- i(this, Ut, !0);
223
- i(this, Gt, !0);
224
- i(this, rs, void 0);
225
- i(this, Y, new $e());
226
- i(this, R, () => {
227
- t(this, a).unlistenAnimationFrame();
228
- const e = this.currentScrollValue / t(this, b) || 0, s = t(this, g).current;
229
- if (r(this, gs, this.vertical ? $s(this) : Bs(this)), r(this, vs, this.vertical ? $s(t(this, p)) : Bs(t(this, p))), r(this, C, this.vertical ? this.offsetHeight : this.offsetWidth), this.vertical ? r(this, M, me.parse(
230
- getComputedStyle(t(this, p)).rowGap
231
- )) : r(this, M, me.parse(
232
- getComputedStyle(t(this, p)).columnGap
233
- )), t(this, dt).current && t(this, l).length) {
234
- const h = t(this, q).current, u = (t(this, C) - t(this, M) * (h - 1)) / h;
235
- t(this, l).forEach((m) => {
236
- m.setSize(u);
237
- });
238
- } else
239
- t(this, l).forEach((h) => {
240
- h.setSize();
241
- });
242
- if (t(this, l).forEach((h) => {
243
- h.resize();
244
- }), t(this, j).current) {
245
- r(this, b, t(this, C) * t(this, j).current);
246
- const h = t(this, b) + t(this, C);
247
- this.vertical ? (t(this, p).style.width = h + "px", t(this, p).style.height = "100%") : (t(this, p).style.height = h + "px", t(this, p).style.width = "100%");
248
- } else
249
- this.vertical ? (t(this, p).style.width = "100%", t(this, p).style.height = "max-content", r(this, b, t(this, p).offsetHeight - t(this, C))) : (t(this, p).style.width = "max-content", t(this, p).style.height = "100%", r(this, b, t(this, p).offsetWidth - t(this, C)));
250
- if (!t(this, F).current) {
251
- const h = getComputedStyle(this), u = this.vertical ? parseFloat(h.paddingBlockStart) + parseFloat(h.paddingBlockEnd) : parseFloat(h.paddingInlineStart) + parseFloat(h.paddingInlineEnd);
252
- r(this, b, t(this, b) + u), t(this, a).max = t(this, b);
253
- }
254
- if (t(this, F).current && t(this, l).length) {
255
- const h = t(this, l)[t(this, l).length - 1], u = h.position + h.size - t(this, C), m = t(this, b) - u;
256
- r(this, vt, h.position + h.size + m);
257
- } else
258
- r(this, vt, t(this, b));
259
- if (t(this, J).current && t(this, l).length) {
260
- const h = t(this, l)[s];
261
- t(this, a).set(h.position, {
262
- equalize: !0
263
- });
264
- } else
265
- t(this, a).set(e * t(this, b), {
266
- equalize: !0
267
- });
268
- });
269
- i(this, Es, () => {
270
- const e = this.currentScrollValue;
271
- if (r(this, is, Math.max(0, e - t(this, b))), t(this, l).length) {
272
- let s = 0;
273
- for (let h = 0; h < t(this, l).length; h++) {
274
- const u = t(this, l)[h];
275
- u.transform(), this.targetScrollValue + u.size / 2 >= u.position && (s = h);
276
- }
277
- t(this, g).current = s;
278
- } else
279
- this.vertical ? t(this, p).style.transform = `translate3d(0px, ${e * -1}px, 0px)` : t(this, p).style.transform = `translate3d(${e * -1}px, 0px, 0px)`;
280
- Yt.update(
281
- this,
282
- t(this, z).current,
283
- e
284
- );
285
- });
286
- i(this, hs, (e, s) => {
287
- t(this, Rt).current && (t(this, St).current && (t(this, x).pauseAndContinue(
288
- t(this, $t).current
289
- ), t(this, x).direction = Math.sign(s) || 1), t(this, xs).call(this, e, s));
290
- });
291
- i(this, xs, (e, s) => {
292
- if (t(this, Z).current) {
293
- if (t(this, Z).current < 0 && s > 0)
294
- return;
295
- if (t(this, Z).current > 0 && s < 0)
296
- return;
297
- }
298
- if (t(this, Y).unlistenAnimationFrame(), !t(this, U).current && t(this, bt).current && (clearInterval(t(this, rs)), r(this, rs, setTimeout(() => {
299
- const h = o(this, Vs, oe).call(this);
300
- h && this.scrollToSection(h.index, {
301
- tween: {
302
- duration: t(this, Bt).current,
303
- easing: Te
304
- }
305
- });
306
- }, t(this, bt).current))), !(e === "drag" && !Ne.isMobile && !t(this, Ht).current))
307
- if (t(this, J).current) {
308
- const h = Math.sign(s);
309
- t(this, l).length ? this.shiftSections(h) : t(this, a).shift(h * t(this, C));
310
- } else
311
- t(this, a).shift(s);
312
- });
313
- le && (r(this, a, new ye(0, {
314
- damping: 0.01,
315
- min: 0,
316
- order: ve.SCROLL
317
- })), this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(je), ae(this, {
318
- tabIndex: 0,
319
- children: [
320
- te({
321
- class: "static",
322
- children: [Ws({ name: "static" })]
323
- }),
324
- te({
325
- class: "content",
326
- children: [Ws({ ref: (s) => r(this, bs, s) })],
327
- style: {
328
- flexDirection: new Ae(
329
- t(this, z),
330
- (s) => s === "x" ? "row" : "column"
331
- )
332
- },
333
- ref: (s) => r(this, p, s)
334
- })
335
- ]
336
- }), r(this, N, new Be({ element: t(this, p) })), t(this, N).changeEvent.subscribe(
337
- t(this, hs)
338
- ), r(this, gt, new We({
339
- element: this
340
- })), t(this, gt).changeEvent.subscribe(
341
- t(this, hs)
342
- ), r(this, X, new qe({ element: t(this, p) })), t(this, X).changeEvent.subscribe(t(this, hs)), r(this, x, new Ue({
343
- culling: this
344
- })), t(this, x).changeEvent.subscribe(t(this, xs)), t(this, z).subscribe(({ current: s }) => {
345
- t(this, p).style.flexDirection = s === "x" ? "row" : "column", t(this, N).axis = t(this, pt).current ? "max" : s, t(this, gt).dimension = s === "x" ? "width" : "height", t(this, X).axis = s, s === "x" ? this.style.touchAction = "pan-y" : s === "y" && (this.style.touchAction = "pan-x"), this.isConnected && t(this, R).call(this);
346
- }), t(this, pt).subscribe((s) => {
347
- t(this, N).axis = s.current ? "max" : t(this, z).current;
348
- }), t(this, j).subscribe(() => {
349
- this.isConnected && t(this, R).call(this);
350
- }), t(this, W).subscribe(({ current: s }) => {
351
- this.isConnected && (s ? o(this, Nt, Ss).call(this) : o(this, yt, ss).call(this));
352
- }), t(this, J).subscribe((s) => {
353
- t(this, N).debounce = s.current, t(this, X).swipe = s.current, t(this, x).interval = s.current, this.isConnected && (s.current && !s.previous && !t(this, l).length ? o(this, Nt, Ss).call(this) : !s.current && s.previous && t(this, l).length && o(this, yt, ss).call(this));
354
- }), t(this, dt).subscribe((s) => {
355
- this.isConnected && (t(this, R).call(this), s.current && !s.previous && !t(this, l).length ? o(this, Nt, Ss).call(this) : !s.current && s.previous && t(this, l).length && o(this, yt, ss).call(this));
356
- }), t(this, q).subscribe((s) => {
357
- this.isConnected && (t(this, R).call(this), o(this, tt, Dt).call(this));
358
- }), t(this, F).subscribe((s) => {
359
- s.current ? (this.isConnected && (t(this, l).length || (t(this, W).current = !0)), t(this, l).length && (t(this, a).max = 1 / 0, t(this, a).min = -1 / 0)) : (r(this, is, 0), t(this, a).max = t(this, b), t(this, a).min = 0);
360
- }), t(this, Ot).subscribe((s) => {
361
- t(this, a).damping = s.current;
362
- }), t(this, At).subscribe((s) => {
363
- t(this, a).mass = s.current;
364
- }), t(this, Tt).subscribe((s) => {
365
- t(this, a).stiffness = s.current;
366
- }), t(this, Wt).subscribe((s) => {
367
- s.current && !s.previous ? o(this, ys, ee).call(this) : !s.current && s.previous && o(this, Cs, ie).call(this);
368
- }), t(this, qt).subscribe((s) => {
369
- s.current && !s.previous ? o(this, Ps, re).call(this) : !s.current && s.previous && o(this, ws, he).call(this);
370
- }), t(this, U).subscribe((s) => {
371
- t(this, x).speed = s.current, s.current && !s.previous ? t(this, x).connect() : !s.current && s.previous && t(this, x).disconnect();
372
- }), t(this, St).subscribe((s) => {
373
- s.current || (t(this, x).direction = 1);
374
- }), t(this, G).subscribe((s) => {
375
- this.isConnected && o(this, tt, Dt).call(this);
376
- }), t(this, mt).subscribe((s) => {
377
- this.isConnected && t(this, G).current && o(this, tt, Dt).call(this);
378
- }), t(this, Q).subscribe((s) => {
379
- this.isConnected && t(this, G).current && o(this, tt, Dt).call(this);
380
- }), t(this, a).isRunning.subscribe((s) => {
381
- this.classList.toggle("active", s.current);
382
- }), t(this, g).subscribe((s) => {
383
- t(this, l).length && o(this, tt, Dt).call(this);
384
- }), t(this, Y).subscribe((s) => {
385
- t(this, Y).isRunning.current && t(this, a).set(s.current);
386
- }));
387
- }
388
- get damped() {
389
- return t(this, a);
390
- }
391
- get controlsCSSProperty() {
392
- return t(this, Rt);
393
- }
394
- get axisCSSProperty() {
395
- return t(this, z);
396
- }
397
- get directionCSSProperty() {
398
- return t(this, Z);
399
- }
400
- get pagesCSSProperty() {
401
- return t(this, j);
402
- }
403
- get splitCSSProperty() {
404
- return t(this, W);
405
- }
406
- get sectionalCSSProperty() {
407
- return t(this, J);
408
- }
409
- get autoSizeCSSProperty() {
410
- return t(this, dt);
411
- }
412
- get wheelMaxDeltaCSSProperty() {
413
- return t(this, pt);
414
- }
415
- get sectionsInViewCSSProperty() {
416
- return t(this, q);
417
- }
418
- get loopCSSProperty() {
419
- return t(this, F);
420
- }
421
- get dampingCSSProperty() {
422
- return t(this, Ot);
423
- }
424
- get massCSSProperty() {
425
- return t(this, At);
426
- }
427
- get stiffnessCSSProperty() {
428
- return t(this, Tt);
429
- }
430
- get mouseDragCSSProperty() {
431
- return t(this, Ht);
432
- }
433
- get sectionDistanceScaleCSSProperty() {
434
- return t(this, es);
435
- }
436
- get autoplayCSSProperty() {
437
- return t(this, U);
438
- }
439
- get autoplayPauseDurationCSSProperty() {
440
- return t(this, $t);
441
- }
442
- get autoplayUserDirectionCSSProperty() {
443
- return t(this, St);
444
- }
445
- get classesCSSProperty() {
446
- return t(this, G);
447
- }
448
- get currentIndexStartOffsetCSSProperty() {
449
- return t(this, mt);
450
- }
451
- get currentIndexEndOffsetCSSProperty() {
452
- return t(this, Q);
453
- }
454
- get focusDelayCSSProperty() {
455
- return t(this, bt);
456
- }
457
- get focusDurationCSSProperty() {
458
- return t(this, Bt);
459
- }
460
- get disabledCSSProperty() {
461
- return t(this, Wt);
462
- }
463
- get hibernatedCSSProperty() {
464
- return t(this, qt);
465
- }
466
- get currentScrollValue() {
467
- return o(this, Ls, ne).call(this, "current");
468
- }
469
- get targetScrollValue() {
470
- return o(this, Ls, ne).call(this, "target");
471
- }
472
- get contentElement() {
473
- return t(this, p);
474
- }
475
- get sections() {
476
- return t(this, l);
477
- }
478
- get position() {
479
- return t(this, gs);
480
- }
481
- get contentPosition() {
482
- return t(this, vs);
483
- }
484
- get viewportSize() {
485
- return t(this, C);
486
- }
487
- get scrollSize() {
488
- return t(this, b);
489
- }
490
- get gap() {
491
- return t(this, M);
492
- }
493
- get counter() {
494
- return t(this, g);
495
- }
496
- get limit() {
497
- return t(this, l).length - t(this, q).current;
498
- }
499
- get distance() {
500
- return t(this, vt);
501
- }
502
- get loopDistance() {
503
- return t(this, F).current ? t(this, vt) + t(this, M) : t(this, vt);
504
- }
505
- get overscroll() {
506
- return t(this, is);
507
- }
508
- get vertical() {
509
- return t(this, z).current === "y";
510
- }
511
- get currentProgress() {
512
- return this.currentScrollValue / this.loopDistance || 0;
513
- }
514
- get targetProgress() {
515
- return this.targetScrollValue / this.loopDistance || 0;
516
- }
517
- get scrollWidth() {
518
- return t(this, z).current === "y" ? 0 : t(this, a).distance;
519
- }
520
- get scrollHeight() {
521
- return t(this, z).current === "x" ? 0 : t(this, a).distance;
522
- }
523
- onScroll(...e) {
524
- return t(this, a).subscribe(...e);
525
- }
526
- offScroll(...e) {
527
- t(this, a).unsubscribe(...e);
528
- }
529
- //https://github.com/pmndrs/drei/blob/d3282cdd02d170ef603a5e096505d83dc93cd57a/src/web/ScrollControls.tsx#L85C7-L100C9
530
- range(e, s, h = 0) {
531
- const u = e - h, m = u + s + h * 2;
532
- return this.currentProgress < u ? 0 : this.currentProgress > m ? 1 : (this.currentProgress - u) / (m - u);
533
- }
534
- curve(e, s, h = 0) {
535
- return Math.sin(this.range(e, s, h) * Math.PI);
536
- }
537
- visible(e, s, h = 0) {
538
- const u = e - h, m = u + s + h * 2;
539
- return this.currentProgress >= u && this.currentProgress <= m;
540
- }
541
- scrollToSection(e, s) {
542
- if (!t(this, l).length)
543
- return;
544
- const h = t(this, g).current;
545
- o(this, Us, Pe).call(this, e);
546
- const u = t(this, l)[h], m = t(this, l)[t(this, g).current];
547
- if (u && m) {
548
- let I = 0;
549
- const ts = o(this, Vs, oe).call(this), Ie = ts ? this.targetScrollValue - ts.position : 0;
550
- t(this, F).current ? t(this, g).current === 0 && h === t(this, l).length - 1 ? I = t(this, b) + t(this, C) - u.position + t(this, M) : t(this, g).current === t(this, l).length - 1 && h === 0 ? I = m.position - (t(this, b) + t(this, C) + t(this, M)) : I = m.position - u.position : I = m.position - u.position, this.shiftPosition(I - Ie, s);
551
- }
552
- }
553
- shiftSections(e, s) {
554
- t(this, l).length && this.scrollToSection(t(this, g).current + e, s);
555
- }
556
- setPosition(e, s) {
557
- s != null && s.tween ? (t(this, Y).set(t(this, a).current, { equalize: !0 }), t(this, Y).set(e, Se({}, s.tween))) : t(this, a).set(e, {
558
- equalize: (s == null ? void 0 : s.behaviour) === "instant"
559
- });
560
- }
561
- shiftPosition(e, s) {
562
- this.setPosition(t(this, a).target + e, s);
563
- }
564
- connectedCallback() {
565
- t(this, Rt).observe(), t(this, z).observe(), t(this, Z).observe(), t(this, j).observe(), t(this, W).observe(), t(this, J).observe(), t(this, dt).observe(), t(this, pt).observe(), t(this, q).observe(), t(this, F).observe(), t(this, Ot).observe(), t(this, At).observe(), t(this, Tt).observe(), t(this, Ht).observe(), t(this, es).observe(), t(this, U).observe(), t(this, U).observe(), t(this, $t).observe(), t(this, St).observe(), t(this, G).observe(), t(this, mt).observe(), t(this, Q).observe(), t(this, bt).observe(), t(this, Bt).observe(), t(this, Wt).observe(), t(this, qt).observe(), o(this, ws, he).call(this);
566
- }
567
- disconnectedCallback() {
568
- t(this, Rt).unobserve(), t(this, z).unobserve(), t(this, Z).unobserve(), t(this, j).unobserve(), t(this, W).unobserve(), t(this, J).unobserve(), t(this, dt).unobserve(), t(this, pt).unobserve(), t(this, q).unobserve(), t(this, F).unobserve(), t(this, Ot).unobserve(), t(this, At).unobserve(), t(this, Tt).unobserve(), t(this, Ht).unobserve(), t(this, es).unobserve(), t(this, U).unobserve(), t(this, $t).unobserve(), t(this, St).unobserve(), t(this, G).unobserve(), t(this, mt).unobserve(), t(this, Q).unobserve(), t(this, bt).unobserve(), t(this, Bt).unobserve(), t(this, Wt).unobserve(), t(this, qt).unobserve(), o(this, Ps, re).call(this);
569
- }
570
- }
571
- a = new WeakMap(), Rt = new WeakMap(), z = new WeakMap(), Z = new WeakMap(), j = new WeakMap(), W = new WeakMap(), J = new WeakMap(), dt = new WeakMap(), pt = new WeakMap(), q = new WeakMap(), F = new WeakMap(), Ot = new WeakMap(), At = new WeakMap(), Tt = new WeakMap(), Ht = new WeakMap(), es = new WeakMap(), U = new WeakMap(), $t = new WeakMap(), St = new WeakMap(), G = new WeakMap(), mt = new WeakMap(), Q = new WeakMap(), bt = new WeakMap(), Bt = new WeakMap(), Wt = new WeakMap(), qt = new WeakMap(), p = new WeakMap(), bs = new WeakMap(), l = new WeakMap(), gs = new WeakMap(), vs = new WeakMap(), C = new WeakMap(), b = new WeakMap(), M = new WeakMap(), N = new WeakMap(), gt = new WeakMap(), X = new WeakMap(), x = new WeakMap(), g = new WeakMap(), is = new WeakMap(), vt = new WeakMap(), Ut = new WeakMap(), Gt = new WeakMap(), rs = new WeakMap(), Y = new WeakMap(), Nt = new WeakSet(), Ss = function() {
572
- o(this, yt, ss).call(this), t(this, bs).assignedElements().forEach((e, s) => {
573
- e instanceof HTMLElement && t(this, l).push(new Ze(e, s, this));
574
- }), t(this, p).style.transform = "", this.dispatchEvent(
575
- new CustomEvent("sectionsChange", {
576
- composed: !0
577
- })
578
- ), t(this, R).call(this), o(this, tt, Dt).call(this);
579
- }, yt = new WeakSet(), ss = function() {
580
- t(this, l).forEach((e) => {
581
- e.destroy();
582
- }), r(this, l, []), t(this, g).current = 0, t(this, a).reset(), this.dispatchEvent(
583
- new CustomEvent("sectionsChange", {
584
- composed: !0
585
- })
586
- );
587
- }, ys = new WeakSet(), ee = function() {
588
- t(this, Ut) || (r(this, Ut, !0), t(this, a).unsubscribe(t(this, Es)), t(this, a).unlistenAnimationFrame(), t(this, N).disconnect(), t(this, gt).disconnect(), t(this, X).disconnect(), t(this, x).disconnect(), clearInterval(t(this, rs)), t(this, Y).unlistenAnimationFrame());
589
- }, Cs = new WeakSet(), ie = function() {
590
- t(this, Ut) && (r(this, Ut, !1), t(this, a).subscribe(t(this, Es)), t(this, N).connect(), t(this, gt).connect(), t(this, X).connect(), t(this, U).current && t(this, x).connect());
591
- }, Ps = new WeakSet(), re = function() {
592
- t(this, Gt) || (r(this, Gt, !0), ps.unsubscribe(t(this, R)), qs.unsubscribe(t(this, R)), t(this, a).reset(), o(this, ys, ee).call(this), t(this, p).style.transform = "", t(this, W).current && o(this, yt, ss).call(this), Yt.unregister(this));
593
- }, ws = new WeakSet(), he = function() {
594
- t(this, Gt) && (r(this, Gt, !1), t(this, W).current && o(this, Nt, Ss).call(this), Yt.register(this), ps.subscribe(t(this, R), ue.SCROLL), qs.subscribe(this, t(this, R)), o(this, Cs, ie).call(this));
595
- }, R = new WeakMap(), Es = new WeakMap(), Us = new WeakSet(), Pe = function(e) {
596
- t(this, F).current ? (t(this, g).current = e % t(this, l).length, t(this, g).current = t(this, g).current < 0 ? t(this, l).length + t(this, g).current : t(this, g).current) : t(this, g).current = ge(e, 0, this.limit);
597
- }, hs = new WeakMap(), xs = new WeakMap(), Ls = new WeakSet(), ne = function(e = "current") {
598
- if (t(this, F).current && t(this, l).length) {
599
- const s = t(this, a)[e] % (t(this, b) + t(this, C) + t(this, M));
600
- return s < 0 ? t(this, b) + s + t(this, C) + t(this, M) : s;
601
- } else
602
- return t(this, a)[e];
603
- }, tt = new WeakSet(), Dt = function() {
604
- if (t(this, G).current && t(this, l).length) {
605
- const e = t(this, g).current + t(this, mt).current;
606
- e === 0 ? this.classList.add("start") : this.classList.remove("start"), e === this.limit ? this.classList.add("end") : this.classList.remove("end");
607
- const s = t(this, q).current + t(this, Q).current;
608
- t(this, l).forEach((h, u) => {
609
- const m = e - this.limit - 1 + t(this, Q).current, I = e + s, ts = this.sections.length - I;
610
- u >= e && u < I || u <= m ? h.mark("current") : u >= I && u < I + ts / 2 || u <= m + s ? h.mark("next") : h.mark("previous");
611
- });
612
- }
613
- }, Vs = new WeakSet(), oe = function() {
614
- let e = null, s = 1 / 0;
615
- for (let h = 0; h < t(this, l).length; h++) {
616
- const u = Math.abs(t(this, l)[h].position - this.targetScrollValue);
617
- u < s && (s = u, e = h);
618
- }
619
- return e !== null ? t(this, l)[e] : null;
620
- };
621
- customElements.get("e-scroll") || customElements.define("e-scroll", se);
622
- var zs;
623
- class Xs extends HTMLElement {
624
- constructor() {
625
- super(...arguments);
626
- i(this, zs, null);
627
- }
628
- get scrollElement() {
629
- return t(this, zs);
630
- }
631
- connectedCallback() {
632
- const e = _e(this, se);
633
- e instanceof se ? r(this, zs, e) : console.error(this, "e-scroll not found");
634
- }
635
- }
636
- zs = new WeakMap();
637
- const Je = fe({
638
- ":host": {
639
- display: "inline-block",
640
- zIndex: "1",
641
- backgroundColor: be.colorFont.var
642
- },
643
- ':host([axis="y"])': {
644
- position: "absolute",
645
- right: "0",
646
- top: "0",
647
- width: "1vmin",
648
- height: "100%"
649
- },
650
- ':host([axis="x"])': {
651
- position: "absolute",
652
- left: "0",
653
- bottom: "0",
654
- width: "100%",
655
- height: "1vmin"
656
- },
657
- ".default-thumb": {
658
- backgroundColor: be.colorMain.var,
659
- borderRadius: "1vmin",
660
- touchAction: "none"
661
- },
662
- "::slotted(*)": {
663
- touchAction: "none"
664
- }
665
- });
666
- var ns, k, st, et, os, cs, Kt, Fs, ks, Ds;
667
- class Qe extends Xs {
668
- constructor() {
669
- super();
670
- i(this, ns, null);
671
- i(this, k, null);
672
- i(this, st, !1);
673
- i(this, et, 0);
674
- i(this, os, 0);
675
- i(this, cs, 0);
676
- i(this, Kt, () => {
677
- r(this, st, this.offsetWidth > this.offsetHeight);
678
- const e = t(this, st) ? this.offsetWidth : this.offsetHeight;
679
- r(this, et, e / ((this.scrollElement.scrollSize + this.scrollElement.viewportSize) / e)), r(this, et, Math.max(t(this, et), 30)), t(this, st) ? (t(this, k).style.width = t(this, et) + "px", t(this, k).style.height = "100%") : (t(this, k).style.width = "100%", t(this, k).style.height = t(this, et) + "px"), r(this, os, e - t(this, et)), this.scrollElement.scrollSize || (this.style.display = "none");
680
- });
681
- i(this, Fs, () => {
682
- r(this, cs, this.scrollElement.currentProgress * t(this, os)), t(this, st) ? t(this, k).style.transform = `translate3d(${t(this, cs)}px, 0px, 0px)` : t(this, k).style.transform = `translate3d(0px, ${t(this, cs)}px, 0px)`;
683
- });
684
- i(this, ks, () => {
685
- this.setAttribute("axis", this.scrollElement.axisCSSProperty.current);
686
- });
687
- i(this, Ds, (e) => {
688
- document.documentElement.classList.add("grabbing"), Ke(
689
- (u) => {
690
- const m = t(this, st) ? u.x : u.y, I = this.scrollElement.distance / t(this, os), ts = (m - h) * I;
691
- this.scrollElement.setPosition(s + ts);
692
- },
693
- () => {
694
- document.documentElement.classList.remove("grabbing");
695
- }
696
- );
697
- const s = this.scrollElement.targetScrollValue, h = t(this, st) ? e.x : e.y;
698
- });
699
- le && (this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(Je), ae(this, {
700
- slot: "static",
701
- "drag-dead-zone": "",
702
- children: [
703
- Ws({
704
- ref: (s) => r(this, ns, s),
705
- children: te({ class: "default-thumb" })
706
- })
707
- ]
708
- }));
709
- }
710
- get thumbElement() {
711
- return t(this, k);
712
- }
713
- connectedCallback() {
714
- super.connectedCallback();
715
- const e = t(this, ns).assignedElements()[0] || t(this, ns).firstElementChild;
716
- r(this, k, e), t(this, k).addEventListener("pointerdown", t(this, Ds)), ps.subscribe(t(this, Kt), ue.SCROLL + 1), qs.subscribe(this, t(this, Kt)), this.scrollElement.onScroll(t(this, Fs)), this.scrollElement.axisCSSProperty.subscribe(t(this, ks));
717
- }
718
- disconnectedCallback() {
719
- t(this, k).removeEventListener("pointerdown", t(this, Ds)), ps.unsubscribe(t(this, Kt)), qs.unsubscribe(t(this, Kt)), this.scrollElement.offScroll(t(this, Fs)), this.scrollElement.axisCSSProperty.unsubscribe(t(this, ks));
720
- }
721
- }
722
- ns = new WeakMap(), k = new WeakMap(), st = new WeakMap(), et = new WeakMap(), os = new WeakMap(), cs = new WeakMap(), Kt = new WeakMap(), Fs = new WeakMap(), ks = new WeakMap(), Ds = new WeakMap();
723
- customElements.get("e-scrollbar") || customElements.define("e-scrollbar", Qe);
724
- const Xe = fe({
725
- button: {
726
- all: "inherit"
727
- }
728
- });
729
- class we extends Xs {
730
- constructor() {
731
- super(), this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(Xe), le && ae(this, {
732
- children: [
733
- Ge({
734
- onClick: () => {
735
- this.handleClick();
736
- },
737
- children: [Ws()]
738
- })
739
- ]
740
- });
741
- }
742
- }
743
- class Ye extends we {
744
- handleClick() {
745
- const n = this.getAttribute("index"), e = this.getAttribute("behaviour");
746
- this.scrollElement.scrollToSection(parseInt(n || "0"), { behaviour: e });
747
- }
748
- }
749
- customElements.get("e-scroll-set-button") || customElements.define("e-scroll-set-button", Ye);
750
- class ti extends we {
751
- handleClick() {
752
- const n = this.getAttribute("step"), e = this.getAttribute("behaviour");
753
- this.scrollElement.shiftSections(parseInt(n || "1"), { behaviour: e });
754
- }
755
- }
756
- customElements.get("e-scroll-step-button") || customElements.define("e-scroll-step-button", ti);
757
- var it, Ct, ls, Is, Ms, us;
758
- class si {
759
- constructor(n, e, s) {
760
- i(this, it, void 0);
761
- i(this, Ct, void 0);
762
- i(this, ls, void 0);
763
- i(this, Is, void 0);
764
- i(this, Ms, () => {
765
- t(this, Ct).scrollToSection(t(this, ls), {
766
- behaviour: t(this, Is)
767
- });
768
- });
769
- i(this, us, () => {
770
- t(this, it).classList.toggle(
771
- "current",
772
- t(this, Ct).counter.current === t(this, ls)
773
- );
774
- });
775
- r(this, it, document.createElement("button")), r(this, Ct, n), r(this, Is, s), r(this, ls, e), t(this, it).addEventListener("click", t(this, Ms)), t(this, Ct).counter.subscribe(t(this, us)), t(this, us).call(this);
776
- }
777
- get element() {
778
- return t(this, it);
779
- }
780
- destroy() {
781
- t(this, it).removeEventListener("click", t(this, Ms)), t(this, Ct).counter.unsubscribe(t(this, us)), t(this, it).remove();
782
- }
783
- }
784
- it = new WeakMap(), Ct = new WeakMap(), ls = new WeakMap(), Is = new WeakMap(), Ms = new WeakMap(), us = new WeakMap();
785
- var Pt, as;
786
- class ei extends Xs {
787
- constructor() {
788
- super(...arguments);
789
- i(this, Pt, []);
790
- i(this, as, Ce(() => {
791
- t(this, Pt).forEach((e) => e.destroy()), r(this, Pt, []);
792
- for (let e = 0; e < this.scrollElement.sections.length; e++) {
793
- const s = new si(
794
- this.scrollElement,
795
- e,
796
- this.getAttribute("behaviour") || "smooth"
797
- );
798
- this.appendChild(s.element), t(this, Pt).push(s);
799
- }
800
- }, 0));
801
- }
802
- connectedCallback() {
803
- super.connectedCallback(), this.scrollElement.addEventListener(
804
- "sectionsChange",
805
- t(this, as)
806
- ), t(this, as).call(this);
807
- }
808
- disconnectedCallback() {
809
- this.scrollElement.removeEventListener(
810
- "sectionsChange",
811
- t(this, as)
812
- ), t(this, Pt).forEach((e) => e.destroy()), r(this, Pt, []);
813
- }
814
- }
815
- Pt = new WeakMap(), as = new WeakMap();
816
- customElements.get("e-scroll-bullet-buttons") || customElements.define("e-scroll-bullet-buttons", ei);
817
- var _t, Zt, jt, Jt, wt, Et, xt, Lt, L, O, A, T, Vt, P, rt, ht, nt, ot, ct, w, H, $, lt, ut, K, Rs, d, Qt, Xt, Os, E, zt, D, V, B, fs, Ft, y, Gs, Ee, Ns, xe, Ks, Le, _s, Ve, Zs, ze, js, Fe, As, ds, at, It, Js, ke, Qs, De, Ts, ce, Hs;
818
- class ii extends Xs {
819
- constructor() {
820
- super();
821
- i(this, Gs);
822
- i(this, Ns);
823
- i(this, Ks);
824
- i(this, _s);
825
- i(this, Zs);
826
- i(this, js);
827
- i(this, at);
828
- i(this, Js);
829
- i(this, Qs);
830
- i(this, Ts);
831
- i(this, _t, new c(this, "--damping", 20));
832
- i(this, Zt, new c(this, "--mass", 0));
833
- i(this, jt, new c(this, "--stiffness", 0));
834
- i(this, Jt, new c(this, "--target", ""));
835
- i(this, wt, new c(this, "--disabled", !1));
836
- i(this, Et, new c(
837
- this,
838
- "--distance-offset",
839
- 0,
840
- { rawValueCheck: !1 }
841
- ));
842
- i(this, xt, new c(this, "--start-offset", 0, {
843
- rawValueCheck: !1
844
- }));
845
- i(this, Lt, new c(
846
- this,
847
- "--capture-once",
848
- !1
849
- ));
850
- i(this, L, new c(this, "--captured", ""));
851
- i(this, O, new c(this, "--released", ""));
852
- i(this, A, new c(
853
- this,
854
- "--captured-from-start",
855
- ""
856
- ));
857
- i(this, T, new c(
858
- this,
859
- "--captured-from-finish",
860
- ""
861
- ));
862
- i(this, Vt, new c(
863
- this,
864
- "--released-from-start",
865
- ""
866
- ));
867
- i(this, P, new c(
868
- this,
869
- "--released-from-finish",
870
- ""
871
- ));
872
- i(this, rt, new c(this, "--passed-var", ""));
873
- i(this, ht, new c(this, "--progress-var", ""));
874
- i(this, nt, new c(this, "--distance-var", ""));
875
- i(this, ot, new c(this, "--start-var", ""));
876
- i(this, ct, new c(this, "--finish-var", ""));
877
- i(this, w, new kt(!1));
878
- i(this, H, new kt(!1));
879
- i(this, $, new kt(!1));
880
- i(this, lt, new kt(!1));
881
- i(this, ut, new kt(!1));
882
- i(this, K, new kt(!1));
883
- i(this, Rs, []);
884
- i(this, d, this);
885
- i(this, Qt, 0);
886
- i(this, Xt, 0);
887
- i(this, Os, 0);
888
- i(this, E, new ye(0, { order: ve.SCROLL - 1, min: 0, max: 1 }));
889
- i(this, zt, 0);
890
- i(this, D, 0);
891
- i(this, V, 0);
892
- i(this, B, 0);
893
- i(this, fs, !1);
894
- i(this, Ft, !1);
895
- i(this, y, !0);
896
- i(this, As, () => {
897
- t(this, y) || (this.resize(), t(this, ds).call(this));
898
- });
899
- i(this, ds, () => {
900
- !t(this, y) && t(this, fs) && this.tick();
901
- });
902
- i(this, Hs, Ce(() => {
903
- const e = Yt.getAll(this).reverse();
904
- let s = 0;
905
- e.forEach((h, u) => {
906
- h.element === this.scrollElement && (s = u);
907
- }), r(this, Rs, e.slice(s + 1));
908
- }, 0));
909
- }
910
- get distanceOffsetCSSProperty() {
911
- return t(this, Et);
912
- }
913
- get startOffsetCSSProperty() {
914
- return t(this, xt);
915
- }
916
- get captureOnceCSSProperty() {
917
- return t(this, Lt);
918
- }
919
- get capturedCSSProperty() {
920
- return t(this, L);
921
- }
922
- get releasedCSSProperty() {
923
- return t(this, O);
924
- }
925
- get capturedFromStartCSSProperty() {
926
- return t(this, A);
927
- }
928
- get capturedFromFinishCSSProperty() {
929
- return t(this, T);
930
- }
931
- get releasedFromStartCSSProperty() {
932
- return t(this, Vt);
933
- }
934
- get releasedFromFinishCSSProperty() {
935
- return t(this, P);
936
- }
937
- get passedVarCSSProperty() {
938
- return t(this, rt);
939
- }
940
- get progressVarCSSProperty() {
941
- return t(this, ht);
942
- }
943
- get distanceVarCSSProperty() {
944
- return t(this, nt);
945
- }
946
- get startVarCSSProperty() {
947
- return t(this, ot);
948
- }
949
- get finishVarCSSProperty() {
950
- return t(this, ct);
951
- }
952
- get disabledCSSProperty() {
953
- return t(this, wt);
954
- }
955
- get dampingCSSProperty() {
956
- return t(this, _t);
957
- }
958
- get massCSSProperty() {
959
- return t(this, Zt);
960
- }
961
- get stiffnessCSSProperty() {
962
- return t(this, jt);
963
- }
964
- get targetCSSProperty() {
965
- return t(this, Jt);
966
- }
967
- get isCaptured() {
968
- return t(this, w);
969
- }
970
- get isReleased() {
971
- return t(this, H);
972
- }
973
- get isCapturedFromStart() {
974
- return t(this, $);
975
- }
976
- get isReleasedFromStart() {
977
- return t(this, lt);
978
- }
979
- get isCapturedFromFinish() {
980
- return t(this, ut);
981
- }
982
- get isReleasedFromFinish() {
983
- return t(this, K);
984
- }
985
- get directionPosition() {
986
- return t(this, Qt);
987
- }
988
- get directionSize() {
989
- return t(this, Xt);
990
- }
991
- get passed() {
992
- return t(this, E);
993
- }
994
- get progress() {
995
- return t(this, zt);
996
- }
997
- get start() {
998
- return t(this, D);
999
- }
1000
- get finish() {
1001
- return t(this, B);
1002
- }
1003
- get distance() {
1004
- return t(this, V);
1005
- }
1006
- get isCapturedOnce() {
1007
- return t(this, Ft);
1008
- }
1009
- get isDisabled() {
1010
- return t(this, y);
1011
- }
1012
- resize() {
1013
- r(this, Xt, this.scrollElement.vertical ? this.offsetHeight : this.offsetWidth), r(this, Qt, this.scrollElement.vertical ? $s(this, this.scrollElement) : Bs(this, this.scrollElement)), r(this, D, this.getStart()), r(this, V, this.getDistance()), r(this, D, t(this, D) + t(this, xt).current), r(this, V, t(this, V) + t(this, Et).current), r(this, B, t(this, D) + t(this, V)), this.scrollElement.currentScrollValue > t(this, B) && !t(this, w).current && !t(this, H).current && (t(this, w).current = !0), this.setVar(t(this, ot).current, t(this, D)), this.setVar(t(this, ct).current, t(this, B)), this.setVar(t(this, nt).current, t(this, V)), t(this, E).max = t(this, V), r(this, fs, !0);
1014
- }
1015
- tick() {
1016
- let e = this.scrollElement.currentScrollValue;
1017
- t(this, Rs).forEach((h) => {
1018
- e += h.value;
1019
- }), t(this, E).set(e - t(this, D));
1020
- const s = Math.round(e);
1021
- t(this, w).current && (s > t(this, D) ? t(this, $).current || o(this, Ks, Le).call(this) : t(this, $).current && !t(this, lt).current && o(this, Zs, ze).call(this), s < t(this, B) ? t(this, K).current && !t(this, ut).current && o(this, _s, Ve).call(this) : t(this, $).current && !t(this, K).current && o(this, js, Fe).call(this)), s > t(this, D) && s < t(this, B) ? t(this, w).current || o(this, Gs, Ee).call(this) : t(this, w).current && (t(this, E).set(
1022
- He(t(this, V) / 2, t(this, E).current, 0, t(this, V))
1023
- ), o(this, Ns, xe).call(this)), t(this, Ft) && t(this, Lt).current && (t(this, L).current && t(this, d).classList.add(t(this, L).current), r(this, y, !0));
1024
- }
1025
- disable() {
1026
- this.style.cssText = "", r(this, Qt, 0), r(this, Xt, 0), t(this, E).reset(), r(this, zt, 0), r(this, D, 0), r(this, V, 0), r(this, B, 0), r(this, fs, !1), t(this, w).current = !1, t(this, H).current = !1, t(this, $).current = !1, t(this, lt).current = !1, t(this, ut).current = !1, t(this, K).current = !1, r(this, Ft, !1), r(this, y, !0), o(this, Ts, ce).call(this);
1027
- }
1028
- enable() {
1029
- r(this, y, !1);
1030
- }
1031
- connectedCallback() {
1032
- super.connectedCallback(), t(this, _t).observe(), t(this, Zt).observe(), t(this, jt).observe(), t(this, Jt).observe(), t(this, wt).observe(), t(this, Et).observe(), t(this, xt).observe(), t(this, Lt).observe(), t(this, L).observe(), t(this, O).observe(), t(this, A).observe(), t(this, T).observe(), t(this, Vt).observe(), t(this, P).observe(), t(this, rt).observe(), t(this, ht).observe(), t(this, nt).observe(), t(this, ot).observe(), t(this, ct).observe();
1033
- let e = !1;
1034
- this.scrollElement.addEventListener(
1035
- "sectionsChange",
1036
- t(this, Hs)
1037
- ), t(this, Hs).call(this), t(this, wt).current || this.enable(), t(this, _t).subscribe((s) => {
1038
- t(this, E).damping = s.current;
1039
- }), t(this, Zt).subscribe((s) => {
1040
- t(this, E).mass = s.current;
1041
- }), t(this, jt).subscribe((s) => {
1042
- t(this, E).stiffness = s.current;
1043
- }), t(this, Jt).subscribe((s) => {
1044
- s.previous && o(this, Ts, ce).call(this), s.current ? s.current === "parent" ? r(this, d, this.parentElement || this) : r(this, d, document.querySelector(s.current) || this) : r(this, d, this);
1045
- }), t(this, wt).subscribe((s) => {
1046
- s.current && !s.previous ? this.disable() : !s.current && s.previous && (this.resize(), this.enable());
1047
- }), t(this, xt).subscribe(() => {
1048
- e && !t(this, y) && this.resize();
1049
- }), t(this, Et).subscribe(() => {
1050
- e && !t(this, y) && this.resize();
1051
- }), t(this, L).subscribe((s) => {
1052
- o(this, at, It).call(this, s);
1053
- }), t(this, A).subscribe((s) => {
1054
- o(this, at, It).call(this, s);
1055
- }), t(this, T).subscribe((s) => {
1056
- o(this, at, It).call(this, s);
1057
- }), t(this, O).subscribe((s) => {
1058
- o(this, at, It).call(this, s);
1059
- }), t(this, Vt).subscribe((s) => {
1060
- o(this, at, It).call(this, s);
1061
- }), t(this, P).subscribe((s) => {
1062
- o(this, at, It).call(this, s);
1063
- }), t(this, Lt).subscribe((s) => {
1064
- t(this, y) || !s.current && s.previous && (this.resize(), this.enable());
1065
- }), t(this, rt).subscribe((s) => {
1066
- t(this, y) || (this.removeVar(s.previous), this.setVar(s.current, this.passed.current));
1067
- }), t(this, ht).subscribe((s) => {
1068
- t(this, y) || (this.removeVar(s.previous), this.setVar(s.current, t(this, zt)));
1069
- }), t(this, ot).subscribe((s) => {
1070
- t(this, y) || (this.removeVar(s.previous), this.setVar(s.current, t(this, D)));
1071
- }), t(this, ct).subscribe((s) => {
1072
- t(this, y) || (this.removeVar(s.previous), this.setVar(s.current, t(this, B)));
1073
- }), t(this, nt).subscribe((s) => {
1074
- t(this, y) || (this.removeVar(s.previous), this.setVar(s.current, t(this, V)));
1075
- }), t(this, E).subscribe((s) => {
1076
- r(this, zt, t(this, E).current / t(this, V) || 0), this.setVar(
1077
- t(this, rt).current,
1078
- t(this, E).current.toFixed(6)
1079
- ), this.setVar(
1080
- t(this, ht).current,
1081
- t(this, zt).toFixed(6)
1082
- );
1083
- }), ps.subscribe(t(this, As), ue.SEGMENT), this.scrollElement.onScroll(t(this, ds)), e = !0;
1084
- }
1085
- disconnectedCallback() {
1086
- ps.unsubscribe(t(this, As)), this.scrollElement.offScroll(t(this, ds)), t(this, _t).close(), t(this, Zt).close(), t(this, jt).close(), t(this, Jt).close(), t(this, wt).close(), t(this, Et).close(), t(this, xt).close(), t(this, Lt).close(), t(this, L).close(), t(this, O).close(), t(this, A).close(), t(this, T).close(), t(this, Vt).close(), t(this, P).close(), t(this, rt).close(), t(this, ht).close(), t(this, nt).close(), t(this, ot).close(), t(this, ct).close(), t(this, w).close(), t(this, H).close(), t(this, $).close(), t(this, lt).close(), t(this, ut).close(), t(this, K).close(), this.disable();
1087
- }
1088
- removeVar(e) {
1089
- e && t(this, d).style.removeProperty(`--${e}`);
1090
- }
1091
- setVar(e, s) {
1092
- e && t(this, d).style.setProperty(`--${e}`, s.toString());
1093
- }
1094
- getDistance() {
1095
- return t(this, Xt) + t(this, Os);
1096
- }
1097
- getStart() {
1098
- return t(this, Qt) - t(this, Os);
1099
- }
1100
- }
1101
- _t = new WeakMap(), Zt = new WeakMap(), jt = new WeakMap(), Jt = new WeakMap(), wt = new WeakMap(), Et = new WeakMap(), xt = new WeakMap(), Lt = new WeakMap(), L = new WeakMap(), O = new WeakMap(), A = new WeakMap(), T = new WeakMap(), Vt = new WeakMap(), P = new WeakMap(), rt = new WeakMap(), ht = new WeakMap(), nt = new WeakMap(), ot = new WeakMap(), ct = new WeakMap(), w = new WeakMap(), H = new WeakMap(), $ = new WeakMap(), lt = new WeakMap(), ut = new WeakMap(), K = new WeakMap(), Rs = new WeakMap(), d = new WeakMap(), Qt = new WeakMap(), Xt = new WeakMap(), Os = new WeakMap(), E = new WeakMap(), zt = new WeakMap(), D = new WeakMap(), V = new WeakMap(), B = new WeakMap(), fs = new WeakMap(), Ft = new WeakMap(), y = new WeakMap(), Gs = new WeakSet(), Ee = function() {
1102
- t(this, w).current = !0, t(this, H).current = !1, r(this, Ft, !0), t(this, O).current && t(this, d).classList.remove(t(this, O).current), t(this, P).current && t(this, d).classList.remove(
1103
- t(this, P).current
1104
- ), t(this, P).current && t(this, d).classList.remove(
1105
- t(this, P).current
1106
- ), t(this, L).current && t(this, d).classList.add(t(this, L).current);
1107
- }, Ns = new WeakSet(), xe = function() {
1108
- t(this, H).current = !0, t(this, w).current = !1, r(this, Ft, !0), t(this, L).current && t(this, d).classList.remove(t(this, L).current), t(this, A).current && t(this, d).classList.remove(
1109
- t(this, A).current
1110
- ), t(this, T).current && t(this, d).classList.remove(
1111
- t(this, T).current
1112
- ), t(this, O).current && t(this, d).classList.add(t(this, O).current);
1113
- }, Ks = new WeakSet(), Le = function() {
1114
- t(this, w).current = !0, t(this, $).current = !0, t(this, lt).current = !1, t(this, A).current && t(this, d).classList.add(
1115
- t(this, A).current
1116
- );
1117
- }, _s = new WeakSet(), Ve = function() {
1118
- t(this, w).current = !0, t(this, ut).current = !0, t(this, K).current = !1, t(this, T).current && t(this, d).classList.add(
1119
- t(this, T).current
1120
- );
1121
- }, Zs = new WeakSet(), ze = function() {
1122
- t(this, H).current = !0, t(this, lt).current = !0, t(this, $).current = !1, t(this, P).current && t(this, d).classList.add(
1123
- t(this, P).current
1124
- );
1125
- }, js = new WeakSet(), Fe = function() {
1126
- t(this, H).current = !0, t(this, K).current = !0, t(this, ut).current = !1, t(this, P).current && t(this, d).classList.add(
1127
- t(this, P).current
1128
- );
1129
- }, As = new WeakMap(), ds = new WeakMap(), at = new WeakSet(), It = function(e) {
1130
- if (t(this, y)) {
1131
- e.previous && t(this, d).classList.remove(e.previous), e.current && t(this, d).classList.remove(e.current);
1132
- return;
1133
- }
1134
- e.current && t(this, w).current ? (e.previous && t(this, d).classList.remove(e.previous), t(this, d).classList.add(e.current)) : !e.current && e.previous && t(this, d).classList.remove(e.previous);
1135
- }, Js = new WeakSet(), ke = function(...e) {
1136
- e.forEach((s) => {
1137
- s && t(this, d).classList.remove(s);
1138
- });
1139
- }, Qs = new WeakSet(), De = function(...e) {
1140
- e.forEach((s) => {
1141
- s && t(this, d).style.removeProperty(`--${s}`);
1142
- });
1143
- }, Ts = new WeakSet(), ce = function() {
1144
- o(this, Js, ke).call(this, t(this, L).current, t(this, A).current, t(this, T).current, t(this, O).current, t(this, Vt).current, t(this, P).current), o(this, Qs, De).call(this, t(this, rt).current, t(this, ht).current, t(this, nt).current, t(this, ot).current, t(this, ct).current);
1145
- }, Hs = new WeakMap();
1146
- customElements.get("e-scroll-segment") || customElements.define("e-scroll-segment", ii);
1147
- export {
1148
- ei as ScrollBulletButtonsElement,
1149
- se as ScrollElement,
1150
- ii as ScrollSegmentElement,
1151
- Ye as ScrollSetButtonElement,
1152
- ti as ScrollStepButtonElement,
1153
- Qe as ScrollbarElement
1154
- };