hyperframes 0.9.54 → 0.9.56

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 (316) hide show
  1. package/dist/{add-OVHVUHQR.js → add-KW7OTOWF.js} +23 -23
  2. package/dist/{agentPromptGenerator-L2B3HMHF.js → agentPromptGenerator-NNXUWNU4.js} +14 -13
  3. package/dist/{animatedGifPrep-YMJH33FX.js → animatedGifPrep-6ATQHQON.js} +15 -14
  4. package/dist/api.d.ts +4 -2
  5. package/dist/api.js +46 -44
  6. package/dist/{appHistory-T3ZLA7QN.js → appHistory-KHX53SGI.js} +6 -4
  7. package/dist/{asset-ORCN4EVH.js → asset-QVINGJRK.js} +2 -2
  8. package/dist/{assetCataloger-X23VB66T.js → assetCataloger-DENJPUBH.js} +15 -14
  9. package/dist/{audio-NHNXBUI2.js → audio-LB7HQYPJ.js} +28 -27
  10. package/dist/{auth-DQDDXQFC.js → auth-7AGRVI5A.js} +2 -2
  11. package/dist/{autoUpdate-LF7BJN34.js → autoUpdate-ITCP2JDM.js} +4 -4
  12. package/dist/{avatars-KFUMWRVX.js → avatars-2K2C74EQ.js} +19 -17
  13. package/dist/{backgroundChecks-Y6RHADW6.js → backgroundChecks-UOTBCWPN.js} +5 -5
  14. package/dist/backgroundChecksWorker.js +5 -5
  15. package/dist/{batchRender-CMG4SVBX.js → batchRender-Z7ESYQDS.js} +9 -7
  16. package/dist/{beats-JXZBK7JI.js → beats-TG6ZB3XH.js} +14 -14
  17. package/dist/{benchmark-CLU6JUGY.js → benchmark-RU5MLZHE.js} +20 -20
  18. package/dist/{billing-5GMYFDMC.js → billing-VB5PYYSN.js} +19 -19
  19. package/dist/{browser-S4R6LZMF.js → browser-VSQRY5GG.js} +12 -12
  20. package/dist/{bundleWithLocalizedFonts-SFUFSBEU.js → bundleWithLocalizedFonts-XDPJE355.js} +1 -1
  21. package/dist/{capture-A3FLQIDI.js → capture-M4FL7MWI.js} +25 -24
  22. package/dist/{capture-NL7V23HG.js → capture-TQCFWPAT.js} +4 -4
  23. package/dist/{captureCompositionFrame-R7GYVNTF.js → captureCompositionFrame-XF67Q6YK.js} +20 -19
  24. package/dist/{captureFile-LXMDM5TD.js → captureFile-F254H22J.js} +3 -3
  25. package/dist/{catalog-42I7W7AU.js → catalog-24EGH662.js} +23 -23
  26. package/dist/catalog-artifact/media-vectors.json +205 -0
  27. package/dist/{catch-up-TFSQZQZD.js → catch-up-L23HGDLB.js} +16 -16
  28. package/dist/{check-CXRQZBLD.js → check-F4HQVV2M.js} +56 -53
  29. package/dist/{checkAudio-AJUH6RU6.js → checkAudio-6DT3ONR7.js} +17 -16
  30. package/dist/{checkBrowser-4BLSYI25.js → checkBrowser-S7P4X7QV.js} +46 -45
  31. package/dist/{chunk-Q42L7V5T.js → chunk-2GRCTZNS.js} +1 -1
  32. package/dist/{chunk-EKANCN4D.js → chunk-2ZOJCSLJ.js} +3 -3
  33. package/dist/{chunk-ER22SVLT.js → chunk-3GVHDPEP.js} +1 -1
  34. package/dist/{chunk-MPU2CRFV.js → chunk-43CQTZGB.js} +13 -14
  35. package/dist/{chunk-63ESYLBY.js → chunk-4DJGUZJR.js} +2 -2
  36. package/dist/{chunk-B6AK5P2D.js → chunk-4GPKDDQZ.js} +7 -7
  37. package/dist/{chunk-KYUCSRZU.js → chunk-4WSJ5MUN.js} +1 -1
  38. package/dist/{chunk-T5S7U5C6.js → chunk-52XHPMCX.js} +1 -1
  39. package/dist/chunk-56T2OGYR.js +5085 -0
  40. package/dist/{chunk-4Q3Q4NFK.js → chunk-5GSCSZOS.js} +2 -2
  41. package/dist/{chunk-3L2POG2J.js → chunk-5IE5ZI66.js} +37 -8
  42. package/dist/{chunk-SWAG64KW.js → chunk-5ZDNSYTO.js} +8 -13
  43. package/dist/{chunk-N7M2SNAF.js → chunk-664QGMR4.js} +2 -2
  44. package/dist/chunk-677JGYQL.js +91 -0
  45. package/dist/{chunk-GA6QR6LN.js → chunk-6LONEKJR.js} +253 -158
  46. package/dist/{chunk-LEIR7IDJ.js → chunk-6LU6JICP.js} +80 -1
  47. package/dist/{chunk-SVIA7POL.js → chunk-6XRXUMFG.js} +2 -2
  48. package/dist/{chunk-4ZFNNWUX.js → chunk-7DKWEIH4.js} +10 -10
  49. package/dist/{chunk-GEUM7NDY.js → chunk-7E7VKASF.js} +2 -2
  50. package/dist/{chunk-5HJZGP54.js → chunk-7F4RAWDS.js} +2 -2
  51. package/dist/{chunk-OWS4ZWEY.js → chunk-7HQC5MDZ.js} +1 -1
  52. package/dist/{chunk-P4YIRU76.js → chunk-7QFFS657.js} +1 -1
  53. package/dist/{chunk-AYESPEPQ.js → chunk-7QFLMCTD.js} +6 -1
  54. package/dist/chunk-AGTBMLNM.js +42 -0
  55. package/dist/{chunk-BNONW4QT.js → chunk-AN6KWGYI.js} +2 -2
  56. package/dist/{chunk-JAAIW4JR.js → chunk-ANYW22IT.js} +1 -1
  57. package/dist/{chunk-JRSBBFUU.js → chunk-APCVZGU6.js} +402 -110
  58. package/dist/{chunk-7WRLK2K4.js → chunk-B6BWLFAF.js} +2 -2
  59. package/dist/{chunk-VCKUDUPN.js → chunk-BA33QNKK.js} +199 -15
  60. package/dist/{chunk-WPSPW7SI.js → chunk-BMVUB2CY.js} +6 -6
  61. package/dist/{chunk-5XLTJMCN.js → chunk-BPYNILOZ.js} +5 -5
  62. package/dist/{chunk-H5KHQ6KS.js → chunk-BR7GOCQJ.js} +1 -1
  63. package/dist/{chunk-6SRBTOGD.js → chunk-BTJYK56C.js} +3 -3
  64. package/dist/{chunk-EA5W2DWO.js → chunk-BUG5AOPJ.js} +3 -3
  65. package/dist/{chunk-7RI3U46M.js → chunk-BW4H55SU.js} +1 -1
  66. package/dist/{chunk-SDFGDNWV.js → chunk-BZXW5QU7.js} +1 -1
  67. package/dist/{chunk-WPD7JH6F.js → chunk-CBG6MIT2.js} +2 -2
  68. package/dist/{chunk-O7TIBLSJ.js → chunk-CKIVYAKG.js} +80 -15
  69. package/dist/{chunk-YVCPUVHV.js → chunk-CKIYT34K.js} +1 -1
  70. package/dist/{chunk-DWDCE4PO.js → chunk-CLRHKYOK.js} +6 -6
  71. package/dist/{chunk-3IUBSGD2.js → chunk-CNXZCMJZ.js} +2 -2
  72. package/dist/{chunk-F64VFCVC.js → chunk-CPSD7337.js} +51 -28
  73. package/dist/{chunk-73UFPVUC.js → chunk-CUO2HF4M.js} +2 -2
  74. package/dist/{chunk-JSYLOPVJ.js → chunk-CWIOKI2R.js} +1 -1
  75. package/dist/{chunk-IB6FFEDH.js → chunk-CXFW7YPT.js} +42 -48
  76. package/dist/{chunk-YNF3SH26.js → chunk-CZCZ5YXT.js} +3 -2
  77. package/dist/{chunk-SUG2AA33.js → chunk-D3WRRPHI.js} +10 -10
  78. package/dist/{chunk-CWXJZB44.js → chunk-DDCXMXAD.js} +11 -11
  79. package/dist/{chunk-X6TDH2OM.js → chunk-DUZ6Z2ZN.js} +1 -1
  80. package/dist/{chunk-DXVK3NMV.js → chunk-EBRN4YJH.js} +3 -3
  81. package/dist/{chunk-RBBWUYMG.js → chunk-EGR2ZFFP.js} +4 -4
  82. package/dist/{chunk-AU4ZBCR3.js → chunk-EKSS3KI7.js} +1 -1
  83. package/dist/{chunk-TMV76KPG.js → chunk-EUP7ODOV.js} +1 -1
  84. package/dist/{chunk-E2DHBP6C.js → chunk-FGGRBKWL.js} +1 -1
  85. package/dist/{chunk-GIOLHGCC.js → chunk-GTC2STHN.js} +116 -27
  86. package/dist/{chunk-E7T5SMDK.js → chunk-GWSMTN55.js} +51 -10
  87. package/dist/{chunk-QGKRHG4Q.js → chunk-HCQXGGVY.js} +18 -18
  88. package/dist/{chunk-WAAXVZIT.js → chunk-HOCV5AW6.js} +2 -2
  89. package/dist/{chunk-7RGWVZOS.js → chunk-HVG656G6.js} +3 -3
  90. package/dist/{chunk-D4EGZYDN.js → chunk-ICDGP335.js} +13 -10
  91. package/dist/{chunk-NKAW4RVE.js → chunk-IDGWNOBX.js} +1 -1
  92. package/dist/{chunk-YU5LSWA2.js → chunk-IHX3AFTY.js} +2 -2
  93. package/dist/{chunk-CAYQATCT.js → chunk-IO7PRQQC.js} +1 -1
  94. package/dist/{chunk-BDWLBCTG.js → chunk-IRZUZ32B.js} +5 -5
  95. package/dist/{chunk-QONV77VI.js → chunk-IT2QBRVS.js} +1 -1
  96. package/dist/{chunk-PXLGDX2S.js → chunk-JDXALWOM.js} +39 -24
  97. package/dist/{chunk-E7X54BVP.js → chunk-JPEIUGS5.js} +1 -1
  98. package/dist/{chunk-4IUOWNDS.js → chunk-JQKCRTVQ.js} +2 -2
  99. package/dist/{chunk-UZJ7Y7WU.js → chunk-KRYXZVA2.js} +3 -3
  100. package/dist/{chunk-CIYNUD7Q.js → chunk-L27Z3PZT.js} +1 -1
  101. package/dist/{chunk-CBCB6GPL.js → chunk-L5CBCPUH.js} +60 -33
  102. package/dist/{chunk-BBDWXUO3.js → chunk-L5NPBGQB.js} +15 -22
  103. package/dist/{chunk-B5HSHXE2.js → chunk-LH5FRVAO.js} +12 -7
  104. package/dist/{chunk-YBLBI3O2.js → chunk-LK7F7P2X.js} +6 -3
  105. package/dist/{chunk-4WK4O5FI.js → chunk-LRQEIKFT.js} +67 -27
  106. package/dist/{chunk-FUPEHRNT.js → chunk-LRWWCTSJ.js} +2 -2
  107. package/dist/{chunk-RXJUMVCA.js → chunk-MDRLJ737.js} +5 -2
  108. package/dist/{chunk-VK3MQSA2.js → chunk-MK4RH5L7.js} +5 -2
  109. package/dist/{chunk-AROERRUJ.js → chunk-MP52CUHL.js} +2 -2
  110. package/dist/{chunk-ATKA5KHE.js → chunk-MPOWSPBD.js} +3 -3
  111. package/dist/{chunk-H7DKHNBF.js → chunk-MVLAPENI.js} +36 -8
  112. package/dist/{chunk-2PASB3PC.js → chunk-NCJSN6SV.js} +5 -5
  113. package/dist/{chunk-DVTRMGYG.js → chunk-NFST2HIM.js} +2 -2
  114. package/dist/{chunk-C7LNWZ7G.js → chunk-OXT2LXZB.js} +8 -6
  115. package/dist/{chunk-MEGSQW2I.js → chunk-OZDELWQP.js} +2 -29
  116. package/dist/{chunk-EB4IWBBC.js → chunk-PCKKKICA.js} +18 -4
  117. package/dist/{chunk-SOMX57XG.js → chunk-PGHROSLJ.js} +4 -4
  118. package/dist/{chunk-Q3ESTCZH.js → chunk-PGJYA6I3.js} +11 -11
  119. package/dist/{chunk-NKUUNSII.js → chunk-PHAZT6EB.js} +1 -1
  120. package/dist/{chunk-KCF6Q54R.js → chunk-PUTPYYE4.js} +1 -1
  121. package/dist/{chunk-NRGNEP3R.js → chunk-PVF32NRA.js} +2 -2
  122. package/dist/{chunk-32DAUKF5.js → chunk-Q2TT62RQ.js} +4 -4
  123. package/dist/{chunk-EXXIFMUX.js → chunk-QBADK3LD.js} +13 -5
  124. package/dist/{chunk-DOLVT6CH.js → chunk-QJDMX53S.js} +1 -1
  125. package/dist/{chunk-F7B2YDPM.js → chunk-QNIID7EN.js} +6 -8
  126. package/dist/{chunk-FICKJQU2.js → chunk-QTZICZWT.js} +4 -4
  127. package/dist/{chunk-Y6UCMYJZ.js → chunk-R2LP7QPB.js} +1 -1
  128. package/dist/{chunk-YUDWGRNZ.js → chunk-RCGNYXWK.js} +14 -14
  129. package/dist/{chunk-CNZOKODL.js → chunk-RFULFCYW.js} +3 -3
  130. package/dist/{chunk-26RTKW2U.js → chunk-RRT6URIP.js} +2 -2
  131. package/dist/{chunk-IR2GEREV.js → chunk-SEC76O65.js} +1 -1
  132. package/dist/{chunk-3NXY6O4X.js → chunk-SGWDJLFL.js} +1 -1
  133. package/dist/{chunk-RXSPJW77.js → chunk-T5HYPGST.js} +4 -4
  134. package/dist/{chunk-77U3646W.js → chunk-TVZTTWU7.js} +2 -2
  135. package/dist/{chunk-ELA3IV4P.js → chunk-TY7EHE4Q.js} +2 -2
  136. package/dist/{chunk-75TCOXNT.js → chunk-UHVKV5IF.js} +1 -1
  137. package/dist/{chunk-SULPT5X6.js → chunk-UIMXEY4U.js} +6 -6
  138. package/dist/{chunk-KWTTELUY.js → chunk-UVPLW55S.js} +37 -1
  139. package/dist/{chunk-EKCGL4MV.js → chunk-VC4YMXUQ.js} +1 -1
  140. package/dist/{chunk-H2GJDFF6.js → chunk-VCSQLM36.js} +14 -9
  141. package/dist/{chunk-VT2K6I4A.js → chunk-VVXSMYXQ.js} +3 -3
  142. package/dist/{chunk-NCLBKHCX.js → chunk-W4AR7UZH.js} +2 -2
  143. package/dist/{chunk-TM7D3NOR.js → chunk-WFB4XPJR.js} +45 -11
  144. package/dist/{chunk-PAA5FUUL.js → chunk-WGWKT7ME.js} +3 -3
  145. package/dist/{chunk-LRXARA5O.js → chunk-WHX2OV4C.js} +1 -1
  146. package/dist/{chunk-O6E5HSVF.js → chunk-WUY74LHU.js} +2 -2
  147. package/dist/{chunk-RZJ7BHXB.js → chunk-XD5T43S7.js} +1 -1
  148. package/dist/{chunk-3NPZZT2K.js → chunk-XEVAW42J.js} +9 -9
  149. package/dist/{chunk-JHOCK3DG.js → chunk-XFF4XJZO.js} +11 -3
  150. package/dist/{chunk-4NG5GSTO.js → chunk-XKNNZ4WR.js} +1 -1
  151. package/dist/{chunk-3IHRXHJQ.js → chunk-XLP34AJR.js} +2 -2
  152. package/dist/{chunk-QKYGGUOQ.js → chunk-YDNBMPP3.js} +4 -4
  153. package/dist/{chunk-PLOVBMJF.js → chunk-YFWFCKKF.js} +291 -235
  154. package/dist/{chunk-EZQJFCWA.js → chunk-YOMFN6HH.js} +2 -2
  155. package/dist/{chunk-TRAPS5WB.js → chunk-YQSVPHOS.js} +27 -37
  156. package/dist/{chunk-OTWFSHYH.js → chunk-YWH7HWDP.js} +269 -145
  157. package/dist/chunk-YXX6CIHL.js +25 -0
  158. package/dist/{chunk-TW4DB2NK.js → chunk-Z72VXQPN.js} +2 -2
  159. package/dist/{chunk-KTLRJZFK.js → chunk-ZIF44RW2.js} +9 -10
  160. package/dist/{clean-JK4VQMTH.js → clean-VB6BH3FV.js} +30 -29
  161. package/dist/cli.js +66 -66
  162. package/dist/{cloud-JZ2WKHQG.js → cloud-7KRPD2K4.js} +4 -4
  163. package/dist/{cloud-LU4FVT33.js → cloud-A67BW6OH.js} +3 -3
  164. package/dist/{cloudrun-QBXSGBGX.js → cloudrun-VKBARVVT.js} +22 -9
  165. package/dist/{compare-YE5BTDCG.js → compare-SE55PMC3.js} +45 -44
  166. package/dist/{compiler-QEA5UQRG.js → compiler-WK7ABGRW.js} +6 -6
  167. package/dist/{component-MGT5ZJ4M.js → component-XT2AT3RY.js} +3 -3
  168. package/dist/{compositions-7OF6FDCH.js → compositions-ZZWLQNDQ.js} +25 -23
  169. package/dist/{contactSheet-CCHQAZLA.js → contactSheet-MXOASCDR.js} +4 -4
  170. package/dist/{curve-JQLVUDXR.js → curve-4RQQKZ2K.js} +19 -17
  171. package/dist/{cuts-MCJP6LMJ.js → cuts-M3QU2CBE.js} +20 -18
  172. package/dist/{delete-PUYEW3RJ.js → delete-5ZZNPK5G.js} +7 -7
  173. package/dist/{deploy-M4XGMJM5.js → deploy-VR5SQP4U.js} +9 -4
  174. package/dist/{describeProject-P7CBZ6NW.js → describeProject-NU5BVVIA.js} +14 -13
  175. package/dist/{destroy-6XJWSH2A.js → destroy-FFS62PAW.js} +9 -4
  176. package/dist/{deterministicFonts-OXGNMVJE.js → deterministicFonts-FQQNGORI.js} +4 -4
  177. package/dist/{diff-BATSO64W.js → diff-NQGTF6GR.js} +58 -52
  178. package/dist/{dist-T62DJJZX.js → dist-6GYOC3BU.js} +4 -4
  179. package/dist/{dist-G6W7GKGP.js → dist-APXZ5EN2.js} +3 -3
  180. package/dist/{dist-PC3EMMET.js → dist-B7IBHWIW.js} +18 -15
  181. package/dist/{doctor-ONTGSPYF.js → doctor-FATJGTPD.js} +22 -21
  182. package/dist/{energy-FNZICGW2.js → energy-PHDK6SKL.js} +20 -18
  183. package/dist/{events-LBHSU7C2.js → events-25VQ2O66.js} +10 -10
  184. package/dist/{events-6TNBAVVY.js → events-OIWXSBZA.js} +25 -22
  185. package/dist/{events-ENJZNXWG.js → events-RXVHG2NT.js} +5 -5
  186. package/dist/{execute-RXTEBACV.js → execute-MKP4Z573.js} +36 -35
  187. package/dist/{extract-F2CWTMLX.js → extract-YYNYXPOC.js} +20 -18
  188. package/dist/{face-7HL4CP32.js → face-JSTMFQRM.js} +21 -19
  189. package/dist/{feedback-4NDDMECH.js → feedback-PY6LMZCX.js} +19 -19
  190. package/dist/{ffmpeg-3LL345SO.js → ffmpeg-KLIB55FK.js} +13 -12
  191. package/dist/{figma-474E54NB.js → figma-ACFOXVPM.js} +3 -3
  192. package/dist/fontLocalizeCli.js +20 -19
  193. package/dist/{frames-EZWGM7QQ.js → frames-BLZCBXO7.js} +22 -20
  194. package/dist/{generate-I75DZWDU.js → generate-DMVEKZEV.js} +33 -31
  195. package/dist/{get-BHU6CBWO.js → get-3WZDQ5YM.js} +7 -7
  196. package/dist/{gpuPolicy-6J2STCV2.js → gpuPolicy-TT6UCOLQ.js} +13 -12
  197. package/dist/{grade-compare-D4TBMCBG.js → grade-compare-F5DJ53XH.js} +47 -44
  198. package/dist/hangReport.js +2 -2
  199. package/dist/{heifImagePrep-VLYGRKSS.js → heifImagePrep-UV23RWOG.js} +16 -15
  200. package/dist/{help-2CUXKYJ6.js → help-QMP5KFYW.js} +1 -1
  201. package/dist/{history-LVAVYTAN.js → history-UOZ4RDEZ.js} +21 -18
  202. package/dist/hyperframe.manifest.json +1 -1
  203. package/dist/hyperframe.runtime.iife.js +76 -76
  204. package/dist/hyperframes-player.global.js +1 -1
  205. package/dist/{info-SUZOEH6L.js → info-A6KSO64E.js} +21 -20
  206. package/dist/{init-XI5QN3A6.js → init-OQU46K3Q.js} +52 -47
  207. package/dist/{ink-OVDZOCQJ.js → ink-HGRKLGII.js} +20 -18
  208. package/dist/{inspect-INBCGPBD.js → inspect-BKENKUXF.js} +44 -43
  209. package/dist/{installer-JNQKFCTN.js → installer-Z6FTR7BJ.js} +8 -8
  210. package/dist/{keyframes-LYZJK4RH.js → keyframes-UDQGWKPW.js} +14 -14
  211. package/dist/{lambda-DUDXZV6X.js → lambda-SHXQFHLE.js} +23 -22
  212. package/dist/{layout-JKUJW6A4.js → layout-CJAVQ4D3.js} +44 -43
  213. package/dist/{lint-NKDC7IJ2.js → lint-RAPNYPWS.js} +15 -15
  214. package/dist/{lintProject-5Z34NNS4.js → lintProject-JZRM7UKH.js} +3 -3
  215. package/dist/{list-5HUMDJYL.js → list-4BKFMJQN.js} +7 -7
  216. package/dist/{localPage-RRBRFR4Y.js → localPage-BJW2TP77.js} +14 -13
  217. package/dist/{login-C3SHKITR.js → login-S5VZAGCI.js} +4 -4
  218. package/dist/{look-3TX2U4BE.js → look-V2I6BGUY.js} +20 -18
  219. package/dist/{manager-MOR255LW.js → manager-OS2FYJI5.js} +14 -13
  220. package/dist/{manager-45VB2G5F.js → manager-WQWU5VJ4.js} +5 -5
  221. package/dist/{measure-ZAKBHNGY.js → measure-RO5R2SUZ.js} +11 -11
  222. package/dist/{media-treatment-QJ35DSED.js → media-treatment-CS7BVMJW.js} +21 -20
  223. package/dist/{media-use-YBKHJVXL.js → media-use-W3DGCKFB.js} +5 -5
  224. package/dist/{models-OQHKG7B4.js → models-ZOGYW2SC.js} +18 -17
  225. package/dist/{motionShot-TWQTREFH.js → motionShot-IMRI7W7T.js} +24 -23
  226. package/dist/{normalize-audio-PXHPUOMD.js → normalize-audio-HXTFAZUK.js} +14 -14
  227. package/dist/{open-TVGO5KVF.js → open-LJDQ37KV.js} +25 -24
  228. package/dist/{parakeetRunner-MVJMZSIG.js → parakeetRunner-CKMSKDH6.js} +21 -20
  229. package/dist/{pipeline-4S5UE4O4.js → pipeline-ZNCYOTUH.js} +16 -15
  230. package/dist/{plan-AMBZUX55.js → plan-NCFS5T6W.js} +28 -27
  231. package/dist/{play-KEAESNBM.js → play-5UZDFFXJ.js} +39 -32
  232. package/dist/{preflight-K3CM3W55.js → preflight-H5XYFKFF.js} +16 -15
  233. package/dist/{present-42WDBGBA.js → present-EFXUFT5Y.js} +62 -46
  234. package/dist/{preview-KSHBU7ZR.js → preview-RV7ALGDQ.js} +35 -33
  235. package/dist/{probe-TMSXGCL4.js → probe-UB6DM2Q3.js} +20 -18
  236. package/dist/{producer-KXRSJPJF.js → producer-2PKB5CW5.js} +1 -1
  237. package/dist/{progress-IY6U35WH.js → progress-S36VQBQW.js} +3 -1
  238. package/dist/{projectConfig-LOHNVOJG.js → projectConfig-EUH5DILC.js} +12 -12
  239. package/dist/{publication-LYPU7NTZ.js → publication-VI2AXXKR.js} +6 -6
  240. package/dist/{publish-PYZXDQJW.js → publish-225GB7R4.js} +25 -25
  241. package/dist/{remove-background-HVX52VOF.js → remove-background-W2RLEQHJ.js} +17 -16
  242. package/dist/{render-CM4MCNVA.js → render-KXKBSNOQ.js} +9 -8
  243. package/dist/{render-57ZYQ53S.js → render-WMWCCMWI.js} +71 -54
  244. package/dist/{render-5KMA5P2U.js → render-Y3JKWEN4.js} +42 -39
  245. package/dist/{render-batch-URBBGOVC.js → render-batch-GK6CDHKN.js} +10 -9
  246. package/dist/renderSetupWorker.js +8 -8
  247. package/dist/{resolver-UPUCU4XT.js → resolver-5CRZD5XB.js} +9 -9
  248. package/dist/{reverse-UYS7KVE2.js → reverse-YPYKKQSJ.js} +1 -1
  249. package/dist/{run-4LNEWQLG.js → run-FQ76QNES.js} +7 -7
  250. package/dist/{sam-EGFXZF56.js → sam-A4NXDWSU.js} +4 -1
  251. package/dist/{screenshotCapture-IF5AO5XM.js → screenshotCapture-R6VE66NR.js} +16 -15
  252. package/dist/{service-OEOC34BD.js → service-P3IKHZFC.js} +18 -17
  253. package/dist/{share-NS7CMVSU.js → share-BU4VQL3B.js} +21 -20
  254. package/dist/{sherpa-QBTXL6JA.js → sherpa-44GLXY3A.js} +20 -19
  255. package/dist/sherpaWorker.js +5 -3
  256. package/dist/{sites-QK3F4AUS.js → sites-TAX3JLNX.js} +3 -1
  257. package/dist/skills/hyperframes/SKILL.md +2 -2
  258. package/dist/skills/hyperframes/references/format.md +11 -2
  259. package/dist/skills/hyperframes/references/overlays.md +1 -1
  260. package/dist/skills/hyperframes/references/plugin-installation.md +33 -22
  261. package/dist/skills/hyperframes/references/sound.md +1 -0
  262. package/dist/skills/hyperframes/scripts/plugin-cli.mjs +18 -13
  263. package/dist/skills/hyperframes/scripts/plugin-cli.test.mjs +64 -40
  264. package/dist/skills/hyperframes-cli/SKILL.md +2 -2
  265. package/dist/skills/media-use/SKILL.md +1 -1
  266. package/dist/skills/media-use/audio/scripts/lib/bgm.mjs +4 -1
  267. package/dist/skills/media-use/audio/scripts/lib/bgm.test.mjs +62 -1
  268. package/dist/skills/media-use/audio/scripts/lib/python.mjs +9 -1
  269. package/dist/skills/media-use/audio/scripts/lib/python.test.mjs +16 -0
  270. package/dist/skills/media-use/scripts/lib/bundled-sfx-provider.mjs +27 -2
  271. package/dist/skills/media-use/scripts/lib/bundled-sfx-provider.test.mjs +40 -1
  272. package/dist/skills/media-use/scripts/lib/local-media-search.mjs +52 -23
  273. package/dist/skills/media-use/scripts/lib/local-media-search.test.mjs +73 -4
  274. package/dist/skills/media-use/scripts/lib/ltx-video-provider.mjs +3 -1
  275. package/dist/skills/media-use/scripts/lib/ltx-video-provider.test.mjs +16 -1
  276. package/dist/skills/media-use/scripts/resolve.mjs +4 -14
  277. package/dist/skills/media-use/scripts/transcribe.mjs +19 -3
  278. package/dist/skills/media-use/scripts/transcribe.test.mjs +60 -0
  279. package/dist/{skills-S5U2MQAI.js → skills-H4OZQ6VR.js} +15 -14
  280. package/dist/{skillsUpdateCheck-UZ7CZ6VC.js → skillsUpdateCheck-U3XZX7UE.js} +5 -5
  281. package/dist/{snapshot-YWFWQTAV.js → snapshot-FJQVXBFB.js} +59 -56
  282. package/dist/{src-N2SMYJ44.js → src-O6BHCR4O.js} +18 -17
  283. package/dist/{src-UQ3K3UW2.js → src-PAM5LJ6K.js} +12 -11
  284. package/dist/{start-4IA5GG5D.js → start-R7CYOQ5S.js} +31 -29
  285. package/dist/{state-7OIPR4BG.js → state-YFRV6TQH.js} +3 -1
  286. package/dist/{staticProjectServer-5JP25RRX.js → staticProjectServer-4X2OSUN4.js} +29 -28
  287. package/dist/{status-ITCKXFBF.js → status-VN3FAN4M.js} +21 -21
  288. package/dist/studio/assets/{hyperframes-player-Oju91F6x.js → hyperframes-player-SRLbmEDB.js} +1 -1
  289. package/dist/studio/assets/{index-B0VEzzD2.js → index-CgyBYe2L.js} +130 -130
  290. package/dist/studio/assets/{index-XEm_N45R.js → index-yuN1pZrv.js} +1 -1
  291. package/dist/studio/assets/{pausedVideoDecoder-p6zibxVM.js → pausedVideoDecoder-DtvSF8bV.js} +1 -1
  292. package/dist/studio/index.html +1 -1
  293. package/dist/{studio-api-GENM2XVL.js → studio-api-V3TMIWFB.js} +18 -15
  294. package/dist/{studioSelectionClient-W2S3H2VO.js → studioSelectionClient-S46TNAAZ.js} +2 -1
  295. package/dist/{studioServer-SWR5Q3PD.js → studioServer-GY2ZTR2E.js} +90 -77
  296. package/dist/{sync-CK6TTCXO.js → sync-2V3JYCDE.js} +20 -18
  297. package/dist/{synthesize-EXNEBJSY.js → synthesize-TQELPMS5.js} +5 -5
  298. package/dist/{system-JBPJHNTG.js → system-2YOII5LZ.js} +3 -3
  299. package/dist/{telemetry-T4HQ6AKZ.js → telemetry-KMRZ3IJV.js} +10 -10
  300. package/dist/{templates-7O7NOIUC.js → templates-EEFY4FPS.js} +129 -37
  301. package/dist/{timeline-P2PLN53O.js → timeline-HSRGYZ3Q.js} +28 -27
  302. package/dist/{tokens-SPQN27VG.js → tokens-NYFORL53.js} +2 -2
  303. package/dist/{transcribe-YJQ3DDDI.js → transcribe-CNIQYQ52.js} +37 -35
  304. package/dist/{transcribe-SCZG6IM4.js → transcribe-GFFWRWK3.js} +17 -16
  305. package/dist/{tts-5OAB5XX6.js → tts-NPMDYSXP.js} +1 -1
  306. package/dist/{update-JYPZW35A.js → update-BDMPUNNA.js} +17 -16
  307. package/dist/{updateCheck-5M2JJTH3.js → updateCheck-43UZ2USJ.js} +4 -4
  308. package/dist/{upgrade-BP62FM6V.js → upgrade-Z5B57UWL.js} +7 -7
  309. package/dist/{urlDownloader-WOZQCE6P.js → urlDownloader-KDZ76BKM.js} +12 -11
  310. package/dist/{validate-NEC5QLH7.js → validate-UQKZNR5K.js} +35 -34
  311. package/dist/{video-XEEBISSO.js → video-VR4363OG.js} +15 -14
  312. package/dist/{voices-GCHA27JA.js → voices-GUWAM3TH.js} +31 -29
  313. package/dist/warmCheck.js +56 -53
  314. package/dist/warmCheckClient.js +2 -2
  315. package/package.json +2 -1
  316. package/dist/chunk-XGEJPKRY.js +0 -5069
