hyperframes 0.8.199 → 0.8.201

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 (192) hide show
  1. package/dist/{add-7LA5CGDM.js → add-33XNCMY4.js} +15 -18
  2. package/dist/{animatedGifPrep-NB2MZTMQ.js → animatedGifPrep-MI7Z4OYQ.js} +9 -12
  3. package/dist/api.js +17 -20
  4. package/dist/{asset-4BIOI6GN.js → asset-RMRQN24O.js} +2 -2
  5. package/dist/{assetCataloger-TX5KL5VV.js → assetCataloger-KWTQNFUU.js} +9 -12
  6. package/dist/{audio-ZGMIIDNU.js → audio-SQDZZS6X.js} +34 -32
  7. package/dist/{auth-OQ5PWEUG.js → auth-PNC6K5ZD.js} +2 -2
  8. package/dist/{autoUpdate-QREPD6I4.js → autoUpdate-MBZFLUF2.js} +2 -2
  9. package/dist/{backgroundChecks-5CJPJX2O.js → backgroundChecks-ZMSPA6TK.js} +3 -3
  10. package/dist/backgroundChecksWorker.js +3 -3
  11. package/dist/{batchRender-BW2ZK4MA.js → batchRender-2MMOZRMW.js} +5 -7
  12. package/dist/{beats-I5XARMDB.js → beats-GDLNPR4A.js} +33 -24
  13. package/dist/{benchmark-S2WWY4U7.js → benchmark-AUKB3XDF.js} +12 -14
  14. package/dist/{browser-PAXVQYQZ.js → browser-C3AU5TST.js} +6 -6
  15. package/dist/{bundleWithLocalizedFonts-3ED26VCR.js → bundleWithLocalizedFonts-G3UT65XI.js} +2 -2
  16. package/dist/{capture-23574YLP.js → capture-EKNPCFPF.js} +16 -18
  17. package/dist/{capture-OVITDMKK.js → capture-XGBPNGC5.js} +2 -2
  18. package/dist/{captureCompositionFrame-KAUUHCOL.js → captureCompositionFrame-4HHLPTDH.js} +14 -17
  19. package/dist/{catalog-CM3VXSQE.js → catalog-HLDNEJX3.js} +15 -18
  20. package/dist/{catch-up-HMFREOC2.js → catch-up-LRFV4LJO.js} +6 -6
  21. package/dist/{check-CYJZ6CGT.js → check-XWHWGNYE.js} +40 -43
  22. package/dist/{checkBrowser-GZJ3W2OP.js → checkBrowser-KSOBXPJ3.js} +35 -38
  23. package/dist/{chunk-MMQ52NIZ.js → chunk-2BGOB2QK.js} +500 -17
  24. package/dist/{chunk-D5CZCYYT.js → chunk-2FA53V5S.js} +2 -2
  25. package/dist/{chunk-FV5GKRAO.js → chunk-3J5KO4EJ.js} +8 -10
  26. package/dist/{chunk-UMBCYIFE.js → chunk-47NZWTJL.js} +2 -2
  27. package/dist/{chunk-JFIEV2J4.js → chunk-53E45AKI.js} +60 -34
  28. package/dist/{chunk-BFYDVTD3.js → chunk-6UFEOVR5.js} +2 -2
  29. package/dist/{chunk-M6IMQBK6.js → chunk-6XGO7ZKS.js} +1 -1
  30. package/dist/{chunk-UVQLSMAR.js → chunk-74UH2KGI.js} +30 -6
  31. package/dist/{chunk-TVR744AS.js → chunk-7EJ7OZGC.js} +16 -3
  32. package/dist/{chunk-7QB46WTF.js → chunk-7WEGIXI3.js} +2 -2
  33. package/dist/{chunk-TTWFTEUG.js → chunk-A7YO6YSD.js} +6 -6
  34. package/dist/{chunk-HK45GJMI.js → chunk-AK2MOAJY.js} +192 -65
  35. package/dist/{chunk-TF7LCULS.js → chunk-B67P2WP3.js} +2 -2
  36. package/dist/chunk-B7CYKBXQ.js +36 -0
  37. package/dist/{chunk-DMRDGGNM.js → chunk-CD5ZU6PN.js} +9 -7
  38. package/dist/{chunk-IC6BO4GU.js → chunk-CV32PRH3.js} +65 -21
  39. package/dist/{chunk-UBSAHYWA.js → chunk-DS3XITZ5.js} +2 -2
  40. package/dist/{chunk-ILFDFMYJ.js → chunk-DWULQYOQ.js} +3 -3
  41. package/dist/{chunk-VHBBV5DH.js → chunk-ERUINDRT.js} +62 -25
  42. package/dist/{chunk-FMTJ4I6I.js → chunk-FDWN4XAD.js} +1 -1
  43. package/dist/{chunk-K5O6JTJQ.js → chunk-GC6N2LH5.js} +10 -12
  44. package/dist/{chunk-5CTORVUM.js → chunk-GHROWWUN.js} +32 -1
  45. package/dist/{chunk-T4IJMVCB.js → chunk-GKXH4C2B.js} +1 -1
  46. package/dist/{chunk-QYOUK3UO.js → chunk-GNX3BCQP.js} +2 -2
  47. package/dist/{chunk-IELYOY6S.js → chunk-I4DHHX7E.js} +3 -3
  48. package/dist/{chunk-FZ2VPLXL.js → chunk-IDRUJFT4.js} +2 -2
  49. package/dist/{chunk-KFZPWUPN.js → chunk-IFOZZYHK.js} +7 -7
  50. package/dist/{chunk-3CFTCM7X.js → chunk-IHQBTZHE.js} +3 -3
  51. package/dist/{chunk-OZVRCLEN.js → chunk-IIH24PKY.js} +2 -2
  52. package/dist/{chunk-K65XUUJX.js → chunk-ITJAHKYO.js} +1 -1
  53. package/dist/{chunk-6JR2XUEE.js → chunk-IXXVS2Z4.js} +1 -1
  54. package/dist/{chunk-IMVTN367.js → chunk-JOI7TNCX.js} +2 -2
  55. package/dist/{chunk-KG3BVLA4.js → chunk-JXLHLR26.js} +1 -1
  56. package/dist/{chunk-DY53XJ3P.js → chunk-K2AUGELJ.js} +1 -1
  57. package/dist/{chunk-VWPU6URV.js → chunk-L33EDCSR.js} +5 -5
  58. package/dist/{chunk-BYLC52GJ.js → chunk-LVEXHBSH.js} +1 -1
  59. package/dist/{chunk-XOTUPVIF.js → chunk-MSGWR7WP.js} +9 -1
  60. package/dist/{chunk-DWUOGV3M.js → chunk-ORMTNJBS.js} +3 -3
  61. package/dist/{chunk-Z6Q4ASCD.js → chunk-Q537KXWA.js} +153 -44
  62. package/dist/{chunk-YAMRODVV.js → chunk-Q6SHXSZX.js} +3 -2
  63. package/dist/{chunk-GQVTTWZF.js → chunk-QB4K2EWI.js} +1 -1
  64. package/dist/{chunk-T6AGUTZJ.js → chunk-QSFWGZG6.js} +7 -38
  65. package/dist/{chunk-XP55QWOB.js → chunk-QTWSMJ22.js} +15 -15
  66. package/dist/{chunk-M2GO2AAS.js → chunk-QXBZ6VBL.js} +1 -1
  67. package/dist/{chunk-65HUC64P.js → chunk-QYTGUWNF.js} +1 -1
  68. package/dist/{chunk-CMHVLASW.js → chunk-RVKJDAYE.js} +1 -1
  69. package/dist/{chunk-HRZ6ZBKO.js → chunk-SEAHCCQ4.js} +70 -51
  70. package/dist/{chunk-7SKOZHIY.js → chunk-SGKG7DNX.js} +3 -3
  71. package/dist/{chunk-6RRO4GE3.js → chunk-SIZYTGG4.js} +1 -1
  72. package/dist/{chunk-4QG64APO.js → chunk-SZNCAINN.js} +1 -1
  73. package/dist/{chunk-S5WSJVHP.js → chunk-T33GLS6C.js} +3 -3
  74. package/dist/{chunk-SQQZUUK6.js → chunk-TAXGZAXM.js} +10 -10
  75. package/dist/{chunk-GQACWAOC.js → chunk-TOT3CLUK.js} +1 -1
  76. package/dist/{chunk-2KZSKIYY.js → chunk-TYRDDIIH.js} +1 -1
  77. package/dist/{chunk-HOAXHVRR.js → chunk-U2EK5MFR.js} +10 -10
  78. package/dist/{chunk-QXPZGDTI.js → chunk-UIIGEPYY.js} +3 -3
  79. package/dist/{chunk-W2LGJSEN.js → chunk-UIOZIIB7.js} +33 -3
  80. package/dist/{chunk-L6FG62QM.js → chunk-UKB62QOT.js} +446 -151
  81. package/dist/{chunk-JN63IPHT.js → chunk-UOSTDTBF.js} +1 -1
  82. package/dist/{chunk-LPDNR3R4.js → chunk-VCVUEK65.js} +3 -3
  83. package/dist/{chunk-PO5PAROC.js → chunk-VF2VMKNI.js} +3 -3
  84. package/dist/{chunk-XVZZQVT4.js → chunk-VKTUZP7U.js} +1 -1
  85. package/dist/{chunk-NY2OH5XD.js → chunk-WO3XZ6HC.js} +1 -1
  86. package/dist/{chunk-7YZME6DE.js → chunk-X72DJZCM.js} +1 -1
  87. package/dist/{chunk-PGDWNIOK.js → chunk-XDMZY3H7.js} +57 -5
  88. package/dist/{chunk-QH4425AL.js → chunk-XG365L6T.js} +1 -1
  89. package/dist/{chunk-NUZMP7SV.js → chunk-XHVQIOOF.js} +19 -19
  90. package/dist/{chunk-FHDKRWQN.js → chunk-XONIZ5CH.js} +13 -13
  91. package/dist/{chunk-RYCANWOM.js → chunk-YBJECXQJ.js} +5 -5
  92. package/dist/{chunk-AHZLNYZY.js → chunk-YTBE4JCX.js} +1 -1
  93. package/dist/{chunk-VLVQQJOX.js → chunk-ZDVJXWEG.js} +22 -3
  94. package/dist/chunk-ZKHXN2BV.js +3983 -0
  95. package/dist/{clean-QX6LKOWJ.js → clean-EUKURSX2.js} +22 -25
  96. package/dist/cli.js +54 -54
  97. package/dist/{cloud-ASA7Y3HA.js → cloud-LJDRNQ2N.js} +4 -4
  98. package/dist/{cloudrun-LK4GJWUZ.js → cloudrun-AXVFD6KV.js} +7 -9
  99. package/dist/{compare-426Z2ND6.js → compare-T3LMATAF.js} +32 -35
  100. package/dist/{compiler-WER7FC5O.js → compiler-KH6DMHIJ.js} +6 -10
  101. package/dist/{component-HTDWZMEG.js → component-2FOHCMP2.js} +3 -3
  102. package/dist/{compositions-EKRLQ5TU.js → compositions-REQ6ARAO.js} +14 -17
  103. package/dist/{delete-KHXM6R7A.js → delete-KEPP2QAZ.js} +2 -2
  104. package/dist/{deploy-WJ5JQJBD.js → deploy-N756FEME.js} +1 -1
  105. package/dist/{deterministicFonts-RMA7GDJC.js → deterministicFonts-4FULD3AS.js} +2 -2
  106. package/dist/{dist-EYJATCTF.js → dist-5ULOGA6A.js} +30 -16
  107. package/dist/{dist-ONHJ6ZDA.js → dist-TFHABY7N.js} +2 -4
  108. package/dist/{doctor-NB3G2GDG.js → doctor-2SJPC4WZ.js} +15 -18
  109. package/dist/{dotEnv-64S3VKGH.js → dotEnv-RPHCAUBZ.js} +1 -1
  110. package/dist/{events-LH6W5ZCV.js → events-24ZE2PKB.js} +5 -5
  111. package/dist/{events-6EL5NIJV.js → events-U53QH4XZ.js} +4 -4
  112. package/dist/{feedback-2GNY725M.js → feedback-QFMLDLUN.js} +11 -13
  113. package/dist/{ffmpeg-XX3O53B3.js → ffmpeg-7XNWNO7M.js} +9 -12
  114. package/dist/{figma-X7KKOOXB.js → figma-B4JO44CV.js} +3 -3
  115. package/dist/fontLocalizeCli.js +12 -15
  116. package/dist/{get-M57U7QCX.js → get-7CFVCINR.js} +2 -2
  117. package/dist/{gpuPolicy-GIBBYBI5.js → gpuPolicy-MU7CFSAF.js} +9 -12
  118. package/dist/{grade-compare-XNY37UYQ.js → grade-compare-Q23U2HGS.js} +33 -36
  119. package/dist/{help-ZXSPZBUG.js → help-M67MEDV3.js} +1 -1
  120. package/dist/{history-G5B4IPBH.js → history-I2PZXOFL.js} +9 -9
  121. package/dist/hyperframe.manifest.json +1 -1
  122. package/dist/hyperframe.runtime.iife.js +66 -62
  123. package/dist/hyperframes-player.global.js +3 -3
  124. package/dist/{info-ZWZDG54W.js → info-Z2MX54IE.js} +11 -13
  125. package/dist/{init-F4XMU6SV.js → init-SWH5KZO2.js} +30 -33
  126. package/dist/{inspect-6VXFMQRR.js → inspect-WBBDB3YS.js} +33 -36
  127. package/dist/{installer-4M3Y5T5F.js → installer-DQIHGUBJ.js} +6 -9
  128. package/dist/{keyframes-3U466AWX.js → keyframes-PSNEUS6P.js} +8 -8
  129. package/dist/{lambda-OPSTAEF6.js → lambda-KSZFMQ3L.js} +9 -11
  130. package/dist/{layout-B3MXD3F3.js → layout-AAOI7W2M.js} +33 -36
  131. package/dist/{lint-TVOEGW63.js → lint-GGNVITIK.js} +10 -12
  132. package/dist/{lintProject-FKPKSU6M.js → lintProject-Q36Y3AHA.js} +2 -4
  133. package/dist/{list-M5GQSFVT.js → list-OFPDL2AM.js} +2 -2
  134. package/dist/{login-HBHGZIDN.js → login-MZAHGGP4.js} +4 -4
  135. package/dist/{manager-COSJVRAE.js → manager-F34TSFV6.js} +3 -3
  136. package/dist/{manager-VLIJARMF.js → manager-ZOFTZTRY.js} +10 -13
  137. package/dist/{media-treatment-RQZ437VS.js → media-treatment-PF67GSUD.js} +67 -43
  138. package/dist/{models-2CCKVBTR.js → models-WR7CL54R.js} +13 -16
  139. package/dist/{motionShot-3IFRSICA.js → motionShot-ISLDWLIU.js} +18 -21
  140. package/dist/{normalize-audio-23H2MBDP.js → normalize-audio-D7AH5GFZ.js} +45 -27
  141. package/dist/{open-J33KT3G7.js → open-HPVBB2CX.js} +15 -18
  142. package/dist/{parakeetRunner-QTXNEMVY.js → parakeetRunner-P6PE4WXG.js} +14 -17
  143. package/dist/{pipeline-2ECWWEBD.js → pipeline-XKBZG2CM.js} +10 -13
  144. package/dist/{play-G5777L7A.js → play-QXHO47ZH.js} +24 -27
  145. package/dist/{preflight-NVFB4HXQ.js → preflight-KZCU66ES.js} +12 -15
  146. package/dist/{present-4EI2BE4Z.js → present-ERGC5PR4.js} +20 -23
  147. package/dist/{preview-HYCIDZ52.js → preview-AGTOQIE7.js} +21 -24
  148. package/dist/{producer-6JAATJVD.js → producer-4ONVM5A2.js} +1 -1
  149. package/dist/{projectConfig-XPGN76VV.js → projectConfig-7T4VY6RJ.js} +8 -11
  150. package/dist/{publication-YRZ7EBUV.js → publication-J5TS5VR3.js} +4 -6
  151. package/dist/{publish-UIDHN7KD.js → publish-BSOVXRF4.js} +11 -14
  152. package/dist/{remove-background-LPQP4WBN.js → remove-background-645NVCGL.js} +11 -14
  153. package/dist/{render-LFJQNVCK.js → render-55TYPJ5U.js} +7 -9
  154. package/dist/{render-NZSNQFYW.js → render-IAVH33YG.js} +38 -34
  155. package/dist/{render-DT3OCUCV.js → render-R3L44QAP.js} +36 -38
  156. package/dist/{render-batch-QI2A45WH.js → render-batch-JWWLQ7ZC.js} +7 -9
  157. package/dist/renderSetupWorker.js +5 -7
  158. package/dist/{resolver-4YDXG4PP.js → resolver-DBAFWC4F.js} +6 -8
  159. package/dist/{sherpa-XLKWFYFO.js → sherpa-UPWG6TKY.js} +13 -16
  160. package/dist/skills/hyperframes/references/runtimes.md +26 -0
  161. package/dist/skills/media-use/references/mixing.md +1 -1
  162. package/dist/skills/media-use/scripts/lib/grade-analyzer.mjs +38 -26
  163. package/dist/{skills-OVVLZHF5.js → skills-ILH52UL4.js} +7 -7
  164. package/dist/{skillsUpdateCheck-Y2UQA7I5.js → skillsUpdateCheck-ZHFDGMEL.js} +3 -3
  165. package/dist/{snapshot-7NVB5WSO.js → snapshot-WMVHIQVQ.js} +94 -61
  166. package/dist/{src-ACAFJXAJ.js → src-46QTOHZE.js} +11 -14
  167. package/dist/{src-QQPHMIJ7.js → src-HPLELQRK.js} +12 -11
  168. package/dist/{staticProjectServer-JUN6BRTW.js → staticProjectServer-FHP2YQFV.js} +19 -22
  169. package/dist/{status-H5WLKQDS.js → status-LR7VXITS.js} +2 -2
  170. package/dist/studio/assets/{hyperframes-player-BDtBfwof.js → hyperframes-player-BNeO6YSP.js} +1 -1
  171. package/dist/studio/assets/{index-BFfBBQMu.js → index-CZWE0FI8.js} +162 -162
  172. package/dist/studio/assets/{index--W_0fuR8.js → index-DiNYtcMK.js} +1 -1
  173. package/dist/studio/index.html +1 -1
  174. package/dist/{studio-api-D76Q4Q2N.js → studio-api-5YHQ4Y2D.js} +12 -15
  175. package/dist/{studioServer-HG3RFAOY.js → studioServer-P6IC76SV.js} +54 -57
  176. package/dist/{system-7F3UEHQT.js → system-YD4AW5ZX.js} +4 -3
  177. package/dist/{telemetry-Q2EHWVO4.js → telemetry-WZ7OGFWQ.js} +5 -5
  178. package/dist/{timeline-WDQCCETQ.js → timeline-U6S7BGMI.js} +24 -26
  179. package/dist/{tokens-2GJWP2HY.js → tokens-FPUYNZSV.js} +2 -2
  180. package/dist/{transcribe-Z63Y53GQ.js → transcribe-DJX4E2PE.js} +19 -22
  181. package/dist/{transcribe-SRLAY6RG.js → transcribe-DZHTKXI5.js} +12 -15
  182. package/dist/{updateCheck-MJ6NDE3T.js → updateCheck-2LHWRDE7.js} +2 -2
  183. package/dist/{upgrade-D5XEX3XE.js → upgrade-WAQHCAUS.js} +2 -2
  184. package/dist/{urlDownloader-R7BZ47TY.js → urlDownloader-HZQPXQET.js} +8 -11
  185. package/dist/{validate-F5BIDZLN.js → validate-D6XJ7OSS.js} +27 -30
  186. package/dist/{video-QUG5OG5Q.js → video-A4CQ4WDL.js} +9 -12
  187. package/dist/warmCheck.js +40 -43
  188. package/package.json +1 -1
  189. package/dist/chunk-2ONVJ7NT.js +0 -3901
  190. package/dist/chunk-BSQ7XANM.js +0 -210
  191. package/dist/chunk-PKZ7RK5N.js +0 -281
  192. package/dist/chunk-X7HBSTCZ.js +0 -53
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  resolveConfig,
9
9
  usesSoftwareWebGpu
