hyperframes 0.8.221 → 0.8.223

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 (262) hide show
  1. package/dist/{add-7CVO7K6M.js → add-PBLOPJHC.js} +16 -15
  2. package/dist/{agentPromptGenerator-YFC2SJLF.js → agentPromptGenerator-OD74HKYZ.js} +12 -11
  3. package/dist/{animatedGifPrep-YSMY5GU2.js → animatedGifPrep-QCG2BTDC.js} +12 -11
  4. package/dist/api.d.ts +5 -3
  5. package/dist/api.js +38 -26
  6. package/dist/{asset-ZVKHSO3M.js → asset-KHXCO4OR.js} +2 -2
  7. package/dist/{assetCataloger-6IBSEOK7.js → assetCataloger-ZX5WZTDQ.js} +13 -12
  8. package/dist/{audio-JUV3TVSW.js → audio-7AH2C6PB.js} +153 -1160
  9. package/dist/{auth-2J6FP462.js → auth-DJWMGXQB.js} +5 -5
  10. package/dist/{autoUpdate-ML6EZK6D.js → autoUpdate-KJMLYSHE.js} +2 -2
  11. package/dist/{backgroundChecks-MAWP2REX.js → backgroundChecks-XLVQMMXY.js} +3 -3
  12. package/dist/backgroundChecksWorker.js +3 -3
  13. package/dist/{batchRender-Z7MGNJZH.js → batchRender-UR67LI4H.js} +12 -9
  14. package/dist/{beats-LRZOZUUQ.js → beats-ISWSYNN6.js} +54 -22
  15. package/dist/{benchmark-XJWLDTIL.js → benchmark-7JUATINH.js} +12 -11
  16. package/dist/billing-VGKY3FMX.js +86 -0
  17. package/dist/{browser-STEVEWWA.js → browser-HNGQB47C.js} +3 -3
  18. package/dist/{bundleWithLocalizedFonts-WH63ZWUT.js → bundleWithLocalizedFonts-4XWX2XPS.js} +2 -2
  19. package/dist/{capture-VB5ID7HT.js → capture-GFDP5THL.js} +3 -3
  20. package/dist/{capture-U3ZT3GNI.js → capture-LBEGVQTJ.js} +80 -38
  21. package/dist/{captureCompositionFrame-MXJ3WO2R.js → captureCompositionFrame-5L3J4MZ4.js} +18 -17
  22. package/dist/{catalog-ICGHSRPZ.js → catalog-SNUTPI57.js} +16 -15
  23. package/dist/{catch-up-DJPQKXQB.js → catch-up-FE3HDMLJ.js} +4 -4
  24. package/dist/{check-TL7AGWPO.js → check-MQCBMOKA.js} +47 -45
  25. package/dist/{checkAudio-GPTU6EGB.js → checkAudio-6VPMLIY6.js} +22 -21
  26. package/dist/{checkBrowser-FG5DAW2R.js → checkBrowser-SHUVFQ4S.js} +45 -39
  27. package/dist/{chunk-YKMFCE5B.js → chunk-2GMHYOV3.js} +1 -1
  28. package/dist/{chunk-TNQCXU37.js → chunk-2HBB5U52.js} +1 -1
  29. package/dist/{chunk-UNQ3CVKW.js → chunk-3FGEDDSA.js} +27 -28
  30. package/dist/{chunk-HSHKLYDI.js → chunk-44IPXXSK.js} +7 -5
  31. package/dist/{chunk-TVT465RJ.js → chunk-44YG42L5.js} +144 -41
  32. package/dist/{chunk-ZBLSSWSE.js → chunk-45UOXUUH.js} +16 -3
  33. package/dist/chunk-4JRFMRCQ.js +288 -0
  34. package/dist/{chunk-M2F6VGCP.js → chunk-4XQQQ4KN.js} +85 -50
  35. package/dist/{chunk-6MUI2H6P.js → chunk-54Q3H2UQ.js} +5 -2
  36. package/dist/{chunk-67CALYTU.js → chunk-664JAO7C.js} +1 -1
  37. package/dist/{chunk-H3HC6U4I.js → chunk-6LE7K3YM.js} +17 -14
  38. package/dist/{chunk-Z7YQEDA5.js → chunk-7LKEHM2R.js} +1 -1
  39. package/dist/{chunk-I45R2REQ.js → chunk-7XWCCFYW.js} +1 -1
  40. package/dist/{chunk-L63FJVSC.js → chunk-A2KNKY4Z.js} +1 -1
  41. package/dist/{chunk-MEB6HWBM.js → chunk-A5WWEW6U.js} +2 -2
  42. package/dist/{chunk-PBNWRWKA.js → chunk-AKMY4QVI.js} +2 -1
  43. package/dist/{chunk-OPKSVV4G.js → chunk-AKTI2SHL.js} +2 -2
  44. package/dist/{chunk-VZBJ5BQF.js → chunk-AW3XJY4S.js} +1 -1
  45. package/dist/chunk-AW7UW2Z7.js +312 -0
  46. package/dist/{chunk-DWTFLQ3P.js → chunk-B2ZZYISD.js} +4 -2
  47. package/dist/{chunk-625I5VBE.js → chunk-B5HFCGI7.js} +2 -2
  48. package/dist/{chunk-AZXDEC2G.js → chunk-B6F33PUK.js} +6 -8
  49. package/dist/{chunk-AW7A27JM.js → chunk-BDEBKAD2.js} +1 -1
  50. package/dist/{chunk-322M35EB.js → chunk-BN75GXZM.js} +3 -3
  51. package/dist/{chunk-KSC4O2RY.js → chunk-C2KEGBR3.js} +53 -4
  52. package/dist/{chunk-6YW3FEHC.js → chunk-C466I3DT.js} +9 -8
  53. package/dist/{chunk-M2BCU4Y5.js → chunk-CXEU6XNL.js} +6 -20
  54. package/dist/{chunk-KQPP4NIZ.js → chunk-CYE2NNFF.js} +2 -2
  55. package/dist/{chunk-U6WH572X.js → chunk-DFK4RMNE.js} +5 -5
  56. package/dist/chunk-DY7PQLIE.js +248 -0
  57. package/dist/chunk-EF735J3K.js +59 -0
  58. package/dist/{chunk-XFMO3BEN.js → chunk-EHZESMRB.js} +18 -6
  59. package/dist/chunk-EJOFIHX4.js +46 -0
  60. package/dist/{chunk-3422KMTD.js → chunk-EPQC3FGZ.js} +4 -0
  61. package/dist/{chunk-2ZNURTH5.js → chunk-EX75C5HT.js} +4459 -4312
  62. package/dist/{chunk-4ZM727AO.js → chunk-FKBWONRY.js} +5 -5
  63. package/dist/{chunk-YISDQ7YP.js → chunk-FORV75JT.js} +26 -14
  64. package/dist/{chunk-ZKPRJPWN.js → chunk-G5KX4X6W.js} +59 -59
  65. package/dist/{chunk-SGTEKMJW.js → chunk-HOTXWVVP.js} +93 -5
  66. package/dist/{chunk-LYZB5CJN.js → chunk-HT3D5AKG.js} +160 -19
  67. package/dist/{chunk-BIROA7JM.js → chunk-HYRPH6LL.js} +7 -6
  68. package/dist/{chunk-35JKCWYI.js → chunk-I6OY5MS6.js} +1 -1
  69. package/dist/{chunk-S5GOFDX5.js → chunk-IJI2JNN7.js} +1 -1
  70. package/dist/{chunk-SAKL7SZH.js → chunk-IQ7FABPU.js} +3 -3
  71. package/dist/{chunk-YV2QQUTL.js → chunk-JNQCM6CR.js} +2 -2
  72. package/dist/{chunk-TMK3MW7B.js → chunk-JO4LHFFP.js} +10 -10
  73. package/dist/chunk-JTZHDD63.js +70 -0
  74. package/dist/{chunk-YSZ4VMXI.js → chunk-K5GMPWMG.js} +1 -1
  75. package/dist/{chunk-ROVRC3CG.js → chunk-KCDWRMTC.js} +5 -5
  76. package/dist/{chunk-74E7EHVH.js → chunk-KJGYQVFD.js} +1 -1
  77. package/dist/{chunk-3STL4WJ6.js → chunk-KT2WLSX5.js} +19 -10
  78. package/dist/{chunk-OMLDAF44.js → chunk-KWYK65GR.js} +9 -8
  79. package/dist/{chunk-F6WHVEUS.js → chunk-LAIGIOEA.js} +5 -1
  80. package/dist/{chunk-3PJ3HVLG.js → chunk-LV5AVW6U.js} +1 -1
  81. package/dist/{chunk-XETZLYGW.js → chunk-M4UVOUWC.js} +2 -2
  82. package/dist/{chunk-DMCU2ELU.js → chunk-M7HNGAWN.js} +3 -3
  83. package/dist/chunk-MEJH7VEA.js +63 -0
  84. package/dist/{chunk-MYXFBIJO.js → chunk-MTVL7FWZ.js} +1 -1
  85. package/dist/{chunk-MYNBV7WG.js → chunk-MUHOFRGW.js} +1 -1
  86. package/dist/{chunk-7DVR3DL3.js → chunk-N6XKBBT5.js} +8 -8
  87. package/dist/{chunk-OOEOJPFY.js → chunk-NLWG5TU7.js} +2 -2
  88. package/dist/chunk-NZZQCWUC.js +205 -0
  89. package/dist/{chunk-ZOLKM3VZ.js → chunk-OL2C3ODS.js} +9 -9
  90. package/dist/{chunk-QLQVQQP6.js → chunk-OVINGNLQ.js} +3 -3
  91. package/dist/{chunk-MXVH6UW6.js → chunk-OWFSGDQS.js} +6 -57
  92. package/dist/chunk-OZM6VLD7.js +71 -0
  93. package/dist/{chunk-5YT2KHPO.js → chunk-P5QGZMGC.js} +2 -2
  94. package/dist/{chunk-NYOQP6DO.js → chunk-PBPHKD56.js} +1 -1
  95. package/dist/chunk-PHEPL7OX.js +1048 -0
  96. package/dist/{chunk-AZI2T2KO.js → chunk-PX7Y4HMM.js} +1 -1
  97. package/dist/{chunk-IDWJJ7PP.js → chunk-QNLHDYYO.js} +2 -2
  98. package/dist/{chunk-N4XNRHFM.js → chunk-QNW43LWB.js} +1 -1
  99. package/dist/{chunk-24F7TOW2.js → chunk-QU5OYMTB.js} +140 -54
  100. package/dist/chunk-QZGKKQ77.js +570 -0
  101. package/dist/{chunk-NQOCM4KQ.js → chunk-RKVKFXYB.js} +3 -3
  102. package/dist/{chunk-Y4GLFHO5.js → chunk-RORIFIUW.js} +1 -1
  103. package/dist/{chunk-MESSJFK3.js → chunk-RWSVSCOP.js} +38 -28
  104. package/dist/chunk-RZ6CXJ56.js +24 -0
  105. package/dist/chunk-SDBVVDBW.js +113 -0
  106. package/dist/{chunk-YBNF5ZOC.js → chunk-SFS5BTQ3.js} +1 -1
  107. package/dist/{chunk-BQNTY7J5.js → chunk-SNFVQDKE.js} +1 -1
  108. package/dist/{chunk-J74ZUXVU.js → chunk-SWC3QIEH.js} +1 -1
  109. package/dist/{chunk-D2RQVJLZ.js → chunk-SX7ESVCQ.js} +5 -29
  110. package/dist/{chunk-P6FGS4U6.js → chunk-UFYWGUUV.js} +6 -6
  111. package/dist/{chunk-GSCFMG4C.js → chunk-UGUWSAJT.js} +3 -3
  112. package/dist/chunk-UQECNXFA.js +5013 -0
  113. package/dist/{chunk-XDTCPMR3.js → chunk-UQVAAEPQ.js} +2 -2
  114. package/dist/{chunk-NHXGFQWQ.js → chunk-UVF4U3ZF.js} +1 -1
  115. package/dist/{chunk-YSTBSLWY.js → chunk-VBCBHDIW.js} +1 -1
  116. package/dist/chunk-VJM6NX54.js +250 -0
  117. package/dist/{chunk-5SKC4G26.js → chunk-VMRQDPFL.js} +1 -1
  118. package/dist/chunk-WGOIJN57.js +95 -0
  119. package/dist/{chunk-RVCWVOXM.js → chunk-WQLTKHPP.js} +3 -3
  120. package/dist/{chunk-RVIMLJXC.js → chunk-WUXDIF5D.js} +60 -23
  121. package/dist/{chunk-QYUXDFJY.js → chunk-WWOHLNFO.js} +12 -10
  122. package/dist/{chunk-JGZUG5V4.js → chunk-XZEHFUQF.js} +2 -2
  123. package/dist/{chunk-6HKUUBAV.js → chunk-Y4INSXS7.js} +2 -2
  124. package/dist/{chunk-O7WR4AHX.js → chunk-ZEKV5T3I.js} +14 -14
  125. package/dist/{clean-3NMJWZXK.js → clean-JZOPMJMV.js} +27 -26
  126. package/dist/cli.js +59 -56
  127. package/dist/{cloud-CB3NYNUR.js → cloud-VMPF2KMA.js} +4 -4
  128. package/dist/{cloudrun-2CTKCIXV.js → cloudrun-LA2FKS2F.js} +10 -9
  129. package/dist/commands/layout-audit.browser.js +19 -3
  130. package/dist/commands/motion-signature.browser.js +8 -4
  131. package/dist/{compare-FVY3AMTT.js → compare-IQCFSC5Z.js} +37 -36
  132. package/dist/{compiler-SEQRWEEN.js → compiler-J7OZQIPD.js} +8 -8
  133. package/dist/{component-AEMJRROX.js → component-TRGBVFCI.js} +3 -3
  134. package/dist/{compositions-NRBSIBGZ.js → compositions-FOC2CAZX.js} +18 -17
  135. package/dist/curve-ID3Z522S.js +329 -0
  136. package/dist/cuts-MWHQSE2Z.js +123 -0
  137. package/dist/{delete-T4E53ELR.js → delete-47KZ7PLI.js} +5 -5
  138. package/dist/{deploy-PUF2DW3H.js → deploy-NTNEO4TI.js} +8 -8
  139. package/dist/describeProject-WWREIVQV.js +56 -0
  140. package/dist/{deterministicFonts-2ISM3LMW.js → deterministicFonts-LV2JMOJL.js} +2 -2
  141. package/dist/diff-GH4KCQGQ.js +1825 -0
  142. package/dist/{dist-VARV35QH.js → dist-24QQO5IL.js} +6 -6
  143. package/dist/{dist-B6C3DU6I.js → dist-XW7FATO6.js} +7 -6
  144. package/dist/{doctor-FVBU575B.js → doctor-4ZH7WFU6.js} +16 -15
  145. package/dist/{dotEnv-BGFXSQOA.js → dotEnv-33RDHX7P.js} +1 -1
  146. package/dist/energy-2C65KXBH.js +134 -0
  147. package/dist/{events-RSPDI7FX.js → events-FUFFA55P.js} +3 -3
  148. package/dist/{events-DZ5PRR6F.js → events-Q3EBOW2Y.js} +2 -2
  149. package/dist/events-QO5G2VCC.js +221 -0
  150. package/dist/extract-Z6TLBM5B.js +309 -0
  151. package/dist/face-WI6BPPUG.js +171 -0
  152. package/dist/{feedback-AALA3OA7.js → feedback-M5GZWDXP.js} +16 -15
  153. package/dist/{ffmpeg-YXKE5CUE.js → ffmpeg-27H6P7ZU.js} +13 -12
  154. package/dist/{figma-37R727XZ.js → figma-AI6TSWVO.js} +3 -3
  155. package/dist/fontLocalizeCli.js +16 -15
  156. package/dist/frames-WUTLVZIR.js +352 -0
  157. package/dist/generate-3CJREF5U.js +74 -0
  158. package/dist/{get-L3VKJ6JF.js → get-KTDRE33B.js} +5 -5
  159. package/dist/{gpuPolicy-6QIFFWAI.js → gpuPolicy-Z4MM64HY.js} +12 -11
  160. package/dist/{grade-compare-7IN5QDJD.js → grade-compare-IM7Z7HWI.js} +41 -37
  161. package/dist/{heifImagePrep-AWII25PM.js → heifImagePrep-CXI2ZMUX.js} +13 -12
  162. package/dist/{help-B4MB7MWW.js → help-5FR6BRLR.js} +7 -1
  163. package/dist/{history-TQO6AWEQ.js → history-5P5YVP5H.js} +17 -8
  164. package/dist/hyperframe.manifest.json +1 -1
  165. package/dist/hyperframe.runtime.iife.js +72 -72
  166. package/dist/hyperframes-player.global.js +3 -3
  167. package/dist/hyperframes-slideshow.global.js +8 -8
  168. package/dist/index-gen-OPMQ5WSN.js +61 -0
  169. package/dist/{info-7CBHVXSG.js → info-5ZGNJJVA.js} +11 -10
  170. package/dist/{init-D7HKPQ5A.js → init-NWIAEYSX.js} +35 -33
  171. package/dist/{inspect-VHDQL55M.js → inspect-HBLAVW5C.js} +38 -36
  172. package/dist/{installer-EJNLL6SV.js → installer-KVFTBZZ5.js} +8 -7
  173. package/dist/{keyframes-IFLBMAJP.js → keyframes-LFCLUY2R.js} +7 -7
  174. package/dist/{lambda-I7EQULHC.js → lambda-RFWTTMLU.js} +19 -18
  175. package/dist/{layout-MOCEANRO.js → layout-WOG2Y5ND.js} +38 -36
  176. package/dist/{lint-HFXGSQKN.js → lint-7MALXMMF.js} +12 -12
  177. package/dist/{lintProject-VCDI6A2W.js → lintProject-6H64SX3V.js} +6 -6
  178. package/dist/{list-OFYIXVON.js → list-XRYAT24W.js} +5 -5
  179. package/dist/{localPage-QOOQ5YA2.js → localPage-IN36JVJU.js} +12 -11
  180. package/dist/{login-WAG7B4PM.js → login-32WGVGTM.js} +15 -9
  181. package/dist/{logout-6VFJ7WMW.js → logout-SLI6YTHI.js} +2 -2
  182. package/dist/look-ZWVE6JO3.js +180 -0
  183. package/dist/{manager-34U5CEFB.js → manager-SFL6GLYX.js} +14 -12
  184. package/dist/manifest-QSJYVERU.js +49 -0
  185. package/dist/measure-Q74BJTRQ.js +46 -0
  186. package/dist/{media-treatment-2TLX6NKS.js → media-treatment-3R6DYEAZ.js} +24 -23
  187. package/dist/{media-use-ZNTB7W6N.js → media-use-ZM2WCRQC.js} +9 -5
  188. package/dist/{models-M2F4WTAR.js → models-NNC53UPU.js} +16 -15
  189. package/dist/{motionShot-6WCTCV4W.js → motionShot-5BI5JFUP.js} +21 -20
  190. package/dist/{normalize-QJVXFMWO.js → normalize-MBNGRVQA.js} +2 -1
  191. package/dist/{normalize-audio-T6PIPWOT.js → normalize-audio-6Z2WN56Q.js} +15 -14
  192. package/dist/{open-BC5METIY.js → open-5NCEN6RC.js} +15 -14
  193. package/dist/{parakeetRunner-UXVY7PV2.js → parakeetRunner-DH3XKR3C.js} +19 -17
  194. package/dist/{pipeline-GJAJPWPB.js → pipeline-CGEGQAPH.js} +15 -14
  195. package/dist/{play-UCIRUHCU.js → play-K37BN736.js} +28 -27
  196. package/dist/{policies-J5BWAZHM.js → policies-U4PFXF5E.js} +4 -2
  197. package/dist/{preflight-GVRYYIH5.js → preflight-CG7H3D5B.js} +13 -12
  198. package/dist/{present-46QLZOK4.js → present-KQ53DOHA.js} +24 -23
  199. package/dist/{preview-HWXMP7WL.js → preview-V7CYHL6U.js} +26 -25
  200. package/dist/probe-JVW2MPY3.js +178 -0
  201. package/dist/{producer-2PBHUE5O.js → producer-UD32S7PX.js} +1 -1
  202. package/dist/{projectConfig-C4S3LBBX.js → projectConfig-WXCB5AZE.js} +10 -9
  203. package/dist/{publication-GESNVVMS.js → publication-KG4UDZRM.js} +6 -5
  204. package/dist/{publish-IBY26S3T.js → publish-MEQB543T.js} +22 -21
  205. package/dist/{refresh-I6ITGHKL.js → refresh-2LU4XDL7.js} +2 -2
  206. package/dist/{remove-background-3OBWOHVZ.js → remove-background-FSV5KQK3.js} +16 -15
  207. package/dist/{render-LSI5WXS7.js → render-O4S4SURS.js} +10 -9
  208. package/dist/{render-SR5RISLU.js → render-SQXZAGPQ.js} +160 -46
  209. package/dist/{render-3F6GQ5WW.js → render-SY4AXKXC.js} +40 -39
  210. package/dist/{render-batch-HV4W3PZM.js → render-batch-GTZQUB3H.js} +10 -9
  211. package/dist/renderSetupWorker.js +6 -6
  212. package/dist/{resolver-R5X3HAPE.js → resolver-BQZNCVJS.js} +8 -7
  213. package/dist/run-67OPNJGD.js +31 -0
  214. package/dist/{screenshotCapture-U3IYWTDB.js → screenshotCapture-4THETOMD.js} +2 -1
  215. package/dist/{sherpa-2Q6U4ZFY.js → sherpa-KH3PJAUG.js} +18 -16
  216. package/dist/skills/hyperframes-cli/references/beats.md +1 -1
  217. package/dist/skills/media-use/SKILL.md +20 -21
  218. package/dist/skills/media-use/audio/scripts/lib/gemini-tts.mjs +13 -1
  219. package/dist/skills/media-use/audio/scripts/lib/gemini-tts.test.mjs +10 -0
  220. package/dist/skills/media-use/audio/scripts/lib/heygen.mjs +26 -1
  221. package/dist/skills/media-use/audio/scripts/lib/heygen.test.mjs +33 -0
  222. package/dist/skills/media-use/references/heygen.md +58 -0
  223. package/dist/skills/media-use/references/operations.md +9 -6
  224. package/dist/skills/media-use/references/setup-providers.md +11 -12
  225. package/dist/skills/media-use/scripts/lib/index-gen.d.mts +1 -0
  226. package/dist/skills/media-use/scripts/lib/manifest.d.mts +21 -0
  227. package/dist/{skills-FSGXQSHA.js → skills-FTZZJGAB.js} +5 -5
  228. package/dist/{skillsUpdateCheck-UW6643XX.js → skillsUpdateCheck-LZPD2CZI.js} +3 -3
  229. package/dist/{slideshow-SJGK4RQS.js → slideshow-ARJR22W4.js} +1 -1
  230. package/dist/{snapshot-HFPB34Y7.js → snapshot-4BORZ3ED.js} +60 -47
  231. package/dist/{src-VMTQQUUP.js → src-6ZOFAM3F.js} +21 -14
  232. package/dist/{src-ROWFWCEN.js → src-D7AO7PGH.js} +12 -11
  233. package/dist/{staticProjectServer-4TGZJIWN.js → staticProjectServer-Q23A6XU2.js} +25 -24
  234. package/dist/{status-4AAPTTRW.js → status-VIJRZ4ZK.js} +34 -9
  235. package/dist/studio/assets/hyperframes-player-D0W1SNqK.js +478 -0
  236. package/dist/studio/assets/{index-BDE7dwov.js → index-DD9KJoEr.js} +119 -119
  237. package/dist/studio/assets/{index-D0jGq2dS.js → index-mbwAH5iR.js} +1 -1
  238. package/dist/studio/index.html +1 -1
  239. package/dist/{studio-api-TSHXVZ6R.js → studio-api-XVVJZ7YT.js} +24 -19
  240. package/dist/{studioServer-74ZBLNP2.js → studioServer-6HG3AMTW.js} +77 -114
  241. package/dist/sync-Q5SRIL7V.js +115 -0
  242. package/dist/{telemetry-3NDLZOPR.js → telemetry-VXPSJ3X3.js} +3 -3
  243. package/dist/templates/blank/index.html +1 -1
  244. package/dist/templates/from-file/index.html +1 -1
  245. package/dist/{timeline-5IFZJU7M.js → timeline-6477OWFA.js} +31 -26
  246. package/dist/{tokens-UFNPQVLS.js → tokens-ZUUNEDKT.js} +2 -2
  247. package/dist/{transcribe-7KQAUHEN.js → transcribe-HA4UGLKO.js} +17 -15
  248. package/dist/{transcribe-NAXKBIPW.js → transcribe-ITVANIDK.js} +41 -23
  249. package/dist/{tts-BVTJEP72.js → tts-KMZPHG3K.js} +1 -1
  250. package/dist/{updateCheck-KDSFL3XX.js → updateCheck-SVADAQ43.js} +2 -2
  251. package/dist/{upgrade-EXX4C35N.js → upgrade-WKW4FDNF.js} +2 -2
  252. package/dist/{urlDownloader-4UFCIAPH.js → urlDownloader-VWHCESDD.js} +11 -10
  253. package/dist/{validate-QYOHY3N6.js → validate-7VG2RLP2.js} +31 -30
  254. package/dist/{video-HRL3V2R5.js → video-LM3FYHGG.js} +13 -12
  255. package/dist/warmCheck.js +47 -45
  256. package/package.json +1 -1
  257. package/dist/chunk-Q3PPGPEA.js +0 -5061
  258. package/dist/studio/assets/hyperframes-player-B_wvwarc.js +0 -478
  259. package/dist/{chunk-NOH32H42.js → chunk-HBAUU3IK.js} +124 -124
  260. package/dist/{chunk-NHA4NRBE.js → chunk-T5ELONXY.js} +0 -0
  261. package/dist/{destroy-BQ5R7LUF.js → destroy-6NWJMQX2.js} +4 -4
  262. package/dist/{synthesize-4JC74JW5.js → synthesize-DIT2SR3D.js} +5 -5
