motionary 11.2.0 → 11.4.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 (991) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/README.md +4 -0
  3. package/dist/chunks/{anim-image-DMFe0wGd.cjs → anim-image-Bjmc17ZU.cjs} +2 -2
  4. package/dist/chunks/{anim-image-CigwAy10.js → anim-image-CSrYZ3ZY.js} +2 -2
  5. package/dist/chunks/audio-Dc4JT_0D.cjs +1 -1
  6. package/dist/chunks/audio-Ds5ppQVV.js +1 -1
  7. package/dist/chunks/badge-wall-CHvTcDpR.cjs +1 -1
  8. package/dist/chunks/badge-wall-fWlK0AtX.js +1 -1
  9. package/dist/chunks/base-B3me2y0o.cjs +1 -1
  10. package/dist/chunks/base-zSGb8ujt.js +1 -1
  11. package/dist/chunks/bg-generator-C-T8N2CW.cjs +1 -1
  12. package/dist/chunks/bg-generator-CVHPNzl6.js +1 -1
  13. package/dist/chunks/bind-B_CTL6Qn.js +1 -1
  14. package/dist/chunks/bind-Ui43-n2d.cjs +1 -1
  15. package/dist/chunks/builtins-Cz3iufK6.cjs +1 -1
  16. package/dist/chunks/builtins-Simwbnqg.js +1 -1
  17. package/dist/chunks/carousel-CUEAF4k3.cjs +1 -1
  18. package/dist/chunks/carousel-Ca5FiNvL.js +1 -1
  19. package/dist/chunks/cart-drawer-BMth2aMo.cjs +1 -1
  20. package/dist/chunks/cart-drawer-CDBjWN5-.js +1 -1
  21. package/dist/chunks/code-export-B6NVzEhx.js +1 -1
  22. package/dist/chunks/code-export-BUcIsaA0.cjs +1 -1
  23. package/dist/chunks/color-picker-DFvcXhEq.js +1 -1
  24. package/dist/chunks/color-picker-Dmr2b2J4.cjs +1 -1
  25. package/dist/chunks/command-palette-BSTQQK3b.js +1 -1
  26. package/dist/chunks/command-palette-CNnX1Qlx.cjs +1 -1
  27. package/dist/chunks/core-BOCM9zD5.js +1 -1
  28. package/dist/chunks/core-BcQb_f91.js +1 -1
  29. package/dist/chunks/core-BdLFN0RS.cjs +1 -1
  30. package/dist/chunks/core-BjcOCpJt.cjs +1 -1
  31. package/dist/chunks/core-Dj6iomdc.js +1 -1
  32. package/dist/chunks/core-KIvPGg0c.cjs +1 -1
  33. package/dist/chunks/countdown-COaDvsTK.cjs +1 -1
  34. package/dist/chunks/countdown-CeOzDrkE.js +1 -1
  35. package/dist/chunks/date-picker-DJ5URMsx.cjs +1 -1
  36. package/dist/chunks/date-picker-DKv1uKYq.js +1 -1
  37. package/dist/chunks/ease-HwYZnZat.cjs +1 -1
  38. package/dist/chunks/ease-XN8_0sXu.js +1 -1
  39. package/dist/chunks/equalizer-C6cz1y_2.js +1 -1
  40. package/dist/chunks/equalizer-GY-Qul0f.cjs +1 -1
  41. package/dist/chunks/festival-banner-BYn-HCza.js +1 -1
  42. package/dist/chunks/festival-banner-Dx7QAmxt.cjs +1 -1
  43. package/dist/chunks/field-BlWcKLcW.js +1 -1
  44. package/dist/chunks/field-CLbSJL_S.cjs +1 -1
  45. package/dist/chunks/fx-BaPAanPW.cjs +1 -1
  46. package/dist/chunks/fx-DUteojZx.js +1 -1
  47. package/dist/chunks/generative-2LhxG5BJ.js +1 -1
  48. package/dist/chunks/generative-BHIj-NU0.cjs +1 -1
  49. package/dist/chunks/{gl-scene-DOtF83ek.js → gl-scene-DsfDIyzr.js} +2 -2
  50. package/dist/chunks/{gl-scene-BZ-Tm38b.cjs → gl-scene-y_vtXfho.cjs} +2 -2
  51. package/dist/chunks/globe-C5waX_Bv.cjs +1 -1
  52. package/dist/chunks/globe-DAdScNVh.js +1 -1
  53. package/dist/chunks/gpu-Dw1udOJW.cjs +1 -1
  54. package/dist/chunks/gpu-ML0i9eNv.js +1 -1
  55. package/dist/chunks/gpu-particles-BVMXKtdI.cjs +1 -1
  56. package/dist/chunks/gpu-particles-BafFhVwB.js +1 -1
  57. package/dist/chunks/index-tags-B-JBecYg.js +1 -1
  58. package/dist/chunks/index-tags-hLIF2Clq.cjs +1 -1
  59. package/dist/chunks/{keyframes-Cbj4m_Y3.cjs → keyframes-CA4ON22i.cjs} +2 -2
  60. package/dist/chunks/{keyframes-AcVaNJ4U.js → keyframes-_50j1RoO.js} +2 -2
  61. package/dist/chunks/leaderboard-BReEpUTf.js +1 -1
  62. package/dist/chunks/leaderboard-DYRLL45b.cjs +1 -1
  63. package/dist/chunks/location-card-CLR05EP-.cjs +1 -1
  64. package/dist/chunks/location-card-D-jdyQge.js +1 -1
  65. package/dist/chunks/lottie-icon-BfG8_n32.cjs +1 -1
  66. package/dist/chunks/lottie-icon-kOzTlEj1.js +1 -1
  67. package/dist/chunks/{lottie-player-BYWndDoz.js → lottie-player-CMDfMeKd.js} +2 -2
  68. package/dist/chunks/{lottie-player-B7MZM9v3.cjs → lottie-player-Duv92v1E.cjs} +2 -2
  69. package/dist/chunks/lyrics-CtKFEFtI.cjs +1 -1
  70. package/dist/chunks/lyrics-DHri0dBh.js +1 -1
  71. package/dist/chunks/manifest-Bcz6rQ20.cjs +1 -1
  72. package/dist/chunks/manifest-pFJWahGJ.js +1 -1
  73. package/dist/chunks/menu-BTGBkd2U.js +1 -1
  74. package/dist/chunks/menu-BgO53POm.cjs +1 -1
  75. package/dist/chunks/menu-toggle-CLteQORa.js +1 -1
  76. package/dist/chunks/menu-toggle-lGl4Jvae.cjs +1 -1
  77. package/dist/chunks/nav-morph-BDnCH13j.cjs +1 -1
  78. package/dist/chunks/nav-morph-Cn8rkJgZ.js +1 -1
  79. package/dist/chunks/otp-CD87vVt6.js +1 -1
  80. package/dist/chunks/otp-tQy0gMPq.cjs +1 -1
  81. package/dist/chunks/pagination-6QHulvKI.js +1 -1
  82. package/dist/chunks/pagination-DD2oqXhh.cjs +1 -1
  83. package/dist/chunks/{physics-playground-YVxNGnUK.cjs → physics-playground-8x5S9Wos.cjs} +2 -2
  84. package/dist/chunks/{physics-playground-mjFAeNWn.js → physics-playground-U3RY-aG3.js} +2 -2
  85. package/dist/chunks/player-BYwLXSuJ.js +1 -1
  86. package/dist/chunks/player-DZe-cHvD.cjs +1 -1
  87. package/dist/chunks/presence-230b12uw.cjs +1 -1
  88. package/dist/chunks/presence-CPc3nH2E.js +1 -1
  89. package/dist/chunks/presets-BYBVJVeP.js +1 -1
  90. package/dist/chunks/presets-CUHys3sK.cjs +1 -1
  91. package/dist/chunks/prize-wheel-BzYWrEvu.js +1 -1
  92. package/dist/chunks/prize-wheel-DuS1Ud_o.cjs +1 -1
  93. package/dist/chunks/product-gallery-CTswLWBk.cjs +1 -1
  94. package/dist/chunks/product-gallery-DuUVpQGx.js +1 -1
  95. package/dist/chunks/progress-ring-CDJnN8et.js +1 -1
  96. package/dist/chunks/progress-ring-TnacbuYB.cjs +1 -1
  97. package/dist/chunks/prop-panel-B4SaLelu.cjs +1 -1
  98. package/dist/chunks/prop-panel-CYTkWP9Y.js +1 -1
  99. package/dist/chunks/radar-B7ZGs9Ca.js +1 -1
  100. package/dist/chunks/radar-BWjX0-2G.cjs +1 -1
  101. package/dist/chunks/reactions-BCX05Z6_.js +1 -1
  102. package/dist/chunks/reactions-BNpZ7cPy.cjs +1 -1
  103. package/dist/chunks/registry-BB1oO-lR.cjs +1 -1
  104. package/dist/chunks/registry-CYojuxi5.js +1 -1
  105. package/dist/chunks/{registry-DZMe2rVp.js → registry-CorBCE7b.js} +40 -3
  106. package/dist/chunks/{registry-BIhHroDh.cjs → registry-VITvgTNc.cjs} +43 -2
  107. package/dist/chunks/retro-button-CNbQ4ph9.cjs +1 -1
  108. package/dist/chunks/retro-button-dVmLtNmb.js +1 -1
  109. package/dist/chunks/rive-CfWKBIa5.cjs +1 -1
  110. package/dist/chunks/rive-CtYlVrH0.js +1 -1
  111. package/dist/chunks/{runtime-link-Bne5p2tj.cjs → runtime-link-BGsMpzx4.cjs} +2 -2
  112. package/dist/chunks/{runtime-link-BiyHzDSA.js → runtime-link-LolrEAJv.js} +2 -2
  113. package/dist/chunks/scroll-driven-CQbwzCdn.cjs +1 -1
  114. package/dist/chunks/scroll-driven-LghshrWq.js +1 -1
  115. package/dist/chunks/{scroll-scene-CDW4Cmqg.js → scroll-scene-C6cUC6eR.js} +3 -3
  116. package/dist/chunks/{scroll-scene-Bxigz4ju.cjs → scroll-scene-CAlNu16C.cjs} +3 -3
  117. package/dist/chunks/segmented-CRHXT6gm.js +1 -1
  118. package/dist/chunks/segmented-Can8wI4p.cjs +1 -1
  119. package/dist/chunks/shader-backdrop-Tnlj5ag3.cjs +1 -1
  120. package/dist/chunks/shader-backdrop-jJaiqu2T.js +1 -1
  121. package/dist/chunks/shared-BxK1D7EZ.cjs +1 -1
  122. package/dist/chunks/shared-C8Pi6tuh.js +1 -1
  123. package/dist/chunks/shared-CkKHWrtJ.js +1 -1
  124. package/dist/chunks/shared-jkgRH-Hx.cjs +1 -1
  125. package/dist/chunks/sheet-BHvZA7rD.js +1 -1
  126. package/dist/chunks/sheet-BfH5vWIW.cjs +1 -1
  127. package/dist/chunks/sign-DvZ1jHxE.js +1 -1
  128. package/dist/chunks/sign-RAkQIWrM.cjs +1 -1
  129. package/dist/chunks/skeleton-reveal-Dwm8Z6Iv.js +1 -1
  130. package/dist/chunks/skeleton-reveal-n4L3iur-.cjs +1 -1
  131. package/dist/chunks/sparkline-BhB1Mi-1.js +1 -1
  132. package/dist/chunks/sparkline-CEF92PsW.cjs +1 -1
  133. package/dist/chunks/spring-CznnvQCN.js +1 -1
  134. package/dist/chunks/spring-DcM7pQgx.cjs +1 -1
  135. package/dist/chunks/stagger-B9sKPwQB.js +1 -1
  136. package/dist/chunks/stagger-DFKwqOQG.cjs +1 -1
  137. package/dist/chunks/suggestion-chips-BVt6aSMC.cjs +1 -1
  138. package/dist/chunks/suggestion-chips-CtgmWPtH.js +1 -1
  139. package/dist/chunks/switch-0mn-fRmX.cjs +1 -1
  140. package/dist/chunks/switch-CP2i0RlH.js +1 -1
  141. package/dist/chunks/tab-bar-CZLz8oVX.cjs +1 -1
  142. package/dist/chunks/tab-bar-Du_iYdCI.js +1 -1
  143. package/dist/chunks/{ticker-Cq2SmYNJ.js → ticker-CZisW9Nb.js} +2 -2
  144. package/dist/chunks/{ticker--1A-E9Vg.cjs → ticker-DwRa5hIu.cjs} +2 -2
  145. package/dist/chunks/tip-Txz4rnqn.cjs +1 -1
  146. package/dist/chunks/tip-c0HIMPnO.js +1 -1
  147. package/dist/chunks/toast-stack-Cylun3Yf.js +1 -1
  148. package/dist/chunks/toast-stack-DanHRGwO.cjs +1 -1
  149. package/dist/chunks/{tween-MhtysD-Y.js → tween-BHDOFhXX.js} +2 -2
  150. package/dist/chunks/{tween-BqL2cEKf.cjs → tween-ookpV7jR.cjs} +2 -2
  151. package/dist/chunks/upload-progress-CkfDSMr-.js +1 -1
  152. package/dist/chunks/upload-progress-DmywVhec.cjs +1 -1
  153. package/dist/chunks/variants-DRi3tBJf.js +1 -1
  154. package/dist/chunks/variants-cVfgIaXa.cjs +1 -1
  155. package/dist/chunks/voice-button-CZ5cpeWN.cjs +1 -1
  156. package/dist/chunks/voice-button-DVovZYBR.js +1 -1
  157. package/dist/chunks/weather-card-DCzxr5T4.cjs +1 -1
  158. package/dist/chunks/weather-card-pF9sSKuI.js +1 -1
  159. package/dist/chunks/worker-canvas-CDc2aIKC.cjs +1 -1
  160. package/dist/chunks/worker-canvas-Hl3quLAh.js +1 -1
  161. package/dist/chunks/xp-bar-D4Yq5Dpv.cjs +1 -1
  162. package/dist/chunks/xp-bar-j1FsL32r.js +1 -1
  163. package/dist/components/a11y.cjs +1 -1
  164. package/dist/components/a11y.js +1 -1
  165. package/dist/components/ai.cjs +1 -1
  166. package/dist/components/ai.js +1 -1
  167. package/dist/components/angular.cjs +1 -1
  168. package/dist/components/angular.js +1 -1
  169. package/dist/components/background.cjs +1 -1
  170. package/dist/components/background.js +1 -1
  171. package/dist/components/bridge.cjs +1 -1
  172. package/dist/components/bridge.js +1 -1
  173. package/dist/components/cards.cjs +1 -1
  174. package/dist/components/cards.js +1 -1
  175. package/dist/components/click.cjs +1 -1
  176. package/dist/components/click.js +1 -1
  177. package/dist/components/core.cjs +1 -1
  178. package/dist/components/core.js +1 -1
  179. package/dist/components/depth.cjs +1 -1
  180. package/dist/components/depth.js +1 -1
  181. package/dist/components/design.cjs +1 -1
  182. package/dist/components/design.js +1 -1
  183. package/dist/components/dotlottie.cjs +4 -4
  184. package/dist/components/dotlottie.js +4 -4
  185. package/dist/components/dsl.cjs +1 -1
  186. package/dist/components/dsl.js +1 -1
  187. package/dist/components/effects.cjs +1 -1
  188. package/dist/components/effects.js +1 -1
  189. package/dist/components/engine.cjs +1 -1
  190. package/dist/components/engine.js +1 -1
  191. package/dist/components/feedback.cjs +1 -1
  192. package/dist/components/feedback.js +1 -1
  193. package/dist/components/fx-3d.cjs +1 -1
  194. package/dist/components/fx-3d.js +1 -1
  195. package/dist/components/fx-ai.cjs +1 -1
  196. package/dist/components/fx-ai.js +1 -1
  197. package/dist/components/fx-chart.cjs +1 -1
  198. package/dist/components/fx-chart.js +1 -1
  199. package/dist/components/fx-cinema.cjs +1 -1
  200. package/dist/components/fx-cinema.js +1 -1
  201. package/dist/components/fx-cyber.cjs +1 -1
  202. package/dist/components/fx-cyber.js +1 -1
  203. package/dist/components/fx-festival.cjs +1 -1
  204. package/dist/components/fx-festival.js +1 -1
  205. package/dist/components/fx-focus.cjs +1 -1
  206. package/dist/components/fx-focus.js +1 -1
  207. package/dist/components/fx-form.cjs +1 -1
  208. package/dist/components/fx-form.js +1 -1
  209. package/dist/components/fx-game.cjs +1 -1
  210. package/dist/components/fx-game.js +1 -1
  211. package/dist/components/fx-genart.cjs +1 -1
  212. package/dist/components/fx-genart.js +1 -1
  213. package/dist/components/fx-geo.cjs +1 -1
  214. package/dist/components/fx-geo.js +1 -1
  215. package/dist/components/fx-gesture.cjs +1 -1
  216. package/dist/components/fx-gesture.js +1 -1
  217. package/dist/components/fx-gpu.cjs +1 -1
  218. package/dist/components/fx-gpu.js +1 -1
  219. package/dist/components/fx-light.cjs +1 -1
  220. package/dist/components/fx-light.js +1 -1
  221. package/dist/components/fx-lottie.cjs +1 -1
  222. package/dist/components/fx-lottie.js +1 -1
  223. package/dist/components/fx-morph.cjs +1 -1
  224. package/dist/components/fx-morph.js +1 -1
  225. package/dist/components/fx-music.cjs +1 -1
  226. package/dist/components/fx-music.js +1 -1
  227. package/dist/components/fx-organic.cjs +1 -1
  228. package/dist/components/fx-organic.js +1 -1
  229. package/dist/components/fx-paper.cjs +1 -1
  230. package/dist/components/fx-paper.js +1 -1
  231. package/dist/components/fx-perf.cjs +1 -1
  232. package/dist/components/fx-perf.js +1 -1
  233. package/dist/components/fx-physics.cjs +1 -1
  234. package/dist/components/fx-physics.js +1 -1
  235. package/dist/components/fx-retro.cjs +1 -1
  236. package/dist/components/fx-retro.js +1 -1
  237. package/dist/components/fx-safe.cjs +1 -1
  238. package/dist/components/fx-safe.js +1 -1
  239. package/dist/components/fx-shop.cjs +1 -1
  240. package/dist/components/fx-shop.js +1 -1
  241. package/dist/components/fx-social.cjs +1 -1
  242. package/dist/components/fx-social.js +1 -1
  243. package/dist/components/fx-spatial.cjs +1 -1
  244. package/dist/components/fx-spatial.js +1 -1
  245. package/dist/components/fx-surface.cjs +1 -1
  246. package/dist/components/fx-surface.js +1 -1
  247. package/dist/components/fx-text.cjs +1 -1
  248. package/dist/components/fx-text.js +1 -1
  249. package/dist/components/fx-transitions.cjs +1 -1
  250. package/dist/components/fx-transitions.js +1 -1
  251. package/dist/components/fx-video.cjs +1 -1
  252. package/dist/components/fx-video.js +1 -1
  253. package/dist/components/fx-weather.cjs +1 -1
  254. package/dist/components/fx-weather.js +1 -1
  255. package/dist/components/fx.cjs +1 -1
  256. package/dist/components/fx.js +1 -1
  257. package/dist/components/fx2.cjs +1 -1
  258. package/dist/components/fx2.js +1 -1
  259. package/dist/components/gesture.cjs +1 -1
  260. package/dist/components/gesture.js +1 -1
  261. package/dist/components/gl-model.cjs +4 -4
  262. package/dist/components/gl-model.js +4 -4
  263. package/dist/components/interaction.cjs +1 -1
  264. package/dist/components/interaction.js +1 -1
  265. package/dist/components/jsx.cjs +1 -1
  266. package/dist/components/jsx.js +1 -1
  267. package/dist/components/layout.cjs +1 -1
  268. package/dist/components/layout.js +1 -1
  269. package/dist/components/lazy.cjs +1 -1
  270. package/dist/components/lazy.js +1 -1
  271. package/dist/components/lite.cjs +1 -1
  272. package/dist/components/lite.js +1 -1
  273. package/dist/components/marketplace.cjs +1 -1
  274. package/dist/components/marketplace.js +1 -1
  275. package/dist/components/native.cjs +1 -1
  276. package/dist/components/native.js +1 -1
  277. package/dist/components/packs.cjs +1 -1
  278. package/dist/components/packs.js +1 -1
  279. package/dist/components/page.cjs +1 -1
  280. package/dist/components/page.js +1 -1
  281. package/dist/components/perf.cjs +1 -1
  282. package/dist/components/perf.js +1 -1
  283. package/dist/components/physics.cjs +1 -1
  284. package/dist/components/physics.js +1 -1
  285. package/dist/components/plugins.cjs +1 -1
  286. package/dist/components/plugins.js +1 -1
  287. package/dist/components/react.cjs +1 -1
  288. package/dist/components/react.js +1 -1
  289. package/dist/components/reveal.cjs +1 -1
  290. package/dist/components/reveal.js +1 -1
  291. package/dist/components/snap-carousel.cjs +3 -3
  292. package/dist/components/snap-carousel.js +3 -3
  293. package/dist/components/solid.cjs +1 -1
  294. package/dist/components/solid.js +1 -1
  295. package/dist/components/svelte.cjs +1 -1
  296. package/dist/components/svelte.js +1 -1
  297. package/dist/components/svg.cjs +1 -1
  298. package/dist/components/svg.js +1 -1
  299. package/dist/components/text.cjs +1 -1
  300. package/dist/components/text.js +1 -1
  301. package/dist/components/timeline.cjs +1 -1
  302. package/dist/components/timeline.js +1 -1
  303. package/dist/components/tokens.cjs +1 -1
  304. package/dist/components/tokens.js +1 -1
  305. package/dist/components/transitions.cjs +1 -1
  306. package/dist/components/transitions.js +1 -1
  307. package/dist/components/ui.cjs +1 -1
  308. package/dist/components/ui.js +1 -1
  309. package/dist/components/vue.cjs +1 -1
  310. package/dist/components/vue.js +1 -1
  311. package/dist/components/webgl.cjs +1 -1
  312. package/dist/components/webgl.js +1 -1
  313. package/dist/components/widgets.cjs +7 -7
  314. package/dist/components/widgets.js +9 -9
  315. package/dist/components.cjs +1 -1
  316. package/dist/components.js +1 -1
  317. package/dist/components.umd.js +1 -1
  318. package/dist/effects/achievement-unlock.cjs +1 -1
  319. package/dist/effects/achievement-unlock.js +1 -1
  320. package/dist/effects/aurora-veil.cjs +1 -1
  321. package/dist/effects/aurora-veil.js +1 -1
  322. package/dist/effects/badge-pop.cjs +1 -1
  323. package/dist/effects/badge-pop.js +1 -1
  324. package/dist/effects/bars-grow.cjs +1 -1
  325. package/dist/effects/bars-grow.js +1 -1
  326. package/dist/effects/beat-bounce.cjs +1 -1
  327. package/dist/effects/beat-bounce.js +1 -1
  328. package/dist/effects/blob-button.cjs +1 -1
  329. package/dist/effects/blob-button.js +1 -1
  330. package/dist/effects/bloom.cjs +1 -1
  331. package/dist/effects/bloom.js +1 -1
  332. package/dist/effects/breathe.cjs +1 -1
  333. package/dist/effects/breathe.js +1 -1
  334. package/dist/effects/brushed-metal.cjs +1 -1
  335. package/dist/effects/brushed-metal.js +1 -1
  336. package/dist/effects/camera-dolly.cjs +1 -1
  337. package/dist/effects/camera-dolly.js +1 -1
  338. package/dist/effects/card-flip-3d.cjs +1 -1
  339. package/dist/effects/card-flip-3d.js +1 -1
  340. package/dist/effects/chest-open.cjs +1 -1
  341. package/dist/effects/chest-open.js +1 -1
  342. package/dist/effects/cloth.cjs +1 -1
  343. package/dist/effects/cloth.js +1 -1
  344. package/dist/effects/coin-burst.cjs +1 -1
  345. package/dist/effects/coin-burst.js +1 -1
  346. package/dist/effects/color-pulse.cjs +1 -1
  347. package/dist/effects/color-pulse.js +1 -1
  348. package/dist/effects/crt-power.cjs +1 -1
  349. package/dist/effects/crt-power.js +1 -1
  350. package/dist/effects/crumple.cjs +1 -1
  351. package/dist/effects/crumple.js +1 -1
  352. package/dist/effects/data-decode.cjs +1 -1
  353. package/dist/effects/data-decode.js +1 -1
  354. package/dist/effects/day-cycle.cjs +1 -1
  355. package/dist/effects/day-cycle.js +1 -1
  356. package/dist/effects/depth-in.cjs +1 -1
  357. package/dist/effects/depth-in.js +1 -1
  358. package/dist/effects/depth-pop.cjs +1 -1
  359. package/dist/effects/depth-pop.js +1 -1
  360. package/dist/effects/depth-stack.cjs +1 -1
  361. package/dist/effects/depth-stack.js +1 -1
  362. package/dist/effects/dolly-in.cjs +1 -1
  363. package/dist/effects/dolly-in.js +1 -1
  364. package/dist/effects/dots-pop.cjs +1 -1
  365. package/dist/effects/dots-pop.js +1 -1
  366. package/dist/effects/field-shake.cjs +1 -1
  367. package/dist/effects/field-shake.js +1 -1
  368. package/dist/effects/field-success.cjs +1 -1
  369. package/dist/effects/field-success.js +1 -1
  370. package/dist/effects/film-burn.cjs +1 -1
  371. package/dist/effects/film-burn.js +1 -1
  372. package/dist/effects/fire.cjs +1 -1
  373. package/dist/effects/fire.js +1 -1
  374. package/dist/effects/fireflies.cjs +1 -1
  375. package/dist/effects/fireflies.js +1 -1
  376. package/dist/effects/firework-burst.cjs +1 -1
  377. package/dist/effects/firework-burst.js +1 -1
  378. package/dist/effects/flip-chars.cjs +1 -1
  379. package/dist/effects/flip-chars.js +1 -1
  380. package/dist/effects/fluid.cjs +1 -1
  381. package/dist/effects/fluid.js +1 -1
  382. package/dist/effects/fly-to-cart.cjs +1 -1
  383. package/dist/effects/fly-to-cart.js +1 -1
  384. package/dist/effects/focus-draw.cjs +1 -1
  385. package/dist/effects/focus-draw.js +1 -1
  386. package/dist/effects/focus-glow.cjs +1 -1
  387. package/dist/effects/focus-glow.js +1 -1
  388. package/dist/effects/fog.cjs +1 -1
  389. package/dist/effects/fog.js +1 -1
  390. package/dist/effects/font-breathe.cjs +1 -1
  391. package/dist/effects/font-breathe.js +1 -1
  392. package/dist/effects/form-cascade.cjs +1 -1
  393. package/dist/effects/form-cascade.js +1 -1
  394. package/dist/effects/gen-skeleton.cjs +1 -1
  395. package/dist/effects/gen-skeleton.js +1 -1
  396. package/dist/effects/glass-frost.cjs +1 -1
  397. package/dist/effects/glass-frost.js +1 -1
  398. package/dist/effects/glitch-text.cjs +1 -1
  399. package/dist/effects/glitch-text.js +1 -1
  400. package/dist/effects/globe-spin.cjs +1 -1
  401. package/dist/effects/globe-spin.js +1 -1
  402. package/dist/effects/god-rays.cjs +1 -1
  403. package/dist/effects/god-rays.js +1 -1
  404. package/dist/effects/gpu-lift.cjs +1 -1
  405. package/dist/effects/gpu-lift.js +1 -1
  406. package/dist/effects/grain-flicker.cjs +1 -1
  407. package/dist/effects/grain-flicker.js +1 -1
  408. package/dist/effects/halftone-in.cjs +1 -1
  409. package/dist/effects/halftone-in.js +1 -1
  410. package/dist/effects/highlight-sweep.cjs +1 -1
  411. package/dist/effects/highlight-sweep.js +1 -1
  412. package/dist/effects/hologram.cjs +1 -1
  413. package/dist/effects/hologram.js +1 -1
  414. package/dist/effects/hud-frame.cjs +1 -1
  415. package/dist/effects/hud-frame.js +1 -1
  416. package/dist/effects/icon-pop.cjs +1 -1
  417. package/dist/effects/icon-pop.js +1 -1
  418. package/dist/effects/icon-swap.cjs +1 -1
  419. package/dist/effects/icon-swap.js +1 -1
  420. package/dist/effects/idle-reveal.cjs +1 -1
  421. package/dist/effects/idle-reveal.js +1 -1
  422. package/dist/effects/ink.cjs +1 -1
  423. package/dist/effects/ink.js +1 -1
  424. package/dist/effects/jump-cut.cjs +1 -1
  425. package/dist/effects/jump-cut.js +1 -1
  426. package/dist/effects/kaleido.cjs +1 -1
  427. package/dist/effects/kaleido.js +1 -1
  428. package/dist/effects/label-float.cjs +1 -1
  429. package/dist/effects/label-float.js +1 -1
  430. package/dist/effects/lantern-rise.cjs +1 -1
  431. package/dist/effects/lantern-rise.js +1 -1
  432. package/dist/effects/leaves.cjs +1 -1
  433. package/dist/effects/leaves.js +1 -1
  434. package/dist/effects/letterbox.cjs +1 -1
  435. package/dist/effects/letterbox.js +1 -1
  436. package/dist/effects/level-up.cjs +1 -1
  437. package/dist/effects/level-up.js +1 -1
  438. package/dist/effects/light-follow.cjs +1 -1
  439. package/dist/effects/light-follow.js +1 -1
  440. package/dist/effects/lightning.cjs +1 -1
  441. package/dist/effects/lightning.js +1 -1
  442. package/dist/effects/line-draw.cjs +1 -1
  443. package/dist/effects/line-draw.js +1 -1
  444. package/dist/effects/liquid-text.cjs +1 -1
  445. package/dist/effects/liquid-text.js +1 -1
  446. package/dist/effects/liquid-wipe.cjs +1 -1
  447. package/dist/effects/liquid-wipe.js +1 -1
  448. package/dist/effects/lottie-play.cjs +1 -1
  449. package/dist/effects/lottie-play.js +1 -1
  450. package/dist/effects/magnet.cjs +1 -1
  451. package/dist/effects/magnet.js +1 -1
  452. package/dist/effects/marching-ants.cjs +1 -1
  453. package/dist/effects/marching-ants.js +1 -1
  454. package/dist/effects/marker-pulse.cjs +1 -1
  455. package/dist/effects/marker-pulse.js +1 -1
  456. package/dist/effects/mention-glow.cjs +1 -1
  457. package/dist/effects/mention-glow.js +1 -1
  458. package/dist/effects/mesh-drift.cjs +1 -1
  459. package/dist/effects/mesh-drift.js +1 -1
  460. package/dist/effects/message-in.cjs +1 -1
  461. package/dist/effects/message-in.js +1 -1
  462. package/dist/effects/mosaic-flip.cjs +1 -1
  463. package/dist/effects/mosaic-flip.js +1 -1
  464. package/dist/effects/neon-ignite.cjs +1 -1
  465. package/dist/effects/neon-ignite.js +1 -1
  466. package/dist/effects/neon-pulse.cjs +1 -1
  467. package/dist/effects/neon-pulse.js +1 -1
  468. package/dist/effects/neon-write.cjs +1 -1
  469. package/dist/effects/neon-write.js +1 -1
  470. package/dist/effects/neu-press.cjs +1 -1
  471. package/dist/effects/neu-press.js +1 -1
  472. package/dist/effects/noise-reveal.cjs +1 -1
  473. package/dist/effects/noise-reveal.js +1 -1
  474. package/dist/effects/number-roll.cjs +1 -1
  475. package/dist/effects/number-roll.js +1 -1
  476. package/dist/effects/orbit-camera.cjs +1 -1
  477. package/dist/effects/orbit-camera.js +1 -1
  478. package/dist/effects/orbit-in.cjs +1 -1
  479. package/dist/effects/orbit-in.js +1 -1
  480. package/dist/effects/origami.cjs +1 -1
  481. package/dist/effects/origami.js +1 -1
  482. package/dist/effects/page-curl.cjs +1 -1
  483. package/dist/effects/page-curl.js +1 -1
  484. package/dist/effects/pan-reveal.cjs +1 -1
  485. package/dist/effects/pan-reveal.js +1 -1
  486. package/dist/effects/paper-unfold.cjs +1 -1
  487. package/dist/effects/paper-unfold.js +1 -1
  488. package/dist/effects/particle-text.cjs +1 -1
  489. package/dist/effects/particle-text.js +1 -1
  490. package/dist/effects/path-morph.cjs +1 -1
  491. package/dist/effects/path-morph.js +1 -1
  492. package/dist/effects/pearlescent.cjs +1 -1
  493. package/dist/effects/pearlescent.js +1 -1
  494. package/dist/effects/pencil-sketch.cjs +1 -1
  495. package/dist/effects/pencil-sketch.js +1 -1
  496. package/dist/effects/pin-drop.cjs +1 -1
  497. package/dist/effects/pin-drop.js +1 -1
  498. package/dist/effects/pinball.cjs +1 -1
  499. package/dist/effects/pinball.js +1 -1
  500. package/dist/effects/pinch-hint.cjs +1 -1
  501. package/dist/effects/pinch-hint.js +1 -1
  502. package/dist/effects/pixelate-in.cjs +1 -1
  503. package/dist/effects/pixelate-in.js +1 -1
  504. package/dist/effects/pointer-shadow.cjs +1 -1
  505. package/dist/effects/pointer-shadow.js +1 -1
  506. package/dist/effects/portal-open.cjs +1 -1
  507. package/dist/effects/portal-open.js +1 -1
  508. package/dist/effects/price-flip.cjs +1 -1
  509. package/dist/effects/price-flip.js +1 -1
  510. package/dist/effects/product-spin.cjs +1 -1
  511. package/dist/effects/product-spin.js +1 -1
  512. package/dist/effects/rack-focus.cjs +1 -1
  513. package/dist/effects/rack-focus.js +1 -1
  514. package/dist/effects/radial-spectrum.cjs +1 -1
  515. package/dist/effects/radial-spectrum.js +1 -1
  516. package/dist/effects/rain-glass.cjs +1 -1
  517. package/dist/effects/rain-glass.js +1 -1
  518. package/dist/effects/reaction-burst.cjs +1 -1
  519. package/dist/effects/reaction-burst.js +1 -1
  520. package/dist/effects/read-receipt.cjs +1 -1
  521. package/dist/effects/read-receipt.js +1 -1
  522. package/dist/effects/refraction.cjs +1 -1
  523. package/dist/effects/refraction.js +1 -1
  524. package/dist/effects/ring-sweep.cjs +1 -1
  525. package/dist/effects/ring-sweep.js +1 -1
  526. package/dist/effects/ripple-dissolve.cjs +1 -1
  527. package/dist/effects/ripple-dissolve.js +1 -1
  528. package/dist/effects/rope.cjs +1 -1
  529. package/dist/effects/rope.js +1 -1
  530. package/dist/effects/route-draw.cjs +1 -1
  531. package/dist/effects/route-draw.js +1 -1
  532. package/dist/effects/safe-fade.cjs +1 -1
  533. package/dist/effects/safe-fade.js +1 -1
  534. package/dist/effects/sakura.cjs +1 -1
  535. package/dist/effects/sakura.js +1 -1
  536. package/dist/effects/sale-shine.cjs +1 -1
  537. package/dist/effects/sale-shine.js +1 -1
  538. package/dist/effects/sankey-flow.cjs +1 -1
  539. package/dist/effects/sankey-flow.js +1 -1
  540. package/dist/effects/scanline-sweep.cjs +1 -1
  541. package/dist/effects/scanline-sweep.js +1 -1
  542. package/dist/effects/shatter.cjs +1 -1
  543. package/dist/effects/shatter.js +1 -1
  544. package/dist/effects/smoke.cjs +1 -1
  545. package/dist/effects/smoke.js +1 -1
  546. package/dist/effects/snowfall.cjs +1 -1
  547. package/dist/effects/snowfall.js +1 -1
  548. package/dist/effects/soft-body.cjs +1 -1
  549. package/dist/effects/soft-body.js +1 -1
  550. package/dist/effects/sound-particles.cjs +1 -1
  551. package/dist/effects/sound-particles.js +1 -1
  552. package/dist/effects/spatial-float.cjs +1 -1
  553. package/dist/effects/spatial-float.js +1 -1
  554. package/dist/effects/spectrum-mirror.cjs +1 -1
  555. package/dist/effects/spectrum-mirror.js +1 -1
  556. package/dist/effects/splash.cjs +1 -1
  557. package/dist/effects/splash.js +1 -1
  558. package/dist/effects/spooky-float.cjs +1 -1
  559. package/dist/effects/spooky-float.js +1 -1
  560. package/dist/effects/stock-pulse.cjs +1 -1
  561. package/dist/effects/stock-pulse.js +1 -1
  562. package/dist/effects/stream-text.cjs +1 -1
  563. package/dist/effects/stream-text.js +1 -1
  564. package/dist/effects/stroke-draw.cjs +1 -1
  565. package/dist/effects/stroke-draw.js +1 -1
  566. package/dist/effects/success-check.cjs +1 -1
  567. package/dist/effects/success-check.js +1 -1
  568. package/dist/effects/swipe-hint.cjs +1 -1
  569. package/dist/effects/swipe-hint.js +1 -1
  570. package/dist/effects/text-trail.cjs +1 -1
  571. package/dist/effects/text-trail.js +1 -1
  572. package/dist/effects/thinking-glow.cjs +1 -1
  573. package/dist/effects/thinking-glow.js +1 -1
  574. package/dist/effects/tilt-wobble.cjs +1 -1
  575. package/dist/effects/tilt-wobble.js +1 -1
  576. package/dist/effects/typing-dots.cjs +1 -1
  577. package/dist/effects/typing-dots.js +1 -1
  578. package/dist/effects/underline-sweep.cjs +1 -1
  579. package/dist/effects/underline-sweep.js +1 -1
  580. package/dist/effects/vhs-glitch.cjs +1 -1
  581. package/dist/effects/vhs-glitch.js +1 -1
  582. package/dist/effects/vine-grow.cjs +1 -1
  583. package/dist/effects/vine-grow.js +1 -1
  584. package/dist/effects/vinyl-spin.cjs +1 -1
  585. package/dist/effects/vinyl-spin.js +1 -1
  586. package/dist/effects/voice-wave.cjs +1 -1
  587. package/dist/effects/voice-wave.js +1 -1
  588. package/dist/effects/water-drop.cjs +1 -1
  589. package/dist/effects/water-drop.js +1 -1
  590. package/dist/effects/watercolor.cjs +1 -1
  591. package/dist/effects/watercolor.js +1 -1
  592. package/dist/effects/waveform-scope.cjs +1 -1
  593. package/dist/effects/waveform-scope.js +1 -1
  594. package/dist/effects/xmas-snow.cjs +1 -1
  595. package/dist/effects/xmas-snow.js +1 -1
  596. package/dist/effects/xp-gain.cjs +1 -1
  597. package/dist/effects/xp-gain.js +1 -1
  598. package/dist/effects/y2k-shine.cjs +1 -1
  599. package/dist/effects/y2k-shine.js +1 -1
  600. package/dist/element.cjs +1 -1
  601. package/dist/element.js +1 -1
  602. package/dist/element.umd.js +1 -1
  603. package/dist/index.cjs +1 -1
  604. package/dist/index.js +1 -1
  605. package/dist/index.umd.js +1 -1
  606. package/dist/llms-full.txt +1 -1
  607. package/dist/llms.txt +1 -1
  608. package/dist/manifest.json +234 -1
  609. package/dist/manifest.schema.json +16 -0
  610. package/dist/presets/extended.cjs +1 -1
  611. package/dist/presets/extended.js +1 -1
  612. package/dist/presets-extended.umd.js +1 -1
  613. package/dist/react.cjs +1 -1
  614. package/dist/react.js +1 -1
  615. package/dist/runtime/drag-snap.cjs +3 -3
  616. package/dist/runtime/drag-snap.d.cts +8 -0
  617. package/dist/runtime/drag-snap.d.ts +8 -0
  618. package/dist/runtime/drag-snap.iife.js +2 -2
  619. package/dist/runtime/drag-snap.js +3 -3
  620. package/dist/runtime/format-apng.cjs +6 -6
  621. package/dist/runtime/format-apng.d.cts +8 -0
  622. package/dist/runtime/format-apng.d.ts +8 -0
  623. package/dist/runtime/format-apng.iife.js +2 -2
  624. package/dist/runtime/format-apng.js +6 -6
  625. package/dist/runtime/format-css.cjs +6 -6
  626. package/dist/runtime/format-css.d.cts +8 -0
  627. package/dist/runtime/format-css.d.ts +8 -0
  628. package/dist/runtime/format-css.iife.js +2 -2
  629. package/dist/runtime/format-css.js +6 -6
  630. package/dist/runtime/format-gif.cjs +6 -6
  631. package/dist/runtime/format-gif.d.cts +8 -0
  632. package/dist/runtime/format-gif.d.ts +8 -0
  633. package/dist/runtime/format-gif.iife.js +2 -2
  634. package/dist/runtime/format-gif.js +6 -6
  635. package/dist/runtime/format-gltf.cjs +3 -3
  636. package/dist/runtime/format-gltf.d.cts +8 -0
  637. package/dist/runtime/format-gltf.d.ts +8 -0
  638. package/dist/runtime/format-gltf.iife.js +2 -2
  639. package/dist/runtime/format-gltf.js +3 -3
  640. package/dist/runtime/format-motion.cjs +6 -6
  641. package/dist/runtime/format-motion.d.cts +8 -0
  642. package/dist/runtime/format-motion.d.ts +8 -0
  643. package/dist/runtime/format-motion.iife.js +2 -2
  644. package/dist/runtime/format-motion.js +6 -6
  645. package/dist/runtime/format-obj.cjs +3 -3
  646. package/dist/runtime/format-obj.d.cts +8 -0
  647. package/dist/runtime/format-obj.d.ts +8 -0
  648. package/dist/runtime/format-obj.iife.js +2 -2
  649. package/dist/runtime/format-obj.js +3 -3
  650. package/dist/runtime/format-scene.cjs +3 -3
  651. package/dist/runtime/format-scene.d.cts +8 -0
  652. package/dist/runtime/format-scene.d.ts +8 -0
  653. package/dist/runtime/format-scene.iife.js +2 -2
  654. package/dist/runtime/format-scene.js +3 -3
  655. package/dist/runtime/format-sprite.cjs +5 -5
  656. package/dist/runtime/format-sprite.d.cts +8 -0
  657. package/dist/runtime/format-sprite.d.ts +8 -0
  658. package/dist/runtime/format-sprite.iife.js +2 -2
  659. package/dist/runtime/format-sprite.js +5 -5
  660. package/dist/runtime/format-svg.cjs +5 -5
  661. package/dist/runtime/format-svg.d.cts +8 -0
  662. package/dist/runtime/format-svg.d.ts +8 -0
  663. package/dist/runtime/format-svg.iife.js +2 -2
  664. package/dist/runtime/format-svg.js +5 -5
  665. package/dist/runtime/format-webp.cjs +6 -6
  666. package/dist/runtime/format-webp.d.cts +8 -0
  667. package/dist/runtime/format-webp.d.ts +8 -0
  668. package/dist/runtime/format-webp.iife.js +2 -2
  669. package/dist/runtime/format-webp.js +6 -6
  670. package/dist/runtime/gl.cjs +3 -2
  671. package/dist/runtime/gl.d.cts +8 -0
  672. package/dist/runtime/gl.d.ts +8 -0
  673. package/dist/runtime/gl.iife.js +2 -2
  674. package/dist/runtime/gl.js +3 -2
  675. package/dist/runtime/gltf-anim.cjs +3 -3
  676. package/dist/runtime/gltf-anim.d.cts +8 -0
  677. package/dist/runtime/gltf-anim.d.ts +8 -0
  678. package/dist/runtime/gltf-anim.iife.js +2 -2
  679. package/dist/runtime/gltf-anim.js +3 -3
  680. package/dist/runtime/gltf-decoders.cjs +3 -3
  681. package/dist/runtime/gltf-decoders.d.cts +8 -0
  682. package/dist/runtime/gltf-decoders.d.ts +8 -0
  683. package/dist/runtime/gltf-decoders.iife.js +2 -2
  684. package/dist/runtime/gltf-decoders.js +3 -3
  685. package/dist/runtime/lottie-state.cjs +3 -3
  686. package/dist/runtime/lottie-state.d.cts +8 -0
  687. package/dist/runtime/lottie-state.d.ts +8 -0
  688. package/dist/runtime/lottie-state.iife.js +2 -2
  689. package/dist/runtime/lottie-state.js +3 -3
  690. package/dist/runtime/physics.cjs +3 -3
  691. package/dist/runtime/physics.d.cts +8 -0
  692. package/dist/runtime/physics.d.ts +8 -0
  693. package/dist/runtime/physics.iife.js +2 -2
  694. package/dist/runtime/physics.js +3 -3
  695. package/dist/runtime/scroll.cjs +4 -4
  696. package/dist/runtime/scroll.d.cts +8 -0
  697. package/dist/runtime/scroll.d.ts +8 -0
  698. package/dist/runtime/scroll.iife.js +2 -2
  699. package/dist/runtime/scroll.js +4 -4
  700. package/dist/runtime/smooth.cjs +3 -3
  701. package/dist/runtime/smooth.d.cts +8 -0
  702. package/dist/runtime/smooth.d.ts +8 -0
  703. package/dist/runtime/smooth.iife.js +2 -2
  704. package/dist/runtime/smooth.js +3 -3
  705. package/dist/runtime/text.cjs +3 -3
  706. package/dist/runtime/text.d.cts +8 -0
  707. package/dist/runtime/text.d.ts +8 -0
  708. package/dist/runtime/text.iife.js +2 -2
  709. package/dist/runtime/text.js +3 -3
  710. package/dist/runtime/vector.cjs +5 -5
  711. package/dist/runtime/vector.d.cts +8 -0
  712. package/dist/runtime/vector.d.ts +8 -0
  713. package/dist/runtime/vector.iife.js +2 -2
  714. package/dist/runtime/vector.js +5 -5
  715. package/dist/runtime.cjs +9 -4
  716. package/dist/runtime.d.cts +18 -3
  717. package/dist/runtime.d.ts +18 -3
  718. package/dist/runtime.iife.js +2 -2
  719. package/dist/runtime.js +7 -6
  720. package/dist/solid.cjs +1 -1
  721. package/dist/solid.js +1 -1
  722. package/dist/svelte.cjs +1 -1
  723. package/dist/svelte.js +1 -1
  724. package/dist/vue.cjs +1 -1
  725. package/dist/vue.js +1 -1
  726. package/dist/widgets/add-to-cart.cjs +1 -1
  727. package/dist/widgets/add-to-cart.js +1 -1
  728. package/dist/widgets/badge-wall.cjs +1 -1
  729. package/dist/widgets/badge-wall.js +1 -1
  730. package/dist/widgets/bar-chart.cjs +1 -1
  731. package/dist/widgets/bar-chart.js +1 -1
  732. package/dist/widgets/bg-generator.cjs +1 -1
  733. package/dist/widgets/bg-generator.js +1 -1
  734. package/dist/widgets/carousel.cjs +1 -1
  735. package/dist/widgets/carousel.js +1 -1
  736. package/dist/widgets/cart-drawer.cjs +1 -1
  737. package/dist/widgets/cart-drawer.js +1 -1
  738. package/dist/widgets/chapter-nav.cjs +1 -1
  739. package/dist/widgets/chapter-nav.js +1 -1
  740. package/dist/widgets/chat-composer.cjs +1 -1
  741. package/dist/widgets/chat-composer.js +1 -1
  742. package/dist/widgets/clock-control.cjs +1 -1
  743. package/dist/widgets/clock-control.js +1 -1
  744. package/dist/widgets/code-export.cjs +1 -1
  745. package/dist/widgets/code-export.js +1 -1
  746. package/dist/widgets/color-picker.cjs +1 -1
  747. package/dist/widgets/color-picker.js +1 -1
  748. package/dist/widgets/command-palette.cjs +1 -1
  749. package/dist/widgets/command-palette.js +1 -1
  750. package/dist/widgets/compare.cjs +1 -1
  751. package/dist/widgets/compare.js +1 -1
  752. package/dist/widgets/countdown.cjs +1 -1
  753. package/dist/widgets/countdown.js +1 -1
  754. package/dist/widgets/cube-gallery.cjs +1 -1
  755. package/dist/widgets/cube-gallery.js +1 -1
  756. package/dist/widgets/date-picker.cjs +1 -1
  757. package/dist/widgets/date-picker.js +1 -1
  758. package/dist/widgets/disclosure.cjs +1 -1
  759. package/dist/widgets/disclosure.js +1 -1
  760. package/dist/widgets/dock.cjs +1 -1
  761. package/dist/widgets/dock.js +1 -1
  762. package/dist/widgets/dotlottie.cjs +4 -4
  763. package/dist/widgets/dotlottie.js +4 -4
  764. package/dist/widgets/equalizer.cjs +1 -1
  765. package/dist/widgets/equalizer.js +1 -1
  766. package/dist/widgets/festival-banner.cjs +1 -1
  767. package/dist/widgets/festival-banner.js +1 -1
  768. package/dist/widgets/field.cjs +1 -1
  769. package/dist/widgets/field.js +1 -1
  770. package/dist/widgets/file-drop.cjs +1 -1
  771. package/dist/widgets/file-drop.js +1 -1
  772. package/dist/widgets/gauge.cjs +1 -1
  773. package/dist/widgets/gauge.js +1 -1
  774. package/dist/widgets/gen-art.cjs +1 -1
  775. package/dist/widgets/gen-art.js +1 -1
  776. package/dist/widgets/gesture-sticker.cjs +1 -1
  777. package/dist/widgets/gesture-sticker.js +1 -1
  778. package/dist/widgets/gl-model.cjs +4 -4
  779. package/dist/widgets/gl-model.js +4 -4
  780. package/dist/widgets/gl-scene.cjs +4 -4
  781. package/dist/widgets/gl-scene.js +4 -4
  782. package/dist/widgets/globe.cjs +1 -1
  783. package/dist/widgets/globe.js +1 -1
  784. package/dist/widgets/gpu-particles.cjs +1 -1
  785. package/dist/widgets/gpu-particles.js +1 -1
  786. package/dist/widgets/gyro-card.cjs +1 -1
  787. package/dist/widgets/gyro-card.js +1 -1
  788. package/dist/widgets/hero-video.cjs +1 -1
  789. package/dist/widgets/hero-video.js +1 -1
  790. package/dist/widgets/hud-panel.cjs +1 -1
  791. package/dist/widgets/hud-panel.js +1 -1
  792. package/dist/widgets/hydrate.cjs +1 -1
  793. package/dist/widgets/hydrate.js +1 -1
  794. package/dist/widgets/install-button.cjs +1 -1
  795. package/dist/widgets/install-button.js +1 -1
  796. package/dist/widgets/kanban.cjs +1 -1
  797. package/dist/widgets/kanban.js +1 -1
  798. package/dist/widgets/keyframe-editor.cjs +1 -1
  799. package/dist/widgets/keyframe-editor.js +1 -1
  800. package/dist/widgets/kpi.cjs +1 -1
  801. package/dist/widgets/kpi.js +1 -1
  802. package/dist/widgets/leaderboard.cjs +1 -1
  803. package/dist/widgets/leaderboard.js +1 -1
  804. package/dist/widgets/liquid-nav.cjs +1 -1
  805. package/dist/widgets/liquid-nav.js +1 -1
  806. package/dist/widgets/location-card.cjs +1 -1
  807. package/dist/widgets/location-card.js +1 -1
  808. package/dist/widgets/lottie-icon.cjs +1 -1
  809. package/dist/widgets/lottie-icon.js +1 -1
  810. package/dist/widgets/lottie-player.cjs +4 -4
  811. package/dist/widgets/lottie-player.js +4 -4
  812. package/dist/widgets/lottie.cjs +1 -1
  813. package/dist/widgets/lottie.js +1 -1
  814. package/dist/widgets/lyrics.cjs +1 -1
  815. package/dist/widgets/lyrics.js +1 -1
  816. package/dist/widgets/masonry-flow.cjs +1 -1
  817. package/dist/widgets/masonry-flow.js +1 -1
  818. package/dist/widgets/menu-toggle.cjs +1 -1
  819. package/dist/widgets/menu-toggle.js +1 -1
  820. package/dist/widgets/menu.cjs +1 -1
  821. package/dist/widgets/menu.js +1 -1
  822. package/dist/widgets/message-list.cjs +1 -1
  823. package/dist/widgets/message-list.js +1 -1
  824. package/dist/widgets/milestones.cjs +1 -1
  825. package/dist/widgets/milestones.js +1 -1
  826. package/dist/widgets/modal.cjs +1 -1
  827. package/dist/widgets/modal.js +1 -1
  828. package/dist/widgets/motion-inspector.cjs +2 -2
  829. package/dist/widgets/motion-inspector.js +2 -2
  830. package/dist/widgets/motion-prefs.cjs +1 -1
  831. package/dist/widgets/motion-prefs.js +1 -1
  832. package/dist/widgets/motion-prompt.cjs +1 -1
  833. package/dist/widgets/motion-prompt.js +1 -1
  834. package/dist/widgets/motion-spec.cjs +1 -1
  835. package/dist/widgets/motion-spec.js +1 -1
  836. package/dist/widgets/motion.cjs +1 -1
  837. package/dist/widgets/motion.js +1 -1
  838. package/dist/widgets/music-player.cjs +1 -1
  839. package/dist/widgets/music-player.js +1 -1
  840. package/dist/widgets/native-preview.cjs +1 -1
  841. package/dist/widgets/native-preview.js +1 -1
  842. package/dist/widgets/nav-morph.cjs +1 -1
  843. package/dist/widgets/nav-morph.js +1 -1
  844. package/dist/widgets/notification-bell.cjs +1 -1
  845. package/dist/widgets/notification-bell.js +1 -1
  846. package/dist/widgets/odometer.cjs +1 -1
  847. package/dist/widgets/odometer.js +1 -1
  848. package/dist/widgets/organic-card.cjs +1 -1
  849. package/dist/widgets/organic-card.js +1 -1
  850. package/dist/widgets/otp.cjs +1 -1
  851. package/dist/widgets/otp.js +1 -1
  852. package/dist/widgets/pagination.cjs +1 -1
  853. package/dist/widgets/pagination.js +1 -1
  854. package/dist/widgets/panorama.cjs +1 -1
  855. package/dist/widgets/panorama.js +1 -1
  856. package/dist/widgets/parallax-layers.cjs +1 -1
  857. package/dist/widgets/parallax-layers.js +1 -1
  858. package/dist/widgets/pause-all.cjs +1 -1
  859. package/dist/widgets/pause-all.js +1 -1
  860. package/dist/widgets/perf-monitor.cjs +1 -1
  861. package/dist/widgets/perf-monitor.js +1 -1
  862. package/dist/widgets/physics-playground.cjs +4 -4
  863. package/dist/widgets/physics-playground.js +4 -4
  864. package/dist/widgets/plugin-card.cjs +3 -3
  865. package/dist/widgets/plugin-card.js +3 -3
  866. package/dist/widgets/plugin-store.cjs +1 -1
  867. package/dist/widgets/plugin-store.js +1 -1
  868. package/dist/widgets/presence.cjs +1 -1
  869. package/dist/widgets/presence.js +1 -1
  870. package/dist/widgets/prize-wheel.cjs +1 -1
  871. package/dist/widgets/prize-wheel.js +1 -1
  872. package/dist/widgets/product-gallery.cjs +1 -1
  873. package/dist/widgets/product-gallery.js +1 -1
  874. package/dist/widgets/progress-ring.cjs +1 -1
  875. package/dist/widgets/progress-ring.js +1 -1
  876. package/dist/widgets/prop-panel.cjs +1 -1
  877. package/dist/widgets/prop-panel.js +1 -1
  878. package/dist/widgets/pull-cord.cjs +1 -1
  879. package/dist/widgets/pull-cord.js +1 -1
  880. package/dist/widgets/radar.cjs +1 -1
  881. package/dist/widgets/radar.js +1 -1
  882. package/dist/widgets/reactions.cjs +1 -1
  883. package/dist/widgets/reactions.js +1 -1
  884. package/dist/widgets/red-envelope.cjs +1 -1
  885. package/dist/widgets/red-envelope.js +1 -1
  886. package/dist/widgets/retro-button.cjs +1 -1
  887. package/dist/widgets/retro-button.js +1 -1
  888. package/dist/widgets/rive.cjs +1 -1
  889. package/dist/widgets/rive.js +1 -1
  890. package/dist/widgets/route-transition.cjs +1 -1
  891. package/dist/widgets/route-transition.js +1 -1
  892. package/dist/widgets/scene.cjs +1 -1
  893. package/dist/widgets/scene.js +1 -1
  894. package/dist/widgets/scroll-ring.cjs +1 -1
  895. package/dist/widgets/scroll-ring.js +1 -1
  896. package/dist/widgets/scroll-scene.cjs +4 -4
  897. package/dist/widgets/scroll-scene.js +4 -4
  898. package/dist/widgets/segmented.cjs +1 -1
  899. package/dist/widgets/segmented.js +1 -1
  900. package/dist/widgets/shader-backdrop.cjs +1 -1
  901. package/dist/widgets/shader-backdrop.js +1 -1
  902. package/dist/widgets/sheet.cjs +1 -1
  903. package/dist/widgets/sheet.js +1 -1
  904. package/dist/widgets/shortcut.cjs +1 -1
  905. package/dist/widgets/shortcut.js +1 -1
  906. package/dist/widgets/skeleton-reveal.cjs +1 -1
  907. package/dist/widgets/skeleton-reveal.js +1 -1
  908. package/dist/widgets/sketch-chart.cjs +1 -1
  909. package/dist/widgets/sketch-chart.js +1 -1
  910. package/dist/widgets/smooth-scroll.cjs +3 -3
  911. package/dist/widgets/smooth-scroll.js +3 -3
  912. package/dist/widgets/snap-carousel.cjs +3 -3
  913. package/dist/widgets/snap-carousel.js +3 -3
  914. package/dist/widgets/sparkline.cjs +1 -1
  915. package/dist/widgets/sparkline.js +1 -1
  916. package/dist/widgets/spatial-card.cjs +1 -1
  917. package/dist/widgets/spatial-card.js +1 -1
  918. package/dist/widgets/star-rating.cjs +1 -1
  919. package/dist/widgets/star-rating.js +1 -1
  920. package/dist/widgets/stepper.cjs +1 -1
  921. package/dist/widgets/stepper.js +1 -1
  922. package/dist/widgets/sticky-wall.cjs +1 -1
  923. package/dist/widgets/sticky-wall.js +1 -1
  924. package/dist/widgets/stories.cjs +1 -1
  925. package/dist/widgets/stories.js +1 -1
  926. package/dist/widgets/suggestion-chips.cjs +1 -1
  927. package/dist/widgets/suggestion-chips.js +1 -1
  928. package/dist/widgets/swipe-deck.cjs +1 -1
  929. package/dist/widgets/swipe-deck.js +1 -1
  930. package/dist/widgets/switch.cjs +1 -1
  931. package/dist/widgets/switch.js +1 -1
  932. package/dist/widgets/tab-bar.cjs +1 -1
  933. package/dist/widgets/tab-bar.js +1 -1
  934. package/dist/widgets/terminal.cjs +1 -1
  935. package/dist/widgets/terminal.js +1 -1
  936. package/dist/widgets/text-splitter.cjs +3 -3
  937. package/dist/widgets/text-splitter.js +3 -3
  938. package/dist/widgets/theme-surface.cjs +1 -1
  939. package/dist/widgets/theme-surface.js +1 -1
  940. package/dist/widgets/theme-switcher.cjs +1 -1
  941. package/dist/widgets/theme-switcher.js +1 -1
  942. package/dist/widgets/tip.cjs +1 -1
  943. package/dist/widgets/tip.js +1 -1
  944. package/dist/widgets/toast-stack.cjs +1 -1
  945. package/dist/widgets/toast-stack.js +1 -1
  946. package/dist/widgets/token-editor.cjs +1 -1
  947. package/dist/widgets/token-editor.js +1 -1
  948. package/dist/widgets/upload-progress.cjs +1 -1
  949. package/dist/widgets/upload-progress.js +1 -1
  950. package/dist/widgets/video-card.cjs +1 -1
  951. package/dist/widgets/video-card.js +1 -1
  952. package/dist/widgets/voice-button.cjs +1 -1
  953. package/dist/widgets/voice-button.js +1 -1
  954. package/dist/widgets/volume-knob.cjs +1 -1
  955. package/dist/widgets/volume-knob.js +1 -1
  956. package/dist/widgets/weather-card.cjs +1 -1
  957. package/dist/widgets/weather-card.js +1 -1
  958. package/dist/widgets/worker-canvas.cjs +1 -1
  959. package/dist/widgets/worker-canvas.js +1 -1
  960. package/dist/widgets/xp-bar.cjs +1 -1
  961. package/dist/widgets/xp-bar.js +1 -1
  962. package/dist/widgets.umd.js +2 -2
  963. package/docs/ROADMAP.md +2 -2
  964. package/docs/perf-ci.md +36 -0
  965. package/docs/performance.md +2 -0
  966. package/docs/runtime/basis-transcoder.md +2 -0
  967. package/docs/runtime/core.md +2 -0
  968. package/docs/runtime/draco3d.md +2 -0
  969. package/docs/runtime/drag-snap.md +2 -0
  970. package/docs/runtime/format-apng.md +2 -0
  971. package/docs/runtime/format-css.md +2 -0
  972. package/docs/runtime/format-gif.md +2 -0
  973. package/docs/runtime/format-gltf.md +2 -0
  974. package/docs/runtime/format-motion.md +2 -0
  975. package/docs/runtime/format-obj.md +2 -0
  976. package/docs/runtime/format-scene.md +2 -0
  977. package/docs/runtime/format-sprite.md +2 -0
  978. package/docs/runtime/format-svg.md +2 -0
  979. package/docs/runtime/format-webp.md +2 -0
  980. package/docs/runtime/gl.md +2 -0
  981. package/docs/runtime/gltf-anim.md +2 -0
  982. package/docs/runtime/gltf-decoders.md +2 -0
  983. package/docs/runtime/lottie-state.md +2 -0
  984. package/docs/runtime/physics.md +2 -0
  985. package/docs/runtime/rive.md +2 -0
  986. package/docs/runtime/scroll.md +2 -0
  987. package/docs/runtime/smooth.md +2 -0
  988. package/docs/runtime/text.md +2 -0
  989. package/docs/runtime/vector.md +2 -0
  990. package/docs/runtime-tiers.md +37 -0
  991. package/package.json +4 -2
