hyperframes 0.8.200 → 0.8.202

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 (194) hide show
  1. package/dist/{add-MFJDOJHQ.js → add-YC7QXNDO.js} +14 -17
  2. package/dist/{animatedGifPrep-WBZ2VVP6.js → animatedGifPrep-SFHFVFFE.js} +8 -11
  3. package/dist/api.js +16 -19
  4. package/dist/{asset-PTAQLOR6.js → asset-5E5BQ6BR.js} +2 -2
  5. package/dist/{assetCataloger-N3UGZ2RC.js → assetCataloger-F6YSU3H6.js} +8 -11
  6. package/dist/{audio-CPHWRLC4.js → audio-UZKBYVZ5.js} +33 -31
  7. package/dist/{auth-ZWOJIYK7.js → auth-5DWW5DMO.js} +2 -2
  8. package/dist/{autoUpdate-DO74673A.js → autoUpdate-D6HTQGOE.js} +2 -2
  9. package/dist/{backgroundChecks-HOAN7YB6.js → backgroundChecks-FW4MBBK2.js} +3 -3
  10. package/dist/backgroundChecksWorker.js +3 -3
  11. package/dist/{batchRender-AZFHTPSV.js → batchRender-DXD5THWY.js} +5 -7
  12. package/dist/{beats-JRMM6JQQ.js → beats-WRF4CRL7.js} +32 -23
  13. package/dist/{benchmark-2PEQUV7H.js → benchmark-NDCR2AAG.js} +11 -13
  14. package/dist/{browser-2D6IHFO6.js → browser-KSG6M66G.js} +5 -5
  15. package/dist/{bundleWithLocalizedFonts-ERB43NFP.js → bundleWithLocalizedFonts-GJ2UYZ6E.js} +2 -2
  16. package/dist/{capture-3ODEX55X.js → capture-DTF47QX3.js} +2 -2
  17. package/dist/{capture-WNC2DWF7.js → capture-FRVDEVPB.js} +15 -17
  18. package/dist/{captureCompositionFrame-JXXTHR7J.js → captureCompositionFrame-IC3MEOJR.js} +13 -16
  19. package/dist/{catalog-MHTRTKSY.js → catalog-TX3BMPOA.js} +14 -17
  20. package/dist/{catch-up-XNDRKMKL.js → catch-up-YMVIJI2W.js} +5 -5
  21. package/dist/{check-7IB355TM.js → check-2LBOZR6Z.js} +40 -43
  22. package/dist/{checkBrowser-E3ZCTAGY.js → checkBrowser-56C73ZNX.js} +34 -37
  23. package/dist/{chunk-Q5IJYX7X.js → chunk-24PUQCZO.js} +2 -2
  24. package/dist/{chunk-MMQ52NIZ.js → chunk-2BGOB2QK.js} +500 -17
  25. package/dist/{chunk-BIZPUWBG.js → chunk-3HTXEXQ6.js} +1 -1
  26. package/dist/{chunk-4VZAIVZQ.js → chunk-4OPDZMV6.js} +1 -1
  27. package/dist/{chunk-57Y5X4VU.js → chunk-5KPZ4QAS.js} +10 -12
  28. package/dist/{chunk-2LKHE32Z.js → chunk-73BGPSUW.js} +5 -5
  29. package/dist/{chunk-UUFY6A7I.js → chunk-75KIZWAD.js} +131 -92
  30. package/dist/{chunk-OE7AUN6G.js → chunk-7J4GQHSG.js} +82 -34
  31. package/dist/{chunk-4UPGPCMB.js → chunk-7KGCJQGS.js} +1 -1
  32. package/dist/{chunk-7NWSVRFE.js → chunk-ABTBAQDB.js} +1 -1
  33. package/dist/{chunk-OYVVDYM6.js → chunk-ANH7DV34.js} +10 -10
  34. package/dist/{chunk-NC3TVM27.js → chunk-AQLRXGNN.js} +6 -6
  35. package/dist/{chunk-63S4VUOL.js → chunk-AQVLMH5C.js} +1 -1
  36. package/dist/{chunk-QP4UWICL.js → chunk-B22YBW5W.js} +2 -2
  37. package/dist/{chunk-7WV27W7R.js → chunk-B2OUZUY5.js} +2 -2
  38. package/dist/chunk-B7CYKBXQ.js +36 -0
  39. package/dist/{chunk-7LRVGYKZ.js → chunk-BIV4FVEN.js} +16 -3
  40. package/dist/{chunk-WAG4AX5C.js → chunk-BU6XD7H2.js} +1 -1
  41. package/dist/{chunk-HBRPELT6.js → chunk-BUIJG2BQ.js} +3 -3
  42. package/dist/{chunk-DRTUJVLE.js → chunk-CL6ZTNQH.js} +326 -91
  43. package/dist/{chunk-3XXSRN36.js → chunk-COHU6S2X.js} +2 -2
  44. package/dist/{chunk-IC6BO4GU.js → chunk-CV32PRH3.js} +65 -21
  45. package/dist/{chunk-BERGVZKN.js → chunk-CXTXB2LZ.js} +1 -1
  46. package/dist/{chunk-OMXXJSCK.js → chunk-DMZ3SCCU.js} +108 -20
  47. package/dist/{chunk-QYQY5ACN.js → chunk-DYDFCX4L.js} +1 -1
  48. package/dist/{chunk-XOTUPVIF.js → chunk-E3F5L6AB.js} +38 -1
  49. package/dist/{chunk-63JJFXAD.js → chunk-EPZXTQOO.js} +6 -6
  50. package/dist/{chunk-VHBBV5DH.js → chunk-ERUINDRT.js} +62 -25
  51. package/dist/{chunk-FTD5QXGF.js → chunk-FWS2ZWV6.js} +2 -2
  52. package/dist/{chunk-5CTORVUM.js → chunk-GHROWWUN.js} +32 -1
  53. package/dist/{chunk-3YGSZSEN.js → chunk-GZCACSED.js} +1 -1
  54. package/dist/{chunk-32V3VHMK.js → chunk-I64A5P5H.js} +6 -43
  55. package/dist/{chunk-HXHSGDU6.js → chunk-IB6ICAI7.js} +60 -34
  56. package/dist/{chunk-D35MPIGJ.js → chunk-IKX2UHEM.js} +15 -15
  57. package/dist/{chunk-6JR2XUEE.js → chunk-IXXVS2Z4.js} +1 -1
  58. package/dist/{chunk-HN6TP4D2.js → chunk-J3CZK6PI.js} +1 -1
  59. package/dist/{chunk-ZFBET3PD.js → chunk-JCS7WFRM.js} +1 -1
  60. package/dist/{chunk-PFFR4NQV.js → chunk-JNBHYUEU.js} +8 -10
  61. package/dist/{chunk-FTUKOLLB.js → chunk-KFJMWPZT.js} +1 -1
  62. package/dist/{chunk-I6A2B3IJ.js → chunk-L5IKISP2.js} +3 -3
  63. package/dist/{chunk-G7RKSAKS.js → chunk-LEQU6P6H.js} +28 -6
  64. package/dist/{chunk-FMTJ4I6I.js → chunk-LMRTEJYY.js} +1 -1
  65. package/dist/{chunk-FZ3R5XOH.js → chunk-MO4VKSFT.js} +1 -1
  66. package/dist/{chunk-KPUTRG54.js → chunk-MS4BAXOQ.js} +2 -2
  67. package/dist/{chunk-KVFSXCN6.js → chunk-NT3L4IMM.js} +1 -1
  68. package/dist/{chunk-VFLBOKDI.js → chunk-NZEASM7M.js} +3 -3
  69. package/dist/{chunk-7D7V3UDI.js → chunk-OJDOYHPQ.js} +2 -2
  70. package/dist/chunk-PH5PJY5Z.js +39 -0
  71. package/dist/{chunk-GYSPF5ZT.js → chunk-PI256PSW.js} +27 -21
  72. package/dist/{chunk-JBQNDHRT.js → chunk-PLL6VC4F.js} +1 -1
  73. package/dist/{chunk-TOC6E65N.js → chunk-PYS6IKKM.js} +2 -2
  74. package/dist/{chunk-57GN6KWT.js → chunk-PZIWSVMO.js} +11 -1
  75. package/dist/{chunk-QDK7XCOB.js → chunk-QB4K2EWI.js} +1 -1
  76. package/dist/{chunk-IW4LKYDY.js → chunk-QDEZ7LRH.js} +3 -3
  77. package/dist/{chunk-I4VEFPZE.js → chunk-QGB5DECO.js} +1 -1
  78. package/dist/{chunk-BQA3X7TI.js → chunk-QSFWGZG6.js} +4 -6
  79. package/dist/chunk-QTGKDF7D.js +3983 -0
  80. package/dist/{chunk-QXPZGDTI.js → chunk-QXQ74PYD.js} +3 -3
  81. package/dist/{chunk-DY53XJ3P.js → chunk-QZTFCWG7.js} +1 -1
  82. package/dist/{chunk-ML4IULLQ.js → chunk-REFMKHRE.js} +10 -10
  83. package/dist/{chunk-H2X4TQVK.js → chunk-REUZB3HL.js} +7 -7
  84. package/dist/{chunk-ISN6BAZX.js → chunk-RFZJGC6V.js} +1 -1
  85. package/dist/{chunk-TDF2O2RM.js → chunk-RNLJJDGE.js} +2 -2
  86. package/dist/{chunk-5ULL3P6S.js → chunk-SQNPFWFM.js} +2 -2
  87. package/dist/{chunk-733CEBPF.js → chunk-TOFL5P27.js} +5 -5
  88. package/dist/{chunk-GR2G5L2O.js → chunk-UI7YYCN2.js} +3 -3
  89. package/dist/{chunk-TUVNQA5B.js → chunk-UMGDRGF5.js} +3 -3
  90. package/dist/{chunk-XV7ZNBVY.js → chunk-V6MTGX7B.js} +3 -3
  91. package/dist/{chunk-TTFHBTXQ.js → chunk-VOKI2HSE.js} +1 -1
  92. package/dist/{chunk-ACH5ZR7X.js → chunk-WAXBJLV6.js} +3 -3
  93. package/dist/{chunk-PGDWNIOK.js → chunk-XDMZY3H7.js} +57 -5
  94. package/dist/{chunk-VLVQQJOX.js → chunk-Z4PSJSDF.js} +22 -3
  95. package/dist/{clean-BOYUTBAU.js → clean-LFPT6GNS.js} +21 -24
  96. package/dist/cli.js +54 -54
  97. package/dist/{cloud-3O2MEZO4.js → cloud-XX5XB277.js} +4 -4
  98. package/dist/{cloudrun-MCTN22O6.js → cloudrun-ANWC6QGV.js} +7 -9
  99. package/dist/{compare-A57RHCPB.js → compare-CISKXIRF.js} +31 -34
  100. package/dist/{compiler-LVNWLZCX.js → compiler-XYZMBTYR.js} +6 -10
  101. package/dist/{component-MIJC3LWO.js → component-D4JJIDOC.js} +3 -3
  102. package/dist/{compositions-OUNZAEC3.js → compositions-UGRTLUBT.js} +13 -16
  103. package/dist/{delete-X6Q3S3SL.js → delete-TPH7N5PK.js} +2 -2
  104. package/dist/{deploy-XXMIXGUF.js → deploy-ZUXLAVVX.js} +72 -20
  105. package/dist/{deterministicFonts-RMA7GDJC.js → deterministicFonts-NQ6KL66D.js} +2 -2
  106. package/dist/{dist-ONHJ6ZDA.js → dist-TFHABY7N.js} +2 -4
  107. package/dist/{dist-2UO4RVFN.js → dist-UXLDRI4D.js} +30 -16
  108. package/dist/{doctor-ASSDEPCO.js → doctor-LVOS4EDV.js} +14 -17
  109. package/dist/{dotEnv-64S3VKGH.js → dotEnv-RPHCAUBZ.js} +1 -1
  110. package/dist/{events-DVWSV3TQ.js → events-FIWA6UBT.js} +4 -4
  111. package/dist/{events-4ULC5VUK.js → events-UHIKJIWA.js} +3 -3
  112. package/dist/{feedback-OB3NJPNF.js → feedback-SPOCVRKJ.js} +10 -12
  113. package/dist/{ffmpeg-JH3JXES2.js → ffmpeg-7SDXE5P5.js} +8 -11
  114. package/dist/{figma-GV4OGXC2.js → figma-ONGILUUE.js} +3 -3
  115. package/dist/fontLocalizeCli.js +11 -14
  116. package/dist/{get-FLMCUJGR.js → get-W7ADZ5XS.js} +2 -2
  117. package/dist/{gpuPolicy-RZ2OUY4M.js → gpuPolicy-GETTDB3G.js} +8 -11
  118. package/dist/{grade-compare-O62JAOA7.js → grade-compare-YIIQJNL3.js} +32 -35
  119. package/dist/{help-6POZ4GNV.js → help-HSKEDFT6.js} +1 -1
  120. package/dist/{history-72ZIF5WR.js → history-JS6QALDS.js} +8 -8
  121. package/dist/hyperframe.manifest.json +1 -1
  122. package/dist/hyperframe.runtime.iife.js +65 -64
  123. package/dist/hyperframes-player.global.js +3 -3
  124. package/dist/{info-GGIFZ5CT.js → info-BIIA6M7Q.js} +10 -12
  125. package/dist/{init-QYRN6HG2.js → init-TGDKBWUY.js} +29 -32
  126. package/dist/{inspect-KSL4YVIU.js → inspect-MVMUFUHY.js} +32 -35
  127. package/dist/{installer-ENQCLSJQ.js → installer-HITNNXHY.js} +6 -9
  128. package/dist/{keyframes-6PNLGKOO.js → keyframes-XJ7DUUBW.js} +7 -7
  129. package/dist/{lambda-3RFOOJV6.js → lambda-4C7APDR5.js} +24 -14
  130. package/dist/{layout-3XFC6N3L.js → layout-O3LEAM7S.js} +32 -35
  131. package/dist/{lint-5XGLCTV5.js → lint-72FKMBD2.js} +9 -11
  132. package/dist/{lintProject-FKPKSU6M.js → lintProject-Q36Y3AHA.js} +2 -4
  133. package/dist/{list-B76BTLOM.js → list-YUK5VA2D.js} +2 -2
  134. package/dist/{login-MNXS7GEL.js → login-TXBDKLOH.js} +4 -4
  135. package/dist/{manager-QZZVJV7Z.js → manager-APB2JLSH.js} +9 -12
  136. package/dist/{manager-BWU4U7DV.js → manager-F34TSFV6.js} +2 -2
  137. package/dist/{media-treatment-J3OWRCBF.js → media-treatment-GMP4JL46.js} +66 -42
  138. package/dist/{models-MCDUTV54.js → models-DW22WMQ5.js} +12 -15
  139. package/dist/{motionShot-RWEH3VWI.js → motionShot-UQJVQT76.js} +17 -20
  140. package/dist/{normalize-audio-N7VRZODX.js → normalize-audio-4KYSZBWI.js} +44 -26
  141. package/dist/{open-ROUFAVKD.js → open-HNYN6VM2.js} +14 -17
  142. package/dist/{parakeetRunner-PTVV5M44.js → parakeetRunner-SJ2QW77R.js} +13 -16
  143. package/dist/{pipeline-HN5KMORF.js → pipeline-MG2W6NIW.js} +9 -12
  144. package/dist/{play-AO7AF4Y4.js → play-ZQ6RNKIE.js} +23 -26
  145. package/dist/{preflight-ARNDDFGX.js → preflight-HSQEJNA2.js} +11 -14
  146. package/dist/{present-FBPKUC5R.js → present-7M3W5E3Q.js} +19 -22
  147. package/dist/{preview-35X5G426.js → preview-TT5Z6JK6.js} +20 -23
  148. package/dist/{producer-FVGPLR5E.js → producer-B2Y4IKZS.js} +1 -1
  149. package/dist/{projectConfig-SRUJLOHL.js → projectConfig-VZVY6ZZP.js} +8 -11
  150. package/dist/{publication-XH2BRL3V.js → publication-SRAYE6LT.js} +4 -6
  151. package/dist/{publish-RI4ZQZNT.js → publish-3QMV3Q7B.js} +11 -14
  152. package/dist/{remove-background-J22P5JFW.js → remove-background-5GA2S5OI.js} +10 -13
  153. package/dist/{render-2EZQT4IS.js → render-LN24E3OI.js} +37 -33
  154. package/dist/{render-UXYZN6D2.js → render-W3VX647V.js} +17 -17
  155. package/dist/{render-IJUKJILU.js → render-WRLXYVSQ.js} +34 -37
  156. package/dist/{render-batch-X34UZ442.js → render-batch-C73ELOQ7.js} +17 -17
  157. package/dist/renderSetupWorker.js +4 -6
  158. package/dist/{resolver-UUEIRLMY.js → resolver-ALD2ZELQ.js} +6 -8
  159. package/dist/{sherpa-FI4VNAFT.js → sherpa-AHD5UPU3.js} +12 -15
  160. package/dist/skills/hyperframes/references/runtimes.md +26 -0
  161. package/dist/skills/hyperframes-cli/references/lambda.md +1 -0
  162. package/dist/skills/media-use/references/mixing.md +1 -1
  163. package/dist/skills/media-use/scripts/lib/grade-analyzer.mjs +38 -26
  164. package/dist/{skills-LGKXQFW7.js → skills-WYJGVMR5.js} +6 -6
  165. package/dist/{skillsUpdateCheck-NDPKSX3H.js → skillsUpdateCheck-OHEGRQ2N.js} +3 -3
  166. package/dist/{snapshot-JM6427YW.js → snapshot-S6CGQACZ.js} +94 -61
  167. package/dist/{src-WEECPY6E.js → src-DAW4JYSR.js} +11 -10
  168. package/dist/{src-26NBARTO.js → src-I6WD5SMQ.js} +10 -13
  169. package/dist/{staticProjectServer-I5WGMJOV.js → staticProjectServer-3BFEACQ6.js} +19 -22
  170. package/dist/{status-SCCC7A6N.js → status-LR7VXITS.js} +1 -1
  171. package/dist/studio/assets/{hyperframes-player-LmRUJE8q.js → hyperframes-player-DnrkDR-_.js} +1 -1
  172. package/dist/studio/assets/{index-BmTWk8xf.js → index-BhFxhBMA.js} +162 -162
  173. package/dist/studio/assets/{index-CKNiEwbW.js → index-WFQeAouT.js} +1 -1
  174. package/dist/studio/index.html +1 -1
  175. package/dist/{studio-api-N774Q4NO.js → studio-api-2O6R4CM5.js} +12 -15
  176. package/dist/{studioServer-KZIM5UBJ.js → studioServer-6ZSAJBVY.js} +53 -56
  177. package/dist/{system-HV7PYIXE.js → system-YD4AW5ZX.js} +1 -1
  178. package/dist/{telemetry-JIETM7WP.js → telemetry-WFLPGSUG.js} +4 -4
  179. package/dist/{timeline-JJ6JG7GQ.js → timeline-BZJH266Q.js} +23 -25
  180. package/dist/{tokens-VOIMSCGX.js → tokens-5TX42ZMQ.js} +2 -2
  181. package/dist/{transcribe-2V23EQHD.js → transcribe-IEYR46HB.js} +18 -21
  182. package/dist/{transcribe-7BDHDQVP.js → transcribe-WPFFLNTS.js} +11 -14
  183. package/dist/{updateCheck-7B7L3UWO.js → updateCheck-TESZGKRJ.js} +2 -2
  184. package/dist/{upgrade-TUA2QZTY.js → upgrade-3EW4MYS7.js} +2 -2
  185. package/dist/{urlDownloader-CGV6EYL7.js → urlDownloader-JULHEBLS.js} +7 -10
  186. package/dist/{validate-JLCXEI2U.js → validate-RSJPGXUZ.js} +26 -29
  187. package/dist/{video-TI3EOA2D.js → video-TW4TSAM4.js} +8 -11
  188. package/dist/warmCheck.js +40 -43
  189. package/package.json +1 -1
  190. package/dist/chunk-BSQ7XANM.js +0 -210
  191. package/dist/chunk-PKZ7RK5N.js +0 -281
  192. package/dist/chunk-PW22CDII.js +0 -3901
  193. package/dist/chunk-RFQ6BIRL.js +0 -40
  194. package/dist/chunk-X7HBSTCZ.js +0 -53
