aptechka 0.12.0 → 0.13.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (432) hide show
  1. package/lib/Animation-De9aUv3b.cjs +1 -0
  2. package/{client-lib/Animation-uimN7sdT.js → lib/Animation-NAGXiFv5.js} +23 -28
  3. package/lib/Composed-C_4slJQ6.cjs +1 -0
  4. package/lib/Composed-CfWa-69I.js +31 -0
  5. package/lib/Damped-DYJ6Z0xo.cjs +1 -0
  6. package/lib/Damped-DbJKrUIf.js +53 -0
  7. package/lib/Derived-BIBU-y7Z.cjs +1 -0
  8. package/lib/Derived-Vo_RsJfi.js +23 -0
  9. package/{client-lib/SourceManager--L_rA28b.js → lib/SourceManager-B6wZpXUZ.js} +26 -30
  10. package/lib/SourceManager-CfHcGLUa.cjs +1 -0
  11. package/lib/Store-C46i0nvr.js +137 -0
  12. package/lib/Store-npaZHvX4.cjs +1 -0
  13. package/lib/Tweened-BkkD9s4n.cjs +1 -0
  14. package/lib/Tweened-DOSHLCZa.js +44 -0
  15. package/lib/Viewport-B55BvLsV.js +123 -0
  16. package/lib/Viewport-Cv4TRGiv.cjs +1 -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-DNG2b5X4.js → lib/createStylesheet-COAZH1Mw.js} +1 -1
  34. package/{client-lib/createStylesheet-BqjaCUhm.cjs → lib/createStylesheet-Csfmh-MH.cjs} +1 -1
  35. package/lib/css-property/index.cjs +1 -0
  36. package/lib/css-property/index.js +58 -0
  37. package/lib/css-unit-parser/index.cjs +8 -0
  38. package/lib/css-unit-parser/index.js +31 -0
  39. package/{client-lib → lib}/dev/index.cjs +1 -1
  40. package/{client-lib → lib}/dev/index.js +1 -1
  41. package/{client-lib → lib}/device/index.cjs +1 -1
  42. package/{client-lib → lib}/device/index.js +1 -1
  43. package/{client-lib → lib}/element-constructor/index.cjs +1 -1
  44. package/{client-lib → lib}/element-constructor/index.js +2 -2
  45. package/lib/element-resizer/index.cjs +1 -0
  46. package/{client-lib → lib}/element-resizer/index.js +12 -16
  47. package/lib/en3/helpers/index.cjs +1 -0
  48. package/{client-lib → lib}/en3/helpers/index.js +612 -646
  49. package/{client-lib → lib}/en3/index.cjs +1 -1
  50. package/lib/en3/index.js +6 -0
  51. package/{client-lib → lib}/en3/libs/index.js +1 -2
  52. package/lib/en3/loaders/index.cjs +1 -0
  53. package/{client-lib → lib}/en3/loaders/index.js +152 -167
  54. package/lib/en3/misc/index.cjs +10 -0
  55. package/{client-lib → lib}/en3/misc/index.js +18 -23
  56. package/{client-lib → lib}/en3/utils/index.cjs +1 -1
  57. package/{client-lib → lib}/en3/utils/index.js +2 -2
  58. package/lib/en3-C1fLmsjs.cjs +8 -0
  59. package/{client-lib/en3-THFHEReu.js → lib/en3-x-Ki30MY.js} +59 -64
  60. package/{client-lib → lib}/image/index.cjs +1 -1
  61. package/{client-lib → lib}/image/index.js +1 -1
  62. package/lib/index-BuAuBz2_.cjs +9 -0
  63. package/{client-lib/index-BuvwT3dS.js → lib/index-CenF0JbH.js} +35 -40
  64. package/lib/intersector/index.cjs +1 -0
  65. package/{client-lib → lib}/intersector/index.js +12 -16
  66. package/lib/ladder/index.cjs +1 -0
  67. package/{client-lib → lib}/ladder/index.js +20 -25
  68. package/lib/layout-box/index.cjs +1 -0
  69. package/lib/layout-box/index.js +318 -0
  70. package/lib/loading/index.cjs +1 -0
  71. package/{client-lib → lib}/loading/index.js +17 -21
  72. package/lib/media/index.cjs +1 -0
  73. package/lib/media/index.js +26 -0
  74. package/lib/modal/index.cjs +1 -0
  75. package/{client-lib → lib}/modal/index.js +22 -26
  76. package/lib/morph/index.cjs +1 -0
  77. package/lib/morph/index.js +225 -0
  78. package/lib/notifier/index.cjs +1 -0
  79. package/lib/notifier/index.js +36 -0
  80. package/lib/pointer/index.cjs +1 -0
  81. package/{client-lib → lib}/pointer/index.js +37 -41
  82. package/lib/popover/index.cjs +1 -0
  83. package/{client-lib → lib}/popover/index.js +71 -79
  84. package/lib/router/index.cjs +1 -0
  85. package/{client-lib → lib}/router/index.js +54 -60
  86. package/lib/scroll/index.cjs +1 -0
  87. package/lib/scroll/index.js +1131 -0
  88. package/lib/scroll-entries/index.cjs +1 -0
  89. package/{client-lib → lib}/scroll-entries/index.js +11 -15
  90. package/{client-lib → lib}/select/index.cjs +1 -1
  91. package/{client-lib → lib}/select/index.js +1 -1
  92. package/lib/sequence/index.cjs +1 -0
  93. package/{client-lib → lib}/sequence/index.js +26 -30
  94. package/lib/slicer/index.cjs +11 -0
  95. package/{client-lib → lib}/slicer/index.js +27 -31
  96. package/lib/source/index.cjs +5 -0
  97. package/{client-lib → lib}/source/index.js +19 -24
  98. package/lib/store/index.cjs +1 -0
  99. package/lib/store/index.js +53 -0
  100. package/lib/tags-6_ETuR75.cjs +1 -0
  101. package/lib/tags-BL3kQp9o.js +833 -0
  102. package/{client-lib → lib}/theme/index.cjs +1 -1
  103. package/{client-lib → lib}/theme/index.js +2 -2
  104. package/lib/ticker/index.cjs +1 -0
  105. package/lib/ticker/index.js +119 -0
  106. package/{client-lib/traverseMaterials-BtBXV88O.cjs → lib/traverseMaterials-CD_3_56D.cjs} +1 -1
  107. package/{client-lib/traverseMaterials-BKSwwNmo.js → lib/traverseMaterials-mGC2_FkG.js} +1 -1
  108. package/lib/tweaker/index.cjs +10 -0
  109. package/{client-lib → lib}/tweaker/index.js +265 -276
  110. package/{client-lib → lib}/utils/index.js +1 -2
  111. package/lib/video/index.cjs +1 -0
  112. package/{client-lib → lib}/video/index.js +13 -17
  113. package/lib/window-resizer/index.cjs +1 -0
  114. package/lib/window-resizer/index.js +42 -0
  115. package/package.json +344 -379
  116. package/client-lib/Animation-BInSRYNr.cjs +0 -1
  117. package/client-lib/Composed-Fa7owymK.js +0 -35
  118. package/client-lib/Composed-Iihn8fT4.cjs +0 -1
  119. package/client-lib/Damped-Da3EnNN4.cjs +0 -1
  120. package/client-lib/Damped-yrNXlkDE.js +0 -57
  121. package/client-lib/Derived-CNbsNMn_.cjs +0 -1
  122. package/client-lib/Derived-rInkx3e4.js +0 -60
  123. package/client-lib/SourceManager-D6D2LVKf.cjs +0 -1
  124. package/client-lib/Store-Cr3VaD9G.cjs +0 -1
  125. package/client-lib/Store-Qr3SNOSf.js +0 -152
  126. package/client-lib/Tweened-CjgvoOwL.js +0 -48
  127. package/client-lib/Tweened-DksN-Rz6.cjs +0 -1
  128. package/client-lib/Viewport-BBYt1Ivy.cjs +0 -1
  129. package/client-lib/Viewport-Cgtq2I_K.js +0 -127
  130. package/client-lib/accordion/AccordionElement.d.ts +0 -30
  131. package/client-lib/accordion/index.cjs +0 -1
  132. package/client-lib/accordion/index.d.ts +0 -1
  133. package/client-lib/accordion/index.js +0 -176
  134. package/client-lib/animation/Animation.d.ts +0 -35
  135. package/client-lib/animation/Damped.d.ts +0 -19
  136. package/client-lib/animation/Tweened.d.ts +0 -15
  137. package/client-lib/animation/index.d.ts +0 -3
  138. package/client-lib/animation/index.js +0 -8
  139. package/client-lib/attribute/index.cjs +0 -1
  140. package/client-lib/attribute/index.d.ts +0 -15
  141. package/client-lib/canvas/index.cjs +0 -1
  142. package/client-lib/canvas/index.d.ts +0 -35
  143. package/client-lib/canvas/index.js +0 -119
  144. package/client-lib/checkbox/index.cjs +0 -1
  145. package/client-lib/checkbox/index.d.ts +0 -14
  146. package/client-lib/class-linked-status/index.cjs +0 -1
  147. package/client-lib/class-linked-status/index.d.ts +0 -12
  148. package/client-lib/class-linked-status/index.js +0 -49
  149. package/client-lib/connector/index.cjs +0 -1
  150. package/client-lib/connector/index.d.ts +0 -15
  151. package/client-lib/controls/AutoplayControls.d.ts +0 -17
  152. package/client-lib/controls/Controls.d.ts +0 -9
  153. package/client-lib/controls/DragControls.d.ts +0 -16
  154. package/client-lib/controls/KeyboardControls.d.ts +0 -14
  155. package/client-lib/controls/WheelControls.d.ts +0 -19
  156. package/client-lib/controls/index.cjs +0 -1
  157. package/client-lib/controls/index.d.ts +0 -5
  158. package/client-lib/controls/index.js +0 -213
  159. package/client-lib/counter/index.d.ts +0 -6
  160. package/client-lib/css-property/index.cjs +0 -1
  161. package/client-lib/css-property/index.d.ts +0 -17
  162. package/client-lib/css-property/index.js +0 -62
  163. package/client-lib/css-unit-parser/index.cjs +0 -8
  164. package/client-lib/css-unit-parser/index.d.ts +0 -6
  165. package/client-lib/css-unit-parser/index.js +0 -36
  166. package/client-lib/css-value-parser/index.d.ts +0 -6
  167. package/client-lib/dev/index.d.ts +0 -1
  168. package/client-lib/device/Device.d.ts +0 -19
  169. package/client-lib/device/Viewport.d.ts +0 -29
  170. package/client-lib/device/index.d.ts +0 -2
  171. package/client-lib/element-constructor/ElementConstructor.d.ts +0 -75
  172. package/client-lib/element-constructor/createStylesheet.d.ts +0 -3
  173. package/client-lib/element-constructor/createTheme.d.ts +0 -13
  174. package/client-lib/element-constructor/index.d.ts +0 -4
  175. package/client-lib/element-constructor/knownSvgTags.d.ts +0 -1
  176. package/client-lib/element-constructor/tags.d.ts +0 -119
  177. package/client-lib/element-resizer/index.cjs +0 -1
  178. package/client-lib/element-resizer/index.d.ts +0 -10
  179. package/client-lib/en3/core/En3Raycaster.d.ts +0 -21
  180. package/client-lib/en3/core/En3View.d.ts +0 -40
  181. package/client-lib/en3/core/en3.d.ts +0 -39
  182. package/client-lib/en3/core/en3Cache.d.ts +0 -4
  183. package/client-lib/en3/helpers/En3ComposerManager.d.ts +0 -5
  184. package/client-lib/en3/helpers/En3GridHelper.d.ts +0 -8
  185. package/client-lib/en3/helpers/En3Helpers.d.ts +0 -5
  186. package/client-lib/en3/helpers/En3Object3dManager.d.ts +0 -14
  187. package/client-lib/en3/helpers/En3OrbitControls.d.ts +0 -8
  188. package/client-lib/en3/helpers/En3ParametersManager.d.ts +0 -16
  189. package/client-lib/en3/helpers/En3TransformControls.d.ts +0 -8
  190. package/client-lib/en3/helpers/index.cjs +0 -1
  191. package/client-lib/en3/helpers/index.d.ts +0 -2
  192. package/client-lib/en3/index.d.ts +0 -3
  193. package/client-lib/en3/index.js +0 -6
  194. package/client-lib/en3/libs/MeshoptDecoder.d.ts +0 -1
  195. package/client-lib/en3/libs/index.d.ts +0 -1
  196. package/client-lib/en3/loaders/En3GLTFLoader.d.ts +0 -12
  197. package/client-lib/en3/loaders/En3TextureLoader.d.ts +0 -8
  198. package/client-lib/en3/loaders/index.cjs +0 -1
  199. package/client-lib/en3/loaders/index.d.ts +0 -3
  200. package/client-lib/en3/loaders/loaders.d.ts +0 -13
  201. package/client-lib/en3/misc/En3ModifiedMaterial.d.ts +0 -33
  202. package/client-lib/en3/misc/En3SourceManager.d.ts +0 -32
  203. package/client-lib/en3/misc/index.cjs +0 -10
  204. package/client-lib/en3/misc/index.d.ts +0 -2
  205. package/client-lib/en3/objects/En3Clip.d.ts +0 -15
  206. package/client-lib/en3/objects/En3ClipHelpers.d.ts +0 -6
  207. package/client-lib/en3/objects/En3GLTF.d.ts +0 -11
  208. package/client-lib/en3/objects/En3Image.d.ts +0 -8
  209. package/client-lib/en3/objects/En3ImageLike.d.ts +0 -25
  210. package/client-lib/en3/objects/En3SourceConsumer.d.ts +0 -5
  211. package/client-lib/en3/objects/En3Video.d.ts +0 -13
  212. package/client-lib/en3/objects/fluid/Advection.d.ts +0 -30
  213. package/client-lib/en3/objects/fluid/Divergence.d.ts +0 -23
  214. package/client-lib/en3/objects/fluid/En3Fluid.d.ts +0 -16
  215. package/client-lib/en3/objects/fluid/En3FluidElement.d.ts +0 -13
  216. package/client-lib/en3/objects/fluid/En3FluidPointer.d.ts +0 -13
  217. package/client-lib/en3/objects/fluid/ExternalForce.d.ts +0 -19
  218. package/client-lib/en3/objects/fluid/Poisson.d.ts +0 -24
  219. package/client-lib/en3/objects/fluid/Pressure.d.ts +0 -26
  220. package/client-lib/en3/objects/fluid/ShaderPass.d.ts +0 -24
  221. package/client-lib/en3/objects/fluid/Simulation.d.ts +0 -33
  222. package/client-lib/en3/objects/fluid/Viscous.d.ts +0 -30
  223. package/client-lib/en3/objects/fluid/index.d.ts +0 -3
  224. package/client-lib/en3/objects/index.d.ts +0 -7
  225. package/client-lib/en3/utils/coverTexture.d.ts +0 -7
  226. package/client-lib/en3/utils/dispose.d.ts +0 -3
  227. package/client-lib/en3/utils/getCurrentViewport.d.ts +0 -9
  228. package/client-lib/en3/utils/index.d.ts +0 -5
  229. package/client-lib/en3/utils/traverseMaterials.d.ts +0 -3
  230. package/client-lib/en3/utils/traverseMeshes.d.ts +0 -3
  231. package/client-lib/en3-CBBYE8rb.cjs +0 -8
  232. package/client-lib/image/index.d.ts +0 -11
  233. package/client-lib/index-Ctct2GyP.cjs +0 -9
  234. package/client-lib/intersector/index.cjs +0 -1
  235. package/client-lib/intersector/index.d.ts +0 -10
  236. package/client-lib/ladder/index.cjs +0 -1
  237. package/client-lib/ladder/index.d.ts +0 -24
  238. package/client-lib/layout-box/index.cjs +0 -1
  239. package/client-lib/layout-box/index.d.ts +0 -96
  240. package/client-lib/layout-box/index.js +0 -326
  241. package/client-lib/libs/path-data-polyfill.d.ts +0 -1
  242. package/client-lib/loading/index.cjs +0 -1
  243. package/client-lib/loading/index.d.ts +0 -39
  244. package/client-lib/media/index.cjs +0 -1
  245. package/client-lib/media/index.d.ts +0 -12
  246. package/client-lib/media/index.js +0 -30
  247. package/client-lib/modal/ModalElement.d.ts +0 -13
  248. package/client-lib/modal/index.cjs +0 -1
  249. package/client-lib/modal/index.d.ts +0 -1
  250. package/client-lib/morph/Link.d.ts +0 -7
  251. package/client-lib/morph/Morph.d.ts +0 -37
  252. package/client-lib/morph/index.cjs +0 -1
  253. package/client-lib/morph/index.d.ts +0 -1
  254. package/client-lib/morph/index.js +0 -235
  255. package/client-lib/notifier/index.cjs +0 -1
  256. package/client-lib/notifier/index.d.ts +0 -8
  257. package/client-lib/notifier/index.js +0 -40
  258. package/client-lib/order/index.d.ts +0 -22
  259. package/client-lib/pointer/Pointer.d.ts +0 -23
  260. package/client-lib/pointer/PointerElement.d.ts +0 -14
  261. package/client-lib/pointer/index.cjs +0 -1
  262. package/client-lib/pointer/index.d.ts +0 -2
  263. package/client-lib/popover/PopoverButtonElement.d.ts +0 -15
  264. package/client-lib/popover/PopoverElement.d.ts +0 -26
  265. package/client-lib/popover/index.cjs +0 -1
  266. package/client-lib/popover/index.d.ts +0 -2
  267. package/client-lib/router/Link.d.ts +0 -7
  268. package/client-lib/router/Route.d.ts +0 -21
  269. package/client-lib/router/Router.d.ts +0 -41
  270. package/client-lib/router/index.cjs +0 -1
  271. package/client-lib/router/index.d.ts +0 -2
  272. package/client-lib/scroll/ScrollBulletButtonsElement.d.ts +0 -12
  273. package/client-lib/scroll/ScrollButtonElement.d.ts +0 -6
  274. package/client-lib/scroll/ScrollElement.d.ts +0 -82
  275. package/client-lib/scroll/ScrollSection.d.ts +0 -23
  276. package/client-lib/scroll/ScrollSegmentElement.d.ts +0 -63
  277. package/client-lib/scroll/ScrollSetButtonElement.d.ts +0 -10
  278. package/client-lib/scroll/ScrollStepButtonElement.d.ts +0 -10
  279. package/client-lib/scroll/ScrollUserElement.d.ts +0 -7
  280. package/client-lib/scroll/ScrollbarElement.d.ts +0 -14
  281. package/client-lib/scroll/index.cjs +0 -1
  282. package/client-lib/scroll/index.d.ts +0 -6
  283. package/client-lib/scroll/index.js +0 -1154
  284. package/client-lib/scroll-entries/index.cjs +0 -1
  285. package/client-lib/scroll-entries/index.d.ts +0 -21
  286. package/client-lib/select/SelectElement.d.ts +0 -24
  287. package/client-lib/select/SelectHeadElement.d.ts +0 -13
  288. package/client-lib/select/SelectOptionElement.d.ts +0 -14
  289. package/client-lib/select/SelectUserElement.d.ts +0 -7
  290. package/client-lib/select/index.d.ts +0 -4
  291. package/client-lib/sequence/index.cjs +0 -1
  292. package/client-lib/sequence/index.d.ts +0 -21
  293. package/client-lib/slicer/DecoderElement.d.ts +0 -11
  294. package/client-lib/slicer/Letter.d.ts +0 -11
  295. package/client-lib/slicer/SlicerElement.d.ts +0 -21
  296. package/client-lib/slicer/Word.d.ts +0 -17
  297. package/client-lib/slicer/index.cjs +0 -11
  298. package/client-lib/slicer/index.d.ts +0 -4
  299. package/client-lib/source/SourceClass.d.ts +0 -11
  300. package/client-lib/source/SourceElement.d.ts +0 -25
  301. package/client-lib/source/SourceManager.d.ts +0 -14
  302. package/client-lib/source/SourceSet.d.ts +0 -9
  303. package/client-lib/source/index.cjs +0 -5
  304. package/client-lib/source/index.d.ts +0 -4
  305. package/client-lib/store/Cached.d.ts +0 -18
  306. package/client-lib/store/Composed.d.ts +0 -8
  307. package/client-lib/store/Derived.d.ts +0 -13
  308. package/client-lib/store/DerivedArray.d.ts +0 -13
  309. package/client-lib/store/Resource.d.ts +0 -12
  310. package/client-lib/store/Store.d.ts +0 -76
  311. package/client-lib/store/StoreRegistry.d.ts +0 -23
  312. package/client-lib/store/index.cjs +0 -1
  313. package/client-lib/store/index.d.ts +0 -7
  314. package/client-lib/store/index.js +0 -131
  315. package/client-lib/svg-path-data/index.cjs +0 -3
  316. package/client-lib/svg-path-data/index.d.ts +0 -15
  317. package/client-lib/svg-path-data/index.js +0 -493
  318. package/client-lib/tags-B0do5eeb.cjs +0 -1
  319. package/client-lib/tags-wG5k157g.js +0 -860
  320. package/client-lib/test/starting-style/index.d.ts +0 -1
  321. package/client-lib/theme/index.d.ts +0 -35
  322. package/client-lib/ticker/index.cjs +0 -1
  323. package/client-lib/ticker/index.d.ts +0 -22
  324. package/client-lib/ticker/index.js +0 -125
  325. package/client-lib/tweaker/TweakerBooleanManagerElement.d.ts +0 -11
  326. package/client-lib/tweaker/TweakerColorManagerElement.d.ts +0 -11
  327. package/client-lib/tweaker/TweakerElement.d.ts +0 -18
  328. package/client-lib/tweaker/TweakerFieldElement.d.ts +0 -21
  329. package/client-lib/tweaker/TweakerFolderElement.d.ts +0 -24
  330. package/client-lib/tweaker/TweakerLinkManagerElement.d.ts +0 -11
  331. package/client-lib/tweaker/TweakerNumberManagerElement.d.ts +0 -14
  332. package/client-lib/tweaker/TweakerSelectManagerElement.d.ts +0 -11
  333. package/client-lib/tweaker/TweakerStoreManagerElement.d.ts +0 -10
  334. package/client-lib/tweaker/TweakerStringManagerElement.d.ts +0 -11
  335. package/client-lib/tweaker/index.cjs +0 -10
  336. package/client-lib/tweaker/index.d.ts +0 -1
  337. package/client-lib/tweaker/tweakerManagerConstructors.d.ts +0 -6
  338. package/client-lib/tweaker/tweakerStorage.d.ts +0 -23
  339. package/client-lib/utils/array.d.ts +0 -2
  340. package/client-lib/utils/attributes.d.ts +0 -2
  341. package/client-lib/utils/browser.d.ts +0 -1
  342. package/client-lib/utils/bytes.d.ts +0 -1
  343. package/client-lib/utils/canvas.d.ts +0 -7
  344. package/client-lib/utils/collisions.d.ts +0 -4
  345. package/client-lib/utils/coordinates.d.ts +0 -14
  346. package/client-lib/utils/cssom.d.ts +0 -5
  347. package/client-lib/utils/decoding.d.ts +0 -2
  348. package/client-lib/utils/dom.d.ts +0 -5
  349. package/client-lib/utils/easings.d.ts +0 -17
  350. package/client-lib/utils/events.d.ts +0 -8
  351. package/client-lib/utils/file.d.ts +0 -1
  352. package/client-lib/utils/function.d.ts +0 -2
  353. package/client-lib/utils/gestures.d.ts +0 -1
  354. package/client-lib/utils/index.d.ts +0 -26
  355. package/client-lib/utils/layout.d.ts +0 -3
  356. package/client-lib/utils/math.d.ts +0 -12
  357. package/client-lib/utils/number.d.ts +0 -3
  358. package/client-lib/utils/object.d.ts +0 -9
  359. package/client-lib/utils/polyfills.d.ts +0 -1
  360. package/client-lib/utils/promises.d.ts +0 -1
  361. package/client-lib/utils/string.d.ts +0 -8
  362. package/client-lib/utils/style.d.ts +0 -2
  363. package/client-lib/utils/ts-shape.d.ts +0 -20
  364. package/client-lib/utils/ts-utility.d.ts +0 -26
  365. package/client-lib/utils/url.d.ts +0 -9
  366. package/client-lib/video/index.cjs +0 -1
  367. package/client-lib/video/index.d.ts +0 -22
  368. package/client-lib/window-resizer/index.cjs +0 -1
  369. package/client-lib/window-resizer/index.d.ts +0 -10
  370. package/client-lib/window-resizer/index.js +0 -46
  371. package/server-lib/optimizer/FFmpeg.d.ts +0 -10
  372. package/server-lib/optimizer/generateFavicon.d.ts +0 -4
  373. package/server-lib/optimizer/generateSequence.d.ts +0 -3
  374. package/server-lib/optimizer/generateSprite.d.ts +0 -4
  375. package/server-lib/optimizer/index.d.ts +0 -10
  376. package/server-lib/optimizer/index.js +0 -404
  377. package/server-lib/optimizer/inputFiles.d.ts +0 -26
  378. package/server-lib/optimizer/optimize.d.ts +0 -13
  379. package/server-lib/optimizer/optimizeImage.d.ts +0 -4
  380. package/server-lib/optimizer/optimizeVideo.d.ts +0 -3
  381. package/server-lib/optimizer/optimizer.d.ts +0 -5
  382. package/server-lib/optimizer/types.d.ts +0 -51
  383. package/server-lib/optimizer/utils.d.ts +0 -1
  384. package/server-lib/utils/buffer.d.ts +0 -1
  385. package/server-lib/utils/fs.d.ts +0 -11
  386. package/server-lib/utils/index.d.ts +0 -5
  387. package/server-lib/utils/index.js +0 -65
  388. package/server-lib/utils/math.d.ts +0 -1
  389. package/server-lib/utils/path.d.ts +0 -3
  390. package/server-lib/utils/types.d.ts +0 -8
  391. /package/{client-lib → lib}/attributes-69we3byR.js +0 -0
  392. /package/{client-lib → lib}/attributes-Bf2svn4j.cjs +0 -0
  393. /package/{client-lib → lib}/browser-0zX67oeU.js +0 -0
  394. /package/{client-lib → lib}/browser-CpzFX2xg.cjs +0 -0
  395. /package/{client-lib → lib}/canvas-CU5Xjahf.cjs +0 -0
  396. /package/{client-lib → lib}/canvas-DeZ0SLUJ.js +0 -0
  397. /package/{client-lib → lib}/coordinates-CgdGoSYs.js +0 -0
  398. /package/{client-lib → lib}/coordinates-D8Np3cPD.cjs +0 -0
  399. /package/{client-lib → lib}/createTheme-CHnsCgAr.js +0 -0
  400. /package/{client-lib → lib}/createTheme-Cfaw9UmV.cjs +0 -0
  401. /package/{client-lib → lib}/css-value-parser/index.cjs +0 -0
  402. /package/{client-lib → lib}/css-value-parser/index.js +0 -0
  403. /package/{client-lib → lib}/dom-JBOkFLTh.cjs +0 -0
  404. /package/{client-lib → lib}/dom-P5QbAASX.js +0 -0
  405. /package/{client-lib → lib}/easings-BKi40vHz.js +0 -0
  406. /package/{client-lib → lib}/easings-DsS5-Kqc.cjs +0 -0
  407. /package/{client-lib → lib}/en3/libs/index.cjs +0 -0
  408. /package/{client-lib → lib}/events-BGwqaxVW.cjs +0 -0
  409. /package/{client-lib → lib}/events-CJTUMSLU.js +0 -0
  410. /package/{client-lib → lib}/file-EevnUtRj.cjs +0 -0
  411. /package/{client-lib → lib}/file-lxi_oXJf.js +0 -0
  412. /package/{client-lib → lib}/function-C10DGppn.js +0 -0
  413. /package/{client-lib → lib}/function-MthRj-GJ.cjs +0 -0
  414. /package/{client-lib → lib}/gestures-D2Fdra_G.js +0 -0
  415. /package/{client-lib → lib}/gestures-DHLrn6Q8.cjs +0 -0
  416. /package/{client-lib → lib}/layout-8ryRAMGJ.cjs +0 -0
  417. /package/{client-lib → lib}/layout-HoBT_Da2.js +0 -0
  418. /package/{client-lib → lib}/math-BOBiC4TN.js +0 -0
  419. /package/{client-lib → lib}/math-GDWEqu7y.cjs +0 -0
  420. /package/{client-lib → lib}/object-CCiXnER2.cjs +0 -0
  421. /package/{client-lib → lib}/object-D6MVWB4l.js +0 -0
  422. /package/{client-lib → lib}/order/index.cjs +0 -0
  423. /package/{client-lib → lib}/order/index.js +0 -0
  424. /package/{client-lib → lib}/polyfills-CM4SCDTt.cjs +0 -0
  425. /package/{client-lib → lib}/polyfills-X6KXuHg-.js +0 -0
  426. /package/{client-lib → lib}/string-DhgS_iFl.cjs +0 -0
  427. /package/{client-lib → lib}/string-f0Dnk0L1.js +0 -0
  428. /package/{client-lib → lib}/style-At6aDoqG.cjs +0 -0
  429. /package/{client-lib → lib}/style-j2TwriJ_.js +0 -0
  430. /package/{client-lib → lib}/url-C3dWnJQg.cjs +0 -0
  431. /package/{client-lib → lib}/url-DMNfW7uN.js +0 -0
  432. /package/{client-lib → lib}/utils/index.cjs +0 -0
