hyperframes 0.9.28 → 0.9.30
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-XQCABYNY.js → add-JBBBMWP4.js} +8 -8
- package/dist/{agentPromptGenerator-S2SYZY3A.js → agentPromptGenerator-NJL6ZJQA.js} +2 -2
- package/dist/{animatedGifPrep-SACSOT4A.js → animatedGifPrep-AVZAMI2D.js} +2 -2
- package/dist/api.js +27 -27
- package/dist/{asset-JPI3LFG4.js → asset-VFG5LF4B.js} +5 -5
- package/dist/{assetCataloger-TJQ5OLMV.js → assetCataloger-WGNEAI5A.js} +3 -3
- package/dist/{audio-RG6NXOMI.js → audio-URYC7ND7.js} +16 -16
- package/dist/{auth-7G2OCS7L.js → auth-E4ZBU47K.js} +6 -6
- package/dist/{autoUpdate-7RS75ENY.js → autoUpdate-CEYR6IHF.js} +4 -4
- package/dist/{avatars-KWPVXWXC.js → avatars-ZPRQ3ZCD.js} +11 -11
- package/dist/{backgroundChecks-5HHWQH5H.js → backgroundChecks-BL4XMMXE.js} +5 -5
- package/dist/backgroundChecksWorker.js +5 -5
- package/dist/{batchRender-AL6DO5IA.js → batchRender-FK7U2GUF.js} +4 -4
- package/dist/{beats-XHKWF5KT.js → beats-XK4QL74K.js} +8 -8
- package/dist/{benchmark-57RNYMON.js → benchmark-MABRDF7U.js} +11 -11
- package/dist/{billing-FXAMQKDS.js → billing-2CABBLDC.js} +9 -9
- package/dist/{browser-TV2VPWQJ.js → browser-SHU4XK5O.js} +8 -8
- package/dist/{bundleWithLocalizedFonts-YGHFRVJW.js → bundleWithLocalizedFonts-W7SSOXOO.js} +3 -3
- package/dist/{capture-GPT5V4ND.js → capture-CFESIHJR.js} +8 -8
- package/dist/{capture-LHPSRQ4R.js → capture-VPWHIN5C.js} +5 -5
- package/dist/{captureCompositionFrame-TLV2WC4Q.js → captureCompositionFrame-MT3CHQJ6.js} +9 -9
- package/dist/{catalog-7A3MMFTN.js → catalog-BBPONQOO.js} +9 -9
- package/dist/{catch-up-SEGXPPOX.js → catch-up-DEZVG3A5.js} +8 -8
- package/dist/{check-OP5AR33W.js → check-LIC6DYFD.js} +29 -29
- package/dist/{checkAudio-QDAUXX7W.js → checkAudio-RHF5CWWX.js} +7 -7
- package/dist/{checkBrowser-OGE3A52R.js → checkBrowser-LUHIFDJZ.js} +22 -22
- package/dist/{chunk-U46YQL7E.js → chunk-2B2IMLUQ.js} +1 -1
- package/dist/{chunk-SJOA2RCP.js → chunk-2II5FCVK.js} +9 -9
- package/dist/{chunk-P5USY2GC.js → chunk-2NK3K7JL.js} +2 -2
- package/dist/{chunk-BF6RWOUF.js → chunk-2QUQKYOK.js} +135 -61
- package/dist/{chunk-MMCMEW7K.js → chunk-2YZ6GA4E.js} +1 -1
- package/dist/{chunk-IQKMIYLG.js → chunk-3OA75WJW.js} +2 -2
- package/dist/{chunk-SCNC7YPB.js → chunk-3YNJAXA5.js} +1 -1
- package/dist/{chunk-7M26J4R3.js → chunk-4TCEF2I7.js} +1 -1
- package/dist/{chunk-L5KXLXFY.js → chunk-5IAFM6M5.js} +9 -9
- package/dist/{chunk-EOJ2PMOV.js → chunk-5QGDLMU3.js} +2 -2
- package/dist/{chunk-257XUBNU.js → chunk-5RLMHG3E.js} +1 -1
- package/dist/{chunk-W7TS3CZA.js → chunk-74PW4UVC.js} +1 -1
- package/dist/{chunk-RFLV3WR5.js → chunk-76MHB2H6.js} +1 -1
- package/dist/{chunk-PEJQV2RL.js → chunk-7DMIAJD7.js} +10 -10
- package/dist/{chunk-QT766HQV.js → chunk-7GJKUOPX.js} +14 -17
- package/dist/{chunk-M457GQGR.js → chunk-7NDF2MO3.js} +1 -1
- package/dist/{chunk-VOVC3QCN.js → chunk-AGHSWES2.js} +3 -3
- package/dist/{chunk-UPR5TMLG.js → chunk-AJCFMDFQ.js} +1 -1
- package/dist/{chunk-AVXIDAFJ.js → chunk-AMZ22QP7.js} +30 -11
- package/dist/{chunk-SDYZOTB7.js → chunk-AOPNJEQC.js} +2 -2
- package/dist/{chunk-PF23WT5C.js → chunk-AW2M5TZW.js} +7 -7
- package/dist/{chunk-F5QBIIFT.js → chunk-AWD2MWWL.js} +1 -1
- package/dist/{chunk-YU2KLER7.js → chunk-B23DUMZ4.js} +2 -2
- package/dist/{chunk-AA2DNXEJ.js → chunk-BUYUJ3EV.js} +7 -7
- package/dist/{chunk-ZUXES5HA.js → chunk-CK3DD2MC.js} +2 -2
- package/dist/{chunk-PQYICV7O.js → chunk-CPHQTXP5.js} +17 -2
- package/dist/{chunk-NURN5W6M.js → chunk-CWN75OWQ.js} +2 -2
- package/dist/{chunk-6OQPKRPJ.js → chunk-D2LIT7UR.js} +1 -1
- package/dist/{chunk-D5HNV6G6.js → chunk-DYKBB5HB.js} +1 -1
- package/dist/{chunk-YSAK7PJZ.js → chunk-EBU7T3WZ.js} +2 -2
- package/dist/{chunk-LAI7UTBM.js → chunk-EPOBJVVG.js} +22 -22
- package/dist/{chunk-LXAJQXHM.js → chunk-F4Z2UPAA.js} +2 -2
- package/dist/{chunk-6WCOY6MS.js → chunk-FJQGA6H6.js} +6 -6
- package/dist/{chunk-SQRI67KR.js → chunk-FNC3JNO7.js} +1 -1
- package/dist/{chunk-J237HI2F.js → chunk-G3WGKT3B.js} +160 -25
- package/dist/{chunk-J3X2RZON.js → chunk-G7PITEUH.js} +1 -1
- package/dist/{chunk-55ZEUSPW.js → chunk-GQNV4DG6.js} +1 -1
- package/dist/{chunk-UVF4HXPW.js → chunk-HCC7XLD7.js} +2 -2
- package/dist/{chunk-NXVDTRXA.js → chunk-HKWKMXAC.js} +2 -2
- package/dist/{chunk-ZWJ7PWTY.js → chunk-HLRYLZFX.js} +2 -2
- package/dist/{chunk-LPB7T67S.js → chunk-J4Z7LQKU.js} +2 -2
- package/dist/{chunk-GUHCMOE2.js → chunk-J7PDBGQM.js} +1 -1
- package/dist/{chunk-VU4EPKFI.js → chunk-JCNPHRGX.js} +1 -1
- package/dist/{chunk-CSCK6RGC.js → chunk-JVAD6LD7.js} +31 -14
- package/dist/{chunk-E54N6IPY.js → chunk-KMGF6GJU.js} +4 -4
- package/dist/{chunk-CINCDA5M.js → chunk-LDTJCZZ2.js} +2 -2
- package/dist/{chunk-FGFVUKPP.js → chunk-LIWK3MFR.js} +1 -1
- package/dist/{chunk-U5RXCKWJ.js → chunk-LRDS7MG5.js} +1 -1
- package/dist/{chunk-7FYGCIHK.js → chunk-MKZ34726.js} +2 -2
- package/dist/{chunk-5RUGBDAC.js → chunk-MSL2BS73.js} +1 -1
- package/dist/{chunk-W4EAYORI.js → chunk-NBF7SU6Q.js} +5 -5
- package/dist/{chunk-UAEL2JEL.js → chunk-NLKHXPTZ.js} +4 -4
- package/dist/{chunk-5E6Y7CW3.js → chunk-NTNS5EFN.js} +2 -2
- package/dist/{chunk-WMZDESYF.js → chunk-NZUUKNNZ.js} +1 -1
- package/dist/{chunk-VXWASGGT.js → chunk-P74B5H73.js} +1 -1
- package/dist/{chunk-IX22RYJO.js → chunk-PGZSYDLZ.js} +1 -1
- package/dist/{chunk-T37WJWV2.js → chunk-PIEVAPKP.js} +1 -1
- package/dist/{chunk-7DGBOZ4N.js → chunk-PV2D2TZV.js} +1 -1
- package/dist/{chunk-XPGH4KBU.js → chunk-PVRJKEU5.js} +1 -1
- package/dist/{chunk-P2A6MYSQ.js → chunk-Q7FX7HOX.js} +1 -1
- package/dist/{chunk-E3UFWFZZ.js → chunk-QBRBXVCE.js} +1 -1
- package/dist/{chunk-JMPTLXJQ.js → chunk-RCYKUNVZ.js} +2 -2
- package/dist/{chunk-6UMISKCG.js → chunk-RZK5ZGVX.js} +4 -4
- package/dist/{chunk-XLERIR2V.js → chunk-S3S3IHCR.js} +1 -1
- package/dist/{chunk-E53UDY74.js → chunk-SP5GQGP2.js} +2 -2
- package/dist/{chunk-MPKBIC4Z.js → chunk-SPPSVPY7.js} +3 -3
- package/dist/{chunk-B4TLQLGI.js → chunk-T6VQGCN3.js} +1 -1
- package/dist/{chunk-V4M7PKBM.js → chunk-TNZ2EF2Y.js} +3 -3
- package/dist/{chunk-TTKJF3LI.js → chunk-UPVM6UDG.js} +62 -15
- package/dist/{chunk-TMYY4DV4.js → chunk-UTU3HSJS.js} +1 -1
- package/dist/{chunk-X7NFWMWW.js → chunk-UY3H42VE.js} +1 -1
- package/dist/{chunk-G4D7EBDQ.js → chunk-V4ZFL2E2.js} +2 -2
- package/dist/{chunk-VCMPKZFN.js → chunk-VHOETOGT.js} +11 -11
- package/dist/{chunk-UZGRZRD6.js → chunk-VMLPDIR6.js} +1 -1
- package/dist/{chunk-Z677PTBA.js → chunk-VPQXRTEW.js} +5 -5
- package/dist/{chunk-L2GOO2UY.js → chunk-WAXPM7TK.js} +1 -1
- package/dist/{chunk-NUUN7XB4.js → chunk-WCSEEQ5R.js} +2 -2
- package/dist/{chunk-K77GTFH3.js → chunk-WGVWW6O4.js} +2 -2
- package/dist/{chunk-O5P75JID.js → chunk-WJPEMXI3.js} +2 -2
- package/dist/{chunk-X2YNB244.js → chunk-XKSHWUIF.js} +3 -3
- package/dist/{chunk-A7HPQVS5.js → chunk-XVDXYUQJ.js} +1 -1
- package/dist/{chunk-FBLCK3YJ.js → chunk-YAKPBJOU.js} +32 -18
- package/dist/{chunk-EENM7GX3.js → chunk-YJYEKNJG.js} +3 -3
- package/dist/{chunk-PL5C5FKM.js → chunk-YNRQTFYH.js} +2 -2
- package/dist/{chunk-SWEC6N6N.js → chunk-YZH2IWEE.js} +2 -2
- package/dist/{chunk-DKSCZYFP.js → chunk-ZGQZTSP2.js} +1 -1
- package/dist/{chunk-4N3UVDIJ.js → chunk-ZLDYDO64.js} +1 -1
- package/dist/{clean-UGV3DTVQ.js → clean-AGQEPUBC.js} +13 -13
- package/dist/cli.js +67 -67
- package/dist/{cloud-SDC56AHY.js → cloud-H5HJH6SD.js} +6 -6
- package/dist/{cloud-QJMPTQ3N.js → cloud-TDXVUIUM.js} +5 -5
- package/dist/{cloudrun-T7VVPRDG.js → cloudrun-7BR5FKOC.js} +6 -6
- package/dist/{colors-SS2KTOKM.js → colors-NMNY26B5.js} +2 -2
- package/dist/{compare-LG42JVYH.js → compare-YWZ6O2FL.js} +18 -18
- package/dist/{component-OPAFYBPO.js → component-MX2PJOTA.js} +6 -6
- package/dist/{compositions-JP655NT3.js → compositions-PLT4OLGR.js} +10 -10
- package/dist/{curve-RN7HDXOS.js → curve-BJYCZUEY.js} +9 -9
- package/dist/{cuts-ET7N7IBU.js → cuts-TWAVF7WI.js} +10 -10
- package/dist/{delete-5552CGT5.js → delete-3KCBCPBD.js} +11 -11
- package/dist/{deploy-NMFEPGRQ.js → deploy-KWTMJNBL.js} +4 -4
- package/dist/{describeProject-CWLV5OAT.js → describeProject-HZLM3B55.js} +5 -5
- package/dist/{destroy-YAMTVR2W.js → destroy-4DOMPOYB.js} +2 -2
- package/dist/{diff-HZX2TISC.js → diff-XC6IU3IY.js} +25 -25
- package/dist/{dist-O45G7NET.js → dist-M5WQQ6WE.js} +6 -2
- package/dist/{docs-ZSVK3VZD.js → docs-YTM4NX2R.js} +2 -2
- package/dist/{doctor-IYEYULPD.js → doctor-VRUSZ6GH.js} +9 -9
- package/dist/{energy-YXEPVRKW.js → energy-VNAAJYAW.js} +10 -10
- package/dist/{events-KYCNM6C3.js → events-6WYNARX7.js} +5 -5
- package/dist/{events-JAY5YNEU.js → events-MR72RS47.js} +12 -12
- package/dist/{events-GA24CH3D.js → events-WZJTLFCQ.js} +6 -6
- package/dist/{extract-TFEVGLLS.js → extract-MKOCZIFN.js} +10 -10
- package/dist/{face-NP7JGAE7.js → face-NIV5ZSUX.js} +10 -10
- package/dist/{feedback-UPYWXKHN.js → feedback-A4F4G5JO.js} +12 -12
- package/dist/{ffmpeg-RYNM3JM2.js → ffmpeg-OAKTUK5S.js} +2 -2
- package/dist/{figma-PL4YF6AD.js → figma-4WZIDYAD.js} +5 -5
- package/dist/fontLocalizeCli.js +5 -5
- package/dist/{frames-7CHO3XUP.js → frames-DAKLRIWG.js} +11 -11
- package/dist/{generate-I3UK6VFX.js → generate-NRPHH4NJ.js} +17 -17
- package/dist/{get-DRFSJ333.js → get-ISXQCK3G.js} +11 -11
- package/dist/{gpuPolicy-OAUKEMJC.js → gpuPolicy-SLVPAQK2.js} +2 -2
- package/dist/{grade-compare-PYDF6Y6J.js → grade-compare-TVMAAZVC.js} +19 -19
- package/dist/{heifImagePrep-23E67GBA.js → heifImagePrep-BOIWW7FW.js} +3 -3
- package/dist/{help-N2SPZK4D.js → help-ZOYDS3YW.js} +3 -3
- package/dist/{history-LXYOTFY7.js → history-CLGGMJ7Z.js} +11 -11
- package/dist/hyperframes-player.global.js +1 -1
- package/dist/{info-ENAE5IAD.js → info-ZTFII4N4.js} +12 -12
- package/dist/{init-DMKB6PK6.js → init-RCDPQKFA.js} +22 -22
- package/dist/{ink-ANDD7W6Y.js → ink-2ATPIDWC.js} +10 -10
- package/dist/{inspect-2XZYCFMK.js → inspect-GDMUC5F6.js} +20 -20
- package/dist/{keyframes-UKUFE6ZF.js → keyframes-EPAX446T.js} +10 -10
- package/dist/{lambda-T4WMAZZV.js → lambda-HG6Y6KOH.js} +14 -14
- package/dist/{layout-FX2Q65LB.js → layout-KXBKGHOS.js} +20 -20
- package/dist/{lint-AHORS3BL.js → lint-O62OPAW7.js} +11 -11
- package/dist/{list-H7F3WXD4.js → list-4HWWKMM6.js} +12 -12
- package/dist/{localPage-UUSOCL7L.js → localPage-66UVNGQR.js} +2 -2
- package/dist/{login-6ORXT7JS.js → login-2H4XMPUT.js} +12 -29
- package/dist/{logout-FJ444652.js → logout-7SMEH7JL.js} +4 -4
- package/dist/{look-XFA3GQDV.js → look-W6PV445D.js} +10 -10
- package/dist/{manager-ZGVNWYBK.js → manager-ML4OLLSM.js} +3 -3
- package/dist/{measure-WIARVYP6.js → measure-CWOXQCGH.js} +11 -11
- package/dist/{media-treatment-L2OD4GAB.js → media-treatment-SDGXF2PK.js} +11 -11
- package/dist/{media-use-SYSDJH23.js → media-use-NWNX24MD.js} +6 -6
- package/dist/{models-YOGYUKBX.js → models-J2P2DLSA.js} +10 -10
- package/dist/{motionShot-II6JZGTO.js → motionShot-VQ2KFPMR.js} +11 -11
- package/dist/{normalize-audio-L6V6T2XW.js → normalize-audio-MABOG5XR.js} +8 -8
- package/dist/{open-BPGKTYYV.js → open-KWTFPDML.js} +9 -9
- package/dist/{parakeetRunner-BWX3UQH4.js → parakeetRunner-GP47AAVT.js} +7 -7
- package/dist/{pipeline-O3VKDLBZ.js → pipeline-5HUQFOCY.js} +5 -5
- package/dist/{play-NLZ4D4VN.js → play-6MSC2ZCU.js} +13 -13
- package/dist/{policies-5G7G26ZX.js → policies-5RUNO47I.js} +2 -2
- package/dist/{preflight-HEAPQ7N7.js → preflight-NTJMXUS2.js} +3 -3
- package/dist/{present-XPLUCZ5Z.js → present-X5T75QS4.js} +13 -13
- package/dist/{preview-JAWCYDZP.js → preview-7NW7RUET.js} +15 -15
- package/dist/{probe-3AL2MBSY.js → probe-XTZVXTQ2.js} +10 -10
- package/dist/{producer-OQETVMJH.js → producer-ZZROH3WZ.js} +1 -1
- package/dist/{progress-OOEHTBBU.js → progress-TGYZ2TKQ.js} +2 -2
- package/dist/{prompts-RYVLXI7Q.js → prompts-7VQEH645.js} +2 -2
- package/dist/{publish-C3ARXH6D.js → publish-3BBHK2NK.js} +8 -8
- package/dist/{refresh-YY4K2RWR.js → refresh-47T6Z2PK.js} +4 -4
- package/dist/{remove-background-2SNU7KAA.js → remove-background-W7WMLL5C.js} +9 -9
- package/dist/{render-FFA55SPM.js → render-5G6745C3.js} +32 -32
- package/dist/{render-TSV3XTQV.js → render-ZGCH2FZJ.js} +4 -4
- package/dist/{render-IKHZUOCM.js → render-ZIBXBMNI.js} +26 -26
- package/dist/{render-batch-ISMXAG7F.js → render-batch-ONWJJ627.js} +4 -4
- package/dist/{reverse-74KYO2KF.js → reverse-5YTLWWDZ.js} +1 -1
- package/dist/{run-UPKPPRV7.js → run-24USN7TA.js} +5 -5
- package/dist/{screenshotCapture-HBOH5VXI.js → screenshotCapture-ZZE3GMOF.js} +2 -2
- package/dist/{sherpa-DBCTQWM3.js → sherpa-7ISRANWA.js} +6 -6
- package/dist/{sites-NWEJJNAZ.js → sites-LILUBMRM.js} +2 -2
- package/dist/skills/media-use/SKILL.md +1 -1
- package/dist/skills/media-use/references/heygen.md +2 -2
- package/dist/{skills-YYOPM674.js → skills-YMSZHKK4.js} +10 -10
- package/dist/{skillsUpdateCheck-2G4HUWXT.js → skillsUpdateCheck-YJYYN5CH.js} +5 -5
- package/dist/{snapshot-FSN6MIFT.js → snapshot-4MZGXL4A.js} +27 -27
- package/dist/{src-PZKWEQB3.js → src-CHPZUZZ3.js} +4 -4
- package/dist/{src-W2OMGCC2.js → src-NIMSUB4P.js} +1 -1
- package/dist/{start-BC3LQ6XM.js → start-FPEBVENS.js} +60 -29
- package/dist/{staticProjectServer-NOC42RG6.js → staticProjectServer-XZNME57Y.js} +5 -5
- package/dist/{status-GAMGQR6J.js → status-7TRDJU47.js} +10 -10
- package/dist/studio/assets/{codec-DqZyhFXM.js → codec-B1UWDNJp.js} +1 -1
- package/dist/studio/assets/{hyperframes-player-aBBb_UoJ.js → hyperframes-player-DQd2VPm2.js} +1 -1
- package/dist/studio/assets/{index-CceqlOsz.js → index-B7CtVv8e.js} +1 -1
- package/dist/studio/assets/{index-nztwvLTw.js → index-gkyTLE7n.js} +5 -5
- package/dist/studio/assets/{pausedVideoDecoder-CwC0h32O.js → pausedVideoDecoder-Bfv1WSlz.js} +1 -1
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-2I44WB4P.js → studio-api-JKJXAELI.js} +6 -2
- package/dist/{studioServer-YOES7J26.js → studioServer-UCRCZOLS.js} +59 -85
- package/dist/{sync-SAFSREBK.js → sync-E72XNR2G.js} +10 -10
- package/dist/{telemetry-JKUAFRWX.js → telemetry-L5D3U4IO.js} +6 -6
- package/dist/{telemetry-5CLJMTHU.js → telemetry-M722DCXI.js} +3 -3
- package/dist/{templates-T63OMFEN.js → templates-O7HEL7HC.js} +9 -9
- package/dist/{timeline-4WIGTZRE.js → timeline-QTODTYKQ.js} +15 -15
- package/dist/{tokens-JK3XREP4.js → tokens-D7JYFE2K.js} +5 -5
- package/dist/{transcribe-DWCOZPAN.js → transcribe-D2WFL2RO.js} +20 -20
- package/dist/{transcribe-APCPBJXE.js → transcribe-FGVGCTEU.js} +5 -5
- package/dist/{tts-HOZ6X3MD.js → tts-IXX2HHHJ.js} +4 -4
- package/dist/{update-I3DN6NUV.js → update-SCMEUTRM.js} +11 -11
- package/dist/{updateCheck-5C2PHZ24.js → updateCheck-KNTQDXMN.js} +4 -4
- package/dist/{upgrade-KBMPHPSY.js → upgrade-V2BP5PAQ.js} +7 -7
- package/dist/{urlDownloader-T5UKNPTJ.js → urlDownloader-4RWM3UH2.js} +1 -1
- package/dist/{validate-YNITWYCF.js → validate-W3E6QVJ6.js} +18 -18
- package/dist/{video-JRQOXAZ2.js → video-KC4AFMAY.js} +5 -5
- package/dist/{voices-7QS4D5EP.js → voices-7N6QU3C6.js} +15 -15
- package/dist/warmCheck.js +29 -29
- package/package.json +1 -1
package/dist/studio/assets/{pausedVideoDecoder-CwC0h32O.js → pausedVideoDecoder-Bfv1WSlz.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{l as V}from"./index-
|
|
1
|
+
import{l as V}from"./index-gkyTLE7n.js";import{bw as G,bN as K,cH as Q,bE as X}from"./codec-B1UWDNJp.js";const x=1e-5,k=1e-9,T=h=>!h.variableFrameRate&&(h.frameRate??0)>0;function Y(h,i){const{sourceLead:r,inputLead:l,timeResolution:w,frameRate:p=0}=i;if(!T(i))return Math.max(l,h-r+l)+k;const d=Math.max(0,Math.floor((h-r)*p+k)),f=l+d/p;return(w>0?Math.round(f*w)/w:f)+x}function J(h,i,r){const{frameRate:l=0,sourceLead:w,inputLead:p}=r,d=T(r)?Math.round((h-p)*l)/l+w:h-p+w,f=Math.min(i,d);return{timestamp:f,duration:Math.max(T(r)?1/l:0,i-f+x)}}const E=64*1024*1024,M=4,Z=.5,$=2e3;async function q(h,i){if(!h.transparent)return h.sink.getSample(i);let r=null;try{for await(const l of h.sink.samplesAtTimestamps([i]))r==null||r.close(),r=l;return r}catch(l){throw r==null||r.close(),l}}function ot(h){const i=new Map,r=new Map,l=new Map,w=new Map,p=new Map;let d=0,f=!1;const _=t=>{var o,n;let e=new URL(t,location.href).pathname;try{e=decodeURIComponent(e)}catch{}return(n=Object.entries(((o=h.contentWindow)==null?void 0:o.__HF_MEDIA_SOURCE_FACTS__)??{}).filter(([s])=>e.endsWith(s)).sort(([s],[a])=>a.length-s.length)[0])==null?void 0:n[1]},g=(t=E)=>{for(const[e,o]of p){if(d<=t)break;e.pins>0||(p.delete(e),o.cache.delete(e.timestamp),d-=e.bytes,e.image.close())}},v=async t=>{if(t.disposed)return;t.disposed=!0,clearTimeout(t.idleTimer),r.get(t.key)===t&&r.delete(t.key);const e=(async()=>{t.transparent&&await t.tail,t.cancelReads(),t.input.dispose(),await y(t).catch(()=>{});for(const o of t.cache.values())p.delete(o),d-=o.bytes,o.image.close();t.cache.clear(),t.canvas.width=t.canvas.height=0})();return t.transparent?new Promise((o,n)=>{const s=setTimeout(()=>{t.cancelReads(),o()},$);e.then(o,n).finally(()=>clearTimeout(s))}):e},P=t=>{clearTimeout(t.idleTimer),!(t.disposed||t.users>0||[...t.cache.values()].some(e=>e.pins>0))&&(t.idleTimer=setTimeout(()=>{t.users>0||[...t.cache.values()].some(e=>e.pins>0)||r.get(t.key)===t&&(i.delete(t.key),v(t))},1e4))},D=async t=>{const e=V("thumbnail"),o=new G({source:new Q(t,e),formats:K});l.set(o,e.cancelReads);try{const n=await o.getPrimaryVideoTrack();if(!n||f)throw new Error("Preview video unavailable");const[s,a,u,c,m,S,F,B,j]=await Promise.all([n.getDisplayWidth(),n.getDisplayHeight(),n.getFirstTimestamp(),n.getTimeResolution(),n.getSquarePixelWidth(),n.getSquarePixelHeight(),n.getRotation(),n.getFlip(),n.canBeTransparent()]),b=document.createElement("canvas");b.width=Math.max(1,Math.ceil(s));const z=F%180===0?m/S:S/m;return b.height=Math.max(1,Math.round(b.width/z)),{key:t,input:o,cancelReads:e.cancelReads,sink:new X(n),canvas:b,rotation:F,flip:B,width:s,height:a,lead:u,ticks:c,transparent:j,tail:Promise.resolve(),iterator:null,iteratorEnd:0,lastTime:-1/0,cache:new Map,users:0,disposed:!1}}catch(n){throw o.dispose(),e.cancelReads(),n}finally{l.delete(o)}},I=()=>{for(const[t]of i){if(i.size<M)break;const e=r.get(t);e&&e.users===0&&![...e.cache.values()].some(o=>o.pins>0)&&(i.delete(t),v(e))}if(i.size>=M)throw new Error("Preview decoder budget reached")},L=async t=>{const e=t;if((w.get(e)??0)>performance.now())throw new Error("Preview decoder cooling down");let o=i.get(e);o||(I(),o=D(t),i.set(e,o)),i.delete(e),i.set(e,o);let n;try{n=await o}catch(s){throw i.get(e)===o&&(i.delete(e),w.set(e,performance.now()+5e3)),s}if(f||n.disposed)throw new DOMException("Preview disposed","AbortError");return r.set(e,n),n.users++,clearTimeout(n.idleTimer),n},y=async t=>{const e=t.iterator;t.iterator=null,await(e==null?void 0:e.return())},R=(t,e)=>{if(e.throwIfAborted(),f||t.disposed)throw new Error("Preview disposed")},O=async(t,e,o)=>{for(t.iterator||(t.iteratorEnd=e+8,t.iterator=t.sink.samples(e,t.iteratorEnd));;){R(t,o);const n=await t.iterator.next();if(n.done)return null;const s=n.value;let a=!1;try{if(R(t,o),s.timestamp>e+1e-6)return null;if(a=s.timestamp+s.duration>e+1e-6,a)return s}finally{a||s.close()}}},A=(t,e)=>(e.pins++,p.delete(e),p.set(e,t),e),W=async(t,e,o,n,s)=>{const a=t.canvas.getContext("2d",{alpha:!0});if(!a)throw new Error("Preview canvas unavailable");a.clearRect(0,0,t.canvas.width,t.canvas.height),a.imageSmoothingQuality="high",e.drawWithFit(a,{fit:"fill",rotation:t.rotation,flip:t.flip});const u=await createImageBitmap(t.canvas);if(s.aborted||f||t.disposed)throw u.close(),s.throwIfAborted(),new Error("Preview disposed");const c={image:u,...J(e.timestamp,o,n),bytes:u.width*u.height*4,pins:1},m=t.cache.get(c.timestamp);if(m)return m.duration=Math.max(m.duration,c.duration),u.close(),A(t,m);if(g(E-c.bytes),d+c.bytes>E)throw u.close(),new Error("Preview frame budget reached");return t.cache.set(c.timestamp,c),p.set(c,t),d+=c.bytes,c},H=(t,e,o)=>!t.transparent&&!o.variableFrameRate&&(o.frameRate??0)>0&&e>t.lastTime+1e-6&&e-t.lastTime<=Z,N=async(t,e,o,n)=>{R(t,n);const s=[...t.cache.values()].find(m=>e>=m.timestamp-1e-6&&e<m.timestamp+m.duration-1e-6);if(s)return A(t,s);const a=Y(e,o),u=H(t,e,o);let c=null;try{if((!u||a>=t.iteratorEnd)&&await y(t),c=u?await O(t,a,n):null,c||(await y(t),c=await q(t,a)),!c)throw new Error("No preview frame at requested time");return R(t,n),t.lastTime=e,await W(t,c,e,o,n)}finally{c==null||c.close(),(n.aborted||f)&&await y(t).catch(()=>{})}},U=(t,e)=>{const o=_(t.source);return{frameRate:o==null?void 0:o.frameRate,variableFrameRate:o==null?void 0:o.variableFrameRate,sourceLead:e.lead,inputLead:e.lead,timeResolution:e.ticks}},C=async(t,e)=>{e.throwIfAborted();const o=t.source;if(!o)throw new Error("Preview source unavailable");const n=await L(o);try{const s=U(t,n),a=n.tail.then(()=>N(n,t.time,s,e));n.tail=a.then(()=>{},()=>{});const u=await a;let c=!1;return g(),{source:u.image,timestamp:u.timestamp,duration:u.duration,width:n.width,height:n.height,release(){c||(c=!0,u.pins--,g(),P(n))}}}finally{n.users--,P(n)}};return{async decode(t,e){if(f)throw new DOMException("Preview disposed","AbortError");if(new Set(t.map(({source:a})=>a)).size>M)throw new Error("Preview decoder budget reached");const o=await Promise.allSettled(t.map(a=>C(a,e))),n=o.find(a=>a.status==="rejected"),s=o.flatMap(a=>a.status==="fulfilled"?[a.value]:[]);if(n||f||e.aborted){for(const a of s)a.release();throw n?n.reason:new DOMException("Preview cancelled","AbortError")}return s},async suspend(){const t=[...i.values()].map(e=>e.then(v).catch(()=>{}));i.clear();for(const[e,o]of l)o(),e.dispose();await Promise.all(t)},dispose(){if(!f){f=!0;for(const[t,e]of l)e(),t.dispose();for(const t of i.values())t.then(v).catch(()=>{});i.clear(),w.clear()}}}}export{ot as createPausedVideoDecoder};
|
package/dist/studio/index.html
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
document.documentElement.dataset.theme = "paper";
|
|
15
15
|
}
|
|
16
16
|
</script>
|
|
17
|
-
<script type="module" crossorigin src="/assets/index-
|
|
17
|
+
<script type="module" crossorigin src="/assets/index-gkyTLE7n.js"></script>
|
|
18
18
|
<link rel="stylesheet" crossorigin href="/assets/index-dsfjBidg.css">
|
|
19
19
|
</head>
|
|
20
20
|
<body>
|
|
@@ -8,6 +8,7 @@ import "./chunk-XUHOIDKG.js";
|
|
|
8
8
|
import {
|
|
9
9
|
MAX_UPLOAD_BYTES,
|
|
10
10
|
MIME_TYPES,
|
|
11
|
+
PREVIEW_ALLOWED_HOSTS_ENV,
|
|
11
12
|
PREVIEW_BUNDLE_OPTIONS,
|
|
12
13
|
affectsPreview,
|
|
13
14
|
applyFileMutations,
|
|
@@ -20,10 +21,11 @@ import {
|
|
|
20
21
|
duplicateElementInHtml,
|
|
21
22
|
getElementScreenshotClip,
|
|
22
23
|
getMimeType,
|
|
24
|
+
previewAllowedHostsFromEnv,
|
|
23
25
|
stampProjectHfIds,
|
|
24
26
|
stampProjectHfIdsAsync,
|
|
25
27
|
thumbnailDeviceScaleFactor
|
|
26
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-G3WGKT3B.js";
|
|
27
29
|
import {
|
|
28
30
|
dedupeClonedCompositionId,
|
|
29
31
|
findTargetElement,
|
|
@@ -71,7 +73,7 @@ import {
|
|
|
71
73
|
registerRenderOutput,
|
|
72
74
|
retainSnapshotOutput,
|
|
73
75
|
settledFileTag
|
|
74
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-2QUQKYOK.js";
|
|
75
77
|
import {
|
|
76
78
|
CACHE_DIR_NAME,
|
|
77
79
|
cleanupProxyCache
|
|
@@ -132,6 +134,7 @@ export {
|
|
|
132
134
|
MAX_UPLOAD_BYTES,
|
|
133
135
|
MAX_WINDOW_IDLE_MS,
|
|
134
136
|
MIME_TYPES,
|
|
137
|
+
PREVIEW_ALLOWED_HOSTS_ENV,
|
|
135
138
|
PREVIEW_BUNDLE_OPTIONS,
|
|
136
139
|
CACHE_DIR_NAME as PROXY_CACHE_DIR_NAME,
|
|
137
140
|
STUDIO_MANUAL_EDITS_PATH,
|
|
@@ -175,6 +178,7 @@ export {
|
|
|
175
178
|
openRangeEnd,
|
|
176
179
|
parseSourceDocument,
|
|
177
180
|
patchElementInHtml,
|
|
181
|
+
previewAllowedHostsFromEnv,
|
|
178
182
|
pruneGoneProjectHistories,
|
|
179
183
|
readProjectHistory,
|
|
180
184
|
reclaimUncopiedBlobs,
|
|
@@ -10,39 +10,40 @@ import {
|
|
|
10
10
|
renderJobObservabilityTelemetryPayload,
|
|
11
11
|
renderObservabilityTelemetryPayload,
|
|
12
12
|
startRenderCpuSampler
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-VMLPDIR6.js";
|
|
14
14
|
import {
|
|
15
15
|
HANDOFF_READY,
|
|
16
16
|
desktopDownloadUrl,
|
|
17
17
|
desktopInstalled,
|
|
18
18
|
insideHostApp,
|
|
19
19
|
openInDesktop
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-P74B5H73.js";
|
|
21
21
|
import {
|
|
22
22
|
resolveRenderBrowser
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-DYKBB5HB.js";
|
|
24
24
|
import "./chunk-54FVSPRH.js";
|
|
25
25
|
import {
|
|
26
26
|
loadSharpInBackground
|
|
27
27
|
} from "./chunk-NL4RCLQF.js";
|
|
28
28
|
import "./chunk-6BEFEWFB.js";
|
|
29
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-Q7FX7HOX.js";
|
|
30
30
|
import "./chunk-X7MTZ4T2.js";
|
|
31
31
|
import "./chunk-GGDJLN5I.js";
|
|
32
32
|
import {
|
|
33
33
|
seekCompositionTimeline
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-5IAFM6M5.js";
|
|
35
35
|
import {
|
|
36
36
|
GSAP_VENDOR_FILES,
|
|
37
37
|
readBundleFile,
|
|
38
38
|
resolveGsapVendorDir
|
|
39
39
|
} from "./chunk-OSDNRYQJ.js";
|
|
40
40
|
import "./chunk-262C25DQ.js";
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
41
|
+
import "./chunk-AGHSWES2.js";
|
|
42
|
+
import "./chunk-LRDS7MG5.js";
|
|
43
43
|
import "./chunk-YGGZ23BB.js";
|
|
44
44
|
import "./chunk-BJYCLZBQ.js";
|
|
45
45
|
import {
|
|
46
|
+
PREVIEW_ALLOWED_HOSTS_ENV,
|
|
46
47
|
PREVIEW_BUNDLE_OPTIONS,
|
|
47
48
|
affectsPreview,
|
|
48
49
|
clearElementScreenshotIsolation,
|
|
@@ -52,8 +53,12 @@ import {
|
|
|
52
53
|
createStudioApi,
|
|
53
54
|
getElementScreenshotClip,
|
|
54
55
|
getMimeType,
|
|
56
|
+
hostHeaderAllowed,
|
|
57
|
+
identityAllowed,
|
|
58
|
+
previewAllowedHostsFromEnv,
|
|
59
|
+
sameOriginPost,
|
|
55
60
|
thumbnailDeviceScaleFactor
|
|
56
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-G3WGKT3B.js";
|
|
57
62
|
import "./chunk-IX3K55NA.js";
|
|
58
63
|
import "./chunk-LMCFILEY.js";
|
|
59
64
|
import "./chunk-DONVZZLV.js";
|
|
@@ -69,18 +74,18 @@ import {
|
|
|
69
74
|
historyCache,
|
|
70
75
|
identifyFileWrite,
|
|
71
76
|
openProjectHistory
|
|
72
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-2QUQKYOK.js";
|
|
73
78
|
import "./chunk-V4Z37HFN.js";
|
|
74
79
|
import "./chunk-NFUXYBOR.js";
|
|
75
80
|
import "./chunk-ALVXFXUG.js";
|
|
76
81
|
import "./chunk-BZULWFMJ.js";
|
|
77
|
-
import "./chunk-
|
|
78
|
-
import "./chunk-
|
|
82
|
+
import "./chunk-AOPNJEQC.js";
|
|
83
|
+
import "./chunk-LIWK3MFR.js";
|
|
79
84
|
import {
|
|
80
85
|
resolveCaptureBrowserGpuMode,
|
|
81
86
|
resolveLocalBrowserGpuMode,
|
|
82
87
|
resolveLocalWebGpu
|
|
83
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-LDTJCZZ2.js";
|
|
84
89
|
import {
|
|
85
90
|
resolveAutoProxy
|
|
86
91
|
} from "./chunk-IYYZMZD2.js";
|
|
@@ -99,18 +104,18 @@ import {
|
|
|
99
104
|
renderMotionBlurTelemetryPayload,
|
|
100
105
|
trackRenderComplete,
|
|
101
106
|
trackRenderError
|
|
102
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-NTNS5EFN.js";
|
|
103
108
|
import {
|
|
104
109
|
canaryDecisionsForStudio,
|
|
105
110
|
resetTelemetryPostureCache,
|
|
106
111
|
shouldTrack
|
|
107
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-YJYEKNJG.js";
|
|
108
113
|
import "./chunk-PXVQOMKL.js";
|
|
109
114
|
import "./chunk-MCDNAIFF.js";
|
|
110
115
|
import "./chunk-LP7B3JLC.js";
|
|
111
116
|
import "./chunk-JNHJX2BZ.js";
|
|
112
117
|
import "./chunk-54HJ63Q2.js";
|
|
113
|
-
import "./chunk-
|
|
118
|
+
import "./chunk-JCNPHRGX.js";
|
|
114
119
|
import {
|
|
115
120
|
encoderJobOptions
|
|
116
121
|
} from "./chunk-VEIGTKYZ.js";
|
|
@@ -122,7 +127,7 @@ import "./chunk-ZB2XGJSP.js";
|
|
|
122
127
|
import {
|
|
123
128
|
assertWebGpuAdapterAvailable,
|
|
124
129
|
compositionRequiresWebGpu
|
|
125
|
-
} from "./chunk-
|
|
130
|
+
} from "./chunk-7GJKUOPX.js";
|
|
126
131
|
import "./chunk-Z5J67X44.js";
|
|
127
132
|
import "./chunk-5S7W3TUO.js";
|
|
128
133
|
import "./chunk-D3MUHMFG.js";
|
|
@@ -173,18 +178,18 @@ import "./chunk-BR2JQQC5.js";
|
|
|
173
178
|
import {
|
|
174
179
|
readConfig,
|
|
175
180
|
readConfigFresh
|
|
176
|
-
} from "./chunk-
|
|
181
|
+
} from "./chunk-AWD2MWWL.js";
|
|
177
182
|
import {
|
|
178
183
|
isDevMode
|
|
179
184
|
} from "./chunk-ISN5GRYI.js";
|
|
180
185
|
import "./chunk-GR2E54E6.js";
|
|
181
186
|
import "./chunk-ADVVQX4I.js";
|
|
182
187
|
import "./chunk-66W5IWLO.js";
|
|
183
|
-
import "./chunk-
|
|
188
|
+
import "./chunk-CPHQTXP5.js";
|
|
184
189
|
import "./chunk-QBXDU24O.js";
|
|
185
190
|
import {
|
|
186
191
|
VERSION
|
|
187
|
-
} from "./chunk-
|
|
192
|
+
} from "./chunk-SP5GQGP2.js";
|
|
188
193
|
import "./chunk-E63BDV4Z.js";
|
|
189
194
|
import {
|
|
190
195
|
detectAgentRuntime
|
|
@@ -408,7 +413,6 @@ function readFromNodeModules() {
|
|
|
408
413
|
}
|
|
409
414
|
|
|
410
415
|
// src/server/telemetryIdentity.ts
|
|
411
|
-
import { hostname, networkInterfaces } from "os";
|
|
412
416
|
function resolveCliTelemetryDistinctId() {
|
|
413
417
|
try {
|
|
414
418
|
if (!shouldTrack()) return null;
|
|
@@ -427,13 +431,6 @@ function resolveCliBucketSeed() {
|
|
|
427
431
|
return null;
|
|
428
432
|
}
|
|
429
433
|
}
|
|
430
|
-
function isLoopbackHost(host) {
|
|
431
|
-
if (!host) return false;
|
|
432
|
-
const bracketed = /^\[([^\]]+)\]/.exec(host);
|
|
433
|
-
const hostname2 = (bracketed ? bracketed[1] : host.split(":")[0])?.toLowerCase() ?? "";
|
|
434
|
-
if (hostname2 === "localhost" || hostname2 === "::1" || hostname2 === "0:0:0:0:0:0:0:1") return true;
|
|
435
|
-
return /^127\.\d{1,3}\.\d{1,3}\.\d{1,3}$/.test(hostname2);
|
|
436
|
-
}
|
|
437
434
|
function encodeInlineScriptValue(value) {
|
|
438
435
|
return JSON.stringify(value).replace(/</g, "\\u003c").replace(/\//g, "\\/");
|
|
439
436
|
}
|
|
@@ -471,44 +468,6 @@ function buildCliIdentityScript(options = {}) {
|
|
|
471
468
|
function buildStudioHeadScripts(envScript, options = {}) {
|
|
472
469
|
return `${buildCliIdentityScript(options)}${envScript}`;
|
|
473
470
|
}
|
|
474
|
-
function hostnameOf(host) {
|
|
475
|
-
if (!host) return "";
|
|
476
|
-
const bracketed = /^\[([^\]]+)\]/.exec(host);
|
|
477
|
-
return (bracketed ? bracketed[1] : host.split(":")[0])?.toLowerCase() ?? "";
|
|
478
|
-
}
|
|
479
|
-
function localNames() {
|
|
480
|
-
const names = /* @__PURE__ */ new Set();
|
|
481
|
-
try {
|
|
482
|
-
for (const entries of Object.values(networkInterfaces())) {
|
|
483
|
-
for (const entry of entries ?? []) names.add(entry.address.toLowerCase());
|
|
484
|
-
}
|
|
485
|
-
const self = hostname().toLowerCase();
|
|
486
|
-
if (self !== "") {
|
|
487
|
-
names.add(self);
|
|
488
|
-
names.add(`${self}.local`);
|
|
489
|
-
const short = self.split(".")[0];
|
|
490
|
-
if (short !== void 0 && short !== "") {
|
|
491
|
-
names.add(short);
|
|
492
|
-
names.add(`${short}.local`);
|
|
493
|
-
}
|
|
494
|
-
}
|
|
495
|
-
} catch {
|
|
496
|
-
}
|
|
497
|
-
return names;
|
|
498
|
-
}
|
|
499
|
-
function hostMatchesBind(host, bind) {
|
|
500
|
-
const requested = hostnameOf(host);
|
|
501
|
-
if (requested === "") return false;
|
|
502
|
-
const bound = bind.toLowerCase();
|
|
503
|
-
if (requested === bound) return true;
|
|
504
|
-
return bound === "0.0.0.0" || bound === "::" || bound === "*" ? localNames().has(requested) : false;
|
|
505
|
-
}
|
|
506
|
-
function identityAllowed(host) {
|
|
507
|
-
if (isLoopbackHost(host)) return true;
|
|
508
|
-
const bind = (process.env["HYPERFRAMES_PREVIEW_HOST"] ?? "").trim();
|
|
509
|
-
if (bind === "" || isLoopbackHost(bind)) return false;
|
|
510
|
-
return hostMatchesBind(host, bind);
|
|
511
|
-
}
|
|
512
471
|
function refreshTelemetryPosture() {
|
|
513
472
|
try {
|
|
514
473
|
readConfigFresh();
|
|
@@ -618,13 +577,14 @@ function emitStudioRenderComplete(opts, elapsedMs, perf, cpuUsage = {}) {
|
|
|
618
577
|
}
|
|
619
578
|
|
|
620
579
|
// src/server/desktopRoutes.ts
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
580
|
+
function urlSchemeOf(url) {
|
|
581
|
+
try {
|
|
582
|
+
return new URL(url).protocol.replace(/:$/, "") || void 0;
|
|
583
|
+
} catch {
|
|
584
|
+
return void 0;
|
|
585
|
+
}
|
|
627
586
|
}
|
|
587
|
+
var CTA_ID = /^[A-Za-z0-9-]{1,64}$/;
|
|
628
588
|
function mountDesktopRoutes(app, projectDir, {
|
|
629
589
|
ready = HANDOFF_READY,
|
|
630
590
|
open = (dir, cta, doc) => openInDesktop(dir, { cta, doc, src: "browser-editor" }),
|
|
@@ -646,7 +606,10 @@ function mountDesktopRoutes(app, projectDir, {
|
|
|
646
606
|
const allowed = sameOriginPost({
|
|
647
607
|
host: c.req.header("host"),
|
|
648
608
|
origin: c.req.header("origin"),
|
|
649
|
-
fetchSite: c.req.header("sec-fetch-site")
|
|
609
|
+
fetchSite: c.req.header("sec-fetch-site"),
|
|
610
|
+
proto: urlSchemeOf(c.req.url),
|
|
611
|
+
forwardedProto: c.req.header("x-forwarded-proto"),
|
|
612
|
+
forwardedHost: c.req.header("x-forwarded-host")
|
|
650
613
|
});
|
|
651
614
|
if (!allowed) return c.json({ error: "forbidden" }, 403);
|
|
652
615
|
if (!ready)
|
|
@@ -736,13 +699,13 @@ var RENDER_SHUTDOWN_WAIT_MS = 2e3;
|
|
|
736
699
|
var IMMUTABLE_CACHE_CONTROL = "public, max-age=31536000, immutable";
|
|
737
700
|
var REMOTE_GIF_IMG_SRC_RE = /<img\b[^>]*?\bsrc\s*=\s*["'](https?:\/\/[^"']+\.gif(?:[?#][^"']*)?)["'][^>]*>/gi;
|
|
738
701
|
async function loadStudioProducer() {
|
|
739
|
-
if (!isDevMode()) return await import("./src-
|
|
702
|
+
if (!isDevMode()) return await import("./src-CHPZUZZ3.js");
|
|
740
703
|
if (!process.versions.bun) {
|
|
741
704
|
throw new Error(
|
|
742
705
|
"Studio dev-mode rendering requires bun (the producer is loaded from TypeScript source, which Node cannot resolve). Restart the studio with `bun run studio`."
|
|
743
706
|
);
|
|
744
707
|
}
|
|
745
|
-
return await import("./src-
|
|
708
|
+
return await import("./src-CHPZUZZ3.js");
|
|
746
709
|
}
|
|
747
710
|
function resolveDistDir() {
|
|
748
711
|
return resolveStudioBundle().dir;
|
|
@@ -858,7 +821,7 @@ async function getThumbnailBrowser(requestedGpuMode, isShuttingDown) {
|
|
|
858
821
|
try {
|
|
859
822
|
if (isShuttingDown()) return null;
|
|
860
823
|
const { ensureBrowser } = await import("./manager-IAXYSRG5.js");
|
|
861
|
-
const { acquireBrowser, buildChromeArgs } = await import("./src-
|
|
824
|
+
const { acquireBrowser, buildChromeArgs } = await import("./src-NIMSUB4P.js");
|
|
862
825
|
let executablePath;
|
|
863
826
|
try {
|
|
864
827
|
const b = await ensureBrowser({ preferManagedChrome: true });
|
|
@@ -1047,9 +1010,9 @@ function createStudioServer(options) {
|
|
|
1047
1010
|
},
|
|
1048
1011
|
async transformPreviewHtml({ html, project: project2 }) {
|
|
1049
1012
|
const { injectDeterministicFontFaces } = await import("./deterministicFonts-SKRN3TCP.js");
|
|
1050
|
-
const { prepareAnimatedGifInputs } = await import("./animatedGifPrep-
|
|
1051
|
-
const { prepareHeifImageInputs } = await import("./heifImagePrep-
|
|
1052
|
-
const { downloadToTemp, writeUrlDownloadTelemetry } = await import("./urlDownloader-
|
|
1013
|
+
const { prepareAnimatedGifInputs } = await import("./animatedGifPrep-AVZAMI2D.js");
|
|
1014
|
+
const { prepareHeifImageInputs } = await import("./heifImagePrep-BOIWW7FW.js");
|
|
1015
|
+
const { downloadToTemp, writeUrlDownloadTelemetry } = await import("./urlDownloader-4RWM3UH2.js");
|
|
1053
1016
|
const gifOutputDir = join2(project2.dir, ".hyperframes", "prepared-assets", "gif");
|
|
1054
1017
|
const gifDownloadDir = join2(project2.dir, ".hyperframes", "prepared-assets", "downloads");
|
|
1055
1018
|
const heifOutputDir = join2(project2.dir, ".hyperframes", "prepared-assets", "heif");
|
|
@@ -1226,7 +1189,7 @@ function createStudioServer(options) {
|
|
|
1226
1189
|
startBackgroundRemoval(opts) {
|
|
1227
1190
|
return createBackgroundRemovalJob(opts, async (renderOpts) => {
|
|
1228
1191
|
const sourcePipelinePath = "../background-removal/pipeline.ts";
|
|
1229
|
-
const pipeline = await import("./pipeline-
|
|
1192
|
+
const pipeline = await import("./pipeline-5HUQFOCY.js").catch(
|
|
1230
1193
|
() => import(sourcePipelinePath)
|
|
1231
1194
|
);
|
|
1232
1195
|
return pipeline.render(renderOpts);
|
|
@@ -1321,7 +1284,7 @@ function createStudioServer(options) {
|
|
|
1321
1284
|
return loadAllItems(blockAndComponentEntries, registry);
|
|
1322
1285
|
},
|
|
1323
1286
|
async installRegistryBlock(opts) {
|
|
1324
|
-
const { addToProject, primaryInstalledTarget } = await import("./add-
|
|
1287
|
+
const { addToProject, primaryInstalledTarget } = await import("./add-JBBBMWP4.js");
|
|
1325
1288
|
const { recordRewrittenInstall } = await import("./installer-VPGNKCEU.js");
|
|
1326
1289
|
const { registryTargetPath } = await import("./publication-5KOANEHK.js");
|
|
1327
1290
|
const { result, item } = await addToProject({
|
|
@@ -1348,6 +1311,17 @@ function createStudioServer(options) {
|
|
|
1348
1311
|
}
|
|
1349
1312
|
};
|
|
1350
1313
|
const app = new Hono();
|
|
1314
|
+
const allowedHosts = previewAllowedHostsFromEnv();
|
|
1315
|
+
app.use(async function refuseUnknownHost(c, next) {
|
|
1316
|
+
const host = c.req.header("host") ?? new URL(c.req.url).host;
|
|
1317
|
+
if (hostHeaderAllowed(host, allowedHosts)) return next();
|
|
1318
|
+
return c.json(
|
|
1319
|
+
{
|
|
1320
|
+
error: `forbidden: host "${host}" is not allowed. Set ${PREVIEW_ALLOWED_HOSTS_ENV}=${host} to allow it (comma separated for several hosts).`
|
|
1321
|
+
},
|
|
1322
|
+
403
|
|
1323
|
+
);
|
|
1324
|
+
});
|
|
1351
1325
|
app.get("/__hyperframes_config", (c) => {
|
|
1352
1326
|
const serve = async () => {
|
|
1353
1327
|
const serverBuildSignature = await loadPreviewServerBuildSignature();
|
|
@@ -1427,8 +1401,8 @@ function createStudioServer(options) {
|
|
|
1427
1401
|
app.get("/api/environment/ffmpeg", async (c) => {
|
|
1428
1402
|
if (ffmpegReady) return c.json({ ok: true });
|
|
1429
1403
|
const [{ runEnvironmentChecks }, { getFFmpegInstallCommand }] = await Promise.all([
|
|
1430
|
-
import("./preflight-
|
|
1431
|
-
import("./ffmpeg-
|
|
1404
|
+
import("./preflight-NTJMXUS2.js"),
|
|
1405
|
+
import("./ffmpeg-OAKTUK5S.js")
|
|
1432
1406
|
]);
|
|
1433
1407
|
const { outcomes } = await runEnvironmentChecks();
|
|
1434
1408
|
const failed = outcomes.find((outcome) => !outcome.ok);
|
|
@@ -1447,7 +1421,7 @@ function createStudioServer(options) {
|
|
|
1447
1421
|
mountDesktopRoutes(app, projectDir);
|
|
1448
1422
|
let cachedFFmpegPath;
|
|
1449
1423
|
app.post("/api/projects/:id/render", async (c, next) => {
|
|
1450
|
-
const { findFFmpeg, getFFmpegInstallHint } = await import("./ffmpeg-
|
|
1424
|
+
const { findFFmpeg, getFFmpegInstallHint } = await import("./ffmpeg-OAKTUK5S.js");
|
|
1451
1425
|
if (!cachedFFmpegPath) {
|
|
1452
1426
|
cachedFFmpegPath = findFFmpeg();
|
|
1453
1427
|
}
|
|
@@ -1456,7 +1430,7 @@ function createStudioServer(options) {
|
|
|
1456
1430
|
}
|
|
1457
1431
|
return next();
|
|
1458
1432
|
});
|
|
1459
|
-
const api = createStudioApi(adapter);
|
|
1433
|
+
const api = createStudioApi(adapter, { allowedHosts });
|
|
1460
1434
|
app.all("/api/*", async (c) => {
|
|
1461
1435
|
const url = new URL(c.req.url);
|
|
1462
1436
|
url.pathname = url.pathname.slice(4);
|
|
@@ -1563,7 +1537,7 @@ function createStudioServer(options) {
|
|
|
1563
1537
|
});
|
|
1564
1538
|
const renders = [...inFlightRenders];
|
|
1565
1539
|
for (const [abortController] of renders) abortController.abort();
|
|
1566
|
-
const { killTrackedProcesses, closeBrowserPool } = await import("./src-
|
|
1540
|
+
const { killTrackedProcesses, closeBrowserPool } = await import("./src-NIMSUB4P.js");
|
|
1567
1541
|
killTrackedProcesses();
|
|
1568
1542
|
const closeBrowsers = Promise.allSettled([
|
|
1569
1543
|
closeThumbnailBrowser().catch(() => {
|
|
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
avSync
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-4TCEF2I7.js";
|
|
10
10
|
import {
|
|
11
11
|
jsonArg,
|
|
12
12
|
num,
|
|
@@ -15,17 +15,17 @@ import {
|
|
|
15
15
|
videoAndRoi,
|
|
16
16
|
videoArg,
|
|
17
17
|
window
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-SPPSVPY7.js";
|
|
19
19
|
import {
|
|
20
20
|
Fix
|
|
21
|
-
} from "./chunk-
|
|
22
|
-
import "./chunk-
|
|
21
|
+
} from "./chunk-2YZ6GA4E.js";
|
|
22
|
+
import "./chunk-Q7FX7HOX.js";
|
|
23
23
|
import {
|
|
24
24
|
defineCommand
|
|
25
25
|
} from "./chunk-DL4OD7IA.js";
|
|
26
26
|
import "./chunk-S3S4TGEH.js";
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-JCNPHRGX.js";
|
|
28
|
+
import "./chunk-7GJKUOPX.js";
|
|
29
29
|
import "./chunk-Z5J67X44.js";
|
|
30
30
|
import "./chunk-5S7W3TUO.js";
|
|
31
31
|
import "./chunk-D3MUHMFG.js";
|
|
@@ -55,16 +55,16 @@ import "./chunk-2RY2LWAA.js";
|
|
|
55
55
|
import "./chunk-WC4MTXGN.js";
|
|
56
56
|
import "./chunk-EPQC3FGZ.js";
|
|
57
57
|
import "./chunk-JOQR4AP6.js";
|
|
58
|
-
import "./chunk-
|
|
58
|
+
import "./chunk-UPVM6UDG.js";
|
|
59
59
|
import "./chunk-BR2JQQC5.js";
|
|
60
|
-
import "./chunk-
|
|
60
|
+
import "./chunk-AWD2MWWL.js";
|
|
61
61
|
import "./chunk-ISN5GRYI.js";
|
|
62
62
|
import "./chunk-GR2E54E6.js";
|
|
63
63
|
import "./chunk-ADVVQX4I.js";
|
|
64
64
|
import "./chunk-66W5IWLO.js";
|
|
65
|
-
import "./chunk-
|
|
65
|
+
import "./chunk-CPHQTXP5.js";
|
|
66
66
|
import "./chunk-QBXDU24O.js";
|
|
67
|
-
import "./chunk-
|
|
67
|
+
import "./chunk-SP5GQGP2.js";
|
|
68
68
|
import "./chunk-E63BDV4Z.js";
|
|
69
69
|
import "./chunk-LW33P24U.js";
|
|
70
70
|
import "./chunk-XT6MXC7A.js";
|
|
@@ -17,19 +17,19 @@ import {
|
|
|
17
17
|
trackInitTemplate,
|
|
18
18
|
trackRenderComplete,
|
|
19
19
|
trackRenderError
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-NTNS5EFN.js";
|
|
21
21
|
import {
|
|
22
22
|
flush,
|
|
23
23
|
flushSync,
|
|
24
24
|
shouldTrack,
|
|
25
25
|
showTelemetryNotice,
|
|
26
26
|
trackEvent
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-YJYEKNJG.js";
|
|
28
28
|
import "./chunk-PXVQOMKL.js";
|
|
29
29
|
import "./chunk-MCDNAIFF.js";
|
|
30
30
|
import "./chunk-LP7B3JLC.js";
|
|
31
31
|
import "./chunk-54HJ63Q2.js";
|
|
32
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-JCNPHRGX.js";
|
|
33
33
|
import "./chunk-RYT22J4V.js";
|
|
34
34
|
import "./chunk-FXMKHHPO.js";
|
|
35
35
|
import "./chunk-F24B2PLD.js";
|
|
@@ -57,14 +57,14 @@ import {
|
|
|
57
57
|
incrementCommandCount,
|
|
58
58
|
readConfig,
|
|
59
59
|
writeConfig
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-AWD2MWWL.js";
|
|
61
61
|
import "./chunk-ISN5GRYI.js";
|
|
62
62
|
import "./chunk-GR2E54E6.js";
|
|
63
63
|
import "./chunk-ADVVQX4I.js";
|
|
64
64
|
import "./chunk-66W5IWLO.js";
|
|
65
|
-
import "./chunk-
|
|
65
|
+
import "./chunk-CPHQTXP5.js";
|
|
66
66
|
import "./chunk-QBXDU24O.js";
|
|
67
|
-
import "./chunk-
|
|
67
|
+
import "./chunk-SP5GQGP2.js";
|
|
68
68
|
import "./chunk-E63BDV4Z.js";
|
|
69
69
|
import "./chunk-LW33P24U.js";
|
|
70
70
|
import "./chunk-XT6MXC7A.js";
|
|
@@ -10,14 +10,14 @@ import {
|
|
|
10
10
|
import "./chunk-S3S4TGEH.js";
|
|
11
11
|
import {
|
|
12
12
|
c
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-JCNPHRGX.js";
|
|
14
14
|
import {
|
|
15
15
|
CONFIG_PATH,
|
|
16
16
|
STATE_PATH,
|
|
17
17
|
effectiveTelemetryStatus,
|
|
18
18
|
readConfigFresh,
|
|
19
19
|
writeConfigWithResult
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-AWD2MWWL.js";
|
|
21
21
|
import "./chunk-ISN5GRYI.js";
|
|
22
22
|
import "./chunk-GR2E54E6.js";
|
|
23
23
|
import {
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
failCommand,
|
|
26
26
|
failUsage
|
|
27
27
|
} from "./chunk-66W5IWLO.js";
|
|
28
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-CPHQTXP5.js";
|
|
29
29
|
import "./chunk-E63BDV4Z.js";
|
|
30
30
|
import "./chunk-LW33P24U.js";
|
|
31
31
|
import "./chunk-XT6MXC7A.js";
|
|
@@ -9,11 +9,11 @@ import {
|
|
|
9
9
|
} from "./chunk-3S27CPV7.js";
|
|
10
10
|
import {
|
|
11
11
|
billingBaseUrl
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-WGVWW6O4.js";
|
|
13
13
|
import {
|
|
14
14
|
resolveCloudAuthHeaders
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-ZLDYDO64.js";
|
|
16
|
+
import "./chunk-7NDF2MO3.js";
|
|
17
17
|
import {
|
|
18
18
|
projectConfigPath,
|
|
19
19
|
seedProjectAuthoringSkill
|
|
@@ -34,8 +34,8 @@ import {
|
|
|
34
34
|
import "./chunk-F2GWIWHN.js";
|
|
35
35
|
import {
|
|
36
36
|
trackSkillCommandRan
|
|
37
|
-
} from "./chunk-
|
|
38
|
-
import "./chunk-
|
|
37
|
+
} from "./chunk-NTNS5EFN.js";
|
|
38
|
+
import "./chunk-YJYEKNJG.js";
|
|
39
39
|
import "./chunk-PXVQOMKL.js";
|
|
40
40
|
import "./chunk-MCDNAIFF.js";
|
|
41
41
|
import "./chunk-LP7B3JLC.js";
|
|
@@ -47,7 +47,7 @@ import "./chunk-JNHJX2BZ.js";
|
|
|
47
47
|
import "./chunk-54HJ63Q2.js";
|
|
48
48
|
import {
|
|
49
49
|
c
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-JCNPHRGX.js";
|
|
51
51
|
import {
|
|
52
52
|
createStagingDir
|
|
53
53
|
} from "./chunk-IEXRKKHC.js";
|
|
@@ -72,16 +72,16 @@ import "./chunk-WC4MTXGN.js";
|
|
|
72
72
|
import "./chunk-EPQC3FGZ.js";
|
|
73
73
|
import "./chunk-JOQR4AP6.js";
|
|
74
74
|
import "./chunk-BR2JQQC5.js";
|
|
75
|
-
import "./chunk-
|
|
75
|
+
import "./chunk-AWD2MWWL.js";
|
|
76
76
|
import "./chunk-ISN5GRYI.js";
|
|
77
77
|
import "./chunk-GR2E54E6.js";
|
|
78
78
|
import "./chunk-ADVVQX4I.js";
|
|
79
79
|
import {
|
|
80
80
|
failCommand
|
|
81
81
|
} from "./chunk-66W5IWLO.js";
|
|
82
|
-
import "./chunk-
|
|
82
|
+
import "./chunk-CPHQTXP5.js";
|
|
83
83
|
import "./chunk-QBXDU24O.js";
|
|
84
|
-
import "./chunk-
|
|
84
|
+
import "./chunk-SP5GQGP2.js";
|
|
85
85
|
import "./chunk-E63BDV4Z.js";
|
|
86
86
|
import "./chunk-LW33P24U.js";
|
|
87
87
|
import "./chunk-XT6MXC7A.js";
|