@@ -8,7 +8,7 @@ import {
8
8
  EncoderInterruptedError,
9
9
  encoderFailureError,
10
10
  prepareAnimatedGifInputs
11
- } from "./chunk-GR2G5L2O.js";
11
+ } from "./chunk-UI7YYCN2.js";
12
12
  import {
13
13
  GENERIC_FAMILIES,
14
14
  collectFontFamilyCustomProperties,
@@ -16,7 +16,7 @@ import {
16
16
  iterateFontFamilyDeclarations,
17
17
  normalizeSystemFontPrimaryFamilies,
18
18
  resolveFontFamilyDeclarationFamilies
19
- } from "./chunk-FMTJ4I6I.js";
19
+ } from "./chunk-LMRTEJYY.js";
20
20
  import {
21
21
  parseEncoderOptions
22
22
  } from "./chunk-KLIKCX6Q.js";
@@ -114,6 +114,7 @@ import {
114
114
  isHttpUrl,
115
115
  isMemoryExhaustionError,
116
116
  isNotMediaPayload,
117
+ isSelfOrAncestorHidden,
117
118
  isTransientBrowserError,
118
119
  isVideoFrameFormat,
119
120
  isVideoHiddenBeforeStreamStart,
@@ -161,7 +162,7 @@ import {
161
162
  verifyDiskDrawElementSamples,
162
163
  videoAudioId,
163
164
  writeCapturedFrame
164
- } from "./chunk-UUFY6A7I.js";
165
+ } from "./chunk-75KIZWAD.js";
165
166
  import {
166
167
  DISTRIBUTED_FPS,
167
168
  HF_VFX_ATTR,
@@ -177,7 +178,7 @@ import {
177
178
  parseVfxChain,
178
179
  resolveAuthoredTimingWindow,
179
180
  toFps
180
- } from "./chunk-G7RKSAKS.js";
181
+ } from "./chunk-LEQU6P6H.js";
181
182
  import {
182
183
  assignBundledRuntimeCompositionIds,
183
184
  buildVariablesByCompScript,
@@ -189,10 +190,11 @@ import {
189
190
  inlineSubCompositions,
190
191
  parsesAsScript,
191
192
  prepareFlattenedInnerRoot
192
- } from "./chunk-32V3VHMK.js";
193
+ } from "./chunk-I64A5P5H.js";
193
194
  import {
194
195
  COMPOSITION_SOURCE_URL,
195
196
  HF_COLOR_GRADING_ATTR,
197
+ MAX_AUDIO_GAIN,
196
198
  MEDIA_RENDER_ID_ATTR,
197
199
  assignMediaRenderIds,
198
200
  clampDurations,
@@ -220,10 +222,7 @@ import {
220
222
  sourceTimeAt,
221
223
  styleElementsFor,
222
224
  timeAtSourceTime
223
- } from "./chunk-PW22CDII.js";
224
- import {
225
- MAX_AUDIO_GAIN
226
- } from "./chunk-X7HBSTCZ.js";
225
+ } from "./chunk-QTGKDF7D.js";
227
226
  import {
228
227
  CANVAS_DIMENSIONS,
229
228
  HTML_BODY_CSS_HEIGHT_FIRST_RE,
@@ -234,7 +233,7 @@ import {
234
233
  isAspectAgnosticResolutionAlias,
235
234
  normalizeResolutionFlag,
236
235
  suggestMatchingPreset
237
- } from "./chunk-XOTUPVIF.js";
236
+ } from "./chunk-E3F5L6AB.js";
238
237
  import {
239
238
  TRANSITIONS,
240
239
  convertTransfer,
@@ -250,31 +249,29 @@ import {
250
249
  import {
251
250
  lintHyperframeHtml,
252
251
  resolveReferencedStart
253
- } from "./chunk-IC6BO4GU.js";
252
+ } from "./chunk-CV32PRH3.js";
254
253
  import {
255
254
  isUnresolvedAssetPlaceholder,
256
255
  readProjectFile,
257
256
  resolveProjectRelativeSrc
258
257
  } from "./chunk-6BNTGNGD.js";
259
258
  import {
259
+ CSS_URL_RE,
260
260
  MEDIA_START_BASIS_ATTR,
261
261
  checkSubCompositionUsability,
262
262
  compositionOriginSeconds,
263
263
  cutToHostSlots,
264
- hostInPointSeconds,
265
- readMediaStartBasis,
266
- resolveAbsoluteMediaStartSeconds
267
- } from "./chunk-MMQ52NIZ.js";
268
- import {
269
- CSS_URL_RE,
270
264
  decodedUrlPath,
265
+ hostInPointSeconds,
271
266
  isNonRelativeUrl,
267
+ readMediaStartBasis,
272
268
  readPlaybackRate,
269
+ resolveAbsoluteMediaStartSeconds,
273
270
  rewriteAssetPath,
274
271
  rewriteAssetPaths,
275
272
  rewriteCssAssetUrls,
276
273
  rewriteInlineStyleAssetUrls
277
- } from "./chunk-BSQ7XANM.js";
274
+ } from "./chunk-2BGOB2QK.js";
278
275
  import {
279
276
  parseHTML
280
277
  } from "./chunk-SDYDNHEE.js";