@@ -0,0 +1 @@
1
+ "use strict";var C=i=>{throw TypeError(i)};var S=(i,s,t)=>s.has(i)||C("Cannot "+t);var e=(i,s,t)=>(S(i,s,"read from private field"),t?t.call(i):s.get(i)),a=(i,s,t)=>s.has(i)?C("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(i):s.set(i,t),h=(i,s,t,n)=>(S(i,s,"write to private field"),n?n.call(i,t):s.set(i,t),t),M=(i,s,t)=>(S(i,s,"access private method"),t);const I=require("./Store-npaZHvX4.cjs"),z=require("./math-GDWEqu7y.cjs"),m=require("./polyfills-CM4SCDTt.cjs"),P=require("./ticker/index.cjs"),N=require("./order/index.cjs");var f,b,A,c,F,r,u,l,g,d,q,y,x;class O extends I.Store{constructor(t,n){super(t||0,n);a(this,q);a(this,f);a(this,b,N.TICK_ORDER.ANIMATION);a(this,A);a(this,c,new I.Store(!1));a(this,F,0);a(this,r,0);a(this,u,-1/0);a(this,l,1/0);a(this,g,0);a(this,d,null);a(this,x,t=>{this.handleAnimationFrame(t)});h(this,r,this.current)}get direction(){return e(this,F)}get target(){return e(this,r)}get min(){return e(this,u)}set min(t){h(this,u,t),this.set(e(this,r),{equalize:!0})}get max(){return e(this,l)}set max(t){h(this,l,t),this.set(e(this,r),{equalize:!0})}get from(){return e(this,g)}get isRunning(){return e(this,c)}get delta(){return Math.abs(e(this,r)-e(this,g))}get deltaProgress(){return this.delta?m.preciseNumber(Math.abs(this.current-e(this,g))/this.delta,6):0}get distance(){return Math.abs(e(this,l)-e(this,u))}get distanceProgress(){return this.distance?m.preciseNumber(Math.abs(this.current-e(this,u))/this.distance,6):0}set(t,n){(e(this,r)!==t||n!=null&&n.restart)&&(h(this,d,t),this.updateOptions(n),h(this,d,null),e(this,r)!==this.current&&this.start())}shift(t,n){this.set(e(this,r)+t,n)}reset(){super.reset(),this.set(this.initial,{equalize:!0})}close(){super.close(),this.reset(),this.unlistenAnimationFrame()}listenAnimationFrame(){e(this,c).current||(e(this,c).current=!0,P.ticker.subscribe(e(this,x),{maxFPS:e(this,f),order:e(this,b),culling:e(this,A)}))}unlistenAnimationFrame(){e(this,c).current&&(e(this,c).current=!1,P.ticker.unsubscribe(e(this,x)))}updateOptions(t){h(this,f,m.nullishCoalescing(t==null?void 0:t.maxFPS,e(this,f))),h(this,b,m.nullishCoalescing(t==null?void 0:t.order,e(this,b))),h(this,A,m.nullishCoalescing(t==null?void 0:t.culling,e(this,A))),h(this,u,m.nullishCoalescing(t==null?void 0:t.min,e(this,u))),h(this,l,m.nullishCoalescing(t==null?void 0:t.max,e(this,l))),M(this,q,y).call(this,typeof e(this,d)=="number"?e(this,d):e(this,r)),t!=null&&t.equalize&&(this.unlistenAnimationFrame(),this.current=e(this,r)),t!=null&&t.restart&&(this.unlistenAnimationFrame(),this.current=this.initial)}start(){this.listenAnimationFrame()}}f=new WeakMap,b=new WeakMap,A=new WeakMap,c=new WeakMap,F=new WeakMap,r=new WeakMap,u=new WeakMap,l=new WeakMap,g=new WeakMap,d=new WeakMap,q=new WeakSet,y=function(t){h(this,F,Math.sign(t-e(this,r))),h(this,r,z.clamp(t,e(this,u),e(this,l))),h(this,g,this.current)},x=new WeakMap;exports.Animation=O;
@@ -1,27 +1,22 @@
1
- var S = (i, r, t) => {
2
- if (!r.has(i))
3
- throw TypeError("Cannot " + t);
1
+ var I = (i) => {
2
+ throw TypeError(i);
4
3
  };
5
- var e = (i, r, t) => (S(i, r, "read from private field"), t ? t.call(i) : r.get(i)), a = (i, r, t) => {
6
- if (r.has(i))
7
- throw TypeError("Cannot add the same private member more than once");
8
- r instanceof WeakSet ? r.add(i) : r.set(i, t);
9
- }, h = (i, r, t, u) => (S(i, r, "write to private field"), u ? u.call(i, t) : r.set(i, t), t);
10
- var I = (i, r, t) => (S(i, r, "access private method"), t);
11
- import { S as P } from "./Store-Qr3SNOSf.js";
12
- import { c as R } from "./math-BOBiC4TN.js";
13
- import { p as q, n as F } from "./polyfills-X6KXuHg-.js";
14
- import { ticker as z } from "./ticker/index.js";
15
- import { TICK_ORDER as y } from "./order/index.js";
16
- var f, d, A, l, b, s, n, m, c, g, M, O, x;
17
- class E extends P {
4
+ var S = (i, r, t) => r.has(i) || I("Cannot " + t);
5
+ var e = (i, r, t) => (S(i, r, "read from private field"), t ? t.call(i) : r.get(i)), a = (i, r, t) => r.has(i) ? I("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(i) : r.set(i, t), h = (i, r, t, u) => (S(i, r, "write to private field"), u ? u.call(i, t) : r.set(i, t), t), P = (i, r, t) => (S(i, r, "access private method"), t);
6
+ import { S as q } from "./Store-C46i0nvr.js";
7
+ import { c as y } from "./math-BOBiC4TN.js";
8
+ import { p as z, n as F } from "./polyfills-X6KXuHg-.js";
9
+ import { ticker as O } from "./ticker/index.js";
10
+ import { TICK_ORDER as N } from "./order/index.js";
11
+ var f, d, A, l, b, s, n, m, c, g, M, R, x;
12
+ class K extends q {
18
13
  constructor(t, u) {
19
14
  super(t || 0, u);
20
15
  a(this, M);
21
- a(this, f, void 0);
22
- a(this, d, y.ANIMATION);
23
- a(this, A, void 0);
24
- a(this, l, new P(!1));
16
+ a(this, f);
17
+ a(this, d, N.ANIMATION);
18
+ a(this, A);
19
+ a(this, l, new q(!1));
25
20
  a(this, b, 0);
26
21
  a(this, s, 0);
27
22
  a(this, n, -1 / 0);
@@ -65,13 +60,13 @@ class E extends P {
65
60
  return Math.abs(e(this, s) - e(this, c));
66
61
  }
67
62
  get deltaProgress() {
68
- return this.delta ? q(Math.abs(this.current - e(this, c)) / this.delta, 6) : 0;
63
+ return this.delta ? z(Math.abs(this.current - e(this, c)) / this.delta, 6) : 0;
69
64
  }
70
65
  get distance() {
71
66
  return Math.abs(e(this, m) - e(this, n));
72
67
  }
73
68
  get distanceProgress() {
74
- return this.distance ? q(Math.abs(this.current - e(this, n)) / this.distance, 6) : 0;
69
+ return this.distance ? z(Math.abs(this.current - e(this, n)) / this.distance, 6) : 0;
75
70
  }
76
71
  set(t, u) {
77
72
  (e(this, s) !== t || u != null && u.restart) && (h(this, g, t), this.updateOptions(u), h(this, g, null), e(this, s) !== this.current && this.start());
@@ -86,25 +81,25 @@ class E extends P {
86
81
  super.close(), this.reset(), this.unlistenAnimationFrame();
87
82
  }
88
83
  listenAnimationFrame() {
89
- e(this, l).current || (e(this, l).current = !0, z.subscribe(e(this, x), {
84
+ e(this, l).current || (e(this, l).current = !0, O.subscribe(e(this, x), {
90
85
  maxFPS: e(this, f),
91
86
  order: e(this, d),
92
87
  culling: e(this, A)
93
88
  }));
94
89
  }
95
90
  unlistenAnimationFrame() {
96
- e(this, l).current && (e(this, l).current = !1, z.unsubscribe(e(this, x)));
91
+ e(this, l).current && (e(this, l).current = !1, O.unsubscribe(e(this, x)));
97
92
  }
98
93
  updateOptions(t) {
99
- h(this, f, F(t == null ? void 0 : t.maxFPS, e(this, f))), h(this, d, F(t == null ? void 0 : t.order, e(this, d))), h(this, A, F(t == null ? void 0 : t.culling, e(this, A))), h(this, n, F(t == null ? void 0 : t.min, e(this, n))), h(this, m, F(t == null ? void 0 : t.max, e(this, m))), I(this, M, O).call(this, typeof e(this, g) == "number" ? e(this, g) : e(this, s)), t != null && t.equalize && (this.unlistenAnimationFrame(), this.current = e(this, s)), t != null && t.restart && (this.unlistenAnimationFrame(), this.current = this.initial);
94
+ h(this, f, F(t == null ? void 0 : t.maxFPS, e(this, f))), h(this, d, F(t == null ? void 0 : t.order, e(this, d))), h(this, A, F(t == null ? void 0 : t.culling, e(this, A))), h(this, n, F(t == null ? void 0 : t.min, e(this, n))), h(this, m, F(t == null ? void 0 : t.max, e(this, m))), P(this, M, R).call(this, typeof e(this, g) == "number" ? e(this, g) : e(this, s)), t != null && t.equalize && (this.unlistenAnimationFrame(), this.current = e(this, s)), t != null && t.restart && (this.unlistenAnimationFrame(), this.current = this.initial);
100
95
  }
101
96
  start() {
102
97
  this.listenAnimationFrame();
103
98
  }
104
99
  }
105
- f = new WeakMap(), d = new WeakMap(), A = new WeakMap(), l = new WeakMap(), b = new WeakMap(), s = new WeakMap(), n = new WeakMap(), m = new WeakMap(), c = new WeakMap(), g = new WeakMap(), M = new WeakSet(), O = function(t) {
106
- h(this, b, Math.sign(t - e(this, s))), h(this, s, R(t, e(this, n), e(this, m))), h(this, c, this.current);
100
+ f = new WeakMap(), d = new WeakMap(), A = new WeakMap(), l = new WeakMap(), b = new WeakMap(), s = new WeakMap(), n = new WeakMap(), m = new WeakMap(), c = new WeakMap(), g = new WeakMap(), M = new WeakSet(), R = function(t) {
101
+ h(this, b, Math.sign(t - e(this, s))), h(this, s, y(t, e(this, n), e(this, m))), h(this, c, this.current);
107
102
  }, x = new WeakMap();
108
103
  export {
109
- E as A
104
+ K as A
110
105
  };
@@ -0,0 +1 @@
1
+ "use strict";var t=s=>{throw TypeError(s)};var b=(s,e,r)=>e.has(s)||t("Cannot "+r);var c=(s,e,r)=>(b(s,e,"read from private field"),r?r.call(s):e.get(s)),u=(s,e,r)=>e.has(s)?t("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(s):e.set(s,r);const d=require("./function-MthRj-GJ.cjs"),l=require("./Store-npaZHvX4.cjs");var o;class a extends l.Store{constructor(r,n,i){super(null,i);u(this,o,[]);const h=d.debounce(()=>{this.current=n()},0);r.forEach(p=>{c(this,o).push(p.subscribe(()=>{h()}))})}close(){super.close(),c(this,o).forEach(r=>r())}}o=new WeakMap;exports.Composed=a;
@@ -0,0 +1,31 @@
1
+ var c = (s) => {
2
+ throw TypeError(s);
3
+ };
4
+ var h = (s, r, o) => r.has(s) || c("Cannot " + o);
5
+ var t = (s, r, o) => (h(s, r, "read from private field"), o ? o.call(s) : r.get(s)), u = (s, r, o) => r.has(s) ? c("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(s) : r.set(s, o);
6
+ import { d as b } from "./function-C10DGppn.js";
7
+ import { S as d } from "./Store-C46i0nvr.js";
8
+ var e;
9
+ class x extends d {
10
+ constructor(o, p, a) {
11
+ super(null, a);
12
+ u(this, e, []);
13
+ const i = b(() => {
14
+ this.current = p();
15
+ }, 0);
16
+ o.forEach((n) => {
17
+ t(this, e).push(
18
+ n.subscribe(() => {
19
+ i();
20
+ })
21
+ );
22
+ });
23
+ }
24
+ close() {
25
+ super.close(), t(this, e).forEach((o) => o());
26
+ }
27
+ }
28
+ e = new WeakMap();
29
+ export {
30
+ x as C
31
+ };
@@ -0,0 +1 @@
1
+ "use strict";var b=Object.defineProperty,y=Object.defineProperties;var C=Object.getOwnPropertyDescriptors;var l=Object.getOwnPropertySymbols;var O=Object.prototype.hasOwnProperty,v=Object.prototype.propertyIsEnumerable;var g=t=>{throw TypeError(t)};var d=(t,e,s)=>e in t?b(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s,f=(t,e)=>{for(var s in e||(e={}))O.call(e,s)&&d(t,s,e[s]);if(l)for(var s of l(e))v.call(e,s)&&d(t,s,e[s]);return t},p=(t,e)=>y(t,C(e));var q=(t,e,s)=>e.has(t)||g("Cannot "+s);var a=(t,e,s)=>(q(t,e,"read from private field"),s?s.call(t):e.get(t)),u=(t,e,s)=>e.has(t)?g("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,s),n=(t,e,s,r)=>(q(t,e,"write to private field"),r?r.call(t,s):e.set(t,s),s);const w=require("./math-GDWEqu7y.cjs"),c=require("./polyfills-CM4SCDTt.cjs"),B=require("./Animation-De9aUv3b.cjs");var i,h;class D extends B.Animation{constructor(s,r){super(s,r);u(this,i);u(this,h);this.damping=20,this.stiffness=0,this.mass=0,n(this,i,0),n(this,h,0),this.updateOptions(p(f({},r),{equalize:!0}))}get velocity(){return a(this,i)}get speed(){return a(this,h)}updateOptions(s){this.damping=c.nullishCoalescing(s==null?void 0:s.damping,this.damping),this.mass=c.nullishCoalescing(s==null?void 0:s.mass,this.mass),this.stiffness=c.nullishCoalescing(s==null?void 0:s.stiffness,this.stiffness),super.updateOptions(s)}handleAnimationFrame(s){c.preciseNumber(this.current,6)===c.preciseNumber(this.target,6)&&(this.unlistenAnimationFrame(),this.current=this.target);const r=this.current,A=Math.abs(r-this.target);n(this,h,A/s.timeBetweenFrames);const m=s.timeBetweenFrames/1e3;if(this.mass||this.stiffness){const F=(this.target-this.current)*this.stiffness-a(this,i)*this.damping;n(this,i,a(this,i)+F/this.mass*m),this.current+=a(this,i)*m}else this.current=w.damp(this.current,this.target,this.damping,m)}}i=new WeakMap,h=new WeakMap;exports.Damped=D;
@@ -0,0 +1,53 @@
1
+ var v = Object.defineProperty, w = Object.defineProperties;
2
+ var x = Object.getOwnPropertyDescriptors;
3
+ var d = Object.getOwnPropertySymbols;
4
+ var y = Object.prototype.hasOwnProperty, B = Object.prototype.propertyIsEnumerable;
5
+ var g = (s) => {
6
+ throw TypeError(s);
7
+ };
8
+ var f = (s, e, t) => e in s ? v(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, l = (s, e) => {
9
+ for (var t in e || (e = {}))
10
+ y.call(e, t) && f(s, t, e[t]);
11
+ if (d)
12
+ for (var t of d(e))
13
+ B.call(e, t) && f(s, t, e[t]);
14
+ return s;
15
+ }, p = (s, e) => w(s, x(e));
16
+ var A = (s, e, t) => e.has(s) || g("Cannot " + t);
17
+ var a = (s, e, t) => (A(s, e, "read from private field"), t ? t.call(s) : e.get(s)), c = (s, e, t) => e.has(s) ? g("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(s) : e.set(s, t), m = (s, e, t, r) => (A(s, e, "write to private field"), r ? r.call(s, t) : e.set(s, t), t);
18
+ import { d as D } from "./math-BOBiC4TN.js";
19
+ import { n as u, p as F } from "./polyfills-X6KXuHg-.js";
20
+ import { A as q } from "./Animation-NAGXiFv5.js";
21
+ var i, h;
22
+ class j extends q {
23
+ constructor(t, r) {
24
+ super(t, r);
25
+ c(this, i);
26
+ c(this, h);
27
+ this.damping = 20, this.stiffness = 0, this.mass = 0, m(this, i, 0), m(this, h, 0), this.updateOptions(p(l({}, r), { equalize: !0 }));
28
+ }
29
+ get velocity() {
30
+ return a(this, i);
31
+ }
32
+ get speed() {
33
+ return a(this, h);
34
+ }
35
+ updateOptions(t) {
36
+ this.damping = u(t == null ? void 0 : t.damping, this.damping), this.mass = u(t == null ? void 0 : t.mass, this.mass), this.stiffness = u(t == null ? void 0 : t.stiffness, this.stiffness), super.updateOptions(t);
37
+ }
38
+ handleAnimationFrame(t) {
39
+ F(this.current, 6) === F(this.target, 6) && (this.unlistenAnimationFrame(), this.current = this.target);
40
+ const r = this.current, O = Math.abs(r - this.target);
41
+ m(this, h, O / t.timeBetweenFrames);
42
+ const n = t.timeBetweenFrames / 1e3;
43
+ if (this.mass || this.stiffness) {
44
+ const b = (this.target - this.current) * this.stiffness - a(this, i) * this.damping;
45
+ m(this, i, a(this, i) + b / this.mass * n), this.current += a(this, i) * n;
46
+ } else
47
+ this.current = D(this.current, this.target, this.damping, n);
48
+ }
49
+ }
50
+ i = new WeakMap(), h = new WeakMap();
51
+ export {
52
+ j as D
53
+ };
@@ -0,0 +1 @@
1
+ "use strict";var u=e=>{throw TypeError(e)};var i=(e,r,s)=>r.has(e)||u("Cannot "+s);var n=(e,r,s)=>(i(e,r,"read from private field"),s?s.call(e):r.get(e)),o=(e,r,s)=>r.has(e)?u("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(e):r.set(e,s),l=(e,r,s,c)=>(i(e,r,"write to private field"),c?c.call(e,s):r.set(e,s),s);const h=require("./Store-npaZHvX4.cjs");var t;class p extends h.Store{constructor(s,c,b){super(null,b);o(this,t);l(this,t,s.subscribe(d=>{this.current=c(d.current)}))}close(){super.close(),n(this,t).call(this)}}t=new WeakMap;exports.Derived=p;
@@ -0,0 +1,23 @@
1
+ var u = (s) => {
2
+ throw TypeError(s);
3
+ };
4
+ var o = (s, r, e) => r.has(s) || u("Cannot " + e);
5
+ var i = (s, r, e) => (o(s, r, "read from private field"), e ? e.call(s) : r.get(s)), n = (s, r, e) => r.has(s) ? u("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(s) : r.set(s, e), l = (s, r, e, c) => (o(s, r, "write to private field"), c ? c.call(s, e) : r.set(s, e), e);
6
+ import { S as a } from "./Store-C46i0nvr.js";
7
+ var t;
8
+ class m extends a {
9
+ constructor(e, c, b) {
10
+ super(null, b);
11
+ n(this, t);
12
+ l(this, t, e.subscribe((p) => {
13
+ this.current = c(p.current);
14
+ }));
15
+ }
16
+ close() {
17
+ super.close(), i(this, t).call(this);
18
+ }
19
+ }
20
+ t = new WeakMap();
21
+ export {
22
+ m as D
23
+ };
@@ -1,25 +1,21 @@
1
- var $ = (a, e, t) => {
2
- if (!e.has(a))
3
- throw TypeError("Cannot " + t);
1
+ var $ = (a) => {
2
+ throw TypeError(a);
4
3
  };
5
- var r = (a, e, t) => ($(a, e, "read from private field"), t ? t.call(a) : e.get(a)), o = (a, e, t) => {
6
- if (e.has(a))
7
- throw TypeError("Cannot add the same private member more than once");
8
- e instanceof WeakSet ? e.add(a) : e.set(a, t);
9
- }, i = (a, e, t, n) => ($(a, e, "write to private field"), n ? n.call(a, t) : e.set(a, t), t);
10
- import { RESIZE_ORDER as A } from "./order/index.js";
11
- import { windowResizer as k } from "./window-resizer/index.js";
12
- import { S as B } from "./Store-Qr3SNOSf.js";
4
+ var k = (a, e, t) => e.has(a) || $("Cannot " + t);
5
+ var r = (a, e, t) => (k(a, e, "read from private field"), t ? t.call(a) : e.get(a)), o = (a, e, t) => e.has(a) ? $("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(a) : e.set(a, t), i = (a, e, t, n) => (k(a, e, "write to private field"), n ? n.call(a, t) : e.set(a, t), t);
6
+ import { RESIZE_ORDER as B } from "./order/index.js";
7
+ import { windowResizer as A } from "./window-resizer/index.js";
8
+ import { S as T } from "./Store-C46i0nvr.js";
13
9
  var y, g, q, u, c, d, w;
14
- class T {
10
+ class O {
15
11
  constructor(e) {
16
- o(this, y, void 0);
17
- o(this, g, void 0);
18
- o(this, q, void 0);
19
- o(this, u, void 0);
20
- o(this, c, void 0);
21
- o(this, d, void 0);
22
- o(this, w, void 0);
12
+ o(this, y);
13
+ o(this, g);
14
+ o(this, q);
15
+ o(this, u);
16
+ o(this, c);
17
+ o(this, d);
18
+ o(this, w);
23
19
  i(this, y, e);
24
20
  const t = e.indexOf("?");
25
21
  t >= 0 && (e = e.slice(0, t));
@@ -54,13 +50,13 @@ class T {
54
50
  }
55
51
  y = new WeakMap(), g = new WeakMap(), q = new WeakMap(), u = new WeakMap(), c = new WeakMap(), d = new WeakMap(), w = new WeakMap();
56
52
  var l;
57
- class O {
53
+ class P {
58
54
  constructor(e) {
59
- o(this, l, void 0);
55
+ o(this, l);
60
56
  i(this, l, /* @__PURE__ */ new Map());
61
57
  const t = typeof e == "string" ? e.trim().split(",").map((s) => s.trim()).filter((s) => !!s) : e, n = [];
62
58
  t.forEach((s) => {
63
- const p = new T(s);
59
+ const p = new O(s);
64
60
  n.push([p.query, p]);
65
61
  });
66
62
  const f = n.filter((s) => s[1].queryType.includes("max")).sort((s, p) => p[1].queryValue - s[1].queryValue), h = n.filter((s) => s[1].queryType.includes("min") && s[1].queryValue !== 0).sort((s, p) => s[1].queryValue - p[1].queryValue), x = n.filter((s) => s[0] === "(min-width: 0px)");
@@ -74,10 +70,10 @@ class O {
74
70
  }
75
71
  l = new WeakMap();
76
72
  var E, R;
77
- class C extends B {
73
+ class G extends T {
78
74
  constructor(t) {
79
75
  super(void 0);
80
- o(this, E, void 0);
76
+ o(this, E);
81
77
  o(this, R, () => {
82
78
  let t;
83
79
  r(this, E).mediaBuckets.forEach((h, x) => {
@@ -88,21 +84,21 @@ class C extends B {
88
84
  h.density > f && h.density <= Math.max(devicePixelRatio, 1) && (f = h.density, n = h);
89
85
  }), t != null && t.length && !n && (n = t[0]), this.current = n;
90
86
  });
91
- i(this, E, new O(t.srcset));
87
+ i(this, E, new P(t.srcset));
92
88
  }
93
89
  close() {
94
90
  super.close(), this.disconnect();
95
91
  }
96
92
  connect() {
97
- k.subscribe(r(this, R), A.SOURCE_MANAGER);
93
+ A.subscribe(r(this, R), B.SOURCE_MANAGER);
98
94
  }
99
95
  disconnect() {
100
- k.unsubscribe(r(this, R));
96
+ A.unsubscribe(r(this, R));
101
97
  }
102
98
  }
103
99
  E = new WeakMap(), R = new WeakMap();
104
100
  export {
105
- C as S,
106
- T as a,
107
- O as b
101
+ G as S,
102
+ O as a,
103
+ P as b
108
104
  };
@@ -0,0 +1 @@
1
+ "use strict";var b=c=>{throw TypeError(c)};var k=(c,e,t)=>e.has(c)||b("Cannot "+t);var r=(c,e,t)=>(k(c,e,"read from private field"),t?t.call(c):e.get(c)),o=(c,e,t)=>e.has(c)?b("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(c):e.set(c,t),i=(c,e,t,n)=>(k(c,e,"write to private field"),n?n.call(c,t):e.set(c,t),t);const T=require("./order/index.cjs"),z=require("./window-resizer/index.cjs"),_=require("./Store-npaZHvX4.cjs");var y,g,q,m,a,d,w;class A{constructor(e){o(this,y);o(this,g);o(this,q);o(this,m);o(this,a);o(this,d);o(this,w);i(this,y,e);const t=e.indexOf("?");t>=0&&(e=e.slice(0,t));const n=e.split(".");i(this,g,n[0]);const x=/\d+x/g,h=n.find(u=>u.match(x));i(this,q,h?parseInt(h):1);const f=/\d+max/g,M=/\d+min/g,s=/\d+mar/g,l=/\d+mir/g,S=n.find(u=>u.match(f)),I=n.find(u=>u.match(M)),V=n.find(u=>u.match(s)),$=n.find(u=>u.match(l));V?(i(this,a,parseInt(V)),i(this,d,"max"),i(this,m,`(max-aspect-ratio: ${r(this,a)})`)):$?(i(this,a,parseInt($)),i(this,d,"max"),i(this,m,`(min-aspect-ratio: ${r(this,a)})`)):S?(i(this,a,parseInt(S)),i(this,d,"max"),i(this,m,`(max-width: ${r(this,a)}px)`)):I?(i(this,a,parseInt(I)),i(this,m,`(min-width: ${r(this,a)}px)`),i(this,d,"min")):(i(this,a,0),i(this,m,`(min-width: ${r(this,a)}px)`),i(this,d,"min")),i(this,w,"."+n[n.length-1])}get url(){return r(this,y)}get name(){return r(this,g)}get density(){return r(this,q)}get query(){return r(this,m)}get extension(){return r(this,w)}get queryType(){return r(this,d)}get queryValue(){return r(this,a)}}y=new WeakMap,g=new WeakMap,q=new WeakMap,m=new WeakMap,a=new WeakMap,d=new WeakMap,w=new WeakMap;var p;class B{constructor(e){o(this,p);i(this,p,new Map);const t=typeof e=="string"?e.trim().split(",").map(s=>s.trim()).filter(s=>!!s):e,n=[];t.forEach(s=>{const l=new A(s);n.push([l.query,l])});const x=n.filter(s=>s[1].queryType.includes("max")).sort((s,l)=>l[1].queryValue-s[1].queryValue),h=n.filter(s=>s[1].queryType.includes("min")&&s[1].queryValue!==0).sort((s,l)=>s[1].queryValue-l[1].queryValue),f=n.filter(s=>s[0]==="(min-width: 0px)");(f?[...f,...x,...h]:[...x,...h]).forEach(s=>{r(this,p).has(s[0])||r(this,p).set(s[0],[]),r(this,p).get(s[0]).push(s[1])})}get mediaBuckets(){return r(this,p)}}p=new WeakMap;var R,E;class O extends _.Store{constructor(t){super(void 0);o(this,R);o(this,E,()=>{let t;r(this,R).mediaBuckets.forEach((h,f)=>{matchMedia(f).matches&&(t=h)});let n,x=0;t==null||t.forEach(h=>{h.density>x&&h.density<=Math.max(devicePixelRatio,1)&&(x=h.density,n=h)}),t!=null&&t.length&&!n&&(n=t[0]),this.current=n});i(this,R,new B(t.srcset))}close(){super.close(),this.disconnect()}connect(){z.windowResizer.subscribe(r(this,E),T.RESIZE_ORDER.SOURCE_MANAGER)}disconnect(){z.windowResizer.unsubscribe(r(this,E))}}R=new WeakMap,E=new WeakMap;exports.Source=A;exports.SourceManager=O;exports.SourceSet=B;
@@ -0,0 +1,137 @@
1
+ var A = (r) => {
2
+ throw TypeError(r);
3
+ };
4
+ var o = (r, t, e) => t.has(r) || A("Cannot " + e);
5
+ var i = (r, t, e) => (o(r, t, "read from private field"), e ? e.call(r) : t.get(r)), c = (r, t, e) => t.has(r) ? A("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(r) : t.set(r, e), h = (r, t, e, a) => (o(r, t, "write to private field"), a ? a.call(r, e) : t.set(r, e), e), k = (r, t, e) => (o(r, t, "access private method"), e);
6
+ import { i as z } from "./browser-0zX67oeU.js";
7
+ var l;
8
+ class E {
9
+ constructor() {
10
+ c(this, l);
11
+ this.storage = null, this.name = "store-registry", h(this, l, null), z && (this.storage = localStorage);
12
+ }
13
+ get loadedState() {
14
+ return i(this, l);
15
+ }
16
+ saveState() {
17
+ const t = this.getState(), e = JSON.stringify(t);
18
+ localStorage.setItem(this.name, e);
19
+ }
20
+ loadState(t = localStorage.getItem(this.name)) {
21
+ t && (typeof t == "string" ? h(this, l, JSON.parse(t)) : h(this, l, t), f.current.forEach((e) => {
22
+ e.passport && this.updateStore(e);
23
+ }));
24
+ }
25
+ resetState() {
26
+ f.current.forEach((t) => {
27
+ t.passport && t.reset();
28
+ }), this.saveState();
29
+ }
30
+ updateStore(t) {
31
+ var a, y;
32
+ if (!Array.isArray((a = i(this, l)) == null ? void 0 : a.stores))
33
+ return t;
34
+ const e = t.passport;
35
+ if (e) {
36
+ const w = (y = i(this, l)) == null ? void 0 : y.stores.find(
37
+ (N) => N.name === e.name
38
+ );
39
+ w && (t.current = w.value);
40
+ }
41
+ return t;
42
+ }
43
+ getState() {
44
+ const t = {
45
+ stores: []
46
+ };
47
+ return f.current.forEach((e) => {
48
+ e.passport && (t.stores.find((a) => a.name === e.passport.name) || t.stores.push({
49
+ value: e.current,
50
+ name: e.passport.name
51
+ }));
52
+ }), t;
53
+ }
54
+ }
55
+ l = new WeakMap();
56
+ const M = new E();
57
+ var d, s, S, n, g, u, m, b, v, C;
58
+ class q {
59
+ constructor(t, e) {
60
+ c(this, v);
61
+ c(this, d);
62
+ c(this, s);
63
+ c(this, S);
64
+ c(this, n, /* @__PURE__ */ new Set());
65
+ c(this, g);
66
+ c(this, u);
67
+ c(this, m);
68
+ c(this, b);
69
+ h(this, d, e == null ? void 0 : e.passport), h(this, s, {
70
+ initial: t,
71
+ previous: void 0,
72
+ current: t
73
+ }), h(this, S, (e == null ? void 0 : e.equalityCheck) || ((a, y) => a === y)), e != null && e.validate && this.addMiddleware(e.validate), h(this, m, (e == null ? void 0 : e.notifyAndClose) || !1), h(this, b, (e == null ? void 0 : e.invisible) || !1), h(this, g, (e == null ? void 0 : e.skipSubscribeNotification) || !1), i(this, d) && M.updateStore(this);
74
+ }
75
+ get passport() {
76
+ return i(this, d);
77
+ }
78
+ get initial() {
79
+ return i(this, s).initial;
80
+ }
81
+ get previous() {
82
+ return i(this, s).previous;
83
+ }
84
+ get current() {
85
+ return i(this, s).current;
86
+ }
87
+ set current(t) {
88
+ if (!i(this, S).call(this, i(this, s).current, t)) {
89
+ if (i(this, s).previous = i(this, s).current, i(this, u))
90
+ for (const e of i(this, u))
91
+ t = e(t);
92
+ i(this, s).current = t, k(this, v, C).call(this), i(this, m) && this.close();
93
+ }
94
+ }
95
+ get subscribers() {
96
+ return i(this, n);
97
+ }
98
+ addMiddleware(t) {
99
+ i(this, u) || h(this, u, /* @__PURE__ */ new Set()), i(this, u).add(t);
100
+ }
101
+ removeMiddleware(t) {
102
+ var e, a;
103
+ (e = i(this, u)) == null || e.delete(t), (a = i(this, u)) != null && a.size || h(this, u, void 0);
104
+ }
105
+ subscribe(t) {
106
+ return !i(this, b) && !i(this, n).size && I(this), i(this, n).add(t), i(this, g) || t(i(this, s)), () => {
107
+ this.unsubscribe(t);
108
+ };
109
+ }
110
+ unsubscribe(t) {
111
+ i(this, n).delete(t), i(this, n).size || p(this);
112
+ }
113
+ reset() {
114
+ this.current = Array.isArray(this.initial) ? [...this.initial] : this.initial;
115
+ }
116
+ close() {
117
+ i(this, n).clear(), p(this);
118
+ }
119
+ }
120
+ d = new WeakMap(), s = new WeakMap(), S = new WeakMap(), n = new WeakMap(), g = new WeakMap(), u = new WeakMap(), m = new WeakMap(), b = new WeakMap(), v = new WeakSet(), C = function() {
121
+ for (const t of i(this, n))
122
+ t(i(this, s));
123
+ };
124
+ const f = new q([], {
125
+ invisible: !0
126
+ });
127
+ function I(r) {
128
+ f.current.includes(r) || (f.current = [...f.current, r]);
129
+ }
130
+ function p(r) {
131
+ f.current.includes(r) && (f.current = f.current.filter((t) => t !== r));
132
+ }
133
+ export {
134
+ q as S,
135
+ f as a,
136
+ M as s
137
+ };
@@ -0,0 +1 @@
1
+ "use strict";var A=i=>{throw TypeError(i)};var o=(i,t,e)=>t.has(i)||A("Cannot "+e);var r=(i,t,e)=>(o(i,t,"read from private field"),e?e.call(i):t.get(i)),c=(i,t,e)=>t.has(i)?A("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(i):t.set(i,e),h=(i,t,e,a)=>(o(i,t,"write to private field"),a?a.call(i,e):t.set(i,e),e),k=(i,t,e)=>(o(i,t,"access private method"),e);const M=require("./browser-CpzFX2xg.cjs");var f;class R{constructor(){c(this,f);this.storage=null,this.name="store-registry",h(this,f,null),M.isBrowser&&(this.storage=localStorage)}get loadedState(){return r(this,f)}saveState(){const t=this.getState(),e=JSON.stringify(t);localStorage.setItem(this.name,e)}loadState(t=localStorage.getItem(this.name)){t&&(typeof t=="string"?h(this,f,JSON.parse(t)):h(this,f,t),l.current.forEach(e=>{e.passport&&this.updateStore(e)}))}resetState(){l.current.forEach(t=>{t.passport&&t.reset()}),this.saveState()}updateStore(t){var a,y;if(!Array.isArray((a=r(this,f))==null?void 0:a.stores))return t;const e=t.passport;if(e){const w=(y=r(this,f))==null?void 0:y.stores.find(E=>E.name===e.name);w&&(t.current=w.value)}return t}getState(){const t={stores:[]};return l.current.forEach(e=>{e.passport&&(t.stores.find(a=>a.name===e.passport.name)||t.stores.push({value:e.current,name:e.passport.name}))}),t}}f=new WeakMap;const N=new R;var d,s,S,n,g,u,b,m,v,z;class q{constructor(t,e){c(this,v);c(this,d);c(this,s);c(this,S);c(this,n,new Set);c(this,g);c(this,u);c(this,b);c(this,m);h(this,d,e==null?void 0:e.passport),h(this,s,{initial:t,previous:void 0,current:t}),h(this,S,(e==null?void 0:e.equalityCheck)||((a,y)=>a===y)),e!=null&&e.validate&&this.addMiddleware(e.validate),h(this,b,(e==null?void 0:e.notifyAndClose)||!1),h(this,m,(e==null?void 0:e.invisible)||!1),h(this,g,(e==null?void 0:e.skipSubscribeNotification)||!1),r(this,d)&&N.updateStore(this)}get passport(){return r(this,d)}get initial(){return r(this,s).initial}get previous(){return r(this,s).previous}get current(){return r(this,s).current}set current(t){if(!r(this,S).call(this,r(this,s).current,t)){if(r(this,s).previous=r(this,s).current,r(this,u))for(const e of r(this,u))t=e(t);r(this,s).current=t,k(this,v,z).call(this),r(this,b)&&this.close()}}get subscribers(){return r(this,n)}addMiddleware(t){r(this,u)||h(this,u,new Set),r(this,u).add(t)}removeMiddleware(t){var e,a;(e=r(this,u))==null||e.delete(t),(a=r(this,u))!=null&&a.size||h(this,u,void 0)}subscribe(t){return!r(this,m)&&!r(this,n).size&&p(this),r(this,n).add(t),r(this,g)||t(r(this,s)),()=>{this.unsubscribe(t)}}unsubscribe(t){r(this,n).delete(t),r(this,n).size||C(this)}reset(){this.current=Array.isArray(this.initial)?[...this.initial]:this.initial}close(){r(this,n).clear(),C(this)}}d=new WeakMap,s=new WeakMap,S=new WeakMap,n=new WeakMap,g=new WeakMap,u=new WeakMap,b=new WeakMap,m=new WeakMap,v=new WeakSet,z=function(){for(const t of r(this,n))t(r(this,s))};const l=new q([],{invisible:!0});function p(i){l.current.includes(i)||(l.current=[...l.current,i])}function C(i){l.current.includes(i)&&(l.current=l.current.filter(t=>t!==i))}exports.Store=q;exports.activeStores=l;exports.storeRegistry=N;
@@ -0,0 +1 @@
1
+ "use strict";var F=Object.defineProperty,o=Object.defineProperties;var O=Object.getOwnPropertyDescriptors;var c=Object.getOwnPropertySymbols;var b=Object.prototype.hasOwnProperty,p=Object.prototype.propertyIsEnumerable;var d=i=>{throw TypeError(i)};var m=(i,t,e)=>t in i?F(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,g=(i,t)=>{for(var e in t||(t={}))b.call(t,e)&&m(i,e,t[e]);if(c)for(var e of c(t))p.call(t,e)&&m(i,e,t[e]);return i},A=(i,t)=>o(i,O(t));var q=(i,t,e)=>t.has(i)||d("Cannot "+e);var a=(i,t,e)=>(q(i,t,"read from private field"),e?e.call(i):t.get(i)),u=(i,t,e)=>t.has(i)?d("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(i):t.set(i,e),h=(i,t,e,s)=>(q(i,t,"write to private field"),s?s.call(i,e):t.set(i,e),e);const w=require("./easings-DsS5-Kqc.cjs"),C=require("./math-GDWEqu7y.cjs"),l=require("./polyfills-CM4SCDTt.cjs"),S=require("./Animation-De9aUv3b.cjs");var n,r;class T extends S.Animation{constructor(e,s){super(e||0,s);u(this,n,w.linear);u(this,r,1e3);this.updateOptions(A(g({},s),{equalize:!0}))}updateOptions(e){super.updateOptions(e),h(this,n,l.nullishCoalescing(e==null?void 0:e.easing,a(this,n))),h(this,r,l.nullishCoalescing(e==null?void 0:e.duration,a(this,r)))}handleAnimationFrame(e){const s=e.timeElapsedSinceSubscription/1e3/(a(this,r)/1e3),f=a(this,n).call(this,C.clamp(s,0,1));this.current=l.preciseNumber(this.from+(this.target-this.from)*f,6),s>1&&this.unlistenAnimationFrame()}start(){this.unlistenAnimationFrame(),this.listenAnimationFrame()}}n=new WeakMap,r=new WeakMap;exports.Tweened=T;
@@ -0,0 +1,44 @@
1
+ var g = Object.defineProperty, F = Object.defineProperties;
2
+ var O = Object.getOwnPropertyDescriptors;
3
+ var u = Object.getOwnPropertySymbols;
4
+ var b = Object.prototype.hasOwnProperty, x = Object.prototype.propertyIsEnumerable;
5
+ var c = (e) => {
6
+ throw TypeError(e);
7
+ };
8
+ var l = (e, i, t) => i in e ? g(e, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[i] = t, d = (e, i) => {
9
+ for (var t in i || (i = {}))
10
+ b.call(i, t) && l(e, t, i[t]);
11
+ if (u)
12
+ for (var t of u(i))
13
+ x.call(i, t) && l(e, t, i[t]);
14
+ return e;
15
+ }, f = (e, i) => F(e, O(i));
16
+ var p = (e, i, t) => i.has(e) || c("Cannot " + t);
17
+ var n = (e, i, t) => (p(e, i, "read from private field"), t ? t.call(e) : i.get(e)), m = (e, i, t) => i.has(e) ? c("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(e) : i.set(e, t), h = (e, i, t, a) => (p(e, i, "write to private field"), a ? a.call(e, t) : i.set(e, t), t);
18
+ import { l as S } from "./easings-BKi40vHz.js";
19
+ import { c as T } from "./math-BOBiC4TN.js";
20
+ import { n as A, p as q } from "./polyfills-X6KXuHg-.js";
21
+ import { A as w } from "./Animation-NAGXiFv5.js";
22
+ var s, r;
23
+ class k extends w {
24
+ constructor(t, a) {
25
+ super(t || 0, a);
26
+ m(this, s, S);
27
+ m(this, r, 1e3);
28
+ this.updateOptions(f(d({}, a), { equalize: !0 }));
29
+ }
30
+ updateOptions(t) {
31
+ super.updateOptions(t), h(this, s, A(t == null ? void 0 : t.easing, n(this, s))), h(this, r, A(t == null ? void 0 : t.duration, n(this, r)));
32
+ }
33
+ handleAnimationFrame(t) {
34
+ const a = t.timeElapsedSinceSubscription / 1e3 / (n(this, r) / 1e3), o = n(this, s).call(this, T(a, 0, 1));
35
+ this.current = q(this.from + (this.target - this.from) * o, 6), a > 1 && this.unlistenAnimationFrame();
36
+ }
37
+ start() {
38
+ this.unlistenAnimationFrame(), this.listenAnimationFrame();
39
+ }
40
+ }
41
+ s = new WeakMap(), r = new WeakMap();
42
+ export {
43
+ k as T
44
+ };
@@ -0,0 +1,123 @@
1
+ var W = (t) => {
2
+ throw TypeError(t);
3
+ };
4
+ var k = (t, s, o) => s.has(t) || W("Cannot " + o);
5
+ var e = (t, s, o) => (k(t, s, "read from private field"), o ? o.call(t) : s.get(t)), n = (t, s, o) => s.has(t) ? W("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(t) : s.set(t, o), i = (t, s, o, v) => (k(t, s, "write to private field"), v ? v.call(t, o) : s.set(t, o), o);
6
+ import { RESIZE_ORDER as A } from "./order/index.js";
7
+ import { windowResizer as C } from "./window-resizer/index.js";
8
+ import { i as D } from "./browser-0zX67oeU.js";
9
+ import { getGPUTier as O } from "detect-gpu";
10
+ import { S as I } from "./Store-C46i0nvr.js";
11
+ var h, d, l, c, g, m, p, x, u;
12
+ class L {
13
+ constructor() {
14
+ n(this, h);
15
+ n(this, d);
16
+ n(this, l);
17
+ n(this, c);
18
+ n(this, g);
19
+ n(this, m);
20
+ n(this, p);
21
+ n(this, x);
22
+ n(this, u);
23
+ var s, o;
24
+ if (i(this, h, "unknown"), i(this, d, "unknown"), i(this, l, 0), i(this, c, null), i(this, g, !1), i(this, m, !1), i(this, p, !1), i(this, x, !1), i(this, u, !1), this.resize = () => {
25
+ i(this, g, /Mobi|Android/i.test(navigator.userAgent)), i(this, m, "ontouchstart" in window || navigator.maxTouchPoints > 0), setTimeout(() => {
26
+ i(this, m, "ontouchstart" in window || navigator.maxTouchPoints > 0);
27
+ }, 0);
28
+ }, D) {
29
+ i(this, c, O()), e(this, c).then((a) => {
30
+ i(this, d, a.gpu || "unknown"), i(this, l, a.tier);
31
+ }), this.resize(), C.subscribe(this.resize, A.DEVICE);
32
+ {
33
+ const a = document.createElement("canvas"), E = a.getContext("webgl") || a.getContext("experimental-webgl");
34
+ i(this, p, E && E instanceof WebGLRenderingContext || !1);
35
+ }
36
+ {
37
+ const a = document.createElement("canvas");
38
+ a.getContext("2d") && i(this, x, a.toDataURL("image/webp").indexOf("data:image/webp") == 0);
39
+ }
40
+ const v = window.navigator.userAgent, P = ((o = (s = window.navigator) == null ? void 0 : s.userAgentData) == null ? void 0 : o.platform) || window.navigator.platform, S = [
41
+ "Macintosh",
42
+ "MacIntel",
43
+ "MacPPC",
44
+ "Mac68K",
45
+ "macOS"
46
+ ], T = ["Win32", "Win64", "Windows", "WinCE"], z = ["iPhone", "iPad", "iPod"];
47
+ S.includes(P) ? (i(this, h, "macOS"), i(this, u, !0)) : z.includes(P) ? (i(this, h, "iOS"), i(this, u, !0)) : T.includes(P) ? i(this, h, "Windows") : /Android/.test(v) ? i(this, h, "Android") : /Linux/.test(P) ? i(this, h, "Linux") : i(this, h, "unknown");
48
+ }
49
+ }
50
+ get OS() {
51
+ return e(this, h);
52
+ }
53
+ get gpu() {
54
+ return e(this, d);
55
+ }
56
+ get gpuTier() {
57
+ return e(this, l);
58
+ }
59
+ get gpuDetection() {
60
+ return e(this, c);
61
+ }
62
+ get isMobile() {
63
+ return e(this, g);
64
+ }
65
+ get isTouch() {
66
+ return e(this, m);
67
+ }
68
+ get isWebgl() {
69
+ return e(this, p);
70
+ }
71
+ get isWebp() {
72
+ return e(this, x);
73
+ }
74
+ get isApple() {
75
+ return e(this, u);
76
+ }
77
+ }
78
+ h = new WeakMap(), d = new WeakMap(), l = new WeakMap(), c = new WeakMap(), g = new WeakMap(), m = new WeakMap(), p = new WeakMap(), x = new WeakMap(), u = new WeakMap();
79
+ const j = new L();
80
+ var M = /* @__PURE__ */ ((t) => (t.mobile = "600px", t.tablet = "1024px", t.notebook = "1280px", t.desktop = "1281px", t))(M || {}), y = /* @__PURE__ */ ((t) => (t["<=mobile"] = "(max-width: 600px)", t[">=mobile"] = "(min-width: 601px)", t["<=tablet"] = "(max-width: 1024px)", t[">=tablet"] = "(min-width: 1025px)", t["<=notebook"] = "(max-width: 1280px)", t[">=notebook"] = "(min-width: 1281px)", t["<=desktop"] = "(max-width: 1280px)", t[">=desktop"] = "(min-width: 1281px)", t))(y || {}), w, f, b, r;
81
+ class G {
82
+ constructor() {
83
+ n(this, w);
84
+ n(this, f);
85
+ n(this, b);
86
+ n(this, r);
87
+ i(this, w, 0), i(this, f, 0), i(this, b, 0), i(this, r, new I(void 0)), this.resize = () => {
88
+ i(this, w, document.documentElement.clientWidth), i(this, f, innerHeight), i(this, b, devicePixelRatio), matchMedia(
89
+ "(max-width: 600px)"
90
+ /* <=mobile */
91
+ ).matches ? e(this, r).current = "mobile" : matchMedia(
92
+ "(max-width: 1024px)"
93
+ /* <=tablet */
94
+ ).matches ? e(this, r).current = "tablet" : matchMedia(
95
+ "(max-width: 1280px)"
96
+ /* <=notebook */
97
+ ).matches ? e(this, r).current = "notebook" : matchMedia(
98
+ "(min-width: 1281px)"
99
+ /* >=desktop */
100
+ ).matches && (e(this, r).current = "desktop");
101
+ }, D && (this.resize(), C.subscribe(this.resize, A.DEVICE));
102
+ }
103
+ get width() {
104
+ return e(this, w);
105
+ }
106
+ get height() {
107
+ return e(this, f);
108
+ }
109
+ get type() {
110
+ return e(this, r);
111
+ }
112
+ get pixelRatio() {
113
+ return e(this, b);
114
+ }
115
+ }
116
+ w = new WeakMap(), f = new WeakMap(), b = new WeakMap(), r = new WeakMap();
117
+ const q = new G();
118
+ export {
119
+ M as V,
120
+ y as a,
121
+ j as d,
122
+ q as v
123
+ };