@@ -1,2 +1,2 @@
1
- !function(t,e,n){"use strict";const r=t=>t<=10?100:t;function i(t,e,n,r){const i=new Uint8ClampedArray(t*e*4),a=[];for(const o of n){const n="previous"===o.dispose?i.slice():null,{width:s,height:f,data:h}=o.image;for(let n=0;n<f;n++){const r=o.y+n;if(!(r<0||r>=e))for(let e=0;e<s;e++){const a=o.x+e;if(a<0||a>=t)continue;const f=4*(n*s+e),c=4*(r*t+a),l=h[f+3];if("source"===o.blend||255===l)i[c]=h[f],i[c+1]=h[f+1],i[c+2]=h[f+2],i[c+3]=l;else if(l){const t=i[c+3]/255,e=l/255,n=e+t*(1-e);for(let r=0;r<3;r++)i[c+r]=(h[f+r]*e+i[c+r]*t*(1-e))/n;i[c+3]=255*n}}}if(a.push({delay:o.delay,image:{width:t,height:e,data:i.slice()}}),"background"===o.dispose)for(let n=Math.max(0,o.y);n<Math.min(e,o.y+f);n++)for(let e=Math.max(0,o.x);e<Math.min(t,o.x+s);e++)i.set(r||[0,0,0,0],4*(n*t+e));else n&&i.set(n)}return a}class a extends n.Playable{constructor(t,e,n){super({repeat:n.repeat??(0===e.plays?-1:Math.max(0,e.plays-1)),yoyo:n.yoyo}),this.canvas=t,this.anim=e,this.times=[0],this.cur=-1,this.timeScale=n.speed||1;for(const t of e.frames)this.times.push(this.times[this.times.length-1]+t.delay);t.width!==e.width&&(t.width=e.width),t.height!==e.height&&(t.height=e.height),this.ctx=t.getContext("2d"),this.datas=e.frames.map(()=>null),this.show(0),n.paused||this.play()}get duration(){return this.times[this.times.length-1]}get frame(){return this.cur}get frameCount(){return this.anim.frames.length}renderLocal(t){const e=Math.min(t,this.duration-.001);let n=0,r=this.anim.frames.length-1;for(;n<r;){const t=n+r+1>>1;this.times[t]<=e?n=t:r=t-1}this.show(n)}show(t){if(t===this.cur||!this.ctx)return;this.cur=t;const e=this.anim.frames[t];if(!e)return;let n=this.datas[t];n||"function"!=typeof ImageData||(n=this.datas[t]=new ImageData(new Uint8ClampedArray(e.image.data),e.image.width,e.image.height)),n&&this.ctx.putImageData(n,0,0)}}function o(t,e,n={}){if(!e.frames.length)throw new Error("[motionary] animatedImagePlayer: the animation has no frames");return new a(t,e,n)}function s(t,e,n){const r=new Uint8Array(n),i=1<<t,a=i+1,o=new Uint16Array(4096),s=new Uint8Array(4096),f=new Uint8Array(4097);let h=t+1,c=(1<<h)-1,l=a+1,u=-1,m=0,y=0,d=0,g=0,w=0;for(let t=0;t<i;t++)s[t]=t;for(;g<n;){for(;y<h;){if(w>=e.length)return r;d|=e[w++]<<y,y+=8}const p=d&c;if(d>>>=h,y-=h,p===i){h=t+1,c=(1<<h)-1,l=a+1,u=-1;continue}if(p===a)break;if(-1===u){r[g++]=s[p],u=m=p;continue}let b=p,A=0;for(p>=l&&(f[A++]=m,b=u);b>=i;)f[A++]=s[b],b=o[b];for(m=s[b],f[A++]=m;A&&g<n;)r[g++]=f[--A];l<4096&&(o[l]=u,s[l]=m,l++,l>c&&h<12&&(h++,c=(1<<h)-1)),u=p}return r}const f=["none","none","background","previous"];function h(t){const e=(n=t)instanceof ArrayBuffer?new Uint8Array(n):new Uint8Array(n.buffer,n.byteOffset,n.byteLength);var n;const a=String.fromCharCode(...e.subarray(0,6));if("GIF87a"!==a&&"GIF89a"!==a)throw new Error("[motionary] format-gif: not a GIF file");const o=e[6]|e[7]<<8,h=e[8]|e[9]<<8,c=e[10];let l=13,u=null;if(128&c){const t=3<<1+(7&c);u=e.subarray(l,l+t),l+=t}const m=[];let y=null,d=0,g=-1,w=0;const p=()=>{const t=[];let n=0;for(;l<e.length;){const r=e[l++];if(!r)break;t.push(e.subarray(l,l+r)),n+=r,l+=r}const r=new Uint8Array(n);let i=0;for(const e of t)r.set(e,i),i+=e.length;return r};for(;l<e.length;){const t=e[l++];if(59===t)break;if(33===t){const t=e[l++];if(249===t){const t=p();w=t[0]>>2&7,d=10*(t[1]|t[2]<<8),g=1&t[0]?t[3]:-1}else if(255===t){const t=String.fromCharCode(...e.subarray(l+1,l+12)),n=p();("NETSCAPE2.0"===t||"ANIMEXTS1.0"===t)&&n.length>=14&&1===n[11]&&(y=n[12]|n[13]<<8)}else p();continue}if(44!==t)break;const n=e[l]|e[l+1]<<8,i=e[l+2]|e[l+3]<<8,a=e[l+4]|e[l+5]<<8,o=e[l+6]|e[l+7]<<8,h=e[l+8];l+=9;let c=u;if(128&h){const t=3<<1+(7&h);c=e.subarray(l,l+t),l+=t}const b=s(e[l++],p(),a*o),A=new Uint32Array(o);if(64&h){let t=0;for(const[e,n]of[[0,8],[4,8],[2,4],[1,2]])for(let r=e;r<o;r+=n)A[t++]=r}else for(let t=0;t<o;t++)A[t]=t;const U=new Uint8ClampedArray(a*o*4);for(let t=0;t<o;t++){const e=A[t];for(let n=0;n<a;n++){const r=b[t*a+n],i=4*(e*a+n);r===g||!c||3*r+2>=c.length||(U[i]=c[3*r],U[i+1]=c[3*r+1],U[i+2]=c[3*r+2],U[i+3]=255)}}m.push({x:n,y:i,image:{width:a,height:o,data:U},delay:r(d),blend:"over",dispose:f[w]||"none"}),d=0,g=-1,w=0}const b=i(o,h,m);return{format:"gif",width:o,height:h,plays:null===y?1:0===y?0:y+1,frames:b,info:{version:a.slice(3),width:o,height:h,loopCount:y,frameCount:b.length}}}async function c(t){return h(await async function(t){if("string"==typeof t){const e=await fetch(t);if(!e.ok)throw new Error(`[motionary] could not load ${t} (${e.status})`);return new Uint8Array(await e.arrayBuffer())}return t instanceof ArrayBuffer?new Uint8Array(t):ArrayBuffer.isView(t)?new Uint8Array(t.buffer,t.byteOffset,t.byteLength):new Uint8Array(await t.arrayBuffer())}(t))}const l={id:"format-gif",version:e.RUNTIME_VERSION,requires:["core"],api:{decodeGif:h,loadGif:c,lzwDecode:s,animatedImagePlayer:o}};e.register(l),t.animatedImagePlayer=o,t.composeFrames=i,t.decodeGif=h,t.formatGif=l,t.loadGif=c,t.lzwDecode=s}(this.MotionaryRuntime=this.MotionaryRuntime||{},MotionaryRuntime,MotionaryRuntime);
2
- //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v11.2.0/dist/runtime/format-gif.iife.js.map
1
+ !function(t,e,n){"use strict";const r=t=>t<=10?100:t;function i(t,e,n,r){const i=new Uint8ClampedArray(t*e*4),a=[];for(const o of n){const n="previous"===o.dispose?i.slice():null,{width:s,height:f,data:h}=o.image;for(let n=0;n<f;n++){const r=o.y+n;if(!(r<0||r>=e))for(let e=0;e<s;e++){const a=o.x+e;if(a<0||a>=t)continue;const f=4*(n*s+e),c=4*(r*t+a),l=h[f+3];if("source"===o.blend||255===l)i[c]=h[f],i[c+1]=h[f+1],i[c+2]=h[f+2],i[c+3]=l;else if(l){const t=i[c+3]/255,e=l/255,n=e+t*(1-e);for(let r=0;r<3;r++)i[c+r]=(h[f+r]*e+i[c+r]*t*(1-e))/n;i[c+3]=255*n}}}if(a.push({delay:o.delay,image:{width:t,height:e,data:i.slice()}}),"background"===o.dispose)for(let n=Math.max(0,o.y);n<Math.min(e,o.y+f);n++)for(let e=Math.max(0,o.x);e<Math.min(t,o.x+s);e++)i.set(r||[0,0,0,0],4*(n*t+e));else n&&i.set(n)}return a}class a extends n.Playable{constructor(t,e,n){super({repeat:n.repeat??(0===e.plays?-1:Math.max(0,e.plays-1)),yoyo:n.yoyo}),this.canvas=t,this.anim=e,this.times=[0],this.cur=-1,this.timeScale=n.speed||1;for(const t of e.frames)this.times.push(this.times[this.times.length-1]+t.delay);t.width!==e.width&&(t.width=e.width),t.height!==e.height&&(t.height=e.height),this.ctx=t.getContext("2d"),this.datas=e.frames.map(()=>null),this.show(0),n.paused||this.play()}get duration(){return this.times[this.times.length-1]}get frame(){return this.cur}get frameCount(){return this.anim.frames.length}renderLocal(t){const e=Math.min(t,this.duration-.001);let n=0,r=this.anim.frames.length-1;for(;n<r;){const t=n+r+1>>1;this.times[t]<=e?n=t:r=t-1}this.show(n)}show(t){if(t===this.cur||!this.ctx)return;this.cur=t;const e=this.anim.frames[t];if(!e)return;let n=this.datas[t];n||"function"!=typeof ImageData||(n=this.datas[t]=new ImageData(new Uint8ClampedArray(e.image.data),e.image.width,e.image.height)),n&&this.ctx.putImageData(n,0,0)}}function o(t,e,n={}){if(!e.frames.length)throw new Error("[motionary] animatedImagePlayer: the animation has no frames");return new a(t,e,n)}function s(t,e,n){const r=new Uint8Array(n),i=1<<t,a=i+1,o=new Uint16Array(4096),s=new Uint8Array(4096),f=new Uint8Array(4097);let h=t+1,c=(1<<h)-1,l=a+1,u=-1,m=0,y=0,d=0,g=0,w=0;for(let t=0;t<i;t++)s[t]=t;for(;g<n;){for(;y<h;){if(w>=e.length)return r;d|=e[w++]<<y,y+=8}const p=d&c;if(d>>>=h,y-=h,p===i){h=t+1,c=(1<<h)-1,l=a+1,u=-1;continue}if(p===a)break;if(-1===u){r[g++]=s[p],u=m=p;continue}let b=p,A=0;for(p>=l&&(f[A++]=m,b=u);b>=i;)f[A++]=s[b],b=o[b];for(m=s[b],f[A++]=m;A&&g<n;)r[g++]=f[--A];l<4096&&(o[l]=u,s[l]=m,l++,l>c&&h<12&&(h++,c=(1<<h)-1)),u=p}return r}const f=["none","none","background","previous"];function h(t){const e=(n=t)instanceof ArrayBuffer?new Uint8Array(n):new Uint8Array(n.buffer,n.byteOffset,n.byteLength);var n;const a=String.fromCharCode(...e.subarray(0,6));if("GIF87a"!==a&&"GIF89a"!==a)throw new Error("[motionary] format-gif: not a GIF file");const o=e[6]|e[7]<<8,h=e[8]|e[9]<<8,c=e[10];let l=13,u=null;if(128&c){const t=3<<1+(7&c);u=e.subarray(l,l+t),l+=t}const m=[];let y=null,d=0,g=-1,w=0;const p=()=>{const t=[];let n=0;for(;l<e.length;){const r=e[l++];if(!r)break;t.push(e.subarray(l,l+r)),n+=r,l+=r}const r=new Uint8Array(n);let i=0;for(const e of t)r.set(e,i),i+=e.length;return r};for(;l<e.length;){const t=e[l++];if(59===t)break;if(33===t){const t=e[l++];if(249===t){const t=p();w=t[0]>>2&7,d=10*(t[1]|t[2]<<8),g=1&t[0]?t[3]:-1}else if(255===t){const t=String.fromCharCode(...e.subarray(l+1,l+12)),n=p();("NETSCAPE2.0"===t||"ANIMEXTS1.0"===t)&&n.length>=14&&1===n[11]&&(y=n[12]|n[13]<<8)}else p();continue}if(44!==t)break;const n=e[l]|e[l+1]<<8,i=e[l+2]|e[l+3]<<8,a=e[l+4]|e[l+5]<<8,o=e[l+6]|e[l+7]<<8,h=e[l+8];l+=9;let c=u;if(128&h){const t=3<<1+(7&h);c=e.subarray(l,l+t),l+=t}const b=s(e[l++],p(),a*o),A=new Uint32Array(o);if(64&h){let t=0;for(const[e,n]of[[0,8],[4,8],[2,4],[1,2]])for(let r=e;r<o;r+=n)A[t++]=r}else for(let t=0;t<o;t++)A[t]=t;const U=new Uint8ClampedArray(a*o*4);for(let t=0;t<o;t++){const e=A[t];for(let n=0;n<a;n++){const r=b[t*a+n],i=4*(e*a+n);r===g||!c||3*r+2>=c.length||(U[i]=c[3*r],U[i+1]=c[3*r+1],U[i+2]=c[3*r+2],U[i+3]=255)}}m.push({x:n,y:i,image:{width:a,height:o,data:U},delay:r(d),blend:"over",dispose:f[w]||"none"}),d=0,g=-1,w=0}const b=i(o,h,m);return{format:"gif",width:o,height:h,plays:null===y?1:0===y?0:y+1,frames:b,info:{version:a.slice(3),width:o,height:h,loopCount:y,frameCount:b.length}}}async function c(t){return h(await async function(t){if("string"==typeof t){const e=await fetch(t);if(!e.ok)throw new Error(`[motionary] could not load ${t} (${e.status})`);return new Uint8Array(await e.arrayBuffer())}return t instanceof ArrayBuffer?new Uint8Array(t):ArrayBuffer.isView(t)?new Uint8Array(t.buffer,t.byteOffset,t.byteLength):new Uint8Array(await t.arrayBuffer())}(t))}const l={id:"format-gif",version:e.RUNTIME_VERSION,tier:"standard",requires:["core"],api:{decodeGif:h,loadGif:c,lzwDecode:s,animatedImagePlayer:o}};e.register(l),t.animatedImagePlayer=o,t.composeFrames=i,t.decodeGif=h,t.formatGif=l,t.loadGif=c,t.lzwDecode=s}(this.MotionaryRuntime=this.MotionaryRuntime||{},MotionaryRuntime,MotionaryRuntime);
2
+ //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v11.4.0/dist/runtime/format-gif.iife.js.map
@@ -1,7 +1,7 @@
1
- import { R as RUNTIME_VERSION } from '../chunks/registry-DZMe2rVp.js';
2
- import { a as animatedImagePlayer, u as u8, c as composeFrames, d as bytesOf, f as fixDelay } from '../chunks/anim-image-CigwAy10.js';
3
- import '../chunks/tween-MhtysD-Y.js';
4
- import '../chunks/ticker-Cq2SmYNJ.js';
1
+ import { R as RUNTIME_VERSION } from '../chunks/registry-CorBCE7b.js';
2
+ import { a as animatedImagePlayer, u as u8, c as composeFrames, d as bytesOf, f as fixDelay } from '../chunks/anim-image-CSrYZ3ZY.js';
3
+ import '../chunks/tween-BHDOFhXX.js';
4
+ import '../chunks/ticker-CZisW9Nb.js';
5
5
  import '../chunks/ease-XN8_0sXu.js';
