hyperframes 0.8.143 → 0.8.145

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 (202) hide show
  1. package/README.md +3 -2
  2. package/dist/{add-Q5EYDUAY.js → add-B6OUH46W.js} +12 -12
  3. package/dist/{animatedGifPrep-H2DUQEZ3.js → animatedGifPrep-MIWRDJIO.js} +7 -7
  4. package/dist/{asset-C7JBYYX4.js → asset-XJ2B2PU3.js} +2 -2
  5. package/dist/{assetCataloger-FRO4G6OU.js → assetCataloger-A5ZLSCMZ.js} +3 -3
  6. package/dist/{auth-FRWLCO36.js → auth-5HOVCZMV.js} +1 -1
  7. package/dist/{autoUpdate-E4OZXQK6.js → autoUpdate-WVNL5K3D.js} +2 -2
  8. package/dist/{backgroundChecks-FSUVHN5L.js → backgroundChecks-IGF54SFH.js} +3 -3
  9. package/dist/backgroundChecksWorker.js +3 -3
  10. package/dist/{batchRender-4U73BYTU.js → batchRender-T6JEGCQV.js} +4 -4
  11. package/dist/{beats-U6KJWF35.js → beats-37T6Y6QP.js} +13 -13
  12. package/dist/{benchmark-5ONT7V7B.js → benchmark-ZVVLOWPP.js} +9 -9
  13. package/dist/{browser-R4DU46IE.js → browser-4SSJOLH4.js} +39 -55
  14. package/dist/{bundleWithLocalizedFonts-VH55VOAL.js → bundleWithLocalizedFonts-XWK423QP.js} +2 -2
  15. package/dist/{capture-OGQAEYKO.js → capture-2SF7YP57.js} +2 -2
  16. package/dist/{capture-26G2DPSI.js → capture-KZXOPBMO.js} +18 -18
  17. package/dist/{catalog-RKORTIUE.js → catalog-NLD4A2C6.js} +12 -12
  18. package/dist/{catch-up-4OBERRQO.js → catch-up-4BSRN6IR.js} +4 -4
  19. package/dist/{check-P2XDN57S.js → check-IA44QQWM.js} +66 -55
  20. package/dist/{checkBrowser-NTGJGAEA.js → checkBrowser-VM35KZMW.js} +81 -30
  21. package/dist/{chunk-LVX6NK36.js → chunk-3IBMBNYY.js} +1 -1
  22. package/dist/{chunk-6XMFEICO.js → chunk-3KU3PFDW.js} +77 -92
  23. package/dist/{chunk-PJU63L6W.js → chunk-4ORLNTET.js} +1 -1
  24. package/dist/{chunk-DF2BHILQ.js → chunk-4QWD6JYN.js} +3 -3
  25. package/dist/{chunk-BT27OYYX.js → chunk-5NRXZGKK.js} +18 -12
  26. package/dist/{chunk-UM2GRYM3.js → chunk-5WVW7P23.js} +3 -3
  27. package/dist/{chunk-I7QGQAZM.js → chunk-6LGNTUZN.js} +7 -7
  28. package/dist/{chunk-LAOCA3MQ.js → chunk-A4Q7W4LV.js} +13 -8
  29. package/dist/{chunk-4PFZPP2N.js → chunk-A6S35NYA.js} +54 -16
  30. package/dist/{chunk-QRKLPWEX.js → chunk-ADF3X6GM.js} +11 -2
  31. package/dist/chunk-AUWHD7RA.js +3753 -0
  32. package/dist/{chunk-W35EKBS6.js → chunk-BFACGEII.js} +2 -2
  33. package/dist/{chunk-HW4AKJ5F.js → chunk-BIAC7IJT.js} +1 -1
  34. package/dist/{chunk-ZLW2V65P.js → chunk-BSQ7XANM.js} +3 -2
  35. package/dist/{chunk-LCSMOLGX.js → chunk-BYSBRF24.js} +69 -8
  36. package/dist/{chunk-2LBBHMKT.js → chunk-CFUXNBWH.js} +1 -1
  37. package/dist/{chunk-BFDJ63J5.js → chunk-DDIVWXN7.js} +1 -1
  38. package/dist/{chunk-KOEWEFHK.js → chunk-DIRJ322I.js} +10 -5
  39. package/dist/{chunk-FVYXDXEV.js → chunk-DWUKJQTO.js} +2 -2
  40. package/dist/{chunk-POLR33RB.js → chunk-EPE2HRJK.js} +15 -17
  41. package/dist/{chunk-UICWP23D.js → chunk-FBCULCAL.js} +3 -3
  42. package/dist/{chunk-F26LCYRY.js → chunk-FDT6KQV4.js} +142 -81
  43. package/dist/{chunk-P7THMINS.js → chunk-FXJJCPPB.js} +1 -1
  44. package/dist/{chunk-BYK73CR7.js → chunk-GBGJ7A3D.js} +5 -5
  45. package/dist/{sherpa-LVIUEAGF.js → chunk-GEMJYBRU.js} +11 -45
  46. package/dist/{chunk-KO5QBV73.js → chunk-GMAJB2P6.js} +1 -1
  47. package/dist/{chunk-KQLGTGE5.js → chunk-GRY3PN3K.js} +2 -2
  48. package/dist/{chunk-7UYBQ6NF.js → chunk-GXJEGZL2.js} +30 -20
  49. package/dist/{chunk-KJJLA674.js → chunk-GZVP4TWN.js} +1 -46
  50. package/dist/{chunk-QVYVUCWD.js → chunk-HB7FJOY4.js} +1 -1
  51. package/dist/{chunk-QFN7NVWM.js → chunk-ICKDMTLA.js} +1 -1
  52. package/dist/{chunk-XONFUK3M.js → chunk-IEIJRMLZ.js} +47 -35
  53. package/dist/{chunk-PAGIICKN.js → chunk-IHTRYDFN.js} +1 -1
  54. package/dist/chunk-IR35BCLK.js +13 -0
  55. package/dist/{chunk-KDPYVTEU.js → chunk-KBB4RG6F.js} +6 -1
  56. package/dist/{chunk-ZQQ3SEIE.js → chunk-KIFHYXPB.js} +99 -31
  57. package/dist/{chunk-TAMQYQGJ.js → chunk-LAFJSYDL.js} +1 -1
  58. package/dist/{chunk-U3X3TPBW.js → chunk-MAYCCGMQ.js} +11 -2
  59. package/dist/{chunk-HC7EVDEL.js → chunk-OB5MJR4W.js} +1 -1
  60. package/dist/{chunk-N3DQEVSI.js → chunk-OTHDVXOJ.js} +8 -5
  61. package/dist/{chunk-Y6QL2LGO.js → chunk-PLR7Z6TC.js} +1 -1
  62. package/dist/{chunk-OBXQRJWQ.js → chunk-QATWIE4K.js} +1 -1
  63. package/dist/{chunk-HLYOEIWM.js → chunk-QLSM7K5S.js} +2 -2
  64. package/dist/{chunk-LW6HO6U3.js → chunk-R42WWQVB.js} +1 -1
  65. package/dist/{chunk-HMT2RPZU.js → chunk-U5QY7KTN.js} +13 -9
  66. package/dist/chunk-UPFUC4DB.js +136 -0
  67. package/dist/{chunk-33RZPZ4K.js → chunk-UXO2L7HJ.js} +366 -156
  68. package/dist/{chunk-GNBGPUJ7.js → chunk-VHFEMFYL.js} +3 -3
  69. package/dist/{chunk-4M4EC7JX.js → chunk-VRW6EBHV.js} +12 -1
  70. package/dist/{chunk-VIVBA6E6.js → chunk-XBX4QJP7.js} +1 -1
  71. package/dist/{chunk-CLOH4LIB.js → chunk-XIHCMVMG.js} +2 -2
  72. package/dist/{chunk-TVCRUG2S.js → chunk-ZEUONDQG.js} +1 -1
  73. package/dist/{chunk-OSSHSIMD.js → chunk-ZF7SXQJ7.js} +1 -1
  74. package/dist/{chunk-5FISWJ37.js → chunk-ZIYZ77MR.js} +4 -4
  75. package/dist/{chunk-3NE7ZYU2.js → chunk-ZSVUAVMT.js} +3 -3
  76. package/dist/{clean-YHGPY33K.js → clean-RDKJB5FK.js} +18 -18
  77. package/dist/cli.js +68 -56
  78. package/dist/{cloud-DOFI5ISR.js → cloud-QVPVVNCW.js} +4 -4
  79. package/dist/{cloudrun-KTZ4XDHL.js → cloudrun-3RE2UCQG.js} +4 -4
  80. package/dist/{compare-SMMIZN2C.js → compare-LEDOY7MO.js} +25 -25
  81. package/dist/{compiler-TEXQWW6N.js → compiler-F54OZZPM.js} +10 -4
  82. package/dist/{component-B3GCNGSS.js → component-N42M67WY.js} +3 -3
  83. package/dist/{compositions-OQNZZTKF.js → compositions-VB2J2LZI.js} +11 -11
  84. package/dist/{delete-EL5LVSEP.js → delete-Q6RWMJ4Z.js} +2 -2
  85. package/dist/{dist-5UVIRMSM.js → dist-KDJTFJHA.js} +2 -2
  86. package/dist/{dist-XN234YFQ.js → dist-Q4BI5A73.js} +4 -4
  87. package/dist/{doctor-UOL3OI2A.js → doctor-JMMUHDRV.js} +13 -13
  88. package/dist/{events-K2DB2PBC.js → events-6ZBSIBE5.js} +2 -2
  89. package/dist/{events-NIZBS6S7.js → events-RGUAHIBW.js} +3 -3
  90. package/dist/{feedback-QMP4E6L7.js → feedback-FIID6MZW.js} +9 -9
  91. package/dist/{ffmpeg-QIUFEFTY.js → ffmpeg-T5SH2EFJ.js} +3 -2
  92. package/dist/{figma-2AUJRNVC.js → figma-BL3JJC36.js} +3 -3
  93. package/dist/fontLocalizeCli.js +9 -9
  94. package/dist/{get-P5NC7SRM.js → get-P46GS7S6.js} +2 -2
  95. package/dist/{gpuPolicy-7N5MCE2G.js → gpuPolicy-AQ2BPLBK.js} +11 -9
  96. package/dist/{grade-compare-HV5AFZ6P.js → grade-compare-GDCWU7ZZ.js} +27 -27
  97. package/dist/{help-3TSTXBLN.js → help-HJR3RWFG.js} +2 -2
  98. package/dist/{history-D65XFJ6D.js → history-GGO5AWJB.js} +5 -5
  99. package/dist/hyperframe-runtime.js +59 -59
  100. package/dist/hyperframe.manifest.json +1 -1
  101. package/dist/hyperframe.runtime.iife.js +59 -59
  102. package/dist/hyperframes-player.global.js +3 -3
  103. package/dist/{info-TXV7MLFO.js → info-3GFWUBJC.js} +8 -8
  104. package/dist/{init-OSDMJZJV.js → init-36OPU2ZG.js} +35 -36
  105. package/dist/{inspect-RQQSAYIJ.js → inspect-F2HEL5ON.js} +26 -26
  106. package/dist/{installer-CDOB32HE.js → installer-NI6P6GC4.js} +5 -5
  107. package/dist/{keyframes-V75Q6GRM.js → keyframes-7OY3LMAZ.js} +6 -6
  108. package/dist/{lambda-RODV4RCX.js → lambda-6GJIWNJ3.js} +5 -5
  109. package/dist/{layout-IZAI5SFC.js → layout-FTMLNL5A.js} +26 -26
  110. package/dist/{lint-PLXOXY5R.js → lint-U6POHUON.js} +8 -8
  111. package/dist/{lintProject-OQ6H6XBR.js → lintProject-UBZ3TDHU.js} +2 -2
  112. package/dist/{list-BQBPNKDZ.js → list-IP5KI5Q2.js} +2 -2
  113. package/dist/{login-NP6F4FHC.js → login-4VWTVPHG.js} +4 -4
  114. package/dist/{manager-CT3D67CG.js → manager-BPSR6D3V.js} +2 -2
  115. package/dist/{manager-GXYF4AVO.js → manager-YKMHR6LN.js} +8 -5
  116. package/dist/{media-treatment-PXGMZ4A4.js → media-treatment-XGV44AGV.js} +16 -13
  117. package/dist/{models-CEZM6XZ7.js → models-UCXB6UR5.js} +59 -19
  118. package/dist/{motionShot-R4GHYWYM.js → motionShot-WPVNBXKA.js} +21 -22
  119. package/dist/{normalize-H6KUHHEI.js → normalize-U3SL5VG3.js} +2 -2
  120. package/dist/{normalize-audio-MQ7NFCOV.js → normalize-audio-TYJ3UEHO.js} +6 -6
  121. package/dist/{open-AKQTGNXF.js → open-HENOLVB2.js} +4 -4
  122. package/dist/parakeetRunner-VFQ6WFTD.js +67 -0
  123. package/dist/{pipeline-SYJYP2RM.js → pipeline-6WPSC3H4.js} +10 -9
  124. package/dist/{play-NBH4B7PL.js → play-OI53WNUM.js} +19 -19
  125. package/dist/{preflight-Y5DN5D37.js → preflight-B4AFK3RG.js} +4 -4
  126. package/dist/{present-XAX55CFS.js → present-NGMEQ4NO.js} +15 -15
  127. package/dist/{preview-OLANKNFA.js → preview-VT2HWRWZ.js} +19 -19
  128. package/dist/{producer-Q6YNZZUJ.js → producer-7TYEAUF7.js} +1 -1
  129. package/dist/{projectConfig-EM26P45P.js → projectConfig-B2AF5DXY.js} +7 -7
  130. package/dist/{publication-OXWJZKSX.js → publication-2PANQVC6.js} +3 -3
  131. package/dist/{publish-4VBWP2UB.js → publish-O5OL42BG.js} +11 -11
  132. package/dist/{remove-background-REB7427G.js → remove-background-T2JM6UVP.js} +11 -10
  133. package/dist/{render-K25YOG3M.js → render-OLPKOJRU.js} +11 -11
  134. package/dist/{render-3CVZ2SZG.js → render-W7OFXDOJ.js} +4 -4
  135. package/dist/{render-TSE75QUL.js → render-Z253WHBK.js} +26 -26
  136. package/dist/{render-batch-GGUOK3DS.js → render-batch-46IIBFKL.js} +4 -4
  137. package/dist/{renderCancellation-PZRWB53I.js → renderCancellation-QTZOCDJ2.js} +10 -9
  138. package/dist/renderSetupWorker.js +32 -44
  139. package/dist/{resolver-S5VK6UCB.js → resolver-J2PL5FVJ.js} +5 -5
  140. package/dist/sherpa-ZF42V3RN.js +75 -0
  141. package/dist/sherpaWorker.js +2 -1
  142. package/dist/skills/hyperframes/scripts/lib/frame-packets-core.mjs +2 -20
  143. package/dist/skills/hyperframes/scripts/lib/main-module.mjs +13 -0
  144. package/dist/skills/hyperframes/scripts/lib/main-module.test.mjs +51 -0
  145. package/dist/skills/hyperframes/scripts/plugin-cli.mjs +4 -3
  146. package/dist/skills/hyperframes/scripts/plugin-cli.test.mjs +5 -1
  147. package/dist/skills/hyperframes-cli/SKILL.md +2 -0
  148. package/dist/skills/hyperframes-cli/references/lint-validate-inspect.md +1 -1
  149. package/dist/skills/media-use/audio/scripts/heygen-voice.mjs +2 -2
  150. package/dist/skills/media-use/audio/scripts/lib/main-module.mjs +13 -0
  151. package/dist/skills/media-use/scripts/lib/cube-validate.mjs +2 -3
  152. package/dist/skills/media-use/scripts/lib/main-module.mjs +13 -0
  153. package/dist/{skills-I65FU5HD.js → skills-ACDOO3PX.js} +7 -7
  154. package/dist/{skillsUpdateCheck-J57RNNIV.js → skillsUpdateCheck-L5OXVVPU.js} +3 -3
  155. package/dist/{snapshot-YROOGY22.js → snapshot-UUVNZOW5.js} +28 -28
  156. package/dist/{src-JO5JOV7Y.js → src-BSLKXEGX.js} +10 -6
  157. package/dist/{src-X426BZAG.js → src-KS3AWFGT.js} +8 -8
  158. package/dist/{staticProjectServer-5VMBS262.js → staticProjectServer-2TTVGPQH.js} +15 -15
  159. package/dist/studio/assets/{hyperframes-player-BXSuksFh.js → hyperframes-player-DZ5JrMDg.js} +3 -3
  160. package/dist/studio/assets/{index-FgyO_5Kv.js → index-BOs6C0aZ.js} +1 -1
  161. package/dist/studio/assets/{index-BgOVCqjo.js → index-BqFRhNZa.js} +1 -1
  162. package/dist/studio/assets/{index-J7jpL4pj.js → index-D8W0a0Z9.js} +149 -149
  163. package/dist/studio/{chunk-TFLU2MGI.js → chunk-6JY3MTIX.js} +108 -2
  164. package/dist/studio/{chunk-H2DUOXTF.js → chunk-NZPJUZKT.js} +100 -4
  165. package/dist/studio/{chunk-UYWON5AX.js → chunk-TP6D3U37.js} +7 -100
  166. package/dist/studio/{chunk-LOVBLSMR.js → chunk-Y2OHHNM2.js} +35 -19
  167. package/dist/studio/{domEditingLayers-KBTPQKGA.js → domEditingLayers-PTP2ICGM.js} +3 -3
  168. package/dist/studio/index.d.ts +8 -5
  169. package/dist/studio/index.html +1 -1
  170. package/dist/studio/index.js +545 -495
  171. package/dist/studio/player.js +3 -3
  172. package/dist/studio/ui.d.ts +4 -5
  173. package/dist/studio/ui.js +1 -1
  174. package/dist/{studio-api-VRBZUGAE.js → studio-api-WYWF7XRC.js} +9 -9
  175. package/dist/{studioServer-DBNKZ6I6.js → studioServer-3FG4YTP7.js} +72 -54
  176. package/dist/{telemetry-CXAX3TO3.js → telemetry-PAOOB4T4.js} +3 -3
  177. package/dist/{timeline-VQ34WH7J.js → timeline-JIIJKKPC.js} +69 -47
  178. package/dist/{tokens-62R7VFAZ.js → tokens-3QRAM75Z.js} +2 -2
  179. package/dist/{transcribe-XOHPPL2O.js → transcribe-QSBP5MUG.js} +115 -51
  180. package/dist/{transcribe-7KR7IPJA.js → transcribe-SZB6UMXE.js} +14 -12
  181. package/dist/{tts-MUV42JXT.js → tts-B6AHFQEO.js} +1 -1
  182. package/dist/{updateCheck-POYNH3B5.js → updateCheck-V3DSB26K.js} +2 -2
  183. package/dist/{upgrade-NBNOT7J2.js → upgrade-L5GISOEV.js} +2 -2
  184. package/dist/{urlDownloader-3NS63A7B.js → urlDownloader-52FERT4X.js} +6 -6
  185. package/dist/{validate-Y2QDHAEP.js → validate-HVVLX7KO.js} +20 -20
  186. package/dist/{video-SJDMTSTL.js → video-MEOWRMFG.js} +7 -7
  187. package/package.json +1 -1
  188. package/dist/chunk-6TPZSTCL.js +0 -3681
  189. package/dist/studio/chunk-EEXSYY5F.js.map +0 -1
  190. package/dist/studio/chunk-H2DUOXTF.js.map +0 -1
  191. package/dist/studio/chunk-LOVBLSMR.js.map +0 -1
  192. package/dist/studio/chunk-PZ5AY32C.js.map +0 -1
  193. package/dist/studio/chunk-TFLU2MGI.js.map +0 -1
  194. package/dist/studio/chunk-UYWON5AX.js.map +0 -1
  195. package/dist/studio/domEditingLayers-KBTPQKGA.js.map +0 -1
  196. package/dist/studio/index.css.map +0 -1
  197. package/dist/studio/index.js.map +0 -1
  198. package/dist/studio/player.js.map +0 -1
  199. package/dist/studio/styles/tailwind-preset.js.map +0 -1
  200. package/dist/studio/ui.js.map +0 -1
  201. package/dist/{screenshotCapture-TEUIWXWN.js → screenshotCapture-3JXXUZND.js} +3 -3
  202. package/dist/{synthesize-C3IWDAXF.js → synthesize-UCI4X5O7.js} +4 -4