@@ -11,12 +11,12 @@ import {
11
11
  iterateFontFamilyDeclarations,
12
12
  normalizeSystemFontPrimaryFamilies,
13
13
  resolveFontFamilyDeclarationFamilies
14
- } from "./chunk-YU5LSWA2.js";
14
+ } from "./chunk-IHX3AFTY.js";
15
15
  import {
16
16
  Semaphore,
17
17
  prepareHeifImageInputs,
18
18
  withMediaProbeSlot
19
- } from "./chunk-7RGWVZOS.js";
19
+ } from "./chunk-HVG656G6.js";
20
20
  import {
21
21
  EncoderInterruptedError,
22
22
  encoderFailureError,
@@ -30,7 +30,7 @@ import {
30
30
  refusesOutsideLink,
31
31
  resolveRenderPaths,
32
32
  toExternalAssetKey
33
- } from "./chunk-KTLRJZFK.js";
33
+ } from "./chunk-ZIF44RW2.js";
34
34
  import {
35
35
  createStudioPositionSeekReapplyScript,
36
36
  openRangeEnd,
@@ -38,7 +38,7 @@ import {
38
38
  } from "./chunk-LD6JONPV.js";
39
39
  import {
40
40
  RENDER_TEMP_DIR
41
- } from "./chunk-ER22SVLT.js";
41
+ } from "./chunk-3GVHDPEP.js";
42
42
  import {
43
43
  BROWSER_GPU_NOT_SOFTWARE,
44
44
  CaptureFailure,
@@ -205,10 +205,13 @@ import {
205
205
  videoStartOnMediaTimeline,
206
206
  writeCapturedFrame,
207
207
  writeUrlDownloadTelemetry
208
- } from "./chunk-GA6QR6LN.js";
208
+ } from "./chunk-6LONEKJR.js";
209
209
  import {
210
210
  settleOnBrowserSafePort
211
211
  } from "./chunk-OSKSTJNQ.js";