@@ -5667,6 +5664,15 @@ function collectHostWindows(html) {
5667
5664
  }
5668
5665
  return windows;
5669
5666
  }
5667
+ function collectHiddenVideoIds(html) {
5668
+ const { document: document2 } = parseHTML(html);
5669
+ const hidden = /* @__PURE__ */ new Set();
5670
+ for (const element of document2.querySelectorAll("video")) {
5671
+ const id = element.getAttribute(MEDIA_RENDER_ID_ATTR) || element.getAttribute("id");
5672
+ if (id && isSelfOrAncestorHidden(element)) hidden.add(id);
5673
+ }
5674
+ return hidden;
5675
+ }
5670
5676
  function toAbsoluteWindow(start, end, window2) {
5671
5677
  const absoluteStart = resolveAbsoluteMediaStartSeconds({
5672
5678
  authoredStart: start,
@@ -5700,8 +5706,13 @@ function collectRenderMedia(html) {
5700
5706
  const windows = collectHostWindows(html);
5701
5707
  const windowFor = (id) => windows.get(id) ?? ROOT_WINDOW;
5702
5708
  const droppedMediaIds = /* @__PURE__ */ new Set();
5709
+ const hiddenIds = collectHiddenVideoIds(html);
5703
5710
  const videos = [];
5704
5711
  for (const video of parseVideoElements(html)) {
5712
+ if (hiddenIds.has(video.id)) {
5713
+ droppedMediaIds.add(video.id);
5714
+ continue;
5715
+ }
5705
5716
  const absolute = toAbsoluteWindow(video.start, video.end, windowFor(video.id));
5706
5717
  if (!absolute) {
5707
5718
  droppedMediaIds.add(video.id);
@@ -5735,7 +5746,7 @@ function placeAudio(audio, window2) {
5735
5746
  }
5736
5747
 
5737
5748
  // ../core/dist/generated/position-edits-render-inline.js
5738
- var POSITION_EDITS_RENDER_IIFE = '"use strict";(()=>{function P(){return globalThis}function T(e,t){if(typeof window>"u")return;let o=P(),r=o.__hf?.onSwallowed;if(r)try{r({label:e,error:t})}catch(s){}(o.__hfDebug||o.__HYPERFRAMES_DEBUG)&&console.debug(`[hyperframes] ${e} swallowed:`,t)}var x=null;function R(e,t){if(x)try{x({source:"hf-preview",type:"analytics",event:e,properties:t??{}})}catch(o){T("runtime.analytics.site1",o)}}var W="http://www.w3.org/1999/xhtml";function N(e){return e!=null&&e.nodeType===1}function k(e){return N(e)&&(e.namespaceURI===W||e.namespaceURI==="http://www.w3.org/2000/svg")}var w="data-hf-edit-base-x",y="data-hf-edit-base-y",m="data-hf-edit-original-translate",_=e=>{let t=parseFloat(e??"");return Number.isFinite(t)?t:0},C=e=>{let t=[],o=0,r="";for(let s of e.trim())s==="("&&(o+=1),s===")"&&(o=Math.max(0,o-1)),/\\s/.test(s)&&o===0?(r&&t.push(r),r=""):r+=s;return r&&t.push(r),t},L=/^-?(?:\\d+(?:\\.\\d+)?|\\.\\d+)px$/,E=(e,t)=>L.test(e)&&L.test(t)?`${parseFloat(e)+parseFloat(t)}px`:`calc(${e} + ${t})`,O=(e,t,o)=>{if(!e||e==="none")return`${t} ${o}`;let[r,s,a]=C(e);if(r===void 0)return`${t} ${o}`;if(s===void 0)return`${E(r,t)} ${o}`;let i=a===void 0?"":` ${a}`;return`${E(r,t)} ${E(s,o)}${i}`},V=e=>{try{e.ownerDocument.defaultView?.gsap?.getProperty?.(e,"x")}catch{}},j=e=>{let t=e.style.getPropertyValue("translate").trim();if(t)return t==="none"?"":t;try{let o=e.ownerDocument.defaultView,r=o?o.getComputedStyle(e).getPropertyValue("translate").trim():"";return r==="none"?"":r}catch{return""}},b=new WeakMap;function B(e,t){let o=b.get(e);if(!t?.force&&o!==void 0&&e.style.getPropertyValue("translate")!==o){R("position_edit_fold_skipped",{hfId:e.getAttribute("data-hf-id")});return}let r=_(e.getAttribute("data-x"))-_(e.getAttribute(w)),s=_(e.getAttribute("data-y"))-_(e.getAttribute(y));e.hasAttribute(m)||e.setAttribute(m,j(e)),o===void 0&&V(e);let a=e.getAttribute(m)??"",i=O(a,`${r}px`,`${s}px`);e.style.setProperty("translate",i),b.set(e,e.style.getPropertyValue("translate"))}function S(e,t){let o=e.querySelectorAll(`[${m}]:not([${w}]):not([${y}])`);for(let a=0;a<o.length;a++){let i=o[a];if(i===void 0||!k(i))continue;let g=i.getAttribute(m)??"";g===""?i.style.removeProperty("translate"):i.style.setProperty("translate",g),i.removeAttribute(m),b.delete(i)}let r=e.querySelectorAll(`[${w}], [${y}]`),s=0;for(let a=0;a<r.length;a++){let i=r[a];i===void 0||!k(i)||(B(i,t),s+=1)}return s}var $="__hfPositionEditsSeekReapplyWrapped",D=new WeakSet,F=new WeakMap,I=new WeakMap;function M(e){let t=e,o=()=>{try{S(t.document)}catch{}},r=n=>typeof n=="function"&&(D.has(n)||!!n[$]),s=n=>{D.add(n);try{Object.defineProperty(n,$,{value:!0})}catch{}},a=n=>{if(typeof n!="function"||r(n))return n;let l=function(...u){let d=n.apply(this,u);return o(),d};return s(l),l},i=(n,l)=>{let u=F.get(n);if(u?.has(l))return!0;let d=Object.getOwnPropertyDescriptor(n,l);if(d?.configurable===!1){let c=n[l];return typeof c=="function"&&(n[l]=a(c),o()),!1}let p=n[l],f=d?.set;return Object.defineProperty(n,l,{configurable:!0,enumerable:d?.enumerable??!0,get:()=>p,set:c=>{p=a(c),f?.call(n,c)}}),p=a(p),u??(u=new Set),u.add(l),F.set(n,u),o(),!0},g=(n,l)=>{let u=I.get(t),d=Object.getOwnPropertyDescriptor(t,n);if(!u?.has(n)){if(d?.configurable===!1){let c=t[n];return c?i(c,l):!1}let f=t[n];Object.defineProperty(t,n,{configurable:!0,enumerable:d?.enumerable??!0,get:()=>f,set:c=>{f=c,f&&i(f,l)}}),u??(u=new Set),u.add(n),I.set(t,u)}let p=t[n];return p?i(p,l):!1},h=()=>{let n=g("__hf","seek"),l=g("__player","renderSeek");return n&&l};if(h())return;let v=120,A=t.setInterval(()=>{if(h()){t.clearInterval(A);return}v-=1,v<=0&&t.clearInterval(A)},50)}function H(){document.querySelector(`[${w}], [${y}]`)&&(S(document),M(window))}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",H,{once:!0}):H();})();\n';
5749
+ var POSITION_EDITS_RENDER_IIFE = '"use strict";(()=>{function x(){return globalThis}function P(e,t){if(typeof window>"u")return;let o=x(),r=o.__hf?.onSwallowed;if(r)try{r({label:e,error:t})}catch(s){}(o.__hfDebug||o.__HYPERFRAMES_DEBUG)&&console.debug(`[hyperframes] ${e} swallowed:`,t)}var T=null;function R(e,t){if(T)try{T({source:"hf-preview",type:"analytics",event:e,properties:t??{}})}catch(o){P("runtime.analytics.site1",o)}}var M="http://www.w3.org/1999/xhtml";function N(e){return e!=null&&e.nodeType===1}function _(e){return N(e)&&(e.namespaceURI===M||e.namespaceURI==="http://www.w3.org/2000/svg")}var y="data-hf-edit-base-x",w="data-hf-edit-base-y",m="data-hf-edit-original-translate",k=e=>{let t=parseFloat(e??"");return Number.isFinite(t)?t:0},C=e=>{let t=[],o=0,r="";for(let s of e.trim())s==="("&&(o+=1),s===")"&&(o=Math.max(0,o-1)),/\\s/.test(s)&&o===0?(r&&t.push(r),r=""):r+=s;return r&&t.push(r),t},$=/^-?(?:\\d+(?:\\.\\d+)?|\\.\\d+)px$/,E=(e,t)=>$.test(e)&&$.test(t)?`${parseFloat(e)+parseFloat(t)}px`:`calc(${e} + ${t})`,O=(e,t,o)=>{if(!e||e==="none")return`${t} ${o}`;let[r,s,a]=C(e);if(r===void 0)return`${t} ${o}`;if(s===void 0)return`${E(r,t)} ${o}`;let i=a===void 0?"":` ${a}`;return`${E(r,t)} ${E(s,o)}${i}`},j=e=>{try{e.ownerDocument.defaultView?.gsap?.getProperty?.(e,"x")}catch{}},V=e=>{let t=e.style.getPropertyValue("translate").trim();if(t)return t==="none"?"":t;try{let o=e.ownerDocument.defaultView,r=o?o.getComputedStyle(e).getPropertyValue("translate").trim():"";return r==="none"?"":r}catch{return""}},b=new WeakMap;function B(e,t){let o=b.get(e);if(!t?.force&&o!==void 0&&e.style.getPropertyValue("translate")!==o){R("position_edit_fold_skipped",{hfId:e.getAttribute("data-hf-id")});return}let r=k(e.getAttribute("data-x"))-k(e.getAttribute(y)),s=k(e.getAttribute("data-y"))-k(e.getAttribute(w));e.hasAttribute(m)||e.setAttribute(m,V(e)),o===void 0&&j(e);let a=e.getAttribute(m)??"",i=O(a,`${r}px`,`${s}px`);e.style.setProperty("translate",i),b.set(e,e.style.getPropertyValue("translate"))}function h(e,t){let o=e.querySelectorAll(`[${m}]:not([${y}]):not([${w}])`);for(let a=0;a<o.length;a++){let i=o[a];if(i===void 0||!_(i))continue;let g=i.getAttribute(m)??"";g===""?i.style.removeProperty("translate"):i.style.setProperty("translate",g),i.removeAttribute(m),b.delete(i)}let r=e.querySelectorAll(`[${y}], [${w}]`),s=0;for(let a=0;a<r.length;a++){let i=r[a];i===void 0||!_(i)||(B(i,t),s+=1)}return s}var L="__hfPositionEditsSeekReapplyWrapped",D=new WeakSet,F=new WeakMap,H=new WeakMap;function W(e){let t=e,o=()=>{try{h(t.document)}catch{}},r=n=>typeof n=="function"&&(D.has(n)||!!n[L]),s=n=>{D.add(n);try{Object.defineProperty(n,L,{value:!0})}catch{}},a=n=>{if(typeof n!="function"||r(n))return n;let l=function(...u){let d=n.apply(this,u);return o(),d};return s(l),l},i=(n,l)=>{let u=F.get(n);if(u?.has(l))return!0;let d=Object.getOwnPropertyDescriptor(n,l);if(d?.configurable===!1){let c=n[l];return typeof c=="function"&&(n[l]=a(c),o()),!1}let p=n[l],f=d?.set;return Object.defineProperty(n,l,{configurable:!0,enumerable:d?.enumerable??!0,get:()=>p,set:c=>{p=a(c),f?.call(n,c)}}),p=a(p),u??(u=new Set),u.add(l),F.set(n,u),o(),!0},g=(n,l)=>{let u=H.get(t),d=Object.getOwnPropertyDescriptor(t,n);if(!u?.has(n)){if(d?.configurable===!1){let c=t[n];return c?i(c,l):!1}let f=t[n];Object.defineProperty(t,n,{configurable:!0,enumerable:d?.enumerable??!0,get:()=>f,set:c=>{f=c,f&&i(f,l)}}),u??(u=new Set),u.add(n),H.set(t,u)}let p=t[n];return p?i(p,l):!1},S=()=>{let n=g("__hf","seek"),l=g("__player","renderSeek");return n&&l};if(S())return;let v=120,A=t.setInterval(()=>{if(S()){t.clearInterval(A);return}v-=1,v<=0&&t.clearInterval(A)},50)}function I(){document.querySelector(`[${y}], [${w}]`)&&(h(document),W(window))}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",I,{once:!0}):I();})();\n';
5739
5750
  function getPositionEditsRenderScript() {
5740
5751
  return POSITION_EDITS_RENDER_IIFE;
5741
5752
  }
@@ -6200,8 +6211,9 @@ async function compileHtmlFile(html, baseDir, downloadDir, log, urlByAbsentLocal
6200
6211
  const markedStaticHtml = markInferredVariableMediaDurations(staticCompiled, mediaUnresolved);
6201
6212
  let compiledHtml = resolutions.length > 0 ? injectDurations(markedStaticHtml, resolutions) : markedStaticHtml;
6202
6213
  const preResolved = extractResolvedMedia(compiledHtml);
6214
+ const hiddenVideoIds = collectHiddenVideoIds(compiledHtml);
6203
6215
  const clampResults = await Promise.all(
6204
- preResolved.filter((el) => !!el.src && !el.loop).map(async (el) => {
6216
+ preResolved.filter((el) => !!el.src && !el.loop && !hiddenVideoIds.has(el.id)).map(async (el) => {
6205
6217
  const { duration: maxDuration } = await resolveMediaDuration(
6206
6218
  el.src,
6207
6219
  el.mediaStart,
@@ -6919,7 +6931,7 @@ async function readLocalFont(absPath) {
6919
6931
  return { kind: "inline", buffer: Buffer.concat(chunks, totalBytes) };
6920
6932
  }
6921
6933
  async function embedLocalFontFaces(html, projectDir) {
6922
- const { fontToDataUri: toDataUri } = await import("./deterministicFonts-RMA7GDJC.js");
6934
+ const { fontToDataUri: toDataUri } = await import("./deterministicFonts-NQ6KL66D.js");
6923
6935
  const styleBlockRe = /<style\b[^>]*>([\s\S]*?)<\/style>/gi;
6924
6936
  const fontFaceRe = /@font-face\s*\{([^}]*)\}/gi;
6925
6937
  let result = html;
@@ -7850,6 +7862,7 @@ async function runProbeStage(input) {
7850
7862
  height,
7851
7863
  fps: job.config.fps,
7852
7864
  format: captureFormat,
7865
+ transparent: needsAlpha,
7853
7866
  quality: captureFormat === "png" ? void 0 : resolveCaptureJpegQuality(job.config.quality),
7854
7867
  variables: job.config.variables,
7855
7868
  deviceScaleFactor,
@@ -9416,6 +9429,7 @@ async function runCaptureStage(input) {
9416
9429
  createBeforeCaptureHook: createRenderVideoFrameInjector,
9417
9430
  abortSignal,
9418
9431
  frameRangeStart: frameRange?.startFrame,
9432
+ interleaveFrames: input.interleaveFrames,
9419
9433
  dedupPerfs,
9420
9434
  pageErrorLines: workerPageErrors,
9421
9435
  onProgress: (progress) => {
@@ -10893,9 +10907,6 @@ async function runEncodeStage(input) {
10893
10907
  return { encodeMs: Date.now() - stage5Start };
10894
10908
  }
10895
10909
  const onFramesEncoded = startEncodeProgress(job, "Encoding video", onProgress);
10896
- const baseScaledEncodeTimeout = Math.ceil((job.duration ?? 0) * 4e3);
10897
- const scaledEncodeTimeout = baseScaledEncodeTimeout * (job.config.quality === "high" ? 6 : 1);
10898
- const videoEngineCfg = scaledEncodeTimeout > engineCfg.ffmpegEncodeTimeout ? { ...engineCfg, ffmpegEncodeTimeout: scaledEncodeTimeout } : engineCfg;
10899
10910
  const frameExt = frameFileExtension(input.captureImageFormat);
10900
10911
  const framePattern = `frame_%06d.${frameExt}`;
10901
10912
  const encoderOpts = videoEncoderOptions(input, engineCfg);
@@ -10906,7 +10917,7 @@ async function runEncodeStage(input) {
10906
10917
  encoderOpts,
10907
10918
  chunkedEncodeSize,
10908
10919
  abortSignal,
10909
- videoEngineCfg,
10920
+ engineCfg,
10910
10921
  onFramesEncoded
10911
10922
  ) : await encodeFramesFromDir(
10912
10923
  framesDir,
@@ -10914,7 +10925,7 @@ async function runEncodeStage(input) {
10914
10925
  videoOnlyPath,
10915
10926
  encoderOpts,
10916
10927
  abortSignal,
10917
- videoEngineCfg,
10928
+ engineCfg,
10918
10929
  onFramesEncoded
10919
10930
  );
10920
10931
  assertNotAborted();
@@ -11255,16 +11266,42 @@ function findMissingFrameRanges(totalFrames, framesDir, frameExt) {
11255
11266
  }
11256
11267
  return ranges;
11257
11268
  }
11258
- function buildMissingFrameRetryBatches(ranges, maxWorkers, workDir, attempt, rangeStart = 0) {
11269
+ function buildMissingFrameRetryBatches(ranges, maxWorkers, workDir, attempt, rangeStart = 0, stride = 1) {
11259
11270
  const workersPerBatch = Math.max(1, Math.floor(maxWorkers));
11260
11271
  const batches = [];
11272
+ const outputDirFor = (batchIndex, workerId) => join25(workDir, `retry-${attempt}-batch-${batchIndex}-worker-${workerId}`);
11273
+ if (stride > 1) {
11274
+ const spans = /* @__PURE__ */ new Map();
11275
+ for (const range of ranges) {
11276
+ for (let frame = range.startFrame; frame < range.endFrame; frame++) {
11277
+ const span = spans.get(frame % stride);
11278
+ if (span) span.last = frame;
11279
+ else spans.set(frame % stride, { first: frame, last: frame });
11280
+ }
11281
+ }
11282
+ const strided = [...spans.values()];
11283
+ for (let i = 0; i < strided.length; i += workersPerBatch) {
11284
+ const batchIndex = batches.length;
11285
+ batches.push(
11286
+ strided.slice(i, i + workersPerBatch).map(({ first, last }, workerId) => ({
11287
+ workerId,
11288
+ startFrame: rangeStart + first,
11289
+ endFrame: rangeStart + last + 1,
11290
+ frameStride: stride,
11291
+ outputDir: outputDirFor(batchIndex, workerId),
11292
+ outputFrameOffset: rangeStart
11293
+ }))
11294
+ );
11295
+ }
11296
+ return batches;
11297
+ }
11261
11298
  for (let i = 0; i < ranges.length; i += workersPerBatch) {
11262
11299
  const batchIndex = batches.length;
11263
11300
  const batch = ranges.slice(i, i + workersPerBatch).map((range, workerId) => ({
11264
11301
  workerId,
11265
11302
  startFrame: rangeStart + range.startFrame,
11266
11303
  endFrame: rangeStart + range.endFrame,
11267
- outputDir: join25(workDir, `retry-${attempt}-batch-${batchIndex}-worker-${workerId}`),
11304
+ outputDir: outputDirFor(batchIndex, workerId),
11268
11305
  outputFrameOffset: rangeStart
11269
11306
  }));
11270
11307
  batches.push(batch);
@@ -11357,8 +11394,16 @@ async function executeDiskCaptureWithAdaptiveRetry(options) {
11357
11394
  currentWorkers,
11358
11395
  attemptWorkDir,
11359
11396
  attempt,
11360
- rangeStart
11361
- ) : [distributeFrames(options.totalFrames, currentWorkers, attemptWorkDir, rangeStart)];
11397
+ rangeStart,
11398
+ options.interleaveFrames ? options.initialWorkerCount : 1
11399
+ ) : [
11400
+ (options.interleaveFrames ? distributeFramesInterleaved : distributeFrames)(
11401
+ options.totalFrames,
11402
+ currentWorkers,
11403
+ attemptWorkDir,
11404
+ rangeStart
11405
+ )
11406
+ ];
11362
11407
  options.dedupPerfs.length = 0;
11363
11408
  try {
11364
11409
  for (const tasks of batches) {
@@ -12470,6 +12515,7 @@ async function executeRenderPipeline(input) {
12470
12515
  height,
12471
12516
  fps: job.config.fps,
12472
12517
  format: captureImageFormat,
12518
+ transparent: needsAlpha,
12473
12519
  quality: captureImageFormat === "png" ? void 0 : resolveCaptureJpegQuality(job.config.quality),
12474
12520
  variables: job.config.variables,
12475
12521
  deviceScaleFactor,
@@ -13502,7 +13548,8 @@ async function executeRenderPipeline(input) {
13502
13548
  abortSignal: executionSignal,
13503
13549
  assertNotAborted,
13504
13550
  onProgress,
13505
- onFrameLanded: (frame) => overlap?.onFrameLanded(frame)
13551
+ onFrameLanded: (frame) => overlap?.onFrameLanded(frame),
13552
+ interleaveFrames: overlap !== null
13506
13553
  })
13507
13554
  );
13508
13555
  let captureRes;
@@ -16023,7 +16070,7 @@ async function compilePlanComposition(projectDir, config, planDir, options) {
16023
16070
  if (probeResult.fileServer) closeFileServerSafely(probeResult.fileServer, "plan", log);
16024
16071
  if (probeResult.probeSession) {
16025
16072
  try {
16026
- const { closeCaptureSession: closeCaptureSession2 } = await import("./src-WEECPY6E.js");
16073
+ const { closeCaptureSession: closeCaptureSession2 } = await import("./src-DAW4JYSR.js");
16027
16074
  await closeCaptureSession2(probeResult.probeSession);
16028
16075
  } catch (err) {
16029
16076
  log.warn("[plan] probe session close failed", {
@@ -17697,7 +17744,7 @@ function startServer(options = {}) {
17697
17744
  });
17698
17745
  async function shutdown(signal) {
17699
17746
  log.info(`Received ${signal}, shutting down`);
17700
- const { drainBrowserPool } = await import("./src-WEECPY6E.js");
17747
+ const { drainBrowserPool } = await import("./src-DAW4JYSR.js");
17701
17748
  await drainBrowserPool().catch(() => {
17702
17749
  });
17703
17750
  const handle = await Promise.race([
@@ -19428,7 +19475,8 @@ async function renderChunk(planDir, chunkIndex, outputChunkPath, options) {
19428
19475
  assertNotAborted: () => {
19429
19476
  },
19430
19477
  frameRange: range,
19431
- onFrameLanded: (frame) => overlap.current?.onFrameLanded(frame)
19478
+ onFrameLanded: (frame) => overlap.current?.onFrameLanded(frame),
19479
+ interleaveFrames: overlap.current !== null
19432
19480
  }).catch(async (captureError) => {
19433
19481
  await overlap.current?.abort();
19434
19482
  overlap.current = null;
@@ -17,7 +17,7 @@ import {
17
17
  } from "./chunk-AWDFDFI3.js";
18
18
  import {
19
19
  isBlockedNetworkHost
20
- } from "./chunk-UUFY6A7I.js";
20
+ } from "./chunk-75KIZWAD.js";
21
21
  import {
22
22
  DOMParser,
23
23
  parseHTML
@@ -11,7 +11,7 @@ import {
11
11
  DEFAULT_REGISTRY_URL,
12
12
  fetchItemManifest,
13
13
  fetchRegistryManifest
14
- } from "./chunk-BERGVZKN.js";
14
+ } from "./chunk-CXTXB2LZ.js";
15
15
 
16
16
  // src/registry/resolver.ts
17
17
  function defaultWarn(message) {
@@ -6,27 +6,27 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  resolveProject
9
- } from "./chunk-BIZPUWBG.js";
9
+ } from "./chunk-3HTXEXQ6.js";
10
10
  import {
11
11
  serveStaticProjectHtml
12
- } from "./chunk-NC3TVM27.js";
12
+ } from "./chunk-AQLRXGNN.js";
13
13
  import {
14
14
  AUDIT_SEEK_OPTIONS,
15
15
  installPageFunctionGuard,
16
16
  seekCompositionTimeline,
17
17
  waitForCompositionFonts,
18
18
  waitForRuntimeReady
19
- } from "./chunk-ML4IULLQ.js";
19
+ } from "./chunk-REFMKHRE.js";
20
20
  import {
21
21
  launchManagedBrowser,
22
22
  resolveManagedGpuMode
23
- } from "./chunk-TTFHBTXQ.js";
23
+ } from "./chunk-VOKI2HSE.js";
24
24
  import {
25
25
  gotoWhenSent
26
26
  } from "./chunk-MOEGCMKI.js";
27
27
  import {
28
28
  pageNavigationTimeoutMs
29
- } from "./chunk-I6A2B3IJ.js";
29
+ } from "./chunk-L5IKISP2.js";
30
30
  import {
31
31
  defineCommand
32
32
  } from "./chunk-S3S4TGEH.js";
@@ -40,7 +40,7 @@ import {
40
40
  import {
41
41
  printDeprecationNotice,
42
42
  withMeta
43
- } from "./chunk-3YGSZSEN.js";
43
+ } from "./chunk-GZCACSED.js";
44
44
  import {
45
45
  normalizeErrorMessage
46
46
  } from "./chunk-T2EUWCJE.js";
@@ -715,7 +715,7 @@ async function collectTweenBoundaries(page) {
715
715
  });
716
716
  }
717
717
  async function bundleProjectHtml(projectDir) {
718
- const { bundleToSingleHtml } = await import("./compiler-LVNWLZCX.js");
718
+ const { bundleToSingleHtml } = await import("./compiler-XYZMBTYR.js");
719
719
  return bundleToSingleHtml(projectDir);
720
720
  }
721
721
  async function alignViewportToComposition(page, url) {
@@ -732,15 +732,15 @@ async function alignViewportToComposition(page, url) {
732
732
  await gotoWhenSent(page, url, pageNavigationTimeoutMs());
733
733
  }
734
734
  async function runLayoutAudit(projectDir, opts) {
735
- const { ensureBrowser } = await import("./manager-BWU4U7DV.js");
735
+ const { ensureBrowser } = await import("./manager-F34TSFV6.js");
736
736
  const puppeteer = await import("puppeteer-core");
737
- const { buildChromeArgs } = await import("./src-WEECPY6E.js");
737
+ const { buildChromeArgs } = await import("./src-DAW4JYSR.js");
738
738
  const {
739
739
  assertWebGpuAdapterAvailable,
740
740
  compositionRequiresWebGpu,
741
741
  resolveLocalBrowserGpuMode,
742
742
  resolveLocalWebGpu
743
- } = await import("./gpuPolicy-RZ2OUY4M.js");
743
+ } = await import("./gpuPolicy-GETTDB3G.js");
744
744
  const html = await bundleProjectHtml(projectDir);
745
745
  const server = await serveStaticProjectHtml(
746
746
  projectDir,
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  getMimeType,
9
9
  injectMediaCodecMapIntoHtml
10
- } from "./chunk-HXHSGDU6.js";
10
+ } from "./chunk-IB6ICAI7.js";
11
11
  import {
12
12
  PROXY_VARIANT_CONFIG,
13
13
  ProxyCapacityError,
@@ -18,20 +18,20 @@ import {
18
18
  recordProxyRequest,
19
19
  resolveProxy,
20
20
  resolveProxyVariantRequest
21
- } from "./chunk-DRTUJVLE.js";
21
+ } from "./chunk-CL6ZTNQH.js";
22
22
  import {
23
23
  findStageProxyBox
24
- } from "./chunk-ZFBET3PD.js";
24
+ } from "./chunk-JCS7WFRM.js";
25
25
  import {
26
26
  resolveAutoProxy
27
- } from "./chunk-4VZAIVZQ.js";
27
+ } from "./chunk-4OPDZMV6.js";
28
28
  import {
29
29
  PREVIEW_PROXY_BOX_PARAM,
30
30
  parsePreviewProxyBox
31
- } from "./chunk-G7RKSAKS.js";
31
+ } from "./chunk-LEQU6P6H.js";
32
32
  import {
33
33
  decodeWellFormedEscapes
34
- } from "./chunk-BSQ7XANM.js";
34
+ } from "./chunk-2BGOB2QK.js";
35
35
 
36
36
  // src/utils/staticProjectServer.ts
37
37
  import { createServer, request as httpRequest } from "http";
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  detectGpuEncoder
9
- } from "./chunk-UUFY6A7I.js";
9
+ } from "./chunk-75KIZWAD.js";
10
10
  import {
11
11
  runCancellableProcess
12
12
  } from "./chunk-BL4U6U52.js";
@@ -23,7 +23,7 @@ import {
23
23
  } from "./chunk-FXMKHHPO.js";
24
24
  import {
25
25
  getSystemMeta
26
- } from "./chunk-BQA3X7TI.js";
26
+ } from "./chunk-QSFWGZG6.js";
27
27
  import {
28
28
  hostAnswers
29
29
  } from "./chunk-K4WIOZFP.js";
@@ -37,7 +37,7 @@ import {
37
37
  } from "./chunk-PSX5SF2N.js";
38
38
  import {
39
39
  VERSION
40
- } from "./chunk-KPUTRG54.js";
40
+ } from "./chunk-MS4BAXOQ.js";
41
41
 
42
42
  // src/telemetry/transport.ts
43
43
  import { spawn } from "child_process";
@@ -8,7 +8,7 @@ import {
8
8
  flush,
9
9
  shouldTrack,
10
10
  trackEvent
11
- } from "./chunk-QP4UWICL.js";
11
+ } from "./chunk-B22YBW5W.js";
12
12
  import {
13
13
  CliRuntimeError
14
14
  } from "./chunk-JVBRJMOP.js";
@@ -17,7 +17,7 @@ import {
17
17
  } from "./chunk-634HSJ3J.js";
18
18
  import {
19
19
  getPowerState
20
- } from "./chunk-BQA3X7TI.js";
20
+ } from "./chunk-QSFWGZG6.js";
21
21
  import {
22
22
  readConfig
23
23
  } from "./chunk-PSX5SF2N.js";
@@ -0,0 +1,36 @@
1
+ import { createRequire as __hf_createRequire } from "node:module";
2
+ import { fileURLToPath as __hf_fileURLToPath } from "node:url";
3
+ import { dirname as __hf_dirname } from "node:path";
4
+ var require = __hf_createRequire(import.meta.url);
5
+ var __filename = __hf_fileURLToPath(import.meta.url);
6
+ var __dirname = __hf_dirname(__filename);
7
+ import {
8
+ isPathInside
9
+ } from "./chunk-2BGOB2QK.js";
10
+ import {
11
+ parseHTML
12
+ } from "./chunk-SDYDNHEE.js";
13
+
14
+ // src/utils/mountedCompositions.ts
15
+ import { existsSync, readFileSync } from "fs";
16
+ import { relative, resolve } from "path";
17
+ function projectCompositionFiles(projectDir, entry = "index.html") {
18
+ const files = [];
19
+ const visit = (file) => {
20
+ if (files.includes(file)) return;
21
+ const path = resolve(projectDir, file);
22
+ if (!isPathInside(path, projectDir) || !existsSync(path)) return;
23
+ files.push(file);
24
+ const { document } = parseHTML(readFileSync(path, "utf8"));
25
+ for (const host of document.querySelectorAll("[data-composition-src]")) {
26
+ const src = host.getAttribute("data-composition-src");
27
+ if (src) visit(relative(projectDir, resolve(projectDir, src)).split("\\").join("/"));
28
+ }
29
+ };
30
+ visit(entry);
31
+ return files;
32
+ }
33
+
34
+ export {
35
+ projectCompositionFiles
36
+ };
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  updateCheckDisabled
9
- } from "./chunk-3YGSZSEN.js";
9
+ } from "./chunk-GZCACSED.js";
10
10
  import {
11
11
  hostAnswers
12
12
  } from "./chunk-K4WIOZFP.js";
@@ -41,6 +41,7 @@ var TEXT_EXT = /* @__PURE__ */ new Set([
41
41
  ".yaml"
42
42
  ]);
43
43
  var DEFAULT_REPO_SLUG = "heygen-com/hyperframes";
44
+ var REPO_SLUG_PATTERN = /^[\w.-]+\/[\w.-]+$/;
44
45
  var MANIFEST_FILE = "skills-manifest.json";
45
46
  var FETCH_TIMEOUT_MS = 4e3;
46
47
  var ENTRY_SKILL = "hyperframes";
@@ -297,13 +298,25 @@ async function fetchManifest(url) {
297
298
  }
298
299
  }
299
300
  async function remoteHeadSha(repoSlug2) {
301
+ if (!REPO_SLUG_PATTERN.test(repoSlug2)) return null;
300
302
  try {
301
303
  const { stdout } = await execFileAsync(
302
304
  "git",
303
- ["ls-remote", `https://github.com/${repoSlug2}.git`, "refs/heads/main"],
305
+ [
306
+ "-c",
307
+ "credential.helper=",
308
+ "ls-remote",
309
+ `https://github.com/${repoSlug2}.git`,
310
+ "refs/heads/main"
311
+ ],
304
312
  {
305
313
  timeout: FETCH_TIMEOUT_MS,
306
- env: { ...process.env, GIT_TERMINAL_PROMPT: "0" },
314
+ env: {
315
+ ...process.env,
316
+ GIT_TERMINAL_PROMPT: "0",
317
+ GIT_ASKPASS: "",
318
+ GCM_INTERACTIVE: "never"
319
+ },
307
320
  windowsHide: true
308
321
  }
309
322
  );
@@ -10,7 +10,7 @@ import {
10
10
  import {
11
11
  DISTRIBUTED_FPS,
12
12
  isDistributedFps
13
- } from "./chunk-G7RKSAKS.js";
13
+ } from "./chunk-LEQU6P6H.js";
14
14
  import {
15
15
  parseHTML
16
16
  } from "./chunk-SDYDNHEE.js";
@@ -21,13 +21,13 @@ import {
21
21
  emitWords,
22
22
  getPreparedWavDurationSeconds,
23
23
  prepareWav
24
- } from "./chunk-ACH5ZR7X.js";
24
+ } from "./chunk-WAXBJLV6.js";
25
25
  import {
26
26
  stoppedByCancelSignal
27
- } from "./chunk-FZ3R5XOH.js";
27
+ } from "./chunk-MO4VKSFT.js";
28
28
  import {
29
29
  verifies
30
- } from "./chunk-I4VEFPZE.js";
30
+ } from "./chunk-QGB5DECO.js";
31
31
  import {
32
32
  PARAKEET_MODEL_LABEL,
33
33
  SHERPA_ERROR_PREFIX,