hyperframes 0.8.205 → 0.8.206

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-BA4AU262.js → add-FFMNAJXJ.js} +12 -12
  2. package/dist/{animatedGifPrep-UNUCFGLQ.js → animatedGifPrep-BIIIIVWL.js} +16 -10
  3. package/dist/api.js +18 -18
  4. package/dist/{asset-KCDVTNC3.js → asset-IPUHGZSL.js} +2 -2
  5. package/dist/{assetCataloger-5FCVQ3N6.js → assetCataloger-M5FWXLAJ.js} +8 -8
  6. package/dist/{audio-KDBPEHRS.js → audio-VYWWM4DB.js} +15 -15
  7. package/dist/{auth-IMPBZZXJ.js → auth-GZQZCUPL.js} +1 -1
  8. package/dist/{autoUpdate-YE2RKCAG.js → autoUpdate-GJUDDLLO.js} +2 -2
  9. package/dist/{backgroundChecks-OWY2UFSR.js → backgroundChecks-BTMSW34Z.js} +3 -3
  10. package/dist/backgroundChecksWorker.js +3 -3
  11. package/dist/{batchRender-AN4HWKET.js → batchRender-LI2BJRGO.js} +4 -4
  12. package/dist/{beats-VTQJ4JH6.js → beats-H73CSYT4.js} +11 -11
  13. package/dist/{benchmark-PBEWHJ5K.js → benchmark-XT3A5REC.js} +9 -9
  14. package/dist/{browser-E7ANEHNU.js → browser-VIOK66YK.js} +5 -5
  15. package/dist/{bundleWithLocalizedFonts-I3BWMRSP.js → bundleWithLocalizedFonts-PFRVWYOO.js} +2 -2
  16. package/dist/{capture-MP7R72WU.js → capture-252WNPCD.js} +2 -2
  17. package/dist/{capture-XODFC4S4.js → capture-KKD5GMAF.js} +20 -20
  18. package/dist/{captureCompositionFrame-2OYGVDI3.js → captureCompositionFrame-YLYVGNN2.js} +13 -13
  19. package/dist/{catalog-ORVCCEQR.js → catalog-6IJGNN3T.js} +12 -12
  20. package/dist/{catch-up-SYAQOXTT.js → catch-up-BFW7Z35W.js} +4 -4
  21. package/dist/{check-6SQR6SSA.js → check-XUWBZASR.js} +39 -37
  22. package/dist/checkAudio-2NRR3VHQ.js +201 -0
  23. package/dist/{checkBrowser-HOTD3CDE.js → checkBrowser-JW74KWTF.js} +32 -31
  24. package/dist/{chunk-6NC4KBS2.js → chunk-2RT7MXFL.js} +1 -1
  25. package/dist/{chunk-JFNB4CMI.js → chunk-2S263R6D.js} +19 -7
  26. package/dist/{chunk-3N4T6I3O.js → chunk-36QE3P6B.js} +1 -1
  27. package/dist/{chunk-LSQM3NBR.js → chunk-3B2DBUQX.js} +1 -1
  28. package/dist/{chunk-H4MSJ2NZ.js → chunk-3CS6QYL7.js} +5 -5
  29. package/dist/{chunk-IKYXXIMP.js → chunk-3R6SXPHD.js} +2 -2
  30. package/dist/{chunk-RWOWD3PW.js → chunk-42KN6I6A.js} +2 -2
  31. package/dist/{chunk-75WNFDRU.js → chunk-4CY5RXXC.js} +1 -1
  32. package/dist/{chunk-LQUMMPGK.js → chunk-4DGLKB2H.js} +1 -1
  33. package/dist/{chunk-DQBY7FRR.js → chunk-543U46OR.js} +4 -1
  34. package/dist/{chunk-4UIEQIF4.js → chunk-5QKJPCQ4.js} +2 -2
  35. package/dist/{chunk-AECL3B23.js → chunk-63DGZRZP.js} +1 -1
  36. package/dist/{chunk-RQDVTUVD.js → chunk-6ZFDNEMY.js} +14 -14
  37. package/dist/{chunk-NF6KI46X.js → chunk-7SXL476O.js} +14 -12
  38. package/dist/{chunk-N7VQD4WB.js → chunk-AAX2A7LQ.js} +1 -1
  39. package/dist/{chunk-2FEOM3ZT.js → chunk-AEC4T4IF.js} +4 -4
  40. package/dist/{chunk-TZ7MTRVJ.js → chunk-AJSU6KGS.js} +13 -13
  41. package/dist/{chunk-MVXOY5RC.js → chunk-AXEEZKIL.js} +2 -2
  42. package/dist/{chunk-TOEIJ4WF.js → chunk-BBUK6A7Q.js} +5 -5
  43. package/dist/{chunk-CU76YDPX.js → chunk-CIHW6VM2.js} +1 -1
  44. package/dist/{chunk-MASFRPCB.js → chunk-CMDVJP4T.js} +10 -10
  45. package/dist/{chunk-BZ727KLT.js → chunk-CNVHMLPI.js} +1 -1
  46. package/dist/{chunk-BA7MQJXG.js → chunk-CPSGXAYD.js} +3 -3
  47. package/dist/{chunk-L6N2TLXR.js → chunk-CZYS6UKP.js} +83 -78
  48. package/dist/{chunk-EXRHI43B.js → chunk-DEVZJ4AL.js} +10 -9
  49. package/dist/{chunk-A42PDANH.js → chunk-DZG565OO.js} +1 -1
  50. package/dist/{chunk-KAIQPYCM.js → chunk-E2ZZSDDQ.js} +2 -2
  51. package/dist/{chunk-7V7OUKTU.js → chunk-FJW757TF.js} +1 -1
  52. package/dist/{chunk-I7IXUCKL.js → chunk-FMWACL3L.js} +1 -1
  53. package/dist/{chunk-GLBEBBS2.js → chunk-FNNGQ3DB.js} +2 -2
  54. package/dist/{chunk-GBQCTZON.js → chunk-FULMZCDW.js} +13 -43
  55. package/dist/chunk-G6QDFWDN.js +355 -0
  56. package/dist/{chunk-WB55EQNJ.js → chunk-G6W55MTX.js} +1 -1
  57. package/dist/{chunk-HADQPG7O.js → chunk-GAV56VJL.js} +2 -2
  58. package/dist/{chunk-FNBEYIZH.js → chunk-H4JO7VSI.js} +7 -6
  59. package/dist/{chunk-ZB6SCA4J.js → chunk-HEP5XMXV.js} +1 -1
  60. package/dist/{chunk-ZSUWGNIT.js → chunk-HJAJ6W4V.js} +2 -2
  61. package/dist/chunk-KLIPVNCO.js +4824 -0
  62. package/dist/{chunk-AECSY5LT.js → chunk-L5MFWGGU.js} +55 -65
  63. package/dist/{chunk-BHOGXIBO.js → chunk-MFHYBSJC.js} +57 -825
  64. package/dist/{chunk-LFGJWOVA.js → chunk-MNNK7RV5.js} +11 -8
  65. package/dist/{chunk-EUFBE5BW.js → chunk-N7ZMDVAK.js} +1 -1
  66. package/dist/{chunk-HQ3CFNHL.js → chunk-NNLQTG3M.js} +1 -1
  67. package/dist/{chunk-6YYFNGCS.js → chunk-NVLPW3DG.js} +7 -4
  68. package/dist/{chunk-SVVAUJPL.js → chunk-OFRRUYBA.js} +1 -1
  69. package/dist/{chunk-5F6B6KMK.js → chunk-OZUAVHFE.js} +18 -3
  70. package/dist/{chunk-BTYT3RT3.js → chunk-PNKLOMHQ.js} +2 -2
  71. package/dist/{chunk-XNAIYEKD.js → chunk-PQYWYBEQ.js} +1 -1
  72. package/dist/{chunk-TGS33LDU.js → chunk-QL4ZYSIB.js} +3 -3
  73. package/dist/{chunk-KBZSMKKD.js → chunk-QVTCXN42.js} +3 -3
  74. package/dist/{chunk-T2UR3T4L.js → chunk-RDDVQSNQ.js} +99 -22
  75. package/dist/{chunk-J2E3VVOS.js → chunk-RW4DMP2Y.js} +4 -4
  76. package/dist/{chunk-CUGADCIV.js → chunk-SFYLZX5C.js} +1 -1
  77. package/dist/{chunk-4RPCYGZG.js → chunk-T6SD37JZ.js} +1 -1
  78. package/dist/chunk-TQBQYO4L.js +55 -0
  79. package/dist/{chunk-26OI2B2X.js → chunk-TSJVPPXT.js} +1 -1
  80. package/dist/{chunk-C4LV6L4Q.js → chunk-UMUVGNOH.js} +3 -3
  81. package/dist/{chunk-GSTFETKE.js → chunk-VDVVQNTK.js} +2 -2
  82. package/dist/{chunk-G445Y3YG.js → chunk-VEA7Z4PZ.js} +2 -2
  83. package/dist/{chunk-32R2AFZ3.js → chunk-VHVSBOZH.js} +3 -3
  84. package/dist/{chunk-6GAYBX5C.js → chunk-VW2LVMKB.js} +19 -9
  85. package/dist/{chunk-UR6BAPOD.js → chunk-WHD5IAHI.js} +1 -1
  86. package/dist/{chunk-V2XXV2EH.js → chunk-WYB3VKLK.js} +2 -2
  87. package/dist/{chunk-57I5KNTL.js → chunk-X5HHHFTX.js} +3 -3
  88. package/dist/{chunk-V4K4BSCM.js → chunk-X7A7C4JS.js} +54 -2
  89. package/dist/chunk-X7RXXBYM.js +29 -0
  90. package/dist/{chunk-OB7QARSN.js → chunk-XOM3XTJ4.js} +1 -1
  91. package/dist/{chunk-UEOGIZ3Q.js → chunk-Z3XXLTVB.js} +2 -2
  92. package/dist/{chunk-ERUINDRT.js → chunk-ZF3R2IPC.js} +184 -183
  93. package/dist/{chunk-5PVPGWMH.js → chunk-ZNAOBFU5.js} +1 -1
  94. package/dist/{chunk-AII6P2TC.js → chunk-ZTEKVSZ6.js} +1 -1
  95. package/dist/{clean-BW7NHQS5.js → clean-N5VSKUVS.js} +19 -19
  96. package/dist/cli.js +54 -54
  97. package/dist/{cloud-TZVXTWZO.js → cloud-74NF5FXC.js} +4 -4
  98. package/dist/{cloudrun-KRIETALO.js → cloudrun-7UOH335V.js} +6 -6
  99. package/dist/{compare-WYWHJ4CR.js → compare-AY2LS2TZ.js} +32 -32
  100. package/dist/{compiler-ANIPXLJ7.js → compiler-4MHMC777.js} +11 -11
  101. package/dist/{component-CY7DCX56.js → component-CFWQOAZI.js} +3 -3
  102. package/dist/{compositions-5YEB24E3.js → compositions-DXLJTDSP.js} +14 -14
  103. package/dist/{delete-6642PDON.js → delete-GB4MS7LM.js} +2 -2
  104. package/dist/{deploy-NZP6TZLS.js → deploy-NXD3Q3KD.js} +4 -4
  105. package/dist/{deterministicFonts-HQYCUUAL.js → deterministicFonts-775YXAQ2.js} +2 -2
  106. package/dist/{dist-DGFC75NC.js → dist-3ZJMZU75.js} +11 -3
  107. package/dist/{dist-V2BGP46S.js → dist-ZY6IFESG.js} +2 -2
  108. package/dist/{doctor-ZW4A2FS3.js → doctor-CVY2XXKS.js} +14 -14
  109. package/dist/{events-XRCHY2F6.js → events-RYQYEWBV.js} +2 -2
  110. package/dist/{events-NJU4VFDA.js → events-T3CLIYRG.js} +3 -3
  111. package/dist/{feedback-NQLSZMES.js → feedback-K5ZMMLTA.js} +8 -8
  112. package/dist/{ffmpeg-RYDQLG3G.js → ffmpeg-UNDAJ2IC.js} +9 -9
  113. package/dist/{figma-TJAMP2CI.js → figma-MYYCX635.js} +3 -3
  114. package/dist/fontLocalizeCli.js +12 -11
  115. package/dist/{get-RRZ3O26X.js → get-JVIDYMVP.js} +2 -2
  116. package/dist/{gpuPolicy-4WLHUUS3.js → gpuPolicy-KEX7GDRJ.js} +8 -8
  117. package/dist/{grade-compare-P7PE3NAA.js → grade-compare-QEF6VASJ.js} +30 -30
  118. package/dist/{gsapParser-IEUSLYDJ.js → gsapParser-3H7ON3DO.js} +1 -1
  119. package/dist/heifImagePrep-A3ZPVQGU.js +53 -0
  120. package/dist/{help-6RELRVIW.js → help-XPPSLIRY.js} +1 -1
  121. package/dist/{history-GIIDYND3.js → history-OFOPRD27.js} +7 -7
  122. package/dist/hyperframe.manifest.json +1 -1
  123. package/dist/hyperframe.runtime.iife.js +66 -64
  124. package/dist/hyperframes-player.global.js +3 -3
  125. package/dist/hyperframes-slideshow.global.js +16 -16
  126. package/dist/{info-LBUA2DXE.js → info-7RF6FQX5.js} +8 -8
  127. package/dist/{init-QUPXBONY.js → init-NTIXWA3D.js} +30 -30
  128. package/dist/{inspect-CL42DJZ4.js → inspect-MYMCV5E7.js} +30 -29
  129. package/dist/inspection.js +4 -4
  130. package/dist/{installer-VR7XDLR3.js → installer-PYJIJ3PJ.js} +5 -5
  131. package/dist/{keyframes-LELLROMA.js → keyframes-UJ52PYE4.js} +6 -6
  132. package/dist/{lambda-I6KFXWOO.js → lambda-SBNUYEQE.js} +8 -8
  133. package/dist/{layout-NR6SNRZE.js → layout-IOMCOABO.js} +30 -29
  134. package/dist/{lint-DYEMSEQR.js → lint-AQWHHMPS.js} +8 -8
  135. package/dist/{lintProject-EA4NPL2X.js → lintProject-5A4SCW3S.js} +2 -2
  136. package/dist/{list-RDURYO5U.js → list-WKAJ5SP3.js} +2 -2
  137. package/dist/{login-VKLET5OL.js → login-3ZDK5JOA.js} +4 -4
  138. package/dist/{manager-7TSUZKXU.js → manager-F2YREC5X.js} +2 -2
  139. package/dist/{manager-IYT3THJN.js → manager-QYFYWZOK.js} +10 -10
  140. package/dist/{media-treatment-I4AFEQZ3.js → media-treatment-4OLWVHUY.js} +15 -15
  141. package/dist/{models-LLPVGC2E.js → models-MR55FAUX.js} +14 -14
  142. package/dist/{motionShot-6A6HH6IK.js → motionShot-DC47S7BT.js} +17 -17
  143. package/dist/{normalize-audio-KVQJBYLT.js → normalize-audio-M2TK4NG5.js} +8 -8
  144. package/dist/{open-J4ZT4X3C.js → open-YXWBWTKL.js} +12 -12
  145. package/dist/{parakeetRunner-FLUCIDIZ.js → parakeetRunner-J6QR3GTG.js} +15 -15
  146. package/dist/{pipeline-RRVLGALQ.js → pipeline-7MJ5H4SW.js} +10 -10
  147. package/dist/{play-QGJSXUVM.js → play-S562STR4.js} +33 -23
  148. package/dist/{preflight-SP2ZERBE.js → preflight-QWGXMISC.js} +11 -11
  149. package/dist/{present-UR4YBHMX.js → present-PGOHZT3L.js} +29 -19
  150. package/dist/{preview-6ENCRU4C.js → preview-JU75H4QN.js} +32 -29
  151. package/dist/{producer-OMHZRY6A.js → producer-H66OMZLW.js} +1 -1
  152. package/dist/{projectConfig-NGS7GJ47.js → projectConfig-COSP24YT.js} +7 -7
  153. package/dist/{publication-6NYQA22Y.js → publication-J3XYHPGB.js} +3 -3
  154. package/dist/{publish-E6RE5VHB.js → publish-7GCCEPJZ.js} +11 -11
  155. package/dist/{remove-background-66PQRA7R.js → remove-background-WRCGIU32.js} +11 -11
  156. package/dist/{render-ZLRJUFMX.js → render-5J5PP3UK.js} +21 -21
  157. package/dist/{render-SBAZWXPO.js → render-QS3YJCBR.js} +6 -6
  158. package/dist/{render-IMSGS6BD.js → render-VUVTK2JM.js} +36 -36
  159. package/dist/{render-batch-MO7LYZSP.js → render-batch-Q2LQ3D4P.js} +6 -6
  160. package/dist/renderSetupWorker.js +5 -5
  161. package/dist/{resolver-QMBVTAKT.js → resolver-QCBWPRSC.js} +5 -5
  162. package/dist/{sherpa-JZRDL3OE.js → sherpa-IZ22SC5W.js} +14 -14
  163. package/dist/{skills-YBTEWFYS.js → skills-3RFMPMJA.js} +5 -5
  164. package/dist/{skillsUpdateCheck-Z4HTDZJN.js → skillsUpdateCheck-DWBFVUBT.js} +3 -3
  165. package/dist/{snapshot-5F5UV6H5.js → snapshot-5PHA43DK.js} +53 -40
  166. package/dist/{src-WWXYV2TS.js → src-36BQVJL3.js} +16 -10
  167. package/dist/{src-UTW3F2PM.js → src-4YJKYMNF.js} +11 -7
  168. package/dist/{staticProjectServer-UHZ63C5O.js → staticProjectServer-3XFB76XS.js} +17 -17
  169. package/dist/studio/assets/hyperframes-player-lCVwx9d3.js +478 -0
  170. package/dist/studio/assets/{index-C8hp9Y7c.js → index-BNuxGFZK.js} +1 -1
  171. package/dist/studio/assets/{index-dy6GQJn4.js → index-CwreIGoq.js} +93 -93
  172. package/dist/studio/index.html +1 -1
  173. package/dist/{studio-api-BHZ3PHL2.js → studio-api-WL6EZ4KE.js} +10 -10
  174. package/dist/{studioSelectionClient-IUUPKUHZ.js → studioSelectionClient-D6VMGTKQ.js} +1 -1
  175. package/dist/{studioServer-AFUXWRB5.js → studioServer-ZS5RA6U3.js} +61 -52
  176. package/dist/{telemetry-UYKOT4OJ.js → telemetry-W3LRO3TB.js} +3 -3
  177. package/dist/{timeline-K5NLEMH4.js → timeline-BDO5DYWP.js} +18 -18
  178. package/dist/{tokens-FCOSWE2O.js → tokens-47CEMYFV.js} +2 -2
  179. package/dist/{transcribe-K2QTXDQR.js → transcribe-GEPVJO3A.js} +19 -19
  180. package/dist/{transcribe-SIFMTW5W.js → transcribe-XF3NL6JI.js} +13 -13
  181. package/dist/{tts-5I2AJNLM.js → tts-QM4RFE7U.js} +1 -1
  182. package/dist/{updateCheck-JZ6TBZVE.js → updateCheck-BON6ZFYP.js} +2 -2
  183. package/dist/{upgrade-TUPAJXQQ.js → upgrade-KIF5Z4J3.js} +2 -2
  184. package/dist/{urlDownloader-L4775QID.js → urlDownloader-UDRHVUWR.js} +7 -7
  185. package/dist/{validate-4HVVMEBV.js → validate-2OPSQT3W.js} +23 -23
  186. package/dist/{video-4OGPF3IE.js → video-ECWXMY4F.js} +8 -8
  187. package/dist/warmCheck.js +39 -37
  188. package/package.json +1 -1
  189. package/dist/chunk-ZUQZP6QD.js +0 -3986
  190. package/dist/studio/assets/hyperframes-player-DzdSmJdB.js +0 -478
  191. package/dist/{chunk-KVNXEAVT.js → chunk-2MLMO25E.js} +4 -4
  192. package/dist/{synthesize-PKTB5ATG.js → synthesize-QCRP3NI7.js} +4 -4
