hyperframes 0.8.174 → 0.8.175

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 (161) hide show
  1. package/dist/{add-XANMFNIP.js → add-S4AOKSNH.js} +11 -11
  2. package/dist/{animatedGifPrep-OUQ4M2T3.js → animatedGifPrep-QRDM2NMV.js} +5 -5
  3. package/dist/api.js +14 -14
  4. package/dist/{asset-SVONSQ67.js → asset-DQ45BUBL.js} +2 -2
  5. package/dist/{assetCataloger-AG77T6SF.js → assetCataloger-NPDCMAYE.js} +5 -5
  6. package/dist/{audio-DMQOTXKL.js → audio-OOAXEELO.js} +11 -11
  7. package/dist/{auth-ED7SPBS6.js → auth-33IY64LT.js} +1 -1
  8. package/dist/{autoUpdate-4QQYZOVT.js → autoUpdate-KGLJUGNZ.js} +2 -2
  9. package/dist/{backgroundChecks-2VT46P5S.js → backgroundChecks-DQPHYLVN.js} +3 -3
  10. package/dist/backgroundChecksWorker.js +3 -3
  11. package/dist/{batchRender-KIYAPCTG.js → batchRender-KXXTVNPB.js} +3 -3
  12. package/dist/{beats-OE7M5BEE.js → beats-WDYSCACS.js} +4 -4
  13. package/dist/{benchmark-2ZQP2RNF.js → benchmark-WOAULMYW.js} +8 -8
  14. package/dist/{browser-CSSJ3VWW.js → browser-2HX46R74.js} +3 -3
  15. package/dist/{bundleWithLocalizedFonts-ZUC4MLSO.js → bundleWithLocalizedFonts-32N7TVM6.js} +2 -2
  16. package/dist/{capture-APNSW4ZT.js → capture-5ASPHTMF.js} +8 -8
  17. package/dist/{capture-3NXAHID3.js → capture-7LR5UVM2.js} +2 -2
  18. package/dist/{catalog-CFDBIVSC.js → catalog-LVW3RT4U.js} +11 -11
  19. package/dist/{catch-up-OUK522JT.js → catch-up-W6Z73GXL.js} +4 -4
  20. package/dist/{check-PUDEOXGP.js → check-C23ZWACZ.js} +50 -44
  21. package/dist/{checkBrowser-PMRJSTFJ.js → checkBrowser-WS6FSLBJ.js} +176 -80
  22. package/dist/{chunk-CI7ZHFSV.js → chunk-3Q4Y33FT.js} +6 -6
  23. package/dist/{chunk-RLBLLBLL.js → chunk-3SWMUZ4Y.js} +2 -2
  24. package/dist/{chunk-DRR3UMIY.js → chunk-3X3CELOP.js} +1 -1
  25. package/dist/{chunk-RZ2FMZ5U.js → chunk-42T7OP4O.js} +1 -1
  26. package/dist/{chunk-JL76Y45C.js → chunk-4XM6VXLN.js} +7 -7
  27. package/dist/{chunk-HIYAJFRH.js → chunk-7E4YFL4U.js} +1 -1
  28. package/dist/{chunk-4WQUBVDO.js → chunk-7GUAZGSW.js} +3 -3
  29. package/dist/{chunk-XRQBHOBT.js → chunk-B4VT6YU2.js} +2 -2
  30. package/dist/{chunk-RNKNDYBN.js → chunk-BHMWVRNS.js} +1 -1
  31. package/dist/{chunk-TI3HKGQC.js → chunk-CEYY3SOX.js} +3 -3
  32. package/dist/{chunk-GXWV4FNV.js → chunk-DQY6WTF7.js} +1 -1
  33. package/dist/{chunk-ALCCEHX2.js → chunk-DZMWNCHM.js} +2 -2
  34. package/dist/chunk-EEXE43II.js +3805 -0
  35. package/dist/{chunk-QUK2IZKI.js → chunk-EKDTCSCL.js} +1 -1
  36. package/dist/{chunk-AR2SEGPZ.js → chunk-FRNKM4MG.js} +1 -1
  37. package/dist/{chunk-QRO2UBWS.js → chunk-G7I3WZK4.js} +1 -1
  38. package/dist/{chunk-W4AECR7V.js → chunk-IUOPF3DL.js} +1 -1
  39. package/dist/{chunk-PLYTTPVE.js → chunk-J53AJK3Q.js} +2 -2
  40. package/dist/{chunk-UQLXFITA.js → chunk-JNL3RMDG.js} +1 -1
  41. package/dist/{chunk-55LJK3H2.js → chunk-JT7PV3GL.js} +3 -3
  42. package/dist/{chunk-SH43VDEF.js → chunk-KHR4IJAW.js} +175 -119
  43. package/dist/{chunk-ONXTLGJB.js → chunk-KZHYAGC3.js} +3 -3
  44. package/dist/{chunk-LUKY7253.js → chunk-KZQGUXG5.js} +10 -10
  45. package/dist/{chunk-MXNPYP5F.js → chunk-LY2GLSOS.js} +1 -1
  46. package/dist/{chunk-UDJHYQSZ.js → chunk-LZT3NUTE.js} +1 -1
  47. package/dist/{chunk-3MDO2Q4F.js → chunk-MJZQ44NV.js} +1 -1
  48. package/dist/{chunk-SI76MFBF.js → chunk-NELZN7SV.js} +2 -2
  49. package/dist/{chunk-HB2UP4V7.js → chunk-NSWIF4VH.js} +1 -1
  50. package/dist/{chunk-S5D4Q74P.js → chunk-NWEER3QY.js} +2 -2
  51. package/dist/{chunk-4PX47Z65.js → chunk-NZRAS3FB.js} +1 -1
  52. package/dist/{chunk-2CDBTQKS.js → chunk-NZZYJOMJ.js} +41 -18
  53. package/dist/{chunk-EJZJ5AY7.js → chunk-O6FWDZYJ.js} +1 -1
  54. package/dist/{chunk-X3BE2HX4.js → chunk-OUMYTLPP.js} +3 -3
  55. package/dist/{chunk-H2BPHBDY.js → chunk-OYEDHVSI.js} +1 -1
  56. package/dist/{chunk-D2YN4FNH.js → chunk-PBKOURSI.js} +1 -1
  57. package/dist/{chunk-UKAOWORD.js → chunk-QMQZXNGU.js} +5 -5
  58. package/dist/{chunk-APMA7XXB.js → chunk-QWCXGTOH.js} +1 -1
  59. package/dist/{chunk-SEHRMJTO.js → chunk-RAZVWSU5.js} +3 -3
  60. package/dist/{chunk-XVIFWEPR.js → chunk-RERXOG54.js} +2 -2
  61. package/dist/{chunk-4VTUDCHM.js → chunk-S354WIFQ.js} +1 -1
  62. package/dist/{chunk-QJCVK7CI.js → chunk-TNDNFZOK.js} +2 -2
  63. package/dist/{chunk-RYR3LTZR.js → chunk-UWUKJDTA.js} +2 -2
  64. package/dist/{chunk-2XSAYE7U.js → chunk-V7T7WA2K.js} +2 -2
  65. package/dist/{chunk-RMKL5FVH.js → chunk-VEQ7DKPG.js} +1 -1
  66. package/dist/{chunk-B23GBPCW.js → chunk-W5USVP6Z.js} +1 -1
  67. package/dist/{chunk-6HF2WFPV.js → chunk-WDFLYDKN.js} +4 -4
  68. package/dist/{chunk-W3YVQ6VI.js → chunk-XDK2FUAC.js} +9 -9
  69. package/dist/{chunk-EAR5LFOH.js → chunk-XRRDVRCY.js} +1 -1
  70. package/dist/{chunk-CSMKMVGG.js → chunk-YCSCDQDS.js} +5 -5
  71. package/dist/{chunk-JKPI7VLI.js → chunk-YMU42UU2.js} +1 -1
  72. package/dist/{chunk-G4UUEQDT.js → chunk-Z2R7CFWH.js} +1 -1
  73. package/dist/{chunk-SEXAKOK3.js → chunk-ZD7QKZSS.js} +2 -2
  74. package/dist/{chunk-HZZYJV7K.js → chunk-ZDOWJ3NS.js} +10 -10
  75. package/dist/{chunk-HZZZ6C6Z.js → chunk-ZGSLXWH2.js} +1 -1
  76. package/dist/{chunk-LR72ON5B.js → chunk-ZXHEOTYW.js} +1 -1
  77. package/dist/{clean-6SVCU47L.js → clean-KBNXV6DP.js} +13 -13
  78. package/dist/cli.js +53 -53
  79. package/dist/{cloud-TIISRMZV.js → cloud-BWWKDRR6.js} +4 -4
  80. package/dist/{cloudrun-4TMBWELQ.js → cloudrun-P35BPQCO.js} +4 -4
  81. package/dist/commands/contrast-audit.browser.js +18 -50
  82. package/dist/{compare-YV2XTKYX.js → compare-UWJRKF5K.js} +23 -23
  83. package/dist/{compiler-O5R3ZZDV.js → compiler-5TFPJPQQ.js} +2 -2
  84. package/dist/{component-7LWSMRKZ.js → component-SWOGSIO2.js} +3 -3
  85. package/dist/{compositions-5VTSC4M3.js → compositions-PIPVEXE3.js} +9 -9
  86. package/dist/{delete-AV2SKLZW.js → delete-OXIDK7N3.js} +3 -3
  87. package/dist/{deterministicFonts-RWGQPEZU.js → deterministicFonts-L7YEEFGI.js} +1 -1
  88. package/dist/{dist-4FY5EEH5.js → dist-U2HCECNB.js} +2 -2
  89. package/dist/{doctor-XOCYSEAZ.js → doctor-KLQLFPCF.js} +9 -9
  90. package/dist/{events-MAZUZI43.js → events-EGCYD45B.js} +3 -3
  91. package/dist/{events-6QPRKX45.js → events-EVTTGISX.js} +2 -2
  92. package/dist/{feedback-MGRILBMP.js → feedback-G4WZLOVD.js} +6 -6
  93. package/dist/{ffmpeg-YCULCUB2.js → ffmpeg-QIYSAPHO.js} +5 -5
  94. package/dist/{figma-UMBACTCG.js → figma-Q4CKDE7M.js} +3 -3
  95. package/dist/fontLocalizeCli.js +8 -8
  96. package/dist/{get-LWEOLWYN.js → get-NPRQH64W.js} +3 -3
  97. package/dist/{gpuPolicy-MCIQK5Z7.js → gpuPolicy-L72BQRFR.js} +5 -5
  98. package/dist/{grade-compare-MZQOTX3F.js → grade-compare-H4NJEL4P.js} +24 -24
  99. package/dist/{help-THPG2NRP.js → help-2S3XXDEA.js} +1 -1
  100. package/dist/{history-2IQYTDU5.js → history-X4CGCVEQ.js} +6 -6
  101. package/dist/hyperframe-runtime.js +59 -59
  102. package/dist/hyperframe.manifest.json +1 -1
  103. package/dist/hyperframe.runtime.iife.js +59 -59
  104. package/dist/hyperframes-player.global.js +3 -3
  105. package/dist/{info-CXMADV6K.js → info-YYUISGL7.js} +7 -7
  106. package/dist/{init-Y5GU454D.js → init-BAAI4ZMR.js} +25 -25
  107. package/dist/{inspect-S7JDKEMJ.js → inspect-LXJ3XJUZ.js} +24 -24
  108. package/dist/{installer-AY23RPEZ.js → installer-NY5E5HCO.js} +4 -4
  109. package/dist/{keyframes-FKYT6QAJ.js → keyframes-NXXJSQWG.js} +6 -6
  110. package/dist/{lambda-7WMZGRH5.js → lambda-PG3JKNWS.js} +5 -5
  111. package/dist/{layout-LL4GOS6G.js → layout-CBFO36IE.js} +24 -24
  112. package/dist/{lint-2M7FY4ZT.js → lint-Y6NWQTKF.js} +6 -6
  113. package/dist/{list-SZBMUHBW.js → list-VY6KIYTX.js} +3 -3
  114. package/dist/{login-QRACITGK.js → login-426Q3H3P.js} +4 -4
  115. package/dist/{manager-W2BTPAVT.js → manager-3RRUFZ4H.js} +6 -6
  116. package/dist/{media-treatment-E4VJETTT.js → media-treatment-ZVIXMJZJ.js} +11 -11
  117. package/dist/{models-AHO3MYE7.js → models-KC2QBPVK.js} +9 -9
  118. package/dist/{motionShot-LMMYPGPT.js → motionShot-3ZSLQJ4D.js} +12 -12
  119. package/dist/{normalize-audio-RDWIWZOO.js → normalize-audio-DRU5LFYU.js} +4 -4
  120. package/dist/{open-WOKRHFDH.js → open-LPBZQ4DC.js} +11 -11
  121. package/dist/{parakeetRunner-RY2KIE63.js → parakeetRunner-IFY6NK5G.js} +11 -11
  122. package/dist/{pipeline-LEA32KLW.js → pipeline-AGMCDT5A.js} +6 -6
  123. package/dist/{play-3S46XG66.js → play-WVWXNQED.js} +16 -16
  124. package/dist/{preflight-MCOFNWFQ.js → preflight-I5JGCCKM.js} +6 -6
  125. package/dist/{present-GR7F4CTI.js → present-IPTWJUKY.js} +12 -12
  126. package/dist/{preview-TKEAF3KR.js → preview-JVLRQVD7.js} +16 -16
  127. package/dist/{producer-BJ5SUPVD.js → producer-HKGHSAON.js} +1 -1
  128. package/dist/{projectConfig-YJBYWSNK.js → projectConfig-HDALEM6S.js} +6 -6
  129. package/dist/{publication-2HXIW4LS.js → publication-NX4VC7UU.js} +2 -2
  130. package/dist/{publish-LHJFEKEI.js → publish-AZRRQUXM.js} +7 -7
  131. package/dist/{remove-background-AQUUVAPD.js → remove-background-WY7KA77M.js} +7 -7
  132. package/dist/{render-B5S7FLLS.js → render-BEDATKWV.js} +9 -9
  133. package/dist/{render-AXTGGHVZ.js → render-HGT3EGIK.js} +3 -3
  134. package/dist/{render-AOHXNGIM.js → render-P3PFNCBA.js} +25 -25
  135. package/dist/{render-batch-DMQG3QWK.js → render-batch-MUCDZ2WF.js} +3 -3
  136. package/dist/{resolver-FV54X3T2.js → resolver-FLQ42X2Y.js} +4 -4
  137. package/dist/{sherpa-RKURBTUM.js → sherpa-SQGEFX3S.js} +10 -10
  138. package/dist/{skills-YUXI4IRF.js → skills-D2FIQ2JN.js} +5 -5
  139. package/dist/{skillsUpdateCheck-HK3GDYD6.js → skillsUpdateCheck-2OLTHCBX.js} +3 -3
  140. package/dist/{snapshot-D6Q52Z4X.js → snapshot-R7U73M3N.js} +27 -27
  141. package/dist/{src-MRYINZ62.js → src-4COYCAFY.js} +4 -4
  142. package/dist/{src-DPR7JBU3.js → src-WOD4AEI3.js} +7 -7
  143. package/dist/{staticProjectServer-RT7JATD2.js → staticProjectServer-DG4VZO4G.js} +12 -12
  144. package/dist/studio/assets/{hyperframes-player-B4KfQdfl.js → hyperframes-player-BByRREAU.js} +1 -1
  145. package/dist/studio/assets/{index-Bsc8xBh9.js → index-CULLUqJo.js} +1 -1
  146. package/dist/studio/assets/{index-DGl_Zvb3.js → index-Wz-WEqHg.js} +97 -97
  147. package/dist/studio/index.html +1 -1
  148. package/dist/{studio-api-NL2RMVB5.js → studio-api-RGNBVLLL.js} +6 -6
  149. package/dist/{studioServer-VL2GUVCR.js → studioServer-LC5T4OXQ.js} +42 -42
  150. package/dist/{telemetry-5PJWDFSZ.js → telemetry-BLOE3TWY.js} +3 -3
  151. package/dist/{timeline-OH35TN25.js → timeline-QQPPMADL.js} +14 -14
  152. package/dist/{tokens-YISVK7W2.js → tokens-E3SHBFDU.js} +2 -2
  153. package/dist/{transcribe-KRPN2FWA.js → transcribe-D5N7SBDO.js} +15 -15
  154. package/dist/{transcribe-6KBSE76Q.js → transcribe-O2AQ5E2L.js} +8 -8
  155. package/dist/{updateCheck-QCZTFFSQ.js → updateCheck-ELOZ2CID.js} +2 -2
  156. package/dist/{upgrade-DRFQISI6.js → upgrade-JDFZEPZY.js} +2 -2
  157. package/dist/{urlDownloader-CJDXTKMC.js → urlDownloader-32OGC3EW.js} +4 -4
  158. package/dist/{validate-BKY3FIJC.js → validate-LQQEABER.js} +18 -18
  159. package/dist/{video-3UEJ57Q7.js → video-HXIM27TO.js} +5 -5
  160. package/package.json +1 -1
  161. package/dist/chunk-UKJECUDK.js +0 -3805