10
- } from "./chunk-L6FG62QM.js";
10
+ } from "./chunk-UKB62QOT.js";
11
11
 
12
12
  // src/browser/gpuPolicy.ts
13
13
  function resolveLocalBrowserGpuMode(browserGpuArg, envMode = process.env.PRODUCER_BROWSER_GPU_MODE) {
@@ -17,7 +17,7 @@ function resolveLocalBrowserGpuMode(browserGpuArg, envMode = process.env.PRODUCE
17
17
  return "auto";
18
18
  }
19
19
  async function resolveCaptureBrowserGpuMode(requestedMode, chromePath, probeLifecycle) {
20
- const { resolveBrowserGpuMode } = await import("./src-QQPHMIJ7.js");
20
+ const { resolveBrowserGpuMode } = await import("./src-HPLELQRK.js");
21
21
  return resolveBrowserGpuMode(requestedMode, { chromePath, probeLifecycle });
22
22
  }
23
23
  function resolveLocalWebGpu(browserGpuMode, requiresWebGpu) {
@@ -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
+ };
@@ -16,7 +16,7 @@ import {
16
16
  } from "./chunk-5ETJX6WM.js";
17
17
  import {
18
18
  runEnvironmentChecks
19
- } from "./chunk-3CFTCM7X.js";
19
+ } from "./chunk-IHQBTZHE.js";
20
20
  import {
21
21
  OPTIONAL_PACKAGES,
22
22
  installedOptionalPackageVersion
@@ -29,24 +29,26 @@ import {
29
29
  } from "./chunk-ZTZA4UWZ.js";
30
30
  import {
31
31
  resolveExtractCacheDir
32
- } from "./chunk-L6FG62QM.js";
32
+ } from "./chunk-UKB62QOT.js";
33
33
  import {
34
- getAvailableMemoryMb,
35
34
  getFreeDiskMb,
36
35
  getShmSizeMb,
37
36
  getSystemMeta
38
- } from "./chunk-T6AGUTZJ.js";
37
+ } from "./chunk-QSFWGZG6.js";
38
+ import {
39
+ getAvailableMemoryMb
40
+ } from "./chunk-UIOZIIB7.js";
39
41
  import {
40
42
  getUpdateMeta,
41
43
  withMeta
42
- } from "./chunk-4QG64APO.js";
44
+ } from "./chunk-SZNCAINN.js";
43
45
  import {
44
46
  CONFIG_PATH,
45
47
  withFileLock
46
48
  } from "./chunk-PSX5SF2N.js";