@@ -4,29 +4,32 @@ import { dirname as __hf_dirname } from "node:path";
4
4
  var require = __hf_createRequire(import.meta.url);
5
5
  var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
+ import {
8
+ formatFindingTimes
9
+ } from "./chunk-TQBQYO4L.js";
7
10
  import {
8
11
  resolveProject
9
- } from "./chunk-ZB6SCA4J.js";
12
+ } from "./chunk-HEP5XMXV.js";
10
13
  import {
11
14
  serveStaticProjectHtml
12
- } from "./chunk-JFNB4CMI.js";
15
+ } from "./chunk-2S263R6D.js";
13
16
  import {
14
17
  AUDIT_SEEK_OPTIONS,
15
18
  installPageFunctionGuard,
16
19
  seekCompositionTimeline,
17
20
  waitForCompositionFonts,
18
21
  waitForRuntimeReady
19
- } from "./chunk-MASFRPCB.js";
22
+ } from "./chunk-CMDVJP4T.js";
20
23
  import {
21
24
  launchManagedBrowser,
22
25
  resolveManagedGpuMode
23
- } from "./chunk-4RPCYGZG.js";
26
+ } from "./chunk-T6SD37JZ.js";
24
27
  import {
25
28
  gotoWhenSent
26
29
  } from "./chunk-MOEGCMKI.js";