@@ -12,8 +12,10 @@ import {
12
12
  import { chmodSync, mkdirSync, mkdtempSync, renameSync, rmSync, statSync } from "fs";
13
13
  import { open } from "fs/promises";
14
14
  import { dirname, join } from "path";
15
+ import { setTimeout as sleep } from "timers/promises";
15
16
  var PART_BYTES = 8 * 1024 * 1024;
16
17
  var CONNECTIONS = 8;
18
+ var RETRIES = 3;
17
19
  async function downloadToFile(url, destPath, options = {}) {
18
20
  const fetchImpl = options.fetchImpl ?? fetch;
19
21
  const failFast = new AbortController();
@@ -36,38 +38,59 @@ async function downloadToFile(url, destPath, options = {}) {
36
38
  let firstError;
37
39
  try {
38
40
  const file = await open(stagedFile, "wx");
39
- const writePart = async (res, start, length) => {
40
- let written = 0;
41
+ const pump = async (res, part) => {
41
42
  for await (const chunk of res.body) {
42
- await file.write(chunk, 0, chunk.byteLength, start + written);
43
- written += chunk.byteLength;
43
+ await file.write(chunk, 0, chunk.byteLength, part.at);
44
+ part.at += chunk.byteLength;
44
45
  bytes += chunk.byteLength;
45
46
  signal.throwIfAborted();
46
47
  options.onProgress?.(bytes, total);
47
48
  }
48
- if (length !== void 0 && written !== length) {
49
- throw new Error(
50
- `Truncated download: got ${written} bytes, expected ${length} (content-length). The presigned URL may have expired mid-transfer \u2014 refetch via \`hyperframes cloud get\`.`
51
- );
49
+ };
50
+ const fetchRange = async (start, end, res) => {
51
+ const part = { at: start };
52
+ for (let attempt = 0; ; attempt++) {
53
+ try {
54
+ res ??= await get(`bytes=${part.at}-${end}`);
55
+ assertOk(res, url);
56
+ if (res.status !== 206) throw new Error(`Failed to download ${url}: range ignored`);
57
+ await pump(res, part);
58
+ if (part.at > end) return;
59
+ throw new Error(`connection closed at byte ${part.at}`);
60
+ } catch (error) {
61
+ if (signal.aborted) throw error;
62
+ if (attempt === RETRIES) {
63
+ throw new Error(
64
+ `Failed to download ${url}: bytes ${start}-${end} dropped ${RETRIES + 1} times`,
65
+ { cause: error }
66
+ );
67
+ }
68
+ res?.body?.cancel().catch(() => {
69
+ });
70
+ res = void 0;
71
+ await sleep(250 * 2 ** attempt, void 0, { signal });
72
+ }
52
73
  }
53
74
  };
54
75
  const parts = [];
55
76
  if (ranged && total !== void 0) {
56
- parts.push(writePart(first, 0, Math.min(PART_BYTES, total)));
77
+ parts.push(fetchRange(0, Math.min(PART_BYTES, total) - 1, first));
57
78
  const rest = total - PART_BYTES;
58
79
  const size = Math.ceil(rest / Math.min(CONNECTIONS - 1, Math.ceil(rest / PART_BYTES)));
59
80
  for (let start = PART_BYTES; start < total; start += size) {
60
- const end = Math.min(start + size, total) - 1;
61
- parts.push(
62
- get(`bytes=${start}-${end}`).then((res) => {
63
- assertOk(res, url);
64
- if (res.status !== 206) throw new Error(`Failed to download ${url}: range ignored`);
65
- return writePart(res, start, end - start + 1);
66
- })
67
- );
81
+ parts.push(fetchRange(start, Math.min(start + size, total) - 1));
68
82
  }
69
83
  } else {
70
- parts.push(writePart(first, 0, total));
84
+ const part = { at: 0 };
85
+ parts.push(
86
+ pump(first, part).then(() => {
87
+ if (total !== void 0 && part.at !== total) {
88
+ throw new Error(
89
+ `Truncated download: got ${part.at} bytes, expected ${total} (content-length). The presigned URL may have expired mid-transfer \u2014 refetch via \`hyperframes cloud get\`.`
90
+ );
91
+ }
92
+ })
93
+ );
71
94
  }
72
95
  await Promise.all(
73
96
  parts.map(
@@ -14,7 +14,7 @@ import {
14
14
  } from "./chunk-AWDFDFI3.js";
15
15
  import {
16
16
  isBlockedNetworkHost
17
- } from "./chunk-XVIFWEPR.js";
17
+ } from "./chunk-RERXOG54.js";
18
18
  import {
19
19
  DOMParser,
20
20
  parseHTML
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  getMimeType,
9
9
  injectMediaCodecMapIntoHtml
10
- } from "./chunk-CI7ZHFSV.js";
10
+ } from "./chunk-3Q4Y33FT.js";
11
11
  import {
12
12
  PROXY_VARIANT_CONFIG,
13
13
  ProxyCapacityError,
@@ -18,10 +18,10 @@ import {
18
18
  recordProxyRequest,
19
19
  resolveProxy,
20
20
  resolveProxyVariantRequest
21
- } from "./chunk-APMA7XXB.js";
21
+ } from "./chunk-QWCXGTOH.js";
22
22
  import {
23
23
  resolveAutoProxy
24
- } from "./chunk-UDJHYQSZ.js";
24
+ } from "./chunk-LZT3NUTE.js";
25
25
  import {
26
26
  decodeWellFormedEscapes
27
27
  } from "./chunk-BSQ7XANM.js";
@@ -27,7 +27,7 @@ import {
27
27
  } from "./chunk-GMECXFAN.js";
28
28
  import {
29
29
  ITEM_TYPE_DIRS
30
- } from "./chunk-RMKL5FVH.js";
30
+ } from "./chunk-VEQ7DKPG.js";
31
31
  import {
32
32
  realProjectRoot
33
33
  } from "./chunk-OFQWTKPW.js";
@@ -8,7 +8,7 @@ import {
8
8
  flush,
9
9
  shouldTrack,
10
10
  trackEvent
11
- } from "./chunk-B23GBPCW.js";
11
+ } from "./chunk-W5USVP6Z.js";
12
12
  import {
13
13
  getPowerState
14
14
  } from "./chunk-T6AGUTZJ.js";
@@ -6,25 +6,25 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  parakeetRunner
9
- } from "./chunk-LR72ON5B.js";
9
+ } from "./chunk-ZXHEOTYW.js";
10
10
  import {
11
11
  DecodeCancelled,
12
12
  prepareSherpaWav,
13
13
  sherpaUnsupportedReason,
14
14
  transcribeWithSherpa
15
- } from "./chunk-55LJK3H2.js";
15
+ } from "./chunk-JT7PV3GL.js";
16
16
  import {
17
17
  initialModelForLanguage,
18
18
  transcribe
19
- } from "./chunk-TI3HKGQC.js";
19
+ } from "./chunk-CEYY3SOX.js";
20
20
  import {
21
21
  createRenderCancellationScope,
22
22
  stoppedByCancelSignal
23
- } from "./chunk-AR2SEGPZ.js";
23
+ } from "./chunk-FRNKM4MG.js";
24
24
  import {
25
25
  DEFAULT_MODEL,
26
26
  isWhisperUnavailable
27
- } from "./chunk-HB2UP4V7.js";
27
+ } from "./chunk-NSWIF4VH.js";
28
28
  import {
29
29
  formatSrt,
30
30
  formatVtt,
@@ -9,7 +9,7 @@ import {
9
9
  formatPreviewProxyBox,
10
10
  hdrToSdrToneMapFilter,
11
11
  parseFirstFrameColour
12
- } from "./chunk-RMKL5FVH.js";
12
+ } from "./chunk-VEQ7DKPG.js";
13
13
  import {
14
14
  decodeAuthoredAttribute,
15
15
  scanHtmlOpeningTags
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  readCompositionFps
9
- } from "./chunk-GXWV4FNV.js";
9
+ } from "./chunk-DQY6WTF7.js";
10
10
  import {
11
11
  errorBox
12
12
  } from "./chunk-K2FLNJVB.js";
