hyperframes 0.8.220 → 0.8.222

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 (214) hide show
  1. package/dist/{add-7BJGQPZT.js → add-6MPLIWVP.js} +19 -15
  2. package/dist/{agentPromptGenerator-NFN3AYLJ.js → agentPromptGenerator-X7SQPCXZ.js} +12 -11
  3. package/dist/{animatedGifPrep-HC45HF7H.js → animatedGifPrep-ESOJ4FQ7.js} +12 -11
  4. package/dist/api.js +23 -22
  5. package/dist/{asset-TSP3CMU4.js → asset-Y735VQV6.js} +2 -2
  6. package/dist/{assetCataloger-KIN2UKI7.js → assetCataloger-AOJAUEZW.js} +13 -12
  7. package/dist/{audio-NEJOZZXG.js → audio-VMMCGPOV.js} +22 -20
  8. package/dist/{auth-7EEBDTBK.js → auth-BD5NHYRA.js} +1 -1
  9. package/dist/{autoUpdate-67ZMQDED.js → autoUpdate-VTMNHOAJ.js} +2 -2
  10. package/dist/{backgroundChecks-YN424YG5.js → backgroundChecks-SUDYQZSW.js} +3 -3
  11. package/dist/backgroundChecksWorker.js +3 -3
  12. package/dist/{batchRender-I2GRQUPY.js → batchRender-4NR7RMT7.js} +11 -8
  13. package/dist/{beats-VVY6JZEU.js → beats-PKEHQHBY.js} +53 -21
  14. package/dist/{benchmark-BJJVW6RH.js → benchmark-K55DDFHG.js} +12 -11
  15. package/dist/{browser-IOP3IU24.js → browser-G2WFWJJ3.js} +3 -3
  16. package/dist/{bundleWithLocalizedFonts-TLEZEZXN.js → bundleWithLocalizedFonts-MNG2UVH3.js} +2 -2
  17. package/dist/{capture-4Z3KBJNP.js → capture-24PIC3TZ.js} +67 -25
  18. package/dist/{capture-HVIWNBQA.js → capture-U3EEAPI6.js} +3 -3
  19. package/dist/{captureCompositionFrame-J3OOHGC2.js → captureCompositionFrame-KL4V6ORD.js} +18 -17
  20. package/dist/{catalog-G65QCBXG.js → catalog-J3BU4TFW.js} +17 -15
  21. package/dist/{catch-up-VHTDAQYM.js → catch-up-LDGNMEGL.js} +4 -4
  22. package/dist/{check-W7TCUAXY.js → check-J6HG6EKE.js} +48 -46
  23. package/dist/{checkAudio-AV7R24FD.js → checkAudio-MAX7JUYG.js} +17 -16
  24. package/dist/{checkBrowser-QTMNRNPF.js → checkBrowser-3W74WJ26.js} +44 -38
  25. package/dist/{chunk-KGM6VQ6D.js → chunk-3RXZZIDQ.js} +5 -5
  26. package/dist/{chunk-6YIBMA6Y.js → chunk-42Q3VX34.js} +9 -9
  27. package/dist/{chunk-6MHKL2TB.js → chunk-4VEXJTUT.js} +3 -3
  28. package/dist/{chunk-NSKIGECI.js → chunk-52VXA3SC.js} +1 -1
  29. package/dist/{chunk-RIG7XBHW.js → chunk-537WSYHU.js} +1 -1
  30. package/dist/{chunk-A32ZEFZT.js → chunk-5GSEM63G.js} +12 -10
  31. package/dist/{chunk-SUQ77SEY.js → chunk-6CFBFWLF.js} +9 -2
  32. package/dist/{chunk-FGGZKCOT.js → chunk-6W3DY5BP.js} +2 -2
  33. package/dist/{chunk-RHEQ7RXZ.js → chunk-7D2LTSNV.js} +1 -1
  34. package/dist/{chunk-SW5XTDRD.js → chunk-7IH3RSSG.js} +82 -33
  35. package/dist/{chunk-YMKTEQIA.js → chunk-AIXH3V5A.js} +86 -51
  36. package/dist/{chunk-PBNWRWKA.js → chunk-AKMY4QVI.js} +2 -1
  37. package/dist/{chunk-NEVX7YHH.js → chunk-AN4USOFT.js} +5 -1
  38. package/dist/{chunk-KJ2ORDQZ.js → chunk-AOHG22HQ.js} +6 -5
  39. package/dist/{chunk-VZBJ5BQF.js → chunk-AW3XJY4S.js} +1 -1
  40. package/dist/{chunk-P3XF3ZZF.js → chunk-AXVTL7B6.js} +6 -6
  41. package/dist/{chunk-DWTFLQ3P.js → chunk-B2ZZYISD.js} +4 -2
  42. package/dist/{chunk-DA6GOIIA.js → chunk-BDZSH6P3.js} +6 -57
  43. package/dist/{chunk-RECS6EGQ.js → chunk-BPIY5LB3.js} +9 -8
  44. package/dist/{chunk-KSC4O2RY.js → chunk-C2KEGBR3.js} +53 -4
  45. package/dist/{chunk-PIKANFFV.js → chunk-CVY6OIKN.js} +4 -4
  46. package/dist/{chunk-XPV5K5MD.js → chunk-CZOC7WY7.js} +1 -1
  47. package/dist/{chunk-PCKWLYKA.js → chunk-D6LGD472.js} +4 -4
  48. package/dist/{chunk-NSJPSQZ3.js → chunk-DC26QLB7.js} +1 -1
  49. package/dist/{chunk-LZPNAI7P.js → chunk-DIXTEVWQ.js} +3 -3
  50. package/dist/{chunk-6CWSMSOC.js → chunk-DNTPNSH5.js} +3 -3
  51. package/dist/{chunk-OWV36OJP.js → chunk-DS372VSV.js} +2 -5
  52. package/dist/{chunk-O332YWQV.js → chunk-DSHFKKSZ.js} +3 -3
  53. package/dist/{chunk-UOIVSNPI.js → chunk-E5IIR67Q.js} +1 -1
  54. package/dist/{chunk-5RGVBSDS.js → chunk-EE7YWKDY.js} +3 -27
  55. package/dist/{chunk-XFMO3BEN.js → chunk-EGJ4UECR.js} +11 -5
  56. package/dist/{chunk-2MDFNL2E.js → chunk-EOUKB53E.js} +1 -1
  57. package/dist/{chunk-3422KMTD.js → chunk-EPQC3FGZ.js} +4 -0
  58. package/dist/{chunk-IZBJZBBF.js → chunk-F6QV5N3A.js} +2 -2
  59. package/dist/{chunk-EUZYVUUS.js → chunk-FMKI7ZLM.js} +2 -2
  60. package/dist/{chunk-DB6OJRZB.js → chunk-FT3CNACL.js} +5 -5
  61. package/dist/{chunk-5XOOBNU2.js → chunk-G2EY3MVW.js} +1 -1
  62. package/dist/{chunk-JIGD5ZXE.js → chunk-G675S644.js} +21 -22
  63. package/dist/{chunk-AUGHXWJC.js → chunk-GHEYGMKD.js} +2 -2
  64. package/dist/{chunk-TQ3W64VT.js → chunk-GODT7QDZ.js} +3 -3
  65. package/dist/{chunk-DBT7CRK4.js → chunk-GOWU3NCE.js} +1 -1
  66. package/dist/{chunk-SGTEKMJW.js → chunk-HOTXWVVP.js} +93 -5
  67. package/dist/{chunk-22U7OCYM.js → chunk-HQDHMAUI.js} +1 -1
  68. package/dist/{chunk-BIROA7JM.js → chunk-HYRPH6LL.js} +7 -6
  69. package/dist/{chunk-NYSB3CWY.js → chunk-IB7UYGXR.js} +10 -10
  70. package/dist/{chunk-DJWAL7AW.js → chunk-IGBOFU2Y.js} +3 -3
  71. package/dist/{chunk-NKNKRN7G.js → chunk-JQWITWVC.js} +2 -2
  72. package/dist/{chunk-ZS5PARPI.js → chunk-K5UCRKUK.js} +4 -6
  73. package/dist/{chunk-BASBBBNB.js → chunk-KEY2VA65.js} +1 -1
  74. package/dist/{chunk-RIYARQ2O.js → chunk-L37AZWB2.js} +2 -2
  75. package/dist/{chunk-OURH3TLX.js → chunk-L55LAERP.js} +1 -1
  76. package/dist/chunk-LL3VMDAC.js +5013 -0
  77. package/dist/chunk-MEJH7VEA.js +63 -0
  78. package/dist/{chunk-K7APBNPW.js → chunk-NUE44RN2.js} +1 -1
  79. package/dist/{chunk-VZVRF3JX.js → chunk-OAXWHPNS.js} +2 -2
  80. package/dist/{chunk-6A7DOGSP.js → chunk-OQLYKDL5.js} +1 -1
  81. package/dist/{chunk-VJGQLC2A.js → chunk-OROHGC7W.js} +8 -8
  82. package/dist/{chunk-6OXVMHTB.js → chunk-P5M3AXEP.js} +1 -1
  83. package/dist/{chunk-N4XNRHFM.js → chunk-QNW43LWB.js} +1 -1
  84. package/dist/{chunk-ARZGHKST.js → chunk-QOZPWIYV.js} +10 -10
  85. package/dist/{chunk-3F6EGZ6C.js → chunk-QYRMR45H.js} +2 -2
  86. package/dist/{chunk-AGFHQTZD.js → chunk-RIGSGNDQ.js} +54 -18
  87. package/dist/{chunk-CIUEQLWL.js → chunk-RRPO44PE.js} +5 -5
  88. package/dist/{chunk-YBNF5ZOC.js → chunk-SFS5BTQ3.js} +1 -1
  89. package/dist/{chunk-CMI2POHT.js → chunk-SKCS4SUZ.js} +4455 -4312
  90. package/dist/{chunk-J74ZUXVU.js → chunk-SWC3QIEH.js} +1 -1
  91. package/dist/{chunk-543U46OR.js → chunk-US4BCRYB.js} +5 -0
  92. package/dist/{chunk-D5TOH3QI.js → chunk-VJVVWYP6.js} +1 -1
  93. package/dist/{chunk-5SKC4G26.js → chunk-VMRQDPFL.js} +1 -1
  94. package/dist/{chunk-MHZB6QSC.js → chunk-VQMHDS2V.js} +123 -12
  95. package/dist/{chunk-IMVM6E65.js → chunk-WJYFJGYT.js} +3 -3
  96. package/dist/{chunk-MS2SDIPC.js → chunk-WWT6ETQA.js} +43 -43
  97. package/dist/chunk-WYKRGEDD.js +62 -0
  98. package/dist/{chunk-GLC5XHN5.js → chunk-XC3BGWCJ.js} +3 -44
  99. package/dist/{chunk-DEXGPHAZ.js → chunk-XHD7RKEZ.js} +2 -2
  100. package/dist/{chunk-RK3LW7NO.js → chunk-Y7IV5MAK.js} +2 -2
  101. package/dist/{chunk-2L645DAG.js → chunk-YEKJOA47.js} +1 -1
  102. package/dist/{chunk-RF5LOY22.js → chunk-YHL4CVTF.js} +14 -14
  103. package/dist/{chunk-FK5TW3IM.js → chunk-Z5VQBRU2.js} +1 -1
  104. package/dist/{chunk-24F7TOW2.js → chunk-ZAJQFY5Q.js} +126 -53
  105. package/dist/{chunk-X2YBRPCM.js → chunk-ZBNK6X5O.js} +5 -5
  106. package/dist/{chunk-NQP44XMF.js → chunk-ZLXWRYOO.js} +3 -3
  107. package/dist/{chunk-WQYLRTVT.js → chunk-ZPTNLDOB.js} +2 -2
  108. package/dist/{clean-AYZ2RAMN.js → clean-K6IM3LC4.js} +24 -23
  109. package/dist/cli.js +62 -60
  110. package/dist/{cloud-A53ZNOO6.js → cloud-OV7EA4BJ.js} +4 -4
  111. package/dist/{cloudrun-USB736UD.js → cloudrun-ZEMODIOP.js} +10 -9
  112. package/dist/commands/layout-audit.browser.js +19 -3
  113. package/dist/commands/motion-signature.browser.js +18 -9
  114. package/dist/{compare-42CWJXBR.js → compare-MJZ3D3HA.js} +37 -35
  115. package/dist/{compiler-SV2WYWTI.js → compiler-6KKETX77.js} +8 -8
  116. package/dist/{component-7JC7NQGM.js → component-EVXMYIP3.js} +3 -3
  117. package/dist/{compositions-6F6743GP.js → compositions-PZ7FQ7WN.js} +16 -15
  118. package/dist/{delete-7TRRZI5M.js → delete-DL3XA4QV.js} +2 -2
  119. package/dist/{deploy-6SSC2FBD.js → deploy-VEYP3IP5.js} +1 -1
  120. package/dist/{deterministicFonts-2ISM3LMW.js → deterministicFonts-LV2JMOJL.js} +2 -2
  121. package/dist/{dist-KP2GVAQU.js → dist-M77KFAYW.js} +7 -6
  122. package/dist/{dist-XXBCSQYF.js → dist-SHMQOKMF.js} +6 -6
  123. package/dist/docs/motion-blur.md +28 -0
  124. package/dist/{docs-6EM6FDNI.js → docs-VAF5NM5B.js} +4 -0
  125. package/dist/{doctor-XEG3GZAA.js → doctor-JM2WHH7Y.js} +16 -15
  126. package/dist/{dotEnv-BGFXSQOA.js → dotEnv-33RDHX7P.js} +1 -1
  127. package/dist/{events-I7F24HFX.js → events-GW5I5RCG.js} +2 -2
  128. package/dist/{events-33HQE43K.js → events-S7KVBRSL.js} +3 -3
  129. package/dist/{feedback-XDTUBZX3.js → feedback-7OR5FVTX.js} +11 -10
  130. package/dist/{ffmpeg-ABXU2TYH.js → ffmpeg-A7CSIX3U.js} +12 -11
  131. package/dist/{figma-4JKNWEKN.js → figma-444HKFX5.js} +3 -3
  132. package/dist/fontLocalizeCli.js +16 -15
  133. package/dist/{get-EX2INNLN.js → get-6UTF3225.js} +2 -2
  134. package/dist/{gpuPolicy-7TSXQHK4.js → gpuPolicy-ORPUS5Z2.js} +12 -11
  135. package/dist/{grade-compare-TLUTRM2K.js → grade-compare-UCTAYN3B.js} +38 -36
  136. package/dist/{heifImagePrep-UOBBQFA2.js → heifImagePrep-ED6V6RFN.js} +13 -12
  137. package/dist/{help-BB4FPW2K.js → help-HZR32XWP.js} +1 -1
  138. package/dist/{history-JNETCPLB.js → history-TQ56MZIA.js} +18 -9
  139. package/dist/hyperframe.manifest.json +1 -1
  140. package/dist/hyperframe.runtime.iife.js +69 -69
  141. package/dist/hyperframes-player.global.js +1 -1
  142. package/dist/hyperframes-slideshow.global.js +8 -8
  143. package/dist/{info-7LBANHQG.js → info-RPIIP7RN.js} +11 -10
  144. package/dist/{init-GZ36UP5K.js → init-ONAWKHFW.js} +34 -32
  145. package/dist/{inspect-OD54TEQN.js → inspect-A75PYOWJ.js} +38 -36
  146. package/dist/{installer-4KJ7T3KB.js → installer-ISMCCFBZ.js} +8 -7
  147. package/dist/{keyframes-KLBNYGYC.js → keyframes-2I75DP3O.js} +7 -7
  148. package/dist/{lambda-554LSIHM.js → lambda-4QIHGPGJ.js} +17 -16
  149. package/dist/{layout-EQAJKTIW.js → layout-GW7WE7RT.js} +38 -36
  150. package/dist/{lint-ZMSIAVMI.js → lint-OWP72OZQ.js} +12 -12
  151. package/dist/{lintProject-I4XPWIQZ.js → lintProject-XYQ5L7RQ.js} +6 -6
  152. package/dist/{list-KUZLCZUK.js → list-WVK7ZCPW.js} +2 -2
  153. package/dist/{localPage-MQJZAR7Z.js → localPage-IQWHN7BH.js} +12 -11
  154. package/dist/{login-644VKQTJ.js → login-Q5CNHYWU.js} +4 -4
  155. package/dist/{manager-3C33QHJB.js → manager-JCYVNEWH.js} +13 -12
  156. package/dist/{media-treatment-XYS2O3JD.js → media-treatment-M5IUP7H4.js} +21 -20
  157. package/dist/{models-KOTMJX4Z.js → models-CFXKDYZ3.js} +16 -15
  158. package/dist/{motionShot-YOSDJ26I.js → motionShot-CWUEI4ZM.js} +21 -20
  159. package/dist/{normalize-audio-FNT6Y4MC.js → normalize-audio-FASY33LR.js} +15 -14
  160. package/dist/{open-COIGEQCX.js → open-KOVVESYN.js} +16 -14
  161. package/dist/{parakeetRunner-BBXLGDZW.js → parakeetRunner-E4IP5SL4.js} +18 -17
  162. package/dist/{pipeline-23GAJEQO.js → pipeline-C6EZVV43.js} +15 -14
  163. package/dist/{play-GOCWJH7Z.js → play-MZJI6SMH.js} +28 -26
  164. package/dist/{preflight-7IWI3INL.js → preflight-K4SPUWXP.js} +13 -12
  165. package/dist/{present-VN2RAATE.js → present-7L7ZTG7F.js} +24 -23
  166. package/dist/{preview-MD7W5T56.js → preview-QGDVMR3X.js} +29 -26
  167. package/dist/{producer-IRENEI2Y.js → producer-EJPNNY3E.js} +1 -1
  168. package/dist/{projectConfig-3IXWY6VF.js → projectConfig-EEF6OPXO.js} +11 -9
  169. package/dist/{publication-MCDU4VIJ.js → publication-5KF44AKQ.js} +6 -5
  170. package/dist/{publish-5477WXAK.js → publish-SSKWZ5TE.js} +17 -15
  171. package/dist/{remove-background-XYO5ENFU.js → remove-background-PCL6I5SZ.js} +16 -15
  172. package/dist/{render-34GMNN2B.js → render-DH4UA7KW.js} +10 -9
  173. package/dist/{render-54SCVHMS.js → render-DRWQ6F37.js} +22 -21
  174. package/dist/{render-L66MXLV2.js → render-UPRWOGLS.js} +158 -43
  175. package/dist/{render-batch-DOCRB7KQ.js → render-batch-EBW5WHB5.js} +10 -9
  176. package/dist/renderSetupWorker.js +6 -6
  177. package/dist/{resolver-Q5XTMECS.js → resolver-ZSZXNRFP.js} +9 -7
  178. package/dist/{screenshotCapture-U3IYWTDB.js → screenshotCapture-4THETOMD.js} +2 -1
  179. package/dist/{sherpa-E7C2ZGKD.js → sherpa-IKVUCBOW.js} +17 -16
  180. package/dist/skills/hyperframes-cli/references/beats.md +1 -1
  181. package/dist/skills/media-use/audio/scripts/lib/gemini-tts.mjs +13 -1
  182. package/dist/skills/media-use/audio/scripts/lib/gemini-tts.test.mjs +10 -0
  183. package/dist/skills/media-use/scripts/lib/adopt.mjs +11 -10
  184. package/dist/skills/media-use/scripts/lib/adopt.test.mjs +22 -0
  185. package/dist/{skills-DDZCYTVS.js → skills-ZREHX3TU.js} +5 -5
  186. package/dist/{skillsUpdateCheck-4XX7YYZA.js → skillsUpdateCheck-PPJ5NGAL.js} +3 -3
  187. package/dist/{slideshow-SJGK4RQS.js → slideshow-ARJR22W4.js} +1 -1
  188. package/dist/{snapshot-PTLZ25S3.js → snapshot-KPFLZNEL.js} +87 -52
  189. package/dist/{src-RDWYM4KF.js → src-EPOGDJTT.js} +11 -10
  190. package/dist/{src-KT325UQS.js → src-QRV3466B.js} +21 -14
  191. package/dist/{staticProjectServer-JCGTNF4E.js → staticProjectServer-ERKLMZVM.js} +26 -24
  192. package/dist/studio/assets/{hyperframes-player-CC1Ue2mg.js → hyperframes-player-Dka6e1BG.js} +1 -1
  193. package/dist/studio/assets/{index-BgjuGqZk.js → index-C8VIUiGz.js} +117 -117
  194. package/dist/studio/assets/{index-hc5Ru1gB.js → index-CVPNbydK.js} +1 -1
  195. package/dist/studio/index.html +1 -1
  196. package/dist/{studio-api-GTN767PW.js → studio-api-7WFZIIPL.js} +21 -16
  197. package/dist/{studioSelectionClient-D6VMGTKQ.js → studioSelectionClient-FA6XPVIL.js} +1 -1
  198. package/dist/{studioServer-X6O4WB7E.js → studioServer-3XZTLI26.js} +79 -121
  199. package/dist/{telemetry-OY2PKIWO.js → telemetry-BMLI4TMC.js} +3 -3
  200. package/dist/templates/blank/index.html +1 -1
  201. package/dist/templates/from-file/index.html +1 -1
  202. package/dist/{timeline-IZZRAXKP.js → timeline-EDCDO2ZR.js} +28 -26
  203. package/dist/{tokens-JHIYKROF.js → tokens-2ZFLFO3K.js} +2 -2
  204. package/dist/{transcribe-2MPZHRG5.js → transcribe-3WMH62HH.js} +16 -15
  205. package/dist/{transcribe-WJ2DIE3W.js → transcribe-Y2LPBT7I.js} +22 -21
  206. package/dist/{updateCheck-6XMEFB74.js → updateCheck-5LFZGC3P.js} +2 -2
  207. package/dist/{upgrade-MSNQIWR7.js → upgrade-X7QVSEKP.js} +2 -2
  208. package/dist/{urlDownloader-CD6NVJE5.js → urlDownloader-TYD6ROKL.js} +11 -10
  209. package/dist/{validate-7L5LJFTK.js → validate-26KQ5VX7.js} +31 -30
  210. package/dist/{video-HFIDOIQI.js → video-BPKLZIJK.js} +13 -12
  211. package/dist/warmCheck.js +48 -46
  212. package/package.json +1 -1
  213. package/dist/chunk-2Q7XV4F6.js +0 -5061
  214. /package/dist/{chunk-NHA4NRBE.js → chunk-T5ELONXY.js} +0 -0
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-D3MUHMFG.js";
10
10
  import {
11
11
  findFfBinary
12
- } from "./chunk-BIROA7JM.js";
12
+ } from "./chunk-HYRPH6LL.js";
13
13
 