6
6
 
7
7
  /**
@@ -193,7 +193,7 @@ async function loadGif(src) {
193
193
  return decodeGif(await bytesOf(src));
194
194
  }
195
195
  /** The module object for `use(formatGif)`. */
196
- const formatGif = { id: 'format-gif', version: RUNTIME_VERSION, requires: ['core'], api: { decodeGif, loadGif, lzwDecode, animatedImagePlayer } };
196
+ const formatGif = { id: 'format-gif', version: RUNTIME_VERSION, tier: 'standard', requires: ['core'], api: { decodeGif, loadGif, lzwDecode, animatedImagePlayer } };
197
197
 
198
198
  export { animatedImagePlayer, composeFrames, decodeGif, formatGif, loadGif, lzwDecode };
199
- //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v11.2.0/dist/runtime/format-gif.js.map
199
+ //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v11.4.0/dist/runtime/format-gif.js.map
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var registry = require('../chunks/registry-BIhHroDh.cjs');
3
+ var registry = require('../chunks/registry-VITvgTNc.cjs');
4
4
  var runtime_gl = require('./gl.cjs');
5
5
 
6
6
  /**
@@ -219,7 +219,7 @@ async function loadGltf(src, o = {}) {
219
219
  return gltfToNode(json, buffers, images, o.scene);
220
220
  }
221
221
  /** The module object for `use(formatGltf)` (needs `gl`). */