@@ -16,10 +16,10 @@ import {
16
16
  import {
17
17
  DEFAULT_CONFIG,
18
18
  resolvePageNavigationTimeout
19
- } from "./chunk-XVIFWEPR.js";
19
+ } from "./chunk-RERXOG54.js";
20
20
  import {
21
21
  parseFps
22
- } from "./chunk-RMKL5FVH.js";
22
+ } from "./chunk-VEQ7DKPG.js";
23
23
 
24
24
  // src/browser/windowsCrash.ts
25
25
  var STATUS_STACK_BUFFER_OVERRUN_DEC = "3221225595";
@@ -29,7 +29,7 @@ import {
29
29
  renderFrameIdForRenderId,
30
30
  resolveAuthoredTimingWindow,
31
31
  toFps
32
- } from "./chunk-RMKL5FVH.js";
32
+ } from "./chunk-VEQ7DKPG.js";
33
33
  import {
34
34
  AUDIO_GROUP_RENDER_ID_ATTR,
35
35
  COLOR_GRADING_SOURCE_HIDDEN_ATTR,
@@ -58,7 +58,7 @@ import {
58
58
  shiftRateLane,
59
59
  sourceTimeAt,
60
60
  timeAtSourceTime
61
- } from "./chunk-UKJECUDK.js";
61
+ } from "./chunk-EEXE43II.js";
62
62
  import {
63
63
  clampAudioGain,
64
64
  isAudibleVideoElement
@@ -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-XVIFWEPR.js";
9
+ } from "./chunk-RERXOG54.js";
10
10
  import {
11
11
  detectWsl
12
12
  } from "./chunk-W2LGJSEN.js";