14
14
  // src/audio/analysis/decode.ts
15
15
  import { execFile } from "child_process";
@@ -224,6 +224,10 @@ async function killActiveServers(startPort = 3002) {
224
224
  }
225
225
  return { killed, unverified };
226
226
  }
227
+ function closeServer(server) {
228
+ if ("closeAllConnections" in server) server.closeAllConnections();
229
+ return new Promise((resolve3) => server.close(() => resolve3()));
230
+ }
227
231
  async function findPortAndServe(fetch2, startPort, projectDir, forceNew, expectedServerBuildSignature = null, bindHost, expectedBrowserGpuMode) {
228
232
  const { createAdaptorServer } = await import("@hono/node-server");
229
233
  const host = bindHost ?? (process.env.HYPERFRAMES_PREVIEW_HOST?.trim() || "127.0.0.1");
@@ -389,6 +393,7 @@ export {
389
393
  scanActiveServers,
390
394
  activeServerOnPort,
391
395
  killActiveServers,
396
+ closeServer,
392
397
  findPortAndServe,
393
398
  AmbiguousPreviewServerError,
394
399
  PreviewServerPortMismatchError,
@@ -27,7 +27,7 @@ import {
27
27
  } from "./chunk-T2WJO4XM.js";
28
28
  import {
29
29
  ITEM_TYPE_DIRS
30
- } from "./chunk-DA6GOIIA.js";
30
+ } from "./chunk-BDZSH6P3.js";
31
31
  import {
32
32
  realProjectRoot
33
33
  } from "./chunk-OFQWTKPW.js";
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  VALID_CANVAS_RESOLUTIONS,
9
9
  resolveResolutionFlagPair
10
- } from "./chunk-NHA4NRBE.js";
10
+ } from "./chunk-T5ELONXY.js";
11
11
  import {
12
12
  CliUsageError
13
13
  } from "./chunk-DP5LF7GF.js";