222
- const formatGltf = { id: 'format-gltf', version: registry.RUNTIME_VERSION, requires: ['core', 'gl'], api: { parseGlb, readAccessor, gltfToNode, loadGltf, SUPPORTED_EXTENSIONS } };
222
+ const formatGltf = { id: 'format-gltf', version: registry.RUNTIME_VERSION, tier: 'advanced', requires: ['core', 'gl'], api: { parseGlb, readAccessor, gltfToNode, loadGltf, SUPPORTED_EXTENSIONS } };
223
223
 
224
224
  exports.SUPPORTED_EXTENSIONS = SUPPORTED_EXTENSIONS;
225
225
  exports.formatGltf = formatGltf;
@@ -227,4 +227,4 @@ exports.gltfToNode = gltfToNode;
227
227
  exports.loadGltf = loadGltf;
228
228
  exports.parseGlb = parseGlb;
229
229
  exports.readAccessor = readAccessor;
230
- //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v11.2.0/dist/runtime/format-gltf.cjs.map
230
+ //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v11.4.0/dist/runtime/format-gltf.cjs.map
@@ -1,3 +1,9 @@
1
+ /**
2
+ * 11.4: runtime tiers. **basic** — ticker, tween, timeline, scroll, text, CSS / WAAPI keyframes; **standard** — smooth
3
+ * scrolling, drag-snap, SVG, sprites, GIF / APNG / WebP, Lottie; **advanced** — WebGL, 3D file parsing and decoders,
4
+ * physics. A page that only uses basic modules never downloads standard or advanced code.
5
+ */
6
+ type RuntimeTier = 'basic' | 'standard' | 'advanced';
1
7
  /** A runtime module: `{ id, version, api }`, registered with `use()`. */