47
49
  import {
48
50
  VERSION
49
- } from "./chunk-OZVRCLEN.js";
51
+ } from "./chunk-IIH24PKY.js";
50
52
  import {
51
53
  normalizeErrorMessage
52
54
  } from "./chunk-T2EUWCJE.js";
@@ -232,7 +234,7 @@ function checkEnvironment() {
232
234
  return { ok: true, detail: parts.join(" \xB7 ") };
233
235
  }
234
236
  async function checkWhisper() {
235
- const { findWhisper, getInstallInstructions } = await import("./manager-VLIJARMF.js");
237
+ const { findWhisper, getInstallInstructions } = await import("./manager-ZOFTZTRY.js");
236
238
  const result = findWhisper();
237
239
  if (result) {
238
240
  return { ok: true, detail: result.executablePath };
@@ -24,35 +24,31 @@ import {
24
24
  resolveCompositionDuration
25
25
  } from "./chunk-CZGHFATT.js";
26
26
  import {
27
+ COLOR_GRADING_SOURCE_TAGS,
28
+ COMPOSITION_ATTRIBUTES,
27
29
  COMPOSITION_VARIABLE_TYPES,
28
30
  FONT_ALIAS_KEYS,
29
31
  HTML_BODY_CSS_HEIGHT_FIRST_RE,
30
32
  HTML_BODY_CSS_WIDTH_FIRST_RE,
31
- VIEWPORT_META_SIZE_RE,
32
- extractMediaSrcMutations,
33
- isCompositionVariable,
34
- isSafeMediaUrl,
35
- resolveAliasDisplayName
36
- } from "./chunk-PKZ7RK5N.js";
37
- import {
38
- COLOR_GRADING_SOURCE_TAGS,
39
- COMPOSITION_ATTRIBUTES,
40
33
  MEDIA_START_BASIS_ATTR,
34
+ VIEWPORT_META_SIZE_RE,
41
35
  checkSubCompositionUsability,
42
36
  compositionOriginSeconds,
43
37
  cutToHostSlots,
38
+ extractMediaSrcMutations,
39
+ isCompositionVariable,
40
+ isSafeMediaUrl,
44
41
  parseNumeric,
42
+ readAuthoredDurationSeconds,
45
43
  readClipTiming,
44
+ readDataDurationSeconds,
45
+ resolveAliasDisplayName,
46
+ resolveMediaDuration,
46
47
  resolveMediaStartSeconds,
48
+ rewriteAssetPath,
47
49
  spansOverlap,
48
50
  validateColorGradingContract
49
- } from "./chunk-MMQ52NIZ.js";
50
- import {
51
- readAuthoredDurationSeconds,
52
- readDataDurationSeconds,
53
- resolveMediaDuration,
54
- rewriteAssetPath
55
- } from "./chunk-BSQ7XANM.js";
51
+ } from "./chunk-2BGOB2QK.js";
56
52
  import {
57
53
  Parser,
58
54
  parseHTML
@@ -4924,6 +4920,19 @@ function selectorAliasesRuntimeHiddenStyle(selector) {
4924
4920
  }
4925
4921
  return unsafe;
4926
4922
  }
4923
+ function selectsOnInlineStyle(selector) {
4924
+ let found = false;
4925
+ try {
4926
+ (0, import_postcss_selector_parser.default)((root) => {
4927
+ root.walkAttributes((node) => {
4928
+ if (node.attribute.toLowerCase() === "style") found = true;
4929
+ });
4930
+ }).processSync(selector);
4931
+ } catch {
4932
+ return false;
4933
+ }
4934
+ return found;
4935
+ }
4927
4936
  var POSITION_PROPERTIES = /* @__PURE__ */ new Set(["left", "top", "right", "bottom", "inset"]);
4928
4937
  function weakIdOf(node) {
4929
4938
  if (node.type === "attribute" && node.attribute.toLowerCase() === "id") {
@@ -5331,6 +5340,7 @@ var coreRules = [
5331
5340
  const findings = [];
5332
5341
  const reportedRepeatedIds = /* @__PURE__ */ new Set();
5333
5342
  const reportedHiddenStyleSelectors = /* @__PURE__ */ new Set();
5343
+ const reportedInlineStyleSelectors = /* @__PURE__ */ new Set();
5334
5344
  const reportedReducedIdSelectors = /* @__PURE__ */ new Set();
5335
5345
  for (const style of styles) {
5336
5346
  let root;
@@ -5363,6 +5373,17 @@ var coreRules = [
5363
5373
  fixHint: `Remove the duplicate ancestor: change \`#${repeatedId} #${repeatedId}\` to \`#${repeatedId}\`.`
5364
5374
  });
5365
5375
  }
5376
+ if (!reportedInlineStyleSelectors.has(selector) && selectsOnInlineStyle(selector)) {
5377
+ reportedInlineStyleSelectors.add(selector);
5378
+ findings.push({
5379
+ code: "inline_style_attribute_selector",
5380
+ severity: "error",
5381
+ message: `Selector "${selector}" reads the inline \`style\` attribute. GSAP writes inline styles every frame, and each write then restyles far more than the animated element, so the preview slows to a crawl.`,
5382
+ selector,
5383
+ fixHint: "Let the runtime hide hidden clips; it already hides their contents. For a state of your own, toggle a class or data attribute from your script and select on that.",
5384
+ snippet: truncateSnippet(rule.toString())
5385
+ });
5386
+ }
5366
5387
  if (!forcesOpacityZero || reportedHiddenStyleSelectors.has(selector) || !selectorAliasesRuntimeHiddenStyle(selector)) {
5367
5388
  continue;
5368
5389
  }
@@ -5372,7 +5393,7 @@ var coreRules = [
5372
5393
  severity: "error",
5373
5394
  message: `Selector "${selector}" observes HyperFrames' runtime-owned hidden style and forces opacity to zero. The renderer hides each native video before copying its computed opacity to the visible replacement frame, so this rule makes both transparent.`,
5374
5395
  selector,
5375
- fixHint: 'Restrict the guard to sub-composition hosts, for example `[data-composition-src][style*="visibility: hidden"]` and `[data-composition-file][style*="visibility: hidden"]`. Do not derive arbitrary element or media opacity from runtime-owned inline visibility.',
5396
+ fixHint: "Remove this rule; the runtime already hides a hidden clip and its contents. To fade or hide something yourself, animate it on the timeline, or toggle a class or data attribute and select on that.",
5376
5397
  snippet: truncateSnippet(rule.toString())
5377
5398
  });
5378
5399
  }
@@ -6343,7 +6364,7 @@ var mediaRules = [
6343
6364
  const source = { id: readAttr(tag.raw, "id") || void 0, raw: tag.raw };
6344
6365
  if (tag.name === "video") {
6345
6366
  if (isAudibleVideoTag(tag.raw)) videos.push([src, source]);
6346
- } else if (tag.name === "audio") {
6367
+ } else if (tag.name === "audio" && readAttr(tag.raw, "data-timeline-role") !== "room-tone") {
6347
6368
  audios.push([src, source]);
6348
6369
  }
6349
6370
  }
@@ -6379,6 +6400,8 @@ var mediaRules = [
6379
6400
  findAudioGroupTimingAttrFindings,
6380
6401
  // audio_group_carve_attr
6381
6402
  findAudioGroupCarveAttrFindings,
6403
+ // audio_group_holds_elements
6404
+ findAudioGroupHoldsElementsFindings,
6382
6405
  findLinkedClipFindings
6383
6406
  ];
6384
6407
  function findVolumeTweenOverridesGainFindings(ctx) {
@@ -6516,6 +6539,26 @@ function findAudioGroupTimingAttrFindings(ctx) {
6516
6539
  }
6517
6540
  return findings;
6518
6541
  }
6542
+ function findAudioGroupHoldsElementsFindings(ctx) {
6543
+ const findings = [];
6544
+ for (const group of ctx.tags) {
6545
+ if (group.name !== "hf-audio-group") continue;
6546
+ const end = group.closeIndex ?? Number.POSITIVE_INFINITY;
6547
+ const held = ctx.tags.filter((tag) => tag.index > group.index && tag.index < end);
6548
+ if (held.length === 0) continue;
6549
+ const elementId = readAttr(group.raw, "id") || void 0;
6550
+ const first = readAttr(held[0].raw, "id");
6551
+ findings.push({
6552
+ code: "audio_group_holds_elements",
6553
+ severity: "warning",
6554
+ message: `${elementId ? `#${elementId}` : "This audio group"} holds ${held.length} element(s), starting with <${held[0].name}${first ? `#${first}` : ""}>. Being inside it routes no audio through the bus (only \`data-audio-group\` does), and while the group has \`data-hidden\` they are hidden and silenced in preview and render.`,
6555
+ elementId,
6556
+ fixHint: "Close the group with `</hf-audio-group>` right after its opening tag (`/>` does not close a custom element), and give clips meant for this bus `data-audio-group`.",
6557
+ snippet: truncateSnippet(group.raw)
6558
+ });
6559
+ }
6560
+ return findings;
6561
+ }
6519
6562
  function findAudioGroupCarveAttrFindings(ctx) {
6520
6563
  const findings = [];
6521
6564
  for (const tag of ctx.tags) {
@@ -7021,13 +7064,14 @@ function variablesDeclarationFindings(tag, tags) {
7021
7064
  code: "invalid_composition_variables_declaration",
7022
7065
  severity: "error",
7023
7066
  message: `data-composition-variables entry [${i}] has a default that does not match its type, or an enum without an options array.`,
7024
- fixHint: "Use number defaults for number variables, boolean defaults for boolean variables, and string defaults for other types. Enum variables also require an options array.",
7067
+ fixHint: "Use number defaults for number variables, boolean defaults for boolean variables, and string defaults for other types. Font/image also accept font {name, source} or image {url, alt?, fit?} objects. Enum variables also require an options array.",
7025
7068
  snippet: truncateSnippet(tag.raw)
7026
7069
  });
7027
7070
  continue;
7028
7071
  }
7029
- const id = String(e.id);
7030
- if ((e.type === "image" || varSrcIds.has(id)) && typeof e.default === "string" && e.default.length > 0 && !isSafeMediaUrl(e.default)) {
7072
+ const id = e.id;
7073
+ const mediaUrl = e.type === "image" && typeof e.default !== "string" ? e.default.url : e.default;
7074
+ if ((e.type === "image" || varSrcIds.has(id)) && typeof mediaUrl === "string" && mediaUrl.length > 0 && !isSafeMediaUrl(mediaUrl)) {
7031
7075
  findings.push({
7032
7076
  code: "unloadable_media_variable_default",
7033
7077
  severity: "error",
@@ -20,7 +20,7 @@ import {
20
20
  typeDirPath,
21
21
  updateRecord,
22
22
  withFigmaErrors
23
- } from "./chunk-NY2OH5XD.js";
23
+ } from "./chunk-WO3XZ6HC.js";
24
24
  import {
25
25
  defineCommand
26
26
  } from "./chunk-S3S4TGEH.js";
@@ -229,7 +229,7 @@ var asset_default = defineCommand({
229
229
  rendered > 0 ? `(${results.length} nodes, ${rendered} rendered in 1 figma request)` : `(${results.length} nodes, all reused from cache \u2014 no figma request)`
230
230
  );
231
231
  }
232
- const { trackFigmaImport } = await import("./telemetry-Q2EHWVO4.js");
232
+ const { trackFigmaImport } = await import("./telemetry-WZ7OGFWQ.js");
233
233
  trackFigmaImport({
234
234
  phase: "asset",
235
235
  reused: results.every((r) => r.reused),
@@ -15,13 +15,13 @@ import {
15
15
  findFFmpeg,
16
16
  findFFprobe,
17
17
  getFFmpegInstallHint
18
- } from "./chunk-QYOUK3UO.js";
18
+ } from "./chunk-GNX3BCQP.js";
19
19
  import {
20
20
  DEFAULT_VP9_CPU_USED,
21
21
  SDR_RGB_TO_BT709_FILTER,
22
22
  SDR_RGB_TO_TAGGED_BT709_FILTER,
23
23
  renderProvenanceArgs
24
- } from "./chunk-L6FG62QM.js";
24
+ } from "./chunk-UKB62QOT.js";
25
25
  import {
26
26
  runCancellableProcess
27
27
  } from "./chunk-BL4U6U52.js";
@@ -317,7 +317,7 @@ async function decoderTransposesDimensions(inputPath) {
317
317
  }
318
318
  async function probeMedia(inputPath) {
319
319
  const isImage = inferInputKind(inputPath) === "image";
320
- const engine = await import("./src-QQPHMIJ7.js");
320
+ const engine = await import("./src-HPLELQRK.js");
321
321
  const meta = await engine.extractMediaMetadata(inputPath);
322
322
  if (isImage) {
323
323
  return { width: meta.width, height: meta.height, fps: 0, frameCount: 1 };
@@ -87,6 +87,15 @@ async function decodeAudio(file, window = {}, probed, format = {}) {
87
87
  return { signal: { sampleRate: info.sampleRate, channels }, stream: info };
88
88
  }
89
89
 
90
+ // ../core/dist/audioSteps.js
91
+ function finish(steps) {
92
+ for (; ; ) {
93
+ const next = steps.next();
94
+ if (next.done)
95
+ return next.value;
96
+ }
97
+ }
98
+
90
99
  // ../core/dist/audioResample.js
91
100
  var ZERO_CROSSINGS = 8;
92
101
  var STEPS_PER_CROSSING = 256;
@@ -106,7 +115,8 @@ function kernelAt(x) {
106
115
  const frac = at - i;
107
116
  return KERNEL[i] * (1 - frac) + KERNEL[i + 1] * frac;
108
117
  }
109
- function resample(samples, from, to) {
118
+ var SAMPLES_PER_STEP = 4096;
119
+ function* resampleSteps(samples, from, to) {
110
120
  if (from === to)
111
121
  return samples;
112
122
  const ratio = to / from;
@@ -114,6 +124,8 @@ function resample(samples, from, to) {
114
124
  const reach = ZERO_CROSSINGS / scale;
115
125
  const out = new Float32Array(Math.floor(samples.length * ratio));
116
126
  for (let n = 0; n < out.length; n++) {
127
+ if (n % SAMPLES_PER_STEP === 0)
128
+ yield;
117
129
  const t = n / ratio;
118
130
  const last = Math.min(samples.length - 1, Math.floor(t + reach));
119
131
  let sum = 0;
@@ -199,7 +211,7 @@ function addFramePower(samples, center, window, edges, into) {
199
211
  into[b] += power / (size * size * (end - edges[b]));
200
212
  }
201
213
  }
202
- function bandPower(channels) {
214
+ function* bandPower(channels) {
203
215
  const window = hann(FRAME_SIZE);
204
216
  const edges = bandEdges();
205
217
  const hop = ANALYSIS_RATE / FRAMES_PER_SECOND;
@@ -209,6 +221,7 @@ function bandPower(channels) {
209
221
  for (const channel of channels)
210
222
  addFramePower(channel, Math.round(f * hop), window, edges, power);
211
223
  bands.push(power.map((p) => Math.log1p(1e9 * p / channels.length)));
224
+ yield;
212
225
  }
213
226
  return bands;
214
227
  }
@@ -218,7 +231,7 @@ var PITCH_CLASS = Array.from({ length: CHROMA_SIZE / 2 }, (_, bin) => {
218
231
  return -1;
219
232
  return ((Math.round(12 * Math.log2(hz / 440)) + 9) % 12 + 12) % 12;
220
233
  });
221
- function chromaFrames(channels) {
234
+ function* chromaFrames(channels) {
222
235
  const window = hann(CHROMA_SIZE);
223
236
  const hop = ANALYSIS_RATE / CHROMA_FPS;
224
237
  const re = new Float64Array(CHROMA_SIZE);
@@ -240,15 +253,18 @@ function chromaFrames(channels) {
240
253
  });
241
254
  }
242
255
  frames.push(chroma);
256
+ yield;
243
257
  }
244
258
  return frames;
245
259
  }
246
- function bandFrames(signal) {
247
- const channels = signal.channels.map((c) => resample(c, signal.sampleRate, ANALYSIS_RATE));
260
+ function* bandFrames(signal) {
261
+ const channels = [];
262
+ for (const c of signal.channels)
263
+ channels.push(yield* resampleSteps(c, signal.sampleRate, ANALYSIS_RATE));
248
264
  return {
249
265
  fps: FRAMES_PER_SECOND,
250
- bands: bandPower(channels),
251
- chroma: chromaFrames(channels),
266
+ bands: yield* bandPower(channels),
267
+ chroma: yield* chromaFrames(channels),
252
268
  chromaFps: CHROMA_FPS
253
269
  };
254
270
  }
@@ -329,7 +345,7 @@ function smoothed(curve, period) {
329
345
  return sum;
330
346
  });
331
347
  }
332
- function cumulativeScore(local, periodAt) {
348
+ function* cumulativeScore(local, periodAt) {
333
349
  const score = new Float64Array(local.length);
334
350
  const back = new Int32Array(local.length).fill(-1);
335
351
  for (let i = 0; i < local.length; i++) {
@@ -343,6 +359,7 @@ function cumulativeScore(local, periodAt) {
343
359
  }
344
360
  score[i] = local[i] + Math.max(0, best);
345
361
  back[i] = best > 0 ? from : -1;
362
+ yield;
346
363
  }
347
364
  return { score, back };
348
365
  }
@@ -370,7 +387,7 @@ function trimmed(beats, local) {
370
387
  return beats.slice(first, end);
371
388
  }
372
389
  var LOCAL_WINDOW_SECONDS = 8;
373
- function localPeriods(curve, fps, period) {
390
+ function* localPeriods(curve, fps, period) {
374
391
  const window = Math.round(LOCAL_WINDOW_SECONDS * fps);
375
392
  const hop = Math.round(fps);
376
393
  const range = {
@@ -383,6 +400,7 @@ function localPeriods(curve, fps, period) {
383
400
  const end = Math.min(curve.length, start + window);
384
401
  periods.push(beatPeriod(curve.subarray(start, end), fps, range).period);
385
402
  centres.push((start + end) / 2);
403
+ yield;
386
404
  }
387
405
  const median = periods.map((_, i) => {
388
406
  const near = periods.slice(Math.max(0, i - 2), i + 3).sort((a, b) => a - b);
@@ -400,9 +418,10 @@ function interpolate(xs, ys, x) {
400
418
  }
401
419
  return ys[ys.length - 1];
402
420
  }
403
- function beatFrames(curve, fps, period) {
421
+ function* beatFrames(curve, fps, period) {
404
422
  const local = smoothed(curve, period);
405
- const { score, back } = cumulativeScore(local, localPeriods(curve, fps, period));
423
+ const periodAt = yield* localPeriods(curve, fps, period);
424
+ const { score, back } = yield* cumulativeScore(local, periodAt);
406
425
  const beats = [];
407
426
  for (let i = lastBeat(score); i >= 0; i = back[i])
408
427
  beats.push(i);
@@ -484,14 +503,16 @@ var noRhythm = (confidence, reason = "no steady beat") => ({
484
503
  var SHORTEST_SECONDS = 6;
485
504
  var STEADY_BEAT_CONFIDENCE = 0.15;
486
505
  var beatConfidence = (clarity, lift) => round(Math.max(0, Math.min(1, clarity)) * Math.max(0, Math.min(1, lift / 3)));
487
- function rhythmOf(frames) {
506
+ function* rhythmOf(frames) {
488
507
  const curves = onsetCurves(frames);
508
+ yield;
489
509
  const { period, clarity } = beatPeriod(curves.broad, curves.fps);
510
+ yield;
490
511
  if (curves.broad.length < SHORTEST_SECONDS * curves.fps)
491
512
  return noRhythm(0, "too short for a steady beat");
492
513
  if (!curves.broad.some((v) => v > 0) || curves.broad.length < 2 * period)
493
514
  return noRhythm(0);
494
- const { frames: beatList, local } = beatFrames(curves.broad, curves.fps, period);
515
+ const { frames: beatList, local } = yield* beatFrames(curves.broad, curves.fps, period);
495
516
  const confidence = beatConfidence(clarity, onsetLift(beatList, local));
496
517
  if (beatList.length < 4 || confidence < STEADY_BEAT_CONFIDENCE)
497
518
  return noRhythm(confidence);
@@ -521,16 +542,22 @@ function tempoOf(times) {
521
542
  return { value: bpm(interval), curve };
522
543
  }
523
544
  var measured = /* @__PURE__ */ new WeakMap();
524
- function bandFramesOf(signal) {
545
+ function* measuredSteps(signal) {
525
546
  let entry = measured.get(signal);
526
547
  if (!entry)
527
- measured.set(signal, entry = { frames: bandFrames(signal) });
528
- return entry.frames;
548
+ measured.set(signal, entry = { frames: yield* bandFrames(signal) });
549
+ return entry;
550
+ }
551
+ function bandFramesOf(signal) {
552
+ return finish(measuredSteps(signal)).frames;
529
553
  }
530
554
  function rhythm(signal) {
531
- const frames = bandFramesOf(signal);
532
- const entry = measured.get(signal);
533
- return entry.rhythm ??= rhythmOf(frames);
555
+ return finish(rhythmSteps(signal));
556
+ }
557
+ function* rhythmSteps(signal) {
558
+ const entry = yield* measuredSteps(signal);
559
+ entry.rhythm ??= yield* rhythmOf(entry.frames);
560
+ return entry.rhythm;
534
561
  }
535
562
 
536
563
  // ../core/dist/audioAnalysisLadder.js
@@ -749,18 +776,26 @@ function sections(signal, options = {}) {
749
776
  var DB_FLOOR = -120;
750
777
  var signalDuration = (signal) => (signal.channels[0]?.length ?? 0) / signal.sampleRate;
751
778
  function energyMix(signal) {
779
+ return finish(energyMixSteps(signal));
780
+ }
781
+ var MIX_SAMPLES_PER_STEP = 65536;
782
+ function* energyMixSteps(signal) {
752
783
  const [first, ...rest] = signal.channels;
753
784
  if (!first)
754
785
  return new Float32Array(0);
755
786
  if (!rest.length)
756
787
  return first;
757
788
  const mixed = new Float32Array(first.length);
758
- for (const channel of signal.channels)
759
- for (let i = 0; i < mixed.length; i++)
760
- mixed[i] += channel[i] * channel[i];
761
789
  const scale = 1 / signal.channels.length;
762
- for (let i = 0; i < mixed.length; i++)
763
- mixed[i] = Math.sqrt(mixed[i] * scale);
790
+ for (let start = 0; start < mixed.length; start += MIX_SAMPLES_PER_STEP) {
791
+ const end = Math.min(mixed.length, start + MIX_SAMPLES_PER_STEP);
792
+ for (const channel of signal.channels)
793
+ for (let i = start; i < end; i++)
794
+ mixed[i] += channel[i] * channel[i];
795
+ for (let i = start; i < end; i++)
796
+ mixed[i] = Math.sqrt(mixed[i] * scale);
797
+ yield;
798
+ }
764
799
  return mixed;
765
800
  }
766
801
  var toDb = (amplitude) => amplitude > 0 ? Math.max(DB_FLOOR, 20 * Math.log10(amplitude)) : DB_FLOOR;
@@ -1173,14 +1208,16 @@ var signalProvider = {
1173
1208
  };
1174
1209
 
1175
1210
  export {
1211
+ finish,
1176
1212
  medianInterval,
1177
1213
  tempoOf,
1178
1214
  bandFramesOf,
1179
1215
  rhythm,
1216
+ rhythmSteps,
1180
1217
  snapper,
1181
1218
  runLadder,
1182
1219
  signalDuration,
1183
- energyMix,
1220
+ energyMixSteps,
1184
1221
  envelope,
1185
1222
  signalProvider,
1186
1223
  probeAudio,
@@ -14,7 +14,7 @@ import {
14
14
  import {
15
15
  FONT_ALIAS_MAP,
16
16
  resolveAliasDisplayName
17
- } from "./chunk-XOTUPVIF.js";
17
+ } from "./chunk-MSGWR7WP.js";
18
18
  import {
19
19
  parseHTML
20
20
  } from "./chunk-SDYDNHEE.js";
@@ -11,36 +11,36 @@ import {
11
11
  findSyncPartner,
12
12
  readLinkTiming,
13
13
  syncOffsetFrames
14
- } from "./chunk-6JR2XUEE.js";
14
+ } from "./chunk-IXXVS2Z4.js";
15
15
  import {
16
16
  readCompositionFps
17
- } from "./chunk-AHZLNYZY.js";
17
+ } from "./chunk-YTBE4JCX.js";
18
18
  import {
19
19
  HF_AUDIO_GROUP_ATTR,
20
20
  extractAudioMetadata,
21
21
  extractMediaMetadata
22
- } from "./chunk-L6FG62QM.js";
22
+ } from "./chunk-UKB62QOT.js";
23
23
  import {
24
24
  byStart,
25
25
  fpsToNumber,
26
26
  parseFpsWithDefault
27
- } from "./chunk-UVQLSMAR.js";
27
+ } from "./chunk-74UH2KGI.js";
28
28
  import {
29
29
  HF_AUDIO_AUTOMATION_ATTR,
30
30
  HF_AUDIO_FX_ATTR,
31
31
  parseAudioFxChain,
32
32
  parseAutomation,
33
33
  resolveAutomation
34
- } from "./chunk-2ONVJ7NT.js";
34
+ } from "./chunk-ZKHXN2BV.js";
35
35
  import {
36
36
  isSubCompositionHost,
37
37
  topLevelElements,
38
38
  trackKindOf
39
- } from "./chunk-XOTUPVIF.js";
39
+ } from "./chunk-MSGWR7WP.js";
40
40
  import {
41
41
  resolveReferencedDuration,
42
42
  resolveReferencedStart
43
- } from "./chunk-IC6BO4GU.js";
43
+ } from "./chunk-CV32PRH3.js";
44
44
  import {
45
45
  resolveAuthoredAssetFile
46
46
  } from "./chunk-6BNTGNGD.js";
@@ -49,13 +49,11 @@ import {
49
49
  cutToHostSlots,
50
50
  hostInPointSeconds,
51
51
  parseNumeric,
52
- resolveMediaStartSeconds
53
- } from "./chunk-MMQ52NIZ.js";
54
- import {
55
52
  readMediaOffsetSeconds,
56
53
  readPlaybackRate,
57
- resolveMediaDuration
58
- } from "./chunk-BSQ7XANM.js";
54
+ resolveMediaDuration,
55
+ resolveMediaStartSeconds
56
+ } from "./chunk-2BGOB2QK.js";
59
57
 
60
58
  // src/timeline/describeProject.ts
61
59
  import { readFileSync, realpathSync, statSync } from "fs";
@@ -38,9 +38,40 @@ function entryOf(rawLine) {
38
38
  if (eq < 1) return null;
39
39
  return [line.slice(0, eq).trim(), valueOf(line.slice(eq + 1).trim())];
40
40
  }
41
+ function openQuoteOf(trimmedLine) {
42
+ const eq = trimmedLine.indexOf("=");
43
+ if (eq < 1) return null;
44
+ const valueStart = trimmedLine.slice(eq + 1).trim();
45
+ const quote = valueStart.charAt(0);
46
+ if (quote !== '"' && quote !== "'") return null;
47
+ return valueStart.indexOf(quote, 1) < 0 ? quote : null;
48
+ }
49
+ function closingLineIndex(rawLines, from, quote) {
50
+ for (let j = from; j < rawLines.length; j++) {
51
+ if ((rawLines[j] ?? "").includes(quote)) return j;
52
+ }
53
+ return -1;
54
+ }
55
+ function logicalLines(content) {
56
+ const rawLines = content.split("\n").map((line) => line.replace(/\r$/, ""));
57
+ const lines = [];
58
+ for (let i = 0; i < rawLines.length; i++) {
59
+ const line = rawLines[i] ?? "";
60
+ const trimmed = line.trim();
61
+ const quote = trimmed && !trimmed.startsWith("#") ? openQuoteOf(trimmed) : null;
62
+ const end = quote === null ? -1 : closingLineIndex(rawLines, i + 1, quote);
63
+ if (end === -1) {
64
+ lines.push(line);
65
+ continue;
66
+ }
67
+ lines.push(rawLines.slice(i, end + 1).join("\n"));
68
+ i = end;
69
+ }
70
+ return lines;
71
+ }
41
72
  function applyDotEnv(content, env, allowedKeys) {
42
73
  const allowed = allowedKeys === void 0 ? void 0 : new Set(allowedKeys);
43
- for (const entry of content.split("\n").map(entryOf)) {
74
+ for (const entry of logicalLines(content).map(entryOf)) {
44
75
  if (!entry) continue;
45
76
  const [key, value] = entry;
46
77
  if (key && key.toUpperCase() !== FEEDBACK_EMAIL_ENV && (allowed === void 0 || allowed.has(key)) && !(key in env))
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-442JNXRM.js";
10
10
  import {
11
11
  quantizePreviewProxyBox
12
- } from "./chunk-UVQLSMAR.js";
12
+ } from "./chunk-74UH2KGI.js";
13
13
 
14
14
  // src/utils/compositionViewport.ts
15
15
  var DEFAULT_VIEWPORT = { width: 1920, height: 1080 };
@@ -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-L6FG62QM.js";
9
+ } from "./chunk-UKB62QOT.js";
10
10
  import {
11
11
  runCancellableProcess
12
12
  } from "./chunk-BL4U6U52.js";
@@ -15,7 +15,7 @@ import {
15
15
  } from "./chunk-VAS6HQX3.js";
16
16
  import {
17
17
  detectWsl
18
- } from "./chunk-W2LGJSEN.js";
18
+ } from "./chunk-UIOZIIB7.js";
19
19
 
20
20
  // src/browser/linuxDeps.ts
21
21
  import { execFileSync } from "child_process";