212
+ import {
213
+ PREVIEW_FOR_ANOTHER_SITE_META
214
+ } from "./chunk-YXX6CIHL.js";
212
215
  import {
213
216
  assignBundledRuntimeCompositionIds,
214
217
  boundMediaSrc,
@@ -221,14 +224,14 @@ import {
221
224
  parsesAsScript,
222
225
  prepareFlattenedInnerRoot,
223
226
  stripSdrPngColourTags
224
- } from "./chunk-BBDWXUO3.js";
227
+ } from "./chunk-L5NPBGQB.js";
225
228
  import {
226
229
  cannotHardLink,
227
230
  collectScratchLeftovers,
228
231
  createStagingDir,
229
232
  removeScratch,
230
233
  renameWithRetry
231
- } from "./chunk-KCF6Q54R.js";
234
+ } from "./chunk-PUTPYYE4.js";
232
235
  import {
233
236
  TRANSITIONS,
234
237
  convertTransfer,
@@ -251,7 +254,7 @@ import {
251
254
  redactTelemetryString,
252
255
  resolveAuthoredTimingWindow,
253
256
  toFps
254
- } from "./chunk-4IUOWNDS.js";
257
+ } from "./chunk-JQKCRTVQ.js";
255
258
  import {
256
259
  CAPTURE_CANVAS_SELECTOR,
257
260
  COMPOSITION_SOURCE_URL,
@@ -269,6 +272,7 @@ import {
269
272
  injectDurations,
270
273
  injectScriptsAtHeadStart,
271
274
  injectScriptsIntoHtml,
275
+ injectTagsAtHeadStart,
272
276
  inlineScriptRuns,
273
277
  insertBeforeCloseTag,
274
278
  isAlwaysAppliedStyle,
@@ -287,19 +291,19 @@ import {
287
291
  sourceTimeAt,
288
292
  styleElementsFor,
289
293
  timeAtSourceTime
290
- } from "./chunk-XGEJPKRY.js";
294
+ } from "./chunk-56T2OGYR.js";
291
295
  import {
292
296
  isPrivateFileUnder,
293
297
  isSafePath,
294
298
  isStudioPrivatePath
295
- } from "./chunk-KWTTELUY.js";
299
+ } from "./chunk-UVPLW55S.js";
296
300
  import {
297
301
  chromeMajorCeiling
298
- } from "./chunk-LEIR7IDJ.js";
302
+ } from "./chunk-6LU6JICP.js";
299
303
  import {
300
304
  lintHyperframeHtml,
301
305
  resolveReferencedStart
302
- } from "./chunk-TRAPS5WB.js";
306
+ } from "./chunk-YQSVPHOS.js";
303
307
  import {
304
308
  isUnresolvedAssetPlaceholder,
305
309
  namesAnotherNetworkRoot,
@@ -314,7 +318,7 @@ import {
314
318
  getSystemTotalMb,
315
319
  hostCpuCount,
316
320
  usableCpuCount
317
- } from "./chunk-CIYNUD7Q.js";
321
+ } from "./chunk-L27Z3PZT.js";
318
322
  import {
319
323
  MEDIA_START_BASIS_ATTR,
320
324
  checkSubCompositionUsability,
@@ -344,15 +348,15 @@ import {
344
348
  } from "./chunk-IH2C53YV.js";
345
349
  import {
346
350
  CANVAS_DIMENSIONS,
347
- HTML_BODY_CSS_HEIGHT_FIRST_RE,
348
- HTML_BODY_CSS_WIDTH_FIRST_RE,
349
351
  VALID_CANVAS_RESOLUTIONS,
350
352
  checkOutputResolutionCompatibility,
351
353
  extractMediaSrcMutations,
352
354
  isAspectAgnosticResolutionAlias,
355
+ matchHtmlBodyCssHeightFirst,
356
+ matchHtmlBodyCssWidthFirst,
353
357
  normalizeResolutionFlag,
354
358
  suggestMatchingPreset
355
- } from "./chunk-VCKUDUPN.js";
359
+ } from "./chunk-BA33QNKK.js";
356
360
  import {
357
361
  parseHTML
358
362
  } from "./chunk-GWTIFRF5.js";