@@ -12,12 +12,12 @@ import {
12
12
  ensureHfIds,
13
13
  mintHfId,
14
14
  walkCompositionDescendants
15
- } from "./chunk-UQLXFITA.js";
15
+ } from "./chunk-JNL3RMDG.js";
16
16
  import {
17
17
  isAllowedHtmlAttribute,
18
18
  isSafeAttributeValue,
19
19
  sanitizeRichTextChildren
20
- } from "./chunk-RMKL5FVH.js";
20
+ } from "./chunk-VEQ7DKPG.js";
21
21
  import {
22
22
  decodedUrlPath,
23
23
  removeElementWithGsapCascade
@@ -8,10 +8,10 @@ import {
8
8
  DEFAULT_VP9_CPU_USED,
9
9
  isHttpUrl,
10
10
  runFfmpeg
11
- } from "./chunk-XVIFWEPR.js";
11
+ } from "./chunk-RERXOG54.js";
12
12
  import {
13
13
  parseAnimatedGifMetadata
14
- } from "./chunk-RMKL5FVH.js";
14
+ } from "./chunk-VEQ7DKPG.js";
15
15
  import {
16
16
  parseHTML
17
17
  } from "./chunk-SDYDNHEE.js";
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  resolveConfig,
9
9
  usesSoftwareWebGpu