27
30
  import {
28
31
  pageNavigationTimeoutMs
29
- } from "./chunk-TGS33LDU.js";
32
+ } from "./chunk-QL4ZYSIB.js";
30
33
  import {
31
34
  defineCommand
32
35
  } from "./chunk-S3S4TGEH.js";
@@ -40,7 +43,7 @@ import {
40
43
  import {
41
44
  printDeprecationNotice,
42
45
  withMeta
43
- } from "./chunk-OB7QARSN.js";
46
+ } from "./chunk-XOM3XTJ4.js";
44
47
  import {
45
48
  normalizeErrorMessage
46
49
  } from "./chunk-T2EUWCJE.js";
@@ -50,36 +53,6 @@ import { existsSync as existsSync2, readFileSync as readFileSync2 } from "fs";
50
53
  import { dirname, join as join2 } from "path";
51
54
  import { fileURLToPath } from "url";
52
55
 
53
- // src/utils/checkFindings.ts
54
- var SEVERITY = { info: 0, warning: 1, error: 2 };
55
- function findingElementKey(finding) {
56
- return JSON.stringify([finding.sourceFile, finding.selector]);
57
- }
58
- function groupSampledFindings(findings, compareEvidence = () => 0) {
59
- const groups = /* @__PURE__ */ new Map();
60
- for (const finding of findings) {
61
- const key = JSON.stringify([findingElementKey(finding), finding.code]);
62
- const times = finding.times ?? [finding.time];
63
- const group = groups.get(key);
64
- if (!group) {
65
- groups.set(key, { finding, times: new Set(times) });
66
- continue;
67
- }
68
- for (const time of times) group.times.add(time);
69
- const severity = SEVERITY[finding.severity] - SEVERITY[group.finding.severity];
70
- if (severity > 0 || severity === 0 && compareEvidence(finding, group.finding) > 0) {
71
- group.finding = finding;
72
- }
73
- }
74
- return [...groups.values()].map(({ finding, times }) => ({
75
- ...finding,
76
- times: [...times].sort((a, b) => a - b)
77
- }));
78
- }
79
- function formatFindingTimes(finding) {
80
- return `t=${(finding.times ?? [finding.time]).join(", ")}s`;
81
- }
82
-
83
56
  // src/utils/layoutAudit.ts