@@ -17,8 +17,11 @@ import {
17
17
  compositionStyle,
18
18
  cssStyleMergeKey,
19
19
  deferScriptsUntilFonts,
20
+ enumerateNestedCompositionHosts,
20
21
  escapeInlineScriptSource,
22
+ executableScripts,
21
23
  extractResolvedMedia,
24
+ extractedCompositionAssets,
22
25
  getHyperframeRuntimeScript,
23
26
  hasSameLink,
24
27
  headStyleRuns,
@@ -29,13 +32,13 @@ import {
29
32
  isJavaScriptType,
30
33
  parseHTMLContent,
31
34
  parseHostVariableValues,
32
- queryByAttr,
35
+ planCompositionAssembly,
33
36
  readDeclaredDefaults,
34
37
  shouldClampResolvedMediaDuration,
35
38
  stripEmbeddedRuntimeScripts,
36
39
  styleElementsFor,
37
40
  warnUnknownEnumValues
38
- } from "./chunk-6TPZSTCL.js";
41
+ } from "./chunk-AUWHD7RA.js";
39
42
  import {
40
43
  cssVariableName
41
44
  } from "./chunk-VC76R6W2.js";
@@ -45,7 +48,7 @@ import {
45
48
  } from "./chunk-OFQWTKPW.js";