2
8
  interface RuntimeModule<A = unknown> {
3
9
  /** Module id: 'core', 'format-css', 'scroll', … (import path `motionary/runtime/<id>`). */
@@ -5,6 +11,8 @@ interface RuntimeModule<A = unknown> {
5
11
  version: string;
6
12
  /** Other modules this one needs (registered first by `use()` callers). */
7
13
  requires?: string[];
14
+ /** 11.4: runtime tier — basic · standard · advanced (docs/runtime-tiers.md). */
15
+ tier?: RuntimeTier;
8
16
  /** The module's public API (what `requireModule(id)` returns). */
9
17
  api: A;
10
18
  /** Optional one-time setup, called on first registration. */
@@ -1,3 +1,9 @@
1
+ /**
2
+ * 11.4: runtime tiers. **basic** — ticker, tween, timeline, scroll, text, CSS / WAAPI keyframes; **standard** — smooth
3
+ * scrolling, drag-snap, SVG, sprites, GIF / APNG / WebP, Lottie; **advanced** — WebGL, 3D file parsing and decoders,
4
+ * physics. A page that only uses basic modules never downloads standard or advanced code.
5
+ */
6
+ type RuntimeTier = 'basic' | 'standard' | 'advanced';
1
7
  /** A runtime module: `{ id, version, api }`, registered with `use()`. */
2
8
  interface RuntimeModule<A = unknown> {
3
9
  /** Module id: 'core', 'format-css', 'scroll', … (import path `motionary/runtime/<id>`). */
@@ -5,6 +11,8 @@ interface RuntimeModule<A = unknown> {
5
11
  version: string;
6
12
  /** Other modules this one needs (registered first by `use()` callers). */
7
13
  requires?: string[];
14
+ /** 11.4: runtime tier — basic · standard · advanced (docs/runtime-tiers.md). */
15
+ tier?: RuntimeTier;
8
16
  /** The module's public API (what `requireModule(id)` returns). */
9
17
  api: A;
10
18
  /** Optional one-time setup, called on first registration. */
@@ -1,2 +1,2 @@
1
- !function(t,e){"use strict";const r={identity:()=>new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),multiply(t,e,r=new Float32Array(16)){for(let o=0;o<4;o++)for(let n=0;n<4;n++)r[4*o+n]=t[n]*e[4*o]+t[4+n]*e[4*o+1]+t[8+n]*e[4*o+2]+t[12+n]*e[4*o+3];return r},perspective(t,e,r,o){const n=1/Math.tan(t/2),i=1/(r-o);return new Float32Array([n/e,0,0,0,0,n,0,0,0,0,(o+r)*i,-1,0,0,2*o*r*i,0])},lookAt(t,e,r=[0,1,0]){let a=o(t,e);a=s(a.some(t=>t)?a:[0,0,1]);let l=i(r,a);l.some(t=>Math.abs(t)>1e-9)||(l=i([0,0,1],a)),l=s(l);const f=i(a,l);return new Float32Array([l[0],f[0],a[0],0,l[1],f[1],a[1],0,l[2],f[2],a[2],0,-n(l,t),-n(f,t),-n(a,t),1])},compose(t,e,r){const[o,n,i,s]=e,a=o+o,l=n+n,f=i+i,c=o*a,u=o*l,d=o*f,m=n*l,h=n*f,y=i*f,p=s*a,g=s*l,w=s*f;return new Float32Array([(1-(m+y))*r[0],(u+w)*r[0],(d-g)*r[0],0,(u-w)*r[1],(1-(c+y))*r[1],(h+p)*r[1],0,(d+g)*r[2],(h-p)*r[2],(1-(c+m))*r[2],0,t[0],t[1],t[2],1])},invert(t){const e=new Float32Array(16),[r,o,n,i,s,a,l,f,c,u,d,m,h,y,p,g]=t,w=r*a-o*s,b=r*l-n*s,v=r*f-i*s,A=o*l-n*a,E=o*f-i*a,U=n*f-i*l,O=c*y-u*h,T=c*p-d*h,x=c*g-m*h,M=u*p-d*y,R=u*g-m*y,F=d*g-m*p;let I=w*F-b*R+v*M+A*x-E*T+U*O;return I?(I=1/I,e[0]=(a*F-l*R+f*M)*I,e[1]=(n*R-o*F-i*M)*I,e[2]=(y*U-p*E+g*A)*I,e[3]=(d*E-u*U-m*A)*I,e[4]=(l*x-s*F-f*T)*I,e[5]=(r*F-n*x+i*T)*I,e[6]=(p*v-h*U-g*b)*I,e[7]=(c*U-d*v+m*b)*I,e[8]=(s*R-a*x+f*O)*I,e[9]=(o*x-r*R-i*O)*I,e[10]=(h*E-y*v+g*w)*I,e[11]=(u*v-c*E-m*w)*I,e[12]=(a*T-s*M-l*O)*I,e[13]=(r*M-o*T+n*O)*I,e[14]=(y*b-h*A-p*w)*I,e[15]=(c*A-u*b+d*w)*I,e):null},normal(t){const e=r.invert(t)||r.identity();return new Float32Array([e[0],e[4],e[8],e[1],e[5],e[9],e[2],e[6],e[10]])},transformPoint(t,e){const r=t[3]*e[0]+t[7]*e[1]+t[11]*e[2]+t[15]||1;return[(t[0]*e[0]+t[4]*e[1]+t[8]*e[2]+t[12])/r,(t[1]*e[0]+t[5]*e[1]+t[9]*e[2]+t[13])/r,(t[2]*e[0]+t[6]*e[1]+t[10]*e[2]+t[14])/r]}},o=(t,e)=>[t[0]-e[0],t[1]-e[1],t[2]-e[2]],n=(t,e)=>t[0]*e[0]+t[1]*e[1]+t[2]*e[2],i=(t,e)=>[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]],s=t=>{const e=Math.hypot(t[0],t[1],t[2])||1;return[t[0]/e,t[1]/e,t[2]/e]};function a(t={}){return{type:"standard",color:[1,1,1,1],metallic:0,roughness:.6,emissive:[0,0,0],...t}}class l{constructor(t="",e=null){this.name="",this.position=[0,0,0],this.rotation=[0,0,0,1],this.scale=[1,1,1],this.matrix=null,this.children=[],this.parent=null,this.mesh=null,this.visible=!0,this.extras={},this.world=r.identity(),this.name=t,this.mesh=e}add(...t){for(const e of t)e.parent?.remove(e),e.parent=this,this.children.push(e);return this}remove(t){const e=this.children.indexOf(t);e>=0&&this.children.splice(e,1),t.parent=null}setEuler(t,e,r){return this.rotation=function(t,e,r){const o=Math.cos(t/2),n=Math.sin(t/2),i=Math.cos(e/2),s=Math.sin(e/2),a=Math.cos(r/2),l=Math.sin(r/2);return[n*i*a+o*s*l,o*s*a-n*i*l,o*i*l+n*s*a,o*i*a-n*s*l]}(t,e,r),this}local(){return this.matrix||r.compose(this.position,this.rotation,this.scale)}updateWorld(t){const e=t?r.multiply(t,this.local()):this.local();this.world.set(e);for(const t of this.children)t.updateWorld(this.world)}traverse(t){t(this);for(const e of this.children)e.traverse(t)}find(t){let e=null;return this.traverse(r=>{e||r.name!==t||(e=r)}),e}}const f=["KHR_materials_emissive_strength","KHR_materials_unlit"];function c(t){const e=t instanceof Uint8Array?t:new Uint8Array(t),r=new DataView(e.buffer,e.byteOffset,e.byteLength);if(1179937895!==r.getUint32(0,!0))throw new Error("[motionary] format-gltf: not a GLB file");if(2!==r.getUint32(4,!0))throw new Error("[motionary] format-gltf: only glTF 2.0 GLB is supported");const o=Math.min(r.getUint32(8,!0),e.byteLength);let n=12,i=null,s=null;for(;n+8<=o;){const t=r.getUint32(n,!0),o=r.getUint32(n+4,!0),a=e.subarray(n+8,n+8+t);1313821514===o?i=JSON.parse((new TextDecoder).decode(a)):5130562!==o||s||(s=a),n+=8+t}if(!i)throw new Error("[motionary] format-gltf: GLB without a JSON chunk");return{json:i,bin:s}}const u={5120:[1,Int8Array,127],5121:[1,Uint8Array,255],5122:[2,Int16Array,32767],5123:[2,Uint16Array,65535],5125:[4,Uint32Array,0],5126:[4,Float32Array,0]},d={SCALAR:1,VEC2:2,VEC3:3,VEC4:4,MAT2:4,MAT3:9,MAT4:16};function m(t,e,r,o=!0){const n=t.accessors?.[r];if(!n)throw new Error(`[motionary] format-gltf: accessor ${r} missing`);const[i,s,a]=u[n.componentType]||[];if(!s)throw new Error(`[motionary] format-gltf: component type ${n.componentType} unsupported`);const l=d[n.type],f=n.count*l,c=s===Float32Array,m=o||c?new Float32Array(f):new s(f),h=(r,o=0)=>{const n=t.bufferViews[r],i=e[n.buffer];return{dv:new DataView(i.buffer,i.byteOffset,i.byteLength),base:(n.byteOffset||0)+o,stride:n.byteStride}},y=(t,e,r)=>o=>4===e?r===Float32Array?t.getFloat32(o,!0):t.getUint32(o,!0):2===e?r===Int16Array?t.getInt16(o,!0):t.getUint16(o,!0):r===Int8Array?t.getInt8(o):t.getUint8(o),p=(t,e,r)=>m[t*l+e]=n.normalized&&a?Math.max(r/a,-1):r;if(void 0!==n.bufferView){const{dv:t,base:e,stride:r=i*l}=h(n.bufferView,n.byteOffset),o=y(t,i,s);for(let t=0;t<n.count;t++)for(let n=0;n<l;n++)p(t,n,o(e+t*r+n*i))}const g=n.sparse;if(g){const[t,e]=u[g.indices.componentType],r=h(g.indices.bufferView,g.indices.byteOffset),o=h(g.values.bufferView,g.values.byteOffset),n=y(r.dv,t,e),a=y(o.dv,i,s);for(let e=0;e<g.count;e++){const s=n(r.base+e*t);for(let t=0;t<l;t++)p(s,t,a(o.base+(e*l+t)*i))}}return m}function h(t,e){const r=[];if(5===e)for(let e=0;e+2<t.length;e++)r.push(...e%2?[t[e+1],t[e],t[e+2]]:[t[e],t[e+1],t[e+2]]);else for(let e=1;e+1<t.length;e++)r.push(t[0],t[e],t[e+1]);return new Uint32Array(r)}function y(t,e,r={},n){if(!t.asset||!/^2\./.test(t.asset.version))throw new Error("[motionary] format-gltf: only glTF 2.0 is supported");const c=(t.extensionsRequired||[]).filter(t=>!f.includes(t));if(c.length)throw new Error(`[motionary] format-gltf: this file requires ${c.join(", ")}, which motionary/runtime/format-gltf does not implement${c.some(t=>/draco|KHR_texture_basisu|meshopt/i.test(t))?" (compressed geometry / textures need the official decoders — use <usa-gl-model> / motionary/runtime/gltf-decoders with the official decoders (draco3d, Basis Universal), or re-export the model without compression)":""}`);const u=(t.materials||[]).map(e=>{const o=e.pbrMetallicRoughness||{},n=o.baseColorFactor||[1,1,1,1],i=t=>Math.pow(Math.max(0,t),1/2.2),s=e.extensions?.KHR_materials_emissive_strength?.emissiveStrength??1,l=a({color:[i(n[0]),i(n[1]),i(n[2]),n[3]??1],metallic:o.metallicFactor??1,roughness:o.roughnessFactor??1,emissive:(e.emissiveFactor||[0,0,0]).map(t=>t*s),doubleSided:!!e.doubleSided,transparent:"BLEND"===e.alphaMode});e.extensions?.KHR_materials_unlit&&(l.type="unlit");const f=o.baseColorTexture?.index,c=void 0!==f?t.textures?.[f]?.source:void 0;return void 0!==c&&r[c]&&(l.map=function(t,e={}){return{source:t,srgb:!0,repeat:!0,flipY:!1,video:"undefined"!=typeof HTMLVideoElement&&t instanceof HTMLVideoElement,needsUpdate:!0,...e}}(r[c])),l}),d=(t.meshes||[]).map(r=>r.primitives.map(r=>{const n=r.mode??4;let l={positions:m(t,e,r.attributes.POSITION),normals:void 0!==r.attributes.NORMAL?m(t,e,r.attributes.NORMAL):void 0,uvs:void 0!==r.attributes.TEXCOORD_0?m(t,e,r.attributes.TEXCOORD_0):void 0,mode:0===n?"points":n>=1&&n<=3?"lines":"triangles"};if(void 0!==r.indices){let o=m(t,e,r.indices,!1);5!==n&&6!==n||(o=h(Uint32Array.from(o),n)),l.indices=o instanceof Uint8Array||o instanceof Uint32Array&&l.positions.length/3<=65535?Uint16Array.from(o):o}else 5!==n&&6!==n||(l.indices=h(Uint32Array.from({length:l.positions.length/3},(t,e)=>e),n));const f=r.attributes,c=r.targets||[],d=r=>void 0===r?void 0:m(t,e,r);return void 0!==f.JOINTS_0||c.length?l.deform={positions:l.positions,normals:l.normals,joints:d(f.JOINTS_0),weights:d(f.WEIGHTS_0),targets:c.map(t=>({positions:d(t.POSITION),normals:d(t.NORMAL)}))}:l.normals||"triangles"!==l.mode||(l=function(t){const e=t.positions,r=t.indices,n=r?r.length:e.length/3,a=new Float32Array(3*n),l=new Float32Array(3*n),f=t.uvs?new Float32Array(2*n):void 0;for(let c=0;c<n;c+=3){const n=[0,1,2].map(t=>r?r[c+t]:c+t),u=[e[3*n[0]],e[3*n[0]+1],e[3*n[0]+2]],d=[e[3*n[1]],e[3*n[1]+1],e[3*n[1]+2]],m=[e[3*n[2]],e[3*n[2]+1],e[3*n[2]+2]],h=s(i(o(d,u),o(m,u)));n.forEach((r,o)=>{a.set(e.subarray(3*r,3*r+3),3*(c+o)),l.set(h,3*(c+o)),f&&t.uvs&&f.set(t.uvs.subarray(2*r,2*r+2),2*(c+o))})}return{positions:a,normals:l,uvs:f,mode:t.mode}}(l)),{geometry:l,material:void 0!==r.material?u[r.material]:a({metallic:0,roughness:.6})}})),y=(t.nodes||[]).map((e,r)=>{const o=new l(e.name||`node${r}`,void 0!==e.mesh?d[e.mesh]:null);e.matrix&&(o.matrix=new Float32Array(e.matrix)),e.translation&&(o.position=e.translation.slice(0,3)),e.rotation&&(o.rotation=e.rotation.slice(0,4)),e.scale&&(o.scale=e.scale.slice(0,3)),o.extras.gltfIndex=r,void 0!==e.skin&&(o.extras.skin=e.skin);const n=e.weights||(void 0!==e.mesh?t.meshes?.[e.mesh]?.weights:void 0);return n&&(o.extras.weights=n.slice()),o});(t.nodes||[]).forEach((t,e)=>(t.children||[]).forEach(t=>y[e].add(y[t])));const p=new l("gltf"),g=t.scenes?.[n??t.scene??0];return(g?.nodes??y.map((t,e)=>e).filter(t=>!y[t].parent)).forEach(t=>p.add(y[t])),p.extras={gltf:t,nodes:y,read:r=>m(t,e,r)},p}async function p(t,e={}){const r=e.baseUrl||("string"==typeof t?new URL(t,"undefined"!=typeof location?location.href:"file:///").href:"undefined"!=typeof location?location.href:"file:///"),o=async t=>{if(t.startsWith("data:"))return(t=>{const[,e,r]=/^data:([^,]*),(.*)$/s.exec(t)||[];if(void 0===e)throw new Error("[motionary] format-gltf: bad data URI");if(/;base64/.test(e)){const t=atob(r);return Uint8Array.from(t,t=>t.charCodeAt(0))}return(new TextEncoder).encode(decodeURIComponent(r))})(t);const e=await fetch(new URL(t,r).href);if(!e.ok)throw new Error(`[motionary] format-gltf: could not load ${t} (${e.status})`);return new Uint8Array(await e.arrayBuffer())},n="string"==typeof t?await o(t):t instanceof Uint8Array?t:new Uint8Array(t);let i,s=null;103===n[0]&&108===n[1]&&84===n[2]&&70===n[3]?({json:i,bin:s}=c(n)):i=JSON.parse((new TextDecoder).decode(n));let a=await Promise.all((i.buffers||[]).map((t,e)=>t.uri?o(t.uri):0===e&&s?Promise.resolve(s):Promise.reject(new Error("[motionary] format-gltf: buffer without data")))),l={};return e.prepare&&({json:i,buffers:a,images:l}=await e.prepare(i,a)),await Promise.all((i.images||[]).map(async(t,e)=>{if(l[e])return;let r;if(void 0!==t.bufferView){const e=i.bufferViews[t.bufferView];r=a[e.buffer].subarray(e.byteOffset||0,(e.byteOffset||0)+e.byteLength)}else{if(!t.uri)return;r=await o(t.uri)}l[e]=await createImageBitmap(new Blob([r],{type:t.mimeType||(t.uri&&/\.jpe?g$/i.test(t.uri)?"image/jpeg":"image/png")}))})),y(i,a,l,e.scene)}const g={id:"format-gltf",version:e.RUNTIME_VERSION,requires:["core","gl"],api:{parseGlb:c,readAccessor:m,gltfToNode:y,loadGltf:p,SUPPORTED_EXTENSIONS:f}};e.register(g),t.SUPPORTED_EXTENSIONS=f,t.formatGltf=g,t.gltfToNode=y,t.loadGltf=p,t.parseGlb=c,t.readAccessor=m}(this.MotionaryRuntime=this.MotionaryRuntime||{},MotionaryRuntime);
2
- //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v11.2.0/dist/runtime/format-gltf.iife.js.map
1
+ !function(t,e){"use strict";const r={identity:()=>new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),multiply(t,e,r=new Float32Array(16)){for(let o=0;o<4;o++)for(let n=0;n<4;n++)r[4*o+n]=t[n]*e[4*o]+t[4+n]*e[4*o+1]+t[8+n]*e[4*o+2]+t[12+n]*e[4*o+3];return r},perspective(t,e,r,o){const n=1/Math.tan(t/2),i=1/(r-o);return new Float32Array([n/e,0,0,0,0,n,0,0,0,0,(o+r)*i,-1,0,0,2*o*r*i,0])},lookAt(t,e,r=[0,1,0]){let a=o(t,e);a=s(a.some(t=>t)?a:[0,0,1]);let l=i(r,a);l.some(t=>Math.abs(t)>1e-9)||(l=i([0,0,1],a)),l=s(l);const c=i(a,l);return new Float32Array([l[0],c[0],a[0],0,l[1],c[1],a[1],0,l[2],c[2],a[2],0,-n(l,t),-n(c,t),-n(a,t),1])},compose(t,e,r){const[o,n,i,s]=e,a=o+o,l=n+n,c=i+i,f=o*a,u=o*l,d=o*c,m=n*l,h=n*c,y=i*c,p=s*a,g=s*l,w=s*c;return new Float32Array([(1-(m+y))*r[0],(u+w)*r[0],(d-g)*r[0],0,(u-w)*r[1],(1-(f+y))*r[1],(h+p)*r[1],0,(d+g)*r[2],(h-p)*r[2],(1-(f+m))*r[2],0,t[0],t[1],t[2],1])},invert(t){const e=new Float32Array(16),[r,o,n,i,s,a,l,c,f,u,d,m,h,y,p,g]=t,w=r*a-o*s,b=r*l-n*s,v=r*c-i*s,A=o*l-n*a,E=o*c-i*a,U=n*c-i*l,O=f*y-u*h,T=f*p-d*h,x=f*g-m*h,M=u*p-d*y,R=u*g-m*y,F=d*g-m*p;let I=w*F-b*R+v*M+A*x-E*T+U*O;return I?(I=1/I,e[0]=(a*F-l*R+c*M)*I,e[1]=(n*R-o*F-i*M)*I,e[2]=(y*U-p*E+g*A)*I,e[3]=(d*E-u*U-m*A)*I,e[4]=(l*x-s*F-c*T)*I,e[5]=(r*F-n*x+i*T)*I,e[6]=(p*v-h*U-g*b)*I,e[7]=(f*U-d*v+m*b)*I,e[8]=(s*R-a*x+c*O)*I,e[9]=(o*x-r*R-i*O)*I,e[10]=(h*E-y*v+g*w)*I,e[11]=(u*v-f*E-m*w)*I,e[12]=(a*T-s*M-l*O)*I,e[13]=(r*M-o*T+n*O)*I,e[14]=(y*b-h*A-p*w)*I,e[15]=(f*A-u*b+d*w)*I,e):null},normal(t){const e=r.invert(t)||r.identity();return new Float32Array([e[0],e[4],e[8],e[1],e[5],e[9],e[2],e[6],e[10]])},transformPoint(t,e){const r=t[3]*e[0]+t[7]*e[1]+t[11]*e[2]+t[15]||1;return[(t[0]*e[0]+t[4]*e[1]+t[8]*e[2]+t[12])/r,(t[1]*e[0]+t[5]*e[1]+t[9]*e[2]+t[13])/r,(t[2]*e[0]+t[6]*e[1]+t[10]*e[2]+t[14])/r]}},o=(t,e)=>[t[0]-e[0],t[1]-e[1],t[2]-e[2]],n=(t,e)=>t[0]*e[0]+t[1]*e[1]+t[2]*e[2],i=(t,e)=>[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]],s=t=>{const e=Math.hypot(t[0],t[1],t[2])||1;return[t[0]/e,t[1]/e,t[2]/e]};function a(t={}){return{type:"standard",color:[1,1,1,1],metallic:0,roughness:.6,emissive:[0,0,0],...t}}class l{constructor(t="",e=null){this.name="",this.position=[0,0,0],this.rotation=[0,0,0,1],this.scale=[1,1,1],this.matrix=null,this.children=[],this.parent=null,this.mesh=null,this.visible=!0,this.extras={},this.world=r.identity(),this.name=t,this.mesh=e}add(...t){for(const e of t)e.parent?.remove(e),e.parent=this,this.children.push(e);return this}remove(t){const e=this.children.indexOf(t);e>=0&&this.children.splice(e,1),t.parent=null}setEuler(t,e,r){return this.rotation=function(t,e,r){const o=Math.cos(t/2),n=Math.sin(t/2),i=Math.cos(e/2),s=Math.sin(e/2),a=Math.cos(r/2),l=Math.sin(r/2);return[n*i*a+o*s*l,o*s*a-n*i*l,o*i*l+n*s*a,o*i*a-n*s*l]}(t,e,r),this}local(){return this.matrix||r.compose(this.position,this.rotation,this.scale)}updateWorld(t){const e=t?r.multiply(t,this.local()):this.local();this.world.set(e);for(const t of this.children)t.updateWorld(this.world)}traverse(t){t(this);for(const e of this.children)e.traverse(t)}find(t){let e=null;return this.traverse(r=>{e||r.name!==t||(e=r)}),e}}const c=["KHR_materials_emissive_strength","KHR_materials_unlit"];function f(t){const e=t instanceof Uint8Array?t:new Uint8Array(t),r=new DataView(e.buffer,e.byteOffset,e.byteLength);if(1179937895!==r.getUint32(0,!0))throw new Error("[motionary] format-gltf: not a GLB file");if(2!==r.getUint32(4,!0))throw new Error("[motionary] format-gltf: only glTF 2.0 GLB is supported");const o=Math.min(r.getUint32(8,!0),e.byteLength);let n=12,i=null,s=null;for(;n+8<=o;){const t=r.getUint32(n,!0),o=r.getUint32(n+4,!0),a=e.subarray(n+8,n+8+t);1313821514===o?i=JSON.parse((new TextDecoder).decode(a)):5130562!==o||s||(s=a),n+=8+t}if(!i)throw new Error("[motionary] format-gltf: GLB without a JSON chunk");return{json:i,bin:s}}const u={5120:[1,Int8Array,127],5121:[1,Uint8Array,255],5122:[2,Int16Array,32767],5123:[2,Uint16Array,65535],5125:[4,Uint32Array,0],5126:[4,Float32Array,0]},d={SCALAR:1,VEC2:2,VEC3:3,VEC4:4,MAT2:4,MAT3:9,MAT4:16};function m(t,e,r,o=!0){const n=t.accessors?.[r];if(!n)throw new Error(`[motionary] format-gltf: accessor ${r} missing`);const[i,s,a]=u[n.componentType]||[];if(!s)throw new Error(`[motionary] format-gltf: component type ${n.componentType} unsupported`);const l=d[n.type],c=n.count*l,f=s===Float32Array,m=o||f?new Float32Array(c):new s(c),h=(r,o=0)=>{const n=t.bufferViews[r],i=e[n.buffer];return{dv:new DataView(i.buffer,i.byteOffset,i.byteLength),base:(n.byteOffset||0)+o,stride:n.byteStride}},y=(t,e,r)=>o=>4===e?r===Float32Array?t.getFloat32(o,!0):t.getUint32(o,!0):2===e?r===Int16Array?t.getInt16(o,!0):t.getUint16(o,!0):r===Int8Array?t.getInt8(o):t.getUint8(o),p=(t,e,r)=>m[t*l+e]=n.normalized&&a?Math.max(r/a,-1):r;if(void 0!==n.bufferView){const{dv:t,base:e,stride:r=i*l}=h(n.bufferView,n.byteOffset),o=y(t,i,s);for(let t=0;t<n.count;t++)for(let n=0;n<l;n++)p(t,n,o(e+t*r+n*i))}const g=n.sparse;if(g){const[t,e]=u[g.indices.componentType],r=h(g.indices.bufferView,g.indices.byteOffset),o=h(g.values.bufferView,g.values.byteOffset),n=y(r.dv,t,e),a=y(o.dv,i,s);for(let e=0;e<g.count;e++){const s=n(r.base+e*t);for(let t=0;t<l;t++)p(s,t,a(o.base+(e*l+t)*i))}}return m}function h(t,e){const r=[];if(5===e)for(let e=0;e+2<t.length;e++)r.push(...e%2?[t[e+1],t[e],t[e+2]]:[t[e],t[e+1],t[e+2]]);else for(let e=1;e+1<t.length;e++)r.push(t[0],t[e],t[e+1]);return new Uint32Array(r)}function y(t,e,r={},n){if(!t.asset||!/^2\./.test(t.asset.version))throw new Error("[motionary] format-gltf: only glTF 2.0 is supported");const f=(t.extensionsRequired||[]).filter(t=>!c.includes(t));if(f.length)throw new Error(`[motionary] format-gltf: this file requires ${f.join(", ")}, which motionary/runtime/format-gltf does not implement${f.some(t=>/draco|KHR_texture_basisu|meshopt/i.test(t))?" (compressed geometry / textures need the official decoders — use <usa-gl-model> / motionary/runtime/gltf-decoders with the official decoders (draco3d, Basis Universal), or re-export the model without compression)":""}`);const u=(t.materials||[]).map(e=>{const o=e.pbrMetallicRoughness||{},n=o.baseColorFactor||[1,1,1,1],i=t=>Math.pow(Math.max(0,t),1/2.2),s=e.extensions?.KHR_materials_emissive_strength?.emissiveStrength??1,l=a({color:[i(n[0]),i(n[1]),i(n[2]),n[3]??1],metallic:o.metallicFactor??1,roughness:o.roughnessFactor??1,emissive:(e.emissiveFactor||[0,0,0]).map(t=>t*s),doubleSided:!!e.doubleSided,transparent:"BLEND"===e.alphaMode});e.extensions?.KHR_materials_unlit&&(l.type="unlit");const c=o.baseColorTexture?.index,f=void 0!==c?t.textures?.[c]?.source:void 0;return void 0!==f&&r[f]&&(l.map=function(t,e={}){return{source:t,srgb:!0,repeat:!0,flipY:!1,video:"undefined"!=typeof HTMLVideoElement&&t instanceof HTMLVideoElement,needsUpdate:!0,...e}}(r[f])),l}),d=(t.meshes||[]).map(r=>r.primitives.map(r=>{const n=r.mode??4;let l={positions:m(t,e,r.attributes.POSITION),normals:void 0!==r.attributes.NORMAL?m(t,e,r.attributes.NORMAL):void 0,uvs:void 0!==r.attributes.TEXCOORD_0?m(t,e,r.attributes.TEXCOORD_0):void 0,mode:0===n?"points":n>=1&&n<=3?"lines":"triangles"};if(void 0!==r.indices){let o=m(t,e,r.indices,!1);5!==n&&6!==n||(o=h(Uint32Array.from(o),n)),l.indices=o instanceof Uint8Array||o instanceof Uint32Array&&l.positions.length/3<=65535?Uint16Array.from(o):o}else 5!==n&&6!==n||(l.indices=h(Uint32Array.from({length:l.positions.length/3},(t,e)=>e),n));const c=r.attributes,f=r.targets||[],d=r=>void 0===r?void 0:m(t,e,r);return void 0!==c.JOINTS_0||f.length?l.deform={positions:l.positions,normals:l.normals,joints:d(c.JOINTS_0),weights:d(c.WEIGHTS_0),targets:f.map(t=>({positions:d(t.POSITION),normals:d(t.NORMAL)}))}:l.normals||"triangles"!==l.mode||(l=function(t){const e=t.positions,r=t.indices,n=r?r.length:e.length/3,a=new Float32Array(3*n),l=new Float32Array(3*n),c=t.uvs?new Float32Array(2*n):void 0;for(let f=0;f<n;f+=3){const n=[0,1,2].map(t=>r?r[f+t]:f+t),u=[e[3*n[0]],e[3*n[0]+1],e[3*n[0]+2]],d=[e[3*n[1]],e[3*n[1]+1],e[3*n[1]+2]],m=[e[3*n[2]],e[3*n[2]+1],e[3*n[2]+2]],h=s(i(o(d,u),o(m,u)));n.forEach((r,o)=>{a.set(e.subarray(3*r,3*r+3),3*(f+o)),l.set(h,3*(f+o)),c&&t.uvs&&c.set(t.uvs.subarray(2*r,2*r+2),2*(f+o))})}return{positions:a,normals:l,uvs:c,mode:t.mode}}(l)),{geometry:l,material:void 0!==r.material?u[r.material]:a({metallic:0,roughness:.6})}})),y=(t.nodes||[]).map((e,r)=>{const o=new l(e.name||`node${r}`,void 0!==e.mesh?d[e.mesh]:null);e.matrix&&(o.matrix=new Float32Array(e.matrix)),e.translation&&(o.position=e.translation.slice(0,3)),e.rotation&&(o.rotation=e.rotation.slice(0,4)),e.scale&&(o.scale=e.scale.slice(0,3)),o.extras.gltfIndex=r,void 0!==e.skin&&(o.extras.skin=e.skin);const n=e.weights||(void 0!==e.mesh?t.meshes?.[e.mesh]?.weights:void 0);return n&&(o.extras.weights=n.slice()),o});(t.nodes||[]).forEach((t,e)=>(t.children||[]).forEach(t=>y[e].add(y[t])));const p=new l("gltf"),g=t.scenes?.[n??t.scene??0];return(g?.nodes??y.map((t,e)=>e).filter(t=>!y[t].parent)).forEach(t=>p.add(y[t])),p.extras={gltf:t,nodes:y,read:r=>m(t,e,r)},p}async function p(t,e={}){const r=e.baseUrl||("string"==typeof t?new URL(t,"undefined"!=typeof location?location.href:"file:///").href:"undefined"!=typeof location?location.href:"file:///"),o=async t=>{if(t.startsWith("data:"))return(t=>{const[,e,r]=/^data:([^,]*),(.*)$/s.exec(t)||[];if(void 0===e)throw new Error("[motionary] format-gltf: bad data URI");if(/;base64/.test(e)){const t=atob(r);return Uint8Array.from(t,t=>t.charCodeAt(0))}return(new TextEncoder).encode(decodeURIComponent(r))})(t);const e=await fetch(new URL(t,r).href);if(!e.ok)throw new Error(`[motionary] format-gltf: could not load ${t} (${e.status})`);return new Uint8Array(await e.arrayBuffer())},n="string"==typeof t?await o(t):t instanceof Uint8Array?t:new Uint8Array(t);let i,s=null;103===n[0]&&108===n[1]&&84===n[2]&&70===n[3]?({json:i,bin:s}=f(n)):i=JSON.parse((new TextDecoder).decode(n));let a=await Promise.all((i.buffers||[]).map((t,e)=>t.uri?o(t.uri):0===e&&s?Promise.resolve(s):Promise.reject(new Error("[motionary] format-gltf: buffer without data")))),l={};return e.prepare&&({json:i,buffers:a,images:l}=await e.prepare(i,a)),await Promise.all((i.images||[]).map(async(t,e)=>{if(l[e])return;let r;if(void 0!==t.bufferView){const e=i.bufferViews[t.bufferView];r=a[e.buffer].subarray(e.byteOffset||0,(e.byteOffset||0)+e.byteLength)}else{if(!t.uri)return;r=await o(t.uri)}l[e]=await createImageBitmap(new Blob([r],{type:t.mimeType||(t.uri&&/\.jpe?g$/i.test(t.uri)?"image/jpeg":"image/png")}))})),y(i,a,l,e.scene)}const g={id:"format-gltf",version:e.RUNTIME_VERSION,tier:"advanced",requires:["core","gl"],api:{parseGlb:f,readAccessor:m,gltfToNode:y,loadGltf:p,SUPPORTED_EXTENSIONS:c}};e.register(g),t.SUPPORTED_EXTENSIONS=c,t.formatGltf=g,t.gltfToNode=y,t.loadGltf=p,t.parseGlb=f,t.readAccessor=m}(this.MotionaryRuntime=this.MotionaryRuntime||{},MotionaryRuntime);
2
+ //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v11.4.0/dist/runtime/format-gltf.iife.js.map
@@ -1,4 +1,4 @@
1
- import { R as RUNTIME_VERSION } from '../chunks/registry-DZMe2rVp.js';
1
+ import { R as RUNTIME_VERSION } from '../chunks/registry-CorBCE7b.js';
2
2
  import { standardMaterial, texture, computeNormals, GlNode } from './gl.js';
3
3
 
4
4
  /**
@@ -217,7 +217,7 @@ async function loadGltf(src, o = {}) {
217
217
  return gltfToNode(json, buffers, images, o.scene);
218
218
  }
219
219
  /** The module object for `use(formatGltf)` (needs `gl`). */
220
- const formatGltf = { id: 'format-gltf', version: RUNTIME_VERSION, requires: ['core', 'gl'], api: { parseGlb, readAccessor, gltfToNode, loadGltf, SUPPORTED_EXTENSIONS } };
220
+ const formatGltf = { id: 'format-gltf', version: RUNTIME_VERSION, tier: 'advanced', requires: ['core', 'gl'], api: { parseGlb, readAccessor, gltfToNode, loadGltf, SUPPORTED_EXTENSIONS } };
221
221
 
222
222
  export { SUPPORTED_EXTENSIONS, formatGltf, gltfToNode, loadGltf, parseGlb, readAccessor };
223
- //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v11.2.0/dist/runtime/format-gltf.js.map
223
+ //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v11.4.0/dist/runtime/format-gltf.js.map
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var registry = require('../chunks/registry-BIhHroDh.cjs');
4
- var tween = require('../chunks/tween-BqL2cEKf.cjs');
3
+ var registry = require('../chunks/registry-VITvgTNc.cjs');
4
+ var tween = require('../chunks/tween-ookpV7jR.cjs');
5
5
  var ease = require('../chunks/ease-HwYZnZat.cjs');
6
- var keyframes = require('../chunks/keyframes-Cbj4m_Y3.cjs');
7
- require('../chunks/ticker--1A-E9Vg.cjs');
6
+ var keyframes = require('../chunks/keyframes-CA4ON22i.cjs');
7
+ require('../chunks/ticker-DwRa5hIu.cjs');
8
8
 
9
9
  /**
10
10
  * `motionary/runtime/format-motion` (10.1) — play Motion / Framer-style
@@ -130,11 +130,11 @@ function playMotion(target, def, o = {}) {
130
130
  return tl;
131
131
  }
132
132
  /** The module object for `use(formatMotion)`. */
133
- const formatMotion = { id: 'format-motion', version: registry.RUNTIME_VERSION, requires: ['core'], api: { fromMotion, playMotion, springEase, motionEase } };
133
+ const formatMotion = { id: 'format-motion', version: registry.RUNTIME_VERSION, tier: 'basic', requires: ['core'], api: { fromMotion, playMotion, springEase, motionEase } };
134
134
 
135
135
  exports.formatMotion = formatMotion;
136
136
  exports.fromMotion = fromMotion;
137
137
  exports.motionEase = motionEase;
138
138
  exports.playMotion = playMotion;
139
139
  exports.springEase = springEase;