10
- } from "./chunk-XVIFWEPR.js";
10
+ } from "./chunk-RERXOG54.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-MRYINZ62.js");
20
+ const { resolveBrowserGpuMode } = await import("./src-4COYCAFY.js");
21
21
  return resolveBrowserGpuMode(requestedMode, { chromePath, probeLifecycle });
22
22
  }
23
23
  function resolveLocalWebGpu(browserGpuMode, requiresWebGpu) {
@@ -9,7 +9,7 @@ import {
9
9
  parseStrictFiniteTimingNumber,
10
10
  resolveNaturalMediaTimelineDuration,
11
11
  resolveTimedImageDurationSeconds
12
- } from "./chunk-UKJECUDK.js";
12
+ } from "./chunk-EEXE43II.js";
13
13
  import {
14
14
  CANVAS_DIMENSIONS,
15
15
  isCompositionElement,
@@ -29,7 +29,7 @@ import {
29
29
  } from "./chunk-XUXGIA7H.js";
30
30
  import {
31
31
  VERSION
32
- } from "./chunk-SI76MFBF.js";
32
+ } from "./chunk-NELZN7SV.js";
33
33
  import {
34
34
  CANARIES,
35
35
  canaryEnvVar,
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  readCompositionFps
9
- } from "./chunk-GXWV4FNV.js";
9
+ } from "./chunk-DQY6WTF7.js";
10
10
  import {
11
11
  findSyncPartner,
12
12
  readLinkTiming,
@@ -18,7 +18,7 @@ import {
18
18
  extractMediaMetadata,
19
19
  resolveReferencedDuration,
20
20
  resolveReferencedStart
21
- } from "./chunk-XVIFWEPR.js";
21
+ } from "./chunk-RERXOG54.js";
22
22
  import {
23
23
  byStart,
24
24
  compositionOriginSeconds,
@@ -27,14 +27,14 @@ import {
27
27
  hostInPointSeconds,
28
28
  parseFpsWithDefault,
29
29
  resolveMediaStartSeconds
30
- } from "./chunk-RMKL5FVH.js";
30
+ } from "./chunk-VEQ7DKPG.js";
31
31
  import {
32
32
  HF_AUDIO_AUTOMATION_ATTR,
33
33
  HF_AUDIO_FX_ATTR,
34
34
  parseAudioFxChain,
35
35
  parseAutomation,
36
36
  resolveAutomation
37
- } from "./chunk-UKJECUDK.js";
37
+ } from "./chunk-EEXE43II.js";
38
38
  import {
39
39
  isSubCompositionHost,
40
40
  topLevelElements,
@@ -10,21 +10,21 @@ import {
10
10
  seekCompositionTimeline,
11
11
  waitForCompositionFonts,
12
12
  waitForRuntimeReady
13
- } from "./chunk-SH43VDEF.js";
13
+ } from "./chunk-KHR4IJAW.js";
14
14
  import {
15
15
  gotoWhenSent,
16
16
  launchManagedBrowser,
17
17
  resolveManagedGpuMode
18
- } from "./chunk-EAR5LFOH.js";
18
+ } from "./chunk-XRRDVRCY.js";
19
19
  import {
20
20
  pageNavigationTimeoutMs
21
- } from "./chunk-SEHRMJTO.js";
21
+ } from "./chunk-RAZVWSU5.js";
22
22
  import {
23
23
  resolveProject
24
- } from "./chunk-HIYAJFRH.js";
24
+ } from "./chunk-7E4YFL4U.js";
25
25
  import {
26
26
  serveStaticProjectHtml
27
- } from "./chunk-X3BE2HX4.js";
27
+ } from "./chunk-OUMYTLPP.js";
28
28
  import {
29
29
  defineCommand
30
30
  } from "./chunk-S3S4TGEH.js";