@@ -50,7 +50,6 @@ import {
50
50
  readDeclaredDefaults,
51
51
  replaceSelectorAttributeTokens,
52
52
  replaceSelectorIdTokens,
53
- rewriteSrcsetUrls,
54
53
  scopeCssToComposition,
55
54
  scopedModulePrelude,
56
55
  shouldClampResolvedMediaDuration,
@@ -59,7 +58,7 @@ import {
59
58
  warnUnknownEnumValues,
60
59
  wrapInlineScriptWithErrorBoundary,
61
60
  wrapScopedCompositionScript
62
- } from "./chunk-Q3PPGPEA.js";
61
+ } from "./chunk-UQECNXFA.js";
63
62
  import {
64
63
  cssVariableName
65
64
  } from "./chunk-VC76R6W2.js";
@@ -70,7 +69,7 @@ import {
70
69
  import {
71
70
  collectExternalStyles,
72
71
  lintHyperframeHtml
73
- } from "./chunk-LYZB5CJN.js";
72
+ } from "./chunk-HT3D5AKG.js";
74
73
  import {
75
74
  CSS_URL_RE,
76
75
  checkSubCompositionUsability,
@@ -84,8 +83,9 @@ import {
84
83
  rewriteAssetPaths,
85
84
  rewriteCssAssetUrls,
86
85
  rewriteInlineStyleAssetUrls,
86
+ rewriteSrcsetUrls,
87
87
  splitUrlSuffix
88
- } from "./chunk-KSC4O2RY.js";
88
+ } from "./chunk-C2KEGBR3.js";
89
89
  import {
90
90
  parseHTML
91
91
  } from "./chunk-GWTIFRF5.js";
