hyperframes 0.9.54 → 0.9.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{add-OVHVUHQR.js → add-KW7OTOWF.js} +23 -23
- package/dist/{agentPromptGenerator-L2B3HMHF.js → agentPromptGenerator-NNXUWNU4.js} +14 -13
- package/dist/{animatedGifPrep-YMJH33FX.js → animatedGifPrep-6ATQHQON.js} +15 -14
- package/dist/api.d.ts +4 -2
- package/dist/api.js +46 -44
- package/dist/{appHistory-T3ZLA7QN.js → appHistory-KHX53SGI.js} +6 -4
- package/dist/{asset-ORCN4EVH.js → asset-QVINGJRK.js} +2 -2
- package/dist/{assetCataloger-X23VB66T.js → assetCataloger-DENJPUBH.js} +15 -14
- package/dist/{audio-NHNXBUI2.js → audio-LB7HQYPJ.js} +28 -27
- package/dist/{auth-DQDDXQFC.js → auth-7AGRVI5A.js} +2 -2
- package/dist/{autoUpdate-LF7BJN34.js → autoUpdate-ITCP2JDM.js} +4 -4
- package/dist/{avatars-KFUMWRVX.js → avatars-2K2C74EQ.js} +19 -17
- package/dist/{backgroundChecks-Y6RHADW6.js → backgroundChecks-UOTBCWPN.js} +5 -5
- package/dist/backgroundChecksWorker.js +5 -5
- package/dist/{batchRender-CMG4SVBX.js → batchRender-Z7ESYQDS.js} +9 -7
- package/dist/{beats-JXZBK7JI.js → beats-TG6ZB3XH.js} +14 -14
- package/dist/{benchmark-CLU6JUGY.js → benchmark-RU5MLZHE.js} +20 -20
- package/dist/{billing-5GMYFDMC.js → billing-VB5PYYSN.js} +19 -19
- package/dist/{browser-S4R6LZMF.js → browser-VSQRY5GG.js} +12 -12
- package/dist/{bundleWithLocalizedFonts-SFUFSBEU.js → bundleWithLocalizedFonts-XDPJE355.js} +1 -1
- package/dist/{capture-A3FLQIDI.js → capture-M4FL7MWI.js} +25 -24
- package/dist/{capture-NL7V23HG.js → capture-TQCFWPAT.js} +4 -4
- package/dist/{captureCompositionFrame-R7GYVNTF.js → captureCompositionFrame-XF67Q6YK.js} +20 -19
- package/dist/{captureFile-LXMDM5TD.js → captureFile-F254H22J.js} +3 -3
- package/dist/{catalog-42I7W7AU.js → catalog-24EGH662.js} +23 -23
- package/dist/catalog-artifact/media-vectors.json +205 -0
- package/dist/{catch-up-TFSQZQZD.js → catch-up-L23HGDLB.js} +16 -16
- package/dist/{check-CXRQZBLD.js → check-F4HQVV2M.js} +56 -53
- package/dist/{checkAudio-AJUH6RU6.js → checkAudio-6DT3ONR7.js} +17 -16
- package/dist/{checkBrowser-4BLSYI25.js → checkBrowser-S7P4X7QV.js} +46 -45
- package/dist/{chunk-Q42L7V5T.js → chunk-2GRCTZNS.js} +1 -1
- package/dist/{chunk-EKANCN4D.js → chunk-2ZOJCSLJ.js} +3 -3
- package/dist/{chunk-ER22SVLT.js → chunk-3GVHDPEP.js} +1 -1
- package/dist/{chunk-MPU2CRFV.js → chunk-43CQTZGB.js} +13 -14
- package/dist/{chunk-63ESYLBY.js → chunk-4DJGUZJR.js} +2 -2
- package/dist/{chunk-B6AK5P2D.js → chunk-4GPKDDQZ.js} +7 -7
- package/dist/{chunk-KYUCSRZU.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-4Q3Q4NFK.js → chunk-5GSCSZOS.js} +2 -2
- package/dist/{chunk-3L2POG2J.js → chunk-5IE5ZI66.js} +37 -8
- package/dist/{chunk-SWAG64KW.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-GA6QR6LN.js → chunk-6LONEKJR.js} +253 -158
- package/dist/{chunk-LEIR7IDJ.js → chunk-6LU6JICP.js} +80 -1
- package/dist/{chunk-SVIA7POL.js → chunk-6XRXUMFG.js} +2 -2
- package/dist/{chunk-4ZFNNWUX.js → chunk-7DKWEIH4.js} +10 -10
- package/dist/{chunk-GEUM7NDY.js → chunk-7E7VKASF.js} +2 -2
- package/dist/{chunk-5HJZGP54.js → chunk-7F4RAWDS.js} +2 -2
- package/dist/{chunk-OWS4ZWEY.js → chunk-7HQC5MDZ.js} +1 -1
- package/dist/{chunk-P4YIRU76.js → chunk-7QFFS657.js} +1 -1
- package/dist/{chunk-AYESPEPQ.js → chunk-7QFLMCTD.js} +6 -1
- package/dist/chunk-AGTBMLNM.js +42 -0
- package/dist/{chunk-BNONW4QT.js → chunk-AN6KWGYI.js} +2 -2
- package/dist/{chunk-JAAIW4JR.js → chunk-ANYW22IT.js} +1 -1
- package/dist/{chunk-JRSBBFUU.js → chunk-APCVZGU6.js} +402 -110
- package/dist/{chunk-7WRLK2K4.js → chunk-B6BWLFAF.js} +2 -2
- package/dist/{chunk-VCKUDUPN.js → chunk-BA33QNKK.js} +199 -15
- package/dist/{chunk-WPSPW7SI.js → chunk-BMVUB2CY.js} +6 -6
- package/dist/{chunk-5XLTJMCN.js → chunk-BPYNILOZ.js} +5 -5
- package/dist/{chunk-H5KHQ6KS.js → chunk-BR7GOCQJ.js} +1 -1
- package/dist/{chunk-6SRBTOGD.js → chunk-BTJYK56C.js} +3 -3
- package/dist/{chunk-EA5W2DWO.js → chunk-BUG5AOPJ.js} +3 -3
- package/dist/{chunk-7RI3U46M.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-DWDCE4PO.js → chunk-CLRHKYOK.js} +6 -6
- package/dist/{chunk-3IUBSGD2.js → chunk-CNXZCMJZ.js} +2 -2
- package/dist/{chunk-F64VFCVC.js → chunk-CPSD7337.js} +51 -28
- package/dist/{chunk-73UFPVUC.js → chunk-CUO2HF4M.js} +2 -2
- package/dist/{chunk-JSYLOPVJ.js → chunk-CWIOKI2R.js} +1 -1
- package/dist/{chunk-IB6FFEDH.js → chunk-CXFW7YPT.js} +42 -48
- package/dist/{chunk-YNF3SH26.js → chunk-CZCZ5YXT.js} +3 -2
- package/dist/{chunk-SUG2AA33.js → chunk-D3WRRPHI.js} +10 -10
- package/dist/{chunk-CWXJZB44.js → chunk-DDCXMXAD.js} +11 -11
- package/dist/{chunk-X6TDH2OM.js → chunk-DUZ6Z2ZN.js} +1 -1
- package/dist/{chunk-DXVK3NMV.js → chunk-EBRN4YJH.js} +3 -3
- package/dist/{chunk-RBBWUYMG.js → chunk-EGR2ZFFP.js} +4 -4
- package/dist/{chunk-AU4ZBCR3.js → chunk-EKSS3KI7.js} +1 -1
- package/dist/{chunk-TMV76KPG.js → chunk-EUP7ODOV.js} +1 -1
- package/dist/{chunk-E2DHBP6C.js → chunk-FGGRBKWL.js} +1 -1
- package/dist/{chunk-GIOLHGCC.js → chunk-GTC2STHN.js} +116 -27
- package/dist/{chunk-E7T5SMDK.js → chunk-GWSMTN55.js} +51 -10
- package/dist/{chunk-QGKRHG4Q.js → chunk-HCQXGGVY.js} +18 -18
- package/dist/{chunk-WAAXVZIT.js → chunk-HOCV5AW6.js} +2 -2
- package/dist/{chunk-7RGWVZOS.js → chunk-HVG656G6.js} +3 -3
- package/dist/{chunk-D4EGZYDN.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-BDWLBCTG.js → chunk-IRZUZ32B.js} +5 -5
- package/dist/{chunk-QONV77VI.js → chunk-IT2QBRVS.js} +1 -1
- package/dist/{chunk-PXLGDX2S.js → chunk-JDXALWOM.js} +39 -24
- package/dist/{chunk-E7X54BVP.js → chunk-JPEIUGS5.js} +1 -1
- package/dist/{chunk-4IUOWNDS.js → chunk-JQKCRTVQ.js} +2 -2
- package/dist/{chunk-UZJ7Y7WU.js → chunk-KRYXZVA2.js} +3 -3
- package/dist/{chunk-CIYNUD7Q.js → chunk-L27Z3PZT.js} +1 -1
- package/dist/{chunk-CBCB6GPL.js → chunk-L5CBCPUH.js} +60 -33
- package/dist/{chunk-BBDWXUO3.js → chunk-L5NPBGQB.js} +15 -22
- package/dist/{chunk-B5HSHXE2.js → chunk-LH5FRVAO.js} +12 -7
- package/dist/{chunk-YBLBI3O2.js → chunk-LK7F7P2X.js} +6 -3
- package/dist/{chunk-4WK4O5FI.js → chunk-LRQEIKFT.js} +67 -27
- package/dist/{chunk-FUPEHRNT.js → chunk-LRWWCTSJ.js} +2 -2
- package/dist/{chunk-RXJUMVCA.js → chunk-MDRLJ737.js} +5 -2
- package/dist/{chunk-VK3MQSA2.js → chunk-MK4RH5L7.js} +5 -2
- package/dist/{chunk-AROERRUJ.js → chunk-MP52CUHL.js} +2 -2
- package/dist/{chunk-ATKA5KHE.js → chunk-MPOWSPBD.js} +3 -3
- package/dist/{chunk-H7DKHNBF.js → chunk-MVLAPENI.js} +36 -8
- package/dist/{chunk-2PASB3PC.js → chunk-NCJSN6SV.js} +5 -5
- package/dist/{chunk-DVTRMGYG.js → chunk-NFST2HIM.js} +2 -2
- package/dist/{chunk-C7LNWZ7G.js → chunk-OXT2LXZB.js} +8 -6
- package/dist/{chunk-MEGSQW2I.js → chunk-OZDELWQP.js} +2 -29
- package/dist/{chunk-EB4IWBBC.js → chunk-PCKKKICA.js} +18 -4
- package/dist/{chunk-SOMX57XG.js → chunk-PGHROSLJ.js} +4 -4
- package/dist/{chunk-Q3ESTCZH.js → chunk-PGJYA6I3.js} +11 -11
- package/dist/{chunk-NKUUNSII.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-32DAUKF5.js → chunk-Q2TT62RQ.js} +4 -4
- package/dist/{chunk-EXXIFMUX.js → chunk-QBADK3LD.js} +13 -5
- package/dist/{chunk-DOLVT6CH.js → chunk-QJDMX53S.js} +1 -1
- package/dist/{chunk-F7B2YDPM.js → chunk-QNIID7EN.js} +6 -8
- package/dist/{chunk-FICKJQU2.js → chunk-QTZICZWT.js} +4 -4
- package/dist/{chunk-Y6UCMYJZ.js → chunk-R2LP7QPB.js} +1 -1
- package/dist/{chunk-YUDWGRNZ.js → chunk-RCGNYXWK.js} +14 -14
- package/dist/{chunk-CNZOKODL.js → chunk-RFULFCYW.js} +3 -3
- package/dist/{chunk-26RTKW2U.js → chunk-RRT6URIP.js} +2 -2
- package/dist/{chunk-IR2GEREV.js → chunk-SEC76O65.js} +1 -1
- package/dist/{chunk-3NXY6O4X.js → chunk-SGWDJLFL.js} +1 -1
- package/dist/{chunk-RXSPJW77.js → chunk-T5HYPGST.js} +4 -4
- package/dist/{chunk-77U3646W.js → chunk-TVZTTWU7.js} +2 -2
- package/dist/{chunk-ELA3IV4P.js → chunk-TY7EHE4Q.js} +2 -2
- package/dist/{chunk-75TCOXNT.js → chunk-UHVKV5IF.js} +1 -1
- package/dist/{chunk-SULPT5X6.js → chunk-UIMXEY4U.js} +6 -6
- package/dist/{chunk-KWTTELUY.js → chunk-UVPLW55S.js} +37 -1
- package/dist/{chunk-EKCGL4MV.js → chunk-VC4YMXUQ.js} +1 -1
- package/dist/{chunk-H2GJDFF6.js → chunk-VCSQLM36.js} +14 -9
- package/dist/{chunk-VT2K6I4A.js → chunk-VVXSMYXQ.js} +3 -3
- package/dist/{chunk-NCLBKHCX.js → chunk-W4AR7UZH.js} +2 -2
- package/dist/{chunk-TM7D3NOR.js → chunk-WFB4XPJR.js} +45 -11
- package/dist/{chunk-PAA5FUUL.js → chunk-WGWKT7ME.js} +3 -3
- package/dist/{chunk-LRXARA5O.js → chunk-WHX2OV4C.js} +1 -1
- package/dist/{chunk-O6E5HSVF.js → chunk-WUY74LHU.js} +2 -2
- package/dist/{chunk-RZJ7BHXB.js → chunk-XD5T43S7.js} +1 -1
- package/dist/{chunk-3NPZZT2K.js → chunk-XEVAW42J.js} +9 -9
- package/dist/{chunk-JHOCK3DG.js → chunk-XFF4XJZO.js} +11 -3
- package/dist/{chunk-4NG5GSTO.js → chunk-XKNNZ4WR.js} +1 -1
- package/dist/{chunk-3IHRXHJQ.js → chunk-XLP34AJR.js} +2 -2
- package/dist/{chunk-QKYGGUOQ.js → chunk-YDNBMPP3.js} +4 -4
- package/dist/{chunk-PLOVBMJF.js → chunk-YFWFCKKF.js} +291 -235
- package/dist/{chunk-EZQJFCWA.js → chunk-YOMFN6HH.js} +2 -2
- package/dist/{chunk-TRAPS5WB.js → chunk-YQSVPHOS.js} +27 -37
- package/dist/{chunk-OTWFSHYH.js → chunk-YWH7HWDP.js} +269 -145
- package/dist/chunk-YXX6CIHL.js +25 -0
- package/dist/{chunk-TW4DB2NK.js → chunk-Z72VXQPN.js} +2 -2
- package/dist/{chunk-KTLRJZFK.js → chunk-ZIF44RW2.js} +9 -10
- package/dist/{clean-JK4VQMTH.js → clean-VB6BH3FV.js} +30 -29
- package/dist/cli.js +66 -66
- package/dist/{cloud-JZ2WKHQG.js → cloud-7KRPD2K4.js} +4 -4
- package/dist/{cloud-LU4FVT33.js → cloud-A67BW6OH.js} +3 -3
- package/dist/{cloudrun-QBXSGBGX.js → cloudrun-VKBARVVT.js} +22 -9
- package/dist/{compare-YE5BTDCG.js → compare-SE55PMC3.js} +45 -44
- package/dist/{compiler-QEA5UQRG.js → compiler-WK7ABGRW.js} +6 -6
- package/dist/{component-MGT5ZJ4M.js → component-XT2AT3RY.js} +3 -3
- package/dist/{compositions-7OF6FDCH.js → compositions-ZZWLQNDQ.js} +25 -23
- package/dist/{contactSheet-CCHQAZLA.js → contactSheet-MXOASCDR.js} +4 -4
- package/dist/{curve-JQLVUDXR.js → curve-4RQQKZ2K.js} +19 -17
- package/dist/{cuts-MCJP6LMJ.js → cuts-M3QU2CBE.js} +20 -18
- package/dist/{delete-PUYEW3RJ.js → delete-5ZZNPK5G.js} +7 -7
- package/dist/{deploy-M4XGMJM5.js → deploy-VR5SQP4U.js} +9 -4
- package/dist/{describeProject-P7CBZ6NW.js → describeProject-NU5BVVIA.js} +14 -13
- package/dist/{destroy-6XJWSH2A.js → destroy-FFS62PAW.js} +9 -4
- package/dist/{deterministicFonts-OXGNMVJE.js → deterministicFonts-FQQNGORI.js} +4 -4
- package/dist/{diff-BATSO64W.js → diff-NQGTF6GR.js} +58 -52
- package/dist/{dist-T62DJJZX.js → dist-6GYOC3BU.js} +4 -4
- package/dist/{dist-G6W7GKGP.js → dist-APXZ5EN2.js} +3 -3
- package/dist/{dist-PC3EMMET.js → dist-B7IBHWIW.js} +18 -15
- package/dist/{doctor-ONTGSPYF.js → doctor-FATJGTPD.js} +22 -21
- package/dist/{energy-FNZICGW2.js → energy-PHDK6SKL.js} +20 -18
- package/dist/{events-LBHSU7C2.js → events-25VQ2O66.js} +10 -10
- package/dist/{events-6TNBAVVY.js → events-OIWXSBZA.js} +25 -22
- package/dist/{events-ENJZNXWG.js → events-RXVHG2NT.js} +5 -5
- package/dist/{execute-RXTEBACV.js → execute-MKP4Z573.js} +36 -35
- package/dist/{extract-F2CWTMLX.js → extract-YYNYXPOC.js} +20 -18
- package/dist/{face-7HL4CP32.js → face-JSTMFQRM.js} +21 -19
- package/dist/{feedback-4NDDMECH.js → feedback-PY6LMZCX.js} +19 -19
- package/dist/{ffmpeg-3LL345SO.js → ffmpeg-KLIB55FK.js} +13 -12
- package/dist/{figma-474E54NB.js → figma-ACFOXVPM.js} +3 -3
- package/dist/fontLocalizeCli.js +20 -19
- package/dist/{frames-EZWGM7QQ.js → frames-BLZCBXO7.js} +22 -20
- package/dist/{generate-I75DZWDU.js → generate-DMVEKZEV.js} +33 -31
- package/dist/{get-BHU6CBWO.js → get-3WZDQ5YM.js} +7 -7
- package/dist/{gpuPolicy-6J2STCV2.js → gpuPolicy-TT6UCOLQ.js} +13 -12
- package/dist/{grade-compare-D4TBMCBG.js → grade-compare-F5DJ53XH.js} +47 -44
- package/dist/hangReport.js +2 -2
- package/dist/{heifImagePrep-VLYGRKSS.js → heifImagePrep-UV23RWOG.js} +16 -15
- package/dist/{help-2CUXKYJ6.js → help-QMP5KFYW.js} +1 -1
- package/dist/{history-LVAVYTAN.js → history-UOZ4RDEZ.js} +21 -18
- 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-SUZOEH6L.js → info-A6KSO64E.js} +21 -20
- package/dist/{init-XI5QN3A6.js → init-OQU46K3Q.js} +52 -47
- package/dist/{ink-OVDZOCQJ.js → ink-HGRKLGII.js} +20 -18
- package/dist/{inspect-INBCGPBD.js → inspect-BKENKUXF.js} +44 -43
- package/dist/{installer-JNQKFCTN.js → installer-Z6FTR7BJ.js} +8 -8
- package/dist/{keyframes-LYZJK4RH.js → keyframes-UDQGWKPW.js} +14 -14
- package/dist/{lambda-DUDXZV6X.js → lambda-SHXQFHLE.js} +23 -22
- package/dist/{layout-JKUJW6A4.js → layout-CJAVQ4D3.js} +44 -43
- package/dist/{lint-NKDC7IJ2.js → lint-RAPNYPWS.js} +15 -15
- package/dist/{lintProject-5Z34NNS4.js → lintProject-JZRM7UKH.js} +3 -3
- package/dist/{list-5HUMDJYL.js → list-4BKFMJQN.js} +7 -7
- package/dist/{localPage-RRBRFR4Y.js → localPage-BJW2TP77.js} +14 -13
- package/dist/{login-C3SHKITR.js → login-S5VZAGCI.js} +4 -4
- package/dist/{look-3TX2U4BE.js → look-V2I6BGUY.js} +20 -18
- package/dist/{manager-MOR255LW.js → manager-OS2FYJI5.js} +14 -13
- package/dist/{manager-45VB2G5F.js → manager-WQWU5VJ4.js} +5 -5
- package/dist/{measure-ZAKBHNGY.js → measure-RO5R2SUZ.js} +11 -11
- package/dist/{media-treatment-QJ35DSED.js → media-treatment-CS7BVMJW.js} +21 -20
- package/dist/{media-use-YBKHJVXL.js → media-use-W3DGCKFB.js} +5 -5
- package/dist/{models-OQHKG7B4.js → models-ZOGYW2SC.js} +18 -17
- package/dist/{motionShot-TWQTREFH.js → motionShot-IMRI7W7T.js} +24 -23
- package/dist/{normalize-audio-PXHPUOMD.js → normalize-audio-HXTFAZUK.js} +14 -14
- package/dist/{open-TVGO5KVF.js → open-LJDQ37KV.js} +25 -24
- package/dist/{parakeetRunner-MVJMZSIG.js → parakeetRunner-CKMSKDH6.js} +21 -20
- package/dist/{pipeline-4S5UE4O4.js → pipeline-ZNCYOTUH.js} +16 -15
- package/dist/{plan-AMBZUX55.js → plan-NCFS5T6W.js} +28 -27
- package/dist/{play-KEAESNBM.js → play-5UZDFFXJ.js} +39 -32
- package/dist/{preflight-K3CM3W55.js → preflight-H5XYFKFF.js} +16 -15
- package/dist/{present-42WDBGBA.js → present-EFXUFT5Y.js} +62 -46
- package/dist/{preview-KSHBU7ZR.js → preview-RV7ALGDQ.js} +35 -33
- package/dist/{probe-TMSXGCL4.js → probe-UB6DM2Q3.js} +20 -18
- package/dist/{producer-KXRSJPJF.js → producer-2PKB5CW5.js} +1 -1
- package/dist/{progress-IY6U35WH.js → progress-S36VQBQW.js} +3 -1
- package/dist/{projectConfig-LOHNVOJG.js → projectConfig-EUH5DILC.js} +12 -12
- package/dist/{publication-LYPU7NTZ.js → publication-VI2AXXKR.js} +6 -6
- package/dist/{publish-PYZXDQJW.js → publish-225GB7R4.js} +25 -25
- package/dist/{remove-background-HVX52VOF.js → remove-background-W2RLEQHJ.js} +17 -16
- package/dist/{render-CM4MCNVA.js → render-KXKBSNOQ.js} +9 -8
- package/dist/{render-57ZYQ53S.js → render-WMWCCMWI.js} +71 -54
- package/dist/{render-5KMA5P2U.js → render-Y3JKWEN4.js} +42 -39
- package/dist/{render-batch-URBBGOVC.js → render-batch-GK6CDHKN.js} +10 -9
- package/dist/renderSetupWorker.js +8 -8
- package/dist/{resolver-UPUCU4XT.js → resolver-5CRZD5XB.js} +9 -9
- package/dist/{reverse-UYS7KVE2.js → reverse-YPYKKQSJ.js} +1 -1
- package/dist/{run-4LNEWQLG.js → run-FQ76QNES.js} +7 -7
- package/dist/{sam-EGFXZF56.js → sam-A4NXDWSU.js} +4 -1
- package/dist/{screenshotCapture-IF5AO5XM.js → screenshotCapture-R6VE66NR.js} +16 -15
- package/dist/{service-OEOC34BD.js → service-P3IKHZFC.js} +18 -17
- package/dist/{share-NS7CMVSU.js → share-BU4VQL3B.js} +21 -20
- package/dist/{sherpa-QBTXL6JA.js → sherpa-44GLXY3A.js} +20 -19
- package/dist/sherpaWorker.js +5 -3
- 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-S5U2MQAI.js → skills-H4OZQ6VR.js} +15 -14
- package/dist/{skillsUpdateCheck-UZ7CZ6VC.js → skillsUpdateCheck-U3XZX7UE.js} +5 -5
- package/dist/{snapshot-YWFWQTAV.js → snapshot-FJQVXBFB.js} +59 -56
- package/dist/{src-N2SMYJ44.js → src-O6BHCR4O.js} +18 -17
- package/dist/{src-UQ3K3UW2.js → src-PAM5LJ6K.js} +12 -11
- package/dist/{start-4IA5GG5D.js → start-R7CYOQ5S.js} +31 -29
- package/dist/{state-7OIPR4BG.js → state-YFRV6TQH.js} +3 -1
- package/dist/{staticProjectServer-5JP25RRX.js → staticProjectServer-4X2OSUN4.js} +29 -28
- package/dist/{status-ITCKXFBF.js → status-VN3FAN4M.js} +21 -21
- package/dist/studio/assets/{hyperframes-player-Oju91F6x.js → hyperframes-player-SRLbmEDB.js} +1 -1
- package/dist/studio/assets/{index-B0VEzzD2.js → index-CgyBYe2L.js} +130 -130
- package/dist/studio/assets/{index-XEm_N45R.js → index-yuN1pZrv.js} +1 -1
- package/dist/studio/assets/{pausedVideoDecoder-p6zibxVM.js → pausedVideoDecoder-DtvSF8bV.js} +1 -1
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-GENM2XVL.js → studio-api-V3TMIWFB.js} +18 -15
- package/dist/{studioSelectionClient-W2S3H2VO.js → studioSelectionClient-S46TNAAZ.js} +2 -1
- package/dist/{studioServer-SWR5Q3PD.js → studioServer-GY2ZTR2E.js} +90 -77
- package/dist/{sync-CK6TTCXO.js → sync-2V3JYCDE.js} +20 -18
- package/dist/{synthesize-EXNEBJSY.js → synthesize-TQELPMS5.js} +5 -5
- package/dist/{system-JBPJHNTG.js → system-2YOII5LZ.js} +3 -3
- package/dist/{telemetry-T4HQ6AKZ.js → telemetry-KMRZ3IJV.js} +10 -10
- package/dist/{templates-7O7NOIUC.js → templates-EEFY4FPS.js} +129 -37
- package/dist/{timeline-P2PLN53O.js → timeline-HSRGYZ3Q.js} +28 -27
- package/dist/{tokens-SPQN27VG.js → tokens-NYFORL53.js} +2 -2
- package/dist/{transcribe-YJQ3DDDI.js → transcribe-CNIQYQ52.js} +37 -35
- package/dist/{transcribe-SCZG6IM4.js → transcribe-GFFWRWK3.js} +17 -16
- package/dist/{tts-5OAB5XX6.js → tts-NPMDYSXP.js} +1 -1
- package/dist/{update-JYPZW35A.js → update-BDMPUNNA.js} +17 -16
- package/dist/{updateCheck-5M2JJTH3.js → updateCheck-43UZ2USJ.js} +4 -4
- package/dist/{upgrade-BP62FM6V.js → upgrade-Z5B57UWL.js} +7 -7
- package/dist/{urlDownloader-WOZQCE6P.js → urlDownloader-KDZ76BKM.js} +12 -11
- package/dist/{validate-NEC5QLH7.js → validate-UQKZNR5K.js} +35 -34
- package/dist/{video-XEEBISSO.js → video-VR4363OG.js} +15 -14
- package/dist/{voices-GCHA27JA.js → voices-GUWAM3TH.js} +31 -29
- package/dist/warmCheck.js +56 -53
- package/dist/warmCheckClient.js +2 -2
- package/package.json +2 -1
- package/dist/chunk-XGEJPKRY.js +0 -5069
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
splitElementInHtml,
|
|
20
20
|
unwrapElementsFromHtml,
|
|
21
21
|
wrapElementsInHtml
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-PGHROSLJ.js";
|
|
23
23
|
import {
|
|
24
24
|
DEFAULT_TARGET_LUFS,
|
|
25
25
|
absoluteLoudnessPlan,
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
requestedProjectPath,
|
|
29
29
|
requiredFfmpeg,
|
|
30
30
|
resolveLocalAudioPath
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-BPYNILOZ.js";
|
|
32
32
|
import {
|
|
33
33
|
MEDIA_LINK_ATTR,
|
|
34
34
|
relinkSplitHalves
|
|
@@ -56,11 +56,11 @@ import {
|
|
|
56
56
|
scanProjectMedia,
|
|
57
57
|
shouldPrewarmProxy,
|
|
58
58
|
waitForProxy
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-CLRHKYOK.js";
|
|
60
60
|
import {
|
|
61
61
|
probeAudioTrack,
|
|
62
62
|
probeMediaMetadata
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-W4AR7UZH.js";
|
|
64
64
|
import {
|
|
65
65
|
HistoryBusyError,
|
|
66
66
|
MAX_WINDOW_IDLE_MS,
|
|
@@ -75,7 +75,7 @@ import {
|
|
|
75
75
|
resolveProjectSignature,
|
|
76
76
|
serveWhileOpen,
|
|
77
77
|
settledFileTag
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-YWH7HWDP.js";
|
|
79
79
|
import {
|
|
80
80
|
findTimelineScript,
|
|
81
81
|
parseGsapScriptAcorn
|
|
@@ -112,7 +112,16 @@ import {
|
|
|
112
112
|
resolveWithinProject as resolveWithinProject2,
|
|
113
113
|
resolveWritableWithinProject,
|
|
114
114
|
walkDir
|
|
115
|
-
} from "./chunk-
|
|
115
|
+
} from "./chunk-3GVHDPEP.js";
|
|
116
|
+
import {
|
|
117
|
+
PREVIEW_FOR_ANOTHER_SITE_META,
|
|
118
|
+
STUDIO_PREVIEW_CAPTURE_MODE,
|
|
119
|
+
STUDIO_PREVIEW_ERRORS,
|
|
120
|
+
STUDIO_PREVIEW_ERROR_KINDS,
|
|
121
|
+
STUDIO_PREVIEW_LAZY_ATTR,
|
|
122
|
+
STUDIO_PREVIEW_MARK_META,
|
|
123
|
+
refusedPreviewMessage
|
|
124
|
+
} from "./chunk-YXX6CIHL.js";
|
|
116
125
|
import {
|
|
117
126
|
decodableAudioStream
|
|
118
127
|
} from "./chunk-D54ZDCZR.js";
|
|
@@ -121,7 +130,7 @@ import {
|
|
|
121
130
|
ensureHfIds,
|
|
122
131
|
stampHfIdsInPlace,
|
|
123
132
|
stripSdrPngColourTags
|
|
124
|
-
} from "./chunk-
|
|
133
|
+
} from "./chunk-L5NPBGQB.js";
|
|
125
134
|
import {
|
|
126
135
|
atomicTempPath,
|
|
127
136
|
catchHeldRename,
|
|
@@ -129,7 +138,7 @@ import {
|
|
|
129
138
|
createStagingDir,
|
|
130
139
|
replaceFileAtomically,
|
|
131
140
|
retryWindowsHold
|
|
132
|
-
} from "./chunk-
|
|
141
|
+
} from "./chunk-PUTPYYE4.js";
|
|
133
142
|
import {
|
|
134
143
|
GSAP_BASE_URL_META,
|
|
135
144
|
PREVIEW_PROXY_BOX_PARAM,
|
|
@@ -147,7 +156,7 @@ import {
|
|
|
147
156
|
normalizeGsapLocalRoot,
|
|
148
157
|
parseFps,
|
|
149
158
|
parsePreviewProxyBox
|
|
150
|
-
} from "./chunk-
|
|
159
|
+
} from "./chunk-JQKCRTVQ.js";
|
|
151
160
|
import {
|
|
152
161
|
AFTER_FONTS_SCRIPT_TYPE,
|
|
153
162
|
RUNTIME_BOOTSTRAP_ATTR,
|
|
@@ -162,7 +171,7 @@ import {
|
|
|
162
171
|
resolveRateSpec,
|
|
163
172
|
sourceTimeAt,
|
|
164
173
|
stripEmbeddedRuntimeScripts
|
|
165
|
-
} from "./chunk-
|
|
174
|
+
} from "./chunk-56T2OGYR.js";
|
|
166
175
|
import {
|
|
167
176
|
ProjectRootMissingError,
|
|
168
177
|
folderGone,
|
|
@@ -171,7 +180,7 @@ import {
|
|
|
171
180
|
mkdirWithinProject,
|
|
172
181
|
realpath,
|
|
173
182
|
resolveWithinProject
|
|
174
|
-
} from "./chunk-
|
|
183
|
+
} from "./chunk-UVPLW55S.js";
|
|
175
184
|
import {
|
|
176
185
|
isWithinProjectRoot,
|
|
177
186
|
readProjectFile
|
|
@@ -194,7 +203,7 @@ import {
|
|
|
194
203
|
decodeAuthoredAttribute,
|
|
195
204
|
scanHtmlOpeningTags,
|
|
196
205
|
unrollComputedTimeline
|
|
197
|
-
} from "./chunk-
|
|
206
|
+
} from "./chunk-BA33QNKK.js";
|
|
198
207
|
import {
|
|
199
208
|
parseHTML
|
|
200
209
|
} from "./chunk-GWTIFRF5.js";
|
|
@@ -207,7 +216,7 @@ import {
|
|
|
207
216
|
FFPROBE_PATH_ENV,
|
|
208
217
|
findFfBinary,
|
|
209
218
|
requireFfBinary
|
|
210
|
-
} from "./chunk-
|
|
219
|
+
} from "./chunk-GWSMTN55.js";
|
|
211
220
|
|
|
212
221
|
// ../studio-server/dist/chunk-UEEXAVOA.js
|
|
213
222
|
function findUnsafeMutationValues(value, path = "body", options = {}) {
|
|
@@ -723,17 +732,6 @@ function studioMotionRenderRuntime(manifestContent, activeCompositionPath) {
|
|
|
723
732
|
|
|
724
733
|
// ../studio-server/dist/index.js
|
|
725
734
|
import { Hono } from "hono";
|
|
726
|
-
|
|
727
|
-
// ../core/dist/studioPreviewMark.js
|
|
728
|
-
var STUDIO_PREVIEW_MARK_META = "hyperframes-studio-preview";
|
|
729
|
-
var STUDIO_PREVIEW_CAPTURE_MODE = "capture";
|
|
730
|
-
var PREVIEW_FOR_ANOTHER_SITE_META = "hyperframes-preview-for-another-site";
|
|
731
|
-
var STUDIO_PREVIEW_LAZY_ATTR = "data-hf-preview-lazy";
|
|
732
|
-
var STUDIO_PREVIEW_ERRORS = "__hfPreviewErrors";
|
|
733
|
-
var STUDIO_PREVIEW_ERROR_KINDS = "__hfPreviewErrorKinds";
|
|
734
|
-
var refusedPreviewMessage = (status) => `The preview page could not be loaded (HTTP ${status}).`;
|
|
735
|
-
|
|
736
|
-
// ../studio-server/dist/index.js
|
|
737
735
|
import { readFile } from "fs/promises";
|
|
738
736
|
import { join as join2 } from "path";
|
|
739
737
|
import { bodyLimit } from "hono/body-limit";
|
|
@@ -4072,7 +4070,7 @@ import { join as join14, relative as relative6, resolve as resolve6 } from "path
|
|
|
4072
4070
|
import { spawn as spawn2 } from "child_process";
|
|
4073
4071
|
import { closeSync as closeSync3, constants as constants2, fstatSync as fstatSync3, openSync as openSync3, readSync } from "fs";
|
|
4074
4072
|
import { streamSSE as streamSSE2 } from "hono/streaming";
|
|
4075
|
-
import { existsSync as existsSync10 } from "fs";
|
|
4073
|
+
import { existsSync as existsSync10, statSync as statSync10 } from "fs";
|
|
4076
4074
|
import { basename as basename3, dirname as dirname8, extname, join as join15, posix } from "path";
|
|
4077
4075
|
import { existsSync as existsSync11, readFileSync as readFileSync13 } from "fs";
|
|
4078
4076
|
import { homedir } from "os";
|
|
@@ -4278,15 +4276,43 @@ function promoteTemplateCompositionId(rawComp, body) {
|
|
|
4278
4276
|
root?.setAttribute("data-composition-id", templateCompositionId);
|
|
4279
4277
|
}
|
|
4280
4278
|
function tagRootCompositionFile(bodyHtml, compPath) {
|
|
4281
|
-
const
|
|
4282
|
-
if (
|
|
4283
|
-
|
|
4284
|
-
|
|
4285
|
-
|
|
4286
|
-
|
|
4279
|
+
const tag = firstCompositionIdTag(bodyHtml);
|
|
4280
|
+
if (!tag) return bodyHtml;
|
|
4281
|
+
if (bodyHtml.slice(tag.start, tag.end).includes("data-composition-file")) return bodyHtml;
|
|
4282
|
+
return bodyHtml.slice(0, tag.end) + ` data-composition-file="${escapeAttrValue(compPath)}"` + bodyHtml.slice(tag.end);
|
|
4283
|
+
}
|
|
4284
|
+
var TAG_OPENER = /<[a-zA-Z]/g;
|
|
4285
|
+
var COMPOSITION_ID_ATTR = "data-composition-id=";
|
|
4286
|
+
function firstCompositionIdTag(html) {
|
|
4287
|
+
TAG_OPENER.lastIndex = 0;
|
|
4288
|
+
for (let open2 = TAG_OPENER.exec(html); open2; open2 = TAG_OPENER.exec(html)) {
|
|
4289
|
+
const close = html.indexOf(">", open2.index);
|
|
4290
|
+
const tag = html.slice(open2.index, close === -1 ? html.length : close);
|
|
4291
|
+
if (hasBoundedAttr(tag, COMPOSITION_ID_ATTR, 2)) {
|
|
4292
|
+
return close === -1 ? null : { start: open2.index, end: close };
|
|
4293
|
+
}
|
|
4294
|
+
if (close === -1) return null;
|
|
4295
|
+
TAG_OPENER.lastIndex = close;
|
|
4296
|
+
}
|
|
4297
|
+
return null;
|
|
4298
|
+
}
|
|
4299
|
+
function hasBoundedAttr(tag, name, from) {
|
|
4300
|
+
for (let at = tag.indexOf(name, from); at !== -1; at = tag.indexOf(name, at + 1)) {
|
|
4301
|
+
if (!/\w/.test(tag[at - 1] ?? "")) return true;
|
|
4302
|
+
}
|
|
4303
|
+
return false;
|
|
4287
4304
|
}
|
|
4305
|
+
var HEAD_OPENER = /<head/gi;
|
|
4306
|
+
var HEAD_CLOSER = /<\/head>/gi;
|
|
4288
4307
|
function rootHeadContent(rootHtml) {
|
|
4289
|
-
|
|
4308
|
+
HEAD_OPENER.lastIndex = 0;
|
|
4309
|
+
const open2 = HEAD_OPENER.exec(rootHtml);
|
|
4310
|
+
if (!open2) return "";
|
|
4311
|
+
const gt = rootHtml.indexOf(">", open2.index + open2[0].length);
|
|
4312
|
+
if (gt === -1) return "";
|
|
4313
|
+
HEAD_CLOSER.lastIndex = gt + 1;
|
|
4314
|
+
const close = HEAD_CLOSER.exec(rootHtml);
|
|
4315
|
+
return close ? rootHtml.slice(gt + 1, close.index) : "";
|
|
4290
4316
|
}
|
|
4291
4317
|
function buildSubCompositionHtml(projectDir, compPath, runtimeUrl, baseHref, rawOverride, gsapBaseUrl) {
|
|
4292
4318
|
const compFile = resolveWithinProject(projectDir, compPath);
|
|
@@ -5940,7 +5966,7 @@ async function prepareGsapMutationScript(c, res, firstMutation) {
|
|
|
5940
5966
|
let block = extractGsapScriptBlock(html);
|
|
5941
5967
|
if (!block && (firstMutation.type === "add" || firstMutation.type === "add-with-keyframes")) {
|
|
5942
5968
|
const compId = html.match(/data-composition-id="([^"]+)"/)?.[1] ?? "main";
|
|
5943
|
-
const { GSAP_CDN } = await import("./dist-
|
|
5969
|
+
const { GSAP_CDN } = await import("./dist-6GYOC3BU.js");
|
|
5944
5970
|
const bootstrap = [
|
|
5945
5971
|
`<script src="${GSAP_CDN}"></script>`,
|
|
5946
5972
|
"<script>",
|
|
@@ -8571,11 +8597,112 @@ ${etag}`;
|
|
|
8571
8597
|
});
|
|
8572
8598
|
});
|
|
8573
8599
|
}
|
|
8574
|
-
|
|
8600
|
+
var ThumbnailGenerationCoordinator = class {
|
|
8601
|
+
constructor(concurrency = 1) {
|
|
8602
|
+
this.concurrency = concurrency;
|
|
8603
|
+
if (!Number.isInteger(concurrency) || concurrency < 1) {
|
|
8604
|
+
throw new RangeError("Thumbnail concurrency must be a positive integer");
|
|
8605
|
+
}
|
|
8606
|
+
}
|
|
8607
|
+
concurrency;
|
|
8608
|
+
entries = /* @__PURE__ */ new Map();
|
|
8609
|
+
queue = [];
|
|
8610
|
+
activeEntries = /* @__PURE__ */ new Set();
|
|
8611
|
+
active = 0;
|
|
8612
|
+
acquire(key, signal, work) {
|
|
8613
|
+
if (signal.aborted) return Promise.reject(new DOMException("Aborted", "AbortError"));
|
|
8614
|
+
let entry = this.entries.get(key);
|
|
8615
|
+
if (!entry) {
|
|
8616
|
+
let resolve7;
|
|
8617
|
+
let reject;
|
|
8618
|
+
const promise = new Promise((resolvePromise, rejectPromise) => {
|
|
8619
|
+
resolve7 = resolvePromise;
|
|
8620
|
+
reject = rejectPromise;
|
|
8621
|
+
});
|
|
8622
|
+
entry = {
|
|
8623
|
+
key,
|
|
8624
|
+
controller: new AbortController(),
|
|
8625
|
+
leases: 0,
|
|
8626
|
+
state: "queued",
|
|
8627
|
+
work,
|
|
8628
|
+
promise,
|
|
8629
|
+
resolve: resolve7,
|
|
8630
|
+
reject
|
|
8631
|
+
};
|
|
8632
|
+
this.entries.set(key, entry);
|
|
8633
|
+
this.queue.push(entry);
|
|
8634
|
+
}
|
|
8635
|
+
entry.leases++;
|
|
8636
|
+
this.pump();
|
|
8637
|
+
return this.lease(entry, signal);
|
|
8638
|
+
}
|
|
8639
|
+
protectedKeys() {
|
|
8640
|
+
return /* @__PURE__ */ new Set([...this.entries.keys(), ...[...this.activeEntries].map((entry) => entry.key)]);
|
|
8641
|
+
}
|
|
8642
|
+
lease(entry, signal) {
|
|
8643
|
+
return new Promise((resolve7, reject) => {
|
|
8644
|
+
let released = false;
|
|
8645
|
+
const release = () => {
|
|
8646
|
+
if (released) return;
|
|
8647
|
+
released = true;
|
|
8648
|
+
signal.removeEventListener("abort", onAbort);
|
|
8649
|
+
entry.leases--;
|
|
8650
|
+
if (entry.leases > 0 || !this.entries.has(entry.key)) return;
|
|
8651
|
+
entry.controller.abort();
|
|
8652
|
+
if (this.entries.get(entry.key) === entry) this.entries.delete(entry.key);
|
|
8653
|
+
if (entry.state === "queued") {
|
|
8654
|
+
const index = this.queue.indexOf(entry);
|
|
8655
|
+
if (index >= 0) this.queue.splice(index, 1);
|
|
8656
|
+
entry.reject(new DOMException("Aborted", "AbortError"));
|
|
8657
|
+
}
|
|
8658
|
+
};
|
|
8659
|
+
const onAbort = () => {
|
|
8660
|
+
release();
|
|
8661
|
+
reject(new DOMException("Aborted", "AbortError"));
|
|
8662
|
+
};
|
|
8663
|
+
signal.addEventListener("abort", onAbort, { once: true });
|
|
8664
|
+
entry.promise.then(
|
|
8665
|
+
(value) => {
|
|
8666
|
+
release();
|
|
8667
|
+
resolve7(value);
|
|
8668
|
+
},
|
|
8669
|
+
(reason) => {
|
|
8670
|
+
release();
|
|
8671
|
+
reject(reason);
|
|
8672
|
+
}
|
|
8673
|
+
);
|
|
8674
|
+
});
|
|
8675
|
+
}
|
|
8676
|
+
pump() {
|
|
8677
|
+
while (this.active < this.concurrency) {
|
|
8678
|
+
const entry = this.queue.shift();
|
|
8679
|
+
if (!entry) return;
|
|
8680
|
+
if (entry.leases === 0) continue;
|
|
8681
|
+
entry.state = "active";
|
|
8682
|
+
this.activeEntries.add(entry);
|
|
8683
|
+
this.active++;
|
|
8684
|
+
void this.run(entry);
|
|
8685
|
+
}
|
|
8686
|
+
}
|
|
8687
|
+
async run(entry) {
|
|
8688
|
+
try {
|
|
8689
|
+
entry.resolve(await entry.work(entry.controller.signal));
|
|
8690
|
+
} catch (error) {
|
|
8691
|
+
entry.reject(error);
|
|
8692
|
+
} finally {
|
|
8693
|
+
this.active--;
|
|
8694
|
+
this.activeEntries.delete(entry);
|
|
8695
|
+
if (this.entries.get(entry.key) === entry) this.entries.delete(entry.key);
|
|
8696
|
+
this.pump();
|
|
8697
|
+
}
|
|
8698
|
+
}
|
|
8699
|
+
};
|
|
8700
|
+
var thumbnailGenerationCoordinator = new ThumbnailGenerationCoordinator(1);
|
|
8701
|
+
async function collectProjectFindings(adapter, projectDir, signal) {
|
|
8575
8702
|
const findings = [];
|
|
8576
8703
|
const coveredFiles = /* @__PURE__ */ new Set();
|
|
8577
8704
|
if (!adapter.lintProject) return { findings, coveredFiles };
|
|
8578
|
-
const result = await adapter.lintProject(projectDir);
|
|
8705
|
+
const result = await adapter.lintProject(projectDir, signal);
|
|
8579
8706
|
for (const entry of result.results) {
|
|
8580
8707
|
coveredFiles.add(entry.file);
|
|
8581
8708
|
for (const finding of entry.result.findings) {
|
|
@@ -8600,22 +8727,34 @@ async function lintUncoveredHtml(adapter, projectDir, htmlFiles, coveredFiles) {
|
|
|
8600
8727
|
}
|
|
8601
8728
|
return findings;
|
|
8602
8729
|
}
|
|
8730
|
+
async function lintProjectDir(adapter, projectDir, signal) {
|
|
8731
|
+
const htmlFiles = walkDir(projectDir).filter(
|
|
8732
|
+
(f) => f.endsWith(".html") && !isInHiddenOrVendorDir(f)
|
|
8733
|
+
);
|
|
8734
|
+
const projectLint = await collectProjectFindings(adapter, projectDir, signal);
|
|
8735
|
+
const extraFindings = await lintUncoveredHtml(
|
|
8736
|
+
adapter,
|
|
8737
|
+
projectDir,
|
|
8738
|
+
htmlFiles,
|
|
8739
|
+
projectLint.coveredFiles
|
|
8740
|
+
);
|
|
8741
|
+
return [...projectLint.findings, ...extraFindings];
|
|
8742
|
+
}
|
|
8743
|
+
var MAX_CONCURRENT_LINT_RUNS = 2;
|
|
8603
8744
|
function registerLintRoutes(api, adapter) {
|
|
8745
|
+
const runs = new ThumbnailGenerationCoordinator(MAX_CONCURRENT_LINT_RUNS);
|
|
8604
8746
|
api.get("/projects/:id/lint", async (c) => {
|
|
8605
8747
|
const project = await adapter.resolveProject(c.req.param("id"));
|
|
8606
8748
|
if (!project) return c.json({ error: "not found" }, 404);
|
|
8607
8749
|
try {
|
|
8608
|
-
const
|
|
8609
|
-
|
|
8610
|
-
|
|
8611
|
-
|
|
8612
|
-
|
|
8613
|
-
adapter,
|
|
8614
|
-
project.dir,
|
|
8615
|
-
htmlFiles,
|
|
8616
|
-
projectLint.coveredFiles
|
|
8750
|
+
const signature = await resolveProjectSignature(adapter, project.dir);
|
|
8751
|
+
const key = JSON.stringify([project.dir, signature]);
|
|
8752
|
+
const findings = await runs.acquire(
|
|
8753
|
+
key,
|
|
8754
|
+
c.req.raw.signal,
|
|
8755
|
+
(signal) => lintProjectDir(adapter, project.dir, signal)
|
|
8617
8756
|
);
|
|
8618
|
-
return c.json({ findings
|
|
8757
|
+
return c.json({ findings });
|
|
8619
8758
|
} catch (err) {
|
|
8620
8759
|
const msg = err instanceof Error ? err.message : String(err);
|
|
8621
8760
|
return c.json({ error: `Lint failed: ${msg}` }, 500);
|
|
@@ -8911,107 +9050,6 @@ function registerRenderRoutes(api, adapter) {
|
|
|
8911
9050
|
return c.json({ renders: files.map(({ path: _path, ...render }) => render) });
|
|
8912
9051
|
});
|
|
8913
9052
|
}
|
|
8914
|
-
var ThumbnailGenerationCoordinator = class {
|
|
8915
|
-
constructor(concurrency = 1) {
|
|
8916
|
-
this.concurrency = concurrency;
|
|
8917
|
-
if (!Number.isInteger(concurrency) || concurrency < 1) {
|
|
8918
|
-
throw new RangeError("Thumbnail concurrency must be a positive integer");
|
|
8919
|
-
}
|
|
8920
|
-
}
|
|
8921
|
-
concurrency;
|
|
8922
|
-
entries = /* @__PURE__ */ new Map();
|
|
8923
|
-
queue = [];
|
|
8924
|
-
activeEntries = /* @__PURE__ */ new Set();
|
|
8925
|
-
active = 0;
|
|
8926
|
-
acquire(key, signal, work) {
|
|
8927
|
-
if (signal.aborted) return Promise.reject(new DOMException("Aborted", "AbortError"));
|
|
8928
|
-
let entry = this.entries.get(key);
|
|
8929
|
-
if (!entry) {
|
|
8930
|
-
let resolve7;
|
|
8931
|
-
let reject;
|
|
8932
|
-
const promise = new Promise((resolvePromise, rejectPromise) => {
|
|
8933
|
-
resolve7 = resolvePromise;
|
|
8934
|
-
reject = rejectPromise;
|
|
8935
|
-
});
|
|
8936
|
-
entry = {
|
|
8937
|
-
key,
|
|
8938
|
-
controller: new AbortController(),
|
|
8939
|
-
leases: 0,
|
|
8940
|
-
state: "queued",
|
|
8941
|
-
work,
|
|
8942
|
-
promise,
|
|
8943
|
-
resolve: resolve7,
|
|
8944
|
-
reject
|
|
8945
|
-
};
|
|
8946
|
-
this.entries.set(key, entry);
|
|
8947
|
-
this.queue.push(entry);
|
|
8948
|
-
}
|
|
8949
|
-
entry.leases++;
|
|
8950
|
-
this.pump();
|
|
8951
|
-
return this.lease(entry, signal);
|
|
8952
|
-
}
|
|
8953
|
-
protectedKeys() {
|
|
8954
|
-
return /* @__PURE__ */ new Set([...this.entries.keys(), ...[...this.activeEntries].map((entry) => entry.key)]);
|
|
8955
|
-
}
|
|
8956
|
-
lease(entry, signal) {
|
|
8957
|
-
return new Promise((resolve7, reject) => {
|
|
8958
|
-
let released = false;
|
|
8959
|
-
const release = () => {
|
|
8960
|
-
if (released) return;
|
|
8961
|
-
released = true;
|
|
8962
|
-
signal.removeEventListener("abort", onAbort);
|
|
8963
|
-
entry.leases--;
|
|
8964
|
-
if (entry.leases > 0 || !this.entries.has(entry.key)) return;
|
|
8965
|
-
entry.controller.abort();
|
|
8966
|
-
if (this.entries.get(entry.key) === entry) this.entries.delete(entry.key);
|
|
8967
|
-
if (entry.state === "queued") {
|
|
8968
|
-
const index = this.queue.indexOf(entry);
|
|
8969
|
-
if (index >= 0) this.queue.splice(index, 1);
|
|
8970
|
-
entry.reject(new DOMException("Aborted", "AbortError"));
|
|
8971
|
-
}
|
|
8972
|
-
};
|
|
8973
|
-
const onAbort = () => {
|
|
8974
|
-
release();
|
|
8975
|
-
reject(new DOMException("Aborted", "AbortError"));
|
|
8976
|
-
};
|
|
8977
|
-
signal.addEventListener("abort", onAbort, { once: true });
|
|
8978
|
-
entry.promise.then(
|
|
8979
|
-
(value) => {
|
|
8980
|
-
release();
|
|
8981
|
-
resolve7(value);
|
|
8982
|
-
},
|
|
8983
|
-
(reason) => {
|
|
8984
|
-
release();
|
|
8985
|
-
reject(reason);
|
|
8986
|
-
}
|
|
8987
|
-
);
|
|
8988
|
-
});
|
|
8989
|
-
}
|
|
8990
|
-
pump() {
|
|
8991
|
-
while (this.active < this.concurrency) {
|
|
8992
|
-
const entry = this.queue.shift();
|
|
8993
|
-
if (!entry) return;
|
|
8994
|
-
if (entry.leases === 0) continue;
|
|
8995
|
-
entry.state = "active";
|
|
8996
|
-
this.activeEntries.add(entry);
|
|
8997
|
-
this.active++;
|
|
8998
|
-
void this.run(entry);
|
|
8999
|
-
}
|
|
9000
|
-
}
|
|
9001
|
-
async run(entry) {
|
|
9002
|
-
try {
|
|
9003
|
-
entry.resolve(await entry.work(entry.controller.signal));
|
|
9004
|
-
} catch (error) {
|
|
9005
|
-
entry.reject(error);
|
|
9006
|
-
} finally {
|
|
9007
|
-
this.active--;
|
|
9008
|
-
this.activeEntries.delete(entry);
|
|
9009
|
-
if (this.entries.get(entry.key) === entry) this.entries.delete(entry.key);
|
|
9010
|
-
this.pump();
|
|
9011
|
-
}
|
|
9012
|
-
}
|
|
9013
|
-
};
|
|
9014
|
-
var thumbnailGenerationCoordinator = new ThumbnailGenerationCoordinator(1);
|
|
9015
9053
|
var MAX_SOURCE_BYTES = 64 * 1024 * 1024;
|
|
9016
9054
|
var MAX_CACHE_BYTES = 8 * 1024 * 1024;
|
|
9017
9055
|
function retryingSharpLoader(adapter) {
|
|
@@ -10138,6 +10176,7 @@ var IMAGE_EXTENSIONS = /* @__PURE__ */ new Set([".jpg", ".jpeg", ".png", ".webp"
|
|
|
10138
10176
|
var VIDEO_OUTPUT_EXTENSIONS = /* @__PURE__ */ new Set([".webm", ".mov"]);
|
|
10139
10177
|
var QUALITIES = /* @__PURE__ */ new Set(["fast", "balanced", "best"]);
|
|
10140
10178
|
var DEVICES = /* @__PURE__ */ new Set(["auto", "cpu", "coreml", "cuda"]);
|
|
10179
|
+
var MAX_CONCURRENT_METADATA_PROBES = 4;
|
|
10141
10180
|
function isVideoPath(path) {
|
|
10142
10181
|
return VIDEO_EXTENSIONS.has(extname(path).toLowerCase());
|
|
10143
10182
|
}
|
|
@@ -10197,6 +10236,7 @@ function registerMediaRoutes(api, adapter, options = {}) {
|
|
|
10197
10236
|
const mediaJobs = /* @__PURE__ */ new Map();
|
|
10198
10237
|
const TTL_MS = 3e5;
|
|
10199
10238
|
const readMediaMetadata = options.probeMediaMetadata ?? probeMediaMetadata;
|
|
10239
|
+
const probes = new ThumbnailGenerationCoordinator(MAX_CONCURRENT_METADATA_PROBES);
|
|
10200
10240
|
function cleanupFinishedJobs() {
|
|
10201
10241
|
forgetJobsFinishedLongerThan(
|
|
10202
10242
|
TTL_MS,
|
|
@@ -10215,8 +10255,11 @@ function registerMediaRoutes(api, adapter, options = {}) {
|
|
|
10215
10255
|
}
|
|
10216
10256
|
const filePath = resolveWithinProject2(project.dir, assetPath);
|
|
10217
10257
|
if (!filePath) return c.json({ error: "forbidden" }, 403);
|
|
10218
|
-
|
|
10219
|
-
return c.json({
|
|
10258
|
+
const stat2 = statSync10(filePath, { throwIfNoEntry: false });
|
|
10259
|
+
if (!stat2) return c.json({ error: "media not found" }, 404);
|
|
10260
|
+
const key = JSON.stringify([filePath, stat2.dev, stat2.ino, stat2.size, stat2.mtimeMs]);
|
|
10261
|
+
const metadata = await probes.acquire(key, c.req.raw.signal, () => readMediaMetadata(filePath));
|
|
10262
|
+
return c.json({ path: assetPath, metadata });
|
|
10220
10263
|
});
|
|
10221
10264
|
api.post(
|
|
10222
10265
|
"/projects/:id/media/remove-background",
|
|
@@ -10558,8 +10601,91 @@ function previewErrorPage(status) {
|
|
|
10558
10601
|
const message = refusedPreviewMessage(status);
|
|
10559
10602
|
return `<!doctype html><meta charset="utf-8"><script>window.${STUDIO_PREVIEW_ERRORS}=[${JSON.stringify(message)}]</script><p>${message}</p>`;
|
|
10560
10603
|
}
|
|
10604
|
+
var GRANTED_TYPES = /* @__PURE__ */ new Set(["Font", "Script", "Stylesheet", "Image", "Media", "Fetch", "XHR"]);
|
|
10605
|
+
var PROXY_PARAM = "hf-proxy";
|
|
10606
|
+
var VIDEO_FILE = /\.(mp4|webm|mov|mkv|avi|m4v|mxf|mts|m2ts)$/i;
|
|
10607
|
+
var isProxyWait = (url) => url.searchParams.has(PROXY_PARAM) && VIDEO_FILE.test(url.pathname);
|
|
10608
|
+
var PROXY_WAIT_ALLOWED_HEADERS = `Range, ${PREVIEW_PROXY_PRIORITY_HEADER}`;
|
|
10609
|
+
var PREVIEW_EXPOSED_HEADERS = `Retry-After, ${PREVIEW_PROXY_PROGRESS_HEADER}, Content-Range`;
|
|
10610
|
+
function capturePreviewPrefix(captureUrl) {
|
|
10611
|
+
let url;
|
|
10612
|
+
try {
|
|
10613
|
+
url = new URL(captureUrl);
|
|
10614
|
+
} catch {
|
|
10615
|
+
return null;
|
|
10616
|
+
}
|
|
10617
|
+
const path = /^\/api\/projects\/[^/]+\/preview(?=\/|$)/.exec(url.pathname)?.[0];
|
|
10618
|
+
return path ? `${url.origin}${path}/` : null;
|
|
10619
|
+
}
|
|
10620
|
+
var decodedSegment = (segment) => {
|
|
10621
|
+
try {
|
|
10622
|
+
return decodeURIComponent(segment);
|
|
10623
|
+
} catch {
|
|
10624
|
+
return ".";
|
|
10625
|
+
}
|
|
10626
|
+
};
|
|
10627
|
+
var isDotPath = (url, prefix) => {
|
|
10628
|
+
const rest = url.pathname.slice(new URL(prefix).pathname.length);
|
|
10629
|
+
return [
|
|
10630
|
+
...rest.split("/").map(decodedSegment),
|
|
10631
|
+
...decodeWellFormedEscapes(rest).split(/[\\/]/)
|
|
10632
|
+
].some((segment) => segment.startsWith("."));
|
|
10633
|
+
};
|
|
10634
|
+
function captureLoadGrant(load, captureUrl) {
|
|
10635
|
+
const prefix = capturePreviewPrefix(captureUrl);
|
|
10636
|
+
if (!prefix || !load.url.startsWith(prefix)) return null;
|
|
10637
|
+
const url = new URL(load.url);
|
|
10638
|
+
if (isDotPath(url, prefix) || !GRANTED_TYPES.has(load.resourceType)) return null;
|
|
10639
|
+
const proxyWait = (load.resourceType === "XHR" || load.resourceType === "Fetch") && isProxyWait(url);
|
|
10640
|
+
if (load.method === "OPTIONS") return proxyWait ? "preflight" : null;
|
|
10641
|
+
return load.method === "GET" ? "read" : null;
|
|
10642
|
+
}
|
|
10643
|
+
var OPAQUE_CALLER = [
|
|
10644
|
+
{ name: "Access-Control-Allow-Origin", value: "null" },
|
|
10645
|
+
{ name: "X-Content-Type-Options", value: "nosniff" },
|
|
10646
|
+
{
|
|
10647
|
+
name: "Access-Control-Expose-Headers",
|
|
10648
|
+
value: PREVIEW_EXPOSED_HEADERS
|
|
10649
|
+
}
|
|
10650
|
+
];
|
|
10651
|
+
var PREFLIGHT_ANSWER = [
|
|
10652
|
+
{ name: "Access-Control-Allow-Origin", value: "null" },
|
|
10653
|
+
{ name: "Access-Control-Allow-Methods", value: "GET" },
|
|
10654
|
+
{ name: "Access-Control-Allow-Headers", value: PROXY_WAIT_ALLOWED_HEADERS }
|
|
10655
|
+
];
|
|
10656
|
+
async function grantCaptureLoads(cdp, captureUrl) {
|
|
10657
|
+
const prefix = capturePreviewPrefix(captureUrl);
|
|
10658
|
+
if (!prefix) return;
|
|
10659
|
+
cdp.on("Fetch.requestPaused", (event) => {
|
|
10660
|
+
const { requestId } = event;
|
|
10661
|
+
const headers = event.responseHeaders ?? [];
|
|
10662
|
+
const status = event.responseStatusCode;
|
|
10663
|
+
const grant = captureLoadGrant(
|
|
10664
|
+
{ url: event.request.url, method: event.request.method, resourceType: event.resourceType },
|
|
10665
|
+
captureUrl
|
|
10666
|
+
);
|
|
10667
|
+
const answered = status !== void 0 && !headers.some((header) => header.name.toLowerCase() === "access-control-allow-origin");
|
|
10668
|
+
const sent = grant === "preflight" ? cdp.send("Fetch.fulfillRequest", {
|
|
10669
|
+
requestId,
|
|
10670
|
+
responseCode: 204,
|
|
10671
|
+
responseHeaders: PREFLIGHT_ANSWER
|
|
10672
|
+
}) : grant && answered ? cdp.send("Fetch.continueResponse", {
|
|
10673
|
+
requestId,
|
|
10674
|
+
responseCode: status,
|
|
10675
|
+
responseHeaders: [...headers, ...OPAQUE_CALLER]
|
|
10676
|
+
}) : cdp.send("Fetch.continueRequest", { requestId });
|
|
10677
|
+
void sent.catch(() => void 0);
|
|
10678
|
+
});
|
|
10679
|
+
await cdp.send("Fetch.enable", {
|
|
10680
|
+
patterns: [...GRANTED_TYPES].map((resourceType) => ({
|
|
10681
|
+
urlPattern: `${prefix}*`,
|
|
10682
|
+
resourceType,
|
|
10683
|
+
requestStage: "Response"
|
|
10684
|
+
}))
|
|
10685
|
+
});
|
|
10686
|
+
}
|
|
10561
10687
|
var ANY_FILE_THE_PREVIEW_SERVES = /./;
|
|
10562
|
-
var
|
|
10688
|
+
var GRANTED_TYPES2 = /* @__PURE__ */ new Map([
|
|
10563
10689
|
["font", /^font\//],
|
|
10564
10690
|
["script", /^text\/javascript\b/],
|
|
10565
10691
|
["image", /^image\//],
|
|
@@ -10569,7 +10695,7 @@ var GRANTED_TYPES = /* @__PURE__ */ new Map([
|
|
|
10569
10695
|
]);
|
|
10570
10696
|
var TOKEN_SEGMENT = /^~([\w-]{43})$/;
|
|
10571
10697
|
function opaqueFrameLoadGranted(load) {
|
|
10572
|
-
const type = load.origin === "null" ?
|
|
10698
|
+
const type = load.origin === "null" ? GRANTED_TYPES2.get(load.dest ?? "") : void 0;
|
|
10573
10699
|
if (!type?.test(getMimeType(load.pathname))) return false;
|
|
10574
10700
|
const keepsStoredContentType = load.status === 304;
|
|
10575
10701
|
return keepsStoredContentType || type.test(load.contentType ?? "");
|
|
@@ -10594,10 +10720,18 @@ function tokenPathHeaders(c, res, pathname) {
|
|
|
10594
10720
|
if (granted) {
|
|
10595
10721
|
headers.set("Access-Control-Allow-Origin", "null");
|
|
10596
10722
|
headers.set("X-Content-Type-Options", "nosniff");
|
|
10723
|
+
headers.set("Access-Control-Expose-Headers", PREVIEW_EXPOSED_HEADERS);
|
|
10597
10724
|
headers.append("Vary", "Origin");
|
|
10598
10725
|
}
|
|
10599
10726
|
return headers;
|
|
10600
10727
|
}
|
|
10728
|
+
var answersProxyPreflight = (c, url) => c.req.method === "OPTIONS" && c.req.header("origin") === "null" && c.req.header("access-control-request-method") === "GET" && isProxyWait(url);
|
|
10729
|
+
var PROXY_PREFLIGHT_ANSWER = {
|
|
10730
|
+
"Access-Control-Allow-Origin": "null",
|
|
10731
|
+
"Access-Control-Allow-Methods": "GET",
|
|
10732
|
+
"Access-Control-Allow-Headers": PROXY_WAIT_ALLOWED_HEADERS,
|
|
10733
|
+
Vary: "Origin"
|
|
10734
|
+
};
|
|
10601
10735
|
async function underToken(res, headers, projectId, token) {
|
|
10602
10736
|
if (res.status !== 200 || !headers.get("content-type")?.startsWith("text/html"))
|
|
10603
10737
|
return new Response(res.body, { status: res.status, headers });
|
|
@@ -10616,6 +10750,8 @@ function serveTokenPreviewPaths(api, tokens, resolveProjectId) {
|
|
|
10616
10750
|
if (!projectId || !tokens.matches(projectId, token)) return c.text("not found", 404);
|
|
10617
10751
|
segments.splice(4, 1);
|
|
10618
10752
|
url.pathname = segments.join("/");
|
|
10753
|
+
if (answersProxyPreflight(c, url))
|
|
10754
|
+
return new Response(null, { status: 204, headers: PROXY_PREFLIGHT_ANSWER });
|
|
10619
10755
|
const req = new Request(url, { method: c.req.method, headers: c.req.raw.headers });
|
|
10620
10756
|
const res = await api.fetch(req);
|
|
10621
10757
|
return underToken(res, tokenPathHeaders(c, res, url.pathname), projectId, token);
|
|
@@ -10712,6 +10848,9 @@ function createStudioApi(adapter, options = {}) {
|
|
|
10712
10848
|
api.use("/projects/:id/thumbnail/*", refuseForAnotherSite("thumbnail"));
|
|
10713
10849
|
api.use("/projects/:id/waveform/*", refuseForAnotherSite("waveform"));
|
|
10714
10850
|
api.use("/projects/:id/peaks/*", refuseForAnotherSite("peaks"));
|
|
10851
|
+
api.use("/projects/:id/image-thumbnail/*", refuseForAnotherSite("image thumbnail"));
|
|
10852
|
+
api.use("/projects/:id/media/metadata", refuseForAnotherSite("media metadata"));
|
|
10853
|
+
api.use("/projects/:id/lint", refuseForAnotherSite("lint"));
|
|
10715
10854
|
api.use(async function rejectCrossOriginWrites(c, next) {
|
|
10716
10855
|
if (c.req.method === "GET" || c.req.method === "HEAD" || c.req.method === "OPTIONS") {
|
|
10717
10856
|
return next();
|
|
@@ -10862,86 +11001,6 @@ ${key}`).digest("hex").slice(0, 32)}.html`);
|
|
|
10862
11001
|
}
|
|
10863
11002
|
};
|
|
10864
11003
|
}
|
|
10865
|
-
var GRANTED_TYPES2 = /* @__PURE__ */ new Set(["Font", "Script", "Stylesheet", "Image", "Media", "Fetch", "XHR"]);
|
|
10866
|
-
var PROXY_PARAM = "hf-proxy";
|
|
10867
|
-
var VIDEO_FILE = /\.(mp4|webm|mov|mkv|avi|m4v|mxf|mts|m2ts)$/i;
|
|
10868
|
-
function capturePreviewPrefix(captureUrl) {
|
|
10869
|
-
let url;
|
|
10870
|
-
try {
|
|
10871
|
-
url = new URL(captureUrl);
|
|
10872
|
-
} catch {
|
|
10873
|
-
return null;
|
|
10874
|
-
}
|
|
10875
|
-
const path = /^\/api\/projects\/[^/]+\/preview(?=\/|$)/.exec(url.pathname)?.[0];
|
|
10876
|
-
return path ? `${url.origin}${path}/` : null;
|
|
10877
|
-
}
|
|
10878
|
-
var decodedSegment = (segment) => {
|
|
10879
|
-
try {
|
|
10880
|
-
return decodeURIComponent(segment);
|
|
10881
|
-
} catch {
|
|
10882
|
-
return ".";
|
|
10883
|
-
}
|
|
10884
|
-
};
|
|
10885
|
-
var isDotPath = (url, prefix) => {
|
|
10886
|
-
const rest = url.pathname.slice(new URL(prefix).pathname.length);
|
|
10887
|
-
return [
|
|
10888
|
-
...rest.split("/").map(decodedSegment),
|
|
10889
|
-
...decodeWellFormedEscapes(rest).split(/[\\/]/)
|
|
10890
|
-
].some((segment) => segment.startsWith("."));
|
|
10891
|
-
};
|
|
10892
|
-
function captureLoadGrant(load, captureUrl) {
|
|
10893
|
-
const prefix = capturePreviewPrefix(captureUrl);
|
|
10894
|
-
if (!prefix || !load.url.startsWith(prefix)) return null;
|
|
10895
|
-
const url = new URL(load.url);
|
|
10896
|
-
if (isDotPath(url, prefix) || !GRANTED_TYPES2.has(load.resourceType)) return null;
|
|
10897
|
-
const proxyWait = (load.resourceType === "XHR" || load.resourceType === "Fetch") && url.searchParams.has(PROXY_PARAM) && VIDEO_FILE.test(url.pathname);
|
|
10898
|
-
if (load.method === "OPTIONS") return proxyWait ? "preflight" : null;
|
|
10899
|
-
return load.method === "GET" ? "read" : null;
|
|
10900
|
-
}
|
|
10901
|
-
var OPAQUE_CALLER = [
|
|
10902
|
-
{ name: "Access-Control-Allow-Origin", value: "null" },
|
|
10903
|
-
{ name: "X-Content-Type-Options", value: "nosniff" },
|
|
10904
|
-
{
|
|
10905
|
-
name: "Access-Control-Expose-Headers",
|
|
10906
|
-
value: `Retry-After, ${PREVIEW_PROXY_PROGRESS_HEADER}, Content-Range`
|
|
10907
|
-
}
|
|
10908
|
-
];
|
|
10909
|
-
var PREFLIGHT_ANSWER = [
|
|
10910
|
-
{ name: "Access-Control-Allow-Origin", value: "null" },
|
|
10911
|
-
{ name: "Access-Control-Allow-Methods", value: "GET" },
|
|
10912
|
-
{ name: "Access-Control-Allow-Headers", value: `Range, ${PREVIEW_PROXY_PRIORITY_HEADER}` }
|
|
10913
|
-
];
|
|
10914
|
-
async function grantCaptureLoads(cdp, captureUrl) {
|
|
10915
|
-
const prefix = capturePreviewPrefix(captureUrl);
|
|
10916
|
-
if (!prefix) return;
|
|
10917
|
-
cdp.on("Fetch.requestPaused", (event) => {
|
|
10918
|
-
const { requestId } = event;
|
|
10919
|
-
const headers = event.responseHeaders ?? [];
|
|
10920
|
-
const status = event.responseStatusCode;
|
|
10921
|
-
const grant = captureLoadGrant(
|
|
10922
|
-
{ url: event.request.url, method: event.request.method, resourceType: event.resourceType },
|
|
10923
|
-
captureUrl
|
|
10924
|
-
);
|
|
10925
|
-
const answered = status !== void 0 && !headers.some((header) => header.name.toLowerCase() === "access-control-allow-origin");
|
|
10926
|
-
const sent = grant === "preflight" ? cdp.send("Fetch.fulfillRequest", {
|
|
10927
|
-
requestId,
|
|
10928
|
-
responseCode: 204,
|
|
10929
|
-
responseHeaders: PREFLIGHT_ANSWER
|
|
10930
|
-
}) : grant && answered ? cdp.send("Fetch.continueResponse", {
|
|
10931
|
-
requestId,
|
|
10932
|
-
responseCode: status,
|
|
10933
|
-
responseHeaders: [...headers, ...OPAQUE_CALLER]
|
|
10934
|
-
}) : cdp.send("Fetch.continueRequest", { requestId });
|
|
10935
|
-
void sent.catch(() => void 0);
|
|
10936
|
-
});
|
|
10937
|
-
await cdp.send("Fetch.enable", {
|
|
10938
|
-
patterns: [...GRANTED_TYPES2].map((resourceType) => ({
|
|
10939
|
-
urlPattern: `${prefix}*`,
|
|
10940
|
-
resourceType,
|
|
10941
|
-
requestStage: "Response"
|
|
10942
|
-
}))
|
|
10943
|
-
});
|
|
10944
|
-
}
|
|
10945
11004
|
function thumbnailDeviceScaleFactor({
|
|
10946
11005
|
width,
|
|
10947
11006
|
height,
|
|
@@ -11022,9 +11081,6 @@ export {
|
|
|
11022
11081
|
injectMediaCodecMapIntoHtml,
|
|
11023
11082
|
STUDIO_MOTION_PATH,
|
|
11024
11083
|
createStudioMotionRenderBodyScript,
|
|
11025
|
-
STUDIO_PREVIEW_MARK_META,
|
|
11026
|
-
STUDIO_PREVIEW_CAPTURE_MODE,
|
|
11027
|
-
PREVIEW_FOR_ANOTHER_SITE_META,
|
|
11028
11084
|
buildSubCompositionHtml,
|
|
11029
11085
|
compositionsAffectedBy,
|
|
11030
11086
|
applyFileMutations,
|
|
@@ -11032,11 +11088,11 @@ export {
|
|
|
11032
11088
|
affectsPreview,
|
|
11033
11089
|
PREVIEW_BUNDLE_OPTIONS,
|
|
11034
11090
|
originForListeningAddress,
|
|
11091
|
+
captureLoadGrant,
|
|
11092
|
+
grantCaptureLoads,
|
|
11035
11093
|
createStudioApi,
|
|
11036
11094
|
duplicateElementInHtml,
|
|
11037
11095
|
createPreviewDocumentStore,
|
|
11038
|
-
captureLoadGrant,
|
|
11039
|
-
grantCaptureLoads,
|
|
11040
11096
|
thumbnailDeviceScaleFactor,
|
|
11041
11097
|
createBackgroundRemovalJob
|
|
11042
11098
|
};
|