@@ -38,7 +38,7 @@ import {
38
38
  import {
39
39
  printDeprecationNotice,
40
40
  withMeta
41
- } from "./chunk-JKPI7VLI.js";
41
+ } from "./chunk-YMU42UU2.js";
42
42
  import {
43
43
  normalizeErrorMessage
44
44
  } from "./chunk-KNU5COPB.js";
@@ -709,7 +709,7 @@ async function collectTweenBoundaries(page) {
709
709
  });
710
710
  }
711
711
  async function bundleProjectHtml(projectDir) {
712
- const { bundleToSingleHtml } = await import("./compiler-O5R3ZZDV.js");
712
+ const { bundleToSingleHtml } = await import("./compiler-5TFPJPQQ.js");
713
713
  return bundleToSingleHtml(projectDir);
714
714
  }
715
715
  async function alignViewportToComposition(page, url) {
@@ -728,13 +728,13 @@ async function alignViewportToComposition(page, url) {
728
728
  async function runLayoutAudit(projectDir, opts) {
729
729
  const { ensureBrowser } = await import("./manager-HEUPD2YB.js");
730
730
  const puppeteer = await import("puppeteer-core");
731
- const { buildChromeArgs } = await import("./src-MRYINZ62.js");
731
+ const { buildChromeArgs } = await import("./src-4COYCAFY.js");
732
732
  const {
733
733
  assertWebGpuAdapterAvailable,
734
734
  compositionRequiresWebGpu,
735
735
  resolveLocalBrowserGpuMode,
736
736
  resolveLocalWebGpu
737
- } = await import("./gpuPolicy-MCIQK5Z7.js");
737
+ } = await import("./gpuPolicy-L72BQRFR.js");
738
738
  const html = await bundleProjectHtml(projectDir);
739
739
  const server = await serveStaticProjectHtml(
740
740
  projectDir,
@@ -13,7 +13,7 @@ import {
13
13
  } from "./chunk-BRHI7EIA.js";
14
14
  import {
15
15
  resolveCaptureBrowserGpuMode
16
- } from "./chunk-2XSAYE7U.js";
16
+ } from "./chunk-V7T7WA2K.js";
17
17
  import {
18
18
  isNavigationTimeoutError,
19
19
  withRemainingBudget
@@ -16,7 +16,7 @@ import {
16
16
  } from "./chunk-5ETJX6WM.js";
17
17
  import {
18
18
  runEnvironmentChecks
19
- } from "./chunk-HZZZ6C6Z.js";
19
+ } from "./chunk-ZGSLXWH2.js";
20
20
  import {
21
21
  getAvailableMemoryMb,
22
22
  getFreeDiskMb,
@@ -32,21 +32,21 @@ import {
32
32
  import {
33
33
  getUpdateMeta,
34
34
  withMeta
35
- } from "./chunk-JKPI7VLI.js";
35
+ } from "./chunk-YMU42UU2.js";
36
36
  import {
37
37
  CONFIG_PATH,
38
38
  withFileLock
39
39
  } from "./chunk-XUXGIA7H.js";
40
40
  import {
41
41
  VERSION
42
- } from "./chunk-SI76MFBF.js";
42
+ } from "./chunk-NELZN7SV.js";
43
43
  import {
44
44
  OPTIONAL_PACKAGES,
45
45
  installedOptionalPackageVersion
46
46
  } from "./chunk-3DKN5WKL.js";
47
47
  import {
48
48
  resolveExtractCacheDir
49
- } from "./chunk-XVIFWEPR.js";
49
+ } from "./chunk-RERXOG54.js";
50
50
  import {
51
51
  normalizeErrorMessage
52
52
  } from "./chunk-KNU5COPB.js";
@@ -232,7 +232,7 @@ function checkEnvironment() {
232
232
  return { ok: true, detail: parts.join(" \xB7 ") };
233
233
  }
234
234
  async function checkWhisper() {
235
- const { findWhisper, getInstallInstructions } = await import("./manager-W2BTPAVT.js");
235
+ const { findWhisper, getInstallInstructions } = await import("./manager-3RRUFZ4H.js");
236
236
  const result = findWhisper();
237
237
  if (result) {
238
238
  return { ok: true, detail: result.executablePath };
@@ -17,7 +17,7 @@ import {
17
17
  } from "./chunk-ISN5GRYI.js";
18
18
  import {
19
19
  VERSION
20
- } from "./chunk-SI76MFBF.js";
20
+ } from "./chunk-NELZN7SV.js";
21
21
 
22
22
  // src/utils/updateCheck.ts
23
23
  import { existsSync, readFileSync } from "fs";
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  withOwner
9
- } from "./chunk-W4AECR7V.js";
9
+ } from "./chunk-IUOPF3DL.js";
10
10
  import {
11
11
  HistoryBusyError,
12
12
  beginArtifactCapture
@@ -7,10 +7,10 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  trackLintReport,
9
9
  trackLintRuleStreak
10
- } from "./chunk-D2YN4FNH.js";
10
+ } from "./chunk-PBKOURSI.js";
11
11
  import {
12
12
  shouldTrack
13
- } from "./chunk-B23GBPCW.js";
13
+ } from "./chunk-W5USVP6Z.js";
14
14
  import {
15
15
  LINT_RULE_COUNT,
16
16
  LINT_RULE_GROUP_COUNTS
@@ -9,20 +9,20 @@ import {
9
9
  resolveCliChromeGpuMode,
10
10
  seekCompositionTimeline,
11
11
  waitForRuntimeReady
12
- } from "./chunk-SH43VDEF.js";
12
+ } from "./chunk-KHR4IJAW.js";
13
13
  import {
14
14
  resolveCompositionViewportFromHtml
15
15
  } from "./chunk-FH7WODJH.js";