@@ -1136,7 +1136,7 @@ ${AUTHORED_SOURCE_END}`);
1136
1136
  }
1137
1137
  scriptEl.remove();
1138
1138
  }
1139
- const assetEls = innerRoot ? innerRoot.querySelectorAll("[src], [href]") : contentDoc.querySelectorAll("[src], [href]");
1139
+ const assetEls = innerRoot ? innerRoot.querySelectorAll("[src], [href], [srcset]") : contentDoc.querySelectorAll("[src], [href], [srcset]");
1140
1140
  rewriteAssetPaths(assetEls, src, (el, attr) => el.getAttribute(attr), (el, attr, val) => {
1141
1141
  el.setAttribute(attr, val);
1142
1142
  }, assetExists);
@@ -15,16 +15,16 @@ import {
15
15
  findFFmpeg,
16
16
  findFFprobe,
17
17
  getFFmpegInstallHint
18
- } from "./chunk-QYUXDFJY.js";
18
+ } from "./chunk-WWOHLNFO.js";
19
19
  import {
20
20
  registerBrowserSessionCleanup
21
- } from "./chunk-JGZUG5V4.js";
21
+ } from "./chunk-XZEHFUQF.js";
22
22
  import {
23
23
  DEFAULT_VP9_CPU_USED,
24
24
  SDR_RGB_TO_BT709_FILTER,
25
25
  SDR_RGB_TO_TAGGED_BT709_FILTER,
26
26
  renderProvenanceArgs
27
- } from "./chunk-M2F6VGCP.js";
27
+ } from "./chunk-4XQQQ4KN.js";
28
28
  import {
29
29
  runCancellableProcess
30
30
  } from "./chunk-X6JUUQCM.js";
@@ -38,6 +38,28 @@ import { randomUUID } from "crypto";
38
38
  import { renameSync, rmSync as rmSync2 } from "fs";
39
39
  import { basename as basename2, dirname, extname, join as join3 } from "path";
40
40
 
41
+ // src/background-removal/frameReader.ts
42
+ async function* readFrames(stream, frameBytes) {
43
+ let frame;
44
+ let filled = 0;
45
+ for await (const chunk of stream) {
46
+ let at = 0;
47
+ while (at < chunk.length) {
48
+ frame ??= Buffer.allocUnsafe(frameBytes);
49
+ const take = Math.min(frameBytes - filled, chunk.length - at);
50
+ chunk.copy(frame, filled, at, at + take);
51
+ filled += take;
52
+ at += take;
53
+ if (filled === frameBytes) {
54
+ const whole = frame;
55
+ frame = void 0;
56
+ filled = 0;
57
+ yield whole;
58
+ }
59
+ }
60
+ }
61
+ }
62
+
41
63
  // src/background-removal/coremlTemp.ts
42
64
  import { mkdirSync, readdirSync, readFileSync, rmSync, writeFileSync } from "fs";
43
65
  import { homedir, tmpdir } from "os";
@@ -391,7 +413,7 @@ async function decoderTransposesDimensions(inputPath) {
391
413
  }
392
414
  async function probeMedia(inputPath) {
393
415
  const isImage = inferInputKind(inputPath) === "image";
394
- const engine = await import("./src-ROWFWCEN.js");
416
+ const engine = await import("./src-D7AO7PGH.js");
395
417
  const meta = await engine.extractMediaMetadata(inputPath);
396
418
  if (isImage) {
397
419
  return { width: meta.width, height: meta.height, fps: 0, frameCount: 1 };
@@ -476,16 +498,6 @@ function buildEncoderArgs(format, width, height, fps, outputPath, quality = DEFA
476
498
  }
477
499
  return [...base, "-frames:v", "1", "-pix_fmt", "rgba", "-update", "1", outputPath];
478
500
  }
479
- async function* readFrames(stream, frameBytes) {
480
- let buffered = Buffer.alloc(0);
481
- for await (const chunk of stream) {
482
- buffered = buffered.length === 0 ? chunk : Buffer.concat([buffered, chunk]);
483
- while (buffered.length >= frameBytes) {
484
- yield Buffer.from(buffered.subarray(0, frameBytes));
485
- buffered = buffered.subarray(frameBytes);
486
- }
487
- }
488
- }
489
501
  function resolveRenderTargets(inputPath, outputPath, backgroundOutputPath) {
490
502
  const format = inferOutputFormat(outputPath);
491
503
  const inputKind = inferInputKind(inputPath);
@@ -19,11 +19,7 @@ import {
19
19
  splitElementInHtml,
20
20
  unwrapElementsFromHtml,
21
21
  wrapElementsInHtml
22
- } from "./chunk-6YW3FEHC.js";
23
- import {
24
- MEDIA_LINK_ATTR,
25
- relinkSplitHalves
26
- } from "./chunk-VZBJ5BQF.js";
22
+ } from "./chunk-C466I3DT.js";
27
23
  import {
28
24
  DEFAULT_TARGET_LUFS,
29
25
  absoluteLoudnessPlan,
@@ -32,22 +28,11 @@ import {
32
28
  requestedProjectPath,
33
29
  requiredFfmpeg,
34
30
  resolveLocalAudioPath
35
- } from "./chunk-ROVRC3CG.js";
31
+ } from "./chunk-KCDWRMTC.js";
36
32
  import {
37
- HistoryBusyError,
38
- MAX_WINDOW_IDLE_MS,
39
- STUDIO_SIGNATURE_MANIFEST_PATHS,
40
- UNDO_MODES,
41
- clearFileWriteReceipt,
42
- createProjectSignature,
43
- createWriteToken,
44
- fileContentVersion,
45
- recordFileWriteReceipt,
46
- resolveProjectAndSignature,
47
- resolveProjectSignature,
48
- serveWhileOpen,
49
- settledFileTag
50
- } from "./chunk-24F7TOW2.js";
33
+ MEDIA_LINK_ATTR,
34
+ relinkSplitHalves
35
+ } from "./chunk-AW3XJY4S.js";
51
36
  import {
52
37
  PROXY_PARAMS_VERSION,
53
38
  PROXY_PENDING_RETRY_AFTER_SECONDS,
@@ -70,11 +55,26 @@ import {
70
55
  scanProjectMedia,
71
56
  shouldPrewarmProxy,
72
57
  waitForProxy
73
- } from "./chunk-P6FGS4U6.js";
58
+ } from "./chunk-UFYWGUUV.js";
74
59
  import {
75
60
  probeAudioTrack,
76
61
  probeMediaMetadata
77
- } from "./chunk-XDTCPMR3.js";
62
+ } from "./chunk-UQVAAEPQ.js";
63
+ import {
64
+ HistoryBusyError,
65
+ MAX_WINDOW_IDLE_MS,
66
+ STUDIO_SIGNATURE_MANIFEST_PATHS,
67
+ UNDO_MODES,
68
+ clearFileWriteReceipt,
69
+ createProjectSignature,
70
+ createWriteToken,
71
+ fileContentVersion,
72
+ recordFileWriteReceipt,
73
+ resolveProjectAndSignature,
74
+ resolveProjectSignature,
75
+ serveWhileOpen,
76
+ settledFileTag
77
+ } from "./chunk-QU5OYMTB.js";
78
78
  import {
79
79
  STUDIO_MOTION_PATH,
80
80
  createStudioMotionRenderBodyScript,
@@ -115,9 +115,8 @@ import {
115
115
  ensureHfIds,
116
116
  stampHfIdsInPlace,
117
117
  stripSdrPngColourTags
118
- } from "./chunk-4ZM727AO.js";
118
+ } from "./chunk-FKBWONRY.js";
119
119
  import {
120
- GSAP_BASE_URL_META,
121
120
  PREVIEW_PROXY_BOX_PARAM,
122
121
  PREVIEW_PROXY_LIGHT_PARAM,
123
122
  PREVIEW_PROXY_PRIORITY_HEADER,
@@ -126,13 +125,16 @@ import {
126
125
  formatPreviewProxyBox,
127
126
  formatRenderOutputTimestamp,
128
127
  fpsToNumber,
128
+ parseFps,
129
+ parsePreviewProxyBox
130
+ } from "./chunk-OWFSGDQS.js";
131
+ import {
132
+ GSAP_BASE_URL_META,
129
133
  gsapCdnDist,
130
134
  motionPathPluginUrl,
131
135
  normalizeGsapBaseUrl,
132
- normalizeGsapLocalRoot,
133
- parseFps,
134
- parsePreviewProxyBox
135
- } from "./chunk-MXVH6UW6.js";
136
+ normalizeGsapLocalRoot
137
+ } from "./chunk-MEJH7VEA.js";
136
138
  import {
137
139
  AFTER_FONTS_SCRIPT_TYPE,
138
140
  RUNTIME_BOOTSTRAP_ATTR,
@@ -147,7 +149,7 @@ import {
147
149
  resolveRateSpec,
148
150
  sourceTimeAt,
149
151
  stripEmbeddedRuntimeScripts
150
- } from "./chunk-Q3PPGPEA.js";
152
+ } from "./chunk-UQECNXFA.js";
151
153
  import {
152
154
  ProjectRootMissingError,
153
155
  folderGone,
@@ -159,11 +161,11 @@ import {
159
161
  import {
160
162
  FFPROBE_PATH_ENV,
161
163
  findFfBinary
162
- } from "./chunk-BIROA7JM.js";
164
+ } from "./chunk-HYRPH6LL.js";
163
165
  import {
164
166
  isWithinProjectRoot,
165
167
  readProjectFile
166
- } from "./chunk-PBNWRWKA.js";
168
+ } from "./chunk-AKMY4QVI.js";
167
169
  import {
168
170
  decodeCssEscapes,
169
171
  decodeWellFormedEscapes,
@@ -174,7 +176,7 @@ import {
174
176
  rewriteCssAssetUrls,
175
177
  rewriteInlineStyleAssetUrls,
176
178
  sameInstant
177
- } from "./chunk-KSC4O2RY.js";
179
+ } from "./chunk-C2KEGBR3.js";
178
180
  import {
179
181
  HTML_ATTRIBUTE_ENTITIES,
180
182
  MagicString,
@@ -182,7 +184,7 @@ import {
182
184
  decodeAuthoredAttribute,
183
185
  scanHtmlOpeningTags,
184
186
  unrollComputedTimeline
185
- } from "./chunk-NHA4NRBE.js";
187
+ } from "./chunk-T5ELONXY.js";
186
188
  import {
187
189
  parseHTML
188
190
  } from "./chunk-GWTIFRF5.js";
@@ -449,6 +451,7 @@ import { tmpdir } from "os";
449
451
  import { basename, join as join4 } from "path";
450
452
  import { readdirSync, readFileSync as readFileSync32, unlinkSync, writeFileSync as writeFileSync3 } from "fs";
451
453
  import { Buffer as Buffer2 } from "buffer";
454
+ import { createHash as createHash22 } from "crypto";
452
455
  import { join as join5, relative as relative2 } from "path";
453
456
  import { readFileSync as readFileSync4, statSync as statSync2 } from "fs";
454
457
 
@@ -3662,7 +3665,7 @@ function unrollDynamicAnimations(script, animationId, elements) {
3662
3665
  import { createReadStream, existsSync as existsSync5, readFileSync as readFileSync6, statSync as statSync4 } from "fs";
3663
3666
  import { Readable } from "stream";
3664
3667
  import { join as join8, resolve as resolve4 } from "path";
3665
- import { createHash as createHash22 } from "crypto";
3668
+ import { createHash as createHash3 } from "crypto";
3666
3669
  import { readlinkSync as readlinkSync2 } from "fs";
3667
3670
  import { dirname as dirname4, join as join7, parse as parse2, relative as relative3, resolve as resolve32 } from "path";
3668
3671
  import { readFileSync as readFileSync7 } from "fs";
@@ -3672,7 +3675,7 @@ import { existsSync as existsSync6, lstatSync as lstatSync3, readFileSync as rea
3672
3675
  import { dirname as dirname5, join as join10 } from "path";
3673
3676
  import { HTTPException } from "hono/http-exception";
3674
3677
  import { open, stat } from "fs/promises";
3675
- import { createHash as createHash3 } from "crypto";
3678
+ import { createHash as createHash4 } from "crypto";
3676
3679
  import {
3677
3680
  closeSync as closeSync22,
3678
3681
  fstatSync as fstatSync22,
@@ -3686,13 +3689,13 @@ import {
3686
3689
  writeFileSync as writeFileSync4
3687
3690
  } from "fs";
3688
3691
  import { join as join11 } from "path";
3689
- import { createHash as createHash4, randomUUID as randomUUID2 } from "crypto";
3692
+ import { createHash as createHash5, randomUUID as randomUUID2 } from "crypto";
3690
3693
  import { existsSync as existsSync7, readFileSync as readFileSync10, statSync as statSync7 } from "fs";
3691
3694
  import { join as join12, resolve as resolve5 } from "path";
3692
3695
  import { execFile } from "child_process";
3693
3696
  import { readFileSync as readFileSync11, rmSync as rmSync5, statSync as statSync8 } from "fs";
3694
3697
  import { basename as basename2, dirname as dirname6, join as join13, relative as relative4, sep as sep3 } from "path";
3695
- import { createHash as createHash5, randomBytes } from "crypto";
3698
+ import { createHash as createHash6, randomBytes } from "crypto";
3696
3699
  import { existsSync as existsSync8 } from "fs";
3697
3700
  import { existsSync as existsSync9, readFileSync as readFileSync12, statSync as statSync9 } from "fs";
3698
3701
  import { join as join14, resolve as resolve6 } from "path";
@@ -3704,7 +3707,7 @@ import { basename as basename3, dirname as dirname7, extname, join as join15, po
3704
3707
  import { existsSync as existsSync11, readFileSync as readFileSync13 } from "fs";
3705
3708
  import { homedir } from "os";
3706
3709
  import { join as join16 } from "path";
3707
- import { createHash as createHash6 } from "crypto";
3710
+ import { createHash as createHash7 } from "crypto";
3708
3711
  import { readFileSync as readFileSync14, readdirSync as readdirSync5, rmSync as rmSync6 } from "fs";
3709
3712
  import { join as join17 } from "path";
3710
3713
  async function filterCompositionFiles(projectDir, files) {
@@ -3861,7 +3864,7 @@ function withRootPathsRelative(html, base) {
3861
3864
  function rewriteRelativePaths(root, compPath, projectDir) {
3862
3865
  const assetExists = (path) => existsSync(join22(projectDir, path));
3863
3866
  rewriteAssetPaths(
3864
- root.querySelectorAll("[src], [href]"),
3867
+ root.querySelectorAll("[src], [href], [srcset]"),
3865
3868
  compPath,
3866
3869
  (el, attr) => el.getAttribute(attr),
3867
3870
  (el, attr, value) => el.setAttribute(attr, value),
@@ -4491,9 +4494,6 @@ function validateUploadedMediaBuffer(fileName, buffer, runner = defaultRunner) {
4491
4494
  }
4492
4495
  }
4493
4496
  var DEFAULT_KEEP_PER_FILE = 10;
4494
- function backupKeyForPath(path) {
4495
- return Buffer2.from(path, "utf-8").toString("base64url");
4496
- }
4497
4497
  function timestampPrefix() {
4498
4498
  return (/* @__PURE__ */ new Date()).toISOString().replace(/[:.]/g, "-");
4499
4499
  }
@@ -4510,10 +4510,11 @@ function snapshotBeforeWrite(projectDir, absPath, options = {}) {
4510
4510
  const relativePath = relative2(projectDir, absPath);
4511
4511
  const backupDir = join5(projectDir, ".hyperframes", "backup");
4512
4512
  mkdirWithinProject(projectDir, backupDir);
4513
- const backupKey = backupKeyForPath(relativePath);
4513
+ const pathKey2 = Buffer2.from(relativePath, "utf-8").toString("base64url");
4514
+ const backupKey = pathKey2.length <= 200 ? pathKey2 : `sha256~${createHash22("sha256").update(relativePath).digest("hex")}`;
4514
4515
  const backupPath = nextBackupPath(backupDir, backupKey);
4515
4516
  writeFileSync3(backupPath, content);
4516
- pruneBackups(backupDir, backupKey, options.keepPerFile ?? DEFAULT_KEEP_PER_FILE);
4517
+ pruneBackups(backupDir, [pathKey2, backupKey], options.keepPerFile ?? DEFAULT_KEEP_PER_FILE);
4517
4518
  return { backupPath };
4518
4519
  } catch (error) {
4519
4520
  if (isProjectRootMissing(error)) throw error;
@@ -4540,11 +4541,10 @@ function nextBackupPath(backupDir, backupKey) {
4540
4541
  counter += 1;
4541
4542
  }
4542
4543
  }
4543
- function pruneBackups(backupDir, backupKey, keepPerFile) {
4544
+ function pruneBackups(backupDir, backupKeys, keepPerFile) {
4544
4545
  const keep = Math.max(1, Math.floor(keepPerFile));
4545
- const suffix = `-${backupKey}`;
4546
- const numberedSuffix = new RegExp(`-${backupKey}-\\d+$`);
4547
- const matches = readdirSync(backupDir).filter((name) => name.endsWith(suffix) || numberedSuffix.test(name)).map((name) => join5(backupDir, name)).sort((a, b) => {
4546
+ const suffix = new RegExp(`-(?:${backupKeys.join("|")})(?:-\\d+)?$`);
4547
+ const matches = readdirSync(backupDir).filter((name) => suffix.test(name)).map((name) => join5(backupDir, name)).sort((a, b) => {
4548
4548
  return b.localeCompare(a);
4549
4549
  });
4550
4550
  for (const file of matches.slice(keep)) {
@@ -5592,7 +5592,7 @@ async function prepareGsapMutationScript(c, res, firstMutation) {
5592
5592
  let block = extractGsapScriptBlock(html);
5593
5593
  if (!block && (firstMutation.type === "add" || firstMutation.type === "add-with-keyframes")) {
5594
5594
  const compId = html.match(/data-composition-id="([^"]+)"/)?.[1] ?? "main";
5595
- const { GSAP_CDN } = await import("./dist-B6C3DU6I.js");
5595
+ const { GSAP_CDN } = await import("./dist-XW7FATO6.js");
5596
5596
  const bootstrap = [
5597
5597
  `<script src="${GSAP_CDN}"></script>`,
5598
5598
  "<script>",
@@ -7669,7 +7669,7 @@ function parsePreviewVariablesParam(raw) {
7669
7669
  }
7670
7670
  function variablesEtagSalt(raw) {
7671
7671
  if (!raw) return "";
7672
- return `:vars:${createHash22("sha1").update(raw).digest("hex").slice(0, 12)}`;
7672
+ return `:vars:${createHash3("sha1").update(raw).digest("hex").slice(0, 12)}`;
7673
7673
  }
7674
7674
  function previewVariablesFromRequest(rawVariables) {
7675
7675
  const parse22 = parsePreviewVariablesParam(rawVariables);
@@ -7766,7 +7766,7 @@ function resolvePreviewGsapBaseUrl(adapter) {
7766
7766
  }
7767
7767
  function registerPreviewRoutes(api, adapter) {
7768
7768
  const gsapBaseUrl = resolvePreviewGsapBaseUrl(adapter);
7769
- const gsapEtagSalt = `:gsap:${createHash22("sha1").update(gsapBaseUrl).digest("hex").slice(0, 12)}`;
7769
+ const gsapEtagSalt = `:gsap:${createHash3("sha1").update(gsapBaseUrl).digest("hex").slice(0, 12)}`;
7770
7770
  const previewCacheHeaders = (etag) => ({
7771
7771
  "Cache-Control": "private, no-cache",
7772
7772
  ETag: etag
@@ -7901,7 +7901,7 @@ ${etag}`;
7901
7901
  if (!compFile || !existsSync5(compFile) || !statSync4(compFile).isFile()) {
7902
7902
  return c.text("not found", 404);
7903
7903
  }