@@ -369,6 +373,295 @@ import {
369
373
  appendFileSync
370
374
  } from "fs";
371
375
  import { tmpdir as tmpdir2 } from "os";
376
+
377
+ // ../producer/src/services/htmlTagScans.ts
378
+ function forwardFinder(text, pattern) {
379
+ let start = -1;
380
+ let found = null;
381
+ return (from) => {
382
+ if (start < 0 || from < start || found !== null && from > found.index) {
383
+ start = from;
384
+ pattern.lastIndex = from;
385
+ found = pattern.exec(text);
386
+ }
387
+ return found;
388
+ };
389
+ }
390
+ function indexFinder(text, pattern) {
391
+ const find = forwardFinder(text, pattern);
392
+ return (from) => find(from)?.index ?? -1;
393
+ }
394
+ var isLetter = (code) => code >= 65 && code <= 90 || code >= 97 && code <= 122;
395
+ var isDigit = (code) => code >= 48 && code <= 57;
396
+ var isNameChar = (code) => isLetter(code) || isDigit(code) || code === 45;
397
+ var isWordChar = (code) => isLetter(code) || isDigit(code) || code === 95;
398
+ function nameRunEnd(text, from) {
399
+ let end = from;
400
+ while (isNameChar(text.charCodeAt(end))) end++;
401
+ return end;
402
+ }
403
+ function tagNameEnd(text, open2) {
404
+ for (let end = nameRunEnd(text, open2 + 2); end >= open2 + 2; end--) {
405
+ if (isWordChar(text.charCodeAt(end - 1)) !== isWordChar(text.charCodeAt(end))) return end;
406
+ }
407
+ return -1;
408
+ }
409
+ function* inlineScriptBlocks(html) {
410
+ const opener = /<script\b/gi;
411
+ const closer = /<\/script>/gi;
412
+ for (let open2 = opener.exec(html); open2; open2 = opener.exec(html)) {
413
+ const attrsStart = open2.index + open2[0].length;
414
+ const gt = html.indexOf(">", attrsStart);
415
+ if (gt < 0) return;
416
+ closer.lastIndex = gt + 1;
417
+ const close = closer.exec(html);
418
+ if (!close) return;
419
+ yield { attrs: html.slice(attrsStart, gt), body: html.slice(gt + 1, close.index) };
420
+ opener.lastIndex = close.index + close[0].length;
421
+ }
422
+ }
423
+ function removeDelimitedRuns(source, start, end) {
424
+ let out = "";
425
+ let kept = 0;
426
+ for (let open2 = source.indexOf(start); open2 >= 0; open2 = source.indexOf(start, kept)) {
427
+ const close = source.indexOf(end, open2 + start.length);
428
+ if (close < 0) break;
429
+ out += source.slice(kept, open2);
430
+ kept = close + end.length;
431
+ }
432
+ return out + source.slice(kept);
433
+ }
434
+ function gsapDistFile(value) {
435
+ let dist = -1;
436
+ const distPattern = /\/dist\//gi;
437
+ for (let m = distPattern.exec(value); m; m = distPattern.exec(value)) {
438
+ if (m.index + 6 < value.length) dist = m.index;
439
+ distPattern.lastIndex = m.index + 1;
440
+ }
441
+ const gsap = dist < 0 ? null : /gsap/i.exec(value);
442
+ return gsap && gsap.index + 4 <= dist ? value.slice(dist + 6) : void 0;
443
+ }
444
+ function lastGsapMatch(html, finders, tagStart, gt) {
445
+ const { nextSrc, nextQuote, nextGt } = finders;
446
+ let match;
447
+ for (let src = nextSrc(tagStart); src && src.index < gt; src = nextSrc(src.index + 1)) {
448
+ const valueStart = src.index + 5;
449
+ const close = nextQuote(valueStart);
450
+ const end = close < 0 ? -1 : nextGt(close + 1);
451
+ if (end < 0) return { match, laterTagsFail: true };
452
+ const file = gsapDistFile(html.slice(valueStart, close));
453
+ if (file !== void 0) match = { valueStart, close, end, file };
454
+ }
455
+ return { match, laterTagsFail: false };
456
+ }
457
+ function replaceGsapDistScripts(html, replace) {
458
+ const opener = /<script\b/gi;
459
+ const finders = {
460
+ nextSrc: forwardFinder(html, /\bsrc=["']/gi),
461
+ nextQuote: indexFinder(html, /["']/g),
462
+ nextGt: indexFinder(html, />/g)
463
+ };
464
+ let out = "";
465
+ let kept = 0;
466
+ for (let open2 = opener.exec(html); open2; open2 = opener.exec(html)) {
467
+ const gt = finders.nextGt(open2.index);
468
+ if (gt < 0) break;
469
+ const { match, laterTagsFail } = lastGsapMatch(html, finders, open2.index, gt);
470
+ if (match) {
471
+ const { valueStart, close, end, file } = match;
472
+ const full = html.slice(open2.index, end + 1);
473
+ const src = html.slice(valueStart, close);
474
+ out += html.slice(kept, open2.index);
475
+ out += replace(
476
+ full,
477
+ html.slice(open2.index, valueStart),
478
+ src,
479
+ file,
480
+ html.slice(close, end + 1)
481
+ );
482
+ kept = end + 1;
483
+ }
484
+ if (laterTagsFail) break;
485
+ opener.lastIndex = match ? kept : gt;
486
+ }
487
+ return out + html.slice(kept);
488
+ }
489
+ function removeSpanPerTag(html, opener, spanIn) {
490
+ const nextGt = indexFinder(html, />/g);
491
+ let out = "";
492
+ let kept = 0;
493
+ for (let open2 = opener.exec(html); open2; open2 = opener.exec(html)) {
494
+ const attrsStart = open2.index + open2[0].length;
495
+ const gt = nextGt(attrsStart);
496
+ const span = spanIn(attrsStart, gt < 0 ? html.length : gt);
497
+ if (span) {
498
+ out += html.slice(kept, span[0]);
499
+ kept = span[1];
500
+ } else if (gt < 0) break;
501
+ opener.lastIndex = span ? kept : gt;
502
+ }
503
+ return out + html.slice(kept);
504
+ }
505
+ function stripCrossoriginAttr(html, tagName) {
506
+ const nextQuote = indexFinder(html, /["']/g);
507
+ const nextAttr = forwardFinder(html, /\scrossorigin/gi);
508
+ return removeSpanPerTag(html, new RegExp(`<${tagName}\\b`, "gi"), (attrsStart, tagEnd) => {
509
+ let last = -1;
510
+ for (let at = nextAttr(attrsStart); at && at.index < tagEnd; at = nextAttr(at.index + 12)) {
511
+ last = at.index;
512
+ }
513
+ if (last < 0) return void 0;
514
+ const nameEnd = last + 12;
515
+ const quote = html[nameEnd + 1];
516
+ const quoted = html[nameEnd] === "=" && (quote === '"' || quote === "'");
517
+ const close = quoted ? nextQuote(nameEnd + 2) : -1;
518
+ return [last, close < 0 ? nameEnd : close + 1];
519
+ });
520
+ }
521
+ function stripPreloadNone(html) {
522
+ const nextAttr = forwardFinder(html, /(?<!\s)\s+preload\s*=\s*["']none["']/gi);
523
+ return removeSpanPerTag(html, /<(?:video|audio)\b/gi, (attrsStart, tagEnd) => {
524
+ const attr = nextAttr(attrsStart);
525
+ return attr && attr.index < tagEnd ? [attr.index, attr.index + attr[0].length] : void 0;
526
+ });
527
+ }
528
+ var REMOTE_SRC_TAGS = {
529
+ media: { opener: "<(?:video|audio)\\b", attr: /\bsrc\s*=\s*["'](https?:\/\/)/gi },
530
+ source: { opener: "<source\\b", attr: /\bsrc\s*=\s*["'](https?:\/\/)/gi },
531
+ img: { opener: "<img\\b", attr: /(?<![\w-])src\s*=\s*["'](https?:\/\/)/gi }
532
+ };
533
+ function remoteSrcUrls(html, tag) {
534
+ const opener = new RegExp(REMOTE_SRC_TAGS[tag].opener, "gi");
535
+ const nextAttr = forwardFinder(html, new RegExp(REMOTE_SRC_TAGS[tag].attr));
536
+ const nextGt = indexFinder(html, />/g);
537
+ const nextQuote = indexFinder(html, /["']/g);
538
+ const urls = [];
539
+ for (let open2 = opener.exec(html); open2; open2 = opener.exec(html)) {
540
+ const attrsStart = open2.index + open2[0].length;
541
+ const gt = nextGt(attrsStart);
542
+ if (gt < 0) break;
543
+ let resumeAt = gt;
544
+ for (let attr = nextAttr(attrsStart); attr && attr.index < gt; attr = nextAttr(attr.index + 1)) {
545
+ const urlRest = attr.index + attr[0].length;
546
+ const close = nextQuote(urlRest);
547
+ if (close < 0) return urls;
548
+ if (close === urlRest) continue;
549
+ const end = nextGt(close + 1);
550
+ if (end < 0) return urls;
551
+ urls.push(html.slice(urlRest - attr[1].length, close));
552
+ resumeAt = end + 1;
553
+ break;
554
+ }
555
+ opener.lastIndex = resumeAt;
556
+ }
557
+ return urls;
558
+ }
559
+ function removeScriptAndStyleBlocks(markup) {
560
+ const opener = /<(script|style)\b/gi;
561
+ const nextGt = indexFinder(markup, />/g);
562
+ const closers = {
563
+ script: forwardFinder(markup, /<\/script>/gi),
564
+ style: forwardFinder(markup, /<\/style>/gi)
565
+ };
566
+ let out = "";
567
+ let kept = 0;
568
+ for (let open2 = opener.exec(markup); open2; open2 = opener.exec(markup)) {
569
+ const gt = nextGt(open2.index + open2[0].length);
570
+ if (gt < 0) break;
571
+ const close = closers[open2[1].toLowerCase()](gt + 1);
572
+ if (!close) continue;
573
+ out += markup.slice(kept, open2.index);
574
+ kept = close.index + close[0].length;
575
+ opener.lastIndex = kept;
576
+ }
577
+ return out + markup.slice(kept);
578
+ }
579
+ var VOID_TAG = /(img|br|hr|input|source|track|area|base|col|embed|link|meta|param|wbr)\b/iy;
580
+ function countedTagAt(markup, open2, nextGt) {
581
+ const first = markup.charCodeAt(open2 + 1);
582
+ if (first === 47 && isLetter(markup.charCodeAt(open2 + 2))) {
583
+ const end = nameRunEnd(markup, open2 + 3);
584
+ return { name: markup.slice(open2 + 2, end), end };
585
+ }
586
+ if (!isLetter(first)) return void 0;
587
+ VOID_TAG.lastIndex = open2 + 1;
588
+ const known = VOID_TAG.exec(markup);
589
+ if (known) return { name: known[1], end: open2 + 1 + known[0].length };
590
+ const nameEnd = tagNameEnd(markup, open2);
591
+ const gt = nameEnd < 0 ? -1 : nextGt(open2);
592
+ if (gt < 0 || markup.charCodeAt(gt - 1) !== 47) return void 0;
593
+ return { name: markup.slice(open2 + 1, nameEnd), end: gt + 1 };
594
+ }
595
+ function* countedTagNames(markup) {
596
+ const nextGt = indexFinder(markup, />/g);
597
+ for (let open2 = markup.indexOf("<"); open2 >= 0; ) {
598
+ const tag = countedTagAt(markup, open2, nextGt);
599
+ if (tag) yield tag.name;
600
+ open2 = markup.indexOf("<", tag ? tag.end : open2 + 1);
601
+ }
602
+ }
603
+ function countTagsWithAttr(markup, tagName, attr) {
604
+ const opener = new RegExp(`<${tagName}\\b`, "gi");
605
+ const nextGt = indexFinder(markup, />/g);
606
+ const nextAttr = forwardFinder(markup, new RegExp(attr, "gi"));
607
+ let count = 0;
608
+ for (let open2 = opener.exec(markup); open2; open2 = opener.exec(markup)) {
609
+ const attrsStart = open2.index + open2[0].length;
610
+ const gt = nextGt(attrsStart);
611
+ if (gt < 0) break;
612
+ const found = nextAttr(attrsStart);
613
+ const inTag = found !== null && found.index < gt;
614
+ if (inTag) count++;
615
+ opener.lastIndex = inTag ? gt + 1 : gt;
616
+ }
617
+ return count;
618
+ }
619
+ function lastQuotedValueCloses(nextAttr, nextQuote, from, tagEnd) {
620
+ let close = -1;
621
+ let earlierClose = -1;
622
+ for (let attr = nextAttr(from); attr && attr.index < tagEnd; attr = nextAttr(attr.index + 1)) {
623
+ const quote = nextQuote(attr.index + attr[0].length);
624
+ if (quote < 0) return { close, earlierClose, unclosed: true };
625
+ earlierClose = close;
626
+ close = quote;
627
+ }
628
+ return { close, earlierClose, unclosed: false };
629
+ }
630
+ function* tagsWithQuotedAttr(html, name) {
631
+ const opener = /<[a-zA-Z]/g;
632
+ const nextGt = indexFinder(html, />/g);
633
+ const nextQuote = indexFinder(html, /["']/g);
634
+ const nextAttr = forwardFinder(html, new RegExp(`\\b${name}=["']`, "gi"));
635
+ for (let open2 = opener.exec(html); open2; open2 = opener.exec(html)) {
636
+ if (tagNameEnd(html, open2.index) < 0) continue;
637
+ const gt = nextGt(open2.index);
638
+ const tagEnd = gt < 0 ? html.length : gt;
639
+ const { close, earlierClose, unclosed } = lastQuotedValueCloses(
640
+ nextAttr,
641
+ nextQuote,
642
+ open2.index + 2,
643
+ tagEnd
644
+ );
645
+ if (close >= 0) yield { start: open2.index, close, earlierClose };
646
+ if (unclosed || close < 0 && gt < 0) return;
647
+ opener.lastIndex = close >= 0 ? close + 1 : gt;
648
+ }
649
+ }
650
+ function countCompositionSrcMounts(markup) {
651
+ let count = 0;
652
+ for (const _ of tagsWithQuotedAttr(markup, "data-composition-src")) count++;
653
+ return count;
654
+ }
655
+ function firstCompositionIdTag(html) {
656
+ for (const { start, close, earlierClose } of tagsWithQuotedAttr(html, "data-composition-id")) {
657
+ let end = html.indexOf(">", close + 1);
658
+ if (end < 0 && earlierClose >= 0) end = html.indexOf(">", earlierClose + 1);
659
+ return end < 0 ? void 0 : html.slice(start, end + 1);
660
+ }
661
+ return void 0;
662
+ }
663
+
664
+ // ../producer/src/services/renderOrchestrator.ts
372
665
  import { join as join29, dirname as dirname12, resolve as resolve6 } from "path";
373
666
  import { totalmem as totalmem2 } from "os";
374
667
  import { randomUUID } from "crypto";
@@ -1034,6 +1327,7 @@ var HF_BRIDGE_SCRIPT = `(function() {
1034
1327
  if (bridge()) __realClearInterval(iv);
1035
1328
  }, 50);
1036
1329
  })();`;
1330
+ var OFFER_NO_FRAMING_SITE_AN_EDITING_PORT = `<meta name="${PREVIEW_FOR_ANOTHER_SITE_META}">`;
1037
1331
  var RENDER_CAPTURE_MODE_SHIM = "globalThis.__HF_RENDER_CAPTURE_MODE = true;";
1038
1332
  function closeFileServerSafely(fileServer, label, log = defaultLogger) {
1039
1333
  try {
@@ -1121,6 +1415,7 @@ function createFileServer(options) {
1121
1415
  html = injectScriptsAtHeadStart(html, preHeadScripts);
1122
1416
  }
1123
1417
  html = isIndex ? injectScriptsIntoHtml(html, headScripts, bodyScripts, stripEmbeddedRuntime) : html;
1418
+ html = injectTagsAtHeadStart(html, OFFER_NO_FRAMING_SITE_AN_EDITING_PORT);
1124
1419
  return c.text(html, 200, { "Content-Type": contentType });
1125
1420
  }
1126
1421
  if (ext === ".png") {
@@ -3658,50 +3953,71 @@ function holdFirstFrameUntilStreamStarts(windows, firstTick) {
3658
3953
  close: () => windows.close()
3659
3954
  };
3660
3955
  }
3956
+ function fitHdrImageLayoutToFrame(layout, frameWidth, frameHeight) {
3957
+ const scale = Math.min(1, frameWidth / layout.width, frameHeight / layout.height);
3958
+ if (scale === 1) return layout;
3959
+ return {
3960
+ width: Math.max(1, Math.floor(layout.width * scale)),
3961
+ height: Math.max(1, Math.floor(layout.height * scale))
3962
+ };
3963
+ }
3661
3964
  function decodeHdrImageBuffers(args) {
3662
- const { log, hdrImageSrcPaths, prep, hdrDiagnostics } = args;
3965
+ const { log, hdrImageSrcPaths, prep, hdrDiagnostics, width, height } = args;
3966
+ const budgetBytes = resolveHdrExtractionBudgetBytes(process.env[HDR_EXTRACTION_MAX_BYTES_ENV]);
3967
+ const releases = [];
3968
+ const releaseReservation = () => {
3969
+ for (const release of releases.splice(0)) release();
3970
+ };
3663
3971
  const out = /* @__PURE__ */ new Map();
3664
3972
  for (const [imageId, srcPath] of hdrImageSrcPaths) {
3665
3973
  try {
3666
3974
  const decoded = decodePngToRgb48le(readFileSync3(srcPath));
3975
+ const releaseDecoded = reserveHdrExtractionBytes(decoded.data.length, budgetBytes);
3667
3976
  const layout = prep.hdrExtractionDims.get(imageId);
3668
- const fitInfo = prep.hdrImageFitInfo.get(imageId);
3669
- if (layout && (layout.width !== decoded.width || layout.height !== decoded.height)) {
3670
- const fit = normalizeObjectFit(fitInfo?.fit);
3977
+ if (!layout || layout.width === decoded.width && layout.height === decoded.height) {
3978
+ releases.push(releaseDecoded);
3979
+ out.set(imageId, decoded);
3980
+ continue;
3981
+ }
3982
+ const target = fitHdrImageLayoutToFrame(layout, width, height);
3983
+ if (target !== layout) {
3984
+ log.warn("HDR image layout box is larger than the output frame; drawing it smaller", {
3985
+ imageId,
3986
+ layout: `${layout.width}x${layout.height}`,
3987
+ drawn: `${target.width}x${target.height}`
3988
+ });
3989
+ }
3990
+ try {
3991
+ releases.push(reserveHdrExtractionBytes(target.width * target.height * 6, budgetBytes));
3992
+ const fitInfo = prep.hdrImageFitInfo.get(imageId);
3671
3993
  const resampled = resampleRgb48leObjectFit(
3672
3994
  decoded.data,
3673
3995
  decoded.width,
3674
3996
  decoded.height,
3675
- layout.width,
3676
- layout.height,
3677
- fit,
3997
+ target.width,
3998
+ target.height,
3999
+ normalizeObjectFit(fitInfo?.fit),
3678
4000
  fitInfo?.position
3679
4001
  );
3680
- out.set(imageId, {
3681
- data: resampled,
3682
- width: layout.width,
3683
- height: layout.height
3684
- });
3685
- } else {
3686
- out.set(imageId, {
3687
- data: Buffer.from(decoded.data),
3688
- width: decoded.width,
3689
- height: decoded.height
3690
- });
4002
+ out.set(imageId, { data: resampled, width: target.width, height: target.height });
4003
+ } finally {
4004
+ releaseDecoded();
3691
4005
  }
3692
4006
  } catch (err) {
4007
+ releaseReservation();
3693
4008
  hdrDiagnostics.imageDecodeFailures += 1;
4009
+ const message = err instanceof Error ? err.message : String(err);
3694
4010
  log.error("HDR image decode failed; aborting render", {
3695
4011
  imageId,
3696
4012
  srcPath,
3697
- error: err instanceof Error ? err.message : String(err)
4013
+ error: message
3698
4014
  });
3699
4015
  throw new Error(
3700
- `HDR image decode failed for image "${imageId}". Aborting render to avoid shipping missing HDR image layers.`
4016
+ `HDR image decode failed for image "${imageId}": ${message}. Aborting render to avoid shipping missing HDR image layers.`
3701
4017
  );
3702
4018
  }
3703
4019
  }
3704
- return out;
4020
+ return { buffers: out, releaseReservation };
3705
4021
  }
3706
4022
 
3707
4023
  // ../producer/src/services/render/stages/captureHdrFrameShared.ts
@@ -7007,20 +7323,13 @@ function assertSubCompositionsUsable(html, projectDir, assetRoot, visited = /* @
7007
7323
  throw new EmptyCompositionError(problems);
7008
7324
  }
7009
7325
  }
7010
- var INLINE_SCRIPT_PATTERN = /<script\b([^>]*)>([\s\S]*?)<\/script>/gi;
7011
7326
  var COMPILER_MOUNT_BLOCK_START = "/* __HF_COMPILER_MOUNT_START__ */";
7012
7327
  var COMPILER_MOUNT_BLOCK_END = "/* __HF_COMPILER_MOUNT_END__ */";
7013
7328
  function stripJsComments(source) {
7014
- return source.replace(/\/\/.*$/gm, "").replace(/\/\*[\s\S]*?\*\//g, "");
7329
+ return removeDelimitedRuns(source.replace(/\/\/.*$/gm, ""), "/*", "*/");
7015
7330
  }
7016
7331
  function stripCompilerMountBootstrap(source) {
7017
- return source.replace(
7018
- new RegExp(
7019
- `${COMPILER_MOUNT_BLOCK_START.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")}[\\s\\S]*?${COMPILER_MOUNT_BLOCK_END.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")}`,
7020
- "g"
7021
- ),
7022
- ""
7023
- );
7332
+ return removeDelimitedRuns(source, COMPILER_MOUNT_BLOCK_START, COMPILER_MOUNT_BLOCK_END);
7024
7333
  }
7025
7334
  function runtimeRoot(document2) {
7026
7335
  return document2.querySelector('[data-composition-id][data-root="true"]') ?? document2.querySelector("[data-composition-id]");
@@ -7045,12 +7354,9 @@ function detectRenderModeHints(html, pageMotionBlur) {
7045
7354
  message: "Detected <iframe> in the composition DOM. Nested iframe animation is routed through screenshot capture mode for compatibility."
7046
7355
  });
7047
7356
  }
7048
- let scriptMatch;
7049
- const scriptPattern = new RegExp(INLINE_SCRIPT_PATTERN.source, INLINE_SCRIPT_PATTERN.flags);
7050
- while ((scriptMatch = scriptPattern.exec(html)) !== null) {
7051
- const attrs = scriptMatch[1] || "";
7357
+ for (const { attrs, body } of inlineScriptBlocks(html)) {
7052
7358
  if (/\bsrc\s*=/i.test(attrs)) continue;
7053
- const content = stripJsComments(stripCompilerMountBootstrap(scriptMatch[2] || ""));
7359
+ const content = stripJsComments(stripCompilerMountBootstrap(body));
7054
7360
  if (!/requestAnimationFrame\s*\(/.test(content)) continue;
7055
7361
  reasons.push({
7056
7362
  code: "requestAnimationFrame",
@@ -7102,12 +7408,9 @@ function detectAncestorBackgroundImage(html) {
7102
7408
  }
7103
7409
  var SHADER_TRANSITION_USAGE_PATTERN = /\b(?:(?:window|globalThis)\s*\.\s*)?HyperShader\s*\.\s*init\s*\(|\b__hf\s*\.\s*transitions\s*=/;
7104
7410
  function detectShaderTransitionUsage(html) {
7105
- let scriptMatch;
7106
- const scriptPattern = new RegExp(INLINE_SCRIPT_PATTERN.source, INLINE_SCRIPT_PATTERN.flags);
7107
- while ((scriptMatch = scriptPattern.exec(html)) !== null) {
7108
- const attrs = scriptMatch[1] || "";
7411
+ for (const { attrs, body } of inlineScriptBlocks(html)) {
7109
7412
  if (/\bsrc\s*=/i.test(attrs)) continue;
7110
- const content = stripJsComments(stripCompilerMountBootstrap(scriptMatch[2] || ""));
7413
+ const content = stripJsComments(stripCompilerMountBootstrap(body));
7111
7414
  if (SHADER_TRANSITION_USAGE_PATTERN.test(content)) return true;
7112
7415
  }
7113
7416
  return false;
@@ -7263,9 +7566,9 @@ async function compileHtmlFile(html, baseDir, downloadDir, log, urlByAbsentLocal
7263
7566
  if (clampList.length > 0) {
7264
7567
  compiledHtml = clampDurations(compiledHtml, clampList);
7265
7568
  }
7266
- compiledHtml = compiledHtml.replace(/(<video\b[^>]*)\s+crossorigin(?:=["'][^"']*["'])?/gi, "$1");
7267
- compiledHtml = compiledHtml.replace(/(<img\b[^>]*)\s+crossorigin(?:=["'][^"']*["'])?/gi, "$1");
7268
- compiledHtml = compiledHtml.replace(/(<audio\b[^>]*)\s+crossorigin(?:=["'][^"']*["'])?/gi, "$1");
7569
+ compiledHtml = stripCrossoriginAttr(compiledHtml, "video");
7570
+ compiledHtml = stripCrossoriginAttr(compiledHtml, "img");
7571
+ compiledHtml = stripCrossoriginAttr(compiledHtml, "audio");
7269
7572
  return { html: compiledHtml, unresolvedCompositions };
7270
7573
  }
7271
7574
  async function parseSubCompositions(html, projectDir, downloadDir, visited = /* @__PURE__ */ new Set(), urlByAbsentLocalPath, probes, assetRoot) {
@@ -7699,8 +8002,9 @@ function collectExternalAssets(html, projectDir, log = defaultLogger, file = "in
7699
8002
  if (isPathInside(absPath, absProjectDir)) {
7700
8003
  return null;
7701
8004
  }
7702
- if (!existsSync10(absPath)) return null;
7703
- const refusal = outsideAssetRefusal(absProjectDir, absPath);
8005
+ const onShare = namesAnotherNetworkRoot(absProjectDir, absPath);
8006
+ if (!onShare && !existsSync10(absPath)) return null;
8007
+ const refusal = onShare ? "network_share" : outsideAssetRefusal(absProjectDir, absPath);
7704
8008
  if (refusal) {
7705
8009
  if (!leftOut.has(trimmed)) log.warn(`[Compiler] ${leftOutOfRender(file, trimmed, refusal)}`);
7706
8010
  leftOut.add(trimmed);
@@ -7750,9 +8054,6 @@ function collectExternalAssets(html, projectDir, log = defaultLogger, file = "in
7750
8054
  };
7751
8055
  }
7752
8056
  var REMOTE_MEDIA_SUBDIR = "_remote_media";
7753
- var REMOTE_MEDIA_TAG_RE = /<(?:video|audio)\b[^>]*?\bsrc\s*=\s*["'](https?:\/\/[^"']+)["'][^>]*>/gi;
7754
- var REMOTE_SOURCE_TAG_RE = /<source\b[^>]*?\bsrc\s*=\s*["'](https?:\/\/[^"']+)["'][^>]*>/gi;
7755
- var REMOTE_IMG_TAG_RE = /<img\b[^>]*?(?<![\w-])src\s*=\s*["'](https?:\/\/[^"']+)["'][^>]*>/gi;
7756
8057
  async function downloadAndRewriteUrls(urlSet, html, remoteDir, warnLabel, logLabel, extraRewrite) {
7757
8058
  if (urlSet.size === 0) return { html, remoteMediaAssets: /* @__PURE__ */ new Map() };
7758
8059
  if (!existsSync10(remoteDir)) mkdirSync7(remoteDir, { recursive: true });
@@ -7791,14 +8092,7 @@ async function downloadAndRewriteUrls(urlSet, html, remoteDir, warnLabel, logLab
7791
8092
  return { html: result, remoteMediaAssets };
7792
8093
  }
7793
8094
  async function localizeRemoteMediaSources(html, downloadDir) {
7794
- const urlSet = /* @__PURE__ */ new Set();
7795
- for (const tagRe of [REMOTE_MEDIA_TAG_RE, REMOTE_SOURCE_TAG_RE]) {
7796
- const re = new RegExp(tagRe.source, tagRe.flags);
7797
- let m;
7798
- while ((m = re.exec(html)) !== null) {
7799
- if (m[1]) urlSet.add(m[1]);
7800
- }
7801
- }
8095
+ const urlSet = /* @__PURE__ */ new Set([...remoteSrcUrls(html, "media"), ...remoteSrcUrls(html, "source")]);
7802
8096
  const localized = await downloadAndRewriteUrls(
7803
8097
  urlSet,
7804
8098
  html,
@@ -7821,12 +8115,7 @@ function dropBindingOnLocalizedMedia(html) {
7821
8115
  return changed ? document2.toString() : html;
7822
8116
  }
7823
8117
  async function localizeRemoteImageSources(html, downloadDir) {
7824
- const urlSet = /* @__PURE__ */ new Set();
7825
- const re = new RegExp(REMOTE_IMG_TAG_RE.source, REMOTE_IMG_TAG_RE.flags);
7826
- let m;
7827
- while ((m = re.exec(html)) !== null) {
7828
- if (m[1]) urlSet.add(m[1]);
7829
- }
8118
+ const urlSet = new Set(remoteSrcUrls(html, "img"));
7830
8119
  return downloadAndRewriteUrls(
7831
8120
  urlSet,
7832
8121
  html,
@@ -8022,7 +8311,7 @@ async function readLocalFont(absPath) {
8022
8311
  return { kind: "inline", buffer: Buffer.concat(chunks, totalBytes) };
8023
8312
  }
8024
8313
  async function embedLocalFontFaces(html, projectDir, assetRoot, log = defaultLogger) {
8025
- const { fontToDataUri: toDataUri } = await import("./deterministicFonts-OXGNMVJE.js");
8314
+ const { fontToDataUri: toDataUri } = await import("./deterministicFonts-FQQNGORI.js");
8026
8315
  let result = html;
8027
8316
  const embeddedPaths = /* @__PURE__ */ new Set();
8028
8317
  const dataUriByAbsolutePath = /* @__PURE__ */ new Map();
@@ -8090,16 +8379,13 @@ function rewriteUnresolvableGsapToCdn(html, projectDir, compSrcPath) {
8090
8379
  const file = resolve5(projectDir, path);
8091
8380
  return !namesAnotherNetworkRoot(projectDir, file) && existsSync10(file);
8092
8381
  };
8093
- return html.replace(
8094
- /(<script\b[^>]*\bsrc=["'])([^"']*gsap[^"']*\/dist\/([^"']+))(["'][^>]*>)/gi,
8095
- (full, prefix, src, file, suffix) => {
8096
- if (/^https?:\/\//i.test(src)) return full;
8097
- if (exists(compSrcPath ? rewriteAssetPath(compSrcPath, src, exists) : src)) return full;
8098
- gsapDist ??= renderGsapDist();
8099
- defaultLogger.debug(`[Compiler] Rewriting missing gsap script: ${src} \u2192 ${gsapDist}${file}`);
8100
- return `${prefix}${gsapDist}${file}${suffix}`;
8101
- }
8102
- );
8382
+ return replaceGsapDistScripts(html, (full, prefix, src, file, suffix) => {
8383
+ if (/^https?:\/\//i.test(src)) return full;
8384
+ if (exists(compSrcPath ? rewriteAssetPath(compSrcPath, src, exists) : src)) return full;
8385
+ gsapDist ??= renderGsapDist();
8386
+ defaultLogger.debug(`[Compiler] Rewriting missing gsap script: ${src} \u2192 ${gsapDist}${file}`);
8387
+ return `${prefix}${gsapDist}${file}${suffix}`;
8388
+ });
8103
8389
  }
8104
8390
  function rebaseDirectEntryAssetPaths(html, projectDir, htmlPath) {
8105
8391
  if (!isPathInside(htmlPath, projectDir)) return html;
@@ -8186,10 +8472,7 @@ async function compileForRender(projectDir, htmlPath, downloadDir, options = {})
8186
8472
  options.variables ?? {},
8187
8473
  assetRoot
8188
8474
  );
8189
- const sanitizedHtml = inlinedHtml.replace(
8190
- /(<(?:video|audio)\b[^>]*?)\s+preload\s*=\s*["']none["']/gi,
8191
- "$1"
8192
- );
8475
+ const sanitizedHtml = stripPreloadNone(inlinedHtml);
8193
8476
  const renderModeHints = detectRenderModeHints(sanitizedHtml, options.pageMotionBlur);
8194
8477
  const hasShaderTransitions = detectShaderTransitionUsage(sanitizedHtml);
8195
8478
  const usesThreeDTransforms = detectThreeDTransformUsage(sanitizedHtml);
@@ -11960,6 +12243,7 @@ async function runCaptureHdrStage(input) {
11960
12243
  let hdrEncoderClosed = false;
11961
12244
  let domSessionClosed = false;
11962
12245
  let releaseHdrExtractionReservation = null;
12246
+ let releaseHdrImageReservation = null;
11963
12247
  const hdrVideoFrameSources = /* @__PURE__ */ new Map();
11964
12248
  try {
11965
12249
  await initializeSession(domSession);
@@ -12041,12 +12325,16 @@ async function runCaptureHdrStage(input) {
12041
12325
  });
12042
12326
  releaseHdrExtractionReservation = extracted.releaseReservation;
12043
12327
  for (const [id, source] of extracted.sources) hdrVideoFrameSources.set(id, source);
12044
- const hdrImageBuffers = decodeHdrImageBuffers({
12328
+ const decodedImages = decodeHdrImageBuffers({
12045
12329
  log,
12046
12330
  hdrImageSrcPaths,
12047
12331
  prep,
12048
- hdrDiagnostics
12332
+ hdrDiagnostics,
12333
+ width,
12334
+ height
12049
12335
  });
12336
+ releaseHdrImageReservation = decodedImages.releaseReservation;
12337
+ const hdrImageBuffers = decodedImages.buffers;
12050
12338
  assertNotAborted();
12051
12339
  try {
12052
12340
  const cleanedUpVideos = /* @__PURE__ */ new Set();
@@ -12199,6 +12487,8 @@ async function runCaptureHdrStage(input) {
12199
12487
  hdrVideoFrameSources.clear();
12200
12488
  releaseHdrExtractionReservation?.();
12201
12489
  releaseHdrExtractionReservation = null;
12490
+ releaseHdrImageReservation?.();
12491
+ releaseHdrImageReservation = null;
12202
12492
  }
12203
12493
  return {
12204
12494
  lastBrowserConsole,
@@ -13256,8 +13546,8 @@ function envInt(name, fallback) {
13256
13546
  return Number.isInteger(parsed) ? parsed : fallback;
13257
13547
  }
13258
13548
  var MAX_REPORTED_ELEMENT_TAGS = 50;
13549
+ var MAX_SCRIPT_STYLE_STRIP_PASSES = 8;
13259
13550
  var VFX_CAPTURE_RANK = { none: 0, self: 1, backdrop: 2 };
13260
- var ROOT_COMPOSITION_TAG_RE = /<[a-zA-Z][-a-zA-Z0-9]*\b[^>]*\bdata-composition-id=["'][^"']*["'][^>]*>/i;
13261
13551
  function bucketPxDelta(delta) {
13262
13552
  if (delta === 0) return "0";
13263
13553
  if (delta <= 10) return "1-10";
@@ -13265,12 +13555,12 @@ function bucketPxDelta(delta) {
13265
13555
  return "51+";
13266
13556
  }
13267
13557
  function detectRootBodySizeMismatch(html) {
13268
- const rootTag = html.match(ROOT_COMPOSITION_TAG_RE)?.[0];
13558
+ const rootTag = firstCompositionIdTag(html);
13269
13559
  const dataWidth = rootTag && Number(rootTag.match(/\bdata-width=["'](\d+)["']/i)?.[1]);
13270
13560
  const dataHeight = rootTag && Number(rootTag.match(/\bdata-height=["'](\d+)["']/i)?.[1]);
13271
13561
  if (!dataWidth || !dataHeight) return {};
13272
- const widthFirst = html.match(HTML_BODY_CSS_WIDTH_FIRST_RE);
13273
- const heightFirst = widthFirst ? void 0 : html.match(HTML_BODY_CSS_HEIGHT_FIRST_RE);
13562
+ const widthFirst = matchHtmlBodyCssWidthFirst(html);
13563
+ const heightFirst = widthFirst ? void 0 : matchHtmlBodyCssHeightFirst(html);
13274
13564
  const [cssWidth, cssHeight] = widthFirst ? [Number(widthFirst[2]), Number(widthFirst[4])] : heightFirst ? [Number(heightFirst[4]), Number(heightFirst[2])] : [void 0, void 0];
13275
13565
  if (!cssWidth || !cssHeight) return {};
13276
13566
  const delta = Math.max(Math.abs(dataWidth - cssWidth), Math.abs(dataHeight - cssHeight));
@@ -13278,17 +13568,15 @@ function detectRootBodySizeMismatch(html) {
13278
13568
  }
13279
13569
  function scanElementTags(html) {
13280
13570
  let markup = html;
13281
- for (let previous = ""; markup !== previous; ) {
13571
+ for (let previous = "", pass = 0; markup !== previous && pass < MAX_SCRIPT_STYLE_STRIP_PASSES; pass++) {
13282
13572
  previous = markup;
13283
- markup = markup.replace(/<(script|style)\b[^>]*>[\s\S]*?<\/\1>/gi, "");
13573
+ markup = removeScriptAndStyleBlocks(markup);
13284
13574
  }
13285
13575
  let total = 0;
13286
13576
  const counts = /* @__PURE__ */ new Map();
13287
- for (const m of markup.matchAll(
13288
- /<\/([a-zA-Z][-a-zA-Z0-9]*)|<(img|br|hr|input|source|track|area|base|col|embed|link|meta|param|wbr)\b|<([a-zA-Z][-a-zA-Z0-9]*)\b[^>]*\/>/gi
13289
- )) {
13577
+ for (const name of countedTagNames(markup)) {
13290
13578
  total++;
13291
- const tag = (m[1] ?? m[2] ?? m[3] ?? "").toLowerCase();
13579
+ const tag = name.toLowerCase();
13292
13580
  counts.set(tag, (counts.get(tag) ?? 0) + 1);
13293
13581
  }
13294
13582
  const ranked = [...counts.entries()].sort((a, b) => b[1] - a[1]);
@@ -13297,12 +13585,16 @@ function scanElementTags(html) {
13297
13585
  );
13298
13586
  const otherCount = ranked.slice(MAX_REPORTED_ELEMENT_TAGS).reduce((sum2, [, count]) => sum2 + count, 0);
13299
13587
  if (otherCount > 0) byTag.other = (byTag.other ?? 0) + otherCount;
13300
- const arollVideoCount = markup.match(/<video\b[^>]*\bdata-aroll=["']true["'][^>]*>/gi)?.length ?? 0;
13301
- const heygenVideoCount = markup.match(/<video\b[^>]*\bdata-media-source=["']heygen["'][^>]*>/gi)?.length ?? 0;
13588
+ const arollVideoCount = countTagsWithAttr(markup, "video", `\\bdata-aroll=["']true["']`);
13589
+ const heygenVideoCount = countTagsWithAttr(
13590
+ markup,
13591
+ "video",
13592
+ `\\bdata-media-source=["']heygen["']`
13593
+ );
13302
13594
  const audioCount = counts.get("audio") ?? 0;
13303
13595
  const imageCount = counts.get("img") ?? 0;
13304
13596
  const audioGroupCount = counts.get(HF_AUDIO_GROUP_TAG) ?? 0;
13305
- const subCompositionCount = markup.match(/<[a-zA-Z][-a-zA-Z0-9]*\b[^>]*\bdata-composition-src=["'][^"']*["']/gi)?.length ?? 0;
13597
+ const subCompositionCount = countCompositionSrcMounts(markup);
13306
13598
  let colorGradingCount = 0;
13307
13599
  let hasLut = false;
13308
13600
  for (const m of markup.matchAll(
@@ -18125,7 +18417,7 @@ async function compilePlanComposition(projectDir, config, planDir, options) {
18125
18417
  if (probeResult.fileServer) closeFileServerSafely(probeResult.fileServer, "plan", log);
18126
18418
  if (probeResult.probeSession) {
18127
18419
  try {
18128
- const { closeCaptureSession: closeCaptureSession2 } = await import("./src-UQ3K3UW2.js");
18420
+ const { closeCaptureSession: closeCaptureSession2 } = await import("./src-PAM5LJ6K.js");
18129
18421
  await closeCaptureSession2(probeResult.probeSession);
18130
18422
  } catch (err) {
18131
18423
  log.warn("[plan] probe session close failed", {
@@ -21744,7 +22036,7 @@ function startServer(options = {}) {
21744
22036
  });
21745
22037
  async function shutdown(signal) {
21746
22038
  log.info(`Received ${signal}, shutting down`);
21747
- const { drainBrowserPool } = await import("./src-UQ3K3UW2.js");
22039
+ const { drainBrowserPool } = await import("./src-PAM5LJ6K.js");
21748
22040
  await drainBrowserPool().catch(() => {
21749
22041
  });
21750
22042
  const handle = await Promise.race([