16
16
  import {
17
17
  launchManagedBrowser,
18
18
  resolveManagedGpuMode
19
- } from "./chunk-EAR5LFOH.js";
19
+ } from "./chunk-XRRDVRCY.js";
20
20
  import {
21
21
  pageNavigationTimeoutMs
22
- } from "./chunk-SEHRMJTO.js";
22
+ } from "./chunk-RAZVWSU5.js";
23
23
  import {
24
24
  resolveProject
25
- } from "./chunk-HIYAJFRH.js";
25
+ } from "./chunk-7E4YFL4U.js";
26
26
  import {
27
27
  defineCommand
28
28
  } from "./chunk-S3S4TGEH.js";
@@ -36,7 +36,7 @@ import {
36
36
  import {
37
37
  printDeprecationNotice,
38
38
  withMeta
39
- } from "./chunk-JKPI7VLI.js";
39
+ } from "./chunk-YMU42UU2.js";
40
40
  import {
41
41
  decodeWellFormedEscapes
42
42
  } from "./chunk-BSQ7XANM.js";
@@ -227,7 +227,7 @@ function extractCompositionErrorsFromLint(lintResult) {
227
227
  async function localizeRemoteAssets(html) {
228
228
  let dir;
229
229
  try {
230
- const { loadProducer } = await import("./producer-BJ5SUPVD.js");
230
+ const { loadProducer } = await import("./producer-HKGHSAON.js");
231
231
  const { localizeRemoteMediaSources, localizeRemoteImageSources, localizeRemoteFontFaces } = await loadProducer();
232
232
  dir = mkdtempSync(join(tmpdir(), "hf-validate-assets-"));
233
233
  const assetDir = dir;
@@ -248,9 +248,9 @@ async function localizeRemoteAssets(html) {
248
248
  }
249
249
  async function validateInBrowser(project, opts) {
250
250
  const projectDir = project.dir;
251
- const { bundleToSingleHtml } = await import("./compiler-O5R3ZZDV.js");
251
+ const { bundleToSingleHtml } = await import("./compiler-5TFPJPQQ.js");
252
252
  const { ensureBrowser } = await import("./manager-HEUPD2YB.js");
253
- const { serveStaticProjectHtml } = await import("./staticProjectServer-RT7JATD2.js");
253
+ const { serveStaticProjectHtml } = await import("./staticProjectServer-DG4VZO4G.js");
254
254
  const { lintProject } = await import("./lintProject-ARKJXDQF.js");
255
255
  const lintResult = await lintProject(projectDir);
256
256
  const compositionErrors = extractCompositionErrorsFromLint(lintResult);
@@ -272,9 +272,9 @@ async function validateInBrowser(project, opts) {
272
272
  try {
273
273
  const browser = await ensureBrowser();
274
274
  const puppeteer = await import("puppeteer-core");
275
- const { buildChromeArgs, analyzeClipMediaFit } = await import("./src-MRYINZ62.js");
275
+ const { buildChromeArgs, analyzeClipMediaFit } = await import("./src-4COYCAFY.js");
276
276
  const requestedGpuMode = resolveCliChromeGpuMode();
277
- const { assertWebGpuAdapterAvailable, compositionRequiresWebGpu, resolveLocalWebGpu } = await import("./gpuPolicy-MCIQK5Z7.js");
277
+ const { assertWebGpuAdapterAvailable, compositionRequiresWebGpu, resolveLocalWebGpu } = await import("./gpuPolicy-L72BQRFR.js");
278
278
  const resolvedGpuMode = await resolveManagedGpuMode(requestedGpuMode, browser.executablePath);
279
279
  const requiresWebGpu = compositionRequiresWebGpu(html);
280
280
  const { gpuConfig, softwareWebGpu } = resolveLocalWebGpu(resolvedGpuMode, requiresWebGpu);
@@ -18,7 +18,7 @@ import {
18
18
  distroLabel,
19
19
  getFFmpegInstallHint,
20
20
  parseLddMissingLibs
21
- } from "./chunk-4VTUDCHM.js";
21
+ } from "./chunk-S354WIFQ.js";
22
22
  import {
23
23
  runCancellableProcess
24
24
  } from "./chunk-D3ZWBHZP.js";
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  sherpaParakeetInstalled,
9
9
  sherpaUnsupportedReason
10
- } from "./chunk-55LJK3H2.js";
10
+ } from "./chunk-JT7PV3GL.js";
11
11
  import {
12
12
  findParakeet
13
13
  } from "./chunk-JZIEZCQM.js";
@@ -6,30 +6,30 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  redactHome
9
- } from "./chunk-CSMKMVGG.js";
9
+ } from "./chunk-YCSCDQDS.js";
10
10
  import "./chunk-Z27A7NUB.js";
11
11
  import "./chunk-5ETJX6WM.js";
12
12
  import {
13
13
  loadProducer
14
- } from "./chunk-QUK2IZKI.js";
14
+ } from "./chunk-EKDTCSCL.js";
15
15
  import {
16
16
  formatBytes
17
17
  } from "./chunk-K2FLNJVB.js";
