hyperframes 0.9.12 → 0.9.13
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-NLR4EVAF.js → add-PXF5OGLI.js} +13 -12
- package/dist/{agentPromptGenerator-S3GWYMVC.js → agentPromptGenerator-DWNK722M.js} +5 -5
- package/dist/{animatedGifPrep-YU7IOD5D.js → animatedGifPrep-FFBCFFIY.js} +5 -5
- package/dist/api.js +27 -26
- package/dist/{asset-7NPBAXDA.js → asset-FZVMLDSY.js} +5 -5
- package/dist/{assetCataloger-VKJIQCYP.js → assetCataloger-FXBZK55R.js} +6 -6
- package/dist/{audio-ZNVUZH44.js → audio-QYNPBNZQ.js} +20 -19
- package/dist/{auth-PTVZNLE6.js → auth-2FBS4QC4.js} +6 -6
- package/dist/{autoUpdate-QJPCV7FB.js → autoUpdate-VFGRGQTO.js} +4 -4
- package/dist/avatars-UVZFK2JR.js +168 -0
- package/dist/{backgroundChecks-UA6LCZAG.js → backgroundChecks-FN53YXTW.js} +5 -5
- package/dist/backgroundChecksWorker.js +5 -5
- package/dist/{batchRender-W4RXBUNE.js → batchRender-JB3D6X7U.js} +4 -4
- package/dist/{beats-IG7C72YF.js → beats-5BJMEGGA.js} +11 -11
- package/dist/{benchmark-YUD3XIT2.js → benchmark-MP4JGPYM.js} +11 -11
- package/dist/{billing-5YSYJJ2V.js → billing-XSPWEAYT.js} +6 -5
- package/dist/{browser-TZILXH5J.js → browser-V4EB7UNU.js} +8 -8
- package/dist/{bundleWithLocalizedFonts-BOIW3CIU.js → bundleWithLocalizedFonts-Z23O7MZ3.js} +4 -4
- package/dist/{capture-MICLAF6V.js → capture-L5TGT4SW.js} +18 -18
- package/dist/{capture-R77HOGLQ.js → capture-SQHH4HBC.js} +5 -5
- package/dist/{captureCompositionFrame-WBMFZHEF.js → captureCompositionFrame-BAYKFJMM.js} +12 -12
- package/dist/{catalog-AMPL57XF.js → catalog-OLP2O5W6.js} +14 -13
- package/dist/{catch-up-WQ7ZRRFT.js → catch-up-LJWHENVV.js} +8 -8
- package/dist/{check-ZPBF3X5D.js → check-KGAKP3H5.js} +38 -37
- package/dist/{checkAudio-IG3BOW2G.js → checkAudio-QWBAUBJ2.js} +10 -10
- package/dist/{checkBrowser-AIUIKFMJ.js → checkBrowser-J5UUWIPK.js} +31 -30
- package/dist/{chunk-R7EKEIAK.js → chunk-2ASPXS4U.js} +1 -1
- package/dist/{chunk-Q3IT7I2K.js → chunk-2IATDUYU.js} +1 -1
- package/dist/{chunk-KDOJX2HU.js → chunk-2IB3XVAR.js} +12 -12
- package/dist/{chunk-EPCVE3OX.js → chunk-2WGAXAM7.js} +2 -2
- package/dist/{chunk-H7H7XNYY.js → chunk-2YVIA2BX.js} +4 -4
- package/dist/{chunk-6KV3CMY2.js → chunk-3BLPPIJA.js} +3 -15
- package/dist/{chunk-73EXHUMD.js → chunk-3SZZLHHM.js} +1 -1
- package/dist/{chunk-7W5ZDOLW.js → chunk-472XCBCV.js} +14 -3
- package/dist/{chunk-3IKLV3D4.js → chunk-4HGTJHKB.js} +2 -2
- package/dist/{chunk-B3IE7CN2.js → chunk-5Z7YSZRF.js} +10 -10
- package/dist/{chunk-7RM3TB62.js → chunk-6PGTJG3M.js} +1 -1
- package/dist/{chunk-V6HV2IDT.js → chunk-6U6KMYIV.js} +1 -1
- package/dist/{chunk-LR5NVYZT.js → chunk-7AMCGJDM.js} +1 -1
- package/dist/{chunk-4J4EGANW.js → chunk-7S2LS53F.js} +6 -6
- package/dist/{chunk-PKLZ5PV2.js → chunk-7WSL3PT3.js} +2 -2
- package/dist/{chunk-OJTXXFYO.js → chunk-7X3UDKJK.js} +1 -1
- package/dist/{chunk-QOF7XZEI.js → chunk-7Z7SREEU.js} +2 -2
- package/dist/{chunk-N6FGHJ7X.js → chunk-AB6DKVKC.js} +13 -2
- package/dist/{chunk-QFZ3ZSXI.js → chunk-AIK4ETUZ.js} +2 -2
- package/dist/{chunk-XZP5OW5V.js → chunk-AKE744C5.js} +1 -1
- package/dist/{chunk-6IFY3ZQC.js → chunk-AR6IO4RY.js} +5 -5
- package/dist/{chunk-OQKAP6X4.js → chunk-AWV4F5TS.js} +2 -2
- package/dist/{chunk-X5EOH44V.js → chunk-B2RMMRJB.js} +1 -1
- package/dist/{chunk-MWHTLXG4.js → chunk-B3CSMKM7.js} +1 -1
- package/dist/{chunk-4XGASFTP.js → chunk-BE7Y3PJZ.js} +3 -3
- package/dist/{chunk-TSQZ3DSC.js → chunk-BY7PZB6H.js} +1 -1
- package/dist/{chunk-VWQY3A64.js → chunk-BYWQQMTB.js} +2 -2
- package/dist/{chunk-Z2DJSEQC.js → chunk-C5VZTKW2.js} +26 -26
- package/dist/{chunk-BONBJJ35.js → chunk-CKEOCCMK.js} +1 -1
- package/dist/{chunk-XX77LLFJ.js → chunk-CKZVLS3K.js} +70 -5
- package/dist/{chunk-64ZWPFAX.js → chunk-CLT3CJKG.js} +2 -2
- package/dist/chunk-D3UCUI7G.js +68 -0
- package/dist/{chunk-5WHGO5XU.js → chunk-EP6GCDZ6.js} +1 -1
- package/dist/{chunk-2VZVMCV6.js → chunk-EQSUX64Q.js} +1 -1
- package/dist/{chunk-UH62KSYV.js → chunk-EZCMP7NJ.js} +3 -3
- package/dist/{chunk-C3NC67BB.js → chunk-F6PFZMQU.js} +3 -3
- package/dist/{chunk-YEBIOQRI.js → chunk-FJIN5OWZ.js} +3 -3
- package/dist/{chunk-J3RXEDR2.js → chunk-FYZFURBN.js} +2 -2
- package/dist/{chunk-LV5SL4YW.js → chunk-GPHY5R35.js} +1 -1
- package/dist/{chunk-LO3EX3YP.js → chunk-H4VII7WN.js} +7 -7
- package/dist/{chunk-42TYQPES.js → chunk-H6FRRSHM.js} +1 -1
- package/dist/{chunk-2GICKZ3I.js → chunk-HOCC4J5C.js} +1 -1
- package/dist/{chunk-SSZTRWKQ.js → chunk-HTSVFS4G.js} +2 -2
- package/dist/{chunk-4H4DR36N.js → chunk-IOPE4LJ2.js} +1 -1
- package/dist/{chunk-NQYW4IYN.js → chunk-ITDHT7AO.js} +4 -4
- package/dist/{chunk-QRCORKYC.js → chunk-JGTJEQ5X.js} +2 -2
- package/dist/{chunk-ZD3MK4H5.js → chunk-KHF5WT6E.js} +1 -1
- package/dist/{chunk-P7Y2YCOF.js → chunk-KWGOABKQ.js} +1 -1
- package/dist/{chunk-AUYRWWFL.js → chunk-LGVUQ4GC.js} +3 -3
- package/dist/{chunk-WJD3GVAA.js → chunk-LISUH6KH.js} +1 -1
- package/dist/{chunk-5LOZWO2M.js → chunk-M3JU24AI.js} +1 -1
- package/dist/{chunk-OAFGA2FR.js → chunk-MBX3BHW3.js} +1 -1
- package/dist/{chunk-KT4KPBI7.js → chunk-MGAGDEBC.js} +3 -3
- package/dist/{chunk-WTGG734B.js → chunk-MJEE2WSS.js} +5 -5
- package/dist/{chunk-JS6ZTPYC.js → chunk-N2SXD5EG.js} +1 -1
- package/dist/{chunk-BW2RIJKV.js → chunk-N43XGFAZ.js} +44 -39
- package/dist/{chunk-N74N2I2K.js → chunk-N7EA7GWU.js} +1 -1
- package/dist/{chunk-Q225NLQL.js → chunk-NMYRVKIL.js} +4 -4
- package/dist/{chunk-A33GFLPY.js → chunk-NR2W7HUH.js} +1 -1
- package/dist/{chunk-VECINIPA.js → chunk-NW5QHUZO.js} +2 -2
- package/dist/{chunk-URJ7T6T6.js → chunk-NXQMN7YC.js} +1 -1
- package/dist/{chunk-2P5DTXUN.js → chunk-NZTYGWRK.js} +1 -1
- package/dist/{chunk-HY64QA63.js → chunk-O4Q44I77.js} +18 -6
- package/dist/{chunk-FLXZ4GZI.js → chunk-OHN3OJQQ.js} +1 -1
- package/dist/{chunk-ZLN3AJKT.js → chunk-OPOYDJEW.js} +1 -1
- package/dist/{chunk-7XKWBMBL.js → chunk-QVW57TUW.js} +2 -2
- package/dist/{chunk-SG4YBQPY.js → chunk-RADODJYB.js} +2 -2
- package/dist/{chunk-2VYAX3ZD.js → chunk-RBF3AF7R.js} +4 -4
- package/dist/{chunk-ABI256T5.js → chunk-RL52TNCM.js} +2 -2
- package/dist/{chunk-AVNF52HR.js → chunk-RWQEWEOV.js} +1 -1
- package/dist/{chunk-VUMGJLRB.js → chunk-SFO4FLUG.js} +1 -1
- package/dist/{chunk-RFTLWXEX.js → chunk-SGLX72IQ.js} +7 -7
- package/dist/{chunk-FFUBISTD.js → chunk-SM4F4H3T.js} +1 -1
- package/dist/{chunk-FC4WF2VQ.js → chunk-SXAZR7M4.js} +2 -2
- package/dist/{chunk-EBUA6NWH.js → chunk-T5ZEMZ3K.js} +2 -2
- package/dist/{chunk-XJG65BB2.js → chunk-TBXV7O3Z.js} +10 -10
- package/dist/{chunk-P3KBDUNS.js → chunk-TSCUYZ4B.js} +1 -1
- package/dist/{chunk-VM6T3Z6B.js → chunk-TX3JT67F.js} +1 -1
- package/dist/{chunk-LIN633KG.js → chunk-U7AB4D6T.js} +5 -5
- package/dist/{chunk-3DWH6Z5U.js → chunk-UPI2MZ5L.js} +1 -1
- package/dist/{chunk-WWBEAKTO.js → chunk-UXS7VE75.js} +1 -1
- package/dist/{chunk-NTHJJ6JT.js → chunk-VIEMTLSI.js} +7 -7
- package/dist/{chunk-6R2PED3X.js → chunk-WCNUB6WU.js} +9 -9
- package/dist/{chunk-FPR57WRR.js → chunk-WEWXIQPN.js} +1 -1
- package/dist/{chunk-6NKEEHFR.js → chunk-WGQW65DO.js} +6 -6
- package/dist/{chunk-WQ4SMZDF.js → chunk-WSZWPYRG.js} +2 -2
- package/dist/{chunk-JKSASCBT.js → chunk-XHY36WZF.js} +2 -2
- package/dist/{chunk-AHLDGEH5.js → chunk-YHID4CM3.js} +1 -1
- package/dist/{chunk-X6XIY4JY.js → chunk-YMP5FTA3.js} +11 -11
- package/dist/{chunk-ETYQYG6Q.js → chunk-ZFZXGZTX.js} +27 -18
- package/dist/{chunk-S2UKSI3C.js → chunk-ZMRRTWKP.js} +1 -1
- package/dist/{chunk-E2YXF2EP.js → chunk-ZPJVKYDL.js} +3 -3
- package/dist/{clean-343XOJT3.js → clean-NNYMY7FD.js} +17 -17
- package/dist/cli.js +69 -68
- package/dist/{cloud-2YS272KD.js → cloud-6FBCPI3B.js} +6 -6
- package/dist/{cloud-B6SGMECY.js → cloud-RFM3PYTR.js} +6 -5
- package/dist/{cloudrun-N737TJRC.js → cloudrun-D4V4TV6S.js} +6 -6
- package/dist/{colors-HRL7QSVG.js → colors-CRTWLZ5S.js} +2 -2
- package/dist/{compare-KXCTMXFX.js → compare-J3JV4AZ3.js} +28 -27
- package/dist/{compiler-KKIYPREA.js → compiler-5ANBCHB7.js} +3 -3
- package/dist/{component-ZUDCIGGD.js → component-QFREWBT5.js} +6 -6
- package/dist/{compositions-FNFI2QOA.js → compositions-NUTRZGAZ.js} +15 -15
- package/dist/{curve-5BMBBCSZ.js → curve-LR4THVRF.js} +12 -12
- package/dist/{cuts-OKUA6BWH.js → cuts-5WPLSRM2.js} +13 -13
- package/dist/{delete-FYMFNSED.js → delete-KLIVMSTG.js} +12 -11
- package/dist/{deploy-YZU2YITA.js → deploy-CDWKRTWY.js} +6 -6
- package/dist/{describeProject-E44RWBJL.js → describeProject-YJEOPIW7.js} +8 -8
- package/dist/{destroy-IQLGADZM.js → destroy-6XY4WQWY.js} +2 -2
- package/dist/{diff-5X6I6EG5.js → diff-KY6T2E32.js} +33 -32
- package/dist/{dist-PUHEYGA5.js → dist-GVCHAZJU.js} +6 -6
- package/dist/{dist-PCVNVAVC.js → dist-TQKOMXXI.js} +4 -2
- package/dist/{docs-D22SOQEZ.js → docs-WYJSJGSF.js} +2 -2
- package/dist/{doctor-3DXWW63F.js → doctor-HLG4AP3Q.js} +12 -12
- package/dist/{energy-4HY7COXH.js → energy-3T3DDIEN.js} +13 -13
- package/dist/{events-TFVE7AUR.js → events-HZG5BWCQ.js} +5 -5
- package/dist/{events-JAGPGK7R.js → events-LB2RDZX3.js} +6 -6
- package/dist/{events-ULVZ7V2C.js → events-ZZNUYUCY.js} +15 -15
- package/dist/{extract-5KTFRIH2.js → extract-7STXIEDI.js} +13 -13
- package/dist/{face-T6D34LR7.js → face-3DWRLSWO.js} +13 -13
- package/dist/{feedback-QQQYENCU.js → feedback-4V2HGHTZ.js} +13 -12
- package/dist/{ffmpeg-A2O4HSRD.js → ffmpeg-5BWHEWVW.js} +5 -5
- package/dist/{figma-4RODZMCT.js → figma-4SSCW6YU.js} +5 -5
- package/dist/fontLocalizeCli.js +8 -8
- package/dist/{frames-L43TSSAY.js → frames-V3OUCXX6.js} +14 -14
- package/dist/{generate-7HZKBLPZ.js → generate-W4HW4MJQ.js} +19 -18
- package/dist/{get-MXKV4NUL.js → get-FXFV3VDQ.js} +12 -11
- package/dist/{gpuPolicy-TKHFDEH2.js → gpuPolicy-X4BOE2HD.js} +5 -5
- package/dist/{grade-compare-KNXFKMFI.js → grade-compare-PV62LISL.js} +29 -28
- package/dist/{heifImagePrep-L2EY67F2.js → heifImagePrep-2K2I4SCP.js} +6 -6
- package/dist/{help-YN43ORVX.js → help-R2ASMVJB.js} +3 -3
- package/dist/{history-VAMN53LT.js → history-X24EZSOO.js} +10 -10
- package/dist/hyperframes-player.global.js +1 -1
- package/dist/{info-QKEEGK2R.js → info-DJ6TZSEF.js} +9 -9
- package/dist/{init-AAA44PYH.js → init-GQ2GRVQS.js} +34 -31
- package/dist/{ink-V6CEFYB6.js → ink-L4VRIFJ7.js} +13 -13
- package/dist/{inspect-5JGTWCYO.js → inspect-5IXDDOJN.js} +29 -28
- package/dist/{installer-PUQYKLXZ.js → installer-ZIBXFENP.js} +3 -2
- package/dist/{keyframes-FJNUSXAF.js → keyframes-ASFH5XYJ.js} +10 -10
- package/dist/{lambda-RYCG67CX.js → lambda-ELYE5XIZ.js} +17 -17
- package/dist/{layout-DXIPVY3W.js → layout-NNGVQWY4.js} +29 -28
- package/dist/{lint-JZADWIMR.js → lint-GYJFRDI2.js} +13 -13
- package/dist/{lintProject-EV3EEBY3.js → lintProject-NGMRZDNT.js} +2 -2
- package/dist/{list-YRLUJMP6.js → list-UBFDCTVO.js} +13 -12
- package/dist/{localPage-KIFKMB2B.js → localPage-DHAVU3EM.js} +5 -5
- package/dist/{login-H74JDEJ2.js → login-OKJT7QWG.js} +10 -9
- package/dist/{logout-UMDA3HDE.js → logout-YACQMRZN.js} +5 -4
- package/dist/{look-WVGBBYFE.js → look-4GINLBBO.js} +13 -13
- package/dist/{manager-T633Z2L4.js → manager-Q5X74T5D.js} +6 -6
- package/dist/{measure-DWQHHY3H.js → measure-LICRA4FH.js} +11 -11
- package/dist/{media-treatment-JHDDWRFU.js → media-treatment-PM3WLJZ4.js} +15 -15
- package/dist/{media-use-5SDC3MCE.js → media-use-NUORYIBQ.js} +7 -5
- package/dist/{models-6SOW23N6.js → models-V2XJYFY5.js} +13 -13
- package/dist/{motionShot-B4K6LEU3.js → motionShot-YBJB6L3C.js} +15 -15
- package/dist/{normalize-audio-O6STMACD.js → normalize-audio-LUAEDEUM.js} +8 -8
- package/dist/{open-VRCTXBD3.js → open-RTL2AU5C.js} +14 -13
- package/dist/{parakeetRunner-MNOIBRZZ.js → parakeetRunner-FBEL64JM.js} +10 -10
- package/dist/{pipeline-N3M6VXBC.js → pipeline-2VN2FDAL.js} +8 -8
- package/dist/{play-5WUZGJ4B.js → play-U3EXVEC7.js} +22 -21
- package/dist/{policies-EERREOZJ.js → policies-EV7XPSQC.js} +2 -2
- package/dist/{preflight-XZZXHV42.js → preflight-Z3U5OGW3.js} +6 -6
- package/dist/{present-W7OODR7J.js → present-NXEDFMC4.js} +17 -17
- package/dist/{preview-NOQSYZAD.js → preview-AUDJW3KE.js} +23 -22
- package/dist/{probe-WFIYEXM5.js → probe-QQXAWDZG.js} +13 -13
- package/dist/{producer-HI6M6755.js → producer-DNWWPGFA.js} +1 -1
- package/dist/{progress-STSH2JRY.js → progress-FWJJMPIQ.js} +2 -2
- package/dist/{projectConfig-PUAOWUNS.js → projectConfig-FMXOJBJY.js} +5 -4
- package/dist/{prompts-ZEVFT7US.js → prompts-27EPTM64.js} +2 -2
- package/dist/{publish-7W46NJFT.js → publish-7HSXMQEF.js} +15 -14
- package/dist/{refresh-4FQFQ2SW.js → refresh-L5C2HPMC.js} +5 -4
- package/dist/{remove-background-SYHNGASQ.js → remove-background-AIYMKXZW.js} +12 -12
- package/dist/{render-EF7Y6YYC.js → render-FD7LHCCC.js} +4 -4
- package/dist/{render-GYQZQB2O.js → render-RMPWJTY4.js} +39 -38
- package/dist/{render-74JIGKTN.js → render-SAAQKFHE.js} +126 -62
- package/dist/{render-batch-JYYP4RXA.js → render-batch-WPHP27VT.js} +4 -4
- package/dist/renderSetupWorker.js +2 -2
- package/dist/{resolver-BKFLETMU.js → resolver-E7IHSWCQ.js} +3 -2
- package/dist/{reverse-NEC42AID.js → reverse-GHX5LUSV.js} +1 -1
- package/dist/{run-Z6AW753F.js → run-65M6ECM2.js} +6 -5
- package/dist/{sherpa-2ROE6TLC.js → sherpa-QQZMXXO5.js} +9 -9
- package/dist/{sites-EAGXQOKI.js → sites-O7A7G3ZQ.js} +2 -2
- package/dist/skills/hyperframes-cli/references/cloud.md +10 -10
- package/dist/skills/hyperframes-cli/references/lint-validate-inspect.md +1 -1
- package/dist/skills/media-use/references/resolve.md +2 -0
- package/dist/skills/media-use/scripts/lib/bundled-sfx-provider.mjs +1 -1
- package/dist/skills/media-use/scripts/lib/heygen-search.mjs +4 -2
- package/dist/skills/media-use/scripts/lib/match.mjs +17 -0
- package/dist/skills/media-use/scripts/lib/sfx-provider.mjs +20 -2
- package/dist/skills/media-use/scripts/resolve.mjs +52 -9
- package/dist/{skills-R56MSU2Y.js → skills-WCXVUM6C.js} +10 -10
- package/dist/{skillsUpdateCheck-I6G3MQWO.js → skillsUpdateCheck-PEVW2JO6.js} +5 -5
- package/dist/{snapshot-J2NU7WTJ.js → snapshot-2ACZXDLZ.js} +36 -35
- package/dist/{src-L7UBHHKB.js → src-DA2HOM3K.js} +4 -4
- package/dist/{src-5XQ6A3VE.js → src-WISBTYBV.js} +7 -7
- package/dist/{start-VUMSNLKC.js → start-DDOWW7K5.js} +21 -20
- package/dist/{staticProjectServer-2JYB7RLI.js → staticProjectServer-MQ7H4MGQ.js} +14 -13
- package/dist/{status-SUK4I7TS.js → status-74IZXJKQ.js} +24 -8
- package/dist/studio/assets/{hyperframes-player-Dw-0BWQW.js → hyperframes-player-B2_9tPTr.js} +1 -1
- package/dist/studio/assets/{index-NwWb1W86.js → index-BHe_y2lu.js} +1 -1
- package/dist/studio/assets/{index-BNZeN67E.js → index-DToBQdGg.js} +4 -4
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-MEZKFJBY.js → studio-api-UABUZ3PZ.js} +6 -6
- package/dist/{studioServer-XGR4YPXX.js → studioServer-FGXZA75B.js} +54 -47
- package/dist/{sync-ZIMGTQEN.js → sync-AVGYYG4D.js} +13 -13
- package/dist/{telemetry-WGNNQUSF.js → telemetry-5WZGQCKA.js} +3 -3
- package/dist/{telemetry-PT5KSL5T.js → telemetry-7IM2NV22.js} +6 -6
- package/dist/templates/_shared/AGENTS.md +7 -6
- package/dist/templates/_shared/CLAUDE.md +7 -6
- package/dist/{templates-7AT45DZI.js → templates-5CWKOSBX.js} +102 -26
- package/dist/{timeline-IH422KGC.js → timeline-A7R54T7C.js} +19 -19
- package/dist/{tokens-ZVJMHDTM.js → tokens-W6RQVKWV.js} +5 -5
- package/dist/{transcribe-FRRXA77O.js → transcribe-GPOMREHS.js} +24 -23
- package/dist/{transcribe-QIZGXMR5.js → transcribe-N2C2MYCG.js} +8 -8
- package/dist/{tts-IMW74GBX.js → tts-QRQEYR3Q.js} +4 -4
- package/dist/{update-E2RIAV5T.js → update-X643YOPS.js} +15 -13
- package/dist/{updateCheck-EII7XDIR.js → updateCheck-O7IUSOXN.js} +4 -4
- package/dist/{upgrade-BKGP2TM7.js → upgrade-6NWYJUFT.js} +7 -7
- package/dist/{urlDownloader-FOXK4FYP.js → urlDownloader-PFHIVGDF.js} +4 -4
- package/dist/{validate-M4FZVBRP.js → validate-IIFU6OEG.js} +22 -22
- package/dist/{video-AVEGMBDM.js → video-R6TSXZMN.js} +8 -8
- package/dist/{voices-E5RUGLJK.js → voices-Y572PKNN.js} +17 -16
- package/dist/warmCheck.js +38 -37
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var HyperframesPlayer=(()=>{var je=Object.defineProperty;var hi=Object.getOwnPropertyDescriptor;var fi=Object.getOwnPropertyNames;var bi=Object.prototype.hasOwnProperty;var gi=(t,e)=>{for(var n in e)je(t,n,{get:e[n],enumerable:!0})},_i=(t,e,n,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of fi(e))!bi.call(t,r)&&r!==n&&je(t,r,{get:()=>e[r],enumerable:!(i=hi(e,r))||i.enumerable});return t};var yi=t=>_i(je({},"__esModule",{value:!0}),t);var _o={};gi(_o,{HyperframesPlayer:()=>ze,SPEED_PRESETS:()=>pt,formatSpeed:()=>W,formatTime:()=>Le});var Ft=t=>t!==null&&Number.isFinite(t)&&t>0;function qe(t){let e=t.clipEndsSeconds.filter(i=>i===null).length;if(Ft(t.authoredDurationSeconds))return{seconds:t.authoredDurationSeconds,source:"authored",pendingClips:e};let n=t.clipEndsSeconds.filter(Ft);return n.length>0?{seconds:Math.max(...n),source:"derived",pendingClips:e}:{seconds:null,source:"unresolved",pendingClips:e,reason:e>0?"every clip's length is still pending":"no authored duration and no clip with a length"}}var vi="http://www.w3.org/1999/xhtml";function Ut(t){return t!=null&&t.nodeType===1}function Ye(t){return Ut(t)&&t.namespaceURI===vi}function Xe(t,e){return Ye(t)&&t.localName===e}function Ai(t){return Xe(t,"video")}function Si(t){return Xe(t,"audio")}function P(t){return Ai(t)||Si(t)}function Ht(t){return Xe(t,"img")}function Se(t){if(t==null||t.trim()==="")return null;let e=Number.parseInt(t,10);return Number.isFinite(e)&&e>0?e:null}function ee(t=document){let e=t.querySelector('[data-composition-id][data-root="true"]');return Ye(e)?e:t.querySelector("[data-composition-id]")}var G=Object.freeze({start:"data-start",duration:"data-duration",trackIndex:"data-track-index",derivedEnd:"data-end",legacyTrack:"data-layer"}),To=Object.freeze([G.start,G.duration,G.trackIndex]),Ro=Object.freeze([G.derivedEnd]),xo=Object.freeze([G.derivedEnd,G.legacyTrack]);function Ke(t){if(t==null||t.trim()==="")return null;let e=Number(t);return Number.isFinite(e)?e:null}var Vt=t=>{let e=Ke(t);return e!==null&&e>=0?e:null};function Ee(t){return Vt(t("data-playback-start"))??Vt(t("data-media-start"))??0}var te=.1,ne=10;function Ze(t){return Number.isFinite(t)&&t>0?Math.max(te,Math.min(ne,t)):1}function Wt(t,e=1){let n=Number.parseFloat(t("data-playback-rate")??"");return Ze(Number.isFinite(n)&&n>0?n:e)}function Je(t){let e=Ke(t("data-duration"));return e!==null&&e>0?e:null}function $t(t,e){let n=Je(t);if(n!==null)return n;let i=Ke(t("data-end"));return i!==null?i-e:null}var Ei=3;function Qe(t,e,n){return Number.isFinite(t)?Math.max(0,t-e)/Ze(n):null}function et(t){let{tag:e,authoredDurationSeconds:n,sourceDurationSeconds:i,mediaStartSeconds:r,playbackRate:o}=t;if(n!==null&&n>0)return{seconds:n,source:"authored"};if(e==="img")return{seconds:Ei,source:"default"};if(i===null)return{seconds:null,source:"pending",reason:"source duration not yet probed"};let a=Qe(i,r,o);return a===null?{seconds:null,source:"pending",reason:"source reported a non-finite duration"}:{seconds:a,source:"media"}}var Ti="data-fx-chain",ko=Ti.slice(5);var ie=(t="frequency",e="Frequency",n=1e3,i=20,r=2e4)=>({kind:"number",key:t,label:e,unit:"Hz",min:i,max:r,step:1,default:n,scale:"log",automatable:!0}),tt=(t=.707,e="Bandwidth: higher is narrower.")=>({kind:"number",key:"q",label:"Q",unit:"",min:.1,max:20,step:.01,default:t,scale:"log",automatable:!0,hint:e}),Te=(t=-40,e=40,n=0)=>({kind:"number",key:"gain",label:"Gain",unit:"dB",min:t,max:e,step:.1,default:n,automatable:!0}),Bt={kind:"enum",key:"poles",label:"Slope",options:[{value:"1",label:"6 dB/oct"},{value:"2",label:"12 dB/oct"}],default:"2",hint:"Two poles is the usual biquad; one pole is gentler."},Gt=[{id:"gain",label:"Gain",group:"dynamics",description:"Raise or lower the whole signal. Automate it to duck under something else.",params:[Te(-60,12,0)],web:"gain-node"},{id:"peaking",label:"Peaking EQ",group:"filter",description:"Boost or cut a band, leaving everything either side alone.",params:[ie("frequency","Frequency",1e3),Te(-40,40,0),tt(1)],web:"biquad-peaking"},{id:"lowshelf",label:"Low Shelf",group:"filter",description:"Lift or drop everything below the corner frequency.",params:[ie("frequency","Frequency",200,20,2e3),Te(-40,40,0)],web:"biquad-lowshelf"},{id:"highshelf",label:"High Shelf",group:"filter",description:"Lift or drop everything above the corner frequency.",params:[ie("frequency","Frequency",4e3,500,2e4),Te(-40,40,0)],web:"biquad-highshelf"},{id:"highpass",label:"High-pass",group:"filter",description:"Remove low frequencies: the usual fix for rumble on a voice.",params:[ie("frequency","Cutoff",300,20,2e4),tt(.707),Bt],web:"biquad-highpass"},{id:"lowpass",label:"Low-pass",group:"filter",description:"Remove high frequencies, which darkens or muffles a track.",params:[ie("frequency","Cutoff",8e3,100,2e4),tt(.707),Bt],web:"biquad-lowpass"},{id:"compressor",label:"Compressor",group:"dynamics",description:"Pull loud parts down so the quiet ones can come up.",params:[{kind:"number",key:"threshold",label:"Threshold",unit:"dB",min:-60,max:0,step:.5,default:-24,hint:"Level above which the compressor starts working."},{kind:"number",key:"ratio",label:"Ratio",unit:":1",min:1,max:20,step:.1,default:4},{kind:"number",key:"attack",label:"Attack",unit:"ms",min:.01,max:2e3,step:.1,default:20,scale:"log"},{kind:"number",key:"release",label:"Release",unit:"ms",min:.01,max:9e3,step:1,default:250,scale:"log"},{kind:"number",key:"knee",label:"Knee",unit:"",min:1,max:8,step:.01,default:2.83,hint:"1 is a hard corner; higher eases into it."},{kind:"number",key:"makeup",label:"Makeup",unit:"dB",min:0,max:36,step:.1,default:0},{kind:"number",key:"mix",label:"Mix",unit:"",min:0,max:1,step:.01,default:1,hint:"Below 1 blends the dry signal back in."}],web:"worklet-compressor"},{id:"limiter",label:"Limiter",group:"dynamics",description:"Peak limiter that follows the signal's level. It has no lookahead, so a fast peak or an inter-sample peak can pass the ceiling; use the true-peak limiter for a delivery limit.",params:[{kind:"number",key:"limit",label:"Ceiling",unit:"dB",min:-24,max:0,step:.1,default:-1},{kind:"number",key:"attack",label:"Attack",unit:"ms",min:.1,max:80,step:.1,default:5},{kind:"number",key:"release",label:"Release",unit:"ms",min:1,max:8e3,step:1,default:50,scale:"log"},{kind:"number",key:"level_out",label:"Output",unit:"dB",min:-24,max:24,step:.1,default:0}],web:"worklet-limiter"},{id:"truepeak",label:"True-peak limiter",group:"dynamics",description:"Lookahead limiter that holds a 4x estimate of the inter-sample peak at a dBTP ceiling; full-band noise can land up to about 1.7 dB above it. Adds lookahead plus about 0.3 ms of latency.",params:[{kind:"number",key:"ceiling",label:"Ceiling",unit:"dBTP",min:-24,max:0,step:.1,default:-1,hint:"Target true peak, measured on a 4x oversampled signal. Dense full-band sound can end up to about 1.7 dB above it."},{kind:"number",key:"lookahead",label:"Lookahead",unit:"ms",min:.5,max:10,step:.1,default:3,hint:"How far ahead the gain starts falling. Longer is smoother and adds the same latency."},{kind:"number",key:"release",label:"Release",unit:"ms",min:10,max:2e3,step:1,default:80,scale:"log"}],web:"worklet-truepeak"},{id:"gate",label:"Noise Gate",group:"dynamics",description:"Silence the track when it drops below the threshold.",params:[{kind:"number",key:"threshold",label:"Threshold",unit:"dB",min:-80,max:0,step:.5,default:-35},{kind:"number",key:"range",label:"Range",unit:"dB",min:-80,max:0,step:.5,default:-24,hint:"How far down the gate pulls when closed."},{kind:"number",key:"ratio",label:"Ratio",unit:":1",min:1,max:20,step:.1,default:10},{kind:"number",key:"attack",label:"Attack",unit:"ms",min:.01,max:9e3,step:.1,default:1,scale:"log"},{kind:"number",key:"release",label:"Release",unit:"ms",min:.01,max:9e3,step:1,default:100,scale:"log"},{kind:"number",key:"knee",label:"Knee",unit:"",min:1,max:8,step:.01,default:2.83}],web:"worklet-gate"},{id:"saturate",label:"Saturation",group:"nonlinear",description:"Soft-clip the waveform for warmth or outright distortion.",params:[{kind:"enum",key:"type",label:"Curve",options:[{value:"tanh",label:"Tanh"},{value:"atan",label:"Arctan"},{value:"cubic",label:"Cubic"},{value:"exp",label:"Exponential"},{value:"alg",label:"Algebraic"},{value:"quintic",label:"Quintic"},{value:"sin",label:"Sine"},{value:"erf",label:"Error function"},{value:"hard",label:"Hard clip"}],default:"tanh"},{kind:"number",key:"threshold",label:"Threshold",unit:"dB",min:-40,max:0,step:.1,default:-6},{kind:"number",key:"output",automatable:!0,label:"Output",unit:"dB",min:-24,max:24,step:.1,default:0},{kind:"number",key:"oversample",label:"Oversample",unit:"x",min:1,max:8,step:1,default:4,hint:"Higher costs more but keeps aliasing down."}],web:"waveshaper"},{id:"bitcrush",label:"Bitcrush",group:"nonlinear",description:"Drop bit depth and sample rate for a lo-fi, digital sound.",params:[{kind:"number",key:"bits",label:"Bit depth",unit:"bit",min:1,max:32,step:.1,default:8},{kind:"number",key:"samples",label:"Sample hold",unit:"x",min:1,max:250,step:1,default:1,hint:"Repeats each sample N times, a crude downsample."},{kind:"number",key:"mix",label:"Mix",unit:"",min:0,max:1,step:.01,default:1}],web:"worklet-bitcrush"},{id:"pitchshift",label:"Pitch shift",group:"time",description:"Shifts pitch up or down without changing playback speed. Adds ~50 ms of latency.",params:[{kind:"number",key:"semitones",label:"Semitones",unit:"st",min:-12,max:12,step:1,default:0},{kind:"number",key:"mix",label:"Mix",unit:"",min:0,max:1,step:.01,default:1}],web:"worklet-pitchshift"},{id:"delay",label:"Delay",group:"time",description:"Repeating echoes behind the dry signal.",params:[{kind:"number",key:"time",automatable:!0,label:"Time",unit:"ms",min:1,max:5e3,step:1,default:250,scale:"log"},{kind:"number",key:"feedback",automatable:!0,label:"Feedback",unit:"",min:.01,max:.95,step:.01,default:.35},{kind:"number",key:"mix",automatable:!0,label:"Mix",unit:"",min:0,max:1,step:.01,default:.4}],web:"delay-feedback"},{id:"chorus",label:"Chorus",group:"time",description:"Detuned copies of the signal for width and thickness.",params:[{kind:"number",key:"delay",automatable:!0,label:"Delay",unit:"ms",min:1,max:100,step:.1,default:7},{kind:"number",key:"depth",automatable:!0,label:"Depth",unit:"ms",min:0,max:10,step:.01,default:2},{kind:"number",key:"speed",automatable:!0,label:"Rate",unit:"Hz",min:.01,max:10,step:.01,default:1},{kind:"number",key:"mix",automatable:!0,label:"Mix",unit:"",min:0,max:1,step:.01,default:.5}],web:"chorus-lfo"},{id:"phaser",label:"Phaser",group:"time",description:"Sweeping notches moving through the spectrum.",params:[{kind:"number",key:"in_gain",automatable:!0,label:"Input",unit:"",min:0,max:1,step:.01,default:.4},{kind:"number",key:"out_gain",automatable:!0,label:"Output",unit:"",min:0,max:2,step:.01,default:.74},{kind:"number",key:"delay",label:"Delay",unit:"ms",min:.1,max:5,step:.1,default:3},{kind:"number",key:"decay",label:"Decay",unit:"",min:0,max:.99,step:.01,default:.4},{kind:"number",key:"speed",automatable:!0,label:"Rate",unit:"Hz",min:.1,max:2,step:.01,default:.5},{kind:"enum",key:"type",label:"Waveform",options:[{value:"0",label:"Triangular"},{value:"1",label:"Sinusoidal"}],default:"0"}],web:"allpass-phaser"},{id:"reverb",label:"Reverb",group:"time",description:"Room tail. Both ends convolve the same generated impulse, so preview matches render.",params:[{kind:"number",key:"size",label:"Room size",unit:"",min:.05,max:1,step:.01,default:.7},{kind:"number",key:"damping",label:"Damping",unit:"",min:0,max:1,step:.01,default:.5,hint:"Higher rolls the top off the tail faster."},{kind:"number",key:"wet",automatable:!0,label:"Wet",unit:"",min:0,max:1,step:.01,default:.35},{kind:"number",key:"dry",automatable:!0,label:"Dry",unit:"",min:0,max:1,step:.01,default:.7}],web:"convolver"}],Mo=new Map(Gt.map(t=>[t.id,t]));var Co=Gt.map(t=>t.id);function Ri(t){return 10**(t/20)}var zt=Ri(12);var jt="data-automation",Wo=jt.slice(5),nt=1,xi=512,L=class extends Error{constructor(e){super(e),this.name="AudioAutomationError"}},Re="volume",xe="rate";function qt(t){if(t===Re)return{kind:"volume"};if(t===xe)return{kind:"rate"};let e=t.split(".");if(e.length===3&&e[0]==="fx"&&e[1]===wi){let r=e[2];return r?{kind:"preset",presetId:r}:null}if(e.length!==3||e[0]!=="fx")return null;let[,n,i]=e;return!n||!i?null:{kind:"fx",nodeId:n,param:i}}var wi="preset";var ki={min:0,max:zt,step:.01,unit:"",label:"Volume",scale:"linear",default:1};var Mi={min:te,max:ne,step:.05,unit:"x",label:"Speed",scale:"log",default:1};function re(t){if(typeof t=="number")return Number.isFinite(t)?t:null;if(typeof t=="string"&&t.trim()!==""){let e=Number(t);return Number.isFinite(e)?e:null}return null}function Ci(t){let e=re(t);return e===null||e===0?0:Math.min(1,Math.max(-1,e))}function Yt(t,e){let n=re(t),i=re(e);if(n===null||i===null)return null;let r=s=>Math.min(.999,Math.max(.001,s)),o=r(n),a=r(i);return Math.abs(o-a)<1e-6?null:{x:o,y:a}}function Ii(t){let e=Ci(t?.curve),n=Yt(t?.viaX,t?.viaY);return{...e?{curve:e}:{},...n?{viaX:n.x,viaY:n.y}:{}}}function Di(t,e){let n=re(t?.t),i=re(t?.v);if(n===null||i===null)return null;let r=e?Math.min(e.max,Math.max(e.min,i)):i;return{t:Math.max(0,n),v:r,...Ii(t)}}function Pi(t,e){let n=t.map(r=>Di(r,e)).filter(r=>r!==null).sort((r,o)=>r.t-o.t),i=[];for(let r of n)i.length>0&&i[i.length-1].t===r.t?i[i.length-1]=r:i.push(r);return i.slice(0,xi)}function Li(t){let e=[];for(let n of t.lanes){if(!qt(n.target))continue;let i=n.target===Re?ki:n.target===xe?Mi:null,r=Pi(n.points??[],i);r.length>0&&e.push({target:n.target,points:r})}return{version:nt,lanes:e}}function Xt(t){let e;try{e=JSON.parse(t)}catch(r){throw new L(`Automation is not valid JSON: ${r.message}`)}if(typeof e!="object"||e===null)throw new L("Automation must be a JSON object.");let n=e;if(n.version!==nt)throw new L(`Unsupported automation version: ${String(n.version)}`);if(!Array.isArray(n.lanes))throw new L("Automation is missing a `lanes` array.");let i=n.lanes.map((r,o)=>{if(typeof r!="object"||r===null)throw new L(`Lane ${o} is not an object.`);let a=r;if(typeof a.target!="string"||!qt(a.target))throw new L(`Lane ${o} has an unreadable target: ${String(a.target)}`);if(!Array.isArray(a.points))throw new L(`Lane ${o} is missing a \`points\` array.`);return{target:a.target,points:a.points}});return Li({version:nt,lanes:i})}function Ni(t,e){return e?Math.pow(t,Math.pow(2,2*e)):t}function Oi(t,e){let n=t-.5,i=e-.5,r=.999,o=1e6,a=n>0?n/(r-t):n<0?-n/(t-(1-r)):0,s=i>0?i/(r-e):i<0?-i/(e-(1-r)):0,l=Math.min(o,Math.max(1,a,s));return{cx:t+n/l,cy:e+i/l,w:l}}function Fi(t,e,n){let{cx:i,cy:r,w:o}=Oi(e,n),a=2-2*o,s=t*a-1+2*o*i,l=-t*a-2*o*i,u=Ui(s,l,t),c=1-u,h=c*c+2*o*u*c+u*u;return h>0?(2*o*r*u*c+u*u)/h:t}function Ui(t,e,n){if(Math.abs(t)<1e-12)return Math.abs(e)<1e-12?n:-n/e;let i=Math.sqrt(Math.max(0,e*e-4*t*n)),r=(-e+i)/(2*t),o=(-e-i)/(2*t),a=s=>s>=-1e-9&&s<=1+1e-9;return a(r)?Math.min(1,Math.max(0,r)):a(o)?Math.min(1,Math.max(0,o)):n}function Hi(t,e){let n=Yt(e.viaX,e.viaY);return n?Fi(Math.min(1,Math.max(0,t)),n.x,n.y):Ni(t,e.curve)}function Vi(t,e,n,i){return i==="log"&&t>0&&e>0?Math.exp(Math.log(t)+(Math.log(e)-Math.log(t))*n):t+(e-t)*n}function we(t,e,n="linear"){let i=t.points;if(i.length===0)return 0;let r=i[0];if(e<=r.t)return r.v;let o=i[i.length-1];if(e>=o.t)return o.v;let a=0,s=i.length-1;for(;s-a>1;){let h=a+s>>1;i[h].t<=e?a=h:s=h}let l=i[a],u=i[s],c=u.t-l.t;return c<=0?u.v:Vi(l.v,u.v,Hi((e-l.t)/c,l),n)}var ke=new Map,Wi=64;function Kt(t,e=Re){let n=`${e}\0${t}`,i=ke.get(n);if(i!==void 0)return i;let r=null;try{r=Xt(t).lanes.find(o=>o.target===e)??null}catch{r=null}return ke.size>Wi&&ke.clear(),ke.set(n,r),r}var Zt=48,Jt=new WeakMap;function $i(t){let e=t.points,n=e[0].v,i=e[e.length-1].v,r=[0],o=[0],a=l=>{let u=r[r.length-1];if(l<=u)return;let c=we(t,u,"log");r.push(l),o.push(o[o.length-1]+(c+we(t,l,"log"))/2*(l-u))},s=Math.max(0,e[0].t);a(s);for(let l=1;l<e.length;l+=1){let u=e[l-1].t,c=e[l].t;if(!(c<=0))for(let h=1;h<=Zt;h+=1)a(Math.max(u,0)+(c-u)*h/Zt)}return{ts:Float64Array.from(r),ss:Float64Array.from(o),firstRate:n,lastRate:i}}function Bi(t){let e=Jt.get(t);return e||(e=$i(t),Jt.set(t,e)),e}function Gi(t){return typeof t!="number"&&t.points.length>0}function zi(t,e,n){let i=0,r=t.length-1;for(;r-i>1;){let o=i+r>>1;t[o]<=n?i=o:r=o}return e[i]+(e[r]-e[i])*(n-t[i])/(t[r]-t[i])}function Qt(t,e){if(typeof t=="number")return e/t;if(!Gi(t))return e;let{ts:n,ss:i,firstRate:r,lastRate:o}=Bi(t),a=n.length-1;return e<=0?e/r:e>=i[a]?n[a]+(e-i[a])/o:zi(i,n,e)}function ji(t){return t?Kt(t,xe):null}function en(t,e){return ji(t)??e}var Yo=[{id:"montage",label:"Montage",points:[[0,.9],[.15,.3],[.5,2.5],[.85,.3],[1,.9]]},{id:"hero",label:"Hero",points:[[0,1],[.25,1.6],[.5,.25],[.75,1.6],[1,1]]},{id:"bullet",label:"Bullet",points:[[0,3],[.4,3],[.5,.15],[.6,3],[1,3]]},{id:"jump-cut",label:"Jump cut",points:[[0,.5],[.24,.5],[.26,3],[.5,3],[.52,.5],[.74,.5],[.76,3],[1,3]]},{id:"flash-in",label:"Flash in",points:[[0,.3],[.6,.6],[1,5]]},{id:"flash-out",label:"Flash out",points:[[0,5],[.4,.6],[1,.3]]},{id:"ramp-in",label:"Ramp in",points:[[0,.5],[1,1]]},{id:"ramp-out",label:"Ramp out",points:[[0,1],[1,.5]]},{id:"slowmo-middle",label:"Slow-mo middle",points:[[0,1],[1/3,.35],[2/3,.35],[1,1]]}];var y=Object.freeze({start:"data-start",duration:"data-duration",trackIndex:"data-track-index",derivedEnd:"data-end",legacyTrack:"data-layer"}),Ko=Object.freeze([y.start,y.duration,y.trackIndex]),Zo=Object.freeze([y.derivedEnd]),Jo=Object.freeze([y.derivedEnd,y.legacyTrack]);function N(t){if(t==null||t.trim()==="")return null;let e=Number(t);return Number.isFinite(e)?e:null}var rn=/^[A-Za-z0-9_.:-]+$/;function on(t,e){let n=t.charCodeAt(e);return n>=48&&n<=57}function tn(t,e){let n=e;for(;n>=0&&on(t,n);)n--;return n}function qi(t,e){let n=e;for(;n>=0&&(t[n]??"").trim()==="";)n--;return n}function Yi(t){let e=t.length-1;if(!on(t,e))return null;let n=tn(t,e);return t[n]==="."&&(n=tn(t,n-1)),n+1}function Xi(t){let e=Yi(t);if(e==null)return null;let n=qi(t,e-1),i=t[n];if(i!=="+"&&i!=="-")return null;let r=t.slice(0,n).trim();if(!rn.test(r))return null;let o=Number(t.slice(e));return Number.isFinite(o)?{refId:r,operator:i,magnitude:o}:null}function oe(t){let e=(t??"").trim();if(!e)return null;let n=N(e);if(n!=null)return{kind:"absolute",value:n};if(rn.test(e))return{kind:"reference",refId:e,offset:0};let i=Xi(e);return i?{kind:"reference",refId:i.refId,offset:i.operator==="-"?-i.magnitude:i.magnitude}:null}function x(t,e,n,i){t.push({code:e,attribute:n,value:i})}function Ki(t,e,n,i){if(e==null||e.trim()==="")return n.defaultStart===void 0?0:n.defaultStart;if(!t)return x(i,"invalid-start",y.start,e),null;if(t.kind==="absolute")return Math.max(0,t.value);let r=n.resolveReferenceEnd?.(t.refId);return r==null||!Number.isFinite(r)?(x(i,"unresolved-start-reference",y.start,e),null):Math.max(0,r+t.offset)}var Zi=1e-9;function Ji(t,e){return Math.abs(t-e)<=Zi}function Qi(t,e,n){let i=N(t);if(i==null){x(n,"deprecated-end",y.derivedEnd,t),x(n,"invalid-end",y.derivedEnd,t);return}if(e==null){x(n,"deprecated-end",y.derivedEnd,t);return}Ji(i,e)||(x(n,"deprecated-end",y.derivedEnd,t),x(n,"conflicting-end",y.derivedEnd,t))}function er(t,e,n){let i=N(t);return i==null||i<0?(x(n,"invalid-duration",y.duration,t),{duration:null,end:null,durationSource:"invalid"}):{duration:i,end:e==null?null:e+i,durationSource:"duration"}}function tr(t,e,n){x(n,"deprecated-end",y.derivedEnd,t);let i=N(t);return i==null?(x(n,"invalid-end",y.derivedEnd,t),{duration:null,end:null,durationSource:"invalid"}):e==null?{duration:null,end:i,durationSource:"legacy-end"}:i<e?(x(n,"end-before-start",y.derivedEnd,t),{duration:null,end:null,durationSource:"invalid"}):{duration:i-e,end:i,durationSource:"legacy-end"}}function nr(t,e,n){let i=t.getAttribute(y.duration),r=t.getAttribute(y.derivedEnd);if(i==null)return r==null?{duration:null,end:null,durationSource:"missing"}:tr(r,e,n);let o=er(i,e,n);return r!=null&&Qi(r,o.end,n),o}function nn(t,e,n,i){let r=N(t);return r==null||!Number.isInteger(r)?(x(i,"invalid-track-index",e,t),{trackIndex:0,trackSource:"invalid"}):{trackIndex:r,trackSource:n}}function ir(t,e){let n=t.getAttribute(y.trackIndex),i=t.getAttribute(y.legacyTrack);if(n==null&&i==null)return{trackIndex:0,trackSource:"default"};if(n==null&&i!=null)return x(e,"deprecated-layer",y.legacyTrack,i),nn(i,y.legacyTrack,"legacy-layer",e);let r=nn(n??"",y.trackIndex,"track-index",e);if(i==null)return r;x(e,"deprecated-layer",y.legacyTrack,i);let o=N(i);return o!=null&&o!==r.trackIndex&&x(e,"conflicting-layer",y.legacyTrack,i),r}function it(t,e={}){let n=[],i=t.getAttribute(y.start),r=oe(i),o=Ki(r,i,e,n),a=nr(t,o,n),s=ir(t,n);return{startExpression:r,start:o,...a,...s,diagnostics:n}}function V(t){return N(t)}function rt(t){return Wt(e=>t.getAttribute(e),P(t)?t.defaultPlaybackRate:1)}function rr(t){return en(t.getAttribute("data-automation"),rt(t))}function ot(t){return Ee(e=>t.getAttribute(e))}function ae(t,e){return or(e,ot(t),rr(t))}function at(t){let e=et({tag:"video",authoredDurationSeconds:Je(n=>t.getAttribute(n)),sourceDurationSeconds:Number.isFinite(t.duration)?t.duration:null,mediaStartSeconds:ot(t),playbackRate:rt(t)});return e.source==="media"?ae(t,t.duration):e.seconds}function Me(t,e=0){return!Ht(t)||!t.hasAttribute("data-start")&&!t.hasAttribute("data-track-index")?null:et({tag:"img",authoredDurationSeconds:$t(n=>t.getAttribute(n),e),sourceDurationSeconds:null,mediaStartSeconds:0,playbackRate:1}).seconds}function or(t,e,n){return typeof n=="number"?Qe(t,e,n):Number.isFinite(t)?Qt(n,Math.max(0,t-e)):null}function an(){return globalThis}function st(t,e){if(typeof window>"u")return;let n=an(),i=n.__hf?.onSwallowed;if(i)try{i({label:t,error:e})}catch(r){}(n.__hfDebug||n.__HYPERFRAMES_DEBUG)&&console.debug(`[hyperframes] ${t} swallowed:`,e)}var ar=t=>t.paused?.()===!0?(t.startTime?.()??0)+(t.totalDuration?.()??0)/Math.abs(t.timeScale?.()||1):0;function se(t){try{if(typeof t?.duration!="function")return null;let e=t.getChildren?.(!1,!1,!0),n=Array.isArray(e)?e:[],i=Math.max(Number(t.duration()),...n.map(ar));return Number.isFinite(i)?i:null}catch(e){return st("runtime.timelineDuration",e),null}}var sn="data-hf-authored-duration",ln="data-hf-authored-end";function le(t){if(t==null||typeof t=="string"&&t.trim()==="")return null;let e=typeof t=="number"?t:Number(t);return Number.isFinite(e)?e:null}function Ce(t){let e=le(t.start);if(e==null)return null;let n=Math.max(0,e),i=le(t.duration),r=le(t.authoredDuration),o=i!=null&&i>0?i:r!=null&&r>0?r:null;if(o!=null)return{start:n,duration:o,end:n+o};let a=le(t.end),s=le(t.authoredEnd),l=a!=null&&a>n?a:s!=null&&s>n?s:null;return{start:n,duration:l==null?null:l-n,end:l}}var z=Object.freeze({start:"data-start",duration:"data-duration",trackIndex:"data-track-index",derivedEnd:"data-end",legacyTrack:"data-layer"}),pa=Object.freeze([z.start,z.duration,z.trackIndex]),ha=Object.freeze([z.derivedEnd]),fa=Object.freeze([z.derivedEnd,z.legacyTrack]);function sr(t){if(t==null||t.trim()==="")return null;let e=Number(t);return Number.isFinite(e)?e:null}var un=t=>{let e=sr(t);return e!==null&&e>=0?e:null};function lr(t){return un(t("data-playback-start"))??un(t("data-media-start"))??0}var dn="data-hf-media-start-basis";function cn(t){return t?.trim().toLowerCase()==="global"?"global":"local"}function ur(t){return cn(t.basis)==="global"?t.authoredStart:t.hostStart+t.authoredStart}function mn(t){return hn(t)?ur({authoredStart:t.authoredStart,hostStart:t.hostStart,basis:t.basis}):t.ordinaryStart()}function pn(t){return hn(t)&&cn(t.basis)==="global"}function hn(t){return!t.hasAutoStart&&t.authoredStart!=null&&t.hostStart!==0}function lt(t){return lr(e=>t.getAttribute(e))}function fn(t,e){return t-lt(e)}function ue(t){let e=t.timelineRegistry??{},n=t.includeAuthoredTimingAttrs??!1,i=t.documentRef??document,r=new WeakMap,o=new WeakMap,a=new Set,s=d=>(d.hasAttribute("data-composition-id")?d.parentElement:d)?.closest("[data-composition-id]")??null,l=(d,f)=>{let g=s(f);if(g){for(let M of g.querySelectorAll(`[id="${d}"]`))if(s(M)===g)return M}let R=i.getElementById(d);return R||(Array.from(i.querySelectorAll("[data-composition-id]")).find(M=>M.getAttribute("data-composition-id")===d)??null)},u=(d,f)=>n?d.getAttribute(f):null,c=d=>Ce({start:0,duration:d.getAttribute("data-duration"),authoredDuration:u(d,"data-hf-authored-duration")})?.duration??Ce({start:T(d,0),end:d.getAttribute("data-end"),authoredEnd:u(d,"data-hf-authored-end")})?.duration??null,h=d=>d!=null&&Number.isFinite(d)&&d>0?d:null,v=d=>{let f=d.getAttribute("data-composition-id");return f?h(se(e[f])):null},_=d=>{let f=o.get(d);if(f!==void 0)return f;let g=c(d)??h(P(d)?ae(d,d.duration):null)??h(Me(d))??v(d);return o.set(d,g),g},A="[data-composition-src], [data-composition-id], [data-composition-file]",b=d=>d.matches(A),S=d=>!d.hasAttribute("data-composition-id")||oe(d.getAttribute("data-start"))?null:d.parentElement?.closest(`[data-start], ${A}`)??null,k=(d,f)=>fn(T(d,f),S(d)??d),C=(d,f)=>{let g=d.hasAttribute("data-composition-id")?d.parentElement?.closest("[data-composition-id]"):d.closest("[data-composition-id]");return g?k(g,f):0},I=(d,f)=>{let g=oe(d.getAttribute("data-start"));if(!g){let H=S(d);return H?T(H,f):f}if(g.kind==="absolute")return C(d,f)+Math.max(0,g.value);let R=l(g.refId,d);if(!R)return f;let M=T(R,0),ve=_(R)??0,Ae=Math.min(0,C(d,0));return Math.max(Ae,M+ve+g.offset)},T=(d,f)=>{let g=r.get(d);if(g!==void 0)return g??f;if(a.has(d))return f;a.add(d);try{let R=I(d,f);return r.set(d,R),R}finally{a.delete(d)}},U=d=>{let f=d.closest("[data-composition-id]");return{authoredStart:V(d.getAttribute("data-start")),hostStart:f?k(f,0):0,hasAutoStart:d.hasAttribute("data-hf-auto-start"),basis:d.getAttribute(dn)}};return{resolveStartForElement:(d,f=0)=>T(d,Math.max(0,f)),resolveDurationForElement:d=>_(d),resolveMediaStartForElement:d=>{let f=U(d);return mn({...f,ordinaryStart:()=>T(d,f.hostStart)})},resolveHostStartForElement:d=>C(d,0),resolveHostSlotsForElement:d=>{let f=[];for(let g=d.parentElement;g;g=g.parentElement){if(!b(g)||S(g)||lt(g)<=0)continue;let R=T(g,0),M=c(g);f.push({start:R,end:M?R+M:1/0})}return f},isRootGlobalMediaStartForElement:d=>P(d)&&pn(U(d))}}function bn(){return{capturedTimeline:null,isPlaying:!1,currentTime:0,deterministicAdapters:[],canonicalFps:30,bridgeMuted:!1,bridgeVolume:1,mediaOutputMuted:!1,nativeMediaSyncDisabled:!1,webAudioMediaDisabled:!1,mediaAutoplayBlockedPosted:!1,mediaForceSyncNextTick:!1,playbackRate:1,bridgeLastPostedFrame:-1,bridgeLastPostedAt:0,bridgeLastPostedPlaying:!1,bridgeLastPostedMuted:!1,bridgeMaxPostIntervalMs:80,controlBridgeHandler:null,beforeUnloadHandler:null,injectedCompStyles:[],injectedCompScripts:[],injectedCompLinks:[],cachedTimedMediaEls:[],cachedMediaClips:[],cachedVideoClips:[],cachedMediaTimelineDurationSeconds:0,tornDown:!1,transportClock:null,transportRafId:null}}var gn=7200,ut=1/60,de=t=>t!==null&&t>ut?t:null;function dr(t){return{width:Se(t.getAttribute("data-width")),height:Se(t.getAttribute("data-height"))}}function cr(t,e){let n=null;for(let i of t.querySelectorAll("video[data-start], audio[data-start]")){let r=e.mediaStart(i);if(!Number.isFinite(r))continue;let o=e.mediaDuration(i);if(o==null||o<=ut)continue;let a=Math.max(0,r)+o;(!n||a>n.seconds)&&(n={seconds:a,element:i})}return n&&de(n.seconds)!==null?n:null}function mr(t,e){return cr(t,e)?.seconds??null}function pr(t,e){let n=[];for(let r of t.querySelectorAll("[data-composition-id][data-start]")){if(r.parentElement?.closest("[data-composition-id]")!==t)continue;let o=e.resolveStartForElement(r,0),a=e.resolveDurationForElement(r);!Number.isFinite(o)||a==null||a<=0||n.push(Math.max(0,o)+a)}let i=V(t.getAttribute("data-duration"));return de(qe({authoredDurationSeconds:null,clipEndsSeconds:[i,...n]}).seconds)}var hr=t=>t.hasAttribute("data-composition-id")||t.hasAttribute("data-composition-src");function fr(t,e,{unregisteredLottie:n}){let i=[];for(let o of t.querySelectorAll("[data-start]")){let a=e.resolveStartForElement(o,0);if(!Number.isFinite(a))continue;let s=e.resolveDurationForElement(o);s!=null?i.push(Math.max(0,a)+s):(P(o)||hr(o))&&i.push(null)}(n||t.querySelector("[data-lottie-src]"))&&i.push(null);let r=qe({authoredDurationSeconds:null,clipEndsSeconds:i});return r.pendingClips>0?{...r,seconds:null,source:"unresolved",reason:"a clip's length is pending"}:r}function br(t){return gr(t).seconds}function gr(t){if(t.declared!==null&&Number.isFinite(t.declared)&&t.declared>0)return{seconds:t.declared,from:"declared",floorIndex:null};let e=de(t.timeline()),n=t.floors().map(h=>h??0),i=Math.max(0,...n),r=Number.isFinite(t.fallback)&&t.fallback>ut?t.fallback:0,o=Math.max(i,r),s=e!==null&&e>=gn&&de(o)!==null?null:e,l=i>=r,u=h=>({seconds:h,from:l?"floor":"fallback",floorIndex:l?n.indexOf(i):null});if(s!==null)return s>=o?{seconds:s,from:"timeline",floorIndex:null}:u(o);if(de(i)!==null)return u(o);if(r>0)return{seconds:r,from:"fallback",floorIndex:null};let c=t.derived();return{seconds:c>0?c:0,from:"derived",floorIndex:null}}function _n(t){let e=ee(t);if(!e)return null;let n=ue({timelineRegistry:{},includeAuthoredTimingAttrs:!0,documentRef:t}),i=br({declared:V(e.getAttribute("data-duration")),timeline:()=>null,floors:()=>[mr(t,{mediaStart:n.resolveMediaStartForElement,mediaDuration:at}),pr(e,n)],fallback:0,derived:()=>fr(e,n,{unregisteredLottie:!1}).seconds??0});return{...dr(e),fps:bn().canonicalFps,durationSeconds:i}}function Ie(t){return t+1e-5}function yn(){let{userAgent:t,maxTouchPoints:e}=navigator;return/iP(hone|ad|od)/.test(t)||/Macintosh/.test(t)&&e>1}function De(){let{userAgent:t}=navigator;return/AppleWebKit/.test(t)&&!/Chrom(e|ium)\/|Edg\/|Android/.test(t)}var _r="hyperframes-studio-preview";var dt="data-hf-player-frame";function yr(t){return De()&&t.defaultView?.frameElement?.hasAttribute(dt)===!0}function vn(t){return t.querySelector(`meta[name="${_r}"]`)!==null||yr(t)}var An="__hfPreviewErrors";function Sn(t){return t.hasRuntime||t.runtimeInjected?!1:!!(t.hasNestedCompositions||t.hasTimelines&&t.attempts>=5)}function j(t){return typeof t=="object"&&t!==null}function En(t){return j(t)&&typeof t.getDuration=="function"}function Tn(t){return j(t)&&typeof t.duration=="function"&&typeof t.time=="function"&&typeof t.seek=="function"&&typeof t.play=="function"&&typeof t.pause=="function"}var q="https://cdn.jsdelivr.net/npm/@hyperframes/core@0.9.12/dist/hyperframe.runtime.iife.js";function ce(t){if(t===null)return null;let e=Number.parseInt(t,10);return Number.isFinite(e)&&e>0?e:null}function vr(t){let e=t?.querySelector("[data-composition-id][data-width][data-height]")??t?.querySelector("[data-width][data-height]");if(!e)return null;let n=ce(e.getAttribute("data-width")),i=ce(e.getAttribute("data-height"));return n!==null&&i!==null?{width:n,height:i}:null}function Ar(t){return Array.isArray(t)?t.find(e=>typeof e=="string"&&e.trim()!==""&&e!=="[object Event]")??null:null}var Pe=class{constructor(e,n){this._iframe=e;this._callbacks=n}_iframe;_callbacks;_interval=null;_runtimeInjected=!1;_runtimeScript=null;_failure=null;get failed(){return this._failure!==null&&this._failure.document===this._iframe.contentDocument}get runtimeInjected(){return this._runtimeInjected}start(){this.stop(),this._failure=null,this._runtimeInjected=!1;let e=0;this._interval=setInterval(()=>{e++;let n=null;try{n=this._poll(e)}catch(i){i instanceof DOMException&&i.name==="SecurityError"||(n={kind:"error",message:i instanceof Error?i.message:String(i)})}n??=this._deadlineOutcome(e),n&&(this.stop(),n.kind==="error"?(this._failure={document:this._iframe.contentDocument},this._callbacks.onError(n.message)):this._callbacks.onReady(n.result))},200)}_deadlineOutcome(e){return e<40||this._callbacks.hostOwnsDeadline?.()?null:{kind:"error",message:"Composition timeline not found after 8s"}}_poll(e){let n=this._iframe.contentWindow;if(!n)return null;let i=Ar(Reflect.get(n,An));if(i!==null)return{kind:"error",message:i};let r=this._iframe.contentDocument,o=Reflect.get(n,"__timelines"),a=this.hasRuntimeBridge(n);if(Sn({hasRuntime:a,hasTimelines:j(o)&&Object.keys(o).length>0,hasNestedCompositions:!!r?.querySelector("[data-composition-src]"),runtimeInjected:this._runtimeInjected,attempts:e}))return this._injectRuntime(),null;if(this._runtimeInjected&&!a)return null;let s=this._resolveReadyResult(n,r);return s?{kind:"ready",result:s}:null}_resolveReadyResult(e,n){let i=this._resolvePlaybackDurationAdapter(e)??{kind:"document",getDuration:()=>0},r=i.getDuration();if(!Number.isFinite(r)||r<=0){if(i.kind==="direct-timeline")return null;r=n?_n(n)?.durationSeconds??0:0}return r<=0?null:{duration:r,adapter:{...i,getDuration:()=>r},compositionSize:vr(n)}}stop(){this._runtimeScript&&(this._runtimeScript.onerror=null,this._runtimeScript=null),this.failed||(this._failure=null),this._interval!==null&&(clearInterval(this._interval),this._interval=null)}resolveDirectTimelineAdapter(){try{let e=this._iframe.contentWindow;return e?this._resolveDirectTimelineAdapterFromWindow(e):null}catch{return null}}resolveDirectTimelineAdapterFromWindow(e){return this._resolveDirectTimelineAdapterFromWindow(e)}hasRuntimeBridge(e){return j(Reflect.get(e,"__player"))}_injectRuntime(){this._runtimeInjected=!0;try{let e=this._iframe.contentDocument;if(!e)return;let n=e.createElement("script");n.src=this._callbacks.resolveRuntimeUrl?.()??q,this._runtimeScript=n,n.onerror=()=>{this._runtimeScript!==n||this._iframe.contentDocument!==e||(this.stop(),this._failure={document:e},this._callbacks.onError("HyperFrames runtime failed to load from "+n.src))},(e.head||e.documentElement).appendChild(n),this._callbacks.onRuntimeInjected?.()}catch{}}_resolveDirectTimelineAdapterFromWindow(e){if(this.hasRuntimeBridge(e))return null;let n=Reflect.get(e,"__timelines");if(!j(n))return null;let i=Object.keys(n);if(i.length===0)return null;let r=this._iframe.contentDocument?.querySelector("[data-composition-id]")?.getAttribute("data-composition-id"),o=r&&r in n?r:i[i.length-1],a=n[o];return Tn(a)?a:null}_resolvePlaybackDurationAdapter(e){let n=Reflect.get(e,"__player");if(En(n))return{kind:"runtime",getDuration:()=>n.getDuration()};let i=this._resolveDirectTimelineAdapterFromWindow(e);return i?{kind:"direct-timeline",timeline:i,getDuration:()=>i.duration()}:null}};var Rn=`
|
|
1
|
+
"use strict";var HyperframesPlayer=(()=>{var je=Object.defineProperty;var hi=Object.getOwnPropertyDescriptor;var fi=Object.getOwnPropertyNames;var bi=Object.prototype.hasOwnProperty;var gi=(t,e)=>{for(var n in e)je(t,n,{get:e[n],enumerable:!0})},_i=(t,e,n,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of fi(e))!bi.call(t,r)&&r!==n&&je(t,r,{get:()=>e[r],enumerable:!(i=hi(e,r))||i.enumerable});return t};var yi=t=>_i(je({},"__esModule",{value:!0}),t);var _o={};gi(_o,{HyperframesPlayer:()=>ze,SPEED_PRESETS:()=>pt,formatSpeed:()=>W,formatTime:()=>Le});var Ft=t=>t!==null&&Number.isFinite(t)&&t>0;function qe(t){let e=t.clipEndsSeconds.filter(i=>i===null).length;if(Ft(t.authoredDurationSeconds))return{seconds:t.authoredDurationSeconds,source:"authored",pendingClips:e};let n=t.clipEndsSeconds.filter(Ft);return n.length>0?{seconds:Math.max(...n),source:"derived",pendingClips:e}:{seconds:null,source:"unresolved",pendingClips:e,reason:e>0?"every clip's length is still pending":"no authored duration and no clip with a length"}}var vi="http://www.w3.org/1999/xhtml";function Ut(t){return t!=null&&t.nodeType===1}function Ye(t){return Ut(t)&&t.namespaceURI===vi}function Xe(t,e){return Ye(t)&&t.localName===e}function Ai(t){return Xe(t,"video")}function Si(t){return Xe(t,"audio")}function P(t){return Ai(t)||Si(t)}function Ht(t){return Xe(t,"img")}function Se(t){if(t==null||t.trim()==="")return null;let e=Number.parseInt(t,10);return Number.isFinite(e)&&e>0?e:null}function ee(t=document){let e=t.querySelector('[data-composition-id][data-root="true"]');return Ye(e)?e:t.querySelector("[data-composition-id]")}var G=Object.freeze({start:"data-start",duration:"data-duration",trackIndex:"data-track-index",derivedEnd:"data-end",legacyTrack:"data-layer"}),To=Object.freeze([G.start,G.duration,G.trackIndex]),Ro=Object.freeze([G.derivedEnd]),xo=Object.freeze([G.derivedEnd,G.legacyTrack]);function Ke(t){if(t==null||t.trim()==="")return null;let e=Number(t);return Number.isFinite(e)?e:null}var Vt=t=>{let e=Ke(t);return e!==null&&e>=0?e:null};function Ee(t){return Vt(t("data-playback-start"))??Vt(t("data-media-start"))??0}var te=.1,ne=10;function Ze(t){return Number.isFinite(t)&&t>0?Math.max(te,Math.min(ne,t)):1}function Wt(t,e=1){let n=Number.parseFloat(t("data-playback-rate")??"");return Ze(Number.isFinite(n)&&n>0?n:e)}function Je(t){let e=Ke(t("data-duration"));return e!==null&&e>0?e:null}function $t(t,e){let n=Je(t);if(n!==null)return n;let i=Ke(t("data-end"));return i!==null?i-e:null}var Ei=3;function Qe(t,e,n){return Number.isFinite(t)?Math.max(0,t-e)/Ze(n):null}function et(t){let{tag:e,authoredDurationSeconds:n,sourceDurationSeconds:i,mediaStartSeconds:r,playbackRate:o}=t;if(n!==null&&n>0)return{seconds:n,source:"authored"};if(e==="img")return{seconds:Ei,source:"default"};if(i===null)return{seconds:null,source:"pending",reason:"source duration not yet probed"};let a=Qe(i,r,o);return a===null?{seconds:null,source:"pending",reason:"source reported a non-finite duration"}:{seconds:a,source:"media"}}var Ti="data-fx-chain",ko=Ti.slice(5);var ie=(t="frequency",e="Frequency",n=1e3,i=20,r=2e4)=>({kind:"number",key:t,label:e,unit:"Hz",min:i,max:r,step:1,default:n,scale:"log",automatable:!0}),tt=(t=.707,e="Bandwidth: higher is narrower.")=>({kind:"number",key:"q",label:"Q",unit:"",min:.1,max:20,step:.01,default:t,scale:"log",automatable:!0,hint:e}),Te=(t=-40,e=40,n=0)=>({kind:"number",key:"gain",label:"Gain",unit:"dB",min:t,max:e,step:.1,default:n,automatable:!0}),Bt={kind:"enum",key:"poles",label:"Slope",options:[{value:"1",label:"6 dB/oct"},{value:"2",label:"12 dB/oct"}],default:"2",hint:"Two poles is the usual biquad; one pole is gentler."},Gt=[{id:"gain",label:"Gain",group:"dynamics",description:"Raise or lower the whole signal. Automate it to duck under something else.",params:[Te(-60,12,0)],web:"gain-node"},{id:"peaking",label:"Peaking EQ",group:"filter",description:"Boost or cut a band, leaving everything either side alone.",params:[ie("frequency","Frequency",1e3),Te(-40,40,0),tt(1)],web:"biquad-peaking"},{id:"lowshelf",label:"Low Shelf",group:"filter",description:"Lift or drop everything below the corner frequency.",params:[ie("frequency","Frequency",200,20,2e3),Te(-40,40,0)],web:"biquad-lowshelf"},{id:"highshelf",label:"High Shelf",group:"filter",description:"Lift or drop everything above the corner frequency.",params:[ie("frequency","Frequency",4e3,500,2e4),Te(-40,40,0)],web:"biquad-highshelf"},{id:"highpass",label:"High-pass",group:"filter",description:"Remove low frequencies: the usual fix for rumble on a voice.",params:[ie("frequency","Cutoff",300,20,2e4),tt(.707),Bt],web:"biquad-highpass"},{id:"lowpass",label:"Low-pass",group:"filter",description:"Remove high frequencies, which darkens or muffles a track.",params:[ie("frequency","Cutoff",8e3,100,2e4),tt(.707),Bt],web:"biquad-lowpass"},{id:"compressor",label:"Compressor",group:"dynamics",description:"Pull loud parts down so the quiet ones can come up.",params:[{kind:"number",key:"threshold",label:"Threshold",unit:"dB",min:-60,max:0,step:.5,default:-24,hint:"Level above which the compressor starts working."},{kind:"number",key:"ratio",label:"Ratio",unit:":1",min:1,max:20,step:.1,default:4},{kind:"number",key:"attack",label:"Attack",unit:"ms",min:.01,max:2e3,step:.1,default:20,scale:"log"},{kind:"number",key:"release",label:"Release",unit:"ms",min:.01,max:9e3,step:1,default:250,scale:"log"},{kind:"number",key:"knee",label:"Knee",unit:"",min:1,max:8,step:.01,default:2.83,hint:"1 is a hard corner; higher eases into it."},{kind:"number",key:"makeup",label:"Makeup",unit:"dB",min:0,max:36,step:.1,default:0},{kind:"number",key:"mix",label:"Mix",unit:"",min:0,max:1,step:.01,default:1,hint:"Below 1 blends the dry signal back in."}],web:"worklet-compressor"},{id:"limiter",label:"Limiter",group:"dynamics",description:"Peak limiter that follows the signal's level. It has no lookahead, so a fast peak or an inter-sample peak can pass the ceiling; use the true-peak limiter for a delivery limit.",params:[{kind:"number",key:"limit",label:"Ceiling",unit:"dB",min:-24,max:0,step:.1,default:-1},{kind:"number",key:"attack",label:"Attack",unit:"ms",min:.1,max:80,step:.1,default:5},{kind:"number",key:"release",label:"Release",unit:"ms",min:1,max:8e3,step:1,default:50,scale:"log"},{kind:"number",key:"level_out",label:"Output",unit:"dB",min:-24,max:24,step:.1,default:0}],web:"worklet-limiter"},{id:"truepeak",label:"True-peak limiter",group:"dynamics",description:"Lookahead limiter that holds a 4x estimate of the inter-sample peak at a dBTP ceiling; full-band noise can land up to about 1.7 dB above it. Adds lookahead plus about 0.3 ms of latency.",params:[{kind:"number",key:"ceiling",label:"Ceiling",unit:"dBTP",min:-24,max:0,step:.1,default:-1,hint:"Target true peak, measured on a 4x oversampled signal. Dense full-band sound can end up to about 1.7 dB above it."},{kind:"number",key:"lookahead",label:"Lookahead",unit:"ms",min:.5,max:10,step:.1,default:3,hint:"How far ahead the gain starts falling. Longer is smoother and adds the same latency."},{kind:"number",key:"release",label:"Release",unit:"ms",min:10,max:2e3,step:1,default:80,scale:"log"}],web:"worklet-truepeak"},{id:"gate",label:"Noise Gate",group:"dynamics",description:"Silence the track when it drops below the threshold.",params:[{kind:"number",key:"threshold",label:"Threshold",unit:"dB",min:-80,max:0,step:.5,default:-35},{kind:"number",key:"range",label:"Range",unit:"dB",min:-80,max:0,step:.5,default:-24,hint:"How far down the gate pulls when closed."},{kind:"number",key:"ratio",label:"Ratio",unit:":1",min:1,max:20,step:.1,default:10},{kind:"number",key:"attack",label:"Attack",unit:"ms",min:.01,max:9e3,step:.1,default:1,scale:"log"},{kind:"number",key:"release",label:"Release",unit:"ms",min:.01,max:9e3,step:1,default:100,scale:"log"},{kind:"number",key:"knee",label:"Knee",unit:"",min:1,max:8,step:.01,default:2.83}],web:"worklet-gate"},{id:"saturate",label:"Saturation",group:"nonlinear",description:"Soft-clip the waveform for warmth or outright distortion.",params:[{kind:"enum",key:"type",label:"Curve",options:[{value:"tanh",label:"Tanh"},{value:"atan",label:"Arctan"},{value:"cubic",label:"Cubic"},{value:"exp",label:"Exponential"},{value:"alg",label:"Algebraic"},{value:"quintic",label:"Quintic"},{value:"sin",label:"Sine"},{value:"erf",label:"Error function"},{value:"hard",label:"Hard clip"}],default:"tanh"},{kind:"number",key:"threshold",label:"Threshold",unit:"dB",min:-40,max:0,step:.1,default:-6},{kind:"number",key:"output",automatable:!0,label:"Output",unit:"dB",min:-24,max:24,step:.1,default:0},{kind:"number",key:"oversample",label:"Oversample",unit:"x",min:1,max:8,step:1,default:4,hint:"Higher costs more but keeps aliasing down."}],web:"waveshaper"},{id:"bitcrush",label:"Bitcrush",group:"nonlinear",description:"Drop bit depth and sample rate for a lo-fi, digital sound.",params:[{kind:"number",key:"bits",label:"Bit depth",unit:"bit",min:1,max:32,step:.1,default:8},{kind:"number",key:"samples",label:"Sample hold",unit:"x",min:1,max:250,step:1,default:1,hint:"Repeats each sample N times, a crude downsample."},{kind:"number",key:"mix",label:"Mix",unit:"",min:0,max:1,step:.01,default:1}],web:"worklet-bitcrush"},{id:"pitchshift",label:"Pitch shift",group:"time",description:"Shifts pitch up or down without changing playback speed. Adds ~50 ms of latency.",params:[{kind:"number",key:"semitones",label:"Semitones",unit:"st",min:-12,max:12,step:1,default:0},{kind:"number",key:"mix",label:"Mix",unit:"",min:0,max:1,step:.01,default:1}],web:"worklet-pitchshift"},{id:"delay",label:"Delay",group:"time",description:"Repeating echoes behind the dry signal.",params:[{kind:"number",key:"time",automatable:!0,label:"Time",unit:"ms",min:1,max:5e3,step:1,default:250,scale:"log"},{kind:"number",key:"feedback",automatable:!0,label:"Feedback",unit:"",min:.01,max:.95,step:.01,default:.35},{kind:"number",key:"mix",automatable:!0,label:"Mix",unit:"",min:0,max:1,step:.01,default:.4}],web:"delay-feedback"},{id:"chorus",label:"Chorus",group:"time",description:"Detuned copies of the signal for width and thickness.",params:[{kind:"number",key:"delay",automatable:!0,label:"Delay",unit:"ms",min:1,max:100,step:.1,default:7},{kind:"number",key:"depth",automatable:!0,label:"Depth",unit:"ms",min:0,max:10,step:.01,default:2},{kind:"number",key:"speed",automatable:!0,label:"Rate",unit:"Hz",min:.01,max:10,step:.01,default:1},{kind:"number",key:"mix",automatable:!0,label:"Mix",unit:"",min:0,max:1,step:.01,default:.5}],web:"chorus-lfo"},{id:"phaser",label:"Phaser",group:"time",description:"Sweeping notches moving through the spectrum.",params:[{kind:"number",key:"in_gain",automatable:!0,label:"Input",unit:"",min:0,max:1,step:.01,default:.4},{kind:"number",key:"out_gain",automatable:!0,label:"Output",unit:"",min:0,max:2,step:.01,default:.74},{kind:"number",key:"delay",label:"Delay",unit:"ms",min:.1,max:5,step:.1,default:3},{kind:"number",key:"decay",label:"Decay",unit:"",min:0,max:.99,step:.01,default:.4},{kind:"number",key:"speed",automatable:!0,label:"Rate",unit:"Hz",min:.1,max:2,step:.01,default:.5},{kind:"enum",key:"type",label:"Waveform",options:[{value:"0",label:"Triangular"},{value:"1",label:"Sinusoidal"}],default:"0"}],web:"allpass-phaser"},{id:"reverb",label:"Reverb",group:"time",description:"Room tail. Both ends convolve the same generated impulse, so preview matches render.",params:[{kind:"number",key:"size",label:"Room size",unit:"",min:.05,max:1,step:.01,default:.7},{kind:"number",key:"damping",label:"Damping",unit:"",min:0,max:1,step:.01,default:.5,hint:"Higher rolls the top off the tail faster."},{kind:"number",key:"wet",automatable:!0,label:"Wet",unit:"",min:0,max:1,step:.01,default:.35},{kind:"number",key:"dry",automatable:!0,label:"Dry",unit:"",min:0,max:1,step:.01,default:.7}],web:"convolver"}],Mo=new Map(Gt.map(t=>[t.id,t]));var Co=Gt.map(t=>t.id);function Ri(t){return 10**(t/20)}var zt=Ri(12);var jt="data-automation",Wo=jt.slice(5),nt=1,xi=512,L=class extends Error{constructor(e){super(e),this.name="AudioAutomationError"}},Re="volume",xe="rate";function qt(t){if(t===Re)return{kind:"volume"};if(t===xe)return{kind:"rate"};let e=t.split(".");if(e.length===3&&e[0]==="fx"&&e[1]===wi){let r=e[2];return r?{kind:"preset",presetId:r}:null}if(e.length!==3||e[0]!=="fx")return null;let[,n,i]=e;return!n||!i?null:{kind:"fx",nodeId:n,param:i}}var wi="preset";var ki={min:0,max:zt,step:.01,unit:"",label:"Volume",scale:"linear",default:1};var Mi={min:te,max:ne,step:.05,unit:"x",label:"Speed",scale:"log",default:1};function re(t){if(typeof t=="number")return Number.isFinite(t)?t:null;if(typeof t=="string"&&t.trim()!==""){let e=Number(t);return Number.isFinite(e)?e:null}return null}function Ci(t){let e=re(t);return e===null||e===0?0:Math.min(1,Math.max(-1,e))}function Yt(t,e){let n=re(t),i=re(e);if(n===null||i===null)return null;let r=s=>Math.min(.999,Math.max(.001,s)),o=r(n),a=r(i);return Math.abs(o-a)<1e-6?null:{x:o,y:a}}function Ii(t){let e=Ci(t?.curve),n=Yt(t?.viaX,t?.viaY);return{...e?{curve:e}:{},...n?{viaX:n.x,viaY:n.y}:{}}}function Di(t,e){let n=re(t?.t),i=re(t?.v);if(n===null||i===null)return null;let r=e?Math.min(e.max,Math.max(e.min,i)):i;return{t:Math.max(0,n),v:r,...Ii(t)}}function Pi(t,e){let n=t.map(r=>Di(r,e)).filter(r=>r!==null).sort((r,o)=>r.t-o.t),i=[];for(let r of n)i.length>0&&i[i.length-1].t===r.t?i[i.length-1]=r:i.push(r);return i.slice(0,xi)}function Li(t){let e=[];for(let n of t.lanes){if(!qt(n.target))continue;let i=n.target===Re?ki:n.target===xe?Mi:null,r=Pi(n.points??[],i);r.length>0&&e.push({target:n.target,points:r})}return{version:nt,lanes:e}}function Xt(t){let e;try{e=JSON.parse(t)}catch(r){throw new L(`Automation is not valid JSON: ${r.message}`)}if(typeof e!="object"||e===null)throw new L("Automation must be a JSON object.");let n=e;if(n.version!==nt)throw new L(`Unsupported automation version: ${String(n.version)}`);if(!Array.isArray(n.lanes))throw new L("Automation is missing a `lanes` array.");let i=n.lanes.map((r,o)=>{if(typeof r!="object"||r===null)throw new L(`Lane ${o} is not an object.`);let a=r;if(typeof a.target!="string"||!qt(a.target))throw new L(`Lane ${o} has an unreadable target: ${String(a.target)}`);if(!Array.isArray(a.points))throw new L(`Lane ${o} is missing a \`points\` array.`);return{target:a.target,points:a.points}});return Li({version:nt,lanes:i})}function Ni(t,e){return e?Math.pow(t,Math.pow(2,2*e)):t}function Oi(t,e){let n=t-.5,i=e-.5,r=.999,o=1e6,a=n>0?n/(r-t):n<0?-n/(t-(1-r)):0,s=i>0?i/(r-e):i<0?-i/(e-(1-r)):0,l=Math.min(o,Math.max(1,a,s));return{cx:t+n/l,cy:e+i/l,w:l}}function Fi(t,e,n){let{cx:i,cy:r,w:o}=Oi(e,n),a=2-2*o,s=t*a-1+2*o*i,l=-t*a-2*o*i,u=Ui(s,l,t),c=1-u,h=c*c+2*o*u*c+u*u;return h>0?(2*o*r*u*c+u*u)/h:t}function Ui(t,e,n){if(Math.abs(t)<1e-12)return Math.abs(e)<1e-12?n:-n/e;let i=Math.sqrt(Math.max(0,e*e-4*t*n)),r=(-e+i)/(2*t),o=(-e-i)/(2*t),a=s=>s>=-1e-9&&s<=1+1e-9;return a(r)?Math.min(1,Math.max(0,r)):a(o)?Math.min(1,Math.max(0,o)):n}function Hi(t,e){let n=Yt(e.viaX,e.viaY);return n?Fi(Math.min(1,Math.max(0,t)),n.x,n.y):Ni(t,e.curve)}function Vi(t,e,n,i){return i==="log"&&t>0&&e>0?Math.exp(Math.log(t)+(Math.log(e)-Math.log(t))*n):t+(e-t)*n}function we(t,e,n="linear"){let i=t.points;if(i.length===0)return 0;let r=i[0];if(e<=r.t)return r.v;let o=i[i.length-1];if(e>=o.t)return o.v;let a=0,s=i.length-1;for(;s-a>1;){let h=a+s>>1;i[h].t<=e?a=h:s=h}let l=i[a],u=i[s],c=u.t-l.t;return c<=0?u.v:Vi(l.v,u.v,Hi((e-l.t)/c,l),n)}var ke=new Map,Wi=64;function Kt(t,e=Re){let n=`${e}\0${t}`,i=ke.get(n);if(i!==void 0)return i;let r=null;try{r=Xt(t).lanes.find(o=>o.target===e)??null}catch{r=null}return ke.size>Wi&&ke.clear(),ke.set(n,r),r}var Zt=48,Jt=new WeakMap;function $i(t){let e=t.points,n=e[0].v,i=e[e.length-1].v,r=[0],o=[0],a=l=>{let u=r[r.length-1];if(l<=u)return;let c=we(t,u,"log");r.push(l),o.push(o[o.length-1]+(c+we(t,l,"log"))/2*(l-u))},s=Math.max(0,e[0].t);a(s);for(let l=1;l<e.length;l+=1){let u=e[l-1].t,c=e[l].t;if(!(c<=0))for(let h=1;h<=Zt;h+=1)a(Math.max(u,0)+(c-u)*h/Zt)}return{ts:Float64Array.from(r),ss:Float64Array.from(o),firstRate:n,lastRate:i}}function Bi(t){let e=Jt.get(t);return e||(e=$i(t),Jt.set(t,e)),e}function Gi(t){return typeof t!="number"&&t.points.length>0}function zi(t,e,n){let i=0,r=t.length-1;for(;r-i>1;){let o=i+r>>1;t[o]<=n?i=o:r=o}return e[i]+(e[r]-e[i])*(n-t[i])/(t[r]-t[i])}function Qt(t,e){if(typeof t=="number")return e/t;if(!Gi(t))return e;let{ts:n,ss:i,firstRate:r,lastRate:o}=Bi(t),a=n.length-1;return e<=0?e/r:e>=i[a]?n[a]+(e-i[a])/o:zi(i,n,e)}function ji(t){return t?Kt(t,xe):null}function en(t,e){return ji(t)??e}var Yo=[{id:"montage",label:"Montage",points:[[0,.9],[.15,.3],[.5,2.5],[.85,.3],[1,.9]]},{id:"hero",label:"Hero",points:[[0,1],[.25,1.6],[.5,.25],[.75,1.6],[1,1]]},{id:"bullet",label:"Bullet",points:[[0,3],[.4,3],[.5,.15],[.6,3],[1,3]]},{id:"jump-cut",label:"Jump cut",points:[[0,.5],[.24,.5],[.26,3],[.5,3],[.52,.5],[.74,.5],[.76,3],[1,3]]},{id:"flash-in",label:"Flash in",points:[[0,.3],[.6,.6],[1,5]]},{id:"flash-out",label:"Flash out",points:[[0,5],[.4,.6],[1,.3]]},{id:"ramp-in",label:"Ramp in",points:[[0,.5],[1,1]]},{id:"ramp-out",label:"Ramp out",points:[[0,1],[1,.5]]},{id:"slowmo-middle",label:"Slow-mo middle",points:[[0,1],[1/3,.35],[2/3,.35],[1,1]]}];var y=Object.freeze({start:"data-start",duration:"data-duration",trackIndex:"data-track-index",derivedEnd:"data-end",legacyTrack:"data-layer"}),Ko=Object.freeze([y.start,y.duration,y.trackIndex]),Zo=Object.freeze([y.derivedEnd]),Jo=Object.freeze([y.derivedEnd,y.legacyTrack]);function N(t){if(t==null||t.trim()==="")return null;let e=Number(t);return Number.isFinite(e)?e:null}var rn=/^[A-Za-z0-9_.:-]+$/;function on(t,e){let n=t.charCodeAt(e);return n>=48&&n<=57}function tn(t,e){let n=e;for(;n>=0&&on(t,n);)n--;return n}function qi(t,e){let n=e;for(;n>=0&&(t[n]??"").trim()==="";)n--;return n}function Yi(t){let e=t.length-1;if(!on(t,e))return null;let n=tn(t,e);return t[n]==="."&&(n=tn(t,n-1)),n+1}function Xi(t){let e=Yi(t);if(e==null)return null;let n=qi(t,e-1),i=t[n];if(i!=="+"&&i!=="-")return null;let r=t.slice(0,n).trim();if(!rn.test(r))return null;let o=Number(t.slice(e));return Number.isFinite(o)?{refId:r,operator:i,magnitude:o}:null}function oe(t){let e=(t??"").trim();if(!e)return null;let n=N(e);if(n!=null)return{kind:"absolute",value:n};if(rn.test(e))return{kind:"reference",refId:e,offset:0};let i=Xi(e);return i?{kind:"reference",refId:i.refId,offset:i.operator==="-"?-i.magnitude:i.magnitude}:null}function x(t,e,n,i){t.push({code:e,attribute:n,value:i})}function Ki(t,e,n,i){if(e==null||e.trim()==="")return n.defaultStart===void 0?0:n.defaultStart;if(!t)return x(i,"invalid-start",y.start,e),null;if(t.kind==="absolute")return Math.max(0,t.value);let r=n.resolveReferenceEnd?.(t.refId);return r==null||!Number.isFinite(r)?(x(i,"unresolved-start-reference",y.start,e),null):Math.max(0,r+t.offset)}var Zi=1e-9;function Ji(t,e){return Math.abs(t-e)<=Zi}function Qi(t,e,n){let i=N(t);if(i==null){x(n,"deprecated-end",y.derivedEnd,t),x(n,"invalid-end",y.derivedEnd,t);return}if(e==null){x(n,"deprecated-end",y.derivedEnd,t);return}Ji(i,e)||(x(n,"deprecated-end",y.derivedEnd,t),x(n,"conflicting-end",y.derivedEnd,t))}function er(t,e,n){let i=N(t);return i==null||i<0?(x(n,"invalid-duration",y.duration,t),{duration:null,end:null,durationSource:"invalid"}):{duration:i,end:e==null?null:e+i,durationSource:"duration"}}function tr(t,e,n){x(n,"deprecated-end",y.derivedEnd,t);let i=N(t);return i==null?(x(n,"invalid-end",y.derivedEnd,t),{duration:null,end:null,durationSource:"invalid"}):e==null?{duration:null,end:i,durationSource:"legacy-end"}:i<e?(x(n,"end-before-start",y.derivedEnd,t),{duration:null,end:null,durationSource:"invalid"}):{duration:i-e,end:i,durationSource:"legacy-end"}}function nr(t,e,n){let i=t.getAttribute(y.duration),r=t.getAttribute(y.derivedEnd);if(i==null)return r==null?{duration:null,end:null,durationSource:"missing"}:tr(r,e,n);let o=er(i,e,n);return r!=null&&Qi(r,o.end,n),o}function nn(t,e,n,i){let r=N(t);return r==null||!Number.isInteger(r)?(x(i,"invalid-track-index",e,t),{trackIndex:0,trackSource:"invalid"}):{trackIndex:r,trackSource:n}}function ir(t,e){let n=t.getAttribute(y.trackIndex),i=t.getAttribute(y.legacyTrack);if(n==null&&i==null)return{trackIndex:0,trackSource:"default"};if(n==null&&i!=null)return x(e,"deprecated-layer",y.legacyTrack,i),nn(i,y.legacyTrack,"legacy-layer",e);let r=nn(n??"",y.trackIndex,"track-index",e);if(i==null)return r;x(e,"deprecated-layer",y.legacyTrack,i);let o=N(i);return o!=null&&o!==r.trackIndex&&x(e,"conflicting-layer",y.legacyTrack,i),r}function it(t,e={}){let n=[],i=t.getAttribute(y.start),r=oe(i),o=Ki(r,i,e,n),a=nr(t,o,n),s=ir(t,n);return{startExpression:r,start:o,...a,...s,diagnostics:n}}function V(t){return N(t)}function rt(t){return Wt(e=>t.getAttribute(e),P(t)?t.defaultPlaybackRate:1)}function rr(t){return en(t.getAttribute("data-automation"),rt(t))}function ot(t){return Ee(e=>t.getAttribute(e))}function ae(t,e){return or(e,ot(t),rr(t))}function at(t){let e=et({tag:"video",authoredDurationSeconds:Je(n=>t.getAttribute(n)),sourceDurationSeconds:Number.isFinite(t.duration)?t.duration:null,mediaStartSeconds:ot(t),playbackRate:rt(t)});return e.source==="media"?ae(t,t.duration):e.seconds}function Me(t,e=0){return!Ht(t)||!t.hasAttribute("data-start")&&!t.hasAttribute("data-track-index")?null:et({tag:"img",authoredDurationSeconds:$t(n=>t.getAttribute(n),e),sourceDurationSeconds:null,mediaStartSeconds:0,playbackRate:1}).seconds}function or(t,e,n){return typeof n=="number"?Qe(t,e,n):Number.isFinite(t)?Qt(n,Math.max(0,t-e)):null}function an(){return globalThis}function st(t,e){if(typeof window>"u")return;let n=an(),i=n.__hf?.onSwallowed;if(i)try{i({label:t,error:e})}catch(r){}(n.__hfDebug||n.__HYPERFRAMES_DEBUG)&&console.debug(`[hyperframes] ${t} swallowed:`,e)}var ar=t=>t.paused?.()===!0?(t.startTime?.()??0)+(t.totalDuration?.()??0)/Math.abs(t.timeScale?.()||1):0;function se(t){try{if(typeof t?.duration!="function")return null;let e=t.getChildren?.(!1,!1,!0),n=Array.isArray(e)?e:[],i=Math.max(Number(t.duration()),...n.map(ar));return Number.isFinite(i)?i:null}catch(e){return st("runtime.timelineDuration",e),null}}var sn="data-hf-authored-duration",ln="data-hf-authored-end";function le(t){if(t==null||typeof t=="string"&&t.trim()==="")return null;let e=typeof t=="number"?t:Number(t);return Number.isFinite(e)?e:null}function Ce(t){let e=le(t.start);if(e==null)return null;let n=Math.max(0,e),i=le(t.duration),r=le(t.authoredDuration),o=i!=null&&i>0?i:r!=null&&r>0?r:null;if(o!=null)return{start:n,duration:o,end:n+o};let a=le(t.end),s=le(t.authoredEnd),l=a!=null&&a>n?a:s!=null&&s>n?s:null;return{start:n,duration:l==null?null:l-n,end:l}}var z=Object.freeze({start:"data-start",duration:"data-duration",trackIndex:"data-track-index",derivedEnd:"data-end",legacyTrack:"data-layer"}),pa=Object.freeze([z.start,z.duration,z.trackIndex]),ha=Object.freeze([z.derivedEnd]),fa=Object.freeze([z.derivedEnd,z.legacyTrack]);function sr(t){if(t==null||t.trim()==="")return null;let e=Number(t);return Number.isFinite(e)?e:null}var un=t=>{let e=sr(t);return e!==null&&e>=0?e:null};function lr(t){return un(t("data-playback-start"))??un(t("data-media-start"))??0}var dn="data-hf-media-start-basis";function cn(t){return t?.trim().toLowerCase()==="global"?"global":"local"}function ur(t){return cn(t.basis)==="global"?t.authoredStart:t.hostStart+t.authoredStart}function mn(t){return hn(t)?ur({authoredStart:t.authoredStart,hostStart:t.hostStart,basis:t.basis}):t.ordinaryStart()}function pn(t){return hn(t)&&cn(t.basis)==="global"}function hn(t){return!t.hasAutoStart&&t.authoredStart!=null&&t.hostStart!==0}function lt(t){return lr(e=>t.getAttribute(e))}function fn(t,e){return t-lt(e)}function ue(t){let e=t.timelineRegistry??{},n=t.includeAuthoredTimingAttrs??!1,i=t.documentRef??document,r=new WeakMap,o=new WeakMap,a=new Set,s=d=>(d.hasAttribute("data-composition-id")?d.parentElement:d)?.closest("[data-composition-id]")??null,l=(d,f)=>{let g=s(f);if(g){for(let M of g.querySelectorAll(`[id="${d}"]`))if(s(M)===g)return M}let R=i.getElementById(d);return R||(Array.from(i.querySelectorAll("[data-composition-id]")).find(M=>M.getAttribute("data-composition-id")===d)??null)},u=(d,f)=>n?d.getAttribute(f):null,c=d=>Ce({start:0,duration:d.getAttribute("data-duration"),authoredDuration:u(d,"data-hf-authored-duration")})?.duration??Ce({start:T(d,0),end:d.getAttribute("data-end"),authoredEnd:u(d,"data-hf-authored-end")})?.duration??null,h=d=>d!=null&&Number.isFinite(d)&&d>0?d:null,v=d=>{let f=d.getAttribute("data-composition-id");return f?h(se(e[f])):null},_=d=>{let f=o.get(d);if(f!==void 0)return f;let g=c(d)??h(P(d)?ae(d,d.duration):null)??h(Me(d))??v(d);return o.set(d,g),g},A="[data-composition-src], [data-composition-id], [data-composition-file]",b=d=>d.matches(A),S=d=>!d.hasAttribute("data-composition-id")||oe(d.getAttribute("data-start"))?null:d.parentElement?.closest(`[data-start], ${A}`)??null,k=(d,f)=>fn(T(d,f),S(d)??d),C=(d,f)=>{let g=d.hasAttribute("data-composition-id")?d.parentElement?.closest("[data-composition-id]"):d.closest("[data-composition-id]");return g?k(g,f):0},I=(d,f)=>{let g=oe(d.getAttribute("data-start"));if(!g){let H=S(d);return H?T(H,f):f}if(g.kind==="absolute")return C(d,f)+Math.max(0,g.value);let R=l(g.refId,d);if(!R)return f;let M=T(R,0),ve=_(R)??0,Ae=Math.min(0,C(d,0));return Math.max(Ae,M+ve+g.offset)},T=(d,f)=>{let g=r.get(d);if(g!==void 0)return g??f;if(a.has(d))return f;a.add(d);try{let R=I(d,f);return r.set(d,R),R}finally{a.delete(d)}},U=d=>{let f=d.closest("[data-composition-id]");return{authoredStart:V(d.getAttribute("data-start")),hostStart:f?k(f,0):0,hasAutoStart:d.hasAttribute("data-hf-auto-start"),basis:d.getAttribute(dn)}};return{resolveStartForElement:(d,f=0)=>T(d,Math.max(0,f)),resolveDurationForElement:d=>_(d),resolveMediaStartForElement:d=>{let f=U(d);return mn({...f,ordinaryStart:()=>T(d,f.hostStart)})},resolveHostStartForElement:d=>C(d,0),resolveHostSlotsForElement:d=>{let f=[];for(let g=d.parentElement;g;g=g.parentElement){if(!b(g)||S(g)||lt(g)<=0)continue;let R=T(g,0),M=c(g);f.push({start:R,end:M?R+M:1/0})}return f},isRootGlobalMediaStartForElement:d=>P(d)&&pn(U(d))}}function bn(){return{capturedTimeline:null,isPlaying:!1,currentTime:0,deterministicAdapters:[],canonicalFps:30,bridgeMuted:!1,bridgeVolume:1,mediaOutputMuted:!1,nativeMediaSyncDisabled:!1,webAudioMediaDisabled:!1,mediaAutoplayBlockedPosted:!1,mediaForceSyncNextTick:!1,playbackRate:1,bridgeLastPostedFrame:-1,bridgeLastPostedAt:0,bridgeLastPostedPlaying:!1,bridgeLastPostedMuted:!1,bridgeMaxPostIntervalMs:80,controlBridgeHandler:null,beforeUnloadHandler:null,injectedCompStyles:[],injectedCompScripts:[],injectedCompLinks:[],cachedTimedMediaEls:[],cachedMediaClips:[],cachedVideoClips:[],cachedMediaTimelineDurationSeconds:0,tornDown:!1,transportClock:null,transportRafId:null}}var gn=7200,ut=1/60,de=t=>t!==null&&t>ut?t:null;function dr(t){return{width:Se(t.getAttribute("data-width")),height:Se(t.getAttribute("data-height"))}}function cr(t,e){let n=null;for(let i of t.querySelectorAll("video[data-start], audio[data-start]")){let r=e.mediaStart(i);if(!Number.isFinite(r))continue;let o=e.mediaDuration(i);if(o==null||o<=ut)continue;let a=Math.max(0,r)+o;(!n||a>n.seconds)&&(n={seconds:a,element:i})}return n&&de(n.seconds)!==null?n:null}function mr(t,e){return cr(t,e)?.seconds??null}function pr(t,e){let n=[];for(let r of t.querySelectorAll("[data-composition-id][data-start]")){if(r.parentElement?.closest("[data-composition-id]")!==t)continue;let o=e.resolveStartForElement(r,0),a=e.resolveDurationForElement(r);!Number.isFinite(o)||a==null||a<=0||n.push(Math.max(0,o)+a)}let i=V(t.getAttribute("data-duration"));return de(qe({authoredDurationSeconds:null,clipEndsSeconds:[i,...n]}).seconds)}var hr=t=>t.hasAttribute("data-composition-id")||t.hasAttribute("data-composition-src");function fr(t,e,{unregisteredLottie:n}){let i=[];for(let o of t.querySelectorAll("[data-start]")){let a=e.resolveStartForElement(o,0);if(!Number.isFinite(a))continue;let s=e.resolveDurationForElement(o);s!=null?i.push(Math.max(0,a)+s):(P(o)||hr(o))&&i.push(null)}(n||t.querySelector("[data-lottie-src]"))&&i.push(null);let r=qe({authoredDurationSeconds:null,clipEndsSeconds:i});return r.pendingClips>0?{...r,seconds:null,source:"unresolved",reason:"a clip's length is pending"}:r}function br(t){return gr(t).seconds}function gr(t){if(t.declared!==null&&Number.isFinite(t.declared)&&t.declared>0)return{seconds:t.declared,from:"declared",floorIndex:null};let e=de(t.timeline()),n=t.floors().map(h=>h??0),i=Math.max(0,...n),r=Number.isFinite(t.fallback)&&t.fallback>ut?t.fallback:0,o=Math.max(i,r),s=e!==null&&e>=gn&&de(o)!==null?null:e,l=i>=r,u=h=>({seconds:h,from:l?"floor":"fallback",floorIndex:l?n.indexOf(i):null});if(s!==null)return s>=o?{seconds:s,from:"timeline",floorIndex:null}:u(o);if(de(i)!==null)return u(o);if(r>0)return{seconds:r,from:"fallback",floorIndex:null};let c=t.derived();return{seconds:c>0?c:0,from:"derived",floorIndex:null}}function _n(t){let e=ee(t);if(!e)return null;let n=ue({timelineRegistry:{},includeAuthoredTimingAttrs:!0,documentRef:t}),i=br({declared:V(e.getAttribute("data-duration")),timeline:()=>null,floors:()=>[mr(t,{mediaStart:n.resolveMediaStartForElement,mediaDuration:at}),pr(e,n)],fallback:0,derived:()=>fr(e,n,{unregisteredLottie:!1}).seconds??0});return{...dr(e),fps:bn().canonicalFps,durationSeconds:i}}function Ie(t){return t+1e-5}function yn(){let{userAgent:t,maxTouchPoints:e}=navigator;return/iP(hone|ad|od)/.test(t)||/Macintosh/.test(t)&&e>1}function De(){let{userAgent:t}=navigator;return/AppleWebKit/.test(t)&&!/Chrom(e|ium)\/|Edg\/|Android/.test(t)}var _r="hyperframes-studio-preview";var dt="data-hf-player-frame";function yr(t){return De()&&t.defaultView?.frameElement?.hasAttribute(dt)===!0}function vn(t){return t.querySelector(`meta[name="${_r}"]`)!==null||yr(t)}var An="__hfPreviewErrors";function Sn(t){return t.hasRuntime||t.runtimeInjected?!1:!!(t.hasNestedCompositions||t.hasTimelines&&t.attempts>=5)}function j(t){return typeof t=="object"&&t!==null}function En(t){return j(t)&&typeof t.getDuration=="function"}function Tn(t){return j(t)&&typeof t.duration=="function"&&typeof t.time=="function"&&typeof t.seek=="function"&&typeof t.play=="function"&&typeof t.pause=="function"}var q="https://cdn.jsdelivr.net/npm/@hyperframes/core@0.9.13/dist/hyperframe.runtime.iife.js";function ce(t){if(t===null)return null;let e=Number.parseInt(t,10);return Number.isFinite(e)&&e>0?e:null}function vr(t){let e=t?.querySelector("[data-composition-id][data-width][data-height]")??t?.querySelector("[data-width][data-height]");if(!e)return null;let n=ce(e.getAttribute("data-width")),i=ce(e.getAttribute("data-height"));return n!==null&&i!==null?{width:n,height:i}:null}function Ar(t){return Array.isArray(t)?t.find(e=>typeof e=="string"&&e.trim()!==""&&e!=="[object Event]")??null:null}var Pe=class{constructor(e,n){this._iframe=e;this._callbacks=n}_iframe;_callbacks;_interval=null;_runtimeInjected=!1;_runtimeScript=null;_failure=null;get failed(){return this._failure!==null&&this._failure.document===this._iframe.contentDocument}get runtimeInjected(){return this._runtimeInjected}start(){this.stop(),this._failure=null,this._runtimeInjected=!1;let e=0;this._interval=setInterval(()=>{e++;let n=null;try{n=this._poll(e)}catch(i){i instanceof DOMException&&i.name==="SecurityError"||(n={kind:"error",message:i instanceof Error?i.message:String(i)})}n??=this._deadlineOutcome(e),n&&(this.stop(),n.kind==="error"?(this._failure={document:this._iframe.contentDocument},this._callbacks.onError(n.message)):this._callbacks.onReady(n.result))},200)}_deadlineOutcome(e){return e<40||this._callbacks.hostOwnsDeadline?.()?null:{kind:"error",message:"Composition timeline not found after 8s"}}_poll(e){let n=this._iframe.contentWindow;if(!n)return null;let i=Ar(Reflect.get(n,An));if(i!==null)return{kind:"error",message:i};let r=this._iframe.contentDocument,o=Reflect.get(n,"__timelines"),a=this.hasRuntimeBridge(n);if(Sn({hasRuntime:a,hasTimelines:j(o)&&Object.keys(o).length>0,hasNestedCompositions:!!r?.querySelector("[data-composition-src]"),runtimeInjected:this._runtimeInjected,attempts:e}))return this._injectRuntime(),null;if(this._runtimeInjected&&!a)return null;let s=this._resolveReadyResult(n,r);return s?{kind:"ready",result:s}:null}_resolveReadyResult(e,n){let i=this._resolvePlaybackDurationAdapter(e)??{kind:"document",getDuration:()=>0},r=i.getDuration();if(!Number.isFinite(r)||r<=0){if(i.kind==="direct-timeline")return null;r=n?_n(n)?.durationSeconds??0:0}return r<=0?null:{duration:r,adapter:{...i,getDuration:()=>r},compositionSize:vr(n)}}stop(){this._runtimeScript&&(this._runtimeScript.onerror=null,this._runtimeScript=null),this.failed||(this._failure=null),this._interval!==null&&(clearInterval(this._interval),this._interval=null)}resolveDirectTimelineAdapter(){try{let e=this._iframe.contentWindow;return e?this._resolveDirectTimelineAdapterFromWindow(e):null}catch{return null}}resolveDirectTimelineAdapterFromWindow(e){return this._resolveDirectTimelineAdapterFromWindow(e)}hasRuntimeBridge(e){return j(Reflect.get(e,"__player"))}_injectRuntime(){this._runtimeInjected=!0;try{let e=this._iframe.contentDocument;if(!e)return;let n=e.createElement("script");n.src=this._callbacks.resolveRuntimeUrl?.()??q,this._runtimeScript=n,n.onerror=()=>{this._runtimeScript!==n||this._iframe.contentDocument!==e||(this.stop(),this._failure={document:e},this._callbacks.onError("HyperFrames runtime failed to load from "+n.src))},(e.head||e.documentElement).appendChild(n),this._callbacks.onRuntimeInjected?.()}catch{}}_resolveDirectTimelineAdapterFromWindow(e){if(this.hasRuntimeBridge(e))return null;let n=Reflect.get(e,"__timelines");if(!j(n))return null;let i=Object.keys(n);if(i.length===0)return null;let r=this._iframe.contentDocument?.querySelector("[data-composition-id]")?.getAttribute("data-composition-id"),o=r&&r in n?r:i[i.length-1],a=n[o];return Tn(a)?a:null}_resolvePlaybackDurationAdapter(e){let n=Reflect.get(e,"__player");if(En(n))return{kind:"runtime",getDuration:()=>n.getDuration()};let i=this._resolveDirectTimelineAdapterFromWindow(e);return i?{kind:"direct-timeline",timeline:i,getDuration:()=>i.duration()}:null}};var Rn=`
|
|
2
2
|
:host {
|
|
3
3
|
display: block;
|
|
4
4
|
position: relative;
|
|
@@ -9,13 +9,13 @@ import {
|
|
|
9
9
|
} from "./chunk-ZBAF6L74.js";
|
|
10
10
|
import {
|
|
11
11
|
resolveProject
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-CLT3CJKG.js";
|
|
13
13
|
import {
|
|
14
14
|
formatBytes,
|
|
15
15
|
label
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
16
|
+
} from "./chunk-M3JU24AI.js";
|
|
17
|
+
import "./chunk-AIK4ETUZ.js";
|
|
18
|
+
import "./chunk-EZCMP7NJ.js";
|
|
19
19
|
import "./chunk-PXVQOMKL.js";
|
|
20
20
|
import "./chunk-MCDNAIFF.js";
|
|
21
21
|
import "./chunk-BVAPHHMQ.js";
|
|
@@ -26,7 +26,7 @@ import "./chunk-S3S4TGEH.js";
|
|
|
26
26
|
import "./chunk-54HJ63Q2.js";
|
|
27
27
|
import {
|
|
28
28
|
c
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-HOCC4J5C.js";
|
|
30
30
|
import "./chunk-W5AUD5OL.js";
|
|
31
31
|
import "./chunk-MEJH7VEA.js";
|
|
32
32
|
import {
|
|
@@ -55,15 +55,15 @@ import "./chunk-WC4MTXGN.js";
|
|
|
55
55
|
import "./chunk-FBN2M2HK.js";
|
|
56
56
|
import {
|
|
57
57
|
withMeta
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-MGAGDEBC.js";
|
|
59
59
|
import "./chunk-BR2JQQC5.js";
|
|
60
|
-
import "./chunk-
|
|
60
|
+
import "./chunk-CKEOCCMK.js";
|
|
61
61
|
import "./chunk-ISN5GRYI.js";
|
|
62
62
|
import "./chunk-ADVVQX4I.js";
|
|
63
63
|
import "./chunk-66W5IWLO.js";
|
|
64
|
-
import "./chunk-
|
|
64
|
+
import "./chunk-FYZFURBN.js";
|
|
65
65
|
import "./chunk-QBXDU24O.js";
|
|
66
|
-
import "./chunk-
|
|
66
|
+
import "./chunk-WSZWPYRG.js";
|
|
67
67
|
import "./chunk-E63BDV4Z.js";
|
|
68
68
|
import "./chunk-G7VEYUZ2.js";
|
|
69
69
|
import "./chunk-XT6MXC7A.js";
|
|
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
gateRegistryItemsCompatibility
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-NXQMN7YC.js";
|
|
10
10
|
import {
|
|
11
11
|
copyDirSync
|
|
12
12
|
} from "./chunk-CIWX5UKC.js";
|
|
@@ -20,23 +20,23 @@ import {
|
|
|
20
20
|
select,
|
|
21
21
|
spinner,
|
|
22
22
|
text
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-LISUH6KH.js";
|
|
24
24
|
import {
|
|
25
25
|
initialModelForLanguage
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-LGVUQ4GC.js";
|
|
27
27
|
import "./chunk-SWC3QIEH.js";
|
|
28
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-TX3JT67F.js";
|
|
29
29
|
import {
|
|
30
30
|
DEFAULT_MODEL,
|
|
31
31
|
hasFFmpeg
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-OPOYDJEW.js";
|
|
33
33
|
import "./chunk-RZ6CXJ56.js";
|
|
34
34
|
import "./chunk-R4EWRIDL.js";
|
|
35
35
|
import {
|
|
36
36
|
findFFmpeg,
|
|
37
37
|
findFFprobe,
|
|
38
38
|
getFFmpegInstallHint
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-RWQEWEOV.js";
|
|
40
40
|
import "./chunk-UOFAE5RF.js";
|
|
41
41
|
import {
|
|
42
42
|
TRANSCRIPT_FILE
|
|
@@ -50,20 +50,21 @@ import {
|
|
|
50
50
|
listRegistryItems,
|
|
51
51
|
loadAllItems,
|
|
52
52
|
resolveItemWithDependencies
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-2ASPXS4U.js";
|
|
54
54
|
import "./chunk-JHOCK3DG.js";
|
|
55
55
|
import {
|
|
56
56
|
installItem
|
|
57
|
-
} from "./chunk-
|
|
58
|
-
import "./chunk-
|
|
57
|
+
} from "./chunk-GPHY5R35.js";
|
|
58
|
+
import "./chunk-3BLPPIJA.js";
|
|
59
59
|
import "./chunk-AWDFDFI3.js";
|
|
60
60
|
import "./chunk-P6LJ4Y32.js";
|
|
61
61
|
import "./chunk-T2WJO4XM.js";
|
|
62
62
|
import "./chunk-A4ZTSQLW.js";
|
|
63
|
+
import "./chunk-D3UCUI7G.js";
|
|
63
64
|
import {
|
|
64
65
|
trackInitTemplate
|
|
65
|
-
} from "./chunk-
|
|
66
|
-
import "./chunk-
|
|
66
|
+
} from "./chunk-AIK4ETUZ.js";
|
|
67
|
+
import "./chunk-EZCMP7NJ.js";
|
|
67
68
|
import "./chunk-PXVQOMKL.js";
|
|
68
69
|
import "./chunk-MCDNAIFF.js";
|
|
69
70
|
import "./chunk-BVAPHHMQ.js";
|
|
@@ -78,14 +79,14 @@ import "./chunk-54HJ63Q2.js";
|
|
|
78
79
|
import {
|
|
79
80
|
c,
|
|
80
81
|
isColorSupported
|
|
81
|
-
} from "./chunk-
|
|
82
|
-
import "./chunk-
|
|
82
|
+
} from "./chunk-HOCC4J5C.js";
|
|
83
|
+
import "./chunk-AB6DKVKC.js";
|
|
83
84
|
import "./chunk-Z5J67X44.js";
|
|
84
85
|
import "./chunk-5S7W3TUO.js";
|
|
85
86
|
import {
|
|
86
87
|
decodableAudioStream
|
|
87
88
|
} from "./chunk-D3MUHMFG.js";
|
|
88
|
-
import "./chunk-
|
|
89
|
+
import "./chunk-N2SXD5EG.js";
|
|
89
90
|
import "./chunk-YWRUQ7XZ.js";
|
|
90
91
|
import "./chunk-W5AUD5OL.js";
|
|
91
92
|
import "./chunk-MEJH7VEA.js";
|
|
@@ -102,9 +103,9 @@ import "./chunk-KGPLIH7B.js";
|
|
|
102
103
|
import "./chunk-LAGZGKKN.js";
|
|
103
104
|
import "./chunk-K4MJX7SR.js";
|
|
104
105
|
import "./chunk-WE42NVH7.js";
|
|
105
|
-
import "./chunk-
|
|
106
|
-
import "./chunk-CZGHFATT.js";
|
|
106
|
+
import "./chunk-CKZVLS3K.js";
|
|
107
107
|
import "./chunk-WVRAFHJU.js";
|
|
108
|
+
import "./chunk-CZGHFATT.js";
|
|
108
109
|
import "./chunk-HYRPH6LL.js";
|
|
109
110
|
import "./chunk-C2KEGBR3.js";
|
|
110
111
|
import {
|
|
@@ -123,7 +124,7 @@ import "./chunk-WC4MTXGN.js";
|
|
|
123
124
|
import "./chunk-FBN2M2HK.js";
|
|
124
125
|
import "./chunk-766MOTIZ.js";
|
|
125
126
|
import "./chunk-BR2JQQC5.js";
|
|
126
|
-
import "./chunk-
|
|
127
|
+
import "./chunk-CKEOCCMK.js";
|
|
127
128
|
import "./chunk-ISN5GRYI.js";
|
|
128
129
|
import "./chunk-ADVVQX4I.js";
|
|
129
130
|
import {
|
|
@@ -133,11 +134,11 @@ import {
|
|
|
133
134
|
} from "./chunk-66W5IWLO.js";
|
|
134
135
|
import {
|
|
135
136
|
isUnattended
|
|
136
|
-
} from "./chunk-
|
|
137
|
+
} from "./chunk-FYZFURBN.js";
|
|
137
138
|
import "./chunk-QBXDU24O.js";
|
|
138
139
|
import {
|
|
139
140
|
VERSION
|
|
140
|
-
} from "./chunk-
|
|
141
|
+
} from "./chunk-WSZWPYRG.js";
|
|
141
142
|
import "./chunk-E63BDV4Z.js";
|
|
142
143
|
import "./chunk-G7VEYUZ2.js";
|
|
143
144
|
import "./chunk-XT6MXC7A.js";
|
|
@@ -724,7 +725,7 @@ async function scaffoldProject(destDir, name, templateId, media, tailwind = fals
|
|
|
724
725
|
"utf-8"
|
|
725
726
|
);
|
|
726
727
|
if (!existsSync2(resolve(destDir, "hyperframes.json"))) {
|
|
727
|
-
const { createProjectConfig, DEFAULT_PROJECT_CONFIG } = await import("./projectConfig-
|
|
728
|
+
const { createProjectConfig, DEFAULT_PROJECT_CONFIG } = await import("./projectConfig-FMXOJBJY.js");
|
|
728
729
|
const { normalizeSkillSlug } = await import("./skill-ZHVLH7KX.js");
|
|
729
730
|
const skill = normalizeSkillSlug(authoringSkill);
|
|
730
731
|
createProjectConfig(
|
|
@@ -745,14 +746,16 @@ async function scaffoldProject(destDir, name, templateId, media, tailwind = fals
|
|
|
745
746
|
}
|
|
746
747
|
}
|
|
747
748
|
async function keepSkillsCurrent(destDir) {
|
|
748
|
-
const { updateSkills } = await import("./skills-
|
|
749
|
+
const { updateSkills } = await import("./skills-WCXVUM6C.js");
|
|
749
750
|
console.log();
|
|
750
751
|
console.log(c.bold("Checking AI coding skills against GitHub..."));
|
|
751
752
|
try {
|
|
752
753
|
const result = await updateSkills({ onlyMissing: true, cwd: destDir });
|
|
753
754
|
if (result.presenceOnly) {
|
|
754
755
|
console.log(
|
|
755
|
-
c.dim(
|
|
756
|
+
c.dim(
|
|
757
|
+
"Skills freshness unverified (offline?). For the user: `npx hyperframes skills update` refreshes them once online."
|
|
758
|
+
)
|
|
756
759
|
);
|
|
757
760
|
} else if (result.installed.length === 0) {
|
|
758
761
|
console.log(c.success("AI coding skills are already up to date."));
|
|
@@ -941,17 +944,17 @@ var init_default = defineCommand({
|
|
|
941
944
|
if (audioPath) {
|
|
942
945
|
sourceFilePath2 = audioPath;
|
|
943
946
|
copyFileSync(audioPath, resolve(destDir2, basename(audioPath)));
|
|
944
|
-
const { getMediaDurationSeconds } = await import("./transcribe-
|
|
947
|
+
const { getMediaDurationSeconds } = await import("./transcribe-N2C2MYCG.js");
|
|
945
948
|
videoDuration2 = getMediaDurationSeconds(audioPath) ?? void 0;
|
|
946
949
|
console.log(`Audio: ${basename(audioPath)}`);
|
|
947
950
|
}
|
|
948
951
|
if (sourceFilePath2 && !skipTranscribe) {
|
|
949
952
|
try {
|
|
950
|
-
const { ensureWhisper, ensureModel } = await import("./manager-
|
|
953
|
+
const { ensureWhisper, ensureModel } = await import("./manager-Q5X74T5D.js");
|
|
951
954
|
await ensureWhisper();
|
|
952
955
|
await ensureModel(initialTranscriptionModel);
|
|
953
956
|
console.log("Transcribing...");
|
|
954
|
-
const { transcribe: runTranscribe } = await import("./transcribe-
|
|
957
|
+
const { transcribe: runTranscribe } = await import("./transcribe-N2C2MYCG.js");
|
|
955
958
|
const result = await runTranscribe(sourceFilePath2, destDir2, {
|
|
956
959
|
model: modelFlag,
|
|
957
960
|
language: languageFlag
|
|
@@ -1001,7 +1004,7 @@ var init_default = defineCommand({
|
|
|
1001
1004
|
console.log();
|
|
1002
1005
|
if (skipSkills) {
|
|
1003
1006
|
console.log(
|
|
1004
|
-
` ${c.accent("1.")}
|
|
1007
|
+
` ${c.accent("1.")} For the user: use your HyperFrames plugin, or install standalone skills with:`
|
|
1005
1008
|
);
|
|
1006
1009
|
console.log(` ${c.accent("npx hyperframes skills update")}`);
|
|
1007
1010
|
} else {
|
|
@@ -1097,7 +1100,7 @@ var init_default = defineCommand({
|
|
|
1097
1100
|
mkdirSync(destDir, { recursive: true });
|
|
1098
1101
|
sourceFilePath = audioPath;
|
|
1099
1102
|
copyFileSync(audioPath, resolve(destDir, basename(audioPath)));
|
|
1100
|
-
const { getMediaDurationSeconds } = await import("./transcribe-
|
|
1103
|
+
const { getMediaDurationSeconds } = await import("./transcribe-N2C2MYCG.js");
|
|
1101
1104
|
videoDuration = getMediaDurationSeconds(audioPath) ?? void 0;
|
|
1102
1105
|
R.info(`Audio copied to ${c.accent(basename(audioPath))}`);
|
|
1103
1106
|
}
|
|
@@ -1107,7 +1110,7 @@ var init_default = defineCommand({
|
|
|
1107
1110
|
initialValue: true
|
|
1108
1111
|
});
|
|
1109
1112
|
if (!q(transcribeChoice) && transcribeChoice) {
|
|
1110
|
-
const { findWhisper } = await import("./manager-
|
|
1113
|
+
const { findWhisper } = await import("./manager-Q5X74T5D.js");
|
|
1111
1114
|
const needsInstall = findWhisper() === void 0;
|
|
1112
1115
|
if (needsInstall) {
|
|
1113
1116
|
R.info(c.dim("whisper-cpp not found \u2014 installing automatically..."));
|
|
@@ -1117,7 +1120,7 @@ var init_default = defineCommand({
|
|
|
1117
1120
|
needsInstall ? "Installing whisper-cpp (this may take a moment)..." : "Preparing transcription..."
|
|
1118
1121
|
);
|
|
1119
1122
|
try {
|
|
1120
|
-
const { ensureWhisper, ensureModel } = await import("./manager-
|
|
1123
|
+
const { ensureWhisper, ensureModel } = await import("./manager-Q5X74T5D.js");
|
|
1121
1124
|
await ensureWhisper({
|
|
1122
1125
|
onProgress: (msg) => spin2.message(msg)
|
|
1123
1126
|
});
|
|
@@ -1125,7 +1128,7 @@ var init_default = defineCommand({
|
|
|
1125
1128
|
onProgress: (msg) => spin2.message(msg)
|
|
1126
1129
|
});
|
|
1127
1130
|
spin2.message("Transcribing audio...");
|
|
1128
|
-
const { transcribe: runTranscribe } = await import("./transcribe-
|
|
1131
|
+
const { transcribe: runTranscribe } = await import("./transcribe-N2C2MYCG.js");
|
|
1129
1132
|
const transcribeResult = await runTranscribe(sourceFilePath, destDir, {
|
|
1130
1133
|
model: modelFlag,
|
|
1131
1134
|
language: languageFlag,
|
|
@@ -1203,7 +1206,7 @@ ${c.dim("Use --example blank for offline use.")}`
|
|
|
1203
1206
|
}
|
|
1204
1207
|
R.info("Opening studio preview...");
|
|
1205
1208
|
try {
|
|
1206
|
-
const previewCmd = await import("./preview-
|
|
1209
|
+
const previewCmd = await import("./preview-AUDJW3KE.js").then((m) => m.default);
|
|
1207
1210
|
await runCommand(previewCmd, { rawArgs: [destDir] });
|
|
1208
1211
|
} catch {
|
|
1209
1212
|
}
|
|
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
inkOf
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-MBX3BHW3.js";
|
|
10
10
|
import {
|
|
11
11
|
jsonArg,
|
|
12
12
|
num,
|
|
@@ -14,22 +14,22 @@ import {
|
|
|
14
14
|
runMeasure,
|
|
15
15
|
videoAndRoi,
|
|
16
16
|
videoArg
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-FJIN5OWZ.js";
|
|
18
18
|
import {
|
|
19
19
|
Fix,
|
|
20
20
|
readFrameAt
|
|
21
|
-
} from "./chunk-
|
|
22
|
-
import "./chunk-
|
|
21
|
+
} from "./chunk-NR2W7HUH.js";
|
|
22
|
+
import "./chunk-RWQEWEOV.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-HOCC4J5C.js";
|
|
28
|
+
import "./chunk-AB6DKVKC.js";
|
|
29
29
|
import "./chunk-Z5J67X44.js";
|
|
30
30
|
import "./chunk-5S7W3TUO.js";
|
|
31
31
|
import "./chunk-D3MUHMFG.js";
|
|
32
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-N2SXD5EG.js";
|
|
33
33
|
import "./chunk-YWRUQ7XZ.js";
|
|
34
34
|
import "./chunk-W5AUD5OL.js";
|
|
35
35
|
import "./chunk-MEJH7VEA.js";
|
|
@@ -44,9 +44,9 @@ import "./chunk-X6JUUQCM.js";
|
|
|
44
44
|
import "./chunk-KGPLIH7B.js";
|
|
45
45
|
import "./chunk-K4MJX7SR.js";
|
|
46
46
|
import "./chunk-WE42NVH7.js";
|
|
47
|
-
import "./chunk-
|
|
48
|
-
import "./chunk-CZGHFATT.js";
|
|
47
|
+
import "./chunk-CKZVLS3K.js";
|
|
49
48
|
import "./chunk-WVRAFHJU.js";
|
|
49
|
+
import "./chunk-CZGHFATT.js";
|
|
50
50
|
import "./chunk-HYRPH6LL.js";
|
|
51
51
|
import "./chunk-C2KEGBR3.js";
|
|
52
52
|
import "./chunk-JHILL4BN.js";
|
|
@@ -58,15 +58,15 @@ import "./chunk-EPQC3FGZ.js";
|
|
|
58
58
|
import "./chunk-WC4MTXGN.js";
|
|
59
59
|
import "./chunk-FBN2M2HK.js";
|
|
60
60
|
import "./chunk-766MOTIZ.js";
|
|
61
|
-
import "./chunk-
|
|
61
|
+
import "./chunk-MGAGDEBC.js";
|
|
62
62
|
import "./chunk-BR2JQQC5.js";
|
|
63
|
-
import "./chunk-
|
|
63
|
+
import "./chunk-CKEOCCMK.js";
|
|
64
64
|
import "./chunk-ISN5GRYI.js";
|
|
65
65
|
import "./chunk-ADVVQX4I.js";
|
|
66
66
|
import "./chunk-66W5IWLO.js";
|
|
67
|
-
import "./chunk-
|
|
67
|
+
import "./chunk-FYZFURBN.js";
|
|
68
68
|
import "./chunk-QBXDU24O.js";
|
|
69
|
-
import "./chunk-
|
|
69
|
+
import "./chunk-WSZWPYRG.js";
|
|
70
70
|
import "./chunk-E63BDV4Z.js";
|
|
71
71
|
import "./chunk-G7VEYUZ2.js";
|
|
72
72
|
import "./chunk-XT6MXC7A.js";
|
|
@@ -6,47 +6,48 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
createInspectCommand
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-5Z7YSZRF.js";
|
|
10
10
|
import "./chunk-TQBQYO4L.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-CLT3CJKG.js";
|
|
12
|
+
import "./chunk-RBF3AF7R.js";
|
|
13
|
+
import "./chunk-2WGAXAM7.js";
|
|
14
14
|
import "./chunk-X7MTZ4T2.js";
|
|
15
15
|
import "./chunk-XUHOIDKG.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-WCNUB6WU.js";
|
|
17
17
|
import "./chunk-RXFKSZN2.js";
|
|
18
18
|
import "./chunk-262C25DQ.js";
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-ZPJVKYDL.js";
|
|
20
|
+
import "./chunk-7AMCGJDM.js";
|
|
21
21
|
import "./chunk-YGGZ23BB.js";
|
|
22
22
|
import "./chunk-LTBBFLOM.js";
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-AW3XJY4S.js";
|
|
23
|
+
import "./chunk-7S2LS53F.js";
|
|
24
|
+
import "./chunk-O4Q44I77.js";
|
|
26
25
|
import "./chunk-CPMTEWQM.js";
|
|
26
|
+
import "./chunk-AW3XJY4S.js";
|
|
27
27
|
import "./chunk-XLPCBE2Q.js";
|
|
28
28
|
import "./chunk-MDMQD6BV.js";
|
|
29
29
|
import "./chunk-2QMEP4LR.js";
|
|
30
30
|
import "./chunk-ALVXFXUG.js";
|
|
31
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-ZMRRTWKP.js";
|
|
32
32
|
import "./chunk-XT7X6QCP.js";
|
|
33
33
|
import "./chunk-5YPMCCCA.js";
|
|
34
34
|
import "./chunk-HVW7ABXD.js";
|
|
35
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-2ASPXS4U.js";
|
|
36
36
|
import "./chunk-JHOCK3DG.js";
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-
|
|
37
|
+
import "./chunk-GPHY5R35.js";
|
|
38
|
+
import "./chunk-3BLPPIJA.js";
|
|
39
39
|
import "./chunk-AWDFDFI3.js";
|
|
40
40
|
import "./chunk-P6LJ4Y32.js";
|
|
41
41
|
import "./chunk-T2WJO4XM.js";
|
|
42
42
|
import "./chunk-W4DMQZL5.js";
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-
|
|
43
|
+
import "./chunk-7WSL3PT3.js";
|
|
44
|
+
import "./chunk-M3JU24AI.js";
|
|
45
|
+
import "./chunk-SXAZR7M4.js";
|
|
46
46
|
import "./chunk-EHZESMRB.js";
|
|
47
47
|
import "./chunk-A4ZTSQLW.js";
|
|
48
|
-
import "./chunk-
|
|
49
|
-
import "./chunk-
|
|
48
|
+
import "./chunk-D3UCUI7G.js";
|
|
49
|
+
import "./chunk-AIK4ETUZ.js";
|
|
50
|
+
import "./chunk-EZCMP7NJ.js";
|
|
50
51
|
import "./chunk-PXVQOMKL.js";
|
|
51
52
|
import "./chunk-MCDNAIFF.js";
|
|
52
53
|
import "./chunk-BVAPHHMQ.js";
|
|
@@ -54,15 +55,15 @@ import "./chunk-DL4OD7IA.js";
|
|
|
54
55
|
import "./chunk-S3S4TGEH.js";
|
|
55
56
|
import "./chunk-TABWG4IT.js";
|
|
56
57
|
import "./chunk-54HJ63Q2.js";
|
|
57
|
-
import "./chunk-
|
|
58
|
+
import "./chunk-HOCC4J5C.js";
|
|
58
59
|
import "./chunk-VEIGTKYZ.js";
|
|
59
60
|
import "./chunk-EVMY7IPL.js";
|
|
60
61
|
import "./chunk-7FMUTGOH.js";
|
|
61
|
-
import "./chunk-
|
|
62
|
+
import "./chunk-AB6DKVKC.js";
|
|
62
63
|
import "./chunk-Z5J67X44.js";
|
|
63
64
|
import "./chunk-5S7W3TUO.js";
|
|
64
65
|
import "./chunk-D3MUHMFG.js";
|
|
65
|
-
import "./chunk-
|
|
66
|
+
import "./chunk-N2SXD5EG.js";
|
|
66
67
|
import "./chunk-YWRUQ7XZ.js";
|
|
67
68
|
import "./chunk-W5AUD5OL.js";
|
|
68
69
|
import "./chunk-MEJH7VEA.js";
|
|
@@ -77,9 +78,9 @@ import "./chunk-KGPLIH7B.js";
|
|
|
77
78
|
import "./chunk-LAGZGKKN.js";
|
|
78
79
|
import "./chunk-K4MJX7SR.js";
|
|
79
80
|
import "./chunk-WE42NVH7.js";
|
|
80
|
-
import "./chunk-
|
|
81
|
-
import "./chunk-CZGHFATT.js";
|
|
81
|
+
import "./chunk-CKZVLS3K.js";
|
|
82
82
|
import "./chunk-WVRAFHJU.js";
|
|
83
|
+
import "./chunk-CZGHFATT.js";
|
|
83
84
|
import "./chunk-HYRPH6LL.js";
|
|
84
85
|
import "./chunk-C2KEGBR3.js";
|
|
85
86
|
import "./chunk-JHILL4BN.js";
|
|
@@ -91,15 +92,15 @@ import "./chunk-EPQC3FGZ.js";
|
|
|
91
92
|
import "./chunk-WC4MTXGN.js";
|
|
92
93
|
import "./chunk-FBN2M2HK.js";
|
|
93
94
|
import "./chunk-766MOTIZ.js";
|
|
94
|
-
import "./chunk-
|
|
95
|
+
import "./chunk-MGAGDEBC.js";
|
|
95
96
|
import "./chunk-BR2JQQC5.js";
|
|
96
|
-
import "./chunk-
|
|
97
|
+
import "./chunk-CKEOCCMK.js";
|
|
97
98
|
import "./chunk-ISN5GRYI.js";
|
|
98
99
|
import "./chunk-ADVVQX4I.js";
|
|
99
100
|
import "./chunk-66W5IWLO.js";
|
|
100
|
-
import "./chunk-
|
|
101
|
+
import "./chunk-FYZFURBN.js";
|
|
101
102
|
import "./chunk-QBXDU24O.js";
|
|
102
|
-
import "./chunk-
|
|
103
|
+
import "./chunk-WSZWPYRG.js";
|
|
103
104
|
import "./chunk-E63BDV4Z.js";
|
|
104
105
|
import "./chunk-G7VEYUZ2.js";
|
|
105
106
|
import "./chunk-XT6MXC7A.js";
|