@@ -10,7 +10,7 @@ import {
10
10
  } from "./chunk-CZGHFATT.js";
11
11
  import {
12
12
  findFfBinary
13
- } from "./chunk-BIROA7JM.js";
13
+ } from "./chunk-HYRPH6LL.js";
14
14
  import {
15
15
  cleanAssetUrl,
16
16
  collectSubCompositionSrcs,
@@ -22,7 +22,7 @@ import {
22
22
  resolveExistingLocalAsset,
23
23
  resolveLocalAssetCandidates,
24
24
  resolveProjectRelativeSrc
25
- } from "./chunk-PBNWRWKA.js";
25
+ } from "./chunk-AKMY4QVI.js";
26
26
  import {
27
27
  COLOR_GRADING_SOURCE_TAGS,
28
28
  COLOR_GROUP_TAG,
@@ -49,10 +49,10 @@ import {
49
49
  rewriteAssetPath,
50
50
  spansOverlap,
51
51
  validateColorGradingContract
52
- } from "./chunk-KSC4O2RY.js";
52
+ } from "./chunk-C2KEGBR3.js";
53
53
  import {
54
54
  encodeUrlPath
55
- } from "./chunk-NHA4NRBE.js";
55
+ } from "./chunk-T5ELONXY.js";
56
56
  import {
57
57
  parseHTML
58
58
  } from "./chunk-GWTIFRF5.js";
