hyperframes 0.9.55 → 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.
- package/dist/{add-2LZ5XA27.js → add-KW7OTOWF.js} +19 -19
- package/dist/{agentPromptGenerator-RSFEFNFL.js → agentPromptGenerator-NNXUWNU4.js} +11 -11
- package/dist/{animatedGifPrep-AX4MK2QD.js → animatedGifPrep-6ATQHQON.js} +12 -12
- package/dist/api.js +40 -39
- package/dist/{appHistory-T3ZLA7QN.js → appHistory-KHX53SGI.js} +6 -4
- package/dist/{asset-XYQJVHR2.js → asset-QVINGJRK.js} +2 -2
- package/dist/{assetCataloger-WTFR2Z5Q.js → assetCataloger-DENJPUBH.js} +12 -12
- package/dist/{audio-U2OIHTUI.js → audio-LB7HQYPJ.js} +21 -21
- package/dist/{auth-DXESNULL.js → auth-7AGRVI5A.js} +2 -2
- package/dist/{autoUpdate-DWT4YYU2.js → autoUpdate-ITCP2JDM.js} +2 -2
- package/dist/{avatars-EL5RBI4P.js → avatars-2K2C74EQ.js} +15 -14
- package/dist/{backgroundChecks-T2DL425O.js → backgroundChecks-UOTBCWPN.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{batchRender-CMG4SVBX.js → batchRender-Z7ESYQDS.js} +9 -7
- package/dist/{beats-HU756KUO.js → beats-TG6ZB3XH.js} +10 -10
- package/dist/{benchmark-HBNCPXH5.js → benchmark-RU5MLZHE.js} +16 -16
- package/dist/{billing-LGHM3LC7.js → billing-VB5PYYSN.js} +15 -15
- package/dist/{browser-XIFUT5OB.js → browser-VSQRY5GG.js} +9 -9
- package/dist/{bundleWithLocalizedFonts-JPPBCCVV.js → bundleWithLocalizedFonts-XDPJE355.js} +1 -1
- package/dist/{capture-ZY7G3QSM.js → capture-M4FL7MWI.js} +22 -22
- package/dist/{capture-B6DSZD2P.js → capture-TQCFWPAT.js} +4 -4
- package/dist/{captureCompositionFrame-2WRG6SNW.js → captureCompositionFrame-XF67Q6YK.js} +17 -17
- package/dist/{captureFile-LXMDM5TD.js → captureFile-F254H22J.js} +3 -3
- package/dist/{catalog-CUEOQ4PJ.js → catalog-24EGH662.js} +19 -19
- package/dist/catalog-artifact/media-vectors.json +205 -0
- package/dist/{catch-up-BAYJTXAL.js → catch-up-L23HGDLB.js} +13 -13
- package/dist/{check-KGXBQPRZ.js → check-F4HQVV2M.js} +50 -48
- package/dist/{checkAudio-6PI7DJLP.js → checkAudio-6DT3ONR7.js} +13 -13
- package/dist/{checkBrowser-4SGXUL27.js → checkBrowser-S7P4X7QV.js} +40 -40
- package/dist/{chunk-Q42L7V5T.js → chunk-2GRCTZNS.js} +1 -1
- package/dist/{chunk-FMYXLRJN.js → chunk-2ZOJCSLJ.js} +3 -3
- package/dist/{chunk-ER22SVLT.js → chunk-3GVHDPEP.js} +1 -1
- package/dist/{chunk-EXEX7TSU.js → chunk-43CQTZGB.js} +11 -12
- package/dist/{chunk-ND5SQJAB.js → chunk-4DJGUZJR.js} +2 -2
- package/dist/{chunk-J424KJXV.js → chunk-4GPKDDQZ.js} +7 -7
- package/dist/{chunk-KHEOHL5O.js → chunk-4WSJ5MUN.js} +1 -1
- package/dist/{chunk-T5S7U5C6.js → chunk-52XHPMCX.js} +1 -1
- package/dist/chunk-56T2OGYR.js +5085 -0
- package/dist/{chunk-TMLKMCZK.js → chunk-5GSCSZOS.js} +2 -2
- package/dist/{chunk-3L2POG2J.js → chunk-5IE5ZI66.js} +37 -8
- package/dist/{chunk-CHQWDBUM.js → chunk-5ZDNSYTO.js} +8 -13
- package/dist/{chunk-N7M2SNAF.js → chunk-664QGMR4.js} +2 -2
- package/dist/chunk-677JGYQL.js +91 -0
- package/dist/{chunk-PCNNMAUX.js → chunk-6LONEKJR.js} +211 -155
- package/dist/{chunk-LEIR7IDJ.js → chunk-6LU6JICP.js} +80 -1
- package/dist/{chunk-AHXRYOTC.js → chunk-6XRXUMFG.js} +1 -1
- package/dist/{chunk-W2GXQ3CR.js → chunk-7DKWEIH4.js} +9 -9
- package/dist/{chunk-QGQYMSYM.js → chunk-7E7VKASF.js} +2 -2
- package/dist/{chunk-5HJZGP54.js → chunk-7F4RAWDS.js} +2 -2
- package/dist/{chunk-OYEGPK3Q.js → chunk-7HQC5MDZ.js} +1 -1
- package/dist/{chunk-AYESPEPQ.js → chunk-7QFLMCTD.js} +6 -1
- package/dist/{chunk-4ZQG3Z3J.js → chunk-AN6KWGYI.js} +2 -2
- package/dist/{chunk-JAAIW4JR.js → chunk-ANYW22IT.js} +1 -1
- package/dist/{chunk-3USMIMBB.js → chunk-APCVZGU6.js} +395 -109
- package/dist/{chunk-NUGAYGT3.js → chunk-B6BWLFAF.js} +1 -1
- package/dist/{chunk-VCKUDUPN.js → chunk-BA33QNKK.js} +199 -15
- package/dist/{chunk-JS7UI73E.js → chunk-BMVUB2CY.js} +6 -6
- package/dist/{chunk-E7GHBT2M.js → chunk-BPYNILOZ.js} +4 -4
- package/dist/{chunk-XFSZ3IXC.js → chunk-BR7GOCQJ.js} +1 -1
- package/dist/{chunk-32IRBM3V.js → chunk-BTJYK56C.js} +3 -3
- package/dist/{chunk-KVYHRUZX.js → chunk-BUG5AOPJ.js} +3 -3
- package/dist/{chunk-FLQT2FVH.js → chunk-BW4H55SU.js} +1 -1
- package/dist/{chunk-SDFGDNWV.js → chunk-BZXW5QU7.js} +1 -1
- package/dist/{chunk-WPD7JH6F.js → chunk-CBG6MIT2.js} +2 -2
- package/dist/{chunk-O7TIBLSJ.js → chunk-CKIVYAKG.js} +80 -15
- package/dist/{chunk-YVCPUVHV.js → chunk-CKIYT34K.js} +1 -1
- package/dist/{chunk-6EG3W5AD.js → chunk-CLRHKYOK.js} +5 -5
- package/dist/{chunk-MDOMSEK2.js → chunk-CNXZCMJZ.js} +2 -2
- package/dist/{chunk-NISP57R3.js → chunk-CPSD7337.js} +51 -28
- package/dist/{chunk-MO5NTFSC.js → chunk-CUO2HF4M.js} +2 -2
- package/dist/{chunk-5LSMAWK5.js → chunk-CWIOKI2R.js} +1 -1
- package/dist/{chunk-TFVIXR6V.js → chunk-CXFW7YPT.js} +42 -48
- package/dist/{chunk-OWQWMQTY.js → chunk-CZCZ5YXT.js} +1 -1
- package/dist/{chunk-7DJCG5ED.js → chunk-D3WRRPHI.js} +5 -5
- package/dist/{chunk-LGYCWN3Q.js → chunk-DDCXMXAD.js} +11 -11
- package/dist/{chunk-K2VFTUAA.js → chunk-DUZ6Z2ZN.js} +1 -1
- package/dist/{chunk-XLQUCTC2.js → chunk-EBRN4YJH.js} +3 -3
- package/dist/{chunk-HLDUHLYO.js → chunk-EGR2ZFFP.js} +4 -4
- package/dist/{chunk-AU4ZBCR3.js → chunk-EKSS3KI7.js} +1 -1
- package/dist/{chunk-E2DHBP6C.js → chunk-FGGRBKWL.js} +1 -1
- package/dist/{chunk-QX4TZ2RK.js → chunk-GTC2STHN.js} +72 -54
- package/dist/{chunk-X4KIL5BW.js → chunk-HCQXGGVY.js} +14 -14
- package/dist/{chunk-OOWZ6M75.js → chunk-HOCV5AW6.js} +2 -2
- package/dist/{chunk-TN3WGE3L.js → chunk-HVG656G6.js} +3 -3
- package/dist/{chunk-NFLH3TQ5.js → chunk-ICDGP335.js} +13 -10
- package/dist/{chunk-NKAW4RVE.js → chunk-IDGWNOBX.js} +1 -1
- package/dist/{chunk-YU5LSWA2.js → chunk-IHX3AFTY.js} +2 -2
- package/dist/{chunk-CAYQATCT.js → chunk-IO7PRQQC.js} +1 -1
- package/dist/{chunk-6BGTTCKN.js → chunk-IRZUZ32B.js} +3 -3
- package/dist/{chunk-RBOKZ5ED.js → chunk-IT2QBRVS.js} +1 -1
- package/dist/{chunk-PXLGDX2S.js → chunk-JDXALWOM.js} +39 -24
- package/dist/{chunk-BOEEHWDX.js → chunk-JPEIUGS5.js} +1 -1
- package/dist/{chunk-4IUOWNDS.js → chunk-JQKCRTVQ.js} +2 -2
- package/dist/{chunk-VPX4GVGQ.js → chunk-KRYXZVA2.js} +3 -3
- package/dist/{chunk-TEA4ZEHB.js → chunk-L5CBCPUH.js} +7 -7
- package/dist/{chunk-JVA3SAGB.js → chunk-L5NPBGQB.js} +15 -22
- package/dist/{chunk-B5HSHXE2.js → chunk-LH5FRVAO.js} +12 -7
- package/dist/{chunk-NHNFBLBM.js → chunk-LK7F7P2X.js} +5 -2
- package/dist/{chunk-WQGQCSRY.js → chunk-LRQEIKFT.js} +4 -4
- package/dist/{chunk-2LQJHVI7.js → chunk-LRWWCTSJ.js} +2 -2
- package/dist/{chunk-VK3MQSA2.js → chunk-MK4RH5L7.js} +5 -2
- package/dist/{chunk-KD33HZPP.js → chunk-MP52CUHL.js} +2 -2
- package/dist/{chunk-ATKA5KHE.js → chunk-MPOWSPBD.js} +3 -3
- package/dist/{chunk-FLHL32SV.js → chunk-MVLAPENI.js} +36 -8
- package/dist/{chunk-2PASB3PC.js → chunk-NCJSN6SV.js} +5 -5
- package/dist/{chunk-UCLUH5AG.js → chunk-NFST2HIM.js} +2 -2
- package/dist/{chunk-NMQCIUBE.js → chunk-OXT2LXZB.js} +8 -6
- package/dist/{chunk-CRRVULYR.js → chunk-PCKKKICA.js} +15 -3
- package/dist/{chunk-TPLO6NJI.js → chunk-PGHROSLJ.js} +4 -4
- package/dist/{chunk-4S53OP2C.js → chunk-PGJYA6I3.js} +11 -11
- package/dist/{chunk-BMJGWQ5X.js → chunk-PHAZT6EB.js} +1 -1
- package/dist/{chunk-KCF6Q54R.js → chunk-PUTPYYE4.js} +1 -1
- package/dist/{chunk-NRGNEP3R.js → chunk-PVF32NRA.js} +2 -2
- package/dist/{chunk-DQHFS4AE.js → chunk-Q2TT62RQ.js} +3 -3
- package/dist/{chunk-EXXIFMUX.js → chunk-QBADK3LD.js} +13 -5
- package/dist/{chunk-2XZ76TF4.js → chunk-QJDMX53S.js} +1 -1
- package/dist/{chunk-F7B2YDPM.js → chunk-QNIID7EN.js} +6 -8
- package/dist/{chunk-5BWIBP2F.js → chunk-QTZICZWT.js} +4 -4
- package/dist/{chunk-NFNYYBD6.js → chunk-R2LP7QPB.js} +1 -1
- package/dist/{chunk-3ANC4SO2.js → chunk-RCGNYXWK.js} +14 -14
- package/dist/{chunk-FPRHOB5W.js → chunk-RFULFCYW.js} +2 -2
- package/dist/{chunk-26RTKW2U.js → chunk-RRT6URIP.js} +2 -2
- package/dist/{chunk-PLFOZIEH.js → chunk-SGWDJLFL.js} +1 -1
- package/dist/{chunk-QWBJABCA.js → chunk-T5HYPGST.js} +3 -3
- package/dist/{chunk-OM2WIZOR.js → chunk-TVZTTWU7.js} +2 -2
- package/dist/{chunk-QQLVSUO7.js → chunk-TY7EHE4Q.js} +2 -2
- package/dist/{chunk-OAV5ESA6.js → chunk-UIMXEY4U.js} +4 -4
- package/dist/{chunk-KWTTELUY.js → chunk-UVPLW55S.js} +37 -1
- package/dist/{chunk-EKZ5FGV7.js → chunk-VC4YMXUQ.js} +1 -1
- package/dist/{chunk-YY7ZJHL3.js → chunk-VCSQLM36.js} +4 -4
- package/dist/{chunk-MWTOYGIJ.js → chunk-VVXSMYXQ.js} +3 -3
- package/dist/{chunk-ZLG2E7GC.js → chunk-W4AR7UZH.js} +1 -1
- package/dist/{chunk-TULCSCC4.js → chunk-WFB4XPJR.js} +9 -9
- package/dist/{chunk-UHE44FC4.js → chunk-WGWKT7ME.js} +3 -3
- package/dist/{chunk-GKOF2RS3.js → chunk-WHX2OV4C.js} +1 -1
- package/dist/{chunk-27YDEBOP.js → chunk-WUY74LHU.js} +1 -1
- package/dist/{chunk-3WG7IC5Z.js → chunk-XD5T43S7.js} +1 -1
- package/dist/{chunk-RIAH7WEL.js → chunk-XEVAW42J.js} +9 -9
- package/dist/{chunk-NCSBBZQ5.js → chunk-XKNNZ4WR.js} +1 -1
- package/dist/{chunk-EUJSQHIL.js → chunk-XLP34AJR.js} +1 -1
- package/dist/{chunk-FOKS5HQ2.js → chunk-YDNBMPP3.js} +4 -4
- package/dist/{chunk-UHVB2TVW.js → chunk-YFWFCKKF.js} +149 -129
- package/dist/{chunk-N4CJSWTO.js → chunk-YOMFN6HH.js} +1 -1
- package/dist/{chunk-UV3I2TND.js → chunk-YQSVPHOS.js} +26 -36
- package/dist/{chunk-OTWFSHYH.js → chunk-YWH7HWDP.js} +269 -145
- package/dist/{chunk-YSN6HPD3.js → chunk-Z72VXQPN.js} +2 -2
- package/dist/{chunk-KG24ATFM.js → chunk-ZIF44RW2.js} +9 -10
- package/dist/{clean-SXRW77YG.js → clean-VB6BH3FV.js} +23 -23
- package/dist/cli.js +64 -64
- package/dist/{cloud-PUCWVAS2.js → cloud-7KRPD2K4.js} +4 -4
- package/dist/{cloud-LU4FVT33.js → cloud-A67BW6OH.js} +3 -3
- package/dist/{cloudrun-SXXONVD6.js → cloudrun-VKBARVVT.js} +11 -9
- package/dist/{compare-K65FNAEA.js → compare-SE55PMC3.js} +39 -39
- package/dist/{compiler-QISQISFV.js → compiler-WK7ABGRW.js} +5 -5
- package/dist/{component-YYCDOLP2.js → component-XT2AT3RY.js} +3 -3
- package/dist/{compositions-LCQTIYIU.js → compositions-ZZWLQNDQ.js} +20 -19
- package/dist/{contactSheet-CCHQAZLA.js → contactSheet-MXOASCDR.js} +4 -4
- package/dist/{curve-T7JAY3EM.js → curve-4RQQKZ2K.js} +15 -14
- package/dist/{cuts-E54SOAWH.js → cuts-M3QU2CBE.js} +16 -15
- package/dist/{delete-GLQNSOWH.js → delete-5ZZNPK5G.js} +5 -5
- package/dist/{deploy-SPMSEG67.js → deploy-VR5SQP4U.js} +5 -3
- package/dist/{describeProject-YPTJWL3O.js → describeProject-NU5BVVIA.js} +11 -11
- package/dist/{destroy-FMAAH4KQ.js → destroy-FFS62PAW.js} +5 -3
- package/dist/{deterministicFonts-OXGNMVJE.js → deterministicFonts-FQQNGORI.js} +4 -4
- package/dist/{diff-OT5SHVFD.js → diff-NQGTF6GR.js} +52 -47
- package/dist/{dist-T62DJJZX.js → dist-6GYOC3BU.js} +4 -4
- package/dist/{dist-RYTNYHMF.js → dist-APXZ5EN2.js} +2 -2
- package/dist/{dist-EO7BILWH.js → dist-B7IBHWIW.js} +16 -14
- package/dist/{doctor-L4SNKUBM.js → doctor-FATJGTPD.js} +15 -15
- package/dist/{energy-AXQGYZF6.js → energy-PHDK6SKL.js} +16 -15
- package/dist/{events-EBA6KHJV.js → events-25VQ2O66.js} +7 -7
- package/dist/{events-7QP5H6PW.js → events-OIWXSBZA.js} +21 -19
- package/dist/{events-5T25R4EH.js → events-RXVHG2NT.js} +2 -2
- package/dist/{execute-PTHC7Y5Q.js → execute-MKP4Z573.js} +31 -31
- package/dist/{extract-76UPXPJC.js → extract-YYNYXPOC.js} +16 -15
- package/dist/{face-YZON2N2E.js → face-JSTMFQRM.js} +17 -16
- package/dist/{feedback-KAYKPPHI.js → feedback-PY6LMZCX.js} +16 -16
- package/dist/{ffmpeg-T3KK5XKT.js → ffmpeg-KLIB55FK.js} +10 -10
- package/dist/{figma-NJ6CAJGV.js → figma-ACFOXVPM.js} +3 -3
- package/dist/fontLocalizeCli.js +16 -16
- package/dist/{frames-KNR4CSB4.js → frames-BLZCBXO7.js} +18 -17
- package/dist/{generate-ISCPAKHT.js → generate-DMVEKZEV.js} +27 -26
- package/dist/{get-X7QNC3PE.js → get-3WZDQ5YM.js} +5 -5
- package/dist/{gpuPolicy-ZXN5S3HE.js → gpuPolicy-TT6UCOLQ.js} +10 -10
- package/dist/{grade-compare-XD3IONCL.js → grade-compare-F5DJ53XH.js} +41 -39
- package/dist/{heifImagePrep-EFBHDH4Z.js → heifImagePrep-UV23RWOG.js} +13 -13
- package/dist/{help-VUFIY5X4.js → help-QMP5KFYW.js} +1 -1
- package/dist/{history-OM3MHRB2.js → history-UOZ4RDEZ.js} +17 -14
- 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/{info-G64344ST.js → info-A6KSO64E.js} +16 -16
- package/dist/{init-2N6SDLZB.js → init-OQU46K3Q.js} +46 -42
- package/dist/{ink-T5BJE4D2.js → ink-HGRKLGII.js} +16 -15
- package/dist/{inspect-6I4YSARX.js → inspect-BKENKUXF.js} +38 -38
- package/dist/{installer-JNQKFCTN.js → installer-Z6FTR7BJ.js} +8 -8
- package/dist/{keyframes-PT3H7WHD.js → keyframes-UDQGWKPW.js} +10 -10
- package/dist/{lambda-NEQXIHUM.js → lambda-SHXQFHLE.js} +19 -19
- package/dist/{layout-FRWUKOGX.js → layout-CJAVQ4D3.js} +38 -38
- package/dist/{lint-GXPONOPU.js → lint-RAPNYPWS.js} +11 -11
- package/dist/{lintProject-J4YTLKPW.js → lintProject-JZRM7UKH.js} +2 -2
- package/dist/{list-JO7WSM6Y.js → list-4BKFMJQN.js} +5 -5
- package/dist/{localPage-XDWFSE4K.js → localPage-BJW2TP77.js} +11 -11
- package/dist/{login-XMFEIEXG.js → login-S5VZAGCI.js} +4 -4
- package/dist/{look-U77ADJ4V.js → look-V2I6BGUY.js} +16 -15
- package/dist/{manager-RNMX2WTR.js → manager-OS2FYJI5.js} +11 -11
- package/dist/{manager-ZRETV4LQ.js → manager-WQWU5VJ4.js} +2 -2
- package/dist/{measure-JNJAPVVN.js → measure-RO5R2SUZ.js} +11 -11
- package/dist/{media-treatment-MFNKKPM7.js → media-treatment-CS7BVMJW.js} +16 -16
- package/dist/{media-use-ZKHL2IN2.js → media-use-W3DGCKFB.js} +3 -3
- package/dist/{models-PGO2ERAU.js → models-ZOGYW2SC.js} +15 -15
- package/dist/{motionShot-AG4LR5Q5.js → motionShot-IMRI7W7T.js} +21 -21
- package/dist/{normalize-audio-FO3JCPD3.js → normalize-audio-HXTFAZUK.js} +11 -11
- package/dist/{open-ZI6KK3GM.js → open-LJDQ37KV.js} +21 -20
- package/dist/{parakeetRunner-CBO3HRL6.js → parakeetRunner-CKMSKDH6.js} +17 -17
- package/dist/{pipeline-VWVNH5ZC.js → pipeline-ZNCYOTUH.js} +13 -13
- package/dist/{plan-UHZYW3K2.js → plan-NCFS5T6W.js} +23 -23
- package/dist/{play-IVTXE4JW.js → play-5UZDFFXJ.js} +34 -28
- package/dist/{preflight-QJNKKMPE.js → preflight-H5XYFKFF.js} +12 -12
- package/dist/{present-NB6DAJ6K.js → present-EFXUFT5Y.js} +58 -43
- package/dist/{preview-FIWAZ5PX.js → preview-RV7ALGDQ.js} +30 -29
- package/dist/{probe-VQJOUG65.js → probe-UB6DM2Q3.js} +16 -15
- package/dist/{producer-NP6X5UBL.js → producer-2PKB5CW5.js} +1 -1
- package/dist/{progress-IY6U35WH.js → progress-S36VQBQW.js} +3 -1
- package/dist/{projectConfig-UVA26HJW.js → projectConfig-EUH5DILC.js} +11 -11
- package/dist/{publication-LYPU7NTZ.js → publication-VI2AXXKR.js} +6 -6
- package/dist/{publish-MRQ2K62E.js → publish-225GB7R4.js} +21 -21
- package/dist/{remove-background-RG6DCWOW.js → remove-background-W2RLEQHJ.js} +14 -14
- package/dist/{render-CM4MCNVA.js → render-KXKBSNOQ.js} +9 -8
- package/dist/{render-XWBMMSC5.js → render-WMWCCMWI.js} +61 -49
- package/dist/{render-6B7YPN7H.js → render-Y3JKWEN4.js} +33 -33
- package/dist/{render-batch-Y3RRNDNJ.js → render-batch-GK6CDHKN.js} +9 -8
- package/dist/renderSetupWorker.js +4 -4
- package/dist/{resolver-K6VAEZVH.js → resolver-5CRZD5XB.js} +8 -8
- package/dist/{reverse-5RDRLKAP.js → reverse-YPYKKQSJ.js} +1 -1
- package/dist/{run-OQK3QU4I.js → run-FQ76QNES.js} +4 -4
- package/dist/{screenshotCapture-VDITRAK2.js → screenshotCapture-R6VE66NR.js} +13 -13
- package/dist/{service-C3UT4LYP.js → service-P3IKHZFC.js} +14 -14
- package/dist/{share-JU3IDHUV.js → share-BU4VQL3B.js} +17 -17
- package/dist/{sherpa-Z2Z4XLXV.js → sherpa-44GLXY3A.js} +16 -16
- package/dist/sherpaWorker.js +3 -1
- package/dist/{sites-QK3F4AUS.js → sites-TAX3JLNX.js} +3 -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 +33 -22
- package/dist/skills/hyperframes/references/sound.md +1 -0
- package/dist/skills/hyperframes/scripts/plugin-cli.mjs +18 -13
- package/dist/skills/hyperframes/scripts/plugin-cli.test.mjs +64 -40
- 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/lib/bgm.mjs +4 -1
- package/dist/skills/media-use/audio/scripts/lib/bgm.test.mjs +62 -1
- package/dist/skills/media-use/audio/scripts/lib/python.mjs +9 -1
- package/dist/skills/media-use/audio/scripts/lib/python.test.mjs +16 -0
- package/dist/skills/media-use/scripts/lib/bundled-sfx-provider.mjs +27 -2
- package/dist/skills/media-use/scripts/lib/bundled-sfx-provider.test.mjs +40 -1
- package/dist/skills/media-use/scripts/lib/local-media-search.mjs +52 -23
- package/dist/skills/media-use/scripts/lib/local-media-search.test.mjs +73 -4
- package/dist/skills/media-use/scripts/lib/ltx-video-provider.mjs +3 -1
- package/dist/skills/media-use/scripts/lib/ltx-video-provider.test.mjs +16 -1
- package/dist/skills/media-use/scripts/resolve.mjs +4 -14
- package/dist/skills/media-use/scripts/transcribe.mjs +19 -3
- package/dist/skills/media-use/scripts/transcribe.test.mjs +60 -0
- package/dist/{skills-24YEOJGP.js → skills-H4OZQ6VR.js} +10 -10
- package/dist/{skillsUpdateCheck-5R4JJ27G.js → skillsUpdateCheck-U3XZX7UE.js} +3 -3
- package/dist/{snapshot-T4REEKFX.js → snapshot-FJQVXBFB.js} +53 -51
- package/dist/{src-RMJVAEKT.js → src-O6BHCR4O.js} +15 -15
- package/dist/{src-EKGFNTTY.js → src-PAM5LJ6K.js} +9 -9
- package/dist/{start-E5RIH3KS.js → start-R7CYOQ5S.js} +25 -24
- package/dist/{state-7OIPR4BG.js → state-YFRV6TQH.js} +3 -1
- package/dist/{staticProjectServer-LEM5W3S5.js → staticProjectServer-4X2OSUN4.js} +25 -25
- package/dist/{status-CSHJWWOP.js → status-VN3FAN4M.js} +15 -15
- package/dist/studio/assets/{hyperframes-player-BroIQA4E.js → hyperframes-player-SRLbmEDB.js} +1 -1
- package/dist/studio/assets/{index-Be7DZynj.js → index-CgyBYe2L.js} +130 -130
- package/dist/studio/assets/{index-CiF0D62S.js → index-yuN1pZrv.js} +1 -1
- package/dist/studio/assets/{pausedVideoDecoder-RXcvblHS.js → pausedVideoDecoder-DtvSF8bV.js} +1 -1
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-COJYCMRI.js → studio-api-V3TMIWFB.js} +16 -14
- package/dist/{studioSelectionClient-W2S3H2VO.js → studioSelectionClient-S46TNAAZ.js} +2 -1
- package/dist/{studioServer-62ZTBLFM.js → studioServer-GY2ZTR2E.js} +85 -73
- package/dist/{sync-CLRYHWYE.js → sync-2V3JYCDE.js} +16 -15
- package/dist/{synthesize-Z2H32QPU.js → synthesize-TQELPMS5.js} +3 -3
- package/dist/{telemetry-DWA36DFX.js → telemetry-KMRZ3IJV.js} +7 -7
- package/dist/{templates-LXMQR35F.js → templates-EEFY4FPS.js} +125 -33
- package/dist/{timeline-LMKTDKRT.js → timeline-HSRGYZ3Q.js} +23 -23
- package/dist/{tokens-VJ765KFG.js → tokens-NYFORL53.js} +2 -2
- package/dist/{transcribe-TICRK4IY.js → transcribe-CNIQYQ52.js} +31 -30
- package/dist/{transcribe-3WASFP7Z.js → transcribe-GFFWRWK3.js} +13 -13
- package/dist/{tts-5YJV6UXX.js → tts-NPMDYSXP.js} +1 -1
- package/dist/{update-Q26QGCBW.js → update-BDMPUNNA.js} +12 -12
- package/dist/{updateCheck-7R4S46TT.js → updateCheck-43UZ2USJ.js} +2 -2
- package/dist/{upgrade-76TFHAGI.js → upgrade-Z5B57UWL.js} +5 -5
- package/dist/{urlDownloader-AE4UQI5A.js → urlDownloader-KDZ76BKM.js} +9 -9
- package/dist/{validate-BEYREWEL.js → validate-UQKZNR5K.js} +30 -30
- package/dist/{video-47AVLNWM.js → video-VR4363OG.js} +12 -12
- package/dist/{voices-5O6OAL6H.js → voices-GUWAM3TH.js} +25 -24
- package/dist/warmCheck.js +50 -48
- package/package.json +2 -1
- package/dist/chunk-XGEJPKRY.js +0 -5069
|
@@ -11,12 +11,12 @@ import {
|
|
|
11
11
|
iterateFontFamilyDeclarations,
|
|
12
12
|
normalizeSystemFontPrimaryFamilies,
|
|
13
13
|
resolveFontFamilyDeclarationFamilies
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-IHX3AFTY.js";
|
|
15
15
|
import {
|
|
16
16
|
Semaphore,
|
|
17
17
|
prepareHeifImageInputs,
|
|
18
18
|
withMediaProbeSlot
|
|
19
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
41
|
+
} from "./chunk-3GVHDPEP.js";
|
|
42
42
|
import {
|
|
43
43
|
BROWSER_GPU_NOT_SOFTWARE,
|
|
44
44
|
CaptureFailure,
|
|
@@ -205,7 +205,7 @@ import {
|
|
|
205
205
|
videoStartOnMediaTimeline,
|
|
206
206
|
writeCapturedFrame,
|
|
207
207
|
writeUrlDownloadTelemetry
|
|
208
|
-
} from "./chunk-
|
|
208
|
+
} from "./chunk-6LONEKJR.js";
|
|
209
209
|
import {
|
|
210
210
|
settleOnBrowserSafePort
|
|
211
211
|
} from "./chunk-OSKSTJNQ.js";
|
|
@@ -224,14 +224,14 @@ import {
|
|
|
224
224
|
parsesAsScript,
|
|
225
225
|
prepareFlattenedInnerRoot,
|
|
226
226
|
stripSdrPngColourTags
|
|
227
|
-
} from "./chunk-
|
|
227
|
+
} from "./chunk-L5NPBGQB.js";
|
|
228
228
|
import {
|
|
229
229
|
cannotHardLink,
|
|
230
230
|
collectScratchLeftovers,
|
|
231
231
|
createStagingDir,
|
|
232
232
|
removeScratch,
|
|
233
233
|
renameWithRetry
|
|
234
|
-
} from "./chunk-
|
|
234
|
+
} from "./chunk-PUTPYYE4.js";
|
|
235
235
|
import {
|
|
236
236
|
TRANSITIONS,
|
|
237
237
|
convertTransfer,
|
|
@@ -254,7 +254,7 @@ import {
|
|
|
254
254
|
redactTelemetryString,
|
|
255
255
|
resolveAuthoredTimingWindow,
|
|
256
256
|
toFps
|
|
257
|
-
} from "./chunk-
|
|
257
|
+
} from "./chunk-JQKCRTVQ.js";
|
|
258
258
|
import {
|
|
259
259
|
CAPTURE_CANVAS_SELECTOR,
|
|
260
260
|
COMPOSITION_SOURCE_URL,
|
|
@@ -291,19 +291,19 @@ import {
|
|
|
291
291
|
sourceTimeAt,
|
|
292
292
|
styleElementsFor,
|
|
293
293
|
timeAtSourceTime
|
|
294
|
-
} from "./chunk-
|
|
294
|
+
} from "./chunk-56T2OGYR.js";
|
|
295
295
|
import {
|
|
296
296
|
isPrivateFileUnder,
|
|
297
297
|
isSafePath,
|
|
298
298
|
isStudioPrivatePath
|
|
299
|
-
} from "./chunk-
|
|
299
|
+
} from "./chunk-UVPLW55S.js";
|
|
300
300
|
import {
|
|
301
301
|
chromeMajorCeiling
|
|
302
|
-
} from "./chunk-
|
|
302
|
+
} from "./chunk-6LU6JICP.js";
|
|
303
303
|
import {
|
|
304
304
|
lintHyperframeHtml,
|
|
305
305
|
resolveReferencedStart
|
|
306
|
-
} from "./chunk-
|
|
306
|
+
} from "./chunk-YQSVPHOS.js";
|
|
307
307
|
import {
|
|
308
308
|
isUnresolvedAssetPlaceholder,
|
|
309
309
|
namesAnotherNetworkRoot,
|
|
@@ -348,15 +348,15 @@ import {
|
|
|
348
348
|
} from "./chunk-IH2C53YV.js";
|
|
349
349
|
import {
|
|
350
350
|
CANVAS_DIMENSIONS,
|
|
351
|
-
HTML_BODY_CSS_HEIGHT_FIRST_RE,
|
|
352
|
-
HTML_BODY_CSS_WIDTH_FIRST_RE,
|
|
353
351
|
VALID_CANVAS_RESOLUTIONS,
|
|
354
352
|
checkOutputResolutionCompatibility,
|
|
355
353
|
extractMediaSrcMutations,
|
|
356
354
|
isAspectAgnosticResolutionAlias,
|
|
355
|
+
matchHtmlBodyCssHeightFirst,
|
|
356
|
+
matchHtmlBodyCssWidthFirst,
|
|
357
357
|
normalizeResolutionFlag,
|
|
358
358
|
suggestMatchingPreset
|
|
359
|
-
} from "./chunk-
|
|
359
|
+
} from "./chunk-BA33QNKK.js";
|
|
360
360
|
import {
|
|
361
361
|
parseHTML
|
|
362
362
|
} from "./chunk-GWTIFRF5.js";
|
|
@@ -373,6 +373,295 @@ import {
|
|
|
373
373
|
appendFileSync
|
|
374
374
|
} from "fs";
|
|
375
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
|
|
376
665
|
import { join as join29, dirname as dirname12, resolve as resolve6 } from "path";
|
|
377
666
|
import { totalmem as totalmem2 } from "os";
|
|
378
667
|
import { randomUUID } from "crypto";
|
|
@@ -3664,50 +3953,71 @@ function holdFirstFrameUntilStreamStarts(windows, firstTick) {
|
|
|
3664
3953
|
close: () => windows.close()
|
|
3665
3954
|
};
|
|
3666
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
|
+
}
|
|
3667
3964
|
function decodeHdrImageBuffers(args) {
|
|
3668
|
-
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
|
+
};
|
|
3669
3971
|
const out = /* @__PURE__ */ new Map();
|
|
3670
3972
|
for (const [imageId, srcPath] of hdrImageSrcPaths) {
|
|
3671
3973
|
try {
|
|
3672
3974
|
const decoded = decodePngToRgb48le(readFileSync3(srcPath));
|
|
3975
|
+
const releaseDecoded = reserveHdrExtractionBytes(decoded.data.length, budgetBytes);
|
|
3673
3976
|
const layout = prep.hdrExtractionDims.get(imageId);
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
|
|
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);
|
|
3677
3993
|
const resampled = resampleRgb48leObjectFit(
|
|
3678
3994
|
decoded.data,
|
|
3679
3995
|
decoded.width,
|
|
3680
3996
|
decoded.height,
|
|
3681
|
-
|
|
3682
|
-
|
|
3683
|
-
fit,
|
|
3997
|
+
target.width,
|
|
3998
|
+
target.height,
|
|
3999
|
+
normalizeObjectFit(fitInfo?.fit),
|
|
3684
4000
|
fitInfo?.position
|
|
3685
4001
|
);
|
|
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
|
-
});
|
|
4002
|
+
out.set(imageId, { data: resampled, width: target.width, height: target.height });
|
|
4003
|
+
} finally {
|
|
4004
|
+
releaseDecoded();
|
|
3697
4005
|
}
|
|
3698
4006
|
} catch (err) {
|
|
4007
|
+
releaseReservation();
|
|
3699
4008
|
hdrDiagnostics.imageDecodeFailures += 1;
|
|
4009
|
+
const message = err instanceof Error ? err.message : String(err);
|
|
3700
4010
|
log.error("HDR image decode failed; aborting render", {
|
|
3701
4011
|
imageId,
|
|
3702
4012
|
srcPath,
|
|
3703
|
-
error:
|
|
4013
|
+
error: message
|
|
3704
4014
|
});
|
|
3705
4015
|
throw new Error(
|
|
3706
|
-
`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.`
|
|
3707
4017
|
);
|
|
3708
4018
|
}
|
|
3709
4019
|
}
|
|
3710
|
-
return out;
|
|
4020
|
+
return { buffers: out, releaseReservation };
|
|
3711
4021
|
}
|
|
3712
4022
|
|
|
3713
4023
|
// ../producer/src/services/render/stages/captureHdrFrameShared.ts
|
|
@@ -7013,20 +7323,13 @@ function assertSubCompositionsUsable(html, projectDir, assetRoot, visited = /* @
|
|
|
7013
7323
|
throw new EmptyCompositionError(problems);
|
|
7014
7324
|
}
|
|
7015
7325
|
}
|
|
7016
|
-
var INLINE_SCRIPT_PATTERN = /<script\b([^>]*)>([\s\S]*?)<\/script>/gi;
|
|
7017
7326
|
var COMPILER_MOUNT_BLOCK_START = "/* __HF_COMPILER_MOUNT_START__ */";
|
|
7018
7327
|
var COMPILER_MOUNT_BLOCK_END = "/* __HF_COMPILER_MOUNT_END__ */";
|
|
7019
7328
|
function stripJsComments(source) {
|
|
7020
|
-
return source.replace(/\/\/.*$/gm, "")
|
|
7329
|
+
return removeDelimitedRuns(source.replace(/\/\/.*$/gm, ""), "/*", "*/");
|
|
7021
7330
|
}
|
|
7022
7331
|
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
|
-
);
|
|
7332
|
+
return removeDelimitedRuns(source, COMPILER_MOUNT_BLOCK_START, COMPILER_MOUNT_BLOCK_END);
|
|
7030
7333
|
}
|
|
7031
7334
|
function runtimeRoot(document2) {
|
|
7032
7335
|
return document2.querySelector('[data-composition-id][data-root="true"]') ?? document2.querySelector("[data-composition-id]");
|
|
@@ -7051,12 +7354,9 @@ function detectRenderModeHints(html, pageMotionBlur) {
|
|
|
7051
7354
|
message: "Detected <iframe> in the composition DOM. Nested iframe animation is routed through screenshot capture mode for compatibility."
|
|
7052
7355
|
});
|
|
7053
7356
|
}
|
|
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] || "";
|
|
7357
|
+
for (const { attrs, body } of inlineScriptBlocks(html)) {
|
|
7058
7358
|
if (/\bsrc\s*=/i.test(attrs)) continue;
|
|
7059
|
-
const content = stripJsComments(stripCompilerMountBootstrap(
|
|
7359
|
+
const content = stripJsComments(stripCompilerMountBootstrap(body));
|
|
7060
7360
|
if (!/requestAnimationFrame\s*\(/.test(content)) continue;
|
|
7061
7361
|
reasons.push({
|
|
7062
7362
|
code: "requestAnimationFrame",
|
|
@@ -7108,12 +7408,9 @@ function detectAncestorBackgroundImage(html) {
|
|
|
7108
7408
|
}
|
|
7109
7409
|
var SHADER_TRANSITION_USAGE_PATTERN = /\b(?:(?:window|globalThis)\s*\.\s*)?HyperShader\s*\.\s*init\s*\(|\b__hf\s*\.\s*transitions\s*=/;
|
|
7110
7410
|
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] || "";
|
|
7411
|
+
for (const { attrs, body } of inlineScriptBlocks(html)) {
|
|
7115
7412
|
if (/\bsrc\s*=/i.test(attrs)) continue;
|
|
7116
|
-
const content = stripJsComments(stripCompilerMountBootstrap(
|
|
7413
|
+
const content = stripJsComments(stripCompilerMountBootstrap(body));
|
|
7117
7414
|
if (SHADER_TRANSITION_USAGE_PATTERN.test(content)) return true;
|
|
7118
7415
|
}
|
|
7119
7416
|
return false;
|
|
@@ -7269,9 +7566,9 @@ async function compileHtmlFile(html, baseDir, downloadDir, log, urlByAbsentLocal
|
|
|
7269
7566
|
if (clampList.length > 0) {
|
|
7270
7567
|
compiledHtml = clampDurations(compiledHtml, clampList);
|
|
7271
7568
|
}
|
|
7272
|
-
compiledHtml = compiledHtml
|
|
7273
|
-
compiledHtml = compiledHtml
|
|
7274
|
-
compiledHtml = compiledHtml
|
|
7569
|
+
compiledHtml = stripCrossoriginAttr(compiledHtml, "video");
|
|
7570
|
+
compiledHtml = stripCrossoriginAttr(compiledHtml, "img");
|
|
7571
|
+
compiledHtml = stripCrossoriginAttr(compiledHtml, "audio");
|
|
7275
7572
|
return { html: compiledHtml, unresolvedCompositions };
|
|
7276
7573
|
}
|
|
7277
7574
|
async function parseSubCompositions(html, projectDir, downloadDir, visited = /* @__PURE__ */ new Set(), urlByAbsentLocalPath, probes, assetRoot) {
|
|
@@ -7705,8 +8002,9 @@ function collectExternalAssets(html, projectDir, log = defaultLogger, file = "in
|
|
|
7705
8002
|
if (isPathInside(absPath, absProjectDir)) {
|
|
7706
8003
|
return null;
|
|
7707
8004
|
}
|
|
7708
|
-
|
|
7709
|
-
|
|
8005
|
+
const onShare = namesAnotherNetworkRoot(absProjectDir, absPath);
|
|
8006
|
+
if (!onShare && !existsSync10(absPath)) return null;
|
|
8007
|
+
const refusal = onShare ? "network_share" : outsideAssetRefusal(absProjectDir, absPath);
|
|
7710
8008
|
if (refusal) {
|
|
7711
8009
|
if (!leftOut.has(trimmed)) log.warn(`[Compiler] ${leftOutOfRender(file, trimmed, refusal)}`);
|
|
7712
8010
|
leftOut.add(trimmed);
|
|
@@ -7756,9 +8054,6 @@ function collectExternalAssets(html, projectDir, log = defaultLogger, file = "in
|
|
|
7756
8054
|
};
|
|
7757
8055
|
}
|
|
7758
8056
|
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
8057
|
async function downloadAndRewriteUrls(urlSet, html, remoteDir, warnLabel, logLabel, extraRewrite) {
|
|
7763
8058
|
if (urlSet.size === 0) return { html, remoteMediaAssets: /* @__PURE__ */ new Map() };
|
|
7764
8059
|
if (!existsSync10(remoteDir)) mkdirSync7(remoteDir, { recursive: true });
|
|
@@ -7797,14 +8092,7 @@ async function downloadAndRewriteUrls(urlSet, html, remoteDir, warnLabel, logLab
|
|
|
7797
8092
|
return { html: result, remoteMediaAssets };
|
|
7798
8093
|
}
|
|
7799
8094
|
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
|
-
}
|
|
8095
|
+
const urlSet = /* @__PURE__ */ new Set([...remoteSrcUrls(html, "media"), ...remoteSrcUrls(html, "source")]);
|
|
7808
8096
|
const localized = await downloadAndRewriteUrls(
|
|
7809
8097
|
urlSet,
|
|
7810
8098
|
html,
|
|
@@ -7827,12 +8115,7 @@ function dropBindingOnLocalizedMedia(html) {
|
|
|
7827
8115
|
return changed ? document2.toString() : html;
|
|
7828
8116
|
}
|
|
7829
8117
|
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
|
-
}
|
|
8118
|
+
const urlSet = new Set(remoteSrcUrls(html, "img"));
|
|
7836
8119
|
return downloadAndRewriteUrls(
|
|
7837
8120
|
urlSet,
|
|
7838
8121
|
html,
|
|
@@ -8028,7 +8311,7 @@ async function readLocalFont(absPath) {
|
|
|
8028
8311
|
return { kind: "inline", buffer: Buffer.concat(chunks, totalBytes) };
|
|
8029
8312
|
}
|
|
8030
8313
|
async function embedLocalFontFaces(html, projectDir, assetRoot, log = defaultLogger) {
|
|
8031
|
-
const { fontToDataUri: toDataUri } = await import("./deterministicFonts-
|
|
8314
|
+
const { fontToDataUri: toDataUri } = await import("./deterministicFonts-FQQNGORI.js");
|
|
8032
8315
|
let result = html;
|
|
8033
8316
|
const embeddedPaths = /* @__PURE__ */ new Set();
|
|
8034
8317
|
const dataUriByAbsolutePath = /* @__PURE__ */ new Map();
|
|
@@ -8096,16 +8379,13 @@ function rewriteUnresolvableGsapToCdn(html, projectDir, compSrcPath) {
|
|
|
8096
8379
|
const file = resolve5(projectDir, path);
|
|
8097
8380
|
return !namesAnotherNetworkRoot(projectDir, file) && existsSync10(file);
|
|
8098
8381
|
};
|
|
8099
|
-
return html
|
|
8100
|
-
|
|
8101
|
-
(
|
|
8102
|
-
|
|
8103
|
-
|
|
8104
|
-
|
|
8105
|
-
|
|
8106
|
-
return `${prefix}${gsapDist}${file}${suffix}`;
|
|
8107
|
-
}
|
|
8108
|
-
);
|
|
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
|
+
});
|
|
8109
8389
|
}
|
|
8110
8390
|
function rebaseDirectEntryAssetPaths(html, projectDir, htmlPath) {
|
|
8111
8391
|
if (!isPathInside(htmlPath, projectDir)) return html;
|
|
@@ -8192,10 +8472,7 @@ async function compileForRender(projectDir, htmlPath, downloadDir, options = {})
|
|
|
8192
8472
|
options.variables ?? {},
|
|
8193
8473
|
assetRoot
|
|
8194
8474
|
);
|
|
8195
|
-
const sanitizedHtml = inlinedHtml
|
|
8196
|
-
/(<(?:video|audio)\b[^>]*?)\s+preload\s*=\s*["']none["']/gi,
|
|
8197
|
-
"$1"
|
|
8198
|
-
);
|
|
8475
|
+
const sanitizedHtml = stripPreloadNone(inlinedHtml);
|
|
8199
8476
|
const renderModeHints = detectRenderModeHints(sanitizedHtml, options.pageMotionBlur);
|
|
8200
8477
|
const hasShaderTransitions = detectShaderTransitionUsage(sanitizedHtml);
|
|
8201
8478
|
const usesThreeDTransforms = detectThreeDTransformUsage(sanitizedHtml);
|
|
@@ -11966,6 +12243,7 @@ async function runCaptureHdrStage(input) {
|
|
|
11966
12243
|
let hdrEncoderClosed = false;
|
|
11967
12244
|
let domSessionClosed = false;
|
|
11968
12245
|
let releaseHdrExtractionReservation = null;
|
|
12246
|
+
let releaseHdrImageReservation = null;
|
|
11969
12247
|
const hdrVideoFrameSources = /* @__PURE__ */ new Map();
|
|
11970
12248
|
try {
|
|
11971
12249
|
await initializeSession(domSession);
|
|
@@ -12047,12 +12325,16 @@ async function runCaptureHdrStage(input) {
|
|
|
12047
12325
|
});
|
|
12048
12326
|
releaseHdrExtractionReservation = extracted.releaseReservation;
|
|
12049
12327
|
for (const [id, source] of extracted.sources) hdrVideoFrameSources.set(id, source);
|
|
12050
|
-
const
|
|
12328
|
+
const decodedImages = decodeHdrImageBuffers({
|
|
12051
12329
|
log,
|
|
12052
12330
|
hdrImageSrcPaths,
|
|
12053
12331
|
prep,
|
|
12054
|
-
hdrDiagnostics
|
|
12332
|
+
hdrDiagnostics,
|
|
12333
|
+
width,
|
|
12334
|
+
height
|
|
12055
12335
|
});
|
|
12336
|
+
releaseHdrImageReservation = decodedImages.releaseReservation;
|
|
12337
|
+
const hdrImageBuffers = decodedImages.buffers;
|
|
12056
12338
|
assertNotAborted();
|
|
12057
12339
|
try {
|
|
12058
12340
|
const cleanedUpVideos = /* @__PURE__ */ new Set();
|
|
@@ -12205,6 +12487,8 @@ async function runCaptureHdrStage(input) {
|
|
|
12205
12487
|
hdrVideoFrameSources.clear();
|
|
12206
12488
|
releaseHdrExtractionReservation?.();
|
|
12207
12489
|
releaseHdrExtractionReservation = null;
|
|
12490
|
+
releaseHdrImageReservation?.();
|
|
12491
|
+
releaseHdrImageReservation = null;
|
|
12208
12492
|
}
|
|
12209
12493
|
return {
|
|
12210
12494
|
lastBrowserConsole,
|
|
@@ -13262,8 +13546,8 @@ function envInt(name, fallback) {
|
|
|
13262
13546
|
return Number.isInteger(parsed) ? parsed : fallback;
|
|
13263
13547
|
}
|
|
13264
13548
|
var MAX_REPORTED_ELEMENT_TAGS = 50;
|
|
13549
|
+
var MAX_SCRIPT_STYLE_STRIP_PASSES = 8;
|
|
13265
13550
|
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
13551
|
function bucketPxDelta(delta) {
|
|
13268
13552
|
if (delta === 0) return "0";
|
|
13269
13553
|
if (delta <= 10) return "1-10";
|
|
@@ -13271,12 +13555,12 @@ function bucketPxDelta(delta) {
|
|
|
13271
13555
|
return "51+";
|
|
13272
13556
|
}
|
|
13273
13557
|
function detectRootBodySizeMismatch(html) {
|
|
13274
|
-
const rootTag = html
|
|
13558
|
+
const rootTag = firstCompositionIdTag(html);
|
|
13275
13559
|
const dataWidth = rootTag && Number(rootTag.match(/\bdata-width=["'](\d+)["']/i)?.[1]);
|
|
13276
13560
|
const dataHeight = rootTag && Number(rootTag.match(/\bdata-height=["'](\d+)["']/i)?.[1]);
|
|
13277
13561
|
if (!dataWidth || !dataHeight) return {};
|
|
13278
|
-
const widthFirst = html
|
|
13279
|
-
const heightFirst = widthFirst ? void 0 : html
|
|
13562
|
+
const widthFirst = matchHtmlBodyCssWidthFirst(html);
|
|
13563
|
+
const heightFirst = widthFirst ? void 0 : matchHtmlBodyCssHeightFirst(html);
|
|
13280
13564
|
const [cssWidth, cssHeight] = widthFirst ? [Number(widthFirst[2]), Number(widthFirst[4])] : heightFirst ? [Number(heightFirst[4]), Number(heightFirst[2])] : [void 0, void 0];
|
|
13281
13565
|
if (!cssWidth || !cssHeight) return {};
|
|
13282
13566
|
const delta = Math.max(Math.abs(dataWidth - cssWidth), Math.abs(dataHeight - cssHeight));
|
|
@@ -13284,17 +13568,15 @@ function detectRootBodySizeMismatch(html) {
|
|
|
13284
13568
|
}
|
|
13285
13569
|
function scanElementTags(html) {
|
|
13286
13570
|
let markup = html;
|
|
13287
|
-
for (let previous = ""; markup !== previous; ) {
|
|
13571
|
+
for (let previous = "", pass = 0; markup !== previous && pass < MAX_SCRIPT_STYLE_STRIP_PASSES; pass++) {
|
|
13288
13572
|
previous = markup;
|
|
13289
|
-
markup = markup
|
|
13573
|
+
markup = removeScriptAndStyleBlocks(markup);
|
|
13290
13574
|
}
|
|
13291
13575
|
let total = 0;
|
|
13292
13576
|
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
|
-
)) {
|
|
13577
|
+
for (const name of countedTagNames(markup)) {
|
|
13296
13578
|
total++;
|
|
13297
|
-
const tag =
|
|
13579
|
+
const tag = name.toLowerCase();
|
|
13298
13580
|
counts.set(tag, (counts.get(tag) ?? 0) + 1);
|
|
13299
13581
|
}
|
|
13300
13582
|
const ranked = [...counts.entries()].sort((a, b) => b[1] - a[1]);
|
|
@@ -13303,12 +13585,16 @@ function scanElementTags(html) {
|
|
|
13303
13585
|
);
|
|
13304
13586
|
const otherCount = ranked.slice(MAX_REPORTED_ELEMENT_TAGS).reduce((sum2, [, count]) => sum2 + count, 0);
|
|
13305
13587
|
if (otherCount > 0) byTag.other = (byTag.other ?? 0) + otherCount;
|
|
13306
|
-
const arollVideoCount = markup
|
|
13307
|
-
const heygenVideoCount =
|
|
13588
|
+
const arollVideoCount = countTagsWithAttr(markup, "video", `\\bdata-aroll=["']true["']`);
|
|
13589
|
+
const heygenVideoCount = countTagsWithAttr(
|
|
13590
|
+
markup,
|
|
13591
|
+
"video",
|
|
13592
|
+
`\\bdata-media-source=["']heygen["']`
|
|
13593
|
+
);
|
|
13308
13594
|
const audioCount = counts.get("audio") ?? 0;
|
|
13309
13595
|
const imageCount = counts.get("img") ?? 0;
|
|
13310
13596
|
const audioGroupCount = counts.get(HF_AUDIO_GROUP_TAG) ?? 0;
|
|
13311
|
-
const subCompositionCount = markup
|
|
13597
|
+
const subCompositionCount = countCompositionSrcMounts(markup);
|
|
13312
13598
|
let colorGradingCount = 0;
|
|
13313
13599
|
let hasLut = false;
|
|
13314
13600
|
for (const m of markup.matchAll(
|
|
@@ -18131,7 +18417,7 @@ async function compilePlanComposition(projectDir, config, planDir, options) {
|
|
|
18131
18417
|
if (probeResult.fileServer) closeFileServerSafely(probeResult.fileServer, "plan", log);
|
|
18132
18418
|
if (probeResult.probeSession) {
|
|
18133
18419
|
try {
|
|
18134
|
-
const { closeCaptureSession: closeCaptureSession2 } = await import("./src-
|
|
18420
|
+
const { closeCaptureSession: closeCaptureSession2 } = await import("./src-PAM5LJ6K.js");
|
|
18135
18421
|
await closeCaptureSession2(probeResult.probeSession);
|
|
18136
18422
|
} catch (err) {
|
|
18137
18423
|
log.warn("[plan] probe session close failed", {
|
|
@@ -21750,7 +22036,7 @@ function startServer(options = {}) {
|
|
|
21750
22036
|
});
|
|
21751
22037
|
async function shutdown(signal) {
|
|
21752
22038
|
log.info(`Received ${signal}, shutting down`);
|
|
21753
|
-
const { drainBrowserPool } = await import("./src-
|
|
22039
|
+
const { drainBrowserPool } = await import("./src-PAM5LJ6K.js");
|
|
21754
22040
|
await drainBrowserPool().catch(() => {
|
|
21755
22041
|
});
|
|
21756
22042
|
const handle = await Promise.race([
|