@ignix-social/editor 0.1.0
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/LICENSE +190 -0
- package/NOTICE +54 -0
- package/README.md +23 -0
- package/bin/ignix-editor.mjs +8 -0
- package/package.json +53 -0
- package/patches/index.mjs +53 -0
- package/scripts/build-ffmpeg-macos.sh +35 -0
- package/scripts/build-whisper-macos.sh +21 -0
- package/scripts/vendor.mjs +41 -0
- package/skills/ignix-editor/SKILL.md +132 -0
- package/src/audio.mjs +31 -0
- package/src/binaries.json +46 -0
- package/src/binaries.mjs +83 -0
- package/src/cli.mjs +254 -0
- package/src/prepare.mjs +74 -0
- package/src/runtime/ignix-frame.js +92 -0
- package/src/transcribe.mjs +71 -0
- package/src/validate.mjs +71 -0
- package/templates/blank/index.html +41 -0
- package/vendor/hyperframes/README.md +181 -0
- package/vendor/hyperframes/UPSTREAM.json +12 -0
- package/vendor/hyperframes/bin/hyperframes-localize-fonts.mjs +12 -0
- package/vendor/hyperframes/bin/hyperframes.mjs +11 -0
- package/vendor/hyperframes/dist/add-LR3ZR2A5.js +79 -0
- package/vendor/hyperframes/dist/agentPromptGenerator-VIIPZCJ3.js +143 -0
- package/vendor/hyperframes/dist/animatedGifPrep-P2T6YM7Z.js +34 -0
- package/vendor/hyperframes/dist/asset-BE2DOV72.js +26 -0
- package/vendor/hyperframes/dist/assetCataloger-VBLPHX24.js +340 -0
- package/vendor/hyperframes/dist/auth-RCQB2ZT7.js +60 -0
- package/vendor/hyperframes/dist/autoUpdate-RJAX3DAZ.js +268 -0
- package/vendor/hyperframes/dist/backgroundChecks-H2LCUIMJ.js +61 -0
- package/vendor/hyperframes/dist/backgroundChecksWorker.js +26 -0
- package/vendor/hyperframes/dist/batchRender-FT7AP7XH.js +355 -0
- package/vendor/hyperframes/dist/beat-analyzer.global.js +338 -0
- package/vendor/hyperframes/dist/beats-Y2EOP72P.js +309 -0
- package/vendor/hyperframes/dist/benchmark-MZ7GY3JW.js +231 -0
- package/vendor/hyperframes/dist/browser-HUTAMRQE.js +237 -0
- package/vendor/hyperframes/dist/bundleWithLocalizedFonts-5QOPOB5D.js +52 -0
- package/vendor/hyperframes/dist/capture-RLZA6EMR.js +4079 -0
- package/vendor/hyperframes/dist/capture-SZZ4IYJK.js +290 -0
- package/vendor/hyperframes/dist/captureFile-LYOJOUIE.js +15 -0
- package/vendor/hyperframes/dist/captureTimeout-PA4FYWT5.js +27 -0
- package/vendor/hyperframes/dist/catalog-KYU55EWR.js +1001 -0
- package/vendor/hyperframes/dist/check-TCG4PXLR.js +1697 -0
- package/vendor/hyperframes/dist/checkBrowser-RPMO4OW5.js +1032 -0
- package/vendor/hyperframes/dist/chunk-2EAXUCCE.js +88 -0
- package/vendor/hyperframes/dist/chunk-2EGFTPWD.js +1077 -0
- package/vendor/hyperframes/dist/chunk-2PSPARWP.js +6058 -0
- package/vendor/hyperframes/dist/chunk-2YN64IN5.js +5747 -0
- package/vendor/hyperframes/dist/chunk-3GXQPCJC.js +682 -0
- package/vendor/hyperframes/dist/chunk-3ZP5DXE7.js +15 -0
- package/vendor/hyperframes/dist/chunk-4NWOGZZS.js +1990 -0
- package/vendor/hyperframes/dist/chunk-4PFZPP2N.js +587 -0
- package/vendor/hyperframes/dist/chunk-4THIAPBL.js +128 -0
- package/vendor/hyperframes/dist/chunk-4YYJOFKS.js +28 -0
- package/vendor/hyperframes/dist/chunk-54HJ63Q2.js +29 -0
- package/vendor/hyperframes/dist/chunk-5ETJX6WM.js +89 -0
- package/vendor/hyperframes/dist/chunk-5IAKAQA7.js +389 -0
- package/vendor/hyperframes/dist/chunk-5Z63TBTX.js +37 -0
- package/vendor/hyperframes/dist/chunk-6BEFEWFB.js +25 -0
- package/vendor/hyperframes/dist/chunk-6CSYCFQV.js +68 -0
- package/vendor/hyperframes/dist/chunk-6CTIGJY7.js +154 -0
- package/vendor/hyperframes/dist/chunk-7HG4BFIN.js +93 -0
- package/vendor/hyperframes/dist/chunk-7JZ4FXP2.js +118 -0
- package/vendor/hyperframes/dist/chunk-A2Z4Z4VL.js +2961 -0
- package/vendor/hyperframes/dist/chunk-AMKC3AXA.js +25 -0
- package/vendor/hyperframes/dist/chunk-AVUUN2XD.js +4847 -0
- package/vendor/hyperframes/dist/chunk-AWDFDFI3.js +46 -0
- package/vendor/hyperframes/dist/chunk-AWNBM3MZ.js +94 -0
- package/vendor/hyperframes/dist/chunk-BXCMXMJQ.js +73 -0
- package/vendor/hyperframes/dist/chunk-BZ56MTDX.js +6 -0
- package/vendor/hyperframes/dist/chunk-CFKU7HTK.js +171 -0
- package/vendor/hyperframes/dist/chunk-CWPVM2QV.js +308 -0
- package/vendor/hyperframes/dist/chunk-DPVXBVLL.js +31292 -0
- package/vendor/hyperframes/dist/chunk-DQBY7FRR.js +397 -0
- package/vendor/hyperframes/dist/chunk-E6RPWJVC.js +213 -0
- package/vendor/hyperframes/dist/chunk-EISRN4E6.js +294 -0
- package/vendor/hyperframes/dist/chunk-EOVYQ3IG.js +143 -0
- package/vendor/hyperframes/dist/chunk-F3WZGU7C.js +479 -0
- package/vendor/hyperframes/dist/chunk-FCSIGXXP.js +366 -0
- package/vendor/hyperframes/dist/chunk-FI4I7CME.js +56 -0
- package/vendor/hyperframes/dist/chunk-FLWXXDNS.js +15 -0
- package/vendor/hyperframes/dist/chunk-GK4AIFIH.js +11171 -0
- package/vendor/hyperframes/dist/chunk-GMECXFAN.js +57 -0
- package/vendor/hyperframes/dist/chunk-GULOKZLI.js +155 -0
- package/vendor/hyperframes/dist/chunk-H4YZZ2VQ.js +68 -0
- package/vendor/hyperframes/dist/chunk-H6QMKUYA.js +477 -0
- package/vendor/hyperframes/dist/chunk-HBBJFK6I.js +273 -0
- package/vendor/hyperframes/dist/chunk-HRUGC23L.js +212 -0
- package/vendor/hyperframes/dist/chunk-HVW7ABXD.js +19 -0
- package/vendor/hyperframes/dist/chunk-HW6OYASV.js +344 -0
- package/vendor/hyperframes/dist/chunk-HWKCIWQT.js +3578 -0
- package/vendor/hyperframes/dist/chunk-I465DBM6.js +1214 -0
- package/vendor/hyperframes/dist/chunk-IGLEPPTN.js +24 -0
- package/vendor/hyperframes/dist/chunk-IGNAAHS3.js +433 -0
- package/vendor/hyperframes/dist/chunk-IHFUKJOR.js +85 -0
- package/vendor/hyperframes/dist/chunk-IQ3OUQ5Z.js +213 -0
- package/vendor/hyperframes/dist/chunk-ISN5GRYI.js +20 -0
- package/vendor/hyperframes/dist/chunk-IUZFXWSV.js +446 -0
- package/vendor/hyperframes/dist/chunk-JH556Q42.js +647 -0
- package/vendor/hyperframes/dist/chunk-JTHMTOMQ.js +601 -0
- package/vendor/hyperframes/dist/chunk-K2EQN4VU.js +405 -0
- package/vendor/hyperframes/dist/chunk-K2FTXJYH.js +16044 -0
- package/vendor/hyperframes/dist/chunk-K4WIOZFP.js +32 -0
- package/vendor/hyperframes/dist/chunk-K4WKGXRC.js +18 -0
- package/vendor/hyperframes/dist/chunk-KBJUXVOJ.js +172 -0
- package/vendor/hyperframes/dist/chunk-KC5XXX3X.js +590 -0
- package/vendor/hyperframes/dist/chunk-KNU5COPB.js +29 -0
- package/vendor/hyperframes/dist/chunk-KZI44OPA.js +185 -0
- package/vendor/hyperframes/dist/chunk-L3YOGIPG.js +48 -0
- package/vendor/hyperframes/dist/chunk-LAOCA3MQ.js +189 -0
- package/vendor/hyperframes/dist/chunk-LCSMOLGX.js +312 -0
- package/vendor/hyperframes/dist/chunk-LFGJWOVA.js +61 -0
- package/vendor/hyperframes/dist/chunk-LHSR3M4M.js +498 -0
- package/vendor/hyperframes/dist/chunk-LYNI3FOL.js +123 -0
- package/vendor/hyperframes/dist/chunk-M2WBOQ2Q.js +54 -0
- package/vendor/hyperframes/dist/chunk-MRF4AMKD.js +104 -0
- package/vendor/hyperframes/dist/chunk-MWB3ZIFM.js +852 -0
- package/vendor/hyperframes/dist/chunk-NGKM64BP.js +39 -0
- package/vendor/hyperframes/dist/chunk-NXMYHJAL.js +43 -0
- package/vendor/hyperframes/dist/chunk-OAF4XJOW.js +192 -0
- package/vendor/hyperframes/dist/chunk-OFQWTKPW.js +117 -0
- package/vendor/hyperframes/dist/chunk-P6LJ4Y32.js +4662 -0
- package/vendor/hyperframes/dist/chunk-PBN6GBJE.js +108 -0
- package/vendor/hyperframes/dist/chunk-PDAMK4Q5.js +28 -0
- package/vendor/hyperframes/dist/chunk-PFCFR3KZ.js +20 -0
- package/vendor/hyperframes/dist/chunk-PJ3HDUCY.js +108 -0
- package/vendor/hyperframes/dist/chunk-PMRBLBUP.js +152 -0
- package/vendor/hyperframes/dist/chunk-PPQUYWTW.js +240 -0
- package/vendor/hyperframes/dist/chunk-Q5X2B5WT.js +29 -0
- package/vendor/hyperframes/dist/chunk-Q7IU7MOR.js +351 -0
- package/vendor/hyperframes/dist/chunk-QC4FJVLM.js +371 -0
- package/vendor/hyperframes/dist/chunk-QNYYOUU3.js +1318 -0
- package/vendor/hyperframes/dist/chunk-RDNNAKEP.js +161 -0
- package/vendor/hyperframes/dist/chunk-RMHUQGRK.js +657 -0
- package/vendor/hyperframes/dist/chunk-RQVDTPGD.js +6 -0
- package/vendor/hyperframes/dist/chunk-RVCWIIZ7.js +68 -0
- package/vendor/hyperframes/dist/chunk-S3D6GE5W.js +72 -0
- package/vendor/hyperframes/dist/chunk-S3S4TGEH.js +424 -0
- package/vendor/hyperframes/dist/chunk-S7NPLFWV.js +11395 -0
- package/vendor/hyperframes/dist/chunk-SHB5VDMH.js +51 -0
- package/vendor/hyperframes/dist/chunk-TCLGPL65.js +860 -0
- package/vendor/hyperframes/dist/chunk-THXFSPLV.js +40 -0
- package/vendor/hyperframes/dist/chunk-TJSTGSAW.js +354 -0
- package/vendor/hyperframes/dist/chunk-TQFG7HTI.js +1024 -0
- package/vendor/hyperframes/dist/chunk-TVCRUG2S.js +265 -0
- package/vendor/hyperframes/dist/chunk-TWWSYAKJ.js +24 -0
- package/vendor/hyperframes/dist/chunk-U7CZBDMV.js +27 -0
- package/vendor/hyperframes/dist/chunk-UEZXMWG3.js +139 -0
- package/vendor/hyperframes/dist/chunk-UYEZTK4U.js +61 -0
- package/vendor/hyperframes/dist/chunk-VC76R6W2.js +27 -0
- package/vendor/hyperframes/dist/chunk-VFCKXTBB.js +159 -0
- package/vendor/hyperframes/dist/chunk-VWG7OQKU.js +22 -0
- package/vendor/hyperframes/dist/chunk-VXVRPIJA.js +105 -0
- package/vendor/hyperframes/dist/chunk-WBLXWOYK.js +15 -0
- package/vendor/hyperframes/dist/chunk-WERLJGIC.js +20 -0
- package/vendor/hyperframes/dist/chunk-WMQNIQDJ.js +2057 -0
- package/vendor/hyperframes/dist/chunk-WPHMNO44.js +4528 -0
- package/vendor/hyperframes/dist/chunk-X5HWXQPU.js +113 -0
- package/vendor/hyperframes/dist/chunk-X7MTZ4T2.js +6 -0
- package/vendor/hyperframes/dist/chunk-XH4DSOS5.js +59 -0
- package/vendor/hyperframes/dist/chunk-XS4EJSKU.js +23 -0
- package/vendor/hyperframes/dist/chunk-XT5P4QMO.js +181 -0
- package/vendor/hyperframes/dist/chunk-XT7X6QCP.js +6 -0
- package/vendor/hyperframes/dist/chunk-XUHOIDKG.js +6 -0
- package/vendor/hyperframes/dist/chunk-XUXGIA7H.js +485 -0
- package/vendor/hyperframes/dist/chunk-XZABUQTX.js +113 -0
- package/vendor/hyperframes/dist/chunk-Y6W4DVPS.js +356 -0
- package/vendor/hyperframes/dist/chunk-YEIFI443.js +44 -0
- package/vendor/hyperframes/dist/chunk-YQZNILVH.js +375 -0
- package/vendor/hyperframes/dist/chunk-Z27A7NUB.js +65 -0
- package/vendor/hyperframes/dist/chunk-Z6B37SNM.js +3081 -0
- package/vendor/hyperframes/dist/chunk-ZJUKFZ2P.js +10954 -0
- package/vendor/hyperframes/dist/chunk-ZKDMAOFU.js +32 -0
- package/vendor/hyperframes/dist/chunk-ZMXUQLI2.js +17219 -0
- package/vendor/hyperframes/dist/chunk-ZTZ7NCJT.js +58 -0
- package/vendor/hyperframes/dist/chunk-ZTZA4UWZ.js +108 -0
- package/vendor/hyperframes/dist/clean-W57E5YQ3.js +293 -0
- package/vendor/hyperframes/dist/cli.js +495 -0
- package/vendor/hyperframes/dist/cloud-FFTJGZ24.js +70 -0
- package/vendor/hyperframes/dist/cloudrun-AJUTHUEA.js +763 -0
- package/vendor/hyperframes/dist/colors-HKWSZCGK.js +15 -0
- package/vendor/hyperframes/dist/commands/contrast-audit.browser.js +459 -0
- package/vendor/hyperframes/dist/commands/layout-audit.browser.js +2102 -0
- package/vendor/hyperframes/dist/commands/motion-sample.browser.js +74 -0
- package/vendor/hyperframes/dist/commands/motion-signature.browser.js +374 -0
- package/vendor/hyperframes/dist/compare-AYCTT55F.js +421 -0
- package/vendor/hyperframes/dist/compiler-QO36EXLS.js +121 -0
- package/vendor/hyperframes/dist/component-VFFR2O7T.js +176 -0
- package/vendor/hyperframes/dist/compositions-QTVN3U2A.js +228 -0
- package/vendor/hyperframes/dist/contactSheet-27SRU7A4.js +22 -0
- package/vendor/hyperframes/dist/delete-ZAKYCB7I.js +114 -0
- package/vendor/hyperframes/dist/deploy-MX76RZ36.js +101 -0
- package/vendor/hyperframes/dist/destroy-H2TZBYHH.js +42 -0
- package/vendor/hyperframes/dist/deterministicFonts-HAEMV4TM.js +50 -0
- package/vendor/hyperframes/dist/dist-EWXJGN63.js +129 -0
- package/vendor/hyperframes/dist/dist-FNNGCKFS.js +29 -0
- package/vendor/hyperframes/dist/dist-S3PJNPXQ.js +392 -0
- package/vendor/hyperframes/dist/docker/Dockerfile.render +65 -0
- package/vendor/hyperframes/dist/docs/compositions.md +67 -0
- package/vendor/hyperframes/dist/docs/data-attributes.md +27 -0
- package/vendor/hyperframes/dist/docs/examples.md +19 -0
- package/vendor/hyperframes/dist/docs/gsap.md +26 -0
- package/vendor/hyperframes/dist/docs/rendering.md +35 -0
- package/vendor/hyperframes/dist/docs/troubleshooting.md +29 -0
- package/vendor/hyperframes/dist/docs-QAPJEGLS.js +131 -0
- package/vendor/hyperframes/dist/doctor-AI7C3FON.js +67 -0
- package/vendor/hyperframes/dist/dom-IROKGVJI.js +14 -0
- package/vendor/hyperframes/dist/dotEnv-AECLXQSO.js +14 -0
- package/vendor/hyperframes/dist/events-7LALYNKZ.js +92 -0
- package/vendor/hyperframes/dist/events-FQY3HGKZ.js +88 -0
- package/vendor/hyperframes/dist/feedback-WCMDMSTK.js +472 -0
- package/vendor/hyperframes/dist/ffmpeg-QIUFEFTY.js +35 -0
- package/vendor/hyperframes/dist/figma-64WY462P.js +63 -0
- package/vendor/hyperframes/dist/fontData.generated-NXAOI4GH.js +13 -0
- package/vendor/hyperframes/dist/fontLocalizeCli.js +132 -0
- package/vendor/hyperframes/dist/get-FPOMJMZB.js +103 -0
- package/vendor/hyperframes/dist/gpuPolicy-2ZUZE5D6.js +38 -0
- package/vendor/hyperframes/dist/grade-compare-E2CKPST4.js +647 -0
- package/vendor/hyperframes/dist/gsapParser-DIYYX6JT.js +2846 -0
- package/vendor/hyperframes/dist/gsapParserAcorn-E3GEIRZB.js +28 -0
- package/vendor/hyperframes/dist/help-YRQIDDML.js +197 -0
- package/vendor/hyperframes/dist/history-PP5NDRV3.js +571 -0
- package/vendor/hyperframes/dist/hyperframe-runtime.js +1081 -0
- package/vendor/hyperframes/dist/hyperframe.manifest.json +22 -0
- package/vendor/hyperframes/dist/hyperframe.runtime.iife.js +1081 -0
- package/vendor/hyperframes/dist/hyperframes-player.global.js +474 -0
- package/vendor/hyperframes/dist/hyperframes-slideshow.global.js +149 -0
- package/vendor/hyperframes/dist/info-SEX3B7JL.js +153 -0
- package/vendor/hyperframes/dist/init-U3AKHO5B.js +1147 -0
- package/vendor/hyperframes/dist/inspect-Q3K6EDEK.js +97 -0
- package/vendor/hyperframes/dist/installer-K6O5WF44.js +37 -0
- package/vendor/hyperframes/dist/keyframes-DC64JCI3.js +2602 -0
- package/vendor/hyperframes/dist/lambda-D7UMN4DJ.js +451 -0
- package/vendor/hyperframes/dist/layout-XSPPDHOO.js +86 -0
- package/vendor/hyperframes/dist/lib-TPG2ZMAX.js +128 -0
- package/vendor/hyperframes/dist/lint-7DQZE7L3.js +164 -0
- package/vendor/hyperframes/dist/lintProject-OHBBM3DJ.js +27 -0
- package/vendor/hyperframes/dist/list-4K5MVDQX.js +162 -0
- package/vendor/hyperframes/dist/login-NTX4OWXL.js +377 -0
- package/vendor/hyperframes/dist/logout-Q654A3SI.js +100 -0
- package/vendor/hyperframes/dist/manager-67P2XFXQ.js +34 -0
- package/vendor/hyperframes/dist/manager-CT3D67CG.js +38 -0
- package/vendor/hyperframes/dist/manager-GFN75DM4.js +30 -0
- package/vendor/hyperframes/dist/media-treatment-5FYAOPNL.js +972 -0
- package/vendor/hyperframes/dist/media-use-4XXGABIL.js +113 -0
- package/vendor/hyperframes/dist/models-C4E4IWJD.js +137 -0
- package/vendor/hyperframes/dist/motionShot-S4MIGMT5.js +614 -0
- package/vendor/hyperframes/dist/normalize-O76AC4HE.js +333 -0
- package/vendor/hyperframes/dist/normalize-audio-CSFTXLXD.js +276 -0
- package/vendor/hyperframes/dist/open-2ZD6BHZG.js +115 -0
- package/vendor/hyperframes/dist/pipeline-TNGWUZQC.js +54 -0
- package/vendor/hyperframes/dist/play-CTMUXX6E.js +349 -0
- package/vendor/hyperframes/dist/policies-FSDZVS2E.js +292 -0
- package/vendor/hyperframes/dist/preflight-SMNV6RW2.js +45 -0
- package/vendor/hyperframes/dist/present-WQVHV5CR.js +350 -0
- package/vendor/hyperframes/dist/preview-JOJXTH75.js +1820 -0
- package/vendor/hyperframes/dist/producer-ECLEN5RP.js +13 -0
- package/vendor/hyperframes/dist/progress-FBIEEB7Y.js +73 -0
- package/vendor/hyperframes/dist/projectConfig-HYJMJ5BY.js +56 -0
- package/vendor/hyperframes/dist/publication-HQ5Y3KBM.js +29 -0
- package/vendor/hyperframes/dist/publish-VHDYQASC.js +430 -0
- package/vendor/hyperframes/dist/refresh-K24ETHMA.js +53 -0
- package/vendor/hyperframes/dist/remove-background-W2YX2NVH.js +253 -0
- package/vendor/hyperframes/dist/render-AO5VX3YI.js +177 -0
- package/vendor/hyperframes/dist/render-LNO62LEL.js +2367 -0
- package/vendor/hyperframes/dist/render-TTQI7TGN.js +796 -0
- package/vendor/hyperframes/dist/render-batch-YH7CTWNY.js +284 -0
- package/vendor/hyperframes/dist/renderCancellation-JPIHE47X.js +35 -0
- package/vendor/hyperframes/dist/renderSetupWorker.js +79 -0
- package/vendor/hyperframes/dist/resolver-IZ647GBZ.js +38 -0
- package/vendor/hyperframes/dist/runtimeVersion.js +18 -0
- package/vendor/hyperframes/dist/screenshotCapture-ECBTLCU6.js +179 -0
- package/vendor/hyperframes/dist/shaderTransitionWorker.js +44 -0
- package/vendor/hyperframes/dist/sherpa-KKLNW6U2.js +314 -0
- package/vendor/hyperframes/dist/sherpaWorker.js +77 -0
- package/vendor/hyperframes/dist/sites-TNVKZS73.js +52 -0
- package/vendor/hyperframes/dist/skill-ZHVLH7KX.js +15 -0
- package/vendor/hyperframes/dist/skills/hyperframes/SKILL.md +152 -0
- package/vendor/hyperframes/dist/skills/hyperframes/references/brief-contract.md +108 -0
- package/vendor/hyperframes/dist/skills/hyperframes/references/brief-format.md +72 -0
- package/vendor/hyperframes/dist/skills/hyperframes/references/capability-menu.md +47 -0
- package/vendor/hyperframes/dist/skills/hyperframes/references/frame-worker-core.md +80 -0
- package/vendor/hyperframes/dist/skills/hyperframes/references/intent-interview.md +73 -0
- package/vendor/hyperframes/dist/skills/hyperframes/references/pitch-round.md +40 -0
- package/vendor/hyperframes/dist/skills/hyperframes/references/plugin-installation.md +43 -0
- package/vendor/hyperframes/dist/skills/hyperframes/references/production-loop.md +26 -0
- package/vendor/hyperframes/dist/skills/hyperframes/references/review-loop.md +37 -0
- package/vendor/hyperframes/dist/skills/hyperframes/references/route-briefs.md +11 -0
- package/vendor/hyperframes/dist/skills/hyperframes/references/routes/embedded-captions.md +11 -0
- package/vendor/hyperframes/dist/skills/hyperframes/references/routes/faceless-explainer.md +12 -0
- package/vendor/hyperframes/dist/skills/hyperframes/references/routes/general-video.md +12 -0
- package/vendor/hyperframes/dist/skills/hyperframes/references/routes/motion-graphics.md +11 -0
- package/vendor/hyperframes/dist/skills/hyperframes/references/routes/music-to-video.md +12 -0
- package/vendor/hyperframes/dist/skills/hyperframes/references/routes/pr-to-video.md +28 -0
- package/vendor/hyperframes/dist/skills/hyperframes/references/routes/product-launch-video.md +13 -0
- package/vendor/hyperframes/dist/skills/hyperframes/references/routes/remotion-to-hyperframes.md +9 -0
- package/vendor/hyperframes/dist/skills/hyperframes/references/routes/slideshow.md +11 -0
- package/vendor/hyperframes/dist/skills/hyperframes/references/routes/talking-head-recut.md +11 -0
- package/vendor/hyperframes/dist/skills/hyperframes/references/script-format.md +52 -0
- package/vendor/hyperframes/dist/skills/hyperframes/references/skill-lifecycle.md +35 -0
- package/vendor/hyperframes/dist/skills/hyperframes/references/storyboard-format.md +99 -0
- package/vendor/hyperframes/dist/skills/hyperframes/references/subagent-dispatch.md +35 -0
- package/vendor/hyperframes/dist/skills/hyperframes/references/workflow-catalog.md +10 -0
- package/vendor/hyperframes/dist/skills/hyperframes/scripts/lib/frame-packets-core.mjs +194 -0
- package/vendor/hyperframes/dist/skills/hyperframes/scripts/plugin-cli.mjs +88 -0
- package/vendor/hyperframes/dist/skills/hyperframes/scripts/plugin-cli.test.mjs +117 -0
- package/vendor/hyperframes/dist/skills/hyperframes-cli/SKILL.md +189 -0
- package/vendor/hyperframes/dist/skills/hyperframes-cli/references/beats.md +19 -0
- package/vendor/hyperframes/dist/skills/hyperframes-cli/references/cloud.md +163 -0
- package/vendor/hyperframes/dist/skills/hyperframes-cli/references/cloudrun.md +62 -0
- package/vendor/hyperframes/dist/skills/hyperframes-cli/references/compare-and-batch.md +105 -0
- package/vendor/hyperframes/dist/skills/hyperframes-cli/references/doctor-browser.md +57 -0
- package/vendor/hyperframes/dist/skills/hyperframes-cli/references/init-and-scaffold.md +74 -0
- package/vendor/hyperframes/dist/skills/hyperframes-cli/references/lambda.md +185 -0
- package/vendor/hyperframes/dist/skills/hyperframes-cli/references/lint-validate-inspect.md +132 -0
- package/vendor/hyperframes/dist/skills/hyperframes-cli/references/preview-render.md +193 -0
- package/vendor/hyperframes/dist/skills/hyperframes-cli/references/upgrade-info-misc.md +134 -0
- package/vendor/hyperframes/dist/skills/media-use/SKILL.md +100 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/assets/sfx/CREDITS.md +35 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/assets/sfx/chime.mp3 +0 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/assets/sfx/click-soft.mp3 +0 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/assets/sfx/click.mp3 +0 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/assets/sfx/error.mp3 +0 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/assets/sfx/glitch-1.mp3 +0 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/assets/sfx/glitch-2.mp3 +0 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/assets/sfx/glitch-3.mp3 +0 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/assets/sfx/impact-bass-1.mp3 +0 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/assets/sfx/impact-bass-2.mp3 +0 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/assets/sfx/key-press.mp3 +0 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/assets/sfx/manifest.json +97 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/assets/sfx/notification.mp3 +0 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/assets/sfx/ping.mp3 +0 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/assets/sfx/pop.mp3 +0 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/assets/sfx/riser.mp3 +0 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/assets/sfx/sparkle.mp3 +0 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/assets/sfx/typing.mp3 +0 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/assets/sfx/whoosh-cinematic.mp3 +0 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/assets/sfx/whoosh-short.mp3 +0 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/assets/sfx/whoosh.mp3 +0 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/references/bgm.md +76 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/references/captions/authoring.md +163 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/references/captions/motion.md +87 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/references/captions/transcript-handling.md +97 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/references/remove-background.md +143 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/references/requirements.md +29 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/references/sfx.md +42 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/references/transcribe.md +52 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/references/tts-to-captions.md +35 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/references/tts.md +260 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/audio.mjs +311 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/audio.test.mjs +159 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/gemini-pipeline.test.mjs +131 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/heygen-tts.mjs +122 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/heygen-tts.test.mjs +38 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/heygen-voice.mjs +98 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/heygen-voice.test.mjs +233 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/lib/audio-meta.mjs +39 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/lib/audio-meta.test.mjs +136 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/lib/bgm-volume.mjs +4 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/lib/bgm.mjs +257 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/lib/bgm.test.mjs +74 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/lib/concurrency.mjs +14 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/lib/concurrency.test.mjs +41 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/lib/gemini-auth.mjs +43 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/lib/gemini-auth.py +52 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/lib/gemini-auth.test.mjs +86 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/lib/gemini-auth_test.py +90 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/lib/gemini-tts.mjs +122 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/lib/gemini-tts.test.mjs +243 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/lib/heygen.mjs +197 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/lib/heygen.test.mjs +185 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/lib/media-record.mjs +114 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/lib/media-record.test.mjs +205 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/lib/python.mjs +77 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/lib/python.test.mjs +136 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/lib/sfx.mjs +165 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/lib/sfx.test.mjs +121 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/lib/tts.mjs +389 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/lib/tts.spawn.test.mjs +158 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/lib/tts.test.mjs +230 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/lyria-recipe.py +136 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/wait-bgm.mjs +175 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/wait-bgm.test.mjs +108 -0
- package/vendor/hyperframes/dist/skills/media-use/luts/README.md +28 -0
- package/vendor/hyperframes/dist/skills/media-use/luts/index.json +57 -0
- package/vendor/hyperframes/dist/skills/media-use/references/audio.md +20 -0
- package/vendor/hyperframes/dist/skills/media-use/references/grading.md +160 -0
- package/vendor/hyperframes/dist/skills/media-use/references/media-treatment-recipes.md +929 -0
- package/vendor/hyperframes/dist/skills/media-use/references/media-treatments.md +202 -0
- package/vendor/hyperframes/dist/skills/media-use/references/memory.md +37 -0
- package/vendor/hyperframes/dist/skills/media-use/references/meta.md +61 -0
- package/vendor/hyperframes/dist/skills/media-use/references/operations.md +327 -0
- package/vendor/hyperframes/dist/skills/media-use/references/resolve.md +150 -0
- package/vendor/hyperframes/dist/skills/media-use/references/setup-providers.md +80 -0
- package/vendor/hyperframes/dist/skills/media-use/references/telemetry-dashboard.md +49 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/audio-duck.mjs +113 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/compatibility.test.mjs +96 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/dither.mjs +328 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/dither.test.mjs +176 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/eval.mjs +369 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/adopt.mjs +128 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/adopt.test.mjs +95 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/bgm-provider.mjs +20 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/brand-provider.mjs +59 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/bundled-sfx-provider.mjs +119 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/bundled-sfx-provider.test.mjs +139 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/cache.mjs +148 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/candidates.mjs +91 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/candidates.test.mjs +155 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/codex-provider.mjs +161 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/codex-provider.test.mjs +34 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/config-lock.d.mts +3 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/config-lock.mjs +45 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/config-lock.test.mjs +79 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/coverage.test.mjs +136 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/cube-build.mjs +181 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/cube-build.test.mjs +80 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/cube-validate.mjs +198 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/cube-validate.test.mjs +125 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/cutlist.mjs +184 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/cutlist.test.mjs +162 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/duck.mjs +95 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/duck.test.mjs +153 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/error-diffusion.mjs +230 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/error-diffusion.test.mjs +102 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/ff-binaries.mjs +37 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/freeze.mjs +72 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/freeze.test.mjs +138 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/grade-analyzer.mjs +265 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/grade-analyzer.test.mjs +285 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/heygen-cli.mjs +191 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/heygen-cli.test.mjs +301 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/heygen-search.mjs +45 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/heygen-search.test.mjs +49 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/heygen-video-provider.mjs +138 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/heygen-video-provider.test.mjs +435 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/image-provider.mjs +44 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/index-gen.mjs +63 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/local-media-search.mjs +32 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/local-models.mjs +318 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/local-models.test.mjs +220 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/local-run.mjs +78 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/local-run.test.mjs +121 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/logo-provider.mjs +244 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/logo-provider.test.mjs +298 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/ltx-video-provider.mjs +94 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/ltx-video-provider.test.mjs +316 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/lut-preset-provider.mjs +271 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/lut-preset-provider.test.mjs +199 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/manifest.d.mts +19 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/manifest.mjs +279 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/manifest.test.mjs +397 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/match.mjs +47 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/media-fetch.mjs +85 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/media-fetch.test.mjs +197 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/media-home.mjs +20 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/media-home.test.mjs +61 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/media-search.d.mts +9 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/media-search.mjs +107 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/mflux-provider.mjs +128 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/mflux-provider.test.mjs +174 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/misses.mjs +49 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/misses.test.mjs +89 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/npx-sync.mjs +31 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/npx-sync.test.mjs +50 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/parakeet-words.mjs +27 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/parakeet-words.test.mjs +44 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/prefs-store.mjs +180 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/prefs-store.test.mjs +189 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/probe.mjs +41 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/probe.test.mjs +148 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/providers.mjs +5 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/recipe-store.mjs +367 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/recipe-store.test.mjs +367 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/registry.mjs +212 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/registry.test.mjs +262 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/search.mjs +24 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/search.test.mjs +32 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/sfx-provider.mjs +23 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/specs.mjs +132 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/specs.test.mjs +157 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/stats.mjs +117 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/stats.test.mjs +165 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/svg-sanitize.mjs +21 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/telemetry.mjs +210 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/telemetry.test.mjs +437 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/test-home.test.mjs +10 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/transcriptCutFade.mjs +21 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/transcriptCutFade.test.mjs +33 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/tts-local-provider.mjs +94 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/tts-local-provider.test.mjs +72 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/usage.mjs +57 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/usage.test.mjs +54 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/voice-provider.mjs +57 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/voice-provider.test.mjs +46 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/words.mjs +18 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/prefs.mjs +70 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/recipe.mjs +103 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/resolve-plugin.test.mjs +62 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/resolve.mjs +1369 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/transcribe.mjs +194 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/transcribe.test.mjs +112 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/transcript-cut.mjs +270 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/transcript-cut.test.mjs +117 -0
- package/vendor/hyperframes/dist/skills-MJ2J4GEM.js +808 -0
- package/vendor/hyperframes/dist/skillsUpdateCheck-TKTYQN5R.js +26 -0
- package/vendor/hyperframes/dist/slideshow-EJ4IMY6P.js +24 -0
- package/vendor/hyperframes/dist/snapshot-KIVDUUMN.js +875 -0
- package/vendor/hyperframes/dist/src-6YQBJGWR.js +202 -0
- package/vendor/hyperframes/dist/src-PVYUYV3M.js +471 -0
- package/vendor/hyperframes/dist/state-KAXGHF77.js +26 -0
- package/vendor/hyperframes/dist/staticProjectServer-7EU666GS.js +49 -0
- package/vendor/hyperframes/dist/status-YM52BQ6S.js +311 -0
- package/vendor/hyperframes/dist/studio/assets/hyperframes-player-Cp8e_Zst.js +473 -0
- package/vendor/hyperframes/dist/studio/assets/index-BX3KHhGX.js +71 -0
- package/vendor/hyperframes/dist/studio/assets/index-CASEBNy2.js +1 -0
- package/vendor/hyperframes/dist/studio/assets/index-D11atkBt.css +1 -0
- package/vendor/hyperframes/dist/studio/assets/index-DMTt9nTf.js +531 -0
- package/vendor/hyperframes/dist/studio/assets/index-oE1pOdAy.js +399 -0
- package/vendor/hyperframes/dist/studio/chunk-5VSXRGIX.js +948 -0
- package/vendor/hyperframes/dist/studio/chunk-5VSXRGIX.js.map +1 -0
- package/vendor/hyperframes/dist/studio/chunk-7UQWVN52.js +938 -0
- package/vendor/hyperframes/dist/studio/chunk-7UQWVN52.js.map +1 -0
- package/vendor/hyperframes/dist/studio/chunk-EEXSYY5F.js +190 -0
- package/vendor/hyperframes/dist/studio/chunk-EEXSYY5F.js.map +1 -0
- package/vendor/hyperframes/dist/studio/chunk-FOEID72M.js +1441 -0
- package/vendor/hyperframes/dist/studio/chunk-FOEID72M.js.map +1 -0
- package/vendor/hyperframes/dist/studio/chunk-PZ5AY32C.js +10 -0
- package/vendor/hyperframes/dist/studio/chunk-PZ5AY32C.js.map +1 -0
- package/vendor/hyperframes/dist/studio/chunk-TDWGXBUT.js +1103 -0
- package/vendor/hyperframes/dist/studio/chunk-TDWGXBUT.js.map +1 -0
- package/vendor/hyperframes/dist/studio/domEditingLayers-IEVLO54Z.js +47 -0
- package/vendor/hyperframes/dist/studio/domEditingLayers-IEVLO54Z.js.map +1 -0
- package/vendor/hyperframes/dist/studio/favicon.svg +14 -0
- package/vendor/hyperframes/dist/studio/icons/timeline/audio.svg +7 -0
- package/vendor/hyperframes/dist/studio/icons/timeline/captions.svg +5 -0
- package/vendor/hyperframes/dist/studio/icons/timeline/composition.svg +12 -0
- package/vendor/hyperframes/dist/studio/icons/timeline/image.svg +18 -0
- package/vendor/hyperframes/dist/studio/icons/timeline/music.svg +10 -0
- package/vendor/hyperframes/dist/studio/icons/timeline/text.svg +3 -0
- package/vendor/hyperframes/dist/studio/index.css +165 -0
- package/vendor/hyperframes/dist/studio/index.css.map +1 -0
- package/vendor/hyperframes/dist/studio/index.d.ts +4296 -0
- package/vendor/hyperframes/dist/studio/index.html +23 -0
- package/vendor/hyperframes/dist/studio/index.js +99693 -0
- package/vendor/hyperframes/dist/studio/index.js.map +1 -0
- package/vendor/hyperframes/dist/studio/player.d.ts +30 -0
- package/vendor/hyperframes/dist/studio/player.js +10 -0
- package/vendor/hyperframes/dist/studio/player.js.map +1 -0
- package/vendor/hyperframes/dist/studio/styles/tailwind-preset.d.ts +39 -0
- package/vendor/hyperframes/dist/studio/styles/tailwind-preset.js +50 -0
- package/vendor/hyperframes/dist/studio/styles/tailwind-preset.js.map +1 -0
- package/vendor/hyperframes/dist/studio/styles.css +1 -0
- package/vendor/hyperframes/dist/studio/ui.d.ts +296 -0
- package/vendor/hyperframes/dist/studio/ui.js +66 -0
- package/vendor/hyperframes/dist/studio/ui.js.map +1 -0
- package/vendor/hyperframes/dist/studio-api-PNQZRPX5.js +136 -0
- package/vendor/hyperframes/dist/studioSelectionClient-IUUPKUHZ.js +25 -0
- package/vendor/hyperframes/dist/studioServer-UWRBPIOJ.js +1457 -0
- package/vendor/hyperframes/dist/synthesize-K62TIZWI.js +182 -0
- package/vendor/hyperframes/dist/system-EZYZNUFD.js +44 -0
- package/vendor/hyperframes/dist/telemetry-2YC4SGQU.js +144 -0
- package/vendor/hyperframes/dist/telemetry-QMYM4WME.js +95 -0
- package/vendor/hyperframes/dist/templates/_shared/AGENTS.md +107 -0
- package/vendor/hyperframes/dist/templates/_shared/CLAUDE.md +107 -0
- package/vendor/hyperframes/dist/templates/blank/index.html +55 -0
- package/vendor/hyperframes/dist/templates/from-file/index.html +75 -0
- package/vendor/hyperframes/dist/templates/warm-grain/compositions/captions.html +154 -0
- package/vendor/hyperframes/dist/templates/warm-grain/compositions/graphics.html +162 -0
- package/vendor/hyperframes/dist/templates/warm-grain/compositions/intro.html +87 -0
- package/vendor/hyperframes/dist/templates/warm-grain/index.html +264 -0
- package/vendor/hyperframes/dist/templates/warm-grain/registry-item.json +34 -0
- package/vendor/hyperframes/dist/timeline-77Z3BBQM.js +1377 -0
- package/vendor/hyperframes/dist/tokens-OBGTYE4Z.js +92 -0
- package/vendor/hyperframes/dist/transcribe-7NVFHCGA.js +387 -0
- package/vendor/hyperframes/dist/transcribe-BNSJRR4M.js +62 -0
- package/vendor/hyperframes/dist/tts-P3LIPIL5.js +234 -0
- package/vendor/hyperframes/dist/updateCheck-UDWIJ4ZQ.js +39 -0
- package/vendor/hyperframes/dist/upgrade-CT3CPO3E.js +231 -0
- package/vendor/hyperframes/dist/urlDownloader-H6WRI2UE.js +39 -0
- package/vendor/hyperframes/dist/usage-EC3KFUIJ.js +2139 -0
- package/vendor/hyperframes/dist/validate-65QDZJWZ.js +70 -0
- package/vendor/hyperframes/dist/video-FGSGKRSV.js +261 -0
- package/vendor/hyperframes/dist/workspaceBuildCheck-TOLGAI4T.js +133 -0
- package/vendor/hyperframes/package.json +80 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/player/lib/time.ts","../src/player/store/liveTime.ts","../src/player/store/playerStore.ts","../src/player/store/playerStoreDevHandle.ts","../src/player/store/playerStoreSelection.ts","../src/components/dock/panelRegistry.ts","../src/components/dock/dockLayoutSchema.ts","../src/utils/studioUiPreferences.ts","../src/player/components/timelineZoom.ts","../src/player/store/keyframeSlice.ts","../src/player/store/automationSelectionSlice.ts","../src/player/store/editingModeSlice.ts","../src/player/store/timelineFocusState.ts","../src/player/lib/thumbnailPolicy.ts","../src/player/store/thumbnailSlice.ts","../src/player/store/readinessSlice.ts","../src/player/store/rangeSelectionSlice.ts","../src/player/store/timelineResetState.ts","../src/player/store/elementPatchQueue.ts","../src/player/components/Player.tsx","../src/hooks/useMountEffect.ts","../src/hooks/previewVariablesStore.ts"],"sourcesContent":["export const STUDIO_PREVIEW_FPS = 30;\n\nexport const clampToDuration = (time: number, duration: number) =>\n Math.max(0, duration > 0 ? Math.min(duration, time) : time);\n\nexport function formatTime(time: number): string {\n if (!Number.isFinite(time) || time < 0) return \"00:00\";\n const mins = Math.floor(time / 60);\n const secs = Math.floor(time % 60);\n // Zero-pad minutes as well as seconds so every readout is a stable-width\n // MM:SS (e.g. \"00:44\", not \"0:44\"). Minutes past 99 keep their extra digits\n // (\"120:00\"); an hours-style H:MM:SS grouping is applied by callers that need\n // it (see formatTimelineTickLabel), never here.\n return `${mins.toString().padStart(2, \"0\")}:${secs.toString().padStart(2, \"0\")}`;\n}\n\nexport function secondsToFrame(time: number, fps = STUDIO_PREVIEW_FPS): number {\n if (!Number.isFinite(time) || time <= 0) return 0;\n if (!Number.isFinite(fps) || fps <= 0) return 0;\n return Math.round(time * fps);\n}\n\nexport function frameToSeconds(frame: number, fps = STUDIO_PREVIEW_FPS): number {\n if (!Number.isFinite(frame) || frame <= 0) return 0;\n if (!Number.isFinite(fps) || fps <= 0) return 0;\n return frame / fps;\n}\n\nexport function stepFrameTime(time: number, deltaFrames: number, fps = STUDIO_PREVIEW_FPS): number {\n const currentFrame = secondsToFrame(time, fps);\n const nextFrame = Math.max(0, currentFrame + deltaFrames);\n return frameToSeconds(nextFrame, fps);\n}\n\nexport function formatFrameTime(time: number, duration: number, fps = STUDIO_PREVIEW_FPS): string {\n const currentFrame = secondsToFrame(time, fps);\n const totalFrames = secondsToFrame(duration, fps);\n return `${currentFrame}f / ${totalFrames}f`;\n}\n","// ponytail: Playback RAF updates the playhead/time display without per-frame React renders.\ntype TimeListener = (time: number) => void;\nconst timeListeners = new Set<TimeListener>();\nlet latestTime = 0;\nlet seekCount = 0;\n\nexport const liveTime = {\n notify: (time: number) => {\n latestTime = time;\n timeListeners.forEach((listener) => listener(time));\n },\n notifySeek: (time: number) => {\n seekCount += 1;\n liveTime.notify(time);\n },\n seekCount: () => seekCount,\n latest: () => latestTime,\n subscribe: (listener: TimeListener) => {\n timeListeners.add(listener);\n return () => timeListeners.delete(listener);\n },\n};\n","import { create } from \"zustand\";\nimport { attachPlayerStoreDevHandle } from \"./playerStoreDevHandle\";\nimport { nextSelectionSet, revealTargetsSelection } from \"./playerStoreSelection\";\nimport type { MusicBeatAnalysis } from \"@hyperframes/core/beats\";\nimport type { BeatEditState } from \"../../utils/beatEditing\";\nimport type { ClipManifestClip } from \"../lib/playbackTypes\";\nimport {\n readStudioUiPreferences,\n writeStudioUiPreferences,\n type TimelineTimeDisplayMode,\n} from \"../../utils/studioUiPreferences\";\nimport { clampTimelineZoomPercent, computePinnedZoomPercent } from \"../components/timelineZoom\";\nimport { createKeyframeSlice, type KeyframeSlice } from \"./keyframeSlice\";\nimport {\n createAutomationSelectionSlice,\n type AutomationSelectionSlice,\n} from \"./automationSelectionSlice\";\nimport { createEditingModeSlice, type EditingModeSlice } from \"./editingModeSlice\";\nimport { createTimelineFocusRequest, type TimelineFocusRequest } from \"./timelineFocusState\";\nimport { createThumbnailSlice, type ThumbnailSlice } from \"./thumbnailSlice\";\nimport { createPlaybackReadinessSlice } from \"./readinessSlice\";\nimport { createRangeSelectionSlice, type RangeSelectionSlice } from \"./rangeSelectionSlice\";\nimport { createTimelineResetState } from \"./timelineResetState\";\nimport { patchElements, queueElementPatch } from \"./elementPatchQueue\";\nexport type { KeyframeCacheEntry } from \"./keyframeSlice\";\nexport { liveTime } from \"./liveTime\";\nimport { liveTime } from \"./liveTime\";\nexport { createTimelineResetState };\n\nimport type {\n TimelineElement,\n TimelineElementPatch,\n SubCompositionHostState,\n} from \"./timelineElement\";\n\nexport type { TimelineElement, SubCompositionHostState };\nexport type ZoomMode = \"fit\" | \"manual\";\ntype TimelineTool = \"select\" | \"razor\";\n\nexport interface SelectElementOptions {\n preserveSet?: boolean;\n}\n\nfunction resolveElementSelection(\n ids: Iterable<string>,\n anchor?: string | null,\n): { selectedElementIds: Set<string>; selectedElementId: string | null } {\n const selectedElementIds = new Set(ids);\n if (selectedElementIds.size === 0) {\n return { selectedElementIds, selectedElementId: null };\n }\n if (anchor && selectedElementIds.has(anchor)) {\n return { selectedElementIds, selectedElementId: anchor };\n }\n return {\n selectedElementIds,\n selectedElementId: selectedElementIds.values().next().value ?? null,\n };\n}\n\ntype PlayerStoreSlices = KeyframeSlice &\n AutomationSelectionSlice &\n ThumbnailSlice &\n EditingModeSlice &\n ReturnType<typeof createPlaybackReadinessSlice> &\n RangeSelectionSlice;\ninterface PlayerState extends PlayerStoreSlices {\n isPlaying: boolean;\n currentTime: number;\n duration: number;\n /** Increments exactly once when the Studio switches to a different project. */\n timelineSessionEpoch: number;\n /** Project owning the current timeline session; null outside a project-scoped reset. */\n timelineProjectId: string | null;\n /** True while a beat dot is being dragged — hides the playhead guideline. */\n beatDragging: boolean;\n elements: TimelineElement[];\n selectedElementId: string | null;\n playbackRate: number;\n audioMuted: boolean;\n audioVolume: number;\n loopEnabled: boolean;\n /** Timeline zoom: 'fit' auto-scales to viewport, 'manual' uses manualZoomPercent */\n zoomMode: ZoomMode;\n /** Timeline zoom percent relative to the fit width when in manual mode */\n manualZoomPercent: number;\n userZoomCount: number;\n /**\n * Bumped on every live z-index edit (handleDomZIndexReorderCommit apply AND\n * rollback). Flashless z commits (skipReload) never reload the iframe or\n * bump refreshKey, so DOM-derived views (the Layers panel's z-sorted tree)\n * subscribe to this to re-read the live DOM while playback is paused.\n */\n zEditVersion: number;\n /** Work-area in-point (seconds). When set, loop starts here and A jumps here. */\n inPoint: number | null;\n /** Work-area out-point (seconds). When set, loop ends here and E jumps here. */\n outPoint: number | null;\n\n activeTool: TimelineTool;\n setActiveTool: (tool: TimelineTool) => void;\n selectLeftward: () => void;\n selectRightward: () => void;\n\n /** Tween-relative percentage of the last-clicked keyframe diamond. Operations\n * (drag, resize, rotate) target this instead of recomputing from playhead. */\n activeKeyframePct: number | null;\n setActiveKeyframePct: (pct: number | null) => void;\n\n /** Multi-select: additional selected elements beyond selectedElementId. */\n selectedElementIds: Set<string>;\n clearSelectedElementIds: () => void;\n /** Replace the whole multi-selection at once (marquee live updates). */\n setSelectedElementIds: (ids: Set<string>) => void;\n /** Timeline magnet toggle — when false, clip drags/trims/drops never snap. */\n timelineSnapEnabled: boolean;\n setTimelineSnapEnabled: (enabled: boolean) => void;\n /** Keeps the main track gapless on delete; distinct from the magnet above. */\n rippleEditEnabled: boolean;\n setRippleEditEnabled: (enabled: boolean) => void;\n /** Transport + ruler readout: timecode (\"time\") or frame number (\"frame\"). */\n timeDisplayMode: TimelineTimeDisplayMode;\n setTimeDisplayMode: (mode: TimelineTimeDisplayMode) => void;\n /** Pin the timeline zoom to its current scale before a duration change, so\n * it stops rescaling every clip. No-op once already pinned. */\n pinTimelineZoom: (currentPixelsPerSecond: number, fitPixelsPerSecond: number) => void;\n /** The timeline's live pixels-per-second + fit basis, published by <Timeline>. */\n timelinePps: number;\n timelineFitPps: number;\n setTimelineScale: (pps: number, fitPps: number) => void;\n setSelection: (ids: Iterable<string>, anchor?: string | null) => void;\n addSelectedElementId: (id: string) => void;\n toggleSelectedElementId: (id: string) => void;\n clearSelection: () => void;\n\n setIsPlaying: (playing: boolean) => void;\n setCurrentTime: (time: number) => void;\n setDuration: (duration: number) => void;\n setPlaybackRate: (rate: number) => void;\n setAudioMuted: (muted: boolean) => void;\n setAudioVolume: (volume: number) => void;\n setLoopEnabled: (enabled: boolean) => void;\n setBeatDragging: (dragging: boolean) => void;\n setElements: (elements: TimelineElement[]) => void;\n setSelectedElementId: (id: string | null, options?: SelectElementOptions) => void;\n /** Move the selection anchor within an active multi-selection without collapsing it. */\n setSelectionAnchor: (id: string | null) => void;\n updateElement: (elementId: string, updates: TimelineElementPatch) => void;\n setZoomMode: (mode: ZoomMode) => void;\n setManualZoomPercent: (percent: number) => void;\n bumpZEditVersion: () => void;\n setInPoint: (time: number | null) => void;\n setOutPoint: (time: number | null) => void;\n /** Owns the hard project boundary; repeated calls for one project are no-ops. */\n beginTimelineSession: (projectId: string) => void;\n /** Clears project data without creating a new hard-project session. */\n reset: () => void;\n\n /** Request a seek from outside the player loop (e.g. Layers panel);\n * useTimelinePlayer subscribes and calls adapter.seek() + liveTime.notify(). */\n requestedSeekTime: number | null;\n requestSeek: (time: number) => void;\n clearSeekRequest: () => void;\n\n /** Request the transport start or stop from outside the player loop: the FX\n * rack starts playback to audition a preset (silent while paused) and\n * restores the playhead on leave, without costing the author their place.\n * A nonce, not a bare boolean, so two hovers in a row both register. */\n playbackRequest: { playing: boolean; returnTo: number | null; nonce: number } | null;\n requestPlayback: (playing: boolean, returnTo?: number | null) => void;\n clearPlaybackRequest: () => void;\n\n /**\n * Request the timeline to scroll a clip into view (e.g. clicking an\n * already-added asset card in the sidebar). Consumed and cleared by\n * useTimelineRevealClip. The nonce makes repeat requests for the same\n * clip observable so a second click re-reveals after the user scrolls away.\n */\n clipRevealRequest: { elementId: string; nonce: number } | null;\n requestClipReveal: (elementId: string) => void;\n clearClipRevealRequest: () => void;\n\n timelineFocus: TimelineFocusRequest | null;\n timelineFocusNonce: number;\n requestTimelineFocus: (id: string) => void;\n clearTimelineFocus: (nonce: number) => void;\n\n lintFindingsByElement: Map<string, { count: number; messages: string[] }>;\n setLintFindingsByElement: (map: Map<string, { count: number; messages: string[] }>) => void;\n\n beatAnalysis: MusicBeatAnalysis | null;\n setBeatAnalysis: (analysis: MusicBeatAnalysis | null) => void;\n\n /** User edits (add/move/delete) layered over the detected beat grid. */\n beatEdits: BeatEditState | null;\n setBeatEdits: (edits: BeatEditState | null) => void;\n /** Undo/redo stacks for beat edits (in-memory, session-only). */\n beatUndo: BeatHistoryEntry[];\n beatRedo: BeatHistoryEntry[];\n commitBeatEdits: (next: BeatEditState | null, label: string) => void;\n undoBeatEdits: () => string | null;\n redoBeatEdits: () => string | null;\n resetBeatHistory: () => void;\n beatPersist: (() => void) | null;\n setBeatPersist: (fn: (() => void) | null) => void;\n\n clipManifest: ClipManifestClip[] | null;\n setClipManifest: (clips: ClipManifestClip[] | null) => void;\n clipParentMap: Map<string, string>;\n setClipParentMap: (map: Map<string, string>) => void;\n /**\n * Sub-composition DOM descendants (groups + their children) that have no\n * `data-start`, so they're absent from the clip manifest/tree. Collected\n * studio-side from the live preview so the timeline can expand a sub-comp row\n * to show its DOM-only children. Keeps the manifest lean (timed clips only).\n */\n domClipChildren: DomClipChild[];\n setDomClipChildren: (children: DomClipChild[]) => void;\n /**\n * Host-element state for every id'd element inside a sub-composition, keyed by\n * dom id. Collected from the live preview because it is the only place that\n * sees it: these elements are filtered out of `elements` before the flat store\n * is built, and the clip manifest carries timing, not attributes.\n */\n subCompositionHostState: Map<string, SubCompositionHostState>;\n setSubCompositionHostState: (state: Map<string, SubCompositionHostState>) => void;\n}\n\n/** A sub-comp DOM-only timeline child (no data-start) and its nesting context. */\nexport interface DomClipChild {\n id: string;\n parentId: string;\n /** The manifest sub-comp host clip id this descendant ultimately lives under. */\n hostId: string;\n label: string;\n stackingContextId: string;\n /**\n * The child's audio-group state, read off its live element during the DOM\n * walk — the only place that sees it. A sub-composition can declare a group\n * and its members entirely within itself, and those members never reach the\n * flat store, so an expanded child has no twin to inherit membership from.\n */\n audioGroup?: string;\n audioGroupLabel?: string;\n audioGroupVolume?: number;\n audioGroupHidden?: boolean;\n audioGroupFxChain?: string;\n /** The group element's `data-automation`, mirrored the same way. */\n audioGroupAutomation?: string;\n}\n\ninterface BeatHistoryEntry {\n restore: BeatEditState | null;\n at: number;\n label: string;\n}\n\n/** Selects like the marquee: the primary first, so its resets run, then the whole set. */\nfunction selectAroundPlayhead(\n state: PlayerState,\n keep: (el: TimelineElement, playhead: number) => boolean,\n): void {\n const playhead = state.isPlaying ? liveTime.latest() : state.currentTime;\n const ids = state.elements.filter((el) => keep(el, playhead)).map((el) => el.key ?? el.id);\n state.setSelectedElementId(ids[0] ?? null);\n state.setSelectedElementIds(new Set(ids));\n}\n\nexport const usePlayerStore = create<PlayerState>((set, get) => ({\n isPlaying: false,\n currentTime: 0,\n duration: 0,\n timelineSessionEpoch: 0,\n timelineProjectId: null,\n beatDragging: false,\n elements: [],\n selectedElementId: null,\n playbackRate: readStudioUiPreferences().playbackRate ?? 1,\n audioMuted: readStudioUiPreferences().audioMuted ?? false,\n audioVolume: readStudioUiPreferences().audioVolume ?? 1,\n loopEnabled: false,\n zoomMode: \"fit\",\n manualZoomPercent: 100,\n userZoomCount: 0,\n zEditVersion: 0,\n timelinePps: 100,\n timelineFitPps: 100,\n inPoint: null,\n outPoint: null,\n\n activeTool: \"select\",\n setActiveTool: (tool) => set({ activeTool: tool }),\n selectLeftward: () => selectAroundPlayhead(get(), (el, t) => el.start < t),\n selectRightward: () => selectAroundPlayhead(get(), (el, t) => el.start + el.duration > t),\n\n ...createKeyframeSlice(set, () => ({\n timelineProjectId: get().timelineProjectId,\n timelineSessionEpoch: get().timelineSessionEpoch,\n })),\n ...createThumbnailSlice(set),\n\n ...createAutomationSelectionSlice(set),\n ...createEditingModeSlice(set),\n ...createRangeSelectionSlice(),\n ...createPlaybackReadinessSlice(set),\n\n activeKeyframePct: null,\n setActiveKeyframePct: (pct) => set({ activeKeyframePct: pct }),\n\n selectedElementIds: new Set<string>(),\n setSelection: (ids, anchor) => set(resolveElementSelection(ids, anchor)),\n addSelectedElementId: (id: string) =>\n set((s) => {\n const next = new Set(s.selectedElementIds);\n next.add(id);\n return resolveElementSelection(next, s.selectedElementId);\n }),\n toggleSelectedElementId: (id: string) =>\n set((s) => {\n const next = new Set(s.selectedElementIds);\n if (next.has(id)) next.delete(id);\n else next.add(id);\n return resolveElementSelection(next, s.selectedElementId);\n }),\n clearSelection: () => set({ selectedElementId: null, selectedElementIds: new Set() }),\n\n requestedSeekTime: null,\n requestSeek: (time) => set({ requestedSeekTime: time }),\n clearSeekRequest: () => set({ requestedSeekTime: null }),\n\n playbackRequest: null,\n requestPlayback: (playing, returnTo = null) =>\n set((s) => ({\n playbackRequest: { playing, returnTo, nonce: (s.playbackRequest?.nonce ?? 0) + 1 },\n })),\n clearPlaybackRequest: () => set({ playbackRequest: null }),\n\n clipRevealRequest: null,\n requestClipReveal: (elementId) =>\n set((s) => ({\n clipRevealRequest: { elementId, nonce: (s.clipRevealRequest?.nonce ?? 0) + 1 },\n })),\n clearClipRevealRequest: () => set({ clipRevealRequest: null }),\n\n timelineFocus: null,\n timelineFocusNonce: 0,\n requestTimelineFocus: (id) =>\n set((s) => {\n const nonce = s.timelineFocusNonce + 1;\n return {\n timelineFocusNonce: nonce,\n timelineFocus: createTimelineFocusRequest(\n id,\n s.timelineProjectId,\n s.timelineSessionEpoch,\n nonce,\n ),\n };\n }),\n clearTimelineFocus: (nonce) =>\n set((s) => (s.timelineFocus?.nonce === nonce ? { timelineFocus: null } : s)),\n\n lintFindingsByElement: new Map(),\n setLintFindingsByElement: (map) => set({ lintFindingsByElement: map }),\n\n beatAnalysis: null,\n setBeatAnalysis: (analysis) => set({ beatAnalysis: analysis }),\n\n beatEdits: null,\n setBeatEdits: (edits) => set({ beatEdits: edits }),\n\n beatUndo: [],\n beatRedo: [],\n beatPersist: null,\n setBeatPersist: (fn) => set({ beatPersist: fn }),\n commitBeatEdits: (next, label) => {\n set((s) => ({\n beatEdits: next,\n beatUndo: [...s.beatUndo, { restore: s.beatEdits, at: Date.now(), label }],\n beatRedo: [],\n }));\n get().beatPersist?.();\n },\n undoBeatEdits: () => {\n const s = get();\n const entry = s.beatUndo[s.beatUndo.length - 1];\n if (!entry) return null;\n set({\n beatEdits: entry.restore,\n beatUndo: s.beatUndo.slice(0, -1),\n beatRedo: [...s.beatRedo, { restore: s.beatEdits, at: entry.at, label: entry.label }],\n });\n get().beatPersist?.();\n return entry.label;\n },\n resetBeatHistory: () => set({ beatUndo: [], beatRedo: [] }),\n redoBeatEdits: () => {\n const s = get();\n const entry = s.beatRedo[s.beatRedo.length - 1];\n if (!entry) return null;\n set({\n beatEdits: entry.restore,\n beatRedo: s.beatRedo.slice(0, -1),\n beatUndo: [...s.beatUndo, { restore: s.beatEdits, at: entry.at, label: entry.label }],\n });\n get().beatPersist?.();\n return entry.label;\n },\n\n clipManifest: null,\n setClipManifest: (clips) => set({ clipManifest: clips }),\n clipParentMap: new Map(),\n setClipParentMap: (map) => set({ clipParentMap: map }),\n domClipChildren: [],\n setDomClipChildren: (children) => set({ domClipChildren: children }),\n subCompositionHostState: new Map(),\n setSubCompositionHostState: (state) => set({ subCompositionHostState: state }),\n\n setIsPlaying: (playing) => {\n if (get().isPlaying === playing) return;\n set({ isPlaying: playing });\n },\n setPlaybackRate: (rate) => {\n writeStudioUiPreferences({ playbackRate: rate });\n set({ playbackRate: rate });\n },\n setAudioMuted: (muted) => {\n writeStudioUiPreferences({ audioMuted: muted });\n set({ audioMuted: muted });\n },\n setAudioVolume: (volume) => {\n const nextVolume = Number.isFinite(volume) ? Math.max(0, Math.min(1, volume)) : 1;\n writeStudioUiPreferences({ audioVolume: nextVolume });\n set({ audioVolume: nextVolume });\n },\n setLoopEnabled: (enabled) => set({ loopEnabled: enabled }),\n setZoomMode: (mode) => set({ zoomMode: mode }),\n clearSelectedElementIds: () => set({ selectedElementIds: new Set() }),\n setSelectedElementIds: (ids: Set<string>) => set({ selectedElementIds: new Set(ids) }),\n timelineSnapEnabled: readStudioUiPreferences().timelineSnapEnabled ?? true,\n setTimelineSnapEnabled: (enabled) => {\n writeStudioUiPreferences({ timelineSnapEnabled: enabled });\n set({ timelineSnapEnabled: enabled });\n },\n rippleEditEnabled: readStudioUiPreferences().rippleEditEnabled ?? true, // default on\n setRippleEditEnabled: (enabled) => {\n writeStudioUiPreferences({ rippleEditEnabled: enabled });\n set({ rippleEditEnabled: enabled });\n },\n timeDisplayMode: readStudioUiPreferences().timeDisplayMode ?? \"time\",\n setTimeDisplayMode: (mode) => {\n writeStudioUiPreferences({ timeDisplayMode: mode });\n set({ timeDisplayMode: mode });\n },\n pinTimelineZoom: (currentPixelsPerSecond, fitPixelsPerSecond) =>\n set((s) => {\n // Already pinned (or the user manually zoomed) — never clobber that.\n if (s.zoomMode === \"manual\") return {};\n const percent = computePinnedZoomPercent(currentPixelsPerSecond, fitPixelsPerSecond);\n writeStudioUiPreferences({\n timelineZoomMode: \"manual\",\n timelineManualZoomPercent: percent,\n });\n return { zoomMode: \"manual\", manualZoomPercent: percent };\n }),\n setTimelineScale: (pps, fitPps) => {\n const state = get();\n if (state.timelinePps === pps && state.timelineFitPps === fitPps) return;\n set({ timelinePps: pps, timelineFitPps: fitPps });\n },\n setInPoint: (time) =>\n set((state) => {\n const t = time !== null && Number.isFinite(time) ? time : null;\n return {\n inPoint: t,\n outPoint:\n t !== null && state.outPoint !== null && t >= state.outPoint ? null : state.outPoint,\n // Setting a work-area marker implies the user wants playback bounded by it.\n // Auto-enable loop so the playhead respects the marker instead of running past.\n loopEnabled: t !== null ? true : state.loopEnabled,\n };\n }),\n setOutPoint: (time) =>\n set((state) => {\n const t = time !== null && Number.isFinite(time) ? time : null;\n return {\n outPoint: t,\n inPoint: t !== null && state.inPoint !== null && t <= state.inPoint ? null : state.inPoint,\n loopEnabled: t !== null ? true : state.loopEnabled,\n };\n }),\n setManualZoomPercent: (percent) =>\n set((state) => ({\n manualZoomPercent: clampTimelineZoomPercent(percent, state.timelineFitPps),\n })),\n bumpZEditVersion: () => set((state) => ({ zEditVersion: state.zEditVersion + 1 })),\n setCurrentTime: (time) => set({ currentTime: Number.isFinite(time) ? time : 0 }),\n setDuration: (duration) => set({ duration: Number.isFinite(duration) ? duration : 0 }),\n setBeatDragging: (dragging) => set({ beatDragging: dragging }),\n setElements: (elements) => set({ elements }),\n // A genuine single selection: always collapse the set to just this element. User\n // intent (timeline click, preview click via applyDomSelection) flows here; DOM sync\n // echoes that must preserve a group go through setSelectionAnchor instead.\n setSelectedElementId: (id, options) =>\n set((s) => {\n const selectedElementIds = nextSelectionSet(s.selectedElementIds, id, options?.preserveSet);\n // Selecting a different element drops any active keyframe selection — otherwise\n // a stale activeKeyframePct from a prior diamond click would force the next drag\n // to \"modify\" a keyframe on the new element. A diamond click sets the pct AFTER\n // calling setSelectedElementId, so this never clobbers a genuine keyframe select.\n // A reveal request survives the selection it is FOR. `openClipFxRack`\n // raises the request and then selects the clip asynchronously, so the\n // selection lands afterwards and used to clear the very request that\n // caused it — the panel then read null and the section never opened.\n // Any OTHER selection still drops it: a request aimed elsewhere is stale.\n //\n // Compared across the ID-SPACE BOUNDARY, which is why this needs saying:\n // a request carries the BARE dom id (`runtimeAudioId`, because the panel\n // and the runtime speak that), while this store's ids are\n // `sourceFile#domId`. A direct `===` was silently never true — the exact\n // shape of failure the id-space split produces.\n const revealSurvives = revealTargetsSelection(s.revealedAudioFxTarget, id);\n return id !== s.selectedElementId\n ? {\n selectedElementId: id,\n selectedElementIds,\n activeKeyframePct: null,\n motionPathArmed: false,\n focusedEaseSegment: null,\n ...(revealSurvives ? {} : { revealedAudioFxTarget: null }),\n }\n : { selectedElementId: id, selectedElementIds };\n }),\n // Move the anchor within an active multi-selection WITHOUT collapsing it — used by\n // DOM->store sync echoes while a group gesture re-patches the preview. A non-member\n // id is treated as a genuine new single selection.\n setSelectionAnchor: (id) =>\n set((s) => {\n if (id != null && s.selectedElementIds.size > 1 && s.selectedElementIds.has(id)) {\n return {\n selectedElementId: id,\n focusedEaseSegment: id === s.selectedElementId ? s.focusedEaseSegment : null,\n };\n }\n return {\n selectedElementId: id,\n selectedElementIds: id ? new Set([id]) : new Set<string>(),\n focusedEaseSegment: id === s.selectedElementId ? s.focusedEaseSegment : null,\n };\n }),\n updateElement: (elementId, updates) => {\n if (queueElementPatch(elementId, updates)) return;\n set((state) => ({ elements: patchElements(state.elements, new Map([[elementId, updates]])) }));\n },\n // UI preferences intentionally survive reset. So do timelineSessionEpoch and\n // focusedEaseRequestNonce: the epoch advances only when project identity\n // changes, while a monotonic nonce prevents collisions with stale consumers.\n beginTimelineSession: (projectId) =>\n set((state) => {\n if (state.timelineProjectId === projectId) return state;\n return {\n ...createTimelineResetState(),\n timelineSessionEpoch: state.timelineSessionEpoch + 1,\n timelineProjectId: projectId,\n };\n }),\n reset: () => set(createTimelineResetState()),\n}));\n\nattachPlayerStoreDevHandle(usePlayerStore);\n\nexport function isPreviewBooted(projectId: string): boolean {\n const { previewBooted, timelineProjectId } = usePlayerStore.getState();\n return previewBooted && timelineProjectId === projectId;\n}\n\n/** True once projectId's live preview has booted, false once another project replaces it.\n * Open-time work the first frame does not need (server parses, lint) waits on it. */\nexport function whenPreviewBooted(projectId: string): Promise<boolean> {\n const openedFrom = usePlayerStore.getState().timelineProjectId;\n let seen = false;\n const settle = (state: PlayerState): boolean | null => {\n if (state.timelineProjectId === projectId) {\n seen = true;\n return state.previewBooted ? true : null;\n }\n return seen || state.timelineProjectId !== openedFrom ? false : null;\n };\n return new Promise((resolve) => {\n const now = settle(usePlayerStore.getState());\n if (now !== null) return resolve(now);\n const stop = usePlayerStore.subscribe((state) => {\n const result = settle(state);\n if (result === null) return;\n stop();\n resolve(result);\n });\n });\n}\n","/**\n * A console handle on the live store, dev builds only.\n *\n * Split out of `playerStore.ts` to keep it under the studio's 600-line cap. The\n * dev check is its own function because `import.meta.env` is absent under\n * Turbopack and other non-Vite bundlers, where reading it throws.\n */\n\nfunction isDevBuild(): boolean {\n try {\n return import.meta.env.DEV === true;\n } catch {\n return false;\n }\n}\n\n/** Expose `store` as `window.__playerStore` for dumping live Studio state\n * during bug-bash reproduction. No-op outside a dev build or a browser. */\nexport function attachPlayerStoreDevHandle(store: unknown): void {\n if (!isDevBuild() || typeof window === \"undefined\") return;\n (window as unknown as { __playerStore?: unknown }).__playerStore = store;\n}\n","/**\n * Selection-set arithmetic for the player store, and the reveal request's\n * cross-id-space match.\n *\n * Its own module so `playerStore.ts` stays under the studio's 600-line cap.\n */\n\nimport { splitTimelineElementKey } from \"../lib/timelineElementHelpers\";\n\n/**\n * The id set a selection change leaves behind.\n *\n * `preserveSet` means \"keep the multi-selection if this id is already in it\" —\n * a DOM→store echo re-announcing a member must not collapse the set — and\n * anything else is a genuine single selection.\n */\nexport function nextSelectionSet(\n current: ReadonlySet<string>,\n id: string | null,\n preserveSet: boolean | undefined,\n): Set<string> {\n if (preserveSet) return id && current.has(id) ? new Set(current) : new Set<string>();\n return id ? new Set([id]) : new Set<string>();\n}\n\n/**\n * Is a pending reveal request aimed at the element being selected?\n *\n * Compared across the ID-SPACE BOUNDARY, which is why it is a named function:\n * a request carries the BARE dom id (`runtimeAudioId` — the panel and the\n * runtime speak that), while the store's ids are `sourceFile#domId`. A direct\n * `===` between the two is silently never true, which is the exact shape of\n * failure the split produces and how the reveal came to be dead.\n */\nexport function revealTargetsSelection(\n request: { elementKey: string } | null,\n id: string | null,\n): boolean {\n if (!request || id === null) return false;\n return request.elementKey === splitTimelineElementKey(id).domId;\n}\n","import type { Direction } from \"dockview-react\";\n\nexport const PANEL_IDS = [\n \"preview\",\n \"timeline\",\n \"compositions\",\n \"assets\",\n \"code\",\n \"catalog\",\n \"design\",\n \"layers\",\n \"renders\",\n \"variables\",\n \"slideshow\",\n] as const;\n\nexport type PanelId = (typeof PANEL_IDS)[number];\nexport type PanelZone = \"left\" | \"center\" | \"right\";\n\nexport interface PanelDefinition {\n title: string;\n zone: PanelZone;\n /** Where Window > <panel> puts it when it has no saved place: next to `near`. */\n reopen: { near: PanelId; direction: Direction };\n /** Content stays mounted while its tab is hidden (the preview iframe must not reload). */\n keepMounted?: true;\n}\n\nexport const PANEL_DEFINITIONS = {\n preview: {\n title: \"Preview\",\n zone: \"center\",\n reopen: { near: \"timeline\", direction: \"above\" },\n keepMounted: true,\n },\n timeline: {\n title: \"Timeline\",\n zone: \"center\",\n reopen: { near: \"preview\", direction: \"below\" },\n keepMounted: true,\n },\n compositions: {\n title: \"Compositions\",\n zone: \"left\",\n reopen: { near: \"preview\", direction: \"left\" },\n },\n assets: { title: \"Assets\", zone: \"left\", reopen: { near: \"compositions\", direction: \"within\" } },\n code: { title: \"Code\", zone: \"left\", reopen: { near: \"compositions\", direction: \"within\" } },\n catalog: {\n title: \"Catalog\",\n zone: \"left\",\n reopen: { near: \"compositions\", direction: \"within\" },\n },\n design: { title: \"Design\", zone: \"right\", reopen: { near: \"preview\", direction: \"right\" } },\n layers: { title: \"Layers\", zone: \"right\", reopen: { near: \"design\", direction: \"within\" } },\n renders: { title: \"Renders\", zone: \"right\", reopen: { near: \"design\", direction: \"within\" } },\n variables: { title: \"Variables\", zone: \"right\", reopen: { near: \"design\", direction: \"within\" } },\n slideshow: { title: \"Slideshow\", zone: \"right\", reopen: { near: \"design\", direction: \"within\" } },\n} as const satisfies Record<PanelId, PanelDefinition>;\n\nexport function isPanelId(value: unknown): value is PanelId {\n return typeof value === \"string\" && (PANEL_IDS as readonly string[]).includes(value);\n}\n\nexport function panelsInZone(zone: PanelZone): PanelId[] {\n return PANEL_IDS.filter((id) => PANEL_DEFINITIONS[id].zone === zone);\n}\n","import type { SerializedDockview } from \"dockview-react\";\nimport { PANEL_IDS, isPanelId, type PanelId } from \"./panelRegistry\";\n\nexport const DOCK_PANEL_COMPONENT = \"panel\";\n\nfunction isRecord(value: unknown): value is Record<string, unknown> {\n return typeof value === \"object\" && value !== null && !Array.isArray(value);\n}\n\nfunction collectLeafViews(node: unknown, into: unknown[]): boolean {\n if (!isRecord(node)) return false;\n if (node.type === \"leaf\") {\n if (!isRecord(node.data) || !Array.isArray(node.data.views)) return false;\n into.push(...node.data.views);\n return true;\n }\n if (node.type === \"branch\") {\n return Array.isArray(node.data) && node.data.every((child) => collectLeafViews(child, into));\n }\n return false;\n}\n\nfunction hasGridShape(grid: Record<string, unknown>): boolean {\n const oriented = grid.orientation === \"HORIZONTAL\" || grid.orientation === \"VERTICAL\";\n return oriented && typeof grid.width === \"number\" && typeof grid.height === \"number\";\n}\n\nfunction panelsAreRegistered(\n panels: Record<string, unknown>,\n allowed: readonly PanelId[],\n): boolean {\n const ids = Object.keys(panels);\n return (\n ids.length > 0 &&\n ids.every((id) => {\n const state = panels[id];\n return (\n isPanelId(id) &&\n allowed.includes(id) &&\n isRecord(state) &&\n state.id === id &&\n state.contentComponent === DOCK_PANEL_COMPONENT\n );\n })\n );\n}\n\nfunction collectFloatingViews(floating: unknown, into: unknown[]): boolean {\n if (floating === undefined) return true;\n if (!Array.isArray(floating)) return false;\n return floating.every((group) => {\n if (!isRecord(group) || !isRecord(group.data) || !Array.isArray(group.data.views)) return false;\n into.push(...group.data.views);\n return true;\n });\n}\n\n/** Parses a stored layout at the trust boundary; null (stale or foreign shape) means use the default preset. */\nexport function parseDockLayout(\n value: unknown,\n allowed: readonly PanelId[] = PANEL_IDS,\n): SerializedDockview | null {\n if (!isRecord(value) || !isRecord(value.grid) || !isRecord(value.panels)) return null;\n const { grid, panels } = value;\n if (!hasGridShape(grid) || !panelsAreRegistered(panels, allowed)) return null;\n\n const views: unknown[] = [];\n if (!collectLeafViews(grid.root, views)) return null;\n if (!collectFloatingViews(value.floatingGroups, views)) return null;\n const everyViewIsAPanel = views.every((id) => typeof id === \"string\" && id in panels);\n const everyPanelIsPlaced = Object.keys(panels).every((id) => views.includes(id));\n return everyViewIsAPanel && everyPanelIsPlaced ? (value as unknown as SerializedDockview) : null;\n}\n","import type { SerializedDockview } from \"dockview-react\";\nimport { parseDockLayout } from \"../components/dock/dockLayoutSchema\";\n\nexport type TimelineTimeDisplayMode = \"time\" | \"frame\";\nexport type StudioTheme = \"light\" | \"dark\";\n\nexport interface StudioUiPreferences {\n timelineVisible?: boolean;\n playbackRate?: number;\n audioMuted?: boolean;\n audioVolume?: number;\n thumbnailMode?: \"adaptive\" | \"hidden\";\n recentBlocks?: string[];\n snapEnabled?: boolean;\n gridVisible?: boolean;\n rulerVisible?: boolean;\n safeMarginsVisible?: boolean;\n gridSpacing?: number;\n snapToGrid?: boolean;\n /** Timeline magnet: snap clip drags/trims/drops to playhead, clip edges, and beats. */\n timelineSnapEnabled?: boolean;\n /** Audio level meters at the timeline's right edge; hidden unless enabled here. */\n audioMetersVisible?: boolean;\n /** Keeps the main track gapless: deleting a clip closes the gap. Distinct\n * from `timelineSnapEnabled` (\"Magnet\", drag/trim snapping). */\n rippleEditEnabled?: boolean;\n /** Transport + ruler readout mode: timecode or frame number. */\n timeDisplayMode?: TimelineTimeDisplayMode;\n /**\n * Timeline zoom mode. Persisted so a zoom PINNED on the first edit survives the\n * post-edit iframe reload — otherwise the store reset to \"fit\" and the duration\n * change rescaled every clip (the blink-fix's rescale symptom).\n */\n timelineZoomMode?: \"fit\" | \"manual\";\n /** Manual timeline zoom percent, paired with `timelineZoomMode: \"manual\"`. */\n timelineManualZoomPercent?: number;\n /**\n * Expose Studio's editing capabilities to an agentic browser as WebMCP tools.\n * Absent means on: the browser still gates every actual call behind its own\n * permission prompt, so \"registered\" is not \"reachable without consent\".\n * Changes take effect on the next Studio reload because registration is\n * intentionally scoped to one mount.\n */\n agentToolsEnabled?: boolean;\n theme?: StudioTheme;\n /** The dock's serialized panel tree; parsed by `parseDockLayout` on read. */\n dockLayout?: SerializedDockview;\n linkedSelectionEnabled?: boolean;\n syncIndicatorsVisible?: boolean;\n}\n\nconst STUDIO_UI_PREFERENCES_KEY = \"hf-studio-ui-preferences\";\n\nfunction isRecord(value: unknown): value is Record<string, unknown> {\n return typeof value === \"object\" && value !== null;\n}\n\nfunction getBrowserStorage(): Storage | null {\n if (typeof window === \"undefined\") return null;\n try {\n return window.localStorage;\n } catch {\n return null;\n }\n}\n\nfunction storageKeyFor(projectId: string | null, key: string): string {\n return projectId ? `${key}:${projectId}` : key;\n}\n\n// fallow-ignore-next-line complexity\nfunction readStorage(storage: Storage | null, key: string): StudioUiPreferences {\n if (!storage) return {};\n try {\n const raw = storage.getItem(key);\n if (!raw) return {};\n const parsed: unknown = JSON.parse(raw);\n if (!isRecord(parsed)) return {};\n\n const preferences: StudioUiPreferences = {};\n if (typeof parsed.timelineVisible === \"boolean\") {\n preferences.timelineVisible = parsed.timelineVisible;\n }\n if (typeof parsed.playbackRate === \"number\" && Number.isFinite(parsed.playbackRate)) {\n preferences.playbackRate = parsed.playbackRate;\n }\n if (typeof parsed.audioMuted === \"boolean\") {\n preferences.audioMuted = parsed.audioMuted;\n }\n if (\n typeof parsed.audioVolume === \"number\" &&\n Number.isFinite(parsed.audioVolume) &&\n parsed.audioVolume >= 0 &&\n parsed.audioVolume <= 1\n ) {\n preferences.audioVolume = parsed.audioVolume;\n }\n if (parsed.thumbnailMode === \"adaptive\" || parsed.thumbnailMode === \"hidden\") {\n preferences.thumbnailMode = parsed.thumbnailMode;\n } else if (typeof parsed.thumbnailsEnabled === \"boolean\") {\n preferences.thumbnailMode = parsed.thumbnailsEnabled ? \"adaptive\" : \"hidden\";\n }\n if (Array.isArray(parsed.recentBlocks)) {\n preferences.recentBlocks = parsed.recentBlocks.filter(\n (v: unknown): v is string => typeof v === \"string\",\n );\n }\n if (typeof parsed.snapEnabled === \"boolean\") {\n preferences.snapEnabled = parsed.snapEnabled;\n }\n if (typeof parsed.gridVisible === \"boolean\") {\n preferences.gridVisible = parsed.gridVisible;\n }\n if (typeof parsed.rulerVisible === \"boolean\") {\n preferences.rulerVisible = parsed.rulerVisible;\n }\n if (typeof parsed.safeMarginsVisible === \"boolean\") {\n preferences.safeMarginsVisible = parsed.safeMarginsVisible;\n }\n if (typeof parsed.gridSpacing === \"number\" && Number.isFinite(parsed.gridSpacing)) {\n preferences.gridSpacing = parsed.gridSpacing;\n }\n if (typeof parsed.snapToGrid === \"boolean\") {\n preferences.snapToGrid = parsed.snapToGrid;\n }\n if (typeof parsed.timelineSnapEnabled === \"boolean\") {\n preferences.timelineSnapEnabled = parsed.timelineSnapEnabled;\n }\n if (typeof parsed.audioMetersVisible === \"boolean\") {\n preferences.audioMetersVisible = parsed.audioMetersVisible;\n }\n if (typeof parsed.rippleEditEnabled === \"boolean\") {\n preferences.rippleEditEnabled = parsed.rippleEditEnabled;\n }\n if (parsed.theme === \"light\" || parsed.theme === \"dark\") preferences.theme = parsed.theme;\n if (parsed.timeDisplayMode === \"time\" || parsed.timeDisplayMode === \"frame\") {\n preferences.timeDisplayMode = parsed.timeDisplayMode;\n }\n if (parsed.timelineZoomMode === \"fit\" || parsed.timelineZoomMode === \"manual\") {\n preferences.timelineZoomMode = parsed.timelineZoomMode;\n }\n if (\n typeof parsed.timelineManualZoomPercent === \"number\" &&\n Number.isFinite(parsed.timelineManualZoomPercent)\n ) {\n preferences.timelineManualZoomPercent = parsed.timelineManualZoomPercent;\n }\n if (typeof parsed.agentToolsEnabled === \"boolean\") {\n preferences.agentToolsEnabled = parsed.agentToolsEnabled;\n }\n if (typeof parsed.linkedSelectionEnabled === \"boolean\") {\n preferences.linkedSelectionEnabled = parsed.linkedSelectionEnabled;\n }\n if (typeof parsed.syncIndicatorsVisible === \"boolean\") {\n preferences.syncIndicatorsVisible = parsed.syncIndicatorsVisible;\n }\n const dockLayout = parseDockLayout(parsed.dockLayout);\n if (dockLayout) preferences.dockLayout = dockLayout;\n return preferences;\n } catch {\n return {};\n }\n}\n\n/** `projectId` opts a caller into a per-project entry (falls back once to the\n * shared entry so a project's first read isn't blank). Defaults to `null`:\n * most callers read once at mount, never on a live project switch. */\nexport function readStudioUiPreferences(\n storage: Storage | null = getBrowserStorage(),\n projectId: string | null = null,\n key: string = STUDIO_UI_PREFERENCES_KEY,\n): StudioUiPreferences {\n const scoped = readStorage(storage, storageKeyFor(projectId, key));\n if (!projectId || Object.keys(scoped).length > 0) return scoped;\n return readStorage(storage, key);\n}\n\nexport function writeStudioUiPreferences(\n patch: StudioUiPreferences,\n storage: Storage | null = getBrowserStorage(),\n projectId: string | null = null,\n key: string = STUDIO_UI_PREFERENCES_KEY,\n) {\n if (!storage) return;\n try {\n const next = {\n ...readStudioUiPreferences(storage, projectId, key),\n ...patch,\n };\n storage.setItem(storageKeyFor(projectId, key), JSON.stringify(next));\n } catch {\n /* localStorage may be unavailable or full */\n }\n}\n","import type { ZoomMode } from \"../store/playerStore\";\nimport { STUDIO_PREVIEW_FPS } from \"../lib/time\";\n\nexport const MIN_TIMELINE_ZOOM_PERCENT = 10;\nconst MAX_TIMELINE_FRAME_WIDTH_PX = 48;\n// CapCut-strength steps: one button press / pinch gesture moves the zoom\n// meaningfully (user feedback, twice-doubled: 1.25×/0.8× + 0.0035 felt like\n// \"zooming several times to get anywhere\", then 1.5× + 0.007 still too soft).\n// Kept reciprocal (2 × 0.5 = 1) so in+out round-trips.\nconst ZOOM_OUT_FACTOR = 0.5;\nconst ZOOM_IN_FACTOR = 2;\nconst PINCH_ZOOM_SENSITIVITY = 0.014;\n\nexport function getMaxTimelineZoomPercent(fitPixelsPerSecond: number): number {\n if (!Number.isFinite(fitPixelsPerSecond) || fitPixelsPerSecond <= 0) return 100;\n const frameLevelPixelsPerSecond = STUDIO_PREVIEW_FPS * MAX_TIMELINE_FRAME_WIDTH_PX;\n return Math.max(100, Math.round((frameLevelPixelsPerSecond / fitPixelsPerSecond) * 100));\n}\n\nexport function clampTimelineZoomPercent(percent: number, fitPixelsPerSecond: number): number {\n if (!Number.isFinite(percent)) return 100;\n const maxZoomPercent = getMaxTimelineZoomPercent(fitPixelsPerSecond);\n return Math.max(MIN_TIMELINE_ZOOM_PERCENT, Math.min(maxZoomPercent, Math.round(percent)));\n}\n\nexport function getTimelineZoomPercent(\n zoomMode: ZoomMode,\n manualZoomPercent: number,\n fitPixelsPerSecond: number,\n): number {\n return zoomMode === \"fit\" ? 100 : clampTimelineZoomPercent(manualZoomPercent, fitPixelsPerSecond);\n}\n\n/**\n * The manual-zoom percent that, applied to `fitPixelsPerSecond`, reproduces the\n * CURRENT on-screen pixels-per-second exactly. Used to PIN the timeline zoom on\n * the first edit so a duration change (which recomputes fit-pps) no longer\n * rescales every clip: we switch `zoomMode` to \"manual\" with this percent, so\n * `getTimelinePixelsPerSecond` keeps returning today's pps regardless of the new\n * fit basis.\n *\n * Since `pps = fitPps * (percent / 100)` in manual mode, and while fitting\n * `pps === fitPps`, the pinned percent is `currentPps / fitPps * 100`. Clamped to\n * the manual-zoom range so the pin can't land outside the slider's bounds; falls\n * back to 100 (a no-op pin at the current fit) when either input is unusable.\n */\nexport function computePinnedZoomPercent(\n currentPixelsPerSecond: number,\n fitPixelsPerSecond: number,\n): number {\n if (\n !Number.isFinite(currentPixelsPerSecond) ||\n currentPixelsPerSecond <= 0 ||\n !Number.isFinite(fitPixelsPerSecond) ||\n fitPixelsPerSecond <= 0\n ) {\n return 100;\n }\n return clampTimelineZoomPercent(\n (currentPixelsPerSecond / fitPixelsPerSecond) * 100,\n fitPixelsPerSecond,\n );\n}\n\nexport function getTimelinePixelsPerSecond(\n fitPixelsPerSecond: number,\n zoomMode: ZoomMode,\n manualZoomPercent: number,\n): number {\n if (!Number.isFinite(fitPixelsPerSecond) || fitPixelsPerSecond <= 0) return 100;\n const zoomPercent = getTimelineZoomPercent(zoomMode, manualZoomPercent, fitPixelsPerSecond);\n return zoomMode === \"fit\" ? fitPixelsPerSecond : fitPixelsPerSecond * (zoomPercent / 100);\n}\n\nexport function getNextTimelineZoomPercent(\n direction: \"in\" | \"out\",\n zoomMode: ZoomMode,\n manualZoomPercent: number,\n fitPixelsPerSecond: number,\n): number {\n const current = getTimelineZoomPercent(zoomMode, manualZoomPercent, fitPixelsPerSecond);\n const next = direction === \"in\" ? current * ZOOM_IN_FACTOR : current * ZOOM_OUT_FACTOR;\n return clampTimelineZoomPercent(next, fitPixelsPerSecond);\n}\n\nexport function getPinchTimelineZoomPercent(\n deltaY: number,\n zoomMode: ZoomMode,\n manualZoomPercent: number,\n fitPixelsPerSecond: number,\n): number {\n const current = getTimelineZoomPercent(zoomMode, manualZoomPercent, fitPixelsPerSecond);\n if (!Number.isFinite(deltaY) || deltaY === 0) return current;\n return clampTimelineZoomPercent(\n current * Math.exp(-deltaY * PINCH_ZOOM_SENSITIVITY),\n fitPixelsPerSecond,\n );\n}\n\nconst LOG_MIN = Math.log(MIN_TIMELINE_ZOOM_PERCENT);\n\n/**\n * Maps the frame-level zoom range to a slider position (0–100) using a log scale.\n * Linear would compress the useful low end into a tiny sliver of the slider.\n */\nexport function timelineZoomPercentToSlider(percent: number, fitPixelsPerSecond: number): number {\n const clamped = clampTimelineZoomPercent(percent, fitPixelsPerSecond);\n const logMax = Math.log(getMaxTimelineZoomPercent(fitPixelsPerSecond));\n return ((Math.log(clamped) - LOG_MIN) / (logMax - LOG_MIN)) * 100;\n}\n\n/**\n * Maps a slider position (0–100) to the frame-level zoom range using a log scale.\n * Inverse of `timelineZoomPercentToSlider`.\n */\nexport function timelineSliderToZoomPercent(slider: number, fitPixelsPerSecond: number): number {\n const clampedSlider = Math.max(0, Math.min(100, slider));\n const logMax = Math.log(getMaxTimelineZoomPercent(fitPixelsPerSecond));\n const logValue = LOG_MIN + (clampedSlider / 100) * (logMax - LOG_MIN);\n return clampTimelineZoomPercent(Math.exp(logValue), fitPixelsPerSecond);\n}\n","import type { GsapAnimation } from \"@hyperframes/core/gsap-parser\";\nimport type { StoreApi } from \"zustand\";\nimport type { AnimationKeyframeTarget } from \"../../hooks/gsapTweenSynth\";\n\n/** Minimal keyframe cache types — mirrors GsapKeyframesData without pulling in Node-only gsap-parser. */\nexport interface KeyframeCacheEntry {\n format: string;\n keyframes: Array<{\n percentage: number;\n /** Original tween-relative percentage (server mutations need this, not the clip-relative `percentage`). */\n tweenPercentage?: number;\n /** Which property group the source tween belongs to (position, scale, rotation, visual, etc.). */\n propertyGroup?: string;\n /** Source tween id — lets the inline clip-row ease button target a specific segment. */\n animationId?: string;\n properties: Record<string, number | string>;\n ease?: string;\n /** Source animation/keyframe targets that collide at this clip percentage. */\n collidingAnimationTargets?: AnimationKeyframeTarget[];\n }>;\n ease?: string;\n easeEach?: string;\n}\n\nexport interface FocusedEaseSegment {\n animationId: string;\n collidingAnimationTargets?: AnimationKeyframeTarget[];\n tweenPercentage: number;\n elementId: string;\n projectId: string | null;\n sessionEpoch: number;\n nonce: number;\n}\n\ntype FocusedEaseSegmentTarget = Omit<FocusedEaseSegment, \"projectId\" | \"sessionEpoch\" | \"nonce\">;\n\n/**\n * A request to reveal one automated parameter in the audio FX rack.\n *\n * `elementKey` is the timeline element whose rack it belongs to — a group's own\n * id for a group lane, the clip's key otherwise — so the panel can refuse a\n * request aimed at something it is not showing.\n */\nexport interface RevealedAudioFxTarget {\n elementKey: string;\n /** The lane's own `fx.<node>.<param>` / `volume` target. */\n automationTarget: string;\n projectId: string | null;\n sessionEpoch: number;\n nonce: number;\n}\n\nexport type RevealedAudioFxTargetRequest = Omit<\n RevealedAudioFxTarget,\n \"projectId\" | \"sessionEpoch\" | \"nonce\"\n>;\n\n/** Whether a reveal request still belongs to what is on screen. */\nexport function isRevealedAudioFxRequestCurrent(\n request: RevealedAudioFxTarget,\n state: TimelineSessionIdentity,\n): boolean {\n return (\n request.projectId === state.timelineProjectId &&\n request.sessionEpoch === state.timelineSessionEpoch\n );\n}\n\ninterface TimelineSessionIdentity {\n timelineProjectId: string | null;\n timelineSessionEpoch: number;\n}\n\nexport function isFocusedEaseRequestCurrent(\n request: FocusedEaseSegment,\n state: TimelineSessionIdentity & { selectedElementId: string | null },\n): boolean {\n return (\n request.projectId === state.timelineProjectId &&\n request.sessionEpoch === state.timelineSessionEpoch &&\n request.elementId === state.selectedElementId\n );\n}\n\nexport interface KeyframeSlice {\n /** Selected collapsed (`element:pct`) or expanded (`element:group:animation:clipPct`) diamonds. */\n selectedKeyframes: Set<string>;\n toggleSelectedKeyframe: (key: string) => void;\n clearSelectedKeyframes: () => void;\n\n /** Clips whose keyframe property lanes are expanded in the timeline. */\n expandedClipIds: Set<string>;\n toggleClipExpanded: (id: string) => void;\n setClipExpanded: (id: string, expanded: boolean) => void;\n /** Union-expand clips (keyframed clips are expanded by default on load). */\n expandClips: (ids: readonly string[]) => void;\n\n /**\n * Groups whose member rows the caret has HIDDEN (structural, not lanes).\n *\n * Inverted deliberately. As an expanded-set, \"not in the set\" could not tell\n * never-touched from deliberately-collapsed, so every group defaulted to\n * collapsed — and since nothing seeds the set on create, grouping three\n * tracks made all three vanish behind a header the user had not yet learned\n * to open. Groups are expanded until someone closes one.\n */\n collapsedGroupIds: Set<string>;\n toggleGroupExpanded: (id: string) => void;\n\n /** Rows (clip id or group id) whose automation-lane rows the `∿` button opened. */\n expandedLaneOwnerIds: Set<string>;\n toggleLaneOwnerExpanded: (id: string) => void;\n\n /**\n * Project/session/element-scoped request. Its nonce is monotonic across store\n * resets so a stale consumer can never collide with a later request.\n */\n focusedEaseSegment: FocusedEaseSegment | null;\n focusedEaseRequestNonce: number;\n setFocusedEaseSegment: (target: FocusedEaseSegmentTarget) => void;\n clearFocusedEaseSegment: (nonce: number) => void;\n\n /**\n * \"Show me this automated parameter in the rack\" — raised by clicking an\n * automation lane's label in the timeline, consumed by the property panel.\n *\n * Session-stamped and nonce-guarded exactly like `focusedEaseSegment`: a\n * request outlives the click, so one made against a different project or\n * before a reload must not reopen a rack on whatever is mounted later.\n */\n revealedAudioFxTarget: RevealedAudioFxTarget | null;\n revealedAudioFxNonce: number;\n setRevealedAudioFxTarget: (target: RevealedAudioFxTargetRequest) => void;\n clearRevealedAudioFxTarget: (nonce: number) => void;\n\n /** Keyframe data per element id, populated from parsed GSAP animations. */\n keyframeCache: Map<string, KeyframeCacheEntry>;\n /** Unmerged source tweens per element; expanded property lanes read this, never keyframeCache. */\n gsapAnimations: Map<string, GsapAnimation[]>;\n setGsapAnimations: (elementId: string, animations: GsapAnimation[] | undefined) => void;\n setKeyframeCache: (elementId: string, data: KeyframeCacheEntry | undefined) => void;\n}\n\nexport function createKeyframeSlice(\n set: StoreApi<KeyframeSlice>[\"setState\"],\n getTimelineSessionIdentity: () => TimelineSessionIdentity,\n): KeyframeSlice {\n return {\n selectedKeyframes: new Set(),\n toggleSelectedKeyframe: (key) =>\n set((state) => {\n const next = new Set(state.selectedKeyframes);\n if (next.has(key)) next.delete(key);\n else next.add(key);\n return { selectedKeyframes: next };\n }),\n clearSelectedKeyframes: () => set({ selectedKeyframes: new Set() }),\n\n expandedClipIds: new Set(),\n toggleClipExpanded: (id) =>\n set((state) => {\n const next = new Set(state.expandedClipIds);\n if (next.has(id)) next.delete(id);\n else next.add(id);\n return { expandedClipIds: next };\n }),\n setClipExpanded: (id, expanded) =>\n set((state) => {\n if (state.expandedClipIds.has(id) === expanded) return state;\n const next = new Set(state.expandedClipIds);\n if (expanded) next.add(id);\n else next.delete(id);\n return { expandedClipIds: next };\n }),\n expandClips: (ids) =>\n set((state) => {\n if (ids.every((id) => state.expandedClipIds.has(id))) return state;\n const next = new Set(state.expandedClipIds);\n for (const id of ids) next.add(id);\n return { expandedClipIds: next };\n }),\n\n collapsedGroupIds: new Set(),\n toggleGroupExpanded: (id) =>\n set((state) => {\n const next = new Set(state.collapsedGroupIds);\n if (next.has(id)) next.delete(id);\n else next.add(id);\n return { collapsedGroupIds: next };\n }),\n\n expandedLaneOwnerIds: new Set(),\n toggleLaneOwnerExpanded: (id) =>\n set((state) => {\n const next = new Set(state.expandedLaneOwnerIds);\n if (next.has(id)) next.delete(id);\n else next.add(id);\n return { expandedLaneOwnerIds: next };\n }),\n\n focusedEaseSegment: null,\n focusedEaseRequestNonce: 0,\n setFocusedEaseSegment: (target) =>\n set((state) => {\n const nonce = state.focusedEaseRequestNonce + 1;\n const { timelineProjectId, timelineSessionEpoch } = getTimelineSessionIdentity();\n return {\n focusedEaseRequestNonce: nonce,\n focusedEaseSegment: {\n ...target,\n projectId: timelineProjectId,\n sessionEpoch: timelineSessionEpoch,\n nonce,\n },\n };\n }),\n clearFocusedEaseSegment: (nonce) =>\n set((state) =>\n state.focusedEaseSegment?.nonce === nonce ? { focusedEaseSegment: null } : state,\n ),\n\n revealedAudioFxTarget: null,\n revealedAudioFxNonce: 0,\n setRevealedAudioFxTarget: (target) =>\n set((state) => {\n const nonce = state.revealedAudioFxNonce + 1;\n const { timelineProjectId, timelineSessionEpoch } = getTimelineSessionIdentity();\n return {\n revealedAudioFxNonce: nonce,\n revealedAudioFxTarget: {\n ...target,\n projectId: timelineProjectId,\n sessionEpoch: timelineSessionEpoch,\n nonce,\n },\n };\n }),\n clearRevealedAudioFxTarget: (nonce) =>\n set((state) =>\n state.revealedAudioFxTarget?.nonce === nonce ? { revealedAudioFxTarget: null } : state,\n ),\n\n keyframeCache: new Map(),\n setKeyframeCache: (elementId, data) =>\n set((state) => {\n // A write that changes nothing must not emit a new Map: the cache has\n // several hot writers (per-element effect, file populate, post-commit\n // updater, delete) and every no-op re-rendered every subscriber.\n if (\n data ? state.keyframeCache.get(elementId) === data : !state.keyframeCache.has(elementId)\n )\n return state;\n const next = new Map(state.keyframeCache);\n if (data) next.set(elementId, data);\n else next.delete(elementId);\n return { keyframeCache: next };\n }),\n gsapAnimations: new Map(),\n setGsapAnimations: (elementId, animations) =>\n set((state) => {\n if (\n animations\n ? state.gsapAnimations.get(elementId) === animations\n : !state.gsapAnimations.has(elementId)\n )\n return state;\n const next = new Map(state.gsapAnimations);\n if (animations) next.set(elementId, animations);\n else next.delete(elementId);\n return { gsapAnimations: next };\n }),\n };\n}\n","/**\n * The active selection box on one automation lane.\n *\n * A store slice, not lane-local state, for the same reason keyframe selection\n * is one: Delete/copy/paste handlers and the shape menu live outside the lane\n * component and need to read it. Ephemeral by construction — nothing\n * serializes store state, and the selection must never survive into a render.\n */\nimport type { StoreApi } from \"zustand\";\n\nexport interface AutomationSelection {\n /** TimelineElement key (key ?? id) of the clip that owns the lane. */\n elementKey: string;\n /** Lane target: \"volume\" or \"fx.<nodeId>.<param>\". */\n target: string;\n /** Clip-local seconds; always t0 <= t1 (ordered on write). */\n t0: number;\n t1: number;\n /**\n * The box's value bounds, in the parameter's own units; always v0 <= v1.\n *\n * What makes the selection a box rather than a time span: a point is caught\n * only if it falls inside both axes. Span operations — copy, paste, shape\n * insert, simplify — still read t0/t1 alone, because they act on the envelope\n * over a stretch of time rather than on a set of breakpoints.\n */\n v0: number;\n v1: number;\n}\n\nexport interface AutomationSelectionSlice {\n automationSelection: AutomationSelection | null;\n setAutomationSelection: (sel: AutomationSelection) => void;\n clearAutomationSelection: () => void;\n}\n\nexport function createAutomationSelectionSlice(\n set: StoreApi<AutomationSelectionSlice>[\"setState\"],\n): AutomationSelectionSlice {\n return {\n automationSelection: null,\n setAutomationSelection: (sel) =>\n set({\n automationSelection: {\n ...sel,\n t0: Math.min(sel.t0, sel.t1),\n t1: Math.max(sel.t0, sel.t1),\n v0: Math.min(sel.v0, sel.v1),\n v1: Math.max(sel.v0, sel.v1),\n },\n }),\n clearAutomationSelection: () => set({ automationSelection: null }),\n };\n}\n","/**\n * The two editing-mode toggles the timeline toolbar owns.\n *\n * A store slice rather than toolbar-local state because both are read far from\n * where they are set: the motion-path arm is consumed by the canvas click\n * handler and published by MotionPathOverlay, and the auto-keyframe flag\n * decides what a drag/resize/rotate does inside the edit commit path.\n *\n * `motionPathArmed` is also cleared by playerStore on selection change — arming\n * survives neither a new element nor a project switch, so those resets stay\n * with the state they clear alongside.\n */\nimport type { StoreApi } from \"zustand\";\n\nexport interface EditingModeSlice {\n /** Motion-path \"set destination\" mode. Armed from the preview toolbar\n * (replaces the old double-click-on-canvas UX); while armed, one canvas\n * click places the new path's destination. */\n motionPathArmed: boolean;\n setMotionPathArmed: (armed: boolean) => void;\n /** Published by MotionPathOverlay so the toolbar shows the button only when\n * the selected element can actually take a path. */\n motionPathCreateAvailable: boolean;\n setMotionPathCreateAvailable: (available: boolean) => void;\n /** Global toggle for the \"Add keyframe\" diamond in the timeline toolbar\n * (#1808). When false, a manual drag/resize/rotate edit on an element that\n * already has a live tween shifts every keyframe by the edit's delta\n * (preserving the animation's shape) instead of inserting/updating a\n * keyframe at the playhead. */\n autoKeyframeEnabled: boolean;\n setAutoKeyframeEnabled: (enabled: boolean) => void;\n}\n\nexport function createEditingModeSlice(\n set: StoreApi<EditingModeSlice>[\"setState\"],\n): EditingModeSlice {\n return {\n motionPathArmed: false,\n setMotionPathArmed: (armed) => set({ motionPathArmed: armed }),\n motionPathCreateAvailable: false,\n setMotionPathCreateAvailable: (available) => set({ motionPathCreateAvailable: available }),\n autoKeyframeEnabled: true,\n setAutoKeyframeEnabled: (enabled) => set({ autoKeyframeEnabled: enabled }),\n };\n}\n","export interface TimelineFocusRequest {\n id: string;\n projectId: string | null;\n sessionEpoch: number;\n nonce: number;\n}\n\nexport function createTimelineFocusRequest(\n id: string,\n projectId: string | null,\n sessionEpoch: number,\n nonce: number,\n): TimelineFocusRequest {\n return { id, projectId, sessionEpoch, nonce };\n}\n","export type ThumbnailMode = \"adaptive\" | \"hidden\";\nexport type ThumbnailRuntimePolicy = \"follow-preference\" | \"force-hidden\" | \"legacy-default\";\n\n// \"Adaptive\" currently means the scheduler pauses rich work while scrolling.\n// The mode name leaves room for finer-grained runtime heuristics later.\n\nconst rawPolicy = import.meta.env?.VITE_STUDIO_TIMELINE_THUMBNAIL_POLICY;\n\nconst studioThumbnailRuntimePolicy: ThumbnailRuntimePolicy =\n rawPolicy === \"force-hidden\" || rawPolicy === \"legacy-default\" ? rawPolicy : \"follow-preference\";\n\nexport function defaultThumbnailMode(\n storedMode: ThumbnailMode | undefined,\n policy: ThumbnailRuntimePolicy = studioThumbnailRuntimePolicy,\n): ThumbnailMode {\n return storedMode ?? (policy === \"legacy-default\" ? \"hidden\" : \"adaptive\");\n}\n\nexport function effectiveThumbnailMode(\n preferredMode: ThumbnailMode,\n policy: ThumbnailRuntimePolicy = studioThumbnailRuntimePolicy,\n): ThumbnailMode {\n return policy === \"force-hidden\" ? \"hidden\" : preferredMode;\n}\n","import type { StoreApi } from \"zustand\";\nimport { readStudioUiPreferences, writeStudioUiPreferences } from \"../../utils/studioUiPreferences\";\nimport { defaultThumbnailMode, type ThumbnailMode } from \"../lib/thumbnailPolicy\";\n\n/** Revision that moves every composition's thumbnails at once. */\nconst EVERY_COMPOSITION = \"*\";\n\n/** Mounts may be written `./scene.html`; the server reports `scene.html`. */\nfunction revisionKey(path: string): string {\n return (path.split(/[?#]/)[0] ?? \"\").replace(/\\\\/g, \"/\").replace(/^\\.?\\//, \"\");\n}\n\nexport interface ThumbnailSlice {\n thumbnailMode: ThumbnailMode;\n /** Monotonic identity, per composition path, for persisted content shown by mounted thumbnails. */\n thumbnailRevisions: Readonly<Record<string, number>>;\n setThumbnailMode: (mode: ThumbnailMode) => void;\n /** `null` moves every composition, e.g. after a root or asset change. */\n bumpThumbnailRevisions: (compositions: readonly string[] | null) => void;\n}\n\nexport function thumbnailRevisionOf(\n revisions: Readonly<Record<string, number>>,\n compositionPath: string,\n): number {\n return (revisions[EVERY_COMPOSITION] ?? 0) + (revisions[revisionKey(compositionPath)] ?? 0);\n}\n\nexport function createThumbnailSlice(set: StoreApi<ThumbnailSlice>[\"setState\"]): ThumbnailSlice {\n return {\n thumbnailMode: defaultThumbnailMode(readStudioUiPreferences().thumbnailMode),\n thumbnailRevisions: {},\n setThumbnailMode: (mode) => {\n writeStudioUiPreferences({ thumbnailMode: mode });\n set({ thumbnailMode: mode });\n },\n bumpThumbnailRevisions: (compositions) =>\n set(({ thumbnailRevisions }) => {\n const next = { ...thumbnailRevisions };\n for (const path of compositions?.map(revisionKey) ?? [EVERY_COMPOSITION]) {\n next[path] = (next[path] ?? 0) + 1;\n }\n return { thumbnailRevisions: next };\n }),\n };\n}\n","/** Gates `timelineReady` on the composition's declared readiness inputs\n * (media, compute, and the paint-and-idle default) instead of just a known\n * duration. The generation counter is module-scope, not store state: it\n * guards an in-flight settlement, not something a component reads, so\n * bumping it shouldn't trigger a render. */\nimport type { StoreApi } from \"zustand\";\nimport { settleCompositionReadiness } from \"@hyperframes/core/composition-readiness\";\n\nexport interface PlaybackReadinessSlice {\n timelineReady: boolean;\n /** Latched when the project's first preview shows its first frame (or fails), kept through edit\n * reloads, so work that must not compete with the boot waits for it once. */\n previewBooted: boolean;\n setTimelineReady: (ready: boolean) => void;\n markPreviewBooted: () => void;\n playLocked: boolean;\n setPlayLocked: (locked: boolean) => void;\n /** Sets timelineReady once doc's readiness inputs settle, or immediately\n * if doc is null. A wait a later call supersedes never wins the race.\n * Waits for doc's load step first: it pauses and rewinds the preview, so a\n * Play enabled before it would be undone. */\n requestTimelineReady: (doc: Document | null) => void;\n /** Called by the preview's load step for the document it ran on. */\n markPreviewLoadStep: (doc: Document) => void;\n}\n\nlet timelineReadyGeneration = 0;\nconst loadStepDocs = new WeakSet<Document>();\nlet awaitingLoadStep: { doc: Document; generation: number } | null = null;\n\n/** For a full timeline reset: bumps the generation so any requestTimelineReady\n * wait in flight can never resolve into what replaced it. */\nexport function resetPlaybackReadinessState(): Pick<\n PlaybackReadinessSlice,\n \"timelineReady\" | \"previewBooted\"\n> {\n timelineReadyGeneration++;\n return { timelineReady: false, previewBooted: false };\n}\n\nexport function createPlaybackReadinessSlice(\n set: StoreApi<PlaybackReadinessSlice>[\"setState\"],\n): PlaybackReadinessSlice {\n const settle = (doc: Document, generation: number) =>\n settleCompositionReadiness(doc, () => {\n if (generation === timelineReadyGeneration) set({ timelineReady: true });\n });\n return {\n timelineReady: false,\n previewBooted: false,\n markPreviewBooted: () => set({ previewBooted: true }),\n playLocked: false,\n setPlayLocked: (locked) => set({ playLocked: locked }),\n setTimelineReady: (ready) => {\n timelineReadyGeneration++;\n set({ timelineReady: ready });\n },\n requestTimelineReady: (doc) => {\n const generation = ++timelineReadyGeneration;\n if (!doc) return set({ timelineReady: true });\n if (!loadStepDocs.has(doc)) {\n awaitingLoadStep = { doc, generation };\n return;\n }\n settle(doc, generation);\n },\n markPreviewLoadStep: (doc) => {\n loadStepDocs.add(doc);\n if (awaitingLoadStep?.doc !== doc) return;\n const { generation } = awaitingLoadStep;\n awaitingLoadStep = null;\n settle(doc, generation);\n },\n };\n}\n","export interface TimelineTimeRange {\n t0: number;\n t1: number;\n}\n\nexport interface RangeSelectionSlice {\n /** Shift-drag ruler range in seconds, normalized so t0 <= t1. */\n rangeSelection: TimelineTimeRange | null;\n}\n\nexport function createRangeSelectionSlice(): RangeSelectionSlice {\n return { rangeSelection: null };\n}\n","import type { GsapAnimation } from \"@hyperframes/core/gsap-parser\";\nimport type { KeyframeCacheEntry } from \"./keyframeSlice\";\nimport { resetPlaybackReadinessState } from \"./readinessSlice\";\nimport type { SubCompositionHostState } from \"./timelineElement\";\n\nexport function createTimelineResetState() {\n return {\n isPlaying: false,\n currentTime: 0,\n duration: 0,\n ...resetPlaybackReadinessState(),\n beatDragging: false,\n elements: [],\n selectedElementId: null,\n zEditVersion: 0,\n inPoint: null,\n outPoint: null,\n rangeSelection: null,\n activeTool: \"select\" as const,\n activeKeyframePct: null,\n motionPathArmed: false,\n motionPathCreateAvailable: false,\n selectedKeyframes: new Set<string>(),\n // Ephemeral like every other selection here. A range surviving a project\n // switch can match a same-keyed clip in the new project and redirect a\n // paste through `sel.elementKey === paste.elementKey` to a stale t0.\n automationSelection: null,\n expandedClipIds: new Set<string>(),\n // Per-composition: ids from comp A match nothing in B, silencing all of it.\n collapsedGroupIds: new Set<string>(),\n expandedLaneOwnerIds: new Set<string>(),\n focusedEaseSegment: null,\n revealedAudioFxTarget: null,\n selectedElementIds: new Set<string>(),\n requestedSeekTime: null,\n lintFindingsByElement: new Map<string, { count: number; messages: string[] }>(),\n timelineFocus: null,\n keyframeCache: new Map<string, KeyframeCacheEntry>(),\n gsapAnimations: new Map<string, GsapAnimation[]>(),\n beatAnalysis: null,\n beatEdits: null,\n beatUndo: [],\n beatRedo: [],\n beatPersist: null,\n clipManifest: null,\n clipParentMap: new Map<string, string>(),\n domClipChildren: [],\n subCompositionHostState: new Map<string, SubCompositionHostState>(),\n };\n}\n","import type { TimelineElement, TimelineElementPatch } from \"./timelineElement\";\n\nlet queued: Map<string, TimelineElementPatch> | null = null;\n\n/** Queues `updates` while a batch is collecting; false means the caller applies it now. */\nexport function queueElementPatch(key: string, updates: TimelineElementPatch): boolean {\n if (!queued) return false;\n queued.set(key, { ...queued.get(key), ...updates });\n return true;\n}\n\n/** Runs `run`, returning the patches it queued; null when an outer batch already collects them. */\nexport function collectElementPatches(run: () => void): Map<string, TimelineElementPatch> | null {\n if (queued) {\n run();\n return null;\n }\n const patches = (queued = new Map());\n try {\n run();\n } finally {\n queued = null;\n }\n return patches;\n}\n\nexport function patchElements(\n elements: TimelineElement[],\n patches: ReadonlyMap<string, TimelineElementPatch>,\n): TimelineElement[] {\n return elements.map((el) => {\n const patch = patches.get(el.key ?? el.id);\n return patch ? { ...el, ...patch } : el;\n });\n}\n","import { buildProjectApiPath } from \"../../utils/projectRouting\";\nimport { forwardRef, useEffect, useRef, useState } from \"react\";\nimport { isLottieAnimationLoaded } from \"@hyperframes/core/runtime/lottie-readiness\";\nimport { useMountEffect } from \"../../hooks/useMountEffect\";\nimport { applyPreviewVariablesToUrl } from \"../../hooks/previewVariablesStore\";\nimport { HyperframesLoader } from \"../../components/ui\";\nimport { usePlayerStore } from \"../store/playerStore\";\n// Importing \"@hyperframes/player\" registers a class extending HTMLElement at\n// module load, which throws under SSR, hence the dynamic import behind a\n// `typeof window` guard. Kicking it here rather than in the mount effect puts\n// the chunk request in flight before the shell's first layout. Clearing the memo\n// on rejection stops one failure poisoning every later mount; the browser's\n// module map still caches a failed fetch, so recovery is a page reload.\nlet playerModule: Promise<unknown> | null = null;\n\nexport function loadPlayerModule(): Promise<unknown> {\n playerModule ??= import(\"@hyperframes/player\").catch((err: unknown) => {\n playerModule = null;\n throw err;\n });\n return playerModule;\n}\n\nif (typeof window !== \"undefined\") void loadPlayerModule().catch(() => {});\n\ninterface PlayerProps {\n projectId?: string;\n directUrl?: string;\n onLoad: () => void;\n /** Fires once the loaded document is painted and every loader (shader, assets) has cleared. */\n onReadyToShowChange?: (ready: boolean) => void;\n onPreviewError?: (message: string) => void;\n onCompositionLoadingChange?: (loading: boolean) => void;\n onPainted?: (details: { iframe: HTMLIFrameElement; startedAt: number; loadId: number }) => void;\n portrait?: boolean;\n style?: React.CSSProperties;\n suppressLoadingOverlay?: boolean;\n}\n\ninterface HyperframesPlayerElement extends HTMLElement {\n iframeElement: HTMLIFrameElement;\n ready?: boolean;\n painted?: boolean;\n}\n\nconst MEDIA_HAVE_FUTURE_DATA = 3;\nconst MEDIA_NETWORK_NO_SOURCE = 3;\n\nfunction isRecord(value: unknown): value is Record<string, unknown> {\n return typeof value === \"object\" && value !== null;\n}\n\nfunction getShaderTransitionLoading(event: Event): boolean | null {\n if (!(event instanceof CustomEvent)) return null;\n const detail: unknown = event.detail;\n if (!isRecord(detail)) return null;\n const state = detail.state;\n if (!isRecord(state)) return null;\n return state.loading === true && state.ready !== true;\n}\n\nconst COMPOSITION_LOADING_OVERLAY_DELAY_MS = 400;\nconst PREVIEW_BOOT_DEADLINE_MS = 5000;\nconst DEFAULT_PREVIEW_ERROR = \"The composition preview did not become ready.\";\n\nexport function shouldShowCompositionLoadingOverlay(compositionLoading: boolean): boolean {\n return compositionLoading;\n}\n\nexport function readPreviewErrorMessage(event: Event): string {\n if (!(event instanceof CustomEvent) || !isRecord(event.detail)) return DEFAULT_PREVIEW_ERROR;\n return typeof event.detail.message === \"string\" && event.detail.message.trim()\n ? event.detail.message\n : DEFAULT_PREVIEW_ERROR;\n}\n\nfunction enableInteractiveIframe(player: HyperframesPlayerElement): void {\n const root = player.shadowRoot;\n if (!root) return;\n\n const container = root.querySelector<HTMLElement>(\".hfp-container\");\n const iframe = root.querySelector<HTMLIFrameElement>(\".hfp-iframe\");\n\n container?.style.setProperty(\"pointer-events\", \"auto\");\n iframe?.style.setProperty(\"pointer-events\", \"auto\");\n}\n\nfunction isPreviewMediaElement(el: Element): el is HTMLMediaElement {\n const tagName = el.tagName.toLowerCase();\n return tagName === \"video\" || tagName === \"audio\";\n}\n\n// Assets are considered ready when every `<video>`/`<audio>` has enough data\n// to play through without buffering, and every registered Lottie animation has\n// finished loading.\n//\n// Returns whichever value was returned last on cross-origin / transient DOM\n// races so a brief access failure (e.g. an iframe that just swapped src)\n// doesn't flicker the overlay state — we keep showing whatever was most\n// recently true.\nexport function hasUnloadedAssets(iframe: HTMLIFrameElement, lastResult: boolean): boolean {\n try {\n const win = iframe.contentWindow as unknown as (Window & { __hfLottie?: unknown[] }) | null;\n const doc = iframe.contentDocument;\n if (!win || !doc) return lastResult;\n\n for (const el of doc.querySelectorAll(\"video, audio\")) {\n if (\n isPreviewMediaElement(el) &&\n !el.error &&\n el.networkState !== MEDIA_NETWORK_NO_SOURCE &&\n el.readyState < MEDIA_HAVE_FUTURE_DATA\n ) {\n return true;\n }\n }\n\n const lotties = win.__hfLottie;\n if (lotties?.length) {\n for (const anim of lotties) {\n if (!isLottieAnimationLoaded(anim)) return true;\n }\n }\n\n return false;\n } catch {\n return lastResult;\n }\n}\n\n/**\n * Renders a composition preview using the <hyperframes-player> web component.\n *\n * The web component handles iframe scaling, dimension detection, and\n * ResizeObserver internally. This wrapper bridges its inner iframe to the\n * forwarded ref so useTimelinePlayer can access it for clip manifest parsing,\n * timeline probing, and DOM inspection.\n */\nexport const Player = forwardRef<HTMLIFrameElement, PlayerProps>(\n (\n {\n projectId,\n directUrl,\n onLoad,\n onReadyToShowChange,\n onPreviewError,\n onCompositionLoadingChange,\n onPainted,\n portrait,\n style,\n suppressLoadingOverlay,\n },\n ref,\n ) => {\n const containerRef = useRef<HTMLDivElement>(null);\n const loadCountRef = useRef(0);\n const assetPollRef = useRef<ReturnType<typeof setInterval> | null>(null);\n const assetFadeRef = useRef<ReturnType<typeof setTimeout> | null>(null);\n const retryPreviewRef = useRef<(() => void) | null>(null);\n const loadStartedAtRef = useRef(0);\n const loadIdRef = useRef(0);\n const retryCountRef = useRef(0);\n // Read at call time: this element outlives its first props (a shadow preview is\n // promoted in place), so mount-time closures would go stale.\n const onLoadRef = useRef(onLoad);\n onLoadRef.current = onLoad;\n const onReadyToShowChangeRef = useRef(onReadyToShowChange);\n onReadyToShowChangeRef.current = onReadyToShowChange;\n const onPreviewErrorRef = useRef(onPreviewError);\n onPreviewErrorRef.current = onPreviewError;\n const [loaded, setLoaded] = useState(false);\n const [assetsLoading, setAssetsLoading] = useState(false);\n const [assetOverlayVisible, setAssetOverlayVisible] = useState(false);\n const [assetOverlayFading, setAssetOverlayFading] = useState(false);\n const [assetWaitLong, setAssetWaitLong] = useState(false);\n const [shaderTransitionLoading, setShaderTransitionLoading] = useState(false);\n const [compositionLoading, setCompositionLoading] = useState(true);\n const [painted, setPainted] = useState(false);\n const [compositionOverlayDeferred, setCompositionOverlayDeferred] = useState(true);\n const [previewError, setPreviewError] = useState<string | null>(null);\n\n // eslint-disable-next-line no-restricted-syntax\n useEffect(() => {\n if (!compositionLoading) {\n setCompositionOverlayDeferred(true);\n return;\n }\n const timer = setTimeout(\n () => setCompositionOverlayDeferred(false),\n COMPOSITION_LOADING_OVERLAY_DELAY_MS,\n );\n return () => clearTimeout(timer);\n }, [compositionLoading]);\n\n useMountEffect(() => {\n const container = containerRef.current;\n if (!container) return;\n\n const previewSource =\n directUrl || (projectId ? buildProjectApiPath(projectId, \"/preview\") : null);\n if (!previewSource) return;\n\n let canceled = false;\n let cleanup: (() => void) | undefined;\n\n void loadPlayerModule().then(() => {\n if (canceled) return;\n\n // Create the web component imperatively to avoid JSX custom-element typing.\n const player = document.createElement(\"hyperframes-player\") as HyperframesPlayerElement;\n const srcUrl = new URL(previewSource, window.location.origin);\n applyPreviewVariablesToUrl(srcUrl);\n const src = srcUrl.pathname + srcUrl.search;\n const retryPreview = () => {\n retryCountRef.current += 1;\n const retryUrl = new URL(src, window.location.origin);\n retryUrl.searchParams.set(\"_hfStudioRetry\", String(retryCountRef.current));\n setPreviewError(null);\n setCompositionLoading(true);\n loadStartedAtRef.current = performance.now();\n loadIdRef.current += 1;\n player.setAttribute(\"src\", retryUrl.pathname + retryUrl.search);\n };\n retryPreviewRef.current = retryPreview;\n const iframe = player.iframeElement;\n const preventToggle = (e: Event) => e.stopImmediatePropagation();\n const handleShaderTransitionState = (event: Event) => {\n const loading = getShaderTransitionLoading(event);\n if (loading !== null) setShaderTransitionLoading(loading);\n };\n const handleReady = () => {\n setPreviewError(null);\n setCompositionLoading(false);\n };\n const handlePainted = () => {\n setPainted(true);\n onPainted?.({ iframe, startedAt: loadStartedAtRef.current, loadId: loadIdRef.current });\n };\n const handleError = (event: Event) => {\n const message = readPreviewErrorMessage(event);\n onPreviewErrorRef.current?.(message);\n setPreviewError(message);\n setCompositionLoading(false);\n };\n const handleLoad = () => {\n loadCountRef.current++;\n setLoaded(true);\n setPreviewError(null);\n setShaderTransitionLoading(false);\n setCompositionLoading(!player.ready);\n setPainted(Boolean(player.painted));\n // Reveal animation on reload (hot-reload, composition switch)\n if (loadCountRef.current > 1) {\n container.classList.remove(\"preview-revealing\");\n void container.offsetWidth;\n container.classList.add(\"preview-revealing\");\n const onEnd = () => container.classList.remove(\"preview-revealing\");\n container.addEventListener(\"animationend\", onEnd, { once: true });\n }\n onLoadRef.current();\n\n // Show a loading overlay until every `<video>`/`<audio>` and Lottie\n // asset is ready. Without this users can click play before audio has\n // buffered — the runtime is resilient (queued play() resolves once\n // data arrives), but the overlay communicates why the first frame\n // or first audio beat may lag.\n //\n // Skip the overlay on subsequent loads (content refreshes via\n // refreshPlayer). The browser has already cached the assets from\n // the first load, so they resolve near-instantly and the overlay\n // just creates a disruptive flash.\n //\n // Poll with a 10 s safety cap (100 ticks × 100 ms). If the cap\n // trips we hide the overlay so the UI doesn't appear stuck forever,\n // but we log a debug warning so the case is diagnosable — a long\n // cold video or a broken asset can legitimately exceed 10 s on a\n // slow network.\n if (assetPollRef.current) clearInterval(assetPollRef.current);\n const isContentRefresh = loadCountRef.current > 1;\n let lastUnloaded = isContentRefresh ? false : hasUnloadedAssets(iframe, false);\n if (lastUnloaded) {\n setAssetsLoading(true);\n let attempts = 0;\n assetPollRef.current = setInterval(() => {\n attempts += 1;\n lastUnloaded = hasUnloadedAssets(iframe, lastUnloaded);\n if (!lastUnloaded || attempts > 100) {\n if (lastUnloaded && attempts > 100) {\n console.debug(\n \"[studio] asset readiness poll hit the 10s cap — continuing with unloaded assets\",\n );\n }\n if (assetPollRef.current) clearInterval(assetPollRef.current);\n assetPollRef.current = null;\n setAssetsLoading(false);\n }\n }, 100);\n } else {\n setAssetsLoading(false);\n }\n };\n\n // Attach lifecycle listeners before assigning src or connecting the\n // custom element. A warm local iframe can otherwise finish before\n // Studio observes its load and never initialize the timeline.\n iframe.addEventListener(\"load\", handleLoad);\n player.addEventListener(\"click\", preventToggle, { capture: true });\n player.addEventListener(\"shadertransitionstate\", handleShaderTransitionState);\n player.addEventListener(\"ready\", handleReady);\n player.addEventListener(\"painted\", handlePainted);\n player.addEventListener(\"error\", handleError);\n\n // Bridge the inner iframe to the forwarded ref for useTimelinePlayer.\n if (typeof ref === \"function\") {\n ref(iframe);\n } else if (ref) {\n (ref as React.MutableRefObject<HTMLIFrameElement | null>).current = iframe;\n }\n\n player.setAttribute(\"shader-capture-scale\", \"1\");\n player.setAttribute(\"shader-loading\", \"player\");\n player.setAttribute(\"low-power-idle\", \"\");\n player.setAttribute(\"width\", String(portrait ? 1080 : 1920));\n player.setAttribute(\"height\", String(portrait ? 1920 : 1080));\n player.style.width = \"100%\";\n player.style.height = \"100%\";\n player.style.display = \"block\";\n player.style.background = \"transparent\";\n loadStartedAtRef.current = performance.now();\n loadIdRef.current += 1;\n player.setAttribute(\"src\", src);\n container.appendChild(player);\n\n // Inject pasteboard shadow: let the shadow around the canvas bleed\n // into the surrounding pasteboard area (overflow: visible on the container)\n // and add a subtle outline + drop-shadow so the canvas boundary reads\n // against the gray pasteboard, consistent with professional editors.\n if (player.shadowRoot) {\n const pasteboardStyle = document.createElement(\"style\");\n pasteboardStyle.textContent =\n \".hfp-container{overflow:visible}\" +\n \".hfp-iframe{box-shadow:0 0 0 1px rgba(255,255,255,0.08),0 4px 32px rgba(0,0,0,.7)}\";\n player.shadowRoot.appendChild(pasteboardStyle);\n }\n\n enableInteractiveIframe(player);\n\n cleanup = () => {\n iframe.removeEventListener(\"load\", handleLoad);\n player.removeEventListener(\"click\", preventToggle, { capture: true });\n player.removeEventListener(\"shadertransitionstate\", handleShaderTransitionState);\n player.removeEventListener(\"ready\", handleReady);\n player.removeEventListener(\"painted\", handlePainted);\n player.removeEventListener(\"error\", handleError);\n if (assetPollRef.current) clearInterval(assetPollRef.current);\n assetPollRef.current = null;\n // `remove()` rather than `container.removeChild(player)`: by the time\n // this cleanup runs the element may already be detached — React can\n // re-render the container, a crossfade refresh can swap it, or a\n // translation/extension can reparent it. `removeChild` then throws\n // NotFoundError, which the error boundary turns into a full-screen\n // \"Something went wrong\". `remove()` is a no-op when already detached.\n player.remove();\n if (retryPreviewRef.current === retryPreview) retryPreviewRef.current = null;\n // Clear the forwarded ref only if it still points to THIS iframe.\n // During crossfade refreshes the retiring Player unmounts after the\n // new Player has already assigned its iframe to the same ref — blindly\n // nulling it would break seeking in the new Player.\n // Callback refs are skipped — we can't read back the current value to\n // guard against clobbering a newer assignment. The mutable-ref branch\n // (the only path used today) is guarded by identity check.\n if (typeof ref === \"function\") {\n // no-op: can't safely guard callback refs\n } else if (ref) {\n const mutableRef = ref as React.MutableRefObject<HTMLIFrameElement | null>;\n if (mutableRef.current === iframe) {\n mutableRef.current = null;\n }\n }\n };\n });\n\n return () => {\n canceled = true;\n cleanup?.();\n };\n });\n\n // Surface a \"Continue anyway\" escape hatch once the asset wait drags on.\n // eslint-disable-next-line no-restricted-syntax\n useEffect(() => {\n if (!assetsLoading) {\n setAssetWaitLong(false);\n return;\n }\n const timer = setTimeout(() => setAssetWaitLong(true), 3000);\n return () => clearTimeout(timer);\n }, [assetsLoading]);\n\n useEffect(() => {\n if (assetFadeRef.current) {\n clearTimeout(assetFadeRef.current);\n assetFadeRef.current = null;\n }\n\n if (assetsLoading) {\n setAssetOverlayVisible(true);\n setAssetOverlayFading(false);\n return;\n }\n\n setAssetOverlayFading(true);\n assetFadeRef.current = setTimeout(() => {\n setAssetOverlayVisible(false);\n setAssetOverlayFading(false);\n assetFadeRef.current = null;\n }, 240);\n\n return () => {\n if (assetFadeRef.current) {\n clearTimeout(assetFadeRef.current);\n assetFadeRef.current = null;\n }\n };\n }, [assetsLoading]);\n\n const handleContinueAnyway = () => {\n if (assetPollRef.current) {\n clearInterval(assetPollRef.current);\n assetPollRef.current = null;\n }\n setAssetsLoading(false);\n };\n\n const firstFrameShown =\n loaded && painted && !compositionLoading && !shaderTransitionLoading && !previewError;\n const readyToShow = firstFrameShown && !assetsLoading;\n // Work waiting on the boot starts at the first frame, while media still buffers.\n useEffect(() => {\n if (firstFrameShown) usePlayerStore.getState().markPreviewBooted();\n }, [firstFrameShown]);\n // `painted` means the player's own loader has finished fading; two frames of grace on top.\n useEffect(() => {\n if (!readyToShow) {\n onReadyToShowChangeRef.current?.(false);\n return;\n }\n let second = 0;\n const first = requestAnimationFrame(() => {\n second = requestAnimationFrame(() => onReadyToShowChangeRef.current?.(true));\n });\n return () => {\n cancelAnimationFrame(first);\n cancelAnimationFrame(second);\n };\n }, [readyToShow]);\n\n useEffect(() => {\n if (previewError) usePlayerStore.getState().markPreviewBooted();\n }, [previewError]);\n\n useEffect(() => {\n const timer = setTimeout(\n () => usePlayerStore.getState().markPreviewBooted(),\n PREVIEW_BOOT_DEADLINE_MS,\n );\n return () => clearTimeout(timer);\n }, [projectId]);\n\n const showCompositionOverlay =\n !suppressLoadingOverlay &&\n !compositionOverlayDeferred &&\n shouldShowCompositionLoadingOverlay(compositionLoading);\n const showAssetOverlay =\n assetOverlayVisible && !shaderTransitionLoading && !showCompositionOverlay && !previewError;\n\n useEffect(() => {\n onCompositionLoadingChange?.(showCompositionOverlay || showAssetOverlay);\n }, [onCompositionLoadingChange, showCompositionOverlay, showAssetOverlay]);\n\n return (\n <div\n className=\"relative w-full h-full max-w-full max-h-full overflow-hidden flex items-center justify-center\"\n style={style}\n >\n <div ref={containerRef} className=\"w-full h-full\" />\n {showCompositionOverlay && (\n <div\n className=\"absolute inset-0 bg-black flex items-center justify-center z-30 select-none\"\n data-hyperframes-ignore=\"\"\n data-testid=\"composition-loading-overlay\"\n draggable={false}\n onDragStart={(event) => event.preventDefault()}\n onMouseDown={(event) => event.preventDefault()}\n onPointerDown={(event) => event.preventDefault()}\n >\n <HyperframesLoader\n title=\"Loading composition\"\n detail=\"Preparing the Studio preview.\"\n size={56}\n />\n </div>\n )}\n {showAssetOverlay && (\n <div\n className=\"absolute inset-0 bg-black flex items-center justify-center z-20 select-none\"\n data-hyperframes-ignore=\"\"\n draggable={false}\n style={{\n opacity: assetOverlayFading ? 0 : 1,\n pointerEvents: assetOverlayFading ? \"none\" : \"auto\",\n transition: \"opacity 180ms ease-in\",\n }}\n onDragStart={(event) => event.preventDefault()}\n onMouseDown={(event) => event.preventDefault()}\n >\n <div className=\"flex flex-col items-center gap-3\">\n <HyperframesLoader\n title=\"Preparing preview assets\"\n detail=\"Waiting for media and motion assets before playback starts.\"\n size={56}\n />\n {assetWaitLong && (\n <button\n type=\"button\"\n onClick={handleContinueAnyway}\n className=\"px-3 py-1.5 text-[11px] rounded-md border border-neutral-700 text-neutral-300 hover:border-neutral-500 hover:bg-neutral-800 transition-colors\"\n >\n Continue anyway\n </button>\n )}\n </div>\n </div>\n )}\n {previewError && (\n <div\n className=\"absolute inset-0 z-40 flex items-center justify-center bg-black/90 px-6 text-center\"\n data-hyperframes-ignore=\"\"\n data-testid=\"composition-preview-error\"\n >\n <div className=\"max-w-sm\">\n <p className=\"text-sm font-semibold text-white\">Preview failed to load</p>\n <p className=\"mt-1 text-xs text-neutral-400\">{previewError}</p>\n <button\n type=\"button\"\n className=\"mt-4 rounded-md bg-white px-3 py-1.5 text-xs font-semibold text-black transition-colors hover:bg-neutral-200\"\n onClick={() => retryPreviewRef.current?.()}\n >\n Retry preview\n </button>\n </div>\n </div>\n )}\n </div>\n );\n },\n);\n\nPlayer.displayName = \"Player\";\n","import { useEffect } from \"react\";\n\n/**\n * Run an effect exactly once on mount (and optional cleanup on unmount).\n * This is the ONLY sanctioned way to call useEffect in this codebase.\n *\n * If you need to react to prop/state changes, use one of:\n * - Derived state (compute inline, no hook needed)\n * - Event handlers (onClick, onChange, etc.)\n * - `key` prop to force remount\n * - Data-fetching library (useQuery, useSWR)\n *\n * @see https://react.dev/learn/you-might-not-need-an-effect\n */\nexport function useMountEffect(effect: () => void | (() => void)) {\n // eslint-disable-next-line react-hooks/exhaustive-deps\n useEffect(effect, []);\n}\n","import { create } from \"zustand\";\n\n/**\n * Ephemeral composition-variable overrides for the preview iframe.\n *\n * Values here are NEVER persisted to the composition — they ride the preview\n * URL as `?variables=<json>` (see the studio-server preview routes), which the\n * server injects as `window.__hfVariables` exactly like render-time injection,\n * so what the user previews is what `hyperframes render --variables` produces.\n * `null` means \"preview with declared defaults\".\n */\ninterface PreviewVariablesState {\n values: Record<string, unknown> | null;\n setValues: (values: Record<string, unknown> | null) => void;\n}\n\nexport const usePreviewVariablesStore = create<PreviewVariablesState>((set) => ({\n values: null,\n setValues: (values) => set({ values: values && Object.keys(values).length > 0 ? values : null }),\n}));\n\n/**\n * Apply the current preview-variable overrides to a preview URL (both the\n * Player's initial mount and refreshPlayer's soft reload route through this,\n * so a hard remount can't silently drop the active overrides).\n */\nexport function applyPreviewVariablesToUrl(url: URL): void {\n const values = usePreviewVariablesStore.getState().values;\n if (values) {\n url.searchParams.set(\"variables\", JSON.stringify(values));\n } else {\n url.searchParams.delete(\"variables\");\n }\n}\n"],"mappings":";;;;;;;;;AAAO,IAAM,qBAAqB;AAE3B,IAAM,kBAAkB,CAAC,MAAc,aAC5C,KAAK,IAAI,GAAG,WAAW,IAAI,KAAK,IAAI,UAAU,IAAI,IAAI,IAAI;AAErD,SAAS,WAAW,MAAsB;AAC/C,MAAI,CAAC,OAAO,SAAS,IAAI,KAAK,OAAO,EAAG,QAAO;AAC/C,QAAM,OAAO,KAAK,MAAM,OAAO,EAAE;AACjC,QAAM,OAAO,KAAK,MAAM,OAAO,EAAE;AAKjC,SAAO,GAAG,KAAK,SAAS,EAAE,SAAS,GAAG,GAAG,CAAC,IAAI,KAAK,SAAS,EAAE,SAAS,GAAG,GAAG,CAAC;AAChF;AAEO,SAAS,eAAe,MAAc,MAAM,oBAA4B;AAC7E,MAAI,CAAC,OAAO,SAAS,IAAI,KAAK,QAAQ,EAAG,QAAO;AAChD,MAAI,CAAC,OAAO,SAAS,GAAG,KAAK,OAAO,EAAG,QAAO;AAC9C,SAAO,KAAK,MAAM,OAAO,GAAG;AAC9B;AAEO,SAAS,eAAe,OAAe,MAAM,oBAA4B;AAC9E,MAAI,CAAC,OAAO,SAAS,KAAK,KAAK,SAAS,EAAG,QAAO;AAClD,MAAI,CAAC,OAAO,SAAS,GAAG,KAAK,OAAO,EAAG,QAAO;AAC9C,SAAO,QAAQ;AACjB;AAEO,SAAS,cAAc,MAAc,aAAqB,MAAM,oBAA4B;AACjG,QAAM,eAAe,eAAe,MAAM,GAAG;AAC7C,QAAM,YAAY,KAAK,IAAI,GAAG,eAAe,WAAW;AACxD,SAAO,eAAe,WAAW,GAAG;AACtC;AAEO,SAAS,gBAAgB,MAAc,UAAkB,MAAM,oBAA4B;AAChG,QAAM,eAAe,eAAe,MAAM,GAAG;AAC7C,QAAM,cAAc,eAAe,UAAU,GAAG;AACh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AAA,gBACC,iBACC;AAAA,kBAAC;AAAA;AAAA,oBACC,MAAK;AAAA,oBACL,SAAS;AAAA,oBACT,WAAU;AAAA,oBACX;AAAA;AAAA,gBAED;AAAA,iBAEJ;AAAA;AAAA,UACF;AAAA,UAED,gBACC;AAAA,YAAC;AAAA;AAAA,cACC,WAAU;AAAA,cACV,2BAAwB;AAAA,cACxB,eAAY;AAAA,cAEZ,+BAAC,SAAI,WAAU,YACb;AAAA,oCAAC,OAAE,WAAU,oCAAmC,oCAAsB;AAAA,gBACtE,oBAAC,OAAE,WAAU,iCAAiC,wBAAa;AAAA,gBAC3D;AAAA,kBAAC;AAAA;AAAA,oBACC,MAAK;AAAA,oBACL,WAAU;AAAA,oBACV,SAAS,MAAM,gBAAgB,UAAU;AAAA,oBAC1C;AAAA;AAAA,gBAED;AAAA,iBACF;AAAA;AAAA,UACF;AAAA;AAAA;AAAA,IAEJ;AAAA,EAEJ;AACF;AAEA,OAAO,cAAc;","names":["isRecord","useEffect","create","isRecord","useEffect"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|