7904
- const compPathHash = createHash22("sha1").update(compPath).digest("hex");
7904
+ const compPathHash = createHash3("sha1").update(compPath).digest("hex");
7905
7905
  const capture = c.req.query(PREVIEW_CAPTURE_PARAM) !== void 0;
7906
7906
  const etag = `"comp:v2:${compPathHash}:${signature}${gsapEtagSalt}${variablesEtagSalt(vars.raw)}${capture ? ":capture" : ""}"`;
7907
7907
  const ifNoneMatch = c.req.header("If-None-Match");
@@ -8564,7 +8564,7 @@ function registerImageThumbnailRoutes(api, adapter) {
8564
8564
  api.get("/projects/:id/image-thumbnail/*", async (c) => {
8565
8565
  try {
8566
8566
  const { path, info } = await resolveSource(adapter, c.req.param("id"), c.req.url);
8567
- const key = createHash3("sha256").update(JSON.stringify([path, info.dev, info.ino, info.size, info.mtimeMs, info.ctimeMs])).digest("hex");
8567
+ const key = createHash4("sha256").update(JSON.stringify([path, info.dev, info.ino, info.size, info.mtimeMs, info.ctimeMs])).digest("hex");
8568
8568
  const etag = `"${key}"`;
8569
8569
  c.header("ETag", etag);
8570
8570
  c.header("Cache-Control", "private, no-cache");
@@ -8662,7 +8662,7 @@ function readFileOnce(file) {
8662
8662
  function manifestKey(file) {
8663
8663
  const manifest = readFileOnce(file);
8664
8664
  if (typeof manifest === "string") return { key: "", mtimeMs: -Infinity };
8665
- const hash = createHash4("sha1").update(manifest.data).digest("hex").slice(0, 16);
8665
+ const hash = createHash5("sha1").update(manifest.data).digest("hex").slice(0, 16);
8666
8666
  return { key: `_${hash}`, mtimeMs: Math.round(manifest.mtimeMs) };
8667
8667
  }
8668
8668
  function registerThumbnailRoutes(api, adapter) {
@@ -8699,7 +8699,7 @@ function registerThumbnailRoutes(api, adapter) {
8699
8699
  let sourceKey = "";
8700
8700
  if (source !== "missing") {
8701
8701
  const html = source.data.toString("utf-8");
8702
- sourceKey = `_${createHash4("sha1").update(html).digest("hex").slice(0, 16)}`;
8702
+ sourceKey = `_${createHash5("sha1").update(html).digest("hex").slice(0, 16)}`;
8703
8703
  sourceMtime = Math.round(source.mtimeMs);
8704
8704
  if (!vpWidth) {
8705
8705
  const wMatch = html.match(/data-width=["'](\d+)["']/);
@@ -8715,9 +8715,9 @@ function registerThumbnailRoutes(api, adapter) {
8715
8715
  const previewPath = compPath === "index.html" ? `${projectUrl}/preview` : `${projectUrl}/preview/comp/${compPath.split("/").map(encodeURIComponent).join("/")}`;
8716
8716
  const previewUrl = `${previewPath}?${PREVIEW_CAPTURE_PARAM}=1`;
8717
8717
  const cacheDir = join11(project.dir, ".thumbnails");
8718
- const selectorKey = selector ? `_${createHash4("sha1").update(selector).digest("hex").slice(0, 16)}_${selectorIndex ?? 0}` : "";
8718
+ const selectorKey = selector ? `_${createHash5("sha1").update(selector).digest("hex").slice(0, 16)}_${selectorIndex ?? 0}` : "";
8719
8719
  const urlVersionKey = urlVersion ? `_${urlVersion.replace(/[^a-zA-Z0-9_-]+/g, "_").slice(0, 32)}` : "";
8720
- const inputSignatureKey = `_${createHash4("sha1").update(inputSignature).digest("hex").slice(0, 16)}`;
8720
+ const inputSignatureKey = `_${createHash5("sha1").update(inputSignature).digest("hex").slice(0, 16)}`;
8721
8721
  const outputScale = outputMode === "source" ? 1 : Math.min(1, THUMBNAIL_MAX_OUTPUT_WIDTH / compW, THUMBNAIL_MAX_OUTPUT_HEIGHT / compH);
8722
8722
  const outputWidth = Math.max(1, Math.round(compW * outputScale));
8723
8723
  const outputHeight = Math.max(1, Math.round(compH * outputScale));
@@ -8860,7 +8860,7 @@ function freezeExtractArgs(src, mediaTime, output) {
8860
8860
  var randomStillToken = () => randomBytes(4).toString("hex");
8861
8861
  function freezeStillFileName(clipId, playhead, token = randomStillToken()) {
8862
8862
  const stem = clipId.replace(/[^A-Za-z0-9_-]/g, "_").slice(0, 48) || "clip";
8863
- const idHash = createHash5("sha256").update(clipId).digest("hex").slice(0, 10);
8863
+ const idHash = createHash6("sha256").update(clipId).digest("hex").slice(0, 10);
8864
8864
  return `${stem}-${idHash}-${Math.round(playhead * 1e3)}-${token}.png`;
8865
8865
  }
8866
8866
  function readFreezeSource(html, target, playhead) {
@@ -10112,7 +10112,7 @@ function numericAttribute(element, name) {
10112
10112
  }
10113
10113
  function createPreviewDocumentStore(projectDir, salt) {
10114
10114
  const dir = join17(projectDir, ".hyperframes", "preview");
10115
- const fileFor = (key) => join17(dir, `${createHash6("sha256").update(`${salt}
10115
+ const fileFor = (key) => join17(dir, `${createHash7("sha256").update(`${salt}
10116
10116
  ${key}`).digest("hex").slice(0, 32)}.html`);
10117
10117
  return {
10118
10118
  read(key) {
@@ -9,6 +9,73 @@ import {
9
9
  isNavigationTimeoutError,
10
10
  withRemainingBudget
11
11
  } from "./chunk-EHSBBBR2.js";
12
+ import {
13
+ GSAP_CDN_VERSION,
14
+ gsapCdnDist
15
+ } from "./chunk-MEJH7VEA.js";
16
+
17
+ // src/server/readBundleFile.ts
18
+ import { openSync, fstatSync, closeSync, statSync, readFileSync, constants } from "fs";
19
+ function readBundleFile(filePath) {
20
+ let fd;
21
+ try {
22
+ fd = openSync(filePath, constants.O_RDONLY | constants.O_NONBLOCK);
23
+ } catch (error) {
24
+ if (error instanceof Error && "code" in error && (error.code === "ENOENT" || error.code === "ENOTDIR"))
25
+ return null;
26
+ if (!statSync(filePath, { throwIfNoEntry: false })?.isFile()) return null;
27
+ throw error;
28
+ }
29
+ try {
30
+ if (!fstatSync(fd).isFile()) return null;
31
+ return readFileSync(fd);
32
+ } finally {
33
+ closeSync(fd);
34
+ }
35
+ }
36
+
37
+ // src/server/gsapVendor.ts
38
+ import { existsSync } from "fs";
39
+ import { createRequire } from "module";
40
+ import { dirname, join, resolve } from "path";
41
+ var GSAP_VENDOR_FILES = /* @__PURE__ */ new Set([
42
+ "gsap.min.js",
43
+ "CustomEase.min.js",
44
+ "MotionPathPlugin.min.js"
45
+ ]);
46
+ function installedGsapDist() {
47
+ try {
48
+ const coreRequire = createRequire(resolve(__dirname, "..", "..", "..", "core", "package.json"));
49
+ return join(dirname(coreRequire.resolve("gsap/package.json")), "dist");
50
+ } catch {
51
+ return null;
52
+ }
53
+ }
54
+ function resolveGsapVendorDir() {
55
+ const vendored = join("vendor", "npm", `gsap@${GSAP_CDN_VERSION}`, "dist");
56
+ const candidates = [
57
+ resolve(__dirname, vendored),
58
+ // Running from source: the built CLI next door, then core's installed gsap.
59
+ resolve(__dirname, "..", "..", "dist", vendored),
60
+ installedGsapDist()
61
+ ];
62
+ for (const dir of candidates) {
63
+ if (!dir) continue;
64
+ if (!existsSync(join(dir, "gsap.min.js"))) continue;
65
+ const manifest = readBundleFile(join(dir, "..", "package.json"));
66
+ if (manifest && JSON.parse(manifest.toString("utf-8")).version !== GSAP_CDN_VERSION) continue;
67
+ return dir;
68
+ }
69
+ return null;
70
+ }
71
+ var CDN_DIST = gsapCdnDist();
72
+ function bundledGsapFor(url) {
73
+ if (!url.startsWith(CDN_DIST)) return null;
74
+ const file = url.slice(CDN_DIST.length);
75
+ const dir = GSAP_VENDOR_FILES.has(file) ? resolveGsapVendorDir() : null;
76
+ const body = dir ? readBundleFile(join(dir, file)) : null;
77
+ return body ? { body, contentType: "text/javascript; charset=utf-8" } : null;
78
+ }
12
79
 
13
80
  // src/capture/navigateForCapture.ts
14
81
  var NETWORK_IDLE_ATTEMPT_MS = 3e4;
@@ -83,8 +150,8 @@ async function waitForPageReady(page, options = {}) {
83
150
  if (isDegradableEvaluateTimeoutError(err)) throw err;
84
151
  return true;
85
152
  }),
86
- new Promise((resolve) => {
87
- timer = setTimeout(() => resolve(true), Math.max(1, remaining()));
153
+ new Promise((resolve2) => {
154
+ timer = setTimeout(() => resolve2(true), Math.max(1, remaining()));
88
155
  })
89
156
  ]).finally(() => {
90
157
  if (timer !== void 0) clearTimeout(timer);
@@ -92,7 +159,7 @@ async function waitForPageReady(page, options = {}) {
92
159
  if (loading !== true) break;
93
160
  waitedOutLoad = true;
94
161
  if (remaining() > 0) {
95
- await new Promise((resolve) => setTimeout(resolve, Math.min(500, remaining())));
162
+ await new Promise((resolve2) => setTimeout(resolve2, Math.min(500, remaining())));
96
163
  }
97
164
  }
98
165
  if (waitedOutLoad && remaining() > 0) await idle();
@@ -123,11 +190,29 @@ var SENT_OR_ANSWERED_WITHOUT_NETWORK = [
123
190
  "Network.requestWillBeSentExtraInfo",
124
191
  "Network.responseReceived"
125
192
  ];
193
+ async function serveBundledGsap(cdp) {
194
+ cdp.on("Fetch.requestPaused", ({ requestId, request }) => {
195
+ const bundled = bundledGsapFor(request.url);
196
+ void (bundled ? cdp.send("Fetch.fulfillRequest", {
197
+ requestId,
198
+ responseCode: 200,
199
+ responseHeaders: [
200
+ { name: "Content-Type", value: bundled.contentType },
201
+ { name: "Access-Control-Allow-Origin", value: "*" }
202
+ ],
203
+ body: bundled.body.toString("base64")
204
+ }) : cdp.send("Fetch.continueRequest", { requestId })).catch(() => void 0);
205
+ });
206
+ await cdp.send("Fetch.enable", {
207
+ patterns: [{ urlPattern: `${gsapCdnDist()}*`, requestStage: "Request" }]
208
+ });
209
+ }
126
210
  async function gotoWhenSent(page, url, timeoutMs, coldChromeFirstRequestTimeoutMs = PUPPETEER_LAUNCH_DEFAULT_TIMEOUT_MS) {
127
211
  const { TimeoutError } = await import("puppeteer-core");
128
212
  const cdp = await page.createCDPSession();
129
213
  try {
130
214
  await cdp.send("Network.enable");
215
+ await serveBundledGsap(cdp);
131
216
  const sent = documentRequestSent(cdp);
132
217
  const unfinished = unfinishedPageLoadRequests(cdp);
133
218
  const navigation = page.goto(url, { waitUntil: "domcontentloaded", timeout: 0 });
@@ -153,9 +238,9 @@ async function gotoWhenSent(page, url, timeoutMs, coldChromeFirstRequestTimeoutM
153
238
  function documentRequestSent(cdp) {
154
239
  const documents = /* @__PURE__ */ new Set();
155
240
  const sent = /* @__PURE__ */ new Set();
156
- return new Promise((resolve) => {
241
+ return new Promise((resolve2) => {
157
242
  const settle = (requestId) => {
158
- if (documents.has(requestId) && sent.has(requestId)) resolve();
243
+ if (documents.has(requestId) && sent.has(requestId)) resolve2();
159
244
  };
160
245
  cdp.on("Network.requestWillBeSent", ({ requestId, type }) => {
161
246
  if (type === "Document") documents.add(requestId);
@@ -208,6 +293,9 @@ function pageLoadTimeoutMessage(timeoutMs, pageUrl, waitingOn) {
208
293
  }
209
294
 
210
295
  export {
296
+ readBundleFile,
297
+ GSAP_VENDOR_FILES,
298
+ resolveGsapVendorDir,
211
299
  navigateForCapture,
212
300
  waitForPageReady,
213
301
  settleAcrossNavigation,