18
- import "./chunk-CI7ZHFSV.js";
19
- import "./chunk-QJCVK7CI.js";
18
+ import "./chunk-3Q4Y33FT.js";
19
+ import "./chunk-TNDNFZOK.js";
20
20
  import "./chunk-6JR2XUEE.js";
21
21
  import "./chunk-C6TPGUWD.js";
22
22
  import {
23
23
  CACHE_DIR_NAME,
24
24
  cleanupProxyCache
25
- } from "./chunk-APMA7XXB.js";
25
+ } from "./chunk-QWCXGTOH.js";
26
26
  import {
27
27
  DEFAULT_HISTORY_ROOT,
28
28
  listProjectHistories,
29
29
  pruneGoneProjectHistories
30
30
  } from "./chunk-GMJ3ILLW.js";
31
31
  import "./chunk-FFDC5OWV.js";
32
- import "./chunk-HZZZ6C6Z.js";
32
+ import "./chunk-ZGSLXWH2.js";
33
33
  import "./chunk-5CS4T6C6.js";
34
34
  import "./chunk-T6AGUTZJ.js";
35
35
  import {
@@ -47,27 +47,27 @@ import "./chunk-7FMUTGOH.js";
47
47
  import "./chunk-XRKMITSS.js";
48
48
  import {
49
49
  withMeta
50
- } from "./chunk-JKPI7VLI.js";
50
+ } from "./chunk-YMU42UU2.js";
51
51
  import "./chunk-K4WIOZFP.js";
52
52
  import "./chunk-XUXGIA7H.js";
53
53
  import "./chunk-WERLJGIC.js";
54
54
  import "./chunk-ISN5GRYI.js";
55
- import "./chunk-SI76MFBF.js";
55
+ import "./chunk-NELZN7SV.js";
56
56
  import "./chunk-3DKN5WKL.js";
57
57
  import "./chunk-EOVYQ3IG.js";
58
58
  import "./chunk-6BEFEWFB.js";
59
- import "./chunk-4VTUDCHM.js";
59
+ import "./chunk-S354WIFQ.js";
60
60
  import "./chunk-XT6MXC7A.js";
61
61
  import {
62
62
  EXTRACT_CACHE_MIN_AGE_MS,
63
63
  directorySizeBytes,
64
64
  gcExtractionCache,
65
65
  resolveExtractCacheDir
66
- } from "./chunk-XVIFWEPR.js";
67
- import "./chunk-UQLXFITA.js";
66
+ } from "./chunk-RERXOG54.js";
67
+ import "./chunk-JNL3RMDG.js";
68
68
  import "./chunk-W2LGJSEN.js";
69
- import "./chunk-RMKL5FVH.js";
70
- import "./chunk-UKJECUDK.js";
69
+ import "./chunk-VEQ7DKPG.js";
70
+ import "./chunk-EEXE43II.js";
71
71
  import "./chunk-VC76R6W2.js";
72
72
  import "./chunk-UJKQWGFF.js";
73
73
  import "./chunk-YMS5FOMC.js";