@@ -63,7 +63,7 @@ import {
63
63
  isSceneLikeCompositionId,
64
64
  parseSlideshowManifest,
65
65
  resolveSlideshow
66
- } from "./chunk-3422KMTD.js";
66
+ } from "./chunk-EPQC3FGZ.js";
67
67
  import {
68
68
  base,
69
69
  recursive,
@@ -8155,7 +8155,7 @@ function hiddenSetTargetSelectors(target, aliases) {
8155
8155
  const parts = target.startsWith("[") && target.endsWith("]") ? target.slice(1, -1).split(",") : [target];
8156
8156
  return parts.flatMap((part) => {
8157
8157
  const trimmed = part.trim();
8158
- const resolved = /^(["'`])([^"'`]+)\1$/.exec(trimmed)?.[2] ?? aliases.get(trimmed);
8158
+ const resolved = /^(["'`])([^"'`]+)\1$/.exec(trimmed)?.[2] ?? /^[\w$.]+\.querySelector(?:All)?\(\s*(["'`])([^"'`]+)\1\s*\)$/.exec(trimmed)?.[2] ?? aliases.get(trimmed);
8159
8159
  return resolved === void 0 ? [] : resolved.split(",");
8160
8160
  }).map((selector) => selector.trim()).filter((selector) => selector.length > 0);
8161
8161
  }
@@ -8169,7 +8169,12 @@ function extractStandaloneHiddenSelectors(script) {
8169
8169
  )) {
8170
8170
  aliases.set(match2[1] ?? "", match2[3] ?? "");
8171
8171
  }
8172
- const pattern = /gsap\.set\s*\(\s*(\[[^[\]]*\]|"[^"]*"|'[^']*'|`[^`]*`|[^,()[\]]+?)\s*,\s*\{([\s\S]*?)\}\s*\)/g;
8172
+ for (const match2 of source.matchAll(
8173
+ /(?:const|let|var)\s+([A-Za-z_$][\w$]*)\s*=\s*[\w$.]+\.querySelector(?:All)?\(\s*(["'`])([^"'`]+)\2\s*\)/g
8174
+ )) {
8175
+ aliases.set(match2[1] ?? "", match2[3] ?? "");
8176
+ }
8177
+ const pattern = /gsap\.set\s*\(\s*(\[[^[\]]*\]|"[^"]*"|'[^']*'|`[^`]*`|[\w$.]+\.querySelector(?:All)?\(\s*(?:"[^"]*"|'[^']*'|`[^`]*`)\s*\)|[^,()[\]]+?)\s*,\s*\{([\s\S]*?)\}\s*\)/g;
8173
8178
  let match;
8174
8179
  while ((match = pattern.exec(source)) !== null) {
8175
8180
  if (indexInsideNonIifeRange(match.index, source, functionRanges)) continue;
@@ -8830,7 +8835,12 @@ ${right.raw}`)
8830
8835
  (win) => win.position <= SCENE_BOUNDARY_EPSILON_SECONDS && (isHiddenGsapState(win.propertyValues) || win.fromPropertyValues !== void 0 && isHiddenGsapState(win.fromPropertyValues))
8831
8836
  );
8832
8837
  if (startsHiddenAtZero) continue;
8833
- if (selectors.some((selector2) => authoredHiddenSelectors.has(selector2))) continue;
8838
+ if (selectors.some(
8839
+ (selector2) => [...authoredHiddenSelectors].some(
8840
+ (hidden) => hidden === selector2 || targetedSelectorTokens(hidden).has(selector2)
8841
+ )
8842
+ ))
8843
+ continue;
8834
8844
  const firstVisible = visibilityWindows.find((win) => makesOverlayVisible(win));
8835
8845
  if (!firstVisible) continue;
8836
8846
  const selector = selectors.find(
@@ -10264,6 +10274,9 @@ function extractFontFaceFamilies(styles) {
10264
10274
  }
10265
10275
  return families;
10266
10276
  }
10277
+ function declaredFontFamilies(styles, options) {
10278
+ return /* @__PURE__ */ new Set([...extractFontFaceFamilies(styles), ...options.projectFontFamilies ?? []]);
10279
+ }
10267
10280
  function normalizeUsedFontName(part) {
10268
10281
  const name = part.trim().replace(/\s*!important\s*$/i, "").replace(/^['"]|['"]$/g, "").trim().toLowerCase();
10269
10282
  if (!name || name.includes("(") || name.includes(")")) return null;
@@ -10373,7 +10386,7 @@ var fontRules = [
10373
10386
  // so there is nothing for the author to act on.
10374
10387
  ({ styles, options }) => {
10375
10388
  if (!options.distributed) return [];
10376
- const declared = extractFontFaceFamilies(styles);
10389
+ const declared = declaredFontFamilies(styles, options);
10377
10390
  const used = extractUsedFontFamilies(styles);
10378
10391
  const aliased = collectAliasedFonts(used, declared);
10379
10392
  if (aliased.length === 0) return [];
@@ -10389,7 +10402,7 @@ var fontRules = [
10389
10402
  ({ styles, source, rawSource, options, locate }) => {
10390
10403
  if (isRegistrySourceFile(options.filePath) || isRegistryInstalledFile(rawSource)) return [];
10391
10404
  const findings = [];
10392
- const declared = extractFontFaceFamilies(styles);
10405
+ const declared = declaredFontFamilies(styles, options);
10393
10406
  const used = extractUsedFontFamilies(styles);
10394
10407
  const googleFonts = collectGoogleFontFamilies(source, styles);
10395
10408
  const undeclared = used.filter(
@@ -11255,6 +11268,42 @@ function resolveCssAssetCandidates(projectDir, url, htmlCompSrcPath, cssRootRela
11255
11268
  }
11256
11269
  return resolveLocalAssetCandidates(projectDir, url);
11257
11270
  }
11271
+ function mountedSources(projectDir, rootHtml, rootCompSrcPath) {
11272
+ const sources = [{ html: rootHtml, compSrcPath: rootCompSrcPath }];
11273
+ const seen = /* @__PURE__ */ new Set();
11274
+ for (const source of sources) {
11275
+ const { document } = parseHTML(source.html);
11276
+ for (const host of querySelectorAllIncludingTemplates(document, "[data-composition-src]")) {
11277
+ const src = host.getAttribute("data-composition-src")?.trim();
11278
+ if (!src || isUnresolvedAssetPlaceholder(src) || isRemoteOrInlineUrl(src)) continue;
11279
+ const path = resolve(projectDir, src);
11280
+ if (seen.has(path) || !isWithinProjectRoot(projectDir, path)) continue;
11281
+ seen.add(path);
11282
+ const read = readProjectFile(path);
11283
+ if (read.kind !== "file") continue;
11284
+ sources.push({
11285
+ html: read.text,
11286
+ compSrcPath: relative2(resolve(projectDir), path).replace(/\\/g, "/")
11287
+ });
11288
+ }
11289
+ }
11290
+ return sources;
11291
+ }
11292
+ function declaredProjectFontFamilies(projectDir, sources) {
11293
+ const families = /* @__PURE__ */ new Set();
11294
+ for (const { html, compSrcPath } of sources) {
11295
+ const { document } = parseHTML(html);
11296
+ const styles = [
11297
+ ...querySelectorAllIncludingTemplates(document, "style").map((style) => ({
11298
+ content: style.textContent ?? ""
11299
+ })),
11300
+ ...collectLocalStylesheets(projectDir, document, compSrcPath)
11301
+ ];
11302
+ for (const family of extractFontFaceFamilies(styles)) families.add(family);
11303
+ for (const family of collectGoogleFontFamilies(html, styles)) families.add(family);
11304
+ }
11305
+ return [...families];
11306
+ }
11258
11307
  async function lintProject(projectDir, entryFile, hostOptions = {}) {
11259
11308
  const indexPath = entryFile ? resolve(entryFile) : resolve(projectDir, "index.html");
11260
11309
  if (entryFile && !isWithinProjectRoot(projectDir, indexPath)) {
@@ -11267,11 +11316,16 @@ async function lintProject(projectDir, entryFile, hostOptions = {}) {
11267
11316
  let totalWarnings = 0;
11268
11317
  let totalInfos = 0;
11269
11318
  const rootHtml = readFileSync(indexPath, "utf-8");
11319
+ const projectFontFamilies = declaredProjectFontFamilies(
11320
+ projectDir,
11321
+ mountedSources(projectDir, rootHtml, rootCompSrcPath)
11322
+ );
11270
11323
  const rootResult = await lintHyperframeHtml(rootHtml, {
11271
11324
  ...hostOptions,
11272
11325
  filePath: indexPath,
11273
11326
  compSrcPath: rootFile,
11274
- externalStyles: collectExternalStyles(projectDir, rootHtml, rootCompSrcPath)
11327
+ externalStyles: collectExternalStyles(projectDir, rootHtml, rootCompSrcPath),
11328
+ projectFontFamilies
11275
11329
  });
11276
11330
  results.push({ file: rootFile, result: rootResult, contentHash: contentDigest(rootHtml) });
11277
11331
  totalErrors += rootResult.errorCount;
@@ -11305,7 +11359,8 @@ async function lintProject(projectDir, entryFile, hostOptions = {}) {
11305
11359
  filePath,
11306
11360
  isSubComposition: true,
11307
11361
  compSrcPath,
11308
- externalStyles: collectExternalStyles(projectDir, html, compSrcPath)
11362
+ externalStyles: collectExternalStyles(projectDir, html, compSrcPath),
11363
+ projectFontFamilies
11309
11364
  });
11310
11365
  results.push({
11311
11366
  file: `compositions/${file}`,
@@ -11323,6 +11378,7 @@ async function lintProject(projectDir, entryFile, hostOptions = {}) {
11323
11378
  ...lintAudioSrcNotFound(projectDir, allHtmlSources),
11324
11379
  ...lintMissingLocalAsset(projectDir, allHtmlSources),
11325
11380
  ...lintTextureMaskAssetNotFound(projectDir, allHtmlSources),
11381
+ ...lintLinkedStylesheetAssets(projectDir, allHtmlSources),
11326
11382
  ...!entryFile ? lintMultipleRootCompositions(projectDir) : [],
11327
11383
  ...!entryFile ? lintBlankRootWithStandaloneComposition(rootHtml, allHtmlSources) : [],
11328
11384
  ...lintDuplicateAudioTracks(projectDir, rootHtml),
@@ -11532,6 +11588,61 @@ function lintTextureMaskAssetNotFound(projectDir, htmlSources) {
11532
11588
  };
11533
11589
  });
11534
11590
  }
11591
+ function nearestAncestorMatch(projectDir, cssRootRelativePath, url) {
11592
+ const root = resolve(projectDir);
11593
+ for (let dir = resolve(root, dirname2(cssRootRelativePath), ".."); ; dir = dirname2(dir)) {
11594
+ if (!isWithinProjectRoot(projectDir, dir)) return null;
11595
+ if (resolveLocalAssetCandidates(projectDir, relative2(root, join3(dir, url))).some(existsSync2)) {
11596
+ return relative2(dirname2(resolve(root, cssRootRelativePath)), join3(dir, url)).replace(
11597
+ /\\/g,
11598
+ "/"
11599
+ );
11600
+ }
11601
+ if (dir === root) return null;
11602
+ }
11603
+ }
11604
+ function lintLinkedStylesheetAssets(projectDir, htmlSources) {
11605
+ const seen = /* @__PURE__ */ new Set();
11606
+ const findings = [];
11607
+ for (const { html, compSrcPath } of htmlSources) {
11608
+ for (const { content, rootRelativePath } of collectLocalStylesheets(
11609
+ projectDir,
11610
+ parseHTML(html).document,
11611
+ compSrcPath
11612
+ )) {
11613
+ let root;
11614
+ try {
11615
+ root = postcss4.parse(content);
11616
+ } catch (error) {
11617
+ if (!(error instanceof postcss4.CssSyntaxError)) throw error;
11618
+ continue;
11619
+ }
11620
+ root.walkDecls((declaration) => {
11621
+ if (/^(?:-webkit-)?mask-image$/i.test(declaration.prop)) return;
11622
+ for (const match of declaration.value.matchAll(CSS_URL_RE)) {
11623
+ const rawUrl = match[1] ?? match[2] ?? match[3] ?? "";
11624
+ if (isUnresolvedAssetPlaceholder(rawUrl)) continue;
11625
+ const url = cleanAssetUrl(rawUrl);
11626
+ if (!url || isRemoteOrInlineUrl(url) || url.startsWith("/")) continue;
11627
+ if (resolveCssAssetCandidates(projectDir, url, void 0, rootRelativePath).some(existsSync2))
11628
+ continue;
11629
+ const key = `${rootRelativePath}\0${url}`;
11630
+ if (seen.has(key)) continue;
11631
+ seen.add(key);
11632
+ const found = nearestAncestorMatch(projectDir, rootRelativePath, url);
11633
+ findings.push({
11634
+ code: "missing_stylesheet_asset",
11635
+ severity: "warning",
11636
+ file: join3(projectDir, rootRelativePath),
11637
+ message: `${rootRelativePath} references url(${url}), which is not found beside the stylesheet (looked in ${dirname2(rootRelativePath)}/). The browser resolves url() from the stylesheet, so the file will 404.`,
11638
+ fixHint: found ? `A file exists at "${found}" relative to the stylesheet. Change the url() to that path.` : `Add "${url}" beside the stylesheet, or point the url() at an existing file.`
11639
+ });
11640
+ }
11641
+ });
11642
+ }
11643
+ }
11644
+ return findings;
11645
+ }
11535
11646
  function lintMultipleRootCompositions(projectDir) {
11536
11647
  const findings = [];
11537
11648
  try {
@@ -7,10 +7,10 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  parseFeedbackRating,
9
9
  trackRenderFeedback
10
- } from "./chunk-NEVX7YHH.js";
10
+ } from "./chunk-AN4USOFT.js";
11
11
  import {
12
12
  shouldTrack
13
- } from "./chunk-K7APBNPW.js";
13
+ } from "./chunk-NUE44RN2.js";
14
14
  import {
15
15
  c
16
16
  } from "./chunk-2GICKZ3I.js";
@@ -84,7 +84,7 @@ async function getDoctorSummary() {
84
84
  try {
85
85
  const [{ getSystemMeta }, { findFFmpeg }] = await Promise.all([
86
86
  import("./system-FDPS57FU.js"),
87
- import("./ffmpeg-ABXU2TYH.js")
87
+ import("./ffmpeg-A7CSIX3U.js")
88
88
  ]);
89
89
  const sys = getSystemMeta();
90
90
  const parts = [
@@ -19,11 +19,11 @@ import {
19
19
  splitElementInHtml,
20
20
  unwrapElementsFromHtml,
21
21
  wrapElementsInHtml
22
- } from "./chunk-RECS6EGQ.js";
22
+ } from "./chunk-BPIY5LB3.js";
23
23
  import {
24
24
  MEDIA_LINK_ATTR,
25
25
  relinkSplitHalves
26
- } from "./chunk-VZBJ5BQF.js";
26
+ } from "./chunk-AW3XJY4S.js";
27
27
  import {
28
28
  DEFAULT_TARGET_LUFS,
29
29
  absoluteLoudnessPlan,
@@ -32,7 +32,7 @@ import {
32
32
  requestedProjectPath,
33
33
  requiredFfmpeg,
34
34
  resolveLocalAudioPath
35
- } from "./chunk-X2YBRPCM.js";
35
+ } from "./chunk-ZBNK6X5O.js";
36
36
  import {
37
37
  HistoryBusyError,
38
38
  MAX_WINDOW_IDLE_MS,
@@ -47,7 +47,7 @@ import {
47
47
  resolveProjectSignature,
48
48
  serveWhileOpen,
49
49
  settledFileTag
50
- } from "./chunk-24F7TOW2.js";
50
+ } from "./chunk-ZAJQFY5Q.js";
51
51
  import {
52
52
  PROXY_PARAMS_VERSION,
53
53
  PROXY_PENDING_RETRY_AFTER_SECONDS,
@@ -70,11 +70,11 @@ import {
70
70
  scanProjectMedia,
71
71
  shouldPrewarmProxy,
72
72
  waitForProxy
73
- } from "./chunk-P3XF3ZZF.js";
73
+ } from "./chunk-AXVTL7B6.js";
74
74
  import {
75
75
  probeAudioTrack,
76
76
  probeMediaMetadata
77
- } from "./chunk-3F6EGZ6C.js";
77
+ } from "./chunk-QYRMR45H.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-KGM6VQ6D.js";
118
+ } from "./chunk-3RXZZIDQ.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-BDZSH6P3.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-DA6GOIIA.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-2Q7XV4F6.js";
152
+ } from "./chunk-LL3VMDAC.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-KP2GVAQU.js");
5595
+ const { GSAP_CDN } = await import("./dist-M77KFAYW.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) {