aptechka 0.11.11 → 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 (493) 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-BBBiyAsF.cjs → lib/createStylesheet-CaDI99iu.cjs} +1 -1
  34. package/{client-lib/createStylesheet-CE1yXWS_.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/lib/element-constructor/index.cjs +1 -0
  44. package/lib/element-constructor/index.js +124 -0
  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-D-RA8KFB.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 +62 -71
  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 +270 -278
  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 -450
  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/ElementConstructor-Be8H1POO.js +0 -378
  125. package/client-lib/ElementConstructor-khLPmQ9V.cjs +0 -1
  126. package/client-lib/SourceManager-D6D2LVKf.cjs +0 -1
  127. package/client-lib/Store-Cr3VaD9G.cjs +0 -1
  128. package/client-lib/Tweened-CjgvoOwL.js +0 -48
  129. package/client-lib/Tweened-DksN-Rz6.cjs +0 -1
  130. package/client-lib/Viewport-BBYt1Ivy.cjs +0 -1
  131. package/client-lib/Viewport-Cgtq2I_K.js +0 -127
  132. package/client-lib/_createStore-C75y9luu.cjs +0 -1
  133. package/client-lib/_createStore-D3qHYaSz.js +0 -12
  134. package/client-lib/accordion/AccordionElement.d.ts +0 -30
  135. package/client-lib/accordion/index.cjs +0 -1
  136. package/client-lib/accordion/index.d.ts +0 -1
  137. package/client-lib/accordion/index.js +0 -176
  138. package/client-lib/animation/Animation.d.ts +0 -35
  139. package/client-lib/animation/Damped.d.ts +0 -19
  140. package/client-lib/animation/Tweened.d.ts +0 -15
  141. package/client-lib/animation/index.d.ts +0 -3
  142. package/client-lib/animation/index.js +0 -8
  143. package/client-lib/attribute/index.cjs +0 -1
  144. package/client-lib/attribute/index.d.ts +0 -15
  145. package/client-lib/canvas/index.cjs +0 -1
  146. package/client-lib/canvas/index.d.ts +0 -35
  147. package/client-lib/canvas/index.js +0 -119
  148. package/client-lib/checkbox/index.cjs +0 -1
  149. package/client-lib/checkbox/index.d.ts +0 -14
  150. package/client-lib/class-linked-status/index.cjs +0 -1
  151. package/client-lib/class-linked-status/index.d.ts +0 -12
  152. package/client-lib/class-linked-status/index.js +0 -49
  153. package/client-lib/connector/index.cjs +0 -1
  154. package/client-lib/connector/index.d.ts +0 -15
  155. package/client-lib/controls/AutoplayControls.d.ts +0 -17
  156. package/client-lib/controls/Controls.d.ts +0 -9
  157. package/client-lib/controls/DragControls.d.ts +0 -16
  158. package/client-lib/controls/KeyboardControls.d.ts +0 -14
  159. package/client-lib/controls/WheelControls.d.ts +0 -19
  160. package/client-lib/controls/index.cjs +0 -1
  161. package/client-lib/controls/index.d.ts +0 -5
  162. package/client-lib/controls/index.js +0 -213
  163. package/client-lib/counter/index.d.ts +0 -6
  164. package/client-lib/css-property/index.cjs +0 -1
  165. package/client-lib/css-property/index.d.ts +0 -17
  166. package/client-lib/css-property/index.js +0 -62
  167. package/client-lib/css-unit-parser/index.cjs +0 -8
  168. package/client-lib/css-unit-parser/index.d.ts +0 -6
  169. package/client-lib/css-unit-parser/index.js +0 -36
  170. package/client-lib/css-value-parser/index.d.ts +0 -6
  171. package/client-lib/dev/index.d.ts +0 -1
  172. package/client-lib/device/Device.d.ts +0 -19
  173. package/client-lib/device/Viewport.d.ts +0 -29
  174. package/client-lib/device/index.d.ts +0 -2
  175. package/client-lib/element-constructor/ElementConstructor.d.ts +0 -75
  176. package/client-lib/element-constructor/createStylesheet.d.ts +0 -3
  177. package/client-lib/element-constructor/createTheme.d.ts +0 -13
  178. package/client-lib/element-constructor/index.cjs +0 -1
  179. package/client-lib/element-constructor/index.d.ts +0 -4
  180. package/client-lib/element-constructor/index.js +0 -125
  181. package/client-lib/element-constructor/knownSvgTags.d.ts +0 -1
  182. package/client-lib/element-constructor/tags.d.ts +0 -119
  183. package/client-lib/element-resizer/index.cjs +0 -1
  184. package/client-lib/element-resizer/index.d.ts +0 -10
  185. package/client-lib/en3/core/En3Raycaster.d.ts +0 -21
  186. package/client-lib/en3/core/En3View.d.ts +0 -40
  187. package/client-lib/en3/core/en3.d.ts +0 -39
  188. package/client-lib/en3/core/en3Cache.d.ts +0 -4
  189. package/client-lib/en3/helpers/En3ComposerManager.d.ts +0 -5
  190. package/client-lib/en3/helpers/En3GridHelper.d.ts +0 -8
  191. package/client-lib/en3/helpers/En3Helpers.d.ts +0 -5
  192. package/client-lib/en3/helpers/En3Object3dManager.d.ts +0 -14
  193. package/client-lib/en3/helpers/En3OrbitControls.d.ts +0 -8
  194. package/client-lib/en3/helpers/En3ParametersManager.d.ts +0 -16
  195. package/client-lib/en3/helpers/En3TransformControls.d.ts +0 -8
  196. package/client-lib/en3/helpers/index.cjs +0 -1
  197. package/client-lib/en3/helpers/index.d.ts +0 -2
  198. package/client-lib/en3/index.d.ts +0 -3
  199. package/client-lib/en3/index.js +0 -6
  200. package/client-lib/en3/libs/MeshoptDecoder.d.ts +0 -1
  201. package/client-lib/en3/libs/index.d.ts +0 -1
  202. package/client-lib/en3/loaders/En3GLTFLoader.d.ts +0 -12
  203. package/client-lib/en3/loaders/En3TextureLoader.d.ts +0 -8
  204. package/client-lib/en3/loaders/index.cjs +0 -1
  205. package/client-lib/en3/loaders/index.d.ts +0 -3
  206. package/client-lib/en3/loaders/loaders.d.ts +0 -13
  207. package/client-lib/en3/misc/En3ModifiedMaterial.d.ts +0 -33
  208. package/client-lib/en3/misc/En3SourceManager.d.ts +0 -32
  209. package/client-lib/en3/misc/index.cjs +0 -10
  210. package/client-lib/en3/misc/index.d.ts +0 -2
  211. package/client-lib/en3/objects/En3Clip.d.ts +0 -15
  212. package/client-lib/en3/objects/En3ClipHelpers.d.ts +0 -6
  213. package/client-lib/en3/objects/En3GLTF.d.ts +0 -11
  214. package/client-lib/en3/objects/En3Image.d.ts +0 -8
  215. package/client-lib/en3/objects/En3ImageLike.d.ts +0 -25
  216. package/client-lib/en3/objects/En3SourceConsumer.d.ts +0 -5
  217. package/client-lib/en3/objects/En3Video.d.ts +0 -13
  218. package/client-lib/en3/objects/fluid/Advection.d.ts +0 -30
  219. package/client-lib/en3/objects/fluid/Divergence.d.ts +0 -23
  220. package/client-lib/en3/objects/fluid/En3Fluid.d.ts +0 -16
  221. package/client-lib/en3/objects/fluid/En3FluidElement.d.ts +0 -13
  222. package/client-lib/en3/objects/fluid/En3FluidPointer.d.ts +0 -13
  223. package/client-lib/en3/objects/fluid/ExternalForce.d.ts +0 -19
  224. package/client-lib/en3/objects/fluid/Poisson.d.ts +0 -24
  225. package/client-lib/en3/objects/fluid/Pressure.d.ts +0 -26
  226. package/client-lib/en3/objects/fluid/ShaderPass.d.ts +0 -24
  227. package/client-lib/en3/objects/fluid/Simulation.d.ts +0 -33
  228. package/client-lib/en3/objects/fluid/Viscous.d.ts +0 -30
  229. package/client-lib/en3/objects/fluid/index.d.ts +0 -3
  230. package/client-lib/en3/objects/index.d.ts +0 -7
  231. package/client-lib/en3/utils/coverTexture.d.ts +0 -7
  232. package/client-lib/en3/utils/dispose.d.ts +0 -3
  233. package/client-lib/en3/utils/getCurrentViewport.d.ts +0 -9
  234. package/client-lib/en3/utils/index.d.ts +0 -5
  235. package/client-lib/en3/utils/traverseMaterials.d.ts +0 -3
  236. package/client-lib/en3/utils/traverseMeshes.d.ts +0 -3
  237. package/client-lib/en3-CBBYE8rb.cjs +0 -8
  238. package/client-lib/globals-DMjysUXI.js +0 -8
  239. package/client-lib/globals-bYKki-b9.cjs +0 -1
  240. package/client-lib/image/index.d.ts +0 -11
  241. package/client-lib/index-PReYu1AQ.cjs +0 -9
  242. package/client-lib/instantiate-CfK7LHHy.js +0 -152
  243. package/client-lib/instantiate-DfsD19EH.cjs +0 -1
  244. package/client-lib/intersector/index.cjs +0 -1
  245. package/client-lib/intersector/index.d.ts +0 -10
  246. package/client-lib/jsx/ComponentElement.d.ts +0 -17
  247. package/client-lib/jsx/globals.d.ts +0 -13
  248. package/client-lib/jsx/h.d.ts +0 -6
  249. package/client-lib/jsx/hooks/animation/createDamped.d.ts +0 -3
  250. package/client-lib/jsx/hooks/animation/createTweened.d.ts +0 -3
  251. package/client-lib/jsx/hooks/animation/index.cjs +0 -1
  252. package/client-lib/jsx/hooks/animation/index.d.ts +0 -2
  253. package/client-lib/jsx/hooks/animation/index.js +0 -15
  254. package/client-lib/jsx/hooks/basic/_createStore.d.ts +0 -4
  255. package/client-lib/jsx/hooks/basic/attachInternals.d.ts +0 -1
  256. package/client-lib/jsx/hooks/basic/attachShadow.d.ts +0 -1
  257. package/client-lib/jsx/hooks/basic/attachStylesheet.d.ts +0 -3
  258. package/client-lib/jsx/hooks/basic/createContext.d.ts +0 -2
  259. package/client-lib/jsx/hooks/basic/createRef.d.ts +0 -3
  260. package/client-lib/jsx/hooks/basic/onConnect.d.ts +0 -3
  261. package/client-lib/jsx/hooks/basic/onDisconnect.d.ts +0 -3
  262. package/client-lib/jsx/hooks/basic/onStoreChange.d.ts +0 -3
  263. package/client-lib/jsx/hooks/onAnimationFrame.cjs +0 -1
  264. package/client-lib/jsx/hooks/onAnimationFrame.d.ts +0 -6
  265. package/client-lib/jsx/hooks/onAnimationFrame.js +0 -22
  266. package/client-lib/jsx/hooks/onElementResize.cjs +0 -1
  267. package/client-lib/jsx/hooks/onElementResize.d.ts +0 -5
  268. package/client-lib/jsx/hooks/onElementResize.js +0 -11
  269. package/client-lib/jsx/hooks/onIntersection.cjs +0 -1
  270. package/client-lib/jsx/hooks/onIntersection.d.ts +0 -5
  271. package/client-lib/jsx/hooks/onIntersection.js +0 -11
  272. package/client-lib/jsx/hooks/onWindowResize.cjs +0 -1
  273. package/client-lib/jsx/hooks/onWindowResize.d.ts +0 -3
  274. package/client-lib/jsx/hooks/onWindowResize.js +0 -8
  275. package/client-lib/jsx/hooks/store/createCached.d.ts +0 -4
  276. package/client-lib/jsx/hooks/store/createComposed.d.ts +0 -3
  277. package/client-lib/jsx/hooks/store/createDerived.d.ts +0 -4
  278. package/client-lib/jsx/hooks/store/createDerivedArray.d.ts +0 -4
  279. package/client-lib/jsx/hooks/store/createResource.d.ts +0 -3
  280. package/client-lib/jsx/hooks/store/createStore.d.ts +0 -3
  281. package/client-lib/jsx/hooks/store/index.cjs +0 -1
  282. package/client-lib/jsx/hooks/store/index.d.ts +0 -6
  283. package/client-lib/jsx/hooks/store/index.js +0 -45
  284. package/client-lib/jsx/hooks/watchAttribute.cjs +0 -1
  285. package/client-lib/jsx/hooks/watchAttribute.d.ts +0 -6
  286. package/client-lib/jsx/hooks/watchAttribute.js +0 -17
  287. package/client-lib/jsx/hooks/watchCSSProperty.cjs +0 -1
  288. package/client-lib/jsx/hooks/watchCSSProperty.d.ts +0 -7
  289. package/client-lib/jsx/hooks/watchCSSProperty.js +0 -17
  290. package/client-lib/jsx/index.cjs +0 -1
  291. package/client-lib/jsx/index.d.ts +0 -15
  292. package/client-lib/jsx/index.js +0 -106
  293. package/client-lib/jsx/instantiate.d.ts +0 -5
  294. package/client-lib/jsx/register.d.ts +0 -1
  295. package/client-lib/jsx/render.d.ts +0 -6
  296. package/client-lib/jsx/type.d.ts +0 -195
  297. package/client-lib/ladder/index.cjs +0 -1
  298. package/client-lib/ladder/index.d.ts +0 -24
  299. package/client-lib/layout-box/index.cjs +0 -1
  300. package/client-lib/layout-box/index.d.ts +0 -96
  301. package/client-lib/layout-box/index.js +0 -326
  302. package/client-lib/libs/path-data-polyfill.d.ts +0 -1
  303. package/client-lib/loading/index.cjs +0 -1
  304. package/client-lib/loading/index.d.ts +0 -39
  305. package/client-lib/media/index.cjs +0 -1
  306. package/client-lib/media/index.d.ts +0 -12
  307. package/client-lib/media/index.js +0 -30
  308. package/client-lib/modal/ModalElement.d.ts +0 -13
  309. package/client-lib/modal/index.cjs +0 -1
  310. package/client-lib/modal/index.d.ts +0 -1
  311. package/client-lib/morph/Link.d.ts +0 -7
  312. package/client-lib/morph/Morph.d.ts +0 -37
  313. package/client-lib/morph/index.cjs +0 -1
  314. package/client-lib/morph/index.d.ts +0 -1
  315. package/client-lib/morph/index.js +0 -235
  316. package/client-lib/notifier/index.cjs +0 -1
  317. package/client-lib/notifier/index.d.ts +0 -8
  318. package/client-lib/notifier/index.js +0 -40
  319. package/client-lib/onConnect-DGP866cj.cjs +0 -1
  320. package/client-lib/onConnect-y5DrxJ9P.js +0 -7
  321. package/client-lib/order/index.d.ts +0 -22
  322. package/client-lib/pointer/Pointer.d.ts +0 -23
  323. package/client-lib/pointer/PointerElement.d.ts +0 -14
  324. package/client-lib/pointer/index.cjs +0 -1
  325. package/client-lib/pointer/index.d.ts +0 -2
  326. package/client-lib/popover/PopoverButtonElement.d.ts +0 -15
  327. package/client-lib/popover/PopoverElement.d.ts +0 -26
  328. package/client-lib/popover/index.cjs +0 -1
  329. package/client-lib/popover/index.d.ts +0 -2
  330. package/client-lib/router/Link.d.ts +0 -7
  331. package/client-lib/router/Route.d.ts +0 -21
  332. package/client-lib/router/Router.d.ts +0 -41
  333. package/client-lib/router/index.cjs +0 -1
  334. package/client-lib/router/index.d.ts +0 -2
  335. package/client-lib/scroll/ScrollBulletButtonsElement.d.ts +0 -12
  336. package/client-lib/scroll/ScrollButtonElement.d.ts +0 -6
  337. package/client-lib/scroll/ScrollElement.d.ts +0 -82
  338. package/client-lib/scroll/ScrollSection.d.ts +0 -23
  339. package/client-lib/scroll/ScrollSegmentElement.d.ts +0 -63
  340. package/client-lib/scroll/ScrollSetButtonElement.d.ts +0 -10
  341. package/client-lib/scroll/ScrollStepButtonElement.d.ts +0 -10
  342. package/client-lib/scroll/ScrollUserElement.d.ts +0 -7
  343. package/client-lib/scroll/ScrollbarElement.d.ts +0 -14
  344. package/client-lib/scroll/index.cjs +0 -1
  345. package/client-lib/scroll/index.d.ts +0 -6
  346. package/client-lib/scroll/index.js +0 -1154
  347. package/client-lib/scroll-entries/index.cjs +0 -1
  348. package/client-lib/scroll-entries/index.d.ts +0 -21
  349. package/client-lib/select/SelectElement.d.ts +0 -24
  350. package/client-lib/select/SelectHeadElement.d.ts +0 -13
  351. package/client-lib/select/SelectOptionElement.d.ts +0 -14
  352. package/client-lib/select/SelectUserElement.d.ts +0 -7
  353. package/client-lib/select/index.d.ts +0 -4
  354. package/client-lib/sequence/index.cjs +0 -1
  355. package/client-lib/sequence/index.d.ts +0 -21
  356. package/client-lib/slicer/DecoderElement.d.ts +0 -11
  357. package/client-lib/slicer/Letter.d.ts +0 -11
  358. package/client-lib/slicer/SlicerElement.d.ts +0 -21
  359. package/client-lib/slicer/Word.d.ts +0 -17
  360. package/client-lib/slicer/index.cjs +0 -11
  361. package/client-lib/slicer/index.d.ts +0 -4
  362. package/client-lib/source/SourceClass.d.ts +0 -11
  363. package/client-lib/source/SourceElement.d.ts +0 -25
  364. package/client-lib/source/SourceManager.d.ts +0 -14
  365. package/client-lib/source/SourceSet.d.ts +0 -9
  366. package/client-lib/source/index.cjs +0 -5
  367. package/client-lib/source/index.d.ts +0 -4
  368. package/client-lib/store/Cached.d.ts +0 -18
  369. package/client-lib/store/Composed.d.ts +0 -8
  370. package/client-lib/store/Derived.d.ts +0 -13
  371. package/client-lib/store/DerivedArray.d.ts +0 -13
  372. package/client-lib/store/Resource.d.ts +0 -12
  373. package/client-lib/store/Store.d.ts +0 -76
  374. package/client-lib/store/StoreRegistry.d.ts +0 -23
  375. package/client-lib/store/index.cjs +0 -1
  376. package/client-lib/store/index.d.ts +0 -7
  377. package/client-lib/svg-path-data/index.d.ts +0 -15
  378. package/client-lib/tags-BdW7ATzD.cjs +0 -1
  379. package/client-lib/tags-C75owfOo.js +0 -485
  380. package/client-lib/test/starting-style/index.d.ts +0 -1
  381. package/client-lib/theme/index.d.ts +0 -35
  382. package/client-lib/ticker/index.cjs +0 -1
  383. package/client-lib/ticker/index.d.ts +0 -22
  384. package/client-lib/ticker/index.js +0 -125
  385. package/client-lib/tweaker/TweakerBooleanManagerElement.d.ts +0 -11
  386. package/client-lib/tweaker/TweakerColorManagerElement.d.ts +0 -11
  387. package/client-lib/tweaker/TweakerElement.d.ts +0 -18
  388. package/client-lib/tweaker/TweakerFieldElement.d.ts +0 -21
  389. package/client-lib/tweaker/TweakerFolderElement.d.ts +0 -24
  390. package/client-lib/tweaker/TweakerLinkManagerElement.d.ts +0 -11
  391. package/client-lib/tweaker/TweakerNumberManagerElement.d.ts +0 -14
  392. package/client-lib/tweaker/TweakerSelectManagerElement.d.ts +0 -11
  393. package/client-lib/tweaker/TweakerStoreManagerElement.d.ts +0 -10
  394. package/client-lib/tweaker/TweakerStringManagerElement.d.ts +0 -11
  395. package/client-lib/tweaker/index.cjs +0 -10
  396. package/client-lib/tweaker/index.d.ts +0 -1
  397. package/client-lib/tweaker/tweakerManagerConstructors.d.ts +0 -6
  398. package/client-lib/tweaker/tweakerStorage.d.ts +0 -23
  399. package/client-lib/utils/array.d.ts +0 -2
  400. package/client-lib/utils/attributes.d.ts +0 -2
  401. package/client-lib/utils/browser.d.ts +0 -1
  402. package/client-lib/utils/bytes.d.ts +0 -1
  403. package/client-lib/utils/canvas.d.ts +0 -7
  404. package/client-lib/utils/collisions.d.ts +0 -4
  405. package/client-lib/utils/coordinates.d.ts +0 -14
  406. package/client-lib/utils/cssom.d.ts +0 -5
  407. package/client-lib/utils/decoding.d.ts +0 -2
  408. package/client-lib/utils/dom.d.ts +0 -5
  409. package/client-lib/utils/easings.d.ts +0 -17
  410. package/client-lib/utils/events.d.ts +0 -8
  411. package/client-lib/utils/file.d.ts +0 -1
  412. package/client-lib/utils/function.d.ts +0 -2
  413. package/client-lib/utils/gestures.d.ts +0 -1
  414. package/client-lib/utils/index.d.ts +0 -26
  415. package/client-lib/utils/layout.d.ts +0 -3
  416. package/client-lib/utils/math.d.ts +0 -12
  417. package/client-lib/utils/number.d.ts +0 -3
  418. package/client-lib/utils/object.d.ts +0 -9
  419. package/client-lib/utils/polyfills.d.ts +0 -1
  420. package/client-lib/utils/promises.d.ts +0 -1
  421. package/client-lib/utils/string.d.ts +0 -8
  422. package/client-lib/utils/style.d.ts +0 -2
  423. package/client-lib/utils/ts-shape.d.ts +0 -20
  424. package/client-lib/utils/ts-utility.d.ts +0 -26
  425. package/client-lib/utils/url.d.ts +0 -9
  426. package/client-lib/video/index.cjs +0 -1
  427. package/client-lib/video/index.d.ts +0 -22
  428. package/client-lib/window-resizer/index.cjs +0 -1
  429. package/client-lib/window-resizer/index.d.ts +0 -10
  430. package/client-lib/window-resizer/index.js +0 -46
  431. package/server-lib/optimizer/FFmpeg.d.ts +0 -10
  432. package/server-lib/optimizer/generateFavicon.d.ts +0 -4
  433. package/server-lib/optimizer/generateSequence.d.ts +0 -3
  434. package/server-lib/optimizer/generateSprite.d.ts +0 -4
  435. package/server-lib/optimizer/index.d.ts +0 -10
  436. package/server-lib/optimizer/index.js +0 -404
  437. package/server-lib/optimizer/inputFiles.d.ts +0 -26
  438. package/server-lib/optimizer/optimize.d.ts +0 -13
  439. package/server-lib/optimizer/optimizeImage.d.ts +0 -4
  440. package/server-lib/optimizer/optimizeVideo.d.ts +0 -3
  441. package/server-lib/optimizer/optimizer.d.ts +0 -5
  442. package/server-lib/optimizer/types.d.ts +0 -51
  443. package/server-lib/optimizer/utils.d.ts +0 -1
  444. package/server-lib/utils/buffer.d.ts +0 -1
  445. package/server-lib/utils/fs.d.ts +0 -11
  446. package/server-lib/utils/index.d.ts +0 -5
  447. package/server-lib/utils/index.js +0 -65
  448. package/server-lib/utils/math.d.ts +0 -1
  449. package/server-lib/utils/path.d.ts +0 -3
  450. package/server-lib/utils/types.d.ts +0 -8
  451. /package/{client-lib → lib}/attributes-69we3byR.js +0 -0
  452. /package/{client-lib → lib}/attributes-Bf2svn4j.cjs +0 -0
  453. /package/{client-lib → lib}/browser-0zX67oeU.js +0 -0
  454. /package/{client-lib → lib}/browser-CpzFX2xg.cjs +0 -0
  455. /package/{client-lib → lib}/canvas-CU5Xjahf.cjs +0 -0
  456. /package/{client-lib → lib}/canvas-DeZ0SLUJ.js +0 -0
  457. /package/{client-lib → lib}/coordinates-CgdGoSYs.js +0 -0
  458. /package/{client-lib → lib}/coordinates-D8Np3cPD.cjs +0 -0
  459. /package/{client-lib → lib}/createTheme-CHnsCgAr.js +0 -0
  460. /package/{client-lib → lib}/createTheme-Cfaw9UmV.cjs +0 -0
  461. /package/{client-lib → lib}/css-value-parser/index.cjs +0 -0
  462. /package/{client-lib → lib}/css-value-parser/index.js +0 -0
  463. /package/{client-lib → lib}/dom-JBOkFLTh.cjs +0 -0
  464. /package/{client-lib → lib}/dom-P5QbAASX.js +0 -0
  465. /package/{client-lib → lib}/easings-BKi40vHz.js +0 -0
  466. /package/{client-lib → lib}/easings-DsS5-Kqc.cjs +0 -0
  467. /package/{client-lib → lib}/en3/libs/index.cjs +0 -0
  468. /package/{client-lib → lib}/events-BGwqaxVW.cjs +0 -0
  469. /package/{client-lib → lib}/events-CJTUMSLU.js +0 -0
  470. /package/{client-lib → lib}/file-EevnUtRj.cjs +0 -0
  471. /package/{client-lib → lib}/file-lxi_oXJf.js +0 -0
  472. /package/{client-lib → lib}/function-C10DGppn.js +0 -0
  473. /package/{client-lib → lib}/function-MthRj-GJ.cjs +0 -0
  474. /package/{client-lib → lib}/gestures-D2Fdra_G.js +0 -0
  475. /package/{client-lib → lib}/gestures-DHLrn6Q8.cjs +0 -0
  476. /package/{client-lib → lib}/layout-8ryRAMGJ.cjs +0 -0
  477. /package/{client-lib → lib}/layout-HoBT_Da2.js +0 -0
  478. /package/{client-lib → lib}/math-BOBiC4TN.js +0 -0
  479. /package/{client-lib → lib}/math-GDWEqu7y.cjs +0 -0
  480. /package/{client-lib → lib}/object-CCiXnER2.cjs +0 -0
  481. /package/{client-lib → lib}/object-D6MVWB4l.js +0 -0
  482. /package/{client-lib → lib}/order/index.cjs +0 -0
  483. /package/{client-lib → lib}/order/index.js +0 -0
  484. /package/{client-lib → lib}/polyfills-CM4SCDTt.cjs +0 -0
  485. /package/{client-lib → lib}/polyfills-X6KXuHg-.js +0 -0
  486. /package/{client-lib → lib}/string-DhgS_iFl.cjs +0 -0
  487. /package/{client-lib → lib}/string-f0Dnk0L1.js +0 -0
  488. /package/{client-lib → lib}/style-At6aDoqG.cjs +0 -0
  489. /package/{client-lib → lib}/style-j2TwriJ_.js +0 -0
  490. /package/{client-lib → lib}/svg-path-data/index.cjs +0 -0
  491. /package/{client-lib → lib}/url-C3dWnJQg.cjs +0 -0
  492. /package/{client-lib → lib}/url-DMNfW7uN.js +0 -0
  493. /package/{client-lib → lib}/utils/index.cjs +0 -0
@@ -1,112 +1,105 @@
1
- var M = (o, n, t) => {
2
- if (!n.has(o))
3
- throw TypeError("Cannot " + t);
1
+ var H = (i) => {
2
+ throw TypeError(i);
4
3
  };
5
- var e = (o, n, t) => (M(o, n, "read from private field"), t ? t.call(o) : n.get(o)), i = (o, n, t) => {
6
- if (n.has(o))
7
- throw TypeError("Cannot add the same private member more than once");
8
- n instanceof WeakSet ? n.add(o) : n.set(o, t);
9
- }, h = (o, n, t, a) => (M(o, n, "write to private field"), a ? a.call(o, t) : n.set(o, t), t);
10
- var $ = (o, n, t) => (M(o, n, "access private method"), t);
11
- import { Attribute as R } from "../attribute/index.js";
12
- import { S as q } from "../Store-Qr3SNOSf.js";
13
- import { g as I } from "../style-j2TwriJ_.js";
14
- import { i as B } from "../browser-0zX67oeU.js";
4
+ var _ = (i, o, t) => o.has(i) || H("Cannot " + t);
5
+ var e = (i, o, t) => (_(i, o, "read from private field"), t ? t.call(i) : o.get(i)), n = (i, o, t) => o.has(i) ? H("Cannot add the same private member more than once") : o instanceof WeakSet ? o.add(i) : o.set(i, t), h = (i, o, t, d) => (_(i, o, "write to private field"), d ? d.call(i, t) : o.set(i, t), t), A = (i, o, t) => (_(i, o, "access private method"), t);
6
+ import { Attribute as O } from "../attribute/index.js";
7
+ import { S as N } from "../Store-DGtldlBH.js";
8
+ import { g as q } from "../style-j2TwriJ_.js";
9
+ import { i as I } from "../browser-0zX67oeU.js";
15
10
  import "../ticker/index.js";
16
- import { e as D } from "../tags-C75owfOo.js";
17
- var f, c, T, l, d, u, A, N, v, y, E, L, b, H, g;
11
+ import { e as B } from "../tags-4AoxVUe3.js";
12
+ var f, l, T, a, u, v, c, R, y, E, L, $, g;
18
13
  const p = class p extends HTMLElement {
19
14
  constructor() {
20
15
  super();
21
- i(this, A);
22
- i(this, v);
23
- i(this, b);
24
- i(this, f, void 0);
25
- i(this, c, void 0);
26
- i(this, T, void 0);
27
- i(this, l, void 0);
28
- i(this, d, void 0);
29
- i(this, u, void 0);
30
- i(this, E, void 0);
31
- i(this, L, void 0);
32
- i(this, g, void 0);
33
- h(this, f, -1), h(this, c, new q(!1)), h(this, l, new R(this, "history", !1)), h(this, d, new R(this, "single", !1)), h(this, u, !1), this.open = (t = !0) => {
34
- if (e(this, c).current)
16
+ n(this, c);
17
+ n(this, f);
18
+ n(this, l);
19
+ n(this, T);
20
+ n(this, a);
21
+ n(this, u);
22
+ n(this, v);
23
+ n(this, E);
24
+ n(this, L);
25
+ n(this, g);
26
+ h(this, f, -1), h(this, l, new N(!1)), h(this, a, new O(this, "history", !1)), h(this, u, new O(this, "single", !1)), h(this, v, !1), this.open = (t = !0) => {
27
+ if (e(this, l).current)
35
28
  return;
36
- e(this, c).current = !0, e(this, d).current && (p.__opened.forEach((r) => r.close()), p.__opened = []), p.__opened.push(this), h(this, f, p.__opened.length - 1), e(this, l).current && e(this, u) && history.pushState("", "", e(this, A, N)), clearTimeout(e(this, T)), this.classList.add("triggered"), this.style.display = "block", this.dispatchEvent(new CustomEvent("popoverTriggered"));
37
- const a = () => {
29
+ e(this, l).current = !0, e(this, u).current && (p.__opened.forEach((r) => r.close()), p.__opened = []), p.__opened.push(this), h(this, f, p.__opened.length - 1), e(this, a).current && e(this, v) && history.pushState("", "", e(this, c, R)), clearTimeout(e(this, T)), this.classList.add("triggered"), this.style.display = "block", this.dispatchEvent(new CustomEvent("popoverTriggered"));
30
+ const d = () => {
38
31
  addEventListener("click", e(this, E)), addEventListener("keydown", e(this, L)), this.style.opacity = "1", this.classList.add("opened"), this.dispatchEvent(new CustomEvent("popoverOpened"));
39
32
  };
40
- t ? setTimeout(a) : a();
33
+ t ? setTimeout(d) : d();
41
34
  }, this.close = () => {
42
- if (e(this, c).current) {
43
- if (e(this, c).current = !1, p.__opened = p.__opened.filter((t) => t !== this), e(this, l).current) {
35
+ if (e(this, l).current) {
36
+ if (e(this, l).current = !1, p.__opened = p.__opened.filter((t) => t !== this), e(this, a).current) {
44
37
  const t = new URL(location.href);
45
- t.searchParams.delete(e(this, v, y)), history.replaceState(null, "", t.href);
38
+ t.searchParams.delete(e(this, c, y)), history.replaceState(null, "", t.href);
46
39
  }
47
40
  this.classList.remove("opened"), this.style.opacity = "0", this.dispatchEvent(new CustomEvent("popoverClosing")), removeEventListener("click", e(this, E)), removeEventListener("keydown", e(this, L)), setTimeout(() => {
48
41
  this.classList.remove("triggered"), this.style.display = "none", this.dispatchEvent(new CustomEvent("popoverClosed"));
49
- }, I(this) + 10);
42
+ }, q(this) + 10);
50
43
  }
51
44
  }, h(this, E, (t) => {
52
- $(this, b, H).call(this, () => {
53
- var O;
54
- const r = t.composedPath()[0], _ = r instanceof HTMLElement && (this.contains(r) || ((O = this.shadowRoot) == null ? void 0 : O.contains(r))), m = r instanceof HTMLElement && r.hasAttribute("outside");
55
- (!_ || m) && this.close();
45
+ A(this, c, $).call(this, () => {
46
+ var x;
47
+ const r = t.composedPath()[0], S = r instanceof HTMLElement && (this.contains(r) || ((x = this.shadowRoot) == null ? void 0 : x.contains(r))), m = r instanceof HTMLElement && r.hasAttribute("outside");
48
+ (!S || m) && this.close();
56
49
  });
57
50
  }), h(this, L, (t) => {
58
- $(this, b, H).call(this, () => {
51
+ A(this, c, $).call(this, () => {
59
52
  t.code === "Escape" && this.close();
60
53
  });
61
54
  }), h(this, g, () => {
62
- h(this, u, !1), e(this, c).current && e(this, l).current && !location.search.includes(e(this, v, y)) ? this.close() : !e(this, c).current && e(this, l).current && location.search.includes(e(this, v, y)) && this.open(), h(this, u, !0);
55
+ h(this, v, !1), e(this, l).current && e(this, a).current && !location.search.includes(e(this, c, y)) ? this.close() : !e(this, l).current && e(this, a).current && location.search.includes(e(this, c, y)) && this.open(), h(this, v, !0);
63
56
  }), this.setAttribute("popover-target", "");
64
57
  }
65
58
  get history() {
66
- return e(this, l);
59
+ return e(this, a);
67
60
  }
68
61
  get single() {
69
- return e(this, d);
62
+ return e(this, u);
70
63
  }
71
64
  get opened() {
72
- return e(this, c);
65
+ return e(this, l);
73
66
  }
74
67
  connectedCallback() {
75
- e(this, l).observe(), e(this, d).observe(), this.style.opacity = "0", this.style.display = "none", addEventListener("popstate", e(this, g)), setTimeout(() => {
68
+ e(this, a).observe(), e(this, u).observe(), this.style.opacity = "0", this.style.display = "none", addEventListener("popstate", e(this, g)), setTimeout(() => {
76
69
  e(this, g).call(this);
77
70
  }, 0);
78
71
  }
79
72
  disconnectedCallback() {
80
- e(this, l).unobserve(), e(this, d).unobserve(), p.__opened = p.__opened.filter((t) => t !== this), clearTimeout(e(this, T)), removeEventListener("popstate", e(this, g));
73
+ e(this, a).unobserve(), e(this, u).unobserve(), p.__opened = p.__opened.filter((t) => t !== this), clearTimeout(e(this, T)), removeEventListener("popstate", e(this, g));
81
74
  }
82
75
  };
83
- f = new WeakMap(), c = new WeakMap(), T = new WeakMap(), l = new WeakMap(), d = new WeakMap(), u = new WeakMap(), A = new WeakSet(), N = function() {
84
- return `${location.pathname}${location.search ? location.search + "&" : "?"}${e(this, v, y)}`;
85
- }, v = new WeakSet(), y = function() {
76
+ f = new WeakMap(), l = new WeakMap(), T = new WeakMap(), a = new WeakMap(), u = new WeakMap(), v = new WeakMap(), c = new WeakSet(), R = function() {
77
+ return `${location.pathname}${location.search ? location.search + "&" : "?"}${e(this, c, y)}`;
78
+ }, y = function() {
86
79
  return `modal-${this.id}`;
87
- }, E = new WeakMap(), L = new WeakMap(), b = new WeakSet(), H = function(t) {
80
+ }, E = new WeakMap(), L = new WeakMap(), $ = function(t) {
88
81
  (p.__opened[e(this, f) - 1] || p.__opened.length === 1) && t();
89
82
  }, g = new WeakMap(), p.__opened = [];
90
- let x = p;
91
- customElements.get("e-popover") || customElements.define("e-popover", x);
92
- var s, w, C, k, S;
93
- class K extends HTMLElement {
83
+ let M = p;
84
+ customElements.get("e-popover") || customElements.define("e-popover", M);
85
+ var s, b, w, C, k;
86
+ class D extends HTMLElement {
94
87
  constructor() {
95
88
  super();
96
- i(this, s, void 0);
97
- i(this, w, () => {
89
+ n(this, s);
90
+ n(this, b, () => {
98
91
  this.classList.add("triggered");
99
92
  });
100
- i(this, C, () => {
93
+ n(this, w, () => {
101
94
  this.classList.add("opened");
102
95
  });
103
- i(this, k, () => {
96
+ n(this, C, () => {
104
97
  this.classList.remove("opened");
105
98
  });
106
- i(this, S, () => {
99
+ n(this, k, () => {
107
100
  this.classList.remove("triggered");
108
101
  });
109
- B && D(this, {
102
+ I && B(this, {
110
103
  tabindex: this.getAttribute("tabindex") || "0",
111
104
  onClick: () => {
112
105
  if (e(this, s)) {
@@ -123,54 +116,53 @@ class K extends HTMLElement {
123
116
  return e(this, s);
124
117
  }
125
118
  connectedCallback() {
126
- var a;
119
+ var d;
127
120
  const t = this.getAttribute("target");
128
121
  if (t) {
129
122
  let r = null;
130
123
  if (t === "parent") {
131
- const _ = this.closest("[popover-target]");
132
- if (_)
133
- r = _;
124
+ const S = this.closest("[popover-target]");
125
+ if (S)
126
+ r = S;
134
127
  else {
135
128
  const m = this.getRootNode();
136
129
  m instanceof ShadowRoot ? r = m.host.closest("[popover-target]") : m instanceof HTMLElement && (r = m.closest("[popover-target]"));
137
130
  }
138
- } else
139
- t === "sibling" ? r = (a = this.parentElement) == null ? void 0 : a.querySelector("[popover-target]") : r = document.querySelector(`#${t}`) || this.getRootNode().querySelector(`#${t}`);
131
+ } else t === "sibling" ? r = (d = this.parentElement) == null ? void 0 : d.querySelector("[popover-target]") : r = document.querySelector(`#${t}`) || this.getRootNode().querySelector(`#${t}`);
140
132
  r instanceof HTMLElement ? (h(this, s, r), e(this, s).addEventListener(
141
133
  "popoverTriggered",
142
- e(this, w)
134
+ e(this, b)
143
135
  ), e(this, s).addEventListener(
144
136
  "popoverOpened",
145
- e(this, C)
137
+ e(this, w)
146
138
  ), e(this, s).addEventListener(
147
139
  "popoverClosing",
148
- e(this, k)
140
+ e(this, C)
149
141
  ), e(this, s).addEventListener(
150
142
  "popoverClosed",
151
- e(this, S)
143
+ e(this, k)
152
144
  )) : console.warn(this, `target ${t} not found`);
153
145
  }
154
146
  }
155
147
  disconnectedCallback() {
156
148
  e(this, s) && (e(this, s).removeEventListener(
157
149
  "popoverTriggered",
158
- e(this, w)
150
+ e(this, b)
159
151
  ), e(this, s).removeEventListener(
160
152
  "popoverOpened",
161
- e(this, C)
153
+ e(this, w)
162
154
  ), e(this, s).removeEventListener(
163
155
  "popoverClosing",
164
- e(this, k)
156
+ e(this, C)
165
157
  ), e(this, s).removeEventListener(
166
158
  "popoverClosed",
167
- e(this, S)
159
+ e(this, k)
168
160
  ));
169
161
  }
170
162
  }
171
- s = new WeakMap(), w = new WeakMap(), C = new WeakMap(), k = new WeakMap(), S = new WeakMap();
172
- customElements.get("e-popover-button") || customElements.define("e-popover-button", K);
163
+ s = new WeakMap(), b = new WeakMap(), w = new WeakMap(), C = new WeakMap(), k = new WeakMap();
164
+ customElements.get("e-popover-button") || customElements.define("e-popover-button", D);
173
165
  export {
174
- K as PopoverButtonElement,
175
- x as PopoverElement
166
+ D as PopoverButtonElement,
167
+ M as PopoverElement
176
168
  };
@@ -0,0 +1 @@
1
+ "use strict";var Z=(n,e)=>(e=Symbol[n])?e:Symbol.for("Symbol."+n),$=n=>{throw TypeError(n)};var K=(n,e,s)=>e.has(n)||$("Cannot "+s);var t=(n,e,s)=>(K(n,e,"read from private field"),s?s.call(n):e.get(n)),r=(n,e,s)=>e.has(n)?$("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(n):e.set(n,s),a=(n,e,s,i)=>(K(n,e,"write to private field"),i?i.call(n,s):e.set(n,s),s),W=(n,e,s)=>(K(n,e,"access private method"),s);var M=(n,e,s)=>new Promise((i,h)=>{var o=d=>{try{f(s.next(d))}catch(w){h(w)}},c=d=>{try{f(s.throw(d))}catch(w){h(w)}},f=d=>d.done?i(d.value):Promise.resolve(d.value).then(o,c);f((s=s.apply(n,e)).next())});var Y=(n,e,s)=>(e=n[Z("asyncIterator")])?e.call(n):(n=n[Z("iterator")](),e={},s=(i,h)=>(h=n[i])&&(e[i]=o=>new Promise((c,f,d)=>(o=h.call(n,o),d=o.done,Promise.resolve(o.value).then(w=>c({value:w,done:d}),f)))),s("next"),s("return"),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const at=require("urlpattern-polyfill"),rt=require("../notifier/index.cjs"),tt=require("../browser-CpzFX2xg.cjs"),ht=require("../function-MthRj-GJ.cjs"),F=require("../url-C3dWnJQg.cjs"),ot=require("../object-CCiXnER2.cjs");var R,O,A,p,m,v,k,L,b,E,x,et;class ct{constructor(e,s){r(this,x);r(this,R);r(this,O);r(this,A);r(this,p);r(this,m);r(this,v);r(this,k);r(this,L,null);r(this,b,[]);r(this,E,[]);a(this,R,e),a(this,O,s),a(this,A,new URLPattern({pathname:t(this,R)})),a(this,p,null),a(this,m,null),a(this,v,!1),a(this,k,null),tt.isBrowser&&a(this,L,new MutationObserver(i=>{i[0].addedNodes.forEach(o=>{t(this,p)?t(this,E).push(o):t(this,b).push(o)})}))}get pattern(){return t(this,R)}get urlPattern(){return t(this,A)}get isActive(){return t(this,v)}get element(){return t(this,m)}get nest(){return t(this,k)}testPathname(e){return this.urlPattern.test({pathname:e})}render(e,s){return M(this,null,function*(){var i,h;if(t(this,L).observe(document.head,{childList:!0,subtree:!0}),t(this,p))t(this,b).forEach(o=>{document.head.appendChild(o)});else{const o=yield t(this,O).call(this);if(a(this,E,[...t(this,b)]),typeof o.default=="function"&&(a(this,p,o.default),ot.isESClass(o.default))){const c="e-"+((i=t(this,p))==null?void 0:i.name.toLowerCase());customElements.get(c)||customElements.define(c,o.default)}}if(yield W(this,x,et).call(this),t(this,p)){const o=t(this,A).exec({pathname:s}),c=(o==null?void 0:o.pathname.groups)||{},f=Object.fromEntries(new URLSearchParams(location.search)),d={pathnameParams:c,searchParams:f};a(this,m,new(t(this,p))(d)),e.appendChild(t(this,m)),a(this,k,t(this,m).querySelector("[data-nest]")||((h=t(this,m).shadowRoot)==null?void 0:h.querySelector("[data-nest]"))||t(this,m).shadowRoot||t(this,m)),a(this,v,!0)}t(this,L).disconnect()})}close(){var e;t(this,L).disconnect(),(e=t(this,m))==null||e.remove(),a(this,v,!1),t(this,E).forEach(s=>document.head.removeChild(s)),a(this,E,[])}getAnchorElements(){var s;let e=[];return t(this,m)&&(e=[...t(this,m).querySelectorAll("a")]),(s=t(this,m))!=null&&s.shadowRoot&&(e=[...e,...t(this,m).shadowRoot.querySelectorAll("a")]),e}}R=new WeakMap,O=new WeakMap,A=new WeakMap,p=new WeakMap,m=new WeakMap,v=new WeakMap,k=new WeakMap,L=new WeakMap,b=new WeakMap,E=new WeakMap,x=new WeakSet,et=function(){return M(this,null,function*(){const e=t(this,b).filter(c=>c instanceof HTMLElement?c.tagName==="STYLE"||c.tagName==="SCRIPT"||c.tagName==="LINK":!1);try{for(var s=Y(e),i,h,o;i=!(h=yield s.next()).done;i=!1){const c=h.value;yield new Promise(f=>{c.onload=()=>{f()}})}}catch(h){o=[h]}finally{try{i&&(h=s.return)&&(yield h.call(s))}finally{if(o)throw o[0]}}})};var S,u,P,U,q,j;class lt{constructor(e,s){r(this,S);r(this,u);r(this,P);r(this,U);r(this,q);r(this,j,e=>{e.preventDefault(),t(this,S).links.forEach(s=>{var i;t(this,P)===t(s,P)||(i=t(s,q))!=null&&i.includes(t(this,P))?t(s,u).classList.add("clicked"):t(s,u).classList.remove("clicked")}),t(this,S).navigate(t(this,P),t(this,U))});var o,c;a(this,S,e),a(this,u,s),a(this,P,t(this,u).getAttribute("href")||"/"),a(this,U,t(this,u).getAttribute("data-history-action")||"push"),t(this,u).addEventListener("click",t(this,j));const i=e.normalizePath(t(this,P)),h=e.normalizePath(location.pathname);a(this,q,(o=t(this,u).getAttribute("data-match-paths"))==null?void 0:o.split(",").map(f=>e.normalizePath(f.trim()).pathname)),t(this,u).hasAttribute("data-include")?h.pathname.includes(i.pathname)&&t(this,u).classList.add("current"):i.pathname===h.pathname||(c=t(this,q))!=null&&c.includes(h.pathname)?(t(this,u).classList.add("current"),t(this,u).classList.add("clicked")):t(this,u).classList.remove("clicked")}destroy(){t(this,u).removeEventListener("click",t(this,j)),t(this,u).classList.remove("current")}}S=new WeakMap,u=new WeakMap,P=new WeakMap,U=new WeakMap,q=new WeakMap,j=new WeakMap;globalThis.URLPattern=at.URLPattern;var N,C,g,z,T,y,H,B,I,_,st,D;class ut{constructor(e){r(this,_);r(this,N,null);r(this,C,null);r(this,g,[]);r(this,z,null);r(this,T,[]);r(this,y);r(this,H,null);r(this,B,new rt.Notifier);r(this,I,ht.debounce(()=>{const e=s=>s.split("/").length;a(this,g,t(this,g).sort((s,i)=>e(s.pattern)-e(i.pattern))),this.navigate(location.pathname)},0));r(this,D,e=>{e.state&&this.navigate(e.state,"none")});tt.isBrowser&&(e!=null&&e.base?a(this,C,F.normalizeBase(e.base)):a(this,C,"/"),a(this,N,(e==null?void 0:e.rootElement)||document.body),addEventListener("popstate",t(this,D)))}get currentPathname(){return t(this,H)}get candidatePathname(){return t(this,y)}get routes(){return t(this,g)}get links(){return t(this,T)}navigationEvent(e){return t(this,B).subscribe(e)}defineRoute(e,s){const i=new ct(e,s);t(this,g).push(i),t(this,I).call(this)}navigate(e,s="push"){return M(this,null,function*(){var Q,V;const i=this.normalizePath(e);let{pathname:h,hash:o,parameters:c,leaf:f}=i;if(t(this,y)===h||t(this,H)===h)return;a(this,y,h);const d=t(this,g).filter(l=>l.isActive),w=t(this,g).filter(l=>!d.includes(l)&&l.testPathname(f)),it=d.filter(l=>!l.testPathname(f)),G=d.filter(l=>l.testPathname(f));let J=!0;if(this.preprocessor)try{yield new Promise((l,nt)=>{var X;(X=this.preprocessor)==null||X.call(this,{path:i,resolve:l,reject:nt})})}catch(l){l?console.error(l):console.log("Route change canceled"),J=!1}if(J&&t(this,y)===h){a(this,z,G[G.length-1]),it.forEach(l=>{l.close()}),a(this,H,h),F.changeHistory(s,h,c,o);try{for(var ft=Y(w),pt,gt,Pt;pt=!(gt=yield ft.next()).done;pt=!1){const l=gt.value;yield l.render(((Q=t(this,z))==null?void 0:Q.nest)||t(this,N),h),a(this,z,l)}}catch(gt){Pt=[gt]}finally{try{pt&&(gt=ft.return)&&(yield gt.call(ft))}finally{if(Pt)throw Pt[0]}}W(this,_,st).call(this),(V=this.postprocessor)==null||V.call(this,{pathname:h}),t(this,B).notify({pathname:h})}})}normalizePath(e){return F.splitPath(e,t(this,C))}}N=new WeakMap,C=new WeakMap,g=new WeakMap,z=new WeakMap,T=new WeakMap,y=new WeakMap,H=new WeakMap,B=new WeakMap,I=new WeakMap,_=new WeakSet,st=function(){const e=t(this,g).filter(i=>i.isActive),s=Array.from(new Set([...t(this,N).querySelectorAll("a"),...e.map(i=>i.getAnchorElements()).flat()].filter(i=>{var h;return(h=i.getAttribute("href"))==null?void 0:h.startsWith("/")})));t(this,T).forEach(i=>{i.destroy()}),a(this,T,s.map(i=>new lt(this,i)))},D=new WeakMap;exports.Router=ut;
@@ -1,53 +1,46 @@
1
- var X = (n, e) => (e = Symbol[n]) ? e : Symbol.for("Symbol." + n);
2
- var W = (n, e, s) => {
3
- if (!e.has(n))
4
- throw TypeError("Cannot " + s);
1
+ var X = (a, e) => (e = Symbol[a]) ? e : Symbol.for("Symbol." + a), Z = (a) => {
2
+ throw TypeError(a);
5
3
  };
6
- var t = (n, e, s) => (W(n, e, "read from private field"), s ? s.call(n) : e.get(n)), h = (n, e, s) => {
7
- if (e.has(n))
8
- throw TypeError("Cannot add the same private member more than once");
9
- e instanceof WeakSet ? e.add(n) : e.set(n, s);
10
- }, a = (n, e, s, i) => (W(n, e, "write to private field"), i ? i.call(n, s) : e.set(n, s), s);
11
- var Y = (n, e, s) => (W(n, e, "access private method"), s);
12
- var I = (n, e, s) => new Promise((i, r) => {
13
- var o = (u) => {
4
+ var W = (a, e, s) => e.has(a) || Z("Cannot " + s);
5
+ var t = (a, e, s) => (W(a, e, "read from private field"), s ? s.call(a) : e.get(a)), h = (a, e, s) => e.has(a) ? Z("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(a) : e.set(a, s), n = (a, e, s, i) => (W(a, e, "write to private field"), i ? i.call(a, s) : e.set(a, s), s), Y = (a, e, s) => (W(a, e, "access private method"), s);
6
+ var I = (a, e, s) => new Promise((i, r) => {
7
+ var o = (m) => {
14
8
  try {
15
- f(s.next(u));
9
+ f(s.next(m));
16
10
  } catch (w) {
17
11
  r(w);
18
12
  }
19
- }, c = (u) => {
13
+ }, c = (m) => {
20
14
  try {
21
- f(s.throw(u));
15
+ f(s.throw(m));
22
16
  } catch (w) {
23
17
  r(w);
24
18
  }
25
- }, f = (u) => u.done ? i(u.value) : Promise.resolve(u.value).then(o, c);
26
- f((s = s.apply(n, e)).next());
19
+ }, f = (m) => m.done ? i(m.value) : Promise.resolve(m.value).then(o, c);
20
+ f((s = s.apply(a, e)).next());
27
21
  });
28
- var $ = (n, e, s) => (e = n[X("asyncIterator")]) ? e.call(n) : (n = n[X("iterator")](), e = {}, s = (i, r) => (r = n[i]) && (e[i] = (o) => new Promise((c, f, u) => (o = r.call(n, o), u = o.done, Promise.resolve(o.value).then((w) => c({ value: w, done: u }), f)))), s("next"), s("return"), e);
22
+ var $ = (a, e, s) => (e = a[X("asyncIterator")]) ? e.call(a) : (a = a[X("iterator")](), e = {}, s = (i, r) => (r = a[i]) && (e[i] = (o) => new Promise((c, f, m) => (o = r.call(a, o), m = o.done, Promise.resolve(o.value).then((w) => c({ value: w, done: m }), f)))), s("next"), s("return"), e);
29
23
  import { URLPattern as at } from "urlpattern-polyfill";
30
24
  import { Notifier as nt } from "../notifier/index.js";
31
25
  import { i as _ } from "../browser-0zX67oeU.js";
32
26
  import { d as ht } from "../function-C10DGppn.js";
33
27
  import { n as rt, c as ot, s as ct } from "../url-DMNfW7uN.js";
34
- import { i as lt } from "../instantiate-CfK7LHHy.js";
35
- import { i as Z } from "../object-D6MVWB4l.js";
36
- var y, U, A, p, m, L, k, v, E, R, M, tt;
28
+ import { i as lt } from "../object-D6MVWB4l.js";
29
+ var y, U, A, p, d, L, k, v, E, R, M, tt;
37
30
  class ut {
38
31
  constructor(e, s) {
39
32
  h(this, M);
40
- h(this, y, void 0);
41
- h(this, U, void 0);
42
- h(this, A, void 0);
43
- h(this, p, void 0);
44
- h(this, m, void 0);
45
- h(this, L, void 0);
46
- h(this, k, void 0);
33
+ h(this, y);
34
+ h(this, U);
35
+ h(this, A);
36
+ h(this, p);
37
+ h(this, d);
38
+ h(this, L);
39
+ h(this, k);
47
40
  h(this, v, null);
48
41
  h(this, E, []);
49
42
  h(this, R, []);
50
- a(this, y, e), a(this, U, s), a(this, A, new URLPattern({ pathname: t(this, y) })), a(this, p, null), a(this, m, null), a(this, L, !1), a(this, k, null), _ && a(this, v, new MutationObserver((i) => {
43
+ n(this, y, e), n(this, U, s), n(this, A, new URLPattern({ pathname: t(this, y) })), n(this, p, null), n(this, d, null), n(this, L, !1), n(this, k, null), _ && n(this, v, new MutationObserver((i) => {
51
44
  i[0].addedNodes.forEach((o) => {
52
45
  t(this, p) ? t(this, R).push(o) : t(this, E).push(o);
53
46
  });
@@ -63,7 +56,7 @@ class ut {
63
56
  return t(this, L);
64
57
  }
65
58
  get element() {
66
- return t(this, m);
59
+ return t(this, d);
67
60
  }
68
61
  get nest() {
69
62
  return t(this, k);
@@ -83,7 +76,7 @@ class ut {
83
76
  });
84
77
  else {
85
78
  const o = yield t(this, U).call(this);
86
- if (a(this, R, [...t(this, E)]), typeof o.default == "function" && (a(this, p, o.default), Z(o.default))) {
79
+ if (n(this, R, [...t(this, E)]), typeof o.default == "function" && (n(this, p, o.default), lt(o.default))) {
87
80
  const c = "e-" + ((i = t(this, p)) == null ? void 0 : i.name.toLowerCase());
88
81
  customElements.get(c) || customElements.define(c, o.default);
89
82
  }
@@ -91,31 +84,29 @@ class ut {
91
84
  if (yield Y(this, M, tt).call(this), t(this, p)) {
92
85
  const o = t(this, A).exec({ pathname: s }), c = (o == null ? void 0 : o.pathname.groups) || {}, f = Object.fromEntries(
93
86
  new URLSearchParams(location.search)
94
- ), u = {
87
+ ), m = {
95
88
  pathnameParams: c,
96
89
  searchParams: f
97
90
  };
98
- Z(t(this, p)) ? a(this, m, new (t(this, p))(u)) : a(this, m, lt(t(this, p), {
99
- attributes: u
100
- })), e.appendChild(t(this, m)), a(this, k, t(this, m).querySelector("[data-nest]") || ((r = t(this, m).shadowRoot) == null ? void 0 : r.querySelector("[data-nest]")) || t(this, m).shadowRoot || t(this, m)), a(this, L, !0);
91
+ n(this, d, new (t(this, p))(m)), e.appendChild(t(this, d)), n(this, k, t(this, d).querySelector("[data-nest]") || ((r = t(this, d).shadowRoot) == null ? void 0 : r.querySelector("[data-nest]")) || t(this, d).shadowRoot || t(this, d)), n(this, L, !0);
101
92
  }
102
93
  t(this, v).disconnect();
103
94
  });
104
95
  }
105
96
  close() {
106
97
  var e;
107
- t(this, v).disconnect(), (e = t(this, m)) == null || e.remove(), a(this, L, !1), t(this, R).forEach((s) => document.head.removeChild(s)), a(this, R, []);
98
+ t(this, v).disconnect(), (e = t(this, d)) == null || e.remove(), n(this, L, !1), t(this, R).forEach((s) => document.head.removeChild(s)), n(this, R, []);
108
99
  }
109
100
  getAnchorElements() {
110
101
  var s;
111
102
  let e = [];
112
- return t(this, m) && (e = [...t(this, m).querySelectorAll("a")]), (s = t(this, m)) != null && s.shadowRoot && (e = [
103
+ return t(this, d) && (e = [...t(this, d).querySelectorAll("a")]), (s = t(this, d)) != null && s.shadowRoot && (e = [
113
104
  ...e,
114
- ...t(this, m).shadowRoot.querySelectorAll("a")
105
+ ...t(this, d).shadowRoot.querySelectorAll("a")
115
106
  ]), e;
116
107
  }
117
108
  }
118
- y = new WeakMap(), U = new WeakMap(), A = new WeakMap(), p = new WeakMap(), m = new WeakMap(), L = new WeakMap(), k = new WeakMap(), v = new WeakMap(), E = new WeakMap(), R = new WeakMap(), M = new WeakSet(), tt = function() {
109
+ y = new WeakMap(), U = new WeakMap(), A = new WeakMap(), p = new WeakMap(), d = new WeakMap(), L = new WeakMap(), k = new WeakMap(), v = new WeakMap(), E = new WeakMap(), R = new WeakMap(), M = new WeakSet(), tt = function() {
119
110
  return I(this, null, function* () {
120
111
  const e = t(this, E).filter((c) => c instanceof HTMLElement ? c.tagName === "STYLE" || c.tagName === "SCRIPT" || c.tagName === "LINK" : !1);
121
112
  try {
@@ -139,35 +130,35 @@ y = new WeakMap(), U = new WeakMap(), A = new WeakMap(), p = new WeakMap(), m =
139
130
  }
140
131
  });
141
132
  };
142
- var S, d, P, O, N, x;
133
+ var S, u, P, O, N, x;
143
134
  class mt {
144
135
  constructor(e, s) {
145
- h(this, S, void 0);
146
- h(this, d, void 0);
147
- h(this, P, void 0);
148
- h(this, O, void 0);
149
- h(this, N, void 0);
136
+ h(this, S);
137
+ h(this, u);
138
+ h(this, P);
139
+ h(this, O);
140
+ h(this, N);
150
141
  h(this, x, (e) => {
151
142
  e.preventDefault(), t(this, S).links.forEach((s) => {
152
143
  var i;
153
- t(this, P) === t(s, P) || (i = t(s, N)) != null && i.includes(t(this, P)) ? t(s, d).classList.add("clicked") : t(s, d).classList.remove("clicked");
144
+ t(this, P) === t(s, P) || (i = t(s, N)) != null && i.includes(t(this, P)) ? t(s, u).classList.add("clicked") : t(s, u).classList.remove("clicked");
154
145
  }), t(this, S).navigate(t(this, P), t(this, O));
155
146
  });
156
147
  var o, c;
157
- a(this, S, e), a(this, d, s), a(this, P, t(this, d).getAttribute("href") || "/"), a(this, O, t(this, d).getAttribute(
148
+ n(this, S, e), n(this, u, s), n(this, P, t(this, u).getAttribute("href") || "/"), n(this, O, t(this, u).getAttribute(
158
149
  "data-history-action"
159
- ) || "push"), t(this, d).addEventListener("click", t(this, x));
150
+ ) || "push"), t(this, u).addEventListener("click", t(this, x));
160
151
  const i = e.normalizePath(t(this, P)), r = e.normalizePath(location.pathname);
161
- a(this, N, (o = t(this, d).getAttribute("data-match-paths")) == null ? void 0 : o.split(",").map((f) => e.normalizePath(f.trim()).pathname)), t(this, d).hasAttribute("data-include") ? r.pathname.includes(i.pathname) && t(this, d).classList.add("current") : i.pathname === r.pathname || (c = t(this, N)) != null && c.includes(r.pathname) ? (t(this, d).classList.add("current"), t(this, d).classList.add("clicked")) : t(this, d).classList.remove("clicked");
152
+ n(this, N, (o = t(this, u).getAttribute("data-match-paths")) == null ? void 0 : o.split(",").map((f) => e.normalizePath(f.trim()).pathname)), t(this, u).hasAttribute("data-include") ? r.pathname.includes(i.pathname) && t(this, u).classList.add("current") : i.pathname === r.pathname || (c = t(this, N)) != null && c.includes(r.pathname) ? (t(this, u).classList.add("current"), t(this, u).classList.add("clicked")) : t(this, u).classList.remove("clicked");
162
153
  }
163
154
  destroy() {
164
- t(this, d).removeEventListener("click", t(this, x)), t(this, d).classList.remove("current");
155
+ t(this, u).removeEventListener("click", t(this, x)), t(this, u).classList.remove("current");
165
156
  }
166
157
  }
167
- S = new WeakMap(), d = new WeakMap(), P = new WeakMap(), O = new WeakMap(), N = new WeakMap(), x = new WeakMap();
158
+ S = new WeakMap(), u = new WeakMap(), P = new WeakMap(), O = new WeakMap(), N = new WeakMap(), x = new WeakMap();
168
159
  globalThis.URLPattern = at;
169
160
  var C, z, g, q, H, b, T, B, j, D, et, K;
170
- class Et {
161
+ class vt {
171
162
  constructor(e) {
172
163
  h(this, D);
173
164
  h(this, C, null);
@@ -175,17 +166,17 @@ class Et {
175
166
  h(this, g, []);
176
167
  h(this, q, null);
177
168
  h(this, H, []);
178
- h(this, b, void 0);
169
+ h(this, b);
179
170
  h(this, T, null);
180
171
  h(this, B, new nt());
181
172
  h(this, j, ht(() => {
182
173
  const e = (s) => s.split("/").length;
183
- a(this, g, t(this, g).sort((s, i) => e(s.pattern) - e(i.pattern))), this.navigate(location.pathname);
174
+ n(this, g, t(this, g).sort((s, i) => e(s.pattern) - e(i.pattern))), this.navigate(location.pathname);
184
175
  }, 0));
185
176
  h(this, K, (e) => {
186
177
  e.state && this.navigate(e.state, "none");
187
178
  });
188
- _ && (e != null && e.base ? a(this, z, rt(e.base)) : a(this, z, "/"), a(this, C, (e == null ? void 0 : e.rootElement) || document.body), addEventListener("popstate", t(this, K)));
179
+ _ && (e != null && e.base ? n(this, z, rt(e.base)) : n(this, z, "/"), n(this, C, (e == null ? void 0 : e.rootElement) || document.body), addEventListener("popstate", t(this, K)));
189
180
  }
190
181
  get currentPathname() {
191
182
  return t(this, T);
@@ -213,10 +204,10 @@ class Et {
213
204
  let { pathname: r, hash: o, parameters: c, leaf: f } = i;
214
205
  if (t(this, b) === r || t(this, T) === r)
215
206
  return;
216
- a(this, b, r);
217
- const u = t(this, g).filter((l) => l.isActive), w = t(this, g).filter(
218
- (l) => !u.includes(l) && l.testPathname(f)
219
- ), st = u.filter((l) => !l.testPathname(f)), F = u.filter((l) => l.testPathname(f));
207
+ n(this, b, r);
208
+ const m = t(this, g).filter((l) => l.isActive), w = t(this, g).filter(
209
+ (l) => !m.includes(l) && l.testPathname(f)
210
+ ), st = m.filter((l) => !l.testPathname(f)), F = m.filter((l) => l.testPathname(f));
220
211
  let G = !0;
221
212
  if (this.preprocessor)
222
213
  try {
@@ -228,22 +219,22 @@ class Et {
228
219
  l ? console.error(l) : console.log("Route change canceled"), G = !1;
229
220
  }
230
221
  if (G && t(this, b) === r) {
231
- a(this, q, F[F.length - 1]), st.forEach((l) => {
222
+ n(this, q, F[F.length - 1]), st.forEach((l) => {
232
223
  l.close();
233
- }), a(this, T, r), ot(s, r, c, o);
224
+ }), n(this, T, r), ot(s, r, c, o);
234
225
  try {
235
- for (var yt = $(w), At, kt, St; At = !(kt = yield yt.next()).done; At = !1) {
236
- const l = kt.value;
237
- yield l.render(((J = t(this, q)) == null ? void 0 : J.nest) || t(this, C), r), a(this, q, l);
226
+ for (var bt = $(w), yt, At, kt; yt = !(At = yield bt.next()).done; yt = !1) {
227
+ const l = At.value;
228
+ yield l.render(((J = t(this, q)) == null ? void 0 : J.nest) || t(this, C), r), n(this, q, l);
238
229
  }
239
- } catch (kt) {
240
- St = [kt];
230
+ } catch (At) {
231
+ kt = [At];
241
232
  } finally {
242
233
  try {
243
- At && (kt = yt.return) && (yield kt.call(yt));
234
+ yt && (At = bt.return) && (yield At.call(bt));
244
235
  } finally {
245
- if (St)
246
- throw St[0];
236
+ if (kt)
237
+ throw kt[0];
247
238
  }
248
239
  }
249
240
  Y(this, D, et).call(this), (Q = this.postprocessor) == null || Q.call(this, { pathname: r }), t(this, B).notify({ pathname: r });
@@ -268,8 +259,8 @@ C = new WeakMap(), z = new WeakMap(), g = new WeakMap(), q = new WeakMap(), H =
268
259
  );
269
260
  t(this, H).forEach((i) => {
270
261
  i.destroy();
271
- }), a(this, H, s.map((i) => new mt(this, i)));
262
+ }), n(this, H, s.map((i) => new mt(this, i)));
272
263
  }, K = new WeakMap();
273
264
  export {
274
- Et as Router
265
+ vt as Router
275
266
  };
@@ -0,0 +1 @@
1
+ "use strict";var gs=Object.defineProperty;var Ze=Object.getOwnPropertySymbols;var ys=Object.prototype.hasOwnProperty,Cs=Object.prototype.propertyIsEnumerable;var Je=S=>{throw TypeError(S)};var je=(S,n,s)=>n in S?gs(S,n,{enumerable:!0,configurable:!0,writable:!0,value:s}):S[n]=s,Qe=(S,n)=>{for(var s in n||(n={}))ys.call(n,s)&&je(S,s,n[s]);if(Ze)for(var s of Ze(n))Cs.call(n,s)&&je(S,s,n[s]);return S};var Me=(S,n,s)=>n.has(S)||Je("Cannot "+s);var t=(S,n,s)=>(Me(S,n,"read from private field"),s?s.call(S):n.get(S)),i=(S,n,s)=>n.has(S)?Je("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(S):n.set(S,s),r=(S,n,s,e)=>(Me(S,n,"write to private field"),e?e.call(S,s):n.set(S,s),s),o=(S,n,s)=>(Me(S,n,"access private method"),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Rt=require("../Store-BnA-dJsE.cjs"),vs=require("../Derived-B-2UXnVE.cjs"),Ge=require("../browser-CpzFX2xg.cjs"),Ps=require("../easings-DsS5-Kqc.cjs"),kt=require("../layout-8ryRAMGJ.cjs"),Ke=require("../math-GDWEqu7y.cjs");require("../ticker/index.cjs");const be=require("../order/index.cjs"),ts=require("../Damped-C7WAqKPh.cjs"),ws=require("../Tweened-DSXD0I0k.cjs"),Oe=require("../controls/index.cjs"),pe=require("../window-resizer/index.cjs"),Yt=require("../scroll-entries/index.cjs"),W=require("../tags-v-OSVkiQ.cjs"),Ne=require("../createStylesheet-CaDI99iu.cjs"),Xe=require("../css-unit-parser/index.cjs"),c=require("../css-property/index.cjs"),Es=require("../Viewport-BmLTk_6k.cjs"),qe=require("../element-resizer/index.cjs"),xs=require("../gestures-DHLrn6Q8.cjs"),Ye=require("../theme/index.cjs"),Ls=require("../dom-JBOkFLTh.cjs"),es=require("../function-MthRj-GJ.cjs");var m,me,v,qt,J,dt;class zs{constructor(n,s,e){i(this,m);i(this,me);i(this,v);i(this,qt,0);i(this,J,0);i(this,dt,null);r(this,m,n),r(this,me,s),r(this,v,e),Yt.scrollEntries.register(t(this,m))}get index(){return t(this,me)}get size(){return t(this,qt)}get position(){return t(this,J)}destroy(){Yt.scrollEntries.unregister(t(this,m)),t(this,m).style.transform="",this.mark(null)}setSize(n){n?(t(this,m).style.setProperty("--size",n+"px"),t(this,v).axisCSSProperty.current==="x"?(t(this,m).style.width=n+"px",t(this,m).style.height=""):(t(this,m).style.height=n+"px",t(this,m).style.width="")):(t(this,m).style.width="",t(this,m).style.height="",t(this,m).style.removeProperty("--size"))}resize(){r(this,qt,t(this,v).vertical?t(this,m).offsetHeight:t(this,m).offsetWidth),r(this,J,t(this,v).vertical?kt.getCumulativeOffsetTop(t(this,m)):kt.getCumulativeOffsetLeft(t(this,m))),r(this,J,t(this,J)-t(this,v).contentPosition)}transform(){let n=0;const s=t(this,v).viewportSize*t(this,v).sectionDistanceScaleCSSProperty.current;t(this,v).loopCSSProperty.current&&t(this,v).overscroll&&t(this,J)+t(this,qt)<t(this,v).currentScrollValue&&(n=t(this,v).distance*-1-t(this,v).gap),Yt.scrollEntries.update(t(this,m),t(this,v).axisCSSProperty.current,n);const e=t(this,v).currentScrollValue+n,h=t(this,J)-t(this,v).viewportSize-s,a=t(this,J)+t(this,qt)+s,g=Ke.clamp(e,h,a);t(this,v).vertical?t(this,m).style.transform=`translate3d(0px, ${g*-1}px, 0px)`:t(this,m).style.transform=`translate3d(${g*-1}px, 0px, 0px)`}mark(n){t(this,dt)!==n&&(t(this,dt)&&t(this,m).classList.remove(t(this,dt)),n&&t(this,m).classList.add(n),r(this,dt,n),t(this,m).dispatchEvent(new CustomEvent("sectionsChange",{composed:!0,detail:{mark:t(this,dt)}})))}}m=new WeakMap,me=new WeakMap,v=new WeakMap,qt=new WeakMap,J=new WeakMap,dt=new WeakMap;const Vs=Ne.createStylesheet({":host":{position:"relative",width:"100%",height:"100%",display:"block",outline:"none"},':host([hibernated="true"])':{display:"contents"},".static":{position:"var(--static-position, absolute)",top:"var(--static-top, 0)",left:"var(--static-left, 0)",width:"var(--static-width, 100%)",height:"var(--static-height, 100%)"},".content":{position:"relative",display:"flex",width:"100%",height:"100%",gap:"var(--gap, 0px)",willChange:"var(--will-change, transform)"},':host([hibernated="true"]) .content':{display:"contents"},"::slotted(*)":{flexShrink:"0"}});var d,It,k,Q,X,U,Y,pt,ft,G,R,Tt,Mt,At,Bt,se,K,_t,bt,N,mt,tt,gt,Ht,$t,Wt,b,ge,l,ye,Ce,w,y,I,Z,yt,et,z,C,ie,Ct,Ut,Gt,re,st,u,fe,ee,Ae,Be,_e,He,T,ve,ss,he,Pe,$e,Dt,We;class Ie extends HTMLElement{constructor(){super();i(this,u);i(this,d,null);i(this,It,new c.CSSProperty(this,"--controls",!0));i(this,k,new c.CSSProperty(this,"--axis","y"));i(this,Q,new c.CSSProperty(this,"--direction",0));i(this,X,new c.CSSProperty(this,"--pages",0,{validate:s=>Math.max(0,s-1)}));i(this,U,new c.CSSProperty(this,"--split",!1));i(this,Y,new c.CSSProperty(this,"--sectional",!1));i(this,pt,new c.CSSProperty(this,"--auto-size",!1));i(this,ft,new c.CSSProperty(this,"--wheel-max-delta",!1));i(this,G,new c.CSSProperty(this,"--sections-in-view",1));i(this,R,new c.CSSProperty(this,"--loop",!1));i(this,Tt,new c.CSSProperty(this,"--damping",20));i(this,Mt,new c.CSSProperty(this,"--mass",0));i(this,At,new c.CSSProperty(this,"--stiffness",0));i(this,Bt,new c.CSSProperty(this,"--mouse-drag",!1));i(this,se,new c.CSSProperty(this,"--section-distance-scale",.5));i(this,K,new c.CSSProperty(this,"--autoplay",0));i(this,_t,new c.CSSProperty(this,"--autoplay-pause-duration",0));i(this,bt,new c.CSSProperty(this,"--autoplay-user-direction",!1));i(this,N,new c.CSSProperty(this,"--classes",0));i(this,mt,new c.CSSProperty(this,"--current-index-start-offset",0));i(this,tt,new c.CSSProperty(this,"--current-index-end-offset",0));i(this,gt,new c.CSSProperty(this,"--focus-delay",0));i(this,Ht,new c.CSSProperty(this,"--focus-duration",3e3));i(this,$t,new c.CSSProperty(this,"--disabled",!1));i(this,Wt,new c.CSSProperty(this,"--hibernated",!1));i(this,b,null);i(this,ge,null);i(this,l,[]);i(this,ye,0);i(this,Ce,0);i(this,w,0);i(this,y,0);i(this,I,0);i(this,Z,null);i(this,yt,null);i(this,et,null);i(this,z,null);i(this,C,new Rt.Store(0));i(this,ie,0);i(this,Ct,0);i(this,Ut,!0);i(this,Gt,!0);i(this,re);i(this,st,new ws.Tweened);i(this,T,()=>{t(this,d).unlistenAnimationFrame();const s=this.currentScrollValue/t(this,y)||0,e=t(this,C).current;if(r(this,ye,this.vertical?kt.getCumulativeOffsetTop(this):kt.getCumulativeOffsetLeft(this)),r(this,Ce,this.vertical?kt.getCumulativeOffsetTop(t(this,b)):kt.getCumulativeOffsetLeft(t(this,b))),r(this,w,this.vertical?this.offsetHeight:this.offsetWidth),this.vertical?r(this,I,Xe.cssUnitParser.parse(getComputedStyle(t(this,b)).rowGap)):r(this,I,Xe.cssUnitParser.parse(getComputedStyle(t(this,b)).columnGap)),t(this,pt).current&&t(this,l).length){const h=t(this,G).current,a=(t(this,w)-t(this,I)*(h-1))/h;t(this,l).forEach(g=>{g.setSize(a)})}else t(this,l).forEach(h=>{h.setSize()});if(t(this,l).forEach(h=>{h.resize()}),t(this,X).current){r(this,y,t(this,w)*t(this,X).current);const h=t(this,y)+t(this,w);this.vertical?(t(this,b).style.width=h+"px",t(this,b).style.height="100%"):(t(this,b).style.height=h+"px",t(this,b).style.width="100%")}else this.vertical?(t(this,b).style.width="100%",t(this,b).style.height="max-content",r(this,y,t(this,b).offsetHeight-t(this,w))):(t(this,b).style.width="max-content",t(this,b).style.height="100%",r(this,y,t(this,b).offsetWidth-t(this,w)));if(!t(this,R).current){const h=getComputedStyle(this),a=this.vertical?parseFloat(h.paddingBlockStart)+parseFloat(h.paddingBlockEnd):parseFloat(h.paddingInlineStart)+parseFloat(h.paddingInlineEnd);r(this,y,t(this,y)+a),t(this,d).max=t(this,y)}if(t(this,R).current&&t(this,l).length){const h=t(this,l)[t(this,l).length-1],a=h.position+h.size-t(this,w),g=t(this,y)-a;r(this,Ct,h.position+h.size+g)}else r(this,Ct,t(this,y));if(t(this,Y).current&&t(this,l).length){const h=t(this,l)[e];t(this,d).set(h.position,{equalize:!0})}else t(this,d).set(s*t(this,y),{equalize:!0})});i(this,ve,()=>{const s=this.currentScrollValue;if(r(this,ie,Math.max(0,s-t(this,y))),t(this,l).length){let e=0;for(let h=0;h<t(this,l).length;h++){const a=t(this,l)[h];a.transform(),this.targetScrollValue+a.size/2>=a.position&&(e=h)}t(this,C).current=e}else this.vertical?t(this,b).style.transform=`translate3d(0px, ${s*-1}px, 0px)`:t(this,b).style.transform=`translate3d(${s*-1}px, 0px, 0px)`;Yt.scrollEntries.update(this,t(this,k).current,s)});i(this,he,(s,e)=>{t(this,It).current&&(t(this,bt).current&&(t(this,z).pauseAndContinue(t(this,_t).current),t(this,z).direction=Math.sign(e)||1),t(this,Pe).call(this,s,e))});i(this,Pe,(s,e)=>{if(t(this,Q).current){if(t(this,Q).current<0&&e>0)return;if(t(this,Q).current>0&&e<0)return}if(t(this,st).unlistenAnimationFrame(),!t(this,K).current&&t(this,gt).current&&(clearInterval(t(this,re)),r(this,re,setTimeout(()=>{const h=o(this,u,We).call(this);h&&this.scrollToSection(h.index,{tween:{duration:t(this,Ht).current,easing:Ps.easeInOutExpo}})},t(this,gt).current))),!(s==="drag"&&!Es.device.isMobile&&!t(this,Bt).current))if(t(this,Y).current){const h=Math.sign(e);t(this,l).length?this.shiftSections(h):t(this,d).shift(h*t(this,w))}else t(this,d).shift(e)});Ge.isBrowser&&(r(this,d,new ts.Damped(0,{damping:.01,min:0,order:be.TICK_ORDER.SCROLL})),this.attachShadow({mode:"open"}).adoptedStyleSheets.push(Vs),W.element(this,{tabIndex:0,children:[W.div({class:"static",children:[W.slot({name:"static"})]}),W.div({class:"content",children:[W.slot({ref:e=>r(this,ge,e)})],style:{flexDirection:new vs.Derived(t(this,k),e=>e==="x"?"row":"column")},ref:e=>r(this,b,e)})]}),r(this,Z,new Oe.WheelControls({element:t(this,b)})),t(this,Z).changeEvent.subscribe(t(this,he)),r(this,yt,new Oe.KeyboardControls({element:this})),t(this,yt).changeEvent.subscribe(t(this,he)),r(this,et,new Oe.DragControls({element:t(this,b)})),t(this,et).changeEvent.subscribe(t(this,he)),r(this,z,new Oe.AutoplayControls({culling:this})),t(this,z).changeEvent.subscribe(t(this,Pe)),t(this,k).subscribe(({current:e})=>{t(this,b).style.flexDirection=e==="x"?"row":"column",t(this,Z).axis=t(this,ft).current?"max":e,t(this,yt).dimension=e==="x"?"width":"height",t(this,et).axis=e,e==="x"?this.style.touchAction="pan-y":e==="y"&&(this.style.touchAction="pan-x"),this.isConnected&&t(this,T).call(this)}),t(this,ft).subscribe(e=>{t(this,Z).axis=e.current?"max":t(this,k).current}),t(this,X).subscribe(()=>{this.isConnected&&t(this,T).call(this)}),t(this,U).subscribe(({current:e})=>{this.isConnected&&(e?o(this,u,fe).call(this):o(this,u,ee).call(this))}),t(this,Y).subscribe(e=>{t(this,Z).debounce=e.current,t(this,et).swipe=e.current,t(this,z).interval=e.current,this.isConnected&&(e.current&&!e.previous&&!t(this,l).length?o(this,u,fe).call(this):!e.current&&e.previous&&t(this,l).length&&o(this,u,ee).call(this))}),t(this,pt).subscribe(e=>{this.isConnected&&(t(this,T).call(this),e.current&&!e.previous&&!t(this,l).length?o(this,u,fe).call(this):!e.current&&e.previous&&t(this,l).length&&o(this,u,ee).call(this))}),t(this,G).subscribe(e=>{this.isConnected&&(t(this,T).call(this),o(this,u,Dt).call(this))}),t(this,R).subscribe(e=>{e.current?(this.isConnected&&(t(this,l).length||(t(this,U).current=!0)),t(this,l).length&&(t(this,d).max=1/0,t(this,d).min=-1/0)):(r(this,ie,0),t(this,d).max=t(this,y),t(this,d).min=0)}),t(this,Tt).subscribe(e=>{t(this,d).damping=e.current}),t(this,Mt).subscribe(e=>{t(this,d).mass=e.current}),t(this,At).subscribe(e=>{t(this,d).stiffness=e.current}),t(this,$t).subscribe(e=>{e.current&&!e.previous?o(this,u,Ae).call(this):!e.current&&e.previous&&o(this,u,Be).call(this)}),t(this,Wt).subscribe(e=>{e.current&&!e.previous?o(this,u,_e).call(this):!e.current&&e.previous&&o(this,u,He).call(this)}),t(this,K).subscribe(e=>{t(this,z).speed=e.current,e.current&&!e.previous?t(this,z).connect():!e.current&&e.previous&&t(this,z).disconnect()}),t(this,bt).subscribe(e=>{e.current||(t(this,z).direction=1)}),t(this,N).subscribe(e=>{this.isConnected&&o(this,u,Dt).call(this)}),t(this,mt).subscribe(e=>{this.isConnected&&t(this,N).current&&o(this,u,Dt).call(this)}),t(this,tt).subscribe(e=>{this.isConnected&&t(this,N).current&&o(this,u,Dt).call(this)}),t(this,d).isRunning.subscribe(e=>{this.classList.toggle("active",e.current)}),t(this,C).subscribe(e=>{t(this,l).length&&o(this,u,Dt).call(this)}),t(this,st).subscribe(e=>{t(this,st).isRunning.current&&t(this,d).set(e.current)}))}get damped(){return t(this,d)}get controlsCSSProperty(){return t(this,It)}get axisCSSProperty(){return t(this,k)}get directionCSSProperty(){return t(this,Q)}get pagesCSSProperty(){return t(this,X)}get splitCSSProperty(){return t(this,U)}get sectionalCSSProperty(){return t(this,Y)}get autoSizeCSSProperty(){return t(this,pt)}get wheelMaxDeltaCSSProperty(){return t(this,ft)}get sectionsInViewCSSProperty(){return t(this,G)}get loopCSSProperty(){return t(this,R)}get dampingCSSProperty(){return t(this,Tt)}get massCSSProperty(){return t(this,Mt)}get stiffnessCSSProperty(){return t(this,At)}get mouseDragCSSProperty(){return t(this,Bt)}get sectionDistanceScaleCSSProperty(){return t(this,se)}get autoplayCSSProperty(){return t(this,K)}get autoplayPauseDurationCSSProperty(){return t(this,_t)}get autoplayUserDirectionCSSProperty(){return t(this,bt)}get classesCSSProperty(){return t(this,N)}get currentIndexStartOffsetCSSProperty(){return t(this,mt)}get currentIndexEndOffsetCSSProperty(){return t(this,tt)}get focusDelayCSSProperty(){return t(this,gt)}get focusDurationCSSProperty(){return t(this,Ht)}get disabledCSSProperty(){return t(this,$t)}get hibernatedCSSProperty(){return t(this,Wt)}get currentScrollValue(){return o(this,u,$e).call(this,"current")}get targetScrollValue(){return o(this,u,$e).call(this,"target")}get contentElement(){return t(this,b)}get sections(){return t(this,l)}get position(){return t(this,ye)}get contentPosition(){return t(this,Ce)}get viewportSize(){return t(this,w)}get scrollSize(){return t(this,y)}get gap(){return t(this,I)}get counter(){return t(this,C)}get limit(){return t(this,l).length-t(this,G).current}get distance(){return t(this,Ct)}get loopDistance(){return t(this,R).current?t(this,Ct)+t(this,I):t(this,Ct)}get overscroll(){return t(this,ie)}get vertical(){return t(this,k).current==="y"}get currentProgress(){return this.currentScrollValue/this.loopDistance||0}get targetProgress(){return this.targetScrollValue/this.loopDistance||0}get scrollWidth(){return t(this,k).current==="y"?0:t(this,d).distance}get scrollHeight(){return t(this,k).current==="x"?0:t(this,d).distance}onScroll(...s){return t(this,d).subscribe(...s)}offScroll(...s){t(this,d).unsubscribe(...s)}range(s,e,h=0){const a=s-h,g=a+e+h*2;return this.currentProgress<a?0:this.currentProgress>g?1:(this.currentProgress-a)/(g-a)}curve(s,e,h=0){return Math.sin(this.range(s,e,h)*Math.PI)}visible(s,e,h=0){const a=s-h,g=a+e+h*2;return this.currentProgress>=a&&this.currentProgress<=g}scrollToSection(s,e){if(!t(this,l).length)return;const h=t(this,C).current;o(this,u,ss).call(this,s);const a=t(this,l)[h],g=t(this,l)[t(this,C).current];if(a&&g){let q=0;const te=o(this,u,We).call(this),ms=te?this.targetScrollValue-te.position:0;t(this,R).current?t(this,C).current===0&&h===t(this,l).length-1?q=t(this,y)+t(this,w)-a.position+t(this,I):t(this,C).current===t(this,l).length-1&&h===0?q=g.position-(t(this,y)+t(this,w)+t(this,I)):q=g.position-a.position:q=g.position-a.position,this.shiftPosition(q-ms,e)}}shiftSections(s,e){t(this,l).length&&this.scrollToSection(t(this,C).current+s,e)}setPosition(s,e){e!=null&&e.tween?(t(this,st).set(t(this,d).current,{equalize:!0}),t(this,st).set(s,Qe({},e.tween))):t(this,d).set(s,{equalize:(e==null?void 0:e.behaviour)==="instant"})}shiftPosition(s,e){this.setPosition(t(this,d).target+s,e)}connectedCallback(){t(this,It).observe(),t(this,k).observe(),t(this,Q).observe(),t(this,X).observe(),t(this,U).observe(),t(this,Y).observe(),t(this,pt).observe(),t(this,ft).observe(),t(this,G).observe(),t(this,R).observe(),t(this,Tt).observe(),t(this,Mt).observe(),t(this,At).observe(),t(this,Bt).observe(),t(this,se).observe(),t(this,K).observe(),t(this,K).observe(),t(this,_t).observe(),t(this,bt).observe(),t(this,N).observe(),t(this,mt).observe(),t(this,tt).observe(),t(this,gt).observe(),t(this,Ht).observe(),t(this,$t).observe(),t(this,Wt).observe(),o(this,u,He).call(this)}disconnectedCallback(){t(this,It).unobserve(),t(this,k).unobserve(),t(this,Q).unobserve(),t(this,X).unobserve(),t(this,U).unobserve(),t(this,Y).unobserve(),t(this,pt).unobserve(),t(this,ft).unobserve(),t(this,G).unobserve(),t(this,R).unobserve(),t(this,Tt).unobserve(),t(this,Mt).unobserve(),t(this,At).unobserve(),t(this,Bt).unobserve(),t(this,se).unobserve(),t(this,K).unobserve(),t(this,_t).unobserve(),t(this,bt).unobserve(),t(this,N).unobserve(),t(this,mt).unobserve(),t(this,tt).unobserve(),t(this,gt).unobserve(),t(this,Ht).unobserve(),t(this,$t).unobserve(),t(this,Wt).unobserve(),o(this,u,_e).call(this)}}d=new WeakMap,It=new WeakMap,k=new WeakMap,Q=new WeakMap,X=new WeakMap,U=new WeakMap,Y=new WeakMap,pt=new WeakMap,ft=new WeakMap,G=new WeakMap,R=new WeakMap,Tt=new WeakMap,Mt=new WeakMap,At=new WeakMap,Bt=new WeakMap,se=new WeakMap,K=new WeakMap,_t=new WeakMap,bt=new WeakMap,N=new WeakMap,mt=new WeakMap,tt=new WeakMap,gt=new WeakMap,Ht=new WeakMap,$t=new WeakMap,Wt=new WeakMap,b=new WeakMap,ge=new WeakMap,l=new WeakMap,ye=new WeakMap,Ce=new WeakMap,w=new WeakMap,y=new WeakMap,I=new WeakMap,Z=new WeakMap,yt=new WeakMap,et=new WeakMap,z=new WeakMap,C=new WeakMap,ie=new WeakMap,Ct=new WeakMap,Ut=new WeakMap,Gt=new WeakMap,re=new WeakMap,st=new WeakMap,u=new WeakSet,fe=function(){o(this,u,ee).call(this),t(this,ge).assignedElements().forEach((s,e)=>{s instanceof HTMLElement&&t(this,l).push(new zs(s,e,this))}),t(this,b).style.transform="",this.dispatchEvent(new CustomEvent("sectionsChange",{composed:!0})),t(this,T).call(this),o(this,u,Dt).call(this)},ee=function(){t(this,l).forEach(s=>{s.destroy()}),r(this,l,[]),t(this,C).current=0,t(this,d).reset(),this.dispatchEvent(new CustomEvent("sectionsChange",{composed:!0}))},Ae=function(){t(this,Ut)||(r(this,Ut,!0),t(this,d).unsubscribe(t(this,ve)),t(this,d).unlistenAnimationFrame(),t(this,Z).disconnect(),t(this,yt).disconnect(),t(this,et).disconnect(),t(this,z).disconnect(),clearInterval(t(this,re)),t(this,st).unlistenAnimationFrame())},Be=function(){t(this,Ut)&&(r(this,Ut,!1),t(this,d).subscribe(t(this,ve)),t(this,Z).connect(),t(this,yt).connect(),t(this,et).connect(),t(this,K).current&&t(this,z).connect())},_e=function(){t(this,Gt)||(r(this,Gt,!0),pe.windowResizer.unsubscribe(t(this,T)),qe.elementResizer.unsubscribe(t(this,T)),t(this,d).reset(),o(this,u,Ae).call(this),t(this,b).style.transform="",t(this,U).current&&o(this,u,ee).call(this),Yt.scrollEntries.unregister(this))},He=function(){t(this,Gt)&&(r(this,Gt,!1),t(this,U).current&&o(this,u,fe).call(this),Yt.scrollEntries.register(this),pe.windowResizer.subscribe(t(this,T),be.RESIZE_ORDER.SCROLL),qe.elementResizer.subscribe(this,t(this,T)),o(this,u,Be).call(this))},T=new WeakMap,ve=new WeakMap,ss=function(s){t(this,R).current?(t(this,C).current=s%t(this,l).length,t(this,C).current=t(this,C).current<0?t(this,l).length+t(this,C).current:t(this,C).current):t(this,C).current=Ke.clamp(s,0,this.limit)},he=new WeakMap,Pe=new WeakMap,$e=function(s="current"){if(t(this,R).current&&t(this,l).length){const e=t(this,d)[s]%(t(this,y)+t(this,w)+t(this,I));return e<0?t(this,y)+e+t(this,w)+t(this,I):e}else return t(this,d)[s]},Dt=function(){if(t(this,N).current&&t(this,l).length){const s=t(this,C).current+t(this,mt).current;s===0?this.classList.add("start"):this.classList.remove("start"),s===this.limit?this.classList.add("end"):this.classList.remove("end");const e=t(this,G).current+t(this,tt).current;t(this,l).forEach((h,a)=>{const g=s-this.limit-1+t(this,tt).current,q=s+e,te=this.sections.length-q;a>=s&&a<q||a<=g?h.mark("current"):a>=q&&a<q+te/2||a<=g+e?h.mark("next"):h.mark("previous")})}},We=function(){let s=null,e=1/0;for(let h=0;h<t(this,l).length;h++){const a=Math.abs(t(this,l)[h].position-this.targetScrollValue);a<e&&(e=a,s=h)}return s!==null?t(this,l)[s]:null};customElements.get("e-scroll")||customElements.define("e-scroll",Ie);var we;class Te extends HTMLElement{constructor(){super(...arguments);i(this,we,null)}get scrollElement(){return t(this,we)}connectedCallback(){const s=Ls.findParentElement(this,Ie);s instanceof Ie?r(this,we,s):console.error(this,"e-scroll not found")}}we=new WeakMap;const Fs=Ne.createStylesheet({":host":{display:"inline-block",zIndex:"1",backgroundColor:Ye.aptechkaTheme.colorFont.var},':host([axis="y"])':{position:"absolute",right:"0",top:"0",width:"1vmin",height:"100%"},':host([axis="x"])':{position:"absolute",left:"0",bottom:"0",width:"100%",height:"1vmin"},".default-thumb":{backgroundColor:Ye.aptechkaTheme.colorMain.var,borderRadius:"1vmin",touchAction:"none"},"::slotted(*)":{touchAction:"none"}});var ne,D,it,rt,oe,ce,Kt,Ee,xe,Le;class is extends Te{constructor(){super();i(this,ne,null);i(this,D,null);i(this,it,!1);i(this,rt,0);i(this,oe,0);i(this,ce,0);i(this,Kt,()=>{r(this,it,this.offsetWidth>this.offsetHeight);const s=t(this,it)?this.offsetWidth:this.offsetHeight;r(this,rt,s/((this.scrollElement.scrollSize+this.scrollElement.viewportSize)/s)),r(this,rt,Math.max(t(this,rt),30)),t(this,it)?(t(this,D).style.width=t(this,rt)+"px",t(this,D).style.height="100%"):(t(this,D).style.width="100%",t(this,D).style.height=t(this,rt)+"px"),r(this,oe,s-t(this,rt)),this.scrollElement.scrollSize||(this.style.display="none")});i(this,Ee,()=>{r(this,ce,this.scrollElement.currentProgress*t(this,oe)),t(this,it)?t(this,D).style.transform=`translate3d(${t(this,ce)}px, 0px, 0px)`:t(this,D).style.transform=`translate3d(0px, ${t(this,ce)}px, 0px)`});i(this,xe,()=>{this.setAttribute("axis",this.scrollElement.axisCSSProperty.current)});i(this,Le,s=>{document.documentElement.classList.add("grabbing"),xs.setupDrag(a=>{const g=t(this,it)?a.x:a.y,q=this.scrollElement.distance/t(this,oe),te=(g-h)*q;this.scrollElement.setPosition(e+te)},()=>{document.documentElement.classList.remove("grabbing")});const e=this.scrollElement.targetScrollValue,h=t(this,it)?s.x:s.y});Ge.isBrowser&&(this.attachShadow({mode:"open"}).adoptedStyleSheets.push(Fs),W.element(this,{slot:"static","drag-dead-zone":"",children:[W.slot({ref:e=>r(this,ne,e),children:W.div({class:"default-thumb"})})]}))}get thumbElement(){return t(this,D)}connectedCallback(){super.connectedCallback();const s=t(this,ne).assignedElements()[0]||t(this,ne).firstElementChild;r(this,D,s),t(this,D).addEventListener("pointerdown",t(this,Le)),pe.windowResizer.subscribe(t(this,Kt),be.RESIZE_ORDER.SCROLL+1),qe.elementResizer.subscribe(this,t(this,Kt)),this.scrollElement.onScroll(t(this,Ee)),this.scrollElement.axisCSSProperty.subscribe(t(this,xe))}disconnectedCallback(){t(this,D).removeEventListener("pointerdown",t(this,Le)),pe.windowResizer.unsubscribe(t(this,Kt)),qe.elementResizer.unsubscribe(t(this,Kt)),this.scrollElement.offScroll(t(this,Ee)),this.scrollElement.axisCSSProperty.unsubscribe(t(this,xe))}}ne=new WeakMap,D=new WeakMap,it=new WeakMap,rt=new WeakMap,oe=new WeakMap,ce=new WeakMap,Kt=new WeakMap,Ee=new WeakMap,xe=new WeakMap,Le=new WeakMap;customElements.get("e-scrollbar")||customElements.define("e-scrollbar",is);const ks=Ne.createStylesheet({button:{all:"inherit"}});class rs extends Te{constructor(){super(),this.attachShadow({mode:"open"}).adoptedStyleSheets.push(ks),Ge.isBrowser&&W.element(this,{children:[W.button({onClick:()=>{this.handleClick()},children:[W.slot()]})]})}}class hs extends rs{handleClick(){const n=this.getAttribute("index"),s=this.getAttribute("behaviour");this.scrollElement.scrollToSection(parseInt(n||"0"),{behaviour:s})}}customElements.get("e-scroll-set-button")||customElements.define("e-scroll-set-button",hs);class ns extends rs{handleClick(){const n=this.getAttribute("step"),s=this.getAttribute("behaviour");this.scrollElement.shiftSections(parseInt(n||"1"),{behaviour:s})}}customElements.get("e-scroll-step-button")||customElements.define("e-scroll-step-button",ns);var ht,vt,le,ze,Ve,ue;class Rs{constructor(n,s,e){i(this,ht);i(this,vt);i(this,le);i(this,ze);i(this,Ve,()=>{t(this,vt).scrollToSection(t(this,le),{behaviour:t(this,ze)})});i(this,ue,()=>{t(this,ht).classList.toggle("current",t(this,vt).counter.current===t(this,le))});r(this,ht,document.createElement("button")),r(this,vt,n),r(this,ze,e),r(this,le,s),t(this,ht).addEventListener("click",t(this,Ve)),t(this,vt).counter.subscribe(t(this,ue)),t(this,ue).call(this)}get element(){return t(this,ht)}destroy(){t(this,ht).removeEventListener("click",t(this,Ve)),t(this,vt).counter.unsubscribe(t(this,ue)),t(this,ht).remove()}}ht=new WeakMap,vt=new WeakMap,le=new WeakMap,ze=new WeakMap,Ve=new WeakMap,ue=new WeakMap;var Pt,ae;class os extends Te{constructor(){super(...arguments);i(this,Pt,[]);i(this,ae,es.debounce(()=>{t(this,Pt).forEach(s=>s.destroy()),r(this,Pt,[]);for(let s=0;s<this.scrollElement.sections.length;s++){const e=new Rs(this.scrollElement,s,this.getAttribute("behaviour")||"smooth");this.appendChild(e.element),t(this,Pt).push(e)}},0))}connectedCallback(){super.connectedCallback(),this.scrollElement.addEventListener("sectionsChange",t(this,ae)),t(this,ae).call(this)}disconnectedCallback(){this.scrollElement.removeEventListener("sectionsChange",t(this,ae)),t(this,Pt).forEach(s=>s.destroy()),r(this,Pt,[])}}Pt=new WeakMap,ae=new WeakMap;customElements.get("e-scroll-bullet-buttons")||customElements.define("e-scroll-bullet-buttons",os);var Nt,Zt,jt,Jt,wt,Et,xt,Lt,V,M,A,B,zt,E,nt,ot,ct,lt,ut,x,_,H,at,St,j,Fe,p,Qt,Xt,ke,L,Vt,O,F,$,Se,Ft,P,f,ls,us,as,Ss,ds,ps,Re,de,Ot,fs,bs,Ue,De;class cs extends Te{constructor(){super();i(this,f);i(this,Nt,new c.CSSProperty(this,"--damping",20));i(this,Zt,new c.CSSProperty(this,"--mass",0));i(this,jt,new c.CSSProperty(this,"--stiffness",0));i(this,Jt,new c.CSSProperty(this,"--target",""));i(this,wt,new c.CSSProperty(this,"--disabled",!1));i(this,Et,new c.CSSProperty(this,"--distance-offset",0,{rawValueCheck:!1}));i(this,xt,new c.CSSProperty(this,"--start-offset",0,{rawValueCheck:!1}));i(this,Lt,new c.CSSProperty(this,"--capture-once",!1));i(this,V,new c.CSSProperty(this,"--captured",""));i(this,M,new c.CSSProperty(this,"--released",""));i(this,A,new c.CSSProperty(this,"--captured-from-start",""));i(this,B,new c.CSSProperty(this,"--captured-from-finish",""));i(this,zt,new c.CSSProperty(this,"--released-from-start",""));i(this,E,new c.CSSProperty(this,"--released-from-finish",""));i(this,nt,new c.CSSProperty(this,"--passed-var",""));i(this,ot,new c.CSSProperty(this,"--progress-var",""));i(this,ct,new c.CSSProperty(this,"--distance-var",""));i(this,lt,new c.CSSProperty(this,"--start-var",""));i(this,ut,new c.CSSProperty(this,"--finish-var",""));i(this,x,new Rt.Store(!1));i(this,_,new Rt.Store(!1));i(this,H,new Rt.Store(!1));i(this,at,new Rt.Store(!1));i(this,St,new Rt.Store(!1));i(this,j,new Rt.Store(!1));i(this,Fe,[]);i(this,p,this);i(this,Qt,0);i(this,Xt,0);i(this,ke,0);i(this,L,new ts.Damped(0,{order:be.TICK_ORDER.SCROLL-1,min:0,max:1}));i(this,Vt,0);i(this,O,0);i(this,F,0);i(this,$,0);i(this,Se,!1);i(this,Ft,!1);i(this,P,!0);i(this,Re,()=>{t(this,P)||(this.resize(),t(this,de).call(this))});i(this,de,()=>{!t(this,P)&&t(this,Se)&&this.tick()});i(this,De,es.debounce(()=>{const s=Yt.scrollEntries.getAll(this).reverse();let e=0;s.forEach((h,a)=>{h.element===this.scrollElement&&(e=a)}),r(this,Fe,s.slice(e+1))},0))}get distanceOffsetCSSProperty(){return t(this,Et)}get startOffsetCSSProperty(){return t(this,xt)}get captureOnceCSSProperty(){return t(this,Lt)}get capturedCSSProperty(){return t(this,V)}get releasedCSSProperty(){return t(this,M)}get capturedFromStartCSSProperty(){return t(this,A)}get capturedFromFinishCSSProperty(){return t(this,B)}get releasedFromStartCSSProperty(){return t(this,zt)}get releasedFromFinishCSSProperty(){return t(this,E)}get passedVarCSSProperty(){return t(this,nt)}get progressVarCSSProperty(){return t(this,ot)}get distanceVarCSSProperty(){return t(this,ct)}get startVarCSSProperty(){return t(this,lt)}get finishVarCSSProperty(){return t(this,ut)}get disabledCSSProperty(){return t(this,wt)}get dampingCSSProperty(){return t(this,Nt)}get massCSSProperty(){return t(this,Zt)}get stiffnessCSSProperty(){return t(this,jt)}get targetCSSProperty(){return t(this,Jt)}get isCaptured(){return t(this,x)}get isReleased(){return t(this,_)}get isCapturedFromStart(){return t(this,H)}get isReleasedFromStart(){return t(this,at)}get isCapturedFromFinish(){return t(this,St)}get isReleasedFromFinish(){return t(this,j)}get directionPosition(){return t(this,Qt)}get directionSize(){return t(this,Xt)}get passed(){return t(this,L)}get progress(){return t(this,Vt)}get start(){return t(this,O)}get finish(){return t(this,$)}get distance(){return t(this,F)}get isCapturedOnce(){return t(this,Ft)}get isDisabled(){return t(this,P)}resize(){r(this,Xt,this.scrollElement.vertical?this.offsetHeight:this.offsetWidth),r(this,Qt,this.scrollElement.vertical?kt.getCumulativeOffsetTop(this,this.scrollElement):kt.getCumulativeOffsetLeft(this,this.scrollElement)),r(this,O,this.getStart()),r(this,F,this.getDistance()),r(this,O,t(this,O)+t(this,xt).current),r(this,F,t(this,F)+t(this,Et).current),r(this,$,t(this,O)+t(this,F)),this.scrollElement.currentScrollValue>t(this,$)&&!t(this,x).current&&!t(this,_).current&&(t(this,x).current=!0),this.setVar(t(this,lt).current,t(this,O)),this.setVar(t(this,ut).current,t(this,$)),this.setVar(t(this,ct).current,t(this,F)),t(this,L).max=t(this,F),r(this,Se,!0)}tick(){let s=this.scrollElement.currentScrollValue;t(this,Fe).forEach(h=>{s+=h.value}),t(this,L).set(s-t(this,O));const e=Math.round(s);t(this,x).current&&(e>t(this,O)?t(this,H).current||o(this,f,as).call(this):t(this,H).current&&!t(this,at).current&&o(this,f,ds).call(this),e<t(this,$)?t(this,j).current&&!t(this,St).current&&o(this,f,Ss).call(this):t(this,H).current&&!t(this,j).current&&o(this,f,ps).call(this)),e>t(this,O)&&e<t(this,$)?t(this,x).current||o(this,f,ls).call(this):t(this,x).current&&(t(this,L).set(Ke.step(t(this,F)/2,t(this,L).current,0,t(this,F))),o(this,f,us).call(this)),t(this,Ft)&&t(this,Lt).current&&(t(this,V).current&&t(this,p).classList.add(t(this,V).current),r(this,P,!0))}disable(){this.style.cssText="",r(this,Qt,0),r(this,Xt,0),t(this,L).reset(),r(this,Vt,0),r(this,O,0),r(this,F,0),r(this,$,0),r(this,Se,!1),t(this,x).current=!1,t(this,_).current=!1,t(this,H).current=!1,t(this,at).current=!1,t(this,St).current=!1,t(this,j).current=!1,r(this,Ft,!1),r(this,P,!0),o(this,f,Ue).call(this)}enable(){r(this,P,!1)}connectedCallback(){super.connectedCallback(),t(this,Nt).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,V).observe(),t(this,M).observe(),t(this,A).observe(),t(this,B).observe(),t(this,zt).observe(),t(this,E).observe(),t(this,nt).observe(),t(this,ot).observe(),t(this,ct).observe(),t(this,lt).observe(),t(this,ut).observe();let s=!1;this.scrollElement.addEventListener("sectionsChange",t(this,De)),t(this,De).call(this),t(this,wt).current||this.enable(),t(this,Nt).subscribe(e=>{t(this,L).damping=e.current}),t(this,Zt).subscribe(e=>{t(this,L).mass=e.current}),t(this,jt).subscribe(e=>{t(this,L).stiffness=e.current}),t(this,Jt).subscribe(e=>{e.previous&&o(this,f,Ue).call(this),e.current?e.current==="parent"?r(this,p,this.parentElement||this):r(this,p,document.querySelector(e.current)||this):r(this,p,this)}),t(this,wt).subscribe(e=>{e.current&&!e.previous?this.disable():!e.current&&e.previous&&(this.resize(),this.enable())}),t(this,xt).subscribe(()=>{s&&!t(this,P)&&this.resize()}),t(this,Et).subscribe(()=>{s&&!t(this,P)&&this.resize()}),t(this,V).subscribe(e=>{o(this,f,Ot).call(this,e)}),t(this,A).subscribe(e=>{o(this,f,Ot).call(this,e)}),t(this,B).subscribe(e=>{o(this,f,Ot).call(this,e)}),t(this,M).subscribe(e=>{o(this,f,Ot).call(this,e)}),t(this,zt).subscribe(e=>{o(this,f,Ot).call(this,e)}),t(this,E).subscribe(e=>{o(this,f,Ot).call(this,e)}),t(this,Lt).subscribe(e=>{t(this,P)||!e.current&&e.previous&&(this.resize(),this.enable())}),t(this,nt).subscribe(e=>{t(this,P)||(this.removeVar(e.previous),this.setVar(e.current,this.passed.current))}),t(this,ot).subscribe(e=>{t(this,P)||(this.removeVar(e.previous),this.setVar(e.current,t(this,Vt)))}),t(this,lt).subscribe(e=>{t(this,P)||(this.removeVar(e.previous),this.setVar(e.current,t(this,O)))}),t(this,ut).subscribe(e=>{t(this,P)||(this.removeVar(e.previous),this.setVar(e.current,t(this,$)))}),t(this,ct).subscribe(e=>{t(this,P)||(this.removeVar(e.previous),this.setVar(e.current,t(this,F)))}),t(this,L).subscribe(e=>{r(this,Vt,t(this,L).current/t(this,F)||0),this.setVar(t(this,nt).current,t(this,L).current.toFixed(6)),this.setVar(t(this,ot).current,t(this,Vt).toFixed(6))}),pe.windowResizer.subscribe(t(this,Re),be.RESIZE_ORDER.SEGMENT),this.scrollElement.onScroll(t(this,de)),s=!0}disconnectedCallback(){pe.windowResizer.unsubscribe(t(this,Re)),this.scrollElement.offScroll(t(this,de)),t(this,Nt).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,V).close(),t(this,M).close(),t(this,A).close(),t(this,B).close(),t(this,zt).close(),t(this,E).close(),t(this,nt).close(),t(this,ot).close(),t(this,ct).close(),t(this,lt).close(),t(this,ut).close(),t(this,x).close(),t(this,_).close(),t(this,H).close(),t(this,at).close(),t(this,St).close(),t(this,j).close(),this.disable()}removeVar(s){s&&t(this,p).style.removeProperty(`--${s}`)}setVar(s,e){s&&t(this,p).style.setProperty(`--${s}`,e.toString())}getDistance(){return t(this,Xt)+t(this,ke)}getStart(){return t(this,Qt)-t(this,ke)}}Nt=new WeakMap,Zt=new WeakMap,jt=new WeakMap,Jt=new WeakMap,wt=new WeakMap,Et=new WeakMap,xt=new WeakMap,Lt=new WeakMap,V=new WeakMap,M=new WeakMap,A=new WeakMap,B=new WeakMap,zt=new WeakMap,E=new WeakMap,nt=new WeakMap,ot=new WeakMap,ct=new WeakMap,lt=new WeakMap,ut=new WeakMap,x=new WeakMap,_=new WeakMap,H=new WeakMap,at=new WeakMap,St=new WeakMap,j=new WeakMap,Fe=new WeakMap,p=new WeakMap,Qt=new WeakMap,Xt=new WeakMap,ke=new WeakMap,L=new WeakMap,Vt=new WeakMap,O=new WeakMap,F=new WeakMap,$=new WeakMap,Se=new WeakMap,Ft=new WeakMap,P=new WeakMap,f=new WeakSet,ls=function(){t(this,x).current=!0,t(this,_).current=!1,r(this,Ft,!0),t(this,M).current&&t(this,p).classList.remove(t(this,M).current),t(this,E).current&&t(this,p).classList.remove(t(this,E).current),t(this,E).current&&t(this,p).classList.remove(t(this,E).current),t(this,V).current&&t(this,p).classList.add(t(this,V).current)},us=function(){t(this,_).current=!0,t(this,x).current=!1,r(this,Ft,!0),t(this,V).current&&t(this,p).classList.remove(t(this,V).current),t(this,A).current&&t(this,p).classList.remove(t(this,A).current),t(this,B).current&&t(this,p).classList.remove(t(this,B).current),t(this,M).current&&t(this,p).classList.add(t(this,M).current)},as=function(){t(this,x).current=!0,t(this,H).current=!0,t(this,at).current=!1,t(this,A).current&&t(this,p).classList.add(t(this,A).current)},Ss=function(){t(this,x).current=!0,t(this,St).current=!0,t(this,j).current=!1,t(this,B).current&&t(this,p).classList.add(t(this,B).current)},ds=function(){t(this,_).current=!0,t(this,at).current=!0,t(this,H).current=!1,t(this,E).current&&t(this,p).classList.add(t(this,E).current)},ps=function(){t(this,_).current=!0,t(this,j).current=!0,t(this,St).current=!1,t(this,E).current&&t(this,p).classList.add(t(this,E).current)},Re=new WeakMap,de=new WeakMap,Ot=function(s){if(t(this,P)){s.previous&&t(this,p).classList.remove(s.previous),s.current&&t(this,p).classList.remove(s.current);return}s.current&&t(this,x).current?(s.previous&&t(this,p).classList.remove(s.previous),t(this,p).classList.add(s.current)):!s.current&&s.previous&&t(this,p).classList.remove(s.previous)},fs=function(...s){s.forEach(e=>{e&&t(this,p).classList.remove(e)})},bs=function(...s){s.forEach(e=>{e&&t(this,p).style.removeProperty(`--${e}`)})},Ue=function(){o(this,f,fs).call(this,t(this,V).current,t(this,A).current,t(this,B).current,t(this,M).current,t(this,zt).current,t(this,E).current),o(this,f,bs).call(this,t(this,nt).current,t(this,ot).current,t(this,ct).current,t(this,lt).current,t(this,ut).current)},De=new WeakMap;customElements.get("e-scroll-segment")||customElements.define("e-scroll-segment",cs);exports.ScrollBulletButtonsElement=os;exports.ScrollElement=Ie;exports.ScrollSegmentElement=cs;exports.ScrollSetButtonElement=hs;exports.ScrollStepButtonElement=ns;exports.ScrollbarElement=is;