84
57
  function buildLayoutSampleTimes({ duration, samples, at }) {
85
58
  if (at?.length) {
@@ -717,7 +690,7 @@ async function collectTweenBoundaries(page) {
717
690
  });
718
691
  }
719
692
  async function bundleProjectHtml(projectDir) {
720
- const { bundleToSingleHtml } = await import("./compiler-ANIPXLJ7.js");
693
+ const { bundleToSingleHtml } = await import("./compiler-4MHMC777.js");
721
694
  return bundleToSingleHtml(projectDir);
722
695
  }
723
696
  async function alignViewportToComposition(page, url) {
@@ -734,15 +707,15 @@ async function alignViewportToComposition(page, url) {
734
707
  await gotoWhenSent(page, url, pageNavigationTimeoutMs());
735
708
  }
736
709
  async function runLayoutAudit(projectDir, opts) {
737
- const { ensureBrowser } = await import("./manager-7TSUZKXU.js");
710
+ const { ensureBrowser } = await import("./manager-F2YREC5X.js");
738
711
  const puppeteer = await import("puppeteer-core");
739
- const { buildChromeArgs } = await import("./src-UTW3F2PM.js");
712
+ const { buildChromeArgs } = await import("./src-4YJKYMNF.js");
740
713
  const {
741
714
  assertWebGpuAdapterAvailable,
742
715
  compositionRequiresWebGpu,
743
716
  resolveLocalBrowserGpuMode,
744
717
  resolveLocalWebGpu
745
- } = await import("./gpuPolicy-4WLHUUS3.js");
718
+ } = await import("./gpuPolicy-KEX7GDRJ.js");
746
719
  const html = await bundleProjectHtml(projectDir);
747
720
  const server = await serveStaticProjectHtml(
748
721
  projectDir,
@@ -1106,9 +1079,6 @@ function createInspectCommand(commandName) {
1106
1079
  var layout_default = createInspectCommand("layout");
1107
1080
 
1108
1081
  export {
1109
- findingElementKey,
1110
- groupSampledFindings,
1111
- formatFindingTimes,
1112
1082
  buildLayoutSampleTimes,
1113
1083
  formatLayoutIssue,
1114
1084
  dedupeLayoutIssues,
@@ -0,0 +1,355 @@
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
+ normalizeRelPath,
9
+ resolveLocalImageSourcePath,
10
+ splitUrlSuffix
11
+ } from "./chunk-NVLPW3DG.js";
12
+ import {
13
+ renameWithRetry,
14
+ runFfmpeg,
15
+ runFfprobe
16
+ } from "./chunk-RDDVQSNQ.js";
17
+ import {
18
+ parseHTML
19
+ } from "./chunk-GWTIFRF5.js";
20
+
21
+ // ../producer/src/services/heifImagePrep.ts
22
+ import { createHash } from "crypto";
23
+ import {
24
+ closeSync,
25
+ copyFileSync,
26
+ mkdirSync,
27
+ openSync,
28
+ readFileSync,
29
+ readSync,
30
+ rmSync,
31
+ statSync,
32
+ writeFileSync
33
+ } from "fs";
34
+ import { dirname, join, resolve } from "path";
35
+
36
+ // ../producer/src/services/heifRotation.ts
37
+ function* boxes(buf, start, end) {
38
+ let at = start;
39
+ while (at + 8 <= end) {
40
+ let size = buf.readUInt32BE(at);
41
+ let header = 8;
42
+ if (size === 1 && at + 16 <= end) {
43
+ size = Number(buf.readBigUInt64BE(at + 8));
44
+ header = 16;
45
+ } else if (size === 0) {
46
+ size = end - at;
47
+ }
48
+ if (size < header || at + size > end) return;
49
+ yield { type: buf.toString("latin1", at + 4, at + 8), start: at + header, end: at + size };
50
+ at += size;
51
+ }
52
+ }
53
+ function child(buf, parent, type, skip = 0) {
54
+ return [...boxes(buf, parent.start + skip, parent.end)].filter((box) => box.type === type);
55
+ }
56
+ function readHeifPrimaryRotation(buf) {
57
+ try {
58
+ const root = { type: "", start: 0, end: buf.length };
59
+ const meta = child(buf, root, "meta")[0];
60
+ const pitm = meta && child(buf, meta, "pitm", 4)[0];
61
+ const iprp = meta && child(buf, meta, "iprp", 4)[0];
62
+ const ipco = iprp && child(buf, iprp, "ipco")[0];
63
+ if (!pitm || !ipco || !iprp) return 0;
64
+ const primaryId = buf[pitm.start] === 0 ? buf.readUInt16BE(pitm.start + 4) : buf.readUInt32BE(pitm.start + 4);
65
+ const props = [...boxes(buf, ipco.start, ipco.end)];
66
+ for (const ipma of child(buf, iprp, "ipma")) {
67
+ const version = buf[ipma.start];
68
+ const wide = (buf[ipma.start + 3] & 1) === 1;
69
+ let at = ipma.start + 8;
70
+ for (let n = buf.readUInt32BE(ipma.start + 4); n > 0 && at < ipma.end; n--) {
71
+ const id = version < 1 ? buf.readUInt16BE(at) : buf.readUInt32BE(at);
72
+ at += version < 1 ? 2 : 4;
73
+ const count = buf[at++];
74
+ for (let i = 0; i < count; i++) {
75
+ const index = wide ? buf.readUInt16BE(at) & 32767 : buf[at] & 127;
76
+ at += wide ? 2 : 1;
77
+ const prop = props[index - 1];
78
+ if (id === primaryId && prop?.type === "irot")
79
+ return (buf[prop.start] & 3) * 90;
80
+ }
81
+ }
82
+ }
83
+ } catch {
84
+ }
85
+ return 0;
86
+ }
87
+
88
+ // ../producer/src/utils/semaphore.ts
89
+ var Semaphore = class {
90
+ constructor(maxConcurrent) {
91
+ this.maxConcurrent = maxConcurrent;
92
+ }
93
+ maxConcurrent;
94
+ queue = [];
95
+ active = 0;
96
+ async acquire() {
97
+ if (this.active < this.maxConcurrent) {
98
+ this.active++;
99
+ return () => this.release();
100
+ }
101
+ return new Promise((resolve2) => {
102
+ this.queue.push(() => {
103
+ this.active++;
104
+ resolve2(() => this.release());
105
+ });
106
+ });
107
+ }
108
+ release() {
109
+ this.active--;
110
+ const next = this.queue.shift();
111
+ if (next) next();
112
+ }
113
+ /** Current number of active slots. */
114
+ get activeCount() {
115
+ return this.active;
116
+ }
117
+ /** Number of waiters in the queue. */
118
+ get waitingCount() {
119
+ return this.queue.length;
120
+ }
121
+ };
122
+
123
+ // ../producer/src/utils/mediaProbeConcurrency.ts
124
+ var MEDIA_PROBE_CONCURRENCY = 4;
125
+ var sharedMediaProbeSemaphore = new Semaphore(MEDIA_PROBE_CONCURRENCY);
126
+ async function withMediaProbeSlot(operation) {
127
+ const release = await sharedMediaProbeSemaphore.acquire();
128
+ try {
129
+ return await operation();
130
+ } finally {
131
+ release();
132
+ }
133
+ }
134
+
135
+ // ../producer/src/services/heifImagePrep.ts
136
+ var PREPARED_HEIF_SUBDIR = "_heif_images";
137
+ var CACHE_SCHEMA = "hfheif-v1";
138
+ var DEFAULT_TIMEOUT_MS = 12e4;
139
+ var HEIF_IMAGE_CONVERSION_FAILED = "HEIF_IMAGE_CONVERSION_FAILED";
140
+ var HEIF_TOOL_UNAVAILABLE = "HEIF_TOOL_UNAVAILABLE";
141
+ var HEIF_BRANDS = /* @__PURE__ */ new Set(["heic", "heix", "hevc", "hevx", "heim", "heis", "mif1", "msf1"]);
142
+ var AVIF_BRANDS = /* @__PURE__ */ new Set(["avif", "avis"]);
143
+ var DATA_URL_RE = /^data:image\/(?:heic|heif)(?:-sequence)?;base64,(.*)$/is;
144
+ var HeifImageConversionError = class extends Error {
145
+ code = HEIF_IMAGE_CONVERSION_FAILED;
146
+ owner = "user";
147
+ retryable = false;
148
+ constructor(label, reason) {
149
+ super(
150
+ `Could not convert HEIC/HEIF image ${label} to JPEG: ${reason}. Re-export the photo as JPEG or PNG and update its src.`
151
+ );
152
+ this.name = "HeifImageConversionError";
153
+ }
154
+ };
155
+ var HeifToolUnavailableError = class extends Error {
156
+ code = HEIF_TOOL_UNAVAILABLE;
157
+ owner = "system";
158
+ retryable = false;
159
+ constructor(label, reason) {
160
+ super(
161
+ `Could not convert HEIC/HEIF image ${label}: ${reason}. Converting HEIC needs ffmpeg and ffprobe 7.0 or newer with the hevc decoder.`
162
+ );
163
+ this.name = "HeifToolUnavailableError";
164
+ }
165
+ };
166
+ var TOOL_FAILURE_RE = /(?:ffmpeg|ffprobe) not found|ENOENT|Option not found|Unrecognized option|Unknown decoder|Decoder \S+ not found/i;
167
+ function isHeifBytes(head) {
168
+ const bytes = Buffer.from(head.buffer, head.byteOffset, head.byteLength);
169
+ if (bytes.length < 16 || bytes.toString("ascii", 4, 8) !== "ftyp") return false;
170
+ const boxEnd = Math.min(bytes.readUInt32BE(0), bytes.length);
171
+ if (boxEnd < 16) return false;
172
+ const brands = [bytes.toString("ascii", 8, 12)];
173
+ for (let offset = 16; offset + 4 <= boxEnd; offset += 4) {
174
+ brands.push(bytes.toString("ascii", offset, offset + 4));
175
+ }
176
+ return !brands.some((b) => AVIF_BRANDS.has(b)) && brands.some((b) => HEIF_BRANDS.has(b));
177
+ }
178
+ function readHead(path) {
179
+ let fd;
180
+ try {
181
+ fd = openSync(path, "r");
182
+ const buf = Buffer.alloc(4096);
183
+ return buf.subarray(0, readSync(fd, buf, 0, buf.length, 0));
184
+ } catch {
185
+ return null;
186
+ } finally {
187
+ if (fd !== void 0) closeSync(fd);
188
+ }
189
+ }
190
+ async function probeJson(path, withGroups) {
191
+ const stdout = await runFfprobe(
192
+ path,
193
+ withGroups ? ["-show_stream_groups", "-show_streams", "-of", "json"] : ["-show_streams", "-of", "json"]
194
+ );
195
+ return JSON.parse(stdout);
196
+ }
197
+ var ROTATION_FILTER = {
198
+ 0: "",
199
+ 90: "transpose=2",
200
+ 180: "hflip,vflip",
201
+ 270: "transpose=1"
202
+ };
203
+ function primaryGrid(probed) {
204
+ const groups = probed.stream_groups ?? [];
205
+ return (groups.find((g) => g.disposition?.default === 1) ?? groups[0])?.components?.[0];
206
+ }
207
+ async function convertHeifToJpeg(request) {
208
+ const probed = await probeJson(request.inputPath, true);
209
+ const grid = primaryGrid(probed);
210
+ const rotation = readHeifPrimaryRotation(readFileSync(request.inputPath));
211
+ const filters = [];
212
+ let inputs = [];
213
+ let size = probed.streams?.[0];
214
+ if (grid?.subcomponents?.length) {
215
+ size = grid;
216
+ const layout = grid.subcomponents.map(
217
+ (t) => `${t.tile_horizontal_offset}_${t.tile_vertical_offset}`
218
+ );
219
+ inputs = grid.subcomponents.map((t) => `[0:${t.stream_index}]`);
220
+ filters.push(
221
+ `${inputs.join("")}xstack=inputs=${inputs.length}:layout=${layout.join("|")}`,
222
+ `crop=${grid.width}:${grid.height}:${grid.horizontal_offset ?? 0}:${grid.vertical_offset ?? 0}`
223
+ );
224
+ }
225
+ if (!size?.width || !size.height) throw new Error("no declared image size");
226
+ if (rotation && grid) filters.push(ROTATION_FILTER[rotation]);
227
+ const mapArgs = filters.length > 0 ? ["-filter_complex", `${filters.join(",")}[v]`, "-map", "[v]"] : [];
228
+ const result = await runFfmpeg(
229
+ [
230
+ "-hide_banner",
231
+ "-loglevel",
232
+ "error",
233
+ "-i",
234
+ request.inputPath,
235
+ ...mapArgs,
236
+ "-frames:v",
237
+ "1",
238
+ "-q:v",
239
+ "2",
240
+ "-f",
241
+ "mjpeg",
242
+ "-y",
243
+ request.outputPath
244
+ ],
245
+ { timeout: request.timeoutMs ?? DEFAULT_TIMEOUT_MS }
246
+ );
247
+ if (!result.success) {
248
+ throw result.error ?? new Error(`ffmpeg exited ${result.exitCode}: ${result.stderr.slice(-300)}`);
249
+ }
250
+ const out = (await probeJson(request.outputPath, false)).streams?.[0];
251
+ const same = out?.width === size.width && out.height === size.height;
252
+ const swapped = out?.width === size.height && out.height === size.width;
253
+ if (!same && !swapped) {
254
+ throw new Error(
255
+ `wrong size: decoded ${out?.width}x${out?.height}, file declares ${size.width}x${size.height}`
256
+ );
257
+ }
258
+ }
259
+ function resolveImageSource(src, options) {
260
+ const data = DATA_URL_RE.exec(src);
261
+ if (data) {
262
+ const bytes = Buffer.from(data[1], "base64");
263
+ return isHeifBytes(bytes.subarray(0, 4096)) ? { path: null, bytes, label: '"inline image"' } : null;
264
+ }
265
+ const path = resolveLocalImageSourcePath(src, options);
266
+ const head = path ? readHead(path) : null;
267
+ if (!path || !head || !isHeifBytes(head)) return null;
268
+ return { path, bytes: readFileSync(path), label: `"${splitUrlSuffix(src).basePath}"` };
269
+ }
270
+ function isUsableFile(path) {
271
+ try {
272
+ return statSync(path).size > 0;
273
+ } catch {
274
+ return false;
275
+ }
276
+ }
277
+ async function ensurePreparedJpeg(source, cachePath, outputPath, options) {
278
+ mkdirSync(dirname(cachePath), { recursive: true });
279
+ mkdirSync(dirname(outputPath), { recursive: true });
280
+ if (!isUsableFile(cachePath)) {
281
+ const tmpPath = `${cachePath}.tmp-${process.pid}-${Date.now()}`;
282
+ const inlinePath = `${tmpPath}.heic`;
283
+ const inputPath = source.path ?? inlinePath;
284
+ try {
285
+ if (!source.path) writeFileSync(inlinePath, source.bytes);
286
+ await (options.transcode ?? convertHeifToJpeg)({
287
+ inputPath,
288
+ outputPath: tmpPath,
289
+ timeoutMs: options.timeoutMs
290
+ });
291
+ if (!isUsableFile(tmpPath)) throw new Error("conversion produced an empty file");
292
+ renameWithRetry(tmpPath, cachePath);
293
+ } catch (error) {
294
+ const reason = error instanceof Error ? error.message : String(error);
295
+ throw TOOL_FAILURE_RE.test(reason) ? new HeifToolUnavailableError(source.label, reason) : new HeifImageConversionError(source.label, reason);
296
+ } finally {
297
+ rmSync(tmpPath, { force: true });
298
+ rmSync(inlinePath, { force: true });
299
+ }
300
+ }
301
+ if (resolve(outputPath) !== resolve(cachePath) && !isUsableFile(outputPath)) {
302
+ copyFileSync(cachePath, outputPath);
303
+ }
304
+ }
305
+ async function prepareHeifImageInputs(html, options) {
306
+ const outputDir = options.outputDir ?? join(options.downloadDir, PREPARED_HEIF_SUBDIR);
307
+ const outputSrcPrefix = normalizeRelPath(options.outputSrcPrefix ?? PREPARED_HEIF_SUBDIR);
308
+ const cacheDir = options.cacheDir ?? outputDir;
309
+ const preparedAssets = /* @__PURE__ */ new Map();
310
+ const preparedImages = [];
311
+ if (!/<img\b/i.test(html)) return { html, preparedAssets, preparedImages };
312
+ const { document } = parseHTML(html);
313
+ const found = [];
314
+ for (const img of Array.from(document.querySelectorAll("img[src]"))) {
315
+ const src = (img.getAttribute("src") || "").trim();
316
+ const source = src ? resolveImageSource(src, options) : null;
317
+ if (!source) continue;
318
+ const hash = createHash("sha256").update(CACHE_SCHEMA).update("\0").update(source.bytes).digest("hex");
319
+ found.push({ img, src, source, filename: `${CACHE_SCHEMA}-${hash.slice(0, 24)}.jpg` });
320
+ }
321
+ if (found.length === 0) return { html, preparedAssets, preparedImages };
322
+ const unique = new Map(found.map((item) => [item.filename, item.source]));
323
+ const failed = /* @__PURE__ */ new Set();
324
+ await Promise.all(
325
+ [...unique].map(
326
+ ([filename, source]) => withMediaProbeSlot(
327
+ () => ensurePreparedJpeg(source, join(cacheDir, filename), join(outputDir, filename), options)
328
+ ).catch((error) => {
329
+ if (!options.onFailure) throw error;
330
+ failed.add(filename);
331
+ options.onFailure(error);
332
+ })
333
+ )
334
+ );
335
+ for (const { img, src, filename } of found) {
336
+ if (failed.has(filename)) continue;
337
+ const outputSrc = `${outputSrcPrefix}/${filename}`;
338
+ img.setAttribute("src", outputSrc);
339
+ preparedAssets.set(outputSrc, join(outputDir, filename));
340
+ preparedImages.push({ sourceSrc: src, outputSrc, outputPath: join(outputDir, filename) });
341
+ }
342
+ return { html: document.toString(), preparedAssets, preparedImages };
343
+ }
344
+
345
+ export {
346
+ Semaphore,
347
+ withMediaProbeSlot,
348
+ HEIF_IMAGE_CONVERSION_FAILED,
349
+ HeifImageConversionError,
350
+ HeifToolUnavailableError,
351
+ isHeifBytes,
352
+ primaryGrid,
353
+ convertHeifToJpeg,
354
+ prepareHeifImageInputs
355
+ };
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  runCancellableProcess,
9
9
  runRenderSetupWorker
10
- } from "./chunk-V4K4BSCM.js";
10
+ } from "./chunk-X7A7C4JS.js";
11
11
  import {
12
12
  getFreeDiskMb
13
13
  } from "./chunk-QSFWGZG6.js";
@@ -6,10 +6,10 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  findCompositionDimensions
9
- } from "./chunk-AECL3B23.js";
9
+ } from "./chunk-63DGZRZP.js";
10
10
  import {
11
11
  outputResolutionForSize
12
- } from "./chunk-SVVAUJPL.js";
12
+ } from "./chunk-OFRRUYBA.js";
13
13
 
