hyperframes 0.9.55 → 0.9.58
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.
- package/dist/{add-2LZ5XA27.js → add-JQUKPSEZ.js} +30 -28
- package/dist/{agentPromptGenerator-RSFEFNFL.js → agentPromptGenerator-3NEY7FPP.js} +16 -15
- package/dist/{animatedGifPrep-AX4MK2QD.js → animatedGifPrep-VMUZ6IVJ.js} +18 -16
- package/dist/api.js +61 -59
- package/dist/{appHistory-T3ZLA7QN.js → appHistory-JNI6IOR6.js} +7 -4
- package/dist/{asset-XYQJVHR2.js → asset-ZT3VXZ67.js} +3 -2
- package/dist/{assetCataloger-WTFR2Z5Q.js → assetCataloger-D2DV65BA.js} +17 -16
- package/dist/{audio-U2OIHTUI.js → audio-LD5H2R5V.js} +40 -39
- package/dist/{auth-DXESNULL.js → auth-4FPYYMSH.js} +4 -4
- package/dist/{autoUpdate-DWT4YYU2.js → autoUpdate-5ZKSFCG4.js} +5 -5
- package/dist/{avatars-EL5RBI4P.js → avatars-DCLFE7VG.js} +26 -24
- package/dist/{backgroundChecks-T2DL425O.js → backgroundChecks-UZA3F46H.js} +6 -6
- package/dist/backgroundChecksWorker.js +6 -6
- package/dist/{batchRender-CMG4SVBX.js → batchRender-TAUW3CT2.js} +14 -9
- package/dist/{beats-HU756KUO.js → beats-X3LCR6OG.js} +16 -15
- package/dist/{benchmark-HBNCPXH5.js → benchmark-DNZQT3YQ.js} +23 -22
- package/dist/{billing-LGHM3LC7.js → billing-4BFUAHWX.js} +44 -29
- package/dist/{browser-XIFUT5OB.js → browser-5J2MTDB6.js} +14 -13
- package/dist/{bundleWithLocalizedFonts-JPPBCCVV.js → bundleWithLocalizedFonts-XWK47ZVF.js} +1 -1
- package/dist/{capture-ZY7G3QSM.js → capture-2YSVFKWV.js} +40 -39
- package/dist/{capture-B6DSZD2P.js → capture-TVYTKWTG.js} +4 -4
- package/dist/{captureCompositionFrame-2WRG6SNW.js → captureCompositionFrame-L765HLCT.js} +22 -21
- package/dist/{captureFile-LXMDM5TD.js → captureFile-DOCK42K3.js} +4 -3
- package/dist/{catalog-CUEOQ4PJ.js → catalog-CHGGRRQX.js} +30 -28
- package/dist/catalog-artifact/media-vectors.json +205 -0
- package/dist/{catch-up-BAYJTXAL.js → catch-up-OCFU6ZR3.js} +18 -17
- package/dist/{check-KGXBQPRZ.js → check-LWK4Z7FI.js} +66 -63
- package/dist/{checkAudio-6PI7DJLP.js → checkAudio-R5ORBXBO.js} +27 -24
- package/dist/{checkBrowser-4SGXUL27.js → checkBrowser-6SH73T47.js} +56 -55
- package/dist/{chunk-VK3MQSA2.js → chunk-23SG3B6M.js} +5 -2
- package/dist/{chunk-EXXIFMUX.js → chunk-2GRCLLKU.js} +13 -5
- package/dist/chunk-2RUCE54M.js +5083 -0
- package/dist/{chunk-PLFOZIEH.js → chunk-2SJNGWSY.js} +1 -1
- package/dist/{chunk-FPRHOB5W.js → chunk-2WA62M3B.js} +3 -3
- package/dist/{chunk-E2DHBP6C.js → chunk-37VS6QY6.js} +1 -1
- package/dist/{chunk-KG24ATFM.js → chunk-37Y334MN.js} +13 -11
- package/dist/{chunk-ER22SVLT.js → chunk-3GKGBYW3.js} +7 -27
- package/dist/{chunk-SDFGDNWV.js → chunk-3VMZQQUI.js} +1 -1
- package/dist/{chunk-NUGAYGT3.js → chunk-4LZSNWFJ.js} +2 -2
- package/dist/{chunk-JVA3SAGB.js → chunk-4N3WOFP3.js} +30 -37
- package/dist/{chunk-W2GXQ3CR.js → chunk-4NNYYCJN.js} +15 -15
- package/dist/{chunk-TMLKMCZK.js → chunk-4QPT3IEL.js} +5 -5
- package/dist/{chunk-3L2POG2J.js → chunk-5IE5ZI66.js} +37 -8
- package/dist/{chunk-4IUOWNDS.js → chunk-5IUVWP3A.js} +2 -2
- package/dist/{chunk-3USMIMBB.js → chunk-5SGGOZNL.js} +464 -140
- package/dist/chunk-677JGYQL.js +91 -0
- package/dist/{chunk-LEIR7IDJ.js → chunk-6LU6JICP.js} +80 -1
- package/dist/{chunk-QWBJABCA.js → chunk-7ECPFKQV.js} +4 -4
- package/dist/{chunk-BZULWFMJ.js → chunk-7FIJRDUG.js} +45 -10
- package/dist/{chunk-VCKUDUPN.js → chunk-7IMHPBSH.js} +248 -32
- package/dist/{chunk-OM2WIZOR.js → chunk-7WAWUQDQ.js} +3 -3
- package/dist/{chunk-F7B2YDPM.js → chunk-7WYJXKIG.js} +19 -11
- package/dist/{chunk-OWQWMQTY.js → chunk-7ZHBY7T5.js} +1 -1
- package/dist/{chunk-GKOF2RS3.js → chunk-A4L7G74T.js} +1 -1
- package/dist/{chunk-NHNFBLBM.js → chunk-A4YRESMH.js} +6 -3
- package/dist/{chunk-MDRLJ737.js → chunk-AJ7YRQS4.js} +1 -1
- package/dist/{chunk-WPD7JH6F.js → chunk-ALD7JBPV.js} +2 -2
- package/dist/{chunk-5HJZGP54.js → chunk-AM4Y3XMR.js} +2 -2
- package/dist/{chunk-7DJCG5ED.js → chunk-AM6UYKVR.js} +10 -10
- package/dist/{chunk-FOKS5HQ2.js → chunk-AMS7Q7P7.js} +4 -4
- package/dist/{chunk-EKZ5FGV7.js → chunk-BSDUTNFX.js} +1 -1
- package/dist/{chunk-6BGTTCKN.js → chunk-BSFTB6AM.js} +5 -5
- package/dist/{chunk-NCSBBZQ5.js → chunk-CGJIMWNU.js} +5 -2
- package/dist/{chunk-TULCSCC4.js → chunk-CGODFJZ7.js} +9 -9
- package/dist/{chunk-JS7UI73E.js → chunk-CPDPSNSB.js} +8 -8
- package/dist/{chunk-NMQCIUBE.js → chunk-CRPLPK6J.js} +10 -8
- package/dist/{chunk-PPLFDG7N.js → chunk-CVTIGS5K.js} +3 -3
- package/dist/{chunk-NKAW4RVE.js → chunk-D2LSYXLW.js} +1 -1
- package/dist/{chunk-CHQWDBUM.js → chunk-D3M5VOC5.js} +9 -14
- package/dist/{chunk-TPLO6NJI.js → chunk-DH3M5X3Y.js} +4 -4
- package/dist/{chunk-WQGQCSRY.js → chunk-DHVRVI7F.js} +5 -5
- package/dist/{chunk-KCF6Q54R.js → chunk-DL6PEJWH.js} +5 -2
- package/dist/{chunk-LGYCWN3Q.js → chunk-DWFWF6IR.js} +30 -22
- package/dist/{chunk-KVYHRUZX.js → chunk-DX5Y3L5B.js} +3 -3
- package/dist/{chunk-T5S7U5C6.js → chunk-E26Z73S3.js} +1 -1
- package/dist/{chunk-OTWFSHYH.js → chunk-E4IR34CF.js} +434 -306
- package/dist/{chunk-32IRBM3V.js → chunk-ELRE6LVJ.js} +3 -3
- package/dist/{chunk-EUJSQHIL.js → chunk-EOXNEA4Z.js} +2 -2
- package/dist/{chunk-QGQYMSYM.js → chunk-ERDQIRUL.js} +4 -4
- package/dist/{chunk-ATKA5KHE.js → chunk-EWKJDXH6.js} +3 -3
- package/dist/{chunk-FLHL32SV.js → chunk-EZJHKHWU.js} +36 -8
- package/dist/{chunk-QQLVSUO7.js → chunk-FFOFGL2O.js} +2 -2
- package/dist/{chunk-UHVKV5IF.js → chunk-FNXU56VT.js} +1 -1
- package/dist/{chunk-BMJGWQ5X.js → chunk-G3U5CUF3.js} +1 -1
- package/dist/{chunk-ON3CGL3V.js → chunk-GDIBE57N.js} +2 -2
- package/dist/{chunk-MWTOYGIJ.js → chunk-GEOJA37C.js} +3 -3
- package/dist/{chunk-MO5NTFSC.js → chunk-GIVMQDSK.js} +2 -2
- package/dist/{chunk-UCLUH5AG.js → chunk-GRSZAGJB.js} +2 -2
- package/dist/{chunk-AGTBMLNM.js → chunk-GVIJFPZV.js} +2 -2
- package/dist/{chunk-YVCPUVHV.js → chunk-H3LEOZVK.js} +1 -1
- package/dist/{chunk-OAV5ESA6.js → chunk-H7DTMLAR.js} +9 -9
- package/dist/{chunk-OYEGPK3Q.js → chunk-HFIVZJJD.js} +1 -1
- package/dist/{chunk-RBOKZ5ED.js → chunk-HFUI6LVF.js} +1 -1
- package/dist/chunk-HOIEN7O4.js +31 -0
- package/dist/{chunk-UHE44FC4.js → chunk-HTGJOOXE.js} +12 -4
- package/dist/{chunk-GWSMTN55.js → chunk-IE6BIB3L.js} +53 -1
- package/dist/{chunk-UHVB2TVW.js → chunk-IGZQYMZA.js} +7768 -7561
- package/dist/{chunk-CAYQATCT.js → chunk-J6VYWZSO.js} +1 -1
- package/dist/{chunk-OZDELWQP.js → chunk-JKLWQUSV.js} +1 -1
- package/dist/{chunk-27YDEBOP.js → chunk-JOOKM2NC.js} +2 -2
- package/dist/{chunk-XFSZ3IXC.js → chunk-JQZ5WP7L.js} +1 -1
- package/dist/{chunk-XLQUCTC2.js → chunk-JZVI2TMX.js} +3 -3
- package/dist/{chunk-NFNYYBD6.js → chunk-K2EJQ44S.js} +1 -1
- package/dist/{chunk-N4CJSWTO.js → chunk-KYKQO4VN.js} +2 -2
- package/dist/{chunk-2XZ76TF4.js → chunk-LO5USUM4.js} +1 -1
- package/dist/{chunk-TEA4ZEHB.js → chunk-M3IHARIW.js} +15 -15
- package/dist/{chunk-N7M2SNAF.js → chunk-M5TTYUZM.js} +2 -2
- package/dist/{chunk-IJYIIHGK.js → chunk-MK23FXLH.js} +1 -1
- package/dist/{chunk-AYESPEPQ.js → chunk-MPC3OODR.js} +40 -4
- package/dist/{chunk-K2VFTUAA.js → chunk-MSC5KBCE.js} +1 -1
- package/dist/{chunk-VPX4GVGQ.js → chunk-N6PAWR5C.js} +3 -3
- package/dist/{chunk-26RTKW2U.js → chunk-NJPLH762.js} +2 -2
- package/dist/{chunk-DQHFS4AE.js → chunk-NLVIE7VN.js} +4 -4
- package/dist/{chunk-3WG7IC5Z.js → chunk-O2BLY7PO.js} +1 -1
- package/dist/{chunk-SEC76O65.js → chunk-O2INZCGB.js} +1 -1
- package/dist/{chunk-2PASB3PC.js → chunk-O4K22EFS.js} +5 -5
- package/dist/{chunk-L27Z3PZT.js → chunk-O5U3Y5DX.js} +1 -1
- package/dist/{chunk-KD33HZPP.js → chunk-OD7XWF5T.js} +2 -2
- package/dist/{chunk-7QFFS657.js → chunk-OEGWTN6N.js} +1 -1
- package/dist/{chunk-Q42L7V5T.js → chunk-OL7RHRNJ.js} +1 -1
- package/dist/{chunk-AU4ZBCR3.js → chunk-OMZSPAK5.js} +1 -1
- package/dist/{chunk-3ANC4SO2.js → chunk-OPSGEOCO.js} +27 -19
- package/dist/{chunk-YU5LSWA2.js → chunk-PGITR2WX.js} +7 -4
- package/dist/{chunk-RIAH7WEL.js → chunk-PS7WBIPK.js} +10 -10
- package/dist/{chunk-TN3WGE3L.js → chunk-PYTF6VHF.js} +6 -4
- package/dist/{chunk-OIO7YMBP.js → chunk-QGQCWG7F.js} +1 -1
- package/dist/{chunk-TFVIXR6V.js → chunk-ROESFEBP.js} +79 -70
- package/dist/{chunk-YY7ZJHL3.js → chunk-RV3HR3BZ.js} +5 -5
- package/dist/{chunk-KWTTELUY.js → chunk-SALNTRJA.js} +47 -3
- package/dist/{chunk-LKWWY6WN.js → chunk-SE4NOUB6.js} +1 -1
- package/dist/{chunk-BOEEHWDX.js → chunk-SM5PNCDI.js} +1 -1
- package/dist/{chunk-ZLG2E7GC.js → chunk-SNKBI4YB.js} +2 -2
- package/dist/{chunk-EXEX7TSU.js → chunk-SV72WLBE.js} +13 -14
- package/dist/{chunk-PXLGDX2S.js → chunk-SYKUNH25.js} +39 -24
- package/dist/{chunk-MDOMSEK2.js → chunk-TAXMLPTE.js} +2 -2
- package/dist/{chunk-5BWIBP2F.js → chunk-TLDIP7Y3.js} +16 -12
- package/dist/{chunk-HLDUHLYO.js → chunk-TLGQQ324.js} +4 -4
- package/dist/{chunk-5LSMAWK5.js → chunk-U5MILT4G.js} +1 -1
- package/dist/{chunk-UV3I2TND.js → chunk-UDLWVQ74.js} +33 -40
- package/dist/{chunk-AHXRYOTC.js → chunk-UGKUGYHD.js} +1 -1
- package/dist/{chunk-EUP7ODOV.js → chunk-UJTLTFB6.js} +1 -1
- package/dist/{chunk-J424KJXV.js → chunk-V3O4AFO3.js} +9 -9
- package/dist/{chunk-FMYXLRJN.js → chunk-VBEDZGBW.js} +3 -3
- package/dist/{chunk-NRGNEP3R.js → chunk-VI2LLFW6.js} +2 -2
- package/dist/{chunk-PCNNMAUX.js → chunk-VLFBOKZX.js} +1645 -1461
- package/dist/{chunk-YSN6HPD3.js → chunk-VSM7OIG2.js} +2 -2
- package/dist/{chunk-4RPIEGL3.js → chunk-VXE46PXX.js} +1 -1
- package/dist/{chunk-B5HSHXE2.js → chunk-W2OXNTHG.js} +12 -7
- package/dist/{chunk-ND5SQJAB.js → chunk-WEU6WLVT.js} +2 -2
- package/dist/{chunk-E7GHBT2M.js → chunk-WGHJUGNU.js} +11 -9
- package/dist/{chunk-OOWZ6M75.js → chunk-WJIWXHXK.js} +8 -4
- package/dist/{chunk-NISP57R3.js → chunk-WLNHZ2OM.js} +56 -33
- package/dist/{chunk-X4KIL5BW.js → chunk-WQZQMADW.js} +14 -14
- package/dist/{chunk-DY7PQLIE.js → chunk-WTJZ5QFR.js} +42 -5
- package/dist/{chunk-O7TIBLSJ.js → chunk-X3IVUSOX.js} +80 -15
- package/dist/{chunk-2LQJHVI7.js → chunk-X3UXEB2U.js} +2 -2
- package/dist/{chunk-NFLH3TQ5.js → chunk-XMT4MG6W.js} +13 -10
- package/dist/{chunk-KHEOHL5O.js → chunk-XYP4T6TQ.js} +1 -1
- package/dist/{chunk-4S53OP2C.js → chunk-Y6CZFX5X.js} +65 -20
- package/dist/{chunk-QX4TZ2RK.js → chunk-Z642P33A.js} +72 -54
- package/dist/{chunk-6EG3W5AD.js → chunk-ZAWQJOTW.js} +8 -8
- package/dist/{chunk-FLQT2FVH.js → chunk-ZCLC3KVY.js} +1 -1
- package/dist/{chunk-CRRVULYR.js → chunk-ZFOV3R2L.js} +15 -3
- package/dist/{chunk-JAAIW4JR.js → chunk-ZO5NHAF3.js} +1 -1
- package/dist/{chunk-4ZQG3Z3J.js → chunk-ZYNNZ5DE.js} +2 -2
- package/dist/{clean-SXRW77YG.js → clean-6ODSABBF.js} +35 -33
- package/dist/cli.js +70 -70
- package/dist/{cloud-PUCWVAS2.js → cloud-IMYQB5RC.js} +4 -4
- package/dist/{cloud-LU4FVT33.js → cloud-NTKLXMBS.js} +9 -8
- package/dist/{cloudrun-SXXONVD6.js → cloudrun-JNLDP33J.js} +16 -13
- package/dist/{compare-K65FNAEA.js → compare-VLYZ6ZS4.js} +55 -53
- package/dist/{compiler-QISQISFV.js → compiler-7M2UCEWG.js} +7 -6
- package/dist/{component-YYCDOLP2.js → component-KMUHKZ4R.js} +4 -3
- package/dist/{compositions-LCQTIYIU.js → compositions-ESLWNOMS.js} +30 -29
- package/dist/{contactSheet-CCHQAZLA.js → contactSheet-4YF7U6U7.js} +5 -4
- package/dist/contract/path-policy.json +12 -2
- package/dist/{curve-T7JAY3EM.js → curve-7RPSNRPE.js} +22 -20
- package/dist/{cuts-E54SOAWH.js → cuts-KBAAZSPS.js} +23 -21
- package/dist/{delete-GLQNSOWH.js → delete-EP5Z7HKF.js} +14 -13
- package/dist/{deploy-SPMSEG67.js → deploy-MVR63JLD.js} +14 -11
- package/dist/{describeProject-YPTJWL3O.js → describeProject-NBVZT5EN.js} +16 -15
- package/dist/{destroy-FMAAH4KQ.js → destroy-DQKIT574.js} +13 -10
- package/dist/{deterministicFonts-OXGNMVJE.js → deterministicFonts-LYBMXXBW.js} +5 -4
- package/dist/{diff-OT5SHVFD.js → diff-RI3FTMOZ.js} +73 -67
- package/dist/{dist-T62DJJZX.js → dist-G7VFX23I.js} +8 -4
- package/dist/{dist-RYTNYHMF.js → dist-LRGTXDSM.js} +3 -3
- package/dist/{dist-EO7BILWH.js → dist-TOOMD57O.js} +21 -17
- package/dist/{doctor-L4SNKUBM.js → doctor-43YNRCRB.js} +25 -24
- package/dist/{energy-AXQGYZF6.js → energy-YCH36KCC.js} +23 -21
- package/dist/{events-7QP5H6PW.js → events-6RJBITYN.js} +28 -25
- package/dist/{events-5T25R4EH.js → events-JCPYG3CD.js} +6 -6
- package/dist/{events-EBA6KHJV.js → events-VUR27EF6.js} +12 -11
- package/dist/{execute-PTHC7Y5Q.js → execute-OXMKWIFI.js} +45 -44
- package/dist/{extract-76UPXPJC.js → extract-XGD2RDEX.js} +25 -23
- package/dist/{face-YZON2N2E.js → face-XCNWNTGN.js} +24 -22
- package/dist/{feedback-KAYKPPHI.js → feedback-JNFDVBFV.js} +27 -26
- package/dist/{ffmpeg-T3KK5XKT.js → ffmpeg-YQLAJUEA.js} +15 -14
- package/dist/{figma-NJ6CAJGV.js → figma-XXGHYEB3.js} +3 -3
- package/dist/fontLocalizeCli.js +23 -21
- package/dist/{frames-KNR4CSB4.js → frames-PEMWFRRY.js} +25 -23
- package/dist/{generate-ISCPAKHT.js → generate-H5M4QSJR.js} +42 -40
- package/dist/{get-X7QNC3PE.js → get-R6Y2OE5P.js} +14 -13
- package/dist/{gpuPolicy-ZXN5S3HE.js → gpuPolicy-2WVDQYZA.js} +15 -14
- package/dist/{grade-compare-XD3IONCL.js → grade-compare-KFXPZFDL.js} +58 -54
- package/dist/{gsapParserAcorn-SKGP4R4N.js → gsapParserAcorn-RODCGO2L.js} +1 -1
- package/dist/hangReport.js +2 -2
- package/dist/{heifImagePrep-EFBHDH4Z.js → heifImagePrep-VLKYA5QZ.js} +19 -17
- package/dist/{help-VUFIY5X4.js → help-T3XUX5RI.js} +2 -2
- package/dist/{history-OM3MHRB2.js → history-QJPUCUUC.js} +26 -21
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +76 -76
- package/dist/hyperframes-player.global.js +1 -1
- package/dist/{index-gen-OPMQ5WSN.js → index-gen-3DWPA4FO.js} +14 -12
- package/dist/{info-G64344ST.js → info-556DHJHJ.js} +26 -26
- package/dist/{init-2N6SDLZB.js → init-P62TPWR3.js} +61 -56
- package/dist/{ink-T5BJE4D2.js → ink-SRN65OZH.js} +23 -21
- package/dist/{inspect-6I4YSARX.js → inspect-U5FWQQFB.js} +54 -53
- package/dist/{installer-JNQKFCTN.js → installer-3TNMANQV.js} +9 -8
- package/dist/{keyframes-PT3H7WHD.js → keyframes-FPGEFGCH.js} +63 -28
- package/dist/{lambda-NEQXIHUM.js → lambda-YJY2MYWL.js} +25 -24
- package/dist/{layout-FRWUKOGX.js → layout-QIKSVA44.js} +54 -53
- package/dist/{lint-GXPONOPU.js → lint-RD33ESM5.js} +20 -20
- package/dist/{lintProject-J4YTLKPW.js → lintProject-ZWLXB3A2.js} +3 -3
- package/dist/{list-JO7WSM6Y.js → list-FFO3WOB2.js} +14 -13
- package/dist/{localPage-XDWFSE4K.js → localPage-DHIBMNJH.js} +16 -15
- package/dist/{login-XMFEIEXG.js → login-IMFRQOEQ.js} +8 -8
- package/dist/{logout-CCATTNTL.js → logout-SLBKP67J.js} +4 -4
- package/dist/{look-U77ADJ4V.js → look-ZZHJYSPC.js} +23 -21
- package/dist/{manager-ZRETV4LQ.js → manager-U4WEPCLV.js} +5 -5
- package/dist/{manager-RNMX2WTR.js → manager-V4LGD4HB.js} +16 -15
- package/dist/{manifest-QSJYVERU.js → manifest-TSKRUXZ5.js} +5 -1
- package/dist/{measure-JNJAPVVN.js → measure-ZRBVN45B.js} +11 -11
- package/dist/{media-treatment-MFNKKPM7.js → media-treatment-3I2CMQJZ.js} +30 -25
- package/dist/{media-use-ZKHL2IN2.js → media-use-2OYJ3CCN.js} +8 -8
- package/dist/{models-PGO2ERAU.js → models-PRW7EWSV.js} +20 -19
- package/dist/{motionShot-AG4LR5Q5.js → motionShot-VWILMLHQ.js} +39 -30
- package/dist/{normalize-audio-FO3JCPD3.js → normalize-audio-42XMF35K.js} +19 -17
- package/dist/{oauth-SAVP2YM4.js → oauth-V3HSFZRE.js} +2 -2
- package/dist/{open-ZI6KK3GM.js → open-D52MJZQA.js} +31 -28
- package/dist/{parakeetRunner-CBO3HRL6.js → parakeetRunner-ZR2JWQZH.js} +23 -22
- package/dist/{pipeline-VWVNH5ZC.js → pipeline-W3H4JA6H.js} +18 -17
- package/dist/{plan-UHZYW3K2.js → plan-2HQOFJO7.js} +34 -33
- package/dist/{play-IVTXE4JW.js → play-G5XDRDIZ.js} +49 -41
- package/dist/{preflight-QJNKKMPE.js → preflight-W2JDYF3T.js} +18 -17
- package/dist/{present-NB6DAJ6K.js → present-CYMTHQFM.js} +68 -51
- package/dist/{preview-FIWAZ5PX.js → preview-DTQPQZTK.js} +51 -49
- package/dist/{probe-VQJOUG65.js → probe-WZJK3YQI.js} +23 -21
- package/dist/{producer-NP6X5UBL.js → producer-2BSMSO6I.js} +1 -1
- package/dist/{progress-IY6U35WH.js → progress-KRDVC24C.js} +4 -1
- package/dist/{projectConfig-UVA26HJW.js → projectConfig-BYRVYLCC.js} +12 -11
- package/dist/{publication-LYPU7NTZ.js → publication-UCFJLELD.js} +7 -6
- package/dist/{publish-MRQ2K62E.js → publish-KXVPSWCO.js} +36 -35
- package/dist/{refresh-X5ZLKQO5.js → refresh-2GVNKDQE.js} +4 -4
- package/dist/{remove-background-RG6DCWOW.js → remove-background-O7BZNS3X.js} +19 -18
- package/dist/{render-XWBMMSC5.js → render-DGAP4Q2Z.js} +81 -67
- package/dist/{render-6B7YPN7H.js → render-QOWXGWQZ.js} +55 -54
- package/dist/{render-CM4MCNVA.js → render-TYS3LCIQ.js} +10 -8
- package/dist/{render-batch-Y3RRNDNJ.js → render-batch-TEQRGAUC.js} +10 -8
- package/dist/renderSetupWorker.js +8 -8
- package/dist/{resolver-K6VAEZVH.js → resolver-RN2JGGQL.js} +9 -8
- package/dist/{reverse-5RDRLKAP.js → reverse-FUARFEG2.js} +1 -1
- package/dist/{run-OQK3QU4I.js → run-V722HMUG.js} +12 -11
- package/dist/{sam-A4NXDWSU.js → sam-KHLM2DJA.js} +4 -4
- package/dist/{screenshotCapture-VDITRAK2.js → screenshotCapture-4BB4LUMX.js} +18 -17
- package/dist/{service-C3UT4LYP.js → service-ZPCHJY6B.js} +24 -23
- package/dist/{share-JU3IDHUV.js → share-PXUN7AH7.js} +29 -28
- package/dist/{sherpa-Z2Z4XLXV.js → sherpa-LT6Y7IGM.js} +22 -21
- package/dist/sherpaWorker.js +6 -3
- package/dist/{sites-QK3F4AUS.js → sites-WWCABDSX.js} +4 -1
- package/dist/skills/hyperframes/SKILL.md +2 -2
- package/dist/skills/hyperframes/references/format.md +11 -2
- package/dist/skills/hyperframes/references/overlays.md +1 -1
- package/dist/skills/hyperframes/references/plugin-installation.md +45 -22
- package/dist/skills/hyperframes/references/sound.md +1 -0
- package/dist/skills/hyperframes/scripts/plugin-cli.mjs +61 -18
- package/dist/skills/hyperframes-cli/SKILL.md +2 -2
- package/dist/skills/media-use/SKILL.md +1 -1
- package/dist/skills/media-use/audio/scripts/audio.mjs +24 -7
- package/dist/skills/media-use/audio/scripts/carve.mjs +10 -82
- package/dist/skills/media-use/audio/scripts/lib/audio-carve.mjs +4 -0
- package/dist/skills/media-use/audio/scripts/lib/bgm.mjs +4 -1
- package/dist/skills/media-use/audio/scripts/lib/media-record.mjs +25 -7
- package/dist/skills/media-use/audio/scripts/lib/project-path.mjs +56 -0
- package/dist/skills/media-use/audio/scripts/lib/python.mjs +9 -1
- package/dist/skills/media-use/audio/scripts/lib/recording.mjs +66 -3
- package/dist/skills/media-use/audio/scripts/wait-bgm.mjs +12 -7
- package/dist/skills/media-use/references/audio.md +2 -2
- package/dist/skills/media-use/references/mixing.md +1 -1
- package/dist/skills/media-use/scripts/lib/bundled-sfx-provider.mjs +27 -2
- package/dist/skills/media-use/scripts/lib/index-gen.mjs +13 -11
- package/dist/skills/media-use/scripts/lib/local-media-search.mjs +52 -23
- package/dist/skills/media-use/scripts/lib/ltx-video-provider.mjs +3 -1
- package/dist/skills/media-use/scripts/lib/manifest.mjs +51 -4
- package/dist/skills/media-use/scripts/resolve.mjs +4 -14
- package/dist/skills/media-use/scripts/transcribe.mjs +19 -3
- package/dist/{skills-24YEOJGP.js → skills-G63W5GD5.js} +17 -16
- package/dist/{skillsUpdateCheck-5R4JJ27G.js → skillsUpdateCheck-2T3JVDAA.js} +6 -6
- package/dist/{snapshot-T4REEKFX.js → snapshot-EVSKTVDG.js} +90 -77
- package/dist/{src-RMJVAEKT.js → src-K5FSMLTB.js} +23 -21
- package/dist/{src-EKGFNTTY.js → src-R57EQQSI.js} +29 -20
- package/dist/{start-E5RIH3KS.js → start-XBCYKGBV.js} +41 -39
- package/dist/{state-7OIPR4BG.js → state-FO64CPYE.js} +4 -1
- package/dist/{staticProjectServer-LEM5W3S5.js → staticProjectServer-Q6VR7CXT.js} +33 -31
- package/dist/{status-CSHJWWOP.js → status-E5XIWRCQ.js} +37 -34
- package/dist/studio/assets/{hyperframes-player-BroIQA4E.js → hyperframes-player-B78JDyI_.js} +1 -1
- package/dist/studio/assets/{index-Be7DZynj.js → index-D7ICtobF.js} +190 -190
- package/dist/studio/assets/{index-CiF0D62S.js → index-ww7-RmuM.js} +1 -1
- package/dist/studio/assets/{pausedVideoDecoder-RXcvblHS.js → pausedVideoDecoder-Dbe8Cmab.js} +1 -1
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-COJYCMRI.js → studio-api-GMJVYGET.js} +21 -17
- package/dist/{studioSelectionClient-W2S3H2VO.js → studioSelectionClient-S46TNAAZ.js} +2 -1
- package/dist/{studioServer-62ZTBLFM.js → studioServer-MIQCMK6U.js} +130 -102
- package/dist/subCompositionWorker.js +1162 -0
- package/dist/{sync-CLRYHWYE.js → sync-WJOFN6VN.js} +23 -21
- package/dist/{synthesize-Z2H32QPU.js → synthesize-FXM7ZD6J.js} +6 -5
- package/dist/{system-2YOII5LZ.js → system-DBUN5UDD.js} +3 -3
- package/dist/{telemetry-DWA36DFX.js → telemetry-HZ4P4DMC.js} +12 -11
- package/dist/{templates-LXMQR35F.js → templates-KFZZSSKW.js} +139 -46
- package/dist/{timeline-LMKTDKRT.js → timeline-5M6DPCXF.js} +38 -36
- package/dist/{tokens-VJ765KFG.js → tokens-H4NPNRFR.js} +3 -2
- package/dist/{transcribe-TICRK4IY.js → transcribe-6STI2ALX.js} +48 -46
- package/dist/{transcribe-3WASFP7Z.js → transcribe-7PE5UH7J.js} +19 -18
- package/dist/{tts-5YJV6UXX.js → tts-D7CLD3AD.js} +1 -1
- package/dist/{update-Q26QGCBW.js → update-H3T3AVVG.js} +19 -18
- package/dist/{updateCheck-7R4S46TT.js → updateCheck-TLCXUNBV.js} +5 -5
- package/dist/{upgrade-76TFHAGI.js → upgrade-BZVTMCQU.js} +9 -8
- package/dist/{urlDownloader-AE4UQI5A.js → urlDownloader-FJXNC3IM.js} +14 -13
- package/dist/{validate-BEYREWEL.js → validate-WTRVCEL5.js} +40 -38
- package/dist/{video-47AVLNWM.js → video-TVO2U5F2.js} +18 -17
- package/dist/{voices-5O6OAL6H.js → voices-F3EW43LX.js} +40 -38
- package/dist/warmCheck.js +66 -63
- package/dist/warmCheckClient.js +2 -2
- package/package.json +2 -1
- package/dist/chunk-XGEJPKRY.js +0 -5069
- package/dist/skills/hyperframes/scripts/lib/main-module.test.mjs +0 -46
- package/dist/skills/hyperframes/scripts/lib/windows-exe-search.test.mjs +0 -149
- package/dist/skills/hyperframes/scripts/plugin-cli.test.mjs +0 -207
- package/dist/skills/media-use/audio/scripts/audio.test.mjs +0 -166
- package/dist/skills/media-use/audio/scripts/carve.test.mjs +0 -254
- package/dist/skills/media-use/audio/scripts/gemini-pipeline.test.mjs +0 -131
- package/dist/skills/media-use/audio/scripts/heygen-tts.test.mjs +0 -38
- package/dist/skills/media-use/audio/scripts/heygen-voice.test.mjs +0 -233
- package/dist/skills/media-use/audio/scripts/lib/audio-meta.test.mjs +0 -136
- package/dist/skills/media-use/audio/scripts/lib/bgm.test.mjs +0 -74
- package/dist/skills/media-use/audio/scripts/lib/concurrency.test.mjs +0 -41
- package/dist/skills/media-use/audio/scripts/lib/gemini-auth.test.mjs +0 -86
- package/dist/skills/media-use/audio/scripts/lib/gemini-tts.test.mjs +0 -253
- package/dist/skills/media-use/audio/scripts/lib/heygen.test.mjs +0 -627
- package/dist/skills/media-use/audio/scripts/lib/media-record.test.mjs +0 -239
- package/dist/skills/media-use/audio/scripts/lib/python.test.mjs +0 -182
- package/dist/skills/media-use/audio/scripts/lib/sfx.test.mjs +0 -331
- package/dist/skills/media-use/audio/scripts/lib/tts.cleanup.test.mjs +0 -181
- package/dist/skills/media-use/audio/scripts/lib/tts.spawn.test.mjs +0 -183
- package/dist/skills/media-use/audio/scripts/lib/tts.test.mjs +0 -280
- package/dist/skills/media-use/audio/scripts/lib/voice-credit.test.mjs +0 -21
- package/dist/skills/media-use/audio/scripts/recording.test.mjs +0 -139
- package/dist/skills/media-use/audio/scripts/trusted-program.test.mjs +0 -106
- package/dist/skills/media-use/audio/scripts/wait-bgm.test.mjs +0 -108
- package/dist/skills/media-use/scripts/compatibility.test.mjs +0 -41
- package/dist/skills/media-use/scripts/dither.test.mjs +0 -176
- package/dist/skills/media-use/scripts/lib/adopt.test.mjs +0 -143
- package/dist/skills/media-use/scripts/lib/bundled-sfx-provider.test.mjs +0 -139
- package/dist/skills/media-use/scripts/lib/cache.test.mjs +0 -110
- package/dist/skills/media-use/scripts/lib/candidates.test.mjs +0 -155
- package/dist/skills/media-use/scripts/lib/codex-provider.test.mjs +0 -34
- package/dist/skills/media-use/scripts/lib/config-lock.test.mjs +0 -79
- package/dist/skills/media-use/scripts/lib/coverage.test.mjs +0 -136
- package/dist/skills/media-use/scripts/lib/credit-limit.test.mjs +0 -39
- package/dist/skills/media-use/scripts/lib/cube-build.test.mjs +0 -80
- package/dist/skills/media-use/scripts/lib/cube-validate.test.mjs +0 -130
- package/dist/skills/media-use/scripts/lib/cutlist.test.mjs +0 -174
- package/dist/skills/media-use/scripts/lib/duck.test.mjs +0 -319
- package/dist/skills/media-use/scripts/lib/error-diffusion.test.mjs +0 -102
- package/dist/skills/media-use/scripts/lib/freeze.test.mjs +0 -138
- package/dist/skills/media-use/scripts/lib/grade-analyzer.test.mjs +0 -285
- package/dist/skills/media-use/scripts/lib/heygen-cli.test.mjs +0 -315
- package/dist/skills/media-use/scripts/lib/heygen-search.test.mjs +0 -49
- package/dist/skills/media-use/scripts/lib/heygen-video-provider.test.mjs +0 -435
- package/dist/skills/media-use/scripts/lib/local-media-search.test.mjs +0 -23
- package/dist/skills/media-use/scripts/lib/local-models.test.mjs +0 -220
- package/dist/skills/media-use/scripts/lib/local-run.test.mjs +0 -121
- package/dist/skills/media-use/scripts/lib/logo-provider.test.mjs +0 -312
- package/dist/skills/media-use/scripts/lib/ltx-video-provider.test.mjs +0 -316
- package/dist/skills/media-use/scripts/lib/lut-preset-provider.test.mjs +0 -199
- package/dist/skills/media-use/scripts/lib/manifest.test.mjs +0 -397
- package/dist/skills/media-use/scripts/lib/media-fetch.test.mjs +0 -197
- package/dist/skills/media-use/scripts/lib/media-home.test.mjs +0 -61
- package/dist/skills/media-use/scripts/lib/mflux-provider.test.mjs +0 -174
- package/dist/skills/media-use/scripts/lib/misses.test.mjs +0 -89
- package/dist/skills/media-use/scripts/lib/npx-sync.test.mjs +0 -41
- package/dist/skills/media-use/scripts/lib/openverse.test.mjs +0 -219
- package/dist/skills/media-use/scripts/lib/parakeet-words.test.mjs +0 -44
- package/dist/skills/media-use/scripts/lib/prefs-store.concurrent.test.mjs +0 -173
- package/dist/skills/media-use/scripts/lib/prefs-store.test.mjs +0 -245
- package/dist/skills/media-use/scripts/lib/probe.test.mjs +0 -221
- package/dist/skills/media-use/scripts/lib/recipe-store.test.mjs +0 -391
- package/dist/skills/media-use/scripts/lib/registry.test.mjs +0 -261
- package/dist/skills/media-use/scripts/lib/search.test.mjs +0 -32
- package/dist/skills/media-use/scripts/lib/specs.test.mjs +0 -157
- package/dist/skills/media-use/scripts/lib/stats.test.mjs +0 -165
- package/dist/skills/media-use/scripts/lib/telemetry.test.mjs +0 -550
- package/dist/skills/media-use/scripts/lib/test-home.test.mjs +0 -10
- package/dist/skills/media-use/scripts/lib/transcriptCutFade.test.mjs +0 -33
- package/dist/skills/media-use/scripts/lib/tts-local-provider.test.mjs +0 -59
- package/dist/skills/media-use/scripts/lib/usage.test.mjs +0 -54
- package/dist/skills/media-use/scripts/lib/voice-provider.test.mjs +0 -46
- package/dist/skills/media-use/scripts/resolve-plugin.test.mjs +0 -86
- package/dist/skills/media-use/scripts/transcribe.test.mjs +0 -155
- package/dist/skills/media-use/scripts/transcript-cut.test.mjs +0 -341
- package/dist/{chunk-BAWGEGKD.js → chunk-XMAU5ZQX.js} +3 -3
|
@@ -4,6 +4,11 @@ import { dirname as __hf_dirname } from "node:path";
|
|
|
4
4
|
var require = __hf_createRequire(import.meta.url);
|
|
5
5
|
var __filename = __hf_fileURLToPath(import.meta.url);
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
|
+
import {
|
|
8
|
+
Semaphore,
|
|
9
|
+
prepareHeifImageInputs,
|
|
10
|
+
withMediaProbeSlot
|
|
11
|
+
} from "./chunk-PYTF6VHF.js";
|
|
7
12
|
import {
|
|
8
13
|
GENERIC_FAMILIES,
|
|
9
14
|
collectFontFamilyCustomProperties,
|
|
@@ -11,12 +16,7 @@ import {
|
|
|
11
16
|
iterateFontFamilyDeclarations,
|
|
12
17
|
normalizeSystemFontPrimaryFamilies,
|
|
13
18
|
resolveFontFamilyDeclarationFamilies
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import {
|
|
16
|
-
Semaphore,
|
|
17
|
-
prepareHeifImageInputs,
|
|
18
|
-
withMediaProbeSlot
|
|
19
|
-
} from "./chunk-TN3WGE3L.js";
|
|
19
|
+
} from "./chunk-PGITR2WX.js";
|
|
20
20
|
import {
|
|
21
21
|
EncoderInterruptedError,
|
|
22
22
|
encoderFailureError,
|
|
@@ -30,15 +30,12 @@ import {
|
|
|
30
30
|
refusesOutsideLink,
|
|
31
31
|
resolveRenderPaths,
|
|
32
32
|
toExternalAssetKey
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-37Y334MN.js";
|
|
34
34
|
import {
|
|
35
35
|
createStudioPositionSeekReapplyScript,
|
|
36
36
|
openRangeEnd,
|
|
37
37
|
parseEncoderOptions
|
|
38
38
|
} from "./chunk-LD6JONPV.js";
|
|
39
|
-
import {
|
|
40
|
-
RENDER_TEMP_DIR
|
|
41
|
-
} from "./chunk-ER22SVLT.js";
|
|
42
39
|
import {
|
|
43
40
|
BROWSER_GPU_NOT_SOFTWARE,
|
|
44
41
|
CaptureFailure,
|
|
@@ -69,6 +66,7 @@ import {
|
|
|
69
66
|
assertMediaPayload,
|
|
70
67
|
assertPublicHttpsUrl,
|
|
71
68
|
assertSwiftShader,
|
|
69
|
+
assetRootsRefusal,
|
|
72
70
|
audioFailureDiagnostics,
|
|
73
71
|
augmentPageNavigationTimeoutError,
|
|
74
72
|
augmentProtocolTimeoutError,
|
|
@@ -143,7 +141,9 @@ import {
|
|
|
143
141
|
isHttpUrl,
|
|
144
142
|
isInsideAssetRoots,
|
|
145
143
|
isMemoryExhaustionError,
|
|
144
|
+
isNotImagePayload,
|
|
146
145
|
isNotMediaPayload,
|
|
146
|
+
isPrivateUnderAssetRoots,
|
|
147
147
|
isProresProfile,
|
|
148
148
|
isSelfOrAncestorHidden,
|
|
149
149
|
isTransientBrowserError,
|
|
@@ -199,16 +199,25 @@ import {
|
|
|
199
199
|
shouldDisableBrowserPoolForParallelWorker,
|
|
200
200
|
spawnStreamingEncoder,
|
|
201
201
|
trackChildProcess,
|
|
202
|
+
urlInputArgs,
|
|
202
203
|
validateEngineConfigSnapshot,
|
|
203
204
|
verifyDiskDrawElementSamples,
|
|
204
205
|
videoAudioId,
|
|
205
206
|
videoStartOnMediaTimeline,
|
|
206
207
|
writeCapturedFrame,
|
|
207
208
|
writeUrlDownloadTelemetry
|
|
208
|
-
} from "./chunk-
|
|
209
|
+
} from "./chunk-VLFBOKZX.js";
|
|
209
210
|
import {
|
|
210
211
|
settleOnBrowserSafePort
|
|
211
212
|
} from "./chunk-OSKSTJNQ.js";
|
|
213
|
+
import {
|
|
214
|
+
TRANSITIONS,
|
|
215
|
+
convertTransfer,
|
|
216
|
+
crossfade
|
|
217
|
+
} from "./chunk-3GXQPCJC.js";
|
|
218
|
+
import {
|
|
219
|
+
RENDER_TEMP_DIR
|
|
220
|
+
} from "./chunk-HOIEN7O4.js";
|
|
212
221
|
import {
|
|
213
222
|
PREVIEW_FOR_ANOTHER_SITE_META
|
|
214
223
|
} from "./chunk-YXX6CIHL.js";
|
|
@@ -224,19 +233,14 @@ import {
|
|
|
224
233
|
parsesAsScript,
|
|
225
234
|
prepareFlattenedInnerRoot,
|
|
226
235
|
stripSdrPngColourTags
|
|
227
|
-
} from "./chunk-
|
|
236
|
+
} from "./chunk-4N3WOFP3.js";
|
|
228
237
|
import {
|
|
229
238
|
cannotHardLink,
|
|
230
239
|
collectScratchLeftovers,
|
|
231
240
|
createStagingDir,
|
|
232
241
|
removeScratch,
|
|
233
242
|
renameWithRetry
|
|
234
|
-
} from "./chunk-
|
|
235
|
-
import {
|
|
236
|
-
TRANSITIONS,
|
|
237
|
-
convertTransfer,
|
|
238
|
-
crossfade
|
|
239
|
-
} from "./chunk-3GXQPCJC.js";
|
|
243
|
+
} from "./chunk-DL6PEJWH.js";
|
|
240
244
|
import {
|
|
241
245
|
DISTRIBUTED_FPS,
|
|
242
246
|
HF_VFX_ATTR,
|
|
@@ -254,7 +258,7 @@ import {
|
|
|
254
258
|
redactTelemetryString,
|
|
255
259
|
resolveAuthoredTimingWindow,
|
|
256
260
|
toFps
|
|
257
|
-
} from "./chunk-
|
|
261
|
+
} from "./chunk-5IUVWP3A.js";
|
|
258
262
|
import {
|
|
259
263
|
CAPTURE_CANVAS_SELECTOR,
|
|
260
264
|
COMPOSITION_SOURCE_URL,
|
|
@@ -291,19 +295,22 @@ import {
|
|
|
291
295
|
sourceTimeAt,
|
|
292
296
|
styleElementsFor,
|
|
293
297
|
timeAtSourceTime
|
|
294
|
-
} from "./chunk-
|
|
298
|
+
} from "./chunk-2RUCE54M.js";
|
|
295
299
|
import {
|
|
296
300
|
isPrivateFileUnder,
|
|
297
301
|
isSafePath,
|
|
298
302
|
isStudioPrivatePath
|
|
299
|
-
} from "./chunk-
|
|
303
|
+
} from "./chunk-SALNTRJA.js";
|
|
304
|
+
import {
|
|
305
|
+
terminalText
|
|
306
|
+
} from "./chunk-MK23FXLH.js";
|
|
300
307
|
import {
|
|
301
308
|
chromeMajorCeiling
|
|
302
|
-
} from "./chunk-
|
|
309
|
+
} from "./chunk-6LU6JICP.js";
|
|
303
310
|
import {
|
|
304
311
|
lintHyperframeHtml,
|
|
305
312
|
resolveReferencedStart
|
|
306
|
-
} from "./chunk-
|
|
313
|
+
} from "./chunk-UDLWVQ74.js";
|
|
307
314
|
import {
|
|
308
315
|
isUnresolvedAssetPlaceholder,
|
|
309
316
|
namesAnotherNetworkRoot,
|
|
@@ -318,7 +325,7 @@ import {
|
|
|
318
325
|
getSystemTotalMb,
|
|
319
326
|
hostCpuCount,
|
|
320
327
|
usableCpuCount
|
|
321
|
-
} from "./chunk-
|
|
328
|
+
} from "./chunk-O5U3Y5DX.js";
|
|
322
329
|
import {
|
|
323
330
|
MEDIA_START_BASIS_ATTR,
|
|
324
331
|
checkSubCompositionUsability,
|
|
@@ -348,15 +355,15 @@ import {
|
|
|
348
355
|
} from "./chunk-IH2C53YV.js";
|
|
349
356
|
import {
|
|
350
357
|
CANVAS_DIMENSIONS,
|
|
351
|
-
HTML_BODY_CSS_HEIGHT_FIRST_RE,
|
|
352
|
-
HTML_BODY_CSS_WIDTH_FIRST_RE,
|
|
353
358
|
VALID_CANVAS_RESOLUTIONS,
|
|
354
359
|
checkOutputResolutionCompatibility,
|
|
355
360
|
extractMediaSrcMutations,
|
|
356
361
|
isAspectAgnosticResolutionAlias,
|
|
362
|
+
matchHtmlBodyCssHeightFirst,
|
|
363
|
+
matchHtmlBodyCssWidthFirst,
|
|
357
364
|
normalizeResolutionFlag,
|
|
358
365
|
suggestMatchingPreset
|
|
359
|
-
} from "./chunk-
|
|
366
|
+
} from "./chunk-7IMHPBSH.js";
|
|
360
367
|
import {
|
|
361
368
|
parseHTML
|
|
362
369
|
} from "./chunk-GWTIFRF5.js";
|
|
@@ -373,6 +380,295 @@ import {
|
|
|
373
380
|
appendFileSync
|
|
374
381
|
} from "fs";
|
|
375
382
|
import { tmpdir as tmpdir2 } from "os";
|
|
383
|
+
|
|
384
|
+
// ../producer/src/services/htmlTagScans.ts
|
|
385
|
+
function forwardFinder(text, pattern) {
|
|
386
|
+
let start = -1;
|
|
387
|
+
let found = null;
|
|
388
|
+
return (from) => {
|
|
389
|
+
if (start < 0 || from < start || found !== null && from > found.index) {
|
|
390
|
+
start = from;
|
|
391
|
+
pattern.lastIndex = from;
|
|
392
|
+
found = pattern.exec(text);
|
|
393
|
+
}
|
|
394
|
+
return found;
|
|
395
|
+
};
|
|
396
|
+
}
|
|
397
|
+
function indexFinder(text, pattern) {
|
|
398
|
+
const find = forwardFinder(text, pattern);
|
|
399
|
+
return (from) => find(from)?.index ?? -1;
|
|
400
|
+
}
|
|
401
|
+
var isLetter = (code) => code >= 65 && code <= 90 || code >= 97 && code <= 122;
|
|
402
|
+
var isDigit = (code) => code >= 48 && code <= 57;
|
|
403
|
+
var isNameChar = (code) => isLetter(code) || isDigit(code) || code === 45;
|
|
404
|
+
var isWordChar = (code) => isLetter(code) || isDigit(code) || code === 95;
|
|
405
|
+
function nameRunEnd(text, from) {
|
|
406
|
+
let end = from;
|
|
407
|
+
while (isNameChar(text.charCodeAt(end))) end++;
|
|
408
|
+
return end;
|
|
409
|
+
}
|
|
410
|
+
function tagNameEnd(text, open2) {
|
|
411
|
+
for (let end = nameRunEnd(text, open2 + 2); end >= open2 + 2; end--) {
|
|
412
|
+
if (isWordChar(text.charCodeAt(end - 1)) !== isWordChar(text.charCodeAt(end))) return end;
|
|
413
|
+
}
|
|
414
|
+
return -1;
|
|
415
|
+
}
|
|
416
|
+
function* inlineScriptBlocks(html) {
|
|
417
|
+
const opener = /<script\b/gi;
|
|
418
|
+
const closer = /<\/script>/gi;
|
|
419
|
+
for (let open2 = opener.exec(html); open2; open2 = opener.exec(html)) {
|
|
420
|
+
const attrsStart = open2.index + open2[0].length;
|
|
421
|
+
const gt = html.indexOf(">", attrsStart);
|
|
422
|
+
if (gt < 0) return;
|
|
423
|
+
closer.lastIndex = gt + 1;
|
|
424
|
+
const close = closer.exec(html);
|
|
425
|
+
if (!close) return;
|
|
426
|
+
yield { attrs: html.slice(attrsStart, gt), body: html.slice(gt + 1, close.index) };
|
|
427
|
+
opener.lastIndex = close.index + close[0].length;
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
function removeDelimitedRuns(source, start, end) {
|
|
431
|
+
let out = "";
|
|
432
|
+
let kept = 0;
|
|
433
|
+
for (let open2 = source.indexOf(start); open2 >= 0; open2 = source.indexOf(start, kept)) {
|
|
434
|
+
const close = source.indexOf(end, open2 + start.length);
|
|
435
|
+
if (close < 0) break;
|
|
436
|
+
out += source.slice(kept, open2);
|
|
437
|
+
kept = close + end.length;
|
|
438
|
+
}
|
|
439
|
+
return out + source.slice(kept);
|
|
440
|
+
}
|
|
441
|
+
function gsapDistFile(value) {
|
|
442
|
+
let dist = -1;
|
|
443
|
+
const distPattern = /\/dist\//gi;
|
|
444
|
+
for (let m = distPattern.exec(value); m; m = distPattern.exec(value)) {
|
|
445
|
+
if (m.index + 6 < value.length) dist = m.index;
|
|
446
|
+
distPattern.lastIndex = m.index + 1;
|
|
447
|
+
}
|
|
448
|
+
const gsap = dist < 0 ? null : /gsap/i.exec(value);
|
|
449
|
+
return gsap && gsap.index + 4 <= dist ? value.slice(dist + 6) : void 0;
|
|
450
|
+
}
|
|
451
|
+
function lastGsapMatch(html, finders, tagStart, gt) {
|
|
452
|
+
const { nextSrc, nextQuote, nextGt } = finders;
|
|
453
|
+
let match;
|
|
454
|
+
for (let src = nextSrc(tagStart); src && src.index < gt; src = nextSrc(src.index + 1)) {
|
|
455
|
+
const valueStart = src.index + 5;
|
|
456
|
+
const close = nextQuote(valueStart);
|
|
457
|
+
const end = close < 0 ? -1 : nextGt(close + 1);
|
|
458
|
+
if (end < 0) return { match, laterTagsFail: true };
|
|
459
|
+
const file = gsapDistFile(html.slice(valueStart, close));
|
|
460
|
+
if (file !== void 0) match = { valueStart, close, end, file };
|
|
461
|
+
}
|
|
462
|
+
return { match, laterTagsFail: false };
|
|
463
|
+
}
|
|
464
|
+
function replaceGsapDistScripts(html, replace) {
|
|
465
|
+
const opener = /<script\b/gi;
|
|
466
|
+
const finders = {
|
|
467
|
+
nextSrc: forwardFinder(html, /\bsrc=["']/gi),
|
|
468
|
+
nextQuote: indexFinder(html, /["']/g),
|
|
469
|
+
nextGt: indexFinder(html, />/g)
|
|
470
|
+
};
|
|
471
|
+
let out = "";
|
|
472
|
+
let kept = 0;
|
|
473
|
+
for (let open2 = opener.exec(html); open2; open2 = opener.exec(html)) {
|
|
474
|
+
const gt = finders.nextGt(open2.index);
|
|
475
|
+
if (gt < 0) break;
|
|
476
|
+
const { match, laterTagsFail } = lastGsapMatch(html, finders, open2.index, gt);
|
|
477
|
+
if (match) {
|
|
478
|
+
const { valueStart, close, end, file } = match;
|
|
479
|
+
const full = html.slice(open2.index, end + 1);
|
|
480
|
+
const src = html.slice(valueStart, close);
|
|
481
|
+
out += html.slice(kept, open2.index);
|
|
482
|
+
out += replace(
|
|
483
|
+
full,
|
|
484
|
+
html.slice(open2.index, valueStart),
|
|
485
|
+
src,
|
|
486
|
+
file,
|
|
487
|
+
html.slice(close, end + 1)
|
|
488
|
+
);
|
|
489
|
+
kept = end + 1;
|
|
490
|
+
}
|
|
491
|
+
if (laterTagsFail) break;
|
|
492
|
+
opener.lastIndex = match ? kept : gt;
|
|
493
|
+
}
|
|
494
|
+
return out + html.slice(kept);
|
|
495
|
+
}
|
|
496
|
+
function removeSpanPerTag(html, opener, spanIn) {
|
|
497
|
+
const nextGt = indexFinder(html, />/g);
|
|
498
|
+
let out = "";
|
|
499
|
+
let kept = 0;
|
|
500
|
+
for (let open2 = opener.exec(html); open2; open2 = opener.exec(html)) {
|
|
501
|
+
const attrsStart = open2.index + open2[0].length;
|
|
502
|
+
const gt = nextGt(attrsStart);
|
|
503
|
+
const span = spanIn(attrsStart, gt < 0 ? html.length : gt);
|
|
504
|
+
if (span) {
|
|
505
|
+
out += html.slice(kept, span[0]);
|
|
506
|
+
kept = span[1];
|
|
507
|
+
} else if (gt < 0) break;
|
|
508
|
+
opener.lastIndex = span ? kept : gt;
|
|
509
|
+
}
|
|
510
|
+
return out + html.slice(kept);
|
|
511
|
+
}
|
|
512
|
+
function stripCrossoriginAttr(html, tagName) {
|
|
513
|
+
const nextQuote = indexFinder(html, /["']/g);
|
|
514
|
+
const nextAttr = forwardFinder(html, /\scrossorigin/gi);
|
|
515
|
+
return removeSpanPerTag(html, new RegExp(`<${tagName}\\b`, "gi"), (attrsStart, tagEnd) => {
|
|
516
|
+
let last = -1;
|
|
517
|
+
for (let at = nextAttr(attrsStart); at && at.index < tagEnd; at = nextAttr(at.index + 12)) {
|
|
518
|
+
last = at.index;
|
|
519
|
+
}
|
|
520
|
+
if (last < 0) return void 0;
|
|
521
|
+
const nameEnd = last + 12;
|
|
522
|
+
const quote = html[nameEnd + 1];
|
|
523
|
+
const quoted = html[nameEnd] === "=" && (quote === '"' || quote === "'");
|
|
524
|
+
const close = quoted ? nextQuote(nameEnd + 2) : -1;
|
|
525
|
+
return [last, close < 0 ? nameEnd : close + 1];
|
|
526
|
+
});
|
|
527
|
+
}
|
|
528
|
+
function stripPreloadNone(html) {
|
|
529
|
+
const nextAttr = forwardFinder(html, /(?<!\s)\s+preload\s*=\s*["']none["']/gi);
|
|
530
|
+
return removeSpanPerTag(html, /<(?:video|audio)\b/gi, (attrsStart, tagEnd) => {
|
|
531
|
+
const attr = nextAttr(attrsStart);
|
|
532
|
+
return attr && attr.index < tagEnd ? [attr.index, attr.index + attr[0].length] : void 0;
|
|
533
|
+
});
|
|
534
|
+
}
|
|
535
|
+
var REMOTE_SRC_TAGS = {
|
|
536
|
+
media: { opener: "<(?:video|audio)\\b", attr: /\bsrc\s*=\s*["'](https?:\/\/)/gi },
|
|
537
|
+
source: { opener: "<source\\b", attr: /\bsrc\s*=\s*["'](https?:\/\/)/gi },
|
|
538
|
+
img: { opener: "<img\\b", attr: /(?<![\w-])src\s*=\s*["'](https?:\/\/)/gi }
|
|
539
|
+
};
|
|
540
|
+
function remoteSrcUrls(html, tag) {
|
|
541
|
+
const opener = new RegExp(REMOTE_SRC_TAGS[tag].opener, "gi");
|
|
542
|
+
const nextAttr = forwardFinder(html, new RegExp(REMOTE_SRC_TAGS[tag].attr));
|
|
543
|
+
const nextGt = indexFinder(html, />/g);
|
|
544
|
+
const nextQuote = indexFinder(html, /["']/g);
|
|
545
|
+
const urls = [];
|
|
546
|
+
for (let open2 = opener.exec(html); open2; open2 = opener.exec(html)) {
|
|
547
|
+
const attrsStart = open2.index + open2[0].length;
|
|
548
|
+
const gt = nextGt(attrsStart);
|
|
549
|
+
if (gt < 0) break;
|
|
550
|
+
let resumeAt = gt;
|
|
551
|
+
for (let attr = nextAttr(attrsStart); attr && attr.index < gt; attr = nextAttr(attr.index + 1)) {
|
|
552
|
+
const urlRest = attr.index + attr[0].length;
|
|
553
|
+
const close = nextQuote(urlRest);
|
|
554
|
+
if (close < 0) return urls;
|
|
555
|
+
if (close === urlRest) continue;
|
|
556
|
+
const end = nextGt(close + 1);
|
|
557
|
+
if (end < 0) return urls;
|
|
558
|
+
urls.push(html.slice(urlRest - attr[1].length, close));
|
|
559
|
+
resumeAt = end + 1;
|
|
560
|
+
break;
|
|
561
|
+
}
|
|
562
|
+
opener.lastIndex = resumeAt;
|
|
563
|
+
}
|
|
564
|
+
return urls;
|
|
565
|
+
}
|
|
566
|
+
function removeScriptAndStyleBlocks(markup) {
|
|
567
|
+
const opener = /<(script|style)\b/gi;
|
|
568
|
+
const nextGt = indexFinder(markup, />/g);
|
|
569
|
+
const closers = {
|
|
570
|
+
script: forwardFinder(markup, /<\/script>/gi),
|
|
571
|
+
style: forwardFinder(markup, /<\/style>/gi)
|
|
572
|
+
};
|
|
573
|
+
let out = "";
|
|
574
|
+
let kept = 0;
|
|
575
|
+
for (let open2 = opener.exec(markup); open2; open2 = opener.exec(markup)) {
|
|
576
|
+
const gt = nextGt(open2.index + open2[0].length);
|
|
577
|
+
if (gt < 0) break;
|
|
578
|
+
const close = closers[open2[1].toLowerCase()](gt + 1);
|
|
579
|
+
if (!close) continue;
|
|
580
|
+
out += markup.slice(kept, open2.index);
|
|
581
|
+
kept = close.index + close[0].length;
|
|
582
|
+
opener.lastIndex = kept;
|
|
583
|
+
}
|
|
584
|
+
return out + markup.slice(kept);
|
|
585
|
+
}
|
|
586
|
+
var VOID_TAG = /(img|br|hr|input|source|track|area|base|col|embed|link|meta|param|wbr)\b/iy;
|
|
587
|
+
function countedTagAt(markup, open2, nextGt) {
|
|
588
|
+
const first = markup.charCodeAt(open2 + 1);
|
|
589
|
+
if (first === 47 && isLetter(markup.charCodeAt(open2 + 2))) {
|
|
590
|
+
const end = nameRunEnd(markup, open2 + 3);
|
|
591
|
+
return { name: markup.slice(open2 + 2, end), end };
|
|
592
|
+
}
|
|
593
|
+
if (!isLetter(first)) return void 0;
|
|
594
|
+
VOID_TAG.lastIndex = open2 + 1;
|
|
595
|
+
const known = VOID_TAG.exec(markup);
|
|
596
|
+
if (known) return { name: known[1], end: open2 + 1 + known[0].length };
|
|
597
|
+
const nameEnd = tagNameEnd(markup, open2);
|
|
598
|
+
const gt = nameEnd < 0 ? -1 : nextGt(open2);
|
|
599
|
+
if (gt < 0 || markup.charCodeAt(gt - 1) !== 47) return void 0;
|
|
600
|
+
return { name: markup.slice(open2 + 1, nameEnd), end: gt + 1 };
|
|
601
|
+
}
|
|
602
|
+
function* countedTagNames(markup) {
|
|
603
|
+
const nextGt = indexFinder(markup, />/g);
|
|
604
|
+
for (let open2 = markup.indexOf("<"); open2 >= 0; ) {
|
|
605
|
+
const tag = countedTagAt(markup, open2, nextGt);
|
|
606
|
+
if (tag) yield tag.name;
|
|
607
|
+
open2 = markup.indexOf("<", tag ? tag.end : open2 + 1);
|
|
608
|
+
}
|
|
609
|
+
}
|
|
610
|
+
function countTagsWithAttr(markup, tagName, attr) {
|
|
611
|
+
const opener = new RegExp(`<${tagName}\\b`, "gi");
|
|
612
|
+
const nextGt = indexFinder(markup, />/g);
|
|
613
|
+
const nextAttr = forwardFinder(markup, new RegExp(attr, "gi"));
|
|
614
|
+
let count = 0;
|
|
615
|
+
for (let open2 = opener.exec(markup); open2; open2 = opener.exec(markup)) {
|
|
616
|
+
const attrsStart = open2.index + open2[0].length;
|
|
617
|
+
const gt = nextGt(attrsStart);
|
|
618
|
+
if (gt < 0) break;
|
|
619
|
+
const found = nextAttr(attrsStart);
|
|
620
|
+
const inTag = found !== null && found.index < gt;
|
|
621
|
+
if (inTag) count++;
|
|
622
|
+
opener.lastIndex = inTag ? gt + 1 : gt;
|
|
623
|
+
}
|
|
624
|
+
return count;
|
|
625
|
+
}
|
|
626
|
+
function lastQuotedValueCloses(nextAttr, nextQuote, from, tagEnd) {
|
|
627
|
+
let close = -1;
|
|
628
|
+
let earlierClose = -1;
|
|
629
|
+
for (let attr = nextAttr(from); attr && attr.index < tagEnd; attr = nextAttr(attr.index + 1)) {
|
|
630
|
+
const quote = nextQuote(attr.index + attr[0].length);
|
|
631
|
+
if (quote < 0) return { close, earlierClose, unclosed: true };
|
|
632
|
+
earlierClose = close;
|
|
633
|
+
close = quote;
|
|
634
|
+
}
|
|
635
|
+
return { close, earlierClose, unclosed: false };
|
|
636
|
+
}
|
|
637
|
+
function* tagsWithQuotedAttr(html, name) {
|
|
638
|
+
const opener = /<[a-zA-Z]/g;
|
|
639
|
+
const nextGt = indexFinder(html, />/g);
|
|
640
|
+
const nextQuote = indexFinder(html, /["']/g);
|
|
641
|
+
const nextAttr = forwardFinder(html, new RegExp(`\\b${name}=["']`, "gi"));
|
|
642
|
+
for (let open2 = opener.exec(html); open2; open2 = opener.exec(html)) {
|
|
643
|
+
if (tagNameEnd(html, open2.index) < 0) continue;
|
|
644
|
+
const gt = nextGt(open2.index);
|
|
645
|
+
const tagEnd = gt < 0 ? html.length : gt;
|
|
646
|
+
const { close, earlierClose, unclosed } = lastQuotedValueCloses(
|
|
647
|
+
nextAttr,
|
|
648
|
+
nextQuote,
|
|
649
|
+
open2.index + 2,
|
|
650
|
+
tagEnd
|
|
651
|
+
);
|
|
652
|
+
if (close >= 0) yield { start: open2.index, close, earlierClose };
|
|
653
|
+
if (unclosed || close < 0 && gt < 0) return;
|
|
654
|
+
opener.lastIndex = close >= 0 ? close + 1 : gt;
|
|
655
|
+
}
|
|
656
|
+
}
|
|
657
|
+
function countCompositionSrcMounts(markup) {
|
|
658
|
+
let count = 0;
|
|
659
|
+
for (const _ of tagsWithQuotedAttr(markup, "data-composition-src")) count++;
|
|
660
|
+
return count;
|
|
661
|
+
}
|
|
662
|
+
function firstCompositionIdTag(html) {
|
|
663
|
+
for (const { start, close, earlierClose } of tagsWithQuotedAttr(html, "data-composition-id")) {
|
|
664
|
+
let end = html.indexOf(">", close + 1);
|
|
665
|
+
if (end < 0 && earlierClose >= 0) end = html.indexOf(">", earlierClose + 1);
|
|
666
|
+
return end < 0 ? void 0 : html.slice(start, end + 1);
|
|
667
|
+
}
|
|
668
|
+
return void 0;
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
// ../producer/src/services/renderOrchestrator.ts
|
|
376
672
|
import { join as join29, dirname as dirname12, resolve as resolve6 } from "path";
|
|
377
673
|
import { totalmem as totalmem2 } from "os";
|
|
378
674
|
import { randomUUID } from "crypto";
|
|
@@ -491,26 +787,26 @@ var LOG_LEVEL_PRIORITY = {
|
|
|
491
787
|
function createConsoleLogger(level = "info") {
|
|
492
788
|
const threshold = LOG_LEVEL_PRIORITY[level];
|
|
493
789
|
const shouldLog = (msgLevel) => LOG_LEVEL_PRIORITY[msgLevel] <= threshold;
|
|
494
|
-
const formatMeta = (meta) => meta ? ` ${JSON.stringify(meta)}` : "";
|
|
790
|
+
const formatMeta = (meta) => meta ? ` ${terminalText(JSON.stringify(meta))}` : "";
|
|
495
791
|
return {
|
|
496
792
|
error(message, meta) {
|
|
497
793
|
if (shouldLog("error")) {
|
|
498
|
-
console.error(`[ERROR] ${message}${formatMeta(meta)}`);
|
|
794
|
+
console.error(`[ERROR] ${terminalText(message)}${formatMeta(meta)}`);
|
|
499
795
|
}
|
|
500
796
|
},
|
|
501
797
|
warn(message, meta) {
|
|
502
798
|
if (shouldLog("warn")) {
|
|
503
|
-
console.warn(`[WARN] ${message}${formatMeta(meta)}`);
|
|
799
|
+
console.warn(`[WARN] ${terminalText(message)}${formatMeta(meta)}`);
|
|
504
800
|
}
|
|
505
801
|
},
|
|
506
802
|
info(message, meta) {
|
|
507
803
|
if (shouldLog("info")) {
|
|
508
|
-
console.error(`[INFO] ${message}${formatMeta(meta)}`);
|
|
804
|
+
console.error(`[INFO] ${terminalText(message)}${formatMeta(meta)}`);
|
|
509
805
|
}
|
|
510
806
|
},
|
|
511
807
|
debug(message, meta) {
|
|
512
808
|
if (shouldLog("debug")) {
|
|
513
|
-
console.error(`[DEBUG] ${message}${formatMeta(meta)}`);
|
|
809
|
+
console.error(`[DEBUG] ${terminalText(message)}${formatMeta(meta)}`);
|
|
514
810
|
}
|
|
515
811
|
},
|
|
516
812
|
isLevelEnabled(msgLevel) {
|
|
@@ -1085,7 +1381,7 @@ function createFileServer(options) {
|
|
|
1085
1381
|
const headScripts = options.headScripts ?? [getVerifiedHyperframeRuntimeSource()];
|
|
1086
1382
|
const bodyScripts = options.bodyScripts ?? [buildRenderModeScript(options.fps), HF_BRIDGE_SCRIPT];
|
|
1087
1383
|
const app = new Hono();
|
|
1088
|
-
const warnLeftOut = (line) => console.warn(`[FileServer] ${line}`);
|
|
1384
|
+
const warnLeftOut = (line) => console.warn(`[FileServer] ${terminalText(line)}`);
|
|
1089
1385
|
let listeningPort = -1;
|
|
1090
1386
|
app.use(async function loadEachFileOnlyAsItsNamedType(c, next) {
|
|
1091
1387
|
await next();
|
|
@@ -1109,7 +1405,7 @@ function createFileServer(options) {
|
|
|
1109
1405
|
}
|
|
1110
1406
|
if (!file) {
|
|
1111
1407
|
if (!/favicon\.ico$/i.test(requestPath)) {
|
|
1112
|
-
console.warn(`[FileServer] 404 Not Found: ${requestPath}`);
|
|
1408
|
+
console.warn(`[FileServer] 404 Not Found: ${terminalText(requestPath)}`);
|
|
1113
1409
|
}
|
|
1114
1410
|
return c.text("Not found", 404);
|
|
1115
1411
|
}
|
|
@@ -1381,7 +1677,7 @@ function writeCompiledArtifacts(compiled, workDir, includeSummary) {
|
|
|
1381
1677
|
for (const [srcPath, html] of compiled.subCompositions) {
|
|
1382
1678
|
const outPath = join2(compileDir, srcPath);
|
|
1383
1679
|
if (!isPathInside(outPath, compileDir)) {
|
|
1384
|
-
console.warn(`[Render] Skipping sub-composition with unsafe path: ${srcPath}`);
|
|
1680
|
+
console.warn(`[Render] Skipping sub-composition with unsafe path: ${terminalText(srcPath)}`);
|
|
1385
1681
|
continue;
|
|
1386
1682
|
}
|
|
1387
1683
|
mkdirSync(dirname2(outPath), { recursive: true });
|
|
@@ -1390,7 +1686,9 @@ function writeCompiledArtifacts(compiled, workDir, includeSummary) {
|
|
|
1390
1686
|
for (const [relativePath, absolutePath] of compiled.externalAssets) {
|
|
1391
1687
|
const outPath = resolve3(join2(compileDir, relativePath));
|
|
1392
1688
|
if (!isPathInside(outPath, compileDir)) {
|
|
1393
|
-
console.warn(
|
|
1689
|
+
console.warn(
|
|
1690
|
+
`[Render] Skipping external asset with unsafe path: ${terminalText(relativePath)}`
|
|
1691
|
+
);
|
|
1394
1692
|
continue;
|
|
1395
1693
|
}
|
|
1396
1694
|
mkdirSync(dirname2(outPath), { recursive: true });
|
|
@@ -3493,7 +3791,15 @@ function hdrWindowFrames(frameSize, windowBytes) {
|
|
|
3493
3791
|
return Math.max(8, Math.floor(windowBytes / frameSize));
|
|
3494
3792
|
}
|
|
3495
3793
|
async function probeFirstTick(srcPath, mediaStart, fps, runFfmpegImpl, abortSignal) {
|
|
3496
|
-
const args = [
|
|
3794
|
+
const args = [
|
|
3795
|
+
...urlInputArgs(srcPath),
|
|
3796
|
+
"-ss",
|
|
3797
|
+
String(mediaStart),
|
|
3798
|
+
"-i",
|
|
3799
|
+
srcPath,
|
|
3800
|
+
"-frames:v",
|
|
3801
|
+
"1"
|
|
3802
|
+
];
|
|
3497
3803
|
const result = await runFfmpegImpl([...args, ...["-vf", "showinfo", "-f", "null", "-"]], {
|
|
3498
3804
|
signal: abortSignal
|
|
3499
3805
|
});
|
|
@@ -3567,6 +3873,7 @@ async function extractHdrVideoFrames(args) {
|
|
|
3567
3873
|
// Decode before seeking for the one-frame path. Input-side seeking can
|
|
3568
3874
|
// return zero frames for valid unindexed/negative-base transports.
|
|
3569
3875
|
[
|
|
3876
|
+
...urlInputArgs(srcPath),
|
|
3570
3877
|
"-i",
|
|
3571
3878
|
srcPath,
|
|
3572
3879
|
"-ss",
|
|
@@ -3651,6 +3958,7 @@ function hdrWindowFfmpegArgs(a) {
|
|
|
3651
3958
|
const filters = [`fps=${a.fpsArg}:start_time=${(a.firstTick / a.fps).toFixed(6)}`, a.scale];
|
|
3652
3959
|
if (trim > 0) filters.push(`trim=start_frame=${trim}`);
|
|
3653
3960
|
return [
|
|
3961
|
+
...urlInputArgs(a.srcPath),
|
|
3654
3962
|
...["-ss", (a.ffmpegSeek + seekFrame / a.fps).toFixed(6), "-i", a.srcPath],
|
|
3655
3963
|
...["-vf", filters.join(","), "-frames:v", String(a.frames), "-fps_mode", "passthrough"]
|
|
3656
3964
|
];
|
|
@@ -3664,50 +3972,71 @@ function holdFirstFrameUntilStreamStarts(windows, firstTick) {
|
|
|
3664
3972
|
close: () => windows.close()
|
|
3665
3973
|
};
|
|
3666
3974
|
}
|
|
3975
|
+
function fitHdrImageLayoutToFrame(layout, frameWidth, frameHeight) {
|
|
3976
|
+
const scale = Math.min(1, frameWidth / layout.width, frameHeight / layout.height);
|
|
3977
|
+
if (scale === 1) return layout;
|
|
3978
|
+
return {
|
|
3979
|
+
width: Math.max(1, Math.floor(layout.width * scale)),
|
|
3980
|
+
height: Math.max(1, Math.floor(layout.height * scale))
|
|
3981
|
+
};
|
|
3982
|
+
}
|
|
3667
3983
|
function decodeHdrImageBuffers(args) {
|
|
3668
|
-
const { log, hdrImageSrcPaths, prep, hdrDiagnostics } = args;
|
|
3984
|
+
const { log, hdrImageSrcPaths, prep, hdrDiagnostics, width, height } = args;
|
|
3985
|
+
const budgetBytes = resolveHdrExtractionBudgetBytes(process.env[HDR_EXTRACTION_MAX_BYTES_ENV]);
|
|
3986
|
+
const releases = [];
|
|
3987
|
+
const releaseReservation = () => {
|
|
3988
|
+
for (const release of releases.splice(0)) release();
|
|
3989
|
+
};
|
|
3669
3990
|
const out = /* @__PURE__ */ new Map();
|
|
3670
3991
|
for (const [imageId, srcPath] of hdrImageSrcPaths) {
|
|
3671
3992
|
try {
|
|
3672
3993
|
const decoded = decodePngToRgb48le(readFileSync3(srcPath));
|
|
3994
|
+
const releaseDecoded = reserveHdrExtractionBytes(decoded.data.length, budgetBytes);
|
|
3673
3995
|
const layout = prep.hdrExtractionDims.get(imageId);
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
|
|
3996
|
+
if (!layout || layout.width === decoded.width && layout.height === decoded.height) {
|
|
3997
|
+
releases.push(releaseDecoded);
|
|
3998
|
+
out.set(imageId, decoded);
|
|
3999
|
+
continue;
|
|
4000
|
+
}
|
|
4001
|
+
const target = fitHdrImageLayoutToFrame(layout, width, height);
|
|
4002
|
+
if (target !== layout) {
|
|
4003
|
+
log.warn("HDR image layout box is larger than the output frame; drawing it smaller", {
|
|
4004
|
+
imageId,
|
|
4005
|
+
layout: `${layout.width}x${layout.height}`,
|
|
4006
|
+
drawn: `${target.width}x${target.height}`
|
|
4007
|
+
});
|
|
4008
|
+
}
|
|
4009
|
+
try {
|
|
4010
|
+
releases.push(reserveHdrExtractionBytes(target.width * target.height * 6, budgetBytes));
|
|
4011
|
+
const fitInfo = prep.hdrImageFitInfo.get(imageId);
|
|
3677
4012
|
const resampled = resampleRgb48leObjectFit(
|
|
3678
4013
|
decoded.data,
|
|
3679
4014
|
decoded.width,
|
|
3680
4015
|
decoded.height,
|
|
3681
|
-
|
|
3682
|
-
|
|
3683
|
-
fit,
|
|
4016
|
+
target.width,
|
|
4017
|
+
target.height,
|
|
4018
|
+
normalizeObjectFit(fitInfo?.fit),
|
|
3684
4019
|
fitInfo?.position
|
|
3685
4020
|
);
|
|
3686
|
-
out.set(imageId, {
|
|
3687
|
-
|
|
3688
|
-
|
|
3689
|
-
height: layout.height
|
|
3690
|
-
});
|
|
3691
|
-
} else {
|
|
3692
|
-
out.set(imageId, {
|
|
3693
|
-
data: Buffer.from(decoded.data),
|
|
3694
|
-
width: decoded.width,
|
|
3695
|
-
height: decoded.height
|
|
3696
|
-
});
|
|
4021
|
+
out.set(imageId, { data: resampled, width: target.width, height: target.height });
|
|
4022
|
+
} finally {
|
|
4023
|
+
releaseDecoded();
|
|
3697
4024
|
}
|
|
3698
4025
|
} catch (err) {
|
|
4026
|
+
releaseReservation();
|
|
3699
4027
|
hdrDiagnostics.imageDecodeFailures += 1;
|
|
4028
|
+
const message = err instanceof Error ? err.message : String(err);
|
|
3700
4029
|
log.error("HDR image decode failed; aborting render", {
|
|
3701
4030
|
imageId,
|
|
3702
4031
|
srcPath,
|
|
3703
|
-
error:
|
|
4032
|
+
error: message
|
|
3704
4033
|
});
|
|
3705
4034
|
throw new Error(
|
|
3706
|
-
`HDR image decode failed for image "${imageId}". Aborting render to avoid shipping missing HDR image layers.`
|
|
4035
|
+
`HDR image decode failed for image "${imageId}": ${message}. Aborting render to avoid shipping missing HDR image layers.`
|
|
3707
4036
|
);
|
|
3708
4037
|
}
|
|
3709
4038
|
}
|
|
3710
|
-
return out;
|
|
4039
|
+
return { buffers: out, releaseReservation };
|
|
3711
4040
|
}
|
|
3712
4041
|
|
|
3713
4042
|
// ../producer/src/services/render/stages/captureHdrFrameShared.ts
|
|
@@ -6801,6 +7130,10 @@ function dropMediaOutsideProject(input) {
|
|
|
6801
7130
|
const staysInside = ({ id, src }) => {
|
|
6802
7131
|
if (!src || isHttpUrl(src)) return true;
|
|
6803
7132
|
const path = resolveProjectRelativeSrc(src, projectDir, compiledDir);
|
|
7133
|
+
if (isPrivateUnderAssetRoots(path, roots)) {
|
|
7134
|
+
log.warn(`[Render] Media "${id}" source is missing: it is a private project file`, { src });
|
|
7135
|
+
return false;
|
|
7136
|
+
}
|
|
6804
7137
|
if (isInsideAssetRoots(path, roots)) return true;
|
|
6805
7138
|
if (input.allowOutsideProjectAssets) {
|
|
6806
7139
|
const refusal = outsideAssetRefusal(projectDir, path);
|
|
@@ -6817,6 +7150,8 @@ function dropMediaOutsideProject(input) {
|
|
|
6817
7150
|
async function notMediaReferences(path, references) {
|
|
6818
7151
|
const videos = references.filter((ref) => ref.expected === "video");
|
|
6819
7152
|
if (videos.length > 0 && await isNotMediaPayload(path)) return videos;
|
|
7153
|
+
const images = references.filter((ref) => ref.expected === "image");
|
|
7154
|
+
if (images.length > 0 && await isNotImagePayload(path)) return images;
|
|
6820
7155
|
return await playlistLeavesItsFolder(path) ? references : [];
|
|
6821
7156
|
}
|
|
6822
7157
|
async function preflightCompositionAssetMediaTypes(input) {
|
|
@@ -7013,20 +7348,13 @@ function assertSubCompositionsUsable(html, projectDir, assetRoot, visited = /* @
|
|
|
7013
7348
|
throw new EmptyCompositionError(problems);
|
|
7014
7349
|
}
|
|
7015
7350
|
}
|
|
7016
|
-
var INLINE_SCRIPT_PATTERN = /<script\b([^>]*)>([\s\S]*?)<\/script>/gi;
|
|
7017
7351
|
var COMPILER_MOUNT_BLOCK_START = "/* __HF_COMPILER_MOUNT_START__ */";
|
|
7018
7352
|
var COMPILER_MOUNT_BLOCK_END = "/* __HF_COMPILER_MOUNT_END__ */";
|
|
7019
7353
|
function stripJsComments(source) {
|
|
7020
|
-
return source.replace(/\/\/.*$/gm, "")
|
|
7354
|
+
return removeDelimitedRuns(source.replace(/\/\/.*$/gm, ""), "/*", "*/");
|
|
7021
7355
|
}
|
|
7022
7356
|
function stripCompilerMountBootstrap(source) {
|
|
7023
|
-
return source
|
|
7024
|
-
new RegExp(
|
|
7025
|
-
`${COMPILER_MOUNT_BLOCK_START.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")}[\\s\\S]*?${COMPILER_MOUNT_BLOCK_END.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")}`,
|
|
7026
|
-
"g"
|
|
7027
|
-
),
|
|
7028
|
-
""
|
|
7029
|
-
);
|
|
7357
|
+
return removeDelimitedRuns(source, COMPILER_MOUNT_BLOCK_START, COMPILER_MOUNT_BLOCK_END);
|
|
7030
7358
|
}
|
|
7031
7359
|
function runtimeRoot(document2) {
|
|
7032
7360
|
return document2.querySelector('[data-composition-id][data-root="true"]') ?? document2.querySelector("[data-composition-id]");
|
|
@@ -7051,12 +7379,9 @@ function detectRenderModeHints(html, pageMotionBlur) {
|
|
|
7051
7379
|
message: "Detected <iframe> in the composition DOM. Nested iframe animation is routed through screenshot capture mode for compatibility."
|
|
7052
7380
|
});
|
|
7053
7381
|
}
|
|
7054
|
-
|
|
7055
|
-
const scriptPattern = new RegExp(INLINE_SCRIPT_PATTERN.source, INLINE_SCRIPT_PATTERN.flags);
|
|
7056
|
-
while ((scriptMatch = scriptPattern.exec(html)) !== null) {
|
|
7057
|
-
const attrs = scriptMatch[1] || "";
|
|
7382
|
+
for (const { attrs, body } of inlineScriptBlocks(html)) {
|
|
7058
7383
|
if (/\bsrc\s*=/i.test(attrs)) continue;
|
|
7059
|
-
const content = stripJsComments(stripCompilerMountBootstrap(
|
|
7384
|
+
const content = stripJsComments(stripCompilerMountBootstrap(body));
|
|
7060
7385
|
if (!/requestAnimationFrame\s*\(/.test(content)) continue;
|
|
7061
7386
|
reasons.push({
|
|
7062
7387
|
code: "requestAnimationFrame",
|
|
@@ -7108,17 +7433,14 @@ function detectAncestorBackgroundImage(html) {
|
|
|
7108
7433
|
}
|
|
7109
7434
|
var SHADER_TRANSITION_USAGE_PATTERN = /\b(?:(?:window|globalThis)\s*\.\s*)?HyperShader\s*\.\s*init\s*\(|\b__hf\s*\.\s*transitions\s*=/;
|
|
7110
7435
|
function detectShaderTransitionUsage(html) {
|
|
7111
|
-
|
|
7112
|
-
const scriptPattern = new RegExp(INLINE_SCRIPT_PATTERN.source, INLINE_SCRIPT_PATTERN.flags);
|
|
7113
|
-
while ((scriptMatch = scriptPattern.exec(html)) !== null) {
|
|
7114
|
-
const attrs = scriptMatch[1] || "";
|
|
7436
|
+
for (const { attrs, body } of inlineScriptBlocks(html)) {
|
|
7115
7437
|
if (/\bsrc\s*=/i.test(attrs)) continue;
|
|
7116
|
-
const content = stripJsComments(stripCompilerMountBootstrap(
|
|
7438
|
+
const content = stripJsComments(stripCompilerMountBootstrap(body));
|
|
7117
7439
|
if (SHADER_TRANSITION_USAGE_PATTERN.test(content)) return true;
|
|
7118
7440
|
}
|
|
7119
7441
|
return false;
|
|
7120
7442
|
}
|
|
7121
|
-
async function resolveMediaDuration(src, mediaStart, playbackRate, baseDir, downloadDir, tagName, elementIdentity, log, urlByAbsentLocalPath, probes, assetRoot) {
|
|
7443
|
+
async function resolveMediaDuration(src, mediaStart, playbackRate, projectDir, baseDir, downloadDir, tagName, elementIdentity, log, urlByAbsentLocalPath, probes, assetRoot) {
|
|
7122
7444
|
let filePath = src;
|
|
7123
7445
|
if (isHttpUrl(src)) {
|
|
7124
7446
|
const remoteDir = join16(downloadDir, REMOTE_MEDIA_SUBDIR);
|
|
@@ -7133,7 +7455,9 @@ async function resolveMediaDuration(src, mediaStart, playbackRate, baseDir, down
|
|
|
7133
7455
|
} else {
|
|
7134
7456
|
filePath = decodedUrlPath(src);
|
|
7135
7457
|
if (!filePath.startsWith("/")) filePath = join16(baseDir, filePath);
|
|
7136
|
-
if (escapesAssetRoot(filePath, assetRoot)
|
|
7458
|
+
if (escapesAssetRoot(filePath, assetRoot) || isPrivateUnderAssetRoots(filePath, [projectDir, downloadDir])) {
|
|
7459
|
+
return { duration: null, resolvedPath: filePath };
|
|
7460
|
+
}
|
|
7137
7461
|
filePath = urlByAbsentLocalPath?.get(filePath) ?? filePath;
|
|
7138
7462
|
if (!isHttpUrl(filePath) && namesAnotherNetworkRoot(baseDir, filePath)) {
|
|
7139
7463
|
return { duration: null, resolvedPath: filePath };
|
|
@@ -7209,7 +7533,7 @@ function markInferredVariableMediaDurations(html, unresolvedMedia) {
|
|
|
7209
7533
|
}
|
|
7210
7534
|
return changed ? document2.toString() : html;
|
|
7211
7535
|
}
|
|
7212
|
-
async function compileHtmlFile(html, baseDir, downloadDir, log, urlByAbsentLocalPath, probes, assetRoot) {
|
|
7536
|
+
async function compileHtmlFile(html, projectDir, baseDir, downloadDir, log, urlByAbsentLocalPath, probes, assetRoot) {
|
|
7213
7537
|
const { html: staticCompiled, unresolved } = compileTimingAttrs(html);
|
|
7214
7538
|
const mediaUnresolved = unresolved.filter(
|
|
7215
7539
|
(el) => (el.tagName === "video" || el.tagName === "audio") && el.src
|
|
@@ -7221,6 +7545,7 @@ async function compileHtmlFile(html, baseDir, downloadDir, log, urlByAbsentLocal
|
|
|
7221
7545
|
el.src,
|
|
7222
7546
|
el.mediaStart,
|
|
7223
7547
|
el.playbackRate,
|
|
7548
|
+
projectDir,
|
|
7224
7549
|
baseDir,
|
|
7225
7550
|
downloadDir,
|
|
7226
7551
|
el.tagName,
|
|
@@ -7245,6 +7570,7 @@ async function compileHtmlFile(html, baseDir, downloadDir, log, urlByAbsentLocal
|
|
|
7245
7570
|
el.src,
|
|
7246
7571
|
el.mediaStart,
|
|
7247
7572
|
el.playbackRate,
|
|
7573
|
+
projectDir,
|
|
7248
7574
|
baseDir,
|
|
7249
7575
|
downloadDir,
|
|
7250
7576
|
el.tagName,
|
|
@@ -7269,9 +7595,9 @@ async function compileHtmlFile(html, baseDir, downloadDir, log, urlByAbsentLocal
|
|
|
7269
7595
|
if (clampList.length > 0) {
|
|
7270
7596
|
compiledHtml = clampDurations(compiledHtml, clampList);
|
|
7271
7597
|
}
|
|
7272
|
-
compiledHtml = compiledHtml
|
|
7273
|
-
compiledHtml = compiledHtml
|
|
7274
|
-
compiledHtml = compiledHtml
|
|
7598
|
+
compiledHtml = stripCrossoriginAttr(compiledHtml, "video");
|
|
7599
|
+
compiledHtml = stripCrossoriginAttr(compiledHtml, "img");
|
|
7600
|
+
compiledHtml = stripCrossoriginAttr(compiledHtml, "audio");
|
|
7275
7601
|
return { html: compiledHtml, unresolvedCompositions };
|
|
7276
7602
|
}
|
|
7277
7603
|
async function parseSubCompositions(html, projectDir, downloadDir, visited = /* @__PURE__ */ new Set(), urlByAbsentLocalPath, probes, assetRoot) {
|
|
@@ -7300,6 +7626,7 @@ async function parseSubCompositions(html, projectDir, downloadDir, visited = /*
|
|
|
7300
7626
|
workItems.map(async (item) => {
|
|
7301
7627
|
const { html: compiledSub } = await compileHtmlFile(
|
|
7302
7628
|
rewriteUnresolvableGsapToCdn(item.rawSubHtml, projectDir, item.srcPath),
|
|
7629
|
+
projectDir,
|
|
7303
7630
|
dirname7(item.filePath),
|
|
7304
7631
|
downloadDir,
|
|
7305
7632
|
void 0,
|
|
@@ -7502,7 +7829,9 @@ function inlineSubCompositions2(html, subCompositions, projectDir, variableOverr
|
|
|
7502
7829
|
flattenInnerRoot: prepareFlattenedInnerRoot,
|
|
7503
7830
|
onMissingComposition: (srcPath, reason) => {
|
|
7504
7831
|
console.warn(
|
|
7505
|
-
|
|
7832
|
+
terminalText(
|
|
7833
|
+
`[Compiler] Skipping sub-composition "${srcPath}": ${reason ?? "the file is missing or empty"}.`
|
|
7834
|
+
)
|
|
7506
7835
|
);
|
|
7507
7836
|
}
|
|
7508
7837
|
}
|
|
@@ -7705,8 +8034,9 @@ function collectExternalAssets(html, projectDir, log = defaultLogger, file = "in
|
|
|
7705
8034
|
if (isPathInside(absPath, absProjectDir)) {
|
|
7706
8035
|
return null;
|
|
7707
8036
|
}
|
|
7708
|
-
|
|
7709
|
-
|
|
8037
|
+
const onShare = namesAnotherNetworkRoot(absProjectDir, absPath);
|
|
8038
|
+
if (!onShare && !existsSync10(absPath)) return null;
|
|
8039
|
+
const refusal = onShare ? "network_share" : outsideAssetRefusal(absProjectDir, absPath);
|
|
7710
8040
|
if (refusal) {
|
|
7711
8041
|
if (!leftOut.has(trimmed)) log.warn(`[Compiler] ${leftOutOfRender(file, trimmed, refusal)}`);
|
|
7712
8042
|
leftOut.add(trimmed);
|
|
@@ -7756,9 +8086,6 @@ function collectExternalAssets(html, projectDir, log = defaultLogger, file = "in
|
|
|
7756
8086
|
};
|
|
7757
8087
|
}
|
|
7758
8088
|
var REMOTE_MEDIA_SUBDIR = "_remote_media";
|
|
7759
|
-
var REMOTE_MEDIA_TAG_RE = /<(?:video|audio)\b[^>]*?\bsrc\s*=\s*["'](https?:\/\/[^"']+)["'][^>]*>/gi;
|
|
7760
|
-
var REMOTE_SOURCE_TAG_RE = /<source\b[^>]*?\bsrc\s*=\s*["'](https?:\/\/[^"']+)["'][^>]*>/gi;
|
|
7761
|
-
var REMOTE_IMG_TAG_RE = /<img\b[^>]*?(?<![\w-])src\s*=\s*["'](https?:\/\/[^"']+)["'][^>]*>/gi;
|
|
7762
8089
|
async function downloadAndRewriteUrls(urlSet, html, remoteDir, warnLabel, logLabel, extraRewrite) {
|
|
7763
8090
|
if (urlSet.size === 0) return { html, remoteMediaAssets: /* @__PURE__ */ new Map() };
|
|
7764
8091
|
if (!existsSync10(remoteDir)) mkdirSync7(remoteDir, { recursive: true });
|
|
@@ -7797,14 +8124,7 @@ async function downloadAndRewriteUrls(urlSet, html, remoteDir, warnLabel, logLab
|
|
|
7797
8124
|
return { html: result, remoteMediaAssets };
|
|
7798
8125
|
}
|
|
7799
8126
|
async function localizeRemoteMediaSources(html, downloadDir) {
|
|
7800
|
-
const urlSet = /* @__PURE__ */ new Set();
|
|
7801
|
-
for (const tagRe of [REMOTE_MEDIA_TAG_RE, REMOTE_SOURCE_TAG_RE]) {
|
|
7802
|
-
const re = new RegExp(tagRe.source, tagRe.flags);
|
|
7803
|
-
let m;
|
|
7804
|
-
while ((m = re.exec(html)) !== null) {
|
|
7805
|
-
if (m[1]) urlSet.add(m[1]);
|
|
7806
|
-
}
|
|
7807
|
-
}
|
|
8127
|
+
const urlSet = /* @__PURE__ */ new Set([...remoteSrcUrls(html, "media"), ...remoteSrcUrls(html, "source")]);
|
|
7808
8128
|
const localized = await downloadAndRewriteUrls(
|
|
7809
8129
|
urlSet,
|
|
7810
8130
|
html,
|
|
@@ -7827,12 +8147,7 @@ function dropBindingOnLocalizedMedia(html) {
|
|
|
7827
8147
|
return changed ? document2.toString() : html;
|
|
7828
8148
|
}
|
|
7829
8149
|
async function localizeRemoteImageSources(html, downloadDir) {
|
|
7830
|
-
const urlSet =
|
|
7831
|
-
const re = new RegExp(REMOTE_IMG_TAG_RE.source, REMOTE_IMG_TAG_RE.flags);
|
|
7832
|
-
let m;
|
|
7833
|
-
while ((m = re.exec(html)) !== null) {
|
|
7834
|
-
if (m[1]) urlSet.add(m[1]);
|
|
7835
|
-
}
|
|
8150
|
+
const urlSet = new Set(remoteSrcUrls(html, "img"));
|
|
7836
8151
|
return downloadAndRewriteUrls(
|
|
7837
8152
|
urlSet,
|
|
7838
8153
|
html,
|
|
@@ -8028,7 +8343,7 @@ async function readLocalFont(absPath) {
|
|
|
8028
8343
|
return { kind: "inline", buffer: Buffer.concat(chunks, totalBytes) };
|
|
8029
8344
|
}
|
|
8030
8345
|
async function embedLocalFontFaces(html, projectDir, assetRoot, log = defaultLogger) {
|
|
8031
|
-
const { fontToDataUri: toDataUri } = await import("./deterministicFonts-
|
|
8346
|
+
const { fontToDataUri: toDataUri } = await import("./deterministicFonts-LYBMXXBW.js");
|
|
8032
8347
|
let result = html;
|
|
8033
8348
|
const embeddedPaths = /* @__PURE__ */ new Set();
|
|
8034
8349
|
const dataUriByAbsolutePath = /* @__PURE__ */ new Map();
|
|
@@ -8045,6 +8360,7 @@ async function embedLocalFontFaces(html, projectDir, assetRoot, log = defaultLog
|
|
|
8045
8360
|
embeddedPaths.add(localPath);
|
|
8046
8361
|
continue;
|
|
8047
8362
|
}
|
|
8363
|
+
if (isPrivateCompositionFile(projectDir, absPath)) continue;
|
|
8048
8364
|
const ext = absPath.match(/\.(woff2?|ttf|otf|ttc)$/i)?.[1]?.toLowerCase() ?? "ttf";
|
|
8049
8365
|
try {
|
|
8050
8366
|
if (fileBackedAbsolutePaths.has(absPath)) {
|
|
@@ -8096,16 +8412,13 @@ function rewriteUnresolvableGsapToCdn(html, projectDir, compSrcPath) {
|
|
|
8096
8412
|
const file = resolve5(projectDir, path);
|
|
8097
8413
|
return !namesAnotherNetworkRoot(projectDir, file) && existsSync10(file);
|
|
8098
8414
|
};
|
|
8099
|
-
return html
|
|
8100
|
-
|
|
8101
|
-
(
|
|
8102
|
-
|
|
8103
|
-
|
|
8104
|
-
|
|
8105
|
-
|
|
8106
|
-
return `${prefix}${gsapDist}${file}${suffix}`;
|
|
8107
|
-
}
|
|
8108
|
-
);
|
|
8415
|
+
return replaceGsapDistScripts(html, (full, prefix, src, file, suffix) => {
|
|
8416
|
+
if (/^https?:\/\//i.test(src)) return full;
|
|
8417
|
+
if (exists(compSrcPath ? rewriteAssetPath(compSrcPath, src, exists) : src)) return full;
|
|
8418
|
+
gsapDist ??= renderGsapDist();
|
|
8419
|
+
defaultLogger.debug(`[Compiler] Rewriting missing gsap script: ${src} \u2192 ${gsapDist}${file}`);
|
|
8420
|
+
return `${prefix}${gsapDist}${file}${suffix}`;
|
|
8421
|
+
});
|
|
8109
8422
|
}
|
|
8110
8423
|
function rebaseDirectEntryAssetPaths(html, projectDir, htmlPath) {
|
|
8111
8424
|
if (!isPathInside(htmlPath, projectDir)) return html;
|
|
@@ -8169,6 +8482,7 @@ async function compileForRender(projectDir, htmlPath, downloadDir, options = {})
|
|
|
8169
8482
|
const { html: compiledHtml, unresolvedCompositions } = await compileHtmlFile(
|
|
8170
8483
|
rawHtml,
|
|
8171
8484
|
projectDir,
|
|
8485
|
+
projectDir,
|
|
8172
8486
|
downloadDir,
|
|
8173
8487
|
options.log,
|
|
8174
8488
|
options.urlByAbsentLocalPath,
|
|
@@ -8192,10 +8506,7 @@ async function compileForRender(projectDir, htmlPath, downloadDir, options = {})
|
|
|
8192
8506
|
options.variables ?? {},
|
|
8193
8507
|
assetRoot
|
|
8194
8508
|
);
|
|
8195
|
-
const sanitizedHtml = inlinedHtml
|
|
8196
|
-
/(<(?:video|audio)\b[^>]*?)\s+preload\s*=\s*["']none["']/gi,
|
|
8197
|
-
"$1"
|
|
8198
|
-
);
|
|
8509
|
+
const sanitizedHtml = stripPreloadNone(inlinedHtml);
|
|
8199
8510
|
const renderModeHints = detectRenderModeHints(sanitizedHtml, options.pageMotionBlur);
|
|
8200
8511
|
const hasShaderTransitions = detectShaderTransitionUsage(sanitizedHtml);
|
|
8201
8512
|
const usesThreeDTransforms = detectThreeDTransformUsage(sanitizedHtml);
|
|
@@ -8304,7 +8615,7 @@ async function compileForRender(projectDir, htmlPath, downloadDir, options = {})
|
|
|
8304
8615
|
for (const video of videos) {
|
|
8305
8616
|
if (isHttpUrl(video.src)) continue;
|
|
8306
8617
|
const videoPath = resolve5(projectDir, video.src);
|
|
8307
|
-
if (advised.has(videoPath) || namesAnotherNetworkRoot(projectDir, videoPath) || !existsSync10(videoPath) || escapesAssetRoot(videoPath, assetRoot))
|
|
8618
|
+
if (advised.has(videoPath) || namesAnotherNetworkRoot(projectDir, videoPath) || !existsSync10(videoPath) || escapesAssetRoot(videoPath, assetRoot) || isPrivateUnderAssetRoots(videoPath, [projectDir, downloadDir]))
|
|
8308
8619
|
continue;
|
|
8309
8620
|
advised.add(videoPath);
|
|
8310
8621
|
const reencode = `ffmpeg -i "${video.src}" -c:v libx264 -r 30 -g 30 -keyint_min 30 -movflags +faststart -c:a copy output.mp4`;
|
|
@@ -9543,7 +9854,7 @@ async function runProbeStage(input) {
|
|
|
9543
9854
|
failures: failedRequests.slice(0, 10)
|
|
9544
9855
|
});
|
|
9545
9856
|
for (const line of failedRequests.slice(0, 5)) {
|
|
9546
|
-
console.warn(`[Render] Asset load failure: ${line}`);
|
|
9857
|
+
console.warn(`[Render] Asset load failure: ${terminalText(line)}`);
|
|
9547
9858
|
}
|
|
9548
9859
|
}
|
|
9549
9860
|
}
|
|
@@ -10061,7 +10372,7 @@ function isPublicHttpsUrl(url) {
|
|
|
10061
10372
|
}
|
|
10062
10373
|
}
|
|
10063
10374
|
function opensLocally(path, assetRoots) {
|
|
10064
|
-
return existsSync12(path) && (!assetRoots ||
|
|
10375
|
+
return existsSync12(path) && (!assetRoots || assetRootsRefusal(path, assetRoots) === null);
|
|
10065
10376
|
}
|
|
10066
10377
|
function localProbeSource(src, input) {
|
|
10067
10378
|
const path = resolveProjectRelativeSrc(src, input.projectDir, input.compiledDir);
|
|
@@ -11966,6 +12277,7 @@ async function runCaptureHdrStage(input) {
|
|
|
11966
12277
|
let hdrEncoderClosed = false;
|
|
11967
12278
|
let domSessionClosed = false;
|
|
11968
12279
|
let releaseHdrExtractionReservation = null;
|
|
12280
|
+
let releaseHdrImageReservation = null;
|
|
11969
12281
|
const hdrVideoFrameSources = /* @__PURE__ */ new Map();
|
|
11970
12282
|
try {
|
|
11971
12283
|
await initializeSession(domSession);
|
|
@@ -12047,12 +12359,16 @@ async function runCaptureHdrStage(input) {
|
|
|
12047
12359
|
});
|
|
12048
12360
|
releaseHdrExtractionReservation = extracted.releaseReservation;
|
|
12049
12361
|
for (const [id, source] of extracted.sources) hdrVideoFrameSources.set(id, source);
|
|
12050
|
-
const
|
|
12362
|
+
const decodedImages = decodeHdrImageBuffers({
|
|
12051
12363
|
log,
|
|
12052
12364
|
hdrImageSrcPaths,
|
|
12053
12365
|
prep,
|
|
12054
|
-
hdrDiagnostics
|
|
12366
|
+
hdrDiagnostics,
|
|
12367
|
+
width,
|
|
12368
|
+
height
|
|
12055
12369
|
});
|
|
12370
|
+
releaseHdrImageReservation = decodedImages.releaseReservation;
|
|
12371
|
+
const hdrImageBuffers = decodedImages.buffers;
|
|
12056
12372
|
assertNotAborted();
|
|
12057
12373
|
try {
|
|
12058
12374
|
const cleanedUpVideos = /* @__PURE__ */ new Set();
|
|
@@ -12205,6 +12521,8 @@ async function runCaptureHdrStage(input) {
|
|
|
12205
12521
|
hdrVideoFrameSources.clear();
|
|
12206
12522
|
releaseHdrExtractionReservation?.();
|
|
12207
12523
|
releaseHdrExtractionReservation = null;
|
|
12524
|
+
releaseHdrImageReservation?.();
|
|
12525
|
+
releaseHdrImageReservation = null;
|
|
12208
12526
|
}
|
|
12209
12527
|
return {
|
|
12210
12528
|
lastBrowserConsole,
|
|
@@ -13262,8 +13580,8 @@ function envInt(name, fallback) {
|
|
|
13262
13580
|
return Number.isInteger(parsed) ? parsed : fallback;
|
|
13263
13581
|
}
|
|
13264
13582
|
var MAX_REPORTED_ELEMENT_TAGS = 50;
|
|
13583
|
+
var MAX_SCRIPT_STYLE_STRIP_PASSES = 8;
|
|
13265
13584
|
var VFX_CAPTURE_RANK = { none: 0, self: 1, backdrop: 2 };
|
|
13266
|
-
var ROOT_COMPOSITION_TAG_RE = /<[a-zA-Z][-a-zA-Z0-9]*\b[^>]*\bdata-composition-id=["'][^"']*["'][^>]*>/i;
|
|
13267
13585
|
function bucketPxDelta(delta) {
|
|
13268
13586
|
if (delta === 0) return "0";
|
|
13269
13587
|
if (delta <= 10) return "1-10";
|
|
@@ -13271,12 +13589,12 @@ function bucketPxDelta(delta) {
|
|
|
13271
13589
|
return "51+";
|
|
13272
13590
|
}
|
|
13273
13591
|
function detectRootBodySizeMismatch(html) {
|
|
13274
|
-
const rootTag = html
|
|
13592
|
+
const rootTag = firstCompositionIdTag(html);
|
|
13275
13593
|
const dataWidth = rootTag && Number(rootTag.match(/\bdata-width=["'](\d+)["']/i)?.[1]);
|
|
13276
13594
|
const dataHeight = rootTag && Number(rootTag.match(/\bdata-height=["'](\d+)["']/i)?.[1]);
|
|
13277
13595
|
if (!dataWidth || !dataHeight) return {};
|
|
13278
|
-
const widthFirst = html
|
|
13279
|
-
const heightFirst = widthFirst ? void 0 : html
|
|
13596
|
+
const widthFirst = matchHtmlBodyCssWidthFirst(html);
|
|
13597
|
+
const heightFirst = widthFirst ? void 0 : matchHtmlBodyCssHeightFirst(html);
|
|
13280
13598
|
const [cssWidth, cssHeight] = widthFirst ? [Number(widthFirst[2]), Number(widthFirst[4])] : heightFirst ? [Number(heightFirst[4]), Number(heightFirst[2])] : [void 0, void 0];
|
|
13281
13599
|
if (!cssWidth || !cssHeight) return {};
|
|
13282
13600
|
const delta = Math.max(Math.abs(dataWidth - cssWidth), Math.abs(dataHeight - cssHeight));
|
|
@@ -13284,17 +13602,15 @@ function detectRootBodySizeMismatch(html) {
|
|
|
13284
13602
|
}
|
|
13285
13603
|
function scanElementTags(html) {
|
|
13286
13604
|
let markup = html;
|
|
13287
|
-
for (let previous = ""; markup !== previous; ) {
|
|
13605
|
+
for (let previous = "", pass = 0; markup !== previous && pass < MAX_SCRIPT_STYLE_STRIP_PASSES; pass++) {
|
|
13288
13606
|
previous = markup;
|
|
13289
|
-
markup = markup
|
|
13607
|
+
markup = removeScriptAndStyleBlocks(markup);
|
|
13290
13608
|
}
|
|
13291
13609
|
let total = 0;
|
|
13292
13610
|
const counts = /* @__PURE__ */ new Map();
|
|
13293
|
-
for (const
|
|
13294
|
-
/<\/([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
|
|
13295
|
-
)) {
|
|
13611
|
+
for (const name of countedTagNames(markup)) {
|
|
13296
13612
|
total++;
|
|
13297
|
-
const tag =
|
|
13613
|
+
const tag = name.toLowerCase();
|
|
13298
13614
|
counts.set(tag, (counts.get(tag) ?? 0) + 1);
|
|
13299
13615
|
}
|
|
13300
13616
|
const ranked = [...counts.entries()].sort((a, b) => b[1] - a[1]);
|
|
@@ -13303,12 +13619,16 @@ function scanElementTags(html) {
|
|
|
13303
13619
|
);
|
|
13304
13620
|
const otherCount = ranked.slice(MAX_REPORTED_ELEMENT_TAGS).reduce((sum2, [, count]) => sum2 + count, 0);
|
|
13305
13621
|
if (otherCount > 0) byTag.other = (byTag.other ?? 0) + otherCount;
|
|
13306
|
-
const arollVideoCount = markup
|
|
13307
|
-
const heygenVideoCount =
|
|
13622
|
+
const arollVideoCount = countTagsWithAttr(markup, "video", `\\bdata-aroll=["']true["']`);
|
|
13623
|
+
const heygenVideoCount = countTagsWithAttr(
|
|
13624
|
+
markup,
|
|
13625
|
+
"video",
|
|
13626
|
+
`\\bdata-media-source=["']heygen["']`
|
|
13627
|
+
);
|
|
13308
13628
|
const audioCount = counts.get("audio") ?? 0;
|
|
13309
13629
|
const imageCount = counts.get("img") ?? 0;
|
|
13310
13630
|
const audioGroupCount = counts.get(HF_AUDIO_GROUP_TAG) ?? 0;
|
|
13311
|
-
const subCompositionCount = markup
|
|
13631
|
+
const subCompositionCount = countCompositionSrcMounts(markup);
|
|
13312
13632
|
let colorGradingCount = 0;
|
|
13313
13633
|
let hasLut = false;
|
|
13314
13634
|
for (const m of markup.matchAll(
|
|
@@ -17926,9 +18246,12 @@ function resolveDistributedEngineConfig(config) {
|
|
|
17926
18246
|
forceScreenshotExplicitlyOptedOut: true
|
|
17927
18247
|
};
|
|
17928
18248
|
}
|
|
18249
|
+
function leavesRoot(rel) {
|
|
18250
|
+
return rel === ".." || rel.startsWith(`..${sep3}`) || isAbsolute2(rel);
|
|
18251
|
+
}
|
|
17929
18252
|
function pathInside(root, path) {
|
|
17930
18253
|
const rel = relative6(root, path);
|
|
17931
|
-
return rel === "" ||
|
|
18254
|
+
return rel === "" || leavesRoot(rel) ? null : rel;
|
|
17932
18255
|
}
|
|
17933
18256
|
function stableSourcePath(roots, srcPath) {
|
|
17934
18257
|
for (const [root, prefix] of roots) {
|
|
@@ -18022,7 +18345,8 @@ async function compilePlanComposition(projectDir, config, planDir, options) {
|
|
|
18022
18345
|
dereference: true,
|
|
18023
18346
|
filter: (src) => {
|
|
18024
18347
|
const rel = relative6(projectDir, src);
|
|
18025
|
-
if (rel === ""
|
|
18348
|
+
if (rel === "") return true;
|
|
18349
|
+
if (leavesRoot(rel)) return false;
|
|
18026
18350
|
if (job.config.allowOutsideProjectAssets) {
|
|
18027
18351
|
if (refusesOutsideLink(projectDir, src, (line) => log.warn(`[Plan] ${line}`))) return false;
|
|
18028
18352
|
} else if (!isSafePath(projectDir, src)) return false;
|
|
@@ -18131,7 +18455,7 @@ async function compilePlanComposition(projectDir, config, planDir, options) {
|
|
|
18131
18455
|
if (probeResult.fileServer) closeFileServerSafely(probeResult.fileServer, "plan", log);
|
|
18132
18456
|
if (probeResult.probeSession) {
|
|
18133
18457
|
try {
|
|
18134
|
-
const { closeCaptureSession: closeCaptureSession2 } = await import("./src-
|
|
18458
|
+
const { closeCaptureSession: closeCaptureSession2 } = await import("./src-R57EQQSI.js");
|
|
18135
18459
|
await closeCaptureSession2(probeResult.probeSession);
|
|
18136
18460
|
} catch (err) {
|
|
18137
18461
|
log.warn("[plan] probe session close failed", {
|
|
@@ -21750,7 +22074,7 @@ function startServer(options = {}) {
|
|
|
21750
22074
|
});
|
|
21751
22075
|
async function shutdown(signal) {
|
|
21752
22076
|
log.info(`Received ${signal}, shutting down`);
|
|
21753
|
-
const { drainBrowserPool } = await import("./src-
|
|
22077
|
+
const { drainBrowserPool } = await import("./src-R57EQQSI.js");
|
|
21754
22078
|
await drainBrowserPool().catch(() => {
|
|
21755
22079
|
});
|
|
21756
22080
|
const handle = await Promise.race([
|