46
49
  import {
47
50
  lintHyperframeHtml
48
- } from "./chunk-XONFUK3M.js";
51
+ } from "./chunk-IEIJRMLZ.js";
49
52
  import {
50
53
  checkSubCompositionUsability,
51
54
  resolveSubCompositionContent
@@ -62,10 +65,13 @@ import {
62
65
  rewriteCssAssetUrls,
63
66
  rewriteInlineStyleAssetUrls,
64
67
  splitUrlSuffix
65
- } from "./chunk-ZLW2V65P.js";
68
+ } from "./chunk-BSQ7XANM.js";
66
69
  import {
67
70
  parseHTML
68
71
  } from "./chunk-SDYDNHEE.js";
72
+ import {
73
+ parse
74
+ } from "./chunk-2PSPARWP.js";
69
75
 
70
76
  // ../core/dist/compiler/htmlCompiler.js
71
77
  import { resolve } from "path";
@@ -261,6 +267,66 @@ function sanitizeCssValue(value) {
261
267
  import { AsyncLocalStorage } from "async_hooks";
262
268
  import { readFileSync, existsSync, statSync } from "fs";
263
269
  import { resolve as resolve2, relative, dirname, isAbsolute, sep } from "path";
270
+
271
+ // ../core/dist/compiler/standaloneEntry.js
272
+ function isTemplateEntry(html) {
273
+ return html.trimStart().startsWith("<template");
274
+ }
275
+ function normalizeCompositionSrcPath(srcPath) {
276
+ return srcPath.replace(/\\/g, "/").replace(/^\.\//, "");
277
+ }
278
+ function readSceneRootDuration(entryHtml) {
279
+ if (!entryHtml)
280
+ return null;
281
+ const { document } = parseHTML(entryHtml);
282
+ const template = document.querySelector("template");
283
+ const scope = template ? parseHTML(template.innerHTML).document : document;
284
+ const root = scope.querySelector("[data-composition-id]");
285
+ return root?.getAttribute("data-duration") ?? null;
286
+ }
287
+ function createStandaloneEntryRenderClone(root, host, sceneDuration) {
288
+ const hostClone = host.cloneNode(true);
289
+ hostClone.setAttribute("data-start", "0");
290
+ if (root === host)
291
+ return hostClone;
292
+ const rootClone = root.cloneNode(false);
293
+ if (sceneDuration != null) {
294
+ rootClone.setAttribute("data-duration", sceneDuration);
295
+ } else {
296
+ rootClone.removeAttribute("data-duration");
297
+ }
298
+ rootClone.appendChild(hostClone);
299
+ return rootClone;
300
+ }
301
+ function replaceBodyWithRenderClone(body, renderClone) {
302
+ const libraries = Array.from(body.children).filter((child) => child.tagName === "SCRIPT" && child.hasAttribute("src"));
303
+ while (body.firstChild) {
304
+ body.removeChild(body.firstChild);
305
+ }
306
+ for (const library of libraries)
307
+ body.appendChild(library);
308
+ body.appendChild(renderClone);
309
+ }
310
+ function extractStandaloneEntryFromIndex(indexHtml, entryFile, entryHtml) {
311
+ const normalizedEntryFile = normalizeCompositionSrcPath(entryFile);
312
+ const { document } = parseHTML(indexHtml);
313
+ const body = document.querySelector("body");
314
+ if (!body)
315
+ return null;
316
+ const hosts = Array.from(document.querySelectorAll("[data-composition-src]"));
317
+ const host = hosts.find((candidate) => normalizeCompositionSrcPath(candidate.getAttribute("data-composition-src") || "") === normalizedEntryFile);
318
+ if (!host)
319
+ return null;
320
+ const root = Array.from(body.children).find((candidate) => candidate.hasAttribute("data-composition-id")) ?? null;
321
+ if (!root)
322
+ return null;
323
+ const sceneDuration = readSceneRootDuration(entryHtml) ?? host.getAttribute("data-duration");
324
+ const renderClone = createStandaloneEntryRenderClone(root, host, sceneDuration);
325
+ replaceBodyWithRenderClone(body, renderClone);
326
+ return document.toString();
327
+ }
328
+
329
+ // ../core/dist/compiler/htmlBundler.js
264
330
  import { transformSync } from "esbuild";
265
331
 
266
332
  // ../core/dist/generated/svg-selector-aliases-inline.js
@@ -1439,65 +1505,6 @@ function rewriteSvgIdReferencesInCss(css, idMap, references = []) {
1439
1505
  return mutated ? root.toResult({ map: false }).css : css;
1440
1506
  }
1441
1507
 
1442
- // ../core/dist/compiler/compositionAssembly.js
1443
- var COMPOSITION_ID_ATTR = "data-composition-id";
1444
- var COMPOSITION_SRC_ATTR = "data-composition-src";
1445
- var COMPOSITION_ROOT_SELECTOR = `[${COMPOSITION_ID_ATTR}]`;
1446
- var COMPOSITION_HOST_SELECTOR = `[${COMPOSITION_SRC_ATTR}]`;
1447
- var STYLE_SELECTOR = "style";
1448
- var SCRIPT_SELECTOR = "script";
1449
- var HOISTED_LINK_SELECTOR = 'link[rel="stylesheet"], link[rel="preconnect"]';
1450
- var EXTRACTED_COMPOSITION_ASSET_SELECTOR = `${STYLE_SELECTOR}, ${SCRIPT_SELECTOR}, ${HOISTED_LINK_SELECTOR}`;
1451
- var MAX_SUB_COMPOSITION_DEPTH = 20;
1452
- function toArray(items) {
1453
- return items ? Array.from(items) : [];
1454
- }
1455
- function planCompositionAssembly(input) {
1456
- const { contentNode, head, documentElement, hasTemplate, compositionId } = input;
1457
- const compositionRoots = toArray(contentNode.querySelectorAll(COMPOSITION_ROOT_SELECTOR));
1458
- const innerRoot = compositionId ? compositionRoots.find((root) => root.getAttribute(COMPOSITION_ID_ATTR) === compositionId) ?? null : compositionRoots[0] ?? null;
1459
- const declaredCompositionId = (innerRoot ?? compositionRoots[0])?.getAttribute(COMPOSITION_ID_ATTR)?.trim() || "";
1460
- const assetHead = hasTemplate ? null : head ?? null;
1461
- return {
1462
- innerRoot,
1463
- authoredCompositionId: compositionId || declaredCompositionId || null,
1464
- scriptCompositionId: declaredCompositionId || compositionId || null,
1465
- authoredRootId: innerRoot?.getAttribute("id")?.trim() || null,
1466
- styleSources: [
1467
- ...toArray(assetHead?.querySelectorAll(STYLE_SELECTOR)),
1468
- ...toArray(contentNode.querySelectorAll(STYLE_SELECTOR))
1469
- ],
1470
- scriptSources: [
1471
- ...toArray(assetHead?.querySelectorAll(SCRIPT_SELECTOR)),
1472
- ...toArray(contentNode.querySelectorAll(SCRIPT_SELECTOR))
1473
- ],
1474
- linkSources: [
1475
- ...toArray(head?.querySelectorAll(HOISTED_LINK_SELECTOR)),
1476
- ...toArray(contentNode.querySelectorAll(HOISTED_LINK_SELECTOR))
1477
- ],
1478
- variableDefaultCarriers: [documentElement, innerRoot].filter((carrier) => carrier != null)
1479
- };
1480
- }
1481
- function enumerateNestedCompositionHosts(assembledHost, ancestry) {
1482
- const hosts = [];
1483
- const skipped = [];
1484
- for (const nestedHost of assembledHost.querySelectorAll(COMPOSITION_HOST_SELECTOR)) {
1485
- const src = nestedHost.getAttribute(COMPOSITION_SRC_ATTR);
1486
- if (!src)
1487
- continue;
1488
- if (ancestry.includes(src)) {
1489
- skipped.push({ src, reason: "circular composition reference" });
1490
- continue;
1491
- }
1492
- if (ancestry.length >= MAX_SUB_COMPOSITION_DEPTH) {
1493
- skipped.push({ src, reason: "nesting depth exceeded" });
1494
- continue;
1495
- }
1496
- hosts.push({ host: nestedHost, src });
1497
- }
1498
- return { hosts, skipped };
1499
- }
1500
-
1501
1508
  // ../core/dist/compiler/inlineSubCompositions.js
1502
1509
  var SIDE_EFFECT_RE = /\b(addEventListener|requestAnimationFrame|requestIdleCallback|setTimeout|setInterval|queueMicrotask|getContext|WebGL\w*|WebGPU\w*|gpu|Worker|WebSocket|EventSource|Audio\w*|\w*Observer|fetch|import|eval|Function|Promise|async|await|delayedCall|ScrollTrigger|Draggable|anime|customElements|registerProperty|addListener|BroadcastChannel|pushState|replaceState|adoptedStyleSheets|documentElement|getElementsByTagName|lottie|THREE|__hf[A-Z]\w*)\b|\.then\s*\(|\.animate\s*\(|\.ticker\b|repeat\s*:\s*-1|\.repeat\s*\(\s*-1|defineProperty\s*\(\s*(window|globalThis|self|document)\b|\bfonts\s*\.\s*add\b|\.on[a-z]+\s*=(?!=)|\bon(resize|scroll|message|key\w+|click|pointer\w+|mouse\w+|wheel|visibilitychange|hashchange|popstate|error|load)\s*=(?!=)|\[\s*["']on[a-z]+["']\s*\]|document\s*\.\s*(head|body)\b|querySelector(All)?\(\s*["'](head|body)["']|\bgsap\s*\.\s*(?:to|from|fromTo)\s*\(|\bgsap\s*\.\s*timeline\s*\((?:[^()]|\([^()]*\))*\)\s*\.\s*(?:to|from|fromTo|set|add|call)\s*\(/;
1503
1510
  var SWAP_SAFE_LIBRARY_URL = /^https:\/\/(cdn\.jsdelivr\.net\/npm|unpkg\.com)\/(gsap|three|d3|d3-[a-z-]+|topojson-client|clipper-lib)(@[^/]+)?\//;
@@ -1746,7 +1753,7 @@ function inlineSubCompositions(document, hosts, options) {
1746
1753
  }
1747
1754
  if (innerRoot) {
1748
1755
  innerRoot.setAttribute("data-composition-file", src);
1749
- for (const child of [...innerRoot.querySelectorAll(EXTRACTED_COMPOSITION_ASSET_SELECTOR)])
1756
+ for (const child of extractedCompositionAssets(innerRoot))
1750
1757
  child.remove();
1751
1758
  if (flattenInnerRoot) {
1752
1759
  const prepared = flattenInnerRoot(innerRoot);
@@ -1761,11 +1768,13 @@ function inlineSubCompositions(document, hosts, options) {
1761
1768
  }
1762
1769
  }
1763
1770
  } else {
1764
- for (const child of [...contentDoc.querySelectorAll(EXTRACTED_COMPOSITION_ASSET_SELECTOR)])
1771
+ for (const child of extractedCompositionAssets(contentDoc))
1765
1772
  child.remove();
1766
1773
  const bodyHtml = contentDoc.body?.innerHTML || "";
1767
1774
  hostEl.innerHTML = bodyHtml || contentDoc.documentElement?.outerHTML || "";
1768
1775
  }
1776
+ for (const el of plan.inertScriptsOutsideRoot)
1777
+ hostEl.insertAdjacentHTML("beforeend", el.outerHTML);
1769
1778
  hostEl.setAttribute("data-composition-file", src);
1770
1779
  hostEl.removeAttribute("data-composition-src");
1771
1780
  const nestedAncestry = [...ancestry, src];
@@ -2403,12 +2412,17 @@ function coalesceHeadStylesAndBodyScripts(document) {
2403
2412
  const isPinned = (el) => el.hasAttribute(RUNTIME_BOOTSTRAP_ATTR) || el.hasAttribute(SCENE_PART_ATTR);
2404
2413
  for (const { members, anchor } of inlineScriptRuns([...document.querySelectorAll("body script")], isPinned)) {
2405
2414
  const mergedJs = joinJsChunks(members.map((el) => el.textContent || ""));
2415
+ if (mergedJs && !parsesAsScript(mergedJs)) {
2416
+ for (const el of members)
2417
+ el.textContent = inlineScriptSource(el.textContent || "");
2418
+ continue;
2419
+ }
2406
2420
  for (const el of members)
2407
2421
  el.remove();
2408
2422
  if (!mergedJs)
2409
2423
  continue;
2410
2424
  const inlineScript = document.createElement("script");
2411
- inlineScript.textContent = escapeInlineScriptSource(stripJsCommentsParserSafe(mergedJs));
2425
+ inlineScript.textContent = inlineScriptSource(mergedJs);
2412
2426
  if (anchor)
2413
2427
  anchor.before(inlineScript);
2414
2428
  else
@@ -2429,6 +2443,14 @@ function injectTextRenderingRule(document) {
2429
2443
  function joinJsChunks(chunks) {
2430
2444
  return chunks.map((chunk) => chunk.trim()).filter((chunk) => chunk.length > 0).map((chunk) => chunk.endsWith(";") ? chunk : chunk + "\n;").join("\n");
2431
2445
  }
2446
+ function parsesAsScript(source) {
2447
+ try {
2448
+ parse(source, { ecmaVersion: "latest", sourceType: "script" });
2449
+ return true;
2450
+ } catch {
2451
+ return false;
2452
+ }
2453
+ }
2432
2454
  function stripJsCommentsParserSafe(source) {
2433
2455
  if (!source)
2434
2456
  return source;
@@ -2439,6 +2461,9 @@ function stripJsCommentsParserSafe(source) {
2439
2461
  return source;
2440
2462
  }
2441
2463
  }
2464
+ function inlineScriptSource(js) {
2465
+ return escapeInlineScriptSource(stripJsCommentsParserSafe(js));
2466
+ }
2442
2467
  function preserveLocalScriptIntegrity(doc, src, resolvePath) {
2443
2468
  const path = resolvePath(src);
2444
2469
  if (!path)
@@ -2471,9 +2496,19 @@ function hoistExternalScript(src, projectDir, doc, seenSrcs, chunks, attributes)
2471
2496
  ensureExternalScriptTag(doc, src, attributes);
2472
2497
  }
2473
2498
  function hoistCompositionScripts(container, opts) {
2474
- for (const scriptEl of [...container.querySelectorAll("script")]) {
2499
+ for (const scriptEl of executableScripts(container)) {
2475
2500
  const externalSrc = (scriptEl.getAttribute("src") || "").trim();
2476
- if (externalSrc) {
2501
+ const type = (scriptEl.getAttribute("type") || "").trim().toLowerCase();
2502
+ if (!externalSrc && type === "importmap") {
2503
+ const map = parseImportMap(scriptEl.textContent || "", (url) => url);
2504
+ if (map)
2505
+ opts.importMaps.push(map);
2506
+ else
2507
+ console.warn(`[HyperFrames] ${opts.compId}: import map is not valid JSON, so it is skipped.`);
2508
+ } else if (!externalSrc && type === "module") {
2509
+ const prelude = opts.compId ? scopedModulePrelude(opts.runtimeCompId || opts.compId) : "";
2510
+ opts.moduleScripts.push(prelude + (scriptEl.textContent || ""));
2511
+ } else if (externalSrc) {
2477
2512
  hoistExternalScript(externalSrc, opts.projectDir, opts.document, opts.seenCompScriptSrcs, opts.compScriptChunks, readExternalScriptAttributes(scriptEl));
2478
2513
  } else {
2479
2514
  opts.compScriptChunks.push(opts.compId ? wrapScopedCompositionScript(scriptEl.textContent || "", opts.compId, "[HyperFrames] composition script error:", opts.runtimeScope, opts.runtimeCompId || opts.compId, opts.authoredRootId) : wrapInlineScriptWithErrorBoundary(scriptEl.textContent || "", "[HyperFrames] composition script error:"));
@@ -2485,23 +2520,31 @@ function bundleToSingleHtml(projectDir, options) {
2485
2520
  const bundle = () => bundleProject(projectDir, options);
2486
2521
  return options?.onRead ? bundleReads.run(options.onRead, bundle) : bundle();
2487
2522
  }
2523
+ function readMountedSceneShell(projectDir, entryFile, entryHtml) {
2524
+ if (!isTemplateEntry(entryHtml))
2525
+ return null;
2526
+ const indexHtml = safeReadFile(resolve2(projectDir, "index.html"));
2527
+ return indexHtml === null ? null : extractStandaloneEntryFromIndex(indexHtml, entryFile, entryHtml);
2528
+ }
2488
2529
  async function bundleProject(projectDir, options) {
2489
2530
  const entryFile = options?.entryFile ?? "index.html";
2490
2531
  const indexPath = resolveWithinProject(projectDir, entryFile);
2491
2532
  if (!indexPath || !existsSync(indexPath)) {
2492
2533
  throw new Error(`${entryFile} not found in project directory`);
2493
2534
  }
2494
- const sourceDir = dirname(indexPath);
2535
+ noteRead(indexPath);
2536
+ const entryHtml = readFileSync(indexPath, "utf-8");
2537
+ const mountedShell = readMountedSceneShell(projectDir, entryFile, entryHtml);
2538
+ const sourceDir = mountedShell ? projectDir : dirname(indexPath);
2495
2539
  const resolveEntryPath = (relativePath) => {
2496
2540
  const resolved = resolve2(sourceDir, relativePath);
2497
2541
  return isSafePath(projectDir, resolved) ? resolved : null;
2498
2542
  };
2499
2543
  const resolveEntryUrl = (url) => resolveEntryPath(decodedUrlPath(url));
2500
2544
  const readSource = options?.stampHfIds ? ensureHfIds : (html) => html;
2501
- noteRead(indexPath);
2502
- const rawHtml = readSource(readFileSync(indexPath, "utf-8"));
2545
+ const rawHtml = readSource(mountedShell ?? entryHtml);
2503
2546
  const compiled = await compileHtml(rawHtml, sourceDir, options?.probeMediaDuration);
2504
- if (options?.staticGuard !== false) {
2547
+ if (options?.staticGuard !== false && !mountedShell) {
2505
2548
  const staticGuard = await validateHyperframeHtmlContract(compiled);
2506
2549
  if (!staticGuard.isValid) {
2507
2550
  console.warn(`[StaticGuard] Invalid HyperFrame contract: ${staticGuard.missingKeys.join("; ")}`);
@@ -2629,8 +2672,12 @@ async function bundleProject(projectDir, options) {
2629
2672
  const hostIdentity = hostIdentityByElement.get(host);
2630
2673
  const runtimeCompId = hostIdentity?.runtimeCompositionId || compId;
2631
2674
  const innerDoc = parseHTMLContent(templateHtml);
2632
- const innerRoot = queryByAttr(innerDoc, "data-composition-id", compId);
2633
- const authoredRootId = innerRoot?.getAttribute("id")?.trim() || null;
2675
+ const plan = planCompositionAssembly({
2676
+ contentNode: innerDoc,
2677
+ hasTemplate: true,
2678
+ compositionId: compId
2679
+ });
2680
+ const { innerRoot, authoredRootId } = plan;
2634
2681
  const runtimeScope = runtimeCompId ? cssAttributeSelector("data-composition-id", runtimeCompId) : "";
2635
2682
  const mergedVariables = runtimeCompId ? parseHostVariableValues(host) : {};
2636
2683
  if (runtimeCompId && Object.keys(mergedVariables).length > 0) {
@@ -2659,7 +2706,9 @@ async function bundleProject(projectDir, options) {
2659
2706
  runtimeCompId,
2660
2707
  authoredRootId: authoredRootId ?? void 0,
2661
2708
  seenCompScriptSrcs,
2662
- compScriptChunks
2709
+ compScriptChunks,
2710
+ importMaps: subCompResult.importMaps,
2711
+ moduleScripts: subCompResult.moduleScripts
2663
2712
  });
2664
2713
  const innerW = innerRoot.getAttribute("data-width");
2665
2714
  const innerH = innerRoot.getAttribute("data-height");
@@ -2687,10 +2736,14 @@ async function bundleProject(projectDir, options) {
2687
2736
  runtimeCompId,
2688
2737
  authoredRootId: void 0,
2689
2738
  seenCompScriptSrcs,
2690
- compScriptChunks
2739
+ compScriptChunks,
2740
+ importMaps: subCompResult.importMaps,
2741
+ moduleScripts: subCompResult.moduleScripts
2691
2742
  });
2692
2743
  host.innerHTML = innerDoc.body.innerHTML || "";
2693
2744
  }
2745
+ for (const el of plan.inertScriptsOutsideRoot)
2746
+ host.insertAdjacentHTML("beforeend", el.outerHTML);
2694
2747
  }
2695
2748
  templateEl.remove();
2696
2749
  }
@@ -2732,11 +2785,16 @@ async function bundleProject(projectDir, options) {
2732
2785
  }
2733
2786
  }
2734
2787
  for (const { scene, chunks } of scriptRuns) {
2735
- const script = document.createElement("script");
2736
- if (scene)
2737
- script.setAttribute(SCENE_PART_ATTR, scene);
2738
- script.textContent = joinJsChunks(chunks.map((chunk) => typeof chunk === "string" ? chunk : chunk()));
2739
- document.body.appendChild(script);
2788
+ const texts = chunks.map((chunk) => typeof chunk === "string" ? chunk : chunk());
2789
+ const joined = joinJsChunks(texts);
2790
+ const skipsRunMerge = Boolean(scene);
2791
+ for (const text of parsesAsScript(joined) ? [joined] : texts.filter(Boolean)) {
2792
+ const script = document.createElement("script");
2793
+ if (scene)
2794
+ script.setAttribute(SCENE_PART_ATTR, scene);
2795
+ script.textContent = skipsRunMerge ? inlineScriptSource(text) : text;
2796
+ document.body.appendChild(script);
2797
+ }
2740
2798
  }
2741
2799
  emitMountedModuleScripts(document, subCompResult.importMaps, subCompResult.moduleScripts);
2742
2800
  emitRootCompositionVariableStyles(document, compVariablesByComp);
@@ -3027,6 +3085,8 @@ export {
3027
3085
  ensureExternalScriptTag,
3028
3086
  emitMountedModuleScripts,
3029
3087
  FLATTENED_INNER_ROOT_STRIP_ATTRS,
3088
+ isTemplateEntry,
3089
+ extractStandaloneEntryFromIndex,
3030
3090
  scopeCssToComposition,
3031
3091
  wrapScopedCompositionScript,
3032
3092
  buildVariablesByCompScript,
@@ -3035,6 +3095,7 @@ export {
3035
3095
  inlineSubCompositions,
3036
3096
  assignBundledRuntimeCompositionIds,
3037
3097
  prepareFlattenedInnerRoot,
3098
+ parsesAsScript,
3038
3099
  bundleToSingleHtml,
3039
3100
  emitRootCompositionVariableStyles,
3040
3101
  extractCompiledHtmlParityContract,
@@ -15,7 +15,7 @@ import {
15
15
  } from "./chunk-PBN6GBJE.js";
16
16
  import {
17
17
  parseFps
18
- } from "./chunk-4M4EC7JX.js";
18
+ } from "./chunk-VRW6EBHV.js";
19
19
 
20
20
  // src/browser/windowsCrash.ts
21
21
  var STATUS_STACK_BUFFER_OVERRUN_DEC = "3221225595";
@@ -20,7 +20,7 @@ import {
20
20
  } from "./chunk-3DKN5WKL.js";
21
21
  import {
22
22
  runEnvironmentChecks
23
- } from "./chunk-KOEWEFHK.js";
23
+ } from "./chunk-DIRJ322I.js";
24
24
  import {
25
25
  getAvailableMemoryMb,
26
26
  getFreeDiskMb,
@@ -32,18 +32,18 @@ import {
32
32
  } from "./chunk-S3S4TGEH.js";
33
33
  import {
34
34
  resolveExtractCacheDir
35
- } from "./chunk-33RZPZ4K.js";
35
+ } from "./chunk-UXO2L7HJ.js";
36
36
  import {
37
37
  getUpdateMeta,
38
38
  withMeta
39
- } from "./chunk-Y6QL2LGO.js";
39
+ } from "./chunk-PLR7Z6TC.js";
40
40
  import {
41
41
  CONFIG_PATH,
42
42
  withFileLock
43
43
  } from "./chunk-XUXGIA7H.js";
44
44
  import {
45
45
  VERSION
46
- } from "./chunk-W35EKBS6.js";
46
+ } from "./chunk-BFACGEII.js";
47
47
  import {
48
48
  normalizeErrorMessage
49
49
  } 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-GXYF4AVO.js");
235
+ const { findWhisper, getInstallInstructions } = await import("./manager-YKMHR6LN.js");
236
236
  const result = findWhisper();
237
237
  if (result) {
238
238
  return { ok: true, detail: result.executablePath };
@@ -17,48 +17,16 @@ import {
17
17
  runNpm,
18
18
  sweepStaleStaging
19
19
  } from "./chunk-3DKN5WKL.js";
20
- import "./chunk-EOVYQ3IG.js";
21
20
  import {
22
21
  getPreparedWavDurationSeconds,
23
22
  prepareWav
24
- } from "./chunk-N3DQEVSI.js";
23
+ } from "./chunk-OTHDVXOJ.js";
25
24
  import {
26
25
  emitWords
27
26
  } from "./chunk-6IHWCZ3W.js";
28
27
  import {
29
28
  stoppedByCancelSignal
30
- } from "./chunk-UICWP23D.js";
31
- import "./chunk-6BEFEWFB.js";
32
- import "./chunk-U3X3TPBW.js";
33
- import "./chunk-BHVFTYSI.js";
34
- import "./chunk-TVCRUG2S.js";
35
- import "./chunk-AMKC3AXA.js";
36
- import "./chunk-33RZPZ4K.js";
37
- import "./chunk-F26LCYRY.js";
38
- import "./chunk-NE55C6S5.js";
39
- import "./chunk-USDEMXXL.js";
40
- import "./chunk-4M4EC7JX.js";
41
- import "./chunk-6TPZSTCL.js";
42
- import "./chunk-VC76R6W2.js";
43
- import "./chunk-YA62XGXS.js";
44
- import "./chunk-MQZVBHEY.js";
45
- import "./chunk-OFQWTKPW.js";
46
- import "./chunk-DPVXBVLL.js";
47
- import "./chunk-T76PLPD6.js";
48
- import "./chunk-FXMKHHPO.js";
49
- import "./chunk-RQVDTPGD.js";
50
- import "./chunk-LAOCA3MQ.js";
51
- import "./chunk-LCSMOLGX.js";
52
- import "./chunk-TWWSYAKJ.js";
53
- import "./chunk-XONFUK3M.js";
54
- import "./chunk-IWFLMU2N.js";
55
- import "./chunk-APDLWWFG.js";
56
- import "./chunk-PJ3HDUCY.js";
57
- import "./chunk-3RM2ETQT.js";
58
- import "./chunk-ZLW2V65P.js";
59
- import "./chunk-SDYDNHEE.js";
60
- import "./chunk-2PSPARWP.js";
61
- import "./chunk-T42U2W2R.js";
29
+ } from "./chunk-FBCULCAL.js";
62
30
  import {
63
31
  PARAKEET_MODEL_LABEL,
64
32
  SHERPA_ERROR_PREFIX,
@@ -66,10 +34,7 @@ import {
66
34
  SHERPA_WINDOW_PREFIX,
67
35
  mergeWindowsToWords,
68
36
  writeParakeetTranscript
69
- } from "./chunk-KDPYVTEU.js";
70
- import "./chunk-UOFAE5RF.js";
71
- import "./chunk-3GXQPCJC.js";
72
- import "./chunk-M2WBOQ2Q.js";
37
+ } from "./chunk-KBB4RG6F.js";
73
38
 
74
39
  // src/whisper/sherpa.ts
75
40
  import { execFile, spawn } from "child_process";
@@ -414,16 +379,17 @@ async function transcribeWithSherpa(wavPath, dir, options) {
414
379
  });
415
380
  return result;
416
381
  }
382
+
417
383
  export {
418
- DecodeCancelled,
419
- PARAKEET_MODEL_DIR,
420
384
  SHERPA_RUNTIME_DIR,
421
- ensureParakeetModel,
385
+ PARAKEET_MODEL_DIR,
386
+ sherpaUnsupportedReason,
387
+ sherpaRuntimeLoadError,
388
+ sherpaPlatformPackage,
422
389
  installSherpaRuntime,
423
- prepareSherpaWav,
424
390
  sherpaParakeetInstalled,
425
- sherpaPlatformPackage,
426
- sherpaRuntimeLoadError,
427
- sherpaUnsupportedReason,
391
+ ensureParakeetModel,
392
+ DecodeCancelled,
393
+ prepareSherpaWav,
428
394
  transcribeWithSherpa
429
395
  };
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  VERSION
9
- } from "./chunk-W35EKBS6.js";
9
+ } from "./chunk-BFACGEII.js";
10
10
 
11
11
  // src/registry/compatibility.ts
12
12
  import { compareVersions } from "compare-versions";
@@ -8,10 +8,10 @@ import {
8
8
  DEFAULT_VP9_CPU_USED,
9
9
  isHttpUrl,
10
10
  runFfmpeg
11
- } from "./chunk-33RZPZ4K.js";
11
+ } from "./chunk-UXO2L7HJ.js";
12
12
  import {
13
13
  parseAnimatedGifMetadata
14
- } from "./chunk-4M4EC7JX.js";
14
+ } from "./chunk-VRW6EBHV.js";
15
15
  import {
16
16
  parseHTML
17
17
  } from "./chunk-SDYDNHEE.js";