14
14
  // src/commands/lambda/_dimensions.ts
15
15
  import { readFileSync } from "fs";
@@ -14,33 +14,33 @@ import {
14
14
  } from "./chunk-IXXVS2Z4.js";
15
15
  import {
16
16
  readCompositionFps
17
- } from "./chunk-XNAIYEKD.js";
17
+ } from "./chunk-PQYWYBEQ.js";
18
18
  import {
19
19
  HF_AUDIO_GROUP_ATTR,
20
20
  extractAudioMetadata,
21
21
  extractMediaMetadata
22
- } from "./chunk-T2UR3T4L.js";
22
+ } from "./chunk-RDDVQSNQ.js";
23
23
  import {
24
24
  byStart,
25
25
  fpsToNumber,
26
26
  parseFpsWithDefault
27
- } from "./chunk-6GAYBX5C.js";
27
+ } from "./chunk-VW2LVMKB.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-ZUQZP6QD.js";
34
+ } from "./chunk-KLIPVNCO.js";
35
35
  import {
36
36
  isSubCompositionHost,
37
37
  topLevelElements,
38
38
  trackKindOf
39
- } from "./chunk-SVVAUJPL.js";
39
+ } from "./chunk-OFRRUYBA.js";
40
40
  import {
41
41
  resolveReferencedDuration,
42
42
  resolveReferencedStart
43
- } from "./chunk-KVNXEAVT.js";
43
+ } from "./chunk-2MLMO25E.js";
44
44
  import {
45
45
  resolveAuthoredAssetFile
46
46
  } from "./chunk-PBNWRWKA.js";
@@ -355,6 +355,7 @@ async function describeProject(indexPath, measure = measureWithFfprobe, sourceOv
355
355
  }
356
356
 
357
357
  export {
358
+ createProbeGate,
358
359
  NEVER_VISIBLE,
359
360
  describeProject
360
361
  };
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-K2FLNJVB.js";
10
10
  import {
11
11
  trackCommandFailure
12
- } from "./chunk-I7IXUCKL.js";
12
+ } from "./chunk-FMWACL3L.js";
13
13
  import {
14
14
  failCommand
15
15
  } from "./chunk-JVBRJMOP.js";
@@ -20,7 +20,7 @@ import {
20
20
  typeDirPath,
21
21
  updateRecord,
22
22
  withFigmaErrors
23
- } from "./chunk-26OI2B2X.js";
23
+ } from "./chunk-TSJVPPXT.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-UYKOT4OJ.js");
232
+ const { trackFigmaImport } = await import("./telemetry-W3LRO3TB.js");
233
233
  trackFigmaImport({
234
234
  phase: "asset",
235
235
  reused: results.every((r) => r.reused),