140
- //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v11.2.0/dist/runtime/format-motion.cjs.map
140
+ //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v11.4.0/dist/runtime/format-motion.cjs.map
@@ -1,3 +1,9 @@
1
+ /**
2
+ * 11.4: runtime tiers. **basic** — ticker, tween, timeline, scroll, text, CSS / WAAPI keyframes; **standard** — smooth
3
+ * scrolling, drag-snap, SVG, sprites, GIF / APNG / WebP, Lottie; **advanced** — WebGL, 3D file parsing and decoders,
4
+ * physics. A page that only uses basic modules never downloads standard or advanced code.
5
+ */
6
+ type RuntimeTier = 'basic' | 'standard' | 'advanced';
1
7
  /** A runtime module: `{ id, version, api }`, registered with `use()`. */
2
8
  interface RuntimeModule<A = unknown> {
3
9
  /** Module id: 'core', 'format-css', 'scroll', … (import path `motionary/runtime/<id>`). */
@@ -5,6 +11,8 @@ interface RuntimeModule<A = unknown> {
5
11
  version: string;
6
12
  /** Other modules this one needs (registered first by `use()` callers). */
7
13
  requires?: string[];
14
+ /** 11.4: runtime tier — basic · standard · advanced (docs/runtime-tiers.md). */
15
+ tier?: RuntimeTier;
8
16
  /** The module's public API (what `requireModule(id)` returns). */
9
17
  api: A;
10
18
  /** Optional one-time setup, called on first registration. */
@@ -1,3 +1,9 @@
1
+ /**
2
+ * 11.4: runtime tiers. **basic** — ticker, tween, timeline, scroll, text, CSS / WAAPI keyframes; **standard** — smooth
3
+ * scrolling, drag-snap, SVG, sprites, GIF / APNG / WebP, Lottie; **advanced** — WebGL, 3D file parsing and decoders,
4
+ * physics. A page that only uses basic modules never downloads standard or advanced code.
5
+ */
6
+ type RuntimeTier = 'basic' | 'standard' | 'advanced';
1
7
  /** A runtime module: `{ id, version, api }`, registered with `use()`. */
2
8
  interface RuntimeModule<A = unknown> {
3
9
  /** Module id: 'core', 'format-css', 'scroll', … (import path `motionary/runtime/<id>`). */
@@ -5,6 +11,8 @@ interface RuntimeModule<A = unknown> {
5
11
  version: string;
6
12
  /** Other modules this one needs (registered first by `use()` callers). */
7
13
  requires?: string[];
14
+ /** 11.4: runtime tier — basic · standard · advanced (docs/runtime-tiers.md). */
15
+ tier?: RuntimeTier;
8
16
  /** The module's public API (what `requireModule(id)` returns). */
9
17
  api: A;
10
18
  /** Optional one-time setup, called on first registration. */
@@ -1,2 +1,2 @@
1
- !function(e,t,r,a){"use strict";function o(e){if(!e||"none"===e)return{x:0,y:0,rotate:0,scale:1};const t={},r=/([a-zA-Z][a-zA-Z0-9]*)\(([^)]*)\)/g;let a,o=e;for(;a=r.exec(e);){o=o.replace(a[0],"");const e=a[2].split(/[\s,]+/).filter(Boolean);switch(a[1]){case"translate":t.x=e[0],t.y=e[1]??0;break;case"translateX":t.x=e[0];break;case"translateY":t.y=e[0];break;case"translate3d":if(0!==parseFloat(e[2]||"0"))return null;t.x=e[0],t.y=e[1]??0;break;case"scale3d":if(1!==parseFloat(e[2]??"1"))return null;void 0!==e[1]&&e[1]!==e[0]?(t.scaleX=+e[0],t.scaleY=+e[1]):t.scale=+e[0];break;case"rotate":case"rotateZ":t.rotate=e[0];break;case"scale":void 0!==e[1]&&e[1]!==e[0]?(t.scaleX=+e[0],t.scaleY=+e[1]):t.scale=+e[0];break;case"scaleX":t.scaleX=+e[0];break;case"scaleY":t.scaleY=+e[0];break;case"skewX":t.skewX=e[0];break;case"skewY":t.skewY=e[0];break;default:return null}}return o.trim()?null:t}function n(e){const t={};for(const[r,a]of Object.entries(e)){if("transform"===r&&"string"==typeof a){const e=o(a);if(e){Object.assign(t,e);continue}}t[r]=a}return t}const s=e=>{try{return r.parseValue(e),!0}catch{return!1}};function i(e,t,o={}){const i=o.duration??1e3,c=[...t].sort((e,t)=>e.offset-t.offset).map(e=>({...e,props:n(e.props)})),p=new r.Timeline({repeat:o.repeat,yoyo:o.yoyo,delay:o.delay,onUpdate:o.onUpdate,onComplete:o.onComplete}),f=Array.from(new Set(c.flatMap(e=>Object.keys(e.props)))),l=c.map(e=>({...e,props:{...e.props}}));for(const e of f){let t,r;for(const r of l)e in r.props?t=r.props[e]:void 0!==t&&(r.props[e]=t);for(let t=l.length-1;t>=0;t--)e in l[t].props?r=l[t].props[e]:void 0!==r&&(l[t].props[e]=r)}const u=o.ease??"linear";1===l.length&&l.unshift({...l[0],offset:0});for(let t=0;t<l.length-1;t++){const o=l[t],n=l[t+1],c=Math.max(0,(n.offset-o.offset)*i),y={},m={},b=[];for(const e of f)s(o.props[e])&&s(n.props[e])?(y[e]=o.props[e],m[e]=n.props[e]):b.push([e,n.props[e]]);p.add(new r.Tween(e,{from:y,to:m,duration:c,ease:o.easing?a.parseEase(o.easing):u,paused:!0}),o.offset*i);for(const[t,r]of b)p.call(()=>{e.style?e.style.setProperty(t.replace(/[A-Z]/g,e=>"-"+e.toLowerCase()),String(r)):e[t]=r},o.offset*i+c/2)}return!1===o.paused&&p.play(),p}const c={linear:"linear",easeIn:"cubic-in",easeOut:"cubic-out",easeInOut:"cubic-in-out",circIn:"circ-in",circOut:"circ-out",circInOut:"circ-in-out",backIn:"back-in",backOut:"back-out",backInOut:"back-in-out",anticipate:"back-in-out"};function p(e){if(Array.isArray(e))return a.cubicBezier(e[0],e[1],e[2],e[3]);if(!e)return a.EASES["cubic-out"];const t=c[e]||e;if(!a.EASES[t])throw new Error(`[motionary] format-motion: unknown ease "${e}"`);return a.EASES[t]}function f(e){let t=e.stiffness??100,r=e.damping??10;const a=e.mass??1;if(void 0!==e.bounce&&void 0!==e.duration){const o=1-Math.min(.95,Math.max(0,e.bounce)),n=2*Math.PI/Math.max(.05,e.duration);t=a*n*n,r=2*o*Math.sqrt(t*a)}const o=1/120,n=[0];let s=0,i=0,c=0,p=0;for(;c<10;){if(i+=(-t*(s-1)-r*i)/a*o,s+=i*o,c+=o,n.push(s),Math.abs(s-1)<.001&&Math.abs(i)<.01){if(++p>12)break}else p=0}const f=n.length-1;n[f]=1;return[e=>{if(e<=0)return 0;if(e>=1)return 1;const t=e*f,r=Math.floor(t);return n[r]+(n[r+1]-n[r])*(t-r)},Math.round(1e3*c)]}function l(e){const t=e.transition||{},r=new Map;for(const a of Object.keys(e.animate)){const e=t[a]&&"object"==typeof t[a]?a:"";r.set(e,[...r.get(e)||[],a])}return Array.from(r.entries()).map(([r,a])=>{const o=r?{...t,...t[r]}:t,n=Math.max(...a.map(t=>Array.isArray(e.animate[t])?e.animate[t].length:1)),s=Math.max(2,n),i=(o.times&&o.times.length===s?o.times:Array.from({length:s},(e,t)=>t/(s-1))).map(e=>({offset:e,props:{}}));for(const t of a){const r=e.animate[t],a=Array.isArray(r)?r:[e.initial&&t in e.initial?e.initial[t]:void 0,r];(a.length===s?a:[...Array(s-a.length).fill(a[0]),...a]).forEach((e,r)=>{null!=e&&(i[r].props[t]=e)})}return Array.isArray(o.ease)&&o.ease.length&&(Array.isArray(o.ease[0])||"string"==typeof o.ease[0])&&o.ease.forEach((e,t)=>{i[t]&&(i[t].easing=Array.isArray(e)?`cubic-bezier(${e.join(",")})`:c[e]||e)}),{frames:i,transition:o,props:a}})}function u(e,t,a={}){const o=new r.Timeline({});if(t.initial)for(const[r,a]of Object.entries(t.initial))i(e,[{offset:0,props:{[r]:a}}],{duration:0}).seek(0);for(const{frames:r,transition:a}of l(t)){let t,n=1e3*(a.duration??.3);"spring"===a.type?[t,n]=f({...a,duration:a.duration}):Array.isArray(a.ease)&&"number"!=typeof a.ease[0]||(t=p(a.ease));const s=a.repeat===1/0?-1:a.repeat||0,c=i(e,r,{duration:n,ease:t,repeat:s,yoyo:0!==s&&"loop"!==a.repeatType&&!!a.repeatType});o.add(c,1e3*(a.delay||0))}return a.paused||o.play(),o}const y={id:"format-motion",version:t.RUNTIME_VERSION,requires:["core"],api:{fromMotion:l,playMotion:u,springEase:f,motionEase:p}};t.register(y),e.formatMotion=y,e.fromMotion=l,e.motionEase=p,e.playMotion=u,e.springEase=f}(this.MotionaryRuntime=this.MotionaryRuntime||{},MotionaryRuntime,MotionaryRuntime,MotionaryRuntime);
2
- //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v11.2.0/dist/runtime/format-motion.iife.js.map
1
+ !function(e,t,r,a){"use strict";function o(e){if(!e||"none"===e)return{x:0,y:0,rotate:0,scale:1};const t={},r=/([a-zA-Z][a-zA-Z0-9]*)\(([^)]*)\)/g;let a,o=e;for(;a=r.exec(e);){o=o.replace(a[0],"");const e=a[2].split(/[\s,]+/).filter(Boolean);switch(a[1]){case"translate":t.x=e[0],t.y=e[1]??0;break;case"translateX":t.x=e[0];break;case"translateY":t.y=e[0];break;case"translate3d":if(0!==parseFloat(e[2]||"0"))return null;t.x=e[0],t.y=e[1]??0;break;case"scale3d":if(1!==parseFloat(e[2]??"1"))return null;void 0!==e[1]&&e[1]!==e[0]?(t.scaleX=+e[0],t.scaleY=+e[1]):t.scale=+e[0];break;case"rotate":case"rotateZ":t.rotate=e[0];break;case"scale":void 0!==e[1]&&e[1]!==e[0]?(t.scaleX=+e[0],t.scaleY=+e[1]):t.scale=+e[0];break;case"scaleX":t.scaleX=+e[0];break;case"scaleY":t.scaleY=+e[0];break;case"skewX":t.skewX=e[0];break;case"skewY":t.skewY=e[0];break;default:return null}}return o.trim()?null:t}function n(e){const t={};for(const[r,a]of Object.entries(e)){if("transform"===r&&"string"==typeof a){const e=o(a);if(e){Object.assign(t,e);continue}}t[r]=a}return t}const s=e=>{try{return r.parseValue(e),!0}catch{return!1}};function i(e,t,o={}){const i=o.duration??1e3,c=[...t].sort((e,t)=>e.offset-t.offset).map(e=>({...e,props:n(e.props)})),p=new r.Timeline({repeat:o.repeat,yoyo:o.yoyo,delay:o.delay,onUpdate:o.onUpdate,onComplete:o.onComplete}),f=Array.from(new Set(c.flatMap(e=>Object.keys(e.props)))),l=c.map(e=>({...e,props:{...e.props}}));for(const e of f){let t,r;for(const r of l)e in r.props?t=r.props[e]:void 0!==t&&(r.props[e]=t);for(let t=l.length-1;t>=0;t--)e in l[t].props?r=l[t].props[e]:void 0!==r&&(l[t].props[e]=r)}const u=o.ease??"linear";1===l.length&&l.unshift({...l[0],offset:0});for(let t=0;t<l.length-1;t++){const o=l[t],n=l[t+1],c=Math.max(0,(n.offset-o.offset)*i),y={},m={},b=[];for(const e of f)s(o.props[e])&&s(n.props[e])?(y[e]=o.props[e],m[e]=n.props[e]):b.push([e,n.props[e]]);p.add(new r.Tween(e,{from:y,to:m,duration:c,ease:o.easing?a.parseEase(o.easing):u,paused:!0}),o.offset*i);for(const[t,r]of b)p.call(()=>{e.style?e.style.setProperty(t.replace(/[A-Z]/g,e=>"-"+e.toLowerCase()),String(r)):e[t]=r},o.offset*i+c/2)}return!1===o.paused&&p.play(),p}const c={linear:"linear",easeIn:"cubic-in",easeOut:"cubic-out",easeInOut:"cubic-in-out",circIn:"circ-in",circOut:"circ-out",circInOut:"circ-in-out",backIn:"back-in",backOut:"back-out",backInOut:"back-in-out",anticipate:"back-in-out"};function p(e){if(Array.isArray(e))return a.cubicBezier(e[0],e[1],e[2],e[3]);if(!e)return a.EASES["cubic-out"];const t=c[e]||e;if(!a.EASES[t])throw new Error(`[motionary] format-motion: unknown ease "${e}"`);return a.EASES[t]}function f(e){let t=e.stiffness??100,r=e.damping??10;const a=e.mass??1;if(void 0!==e.bounce&&void 0!==e.duration){const o=1-Math.min(.95,Math.max(0,e.bounce)),n=2*Math.PI/Math.max(.05,e.duration);t=a*n*n,r=2*o*Math.sqrt(t*a)}const o=1/120,n=[0];let s=0,i=0,c=0,p=0;for(;c<10;){if(i+=(-t*(s-1)-r*i)/a*o,s+=i*o,c+=o,n.push(s),Math.abs(s-1)<.001&&Math.abs(i)<.01){if(++p>12)break}else p=0}const f=n.length-1;n[f]=1;return[e=>{if(e<=0)return 0;if(e>=1)return 1;const t=e*f,r=Math.floor(t);return n[r]+(n[r+1]-n[r])*(t-r)},Math.round(1e3*c)]}function l(e){const t=e.transition||{},r=new Map;for(const a of Object.keys(e.animate)){const e=t[a]&&"object"==typeof t[a]?a:"";r.set(e,[...r.get(e)||[],a])}return Array.from(r.entries()).map(([r,a])=>{const o=r?{...t,...t[r]}:t,n=Math.max(...a.map(t=>Array.isArray(e.animate[t])?e.animate[t].length:1)),s=Math.max(2,n),i=(o.times&&o.times.length===s?o.times:Array.from({length:s},(e,t)=>t/(s-1))).map(e=>({offset:e,props:{}}));for(const t of a){const r=e.animate[t],a=Array.isArray(r)?r:[e.initial&&t in e.initial?e.initial[t]:void 0,r];(a.length===s?a:[...Array(s-a.length).fill(a[0]),...a]).forEach((e,r)=>{null!=e&&(i[r].props[t]=e)})}return Array.isArray(o.ease)&&o.ease.length&&(Array.isArray(o.ease[0])||"string"==typeof o.ease[0])&&o.ease.forEach((e,t)=>{i[t]&&(i[t].easing=Array.isArray(e)?`cubic-bezier(${e.join(",")})`:c[e]||e)}),{frames:i,transition:o,props:a}})}function u(e,t,a={}){const o=new r.Timeline({});if(t.initial)for(const[r,a]of Object.entries(t.initial))i(e,[{offset:0,props:{[r]:a}}],{duration:0}).seek(0);for(const{frames:r,transition:a}of l(t)){let t,n=1e3*(a.duration??.3);"spring"===a.type?[t,n]=f({...a,duration:a.duration}):Array.isArray(a.ease)&&"number"!=typeof a.ease[0]||(t=p(a.ease));const s=a.repeat===1/0?-1:a.repeat||0,c=i(e,r,{duration:n,ease:t,repeat:s,yoyo:0!==s&&"loop"!==a.repeatType&&!!a.repeatType});o.add(c,1e3*(a.delay||0))}return a.paused||o.play(),o}const y={id:"format-motion",version:t.RUNTIME_VERSION,tier:"basic",requires:["core"],api:{fromMotion:l,playMotion:u,springEase:f,motionEase:p}};t.register(y),e.formatMotion=y,e.fromMotion=l,e.motionEase=p,e.playMotion=u,e.springEase=f}(this.MotionaryRuntime=this.MotionaryRuntime||{},MotionaryRuntime,MotionaryRuntime,MotionaryRuntime);
2
+ //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v11.4.0/dist/runtime/format-motion.iife.js.map
@@ -1,8 +1,8 @@
1
- import { R as RUNTIME_VERSION } from '../chunks/registry-DZMe2rVp.js';
2
- import { T as Timeline } from '../chunks/tween-MhtysD-Y.js';
1
+ import { R as RUNTIME_VERSION } from '../chunks/registry-CorBCE7b.js';
2
+ import { T as Timeline } from '../chunks/tween-BHDOFhXX.js';
3
3
  import { c as cubicBezier, E as EASES } from '../chunks/ease-XN8_0sXu.js';
4
- import { f as framesToTimeline } from '../chunks/keyframes-AcVaNJ4U.js';
5
- import '../chunks/ticker-Cq2SmYNJ.js';
4
+ import { f as framesToTimeline } from '../chunks/keyframes-_50j1RoO.js';
5
+ import '../chunks/ticker-CZisW9Nb.js';
6
6
 
7
7
  /**
8
8
  * `motionary/runtime/format-motion` (10.1) — play Motion / Framer-style
@@ -128,7 +128,7 @@ function playMotion(target, def, o = {}) {
128
128
  return tl;
129
129
  }
130
130
  /** The module object for `use(formatMotion)`. */
131
- const formatMotion = { id: 'format-motion', version: RUNTIME_VERSION, requires: ['core'], api: { fromMotion, playMotion, springEase, motionEase } };
131
+ const formatMotion = { id: 'format-motion', version: RUNTIME_VERSION, tier: 'basic', requires: ['core'], api: { fromMotion, playMotion, springEase, motionEase } };
132
132
 
133
133
  export { formatMotion, fromMotion, motionEase, playMotion, springEase };
134
- //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v11.2.0/dist/runtime/format-motion.js.map
134
+ //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v11.4.0/dist/runtime/format-motion.js.map
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var registry = require('../chunks/registry-BIhHroDh.cjs');
3
+ var registry = require('../chunks/registry-VITvgTNc.cjs');
4
4
  var runtime_gl = require('./gl.cjs');
5
5
 
6
6
  /**
@@ -170,7 +170,7 @@ async function loadObj(url) {
170
170
  return node;
171
171
  }
172
172
  /** The module object for `use(formatObj)` (needs `gl`). */
173
- const formatObj = { id: 'format-obj', version: registry.RUNTIME_VERSION, requires: ['core', 'gl'], api: { parseObj, parseMtl, objMaterial, objToNode, loadObj } };
173
+ const formatObj = { id: 'format-obj', version: registry.RUNTIME_VERSION, tier: 'advanced', requires: ['core', 'gl'], api: { parseObj, parseMtl, objMaterial, objToNode, loadObj } };
174
174
 
175
175
  exports.formatObj = formatObj;
176
176
  exports.loadObj = loadObj;
@@ -178,4 +178,4 @@ exports.objMaterial = objMaterial;
178
178
  exports.objToNode = objToNode;
179
179
  exports.parseMtl = parseMtl;
180
180
  exports.parseObj = parseObj;
181
- //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v11.2.0/dist/runtime/format-obj.cjs.map
181
+ //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v11.4.0/dist/runtime/format-obj.cjs.map
@@ -1,3 +1,9 @@
1
+ /**
2
+ * 11.4: runtime tiers. **basic** — ticker, tween, timeline, scroll, text, CSS / WAAPI keyframes; **standard** — smooth
3
+ * scrolling, drag-snap, SVG, sprites, GIF / APNG / WebP, Lottie; **advanced** — WebGL, 3D file parsing and decoders,
4
+ * physics. A page that only uses basic modules never downloads standard or advanced code.
5
+ */
6
+ type RuntimeTier = 'basic' | 'standard' | 'advanced';
1
7
  /** A runtime module: `{ id, version, api }`, registered with `use()`. */
2
8
  interface RuntimeModule<A = unknown> {
3
9
  /** Module id: 'core', 'format-css', 'scroll', … (import path `motionary/runtime/<id>`). */
@@ -5,6 +11,8 @@ interface RuntimeModule<A = unknown> {
5
11
  version: string;
6
12
  /** Other modules this one needs (registered first by `use()` callers). */
7
13
  requires?: string[];
14
+ /** 11.4: runtime tier — basic · standard · advanced (docs/runtime-tiers.md). */
15
+ tier?: RuntimeTier;
8
16
  /** The module's public API (what `requireModule(id)` returns). */
9
17
  api: A;
10
18
  /** Optional one-time setup, called on first registration. */
@@ -1,3 +1,9 @@
1
+ /**
2
+ * 11.4: runtime tiers. **basic** — ticker, tween, timeline, scroll, text, CSS / WAAPI keyframes; **standard** — smooth
3
+ * scrolling, drag-snap, SVG, sprites, GIF / APNG / WebP, Lottie; **advanced** — WebGL, 3D file parsing and decoders,
4
+ * physics. A page that only uses basic modules never downloads standard or advanced code.
5
+ */
6
+ type RuntimeTier = 'basic' | 'standard' | 'advanced';
1
7
  /** A runtime module: `{ id, version, api }`, registered with `use()`. */
2
8
  interface RuntimeModule<A = unknown> {
3
9
  /** Module id: 'core', 'format-css', 'scroll', … (import path `motionary/runtime/<id>`). */
@@ -5,6 +11,8 @@ interface RuntimeModule<A = unknown> {
5
11
  version: string;
6
12
  /** Other modules this one needs (registered first by `use()` callers). */
7
13
  requires?: string[];
14
+ /** 11.4: runtime tier — basic · standard · advanced (docs/runtime-tiers.md). */
15
+ tier?: RuntimeTier;
8
16
  /** The module's public API (what `requireModule(id)` returns). */
9
17
  api: A;
10
18
  /** Optional one-time setup, called on first registration. */
@@ -1,2 +1,2 @@
1
- !function(t,e){"use strict";const n={identity:()=>new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),multiply(t,e,n=new Float32Array(16)){for(let s=0;s<4;s++)for(let r=0;r<4;r++)n[4*s+r]=t[r]*e[4*s]+t[4+r]*e[4*s+1]+t[8+r]*e[4*s+2]+t[12+r]*e[4*s+3];return n},perspective(t,e,n,s){const r=1/Math.tan(t/2),a=1/(n-s);return new Float32Array([r/e,0,0,0,0,r,0,0,0,0,(s+n)*a,-1,0,0,2*s*n*a,0])},lookAt(t,e,n=[0,1,0]){let i=s(t,e);i=o(i.some(t=>t)?i:[0,0,1]);let l=a(n,i);l.some(t=>Math.abs(t)>1e-9)||(l=a([0,0,1],i)),l=o(l);const c=a(i,l);return new Float32Array([l[0],c[0],i[0],0,l[1],c[1],i[1],0,l[2],c[2],i[2],0,-r(l,t),-r(c,t),-r(i,t),1])},compose(t,e,n){const[s,r,a,o]=e,i=s+s,l=r+r,c=a+a,h=s*i,u=s*l,m=s*c,p=r*l,d=r*c,f=a*c,w=o*i,y=o*l,b=o*c;return new Float32Array([(1-(p+f))*n[0],(u+b)*n[0],(m-y)*n[0],0,(u-b)*n[1],(1-(h+f))*n[1],(d+w)*n[1],0,(m+y)*n[2],(d-w)*n[2],(1-(h+p))*n[2],0,t[0],t[1],t[2],1])},invert(t){const e=new Float32Array(16),[n,s,r,a,o,i,l,c,h,u,m,p,d,f,w,y]=t,b=n*i-s*o,g=n*l-r*o,v=n*c-a*o,M=s*l-r*i,j=s*c-a*i,K=r*c-a*l,F=h*f-u*d,A=h*w-m*d,N=h*y-p*d,x=u*w-m*f,k=u*y-p*f,O=m*y-p*w;let R=b*O-g*k+v*x+M*N-j*A+K*F;return R?(R=1/R,e[0]=(i*O-l*k+c*x)*R,e[1]=(r*k-s*O-a*x)*R,e[2]=(f*K-w*j+y*M)*R,e[3]=(m*j-u*K-p*M)*R,e[4]=(l*N-o*O-c*A)*R,e[5]=(n*O-r*N+a*A)*R,e[6]=(w*v-d*K-y*g)*R,e[7]=(h*K-m*v+p*g)*R,e[8]=(o*k-i*N+c*F)*R,e[9]=(s*N-n*k-a*F)*R,e[10]=(d*j-f*v+y*b)*R,e[11]=(u*v-h*j-p*b)*R,e[12]=(i*A-o*x-l*F)*R,e[13]=(n*x-s*A+r*F)*R,e[14]=(f*g-d*M-w*b)*R,e[15]=(h*M-u*g+m*b)*R,e):null},normal(t){const e=n.invert(t)||n.identity();return new Float32Array([e[0],e[4],e[8],e[1],e[5],e[9],e[2],e[6],e[10]])},transformPoint(t,e){const n=t[3]*e[0]+t[7]*e[1]+t[11]*e[2]+t[15]||1;return[(t[0]*e[0]+t[4]*e[1]+t[8]*e[2]+t[12])/n,(t[1]*e[0]+t[5]*e[1]+t[9]*e[2]+t[13])/n,(t[2]*e[0]+t[6]*e[1]+t[10]*e[2]+t[14])/n]}},s=(t,e)=>[t[0]-e[0],t[1]-e[1],t[2]-e[2]],r=(t,e)=>t[0]*e[0]+t[1]*e[1]+t[2]*e[2],a=(t,e)=>[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]],o=t=>{const e=Math.hypot(t[0],t[1],t[2])||1;return[t[0]/e,t[1]/e,t[2]/e]};function i(t){const e=t.positions,n=t.indices,r=n?n.length:e.length/3,i=new Float32Array(3*r),l=new Float32Array(3*r),c=t.uvs?new Float32Array(2*r):void 0;for(let h=0;h<r;h+=3){const r=[0,1,2].map(t=>n?n[h+t]:h+t),u=[e[3*r[0]],e[3*r[0]+1],e[3*r[0]+2]],m=[e[3*r[1]],e[3*r[1]+1],e[3*r[1]+2]],p=[e[3*r[2]],e[3*r[2]+1],e[3*r[2]+2]],d=o(a(s(m,u),s(p,u)));r.forEach((n,s)=>{i.set(e.subarray(3*n,3*n+3),3*(h+s)),l.set(d,3*(h+s)),c&&t.uvs&&c.set(t.uvs.subarray(2*n,2*n+2),2*(h+s))})}return{positions:i,normals:l,uvs:c,mode:t.mode}}function l(t={}){return{type:"standard",color:[1,1,1,1],metallic:0,roughness:.6,emissive:[0,0,0],...t}}function c(t,e={}){return{source:t,srgb:!0,repeat:!0,flipY:!1,video:"undefined"!=typeof HTMLVideoElement&&t instanceof HTMLVideoElement,needsUpdate:!0,...e}}class h{constructor(t="",e=null){this.name="",this.position=[0,0,0],this.rotation=[0,0,0,1],this.scale=[1,1,1],this.matrix=null,this.children=[],this.parent=null,this.mesh=null,this.visible=!0,this.extras={},this.world=n.identity(),this.name=t,this.mesh=e}add(...t){for(const e of t)e.parent?.remove(e),e.parent=this,this.children.push(e);return this}remove(t){const e=this.children.indexOf(t);e>=0&&this.children.splice(e,1),t.parent=null}setEuler(t,e,n){return this.rotation=function(t,e,n){const s=Math.cos(t/2),r=Math.sin(t/2),a=Math.cos(e/2),o=Math.sin(e/2),i=Math.cos(n/2),l=Math.sin(n/2);return[r*a*i+s*o*l,s*o*i-r*a*l,s*a*l+r*o*i,s*a*i-r*o*l]}(t,e,n),this}local(){return this.matrix||n.compose(this.position,this.rotation,this.scale)}updateWorld(t){const e=t?n.multiply(t,this.local()):this.local();this.world.set(e);for(const t of this.children)t.updateWorld(this.world)}traverse(t){t(this);for(const e of this.children)e.traverse(t)}find(t){let e=null;return this.traverse(n=>{e||n.name!==t||(e=n)}),e}}const u=(t,e,n)=>Array.from({length:n},(n,s)=>parseFloat(t[e+s])||0);function m(t){const e=[],n=[],s=[],r=[],a=[];let o=null,l="default",c="",h=0;const m=()=>{if(o&&o.p.length){const t={positions:new Float32Array(o.p),uvs:o.hasT?new Float32Array(o.t):void 0};a.push({name:o.name,material:o.material,geometry:o.hasN?{...t,normals:new Float32Array(o.n)}:i(t)})}o=null},p=()=>(o&&o.name===l&&o.material===c||(m(),o={name:l,material:c,p:[],n:[],t:[],hasN:!0,hasT:!0}),o);for(const a of t.split(/\r?\n/)){const t=a.trim();if(!t||"#"===t[0])continue;const o=t.split(/\s+/);switch(o[0]){case"v":e.push(...u(o,1,3));break;case"vt":n.push(...u(o,1,2));break;case"vn":s.push(...u(o,1,3));break;case"o":case"g":m(),l=o.slice(1).join(" ")||"default";break;case"usemtl":c=o.slice(1).join(" ");break;case"mtllib":r.push(...o.slice(1));break;case"f":{const t=p(),r=o.slice(1).map(t=>{const[r,a,o]=t.split("/"),i=(t,e)=>t?+t<0?e+ +t:+t-1:-1;return[i(r,e.length/3),i(a,n.length/2),i(o,s.length/3)]});for(let a=1;a+1<r.length;a++){for(const o of[r[0],r[a],r[a+1]])t.p.push(e[3*o[0]],e[3*o[0]+1],e[3*o[0]+2]),o[1]>=0?t.t.push(n[2*o[1]],1-n[2*o[1]+1]):(t.hasT=!1,t.t.push(0,0)),o[2]>=0?t.n.push(s[3*o[2]],s[3*o[2]+1],s[3*o[2]+2]):(t.hasN=!1,t.n.push(0,0,1));h++}break}}}return m(),{groups:a,mtllibs:r,vertexCount:e.length/3,triangleCount:h}}function p(t){const e={};let n=null;for(const s of t.split(/\r?\n/)){const t=s.trim();if(!t||"#"===t[0])continue;const r=t.split(/\s+/),a=r[0];"newmtl"!==a?n&&("Kd"===a||"Ks"===a||"Ke"===a?n[a]=u(r,1,3):"Ns"===a?n.Ns=parseFloat(r[1])||0:"d"===a?n.d=parseFloat(r[1]):"Tr"===a?n.d=1-parseFloat(r[1]):"map_Kd"===a&&(n.map_Kd=r[r.length-1])):n=e[r.slice(1).join(" ")]={name:r.slice(1).join(" "),Kd:[.8,.8,.8],Ks:[0,0,0],Ke:[0,0,0],Ns:10,d:1}}return e}function d(t){if(!t)return l({color:[.8,.8,.8,1]});const e=Math.max(...t.Ks);return l({color:[t.Kd[0],t.Kd[1],t.Kd[2],t.d],roughness:Math.min(1,Math.max(.05,1-Math.sqrt(Math.min(t.Ns,1e3)/1e3)*(e>0?1:.4))),metallic:0,emissive:t.Ke,transparent:t.d<1})}function f(t,e={},n={}){const s=new h("obj"),r=new Map;for(const a of t.groups){let t=r.get(a.name);t||(t=new h(a.name,[]),r.set(a.name,t),s.add(t));const o=e[a.material],i=d(o);o?.map_Kd&&n[o.map_Kd]&&(i.map=c(n[o.map_Kd])),t.mesh.push({geometry:a.geometry,material:i})}return s}async function w(t){const e=async t=>{const e=await fetch(t);if(!e.ok)throw new Error(`[motionary] format-obj: could not load ${t} (${e.status})`);return e},n=m(await(await e(t)).text()),s={};for(const r of n.mtllibs)Object.assign(s,p(await(await e(new URL(r,new URL(t,location.href)).href)).text()));const r={};await Promise.all(Object.values(s).filter(t=>t.map_Kd).map(async n=>{const s=await(await e(new URL(n.map_Kd,new URL(t,location.href)).href)).blob();r[n.map_Kd]=await createImageBitmap(s)}));const a=f(n,s,r);return a.extras={obj:n,materials:s},a}const y={id:"format-obj",version:e.RUNTIME_VERSION,requires:["core","gl"],api:{parseObj:m,parseMtl:p,objMaterial:d,objToNode:f,loadObj:w}};e.register(y),t.formatObj=y,t.loadObj=w,t.objMaterial=d,t.objToNode=f,t.parseMtl=p,t.parseObj=m}(this.MotionaryRuntime=this.MotionaryRuntime||{},MotionaryRuntime);
2
- //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v11.2.0/dist/runtime/format-obj.iife.js.map
1
+ !function(t,e){"use strict";const n={identity:()=>new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),multiply(t,e,n=new Float32Array(16)){for(let s=0;s<4;s++)for(let r=0;r<4;r++)n[4*s+r]=t[r]*e[4*s]+t[4+r]*e[4*s+1]+t[8+r]*e[4*s+2]+t[12+r]*e[4*s+3];return n},perspective(t,e,n,s){const r=1/Math.tan(t/2),a=1/(n-s);return new Float32Array([r/e,0,0,0,0,r,0,0,0,0,(s+n)*a,-1,0,0,2*s*n*a,0])},lookAt(t,e,n=[0,1,0]){let i=s(t,e);i=o(i.some(t=>t)?i:[0,0,1]);let l=a(n,i);l.some(t=>Math.abs(t)>1e-9)||(l=a([0,0,1],i)),l=o(l);const c=a(i,l);return new Float32Array([l[0],c[0],i[0],0,l[1],c[1],i[1],0,l[2],c[2],i[2],0,-r(l,t),-r(c,t),-r(i,t),1])},compose(t,e,n){const[s,r,a,o]=e,i=s+s,l=r+r,c=a+a,h=s*i,u=s*l,m=s*c,p=r*l,d=r*c,f=a*c,w=o*i,y=o*l,b=o*c;return new Float32Array([(1-(p+f))*n[0],(u+b)*n[0],(m-y)*n[0],0,(u-b)*n[1],(1-(h+f))*n[1],(d+w)*n[1],0,(m+y)*n[2],(d-w)*n[2],(1-(h+p))*n[2],0,t[0],t[1],t[2],1])},invert(t){const e=new Float32Array(16),[n,s,r,a,o,i,l,c,h,u,m,p,d,f,w,y]=t,b=n*i-s*o,v=n*l-r*o,g=n*c-a*o,M=s*l-r*i,j=s*c-a*i,K=r*c-a*l,F=h*f-u*d,A=h*w-m*d,N=h*y-p*d,x=u*w-m*f,k=u*y-p*f,O=m*y-p*w;let R=b*O-v*k+g*x+M*N-j*A+K*F;return R?(R=1/R,e[0]=(i*O-l*k+c*x)*R,e[1]=(r*k-s*O-a*x)*R,e[2]=(f*K-w*j+y*M)*R,e[3]=(m*j-u*K-p*M)*R,e[4]=(l*N-o*O-c*A)*R,e[5]=(n*O-r*N+a*A)*R,e[6]=(w*g-d*K-y*v)*R,e[7]=(h*K-m*g+p*v)*R,e[8]=(o*k-i*N+c*F)*R,e[9]=(s*N-n*k-a*F)*R,e[10]=(d*j-f*g+y*b)*R,e[11]=(u*g-h*j-p*b)*R,e[12]=(i*A-o*x-l*F)*R,e[13]=(n*x-s*A+r*F)*R,e[14]=(f*v-d*M-w*b)*R,e[15]=(h*M-u*v+m*b)*R,e):null},normal(t){const e=n.invert(t)||n.identity();return new Float32Array([e[0],e[4],e[8],e[1],e[5],e[9],e[2],e[6],e[10]])},transformPoint(t,e){const n=t[3]*e[0]+t[7]*e[1]+t[11]*e[2]+t[15]||1;return[(t[0]*e[0]+t[4]*e[1]+t[8]*e[2]+t[12])/n,(t[1]*e[0]+t[5]*e[1]+t[9]*e[2]+t[13])/n,(t[2]*e[0]+t[6]*e[1]+t[10]*e[2]+t[14])/n]}},s=(t,e)=>[t[0]-e[0],t[1]-e[1],t[2]-e[2]],r=(t,e)=>t[0]*e[0]+t[1]*e[1]+t[2]*e[2],a=(t,e)=>[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]],o=t=>{const e=Math.hypot(t[0],t[1],t[2])||1;return[t[0]/e,t[1]/e,t[2]/e]};function i(t){const e=t.positions,n=t.indices,r=n?n.length:e.length/3,i=new Float32Array(3*r),l=new Float32Array(3*r),c=t.uvs?new Float32Array(2*r):void 0;for(let h=0;h<r;h+=3){const r=[0,1,2].map(t=>n?n[h+t]:h+t),u=[e[3*r[0]],e[3*r[0]+1],e[3*r[0]+2]],m=[e[3*r[1]],e[3*r[1]+1],e[3*r[1]+2]],p=[e[3*r[2]],e[3*r[2]+1],e[3*r[2]+2]],d=o(a(s(m,u),s(p,u)));r.forEach((n,s)=>{i.set(e.subarray(3*n,3*n+3),3*(h+s)),l.set(d,3*(h+s)),c&&t.uvs&&c.set(t.uvs.subarray(2*n,2*n+2),2*(h+s))})}return{positions:i,normals:l,uvs:c,mode:t.mode}}function l(t={}){return{type:"standard",color:[1,1,1,1],metallic:0,roughness:.6,emissive:[0,0,0],...t}}function c(t,e={}){return{source:t,srgb:!0,repeat:!0,flipY:!1,video:"undefined"!=typeof HTMLVideoElement&&t instanceof HTMLVideoElement,needsUpdate:!0,...e}}class h{constructor(t="",e=null){this.name="",this.position=[0,0,0],this.rotation=[0,0,0,1],this.scale=[1,1,1],this.matrix=null,this.children=[],this.parent=null,this.mesh=null,this.visible=!0,this.extras={},this.world=n.identity(),this.name=t,this.mesh=e}add(...t){for(const e of t)e.parent?.remove(e),e.parent=this,this.children.push(e);return this}remove(t){const e=this.children.indexOf(t);e>=0&&this.children.splice(e,1),t.parent=null}setEuler(t,e,n){return this.rotation=function(t,e,n){const s=Math.cos(t/2),r=Math.sin(t/2),a=Math.cos(e/2),o=Math.sin(e/2),i=Math.cos(n/2),l=Math.sin(n/2);return[r*a*i+s*o*l,s*o*i-r*a*l,s*a*l+r*o*i,s*a*i-r*o*l]}(t,e,n),this}local(){return this.matrix||n.compose(this.position,this.rotation,this.scale)}updateWorld(t){const e=t?n.multiply(t,this.local()):this.local();this.world.set(e);for(const t of this.children)t.updateWorld(this.world)}traverse(t){t(this);for(const e of this.children)e.traverse(t)}find(t){let e=null;return this.traverse(n=>{e||n.name!==t||(e=n)}),e}}const u=(t,e,n)=>Array.from({length:n},(n,s)=>parseFloat(t[e+s])||0);function m(t){const e=[],n=[],s=[],r=[],a=[];let o=null,l="default",c="",h=0;const m=()=>{if(o&&o.p.length){const t={positions:new Float32Array(o.p),uvs:o.hasT?new Float32Array(o.t):void 0};a.push({name:o.name,material:o.material,geometry:o.hasN?{...t,normals:new Float32Array(o.n)}:i(t)})}o=null},p=()=>(o&&o.name===l&&o.material===c||(m(),o={name:l,material:c,p:[],n:[],t:[],hasN:!0,hasT:!0}),o);for(const a of t.split(/\r?\n/)){const t=a.trim();if(!t||"#"===t[0])continue;const o=t.split(/\s+/);switch(o[0]){case"v":e.push(...u(o,1,3));break;case"vt":n.push(...u(o,1,2));break;case"vn":s.push(...u(o,1,3));break;case"o":case"g":m(),l=o.slice(1).join(" ")||"default";break;case"usemtl":c=o.slice(1).join(" ");break;case"mtllib":r.push(...o.slice(1));break;case"f":{const t=p(),r=o.slice(1).map(t=>{const[r,a,o]=t.split("/"),i=(t,e)=>t?+t<0?e+ +t:+t-1:-1;return[i(r,e.length/3),i(a,n.length/2),i(o,s.length/3)]});for(let a=1;a+1<r.length;a++){for(const o of[r[0],r[a],r[a+1]])t.p.push(e[3*o[0]],e[3*o[0]+1],e[3*o[0]+2]),o[1]>=0?t.t.push(n[2*o[1]],1-n[2*o[1]+1]):(t.hasT=!1,t.t.push(0,0)),o[2]>=0?t.n.push(s[3*o[2]],s[3*o[2]+1],s[3*o[2]+2]):(t.hasN=!1,t.n.push(0,0,1));h++}break}}}return m(),{groups:a,mtllibs:r,vertexCount:e.length/3,triangleCount:h}}function p(t){const e={};let n=null;for(const s of t.split(/\r?\n/)){const t=s.trim();if(!t||"#"===t[0])continue;const r=t.split(/\s+/),a=r[0];"newmtl"!==a?n&&("Kd"===a||"Ks"===a||"Ke"===a?n[a]=u(r,1,3):"Ns"===a?n.Ns=parseFloat(r[1])||0:"d"===a?n.d=parseFloat(r[1]):"Tr"===a?n.d=1-parseFloat(r[1]):"map_Kd"===a&&(n.map_Kd=r[r.length-1])):n=e[r.slice(1).join(" ")]={name:r.slice(1).join(" "),Kd:[.8,.8,.8],Ks:[0,0,0],Ke:[0,0,0],Ns:10,d:1}}return e}function d(t){if(!t)return l({color:[.8,.8,.8,1]});const e=Math.max(...t.Ks);return l({color:[t.Kd[0],t.Kd[1],t.Kd[2],t.d],roughness:Math.min(1,Math.max(.05,1-Math.sqrt(Math.min(t.Ns,1e3)/1e3)*(e>0?1:.4))),metallic:0,emissive:t.Ke,transparent:t.d<1})}function f(t,e={},n={}){const s=new h("obj"),r=new Map;for(const a of t.groups){let t=r.get(a.name);t||(t=new h(a.name,[]),r.set(a.name,t),s.add(t));const o=e[a.material],i=d(o);o?.map_Kd&&n[o.map_Kd]&&(i.map=c(n[o.map_Kd])),t.mesh.push({geometry:a.geometry,material:i})}return s}async function w(t){const e=async t=>{const e=await fetch(t);if(!e.ok)throw new Error(`[motionary] format-obj: could not load ${t} (${e.status})`);return e},n=m(await(await e(t)).text()),s={};for(const r of n.mtllibs)Object.assign(s,p(await(await e(new URL(r,new URL(t,location.href)).href)).text()));const r={};await Promise.all(Object.values(s).filter(t=>t.map_Kd).map(async n=>{const s=await(await e(new URL(n.map_Kd,new URL(t,location.href)).href)).blob();r[n.map_Kd]=await createImageBitmap(s)}));const a=f(n,s,r);return a.extras={obj:n,materials:s},a}const y={id:"format-obj",version:e.RUNTIME_VERSION,tier:"advanced",requires:["core","gl"],api:{parseObj:m,parseMtl:p,objMaterial:d,objToNode:f,loadObj:w}};e.register(y),t.formatObj=y,t.loadObj=w,t.objMaterial=d,t.objToNode=f,t.parseMtl=p,t.parseObj=m}(this.MotionaryRuntime=this.MotionaryRuntime||{},MotionaryRuntime);
2
+ //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v11.4.0/dist/runtime/format-obj.iife.js.map
@@ -1,4 +1,4 @@
1
- import { R as RUNTIME_VERSION } from '../chunks/registry-DZMe2rVp.js';
1
+ import { R as RUNTIME_VERSION } from '../chunks/registry-CorBCE7b.js';
2
2
  import { GlNode, texture, standardMaterial, computeNormals } from './gl.js';
3
3
 
4
4
  /**
@@ -168,7 +168,7 @@ async function loadObj(url) {
168
168
  return node;
169
169
  }
170
170
  /** The module object for `use(formatObj)` (needs `gl`). */
171
- const formatObj = { id: 'format-obj', version: RUNTIME_VERSION, requires: ['core', 'gl'], api: { parseObj, parseMtl, objMaterial, objToNode, loadObj } };
171
+ const formatObj = { id: 'format-obj', version: RUNTIME_VERSION, tier: 'advanced', requires: ['core', 'gl'], api: { parseObj, parseMtl, objMaterial, objToNode, loadObj } };
172
172
 
173
173
  export { formatObj, loadObj, objMaterial, objToNode, parseMtl, parseObj };
174
- //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v11.2.0/dist/runtime/format-obj.js.map
174
+ //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v11.4.0/dist/runtime/format-obj.js.map
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var registry = require('../chunks/registry-BIhHroDh.cjs');
3
+ var registry = require('../chunks/registry-VITvgTNc.cjs');
4
4
 
5
5
  /**
6
6
  * `motionary/runtime/format-scene` (10.7) — the versioned scene format
@@ -229,7 +229,7 @@ function worldToScene(world, o = { width: 600, height: 400 }) {
229
229
  return { format: SCENE_FORMAT, ...(o.name ? { name: o.name } : {}), world: { width: o.width, height: o.height, gravity: [world.gravity.x, world.gravity.y], walls: o.walls ?? world.bodies.some((b) => wallLabels.has(b.label)) }, bodies, constraints };
230
230
  }
231
231
  /** The module object for `use(formatScene)` (needs `physics`). */
232
- const formatScene = { id: 'format-scene', version: registry.RUNTIME_VERSION, requires: ['core', 'physics'], api: { SCENE_FORMAT, migrateScene, validateScene, parseScene, sceneToWorld, worldToScene } };
232
+ const formatScene = { id: 'format-scene', version: registry.RUNTIME_VERSION, tier: 'advanced', requires: ['core', 'physics'], api: { SCENE_FORMAT, migrateScene, validateScene, parseScene, sceneToWorld, worldToScene } };
233
233
 
234
234
  exports.SCENE_FORMAT = SCENE_FORMAT;
235
235
  exports.formatScene = formatScene;
@@ -238,4 +238,4 @@ exports.parseScene = parseScene;
238
238
  exports.sceneToWorld = sceneToWorld;
239
239
  exports.validateScene = validateScene;
240
240
  exports.worldToScene = worldToScene;
241
- //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v11.2.0/dist/runtime/format-scene.cjs.map
241
+ //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v11.4.0/dist/runtime/format-scene.cjs.map
@@ -1,3 +1,9 @@
1
+ /**
2
+ * 11.4: runtime tiers. **basic** — ticker, tween, timeline, scroll, text, CSS / WAAPI keyframes; **standard** — smooth
3
+ * scrolling, drag-snap, SVG, sprites, GIF / APNG / WebP, Lottie; **advanced** — WebGL, 3D file parsing and decoders,
4
+ * physics. A page that only uses basic modules never downloads standard or advanced code.
5
+ */
6
+ type RuntimeTier = 'basic' | 'standard' | 'advanced';
1
7
  /** A runtime module: `{ id, version, api }`, registered with `use()`. */
2
8
  interface RuntimeModule<A = unknown> {
3
9
  /** Module id: 'core', 'format-css', 'scroll', … (import path `motionary/runtime/<id>`). */
@@ -5,6 +11,8 @@ interface RuntimeModule<A = unknown> {
5
11
  version: string;
6
12
  /** Other modules this one needs (registered first by `use()` callers). */
7
13
  requires?: string[];
14
+ /** 11.4: runtime tier — basic · standard · advanced (docs/runtime-tiers.md). */
15
+ tier?: RuntimeTier;
8
16
  /** The module's public API (what `requireModule(id)` returns). */
9
17
  api: A;
10
18
  /** Optional one-time setup, called on first registration. */
@@ -1,3 +1,9 @@
1
+ /**
2
+ * 11.4: runtime tiers. **basic** — ticker, tween, timeline, scroll, text, CSS / WAAPI keyframes; **standard** — smooth
3
+ * scrolling, drag-snap, SVG, sprites, GIF / APNG / WebP, Lottie; **advanced** — WebGL, 3D file parsing and decoders,
4
+ * physics. A page that only uses basic modules never downloads standard or advanced code.
5
+ */
6
+ type RuntimeTier = 'basic' | 'standard' | 'advanced';
1
7
  /** A runtime module: `{ id, version, api }`, registered with `use()`. */
2
8
  interface RuntimeModule<A = unknown> {
3
9
  /** Module id: 'core', 'format-css', 'scroll', … (import path `motionary/runtime/<id>`). */
@@ -5,6 +11,8 @@ interface RuntimeModule<A = unknown> {
5
11
  version: string;
6
12
  /** Other modules this one needs (registered first by `use()` callers). */
7
13
  requires?: string[];
14
+ /** 11.4: runtime tier — basic · standard · advanced (docs/runtime-tiers.md). */
15
+ tier?: RuntimeTier;
8
16
  /** The module's public API (what `requireModule(id)` returns). */
9
17
  api: A;
10
18
  /** Optional one-time setup, called on first registration. */
@@ -1,2 +1,2 @@
1
- !function(e,t){"use strict";const i="motionary-scene@1",s=e=>"number"==typeof e&&isFinite(e),n=e=>Array.isArray(e)&&2===e.length&&e.every(s);function o(e){const t=[],n="string"==typeof e?JSON.parse(e):JSON.parse(JSON.stringify(e??{}));if(n.format===i)return{scene:n,changes:t};if(n.format&&"motionary-scene@0"!==n.format)throw new Error(`[motionary] scene: unknown format "${n.format}" (this build reads ${i} and migrates motionary-scene@0 / unversioned scenes)`);return t.push(`${n.format||"unversioned"} → ${i}`),n.format=i,n.world||(n.world={width:n.width??600,height:n.height??400},null!=n.gravity&&(n.world.gravity=s(n.gravity)?[0,n.gravity]:n.gravity),null!=n.walls&&(n.world.walls=n.walls),delete n.width,delete n.height,delete n.gravity,delete n.walls,t.push('top-level width / height / gravity moved into "world"')),s(n.world.gravity)&&(n.world.gravity=[0,n.world.gravity],t.push("world.gravity number → [0, g]")),n.bodies=(n.bodies||[]).map((e,i)=>{const n={...e};return n.id||(n.id=`body-${i+1}`,t.push(`bodies[${i}]: id "${n.id}" added`)),null==n.position&&(s(n.x)||s(n.y))&&(n.position=[n.x??0,n.y??0],delete n.x,delete n.y,t.push(`bodies[${i}]: x / y → position`)),null==n.size&&(s(n.w)||s(n.h))&&(n.size=[n.w??40,n.h??40],delete n.w,delete n.h,t.push(`bodies[${i}]: w / h → size`)),"static"===n.type||"kinematic"===n.type?(n[n.type]=!0,delete n.type,t.push(`bodies[${i}]: type → ${n.static?"static":"kinematic"}: true`)):"dynamic"===n.type&&delete n.type,n.shape||(n.shape=null!=n.radius?"circle":n.vertices?"polygon":"box"),n}),{scene:n,changes:t}}function a(e){const t=[];let i;try{i=o(e).scene}catch(e){return[String(e.message).replace("[motionary] scene: ","")]}(!i.world||!s(i.world.width)||!s(i.world.height)||i.world.width<=0||i.world.height<=0)&&t.push("world: width and height must be positive numbers"),null==i.world?.gravity||n(i.world.gravity)||t.push("world.gravity must be [x, y]");const a=i.materials||{};for(const[e,i]of Object.entries(a))for(const n of["restitution","friction","density"])null!=i[n]&&(!s(i[n])||i[n]<0)&&t.push(`materials.${e}.${n} must be a number ≥ 0`);Array.isArray(i.bodies)||t.push("bodies must be an array");const r=new Set;return(i.bodies||[]).forEach((e,i)=>{const o=`bodies[${i}]${e.id?` ("${e.id}")`:""}`;r.has(e.id)&&t.push(`${o}: duplicate id`),r.add(e.id),["circle","box","polygon"].includes(e.shape)||t.push(`${o}: shape must be circle, box or polygon`),n(e.position)||t.push(`${o}: position must be [x, y]`),"circle"!==e.shape||s(e.radius)&&e.radius>0||t.push(`${o}: circle needs radius > 0`),"box"!==e.shape||n(e.size)&&e.size[0]>0&&e.size[1]>0||t.push(`${o}: box needs size [w, h] > 0`),"polygon"!==e.shape||Array.isArray(e.vertices)&&e.vertices.length>=3&&e.vertices.every(n)||t.push(`${o}: polygon needs ≥ 3 vertices [x, y]`),e.material&&!a[e.material]&&t.push(`${o}: unknown material "${e.material}"`),e.static&&e.kinematic&&t.push(`${o}: static and kinematic are exclusive`)}),(i.constraints||[]).forEach((e,i)=>{const o=`constraints[${i}]`;["distance","pin"].includes(e.type)||t.push(`${o}: type must be distance or pin`),r.has(e.a)||t.push(`${o}: unknown body "${e.a}"`),"distance"!==e.type||r.has(e.b)||t.push(`${o}: distance needs body b (unknown "${e.b}")`),"pin"!==e.type||null==e.point||n(e.point)||t.push(`${o}: point must be [x, y]`),null==e.stiffness||s(e.stiffness)&&e.stiffness>0&&e.stiffness<=1||t.push(`${o}: stiffness must be in (0, 1]`)}),t}function r(e){const{scene:t}=o(e),i=a(t);if(i.length)throw new Error(`[motionary] scene: ${i.length} problem(s): ${i.join("; ")}`);return t}function l(e){const i=r(e),s=t.requireModule("physics","motionary/runtime/format-scene"),n=i.world,o=s.createWorld({gravity:n.gravity||[0,980],iterations:n.iterations});n.walls&&o.bounds(n.width,n.height,50,"object"==typeof n.walls?n.walls:{});const a={};for(const e of i.bodies){const t=e.material&&i.materials?.[e.material]||{},s={shape:e.shape,x:e.position[0],y:e.position[1],angle:e.angle,radius:e.radius,width:e.size?.[0],height:e.size?.[1],vertices:e.vertices,type:e.static?"static":e.kinematic?"kinematic":"dynamic",restitution:e.restitution??t.restitution,friction:e.friction??t.friction,density:e.density??t.density,vx:e.velocity?.[0],vy:e.velocity?.[1],angularVelocity:e.angularVelocity,sensor:e.sensor,label:e.id,data:{id:e.id,style:e.style||{},material:e.material}};a[e.id]=o.body(s)}for(const e of i.constraints||[])o.constraint({type:e.type,a:a[e.a],b:e.b?a[e.b]:void 0,point:e.point,anchorA:e.anchorA,anchorB:e.anchorB,length:e.length,stiffness:e.stiffness,damping:e.damping});return{world:o,bodies:a,scene:i}}function c(e,t={width:600,height:400}){const s=e=>Math.round(1e3*e)/1e3,n=new Set(["floor","wall-left","wall-right","ceiling"]),o=e.bodies.filter(e=>!(e.isStatic&&n.has(e.label))),a=e=>e.data?.id||e.label+"-"+e.id,r=o.map(e=>{const t={id:a(e),shape:e.shape,position:[s(e.position.x),s(e.position.y)]};if(e.angle&&(t.angle=s(e.angle)),"circle"===e.shape)t.radius=s(e.radius);else{const i=e.verts.map(e=>e.x),n=e.verts.map(e=>e.y);"box"===e.shape?t.size=[s(Math.max(...i)-Math.min(...i)),s(Math.max(...n)-Math.min(...n))]:t.vertices=e.verts.map(e=>[s(e.x),s(e.y)])}"static"===e.type&&(t.static=!0),"kinematic"===e.type&&(t.kinematic=!0),t.restitution=e.restitution,t.friction=e.friction,"dynamic"===e.type&&(e.velocity.x||e.velocity.y)&&(t.velocity=[s(e.velocity.x),s(e.velocity.y)]),e.angularVelocity&&(t.angularVelocity=s(e.angularVelocity)),e.sensor&&(t.sensor=!0);const i=e.data?.style;return i&&Object.keys(i).length&&(t.style=i),t}),l=e.constraints.filter(e=>"drag"!==e.label&&o.includes(e.a)&&(!e.b||o.includes(e.b))).map(e=>({type:e.type,a:a(e.a),...e.b?{b:a(e.b)}:{point:[s(e.point.x),s(e.point.y)]},anchorA:[s(e.anchorA.x),s(e.anchorA.y)],...e.b?{anchorB:[s(e.anchorB.x),s(e.anchorB.y)]}:{},length:s(e.length),stiffness:e.stiffness,damping:e.damping}));return{format:i,...t.name?{name:t.name}:{},world:{width:t.width,height:t.height,gravity:[e.gravity.x,e.gravity.y],walls:t.walls??e.bodies.some(e=>n.has(e.label))},bodies:r,constraints:l}}const d={id:"format-scene",version:t.RUNTIME_VERSION,requires:["core","physics"],api:{SCENE_FORMAT:i,migrateScene:o,validateScene:a,parseScene:r,sceneToWorld:l,worldToScene:c}};t.register(d),e.SCENE_FORMAT=i,e.formatScene=d,e.migrateScene=o,e.parseScene=r,e.sceneToWorld=l,e.validateScene=a,e.worldToScene=c}(this.MotionaryRuntime=this.MotionaryRuntime||{},MotionaryRuntime);
2
- //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v11.2.0/dist/runtime/format-scene.iife.js.map
1
+ !function(e,t){"use strict";const i="motionary-scene@1",s=e=>"number"==typeof e&&isFinite(e),n=e=>Array.isArray(e)&&2===e.length&&e.every(s);function o(e){const t=[],n="string"==typeof e?JSON.parse(e):JSON.parse(JSON.stringify(e??{}));if(n.format===i)return{scene:n,changes:t};if(n.format&&"motionary-scene@0"!==n.format)throw new Error(`[motionary] scene: unknown format "${n.format}" (this build reads ${i} and migrates motionary-scene@0 / unversioned scenes)`);return t.push(`${n.format||"unversioned"} → ${i}`),n.format=i,n.world||(n.world={width:n.width??600,height:n.height??400},null!=n.gravity&&(n.world.gravity=s(n.gravity)?[0,n.gravity]:n.gravity),null!=n.walls&&(n.world.walls=n.walls),delete n.width,delete n.height,delete n.gravity,delete n.walls,t.push('top-level width / height / gravity moved into "world"')),s(n.world.gravity)&&(n.world.gravity=[0,n.world.gravity],t.push("world.gravity number → [0, g]")),n.bodies=(n.bodies||[]).map((e,i)=>{const n={...e};return n.id||(n.id=`body-${i+1}`,t.push(`bodies[${i}]: id "${n.id}" added`)),null==n.position&&(s(n.x)||s(n.y))&&(n.position=[n.x??0,n.y??0],delete n.x,delete n.y,t.push(`bodies[${i}]: x / y → position`)),null==n.size&&(s(n.w)||s(n.h))&&(n.size=[n.w??40,n.h??40],delete n.w,delete n.h,t.push(`bodies[${i}]: w / h → size`)),"static"===n.type||"kinematic"===n.type?(n[n.type]=!0,delete n.type,t.push(`bodies[${i}]: type → ${n.static?"static":"kinematic"}: true`)):"dynamic"===n.type&&delete n.type,n.shape||(n.shape=null!=n.radius?"circle":n.vertices?"polygon":"box"),n}),{scene:n,changes:t}}function a(e){const t=[];let i;try{i=o(e).scene}catch(e){return[String(e.message).replace("[motionary] scene: ","")]}(!i.world||!s(i.world.width)||!s(i.world.height)||i.world.width<=0||i.world.height<=0)&&t.push("world: width and height must be positive numbers"),null==i.world?.gravity||n(i.world.gravity)||t.push("world.gravity must be [x, y]");const a=i.materials||{};for(const[e,i]of Object.entries(a))for(const n of["restitution","friction","density"])null!=i[n]&&(!s(i[n])||i[n]<0)&&t.push(`materials.${e}.${n} must be a number ≥ 0`);Array.isArray(i.bodies)||t.push("bodies must be an array");const r=new Set;return(i.bodies||[]).forEach((e,i)=>{const o=`bodies[${i}]${e.id?` ("${e.id}")`:""}`;r.has(e.id)&&t.push(`${o}: duplicate id`),r.add(e.id),["circle","box","polygon"].includes(e.shape)||t.push(`${o}: shape must be circle, box or polygon`),n(e.position)||t.push(`${o}: position must be [x, y]`),"circle"!==e.shape||s(e.radius)&&e.radius>0||t.push(`${o}: circle needs radius > 0`),"box"!==e.shape||n(e.size)&&e.size[0]>0&&e.size[1]>0||t.push(`${o}: box needs size [w, h] > 0`),"polygon"!==e.shape||Array.isArray(e.vertices)&&e.vertices.length>=3&&e.vertices.every(n)||t.push(`${o}: polygon needs ≥ 3 vertices [x, y]`),e.material&&!a[e.material]&&t.push(`${o}: unknown material "${e.material}"`),e.static&&e.kinematic&&t.push(`${o}: static and kinematic are exclusive`)}),(i.constraints||[]).forEach((e,i)=>{const o=`constraints[${i}]`;["distance","pin"].includes(e.type)||t.push(`${o}: type must be distance or pin`),r.has(e.a)||t.push(`${o}: unknown body "${e.a}"`),"distance"!==e.type||r.has(e.b)||t.push(`${o}: distance needs body b (unknown "${e.b}")`),"pin"!==e.type||null==e.point||n(e.point)||t.push(`${o}: point must be [x, y]`),null==e.stiffness||s(e.stiffness)&&e.stiffness>0&&e.stiffness<=1||t.push(`${o}: stiffness must be in (0, 1]`)}),t}function r(e){const{scene:t}=o(e),i=a(t);if(i.length)throw new Error(`[motionary] scene: ${i.length} problem(s): ${i.join("; ")}`);return t}function l(e){const i=r(e),s=t.requireModule("physics","motionary/runtime/format-scene"),n=i.world,o=s.createWorld({gravity:n.gravity||[0,980],iterations:n.iterations});n.walls&&o.bounds(n.width,n.height,50,"object"==typeof n.walls?n.walls:{});const a={};for(const e of i.bodies){const t=e.material&&i.materials?.[e.material]||{},s={shape:e.shape,x:e.position[0],y:e.position[1],angle:e.angle,radius:e.radius,width:e.size?.[0],height:e.size?.[1],vertices:e.vertices,type:e.static?"static":e.kinematic?"kinematic":"dynamic",restitution:e.restitution??t.restitution,friction:e.friction??t.friction,density:e.density??t.density,vx:e.velocity?.[0],vy:e.velocity?.[1],angularVelocity:e.angularVelocity,sensor:e.sensor,label:e.id,data:{id:e.id,style:e.style||{},material:e.material}};a[e.id]=o.body(s)}for(const e of i.constraints||[])o.constraint({type:e.type,a:a[e.a],b:e.b?a[e.b]:void 0,point:e.point,anchorA:e.anchorA,anchorB:e.anchorB,length:e.length,stiffness:e.stiffness,damping:e.damping});return{world:o,bodies:a,scene:i}}function c(e,t={width:600,height:400}){const s=e=>Math.round(1e3*e)/1e3,n=new Set(["floor","wall-left","wall-right","ceiling"]),o=e.bodies.filter(e=>!(e.isStatic&&n.has(e.label))),a=e=>e.data?.id||e.label+"-"+e.id,r=o.map(e=>{const t={id:a(e),shape:e.shape,position:[s(e.position.x),s(e.position.y)]};if(e.angle&&(t.angle=s(e.angle)),"circle"===e.shape)t.radius=s(e.radius);else{const i=e.verts.map(e=>e.x),n=e.verts.map(e=>e.y);"box"===e.shape?t.size=[s(Math.max(...i)-Math.min(...i)),s(Math.max(...n)-Math.min(...n))]:t.vertices=e.verts.map(e=>[s(e.x),s(e.y)])}"static"===e.type&&(t.static=!0),"kinematic"===e.type&&(t.kinematic=!0),t.restitution=e.restitution,t.friction=e.friction,"dynamic"===e.type&&(e.velocity.x||e.velocity.y)&&(t.velocity=[s(e.velocity.x),s(e.velocity.y)]),e.angularVelocity&&(t.angularVelocity=s(e.angularVelocity)),e.sensor&&(t.sensor=!0);const i=e.data?.style;return i&&Object.keys(i).length&&(t.style=i),t}),l=e.constraints.filter(e=>"drag"!==e.label&&o.includes(e.a)&&(!e.b||o.includes(e.b))).map(e=>({type:e.type,a:a(e.a),...e.b?{b:a(e.b)}:{point:[s(e.point.x),s(e.point.y)]},anchorA:[s(e.anchorA.x),s(e.anchorA.y)],...e.b?{anchorB:[s(e.anchorB.x),s(e.anchorB.y)]}:{},length:s(e.length),stiffness:e.stiffness,damping:e.damping}));return{format:i,...t.name?{name:t.name}:{},world:{width:t.width,height:t.height,gravity:[e.gravity.x,e.gravity.y],walls:t.walls??e.bodies.some(e=>n.has(e.label))},bodies:r,constraints:l}}const d={id:"format-scene",version:t.RUNTIME_VERSION,tier:"advanced",requires:["core","physics"],api:{SCENE_FORMAT:i,migrateScene:o,validateScene:a,parseScene:r,sceneToWorld:l,worldToScene:c}};t.register(d),e.SCENE_FORMAT=i,e.formatScene=d,e.migrateScene=o,e.parseScene=r,e.sceneToWorld=l,e.validateScene=a,e.worldToScene=c}(this.MotionaryRuntime=this.MotionaryRuntime||{},MotionaryRuntime);
2
+ //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v11.4.0/dist/runtime/format-scene.iife.js.map
@@ -1,4 +1,4 @@
1
- import { R as RUNTIME_VERSION, r as requireModule } from '../chunks/registry-DZMe2rVp.js';
1
+ import { R as RUNTIME_VERSION, r as requireModule } from '../chunks/registry-CorBCE7b.js';
2
2
 
3
3
  /**
4
4
  * `motionary/runtime/format-scene` (10.7) — the versioned scene format
@@ -227,7 +227,7 @@ function worldToScene(world, o = { width: 600, height: 400 }) {
227
227
  return { format: SCENE_FORMAT, ...(o.name ? { name: o.name } : {}), world: { width: o.width, height: o.height, gravity: [world.gravity.x, world.gravity.y], walls: o.walls ?? world.bodies.some((b) => wallLabels.has(b.label)) }, bodies, constraints };
228
228
  }
229
229
  /** The module object for `use(formatScene)` (needs `physics`). */
230
- const formatScene = { id: 'format-scene', version: RUNTIME_VERSION, requires: ['core', 'physics'], api: { SCENE_FORMAT, migrateScene, validateScene, parseScene, sceneToWorld, worldToScene } };
230
+ const formatScene = { id: 'format-scene', version: RUNTIME_VERSION, tier: 'advanced', requires: ['core', 'physics'], api: { SCENE_FORMAT, migrateScene, validateScene, parseScene, sceneToWorld, worldToScene } };
231
231
 
232
232
  export { SCENE_FORMAT, formatScene, migrateScene, parseScene, sceneToWorld, validateScene, worldToScene };
233
- //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v11.2.0/dist/runtime/format-scene.js.map
233
+ //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v11.4.0/dist/runtime/format-scene.js.map
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var registry = require('../chunks/registry-BIhHroDh.cjs');
4
- var tween = require('../chunks/tween-BqL2cEKf.cjs');
5
- require('../chunks/ticker--1A-E9Vg.cjs');
3
+ var registry = require('../chunks/registry-VITvgTNc.cjs');
4
+ var tween = require('../chunks/tween-ookpV7jR.cjs');
5
+ require('../chunks/ticker-DwRa5hIu.cjs');
6
6
  require('../chunks/ease-HwYZnZat.cjs');
7
7
 
8
8
  /**
@@ -212,7 +212,7 @@ function sequencePlayer(canvas, images, o = {}) {
212
212
  return new SequencePlayer(canvas, images, o);
213
213
  }
214
214
  /** The module object for `use(formatSprite)`. */
215
- const formatSprite = { id: 'format-sprite', version: registry.RUNTIME_VERSION, requires: ['core'], api: { parseSpriteSheet, gridSheet, frameOrder, drawFrame, spritePlayer, imageSequence, preloadImages, sequencePlayer } };
215
+ const formatSprite = { id: 'format-sprite', version: registry.RUNTIME_VERSION, tier: 'standard', requires: ['core'], api: { parseSpriteSheet, gridSheet, frameOrder, drawFrame, spritePlayer, imageSequence, preloadImages, sequencePlayer } };
216
216
 
217
217
  exports.drawFrame = drawFrame;
218
218
  exports.formatSprite = formatSprite;
@@ -223,4 +223,4 @@ exports.parseSpriteSheet = parseSpriteSheet;
223
223
  exports.preloadImages = preloadImages;
224
224
  exports.sequencePlayer = sequencePlayer;
225
225
  exports.spritePlayer = spritePlayer;
226
- //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v11.2.0/dist/runtime/format-sprite.cjs.map
226
+ //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v11.4.0/dist/runtime/format-sprite.cjs.map
@@ -1,3 +1,9 @@
1
+ /**
2
+ * 11.4: runtime tiers. **basic** — ticker, tween, timeline, scroll, text, CSS / WAAPI keyframes; **standard** — smooth
3
+ * scrolling, drag-snap, SVG, sprites, GIF / APNG / WebP, Lottie; **advanced** — WebGL, 3D file parsing and decoders,
4
+ * physics. A page that only uses basic modules never downloads standard or advanced code.
5
+ */
6
+ type RuntimeTier = 'basic' | 'standard' | 'advanced';
1
7
  /** A runtime module: `{ id, version, api }`, registered with `use()`. */
2
8
  interface RuntimeModule<A = unknown> {
3
9
  /** Module id: 'core', 'format-css', 'scroll', … (import path `motionary/runtime/<id>`). */
@@ -5,6 +11,8 @@ interface RuntimeModule<A = unknown> {
5
11
  version: string;
6
12
  /** Other modules this one needs (registered first by `use()` callers). */
7
13
  requires?: string[];
14
+ /** 11.4: runtime tier — basic · standard · advanced (docs/runtime-tiers.md). */
15
+ tier?: RuntimeTier;
8
16
  /** The module's public API (what `requireModule(id)` returns). */
9
17
  api: A;
10
18
  /** Optional one-time setup, called on first registration. */