hyperframes 0.9.8 → 0.9.9
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-KCOZUTMS.js → add-FQX5F6PC.js} +12 -12
- package/dist/{agentPromptGenerator-P75AWDLA.js → agentPromptGenerator-XNGPKVEX.js} +9 -9
- package/dist/{animatedGifPrep-OBZTJQ7X.js → animatedGifPrep-E3PYKFJ3.js} +9 -9
- package/dist/api.js +29 -29
- package/dist/{asset-N3A7GB3E.js → asset-X5GG5TTP.js} +2 -2
- package/dist/{assetCataloger-OQYRQZLW.js → assetCataloger-SDFP4DWL.js} +10 -10
- package/dist/{audio-KCKNENFH.js → audio-DDTYFS23.js} +26 -26
- package/dist/{auth-Y72WHJCW.js → auth-OAWLDT3A.js} +2 -2
- package/dist/{autoUpdate-DLNFGTN2.js → autoUpdate-BWIPXW2W.js} +23 -16
- package/dist/{backgroundChecks-EFVHAYNQ.js → backgroundChecks-YJ5NRMBA.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{batchRender-JKOGFHLU.js → batchRender-ZDL65J7N.js} +4 -4
- package/dist/{beats-RIKKG4N7.js → beats-Q2TIAA7S.js} +11 -11
- package/dist/{benchmark-7TCK3SGH.js → benchmark-I3GRHFIN.js} +9 -9
- package/dist/{billing-JBG45ON2.js → billing-W224NIAM.js} +1 -1
- package/dist/{browser-4BF7NKPF.js → browser-F24WMZ52.js} +3 -3
- package/dist/{bundleWithLocalizedFonts-PAWHGZRW.js → bundleWithLocalizedFonts-K5CQPNIZ.js} +2 -2
- package/dist/{capture-5PZTT5O7.js → capture-HLC6I4RE.js} +3 -3
- package/dist/{capture-H7UDNHF2.js → capture-UKWY3SZQ.js} +22 -22
- package/dist/{captureCompositionFrame-LR2XKVKX.js → captureCompositionFrame-YMB3CKSP.js} +14 -14
- package/dist/{catalog-4W5XDIKM.js → catalog-H7SOITD6.js} +12 -12
- package/dist/{catch-up-H2Y2WRIA.js → catch-up-YRGPVEM6.js} +4 -4
- package/dist/{check-NG6FULCN.js → check-BPQZZ2MO.js} +44 -44
- package/dist/{checkAudio-HI5ICPRV.js → checkAudio-4NRQ3WGS.js} +17 -17
- package/dist/{checkBrowser-YPPMCXET.js → checkBrowser-S66AHKW3.js} +37 -37
- package/dist/{chunk-VKWAW4JW.js → chunk-2NGBIAUF.js} +19 -19
- package/dist/{chunk-6RD46YOJ.js → chunk-2QMEP4LR.js} +1 -1
- package/dist/{chunk-5D23BECZ.js → chunk-2ROPUTCS.js} +1 -1
- package/dist/{chunk-VLHCR3G2.js → chunk-2Y575PWJ.js} +2 -2
- package/dist/{chunk-ZJ5ZLU2I.js → chunk-322AG75G.js} +2 -2
- package/dist/{chunk-WF4TXIXY.js → chunk-3DWH6Z5U.js} +1 -1
- package/dist/{chunk-VX3JUOZ6.js → chunk-42TYQPES.js} +2 -2
- package/dist/{chunk-GZZE2OJP.js → chunk-4W5X4S47.js} +9 -8
- package/dist/{chunk-6CEQCL6O.js → chunk-5YIZRU2L.js} +3 -3
- package/dist/{chunk-UQDO2L6F.js → chunk-62ATHBDS.js} +17 -14
- package/dist/{chunk-RPVL65M7.js → chunk-63GTSNMY.js} +6 -6
- package/dist/{chunk-TLBSOI2R.js → chunk-6DKWOG7L.js} +1 -1
- package/dist/{chunk-XPN7SDFQ.js → chunk-6HO6QKYG.js} +9 -9
- package/dist/{chunk-KKPYNKZD.js → chunk-6KV3CMY2.js} +1 -1
- package/dist/{chunk-7TAS4BNT.js → chunk-6UZLHLFP.js} +2 -2
- package/dist/{chunk-THSTFHB7.js → chunk-7RM3TB62.js} +29 -2
- package/dist/{chunk-GSZAUB3W.js → chunk-7W5ZDOLW.js} +2 -2
- package/dist/{chunk-QTEU6NL3.js → chunk-A2NFFVWH.js} +5 -5
- package/dist/{chunk-D7THUO4V.js → chunk-A33GFLPY.js} +22 -2
- package/dist/{chunk-74VSOKKS.js → chunk-ABI256T5.js} +1 -1
- package/dist/{chunk-YXIXTFRO.js → chunk-AH6MUQQC.js} +2 -2
- package/dist/{chunk-QXVW22VM.js → chunk-ASGRVFQ3.js} +1 -0
- package/dist/{chunk-7DQHV322.js → chunk-AUYRWWFL.js} +3 -3
- package/dist/{chunk-FNNNGI42.js → chunk-AVNF52HR.js} +1 -1
- package/dist/{chunk-ODIGIQ4C.js → chunk-B5GWDPUO.js} +3 -3
- package/dist/{chunk-4WJKSTDS.js → chunk-BBP5KGYS.js} +3 -3
- package/dist/{chunk-JCOECSLT.js → chunk-BHL4KN3H.js} +2 -2
- package/dist/{chunk-HVBQL3PZ.js → chunk-BX2JB24X.js} +1 -1
- package/dist/{chunk-UUW654GD.js → chunk-BXYB5NGT.js} +2 -2
- package/dist/{chunk-6DTXWYZA.js → chunk-BYC4C4YY.js} +9 -9
- package/dist/{chunk-7HRQOEYY.js → chunk-C3NC67BB.js} +8 -8
- package/dist/{chunk-RULCW25D.js → chunk-CBPBTQBH.js} +13 -13
- package/dist/{chunk-WY4J37EZ.js → chunk-CNX3WKQ5.js} +30 -8
- package/dist/{chunk-RWQANKWK.js → chunk-CPMTEWQM.js} +3 -3
- package/dist/{chunk-NU5LJYAT.js → chunk-CUYVIDGF.js} +4 -3
- package/dist/{chunk-2MUWGYXQ.js → chunk-DIKIN4BA.js} +29 -29
- package/dist/{chunk-BCQ42FAS.js → chunk-E2YXF2EP.js} +3 -3
- package/dist/{chunk-OYN54RSU.js → chunk-EBUA6NWH.js} +2 -2
- package/dist/{chunk-DHIXDUET.js → chunk-EN6MPNZT.js} +4 -4
- package/dist/{chunk-MNX7CK5N.js → chunk-GAKRZZHQ.js} +2 -2
- package/dist/{chunk-457LNKMV.js → chunk-GIYZMGYT.js} +1 -1
- package/dist/{chunk-UPN4UMT7.js → chunk-H534266X.js} +2 -2
- package/dist/{chunk-SBA4NG7Q.js → chunk-HBHLCMOQ.js} +7 -7
- package/dist/{chunk-ZK3GFNHM.js → chunk-HUJMTTKR.js} +152 -26
- package/dist/{chunk-WVH6VWMY.js → chunk-JZPUXDQE.js} +4 -4
- package/dist/{chunk-SACHIPZP.js → chunk-LR5NVYZT.js} +1 -1
- package/dist/{chunk-QPTQSM3D.js → chunk-LTBBFLOM.js} +1 -1
- package/dist/{chunk-7VHS56BT.js → chunk-LV5SL4YW.js} +2 -2
- package/dist/{chunk-Q3SKYJGG.js → chunk-M6JFR7KF.js} +18 -5
- package/dist/{chunk-2ZQ7BZOS.js → chunk-MDMQD6BV.js} +6 -6
- package/dist/{chunk-JP2ZSFRJ.js → chunk-MWHTLXG4.js} +4 -54
- package/dist/{chunk-TODLF56D.js → chunk-MY4PAH7C.js} +1 -1
- package/dist/{chunk-NUFOXUDF.js → chunk-N6FGHJ7X.js} +53 -29
- package/dist/{chunk-ECJCBLME.js → chunk-N74N2I2K.js} +1 -1
- package/dist/{chunk-3BCLDK6O.js → chunk-NCP3JQ6S.js} +99 -93
- package/dist/{chunk-W5VDIXYL.js → chunk-NNF6G2UH.js} +1 -1
- package/dist/{chunk-M336YVCP.js → chunk-NWQFOHXF.js} +1 -1
- package/dist/{chunk-ZAOQWCZM.js → chunk-NX2X326Z.js} +9 -9
- package/dist/{chunk-E2SVAOS6.js → chunk-OAFGA2FR.js} +4 -3
- package/dist/{chunk-AC3TSGGG.js → chunk-OYAZODSP.js} +28 -28
- package/dist/{chunk-4MDLXE3N.js → chunk-PPMCILED.js} +37 -5
- package/dist/{chunk-DT6NGXSS.js → chunk-Q3IT7I2K.js} +1 -1
- package/dist/{chunk-3YZ3LNXV.js → chunk-QOF7XZEI.js} +1 -1
- package/dist/{chunk-F6GJUCIY.js → chunk-QRCORKYC.js} +2 -2
- package/dist/{chunk-ZAXAT2D7.js → chunk-QUBVGS27.js} +5 -5
- package/dist/{chunk-BUYV2WGV.js → chunk-R7EKEIAK.js} +1 -1
- package/dist/{chunk-RGYPRUQP.js → chunk-S2UKSI3C.js} +1 -1
- package/dist/{chunk-TDIYINK6.js → chunk-SG4YBQPY.js} +2 -2
- package/dist/chunk-SRVAYGTN.js +62 -0
- package/dist/{chunk-K6QVKO7M.js → chunk-SSZTRWKQ.js} +2 -2
- package/dist/{chunk-X422IJKF.js → chunk-TJ2USKCK.js} +1 -1
- package/dist/{chunk-Y3RERZRQ.js → chunk-TZBJEKKU.js} +1 -1
- package/dist/{chunk-L3ZVUQGN.js → chunk-UWYHZCEQ.js} +2 -2
- package/dist/{chunk-3LLFF6EE.js → chunk-V74HSKGY.js} +1 -1
- package/dist/{chunk-CUR5UYYJ.js → chunk-VM6T3Z6B.js} +1 -1
- package/dist/{chunk-CCFSUSAE.js → chunk-VNR7LSN4.js} +50 -11
- package/dist/{chunk-HFNB2CG3.js → chunk-VZ5O7A77.js} +1 -1
- package/dist/{chunk-6ZICZOMN.js → chunk-W5AUD5OL.js} +2 -2
- package/dist/{chunk-BGHKFD3T.js → chunk-WWBEAKTO.js} +10 -2
- package/dist/{chunk-UGUYWTWD.js → chunk-XLPCBE2Q.js} +4 -4
- package/dist/{chunk-5SCOPSVL.js → chunk-XTYNW745.js} +1 -1
- package/dist/{chunk-BGMMC352.js → chunk-XX77LLFJ.js} +6 -6
- package/dist/chunk-Y3ICFPFK.js +5035 -0
- package/dist/{chunk-NST5G3WX.js → chunk-YTNHZT47.js} +2 -2
- package/dist/{chunk-H4D2X5N3.js → chunk-ZD3MK4H5.js} +1 -1
- package/dist/{chunk-6A4RAHMF.js → chunk-ZLN3AJKT.js} +1 -1
- package/dist/{clean-VPOP4TU4.js → clean-RCXKQNFM.js} +23 -23
- package/dist/cli.js +61 -60
- package/dist/{cloud-Q7ZXCZ6E.js → cloud-TQPQZRC5.js} +4 -4
- package/dist/cloud-Z3FNCC4T.js +39 -0
- package/dist/{cloudrun-6DVAE7GG.js → cloudrun-N737TJRC.js} +6 -6
- package/dist/{compare-X5SWN5XJ.js → compare-EO32AASM.js} +34 -34
- package/dist/{compiler-N4TTEEQC.js → compiler-NAIDMQFU.js} +6 -6
- package/dist/{component-MJXAMRKF.js → component-S3TYNVCR.js} +3 -3
- package/dist/{compositions-F3ZHG5F4.js → compositions-4TXRLZ3M.js} +15 -15
- package/dist/{curve-4TWENQO7.js → curve-HGLOP2GY.js} +13 -13
- package/dist/{cuts-X3LE5A2K.js → cuts-VNFIISLL.js} +14 -14
- package/dist/{delete-MYHKF3MS.js → delete-TIWI3G7X.js} +7 -5
- package/dist/{deploy-OP2BHWCQ.js → deploy-EHPNOGSY.js} +6 -6
- package/dist/{describeProject-ZMKVHAYX.js → describeProject-DN6YQU3X.js} +10 -10
- package/dist/{deterministicFonts-H4RC6TOJ.js → deterministicFonts-GQMT52JQ.js} +2 -2
- package/dist/{diff-7ZNSFBKV.js → diff-46JK5ZCL.js} +156 -76
- package/dist/dist-CCPYPKOC.js +197 -0
- package/dist/{dist-SWPSKAAJ.js → dist-GUX66F7V.js} +3 -3
- package/dist/{dist-H4C7ZCFU.js → dist-PCVNVAVC.js} +4 -4
- package/dist/{doctor-ABSXYNXY.js → doctor-LD23DW4N.js} +13 -13
- package/dist/{energy-X2OAWHME.js → energy-YZ3DB6AI.js} +14 -14
- package/dist/{events-4MDK4K7Q.js → events-3OWNDNJX.js} +3 -3
- package/dist/{events-26SWSHDR.js → events-DRTMYSQ6.js} +2 -2
- package/dist/{events-JFIZSYMH.js → events-MQIKCKA5.js} +16 -16
- package/dist/{extract-4O3Q3LOD.js → extract-F3NBE3X5.js} +14 -14
- package/dist/{face-7J7AQJDY.js → face-ZU7ZDYGO.js} +14 -14
- package/dist/{feedback-CVTJDQIX.js → feedback-37M37Y4F.js} +8 -8
- package/dist/{ffmpeg-EE2NKQT4.js → ffmpeg-PERZ6YHQ.js} +9 -9
- package/dist/{figma-55J7UDDC.js → figma-55AG42NN.js} +3 -3
- package/dist/fontLocalizeCli.js +15 -15
- package/dist/{frames-OZLUDUOS.js → frames-DJA3CFSY.js} +19 -16
- package/dist/{generate-CY2TRPRE.js → generate-BVJ5XNWP.js} +18 -18
- package/dist/{get-HJHSVKGK.js → get-PGLCWEBG.js} +7 -5
- package/dist/{gpuPolicy-LZFNAIJB.js → gpuPolicy-DUNSQM6M.js} +9 -9
- package/dist/{grade-compare-JVTYF2T6.js → grade-compare-R6Q6G6WP.js} +34 -34
- package/dist/{heifImagePrep-OGFEQMQT.js → heifImagePrep-YNPHFR6W.js} +10 -10
- package/dist/{help-6WDI76YU.js → help-4SNDXHWQ.js} +2 -1
- package/dist/{history-FIP5NGFC.js → history-NKRHKIE2.js} +10 -10
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +65 -65
- package/dist/hyperframes-player.global.js +1 -1
- package/dist/{info-WTGJE4QB.js → info-U4VDKU2Y.js} +8 -8
- package/dist/{init-UYTDM56U.js → init-2RUVBHQO.js} +29 -29
- package/dist/{ink-BTLAE3ZR.js → ink-TX3USU7X.js} +14 -14
- package/dist/{inspect-KIMJNTS4.js → inspect-MAGHXEWS.js} +34 -34
- package/dist/{installer-6GSD3CVW.js → installer-PUQYKLXZ.js} +5 -5
- package/dist/{keyframes-74LK522L.js → keyframes-2TDECIQZ.js} +6 -6
- package/dist/{lambda-CJ7P5NLO.js → lambda-CRVYDETX.js} +15 -15
- package/dist/{layout-RLIXTM56.js → layout-I3VNHWJH.js} +34 -34
- package/dist/{lint-IOJB746U.js → lint-MCVWXDJX.js} +10 -10
- package/dist/{lintProject-NZADSVSU.js → lintProject-EV3EEBY3.js} +4 -4
- package/dist/{list-V3TMQEQV.js → list-FJJNWPM6.js} +7 -5
- package/dist/{localPage-5LUCH2RM.js → localPage-6MQ6YFER.js} +9 -9
- package/dist/{login-GNVKQO3W.js → login-YAZZWYFK.js} +4 -4
- package/dist/{look-3QZIJFNX.js → look-U5UHXPUQ.js} +14 -14
- package/dist/{manager-3QTARUMT.js → manager-ARXEX6OP.js} +10 -10
- package/dist/{measure-7LUYTL2E.js → measure-JAPDVQ5X.js} +11 -11
- package/dist/{media-treatment-MYDIYP5I.js → media-treatment-A4Z32NGP.js} +15 -15
- package/dist/{media-use-UDBHEIYA.js → media-use-6HX7JHRD.js} +17 -11
- package/dist/{models-S5CT7CST.js → models-GMJODMZ5.js} +13 -13
- package/dist/{motionShot-U3TSHI33.js → motionShot-Z63I3GO7.js} +17 -17
- package/dist/{normalize-audio-ZETO53KI.js → normalize-audio-45CHOWKY.js} +10 -10
- package/dist/{open-UEJMPEPN.js → open-RSTNLDYI.js} +12 -12
- package/dist/{parakeetRunner-2KFML7ZA.js → parakeetRunner-K4EGDDVH.js} +14 -14
- package/dist/{pipeline-2TPI5L2C.js → pipeline-EKLTELWF.js} +12 -12
- package/dist/{play-XH2XKNCL.js → play-BYIEIRQQ.js} +25 -25
- package/dist/{preflight-L5P4QXXH.js → preflight-TC6ZW3GB.js} +10 -10
- package/dist/{present-XXEU7RTN.js → present-5B5VQKT5.js} +20 -20
- package/dist/{preview-V6LNVTBH.js → preview-5O2HT2WF.js} +23 -23
- package/dist/{probe-JL4JSTSP.js → probe-ZGK6DBAR.js} +14 -14
- package/dist/{producer-RLZ64COI.js → producer-RFTB2APL.js} +1 -1
- package/dist/{projectConfig-3IK4M62D.js → projectConfig-PUAOWUNS.js} +7 -7
- package/dist/{publication-4I6P772E.js → publication-K4XAMUI6.js} +3 -3
- package/dist/{publish-TOPACGPR.js → publish-7W46NJFT.js} +13 -13
- package/dist/{remove-background-CNXM4XJN.js → remove-background-LURZDSDJ.js} +13 -13
- package/dist/{render-XAE2YCRZ.js → render-7HIEI7QP.js} +46 -46
- package/dist/{render-OD3XEIBG.js → render-EF7Y6YYC.js} +6 -6
- package/dist/{render-WCLJ4GPZ.js → render-ETZ3WAJO.js} +39 -37
- package/dist/{render-batch-QM4SW65U.js → render-batch-JYYP4RXA.js} +6 -6
- package/dist/renderSetupWorker.js +4 -4
- package/dist/{resolver-K2UZSBCZ.js → resolver-BKFLETMU.js} +5 -5
- package/dist/{reverse-JGOZUFKK.js → reverse-VPBNBP2Q.js} +1 -1
- package/dist/{run-2JI4VCW5.js → run-XER4YJY5.js} +3 -3
- package/dist/{sherpa-OIJBFCKZ.js → sherpa-D6FQ3CHN.js} +13 -13
- package/dist/skills/media-use/SKILL.md +2 -2
- package/dist/skills/media-use/references/heygen.md +17 -9
- package/dist/skills/media-use/references/operations.md +14 -13
- package/dist/skills/media-use/scripts/lib/adopt.mjs +11 -0
- package/dist/skills/media-use/scripts/lib/adopt.test.mjs +26 -0
- package/dist/skills/media-use/scripts/lib/registry.mjs +2 -1
- package/dist/skills/media-use/scripts/lib/registry.test.mjs +5 -6
- package/dist/skills/media-use/scripts/lib/sfx-provider.mjs +23 -0
- package/dist/skills/media-use/scripts/resolve.mjs +3 -1
- package/dist/{skills-L4AWBUJJ.js → skills-EBVQSIK4.js} +22 -12
- package/dist/{skillsUpdateCheck-GSX5MLON.js → skillsUpdateCheck-7VXK4R4J.js} +3 -3
- package/dist/{snapshot-5FK3HCJ7.js → snapshot-PJUNSMDS.js} +49 -46
- package/dist/{src-HKLKN7AE.js → src-RL6YEPTD.js} +10 -10
- package/dist/{src-JT324RDD.js → src-SMIMKSHZ.js} +18 -18
- package/dist/{start-5O33EGN2.js → start-5ZDH643Z.js} +19 -19
- package/dist/{staticProjectServer-CWKMUI6O.js → staticProjectServer-BX4RWEY5.js} +21 -21
- package/dist/{status-MPCREDMQ.js → status-4LLUW5YT.js} +1 -1
- package/dist/studio/assets/{hyperframes-player-D7kdypzS.js → hyperframes-player-CcNGHTev.js} +1 -1
- package/dist/studio/assets/{index-BT1zmedz.js → index-D9uDed3x.js} +1 -1
- package/dist/studio/assets/{index-CaOrmH_8.js → index-DSRgrCDX.js} +118 -118
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-24HJ5KQX.js → studio-api-PEUXVD7P.js} +17 -17
- package/dist/{studioServer-KKGBELBR.js → studioServer-2WIQBEQC.js} +61 -61
- package/dist/{sync-BT4WDK3B.js → sync-P3O3WZWT.js} +19 -16
- package/dist/{telemetry-77PW2F7B.js → telemetry-267LV4SC.js} +3 -3
- package/dist/templates/_shared/AGENTS.md +1 -0
- package/dist/templates/_shared/CLAUDE.md +1 -0
- package/dist/templates-MQ742KVZ.js +173 -0
- package/dist/{timeline-RKJ63VIU.js → timeline-WP7AZAQC.js} +24 -24
- package/dist/{tokens-JATS65YH.js → tokens-ROFKR7AE.js} +2 -2
- package/dist/{transcribe-ELWJ6NYG.js → transcribe-N66QUYCS.js} +12 -12
- package/dist/{transcribe-FYBJBBP3.js → transcribe-WS2STSCJ.js} +23 -23
- package/dist/{tts-JHGGL7GL.js → tts-HIQMJU6O.js} +1 -1
- package/dist/{updateCheck-NU374MVC.js → updateCheck-M2SMSDIO.js} +2 -2
- package/dist/{upgrade-VIWR25J6.js → upgrade-ZUWFB2QM.js} +2 -2
- package/dist/upload-L5TSWWIU.js +16 -0
- package/dist/{urlDownloader-MVZYN7XB.js → urlDownloader-YNI3Y3IE.js} +8 -8
- package/dist/{validate-3HM2XCH4.js → validate-M2M37G47.js} +28 -28
- package/dist/{video-H4ASUN7D.js → video-2OEOTSPQ.js} +10 -10
- package/dist/warmCheck.js +44 -44
- package/package.json +1 -1
- package/dist/chunk-N3CZ437C.js +0 -5035
- package/dist/{chunk-GSNSSFT7.js → chunk-G3ERWPNV.js} +0 -0
- package/dist/{chunk-T5ELONXY.js → chunk-JHILL4BN.js} +0 -0
- package/dist/{destroy-IQLGADZM.js → destroy-C5GQLZVZ.js} +4 -4
- package/dist/{synthesize-YYT7UON6.js → synthesize-YK3WLOEQ.js} +5 -5
|
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
decode,
|
|
9
9
|
meanAbsDiff
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-A33GFLPY.js";
|
|
11
11
|
|
|
12
12
|
// src/measure/cuts.ts
|
|
13
13
|
var SIG_W = 64;
|
|
@@ -28,6 +28,7 @@ var MAX_CUT_FRAMES = 3;
|
|
|
28
28
|
var FLASH_FRAMES = 4;
|
|
29
29
|
var RETURNED = 0.4;
|
|
30
30
|
var SAME_TONES = 0.8;
|
|
31
|
+
var IN_MOTION = 0.3;
|
|
31
32
|
function signatures(input, filters = []) {
|
|
32
33
|
return decode(input, [...filters, `scale=${SIG_W}:${SIG_H}:flags=area`], SIG_W, SIG_H, true);
|
|
33
34
|
}
|
|
@@ -74,6 +75,31 @@ var sharedTones = (a, b) => {
|
|
|
74
75
|
const after = tones(b);
|
|
75
76
|
return tones(a).reduce((sum, share, bin) => sum + Math.min(share, after[bin]), 0);
|
|
76
77
|
};
|
|
78
|
+
function moved(f, s, dx, dy) {
|
|
79
|
+
const out = new Uint8Array(f.length);
|
|
80
|
+
const cx = (SIG_W - 1) / 2;
|
|
81
|
+
const cy = (SIG_H - 1) / 2;
|
|
82
|
+
for (let y = 0; y < SIG_H; y++) {
|
|
83
|
+
const sy = Math.min(SIG_H - 1, Math.max(0, Math.round((y - cy - dy) / s + cy)));
|
|
84
|
+
for (let x = 0; x < SIG_W; x++) {
|
|
85
|
+
const sx = Math.min(SIG_W - 1, Math.max(0, Math.round((x - cx - dx) / s + cx)));
|
|
86
|
+
out[y * SIG_W + x] = f[sy * SIG_W + sx];
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
return out;
|
|
90
|
+
}
|
|
91
|
+
function movedChange(before, after) {
|
|
92
|
+
let least = meanAbsDiff(before, after);
|
|
93
|
+
for (let s = 0.8; s <= 1.25; s += 0.025)
|
|
94
|
+
for (let dx = -6; dx <= 6; dx++)
|
|
95
|
+
for (let dy = -4; dy <= 4; dy++)
|
|
96
|
+
least = Math.min(least, meanAbsDiff(moved(before, s, dx, dy), after));
|
|
97
|
+
return least;
|
|
98
|
+
}
|
|
99
|
+
function isMove(frames, diffs, c, end) {
|
|
100
|
+
const inMotion = Math.min(diffs[c.frame - 1] ?? 0, diffs[end] ?? 0) >= IN_MOTION * c.change;
|
|
101
|
+
return inMotion && movedChange(frames[c.frame - 1], frames[end - 1]) < RETURNED * c.change;
|
|
102
|
+
}
|
|
77
103
|
function classifiedCuts(frames) {
|
|
78
104
|
const diffs = frameChanges(frames);
|
|
79
105
|
return cutsIn(diffs).map((c) => {
|
|
@@ -88,7 +114,8 @@ function classifiedCuts(frames) {
|
|
|
88
114
|
const returns = Array.from({ length: FLASH_FRAMES }, (_, k) => k + 1).some(
|
|
89
115
|
(k) => back(c.frame - 1, end - 1 + k) || back(c.frame - k, end)
|
|
90
116
|
);
|
|
91
|
-
|
|
117
|
+
if (returns) return { ...c, kind: "flash" };
|
|
118
|
+
return isMove(frames, diffs, c, end) ? { ...c, kind: "fast" } : c;
|
|
92
119
|
});
|
|
93
120
|
}
|
|
94
121
|
function findCuts(frames) {
|
|
@@ -13,10 +13,10 @@ import {
|
|
|
13
13
|
} from "./chunk-XQ26I3PL.js";
|
|
14
14
|
import {
|
|
15
15
|
createProjectConfig
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-S2UKSI3C.js";
|
|
17
17
|
import {
|
|
18
18
|
isHyperframesProject
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-W5AUD5OL.js";
|
|
20
20
|
|
|
21
21
|
// src/utils/desktopApp.ts
|
|
22
22
|
import { spawn, spawnSync } from "child_process";
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
} from "./chunk-J3OVTOVC.js";
|
|
17
17
|
import {
|
|
18
18
|
runEnvironmentChecks
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-VZ5O7A77.js";
|
|
20
20
|
import {
|
|
21
21
|
OPTIONAL_PACKAGES,
|
|
22
22
|
installedOptionalPackageVersion
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
} from "./chunk-2GICKZ3I.js";
|
|
30
30
|
import {
|
|
31
31
|
resolveExtractCacheDir
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-N6FGHJ7X.js";
|
|
33
33
|
import {
|
|
34
34
|
getFreeDiskMb,
|
|
35
35
|
getShmSizeMb,
|
|
@@ -41,14 +41,14 @@ import {
|
|
|
41
41
|
import {
|
|
42
42
|
getUpdateMeta,
|
|
43
43
|
withMeta
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-TZBJEKKU.js";
|
|
45
45
|
import {
|
|
46
46
|
CONFIG_PATH,
|
|
47
47
|
withFileLock
|
|
48
48
|
} from "./chunk-BLBMPEBX.js";
|
|
49
49
|
import {
|
|
50
50
|
VERSION
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-AH6MUQQC.js";
|
|
52
52
|
import {
|
|
53
53
|
normalizeErrorMessage
|
|
54
54
|
} from "./chunk-E63BDV4Z.js";
|
|
@@ -240,7 +240,7 @@ function checkEnvironment() {
|
|
|
240
240
|
return { ok: true, detail: parts.join(" \xB7 ") };
|
|
241
241
|
}
|
|
242
242
|
async function checkWhisper() {
|
|
243
|
-
const { findWhisper, getInstallInstructions } = await import("./manager-
|
|
243
|
+
const { findWhisper, getInstallInstructions } = await import("./manager-ARXEX6OP.js");
|
|
244
244
|
const result = findWhisper();
|
|
245
245
|
if (result) {
|
|
246
246
|
return { ok: true, detail: result.executablePath };
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
findFFmpeg,
|
|
9
9
|
findFFprobe,
|
|
10
10
|
getFFmpegInstallHint
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-AVNF52HR.js";
|
|
12
12
|
|
|
13
13
|
// src/measure/media.ts
|
|
14
14
|
import { execFileSync } from "child_process";
|
|
@@ -34,6 +34,11 @@ function ffprobeBin() {
|
|
|
34
34
|
if (!bin) throw new Fix("ffprobe is not installed", getFFmpegInstallHint());
|
|
35
35
|
return bin;
|
|
36
36
|
}
|
|
37
|
+
function sumOf(terms) {
|
|
38
|
+
if (terms.length <= 50) return terms.join("+");
|
|
39
|
+
const half = terms.length >> 1;
|
|
40
|
+
return `(${sumOf(terms.slice(0, half))})+(${sumOf(terms.slice(half))})`;
|
|
41
|
+
}
|
|
37
42
|
function runFfmpeg(args, input, cwd) {
|
|
38
43
|
return execFileSync(ffmpegBin(), [...FFMPEG_QUIET, ...args], {
|
|
39
44
|
maxBuffer: MAX_BUFFER,
|
|
@@ -46,9 +51,22 @@ var rate = (text) => {
|
|
|
46
51
|
const [a, b] = String(text ?? "0/1").split("/").map(Number);
|
|
47
52
|
return b ? (a ?? 0) / b : a ?? 0;
|
|
48
53
|
};
|
|
54
|
+
function probeSeconds(path) {
|
|
55
|
+
if (!existsSync(path)) throw new Fix(`no file at ${path}`, "pass a sound from the project");
|
|
56
|
+
const text = execFileSync(
|
|
57
|
+
ffprobeBin(),
|
|
58
|
+
["-v", "error", "-show_entries", "format=duration", "-of", "csv=p=0", "--", path],
|
|
59
|
+
{ maxBuffer: MAX_BUFFER, windowsHide: true }
|
|
60
|
+
).toString();
|
|
61
|
+
return Number(text) || 0;
|
|
62
|
+
}
|
|
49
63
|
function probeVideo(path) {
|
|
50
64
|
if (!existsSync(path))
|
|
51
|
-
throw new Fix(
|
|
65
|
+
throw new Fix(
|
|
66
|
+
`no file at ${path}`,
|
|
67
|
+
// `D:video\clip.mp4` reached us as `D:videoclip.mp4`: an unquoted Windows path in bash.
|
|
68
|
+
/^[A-Za-z]:[^\\/]/.test(path) ? "the shell dropped the backslashes: quote the path or write it with / (D:/video/clip.mp4)" : "pass the video's path from the project folder"
|
|
69
|
+
);
|
|
52
70
|
let json;
|
|
53
71
|
try {
|
|
54
72
|
json = JSON.parse(
|
|
@@ -234,7 +252,9 @@ function projectOf(from) {
|
|
|
234
252
|
export {
|
|
235
253
|
Fix,
|
|
236
254
|
ffmpegBin,
|
|
255
|
+
sumOf,
|
|
237
256
|
runFfmpeg,
|
|
257
|
+
probeSeconds,
|
|
238
258
|
probeVideo,
|
|
239
259
|
videoClip,
|
|
240
260
|
readClip,
|
|
@@ -6,8 +6,8 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
|
|
8
8
|
// src/version.ts
|
|
9
|
-
var VERSION = true ? "0.9.
|
|
10
|
-
var PRODUCER_VERSION = true ? "0.9.
|
|
9
|
+
var VERSION = true ? "0.9.9" : "0.0.0-dev";
|
|
10
|
+
var PRODUCER_VERSION = true ? "0.9.9" : "0.0.0-dev";
|
|
11
11
|
|
|
12
12
|
export {
|
|
13
13
|
VERSION,
|
|
@@ -9,14 +9,14 @@ import {
|
|
|
9
9
|
} from "./chunk-SWC3QIEH.js";
|
|
10
10
|
import {
|
|
11
11
|
stoppedByCancelSignal
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-VM6T3Z6B.js";
|
|
13
13
|
import {
|
|
14
14
|
DEFAULT_MODEL,
|
|
15
15
|
ensureModel,
|
|
16
16
|
ensureWhisper,
|
|
17
17
|
hasFFmpeg,
|
|
18
18
|
pinnedWhisperModel
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-ZLN3AJKT.js";
|
|
20
20
|
import {
|
|
21
21
|
sha256File
|
|
22
22
|
} from "./chunk-RZ6CXJ56.js";
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
findFFmpeg,
|
|
25
25
|
findFFprobe,
|
|
26
26
|
getFFmpegInstallHint
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-AVNF52HR.js";
|
|
28
28
|
import {
|
|
29
29
|
findWavChunk
|
|
30
30
|
} from "./chunk-UOFAE5RF.js";
|
|
@@ -6,16 +6,16 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
getMimeType
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-NCP3JQ6S.js";
|
|
10
10
|
import {
|
|
11
11
|
openRangeEnd
|
|
12
12
|
} from "./chunk-VEIGTKYZ.js";
|
|
13
13
|
import {
|
|
14
14
|
stripSdrPngColourTags
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-PPMCILED.js";
|
|
16
16
|
import {
|
|
17
17
|
injectTagsAtHeadStart
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-Y3ICFPFK.js";
|
|
19
19
|
|
|
20
20
|
// src/utils/compositionServer.ts
|
|
21
21
|
import { createHash } from "crypto";
|
|
@@ -7,14 +7,14 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
trackLintReport,
|
|
9
9
|
trackLintRuleStreak
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-2ROPUTCS.js";
|
|
11
11
|
import {
|
|
12
12
|
shouldTrack
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-V74HSKGY.js";
|
|
14
14
|
import {
|
|
15
15
|
LINT_RULE_COUNT,
|
|
16
16
|
LINT_RULE_GROUP_COUNTS
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-XX77LLFJ.js";
|
|
18
18
|
|
|
19
19
|
// src/telemetry/lintStreaks.ts
|
|
20
20
|
import { createHash } from "crypto";
|
|
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
resolveCaptureBrowserGpuMode
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-6UZLHLFP.js";
|
|
10
10
|
import {
|
|
11
11
|
explainChromeLaunchFailure,
|
|
12
12
|
inAgentSandbox,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
oneProcessOverPipe,
|
|
16
16
|
pipeLaunchClosedOnMac,
|
|
17
17
|
sandboxDeniedRemediation
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-N6FGHJ7X.js";
|
|
19
19
|
import {
|
|
20
20
|
processIsAlive
|
|
21
21
|
} from "./chunk-KGPLIH7B.js";
|
|
@@ -1278,7 +1278,7 @@ async function withFigmaErrors(command, fn) {
|
|
|
1278
1278
|
} catch (err) {
|
|
1279
1279
|
if (err instanceof Error) {
|
|
1280
1280
|
try {
|
|
1281
|
-
const { trackCommandFailure } = await import("./events-
|
|
1281
|
+
const { trackCommandFailure } = await import("./events-3OWNDNJX.js");
|
|
1282
1282
|
trackCommandFailure(
|
|
1283
1283
|
command,
|
|
1284
1284
|
err,
|
|
@@ -10,13 +10,13 @@ import {
|
|
|
10
10
|
parseNumbers,
|
|
11
11
|
parseRoi,
|
|
12
12
|
probeVideo
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-A33GFLPY.js";
|
|
14
14
|
import {
|
|
15
15
|
c
|
|
16
16
|
} from "./chunk-2GICKZ3I.js";
|
|
17
17
|
import {
|
|
18
18
|
withMeta
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-TZBJEKKU.js";
|
|
20
20
|
import {
|
|
21
21
|
failCommand
|
|
22
22
|
} from "./chunk-66W5IWLO.js";
|
|
@@ -4,10 +4,13 @@ import { dirname as __hf_dirname } from "node:path";
|
|
|
4
4
|
var require = __hf_createRequire(import.meta.url);
|
|
5
5
|
var __filename = __hf_fileURLToPath(import.meta.url);
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
|
+
import {
|
|
8
|
+
findStageProxyBox
|
|
9
|
+
} from "./chunk-LTBBFLOM.js";
|
|
7
10
|
import {
|
|
8
11
|
getMimeType,
|
|
9
12
|
injectMediaCodecMapIntoHtml
|
|
10
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-NCP3JQ6S.js";
|
|
11
14
|
import {
|
|
12
15
|
PROXY_VARIANT_CONFIG,
|
|
13
16
|
ProxyCapacityError,
|
|
@@ -18,26 +21,23 @@ import {
|
|
|
18
21
|
recordProxyRequest,
|
|
19
22
|
resolveProxy,
|
|
20
23
|
resolveProxyVariantRequest
|
|
21
|
-
} from "./chunk-
|
|
22
|
-
import {
|
|
23
|
-
findStageProxyBox
|
|
24
|
-
} from "./chunk-QPTQSM3D.js";
|
|
24
|
+
} from "./chunk-MDMQD6BV.js";
|
|
25
25
|
import {
|
|
26
26
|
resolveAutoProxy
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-S2UKSI3C.js";
|
|
28
28
|
import {
|
|
29
29
|
openRangeEnd
|
|
30
30
|
} from "./chunk-VEIGTKYZ.js";
|
|
31
31
|
import {
|
|
32
32
|
listenOnBrowserSafePort
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-N6FGHJ7X.js";
|
|
34
34
|
import {
|
|
35
35
|
stripSdrPngColourTags
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-PPMCILED.js";
|
|
37
37
|
import {
|
|
38
38
|
PREVIEW_PROXY_BOX_PARAM,
|
|
39
39
|
parsePreviewProxyBox
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-W5AUD5OL.js";
|
|
41
41
|
import {
|
|
42
42
|
decodeWellFormedEscapes
|
|
43
43
|
} from "./chunk-C2KEGBR3.js";
|
|
@@ -7,35 +7,35 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
toDomNode
|
|
9
9
|
} from "./chunk-LLMSX6V6.js";
|
|
10
|
+
import {
|
|
11
|
+
readCompositionFps
|
|
12
|
+
} from "./chunk-LR5NVYZT.js";
|
|
10
13
|
import {
|
|
11
14
|
findSyncPartner,
|
|
12
15
|
readLinkTiming,
|
|
13
16
|
syncOffsetFrames
|
|
14
17
|
} from "./chunk-AW3XJY4S.js";
|
|
15
|
-
import {
|
|
16
|
-
readCompositionFps
|
|
17
|
-
} from "./chunk-SACHIPZP.js";
|
|
18
18
|
import {
|
|
19
19
|
HF_AUDIO_GROUP_ATTR,
|
|
20
20
|
extractAudioMetadata,
|
|
21
21
|
extractMediaMetadata
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-N6FGHJ7X.js";
|
|
23
23
|
import {
|
|
24
24
|
byStart,
|
|
25
25
|
fpsToNumber,
|
|
26
26
|
parseFpsWithDefault
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-W5AUD5OL.js";
|
|
28
28
|
import {
|
|
29
29
|
HF_AUDIO_AUTOMATION_ATTR,
|
|
30
30
|
HF_AUDIO_FX_ATTR,
|
|
31
31
|
parseAudioFxChain,
|
|
32
32
|
parseAutomation,
|
|
33
33
|
resolveAutomation
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-Y3ICFPFK.js";
|
|
35
35
|
import {
|
|
36
36
|
resolveReferencedDuration,
|
|
37
37
|
resolveReferencedStart
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-XX77LLFJ.js";
|
|
39
39
|
import {
|
|
40
40
|
resolveAuthoredAssetFile
|
|
41
41
|
} from "./chunk-WVRAFHJU.js";
|
|
@@ -53,7 +53,7 @@ import {
|
|
|
53
53
|
isSubCompositionHost,
|
|
54
54
|
topLevelElements,
|
|
55
55
|
trackKindOf
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-JHILL4BN.js";
|
|
57
57
|
|
|
58
58
|
// src/timeline/describeProject.ts
|
|
59
59
|
import { readFileSync, realpathSync, statSync } from "fs";
|
|
@@ -6,23 +6,23 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
resolveProject
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-6DKWOG7L.js";
|
|
10
10
|
import {
|
|
11
11
|
installPageFunctionGuard,
|
|
12
12
|
resolveCliChromeGpuMode,
|
|
13
13
|
seekCompositionTimeline,
|
|
14
14
|
waitForRuntimeReady
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-6HO6QKYG.js";
|
|
16
16
|
import {
|
|
17
17
|
pageNavigationTimeoutMs
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-E2YXF2EP.js";
|
|
19
19
|
import {
|
|
20
20
|
resolveCompositionViewportFromHtml
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-LTBBFLOM.js";
|
|
22
22
|
import {
|
|
23
23
|
launchManagedBrowser,
|
|
24
24
|
resolveManagedGpuMode
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-BHL4KN3H.js";
|
|
26
26
|
import {
|
|
27
27
|
defineCommand
|
|
28
28
|
} from "./chunk-DL4OD7IA.js";
|
|
@@ -31,14 +31,14 @@ import {
|
|
|
31
31
|
} from "./chunk-2GICKZ3I.js";
|
|
32
32
|
import {
|
|
33
33
|
resolveNaturalMediaTimelineDuration
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-Y3ICFPFK.js";
|
|
35
35
|
import {
|
|
36
36
|
decodeWellFormedEscapes
|
|
37
37
|
} from "./chunk-C2KEGBR3.js";
|
|
38
38
|
import {
|
|
39
39
|
printDeprecationNotice,
|
|
40
40
|
withMeta
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-TZBJEKKU.js";
|
|
42
42
|
import {
|
|
43
43
|
failureMessage,
|
|
44
44
|
jsonFailure
|
|
@@ -252,7 +252,7 @@ function extractCompositionErrorsFromLint(lintResult) {
|
|
|
252
252
|
async function localizeRemoteAssets(html) {
|
|
253
253
|
let dir;
|
|
254
254
|
try {
|
|
255
|
-
const { loadProducer } = await import("./producer-
|
|
255
|
+
const { loadProducer } = await import("./producer-RFTB2APL.js");
|
|
256
256
|
const { localizeRemoteMediaSources, localizeRemoteImageSources, localizeRemoteFontFaces } = await loadProducer();
|
|
257
257
|
dir = mkdtempSync(join(tmpdir(), "hf-validate-assets-"));
|
|
258
258
|
const assetDir = dir;
|
|
@@ -273,10 +273,10 @@ async function localizeRemoteAssets(html) {
|
|
|
273
273
|
}
|
|
274
274
|
async function validateInBrowser(project, opts) {
|
|
275
275
|
const projectDir = project.dir;
|
|
276
|
-
const { bundleToSingleHtml } = await import("./compiler-
|
|
276
|
+
const { bundleToSingleHtml } = await import("./compiler-NAIDMQFU.js");
|
|
277
277
|
const { ensureBrowser } = await import("./manager-SAXHANEY.js");
|
|
278
|
-
const { serveStaticProjectHtml } = await import("./staticProjectServer-
|
|
279
|
-
const { lintProject } = await import("./lintProject-
|
|
278
|
+
const { serveStaticProjectHtml } = await import("./staticProjectServer-BX4RWEY5.js");
|
|
279
|
+
const { lintProject } = await import("./lintProject-EV3EEBY3.js");
|
|
280
280
|
const lintResult = await lintProject(projectDir);
|
|
281
281
|
const compositionErrors = extractCompositionErrorsFromLint(lintResult);
|
|
282
282
|
const html = await bundleToSingleHtml(projectDir);
|
|
@@ -297,9 +297,9 @@ async function validateInBrowser(project, opts) {
|
|
|
297
297
|
try {
|
|
298
298
|
const browser = await ensureBrowser();
|
|
299
299
|
const puppeteer = await import("puppeteer-core");
|
|
300
|
-
const { buildChromeArgs, analyzeClipMediaFit } = await import("./src-
|
|
300
|
+
const { buildChromeArgs, analyzeClipMediaFit } = await import("./src-RL6YEPTD.js");
|
|
301
301
|
const requestedGpuMode = resolveCliChromeGpuMode();
|
|
302
|
-
const { assertWebGpuAdapterAvailable, compositionRequiresWebGpu, resolveLocalWebGpu } = await import("./gpuPolicy-
|
|
302
|
+
const { assertWebGpuAdapterAvailable, compositionRequiresWebGpu, resolveLocalWebGpu } = await import("./gpuPolicy-DUNSQM6M.js");
|
|
303
303
|
const resolvedGpuMode = await resolveManagedGpuMode(requestedGpuMode, browser.executablePath);
|
|
304
304
|
const requiresWebGpu = compositionRequiresWebGpu(html);
|
|
305
305
|
const { gpuConfig, softwareWebGpu } = resolveLocalWebGpu(resolvedGpuMode, requiresWebGpu);
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
rewriteHtmlAttributes,
|
|
13
13
|
rewriteStyleBlocks,
|
|
14
14
|
stagedSize
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-ABI256T5.js";
|
|
16
16
|
import {
|
|
17
17
|
probeAudio
|
|
18
18
|
} from "./chunk-SWC3QIEH.js";
|
|
@@ -20,13 +20,13 @@ import {
|
|
|
20
20
|
findFFmpeg,
|
|
21
21
|
findFFprobe,
|
|
22
22
|
getFFmpegInstallHint
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-AVNF52HR.js";
|
|
24
24
|
import {
|
|
25
25
|
formatBytes
|
|
26
26
|
} from "./chunk-5LOZWO2M.js";
|
|
27
27
|
import {
|
|
28
28
|
parseAnimatedGifMetadata
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-W5AUD5OL.js";
|
|
30
30
|
import {
|
|
31
31
|
cleanAssetUrl,
|
|
32
32
|
isRemoteOrInlineUrl,
|
|
@@ -506,7 +506,9 @@ function scriptCode(fileMap) {
|
|
|
506
506
|
const text = textOf(path, content);
|
|
507
507
|
if (text === void 0) continue;
|
|
508
508
|
if (/\.html?$/i.test(path)) {
|
|
509
|
-
|
|
509
|
+
const { document } = parseHTML(text);
|
|
510
|
+
const pages = [document, ...[...document.querySelectorAll("template")].map((t) => t.content)];
|
|
511
|
+
for (const script of pages.flatMap((p) => [...p.querySelectorAll("script:not([src])")])) {
|
|
510
512
|
parts.push(script.textContent ?? "");
|
|
511
513
|
}
|
|
512
514
|
} else if (/\.(m?js|cjs|json)$/i.test(path)) parts.push(text);
|
|
@@ -619,7 +621,7 @@ async function prepareEntryGifs(ctx, fileMap) {
|
|
|
619
621
|
if (!html || !/\.gif\b/i.test(html)) return;
|
|
620
622
|
const sourceAssets = entryGifSources(ctx, entryPath, html);
|
|
621
623
|
if (!sourceAssets) return;
|
|
622
|
-
const prep = ctx.opts.gifPrep ?? (await import("./src-
|
|
624
|
+
const prep = ctx.opts.gifPrep ?? (await import("./src-SMIMKSHZ.js")).prepareAnimatedGifInputs;
|
|
623
625
|
const outputDir = mkdtempSync(join(tmpdir(), "hf-offload-gif-"));
|
|
624
626
|
ctx.tempFiles.push(outputDir);
|
|
625
627
|
const result = await prep(html, {
|
|
@@ -715,14 +717,23 @@ function dropReplacedFiles(fileMap, report, preparedGifSources, assetUrls) {
|
|
|
715
717
|
if (!isStillMentioned(fileMap, gif, code, withoutUrls)) fileMap.delete(gif);
|
|
716
718
|
}
|
|
717
719
|
}
|
|
720
|
+
var escapeRegExp = (text) => text.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
721
|
+
function namesFile(text, path) {
|
|
722
|
+
const tokens = text.match(new RegExp(`[\\w./-]*${escapeRegExp(basename2(path))}`, "g")) ?? [];
|
|
723
|
+
return tokens.some((token) => {
|
|
724
|
+
const tail = token.replace(/^[./]+/, "");
|
|
725
|
+
return path === tail || path.endsWith(`/${tail}`);
|
|
726
|
+
});
|
|
727
|
+
}
|
|
718
728
|
function isStillMentioned(fileMap, path, code, withoutUrls) {
|
|
719
729
|
const ext = extname(path);
|
|
720
|
-
|
|
730
|
+
const stem = new RegExp(`["'\`/]${escapeRegExp(basename2(path, ext))}\\.?["'\`$]`);
|
|
731
|
+
if (stem.test(code) && code.includes(ext.slice(1))) return true;
|
|
721
732
|
const name = basename2(path);
|
|
722
733
|
for (const [entryPath, content] of fileMap) {
|
|
723
734
|
const contentText = textOf(entryPath, content);
|
|
724
735
|
if (entryPath === path || !contentText?.includes(name)) continue;
|
|
725
|
-
if (withoutUrls(contentText)
|
|
736
|
+
if (namesFile(withoutUrls(contentText), path)) return true;
|
|
726
737
|
}
|
|
727
738
|
return false;
|
|
728
739
|
}
|
|
@@ -782,7 +793,18 @@ function rewriteCssEntry(absDir, entryPath, css, urlFor) {
|
|
|
782
793
|
);
|
|
783
794
|
return result.modified ? result.css : null;
|
|
784
795
|
}
|
|
785
|
-
|
|
796
|
+
var TEMPLATE_SCENE_RE = /(<template\b[^>]*>)([\s\S]*?)(<\/template>)/gi;
|
|
797
|
+
function rewriteHtmlEntry(absDir, entryPath, source, urlFor, fileMap) {
|
|
798
|
+
const html = source.replace(
|
|
799
|
+
TEMPLATE_SCENE_RE,
|
|
800
|
+
(full, open, inner, close) => {
|
|
801
|
+
const next = rewriteHtmlEntry(absDir, entryPath, inner, urlFor, fileMap);
|
|
802
|
+
return next === null ? full : open + next + close;
|
|
803
|
+
}
|
|
804
|
+
);
|
|
805
|
+
return rewriteHtmlDocument(absDir, entryPath, html, urlFor, fileMap) ?? (html === source ? null : html);
|
|
806
|
+
}
|
|
807
|
+
function rewriteHtmlDocument(absDir, entryPath, html, urlFor, fileMap) {
|
|
786
808
|
const referrerAbsDir = resolve(absDir, dirname(entryPath));
|
|
787
809
|
const resolveTarget = (raw) => localTarget(raw, (clean) => rewriteAssetPath(entryPath, clean, (p) => fileMap.has(p)), urlFor);
|
|
788
810
|
const { document } = parseHTML(html);
|
|
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
probeAudioTrack
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-2QMEP4LR.js";
|
|
10
10
|
import {
|
|
11
11
|
resolveWithinProject
|
|
12
12
|
} from "./chunk-ALVXFXUG.js";
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
MAX_AUDIO_GAIN_DB,
|
|
15
15
|
formatAudioGain,
|
|
16
16
|
isAudibleVideoElement
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-Y3ICFPFK.js";
|
|
18
18
|
import {
|
|
19
19
|
findFfBinary
|
|
20
20
|
} from "./chunk-HYRPH6LL.js";
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
} from "./chunk-C2KEGBR3.js";
|
|
26
26
|
import {
|
|
27
27
|
decodeAuthoredAttribute
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-JHILL4BN.js";
|
|
29
29
|
|
|
30
30
|
// ../studio-server/dist/chunk-H4NVSSDJ.js
|
|
31
31
|
import { execFile } from "child_process";
|
|
@@ -11,8 +11,9 @@ import {
|
|
|
11
11
|
Fix,
|
|
12
12
|
frameAt,
|
|
13
13
|
round,
|
|
14
|
-
runFfmpeg
|
|
15
|
-
|
|
14
|
+
runFfmpeg,
|
|
15
|
+
sumOf
|
|
16
|
+
} from "./chunk-A33GFLPY.js";
|
|
16
17
|
import {
|
|
17
18
|
verifies
|
|
18
19
|
} from "./chunk-RZ6CXJ56.js";
|
|
@@ -137,7 +138,7 @@ function readSamples(info, ks, w, h) {
|
|
|
137
138
|
const k0 = info.vfr ? 0 : run[0];
|
|
138
139
|
const seek = k0 > 0 ? ["-ss", ((k0 - 0.5) / info.fps).toFixed(6)] : [];
|
|
139
140
|
const filters = [
|
|
140
|
-
`select=${run.map((k) => `eq(n\\,${k - k0})`)
|
|
141
|
+
`select=${sumOf(run.map((k) => `eq(n\\,${k - k0})`))}`,
|
|
141
142
|
...w !== info.width || h !== info.height ? [`scale=${w}:${h}`] : [],
|
|
142
143
|
"format=gray"
|
|
143
144
|
];
|