AI video skill for Claude Code & Codex — cinematic, editable product promos with Remotion: 124 shot recipe cards, 150 motion previews, beat sync, sound design, Motion Workbench & JianYing (CapCut CN) export.
TypeScript agent-skillsai-agentsai-videoclaude-codeclaude-code-skillsclaude-skillscodexmotion-designmotion-graphicsproduct-videopromo-videoremotionvideo-generationvideo-production
feat(workbench): 交付后自动打开的动效工作台(移植 talkcraft)+ 成片清单契约 (#72)
Yihao5f047c7cfe10
diff --git a/.github/workflows/pr-checks.yml b/.github/workflows/pr-checks.ymlindex 90ad0ec..837d871 100644--- a/.github/workflows/pr-checks.yml+++ b/.github/workflows/pr-checks.yml@@ -13,6 +13,8 @@ on:- 'demos/**'- 'assets/lib/**'- 'assets/scripts/**'+ - 'template/src/**'+ - 'workbench/**'- 'package.json'- 'package-lock.json'- '.github/workflows/pr-checks.yml'@@ -129,6 +131,28 @@ jobs:--resolveJsonModule \$(cat /tmp/demo-files.txt)+ workbench-build:+ runs-on: ubuntu-latest+ steps:+ - uses: actions/checkout@v4+ - uses: actions/setup-node@v4+ with:+ node-version: 22+ cache: npm+ cache-dependency-path: workbench/package-lock.json+ - name: Workbench type-checks and bundles with all demos linked in+ run: |+ cd workbench+ # prepare hook runs scripts/gen-index.mjs: 218 demos + gallery metadata → static index+ npm ci+ npx tsc -b+ npx vite build+ - name: Template (incl. workbench manifest) compiles against the workbench toolchain+ run: |+ # template/ has no node_modules in CI; borrow the workbench's (same remotion / react pins)+ ln -s ../workbench/node_modules template/node_modules+ cd template && ../workbench/node_modules/.bin/tsc --noEmit -p tsconfig.json+demo-smoke:runs-on: ubuntu-lateststeps:diff --git a/README.md b/README.mdindex 1a1291f..13a9440 100644--- a/README.md+++ b/README.md@@ -45,6 +45,21 @@ beat-synced cuts, and film-grade SFX included.> 🎙️ [**Project page »**](https://github.com/Vincentwei1021/video-talkcraft) ·> 🖼️ [**Browse all 78 narration motion previews »**](https://vincentwei1021.github.io/video-talkcraft/)+> [!IMPORTANT]+> ### 🛠️ 2026-09 · New: the **Motion Workbench** — keep editing the delivered film in your browser+> After delivery the skill opens a CapCut-style workbench+> (`node workbench/scripts/open.mjs <project>`). The film is decomposed into+> shot / transition / caption / SFX tracks exactly as authored; select any shot+> and edit its copy, font sizes and colours in a schema-driven inspector, move,+> trim or speed-ramp clips, drag any of the **216 demo motions** in from the+> library, then export with Remotion. Preview and render are frame-identical+> (pixel-parity verified).+>+> +>+> 🧭 [**Workbench guide — every panel and feature, with screenshots »**](workbench/GUIDE.md) (Chinese) ·+> 🔌 [**Integration contract »**](references/workbench.md)+- 🌟 **2026-08 · 48 new shot recipe cards** — the library grows from 104 to**152 cards / 209 previews**. Distilled from 209 candidate motions througheight rounds of frame-by-frame review against reference footage, then folded@@ -158,6 +173,7 @@ With these three flags, frame renders from the bundled template work.| Components and assets | 2.5D page camera, captions, flash cuts, digit rolls, SFX, and capture scripts || Production methodology | Capture, visual direction, storyboarding, sound design, beat sync, and final QA || JianYing project export | Load the film into JianYing (CapCut CN) for further editing — per-shot speed, captions, and audio all editable (verified on macOS 11.2) |+| Motion workbench | Browser timeline editor opened after delivery: split the film into tracks, edit exposed shot properties, retime, drag in any of the 216 demo motions, export via Remotion |The toolkit primarily targets web and desktop product promos, while individualshot cards can also be used in feature demos, brand films, launch videos, and@@ -175,11 +191,13 @@ video-shotcraft/│ ├── aesthetic-rules.md # Visual QA criteria│ ├── music-beat-sync.md # BGM analysis and beat-sync methodology│ ├── sound-design.md # Sound-design guidance and examples-│ └── jianying-export.md # JianYing (CapCut CN) project-export guide+│ ├── jianying-export.md # JianYing (CapCut CN) project-export guide+│ └── workbench.md # Motion workbench: manifest contract + editability rules├── demos/ # Remotion reference implementations (same categories)├── gallery/ # Static motion-preview Gallery├── template/ # Runnable complete video template├── jianying-export/ # JianYing draft installers (mac tested / win untested)+├── workbench/ # Post-delivery motion workbench (Vite + Remotion Player)└── assets/├── lib/ # Reusable Remotion components├── scripts/ # Page-asset capture scriptsdiff --git a/README_CN.md b/README_CN.mdindex d9d31fa..ee46131 100644--- a/README_CN.md+++ b/README_CN.md@@ -42,6 +42,18 @@> 🎙️ [**项目主页 »**](https://github.com/Vincentwei1021/video-talkcraft) ·> 🖼️ [**在线浏览 78 条口播动效样片 »**](https://vincentwei1021.github.io/video-talkcraft/)+> [!IMPORTANT]+> ### 🛠️ 2026-09 · 新功能:**动效工作台**——成片交付后在浏览器里继续改+> 交付后 skill 会主动打开一个剪映式的浏览器工作台(`node workbench/scripts/open.mjs <工程>`):+> 片子按原始镜头拆成镜头 / 转场 / 字幕 / 音效多轨;选中任意镜头,字标、文案、字号、颜色+> 在属性面板里逐项改,预览即时跟随;镜头可挪、可裁、可变速;**216 张 demo 动效**从素材库+> 直接拖上轨;改完用 Remotion 一键导出。预览与渲染逐帧一致(像素级校验)。+>+> +>+> 🧭 [**工作台图文指南:各区域与功能 »**](workbench/GUIDE.md) ·+> 🔌 [**成片接入契约 »**](references/workbench.md)+- 🌟 **2026-08 · 新增 48 张镜头配方卡**——卡库从 104 张扩充到**152 卡 / 209 条样片**。由 209 个候选动效经八轮与参考片逐帧比对评审收敛而来,按既有类别并入 Gallery:完整配方卡 + 原生 Remotion 组件@@ -147,6 +159,7 @@ agent 会替换成目标产品的截图、文案和品牌信息,复现同等| 组件与素材 | 2.5D 页面相机、字幕、闪切、数字滚动、音效和素材采集脚本 || 制作方法论 | 从素材采集、风格定调和分镜,到声音设计、节奏卡点与最终验收 || 剪映工程导出 | 成片可装进剪映继续编辑:镜头变速/字幕/音轨全开放(Mac 11.2 实测) |+| 动效工作台 | 交付后自动打开的浏览器时间线编辑器:成片拆多轨、改镜头开放属性、变速重排、拖入 216 个 demo 动效、Remotion 导出 |当前主要面向 Web 与桌面产品宣传片,但镜头卡也可以单独用于功能演示、品牌短片、发布视频或其他动态设计项目。@@ -163,11 +176,13 @@ video-shotcraft/│ ├── aesthetic-rules.md # 视觉验收准则│ ├── music-beat-sync.md # BGM 节奏分析与卡点方法│ ├── sound-design.md # 声音设计方法与判例-│ └── jianying-export.md # 剪映工程导出方法+│ ├── jianying-export.md # 剪映工程导出方法+│ └── workbench.md # 动效工作台:成片接入契约 + 可编辑性规则├── demos/ # 镜头卡的 Remotion 参考实现(同类别目录)├── gallery/ # 在线样片画廊的静态站点├── template/ # 可直接运行的完整成片模板├── jianying-export/ # 剪映草稿安装模块(Mac 实测 / Windows 未验证)+├── workbench/ # 交付后的动效工作台(Vite + Remotion Player)└── assets/├── lib/ # 可复制使用的 Remotion 组件├── scripts/ # 页面素材采集脚本diff --git a/README_JA.md b/README_JA.mdindex fc2c962..ed9accc 100644--- a/README_JA.md+++ b/README_JA.md@@ -45,6 +45,20 @@> 🎙️ [**プロジェクトページ »**](https://github.com/Vincentwei1021/video-talkcraft) ·> 🖼️ [**78 本のナレーション用モーションプレビューを見る »**](https://vincentwei1021.github.io/video-talkcraft/)+> [!IMPORTANT]+> ### 🛠️ 2026-09 · 新機能:**モーションワークベンチ**——納品後もブラウザで編集を続ける+> 納品後、skill が CapCut 風のブラウザワークベンチを自動で開きます+> (`node workbench/scripts/open.mjs <project>`)。映像は元のショット構成どおりに+> ショット / トランジション / 字幕 / SFX のトラックへ分解され、任意のショットを選んで+> 文言・フォントサイズ・色をスキーマ駆動のインスペクタで編集、クリップの移動・トリム・+> 速度変更、**216 本の demo モーション**をライブラリからドラッグして追加、そのまま+> Remotion で書き出せます。プレビューとレンダリングはフレーム単位で一致(ピクセル比較で検証済み)。+>+> +>+> 🧭 [**ワークベンチガイド:各パネルと機能をスクリーンショット付きで »**](workbench/GUIDE.md)(中国語)·+> 🔌 [**連携コントラクト »**](references/workbench.md)+- 🌟 **2026-08 · ショットレシピカード 48 枚を新規追加**——ライブラリは 104 枚から **152 カード / 209 プレビュー**に拡充。209 候補から参照映像とのフレーム単位比較レビューを 8 ラウンド重ねて厳選し、既存カテゴリに統合:@@ -158,6 +172,7 @@ Use video-shotcraft to make a promo for my product with the Ink Press template.| コンポーネントとアセット | 2.5D ページカメラ、キャプション、フラッシュカット、数字ロール、SFX、キャプチャスクリプト || 制作手法 | キャプチャ、ビジュアルディレクション、ストーリーボード、サウンドデザイン、ビート同期、最終 QA || 剪映プロジェクト書き出し | 完成映像を剪映(CapCut 中国版)で継続編集——ショット変速・字幕・音声トラックを編集可(macOS 11.2 実機検証済み) |+| モーションワークベンチ | 納品後に開くブラウザのタイムラインエディタ:映像をトラックに分解、公開されたショット属性の編集、再タイミング、216 個の demo モーションのドラッグ投入、Remotion 書き出し |このツールキットは主に Web およびデスクトップ製品のプロモーションを対象としていますが、各ショットカードは機能デモ、ブランド映像、ローンチ動画、@@ -175,11 +190,13 @@ video-shotcraft/│ ├── aesthetic-rules.md # Visual QA criteria│ ├── music-beat-sync.md # BGM analysis and beat-sync methodology│ ├── sound-design.md # Sound-design guidance and examples-│ └── jianying-export.md # JianYing (CapCut CN) project-export guide+│ ├── jianying-export.md # JianYing (CapCut CN) project-export guide+│ └── workbench.md # Motion workbench: manifest contract + editability rules├── demos/ # Remotion reference implementations for shot cards├── gallery/ # Static motion-preview Gallery├── template/ # Runnable complete video template├── jianying-export/ # JianYing draft installers (mac tested / win untested)+├── workbench/ # Post-delivery motion workbench (Vite + Remotion Player)└── assets/├── lib/ # Reusable Remotion components├── scripts/ # Page-asset capture scriptsdiff --git a/SKILL.md b/SKILL.mdindex 5197037..ad83db0 100644--- a/SKILL.md+++ b/SKILL.md@@ -169,7 +169,18 @@ SFX;只有完整分镜确认后才进入最终素材采集。用户从 Gallery### 交付收尾(所有模式共用)-成片交付后,在最后按 1-2-3 依次说这三件事,每件只说一次,用户拒绝或+成片交付后**先主动打开动效工作台**(不要等用户问):++```bash+node workbench/scripts/open.mjs <成片工程目录> # 链接工程 → 起 dev server(5198)→ 浏览器自动导入成片+```++告知用户地址 http://localhost:5198 并用一句话说明:片子已按镜头 / 转场 / 字幕 / 音效拆成+多轨,字卡文案、颜色、字号、位置、变速逐项可视化调,改完点「导出成片」。要拆解导入,+工程须有 `src/workbench.ts` 清单——制作阶段按 `references/workbench.md` §2–3 写好+(模板路线已自带)。++然后在最后按 1-2-3 依次说这三件事,每件只说一次,用户拒绝或不回应就不再提:1. **发布时推荐(非强制)在简介 @ 一下本 skill 作者**:成片归用户自己所有,@@ -206,6 +217,8 @@ SFX;只有完整分镜确认后才进入最终素材采集。用户从 Gallery| 逐镜头实现 | 该镜头卡全文 + 按“参考实现”定位的准确 demo 源码全文 + assets/lib/ 对应组件 || 声音设计 | sound-design.md + assets/audio/ || 验收 | final-review.md + aesthetic-rules.md 全文过 checklist(独立 subagent 执行) |+| 逐镜头实现时写 `src/workbench.ts` 清单 / 镜头 props+schema | workbench.md §2–3(范例 `template/src/workbench.ts`) |+| 成片交付后(打开动效工作台) | workbench.md(`node workbench/scripts/open.mjs <工程>`;工作台自身文档 `workbench/README.md`) || 成片交付后(剪映工程导出) | jianying-export.md + `jianying-export/` 平台模块 |## 资产使用方式diff --git a/references/pipeline.md b/references/pipeline.mdindex 57aa28a..635e510 100644--- a/references/pipeline.md+++ b/references/pipeline.md@@ -238,8 +238,14 @@ tokens、启动方式和数据风险。根据项目证据和用户已有描述8. 指代含糊的用户反馈("第一个标题")先确认对象再动手;改错立即整commit revert 重来,不在错误版本上打补丁——每个改动独立 commit以便干净回滚。+9. **为交付后的动效工作台留好接口**(`references/workbench.md` §2–3):时间表只写一份+ (`SHOTS` 是唯一事实源,字幕表 / SFX 钉帧 / 转场点从它派生并 `export`);镜头的语境级+ 参数(文案 / 颜色 / 字号 / 位置)做成带默认值的 props,节奏命门保持常量;+ `src/workbench.ts` 里 import 这些表、给每个单元补 `component` / `props` / `schema`。+ 模板路线已自带(`template/src/workbench.ts`),自由创作在时间线定稿后补写,+ 交付前 `cd workbench && npm run parity` 证明拆解无损。-**产出**:逐镜头 commit;`out/qa/` 静帧档案;每轮全片渲染 mp4。+**产出**:逐镜头 commit;`out/qa/` 静帧档案;每轮全片渲染 mp4;`src/workbench.ts` 清单。**阶段输出**:整片渲染视频(每轮迭代一版)+ 关键静帧。自主自由创作不因该输出暂停等待确认;用户主动反馈时再纳入下一轮。@@ -375,7 +381,9 @@ tokens、启动方式和数据风险。根据项目证据和用户已有描述**交付物**:审查报告 + 成片两版(带 BGM + 无 BGM)。-交付后在最后按 1-2-3 依次说三件事:① 发布时推荐(非强制)在简介 @ 一下+交付后先 `node workbench/scripts/open.mjs <工程目录>` 主动打开动效工作台(浏览器自动+把成片拆成多轨,用户可视化微调后直接导出;见 `references/workbench.md`),再在最后按+1-2-3 依次说三件事:① 发布时推荐(非强制)在简介 @ 一下skill 作者(三个平台账号都带链接);② 邀请把成片放到作品展示页(用日常语言说,可留自己的账号);③ 可以导出剪映工程文件(需要则读`references/jianying-export.md` 执行)。逐条口径与账号链接见 `SKILL.md`diff --git a/references/workbench.md b/references/workbench.mdnew file mode 100644index 0000000..64322ba--- /dev/null+++ b/references/workbench.md@@ -0,0 +1,157 @@+# 动效工作台:成片交付后的可视化微调++`workbench/` 是一个剪映式的浏览器工作台(多轨时间线 + 素材库 + 属性面板 + Remotion+实时预览 + 一键导出),从系列姊妹项目 video-talkcraft 的 `workbench/` 移植而来。+skill 渲出成片后**主动打开它**,用户不用回到代码里改 tsx 就能:挪一个镜头、拉长一段+停留、改一句字卡文案、换一个音效、给某段变速,改完直接导出 MP4。++**触发时机**:任何模式下成片交付后,先跑下面的命令把工作台打开并告知用户地址,再说+「交付收尾」的 1-2-3(见 `SKILL.md`)。不要等用户问。++```bash+# 在 skill 根目录执行;<成片工程目录> = 含 package.json / remotion.config.ts 的那一层+node workbench/scripts/open.mjs <成片工程目录>+# → 链接工程 src/ 与 public/ → 生成索引 → 起 dev server(5198)→ 浏览器打开并自动导入成片+```++首次会自动 `npm install`(一次性,约 1 分钟)。dev server 后台常驻,`kill $(cat workbench/.dev.pid)` 停。+两个 skill 的工作台端口错开(talkcraft 5199 / shotcraft 5198),可同时开。++## 1. 三层可编辑度:什么能改、代码要满足什么++工作台把片子拆成 clip(Project → Track → Clip),每个 clip 有三层可编辑面:++| 层 | 用户能改什么 | 对动效代码的要求 |+|---|---|---|+| **时间与图层**(所有 clip 都有) | 起点 / 时长(超出原长尾帧定格)/ 变速 0.25×–4× / 裁入点 / 不透明度 / 缩放 / 位移 / 换轨 / 隐藏整层 | 组件是 `useCurrentFrame()` 的纯函数、tween 全部 clamp、无 `Date.now`/`Math.random`——本 skill 第 9 条铁律已保证。**现有 demo(218 个里 216 个自动接入,见 §4)与全部成片镜头无需改动**即可上轨 |+| **内容与样式**(属性面板) | 文案 / 颜色 / 字号 / 位置 / 开关 / 枚举,逐项可视化调 | 组件把语境级参数暴露为**带默认值的 props**,并给出 `schema`(字段列表,见 §3)。demo 里的顶部 `CONFIG` 常量不改就不可调——只能动时间/图层 |+| **拆解导入**(把成片一键拆成多轨) | 每个镜头 / 转场 / 字幕 / 音效各成一段,单独挪、删、复制 | 成片工程提供 `src/workbench.ts` 清单(§2),时间表与 Main.tsx **同源**,导入后不改任何东西渲出来就是原片 |++这和 talkcraft 的做法一一对应:talkcraft 把 79 张模板卡逐张复制成 `gen/*.tsx`+(CONFIG → props + schema,「节奏命门」保持 FIXED),成片则靠 `@kbsrc` 符号链接进工程、+按 `SHOTS`/`SFX_CUES`/`WIPE_TIMES` 表拆解,逐镜参数化靠为每个镜头手写 `kscene-sNN` 卡。+shotcraft 这边的差别:demo 组件 216 个全部**原样接入**(不做逐张参数化复制,避免维护两份),+成片的逐镜可编辑性由**清单里的 `schema`** 声明——所以「未来的片子能不能逐属性改」+取决于制作时是否按 §3 写镜头组件,而不是事后改工作台。++## 2. 成片工程接入清单 `src/workbench.ts`++导出一个 `WORKBENCH` 常量,结构(TypeScript 类型在 `workbench/src/cards/manifest.ts`,工程+文件不需要 import,结构兼容即可):++```ts+export const WORKBENCH = {+ name: 'Ink Press · AIFL promo',+ fps: 30, width: 1920, height: 1080,+ total: AIFL_TOTAL, // 成片总帧数+ background: '#f2eee6', // Main 最外层 AbsoluteFill 的底色+ revision: undefined, // 可选版本号;不给则按清单内容哈希判「是不是同一版成片」+ shots: [ // 镜头:from/duration 与 <Sequence> 一一对应(绝对帧)+ { id: 'morning', label: 'S1 墨线开场', from: 0, duration: 220, component: SceneOpen },+ { id: 'card1', label: '字卡①', from: 220, duration: 55,+ component: TitleCardUnit, // 吃 props 的组件+ props: { text: 'All your team’s research, *one* place to go.' }, // 成片里的实际值+ schema: [{ type: 'textarea', key: 'text', label: '文案', default: '' }],+ durationProp: 'duration', // 把 clip 时长注入这个 prop(尾部淡出跟着走)+ cardId: 'title-card', cardName: '字卡' }, // 四张字卡共用一张卡+ …+ ],+ transitions: [...], // 转场层(闪白 / 光条),结构同上+ captions: [...], // 字幕 / 解说条+ overlays: [...], // 全片常驻叠加层(网格 / 暗角)+ sfx: SFX.map(s => ({ from: s.from, duration: 90, src: `audio/${s.src}`, volume: s.volume })),+ bgm: [{ from: 0, duration: TOTAL, src: 'audio/bgm.mp3', volume: 0.34 }],+ order: ['transitions', 'captions', 'overlays'], // 叠加层 z 序(上→下),缺省即此+ original: AiflMain, // 原合成,供 parity 对照+};+```++**范例的参数化程度**:模板六个场景 + 字卡 + 解说条全部导出 `*_DEFAULTS`(文案 / 字号 / 色板)并以带默认值+的 props 读取,清单 schema 直接引用同一对象——属性面板里改的就是屏幕上的值,缓动 / 时值 / 相机键不暴露。+demo 里的场景常量(`CONFIG` / 顶部 `const`)照这个模式提成 `DEFAULTS + Partial<typeof DEFAULTS>` 即可接入。++**同源原则**:清单里的每张表都从 Main.tsx `import`(`SHOTS` / `CAPTIONS` / `SFX` / 字卡文案表),+不要手抄第二份。范例:`template/src/workbench.ts` + `template/src/aifl/Main.tsx`+(`AIFL_SHOTS` / `TITLE_CARDS` / `CAPTIONS` / `SFX` / `FLASH_CUTS` / `sfxDuration` 全部 `export`,+渲染与清单同一份数据)。++**版本判据**:`?import=project` 打开时,存档的 `source` 与 `manifestKey(清单)` 不同才重新导入。key = 名字 + 总帧数 + `revision`,+未写 `revision` 时用清单内容哈希(时间表 / label / props / 单元→卡的分组拓扑 / 组件 displayName / 音效表)——改了镜头位置、文案、+音效或换了组件即视为新版本;旧存档压进撤销栈,⌘Z 可找回。++**分组规则**:同一 `cardId`(或同一 `component` 引用)的单元共用一张「成片单元卡」,+素材库里只出现一次,可以再拖一份上轨;`label` 是时间轨上的显示名。卡 id 为+`proj:<kind>:<cardId|首个单元 id>`;显式 `cardId` 与另一组的首个单元 id 撞名(或单元 id 重复)时,+后出现的组加 `~2` 后缀并在控制台警告——请给单元换 id 或写显式 `cardId`,别依赖后缀。++**素材路径**:`sfx[].src` 等一律相对工程 `public/`(工作台把工程 `public/*` 链接进自己的+`public/`)。字幕/字卡文案里的 `*词*` 记法是 Ink Press 字卡的强调词 DSL(`parseWords`),+其他工程可以自定 DSL,只要 props 是字符串/数字/布尔就能进属性面板。++## 3. 制作新片时怎么写镜头(让它"未来可编辑")++在 pipeline 阶段 5 实现每个镜头时:++1. **语境级参数 → props(带默认值)**:文案、颜色、字号、位置、开关、数据(多条用逐行+ 文本 DSL)。**节奏命门保持常量**(弹入时长、错峰间隔、缓动曲线、相机路径)——它们决定+ 动效品相,暴露出去反而容易调坏。这与 talkcraft 的「FIXED / 开放」分界一致。+2. **`duration`/`dur` 类 prop 要真的用**(出场淡出按它算),清单里声明 `durationProp`,+ clip 拉长后淡出会跟着挪而不是定格在原时长处。+3. **时间表只写一份**:`timeline.ts`/`Main.tsx` 里的 `SHOTS` 是唯一事实源,SFX 钉帧、字幕+ 表、转场点都从它派生并 `export`;`workbench.ts` 只 import + 补 component/schema。+4. **纯函数、确定性**:不读 `useVideoConfig().durationInFrames` 做绝对时间假设(motion-lab+ 系 `useT()` 归一化是例外且被工作台正确处理:clip 拉长=动画放慢)。+5. 交付前跑一次 `npm run parity`(§5)确认拆解无损。+6. **实时预览得跑得动**:Player 是实时合成,不像渲染那样每帧等栅格化完成再截图。铺满巨型平面+ (几千 px 见方)的程序渐变 / `backdrop-filter` 放在 PageCam 这类每帧改 `zoom` 的 3D 层里,+ Chrome 栅格化跟不上就整块时有时无——Ink Press 模板 S3 的金属桌面曾因此在预览里疯狂闪,+ 其余镜头全片 0 次异常(用 CDP screencast 逐帧测亮度脉冲得出)。这类纯装饰的重绘内容用+ `getRemotionEnvironment().isRendering` 分流:渲染走原效果,预览用纯色 / 更轻的替身,几何+ 与时序不变(`SceneFlyIn.tsx` 的 `METAL_PREVIEW` 是范例)。parity 只比渲染结果,所以仍成立。++schema 字段类型:`text` / `textarea` / `number`(min/max/step/unit)/ `slider` / `color` /+`select`(options)/ `boolean`,定义在 `workbench/src/cards/types.ts`。++## 4. 动效库(demos/)在工作台里的形态++`scripts/gen-index.mjs` 扫 `demos/<类别>/<卡>/<组件>.tsx`,凡导出 `<组件>: React.FC`(无必填+props)即接入为一张卡(218 个 tsx 里接入 216 个:`ClipCardLooping` 需要真实 mp4 素材、+`page-waterfall-wall/VerticalTicker` 是辅助组件,两者跳过),中文名/分类/一句话取自画廊 `library.json` + `translations.js`,+预览用 `gallery/media/<style>.mp4`(先 `gallery/fetch-media.sh` 拉取,否则用 Player 实时循环)。+时长取值链:demo 导出的 `*_DURATION|*_DUR` → 镜头卡 md「时长:」的 `NNNf` → 文件内+`const *DUR*` → 缺省 150f;来源写在 `DEMO_MODULES[].durationSource`,clip 上轨后随时可裁。+demo 全部 schema 为空(时间/图层可编辑,属性不可编辑)——要逐属性调参就按 §3 把 CONFIG+提成 props,加 `export const schema`… 目前不自动读取,属于后续扩展点。++工作台自带 4 张参数化原生卡:通用文字、Ink Press 字卡、解说字幕条、暖白闪转场+(`workbench/src/cards/inkpress/`,源出 template 组件,动效逐字同式,文案/颜色/字号开放)。++## 5. 导出、Studio 与无损校验++- **导出成片**:顶栏「导出成片」→ dev server 内起 Remotion CLI 渲当前工程(`workbench/exports/`)。+ 渲染前会把 `public/` 解引用同步到 `.render-public/`(Remotion 静态服务器拒绝服务符号链接)。+ `remotion.config.ts` 与 template 同口径:jpeg 帧、ANGLE GL、并发 4。+- **Remotion Studio**:`cd workbench && npm run studio`——`Main`(贴工程 JSON)、`ProjImported`+ (刚导入的成片)、`ProjOriginal`(原合成)+ 每张卡一个合成(schema 自动转 Zod,官方 Inspector 调参)。+- **无损校验**:`npm run parity -- --frames 150,240,470,1000` 渲 `ProjImported` 与 `ProjOriginal`+ 同帧 PNG 逐像素比对(需 python3 + Pillow),差异像素 < 0.1% 视为一致。退出码 0 一致 / 1 有差异 /+ 2 无法得出结论(缺 Pillow、比对未执行)——不会假绿。改过清单或 Main.tsx 的时间表后跑一次。++## 6. 已知边界++- 同轨允许 clip 重叠(层级用多轨表达);变速为匀速重映射(无曲线变速)。+- 卡片库(demo / 原生卡)按 30fps 编排(`CARD_FPS`),成片单元卡按成片清单的 fps(`CardDef.sourceFps`);+ 工程 fps 不同时,拖卡上轨按 `clipDefaultsFor` 换算时长并反向变速,播放速度不变;媒体卡+ (视频 / 音频 / 图片,`timing: "realtime"`)只换算时长、不变速。Freeze 不改 `useVideoConfig().fps`,+ 卡内若用 `spring({fps})` 等按秒计时,非 30fps 工程里节奏会偏移——属性面板会提示,成片单元不受影响+ (帧率与工程一致)。时间码 / 片段秒数 / 预览余量都按工程 fps 计。+- `open.mjs` 只重启自己启动的 dev server(`.dev.pid` + 进程命令行核实);端口被手动起的 server+ 占着时报错退出,因为 `@proj` 别名在 vite 启动时定死、刷新不会换工程。+- 音频 clip 导入时截到成片总长(原片里超出合成尾部的 `<Sequence>` 本就被截)。+- demo 卡需要的灰阶纹理(`textures/live/*.png`):工程自己带 `public/textures` 时以工程为准,+ 否则工作台兜底链接 `demos/_textures`;工程纹理与 demo 纹理同名不同图时 demo 预览会"换皮"。+- 工程 `src/` 被以符号链接方式打包进工作台,`react`/`remotion` 落到工作台的 node_modules+ (remotion 4.0.484 / React 19);工程若用了 `@remotion/three`、`three`、`@remotion/motion-blur`、+ `@remotion/google-fonts` 以外的包,先在 `workbench/` 里装同版本。+- 与剪映导出(`jianying-export.md`)的分工:剪映给"外部剪辑软件里继续剪"的用户;工作台给+ "在本机浏览器里改几处就出片"的用户,且能改镜头内部的参数化属性(剪映只能整段变速)。diff --git a/template/TEMPLATE.md b/template/TEMPLATE.mdindex cd80755..5d703ed 100644--- a/template/TEMPLATE.md+++ b/template/TEMPLATE.md@@ -27,16 +27,20 @@| 9 | 885–940 | 1.8s | PaperTitleCard.tsx | 字卡④"The whole team, on the same page." | paper-title-card || 10 | 940–1085 | 4.8s | live/SceneOutroLive.tsx | 虚焦 → 元素合影组装 → 铅印字标砸落(riser→impact→sparkle)→ 1s hold | outro-group-photo-launch |-叠加层(全部在 Main.tsx 里声明式管理):+叠加层(全部在 Main.tsx 里声明式管理,且全部 `export`——`src/workbench.ts` 清单从这里+import,动效工作台据此把成片拆成多轨,见 ../references/workbench.md):+- **TITLE_CARDS**:四张字卡的文案表(`*词*` = 琥珀斜体强调词,`parseWords` 解析),+ card2 带副标 + 滚动数字- **CAPTIONS**:底部通栏解说字幕 6 条(绝对帧号表),压在功能段上,字卡/outro 段不加-- **FlashCut**:暖白闪转场 4 处,`from = 切点 − 5`,两侧各 5f 跨骑接缝+- **FLASH_CUTS / FlashCut**:暖白闪转场 4 处,`from = 切点 − 5`,两侧各 5f 跨骑接缝- **SFX 钉帧表**:30+ 条 `{from, src, volume}`,逐条注释对应画面动作;- keyboard 长样本按语境用 Sequence duration 截断(24f/44f)+ keyboard 长样本按语境用 Sequence duration 截断(`sfxDuration`:24f/44f)## 二、共用地基组件| 文件 | 作用 | 关键点 ||------|------|--------|+| live/Scene*.tsx · PaperTitleCard · Caption | 每个场景导出 `*_DEFAULTS`(文案 / 字号 / 色板),并以带默认值的 props 读取;`src/workbench.ts` 的 schema 直接引用同一对象,工作台属性面板里改的就是这些。缓动 / 时值 / 相机键不暴露 | 换产品时优先改 DEFAULTS 而不是散落的字面量;色值是原 oklch 令牌的 sRGB 渲染值(墨 #13110f · 琥珀 #955905 · 灰墨 #65635f · 深琥珀 #ae6700) || live/PageCam.tsx | 2.5D 页面相机——一切"真实页面"镜头的地基 | 整页截图 + 关键帧 `{frame,cx,cy,zoom,rotX/Y/Z,persp}` 插值运镜;children 按页面 CSS px 定位(与 layout.json 同坐标系);**3D 模式用 CSS `zoom` 做布局级放大**(transform scale 会先降采样再放大导致文字糊——根治法详见审美准则 Q2);可选 dof 顶部渐变糊带 || PaperTitleCard.tsx | 字卡呼吸位 | 衬线大字逐词入场,accent 词琥珀色;可挂 DigitRoll 数字子标 || FlashCut.tsx | 暖白闪转场 | 只盖硬切两侧 10f,不当装饰光效 |@@ -69,7 +73,9 @@元素切片文件名、卡片数量/槽位循环、文案;- 不要动的:缓动曲线、时长配比、hold 帧预算、SFX 钉帧结构——这些是质感所在,改了等于重做调校。-4. **文案**:PaperTitleCard 的 words 数组、CAPTIONS 表、outro 品牌名/tagline。+4. **文案**:`TITLE_CARDS` 表(字卡,`*词*` 标强调)、CAPTIONS 表、outro 品牌名/tagline。+ 镜头结构变了同步改 `src/workbench.ts`(新镜头加一行 `scene(...)`;字卡照 `title(...)`),+ 然后 `cd ../workbench && npm run parity` 确认拆解无损。5. **验收**:每改完一个镜头 `npx remotion still` 出静帧自检(每镜头至少入场中/动作峰值/落定后三帧);全改完整片渲染 + ffmpeg 抽帧回看;最后对照 ../references/aesthetic-rules.md 过 checklist。diff --git a/template/src/aifl/Caption.tsx b/template/src/aifl/Caption.tsxindex 71b6cf8..32f3144 100644--- a/template/src/aifl/Caption.tsx+++ b/template/src/aifl/Caption.tsx@@ -1,15 +1,31 @@import { interpolate, useCurrentFrame } from 'remotion';const MONO = 'ui-monospace, SFMono-Regular, Menlo, monospace';-const AMBER = 'oklch(52% 0.115 65)';++/** Context-level defaults, editable per clip in the workbench (hex = sRGB of the oklch tokens). */+export const CAPTION_DEFAULTS = {+ fontSize: 22,+ color: '#575552', // oklch(45% 0.006 82)+ accent: '#955905', // oklch(52% 0.115 65)+};/** Screen-space narration caption: a mono UI info-strip at the bottom of the* frame, led by a small amber square. Fades/rises in over 8 frames and fades* out over the last 8 of its window. */-export const Caption: React.FC<{ text: string; duration: number; bottom?: number }> = ({+export const Caption: React.FC<{+ text: string;+ duration: number;+ bottom?: number;+ fontSize?: number;+ color?: string;+ accent?: string;+}> = ({text,duration,bottom = 72,+ fontSize = CAPTION_DEFAULTS.fontSize,+ color = CAPTION_DEFAULTS.color,+ accent = CAPTION_DEFAULTS.accent,}) => {const frame = useCurrentFrame();const inT = interpolate(frame, [0, 8], [0, 1], {@@ -33,16 +49,16 @@ export const Caption: React.FC<{ text: string; duration: number; bottom?: numberalignItems: 'baseline',gap: 14,fontFamily: MONO,- fontSize: 22,+ fontSize,letterSpacing: '0.14em',textTransform: 'uppercase',- color: 'oklch(45% 0.006 82)',+ color,opacity: inT * outT,transform: `translateY(${(1 - inT) * 8}px)`,pointerEvents: 'none',}}>- <span style={{ width: 6, height: 6, background: AMBER, display: 'inline-block' }} />+ <span style={{ width: 6, height: 6, background: accent, display: 'inline-block' }} /><span>{text}</span></div>);diff --git a/template/src/aifl/Main.tsx b/template/src/aifl/Main.tsxindex dd2cd9b..21110a0 100644--- a/template/src/aifl/Main.tsx+++ b/template/src/aifl/Main.tsx@@ -26,8 +26,34 @@ export const AIFL_SHOTS = {export const AIFL_TOTAL = 1085;+// title-card copy: space-separated words, `*word*` = amber italic accent. Single+// source for the render below and for the workbench manifest (workbench.ts).+export const TITLE_CARDS = {+ card1: { text: 'All your team’s research, *one* place to go.' },+ card2: { text: 'Paper *Radar,* tailored for your morning reading.', sub: 'of 31 fetched today', subDigits: '5' },+ cardWbr: { text: 'Every project, *linked* to your weekly report.' },+ card3: { text: 'The whole team, on the *same* page.' },+} as const;++export const parseWords = (text: string): { text: string; accent?: boolean }[] =>+ text+ .split(/\s+/)+ .filter(Boolean)+ .map((w) => {+ const m = w.match(/^\*(.+)\*$/);+ return m ? { text: m[1], accent: true } : { text: w };+ });++// warm flash cuts straddle these hard cuts (from = cut − 5, 10f long)+export const FLASH_CUTS = [AIFL_SHOTS.table.from, AIFL_SHOTS.macro.from, AIFL_SHOTS.chart.from, AIFL_SHOTS.wbr.from];++// keyboard: 24f for the short search-box typing, 44f under the wbr writing+// reveals; everything else plays out (≤3s assets)+export const sfxDuration = (s: { from: number; src: string }) =>+ s.src === 'keyboard.mp3' ? (s.from > 700 ? 44 : 24) : 90;+// bottom-strip narration over the live shots (absolute frames; outro stays clean)-const CAPTIONS = [+export const CAPTIONS = [{ from: 90, duration: 40, text: 'TEN LIVE PROJECTS · FOUR RESEARCHERS' },// (the hero-card hover annotation lives inside SceneOpen as a 3D floating note){ from: 318, duration: 44, text: 'NEW WORK LANDS ALL WEEK' },@@ -40,7 +66,7 @@ const CAPTIONS = [// sound design pinned to animation beats (absolute frames, Mixkit license).// Classic product-promo vocabulary: whooshes on camera moves, cinematic// impacts on landings, a riser into the finale, sparkle on the reveal.-const SFX: { from: number; src: string; volume: number }[] = [+export const SFX: { from: number; src: string; volume: number }[] = [// brand open: soft transition as the lockup lands, whoosh into the console{ from: 12, src: 'transition-soft.mp3', volume: 0.4 },{ from: 78, src: 'whoosh-fast.mp3', volume: 0.45 }, // brand → dashboard@@ -95,9 +121,7 @@ export const AiflMain: React.FC = () => {<Sequencekey={`sfx-${i}`}from={s.from}- // keyboard: 24f for the short search-box typing, 44f under the wbr- // writing reveals; everything else plays out (≤3s assets)- durationInFrames={s.src === 'keyboard.mp3' ? (s.from > 700 ? 44 : 24) : 90}+ durationInFrames={sfxDuration(s)}><Audio src={staticFile(`audio/${s.src}`)} volume={s.volume} /></Sequence>@@ -108,7 +132,7 @@ export const AiflMain: React.FC = () => {<Sequence from={AIFL_SHOTS.card1.from} durationInFrames={AIFL_SHOTS.card1.duration}><PaperTitleCardduration={AIFL_SHOTS.card1.duration}- words={[{ text: 'All' }, { text: 'your' }, { text: 'team’s' }, { text: 'research,' }, { text: 'one', accent: true }, { text: 'place' }, { text: 'to' }, { text: 'go.' }]}+ words={parseWords(TITLE_CARDS.card1.text)}/></Sequence><Sequence from={AIFL_SHOTS.table.from} durationInFrames={AIFL_SHOTS.table.duration}>@@ -120,9 +144,9 @@ export const AiflMain: React.FC = () => {<Sequence from={AIFL_SHOTS.card2.from} durationInFrames={AIFL_SHOTS.card2.duration}><PaperTitleCardduration={AIFL_SHOTS.card2.duration}- words={[{ text: 'Paper' }, { text: 'Radar,', accent: true }, { text: 'tailored' }, { text: 'for' }, { text: 'your' }, { text: 'morning' }, { text: 'reading.' }]}- sub="of 31 fetched today"- subDigits="5"+ words={parseWords(TITLE_CARDS.card2.text)}+ sub={TITLE_CARDS.card2.sub}+ subDigits={TITLE_CARDS.card2.subDigits}/></Sequence><Sequence from={AIFL_SHOTS.chart.from} durationInFrames={AIFL_SHOTS.chart.duration}>@@ -131,7 +155,7 @@ export const AiflMain: React.FC = () => {<Sequence from={AIFL_SHOTS.cardWbr.from} durationInFrames={AIFL_SHOTS.cardWbr.duration}><PaperTitleCardduration={AIFL_SHOTS.cardWbr.duration}- words={[{ text: 'Every' }, { text: 'project,' }, { text: 'linked', accent: true }, { text: 'to' }, { text: 'your' }, { text: 'weekly' }, { text: 'report.' }]}+ words={parseWords(TITLE_CARDS.cardWbr.text)}/></Sequence><Sequence from={AIFL_SHOTS.wbr.from} durationInFrames={AIFL_SHOTS.wbr.duration}>@@ -140,7 +164,7 @@ export const AiflMain: React.FC = () => {<Sequence from={AIFL_SHOTS.card3.from} durationInFrames={AIFL_SHOTS.card3.duration}><PaperTitleCardduration={AIFL_SHOTS.card3.duration}- words={[{ text: 'The' }, { text: 'whole' }, { text: 'team,' }, { text: 'on' }, { text: 'the' }, { text: 'same', accent: true }, { text: 'page.' }]}+ words={parseWords(TITLE_CARDS.card3.text)}/></Sequence><Sequence from={AIFL_SHOTS.outro.from} durationInFrames={AIFL_SHOTS.outro.duration}>@@ -153,7 +177,7 @@ export const AiflMain: React.FC = () => {</Sequence>))}{/* warm flash cuts straddling scene changes */}- {[AIFL_SHOTS.table.from, AIFL_SHOTS.macro.from, AIFL_SHOTS.chart.from, AIFL_SHOTS.wbr.from].map((cut) => (+ {FLASH_CUTS.map((cut) => (<Sequence key={cut} from={cut - 5} durationInFrames={10}><FlashCut duration={10} /></Sequence>diff --git a/template/src/aifl/PaperTitleCard.tsx b/template/src/aifl/PaperTitleCard.tsxindex 4bb75db..11f79d1 100644--- a/template/src/aifl/PaperTitleCard.tsx+++ b/template/src/aifl/PaperTitleCard.tsx@@ -4,6 +4,17 @@ import { DigitRoll } from './DigitRoll';const SERIF = 'ui-serif, Georgia, "Times New Roman", serif';const MONO = 'ui-monospace, SFMono-Regular, Menlo, monospace';+/** Context-level defaults (copy size / palette). Exposed as props so the+ * workbench can edit them per clip; the motion timing stays fixed. Hex values+ * are the sRGB renderings of the original oklch tokens. */+export const TITLE_CARD_DEFAULTS = {+ fontSize: 116,+ ink: '#13110f', // oklch(18% 0.006 82)+ accent: '#955905', // oklch(52% 0.115 65)+ muted: '#65635f', // oklch(50% 0.006 82)+ paper: '#f9f6f1', // oklch(97.5% 0.008 82)+};+/*** Paper title card: warm paper field, serif statement letterpressed word by* word, amber italic accent word, amber underline growing beneath.@@ -13,7 +24,19 @@ export const PaperTitleCard: React.FC<{words: { text: string; accent?: boolean }[];sub?: string;subDigits?: string;-}> = ({ duration, words, sub, subDigits }) => {+ fontSize?: number;+ ink?: string;+ accent?: string;+ muted?: string;+ paper?: string;+}> = ({+ duration, words, sub, subDigits,+ fontSize = TITLE_CARD_DEFAULTS.fontSize,+ ink = TITLE_CARD_DEFAULTS.ink,+ accent = TITLE_CARD_DEFAULTS.accent,+ muted = TITLE_CARD_DEFAULTS.muted,+ paper = TITLE_CARD_DEFAULTS.paper,+}) => {const frame = useCurrentFrame();const fadeOut = interpolate(frame, [duration - 8, duration], [1, 0], {extrapolateLeft: 'clamp',@@ -32,7 +55,7 @@ export const PaperTitleCard: React.FC<{return (<AbsoluteFillstyle={{- backgroundColor: 'oklch(97.5% 0.008 82)',+ backgroundColor: paper,justifyContent: 'center',alignItems: 'center',opacity: fadeOut,@@ -42,8 +65,8 @@ export const PaperTitleCard: React.FC<{<div style={{ textAlign: 'center', maxWidth: 1500 }}><divstyle={{- fontFamily: SERIF, fontSize: 116, fontWeight: 600, lineHeight: 1.14,- color: 'oklch(18% 0.006 82)', letterSpacing: '-0.012em',+ fontFamily: SERIF, fontSize, fontWeight: 600, lineHeight: 1.14,+ color: ink, letterSpacing: '-0.012em',display: 'flex', flexWrap: 'wrap', justifyContent: 'center', columnGap: '0.26em',}}>@@ -63,7 +86,7 @@ export const PaperTitleCard: React.FC<{filter: `blur(${(1 - t) * 7}px)`,display: 'inline-block',fontStyle: w.accent ? 'italic' : 'normal',- color: w.accent ? 'oklch(52% 0.115 65)' : undefined,+ color: w.accent ? accent : undefined,}}>{w.text}@@ -74,12 +97,12 @@ export const PaperTitleCard: React.FC<{<divstyle={{height: 6, width: 220, margin: '38px auto 0', borderRadius: 3,- background: 'oklch(52% 0.115 65)', transform: `scaleX(${underline})`,+ background: accent, transform: `scaleX(${underline})`,}}/>{sub ? (- <div style={{ fontFamily: MONO, fontSize: 26, letterSpacing: '0.12em', color: 'oklch(50% 0.006 82)', marginTop: 34, opacity: subT, textTransform: 'uppercase', display: 'flex', justifyContent: 'center', alignItems: 'baseline', gap: '0.5em' }}>- {subDigits ? <DigitRoll value={subDigits} delay={12} fontSize={26} /> : null}+ <div style={{ fontFamily: MONO, fontSize: 26, letterSpacing: '0.12em', color: muted, marginTop: 34, opacity: subT, textTransform: 'uppercase', display: 'flex', justifyContent: 'center', alignItems: 'baseline', gap: '0.5em' }}>+ {subDigits ? <DigitRoll value={subDigits} delay={12} fontSize={26} color={accent} /> : null}<span>{sub}</span></div>) : null}diff --git a/template/src/aifl/live/SceneDetail.tsx b/template/src/aifl/live/SceneDetail.tsxindex 65ec52d..ecc88bc 100644--- a/template/src/aifl/live/SceneDetail.tsx+++ b/template/src/aifl/live/SceneDetail.tsx@@ -16,9 +16,16 @@ const DETAIL_CAM: CamKey[] = [const FLY_EASE = Easing.bezier(0.3, 0, 0.25, 1);const detailSrc = staticFile('textures/live/detail-full.png');+/** Context-level defaults, editable per clip in the workbench. */+export const SCENE_DETAIL_DEFAULTS = {+ accent: '#ae6700', // oklch(58% 0.13 65) — embed seam colour+};+type SceneDetailProps = Partial<typeof SCENE_DETAIL_DEFAULTS>;+/** Open on the nano-lab detail page, then pan down while the* research-question rows fly in from the air and embed into their slots. */-export const SceneDetail: React.FC = () => {+export const SceneDetail: React.FC<SceneDetailProps> = (props) => {+ const { accent } = { ...SCENE_DETAIL_DEFAULTS, ...props };const frame = useCurrentFrame();const df = frame;@@ -123,7 +130,7 @@ export const SceneDetail: React.FC = () => {top: r.y + r.h - 2,width: seamW,height: 2,- background: 'oklch(58% 0.13 65)',+ background: accent,boxShadow: '0 0 6px rgba(180,120,50,0.35)',opacity: seamOpacity,zIndex: 4,diff --git a/template/src/aifl/live/SceneFlyIn.tsx b/template/src/aifl/live/SceneFlyIn.tsxindex 65931af..b2fc858 100644--- a/template/src/aifl/live/SceneFlyIn.tsx+++ b/template/src/aifl/live/SceneFlyIn.tsx@@ -1,4 +1,4 @@-import { Img, interpolate, staticFile, useCurrentFrame, Easing } from 'remotion';+import { Img, interpolate, staticFile, useCurrentFrame, Easing, getRemotionEnvironment } from 'remotion';import { PageCam, CamKey } from './PageCam';import layout from '../live-layout.json';@@ -47,6 +47,14 @@ const STACK_STEP = 3; // px of physical height per card — the pile reads as a// dark-metal backdrop for the opening close-up: covers everything in the page// plane, with a warm spotlight pooled on the pile; fades out with the pull-backconst METAL_FADE = [34, 56] as const;+// Real-time preview stand-in for the metal (Player / Studio / workbench — anything that is+// not the final render). The procedural gradients below cover a 9000×9000 plane that+// Chromium has to re-rasterize every frame while PageCam's `zoom` changes; in real time+// the raster never keeps up, the plane drops in and out, and the close-up strobes between+// dark table and white page (measured: ~20 blank-outs in the first 2s). A flat fill needs+// no raster at all. Same geometry, same fade — only the paint differs; the render still+// paints the brushed metal. Tone = median of the rendered table (#373637 sampled).+const METAL_PREVIEW = '#383638';const grid = [...cards.map((c) => ({ file: c.file, x: c.x, y: c.y, w: c.w, h: c.h, title: c.title })),@@ -77,7 +85,13 @@ grid.forEach((_, i) => {// search box (page-space CSS px) + typing beatsconst SEARCH = { x: 408, y: 130, w: 1016, h: 44 };-const QUERY = 'nano-lab';+/** Context-level defaults, editable per clip in the workbench. `query` is only the+ * typed text; the card that survives the filter is still the nano-lab card from layout. */+export const SCENE_FLYIN_DEFAULTS = {+ query: 'nano-lab',+ accent: '#ae6700', // oklch(58% 0.13 65)+};+type SceneFlyInProps = Partial<typeof SCENE_FLYIN_DEFAULTS>;const TYPE_START = 128; // 3 frames per character → last char at ≈149const FILTER_START = 160; // beat of rest after typing, then the grid filters@@ -106,8 +120,10 @@ const CAM_KEYS: CamKey[] = [{ frame: 190, cx: CLICK_C.x, cy: CLICK_C.y, zoom: 2.2, rotX: 0, rotY: 0, rotZ: 0, persp: 1300 }, // push into the clicked card, carried through the white flash];-export const SceneFlyIn: React.FC = () => {+export const SceneFlyIn: React.FC<SceneFlyInProps> = (props) => {+ const { query: QUERY, accent } = { ...SCENE_FLYIN_DEFAULTS, ...props };const frame = useCurrentFrame();+ const { isRendering } = getRemotionEnvironment();// DOF fades out over the straightening leg of the scroll (82 → 98)const dofStrength = interpolate(frame, [82, 98], [5, 0], {@@ -147,7 +163,7 @@ export const SceneFlyIn: React.FC = () => {opacity: interpolate(frame, [METAL_FADE[0], METAL_FADE[1]], [1, 0], {extrapolateLeft: 'clamp', extrapolateRight: 'clamp',}),- background: [+ background: isRendering ? [// warm key light pooled on the pile`radial-gradient(1300px 900px at ${3000 + PILE_CX}px ${3000 + PILE_CY}px, rgba(255,214,150,0.20), rgba(255,190,120,0.06) 40%, transparent 68%)`,// brushed-metal grain: fine anisotropic streaks@@ -155,7 +171,7 @@ export const SceneFlyIn: React.FC = () => {'repeating-linear-gradient(100deg, rgba(0,0,0,0.16) 0px, rgba(0,0,0,0.16) 2px, transparent 4px, transparent 13px)',// broad steel sheen'linear-gradient(115deg, #2a2d33 0%, #383c44 28%, #22242a 55%, #33363e 78%, #1d1f24 100%)',- ].join(', '),+ ].join(', ') : METAL_PREVIEW,pointerEvents: 'none',}}/>@@ -375,7 +391,7 @@ export const SceneFlyIn: React.FC = () => {width: 2,height: 20,marginLeft: 2,- background: 'oklch(58% 0.13 65)',+ background: accent,}}/>) : null}@@ -400,7 +416,7 @@ export const SceneFlyIn: React.FC = () => {width: rad * 2,height: rad * 2,borderRadius: '50%',- border: '2px solid oklch(58% 0.13 65)',+ border: `2px solid ${accent}`,opacity: 1 - t,pointerEvents: 'none',}}@@ -418,7 +434,7 @@ export const SceneFlyIn: React.FC = () => {width: nano.w + 12,height: nano.h + 12,borderRadius: 16,- border: '3px solid oklch(58% 0.13 65)',+ border: `3px solid ${accent}`,boxShadow: '0 0 40px rgba(180,120,50,0.5)',opacity: interpolate(frame, [178, 181], [0.5, 1], {extrapolateLeft: 'clamp', extrapolateRight: 'clamp',diff --git a/template/src/aifl/live/SceneOpen.tsx b/template/src/aifl/live/SceneOpen.tsxindex 090a130..fe94f9d 100644--- a/template/src/aifl/live/SceneOpen.tsx+++ b/template/src/aifl/live/SceneOpen.tsx@@ -6,12 +6,22 @@ import layout from '../live-layout.json';const SERIF = 'ui-serif, Georgia, "Times New Roman", serif';const MONO = 'ui-monospace, SFMono-Regular, Menlo, monospace';-const INK = 'oklch(18% 0.006 82)';-const AMBER = 'oklch(52% 0.115 65)';-const INK2 = 'oklch(50% 0.006 82)';--const WORDMARK = 'AI Foundation Lab';-const KICKER = 'TEAM RESEARCH CONSOLE';+/** Context-level defaults (copy / sizes / palette), editable per clip in the+ * workbench. Motion timing below stays fixed. Hex = sRGB of the oklch tokens. */+export const SCENE_OPEN_DEFAULTS = {+ wordmark: 'AI Foundation Lab',+ wordmarkSize: 132,+ kicker: 'TEAM RESEARCH CONSOLE',+ kickerSize: 26,+ noteLine1: 'One card,',+ noteLine2: 'one project.',+ noteSize: 37,+ ink: '#13110f', // oklch(18% 0.006 82)+ amber: '#955905', // oklch(52% 0.115 65)+ muted: '#65635f', // oklch(50% 0.006 82)+ paper: '#faf7f2',+};+type SceneOpenProps = Partial<typeof SCENE_OPEN_DEFAULTS>;const PAGE_H = layout.projects.pageH;@@ -57,7 +67,11 @@ const BEAM_CORE = 'rgba(255,248,232,0.98)';* the soft page texture; the card springs up off the plane and hovers ~54f* while a beam runs two laps around its rounded outline; then it settles flush* back into its slot (lock→touchdown ≈ 3.3s). */-export const SceneOpen: React.FC = () => {+export const SceneOpen: React.FC<SceneOpenProps> = (props) => {+ const {+ wordmark: WORDMARK, wordmarkSize, kicker: KICKER, kickerSize, noteLine1, noteLine2, noteSize,+ ink: INK, amber: AMBER, muted: INK2, paper,+ } = { ...SCENE_OPEN_DEFAULTS, ...props };const frame = useCurrentFrame();const duration = AIFL_SHOTS.morning.duration; // 220@@ -195,7 +209,7 @@ export const SceneOpen: React.FC = () => {const rootOpacity = 1 - outT;return (- <AbsoluteFill style={{ backgroundColor: '#faf7f2', opacity: rootOpacity }}>+ <AbsoluteFill style={{ backgroundColor: paper, opacity: rootOpacity }}>{frame >= 84 ? (<AbsoluteFill style={{ opacity: macroIn }}><PageCam@@ -375,11 +389,11 @@ export const SceneOpen: React.FC = () => {><divstyle={{- fontFamily: SERIF, fontSize: 37, fontWeight: 600, color: INK,+ fontFamily: SERIF, fontSize: noteSize, fontWeight: 600, color: INK,lineHeight: 1.16, letterSpacing: '-0.012em',}}>- One card,+ {noteLine1}</div><div style={{ position: 'relative', display: 'inline-block' }}>{/* marker highlight sweeping in behind the words */}@@ -394,11 +408,11 @@ export const SceneOpen: React.FC = () => {<divstyle={{position: 'relative',- fontFamily: SERIF, fontStyle: 'italic', fontSize: 37, fontWeight: 600,+ fontFamily: SERIF, fontStyle: 'italic', fontSize: noteSize, fontWeight: 600,color: INK, lineHeight: 1.16, letterSpacing: '-0.012em',}}>- one project.+ {noteLine2}</div></div></div>@@ -458,7 +472,7 @@ export const SceneOpen: React.FC = () => {{/* wordmark: glyph-by-glyph letterpress with amber under-glint */}<divstyle={{- fontFamily: SERIF, fontSize: 132, fontWeight: 600, color: INK,+ fontFamily: SERIF, fontSize: wordmarkSize, fontWeight: 600, color: INK,letterSpacing: '-0.01em', lineHeight: 1, whiteSpace: 'pre',display: 'inline-flex', alignItems: 'flex-end',}}@@ -507,7 +521,7 @@ export const SceneOpen: React.FC = () => {{/* mono kicker typewriter + amber block cursor */}<divstyle={{- fontFamily: MONO, fontSize: 26, letterSpacing: '0.14em', color: INK2,+ fontFamily: MONO, fontSize: kickerSize, letterSpacing: '0.14em', color: INK2,marginTop: 30, textTransform: 'uppercase', height: 30,display: 'flex', justifyContent: 'center', alignItems: 'center',}}diff --git a/template/src/aifl/live/SceneOutroLive.tsx b/template/src/aifl/live/SceneOutroLive.tsxindex 594af05..3df2b9c 100644--- a/template/src/aifl/live/SceneOutroLive.tsx+++ b/template/src/aifl/live/SceneOutroLive.tsx@@ -5,7 +5,17 @@ import layout from '../live-layout.json';const SERIF = 'ui-serif, Georgia, "Times New Roman", serif';const MONO = 'ui-monospace, SFMono-Regular, Menlo, monospace';-const LETTERS = 'AI Foundation Lab'.split('');+/** Context-level defaults (copy / sizes / palette), editable per clip in the workbench. */+export const SCENE_OUTRO_DEFAULTS = {+ wordmark: 'AI Foundation Lab',+ wordmarkSize: 148,+ tagline: 'Team Research Console',+ taglineSize: 25,+ ink: '#13110f', // oklch(18% 0.006 82)+ amber: '#955905', // oklch(52% 0.115 65)+ muted: '#65635f', // oklch(50% 0.006 82)+};+type SceneOutroProps = Partial<typeof SCENE_OUTRO_DEFAULTS>;const PAGE_H = layout.projects.pageH;const WBR_PAGE_H = layout.wbr.pageH;@@ -63,7 +73,9 @@ const DUST = Array.from({ length: 20 }, (_, i) => ({* Launch-event treatment: a crane-in camera on the whole photo layer, ghost* trails + landing glows on the fly-ins, a stage light behind the wordmark,* gold dust and a single opening light sweep for atmosphere. */-export const SceneOutroLive: React.FC = () => {+export const SceneOutroLive: React.FC<SceneOutroProps> = (props) => {+ const { wordmark, wordmarkSize, tagline, taglineSize, ink, amber, muted } = { ...SCENE_OUTRO_DEFAULTS, ...props };+ const LETTERS = wordmark.split('');const frame = useCurrentFrame();const duration = AIFL_SHOTS.outro.duration; // 115@@ -350,7 +362,7 @@ export const SceneOutroLive: React.FC = () => {<AbsoluteFill style={{ justifyContent: 'center', alignItems: 'center', pointerEvents: 'none' }}><div style={{ textAlign: 'center' }}>- <div style={{ fontFamily: SERIF, fontSize: 148, fontWeight: 600, color: 'oklch(18% 0.006 82)', letterSpacing: `${wordSpacing}em`, display: 'flex' }}>+ <div style={{ fontFamily: SERIF, fontSize: wordmarkSize, fontWeight: 600, color: ink, letterSpacing: `${wordSpacing}em`, display: 'flex' }}>{LETTERS.map((ch, i) => {const delay = Math.round(42 + i * 1.8);const t = interpolate(frame, [delay, delay + 8], [0, 1], {@@ -375,17 +387,17 @@ export const SceneOutroLive: React.FC = () => {})}</div><div style={{ position: 'relative', height: 6, width: 260, margin: '34px auto 0' }}>- <div style={{ position: 'absolute', inset: 0, borderRadius: 3, background: 'oklch(52% 0.115 65)', transform: `scaleX(${rule})` }} />+ <div style={{ position: 'absolute', inset: 0, borderRadius: 3, background: amber, transform: `scaleX(${rule})` }} />{/* launch lower-third: 1px amber lines shooting out from the rule ends, then fading */}{ruleExt > 0 && ruleExtFade > 0 ? (<>- <div style={{ position: 'absolute', top: 2.5, height: 1, right: '100%', width: 190 * ruleExt, background: 'oklch(52% 0.115 65)', opacity: ruleExtFade }} />- <div style={{ position: 'absolute', top: 2.5, height: 1, left: '100%', width: 190 * ruleExt, background: 'oklch(52% 0.115 65)', opacity: ruleExtFade }} />+ <div style={{ position: 'absolute', top: 2.5, height: 1, right: '100%', width: 190 * ruleExt, background: amber, opacity: ruleExtFade }} />+ <div style={{ position: 'absolute', top: 2.5, height: 1, left: '100%', width: 190 * ruleExt, background: amber, opacity: ruleExtFade }} /></>) : null}</div>- <div style={{ fontFamily: MONO, fontSize: 25, letterSpacing: '0.14em', color: 'oklch(50% 0.006 82)', marginTop: 30, opacity: tag, textTransform: 'uppercase' }}>- Team Research Console+ <div style={{ fontFamily: MONO, fontSize: taglineSize, letterSpacing: '0.14em', color: muted, marginTop: 30, opacity: tag, textTransform: 'uppercase' }}>+ {tagline}</div></div></AbsoluteFill>diff --git a/template/src/aifl/live/ScenePapers.tsx b/template/src/aifl/live/ScenePapers.tsxindex 6397f8f..fe5ff3b 100644--- a/template/src/aifl/live/ScenePapers.tsx+++ b/template/src/aifl/live/ScenePapers.tsx@@ -8,7 +8,16 @@ const cards = layout.papers.cards;const PAGE_H = layout.papers.pageH;const MONO = 'ui-monospace, SFMono-Regular, Menlo, monospace';-const AMBER = 'oklch(52% 0.115 65)';++/** Context-level defaults (screen-space counter copy / palette), editable per clip in the workbench. */+export const SCENE_PAPERS_DEFAULTS = {+ title: 'Paper Radar',+ subtitle: 'Of 31 Fetched Today',+ counterSize: 96,+ amber: '#955905', // oklch(52% 0.115 65)+ muted: '#65635f', // oklch(50% 0.006 82)+};+type ScenePapersProps = Partial<typeof SCENE_PAPERS_DEFAULTS>;// paperN.png files, one per cardconst FILES = ['paper1.png', 'paper2.png', 'paper3.png', 'paper4.png', 'paper5.png'];@@ -32,7 +41,8 @@ const CAM_KEYS: CamKey[] = [/** Paper radar: daily paper cards stack up into place one by one (the list-stack* motif), each landing pressing the settled stack down and bouncing back, with* an amber highlight sweeping the linked-project name and a screen-space counter. */-export const ScenePapers: React.FC = () => {+export const ScenePapers: React.FC<ScenePapersProps> = (props) => {+ const { title, subtitle, counterSize, amber: AMBER, muted } = { ...SCENE_PAPERS_DEFAULTS, ...props };const frame = useCurrentFrame();// how many cards have already landed (t reached 1) — drives the counter@@ -170,14 +180,14 @@ export const ScenePapers: React.FC = () => {{/* screen-space counter, top-right */}<div style={{ position: 'absolute', top: 70, right: 96, textAlign: 'right', pointerEvents: 'none' }}>- <div style={{ fontFamily: MONO, fontSize: 24, letterSpacing: '0.16em', color: 'oklch(50% 0.006 82)', textTransform: 'uppercase' }}>- Paper Radar+ <div style={{ fontFamily: MONO, fontSize: 24, letterSpacing: '0.16em', color: muted, textTransform: 'uppercase' }}>+ {title}</div><div style={{ display: 'flex', justifyContent: 'flex-end', marginTop: 6 }}>- <DigitRoll key={landedCount} value={String(landedCount)} fontSize={96} color={AMBER} />+ <DigitRoll key={landedCount} value={String(landedCount)} fontSize={counterSize} color={AMBER} /></div>- <div style={{ fontFamily: MONO, fontSize: 20, letterSpacing: '0.12em', color: 'oklch(50% 0.006 82)', marginTop: 4, textTransform: 'uppercase' }}>- Of 31 Fetched Today+ <div style={{ fontFamily: MONO, fontSize: 20, letterSpacing: '0.12em', color: muted, marginTop: 4, textTransform: 'uppercase' }}>+ {subtitle}</div></div></>diff --git a/template/src/aifl/live/SceneWbr.tsx b/template/src/aifl/live/SceneWbr.tsxindex 3332e69..0155acd 100644--- a/template/src/aifl/live/SceneWbr.tsx+++ b/template/src/aifl/live/SceneWbr.tsx@@ -10,7 +10,6 @@ const PAGE_H = layout.wbr.pageH;const MONO = 'ui-monospace, SFMono-Regular, Menlo, monospace';const PAPER = '#fdfcfa';-const AMBER = 'oklch(52% 0.115 65)';const AMBER_WASH = 'oklch(95% 0.05 85)';// editor-title close-up → ease out to the whole page (both rails on camera)@@ -35,14 +34,34 @@ const WIPE = 8;// the live W28 entry, so W27…W22 drop in from above one after another (list// stacking, same vocabulary as the papers shot), landing below it. ----const SANS = 'ui-sans-serif, system-ui, -apple-system, sans-serif';-const PAST_WEEKS = [- { week: '2026 第 27 周', date: '7月3日', title: '2026-W27 · Foundation Lab Weekly' },- { week: '2026 第 26 周', date: '6月26日', title: '2026-W26 · Foundation Lab Weekly' },- { week: '2026 第 25 周', date: '6月19日', title: '2026-W25 · Foundation Lab Weekly' },- { week: '2026 第 24 周', date: '6月12日', title: '2026-W24 · Foundation Lab Weekly' },- { week: '2026 第 23 周', date: '6月5日', title: '2026-W23 · Foundation Lab Weekly' },- { week: '2026 第 22 周', date: '5月29日', title: '2026-W22 · Foundation Lab Weekly' },-];+/** One past week per line: `week|date|title` */+const PAST_WEEKS_DSL = [+ '2026 第 27 周|7月3日|2026-W27 · Foundation Lab Weekly',+ '2026 第 26 周|6月26日|2026-W26 · Foundation Lab Weekly',+ '2026 第 25 周|6月19日|2026-W25 · Foundation Lab Weekly',+ '2026 第 24 周|6月12日|2026-W24 · Foundation Lab Weekly',+ '2026 第 23 周|6月5日|2026-W23 · Foundation Lab Weekly',+ '2026 第 22 周|5月29日|2026-W22 · Foundation Lab Weekly',+].join('\n');+const parsePastWeeks = (dsl: string) =>+ dsl+ .split('\n')+ .map((l) => l.trim())+ .filter(Boolean)+ .map((l) => {+ const [week = '', date = '', title = ''] = l.split('|').map((s) => s.trim());+ return { week, date, title };+ });++/** Context-level defaults (kicker copy / past-week list / palette), editable per clip in the workbench. */+export const SCENE_WBR_DEFAULTS = {+ kicker: 'Weekly Brief · 2026-W28',+ kickerSize: 24,+ pastWeeks: PAST_WEEKS_DSL,+ amber: '#955905', // oklch(52% 0.115 65)+ muted: '#65635f', // oklch(50% 0.006 82)+};+type SceneWbrProps = Partial<typeof SCENE_WBR_DEFAULTS>;const WEEK_Y0 = 228; // just under the baked-in W28 entryconst WEEK_H = 56;const WEEK_CUE = (i: number) => 58 + i * 5; // after the left rail wipes on (46–56)@@ -62,7 +81,9 @@ const memberH2 = new Set<number>();* wipes left→right behind an amber caret), member names get an @-mention amber* wash, then the week list (left) and comment sidebar (right) wipe on stage —* the whole page, both rails included, settles into frame. */-export const SceneWbr: React.FC = () => {+export const SceneWbr: React.FC<SceneWbrProps> = (props) => {+ const { kicker, kickerSize, pastWeeks, amber: AMBER, muted } = { ...SCENE_WBR_DEFAULTS, ...props };+ const PAST_WEEKS = parsePastWeeks(pastWeeks);const frame = useCurrentFrame();// screen-space kicker stamps in@@ -284,15 +305,15 @@ export const SceneWbr: React.FC = () => {textAlign: 'right',fontFamily: MONO,- fontSize: 24,+ fontSize: kickerSize,letterSpacing: '0.14em',- color: 'oklch(50% 0.006 82)',+ color: muted,textTransform: 'uppercase',opacity: kick,pointerEvents: 'none',}}>- Weekly Brief · 2026-W28+ {kicker}</div></>);diff --git a/template/src/workbench.ts b/template/src/workbench.tsnew file mode 100644index 0000000..9f36904--- /dev/null+++ b/template/src/workbench.ts@@ -0,0 +1,211 @@+// Workbench manifest — how the film decomposes into editable clips.+//+// The shotcraft workbench (../../workbench, `node scripts/open.mjs <this project>`)+// reads `WORKBENCH` and rebuilds the film as tracks: shots / transitions / captions+// / SFX, each unit exactly where its <Sequence> sits in aifl/Main.tsx. Every table here is+// imported from Main.tsx, so editing the timeline there moves the workbench too —+// there is no second copy of the timing to drift.+//+// Editable properties per unit come from `schema` (text / colour / number / select /+// boolean fields; see workbench/src/cards/types.ts PropField). Each scene exports its+// `*_DEFAULTS` (copy, sizes, palette) and reads them as props with defaults, so the+// schema defaults below are the same object the scene renders with — the inspector+// shows exactly what is on screen, and an untouched import renders the original film.+// Motion timing (cues, eases, camera keys) is deliberately NOT exposed.+import { createElement, type FC } from 'react';+import {+ AIFL_SHOTS, AIFL_TOTAL, AiflMain, CAPTIONS, FLASH_CUTS, SFX, TITLE_CARDS, parseWords, sfxDuration,+} from './aifl/Main';+import { SceneOpen, SCENE_OPEN_DEFAULTS } from './aifl/live/SceneOpen';+import { SceneFlyIn, SCENE_FLYIN_DEFAULTS } from './aifl/live/SceneFlyIn';+import { SceneDetail, SCENE_DETAIL_DEFAULTS } from './aifl/live/SceneDetail';+import { ScenePapers, SCENE_PAPERS_DEFAULTS } from './aifl/live/ScenePapers';+import { SceneWbr, SCENE_WBR_DEFAULTS } from './aifl/live/SceneWbr';+import { SceneOutroLive, SCENE_OUTRO_DEFAULTS } from './aifl/live/SceneOutroLive';+import { PaperTitleCard, TITLE_CARD_DEFAULTS } from './aifl/PaperTitleCard';+import { Caption, CAPTION_DEFAULTS } from './aifl/Caption';+import { FlashCut } from './aifl/FlashCut';++// —— schema field helpers (plain data; shape = workbench PropField) ——+type Field = Record<string, unknown> & { type: string; key: string; label: string; default: unknown };+const text = (key: string, label: string, def: string): Field => ({ type: 'text', key, label, default: def });+const textarea = (key: string, label: string, def: string): Field => ({ type: 'textarea', key, label, default: def });+const color = (key: string, label: string, def: string): Field => ({ type: 'color', key, label, default: def });+const size = (key: string, label: string, def: number, min: number, max: number): Field => ({+ type: 'slider', key, label, default: def, min, max, step: 1, unit: 'px',+});++// —— adapters: prop-driven wrappers so the workbench can edit copy without touching the scenes ——+type TitleProps = Partial<typeof TITLE_CARD_DEFAULTS> & { text?: string; sub?: string; subDigits?: string; duration?: number };+export const TitleCardUnit: FC<TitleProps> = ({ text = '', sub = '', subDigits = '', duration = 55, ...style }) =>+ createElement(PaperTitleCard, {+ duration,+ words: parseWords(text),+ sub: sub || undefined,+ subDigits: subDigits || undefined,+ ...style,+ });+TitleCardUnit.displayName = 'PaperTitleCard';++type CaptionProps = Partial<typeof CAPTION_DEFAULTS> & { text?: string; bottom?: number; duration?: number };+export const CaptionUnit: FC<CaptionProps> = ({ text = '', bottom = 72, duration = 40, ...style }) =>+ createElement(Caption, { text, bottom, duration, ...style });+CaptionUnit.displayName = 'Caption';++export const FlashUnit: FC<{ duration?: number }> = ({ duration = 10 }) => createElement(FlashCut, { duration });+FlashUnit.displayName = 'FlashCut';++// —— schemas: one per parametrized component; defaults come straight from the *_DEFAULTS objects ——+const D = {+ open: SCENE_OPEN_DEFAULTS,+ flyin: SCENE_FLYIN_DEFAULTS,+ detail: SCENE_DETAIL_DEFAULTS,+ papers: SCENE_PAPERS_DEFAULTS,+ wbr: SCENE_WBR_DEFAULTS,+ outro: SCENE_OUTRO_DEFAULTS,+ title: TITLE_CARD_DEFAULTS,+ caption: CAPTION_DEFAULTS,+};++const SCHEMAS = {+ open: [+ text('wordmark', '字标', D.open.wordmark),+ size('wordmarkSize', '字标字号', D.open.wordmarkSize, 60, 200),+ text('kicker', '眉题(打字机)', D.open.kicker),+ size('kickerSize', '眉题字号', D.open.kickerSize, 14, 48),+ text('noteLine1', '悬浮批注 · 上行', D.open.noteLine1),+ text('noteLine2', '悬浮批注 · 下行(斜体+高亮)', D.open.noteLine2),+ size('noteSize', '批注字号', D.open.noteSize, 20, 64),+ color('ink', '墨色', D.open.ink),+ color('amber', '琥珀强调色', D.open.amber),+ color('muted', '灰墨(眉题)', D.open.muted),+ color('paper', '纸底', D.open.paper),+ ],+ flyin: [+ text('query', '搜索框输入的词', D.flyin.query),+ color('accent', '琥珀强调色(光标 / 点击涟漪 / 选中框)', D.flyin.accent),+ ],+ detail: [color('accent', '嵌入接缝色', D.detail.accent)],+ papers: [+ text('title', '右上角标题', D.papers.title),+ text('subtitle', '右上角副标', D.papers.subtitle),+ size('counterSize', '计数器字号', D.papers.counterSize, 48, 160),+ color('amber', '琥珀强调色', D.papers.amber),+ color('muted', '灰墨', D.papers.muted),+ ],+ wbr: [+ text('kicker', '右上角眉题', D.wbr.kicker),+ size('kickerSize', '眉题字号', D.wbr.kickerSize, 14, 48),+ textarea('pastWeeks', '左栏往期周报(每行:周|日期|标题)', D.wbr.pastWeeks),+ color('amber', '琥珀强调色', D.wbr.amber),+ color('muted', '灰墨', D.wbr.muted),+ ],+ outro: [+ text('wordmark', '字标', D.outro.wordmark),+ size('wordmarkSize', '字标字号', D.outro.wordmarkSize, 60, 220),+ text('tagline', '副标', D.outro.tagline),+ size('taglineSize', '副标字号', D.outro.taglineSize, 14, 48),+ color('ink', '墨色', D.outro.ink),+ color('amber', '琥珀强调色', D.outro.amber),+ color('muted', '灰墨', D.outro.muted),+ ],+ title: [+ textarea('text', '文案(*词* = 琥珀强调)', ''),+ text('sub', '副标(等宽小字)', ''),+ text('subDigits', '副标滚动数字', ''),+ size('fontSize', '字号', D.title.fontSize, 60, 160),+ color('ink', '墨色', D.title.ink),+ color('accent', '强调色', D.title.accent),+ color('muted', '副标灰墨', D.title.muted),+ color('paper', '纸底', D.title.paper),+ ],+ caption: [+ text('text', '解说文案', ''),+ { type: 'slider', key: 'bottom', label: '底距', default: 72, min: 20, max: 400, step: 2, unit: 'px' } as Field,+ size('fontSize', '字号', D.caption.fontSize, 14, 48),+ color('color', '文字色', D.caption.color),+ color('accent', '方点色', D.caption.accent),+ ],+};++type ShotKey = keyof typeof AIFL_SHOTS;+const scene = <T extends Record<string, unknown>>(+ key: ShotKey, label: string, component: FC<Partial<T>>, defaults: T, schema: Field[],+) => ({+ id: key,+ label,+ from: AIFL_SHOTS[key].from,+ duration: AIFL_SHOTS[key].duration,+ component: component as FC<Record<string, unknown>>,+ props: { ...defaults },+ schema,+});+const title = (key: keyof typeof TITLE_CARDS, label: string) => {+ const t = TITLE_CARDS[key] as { text: string; sub?: string; subDigits?: string };+ return {+ id: key,+ label,+ from: AIFL_SHOTS[key].from,+ duration: AIFL_SHOTS[key].duration,+ component: TitleCardUnit as FC<Record<string, unknown>>,+ props: { text: t.text, sub: t.sub ?? '', subDigits: t.subDigits ?? '', ...D.title },+ schema: SCHEMAS.title,+ durationProp: 'duration',+ cardId: 'title-card',+ cardName: '字卡 · Ink Press',+ accent: '#b5651d',+ };+};++export const WORKBENCH = {+ name: 'Ink Press · AIFL promo',+ fps: 30,+ width: 1920,+ height: 1080,+ total: AIFL_TOTAL,+ background: '#f2eee6',+ shots: [+ scene('morning', 'S1 墨线开场 → 全景 → 主角卡', SceneOpen, D.open, SCHEMAS.open),+ title('card1', '字卡① one place'),+ scene('table', 'S3 牌堆 → 发牌 → 搜索筛选', SceneFlyIn, D.flyin, SCHEMAS.flyin),+ scene('macro', 'S4 详情页宏观特写', SceneDetail, D.detail, SCHEMAS.detail),+ title('card2', '字卡② Paper Radar'),+ scene('chart', 'S6 论文雷达堆叠', ScenePapers, D.papers, SCHEMAS.papers),+ title('cardWbr', '字卡③ weekly report'),+ scene('wbr', 'S8 周报自己写自己', SceneWbr, D.wbr, SCHEMAS.wbr),+ title('card3', '字卡④ same page'),+ scene('outro', 'S10 合影组装 → 铅印字标', SceneOutroLive, D.outro, SCHEMAS.outro),+ ],+ transitions: FLASH_CUTS.map((cut, i) => ({+ id: `flash-${i + 1}`,+ label: `闪白 @${cut}f`,+ from: cut - 5,+ duration: 10,+ component: FlashUnit as FC<Record<string, unknown>>,+ durationProp: 'duration',+ cardId: 'flash-cut',+ cardName: '暖白闪转场',+ })),+ captions: CAPTIONS.map((c, i) => ({+ id: `caption-${i + 1}`,+ label: c.text,+ from: c.from,+ duration: c.duration,+ component: CaptionUnit as FC<Record<string, unknown>>,+ props: { text: c.text, bottom: 72, ...D.caption },+ schema: SCHEMAS.caption,+ durationProp: 'duration',+ cardId: 'caption',+ cardName: '解说字幕条',+ })),+ sfx: SFX.map((s) => ({+ from: s.from,+ duration: sfxDuration(s),+ src: `audio/${s.src}`,+ volume: s.volume,+ })),+ // z-order of the overlay layers, top → bottom (flash cuts sit above the captions in Main.tsx)+ order: ['transitions', 'captions', 'overlays'] as const,+ // the untouched film, registered in the workbench Studio as `ProjOriginal` for frame-by-frame comparison+ original: AiflMain as FC<Record<string, unknown>>,+};diff --git a/workbench/.gitignore b/workbench/.gitignorenew file mode 100644index 0000000..c67a2fd--- /dev/null+++ b/workbench/.gitignore@@ -0,0 +1,24 @@+node_modules/+dist/+*.tsbuildinfo+exports/+.render-public/+.dev.pid+.dev.log++# 按本机链接生成(scripts/gen-index.mjs:prepare / predev / prebuild / prestudio 都会跑)+src/cards/demo-index.ts+src/cards/demoMeta.ts+src/mediaManifest.ts+src/projMeta.ts++# 机器本地符号链接:指向外部成片工程的 src/(绝对路径,不进库)。+# 链接方法见 README「接入成片工程」;未链接时自动使用 proj-stub 降级。+proj++# public/ 全部由 scripts/open.mjs / gen-index.mjs 按本机链接生成+public/*+!public/.gitkeep++# 导入 vs 原片逐帧对照产物(scripts/parity.mjs)+.parity/diff --git a/workbench/GUIDE.md b/workbench/GUIDE.mdnew file mode 100644index 0000000..3194d46--- /dev/null+++ b/workbench/GUIDE.md@@ -0,0 +1,129 @@+# 动效工作台 · 图文指南++成片交付后,在浏览器里继续改:镜头挪位、变速、换字、调色、加动效、加音效,改完一键导出。+本页按界面区域介绍每个功能。接入契约与制作规范见 [references/workbench.md](../references/workbench.md),+技术说明见 [workbench/README.md](README.md)。++## 怎么打开++skill 在交付收尾时会自动执行下面这条命令并打开浏览器;也可以随时手动运行:++```bash+node workbench/scripts/open.mjs <成片工程目录> # 首次运行会自动安装依赖+```++- 地址固定为 `http://localhost:5198/`,带 `?import=project` 打开时会按成片清单把片子拆成多轨。+- 同一版成片再次打开时保留你上次的改动;成片代码变了(清单内容哈希不同)才重新导入,旧改动压进撤销栈,⌘Z 可找回。+- 所有改动自动保存在浏览器本地(localStorage),关页不丢。停止服务:`kill $(cat workbench/.dev.pid)`。++## 界面总览++++五个区域,从左到右、从上到下:++| 区域 | 位置 | 干什么 |+|---|---|---|+| 顶栏 | 顶部 | 工程名、撤销 / 重做、导出成片、导出 / 导入 JSON、重置示例 |+| 素材库 | 左栏 | 成片单元、工程素材、216 张 demo 动效、音效与 BGM;点击预览、拖拽上轨 |+| 预览 | 中央 | Remotion Player 实时预览 + 走带控制 |+| 属性面板 | 右栏 | 选中片段的文案 / 字号 / 颜色、时间与变速、图层 |+| 时间轨 | 底部 | 多轨编辑:挪动、裁边、分割、复制、变速、层序 |++三条分隔线都可拖动,调整左右栏宽度和时间轨高度,尺寸会记住。++## 顶栏++++- **工程名**:直接点击编辑,导出的 MP4 / JSON 文件名用它。+- **撤销 / 重做**(⌘Z / ⇧⌘Z):每次编辑手势一步;同一控件 0.8 秒内的连续输入合并为一步。+- **导出成片**:把当前工程交给 dev server 用 Remotion 渲染,按钮上显示进度百分比;完成后变成「✓ 已导出 · 显示文件」,点它在 Finder 里定位 MP4(输出在 `workbench/exports/`)。导出时长精确到最后一个片段结束。+- **导出 JSON / 导入**:工程是一份 JSON,可以存档、发给别人、或贴进 Remotion Studio 的 Props 面板。+- **重置示例**:换回内置演示工程(可撤销)。++## 素材库++三个 tab,所有条目都是**点击 = 在中央预览,拖到时间轨 = 添加片段**。++### 素材++++- **导入成片**:按成片工程的 `src/workbench.ts` 清单重新拆解导入(一步撤销)。+- **成片单元(可再加一份)**:片子里的每种镜头、字卡、字幕条、转场各是一张卡,标着时长与「可调参」。想在别处再来一段同款字卡,拖一份上轨即可。+- **素材文件(工程 public/)**:成片工程自带的图片、视频,按目录折叠分组。++### 动效库++++- 「工作台」组是 4 张原生参数化卡:通用文字、Ink Press 字卡、解说字幕条、暖白闪转场,文案颜色字号全部可调。+- 下面按画廊分类列出全部 **216 张 demo 动效**(开场与品牌、文字排版、数据图表……)。缩略图是定妆帧,**鼠标悬停才循环播放**,不会满屏乱闪。+- 标签写着卡片时长;标「可调参」的卡在属性面板里有内容与样式栏。demo 卡上轨后可裁剪、变速、定格、做图层变换。++### 音效++++- **本片音频**:成片工程 `public/` 里的音效,右侧「片中 ×N」是原片里的使用次数。+- **BGM 备选**与**音效库**(149 条,按 camera / counter / crowd… 分类折叠)来自仓库 `assets/audio/`。+- 音频片段上轨后可裁入、变速(playbackRate)、调音量,不会哑音。++## 预览与走带++++- 中央是 Remotion Player,画面与最终渲染逐帧一致(像素级校验过);改属性面板或拖动片段,预览即时跟随。+- 走带条:⏮ 回到开头、▶ / ⏸ 播放(空格)、时间码(秒.帧 / 总长)、循环开关、画幅与帧率。+- 点击画面本身也能播放 / 暂停;← / → 逐帧步进,按住 Shift 一次 10 帧。+- 点素材库任意条目会切到**素材预览**模式,单独循环播放这张卡;点「返回工程」回到时间轴预览:++++## 属性面板++++选中时间轨上的片段后,右栏分三节:++- **内容与样式**:由卡片声明的 schema 自动生成——文本、多行文本、滑杆、颜色、下拉、开关。成片里的镜头把语境级参数(字标、眉题、批注、字号、墨色、琥珀强调色、纸底……)都暴露在这里;动效节奏(弹入时长、缓动、相机路径)故意不暴露,避免调坏品相。+- **时间与变速**:起点、时长(秒)、变速滑杆与 0.5× / 1× / 1.5× / 2× 快捷键、裁入点、「↺ 恢复原始时长」。卡片帧率与工程帧率不一致时这里会有一行提示。+- **图层**:不透明度、缩放、位移 X / Y。++底部「删除片段」等价于 Delete 键。++## 时间轨++++- **工具条**:✂ 分割(S,在播放头处切开选中片段)、复制(⌘D,接在原片段之后)、删除(Delete)、+ 轨道(加在最上层)、适配(缩放到刚好看全)、缩放滑杆。+- **轨道头**:拖动左侧把手上下调整层序(上层盖住下层);👁 隐藏 / 显示整轨;× 删除轨道。导入成片时轨序与原片 z 序一致:转场 > 字幕 > 叠加层 > 镜头 > 音乐 > 音效。+- **片段**:拖动本体挪位置(自动吸附到其他片段的起止点)、上下拖到别的轨、拖两侧把手裁边(左边裁入、右边裁出);片段上的徽标显示时长、变速倍率、裁入秒数、不透明度。+- **标尺**:点击或拖动标尺跳转播放头;红线是当前播放头。+- 同轨允许片段重叠(层级用多轨表达)。++## 快捷键++| 键 | 作用 |+|---|---|+| 空格 | 播放 / 暂停 |+| ← / → | 逐帧步进;按住 Shift 一次 10 帧 |+| S | 在播放头处分割选中片段 |+| ⌘D | 复制选中片段 |+| Delete / Backspace | 删除选中片段 |+| ⌘Z / ⇧⌘Z | 撤销 / 重做 |++## 一次典型的修改++1. 交付后工作台自动打开,片子已拆好在时间轨上。+2. 点时间轨上的「S1 墨线开场」,右栏把「字标」改成新品牌名、拖大「字标字号」,预览立刻更新。+3. 觉得某段字幕太早,直接拖字幕片段挪后一点;想让镜头慢一点,变速滑到 0.8×。+4. 从「动效库」拖一张「数据晨光开场」到最上层轨道当片头,从「音效」拖一条 whoosh 对齐它的起点。+5. 点「导出成片」,等进度走完,「显示文件」拿到 MP4。++## 进阶++- 让自己的成片能被逐属性编辑:镜头组件把语境参数做成 props + schema、写一份 `src/workbench.ts` 清单,见 [references/workbench.md](../references/workbench.md) §2–§3。+- 验证拆解无损:`cd workbench && npm run parity`,逐帧比对导入结果与原片。+- Remotion Studio 视角:`cd workbench && npm run studio`,每张卡都是一个合成,Props 面板与工作台 schema 同源。diff --git a/workbench/README.md b/workbench/README.mdnew file mode 100644index 0000000..8b819b8--- /dev/null+++ b/workbench/README.md@@ -0,0 +1,108 @@+# ShotCraft Workbench · 动效工作台++> 面向使用者的图文指南(各区域与功能、截图)见 [GUIDE.md](GUIDE.md);本文是技术说明。++剪映式的成片后期台:多轨时间线 + 素材库(成片单元 / 216 个镜头卡 demo / 音效库 / 背景)++schema 属性面板 + Remotion 实时预览 + 一键导出。skill 交付成片后由+`scripts/open.mjs` 自动打开,用户不用回到代码里改 tsx 就能挪镜头、改文案、换音效、变速、导出。+移植自 [video-talkcraft/workbench](https://github.com/Vincentwei1021/video-talkcraft),+数据模型与 UI 同源,卡片来源与成片接入方式按本仓库改造。++方法论与成片接入契约见 [`references/workbench.md`](../references/workbench.md)。++```bash+# 交付后(在 skill 根目录):链接成片工程 → 生成索引 → 起 dev server → 浏览器打开并自动导入+node workbench/scripts/open.mjs <成片工程目录>++# 单独把玩(不接成片):+cd workbench && npm install && npm run dev # http://localhost:5198+```++## 能做什么++- **素材库四 tab**:素材(成片单元 + 工程 public/ 里的图片视频)· 动效库(demos/ 216 个 demo 按画廊+ 10 类折叠,有本地样片的循环预览,没样片的卡显示定妆帧、悬停才播放)· 音效(本片音频 + `assets/audio/sfx` 149 个音效按 16 类 ++ 5 首 BGM)· 背景(纸底 / 纯白 / 墨黑 / 纸底提亮)。**点击=中屏预览,拖拽到时间轨=添加**+- **时间轨**:多轨道(上层覆盖下层,拖轨道头排序)、拖动、两端裁剪、跨轨、吸附、分割(S)、+ 复制(⌘D)、缩放/适配;三栏与时间轨的分隔条都能拖+- **属性面板(schema 驱动)**:成片单元与工作台原生卡的文案 / 颜色 / 字号 / 位置逐项可调;+ 通用 clip 属性:起点 / 时长(定格延长)/ 变速 0.25×–4× / 裁入点 / 不透明度 / 缩放 / 位移+- **成片拆解导入**:按工程 `src/workbench.ts` 清单一键拆成 镜头 / 转场 / 字幕 / 叠加层 / 音乐 /+ 音效 的多轨工程,落点与原 `<Sequence>` 逐帧一致(`npm run parity` 可证)+- **保存**:自动存 localStorage(800ms 防抖),导出/导入工程 JSON,撤销/重做+- **导出成片**:顶栏「导出成片」→ dev server 内起 Remotion CLI 渲当前工程为 MP4 → `exports/`+- **Remotion Studio**:`npm run studio`(每张卡 Zod schema 自动生成;`ProjImported` / `ProjOriginal` 对照)+- **无损校验**:`npm run parity`——退出码 0 一致 / 1 有差异 / 2 无法比对(缺 python3+Pillow),不假绿++## 接入成片工程++```bash+node scripts/open.mjs <成片工程目录> # 目录 = 含 package.json 的那层,源码在 src/ 或 remotion/src/+node scripts/open.mjs # 沿用上次链接的工程(只重启/复用 dev server)+node scripts/open.mjs <dir> --no-open # 不弹浏览器+```++做的事:`ln -sfn <工程>/src proj`、把 `<工程>/public/*` 逐项链接进 `public/`、跑 `gen-index`、+起 vite(5198)、打开 `http://localhost:5198/?import=project`(存档不是这一版成片时按清单自动导入,+旧存档进撤销栈;是这一版则保留你的改动)。全部是机器本地符号链接,不进库。++给了工程目录就会重启 dev server(`@proj` 别名在 vite 启动时定死),但只重启本脚本自己起的那个+(`.dev.pid` + 进程命令行核实,pid 被复用不会误杀);端口被手动 `npm run dev` 占着时直接报错,+请先停掉它或加 `--port`。++工程要提供 `src/workbench.ts` 清单才能拆解导入(写法见 references/workbench.md §2,范例+`template/src/workbench.ts`);没有清单也能打开,只是素材 tab 没有导入按钮。++## 快捷键++| 键 | 动作 |+|---|---|+| 空格 | 播放 / 暂停 |+| S | 在播放头处分割选中片段 |+| Delete / Backspace | 删除选中片段 |+| ⌘D | 复制选中片段 |+| ⌘Z / ⇧⌘Z | 撤销 / 重做 |+| ← / →(+Shift) | 步进 1 帧(10 帧) |++## 架构++```+src/+ types.ts 数据模型:Project → Track → Clip(时间量单位=帧)+ store.ts zustand 状态(撤销栈 / 自动保存 / ?import=project 自动导入)+ projectImport.ts 清单 → 多轨工程(镜头/转场/字幕/叠加层/音乐/音效贪心装箱)+ dnd.ts 素材库 → 时间轨拖拽协议+ preview/Composition.tsx clip → <Sequence> + TimeRemap(Freeze) / 媒体原生通道 / durationProp 注入+ preview/PreviewPanel.tsx Player + 走带 + 素材点击预览+ timeline/ 标尺 / 轨道 / clip 拖拽裁剪 / 拖放接收+ panels/ 素材库四 tab / schema 属性面板+ remotion/ Remotion CLI 入口(Studio + 渲染导出 + parity 共用)+ cards/+ types.ts CardDef / PropField(schema 字段类型)+ manifest.ts 成片工程清单类型 WorkbenchManifest+ registry.ts 注册表:原生卡 + 媒体卡 + 背景卡 + 成片单元卡 + demo 卡+ demoCards.ts demos/ 全量接入(demo-index.ts + demoMeta.ts 由 gen-index 生成)+ projectCards.ts 清单单元 → 成片单元卡(同 cardId / 同组件共用一张)+ inkpress/ 参数化原生卡:字卡 / 解说字幕条 / 暖白闪转场(源出 template 组件)+ text-basic.tsx 通用文字卡+scripts/+ gen-index.mjs 静态索引 + 素材清单 + 仓库级链接(prepare / predev / prebuild / prestudio 自动跑)+ open.mjs 交付后一键打开(链接工程 → gen → dev server → 浏览器)+ parity.mjs ProjImported vs ProjOriginal 逐帧比对+proj-stub/ 未链接成片工程时的降级实现+demosrc -> ../demos demo 源码(相对符号链接,进库)+public/ 全部由脚本按本机链接生成(不进库)+remotion.config.ts CLI 打包配置(@proj/@demos 别名 + jpeg/angle/并发 4,与 template 同口径)+vite.config.ts Vite + 导出渲染 API(POST /api/export → Remotion CLI)+```++## 已知边界++- 同轨允许 clip 重叠(层级用多轨表达);变速为匀速重映射(无曲线变速)+- 卡片库按 30fps 编排、成片单元按成片 fps;非 30fps 工程里拖卡上轨会换算时长 + 反向变速(媒体卡只换算时长),播放速度不变;按秒计时(spring)的 demo 节奏会偏,面板有提示+- demo 卡 schema 为空:能裁剪 / 变速 / 定格 / 图层变换,不能改文案颜色——要可调参先把 CONFIG 提成 props+- 导出走 dev server(`npm run dev` 时可用)。Remotion 静态服务器拒绝服务符号链接,所以导出前+ 自动把 `public/` 解引用同步到 `.render-public/`;命令行手动渲染同理:+ `npx remotion render src/remotion/index.ts Main out.mp4 --props=<{"project":…,"renderExact":true}> --public-dir=.render-public`+- 工程源码以符号链接方式打包进工作台,`react`/`remotion` 解析到工作台的 node_modules+ (remotion 4.0.484 / React 19;已装 `@remotion/motion-blur` `@remotion/three` `three` `@react-three/fiber` `@remotion/google-fonts`)diff --git a/workbench/demosrc b/workbench/demosrcnew file mode 120000index 0000000..2c7c3a5--- /dev/null+++ b/workbench/demosrc@@ -0,0 +1 @@+../demos\ No newline at end of filediff --git a/workbench/docs/card-preview.png b/workbench/docs/card-preview.pngnew file mode 100644index 0000000..3ab4ae7Binary files /dev/null and b/workbench/docs/card-preview.png differdiff --git a/workbench/docs/inspector.png b/workbench/docs/inspector.pngnew file mode 100644index 0000000..d44b7afBinary files /dev/null and b/workbench/docs/inspector.png differdiff --git a/workbench/docs/library-cards.png b/workbench/docs/library-cards.pngnew file mode 100644index 0000000..f0be024Binary files /dev/null and b/workbench/docs/library-cards.png differdiff --git a/workbench/docs/library-media.png b/workbench/docs/library-media.pngnew file mode 100644index 0000000..170673eBinary files /dev/null and b/workbench/docs/library-media.png differdiff --git a/workbench/docs/library-sfx.png b/workbench/docs/library-sfx.pngnew file mode 100644index 0000000..8913100Binary files /dev/null and b/workbench/docs/library-sfx.png differdiff --git a/workbench/docs/overview.png b/workbench/docs/overview.pngnew file mode 100644index 0000000..7663965Binary files /dev/null and b/workbench/docs/overview.png differdiff --git a/workbench/docs/preview.png b/workbench/docs/preview.pngnew file mode 100644index 0000000..ca8752dBinary files /dev/null and b/workbench/docs/preview.png differdiff --git a/workbench/docs/timeline.png b/workbench/docs/timeline.pngnew file mode 100644index 0000000..cf8ce8dBinary files /dev/null and b/workbench/docs/timeline.png differdiff --git a/workbench/docs/topbar.png b/workbench/docs/topbar.pngnew file mode 100644index 0000000..8ecb9c1Binary files /dev/null and b/workbench/docs/topbar.png differdiff --git a/workbench/index.html b/workbench/index.htmlnew file mode 100644index 0000000..ae6a8fc--- /dev/null+++ b/workbench/index.html@@ -0,0 +1,12 @@+<!doctype html>+<html lang="zh-CN">+ <head>+ <meta charset="UTF-8" />+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />+ <title>ShotCraft Workbench · 动效工作台</title>+ </head>+ <body>+ <div id="root"></div>+ <script type="module" src="/src/main.tsx"></script>+ </body>+</html>diff --git a/workbench/package-lock.json b/workbench/package-lock.jsonnew file mode 100644index 0000000..a2bd0e9--- /dev/null+++ b/workbench/package-lock.json@@ -0,0 +1,5088 @@+{+ "name": "shotcraft-workbench",+ "version": "0.1.0",+ "lockfileVersion": 3,+ "requires": true,+ "packages": {+ "": {+ "name": "shotcraft-workbench",+ "version": "0.1.0",+ "dependencies": {+ "@react-three/fiber": "9.6.1",+ "@remotion/google-fonts": "4.0.484",+ "@remotion/motion-blur": "4.0.484",+ "@remotion/player": "4.0.484",+ "@remotion/three": "4.0.484",+ "@remotion/zod-types": "4.0.484",+ "react": "19.2.7",+ "react-dom": "19.2.7",+ "remotion": "4.0.484",+ "three": "0.185.1",+ "zod": "4.3.6",+ "zustand": "^5.0.0"+ },+ "devDependencies": {+ "@remotion/cli": "4.0.484",+ "@types/react": "19.2.17",+ "@types/react-dom": "19.2.3",+ "@types/three": "^0.185.0",+ "@vitejs/plugin-react": "^4.3.0",+ "typescript": "~5.9.0",+ "vite": "^6.0.0"+ }+ },+ "node_modules/@babel/code-frame": {+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.29.7.tgz",+ "integrity": "sha512-Aup7aUOfpbAUg2ROOJN6Iw5f9DMBlzu0mIkm/malLQFN/YQgO48wCj0Kxa3sEHJvPVFg7siR+qRInwXd2qhQKw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-validator-identifier": "^7.29.7",+ "js-tokens": "^4.0.0",+ "picocolors": "^1.1.1"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/compat-data": {+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.29.7.tgz",+ "integrity": "sha512-locTkQyKvwIEgBzVrn8693ebc97F2U8ZHjbXwDXJ5Fn2TCpNwTlKcaKLkdHop5c/icOFE7qt7Q9JC5hnKNa6Gg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/core": {+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.29.7.tgz",+ "integrity": "sha512-RgHBCvtjbOK2gXSNBNIkNoEc9qoVEtau3hj8gEqKQuL3HZAibKarWFEI3Lfm6EYKkLalOh8eSrj9b+ch9H/VBA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/code-frame": "^7.29.7",+ "@babel/generator": "^7.29.7",+ "@babel/helper-compilation-targets": "^7.29.7",+ "@babel/helper-module-transforms": "^7.29.7",+ "@babel/helpers": "^7.29.7",+ "@babel/parser": "^7.29.7",+ "@babel/template": "^7.29.7",+ "@babel/traverse": "^7.29.7",+ "@babel/types": "^7.29.7",+ "@jridgewell/remapping": "^2.3.5",+ "convert-source-map": "^2.0.0",+ "debug": "^4.1.0",+ "gensync": "^1.0.0-beta.2",+ "json5": "^2.2.3",+ "semver": "^6.3.1"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/babel"+ }+ },+ "node_modules/@babel/core/node_modules/@babel/parser": {+ "version": "7.29.8",+ "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.8.tgz",+ "integrity": "sha512-E8lTAYNB1KW+FH+VGJuZM1ioAx2E6oVlvQFRrf5P8ZZmsiJXYAD9vTFV7yyEURNzgh1dFqMZuO6tUwcARbqFCA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/types": "^7.29.8"+ },+ "bin": {+ "parser": "bin/babel-parser.js"+ },+ "engines": {+ "node": ">=6.0.0"+ }+ },+ "node_modules/@babel/core/node_modules/@babel/types": {+ "version": "7.29.8",+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.8.tgz",+ "integrity": "sha512-Vj1jF3cPfxg7OAfoI7QnVKLoILlm2JF9pnVHrX8qx7AHMiYWT+NDAA7jChlNgRS4WTLc/fD1lXLmPixluj+3Gg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-string-parser": "^7.29.7",+ "@babel/helper-validator-identifier": "^7.29.7"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/core/node_modules/semver": {+ "version": "6.3.1",+ "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz",+ "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==",+ "dev": true,+ "license": "ISC",+ "bin": {+ "semver": "bin/semver.js"+ }+ },+ "node_modules/@babel/generator": {+ "version": "7.29.8",+ "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.29.8.tgz",+ "integrity": "sha512-gZbepsdh3WDtgZKWL+vTPh71LSBrm/Y4/QDZBVCcYfmeTEEuoOYwlSy+G1StfJg+/Zy550u/3TATbm7qDbbMtg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/parser": "^7.29.8",+ "@babel/types": "^7.29.8",+ "@jridgewell/gen-mapping": "^0.3.12",+ "@jridgewell/trace-mapping": "^0.3.28",+ "jsesc": "^3.0.2"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/generator/node_modules/@babel/parser": {+ "version": "7.29.8",+ "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.8.tgz",+ "integrity": "sha512-E8lTAYNB1KW+FH+VGJuZM1ioAx2E6oVlvQFRrf5P8ZZmsiJXYAD9vTFV7yyEURNzgh1dFqMZuO6tUwcARbqFCA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/types": "^7.29.8"+ },+ "bin": {+ "parser": "bin/babel-parser.js"+ },+ "engines": {+ "node": ">=6.0.0"+ }+ },+ "node_modules/@babel/generator/node_modules/@babel/types": {+ "version": "7.29.8",+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.8.tgz",+ "integrity": "sha512-Vj1jF3cPfxg7OAfoI7QnVKLoILlm2JF9pnVHrX8qx7AHMiYWT+NDAA7jChlNgRS4WTLc/fD1lXLmPixluj+3Gg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-string-parser": "^7.29.7",+ "@babel/helper-validator-identifier": "^7.29.7"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-compilation-targets": {+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.29.7.tgz",+ "integrity": "sha512-wem6WaBj4NaVYVdNhLPPVacES6ZJ+KBBfSkTMD3YZxbP3rm3Di85tJU5ljaUNhaOynt+Aj0xruhYuzQBt8n71g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/compat-data": "^7.29.7",+ "@babel/helper-validator-option": "^7.29.7",+ "browserslist": "^4.24.0",+ "lru-cache": "^5.1.1",+ "semver": "^6.3.1"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-compilation-targets/node_modules/semver": {+ "version": "6.3.1",+ "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz",+ "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==",+ "dev": true,+ "license": "ISC",+ "bin": {+ "semver": "bin/semver.js"+ }+ },+ "node_modules/@babel/helper-globals": {+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-7.29.7.tgz",+ "integrity": "sha512-3nQVUAtvkKH9zahfWgw96Jc/uFOmjACE1kQz82E2lqWmHBgjzbNlsC22nuQTfahmWeQtTq5nQ/4Nnd2A1wj4zA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-module-imports": {+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.29.7.tgz",+ "integrity": "sha512-ejHwrQQYcm9xnTivShn2IDOlIzInN34AXskvq9QicvCtEzq1Vzclu/tKF8Jq1Cg8JG2GL6/EmjgsCT7lXepE3g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/traverse": "^7.29.7",+ "@babel/types": "^7.29.7"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-module-imports/node_modules/@babel/types": {+ "version": "7.29.8",+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.8.tgz",+ "integrity": "sha512-Vj1jF3cPfxg7OAfoI7QnVKLoILlm2JF9pnVHrX8qx7AHMiYWT+NDAA7jChlNgRS4WTLc/fD1lXLmPixluj+3Gg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-string-parser": "^7.29.7",+ "@babel/helper-validator-identifier": "^7.29.7"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-module-transforms": {+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.29.7.tgz",+ "integrity": "sha512-UPUVSyXbOh627KiCIGQSgwWzGeBKLkaJ9PJEdrngIwMSzxLR4jS4+f1f1jb7VzBbg8nFLaYotvVPFCTqdrmTAg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-module-imports": "^7.29.7",+ "@babel/helper-validator-identifier": "^7.29.7",+ "@babel/traverse": "^7.29.7"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0"+ }+ },+ "node_modules/@babel/helper-plugin-utils": {+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.29.7.tgz",+ "integrity": "sha512-G7sHYigPY17oO5SYWnfD/0MTBwVR781S/JI643e/JhUYgVgWE/61SoW3NH9KWUKyKq5LVh3npif99Wkt6j86Jw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-string-parser": {+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.29.7.tgz",+ "integrity": "sha512-Pb5ijPrZ89GDH8223L4UP8i6QApWxs04RbPQJTeWDV0/keR2E36MeKnyr6LYmUUvqRRI+Iv87SuF1W6ErINzYw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-validator-identifier": {+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.29.7.tgz",+ "integrity": "sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-validator-option": {+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.29.7.tgz",+ "integrity": "sha512-N9ZErrD+yW5geCDtBqnOoxmR8+tNKiGuxKlDpuJxfsqpa2dFcexaziGAE/qoHLiDDreVNMupxGmSoNlyvsA3gw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helpers": {+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.29.7.tgz",+ "integrity": "sha512-1k2lAGRMfHTcwuNYcCNUmaUffmQv8KWMfh2iJUUeRlwlwH4FdNG7mfPI10NPfLHJFThE4Tyr4mv7kTNZOiPuBg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/template": "^7.29.7",+ "@babel/types": "^7.29.7"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helpers/node_modules/@babel/types": {+ "version": "7.29.8",+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.8.tgz",+ "integrity": "sha512-Vj1jF3cPfxg7OAfoI7QnVKLoILlm2JF9pnVHrX8qx7AHMiYWT+NDAA7jChlNgRS4WTLc/fD1lXLmPixluj+3Gg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-string-parser": "^7.29.7",+ "@babel/helper-validator-identifier": "^7.29.7"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/parser": {+ "version": "7.24.1",+ "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.24.1.tgz",+ "integrity": "sha512-Zo9c7N3xdOIQrNip7Lc9wvRPzlRtovHVE4lkz8WEDr7uYh/GMQhSiIgFxGIArRHYdJE5kxtZjAf8rT0xhdLCzg==",+ "dev": true,+ "license": "MIT",+ "bin": {+ "parser": "bin/babel-parser.js"+ },+ "engines": {+ "node": ">=6.0.0"+ }+ },+ "node_modules/@babel/plugin-transform-react-jsx-self": {+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-self/-/plugin-transform-react-jsx-self-7.29.7.tgz",+ "integrity": "sha512-TL0hMc9xzy86VD31nUiwzd5otRAcyEPcsegCxolO0PvcXuH1v0kECe/UIznYFihpkvU5wg/jk4v0TTEFfm53fw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-plugin-utils": "^7.29.7"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0-0"+ }+ },+ "node_modules/@babel/plugin-transform-react-jsx-source": {+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-source/-/plugin-transform-react-jsx-source-7.29.7.tgz",+ "integrity": "sha512-06IyK09H3wi4cGbhDBwp5gUGo0IKtnYa8tyTiephirPCK6fbobVGiXMMI5zLQ4aKEYP3wZ3ArU44o+8KMrSG/Q==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-plugin-utils": "^7.29.7"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0-0"+ }+ },+ "node_modules/@babel/runtime": {+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.29.7.tgz",+ "integrity": "sha512-Nq8OhGWiZIZGV6hLHoyAKLLcJihP/xFeBMGJoUrxTX2psI8dCifzLhZISFb+VWS3wFMRDmCGw5R+dOySCqPLhw==",+ "license": "MIT",+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/template": {+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.29.7.tgz",+ "integrity": "sha512-puq+Gf35oI24FeN11LkoUQFqv9uwNeWpxXZi/Ji3rRIoKAzKnxRaZ+Gkj0vKS9ZCiTESfng1N9LyOyXvo+m+Gg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/code-frame": "^7.29.7",+ "@babel/parser": "^7.29.7",+ "@babel/types": "^7.29.7"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/template/node_modules/@babel/parser": {+ "version": "7.29.8",+ "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.8.tgz",+ "integrity": "sha512-E8lTAYNB1KW+FH+VGJuZM1ioAx2E6oVlvQFRrf5P8ZZmsiJXYAD9vTFV7yyEURNzgh1dFqMZuO6tUwcARbqFCA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/types": "^7.29.8"+ },+ "bin": {+ "parser": "bin/babel-parser.js"+ },+ "engines": {+ "node": ">=6.0.0"+ }+ },+ "node_modules/@babel/template/node_modules/@babel/types": {+ "version": "7.29.8",+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.8.tgz",+ "integrity": "sha512-Vj1jF3cPfxg7OAfoI7QnVKLoILlm2JF9pnVHrX8qx7AHMiYWT+NDAA7jChlNgRS4WTLc/fD1lXLmPixluj+3Gg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-string-parser": "^7.29.7",+ "@babel/helper-validator-identifier": "^7.29.7"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/traverse": {+ "version": "7.29.8",+ "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.29.8.tgz",+ "integrity": "sha512-I5z7H3bf/41ktsNVLtpN0wAa336HkqIHQ5BuPLEhTkt1jVSyZpeNKIzTgEWmlxjdg81R0IgUCcaE+Ok3NvrfZg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/code-frame": "^7.29.7",+ "@babel/generator": "^7.29.8",+ "@babel/helper-globals": "^7.29.7",+ "@babel/parser": "^7.29.8",+ "@babel/template": "^7.29.7",+ "@babel/types": "^7.29.8",+ "debug": "^4.3.1"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/traverse/node_modules/@babel/parser": {+ "version": "7.29.8",+ "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.8.tgz",+ "integrity": "sha512-E8lTAYNB1KW+FH+VGJuZM1ioAx2E6oVlvQFRrf5P8ZZmsiJXYAD9vTFV7yyEURNzgh1dFqMZuO6tUwcARbqFCA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/types": "^7.29.8"+ },+ "bin": {+ "parser": "bin/babel-parser.js"+ },+ "engines": {+ "node": ">=6.0.0"+ }+ },+ "node_modules/@babel/traverse/node_modules/@babel/types": {+ "version": "7.29.8",+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.8.tgz",+ "integrity": "sha512-Vj1jF3cPfxg7OAfoI7QnVKLoILlm2JF9pnVHrX8qx7AHMiYWT+NDAA7jChlNgRS4WTLc/fD1lXLmPixluj+3Gg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-string-parser": "^7.29.7",+ "@babel/helper-validator-identifier": "^7.29.7"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/types": {+ "version": "7.24.0",+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.24.0.tgz",+ "integrity": "sha512-+j7a5c253RfKh8iABBhywc8NSfP5LURe7Uh4qpsh6jc+aLJguvmIUBdjSdEMQv2bENrCR5MfRdjGo7vzS/ob7w==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-string-parser": "^7.23.4",+ "@babel/helper-validator-identifier": "^7.22.20",+ "to-fast-properties": "^2.0.0"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@dimforge/rapier3d-compat": {+ "version": "0.12.0",+ "resolved": "https://registry.npmjs.org/@dimforge/rapier3d-compat/-/rapier3d-compat-0.12.0.tgz",+ "integrity": "sha512-uekIGetywIgopfD97oDL5PfeezkFpNhwlzlaEYNOA0N6ghdsOvh/HYjSMek5Q2O1PYvRSDFcqFVJl4r4ZBwOow==",+ "dev": true,+ "license": "Apache-2.0"+ },+ "node_modules/@emnapi/core": {+ "version": "1.11.3",+ "resolved": "https://registry.npmjs.org/@emnapi/core/-/core-1.11.3.tgz",+ "integrity": "sha512-zLpS5asjEb7lq8jYLq37N6XKaE41DIexlY1rF/z4/tIl3wo13Sqm28fRyfIsKZD+NZ8mM5RoKkpW/rBcuoSZSg==",+ "dev": true,+ "license": "MIT",+ "optional": true,+ "dependencies": {+ "@emnapi/wasi-threads": "1.2.3",+ "tslib": "^2.4.0"+ }+ },+ "node_modules/@emnapi/runtime": {+ "version": "1.11.3",+ "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.11.3.tgz",+ "integrity": "sha512-Xz4Tpyki7XyrpbUK1jR1AhdAdaXyhhY4lZ3neLodmhpuWfy2PAQN5B46sAiU4liOXGLkHypn/qU+jvfWSCYYLA==",+ "dev": true,+ "license": "MIT",+ "optional": true,+ "dependencies": {+ "tslib": "^2.4.0"+ }+ },+ "node_modules/@emnapi/wasi-threads": {+ "version": "1.2.3",+ "resolved": "https://registry.npmjs.org/@emnapi/wasi-threads/-/wasi-threads-1.2.3.tgz",+ "integrity": "sha512-ELEBe8PsLvvJ6QMr0zLt8ffvOHW/dc1m3CEzNMg7aJUv3bMaoDtw2TXyDAwkYBuroxxuHEwhRTLJSe5sya547g==",+ "dev": true,+ "license": "MIT",+ "optional": true,+ "dependencies": {+ "tslib": "^2.4.0"+ }+ },+ "node_modules/@esbuild/aix-ppc64": {+ "version": "0.28.1",+ "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.28.1.tgz",+ "integrity": "sha512-Svl7tq8k/08+p6CXPpRjQ1fKX+1odH/BQbb48fV6fj3CWHhsoIOoY87w1oHXm0qEpkIK3ZfVgp0hed3XBXzXMQ==",+ "cpu": [+ "ppc64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "aix"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/android-arm": {+ "version": "0.28.1",+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.28.1.tgz",+ "integrity": "sha512-0k2F129Xdio1TdJfzJ8sy1Q47vUD2NnwdhiAf7drUN1EBTfPf4hsFCtmMgu/6m8JSzsBrlmVjudMBQqOfG8usQ==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/android-arm64": {+ "version": "0.28.1",+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.28.1.tgz",+ "integrity": "sha512-34EGEbCIAgosYz6goLcopX6Mo7NyGv9tfwEM2/7Ce2VcVRk568iSvniGWcUXIy7wEDR1wzolcxcriFVrWYcwBg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/android-x64": {+ "version": "0.28.1",+ "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.28.1.tgz",+ "integrity": "sha512-dbwY7ltSMDWsRatcRpCnES4F+im88OCUgGZjy52shC7GqHRE/cYlxNbB4Z4UpJswpcc4Qxd2oE/ufM0p61IKng==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/darwin-arm64": {+ "version": "0.28.1",+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.28.1.tgz",+ "integrity": "sha512-TZbWkQY7kvTAXbXUT7uVACR5cMHsDiSz9z7ZKAX/RTq/WJEk3QyRr0wZpNhBDX+/0CtdqUIJlOiodQcta6tY3Q==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/darwin-x64": {+ "version": "0.28.1",+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.28.1.tgz",+ "integrity": "sha512-zfdzgK9ACBNZLI/CyHTOx81SyNbM6YXn7rxSgX97VjyiPl9W1i4Ka4fgKECEoFCKGpvBj5qArWIGgQjOwkgskQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/freebsd-arm64": {+ "version": "0.28.1",+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.28.1.tgz",+ "integrity": "sha512-wG2EA8ENdEI0qhkSZMjfqrdY+ziCYCPMmtZjjIwOmXFjmyzEHn+UUxk5of+SYsjtfs3VpnlC7QLzSI5hY/rOAw==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/freebsd-x64": {+ "version": "0.28.1",+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.28.1.tgz",+ "integrity": "sha512-i7dZ9vQgnvSCzi/rYCXNgtF/U+eKZNJBzu3eTQbRgHnM7tNSizLOkRFAl3qzVc/Op/u5YkHHa4pf/3DOYHthLQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-arm": {+ "version": "0.28.1",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.28.1.tgz",+ "integrity": "sha512-qVXBOHQS+d5Y722GwJzJUtOLlX7km3CraOaGormF1pDtPd2C/l1SHRPgjLunLGe51Sh5YYWKMFDyV4SxgMQYTQ==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-arm64": {+ "version": "0.28.1",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.28.1.tgz",+ "integrity": "sha512-yHs+0uc8+nvEAfAfxrWQKK5peSNzBc4PegcMO0EJ2hT71uA7vB8Ihg2e77R2P7SG5uYjPbHlLLmve4LLLRCf0g==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-ia32": {+ "version": "0.28.1",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.28.1.tgz",+ "integrity": "sha512-d1z4ZuP0ajrfz/FhGT4vv278rX8KnPPJx8i5+AtK7TYbx9Le9F1hyzurZpkEyjkGa9dUGhQow4C1NmeGvqxN2w==",+ "cpu": [+ "ia32"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-loong64": {+ "version": "0.28.1",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.28.1.tgz",+ "integrity": "sha512-M5sRjUVZrkm1OAPR3dlOYzNmN+loZKGVi1VUQGrwuqLcbR6qeAz+famMhjASeH3YVKvZz+zT1jlh/keC3Rj/lg==",+ "cpu": [+ "loong64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-mips64el": {+ "version": "0.28.1",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.28.1.tgz",+ "integrity": "sha512-mRObBZeHh2OxcBFPWE/FjylkRgZdYuiTR3vaTozquCGOH14iP9oN4x4Ge81CoIDYQrXmIxpFumJBu5MtZpnQJQ==",+ "cpu": [+ "mips64el"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-ppc64": {+ "version": "0.28.1",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.28.1.tgz",+ "integrity": "sha512-slScBsMAb3GFDcdrCgLwZtPYRoH2H/youv10QiZyRjmsP48fznoveWytSgCI/R0ZcUgpc0ZhIUEx6LHts8yrfQ==",+ "cpu": [+ "ppc64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-riscv64": {+ "version": "0.28.1",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.28.1.tgz",+ "integrity": "sha512-kw0owk1o0GFETUJyW0jc0G4Yzs0BHZn0JDZ8JRT088vjJYX777BAs1fDGxAC+q831qOs2DTC96mNsG2opdfyyQ==",+ "cpu": [+ "riscv64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-s390x": {+ "version": "0.28.1",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.28.1.tgz",+ "integrity": "sha512-/lAIjX8aYFRByhh6L5rYtPEDRqa9de/4V/juOXcta5frjvzXO4/sqEtyytse0g3zZFuWu5cDN0MkLz2qRDD2Ag==",+ "cpu": [+ "s390x"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-x64": {+ "version": "0.28.1",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.28.1.tgz",+ "integrity": "sha512-u/anNYF2mmVOEDwLtnQ1wOr3EZ9sTNGLWrsYGYwHWzGA3Si84IOkHXlbWTD1NB+9/1lcnweYKO54uhxZydNzfA==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/netbsd-arm64": {+ "version": "0.28.1",+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.28.1.tgz",+ "integrity": "sha512-oks0DYbLwWMmaakTsCb+zL4E+aHRVLom9IJZOAthMQEPiQmydXHkziYEsGYRx0uNV/IjEKGAV941JzH02pflqw==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "netbsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/netbsd-x64": {+ "version": "0.28.1",+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.28.1.tgz",+ "integrity": "sha512-aeL6lAnN89Hz43Mlh1G8ARasbuoYvSITDEx0tHh5b7jJnHcssqgjy9Yx430GDpmCa6OyrKoS0aNRjKundRizGg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "netbsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/openbsd-arm64": {+ "version": "0.28.1",+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.28.1.tgz",+ "integrity": "sha512-MEFJe5C3R8pwXdZ5Y21oo6m7ePiS0d9pWucn99O/wvyJZChoIQKrQDxKrGeW8F5+T0okTHesAmDeiHDTIq0V/Q==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "openbsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/openbsd-x64": {+ "version": "0.28.1",+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.28.1.tgz",+ "integrity": "sha512-i/ZLIOafE0Z8cI/XANJAixoJL/uRAoS2xOA3rb0xN+KK0K177cMAsQYkzHtBrtMXAKuAc7HGgcWiZ/sRC1Nxgw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "openbsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/openharmony-arm64": {+ "version": "0.28.1",+ "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.28.1.tgz",+ "integrity": "sha512-ge+Z7EXFNt2BO1oAMsVpiQ8EwndV9i1xXerAeTIK7AtPs3bKFXQM7nlRxDSIUIMeueR1CNXxqztLzdNeReKBJg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "openharmony"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/sunos-x64": {+ "version": "0.28.1",+ "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.28.1.tgz",+ "integrity": "sha512-BEjgtECkL3vY+SaSQ6nzVfiALUeFxpawyp8Jmf5PtYhf1Ug40N1h/hxlhts+f1FvSvarEigdxS3BlSMI2PJLcQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "sunos"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/win32-arm64": {+ "version": "0.28.1",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.28.1.tgz",+ "integrity": "sha512-lCv9eK/H6ZJWbE7bh2nw54CZ9M2nupBxJcTsdk/QQnWkdSjKGuxmmH8/GWrlT1eMmZfn4dGcCjRte397WqfQXA==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/win32-ia32": {+ "version": "0.28.1",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.28.1.tgz",+ "integrity": "sha512-zvb/mB2bSCoJOpoCBgYKKpX6YM6mJBlBUVUtVj41DlZJVEB6/0CKlRYxP5wWl1C1ILiCoAU5wZZ4q1P3qeS6Eg==",+ "cpu": [+ "ia32"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/win32-x64": {+ "version": "0.28.1",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.28.1.tgz",+ "integrity": "sha512-bm4Mowrv+GXMlpWX++EcXw/iLyd1o3+bJkC2DkWXYVvgZCqD/bSj9ctZeAMC3cIxgjRVR2Dufaiu4YPxr5gW1A==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@jridgewell/gen-mapping": {+ "version": "0.3.13",+ "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz",+ "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@jridgewell/sourcemap-codec": "^1.5.0",+ "@jridgewell/trace-mapping": "^0.3.24"+ }+ },+ "node_modules/@jridgewell/remapping": {+ "version": "2.3.5",+ "resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz",+ "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@jridgewell/gen-mapping": "^0.3.5",+ "@jridgewell/trace-mapping": "^0.3.24"+ }+ },+ "node_modules/@jridgewell/resolve-uri": {+ "version": "3.1.2",+ "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz",+ "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.0.0"+ }+ },+ "node_modules/@jridgewell/source-map": {+ "version": "0.3.11",+ "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.11.tgz",+ "integrity": "sha512-ZMp1V8ZFcPG5dIWnQLr3NSI1MiCU7UETdS/A0G8V/XWHvJv3ZsFqutJn1Y5RPmAPX6F3BiE397OqveU/9NCuIA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@jridgewell/gen-mapping": "^0.3.5",+ "@jridgewell/trace-mapping": "^0.3.25"+ }+ },+ "node_modules/@jridgewell/sourcemap-codec": {+ "version": "1.6.0",+ "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.6.0.tgz",+ "integrity": "sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@jridgewell/trace-mapping": {+ "version": "0.3.31",+ "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz",+ "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@jridgewell/resolve-uri": "^3.1.0",+ "@jridgewell/sourcemap-codec": "^1.4.14"+ }+ },+ "node_modules/@mediabunny/aac-encoder": {+ "version": "1.47.0",+ "resolved": "https://registry.npmjs.org/@mediabunny/aac-encoder/-/aac-encoder-1.47.0.tgz",+ "integrity": "sha512-JNzgdJoHMFFnv5imi1+dmjZMudsJ1zNCUCEkKjBh90cqGhAFg8xu4V2gsyxE2i6oq/YpWx23P+OvoANLSMcDzA==",+ "dev": true,+ "license": "MPL-2.0",+ "funding": {+ "type": "individual",+ "url": "https://github.com/sponsors/Vanilagy"+ },+ "peerDependencies": {+ "mediabunny": "^1.0.0"+ }+ },+ "node_modules/@mediabunny/flac-encoder": {+ "version": "1.47.0",+ "resolved": "https://registry.npmjs.org/@mediabunny/flac-encoder/-/flac-encoder-1.47.0.tgz",+ "integrity": "sha512-VpKmJO0xlYcFCRD6JvJlMbNQ6d/6YMHdO1gFIqWlZABHjSSL6BquNNEgWSCv5vdF8ELDBwIYBVZEslakIB/7GA==",+ "dev": true,+ "license": "MPL-2.0",+ "funding": {+ "type": "individual",+ "url": "https://github.com/sponsors/Vanilagy"+ },+ "peerDependencies": {+ "mediabunny": "^1.0.0"+ }+ },+ "node_modules/@mediabunny/mp3-encoder": {+ "version": "1.47.0",+ "resolved": "https://registry.npmjs.org/@mediabunny/mp3-encoder/-/mp3-encoder-1.47.0.tgz",+ "integrity": "sha512-JyzZyGeGRm2HVUQaGJ/VZT9OG+kG00mA8SLP/f3CO7+qWAmBncKc16WYXWHbZEo8Jn/ZGA6De32S5R2bTQbDqA==",+ "dev": true,+ "license": "MPL-2.0",+ "funding": {+ "type": "individual",+ "url": "https://github.com/sponsors/Vanilagy"+ },+ "peerDependencies": {+ "mediabunny": "^1.0.0"+ }+ },+ "node_modules/@module-federation/error-codes": {+ "version": "0.22.0",+ "resolved": "https://registry.npmjs.org/@module-federation/error-codes/-/error-codes-0.22.0.tgz",+ "integrity": "sha512-xF9SjnEy7vTdx+xekjPCV5cIHOGCkdn3pIxo9vU7gEZMIw0SvAEdsy6Uh17xaCpm8V0FWvR0SZoK9Ik6jGOaug==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@module-federation/runtime": {+ "version": "0.22.0",+ "resolved": "https://registry.npmjs.org/@module-federation/runtime/-/runtime-0.22.0.tgz",+ "integrity": "sha512-38g5iPju2tPC3KHMPxRKmy4k4onNp6ypFPS1eKGsNLUkXgHsPMBFqAjDw96iEcjri91BrahG4XcdyKi97xZzlA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@module-federation/error-codes": "0.22.0",+ "@module-federation/runtime-core": "0.22.0",+ "@module-federation/sdk": "0.22.0"+ }+ },+ "node_modules/@module-federation/runtime-core": {+ "version": "0.22.0",+ "resolved": "https://registry.npmjs.org/@module-federation/runtime-core/-/runtime-core-0.22.0.tgz",+ "integrity": "sha512-GR1TcD6/s7zqItfhC87zAp30PqzvceoeDGYTgF3Vx2TXvsfDrhP6Qw9T4vudDQL3uJRne6t7CzdT29YyVxlgIA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@module-federation/error-codes": "0.22.0",+ "@module-federation/sdk": "0.22.0"+ }+ },+ "node_modules/@module-federation/runtime-tools": {+ "version": "0.22.0",+ "resolved": "https://registry.npmjs.org/@module-federation/runtime-tools/-/runtime-tools-0.22.0.tgz",+ "integrity": "sha512-4ScUJ/aUfEernb+4PbLdhM/c60VHl698Gn1gY21m9vyC1Ucn69fPCA1y2EwcCB7IItseRMoNhdcWQnzt/OPCNA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@module-federation/runtime": "0.22.0",+ "@module-federation/webpack-bundler-runtime": "0.22.0"+ }+ },+ "node_modules/@module-federation/sdk": {+ "version": "0.22.0",+ "resolved": "https://registry.npmjs.org/@module-federation/sdk/-/sdk-0.22.0.tgz",+ "integrity": "sha512-x4aFNBKn2KVQRuNVC5A7SnrSCSqyfIWmm1DvubjbO9iKFe7ith5niw8dqSFBekYBg2Fwy+eMg4sEFNVvCAdo6g==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@module-federation/webpack-bundler-runtime": {+ "version": "0.22.0",+ "resolved": "https://registry.npmjs.org/@module-federation/webpack-bundler-runtime/-/webpack-bundler-runtime-0.22.0.tgz",+ "integrity": "sha512-aM8gCqXu+/4wBmJtVeMeeMN5guw3chf+2i6HajKtQv7SJfxV/f4IyNQJUeUQu9HfiAZHjqtMV5Lvq/Lvh8LdyA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@module-federation/runtime": "0.22.0",+ "@module-federation/sdk": "0.22.0"+ }+ },+ "node_modules/@napi-rs/lzma-linux-x64-gnu": {+ "version": "1.5.1",+ "resolved": "https://registry.npmjs.org/@napi-rs/lzma-linux-x64-gnu/-/lzma-linux-x64-gnu-1.5.1.tgz",+ "integrity": "sha512-oTXEIha4SsuXdTA4Iyskj0kpdx2yVXdhd75c2v3xGrHFfVMsbhTPZU/nMPL4sWKo4pBHm3aucLaqGlF696dTyQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": "^22.20 || ^24.12 || >=25"+ }+ },+ "node_modules/@napi-rs/wasm-runtime": {+ "version": "1.0.7",+ "resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-1.0.7.tgz",+ "integrity": "sha512-SeDnOO0Tk7Okiq6DbXmmBODgOAb9dp9gjlphokTUxmt8U3liIP1ZsozBahH69j/RJv+Rfs6IwUKHTgQYJ/HBAw==",+ "dev": true,+ "license": "MIT",+ "optional": true,+ "dependencies": {+ "@emnapi/core": "^1.5.0",+ "@emnapi/runtime": "^1.5.0",+ "@tybys/wasm-util": "^0.10.1"+ }+ },+ "node_modules/@react-three/fiber": {+ "version": "9.6.1",+ "resolved": "https://registry.npmjs.org/@react-three/fiber/-/fiber-9.6.1.tgz",+ "integrity": "sha512-zF0rsKcVYpcJwbFEnv2HkHX9cvOEgsfQo/X8lwmR2dn13S4qEQJXir9fxf5js2LQFoXqxOY7MDkOkYx2uZ4gSg==",+ "license": "MIT",+ "dependencies": {+ "@babel/runtime": "^7.17.8",+ "@types/webxr": "*",+ "base64-js": "^1.5.1",+ "buffer": "^6.0.3",+ "its-fine": "^2.0.0",+ "react-use-measure": "^2.1.7",+ "scheduler": "^0.27.0",+ "suspend-react": "^0.1.3",+ "use-sync-external-store": "^1.4.0",+ "zustand": "^5.0.3"+ },+ "peerDependencies": {+ "expo": ">=43.0",+ "expo-asset": ">=8.4",+ "expo-file-system": ">=11.0",+ "expo-gl": ">=11.0",+ "react": ">=19 <19.3",+ "react-dom": ">=19 <19.3",+ "react-native": ">=0.78",+ "three": ">=0.156"+ },+ "peerDependenciesMeta": {+ "expo": {+ "optional": true+ },+ "expo-asset": {+ "optional": true+ },+ "expo-file-system": {+ "optional": true+ },+ "expo-gl": {+ "optional": true+ },+ "react-dom": {+ "optional": true+ },+ "react-native": {+ "optional": true+ }+ }+ },+ "node_modules/@remotion/bundler": {+ "version": "4.0.484",+ "resolved": "https://registry.npmjs.org/@remotion/bundler/-/bundler-4.0.484.tgz",+ "integrity": "sha512-ZGTWt7hX9qjeeqRxZyxcgpgEbKgDjqP23RaOFP+hLcvDC8In54BZML68Vgss50BP2Gt2M5bcSLRLZtIDWo1dNw==",+ "dev": true,+ "license": "SEE LICENSE IN LICENSE.md",+ "dependencies": {+ "@remotion/media-parser": "4.0.484",+ "@remotion/studio": "4.0.484",+ "@remotion/studio-shared": "4.0.484",+ "@remotion/timeline-utils": "4.0.484",+ "@rspack/core": "1.7.11",+ "@rspack/plugin-react-refresh": "1.6.1",+ "css-loader": "7.1.4",+ "esbuild": "0.28.1",+ "react-refresh": "0.18.0",+ "remotion": "4.0.484",+ "style-loader": "4.0.0",+ "webpack": "5.105.0"+ },+ "peerDependencies": {+ "react": ">=16.8.0",+ "react-dom": ">=16.8.0"+ }+ },+ "node_modules/@remotion/canvas-capture": {+ "version": "4.0.484",+ "resolved": "https://registry.npmjs.org/@remotion/canvas-capture/-/canvas-capture-4.0.484.tgz",+ "integrity": "sha512-vvJmpDrUl3jRMeWQbIYqWSk6CbkGQSrOYsDjINSGeZ7pt/csLWMzk947r2nev8W+eBbKyqzAH3bEIo1/4KnvZQ==",+ "dev": true,+ "license": "Remotion License",+ "dependencies": {+ "mediabunny": "1.47.0",+ "remotion": "4.0.484"+ },+ "peerDependencies": {+ "react": ">=16.8.0",+ "react-dom": ">=16.8.0"+ }+ },+ "node_modules/@remotion/cli": {+ "version": "4.0.484",+ "resolved": "https://registry.npmjs.org/@remotion/cli/-/cli-4.0.484.tgz",+ "integrity": "sha512-XtvQnQ/DEHYUmYhfDOK9CSRWSiqcHGHnTxeCqMlTE7XbEWcA5UO6FJJZLAqKo+zcF85hBmjq/31FLOY2omro6Q==",+ "dev": true,+ "license": "SEE LICENSE IN LICENSE.md",+ "dependencies": {+ "@remotion/bundler": "4.0.484",+ "@remotion/media-utils": "4.0.484",+ "@remotion/player": "4.0.484",+ "@remotion/renderer": "4.0.484",+ "@remotion/studio": "4.0.484",+ "@remotion/studio-server": "4.0.484",+ "@remotion/studio-shared": "4.0.484",+ "dotenv": "17.3.1",+ "minimist": "1.2.6",+ "prompts": "2.4.2",+ "remotion": "4.0.484"+ },+ "bin": {+ "remotion": "remotion-cli.js",+ "remotionb": "remotionb-cli.js",+ "remotiond": "remotiond-cli.js"+ },+ "peerDependencies": {+ "react": ">=16.8.0",+ "react-dom": ">=16.8.0"+ }+ },+ "node_modules/@remotion/compositor-darwin-arm64": {+ "version": "4.0.484",+ "resolved": "https://registry.npmjs.org/@remotion/compositor-darwin-arm64/-/compositor-darwin-arm64-4.0.484.tgz",+ "integrity": "sha512-n/ASVMgSmEocek4JDdGinWCoZ46ZiHUFJUi/MOHGTSiyRPkinloHRGMCteIfYXej6NkUxV4r0YVigBDE6YK7hQ==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "optional": true,+ "os": [+ "darwin"+ ]+ },+ "node_modules/@remotion/compositor-darwin-x64": {+ "version": "4.0.484",+ "resolved": "https://registry.npmjs.org/@remotion/compositor-darwin-x64/-/compositor-darwin-x64-4.0.484.tgz",+ "integrity": "sha512-AEfReZ/w1dijqyMRc/mujRZqt3Hb0ZMtoAyaA+d+9fsDFTnAJuwsnlMg4GYKzPcQKwFFwIvkjpOw0bT7dLuCSA==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "optional": true,+ "os": [+ "darwin"+ ]+ },+ "node_modules/@remotion/compositor-linux-arm64-gnu": {+ "version": "4.0.484",+ "resolved": "https://registry.npmjs.org/@remotion/compositor-linux-arm64-gnu/-/compositor-linux-arm64-gnu-4.0.484.tgz",+ "integrity": "sha512-otGbV6CK+Qi3gCoup1uAbrbx4yEsl6V4tl+vE+Oft6akgtdxDzpazlHpf2/ffUe/SMw+/MNfH+wQvJBZsCnDDg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@remotion/compositor-linux-arm64-musl": {+ "version": "4.0.484",+ "resolved": "https://registry.npmjs.org/@remotion/compositor-linux-arm64-musl/-/compositor-linux-arm64-musl-4.0.484.tgz",+ "integrity": "sha512-6uX4z4bkuVcwFxJBh1Zgrdow6rbEKz7Oa7WiNYO+60IdJwMAaxS8GWdf6vPDfull2aywcFz5CIj0CZZ8/ThrHQ==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@remotion/compositor-linux-x64-gnu": {+ "version": "4.0.484",+ "resolved": "https://registry.npmjs.org/@remotion/compositor-linux-x64-gnu/-/compositor-linux-x64-gnu-4.0.484.tgz",+ "integrity": "sha512-/WZQ6IMDFfo5MKsFQTJfAy9I+jUeyVUBQtsKgssXQqP5KvlkS0+C2CEYddyTN8cF4Ifz8Ul7W0Pk1m/RjFXb2w==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@remotion/compositor-linux-x64-musl": {+ "version": "4.0.484",+ "resolved": "https://registry.npmjs.org/@remotion/compositor-linux-x64-musl/-/compositor-linux-x64-musl-4.0.484.tgz",+ "integrity": "sha512-DnQxv3uh9xa7FBnWsmD93gwCUVaD9qk8cy9O7HyPDykvnCe2ejocNBjKswlr3W4HOcsnkmZQyZ4pvxKYZKwhfQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@remotion/compositor-win32-x64-msvc": {+ "version": "4.0.484",+ "resolved": "https://registry.npmjs.org/@remotion/compositor-win32-x64-msvc/-/compositor-win32-x64-msvc-4.0.484.tgz",+ "integrity": "sha512-MxTN7uCZ5zD+X7TaaYfAR4ewtH9BZ7Wh5xS+oRJ72XbNHV/d+nULtOG3VdphFo/HhaPRzTYO9i/sZjogE+In/g==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "optional": true,+ "os": [+ "win32"+ ]+ },+ "node_modules/@remotion/google-fonts": {+ "version": "4.0.484",+ "resolved": "https://registry.npmjs.org/@remotion/google-fonts/-/google-fonts-4.0.484.tgz",+ "integrity": "sha512-ZFq0pbchI/BkOuFDYKeuJI9OWHzwE8+7qyOEcK6AXih4ppfip9VKVrLscXptSZpyda2lszHXChAFSTavTJc/VQ==",+ "license": "SEE LICENSE IN LICENSE.md",+ "dependencies": {+ "remotion": "4.0.484"+ }+ },+ "node_modules/@remotion/licensing": {+ "version": "4.0.484",+ "resolved": "https://registry.npmjs.org/@remotion/licensing/-/licensing-4.0.484.tgz",+ "integrity": "sha512-YtiERD4bC3n5yQtNgEZasdZXqDKjIJssjKDLL+YjGDU3mMcw/93my83UU6jJVCB7TBrIms8DVbCgqt4hhU8kMA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@remotion/media-parser": {+ "version": "4.0.484",+ "resolved": "https://registry.npmjs.org/@remotion/media-parser/-/media-parser-4.0.484.tgz",+ "integrity": "sha512-OWiCDoVa7kQlLgjFsNrMTMpl3UXQQMVcj//Quqftf30S78NHiBVyuzLloMkGPshgUH+KP0ByShld+/GPbCxs8g==",+ "dev": true,+ "license": "Remotion License https://remotion.dev/license"+ },+ "node_modules/@remotion/media-utils": {+ "version": "4.0.484",+ "resolved": "https://registry.npmjs.org/@remotion/media-utils/-/media-utils-4.0.484.tgz",+ "integrity": "sha512-VpqF5CpLPfekJmkAyH7+SMdhfReND5WdtUjbbgzxdpT1G26LfQw3Qxj6Jo38vv/Sahn+VxNb9knElOptu9fcng==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "mediabunny": "1.47.0",+ "remotion": "4.0.484"+ },+ "peerDependencies": {+ "react": ">=16.8.0",+ "react-dom": ">=16.8.0"+ }+ },+ "node_modules/@remotion/motion-blur": {+ "version": "4.0.484",+ "resolved": "https://registry.npmjs.org/@remotion/motion-blur/-/motion-blur-4.0.484.tgz",+ "integrity": "sha512-3IzK2Hm4hRqf5266xkK/efa13YgdqZDcBoyiOknVSBVrsJjDQeXVdl1hVeIBJ6y8wHflK+isK034h5Sjg5oATQ==",+ "license": "MIT",+ "dependencies": {+ "remotion": "4.0.484"+ },+ "peerDependencies": {+ "react": ">=16.8.0",+ "react-dom": ">=16.8.0"+ }+ },+ "node_modules/@remotion/player": {+ "version": "4.0.484",+ "resolved": "https://registry.npmjs.org/@remotion/player/-/player-4.0.484.tgz",+ "integrity": "sha512-GdlYGl+Y+9aOqHy+/5IEynt/ZGfDATUXlC5WrHegXyNCw4zFaCmfXC6FLtfZNEYOdwMLZ0drQehrdzs5qONL8w==",+ "license": "SEE LICENSE IN LICENSE.md",+ "dependencies": {+ "remotion": "4.0.484"+ },+ "peerDependencies": {+ "react": ">=16.8.0",+ "react-dom": ">=16.8.0"+ }+ },+ "node_modules/@remotion/renderer": {+ "version": "4.0.484",+ "resolved": "https://registry.npmjs.org/@remotion/renderer/-/renderer-4.0.484.tgz",+ "integrity": "sha512-dXvP4GzKono9xHFYKySb4vhQh8yYmif51WpIzTz6EWcyVGv+Blobdi1uTcoShdzD6Jr0oETAqu1ojBHCFKtYbg==",+ "dev": true,+ "license": "SEE LICENSE IN LICENSE.md",+ "dependencies": {+ "@remotion/licensing": "4.0.484",+ "@remotion/streaming": "4.0.484",+ "execa": "5.1.1",+ "remotion": "4.0.484",+ "source-map": "0.8.0-beta.0",+ "ws": "8.21.0"+ },+ "optionalDependencies": {+ "@remotion/compositor-darwin-arm64": "4.0.484",+ "@remotion/compositor-darwin-x64": "4.0.484",+ "@remotion/compositor-linux-arm64-gnu": "4.0.484",+ "@remotion/compositor-linux-arm64-musl": "4.0.484",+ "@remotion/compositor-linux-x64-gnu": "4.0.484",+ "@remotion/compositor-linux-x64-musl": "4.0.484",+ "@remotion/compositor-win32-x64-msvc": "4.0.484"+ },+ "peerDependencies": {+ "react": ">=16.8.0",+ "react-dom": ">=16.8.0"+ }+ },+ "node_modules/@remotion/streaming": {+ "version": "4.0.484",+ "resolved": "https://registry.npmjs.org/@remotion/streaming/-/streaming-4.0.484.tgz",+ "integrity": "sha512-SOiI+3sBZlfIyh7kX/w1XC4BWCy33/leNSzYTdpfgsqVFv60S6huOfvwXVEMCgGUEfsZtLbDP0LujHMMuvRO/A==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@remotion/studio": {+ "version": "4.0.484",+ "resolved": "https://registry.npmjs.org/@remotion/studio/-/studio-4.0.484.tgz",+ "integrity": "sha512-91GUVSL1dNfgPrDDJlXYX+0JIpOXqLlSU3O0wu7nn06ScLYZucO1JpM6VoYt+wbLqUB3bkNillEXtu9b0Wpz+A==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@jridgewell/trace-mapping": "0.3.31",+ "@remotion/canvas-capture": "4.0.484",+ "@remotion/media-utils": "4.0.484",+ "@remotion/player": "4.0.484",+ "@remotion/renderer": "4.0.484",+ "@remotion/studio-shared": "4.0.484",+ "@remotion/timeline-utils": "4.0.484",+ "@remotion/web-renderer": "4.0.484",+ "@remotion/zod-types": "4.0.484",+ "mediabunny": "1.47.0",+ "memfs": "3.4.3",+ "open": "8.4.2",+ "remotion": "4.0.484",+ "semver": "7.5.3",+ "zod": "4.3.6"+ },+ "peerDependencies": {+ "react": ">=16.8.0",+ "react-dom": ">=16.8.0"+ }+ },+ "node_modules/@remotion/studio-server": {+ "version": "4.0.484",+ "resolved": "https://registry.npmjs.org/@remotion/studio-server/-/studio-server-4.0.484.tgz",+ "integrity": "sha512-Ha4v9cM1uXjGofEP+Rv3XTOo1DLWTE6DSZx9Kck8YaxJAyDQLyfmOB9nLEaGtEpR/UQ4DYhX8OfX+WLspIBWLw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/parser": "7.24.1",+ "@babel/types": "7.24.0",+ "@remotion/bundler": "4.0.484",+ "@remotion/renderer": "4.0.484",+ "@remotion/studio-shared": "4.0.484",+ "memfs": "3.4.3",+ "open": "8.4.2",+ "prettier": "3.8.1",+ "recast": "0.23.11",+ "remotion": "4.0.484",+ "semver": "7.5.3"+ }+ },+ "node_modules/@remotion/studio-shared": {+ "version": "4.0.484",+ "resolved": "https://registry.npmjs.org/@remotion/studio-shared/-/studio-shared-4.0.484.tgz",+ "integrity": "sha512-jGmPYfl+CuX7xtCuRP41623/R8UnK7FvAuaiWCrygh5M0dlhkpKcgms8/H8uRCQwWb/cWTUn6YOx9rkMw/rS2A==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "remotion": "4.0.484"+ }+ },+ "node_modules/@remotion/three": {+ "version": "4.0.484",+ "resolved": "https://registry.npmjs.org/@remotion/three/-/three-4.0.484.tgz",+ "integrity": "sha512-gktaXOzx5QM0kAg+6r4RyYZ10MmxMq7vvcrEU63sJsibA6ojCE1Mpbb4kYvIiLFI3CiIMOvOoILaF5CgAznKJg==",+ "license": "MIT",+ "dependencies": {+ "remotion": "4.0.484"+ },+ "peerDependencies": {+ "@react-three/fiber": ">=8.0.0",+ "react": ">=16.8.0",+ "react-dom": ">=16.8.0",+ "remotion": "4.0.484",+ "three": ">=0.137.0"+ }+ },+ "node_modules/@remotion/timeline-utils": {+ "version": "4.0.484",+ "resolved": "https://registry.npmjs.org/@remotion/timeline-utils/-/timeline-utils-4.0.484.tgz",+ "integrity": "sha512-WyWg84sMDhuinLvQt+UdP27sJTGfeSs6REuv2Bmf6pp/kHW12BS/rf+p4lSGMe9WwEsUL8ueQw6mezBDrF7Yqw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "mediabunny": "1.47.0"+ }+ },+ "node_modules/@remotion/web-renderer": {+ "version": "4.0.484",+ "resolved": "https://registry.npmjs.org/@remotion/web-renderer/-/web-renderer-4.0.484.tgz",+ "integrity": "sha512-K5pXBabSB6Y931wiYPwoUVPzpmYqXQDplSS41bvQ/GyHnZSGgez2jWmj1W6O7GDIY2bkLE51aDwPi5hPK+2xvQ==",+ "dev": true,+ "license": "UNLICENSED",+ "dependencies": {+ "@mediabunny/aac-encoder": "1.47.0",+ "@mediabunny/flac-encoder": "1.47.0",+ "@mediabunny/mp3-encoder": "1.47.0",+ "@remotion/licensing": "4.0.484",+ "mediabunny": "1.47.0",+ "remotion": "4.0.484"+ },+ "peerDependencies": {+ "react": ">=18.0.0",+ "react-dom": ">=18.0.0"+ }+ },+ "node_modules/@remotion/zod-types": {+ "version": "4.0.484",+ "resolved": "https://registry.npmjs.org/@remotion/zod-types/-/zod-types-4.0.484.tgz",+ "integrity": "sha512-0Qi+5lIo02p/LBWI+WILrlPgUHPPIx5kjvULJHmxLS0BOGeD0i/9RzMSqbcr6Qq9r2zK7s/C14XKEohMge7VUw==",+ "license": "MIT",+ "dependencies": {+ "remotion": "4.0.484"+ }+ },+ "node_modules/@rolldown/pluginutils": {+ "version": "1.0.0-beta.27",+ "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.0-beta.27.tgz",+ "integrity": "sha512-+d0F4MKMCbeVUJwG96uQ4SgAznZNSq93I3V+9NHA4OpvqG8mRCpGdKmK8l/dl02h2CCDHwW2FqilnTyDcAnqjA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@rollup/rollup-android-arm-eabi": {+ "version": "4.63.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.63.1.tgz",+ "integrity": "sha512-UZ8sUxPTiHWYX9QNdJedb1kDZSpS1t/VPWBWGSgqHNi9w3Cu6IXvu2mzbhiTiPvtrqgTQJ+zqiAq2iPIPilpaQ==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ]+ },+ "node_modules/@rollup/rollup-android-arm64": {+ "version": "4.63.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.63.1.tgz",+ "integrity": "sha512-cQ4nFQABN5cDvDpbvJ7bMStCpnaVxynZrRMfUJYgxcIk9Sh54FIO1vtfkg0B69REjER77ioZ/ov+eAApx/KmLQ==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ]+ },+ "node_modules/@rollup/rollup-darwin-arm64": {+ "version": "4.63.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.63.1.tgz",+ "integrity": "sha512-FQNqd1lRy/0QhDk3xeRIkSBiCpXCiDnZO3YLVdcDKN1UBiKToNftCzcXYNLshmPDUMlu2TdeS8tGcsU6f3YF1Q==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ]+ },+ "node_modules/@rollup/rollup-darwin-x64": {+ "version": "4.63.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.63.1.tgz",+ "integrity": "sha512-pvD16V939D3CloK0+qikpGaxiPrDUXTe7Y5cWOMkMSy7m1cawa8EGy/kXYi/G/cKAC4HDAbSnzCIk1WmsoOKXg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ]+ },+ "node_modules/@rollup/rollup-freebsd-arm64": {+ "version": "4.63.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.63.1.tgz",+ "integrity": "sha512-pcFGeL2345VwdTnJhA6zLbew+YgWB0qBG2+dMtXjCicf6+rm6kO6cOoh5VnTe0ZMrMRgRyuHmCJxZWrIdzYuOw==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ]+ },+ "node_modules/@rollup/rollup-freebsd-x64": {+ "version": "4.63.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.63.1.tgz",+ "integrity": "sha512-mRJlqSRulVzcKq/LKA6ICSIc3K/l4fzlVn/gePn2nXIHy8seRi5z/eeRE0d/XMBxcMldiXtQTSpRj0tkkC3g8Q==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ]+ },+ "node_modules/@rollup/rollup-linux-arm-gnueabihf": {+ "version": "4.63.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.63.1.tgz",+ "integrity": "sha512-YDUNvVM85TI3g/1OpnqKP1h4NeW/j64DfWMf+G3M809xNk1bJSnpFp4sh83NpmVE5DXnkh8ULor4LTVZKoYLHw==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-arm-musleabihf": {+ "version": "4.63.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.63.1.tgz",+ "integrity": "sha512-7Mcn71p9ZuQFAj+h+dhQXy/yeLePRS2yKRnmW1DijA9thKO5qap0GNOIQK4yQ6iP3SU0Mrb/yWo8h8vgRba8lw==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-arm64-gnu": {+ "version": "4.63.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.63.1.tgz",+ "integrity": "sha512-4YiLQTX6U4CSl0L9cluep9A9W6UmTfqBDc2/CH6wlu54pl4E7Jn3cOD8oxzvBDEGk/JMKgJ47C8g+radF7mwvg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-arm64-musl": {+ "version": "4.63.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.63.1.tgz",+ "integrity": "sha512-2ra8F7w8OquwZN9z2/fKFnli69wa8PLwaVzRMIPGb13ByMJwC28Fbp8YcVGoUhlYMTt7j5j9bNgpysrN2UM+vw==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-loong64-gnu": {+ "version": "4.63.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.63.1.tgz",+ "integrity": "sha512-Sy20ncyhjmBP0Ml+UvQbimjlk6VFgjW5uNP+qqwHB00mTE8Bl2C1TuHTlRwK2YoXeZbee5lP2XevBWVkAQAtSQ==",+ "cpu": [+ "loong64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-loong64-musl": {+ "version": "4.63.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.63.1.tgz",+ "integrity": "sha512-noITLp8oNjYliPnGWmLyelIHwULGqbHloQHGw1rtxbWhTuWooRpnZarZQJ1y9EUC4szuCusCc+HEpUtxpIwYvA==",+ "cpu": [+ "loong64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-ppc64-gnu": {+ "version": "4.63.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.63.1.tgz",+ "integrity": "sha512-hlxxXd+F1mWiAcaFR7Sv9ZQT6m6UfI8+Vy/kFJzztq2pDMU/0wZ9sish0iszNZvsQDo8Gc0i5yuFEOz5dDf6fA==",+ "cpu": [+ "ppc64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-ppc64-musl": {+ "version": "4.63.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.63.1.tgz",+ "integrity": "sha512-EF7OpqQTQ/BvGqLzUi4rEHuagCV9MugAUXSHemwPW5vxZ75RR+jxO/2j95Ph2dalMpFHSVECjRoioHZgA9zOYA==",+ "cpu": [+ "ppc64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-riscv64-gnu": {+ "version": "4.63.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.63.1.tgz",+ "integrity": "sha512-wQO3JesW9PRkwlabQ27y7sPfVOOTLRG73I4F2UYHG5PXun3J9U3y+b7ezVKSYbsvSKGQ1k1cq8Qlun4C9kLt3w==",+ "cpu": [+ "riscv64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-riscv64-musl": {+ "version": "4.63.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.63.1.tgz",+ "integrity": "sha512-ouAGwhO6wHRXdnOVCOsB0tRFkA7nhNB2Nwax6oECXN0YiN8EYUTBAOudADOB1PI+yDL61TeNx/u7MVCzksNbkQ==",+ "cpu": [+ "riscv64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-s390x-gnu": {+ "version": "4.63.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.63.1.tgz",+ "integrity": "sha512-q2R38Sn+1J8RxhfJ+T54wSWmyKXWec+9jgDfqO2AtArEqHO5R2aeayp5H5OYLr5UYDVGsVaZPEFUooMhYCdz5A==",+ "cpu": [+ "s390x"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-x64-gnu": {+ "version": "4.63.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.63.1.tgz",+ "integrity": "sha512-gfI5T24WLLuFfSKw7Go/zDXjAAV0fny0swTaDv+WjK7vqcw4cRhFfdsyKL1n+ukI+ooBxn3bVQnyrn06WpI50w==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-x64-musl": {+ "version": "4.63.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.63.1.tgz",+ "integrity": "sha512-4h6XqthmB4Hspji84wvgk+ElodTsGj+dbZqHJHHtKxj4mYq0ANSEEPX9ys3moJueqsRjwpaJYH7874Itwnj2ow==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-openbsd-x64": {+ "version": "4.63.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-openbsd-x64/-/rollup-openbsd-x64-4.63.1.tgz",+ "integrity": "sha512-dlfCOa87o1VAYegLQ9EKilx2JCeRofiyPGhTCmqnuXZ6bMPiycO1rq1+sKoulAp7pGLIsTIw+1x5R+zgh5LhhA==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "openbsd"+ ]+ },+ "node_modules/@rollup/rollup-openharmony-arm64": {+ "version": "4.63.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.63.1.tgz",+ "integrity": "sha512-cjkLbOlfcm3QGhMM1J5zaZjsw1GggbN6rw9UTSSRrPrR1KkcXnN7Uq9rPw34xImQ9VOY9GN+6u2Zj80B9ptkcw==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "openharmony"+ ]+ },+ "node_modules/@rollup/rollup-win32-arm64-msvc": {+ "version": "4.63.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.63.1.tgz",+ "integrity": "sha512-Li1KdUnWGE4N3e1F/B4RTB1ms+nG4WBgjByO46pkeBVX/2UBsY53xf5vK9WygVmnH3RwncIST7lkSdLSY6P9lg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ]+ },+ "node_modules/@rollup/rollup-win32-ia32-msvc": {+ "version": "4.63.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.63.1.tgz",+ "integrity": "sha512-t4ZYOSoLTgwhuFMrmTMLx/+i1DQVK7HYqMc6kY46EApwi8X0nIVphzdNoThU3xt6n+N5urG1/gxBdCaKDLavfg==",+ "cpu": [+ "ia32"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ]+ },+ "node_modules/@rollup/rollup-win32-x64-gnu": {+ "version": "4.63.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.63.1.tgz",+ "integrity": "sha512-RgroPfMmKlD1RzSDxvwgcPiy2HNQKoYV7OmwIXDsk73uKW5t6B/V8KIy27SMv/FNXFo/oSBtWc9J0X7t91ezZg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ]+ },+ "node_modules/@rollup/rollup-win32-x64-msvc": {+ "version": "4.63.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.63.1.tgz",+ "integrity": "sha512-at8QVep6S3h5Y6gSbdGU06bRY5WJkf6WUduM9YtvYMbYhB1MOFfUgc6kehitQXzOtMSaT70q7f9ydPhpqu821w==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ]+ },+ "node_modules/@rspack/binding": {+ "version": "1.7.11",+ "resolved": "https://registry.npmjs.org/@rspack/binding/-/binding-1.7.11.tgz",+ "integrity": "sha512-2MGdy2s2HimsDT444Bp5XnALzNRxuBNc7y0JzyuqKbHBywd4x2NeXyhWXXoxufaCFu5PBc9Qq9jyfjW2Aeh06Q==",+ "dev": true,+ "license": "MIT",+ "optionalDependencies": {+ "@rspack/binding-darwin-arm64": "1.7.11",+ "@rspack/binding-darwin-x64": "1.7.11",+ "@rspack/binding-linux-arm64-gnu": "1.7.11",+ "@rspack/binding-linux-arm64-musl": "1.7.11",+ "@rspack/binding-linux-x64-gnu": "1.7.11",+ "@rspack/binding-linux-x64-musl": "1.7.11",+ "@rspack/binding-wasm32-wasi": "1.7.11",+ "@rspack/binding-win32-arm64-msvc": "1.7.11",+ "@rspack/binding-win32-ia32-msvc": "1.7.11",+ "@rspack/binding-win32-x64-msvc": "1.7.11"+ }+ },+ "node_modules/@rspack/binding-darwin-arm64": {+ "version": "1.7.11",+ "resolved": "https://registry.npmjs.org/@rspack/binding-darwin-arm64/-/binding-darwin-arm64-1.7.11.tgz",+ "integrity": "sha512-oduECiZVqbO5zlVw+q7Vy65sJFth99fWPTyucwvLJJtJkPL5n17Uiql2cYP6Ijn0pkqtf1SXgK8WjiKLG5bIig==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ]+ },+ "node_modules/@rspack/binding-darwin-x64": {+ "version": "1.7.11",+ "resolved": "https://registry.npmjs.org/@rspack/binding-darwin-x64/-/binding-darwin-x64-1.7.11.tgz",+ "integrity": "sha512-a1+TtTE9ap6RalgFi7FGIgkJP6O4Vy6ctv+9WGJy53E4kuqHR0RygzaiVxCI/GMc/vBT9vY23hyrpWb3d1vtXA==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ]+ },+ "node_modules/@rspack/binding-linux-arm64-gnu": {+ "version": "1.7.11",+ "resolved": "https://registry.npmjs.org/@rspack/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.7.11.tgz",+ "integrity": "sha512-P0QrGRPbTWu6RKWfN0bDtbnEps3rXH0MWIMreZABoUrVmNQKtXR6e73J3ub6a+di5s2+K0M2LJ9Bh2/H4UsDUA==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rspack/binding-linux-arm64-musl": {+ "version": "1.7.11",+ "resolved": "https://registry.npmjs.org/@rspack/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.7.11.tgz",+ "integrity": "sha512-6ky7R43VMjWwmx3Yx7Jl7faLBBMAgMDt+/bN35RgwjiPgsIByz65EwytUVuW9rikB43BGHvA/eqlnjLrUzNBqw==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rspack/binding-linux-x64-gnu": {+ "version": "1.7.11",+ "resolved": "https://registry.npmjs.org/@rspack/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.7.11.tgz",+ "integrity": "sha512-cuOJMfCOvb2Wgsry5enXJ3iT1FGUjdPqtGUBVupQlEG4ntSYsQ2PtF4wIDVasR3wdxC5nQbipOrDiN/u6fYsdQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rspack/binding-linux-x64-musl": {+ "version": "1.7.11",+ "resolved": "https://registry.npmjs.org/@rspack/binding-linux-x64-musl/-/binding-linux-x64-musl-1.7.11.tgz",+ "integrity": "sha512-CoK37hva4AmHGh3VCsQXmGr40L36m1/AdnN5LEjUX6kx5rEH7/1nEBN6Ii72pejqDVvk9anEROmPDiPw10tpFg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rspack/binding-wasm32-wasi": {+ "version": "1.7.11",+ "resolved": "https://registry.npmjs.org/@rspack/binding-wasm32-wasi/-/binding-wasm32-wasi-1.7.11.tgz",+ "integrity": "sha512-OtrmnPUVJMxjNa3eDMfHyPdtlLRmmp/aIm0fQHlAOATbZvlGm12q7rhPW5BXTu1yh+1rQ1/uqvz+SzKEZXuJaQ==",+ "cpu": [+ "wasm32"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "dependencies": {+ "@napi-rs/wasm-runtime": "1.0.7"+ }+ },+ "node_modules/@rspack/binding-win32-arm64-msvc": {+ "version": "1.7.11",+ "resolved": "https://registry.npmjs.org/@rspack/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.7.11.tgz",+ "integrity": "sha512-lObFW6e5lCWNgTBNwT//yiEDbsxm9QG4BYUojqeXxothuzJ/L6ibXz6+gLMvbOvLGV3nKgkXmx8GvT9WDKR0mA==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ]+ },+ "node_modules/@rspack/binding-win32-ia32-msvc": {+ "version": "1.7.11",+ "resolved": "https://registry.npmjs.org/@rspack/binding-win32-ia32-msvc/-/binding-win32-ia32-msvc-1.7.11.tgz",+ "integrity": "sha512-0pYGnZd8PPqNR68zQ8skamqNAXEA1sUfXuAdYcknIIRq2wsbiwFzIc0Pov1cIfHYab37G7sSIPBiOUdOWF5Ivw==",+ "cpu": [+ "ia32"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ]+ },+ "node_modules/@rspack/binding-win32-x64-msvc": {+ "version": "1.7.11",+ "resolved": "https://registry.npmjs.org/@rspack/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.7.11.tgz",+ "integrity": "sha512-EeQXayoQk/uBkI3pdoXfQBXNIUrADq56L3s/DFyM2pJeUDrWmhfIw2UFIGkYPTMSCo8F2JcdcGM32FGJrSnU0Q==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ]+ },+ "node_modules/@rspack/core": {+ "version": "1.7.11",+ "resolved": "https://registry.npmjs.org/@rspack/core/-/core-1.7.11.tgz",+ "integrity": "sha512-rsD9b+Khmot5DwCMiB3cqTQo53ioPG3M/A7BySu8+0+RS7GCxKm+Z+mtsjtG/vsu4Tn2tcqCdZtA3pgLoJB+ew==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@module-federation/runtime-tools": "0.22.0",+ "@rspack/binding": "1.7.11",+ "@rspack/lite-tapable": "1.1.0"+ },+ "engines": {+ "node": ">=18.12.0"+ },+ "peerDependencies": {+ "@swc/helpers": ">=0.5.1"+ },+ "peerDependenciesMeta": {+ "@swc/helpers": {+ "optional": true+ }+ }+ },+ "node_modules/@rspack/lite-tapable": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/@rspack/lite-tapable/-/lite-tapable-1.1.0.tgz",+ "integrity": "sha512-E2B0JhYFmVAwdDiG14+DW0Di4Ze4Jg10Pc4/lILUrd5DRCaklduz2OvJ5HYQ6G+hd+WTzqQb3QnDNfK4yvAFYw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@rspack/plugin-react-refresh": {+ "version": "1.6.1",+ "resolved": "https://registry.npmjs.org/@rspack/plugin-react-refresh/-/plugin-react-refresh-1.6.1.tgz",+ "integrity": "sha512-eqqW5645VG3CzGzFgNg5HqNdHVXY+567PGjtDhhrM8t67caxmsSzRmT5qfoEIfBcGgFkH9vEg7kzXwmCYQdQDw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "error-stack-parser": "^2.1.4",+ "html-entities": "^2.6.0"+ },+ "peerDependencies": {+ "react-refresh": ">=0.10.0 <1.0.0",+ "webpack-hot-middleware": "2.x"+ },+ "peerDependenciesMeta": {+ "webpack-hot-middleware": {+ "optional": true+ }+ }+ },+ "node_modules/@tweenjs/tween.js": {+ "version": "23.1.3",+ "resolved": "https://registry.npmjs.org/@tweenjs/tween.js/-/tween.js-23.1.3.tgz",+ "integrity": "sha512-vJmvvwFxYuGnF2axRtPYocag6Clbb5YS7kLL+SO/TeVFzHqDIWrNKYtcsPMibjDx9O+bu+psAy9NKfWklassUA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@tybys/wasm-util": {+ "version": "0.10.3",+ "resolved": "https://registry.npmjs.org/@tybys/wasm-util/-/wasm-util-0.10.3.tgz",+ "integrity": "sha512-F3fo1MYrRJYL3zER0OUOmkutjr1Vp23m7OsSgp7nq4SP6OqX6C/56XFIPAl5bt3zaBRjmW7SGz3u/6LwFpYcOg==",+ "dev": true,+ "license": "MIT",+ "optional": true,+ "dependencies": {+ "tslib": "^2.4.0"+ }+ },+ "node_modules/@types/babel__core": {+ "version": "7.20.5",+ "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz",+ "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/parser": "^7.20.7",+ "@babel/types": "^7.20.7",+ "@types/babel__generator": "*",+ "@types/babel__template": "*",+ "@types/babel__traverse": "*"+ }+ },+ "node_modules/@types/babel__generator": {+ "version": "7.27.0",+ "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.27.0.tgz",+ "integrity": "sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/types": "^7.0.0"+ }+ },+ "node_modules/@types/babel__template": {+ "version": "7.4.4",+ "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz",+ "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/parser": "^7.1.0",+ "@babel/types": "^7.0.0"+ }+ },+ "node_modules/@types/babel__traverse": {+ "version": "7.28.0",+ "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.28.0.tgz",+ "integrity": "sha512-8PvcXf70gTDZBgt9ptxJ8elBeBjcLOAcOtoO/mPJjtji1+CdGbHgm77om1GrsPxsiE+uXIpNSK64UYaIwQXd4Q==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/types": "^7.28.2"+ }+ },+ "node_modules/@types/babel__traverse/node_modules/@babel/types": {+ "version": "7.29.8",+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.8.tgz",+ "integrity": "sha512-Vj1jF3cPfxg7OAfoI7QnVKLoILlm2JF9pnVHrX8qx7AHMiYWT+NDAA7jChlNgRS4WTLc/fD1lXLmPixluj+3Gg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-string-parser": "^7.29.7",+ "@babel/helper-validator-identifier": "^7.29.7"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@types/dom-mediacapture-transform": {+ "version": "0.1.12",+ "resolved": "https://registry.npmjs.org/@types/dom-mediacapture-transform/-/dom-mediacapture-transform-0.1.12.tgz",+ "integrity": "sha512-d7/QsLRwF864A5mgIM/YrfiglHoYn7zgCcAoJgW404r+2DwnNr7EBbLnCWpmOMgH8y0te73L1AV6H1bmauaWFw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/dom-webcodecs": "*"+ }+ },+ "node_modules/@types/dom-webcodecs": {+ "version": "0.1.13",+ "resolved": "https://registry.npmjs.org/@types/dom-webcodecs/-/dom-webcodecs-0.1.13.tgz",+ "integrity": "sha512-O5hkiFIcjjszPIYyUSyvScyvrBoV3NOEEZx/pMlsu44TKzWNkLVBBxnxJz42in5n3QIolYOcBYFCPZZ0h8SkwQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@types/eslint": {+ "version": "9.6.1",+ "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-9.6.1.tgz",+ "integrity": "sha512-FXx2pKgId/WyYo2jXw63kk7/+TY7u7AziEJxJAnSFzHlqTAS3Ync6SvgYAN/k4/PQpnnVuzoMuVnByKK2qp0ag==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/estree": "*",+ "@types/json-schema": "*"+ }+ },+ "node_modules/@types/eslint-scope": {+ "version": "3.7.7",+ "resolved": "https://registry.npmjs.org/@types/eslint-scope/-/eslint-scope-3.7.7.tgz",+ "integrity": "sha512-MzMFlSLBqNF2gcHWO0G1vP/YQyfvrxZ0bF+u7mzUdZ1/xK4A4sru+nraZz5i3iEIk1l1uyicaDVTB4QbbEkAYg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/eslint": "*",+ "@types/estree": "*"+ }+ },+ "node_modules/@types/estree": {+ "version": "1.0.9",+ "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.9.tgz",+ "integrity": "sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@types/json-schema": {+ "version": "7.0.15",+ "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz",+ "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@types/node": {+ "version": "26.4.1",+ "resolved": "https://registry.npmjs.org/@types/node/-/node-26.4.1.tgz",+ "integrity": "sha512-k97ENvZWtvA6yqz5/FS6a7duDgOPEeOQOc2iKS/nY6mX6qJUKtLnWzQS+Xj6tXweyj6ZcTAK2Qecetnvi9nCLA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "undici-types": "~8.3.0"+ }+ },+ "node_modules/@types/react": {+ "version": "19.2.17",+ "resolved": "https://registry.npmjs.org/@types/react/-/react-19.2.17.tgz",+ "integrity": "sha512-MXfmqaVPEVgkBT/aY0aGCkRWWtByiYQXo3xdQ8r5RzuFrPiRn8Gar2tQdXSUQ2GKV3bkXckek89V8wQBY2Q/Aw==",+ "license": "MIT",+ "dependencies": {+ "csstype": "^3.2.2"+ }+ },+ "node_modules/@types/react-dom": {+ "version": "19.2.3",+ "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-19.2.3.tgz",+ "integrity": "sha512-jp2L/eY6fn+KgVVQAOqYItbF0VY/YApe5Mz2F0aykSO8gx31bYCZyvSeYxCHKvzHG5eZjc+zyaS5BrBWya2+kQ==",+ "dev": true,+ "license": "MIT",+ "peerDependencies": {+ "@types/react": "^19.2.0"+ }+ },+ "node_modules/@types/react-reconciler": {+ "version": "0.28.9",+ "resolved": "https://registry.npmjs.org/@types/react-reconciler/-/react-reconciler-0.28.9.tgz",+ "integrity": "sha512-HHM3nxyUZ3zAylX8ZEyrDNd2XZOnQ0D5XfunJF5FLQnZbHHYq4UWvW1QfelQNXv1ICNkwYhfxjwfnqivYB6bFg==",+ "license": "MIT",+ "peerDependencies": {+ "@types/react": "*"+ }+ },+ "node_modules/@types/stats.js": {+ "version": "0.17.4",+ "resolved": "https://registry.npmjs.org/@types/stats.js/-/stats.js-0.17.4.tgz",+ "integrity": "sha512-jIBvWWShCvlBqBNIZt0KAshWpvSjhkwkEu4ZUcASoAvhmrgAUI2t1dXrjSL4xXVLB4FznPrIsX3nKXFl/Dt4vA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@types/three": {+ "version": "0.185.4",+ "resolved": "https://registry.npmjs.org/@types/three/-/three-0.185.4.tgz",+ "integrity": "sha512-gAsBIC07NIFrxjbf7tH2t71c38uulFfk/RFoC7FNBSjMRAQ8J1x/RBvusX0N5PJouaYFJawXQqfCQ0RKUx/1nA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@dimforge/rapier3d-compat": "~0.12.0",+ "@tweenjs/tween.js": "~23.1.3",+ "@types/stats.js": "*",+ "@types/webxr": ">=0.5.17",+ "fflate": "~0.8.2",+ "meshoptimizer": "~1.1.1"+ }+ },+ "node_modules/@types/webxr": {+ "version": "0.5.24",+ "resolved": "https://registry.npmjs.org/@types/webxr/-/webxr-0.5.24.tgz",+ "integrity": "sha512-h8fgEd/DpoS9CBrjEQXR+dIDraopAEfu4wYVNY2tEPwk60stPWhvZMf4Foo5FakuQ7HFZoa8WceaWFervK2Ovg==",+ "license": "MIT"+ },+ "node_modules/@vitejs/plugin-react": {+ "version": "4.7.0",+ "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-4.7.0.tgz",+ "integrity": "sha512-gUu9hwfWvvEDBBmgtAowQCojwZmJ5mcLn3aufeCsitijs3+f2NsrPtlAWIR6OPiqljl96GVCUbLe0HyqIpVaoA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/core": "^7.28.0",+ "@babel/plugin-transform-react-jsx-self": "^7.27.1",+ "@babel/plugin-transform-react-jsx-source": "^7.27.1",+ "@rolldown/pluginutils": "1.0.0-beta.27",+ "@types/babel__core": "^7.20.5",+ "react-refresh": "^0.17.0"+ },+ "engines": {+ "node": "^14.18.0 || >=16.0.0"+ },+ "peerDependencies": {+ "vite": "^4.2.0 || ^5.0.0 || ^6.0.0 || ^7.0.0"+ }+ },+ "node_modules/@vitejs/plugin-react/node_modules/react-refresh": {+ "version": "0.17.0",+ "resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.17.0.tgz",+ "integrity": "sha512-z6F7K9bV85EfseRCp2bzrpyQ0Gkw1uLoCel9XBVWPg/TjRj94SkJzUTGfOa4bs7iJvBWtQG0Wq7wnI0syw3EBQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/@webassemblyjs/ast": {+ "version": "1.14.1",+ "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.14.1.tgz",+ "integrity": "sha512-nuBEDgQfm1ccRp/8bCQrx1frohyufl4JlbMMZ4P1wpeOfDhF6FQkxZJ1b/e+PLwr6X1Nhw6OLme5usuBWYBvuQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@webassemblyjs/helper-numbers": "1.13.2",+ "@webassemblyjs/helper-wasm-bytecode": "1.13.2"+ }+ },+ "node_modules/@webassemblyjs/floating-point-hex-parser": {+ "version": "1.13.2",+ "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.13.2.tgz",+ "integrity": "sha512-6oXyTOzbKxGH4steLbLNOu71Oj+C8Lg34n6CqRvqfS2O71BxY6ByfMDRhBytzknj9yGUPVJ1qIKhRlAwO1AovA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@webassemblyjs/helper-api-error": {+ "version": "1.13.2",+ "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.13.2.tgz",+ "integrity": "sha512-U56GMYxy4ZQCbDZd6JuvvNV/WFildOjsaWD3Tzzvmw/mas3cXzRJPMjP83JqEsgSbyrmaGjBfDtV7KDXV9UzFQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@webassemblyjs/helper-buffer": {+ "version": "1.14.1",+ "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.14.1.tgz",+ "integrity": "sha512-jyH7wtcHiKssDtFPRB+iQdxlDf96m0E39yb0k5uJVhFGleZFoNw1c4aeIcVUPPbXUVJ94wwnMOAqUHyzoEPVMA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@webassemblyjs/helper-numbers": {+ "version": "1.13.2",+ "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-numbers/-/helper-numbers-1.13.2.tgz",+ "integrity": "sha512-FE8aCmS5Q6eQYcV3gI35O4J789wlQA+7JrqTTpJqn5emA4U2hvwJmvFRC0HODS+3Ye6WioDklgd6scJ3+PLnEA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@webassemblyjs/floating-point-hex-parser": "1.13.2",+ "@webassemblyjs/helper-api-error": "1.13.2",+ "@xtuc/long": "4.2.2"+ }+ },+ "node_modules/@webassemblyjs/helper-wasm-bytecode": {+ "version": "1.13.2",+ "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.13.2.tgz",+ "integrity": "sha512-3QbLKy93F0EAIXLh0ogEVR6rOubA9AoZ+WRYhNbFyuB70j3dRdwH9g+qXhLAO0kiYGlg3TxDV+I4rQTr/YNXkA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@webassemblyjs/helper-wasm-section": {+ "version": "1.14.1",+ "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.14.1.tgz",+ "integrity": "sha512-ds5mXEqTJ6oxRoqjhWDU83OgzAYjwsCV8Lo/N+oRsNDmx/ZDpqalmrtgOMkHwxsG0iI//3BwWAErYRHtgn0dZw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@webassemblyjs/ast": "1.14.1",+ "@webassemblyjs/helper-buffer": "1.14.1",+ "@webassemblyjs/helper-wasm-bytecode": "1.13.2",+ "@webassemblyjs/wasm-gen": "1.14.1"+ }+ },+ "node_modules/@webassemblyjs/ieee754": {+ "version": "1.13.2",+ "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.13.2.tgz",+ "integrity": "sha512-4LtOzh58S/5lX4ITKxnAK2USuNEvpdVV9AlgGQb8rJDHaLeHciwG4zlGr0j/SNWlr7x3vO1lDEsuePvtcDNCkw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@xtuc/ieee754": "^1.2.0"+ }+ },+ "node_modules/@webassemblyjs/leb128": {+ "version": "1.13.2",+ "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.13.2.tgz",+ "integrity": "sha512-Lde1oNoIdzVzdkNEAWZ1dZ5orIbff80YPdHx20mrHwHrVNNTjNr8E3xz9BdpcGqRQbAEa+fkrCb+fRFTl/6sQw==",+ "dev": true,+ "license": "Apache-2.0",+ "dependencies": {+ "@xtuc/long": "4.2.2"+ }+ },+ "node_modules/@webassemblyjs/utf8": {+ "version": "1.13.2",+ "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.13.2.tgz",+ "integrity": "sha512-3NQWGjKTASY1xV5m7Hr0iPeXD9+RDobLll3T9d2AO+g3my8xy5peVyjSag4I50mR1bBSN/Ct12lo+R9tJk0NZQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@webassemblyjs/wasm-edit": {+ "version": "1.14.1",+ "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.14.1.tgz",+ "integrity": "sha512-RNJUIQH/J8iA/1NzlE4N7KtyZNHi3w7at7hDjvRNm5rcUXa00z1vRz3glZoULfJ5mpvYhLybmVcwcjGrC1pRrQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@webassemblyjs/ast": "1.14.1",+ "@webassemblyjs/helper-buffer": "1.14.1",+ "@webassemblyjs/helper-wasm-bytecode": "1.13.2",+ "@webassemblyjs/helper-wasm-section": "1.14.1",+ "@webassemblyjs/wasm-gen": "1.14.1",+ "@webassemblyjs/wasm-opt": "1.14.1",+ "@webassemblyjs/wasm-parser": "1.14.1",+ "@webassemblyjs/wast-printer": "1.14.1"+ }+ },+ "node_modules/@webassemblyjs/wasm-gen": {+ "version": "1.14.1",+ "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.14.1.tgz",+ "integrity": "sha512-AmomSIjP8ZbfGQhumkNvgC33AY7qtMCXnN6bL2u2Js4gVCg8fp735aEiMSBbDR7UQIj90n4wKAFUSEd0QN2Ukg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@webassemblyjs/ast": "1.14.1",+ "@webassemblyjs/helper-wasm-bytecode": "1.13.2",+ "@webassemblyjs/ieee754": "1.13.2",+ "@webassemblyjs/leb128": "1.13.2",+ "@webassemblyjs/utf8": "1.13.2"+ }+ },+ "node_modules/@webassemblyjs/wasm-opt": {+ "version": "1.14.1",+ "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.14.1.tgz",+ "integrity": "sha512-PTcKLUNvBqnY2U6E5bdOQcSM+oVP/PmrDY9NzowJjislEjwP/C4an2303MCVS2Mg9d3AJpIGdUFIQQWbPds0Sw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@webassemblyjs/ast": "1.14.1",+ "@webassemblyjs/helper-buffer": "1.14.1",+ "@webassemblyjs/wasm-gen": "1.14.1",+ "@webassemblyjs/wasm-parser": "1.14.1"+ }+ },+ "node_modules/@webassemblyjs/wasm-parser": {+ "version": "1.14.1",+ "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.14.1.tgz",+ "integrity": "sha512-JLBl+KZ0R5qB7mCnud/yyX08jWFw5MsoalJ1pQ4EdFlgj9VdXKGuENGsiCIjegI1W7p91rUlcB/LB5yRJKNTcQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@webassemblyjs/ast": "1.14.1",+ "@webassemblyjs/helper-api-error": "1.13.2",+ "@webassemblyjs/helper-wasm-bytecode": "1.13.2",+ "@webassemblyjs/ieee754": "1.13.2",+ "@webassemblyjs/leb128": "1.13.2",+ "@webassemblyjs/utf8": "1.13.2"+ }+ },+ "node_modules/@webassemblyjs/wast-printer": {+ "version": "1.14.1",+ "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.14.1.tgz",+ "integrity": "sha512-kPSSXE6De1XOR820C90RIo2ogvZG+c3KiHzqUoO/F34Y2shGzesfqv7o57xrxovZJH/MetF5UjroJ/R/3isoiw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@webassemblyjs/ast": "1.14.1",+ "@xtuc/long": "4.2.2"+ }+ },+ "node_modules/@xtuc/ieee754": {+ "version": "1.2.0",+ "resolved": "https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz",+ "integrity": "sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==",+ "dev": true,+ "license": "BSD-3-Clause"+ },+ "node_modules/@xtuc/long": {+ "version": "4.2.2",+ "resolved": "https://registry.npmjs.org/@xtuc/long/-/long-4.2.2.tgz",+ "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==",+ "dev": true,+ "license": "Apache-2.0"+ },+ "node_modules/acorn": {+ "version": "8.18.0",+ "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.18.0.tgz",+ "integrity": "sha512-lGq+9yr1/GuAWaVYIHRjvvySG5/4VfKIvC8EWxStPdcDh/Ka7FG3twP6v4d5BkravUilhIAsG4Qj83t02LWUPQ==",+ "dev": true,+ "license": "MIT",+ "bin": {+ "acorn": "bin/acorn"+ },+ "engines": {+ "node": ">=0.4.0"+ }+ },+ "node_modules/acorn-import-phases": {+ "version": "1.0.4",+ "resolved": "https://registry.npmjs.org/acorn-import-phases/-/acorn-import-phases-1.0.4.tgz",+ "integrity": "sha512-wKmbr/DDiIXzEOiWrTTUcDm24kQ2vGfZQvM2fwg2vXqR5uW6aapr7ObPtj1th32b9u90/Pf4AItvdTh42fBmVQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=10.13.0"+ },+ "peerDependencies": {+ "acorn": "^8.14.0"+ }+ },+ "node_modules/ajv": {+ "version": "8.20.0",+ "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.20.0.tgz",+ "integrity": "sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "fast-deep-equal": "^3.1.3",+ "fast-uri": "^3.0.1",+ "json-schema-traverse": "^1.0.0",+ "require-from-string": "^2.0.2"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/epoberezkin"+ }+ },+ "node_modules/ajv-formats": {+ "version": "2.1.1",+ "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-2.1.1.tgz",+ "integrity": "sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "ajv": "^8.0.0"+ },+ "peerDependencies": {+ "ajv": "^8.0.0"+ },+ "peerDependenciesMeta": {+ "ajv": {+ "optional": true+ }+ }+ },+ "node_modules/ajv-keywords": {+ "version": "5.1.0",+ "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz",+ "integrity": "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "fast-deep-equal": "^3.1.3"+ },+ "peerDependencies": {+ "ajv": "^8.8.2"+ }+ },+ "node_modules/ast-types": {+ "version": "0.16.3",+ "resolved": "https://registry.npmjs.org/ast-types/-/ast-types-0.16.3.tgz",+ "integrity": "sha512-FvWoWYfSCM6kRxCSH+MGLHIKKGRL6A6AW7Zek2O32REPQRdg131428uRTKMBYAeRd3XXAaHDS60Wpri7CdKDrA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "tslib": "^2.0.1"+ },+ "engines": {+ "node": ">=4"+ }+ },+ "node_modules/base64-js": {+ "version": "1.5.1",+ "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz",+ "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==",+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/feross"+ },+ {+ "type": "patreon",+ "url": "https://www.patreon.com/feross"+ },+ {+ "type": "consulting",+ "url": "https://feross.org/support"+ }+ ],+ "license": "MIT"+ },+ "node_modules/baseline-browser-mapping": {+ "version": "2.11.21",+ "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.11.21.tgz",+ "integrity": "sha512-uh8vpY/1/YyFkunIDFH/12p7/7VdPKA1hejMVEbdkEaWnUz0Hesvx5EbiU6XxjyHZIOju+ZMbQJkRh+es3/spQ==",+ "dev": true,+ "license": "Apache-2.0",+ "bin": {+ "baseline-browser-mapping": "dist/cli.cjs"+ },+ "engines": {+ "node": ">=6.0.0"+ }+ },+ "node_modules/browserslist": {+ "version": "4.28.9",+ "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.9.tgz",+ "integrity": "sha512-EWazOblFYUvlGZcfGhPUPmYh3nikUxBVb+y9MJun5f3hBi812X+8MSQTujLBtgK3cf51fJWbWfOjyeO954d+Eg==",+ "dev": true,+ "funding": [+ {+ "type": "opencollective",+ "url": "https://opencollective.com/browserslist"+ },+ {+ "type": "tidelift",+ "url": "https://tidelift.com/funding/github/npm/browserslist"+ },+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "baseline-browser-mapping": "^2.11.20",+ "caniuse-lite": "^1.0.30001810",+ "electron-to-chromium": "^1.5.420",+ "node-releases": "^2.0.54",+ "update-browserslist-db": "^1.3.2"+ },+ "bin": {+ "browserslist": "cli.js"+ },+ "engines": {+ "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7"+ }+ },+ "node_modules/buffer": {+ "version": "6.0.3",+ "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz",+ "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==",+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/feross"+ },+ {+ "type": "patreon",+ "url": "https://www.patreon.com/feross"+ },+ {+ "type": "consulting",+ "url": "https://feross.org/support"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "base64-js": "^1.3.1",+ "ieee754": "^1.2.1"+ }+ },+ "node_modules/buffer-from": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz",+ "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/caniuse-lite": {+ "version": "1.0.30001810",+ "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001810.tgz",+ "integrity": "sha512-TITQPUkaz+aVk5GL6NhOdwk1aEaNTSDPsGFWrTuhKGtjTF70jL/Oht2W4c6rXUe5fu7Ie19VIahAXHIIiWWNeg==",+ "dev": true,+ "funding": [+ {+ "type": "opencollective",+ "url": "https://opencollective.com/browserslist"+ },+ {+ "type": "tidelift",+ "url": "https://tidelift.com/funding/github/npm/caniuse-lite"+ },+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],+ "license": "CC-BY-4.0"+ },+ "node_modules/chrome-trace-event": {+ "version": "1.0.4",+ "resolved": "https://registry.npmjs.org/chrome-trace-event/-/chrome-trace-event-1.0.4.tgz",+ "integrity": "sha512-rNjApaLzuwaOTjCiT8lSDdGN1APCiqkChLMJxJPWLunPAt5fy8xgU9/jNOchV84wfIxrA0lRQB7oCT8jrn/wrQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.0"+ }+ },+ "node_modules/commander": {+ "version": "2.20.3",+ "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz",+ "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/convert-source-map": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz",+ "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/cross-spawn": {+ "version": "7.0.6",+ "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz",+ "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "path-key": "^3.1.0",+ "shebang-command": "^2.0.0",+ "which": "^2.0.1"+ },+ "engines": {+ "node": ">= 8"+ }+ },+ "node_modules/css-loader": {+ "version": "7.1.4",+ "resolved": "https://registry.npmjs.org/css-loader/-/css-loader-7.1.4.tgz",+ "integrity": "sha512-vv3J9tlOl04WjiMvHQI/9tmIrCxVrj6PFbHemBB1iihpeRbi/I4h033eoFIhwxBBqLhI0KYFS7yvynBFhIZfTw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "icss-utils": "^5.1.0",+ "postcss": "^8.4.40",+ "postcss-modules-extract-imports": "^3.1.0",+ "postcss-modules-local-by-default": "^4.0.5",+ "postcss-modules-scope": "^3.2.0",+ "postcss-modules-values": "^4.0.0",+ "postcss-value-parser": "^4.2.0",+ "semver": "^7.6.3"+ },+ "engines": {+ "node": ">= 18.12.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/webpack"+ },+ "peerDependencies": {+ "@rspack/core": "0.x || ^1.0.0 || ^2.0.0-0",+ "webpack": "^5.27.0"+ },+ "peerDependenciesMeta": {+ "@rspack/core": {+ "optional": true+ },+ "webpack": {+ "optional": true+ }+ }+ },+ "node_modules/css-loader/node_modules/semver": {+ "version": "7.8.5",+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz",+ "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==",+ "dev": true,+ "license": "ISC",+ "bin": {+ "semver": "bin/semver.js"+ },+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/cssesc": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz",+ "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==",+ "dev": true,+ "license": "MIT",+ "bin": {+ "cssesc": "bin/cssesc"+ },+ "engines": {+ "node": ">=4"+ }+ },+ "node_modules/csstype": {+ "version": "3.2.3",+ "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz",+ "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==",+ "license": "MIT"+ },+ "node_modules/debug": {+ "version": "4.4.3",+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",+ "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "ms": "^2.1.3"+ },+ "engines": {+ "node": ">=6.0"+ },+ "peerDependenciesMeta": {+ "supports-color": {+ "optional": true+ }+ }+ },+ "node_modules/define-lazy-prop": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-2.0.0.tgz",+ "integrity": "sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/dotenv": {+ "version": "17.3.1",+ "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-17.3.1.tgz",+ "integrity": "sha512-IO8C/dzEb6O3F9/twg6ZLXz164a2fhTnEWb95H23Dm4OuN+92NmEAlTrupP9VW6Jm3sO26tQlqyvyi4CsnY9GA==",+ "dev": true,+ "license": "BSD-2-Clause",+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://dotenvx.com"+ }+ },+ "node_modules/electron-to-chromium": {+ "version": "1.5.422",+ "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.422.tgz",+ "integrity": "sha512-UvA/32XqrLDdZSn7Jllo1AYNcWji/G0d5M0GTViE7KoGBiMunw3a34Sb2KO4ZZyrSEhqsxFoVhWWJshdyfKqJA==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/enhanced-resolve": {+ "version": "5.24.5",+ "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.24.5.tgz",+ "integrity": "sha512-L1l8TNvomm6UVW5B253AGxQagSQr+vGwhMlrrfRS2qmhx46AMpMVJKQYLvWYbysTMY8VoicOvzHzoHMbyzB+4A==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "graceful-fs": "^4.2.4",+ "tapable": "^2.3.3"+ },+ "engines": {+ "node": ">=10.13.0"+ }+ },+ "node_modules/error-stack-parser": {+ "version": "2.1.4",+ "resolved": "https://registry.npmjs.org/error-stack-parser/-/error-stack-parser-2.1.4.tgz",+ "integrity": "sha512-Sk5V6wVazPhq5MhpO+AUxJn5x7XSXGl1R93Vn7i+zS15KDVxQijejNCrz8340/2bgLBjR9GtEG8ZVKONDjcqGQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "stackframe": "^1.3.4"+ }+ },+ "node_modules/es-module-lexer": {+ "version": "2.3.2",+ "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-2.3.2.tgz",+ "integrity": "sha512-poHGpORABojJJucnV9KbOavETW8lBVnphkW77ER5/BQ5Fz7oXSoCNek7IH3vR5nRjdsEz926ibFYX8KtLQmdyw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/esbuild": {+ "version": "0.28.1",+ "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.28.1.tgz",+ "integrity": "sha512-HrJrvZv5ayxBzPfwphOoNzkzOIIlifzk0KJrGK2c8R4+LKpMtpYLQeUdjnwjWv/LZlkH2laZk+4w78pi99D4Vw==",+ "dev": true,+ "hasInstallScript": true,+ "license": "MIT",+ "bin": {+ "esbuild": "bin/esbuild"+ },+ "engines": {+ "node": ">=18"+ },+ "optionalDependencies": {+ "@esbuild/aix-ppc64": "0.28.1",+ "@esbuild/android-arm": "0.28.1",+ "@esbuild/android-arm64": "0.28.1",+ "@esbuild/android-x64": "0.28.1",+ "@esbuild/darwin-arm64": "0.28.1",+ "@esbuild/darwin-x64": "0.28.1",+ "@esbuild/freebsd-arm64": "0.28.1",+ "@esbuild/freebsd-x64": "0.28.1",+ "@esbuild/linux-arm": "0.28.1",+ "@esbuild/linux-arm64": "0.28.1",+ "@esbuild/linux-ia32": "0.28.1",+ "@esbuild/linux-loong64": "0.28.1",+ "@esbuild/linux-mips64el": "0.28.1",+ "@esbuild/linux-ppc64": "0.28.1",+ "@esbuild/linux-riscv64": "0.28.1",+ "@esbuild/linux-s390x": "0.28.1",+ "@esbuild/linux-x64": "0.28.1",+ "@esbuild/netbsd-arm64": "0.28.1",+ "@esbuild/netbsd-x64": "0.28.1",+ "@esbuild/openbsd-arm64": "0.28.1",+ "@esbuild/openbsd-x64": "0.28.1",+ "@esbuild/openharmony-arm64": "0.28.1",+ "@esbuild/sunos-x64": "0.28.1",+ "@esbuild/win32-arm64": "0.28.1",+ "@esbuild/win32-ia32": "0.28.1",+ "@esbuild/win32-x64": "0.28.1"+ }+ },+ "node_modules/escalade": {+ "version": "3.2.0",+ "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz",+ "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/eslint-scope": {+ "version": "5.1.1",+ "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz",+ "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==",+ "dev": true,+ "license": "BSD-2-Clause",+ "dependencies": {+ "esrecurse": "^4.3.0",+ "estraverse": "^4.1.1"+ },+ "engines": {+ "node": ">=8.0.0"+ }+ },+ "node_modules/esprima": {+ "version": "4.0.1",+ "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz",+ "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==",+ "dev": true,+ "license": "BSD-2-Clause",+ "bin": {+ "esparse": "bin/esparse.js",+ "esvalidate": "bin/esvalidate.js"+ },+ "engines": {+ "node": ">=4"+ }+ },+ "node_modules/esrecurse": {+ "version": "4.3.0",+ "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz",+ "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==",+ "dev": true,+ "license": "BSD-2-Clause",+ "dependencies": {+ "estraverse": "^5.2.0"+ },+ "engines": {+ "node": ">=4.0"+ }+ },+ "node_modules/esrecurse/node_modules/estraverse": {+ "version": "5.3.0",+ "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz",+ "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==",+ "dev": true,+ "license": "BSD-2-Clause",+ "engines": {+ "node": ">=4.0"+ }+ },+ "node_modules/estraverse": {+ "version": "4.3.0",+ "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz",+ "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==",+ "dev": true,+ "license": "BSD-2-Clause",+ "engines": {+ "node": ">=4.0"+ }+ },+ "node_modules/events": {+ "version": "3.3.0",+ "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz",+ "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=0.8.x"+ }+ },+ "node_modules/execa": {+ "version": "5.1.1",+ "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz",+ "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "cross-spawn": "^7.0.3",+ "get-stream": "^6.0.0",+ "human-signals": "^2.1.0",+ "is-stream": "^2.0.0",+ "merge-stream": "^2.0.0",+ "npm-run-path": "^4.0.1",+ "onetime": "^5.1.2",+ "signal-exit": "^3.0.3",+ "strip-final-newline": "^2.0.0"+ },+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sindresorhus/execa?sponsor=1"+ }+ },+ "node_modules/fast-deep-equal": {+ "version": "3.1.3",+ "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",+ "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/fast-uri": {+ "version": "3.1.7",+ "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.7.tgz",+ "integrity": "sha512-dOvZVzjdZdz7phd9v6jCbwxrBW3fK6n8Rc0CtdmM4bumzMnxywBYhuph6J819RRw/ku+rLbelwfMunktuzVVHg==",+ "dev": true,+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/fastify"+ },+ {+ "type": "opencollective",+ "url": "https://opencollective.com/fastify"+ }+ ],+ "license": "BSD-3-Clause"+ },+ "node_modules/fdir": {+ "version": "6.5.0",+ "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz",+ "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=12.0.0"+ },+ "peerDependencies": {+ "picomatch": "^3 || ^4"+ },+ "peerDependenciesMeta": {+ "picomatch": {+ "optional": true+ }+ }+ },+ "node_modules/fflate": {+ "version": "0.8.3",+ "resolved": "https://registry.npmjs.org/fflate/-/fflate-0.8.3.tgz",+ "integrity": "sha512-tbZNuJrLwGUp3zshBtdy4W+ORxZuIh8a5ilyIEQDC5rY1f3U20JMry0Ll3WBzU58EZKsEuJFXhb5gwv8CsPvgA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/fs-monkey": {+ "version": "1.0.3",+ "resolved": "https://registry.npmjs.org/fs-monkey/-/fs-monkey-1.0.3.tgz",+ "integrity": "sha512-cybjIfiiE+pTWicSCLFHSrXZ6EilF30oh91FDP9S2B051prEa7QWfrVTQm10/dDpswBDXZugPa1Ogu8Yh+HV0Q==",+ "dev": true,+ "license": "Unlicense"+ },+ "node_modules/fsevents": {+ "version": "2.3.3",+ "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",+ "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",+ "dev": true,+ "hasInstallScript": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": "^8.16.0 || ^10.6.0 || >=11.0.0"+ }+ },+ "node_modules/gensync": {+ "version": "1.0.0-beta.2",+ "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz",+ "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/get-stream": {+ "version": "6.0.1",+ "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz",+ "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/glob-to-regexp": {+ "version": "0.4.1",+ "resolved": "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz",+ "integrity": "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==",+ "dev": true,+ "license": "BSD-2-Clause"+ },+ "node_modules/graceful-fs": {+ "version": "4.2.11",+ "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz",+ "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/has-flag": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",+ "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/html-entities": {+ "version": "2.6.0",+ "resolved": "https://registry.npmjs.org/html-entities/-/html-entities-2.6.0.tgz",+ "integrity": "sha512-kig+rMn/QOVRvr7c86gQ8lWXq+Hkv6CbAH1hLu+RG338StTpE8Z0b44SDVaqVu7HGKf27frdmUYEs9hTUX/cLQ==",+ "dev": true,+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/mdevils"+ },+ {+ "type": "patreon",+ "url": "https://patreon.com/mdevils"+ }+ ],+ "license": "MIT"+ },+ "node_modules/human-signals": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz",+ "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==",+ "dev": true,+ "license": "Apache-2.0",+ "engines": {+ "node": ">=10.17.0"+ }+ },+ "node_modules/icss-utils": {+ "version": "5.1.0",+ "resolved": "https://registry.npmjs.org/icss-utils/-/icss-utils-5.1.0.tgz",+ "integrity": "sha512-soFhflCVWLfRNOPU3iv5Z9VUdT44xFRbzjLsEzSr5AQmgqPMTHdU3PMT1Cf1ssx8fLNJDA1juftYl+PUcv3MqA==",+ "dev": true,+ "license": "ISC",+ "engines": {+ "node": "^10 || ^12 || >= 14"+ },+ "peerDependencies": {+ "postcss": "^8.1.0"+ }+ },+ "node_modules/ieee754": {+ "version": "1.2.1",+ "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz",+ "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==",+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/feross"+ },+ {+ "type": "patreon",+ "url": "https://www.patreon.com/feross"+ },+ {+ "type": "consulting",+ "url": "https://feross.org/support"+ }+ ],+ "license": "BSD-3-Clause"+ },+ "node_modules/is-docker": {+ "version": "2.2.1",+ "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz",+ "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==",+ "dev": true,+ "license": "MIT",+ "bin": {+ "is-docker": "cli.js"+ },+ "engines": {+ "node": ">=8"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/is-stream": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz",+ "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/is-wsl": {+ "version": "2.2.0",+ "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz",+ "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "is-docker": "^2.0.0"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/isexe": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",+ "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/its-fine": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/its-fine/-/its-fine-2.0.0.tgz",+ "integrity": "sha512-KLViCmWx94zOvpLwSlsx6yOCeMhZYaxrJV87Po5k/FoZzcPSahvK5qJ7fYhS61sZi5ikmh2S3Hz55A2l3U69ng==",+ "license": "MIT",+ "dependencies": {+ "@types/react-reconciler": "^0.28.9"+ },+ "peerDependencies": {+ "react": "^19.0.0"+ }+ },+ "node_modules/jest-worker": {+ "version": "27.5.1",+ "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.1.tgz",+ "integrity": "sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/node": "*",+ "merge-stream": "^2.0.0",+ "supports-color": "^8.0.0"+ },+ "engines": {+ "node": ">= 10.13.0"+ }+ },+ "node_modules/js-tokens": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",+ "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/jsesc": {+ "version": "3.1.0",+ "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz",+ "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==",+ "dev": true,+ "license": "MIT",+ "bin": {+ "jsesc": "bin/jsesc"+ },+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/json-parse-even-better-errors": {+ "version": "2.3.1",+ "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz",+ "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/json-schema-traverse": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz",+ "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/json5": {+ "version": "2.2.3",+ "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz",+ "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==",+ "dev": true,+ "license": "MIT",+ "bin": {+ "json5": "lib/cli.js"+ },+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/kleur": {+ "version": "3.0.3",+ "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz",+ "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/loader-runner": {+ "version": "4.3.2",+ "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-4.3.2.tgz",+ "integrity": "sha512-DFEqQ3ihfS9blba08cLfYf1NRAIEm+dDjic073DRDc3/JspI/8wYmtDsHwd3+4hwvdxSK7PGaElfTmm0awWJ4w==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.11.5"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/webpack"+ }+ },+ "node_modules/lodash.sortby": {+ "version": "4.7.0",+ "resolved": "https://registry.npmjs.org/lodash.sortby/-/lodash.sortby-4.7.0.tgz",+ "integrity": "sha512-HDWXG8isMntAyRF5vZ7xKuEvOhT4AhlRt/3czTSjvGUxjYCBVRQY48ViDHyfYz9VIoBkW4TMGQNapx+l3RUwdA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/lru-cache": {+ "version": "5.1.1",+ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz",+ "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "yallist": "^3.0.2"+ }+ },+ "node_modules/mediabunny": {+ "version": "1.47.0",+ "resolved": "https://registry.npmjs.org/mediabunny/-/mediabunny-1.47.0.tgz",+ "integrity": "sha512-XQMZAcaKPkJ7hQ/Q2fvBdl3ZazQl2WVxDysUbJWh4PuAnLoerdsQBdPTDWdUdK6hh26LQ8Ue94MLLnmpWvlUYg==",+ "dev": true,+ "license": "MPL-2.0",+ "workspaces": [+ ".",+ "packages/*"+ ],+ "dependencies": {+ "@types/dom-mediacapture-transform": "^0.1.11",+ "@types/dom-webcodecs": "0.1.13"+ },+ "funding": {+ "type": "individual",+ "url": "https://github.com/sponsors/Vanilagy"+ }+ },+ "node_modules/memfs": {+ "version": "3.4.3",+ "resolved": "https://registry.npmjs.org/memfs/-/memfs-3.4.3.tgz",+ "integrity": "sha512-eivjfi7Ahr6eQTn44nvTnR60e4a1Fs1Via2kCR5lHo/kyNoiMWaXCNJ/GpSd0ilXas2JSOl9B5FTIhflXu0hlg==",+ "dev": true,+ "license": "Unlicense",+ "dependencies": {+ "fs-monkey": "1.0.3"+ },+ "engines": {+ "node": ">= 4.0.0"+ }+ },+ "node_modules/merge-stream": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz",+ "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/meshoptimizer": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/meshoptimizer/-/meshoptimizer-1.1.1.tgz",+ "integrity": "sha512-oRFNWJRDA/WTrVj7NWvqa5HqE1t9MYDj2VaWirQCzCCrAd2GHrqR/sQezCxiWATPNlKTcRaPRHPJwIRoPBAp5g==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/mime-db": {+ "version": "1.52.0",+ "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",+ "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/mime-types": {+ "version": "2.1.35",+ "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",+ "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "mime-db": "1.52.0"+ },+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/mimic-fn": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz",+ "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/minimist": {+ "version": "1.2.6",+ "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.6.tgz",+ "integrity": "sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/ms": {+ "version": "2.1.3",+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",+ "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/nanoid": {+ "version": "3.3.18",+ "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.18.tgz",+ "integrity": "sha512-DTg4MJbGMWkfi6VZFdNt2/caMbQy4Ou+Op/hJQvGEWcnVfoA1QA+xzRKAzw9jD6+GVOOeYr/mIcuDSdug6F6+w==",+ "dev": true,+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],+ "license": "MIT",+ "bin": {+ "nanoid": "bin/nanoid.cjs"+ },+ "engines": {+ "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"+ }+ },+ "node_modules/neo-async": {+ "version": "2.6.2",+ "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz",+ "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/node-releases": {+ "version": "2.0.54",+ "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.54.tgz",+ "integrity": "sha512-YHs7BmmcsdAI5Ozuf8JZo6PT0mv2GIWC9vMfvUC3dp65M8hn7Ux8CPL+2oBI7juNuj9d0ndhTcznq2ODBps9cQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/npm-run-path": {+ "version": "4.0.1",+ "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz",+ "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "path-key": "^3.0.0"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/onetime": {+ "version": "5.1.2",+ "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz",+ "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "mimic-fn": "^2.1.0"+ },+ "engines": {+ "node": ">=6"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/open": {+ "version": "8.4.2",+ "resolved": "https://registry.npmjs.org/open/-/open-8.4.2.tgz",+ "integrity": "sha512-7x81NCL719oNbsq/3mh+hVrAWmFuEYUqrq/Iw3kUzH8ReypT9QQ0BLoJS7/G9k6N81XjW4qHWtjWwe/9eLy1EQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "define-lazy-prop": "^2.0.0",+ "is-docker": "^2.1.1",+ "is-wsl": "^2.2.0"+ },+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/path-key": {+ "version": "3.1.1",+ "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz",+ "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/picocolors": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",+ "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/picomatch": {+ "version": "4.0.7",+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.7.tgz",+ "integrity": "sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/sponsors/jonschlinkert"+ }+ },+ "node_modules/postcss": {+ "version": "8.5.28",+ "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.28.tgz",+ "integrity": "sha512-RRuzqDtt5Y9h3quz5hWhK+TPnsmVs6WwSU6LkJMeY4HstUEDuYTG8UJSdawMRzmzAtV+KEoG8N3Qg2qLy5vM/A==",+ "dev": true,+ "funding": [+ {+ "type": "opencollective",+ "url": "https://opencollective.com/postcss/"+ },+ {+ "type": "tidelift",+ "url": "https://tidelift.com/funding/github/npm/postcss"+ },+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "nanoid": "^3.3.18",+ "picocolors": "^1.1.1",+ "source-map-js": "^1.2.1"+ },+ "engines": {+ "node": "^10 || ^12 || >=14"+ }+ },+ "node_modules/postcss-modules-extract-imports": {+ "version": "3.1.0",+ "resolved": "https://registry.npmjs.org/postcss-modules-extract-imports/-/postcss-modules-extract-imports-3.1.0.tgz",+ "integrity": "sha512-k3kNe0aNFQDAZGbin48pL2VNidTF0w4/eASDsxlyspobzU3wZQLOGj7L9gfRe0Jo9/4uud09DsjFNH7winGv8Q==",+ "dev": true,+ "license": "ISC",+ "engines": {+ "node": "^10 || ^12 || >= 14"+ },+ "peerDependencies": {+ "postcss": "^8.1.0"+ }+ },+ "node_modules/postcss-modules-local-by-default": {+ "version": "4.2.0",+ "resolved": "https://registry.npmjs.org/postcss-modules-local-by-default/-/postcss-modules-local-by-default-4.2.0.tgz",+ "integrity": "sha512-5kcJm/zk+GJDSfw+V/42fJ5fhjL5YbFDl8nVdXkJPLLW+Vf9mTD5Xe0wqIaDnLuL2U6cDNpTr+UQ+v2HWIBhzw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "icss-utils": "^5.0.0",+ "postcss-selector-parser": "^7.0.0",+ "postcss-value-parser": "^4.1.0"+ },+ "engines": {+ "node": "^10 || ^12 || >= 14"+ },+ "peerDependencies": {+ "postcss": "^8.1.0"+ }+ },+ "node_modules/postcss-modules-scope": {+ "version": "3.2.1",+ "resolved": "https://registry.npmjs.org/postcss-modules-scope/-/postcss-modules-scope-3.2.1.tgz",+ "integrity": "sha512-m9jZstCVaqGjTAuny8MdgE88scJnCiQSlSrOWcTQgM2t32UBe+MUmFSO5t7VMSfAf/FJKImAxBav8ooCHJXCJA==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "postcss-selector-parser": "^7.0.0"+ },+ "engines": {+ "node": "^10 || ^12 || >= 14"+ },+ "peerDependencies": {+ "postcss": "^8.1.0"+ }+ },+ "node_modules/postcss-modules-values": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/postcss-modules-values/-/postcss-modules-values-4.0.0.tgz",+ "integrity": "sha512-RDxHkAiEGI78gS2ofyvCsu7iycRv7oqw5xMWn9iMoR0N/7mf9D50ecQqUo5BZ9Zh2vH4bCUR/ktCqbB9m8vJjQ==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "icss-utils": "^5.0.0"+ },+ "engines": {+ "node": "^10 || ^12 || >= 14"+ },+ "peerDependencies": {+ "postcss": "^8.1.0"+ }+ },+ "node_modules/postcss-selector-parser": {+ "version": "7.1.6",+ "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-7.1.6.tgz",+ "integrity": "sha512-7qASPzhKF2l2KLboRZux8CCTRMdGiV08vWmyKzPz22qZ7ZjQBOeY7rNzNoCLSUiftJ7HUq0GERHmxw/t0dCdMw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "cssesc": "^3.0.0",+ "util-deprecate": "^1.0.2"+ },+ "engines": {+ "node": ">=4"+ }+ },+ "node_modules/postcss-value-parser": {+ "version": "4.2.0",+ "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz",+ "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/prettier": {+ "version": "3.8.1",+ "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.8.1.tgz",+ "integrity": "sha512-UOnG6LftzbdaHZcKoPFtOcCKztrQ57WkHDeRD9t/PTQtmT0NHSeWWepj6pS0z/N7+08BHFDQVUrfmfMRcZwbMg==",+ "dev": true,+ "license": "MIT",+ "bin": {+ "prettier": "bin/prettier.cjs"+ },+ "engines": {+ "node": ">=14"+ },+ "funding": {+ "url": "https://github.com/prettier/prettier?sponsor=1"+ }+ },+ "node_modules/prompts": {+ "version": "2.4.2",+ "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz",+ "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "kleur": "^3.0.3",+ "sisteransi": "^1.0.5"+ },+ "engines": {+ "node": ">= 6"+ }+ },+ "node_modules/punycode": {+ "version": "2.3.1",+ "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz",+ "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/react": {+ "version": "19.2.7",+ "resolved": "https://registry.npmjs.org/react/-/react-19.2.7.tgz",+ "integrity": "sha512-HNe9WslTbXmFK8o8cmwgAeJFSBvt1bPdHCVKtaaV+WlAN36mpT4hcRpwbf3fY56ar2oIXzsBpOAiIRHAdY0OlQ==",+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/react-dom": {+ "version": "19.2.7",+ "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.2.7.tgz",+ "integrity": "sha512-t0BRVXvbiE/o20Hfw669rLbMCDWtYZLvmJigy2f0MxsXF+71pxhR3xOkspmsO8h3ZlNzyibAmtCa3l4lYKk6gQ==",+ "license": "MIT",+ "dependencies": {+ "scheduler": "^0.27.0"+ },+ "peerDependencies": {+ "react": "^19.2.7"+ }+ },+ "node_modules/react-refresh": {+ "version": "0.18.0",+ "resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.18.0.tgz",+ "integrity": "sha512-QgT5//D3jfjJb6Gsjxv0Slpj23ip+HtOpnNgnb2S5zU3CB26G/IDPGoy4RJB42wzFE46DRsstbW6tKHoKbhAxw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/react-use-measure": {+ "version": "2.1.7",+ "resolved": "https://registry.npmjs.org/react-use-measure/-/react-use-measure-2.1.7.tgz",+ "integrity": "sha512-KrvcAo13I/60HpwGO5jpW7E9DfusKyLPLvuHlUyP5zqnmAPhNc6qTRjUQrdTADl0lpPpDVU2/Gg51UlOGHXbdg==",+ "license": "MIT",+ "peerDependencies": {+ "react": ">=16.13",+ "react-dom": ">=16.13"+ },+ "peerDependenciesMeta": {+ "react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/recast": {+ "version": "0.23.11",+ "resolved": "https://registry.npmjs.org/recast/-/recast-0.23.11.tgz",+ "integrity": "sha512-YTUo+Flmw4ZXiWfQKGcwwc11KnoRAYgzAE2E7mXKCjSviTKShtxBsN6YUUBB2gtaBzKzeKunxhUwNHQuRryhWA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "ast-types": "^0.16.1",+ "esprima": "~4.0.0",+ "source-map": "~0.6.1",+ "tiny-invariant": "^1.3.3",+ "tslib": "^2.0.1"+ },+ "engines": {+ "node": ">= 4"+ }+ },+ "node_modules/recast/node_modules/source-map": {+ "version": "0.6.1",+ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",+ "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",+ "dev": true,+ "license": "BSD-3-Clause",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/remotion": {+ "version": "4.0.484",+ "resolved": "https://registry.npmjs.org/remotion/-/remotion-4.0.484.tgz",+ "integrity": "sha512-UJTgWindeUPqn5TTb55qOtRFhh96uTfVqJN20qb0ggi5Qq/T1OEY2nu1yi4CEbsM/+tpFDHV1aecrtrDykcdlA==",+ "license": "SEE LICENSE IN LICENSE.md",+ "peerDependencies": {+ "react": ">=16.8.0",+ "react-dom": ">=16.8.0"+ }+ },+ "node_modules/require-from-string": {+ "version": "2.0.2",+ "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz",+ "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/rollup": {+ "version": "4.63.1",+ "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.63.1.tgz",+ "integrity": "sha512-3Df9jsstwhccuEfmAMi9l8XUh/GOkVObmFTU7CCVBysEbcOZLl84jCtaAZMcPiMz2EGKsATzQcU+Xr3n/wU6cg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/estree": "1.0.9"+ },+ "bin": {+ "rollup": "dist/bin/rollup"+ },+ "engines": {+ "node": ">=18.0.0",+ "npm": ">=8.0.0"+ },+ "optionalDependencies": {+ "@napi-rs/lzma-linux-x64-gnu": "1.5.1",+ "@rollup/rollup-android-arm-eabi": "4.63.1",+ "@rollup/rollup-android-arm64": "4.63.1",+ "@rollup/rollup-darwin-arm64": "4.63.1",+ "@rollup/rollup-darwin-x64": "4.63.1",+ "@rollup/rollup-freebsd-arm64": "4.63.1",+ "@rollup/rollup-freebsd-x64": "4.63.1",+ "@rollup/rollup-linux-arm-gnueabihf": "4.63.1",+ "@rollup/rollup-linux-arm-musleabihf": "4.63.1",+ "@rollup/rollup-linux-arm64-gnu": "4.63.1",+ "@rollup/rollup-linux-arm64-musl": "4.63.1",+ "@rollup/rollup-linux-loong64-gnu": "4.63.1",+ "@rollup/rollup-linux-loong64-musl": "4.63.1",+ "@rollup/rollup-linux-ppc64-gnu": "4.63.1",+ "@rollup/rollup-linux-ppc64-musl": "4.63.1",+ "@rollup/rollup-linux-riscv64-gnu": "4.63.1",+ "@rollup/rollup-linux-riscv64-musl": "4.63.1",+ "@rollup/rollup-linux-s390x-gnu": "4.63.1",+ "@rollup/rollup-linux-x64-gnu": "4.63.1",+ "@rollup/rollup-linux-x64-musl": "4.63.1",+ "@rollup/rollup-openbsd-x64": "4.63.1",+ "@rollup/rollup-openharmony-arm64": "4.63.1",+ "@rollup/rollup-win32-arm64-msvc": "4.63.1",+ "@rollup/rollup-win32-ia32-msvc": "4.63.1",+ "@rollup/rollup-win32-x64-gnu": "4.63.1",+ "@rollup/rollup-win32-x64-msvc": "4.63.1",+ "fsevents": "~2.3.2"+ }+ },+ "node_modules/scheduler": {+ "version": "0.27.0",+ "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.27.0.tgz",+ "integrity": "sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q==",+ "license": "MIT"+ },+ "node_modules/schema-utils": {+ "version": "4.3.3",+ "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.3.3.tgz",+ "integrity": "sha512-eflK8wEtyOE6+hsaRVPxvUKYCpRgzLqDTb8krvAsRIwOGlHoSgYLgBXoubGgLd2fT41/OUYdb48v4k4WWHQurA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/json-schema": "^7.0.9",+ "ajv": "^8.9.0",+ "ajv-formats": "^2.1.1",+ "ajv-keywords": "^5.1.0"+ },+ "engines": {+ "node": ">= 10.13.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/webpack"+ }+ },+ "node_modules/semver": {+ "version": "7.5.3",+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.3.tgz",+ "integrity": "sha512-QBlUtyVk/5EeHbi7X0fw6liDZc7BBmEaSYn01fMU1OUYbf6GPsbTtd8WmnqbI20SeycoHSeiybkE/q1Q+qlThQ==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "lru-cache": "^6.0.0"+ },+ "bin": {+ "semver": "bin/semver.js"+ },+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/semver/node_modules/lru-cache": {+ "version": "6.0.0",+ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz",+ "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "yallist": "^4.0.0"+ },+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/semver/node_modules/yallist": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",+ "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/shebang-command": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz",+ "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "shebang-regex": "^3.0.0"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/shebang-regex": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz",+ "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/signal-exit": {+ "version": "3.0.7",+ "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz",+ "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/sisteransi": {+ "version": "1.0.5",+ "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz",+ "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/source-map": {+ "version": "0.8.0-beta.0",+ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.8.0-beta.0.tgz",+ "integrity": "sha512-2ymg6oRBpebeZi9UUNsgQ89bhx01TcTkmNTGnNO88imTmbSgy4nfujrgVEFKWpMTEGA11EDkTt7mqObTPdigIA==",+ "deprecated": "The work that was done in this beta branch won't be included in future versions",+ "dev": true,+ "license": "BSD-3-Clause",+ "dependencies": {+ "whatwg-url": "^7.0.0"+ },+ "engines": {+ "node": ">= 8"+ }+ },+ "node_modules/source-map-js": {+ "version": "1.2.1",+ "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz",+ "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==",+ "dev": true,+ "license": "BSD-3-Clause",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/source-map-support": {+ "version": "0.5.21",+ "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz",+ "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "buffer-from": "^1.0.0",+ "source-map": "^0.6.0"+ }+ },+ "node_modules/source-map-support/node_modules/source-map": {+ "version": "0.6.1",+ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",+ "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",+ "dev": true,+ "license": "BSD-3-Clause",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/stackframe": {+ "version": "1.3.4",+ "resolved": "https://registry.npmjs.org/stackframe/-/stackframe-1.3.4.tgz",+ "integrity": "sha512-oeVtt7eWQS+Na6F//S4kJ2K2VbRlS9D43mAlMyVpVWovy9o+jfgH8O9agzANzaiLjclA0oYzUXEM4PurhSUChw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/strip-final-newline": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz",+ "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/style-loader": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/style-loader/-/style-loader-4.0.0.tgz",+ "integrity": "sha512-1V4WqhhZZgjVAVJyt7TdDPZoPBPNHbekX4fWnCJL1yQukhCeZhJySUL+gL9y6sNdN95uEOS83Y55SqHcP7MzLA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 18.12.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/webpack"+ },+ "peerDependencies": {+ "webpack": "^5.27.0"+ }+ },+ "node_modules/supports-color": {+ "version": "8.1.1",+ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz",+ "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "has-flag": "^4.0.0"+ },+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/chalk/supports-color?sponsor=1"+ }+ },+ "node_modules/suspend-react": {+ "version": "0.1.3",+ "resolved": "https://registry.npmjs.org/suspend-react/-/suspend-react-0.1.3.tgz",+ "integrity": "sha512-aqldKgX9aZqpoDp3e8/BZ8Dm7x1pJl+qI3ZKxDN0i/IQTWUwBx/ManmlVJ3wowqbno6c2bmiIfs+Um6LbsjJyQ==",+ "license": "MIT",+ "peerDependencies": {+ "react": ">=17.0"+ }+ },+ "node_modules/tapable": {+ "version": "2.3.3",+ "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.3.3.tgz",+ "integrity": "sha512-uxc/zpqFg6x7C8vOE7lh6Lbda8eEL9zmVm/PLeTPBRhh1xCgdWaQ+J1CUieGpIfm2HdtsUpRv+HshiasBMcc6A==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/webpack"+ }+ },+ "node_modules/terser": {+ "version": "5.51.2",+ "resolved": "https://registry.npmjs.org/terser/-/terser-5.51.2.tgz",+ "integrity": "sha512-bWnjSNscmuI+GJze6ZupnHP8G/cTcsJF+bXCeQknk2SHQsgbNJnLrqiH9jZ2W4STPVXH2mDKKRX3iwPhc9Cn/Q==",+ "dev": true,+ "license": "BSD-2-Clause",+ "dependencies": {+ "@jridgewell/source-map": "^0.3.3",+ "acorn": "^8.15.0",+ "commander": "^2.20.0",+ "source-map-support": "~0.5.20"+ },+ "bin": {+ "terser": "bin/terser"+ },+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/terser-webpack-plugin": {+ "version": "5.6.1",+ "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.6.1.tgz",+ "integrity": "sha512-201R5j+sJpK8nFWwKVyNfZot8FaJbLZDq5evriVzbV1wDtSXDjRUDRfJzHpAaxFDMEhsZL1QkeqM61wgsS3KaQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@jridgewell/trace-mapping": "^0.3.25",+ "jest-worker": "^27.4.5",+ "schema-utils": "^4.3.0",+ "terser": "^5.31.1"+ },+ "engines": {+ "node": ">= 10.13.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/webpack"+ },+ "peerDependencies": {+ "webpack": "^5.1.0"+ },+ "peerDependenciesMeta": {+ "@minify-html/node": {+ "optional": true+ },+ "@swc/core": {+ "optional": true+ },+ "@swc/css": {+ "optional": true+ },+ "@swc/html": {+ "optional": true+ },+ "clean-css": {+ "optional": true+ },+ "cssnano": {+ "optional": true+ },+ "csso": {+ "optional": true+ },+ "esbuild": {+ "optional": true+ },+ "html-minifier-terser": {+ "optional": true+ },+ "lightningcss": {+ "optional": true+ },+ "postcss": {+ "optional": true+ },+ "uglify-js": {+ "optional": true+ }+ }+ },+ "node_modules/three": {+ "version": "0.185.1",+ "resolved": "https://registry.npmjs.org/three/-/three-0.185.1.tgz",+ "integrity": "sha512-5aojFCXKwnjBRZvUnt3WFfEcvUJgkN5LlijRFN95hMy8WVkG4I0QNcJE+OuWvuJ0bOdStrbfXn0pkd6/QyiAlg==",+ "license": "MIT"+ },+ "node_modules/tiny-invariant": {+ "version": "1.3.3",+ "resolved": "https://registry.npmjs.org/tiny-invariant/-/tiny-invariant-1.3.3.tgz",+ "integrity": "sha512-+FbBPE1o9QAYvviau/qC5SE3caw21q3xkvWKBtja5vgqOWIHHJ3ioaq1VPfn/Szqctz2bU/oYeKd9/z5BL+PVg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/tinyglobby": {+ "version": "0.2.17",+ "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.17.tgz",+ "integrity": "sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "fdir": "^6.5.0",+ "picomatch": "^4.0.4"+ },+ "engines": {+ "node": ">=12.0.0"+ },+ "funding": {+ "url": "https://github.com/sponsors/SuperchupuDev"+ }+ },+ "node_modules/to-fast-properties": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz",+ "integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=4"+ }+ },+ "node_modules/tr46": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/tr46/-/tr46-1.0.1.tgz",+ "integrity": "sha512-dTpowEjclQ7Kgx5SdBkqRzVhERQXov8/l9Ft9dVM9fmg0W0KQSVaXX9T4i6twCPNtYiZM53lpSSUAwJbFPOHxA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "punycode": "^2.1.0"+ }+ },+ "node_modules/tslib": {+ "version": "2.8.1",+ "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz",+ "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==",+ "dev": true,+ "license": "0BSD"+ },+ "node_modules/typescript": {+ "version": "5.9.3",+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz",+ "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==",+ "dev": true,+ "license": "Apache-2.0",+ "bin": {+ "tsc": "bin/tsc",+ "tsserver": "bin/tsserver"+ },+ "engines": {+ "node": ">=14.17"+ }+ },+ "node_modules/undici-types": {+ "version": "8.3.0",+ "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-8.3.0.tgz",+ "integrity": "sha512-j375ScV60dom+YkPFIfTLcOiPxkN/buHz5GobjLhixFuANaNs3C9l4GmrWqejgXWJ7BbJcFYpTEUkS1Ge8bpZQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/update-browserslist-db": {+ "version": "1.3.2",+ "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.3.2.tgz",+ "integrity": "sha512-UQ+MSxlhRm1bzjhU+DcuXfjFO1FzNtqhK5+9Yvlp90ItDLk5vT932A0rFu619nf7RVS+Y/VeaUW1jaRDqZ8VJw==",+ "dev": true,+ "funding": [+ {+ "type": "opencollective",+ "url": "https://opencollective.com/browserslist"+ },+ {+ "type": "tidelift",+ "url": "https://tidelift.com/funding/github/npm/browserslist"+ },+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "escalade": "^3.2.0",+ "picocolors": "^1.1.1"+ },+ "bin": {+ "update-browserslist-db": "cli.js"+ },+ "peerDependencies": {+ "browserslist": ">= 4.21.0"+ }+ },+ "node_modules/use-sync-external-store": {+ "version": "1.6.0",+ "resolved": "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.6.0.tgz",+ "integrity": "sha512-Pp6GSwGP/NrPIrxVFAIkOQeyw8lFenOHijQWkUTrDvrF4ALqylP2C/KCkeS9dpUM3KvYRQhna5vt7IL95+ZQ9w==",+ "license": "MIT",+ "peerDependencies": {+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"+ }+ },+ "node_modules/util-deprecate": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",+ "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/vite": {+ "version": "6.4.3",+ "resolved": "https://registry.npmjs.org/vite/-/vite-6.4.3.tgz",+ "integrity": "sha512-NTKlcQjlAK7MlQoyb6LgaqHc8sso/pVyUJYWMws3jg21uTJw/LddqIFPcPqP6PzpgbIcZyKI85sFE4HBrQDA8A==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "esbuild": "^0.25.0",+ "fdir": "^6.4.4",+ "picomatch": "^4.0.2",+ "postcss": "^8.5.3",+ "rollup": "^4.34.9",+ "tinyglobby": "^0.2.13"+ },+ "bin": {+ "vite": "bin/vite.js"+ },+ "engines": {+ "node": "^18.0.0 || ^20.0.0 || >=22.0.0"+ },+ "funding": {+ "url": "https://github.com/vitejs/vite?sponsor=1"+ },+ "optionalDependencies": {+ "fsevents": "~2.3.3"+ },+ "peerDependencies": {+ "@types/node": "^18.0.0 || ^20.0.0 || >=22.0.0",+ "jiti": ">=1.21.0",+ "less": "*",+ "lightningcss": "^1.21.0",+ "sass": "*",+ "sass-embedded": "*",+ "stylus": "*",+ "sugarss": "*",+ "terser": "^5.16.0",+ "tsx": "^4.8.1",+ "yaml": "^2.4.2"+ },+ "peerDependenciesMeta": {+ "@types/node": {+ "optional": true+ },+ "jiti": {+ "optional": true+ },+ "less": {+ "optional": true+ },+ "lightningcss": {+ "optional": true+ },+ "sass": {+ "optional": true+ },+ "sass-embedded": {+ "optional": true+ },+ "stylus": {+ "optional": true+ },+ "sugarss": {+ "optional": true+ },+ "terser": {+ "optional": true+ },+ "tsx": {+ "optional": true+ },+ "yaml": {+ "optional": true+ }+ }+ },+ "node_modules/vite/node_modules/@esbuild/aix-ppc64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.12.tgz",+ "integrity": "sha512-Hhmwd6CInZ3dwpuGTF8fJG6yoWmsToE+vYgD4nytZVxcu1ulHpUQRAB1UJ8+N1Am3Mz4+xOByoQoSZf4D+CpkA==",+ "cpu": [+ "ppc64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "aix"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/vite/node_modules/@esbuild/android-arm": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.12.tgz",+ "integrity": "sha512-VJ+sKvNA/GE7Ccacc9Cha7bpS8nyzVv0jdVgwNDaR4gDMC/2TTRc33Ip8qrNYUcpkOHUT5OZ0bUcNNVZQ9RLlg==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/vite/node_modules/@esbuild/android-arm64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.12.tgz",+ "integrity": "sha512-6AAmLG7zwD1Z159jCKPvAxZd4y/VTO0VkprYy+3N2FtJ8+BQWFXU+OxARIwA46c5tdD9SsKGZ/1ocqBS/gAKHg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/vite/node_modules/@esbuild/android-x64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.12.tgz",+ "integrity": "sha512-5jbb+2hhDHx5phYR2By8GTWEzn6I9UqR11Kwf22iKbNpYrsmRB18aX/9ivc5cabcUiAT/wM+YIZ6SG9QO6a8kg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/vite/node_modules/@esbuild/darwin-arm64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.12.tgz",+ "integrity": "sha512-N3zl+lxHCifgIlcMUP5016ESkeQjLj/959RxxNYIthIg+CQHInujFuXeWbWMgnTo4cp5XVHqFPmpyu9J65C1Yg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/vite/node_modules/@esbuild/darwin-x64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.12.tgz",+ "integrity": "sha512-HQ9ka4Kx21qHXwtlTUVbKJOAnmG1ipXhdWTmNXiPzPfWKpXqASVcWdnf2bnL73wgjNrFXAa3yYvBSd9pzfEIpA==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/vite/node_modules/@esbuild/freebsd-arm64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.12.tgz",+ "integrity": "sha512-gA0Bx759+7Jve03K1S0vkOu5Lg/85dou3EseOGUes8flVOGxbhDDh/iZaoek11Y8mtyKPGF3vP8XhnkDEAmzeg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/vite/node_modules/@esbuild/freebsd-x64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.12.tgz",+ "integrity": "sha512-TGbO26Yw2xsHzxtbVFGEXBFH0FRAP7gtcPE7P5yP7wGy7cXK2oO7RyOhL5NLiqTlBh47XhmIUXuGciXEqYFfBQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/vite/node_modules/@esbuild/linux-arm": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.12.tgz",+ "integrity": "sha512-lPDGyC1JPDou8kGcywY0YILzWlhhnRjdof3UlcoqYmS9El818LLfJJc3PXXgZHrHCAKs/Z2SeZtDJr5MrkxtOw==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/vite/node_modules/@esbuild/linux-arm64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.12.tgz",+ "integrity": "sha512-8bwX7a8FghIgrupcxb4aUmYDLp8pX06rGh5HqDT7bB+8Rdells6mHvrFHHW2JAOPZUbnjUpKTLg6ECyzvas2AQ==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/vite/node_modules/@esbuild/linux-ia32": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.12.tgz",+ "integrity": "sha512-0y9KrdVnbMM2/vG8KfU0byhUN+EFCny9+8g202gYqSSVMonbsCfLjUO+rCci7pM0WBEtz+oK/PIwHkzxkyharA==",+ "cpu": [+ "ia32"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/vite/node_modules/@esbuild/linux-loong64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.12.tgz",+ "integrity": "sha512-h///Lr5a9rib/v1GGqXVGzjL4TMvVTv+s1DPoxQdz7l/AYv6LDSxdIwzxkrPW438oUXiDtwM10o9PmwS/6Z0Ng==",+ "cpu": [+ "loong64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/vite/node_modules/@esbuild/linux-mips64el": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.12.tgz",+ "integrity": "sha512-iyRrM1Pzy9GFMDLsXn1iHUm18nhKnNMWscjmp4+hpafcZjrr2WbT//d20xaGljXDBYHqRcl8HnxbX6uaA/eGVw==",+ "cpu": [+ "mips64el"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/vite/node_modules/@esbuild/linux-ppc64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.12.tgz",+ "integrity": "sha512-9meM/lRXxMi5PSUqEXRCtVjEZBGwB7P/D4yT8UG/mwIdze2aV4Vo6U5gD3+RsoHXKkHCfSxZKzmDssVlRj1QQA==",+ "cpu": [+ "ppc64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/vite/node_modules/@esbuild/linux-riscv64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.12.tgz",+ "integrity": "sha512-Zr7KR4hgKUpWAwb1f3o5ygT04MzqVrGEGXGLnj15YQDJErYu/BGg+wmFlIDOdJp0PmB0lLvxFIOXZgFRrdjR0w==",+ "cpu": [+ "riscv64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/vite/node_modules/@esbuild/linux-s390x": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.12.tgz",+ "integrity": "sha512-MsKncOcgTNvdtiISc/jZs/Zf8d0cl/t3gYWX8J9ubBnVOwlk65UIEEvgBORTiljloIWnBzLs4qhzPkJcitIzIg==",+ "cpu": [+ "s390x"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/vite/node_modules/@esbuild/linux-x64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.12.tgz",+ "integrity": "sha512-uqZMTLr/zR/ed4jIGnwSLkaHmPjOjJvnm6TVVitAa08SLS9Z0VM8wIRx7gWbJB5/J54YuIMInDquWyYvQLZkgw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/vite/node_modules/@esbuild/netbsd-arm64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.12.tgz",+ "integrity": "sha512-xXwcTq4GhRM7J9A8Gv5boanHhRa/Q9KLVmcyXHCTaM4wKfIpWkdXiMog/KsnxzJ0A1+nD+zoecuzqPmCRyBGjg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "netbsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/vite/node_modules/@esbuild/netbsd-x64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.12.tgz",+ "integrity": "sha512-Ld5pTlzPy3YwGec4OuHh1aCVCRvOXdH8DgRjfDy/oumVovmuSzWfnSJg+VtakB9Cm0gxNO9BzWkj6mtO1FMXkQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "netbsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/vite/node_modules/@esbuild/openbsd-arm64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.12.tgz",+ "integrity": "sha512-fF96T6KsBo/pkQI950FARU9apGNTSlZGsv1jZBAlcLL1MLjLNIWPBkj5NlSz8aAzYKg+eNqknrUJ24QBybeR5A==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "openbsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/vite/node_modules/@esbuild/openbsd-x64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.12.tgz",+ "integrity": "sha512-MZyXUkZHjQxUvzK7rN8DJ3SRmrVrke8ZyRusHlP+kuwqTcfWLyqMOE3sScPPyeIXN/mDJIfGXvcMqCgYKekoQw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "openbsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/vite/node_modules/@esbuild/openharmony-arm64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.25.12.tgz",+ "integrity": "sha512-rm0YWsqUSRrjncSXGA7Zv78Nbnw4XL6/dzr20cyrQf7ZmRcsovpcRBdhD43Nuk3y7XIoW2OxMVvwuRvk9XdASg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "openharmony"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/vite/node_modules/@esbuild/sunos-x64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.12.tgz",+ "integrity": "sha512-3wGSCDyuTHQUzt0nV7bocDy72r2lI33QL3gkDNGkod22EsYl04sMf0qLb8luNKTOmgF/eDEDP5BFNwoBKH441w==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "sunos"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/vite/node_modules/@esbuild/win32-arm64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.12.tgz",+ "integrity": "sha512-rMmLrur64A7+DKlnSuwqUdRKyd3UE7oPJZmnljqEptesKM8wx9J8gx5u0+9Pq0fQQW8vqeKebwNXdfOyP+8Bsg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/vite/node_modules/@esbuild/win32-ia32": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.12.tgz",+ "integrity": "sha512-HkqnmmBoCbCwxUKKNPBixiWDGCpQGVsrQfJoVGYLPT41XWF8lHuE5N6WhVia2n4o5QK5M4tYr21827fNhi4byQ==",+ "cpu": [+ "ia32"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/vite/node_modules/@esbuild/win32-x64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.12.tgz",+ "integrity": "sha512-alJC0uCZpTFrSL0CCDjcgleBXPnCrEAhTBILpeAp7M/OFgoqtAetfBzX0xM00MUsVVPpVjlPuMbREqnZCXaTnA==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/vite/node_modules/esbuild": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.12.tgz",+ "integrity": "sha512-bbPBYYrtZbkt6Os6FiTLCTFxvq4tt3JKall1vRwshA3fdVztsLAatFaZobhkBC8/BrPetoa0oksYoKXoG4ryJg==",+ "dev": true,+ "hasInstallScript": true,+ "license": "MIT",+ "bin": {+ "esbuild": "bin/esbuild"+ },+ "engines": {+ "node": ">=18"+ },+ "optionalDependencies": {+ "@esbuild/aix-ppc64": "0.25.12",+ "@esbuild/android-arm": "0.25.12",+ "@esbuild/android-arm64": "0.25.12",+ "@esbuild/android-x64": "0.25.12",+ "@esbuild/darwin-arm64": "0.25.12",+ "@esbuild/darwin-x64": "0.25.12",+ "@esbuild/freebsd-arm64": "0.25.12",+ "@esbuild/freebsd-x64": "0.25.12",+ "@esbuild/linux-arm": "0.25.12",+ "@esbuild/linux-arm64": "0.25.12",+ "@esbuild/linux-ia32": "0.25.12",+ "@esbuild/linux-loong64": "0.25.12",+ "@esbuild/linux-mips64el": "0.25.12",+ "@esbuild/linux-ppc64": "0.25.12",+ "@esbuild/linux-riscv64": "0.25.12",+ "@esbuild/linux-s390x": "0.25.12",+ "@esbuild/linux-x64": "0.25.12",+ "@esbuild/netbsd-arm64": "0.25.12",+ "@esbuild/netbsd-x64": "0.25.12",+ "@esbuild/openbsd-arm64": "0.25.12",+ "@esbuild/openbsd-x64": "0.25.12",+ "@esbuild/openharmony-arm64": "0.25.12",+ "@esbuild/sunos-x64": "0.25.12",+ "@esbuild/win32-arm64": "0.25.12",+ "@esbuild/win32-ia32": "0.25.12",+ "@esbuild/win32-x64": "0.25.12"+ }+ },+ "node_modules/watchpack": {+ "version": "2.5.2",+ "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.5.2.tgz",+ "integrity": "sha512-6i/00NBjP4yGPs+caKSyRfpTF/8Torsu0MOW3mMzIbhgISFder8i7xbqgHlLMwJrdiN8ndBV3UA1/AfzPSr+jg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "graceful-fs": "^4.1.2"+ },+ "engines": {+ "node": ">=10.13.0"+ }+ },+ "node_modules/webidl-conversions": {+ "version": "4.0.2",+ "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-4.0.2.tgz",+ "integrity": "sha512-YQ+BmxuTgd6UXZW3+ICGfyqRyHXVlD5GtQr5+qjiNW7bF0cqrzX500HVXPBOvgXb5YnzDd+h0zqyv61KUD7+Sg==",+ "dev": true,+ "license": "BSD-2-Clause"+ },+ "node_modules/webpack": {+ "version": "5.105.0",+ "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.105.0.tgz",+ "integrity": "sha512-gX/dMkRQc7QOMzgTe6KsYFM7DxeIONQSui1s0n/0xht36HvrgbxtM1xBlgx596NbpHuQU8P7QpKwrZYwUX48nw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/eslint-scope": "^3.7.7",+ "@types/estree": "^1.0.8",+ "@types/json-schema": "^7.0.15",+ "@webassemblyjs/ast": "^1.14.1",+ "@webassemblyjs/wasm-edit": "^1.14.1",+ "@webassemblyjs/wasm-parser": "^1.14.1",+ "acorn": "^8.15.0",+ "acorn-import-phases": "^1.0.3",+ "browserslist": "^4.28.1",+ "chrome-trace-event": "^1.0.2",+ "enhanced-resolve": "^5.19.0",+ "es-module-lexer": "^2.0.0",+ "eslint-scope": "5.1.1",+ "events": "^3.2.0",+ "glob-to-regexp": "^0.4.1",+ "graceful-fs": "^4.2.11",+ "json-parse-even-better-errors": "^2.3.1",+ "loader-runner": "^4.3.1",+ "mime-types": "^2.1.27",+ "neo-async": "^2.6.2",+ "schema-utils": "^4.3.3",+ "tapable": "^2.3.0",+ "terser-webpack-plugin": "^5.3.16",+ "watchpack": "^2.5.1",+ "webpack-sources": "^3.3.3"+ },+ "bin": {+ "webpack": "bin/webpack.js"+ },+ "engines": {+ "node": ">=10.13.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/webpack"+ },+ "peerDependenciesMeta": {+ "webpack-cli": {+ "optional": true+ }+ }+ },+ "node_modules/webpack-sources": {+ "version": "3.5.1",+ "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.5.1.tgz",+ "integrity": "sha512-jyuiGJdtvY434z5bUZrjz67v76/ePNvFZTp9Mdz29IlH4+GPsgyGjiv0fKI+M7BdkU6ADjulUcKAd3tUK3WlEw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=10.13.0"+ }+ },+ "node_modules/whatwg-url": {+ "version": "7.1.0",+ "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-7.1.0.tgz",+ "integrity": "sha512-WUu7Rg1DroM7oQvGWfOiAK21n74Gg+T4elXEQYkOhtyLeWiJFoOGLXPKI/9gzIie9CtwVLm8wtw6YJdKyxSjeg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "lodash.sortby": "^4.7.0",+ "tr46": "^1.0.1",+ "webidl-conversions": "^4.0.2"+ }+ },+ "node_modules/which": {+ "version": "2.0.2",+ "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",+ "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "isexe": "^2.0.0"+ },+ "bin": {+ "node-which": "bin/node-which"+ },+ "engines": {+ "node": ">= 8"+ }+ },+ "node_modules/ws": {+ "version": "8.21.0",+ "resolved": "https://registry.npmjs.org/ws/-/ws-8.21.0.tgz",+ "integrity": "sha512-Vsp28b7DRcimFQvrqu2Wek3z1iYxDCWqHYB8Qsnk/S4RfaCQzPGPyBNuVjJV3cd6UiKtUtp6sNM77gWvzcCH+g==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=10.0.0"+ },+ "peerDependencies": {+ "bufferutil": "^4.0.1",+ "utf-8-validate": ">=5.0.2"+ },+ "peerDependenciesMeta": {+ "bufferutil": {+ "optional": true+ },+ "utf-8-validate": {+ "optional": true+ }+ }+ },+ "node_modules/yallist": {+ "version": "3.1.1",+ "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz",+ "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/zod": {+ "version": "4.3.6",+ "resolved": "https://registry.npmjs.org/zod/-/zod-4.3.6.tgz",+ "integrity": "sha512-rftlrkhHZOcjDwkGlnUtZZkvaPHCsDATp4pGpuOOMDaTdDDXF91wuVDJoWoPsKX/3YPQ5fHuF3STjcYyKr+Qhg==",+ "license": "MIT",+ "funding": {+ "url": "https://github.com/sponsors/colinhacks"+ }+ },+ "node_modules/zustand": {+ "version": "5.0.15",+ "resolved": "https://registry.npmjs.org/zustand/-/zustand-5.0.15.tgz",+ "integrity": "sha512-MpSEjRiBkA9crSYeOUH32rJC7SVqAbm0Fqcqge/bUi2PPoLcBWKOsG+C8mevmpr8TwXHBVkChbbJiyvkE+i/3A==",+ "license": "MIT",+ "engines": {+ "node": ">=12.20.0"+ },+ "peerDependencies": {+ "@types/react": ">=18.0.0",+ "immer": ">=9.0.6",+ "react": ">=18.0.0",+ "use-sync-external-store": ">=1.2.0"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "immer": {+ "optional": true+ },+ "react": {+ "optional": true+ },+ "use-sync-external-store": {+ "optional": true+ }+ }+ }+ }+}diff --git a/workbench/package.json b/workbench/package.jsonnew file mode 100644index 0000000..d5069af--- /dev/null+++ b/workbench/package.json@@ -0,0 +1,42 @@+{+ "name": "shotcraft-workbench",+ "private": true,+ "version": "0.1.0",+ "type": "module",+ "scripts": {+ "gen": "node scripts/gen-index.mjs",+ "prepare": "node scripts/gen-index.mjs",+ "predev": "node scripts/gen-index.mjs",+ "dev": "vite",+ "prebuild": "node scripts/gen-index.mjs",+ "build": "tsc -b && vite build",+ "preview": "vite preview",+ "prestudio": "node scripts/gen-index.mjs",+ "studio": "remotion studio src/remotion/index.ts",+ "open": "node scripts/open.mjs",+ "parity": "node scripts/parity.mjs"+ },+ "dependencies": {+ "@react-three/fiber": "9.6.1",+ "@remotion/google-fonts": "4.0.484",+ "@remotion/motion-blur": "4.0.484",+ "@remotion/player": "4.0.484",+ "@remotion/three": "4.0.484",+ "@remotion/zod-types": "4.0.484",+ "react": "19.2.7",+ "react-dom": "19.2.7",+ "remotion": "4.0.484",+ "three": "0.185.1",+ "zod": "4.3.6",+ "zustand": "^5.0.0"+ },+ "devDependencies": {+ "@remotion/cli": "4.0.484",+ "@types/react": "19.2.17",+ "@types/react-dom": "19.2.3",+ "@types/three": "^0.185.0",+ "@vitejs/plugin-react": "^4.3.0",+ "typescript": "~5.9.0",+ "vite": "^6.0.0"+ }+}diff --git a/workbench/proj-stub/workbench.ts b/workbench/proj-stub/workbench.tsnew file mode 100644index 0000000..a3339b5--- /dev/null+++ b/workbench/proj-stub/workbench.ts@@ -0,0 +1,3 @@+// stub:未链接成片工程时的降级——没有清单,素材 tab 只显示提示;+// 工作台其余能力(动效库 / 音效 / 背景 / 导出)照常可用。+export const WORKBENCH = null;diff --git a/workbench/public/.gitkeep b/workbench/public/.gitkeepnew file mode 100644index 0000000..e69de29diff --git a/workbench/remotion.config.ts b/workbench/remotion.config.tsnew file mode 100644index 0000000..78806ef--- /dev/null+++ b/workbench/remotion.config.ts@@ -0,0 +1,30 @@+// Remotion CLI(Studio / 渲染导出)打包配置:与 vite.config.ts 的 @proj/@demos 策略保持一致。+// 未链接成片工程时自动落到 proj-stub 降级实现;symlinks:false 让符号链接按+// 虚拟路径解析,裸导入落回本工程 node_modules(避免 react/remotion 双实例)。+import { existsSync } from "node:fs";+import path from "node:path";+import { Config } from "@remotion/cli/config";++const proj = path.resolve(+ process.cwd(),+ existsSync(path.resolve(process.cwd(), "proj", "workbench.ts")) ? "proj" : "proj-stub",+);++Config.overrideWebpackConfig((c) => ({+ ...c,+ resolve: {+ ...c.resolve,+ symlinks: false,+ alias: {+ ...(c.resolve?.alias ?? {}),+ "@proj": proj,+ "@demos": path.resolve(process.cwd(), "demosrc"),+ },+ },+}));++// 与 template/remotion.config.ts 同口径:jpeg 帧、ANGLE GL(three/WebGL 镜头要它)、并发 4+Config.setVideoImageFormat("jpeg");+Config.setOverwriteOutput(true);+Config.setChromiumOpenGlRenderer("angle");+Config.setConcurrency(4);diff --git a/workbench/scripts/gen-index.mjs b/workbench/scripts/gen-index.mjsnew file mode 100644index 0000000..e2957f0--- /dev/null+++ b/workbench/scripts/gen-index.mjs@@ -0,0 +1,245 @@+#!/usr/bin/env node+// 生成静态索引与本机清单(全部不进库,npm install 的 prepare 钩子与 dev/build/studio 前置钩子都会跑):+// src/cards/demo-index.ts demos/ 镜头卡 demo 组件静态索引(webpack/Vite 双兼容——Remotion CLI 不认 import.meta.glob)+// src/cards/demoMeta.ts demo → 中文名 / 画廊分类 / 预览视频(由 gallery/api/library.json + translations.js 生成)+// src/mediaManifest.ts public/ 素材清单(成片工程 public/ 经符号链接接入)+ 仓库音效库 / BGM 库+// src/projMeta.ts 已链接成片工程的元数据+// 同时保证 public/ 下的仓库级链接就位:cardpreviews → gallery/media、sfxlib → assets/audio/sfx、+// bgmlib → assets/audio/bgm、textures/live(demo 纹理兜底 → demos/_textures)。+import {+ existsSync, lstatSync, mkdirSync, readFileSync, readdirSync, realpathSync, statSync, symlinkSync, unlinkSync, writeFileSync,+} from "node:fs";+import { dirname, extname, join, relative } from "node:path";+import { fileURLToPath } from "node:url";++const wb = join(dirname(fileURLToPath(import.meta.url)), "..");+const repo = join(wb, "..");+const banner = "// 自动生成,勿手改:node scripts/gen-index.mjs\n";+const norm = (s) => s.toLowerCase().replace(/[^a-z0-9]/g, "");++// —— 仓库级链接(相对符号链接,幂等)——+const ensureLink = (linkPath, target) => {+ const abs = join(dirname(linkPath), target);+ if (!existsSync(abs)) return false;+ try {+ const st = lstatSync(linkPath);+ if (st.isSymbolicLink()) unlinkSync(linkPath);+ else return true; // 真实文件/目录(成片工程链接进来的):不动+ } catch { /* 不存在 */ }+ mkdirSync(dirname(linkPath), { recursive: true });+ symlinkSync(target, linkPath);+ return true;+};+const publicDir = join(wb, "public");+mkdirSync(publicDir, { recursive: true });+ensureLink(join(publicDir, "cardpreviews"), "../../gallery/media");+ensureLink(join(publicDir, "sfxlib"), "../../assets/audio/sfx");+ensureLink(join(publicDir, "bgmlib"), "../../assets/audio/bgm");+// demo 纹理兜底:成片工程自己带 public/textures 时以工程为准(不往工程目录里塞东西)+{+ const tex = join(publicDir, "textures");+ let texIsLink = false;+ try { texIsLink = lstatSync(tex).isSymbolicLink(); } catch { /* 无 */ }+ if (!texIsLink && !existsSync(join(tex, "live"))) ensureLink(join(tex, "live"), "../../../demos/_textures");+}++// —— demo 索引:文件导出 `<Stem>: React.FC`(无必填 props 的组件)即接入 ——+// 时长取值链:导出的 `*_DURATION|*_DUR` 常量(与 assets/scripts/smoke-render-demos.py 同口径,最可靠)+// → 镜头卡 md「时长:」里的 `NNNf` → 画廊 library.json duration 里的 `NNNf`+// → 文件内未导出的 `const *DUR*|TOTAL|*END = N` → 缺省 150f(clip 可再裁剪/定格,motion-lab 系卡按 clip 长度归一化)+const DUR_PAT = /export const (\w+_DURATION|\w+_DUR)\s*=/;+const MATERIAL_REQUIRED = new Set(["ClipCardLooping"]); // 需要真实 mp4 素材,无法自动生成+const demosDir = join(wb, "demosrc");+const framesIn = (text) => { const m = text && /(\d{2,4})\s*f\b/.exec(text); return m ? Number(m[1]) : 0; };+const cardMdFrames = (category, slug) => {+ try { const md = readFileSync(join(repo, "references/shots", category, `${slug}.md`), "utf8"); const m = /^时长:\s*(.*)$/m.exec(md); return framesIn(m?.[1]); } catch { return 0; }+};+let libForDur = { cards: [] };+try { libForDur = JSON.parse(readFileSync(join(repo, "gallery/api/library.json"), "utf8")); } catch { /* 下面再报 */ }+const libDurFrames = (slug) => framesIn(libForDur.cards.find((c) => c.name === slug)?.duration);+const demos = [];+const walkDemos = (dir) => {+ for (const e of readdirSync(dir, { withFileTypes: true }).sort((a, b) => a.name.localeCompare(b.name))) {+ if (e.name.startsWith("_") || e.name.startsWith(".")) continue;+ const p = join(dir, e.name);+ if (e.isDirectory()) { walkDemos(p); continue; }+ if (!e.name.endsWith(".tsx")) continue;+ const stem = e.name.replace(/\.tsx$/, "");+ if (MATERIAL_REQUIRED.has(stem)) continue;+ const src = readFileSync(p, "utf8");+ if (!new RegExp(`export const ${stem}\\s*:\\s*React\\.FC\\s*=`).test(src)) continue;+ const rel = relative(demosDir, p).replace(/\.tsx$/, "");+ const [category, slug] = rel.split("/");+ const m = DUR_PAT.exec(src);+ let durExport = m?.[1];+ let duration = 0;+ let durationSource = "export";+ if (!durExport) {+ duration = cardMdFrames(category, slug); durationSource = "card";+ if (!duration) { duration = libDurFrames(slug); durationSource = "gallery"; }+ if (!duration) {+ const im = /^const ([A-Z][A-Z0-9_]*(?:DUR|TOTAL|_END|FRAMES)[A-Z0-9_]*)\s*=\s*(\d+)\s*;/m.exec(src);+ if (im) { duration = Number(im[2]); durationSource = "inline"; }+ }+ if (!duration) { duration = 150; durationSource = "default"; }+ }+ demos.push({ stem, durExport, duration, durationSource, rel, category, slug });+ }+};+walkDemos(demosDir);+{+ const dupes = demos.map((d) => d.stem).filter((s, i, a) => a.indexOf(s) !== i);+ if (dupes.length) throw new Error(`demo 组件名重复(卡 id 用组件名,必须唯一):${[...new Set(dupes)].join(", ")}`);+}+writeFileSync(+ join(wb, "src/cards/demo-index.ts"),+ banner ++ 'import type React from "react";\n' ++ demos+ .map((d, i) => `import { ${d.stem} as c${i}${d.durExport ? `, ${d.durExport} as d${i}` : ""} } from "@demos/${d.rel}";`)+ .join("\n") ++ `\n\nexport type DemoModule = {+ stem: string;+ slug: string;+ component: React.ComponentType<Record<string, unknown>>;+ duration: number;+ /** 时长来源:export=demo 自己导出 / card=镜头卡 md / gallery=画廊 / inline=文件内常量 / default=缺省 150f */+ durationSource: "export" | "card" | "gallery" | "inline" | "default";+};++export const DEMO_MODULES: DemoModule[] = [+` ++ demos+ .map((d, i) => ` { stem: "${d.stem}", slug: "${d.slug}", component: c${i} as unknown as React.ComponentType<Record<string, unknown>>, duration: ${d.durExport ? `d${i}` : d.duration}, durationSource: "${d.durationSource}" },`)+ .join("\n") ++ "\n];\n",+);++// —— demo 元数据:画廊 library.json(分类 / 一句话 / 式)+ translations.js(中文名)——+let lib = { cards: [], categories: {} };+try { lib = JSON.parse(readFileSync(join(repo, "gallery/api/library.json"), "utf8")); } catch { console.warn("gen-index: 读不到 gallery/api/library.json,demo 用英文名"); }+let i18n = { cardsZh: {}, stylesZh: {} };+try {+ const win = {};+ new Function("window", readFileSync(join(repo, "gallery/translations.js"), "utf8"))(win);+ i18n = win.GALLERY_I18N ?? i18n;+} catch { console.warn("gen-index: 读不到 gallery/translations.js,demo 用英文名"); }+const cardBySlug = new Map(lib.cards.map((c) => [c.name, c]));+const mediaDir = join(repo, "gallery/media");+const filesPerSlug = new Map();+for (const d of demos) filesPerSlug.set(d.slug, (filesPerSlug.get(d.slug) ?? 0) + 1);+const meta = {};+for (const d of demos) {+ const card = cardBySlug.get(d.slug);+ const styles = card?.styles ?? [];+ let style = styles.find((s) => norm(s.key) === norm(d.stem));+ if (!style && styles.length === 1 && filesPerSlug.get(d.slug) === 1) style = styles[0];+ const cardZh = i18n.cardsZh?.[d.slug] ?? d.slug;+ const name = style ? (i18n.stylesZh?.[style.key] ?? style.key) : `${cardZh} · ${d.stem}`;+ const catKey = card?.category ?? d.category;+ const preview = style && existsSync(join(mediaDir, `${style.key}.mp4`)) ? `${style.key}.mp4` : undefined;+ meta[d.stem] = {+ name,+ card: cardZh,+ category: lib.categories?.[catKey]?.zh ?? catKey,+ categoryKey: catKey,+ styleKey: style?.key,+ preview,+ summary: style?.description ?? card?.summary,+ };+}+const catOrder = Object.keys(lib.categories ?? {});+const categories = [...new Set(demos.map((d) => meta[d.stem].categoryKey))]+ .sort((a, b) => (catOrder.indexOf(a) + 1 || 99) - (catOrder.indexOf(b) + 1 || 99))+ .map((k) => lib.categories?.[k]?.zh ?? k);+writeFileSync(+ join(wb, "src/cards/demoMeta.ts"),+ banner ++ "// demo 组件名 → 中文名 / 所属镜头卡 / 画廊分类 / 预览视频(gallery/media 本地已拉取时)/ 一句话\n" ++ `export type DemoMeta = { name: string; card: string; category: string; categoryKey: string; styleKey?: string; preview?: string; summary?: string };\n` ++ `export const DEMO_META: Record<string, DemoMeta> = ${JSON.stringify(meta, null, 2)};\n\n` ++ `/** 画廊分类(中文,按画廊顺序),只含有 demo 的分类 */\nexport const DEMO_CATEGORIES: string[] = ${JSON.stringify(categories)};\n`,+);++// —— 素材清单:扫描 public/(成片工程素材经符号链接接入;cardpreviews / sfxlib / bgmlib 单列)——+const KIND = {+ ".mp4": "video", ".webm": "video", ".mov": "video",+ ".png": "image", ".jpg": "image", ".jpeg": "image", ".webp": "image", ".gif": "image", ".svg": "image",+ ".wav": "audio", ".mp3": "audio", ".m4a": "audio", ".aac": "audio", ".ogg": "audio", ".flac": "audio",+};+const SKIP_TOP = new Set(["cardpreviews", "sfxlib", "bgmlib"]);+const media = [];+const walk = (dir, rel) => {+ let ents;+ try { ents = readdirSync(dir, { withFileTypes: true }); } catch { return; }+ for (const e of ents.sort((a, b) => a.name.localeCompare(b.name))) {+ if (e.name.startsWith(".")) continue;+ const p = join(dir, e.name);+ const r = rel ? `${rel}/${e.name}` : e.name;+ let st;+ try { st = statSync(p); } catch { continue; } // 断掉的符号链接:跳过(statSync 跟随链接)+ if (st.isDirectory()) { if (!rel && SKIP_TOP.has(e.name)) continue; walk(p, r); }+ else {+ const kind = KIND[extname(e.name).toLowerCase()];+ if (kind) media.push({ file: r, dir: rel, name: e.name, kind });+ }+ }+};+walk(publicDir, "");+const listAudio = (sub) => {+ const out = [];+ const base = join(publicDir, sub);+ if (!existsSync(base)) return out;+ const push = (rel, cat) => {+ const name = rel.split("/").pop();+ if (KIND[extname(name).toLowerCase()] === "audio") out.push({ file: `${sub}/${rel}`, cat, name: name.replace(/\.[^.]+$/, "") });+ };+ for (const e of readdirSync(base, { withFileTypes: true }).sort((a, b) => a.name.localeCompare(b.name))) {+ if (e.name.startsWith(".")) continue;+ let isDir = false;+ try { isDir = statSync(join(base, e.name)).isDirectory(); } catch { continue; }+ if (isDir) {+ for (const f of readdirSync(join(base, e.name)).sort()) if (!f.startsWith(".")) push(`${e.name}/${f}`, e.name);+ } else push(e.name, "");+ }+ return out;+};+const sfxLib = listAudio("sfxlib");+const bgmLib = listAudio("bgmlib");+writeFileSync(+ join(wb, "src/mediaManifest.ts"),+ banner ++ "// 成片工程 public/ 素材清单:按本机 public/ 下的链接扫描生成(不进库)\n" ++ 'export type MediaItem = { file: string; dir: string; name: string; kind: "video" | "image" | "audio" };\n' ++ `export const MEDIA_ITEMS: MediaItem[] = ${JSON.stringify(media, null, 2)};\n\n` ++ "/** 仓库音效库 assets/audio/sfx/<类别>/(public/sfxlib 链接) */\n" ++ "export type LibAudio = { file: string; cat: string; name: string };\n" ++ `export const SFX_LIB: LibAudio[] = ${JSON.stringify(sfxLib, null, 2)};\n\n` ++ "/** 仓库 BGM 备选 assets/audio/bgm/(public/bgmlib 链接) */\n" ++ `export const BGM_LIB: LibAudio[] = ${JSON.stringify(bgmLib, null, 2)};\n`,+);++// —— 已链接成片工程元数据 ——+const projLink = join(wb, "proj");+const projLinked = existsSync(projLink);+let projDir = "";+let hasManifest = false;+if (projLinked) {+ try { projDir = dirname(realpathSync(projLink)); } catch { projDir = ""; }+ hasManifest = existsSync(join(projLink, "workbench.ts")) || existsSync(join(projLink, "workbench.tsx"));+}+writeFileSync(+ join(wb, "src/projMeta.ts"),+ banner ++ "// 已链接的成片工程:按本机 proj 链接生成(不进库)\n" ++ `export const PROJ_LINKED = ${projLinked};\n` ++ `/** 成片工程根目录(src/ 的上级;未链接为空) */\nexport const PROJ_DIR = ${JSON.stringify(projDir)};\n` ++ `/** 工程是否提供 src/workbench.ts 清单(没有就只能当素材库用,拆解导入不可用) */\nexport const PROJ_HAS_MANIFEST = ${hasManifest};\n`,+);++const srcCount = demos.reduce((a, d) => ((a[d.durationSource] = (a[d.durationSource] ?? 0) + 1), a), {});+console.log(+ `gen-index: ${demos.length} 张 demo 卡(${Object.values(meta).filter((m) => m.preview).length} 张有预览视频;时长来源 ${JSON.stringify(srcCount)})` ++ `, ${media.length} 个工程素材, 音效库 ${sfxLib.length} / BGM ${bgmLib.length}` ++ `, 成片工程 ${projLinked ? `${projDir}${hasManifest ? "" : "(无 workbench.ts 清单)"}` : "未链接"}`,+);diff --git a/workbench/scripts/open.mjs b/workbench/scripts/open.mjsnew file mode 100644index 0000000..d59cf0c--- /dev/null+++ b/workbench/scripts/open.mjs@@ -0,0 +1,158 @@+#!/usr/bin/env node+// 交付后一键打开工作台:链接成片工程 → 生成索引 → 起 dev server → 浏览器打开并自动导入。+//+// node scripts/open.mjs <成片工程目录> [--port 5198] [--no-open] [--no-import]+// node scripts/open.mjs # 不给目录:沿用上次链接的工程+//+// 成片工程目录 = 含 package.json / remotion.config.ts 的那一层,源码在 <目录>/src(或 <目录>/remotion/src)。+// 工程要提供 src/workbench.ts 清单(结构见 references/workbench.md)才能拆解导入;没有清单也能打开,+// 只是素材 tab 没有「导入成片」按钮。+// 链接全是机器本地符号链接(workbench/proj、workbench/public/*),不进库。+//+// dev server 管理:本脚本起的 server 记 pid 到 .dev.pid。@proj 别名在 vite 配置加载时定死,+// 所以「给了工程目录 = 重新链接」必须重启 server——只重启身份核实过的自家进程;端口被别的+// server(如手动 npm run dev)占着时直接报错,不会假装"刷新即可"。+import { spawn, spawnSync } from "node:child_process";+import {+ existsSync, lstatSync, mkdirSync, openSync, readFileSync, readdirSync, readlinkSync, rmdirSync, symlinkSync, unlinkSync, writeFileSync,+} from "node:fs";+import { dirname, join, resolve } from "node:path";+import { fileURLToPath } from "node:url";++const wb = resolve(dirname(fileURLToPath(import.meta.url)), "..");+const args = process.argv.slice(2);+const flag = (k) => args.includes(`--${k}`);+const opt = (k, d) => { const i = args.indexOf(`--${k}`); return i >= 0 ? args[i + 1] : d; };+const PORT = Number(opt("port", "5198"));+const positional = args.filter((a, i) => !a.startsWith("--") && !(i > 0 && args[i - 1] === "--port"));++const isLink = (p) => { try { return lstatSync(p).isSymbolicLink(); } catch { return false; } };+const rmLink = (p) => { if (isLink(p)) unlinkSync(p); };+const log = (s) => console.log(`[workbench] ${s}`);+const die = (s, code = 1) => { console.error(`[workbench] ${s}`); process.exit(code); };+const sleep = (ms) => new Promise((r) => setTimeout(r, ms));++// —— 1. 定位成片工程 ——+const relink = !!positional[0];+let projectDir = relink ? resolve(positional[0]) : null;+const projLink = join(wb, "proj");+if (!relink) {+ if (!isLink(projLink)) die("用法:node scripts/open.mjs <成片工程目录>(首次必须给目录)", 2);+ projectDir = dirname(resolve(wb, readlinkSync(projLink)));+ if (existsSync(join(projectDir, "..", "package.json")) && !existsSync(join(projectDir, "package.json"))) projectDir = dirname(projectDir);+ log(`沿用上次链接的工程:${projectDir}`);+} else {+ if (!existsSync(projectDir)) die(`工程目录不存在:${projectDir}`, 2);+ const candidates = [join(projectDir, "src"), join(projectDir, "remotion", "src")];+ const srcDir = candidates.find((d) => existsSync(d) && readdirSync(d).some((f) => /^(Root|index|entry|workbench)\.tsx?$/.test(f)));+ if (!srcDir) die(`在 ${projectDir} 下找不到 Remotion 源码目录(src/ 或 remotion/src/ 需含 Root.tsx / index.ts)`, 2);+ const projRoot = dirname(srcDir); // package.json / public 所在层+ const publicSrc = join(projRoot, "public");++ // —— 2. 链接 src → proj,public/* → public/* ——+ rmLink(projLink);+ symlinkSync(srcDir, projLink);+ const pub = join(wb, "public");+ mkdirSync(pub, { recursive: true });+ // 清掉上一部片留下的链接(只删符号链接和我们建的 textures/ 兜底目录,不碰真实文件)+ for (const e of readdirSync(pub)) {+ const p = join(pub, e);+ if (isLink(p)) unlinkSync(p);+ else if (e === "textures" && !isLink(p)) {+ const inner = readdirSync(p);+ if (inner.every((f) => isLink(join(p, f)))) { for (const f of inner) unlinkSync(join(p, f)); rmdirSync(p); }+ }+ }+ let n = 0;+ if (existsSync(publicSrc)) {+ for (const e of readdirSync(publicSrc)) {+ if (e.startsWith(".")) continue;+ symlinkSync(join(publicSrc, e), join(pub, e));+ n++;+ }+ }+ log(`已链接 ${srcDir} → proj,public/ ${n} 项`);+ const manifest = ["workbench.ts", "workbench.tsx"].some((f) => existsSync(join(srcDir, f)));+ if (!manifest) log("⚠ 工程没有 src/workbench.ts 清单:能打开工作台,但无法拆解导入这部片(写法见 references/workbench.md)");+}++// —— 3. 依赖与索引 ——+if (!existsSync(join(wb, "node_modules"))) {+ log("首次使用,安装依赖…");+ const r = spawnSync("npm", ["install", "--ignore-scripts"], { cwd: wb, stdio: "inherit" });+ if (r.status !== 0) process.exit(r.status ?? 1);+}+{+ const r = spawnSync(process.execPath, [join(wb, "scripts", "gen-index.mjs")], { cwd: wb, stdio: "inherit" });+ if (r.status !== 0) process.exit(r.status ?? 1);+}++// —— 4. dev server ——+const url = `http://localhost:${PORT}/`;+const alive = async () => { try { const r = await fetch(url, { signal: AbortSignal.timeout(1500) }); return r.ok; } catch { return false; } };+const viteBin = join(wb, "node_modules", "vite", "bin", "vite.js");+const pidFile = join(wb, ".dev.pid");+const readPid = () => { try { const n = Number(readFileSync(pidFile, "utf8").trim()); return Number.isInteger(n) && n > 1 ? n : null; } catch { return null; } };+const pidAlive = (pid) => { try { process.kill(pid, 0); return true; } catch { return false; } };+/** 进程身份核实:命令行必须是本工作台的 vite 且带同一端口——pid 会被系统复用,光"活着"不算 */+const isOurVite = (pid) => {+ if (process.platform === "win32") return false; // 无 ps;宁可不杀+ const r = spawnSync("ps", ["-o", "command=", "-p", String(pid)], { encoding: "utf8" });+ if (r.status !== 0) return false;+ const cmd = r.stdout.trim();+ return cmd.includes(viteBin) && cmd.includes(`--port ${PORT}`);+};++let managed = null; // 自家 server 的 pid(身份核实过)+{+ const pid = readPid();+ if (pid !== null) {+ if (!pidAlive(pid)) { unlinkSync(pidFile); log(`.dev.pid 里的进程 ${pid} 已不在,清理`); }+ else if (!isOurVite(pid)) { unlinkSync(pidFile); log(`.dev.pid 里的进程 ${pid} 不是本工作台的 vite(pid 可能被复用),忽略并清理`); }+ else managed = pid;+ }+}++if (relink) {+ // 重新链接:@proj 别名在 vite 配置加载时定死,只重启自家 server+ if (managed) {+ try { process.kill(managed); log(`重启 dev server(旧 pid ${managed})`); } catch { /* 刚退出 */ }+ unlinkSync(pidFile);+ const t0 = Date.now();+ while ((await alive()) && Date.now() - t0 < 10_000) await sleep(300);+ }+ if (await alive()) {+ die(+ `端口 ${PORT} 上有一个不是本脚本启动的 dev server(如手动 npm run dev)。` ++ `@proj 别名在它启动时已定死,刷新不会加载新工程——请先停掉它再重跑,或加 --port <其他端口>。`,+ );+ }+}++if (await alive()) {+ log(`dev server 已在 ${url} 运行(索引已重新生成,浏览器刷新即可)`);+} else {+ const logFile = join(wb, ".dev.log");+ const fd = openSync(logFile, "a");+ const child = spawn(process.execPath, [viteBin, "--port", String(PORT), "--strictPort"], {+ cwd: wb, detached: true, stdio: ["ignore", fd, fd],+ });+ child.unref();+ writeFileSync(pidFile, String(child.pid));+ log(`启动 dev server(pid ${child.pid},日志 ${logFile})…`);+ const t0 = Date.now();+ while (!(await alive())) {+ if (Date.now() - t0 > 90_000) die(`dev server 90s 内没起来,看 ${logFile}`);+ if (!pidAlive(child.pid)) die(`dev server 启动即退出(端口 ${PORT} 被占?),看 ${logFile}`);+ await sleep(500);+ }+ log(`dev server 就绪:${url}`);+}++// —— 5. 打开浏览器(?import=project:存档不是这一版成片时按清单自动导入)——+const openUrl = url + (flag("no-import") ? "" : "?import=project");+if (!flag("no-open")) {+ const cmd = process.platform === "darwin" ? "open" : process.platform === "win32" ? "start" : "xdg-open";+ spawn(cmd, [openUrl], { stdio: "ignore", detached: true, shell: process.platform === "win32" }).unref();+}+console.log(`\n工作台:${openUrl}\n停止 dev server:kill $(cat ${pidFile})\n`);diff --git a/workbench/scripts/parity.mjs b/workbench/scripts/parity.mjsnew file mode 100644index 0000000..24ba48e--- /dev/null+++ b/workbench/scripts/parity.mjs@@ -0,0 +1,110 @@+#!/usr/bin/env node+// 导入结果 vs 原片 逐帧对照:证明「按清单拆解再合成」没有改变画面。+//+// node scripts/parity.mjs [--frames 150,240,470,1000] [--tolerance 2]+//+// 渲染 ProjImported(清单刚导入、未改动的工作台工程)与 ProjOriginal(成片工程自己的 Main)+// 同一帧的 PNG 到 .parity/,用 PIL 逐像素比对(每通道差 > tolerance 的像素占比)。+// 前置:已 `node scripts/open.mjs <工程>` 链接成片,清单提供了 `original`,本机有 python3 + Pillow。+// 打包一次、渲多帧(remotion still 每次都重新打包,8 帧要跑八次 bundle)。+// 退出码:0 全部一致;1 有帧存在差异;2 无法得出结论(前置缺失 / 比对未执行)——绝不假绿。+import { bundle } from "@remotion/bundler";+import { renderStill, selectComposition } from "@remotion/renderer";+import { spawnSync } from "node:child_process";+import { existsSync, mkdirSync } from "node:fs";+import { dirname, join, resolve } from "node:path";+import { fileURLToPath } from "node:url";++const wb = resolve(dirname(fileURLToPath(import.meta.url)), "..");+const args = process.argv.slice(2);+const opt = (k, d) => { const i = args.indexOf(`--${k}`); return i >= 0 ? args[i + 1] : d; };+const FRAMES = opt("frames", "150,240,470,1000").split(",").map(Number);+const TOL = Number(opt("tolerance", "2"));++if (!existsSync(join(wb, "proj", "workbench.ts"))) {+ console.error("未链接带清单的成片工程:先 node scripts/open.mjs <工程目录>");+ process.exit(2);+}+// 比对依赖先检查,别渲完一堆帧才发现比不了+{+ const r = spawnSync("python3", ["-c", "import PIL"], { encoding: "utf8" });+ if (r.status !== 0) {+ console.error("parity 需要 python3 + Pillow 做像素比对:pip install pillow(或 python3 -m pip install pillow)");+ process.exit(2);+ }+}++// Remotion 静态服务器拒绝符号链接:同导出流程,先解引用同步到 .render-public+const out = join(wb, ".parity");+mkdirSync(out, { recursive: true });+const renderPublic = join(wb, ".render-public");+const rs = spawnSync("rsync", ["-aL", "--delete", "--exclude=cardpreviews", "public/", `${renderPublic}/`], { cwd: wb, stdio: "inherit" });+if (rs.status !== 0) process.exit(2);++console.log("bundling…");+const serveUrl = await bundle({+ entryPoint: join(wb, "src/remotion/index.ts"),+ publicDir: renderPublic,+ // 与 remotion.config.ts 同款别名(程序化 API 不读 remotion.config.ts)+ webpackOverride: (c) => ({+ ...c,+ resolve: {+ ...c.resolve,+ symlinks: false,+ alias: { ...(c.resolve?.alias ?? {}), "@proj": join(wb, "proj"), "@demos": join(wb, "demosrc") },+ },+ }),+});++const render = async (id, frame) => {+ const composition = await selectComposition({ serveUrl, id, inputProps: {} });+ const output = join(out, `${id}-f${frame}.png`);+ await renderStill({ composition, serveUrl, output, frame, imageFormat: "png", chromiumOptions: { gl: "angle" } });+ return output;+};++const PY_DIFF = `+import sys+from PIL import Image, ImageChops+a = Image.open(sys.argv[1]).convert("RGB"); b = Image.open(sys.argv[2]).convert("RGB")+if a.size != b.size:+ print("SIZE", a.size, b.size); sys.exit(3)+d = ImageChops.difference(a, b)+px = d.getdata(); tol = int(sys.argv[3])+bad = sum(1 for p in px if max(p) > tol)+print(bad, a.size[0] * a.size[1], max(max(p) for p in px))+`;++const results = []; // { f, verdict: "same" | "diff" | "inconclusive", detail }+for (const f of FRAMES) {+ const [a, b] = await Promise.all([render("ProjImported", f), render("ProjOriginal", f)]);+ const py = spawnSync("python3", ["-c", PY_DIFF, a, b, String(TOL)], { encoding: "utf8" });+ if (py.status !== 0) {+ const detail = (py.stdout + py.stderr).trim().split("\n").pop() ?? "";+ results.push({ f, verdict: "inconclusive", detail });+ console.log(`f${f}: ? 比对未完成(${detail || `python 退出码 ${py.status}`})`);+ continue;+ }+ const [bad, total, maxd] = py.stdout.trim().split(/\s+/).map(Number);+ if (![bad, total, maxd].every(Number.isFinite) || total <= 0) {+ results.push({ f, verdict: "inconclusive", detail: `比对输出不可解析:${py.stdout.trim()}` });+ console.log(`f${f}: ? 比对输出不可解析`);+ continue;+ }+ const ratio = bad / total;+ const same = ratio < 0.001; // 千分之一以下的像素差异视为一致(抗锯齿/字体光栅噪声)+ results.push({ f, verdict: same ? "same" : "diff", detail: `${bad}/${total}` });+ console.log(`f${f}: ${same ? "✓ 一致" : "✗ 有差异"} 差异像素 ${bad}/${total} (${(ratio * 100).toFixed(3)}%),最大通道差 ${maxd}`);+}++const diff = results.filter((r) => r.verdict === "diff");+const inconclusive = results.filter((r) => r.verdict === "inconclusive");+if (inconclusive.length) {+ console.log(`\n${inconclusive.length}/${results.length} 帧未能比对,结论不成立(不是"一致")。PNG 见 ${out}`);+ process.exit(2);+}+if (diff.length) {+ console.log(`\n${diff.length}/${results.length} 帧有差异,PNG 见 ${out}`);+ process.exit(1);+}+console.log(`\n${results.length} 帧全部一致,PNG 见 ${out}`);diff --git a/workbench/src/App.tsx b/workbench/src/App.tsxnew file mode 100644index 0000000..f85e1ca--- /dev/null+++ b/workbench/src/App.tsx@@ -0,0 +1,257 @@+import React, { useEffect, useRef, useState } from "react";+import { LibraryPanel } from "./panels/LibraryPanel";+import { Inspector } from "./panels/Inspector";+import { PreviewPanel } from "./preview/PreviewPanel";+import { Timeline } from "./timeline/Timeline";+import { resetProject, useStore } from "./store";+import { seekTo, togglePlay } from "./playerRef";+import type { ProjectData } from "./types";++const isEditable = (el: EventTarget | null) =>+ el instanceof HTMLElement &&+ (["INPUT", "TEXTAREA", "SELECT"].includes(el.tagName) || el.isContentEditable);++const clamp = (v: number, lo: number, hi: number) => Math.min(hi, Math.max(lo, v));++/** 面板尺寸:可拖拽调整,落 localStorage */+const usePanelSize = (key: string, def: number) => {+ const [v, setV] = useState<number>(() => {+ const s = localStorage.getItem(key);+ return s ? Number(s) : def;+ });+ useEffect(() => {+ localStorage.setItem(key, String(v));+ }, [key, v]);+ return [v, setV] as const;+};++/** 拖拽分隔条:pointerdown 后跟踪位移,交给回调换算尺寸 */+const startSplit = (+ e: React.PointerEvent,+ onMove: (dx: number, dy: number) => void,+) => {+ e.preventDefault();+ const sx = e.clientX;+ const sy = e.clientY;+ const mm = (ev: PointerEvent) => onMove(ev.clientX - sx, ev.clientY - sy);+ const up = () => window.removeEventListener("pointermove", mm);+ window.addEventListener("pointermove", mm);+ window.addEventListener("pointerup", up, { once: true });+};++/** 导出成片:提交当前工程给 dev server 的 Remotion 渲染任务,轮询进度 */+const ExportButton: React.FC = () => {+ const [job, setJob] = useState<{+ id: string;+ status: "running" | "done" | "error";+ progress: number;+ lastLine?: string;+ } | null>(null);+ const timer = useRef<number | undefined>(undefined);++ const poll = (id: string) => {+ timer.current = window.setInterval(async () => {+ const r = await fetch(`/api/export/${id}`);+ if (!r.ok) return;+ const j = await r.json();+ setJob({ id, ...j });+ if (j.status !== "running") window.clearInterval(timer.current);+ }, 1000);+ };++ const start = async () => {+ const project = useStore.getState().project;+ const r = await fetch("/api/export", { method: "POST", body: JSON.stringify({ project }) });+ const j = await r.json();+ if (!r.ok) {+ window.alert(j.error ?? "导出启动失败");+ return;+ }+ setJob({ id: j.id, status: "running", progress: 0 });+ poll(j.id);+ };++ useEffect(() => () => window.clearInterval(timer.current), []);++ if (job?.status === "running")+ return (+ <button className="btn primary" disabled>+ 导出中 {Math.round(job.progress * 100)}%+ </button>+ );+ if (job?.status === "done")+ return (+ <>+ <button+ className="btn"+ title="在 Finder 中显示导出的 MP4"+ onClick={() => fetch(`/api/export/${job.id}/reveal`, { method: "POST" })}+ >+ ✓ 已导出 · 显示文件+ </button>+ <button className="btn primary" onClick={start}>+ 再次导出+ </button>+ </>+ );+ if (job?.status === "error")+ return (+ <button className="btn danger" title={job.lastLine} onClick={start}>+ 导出失败 · 重试+ </button>+ );+ return (+ <button+ className="btn primary"+ title="用 Remotion 渲染当前工程为 MP4(输出到 workbench/exports/)"+ onClick={start}+ >+ 导出成片+ </button>+ );+};++export const App: React.FC = () => {+ const project = useStore((s) => s.project);+ const undo = useStore((s) => s.undo);+ const redo = useStore((s) => s.redo);+ const canUndo = useStore((s) => s.past.length > 0);+ const canRedo = useStore((s) => s.future.length > 0);+ const updateName = (name: string) =>+ useStore.setState((s) => ({ project: { ...s.project, name } }));+ const fileRef = useRef<HTMLInputElement>(null);+ const [libW, setLibW] = usePanelSize("wb-lib-w", 224);+ const [inspW, setInspW] = usePanelSize("wb-insp-w", 300);+ const [tlH, setTlH] = usePanelSize("wb-tl-h", 264);++ useEffect(() => {+ const onKey = (e: KeyboardEvent) => {+ if (isEditable(e.target)) return;+ const s = useStore.getState();+ if (e.key === " ") {+ e.preventDefault();+ togglePlay();+ } else if (e.key === "Backspace" || e.key === "Delete") {+ if (s.selectedClipId) s.removeClip(s.selectedClipId);+ } else if (e.key.toLowerCase() === "s" && !e.metaKey && !e.ctrlKey) {+ if (s.selectedClipId) s.splitClip(s.selectedClipId, s.playhead);+ } else if (e.key.toLowerCase() === "d" && (e.metaKey || e.ctrlKey)) {+ e.preventDefault();+ if (s.selectedClipId) s.duplicateClip(s.selectedClipId);+ } else if (e.key.toLowerCase() === "z" && (e.metaKey || e.ctrlKey)) {+ e.preventDefault();+ if (e.shiftKey) s.redo();+ else s.undo();+ } else if (e.key === "ArrowLeft" || e.key === "ArrowRight") {+ e.preventDefault();+ const step = (e.shiftKey ? 10 : 1) * (e.key === "ArrowLeft" ? -1 : 1);+ const f = Math.max(0, s.playhead + step);+ seekTo(f);+ s.setPlayhead(f);+ }+ };+ window.addEventListener("keydown", onKey);+ return () => window.removeEventListener("keydown", onKey);+ }, []);++ const exportJson = () => {+ const blob = new Blob([JSON.stringify(project, null, 2)], { type: "application/json" });+ const a = document.createElement("a");+ a.href = URL.createObjectURL(blob);+ a.download = `${project.name || "workbench-project"}.json`;+ a.click();+ URL.revokeObjectURL(a.href);+ };++ const importJson = (file: File) => {+ file.text().then((text) => {+ try {+ const p = JSON.parse(text) as ProjectData;+ if (!p || !Array.isArray(p.tracks)) throw new Error("bad format");+ useStore.getState().setProject(p);+ } catch {+ window.alert("导入失败:不是合法的工程 JSON");+ }+ });+ };++ return (+ <div className="app">+ <header className="topbar">+ <span className="logo">ShotCraft <b>Workbench</b></span>+ <input+ className="project-name"+ value={project.name}+ onChange={(e) => updateName(e.target.value)}+ spellCheck={false}+ />+ <span style={{ flex: 1 }} />+ <button className="btn" disabled={!canUndo} onClick={undo} title="撤销(⌘Z)">+ ↩ 撤销+ </button>+ <button className="btn" disabled={!canRedo} onClick={redo} title="重做(⇧⌘Z)">+ ↪ 重做+ </button>+ <span className="tl-sep" />+ <ExportButton />+ <button className="btn" onClick={exportJson}>导出 JSON</button>+ <button className="btn" onClick={() => fileRef.current?.click()}>导入</button>+ <button+ className="btn"+ onClick={() => window.confirm("重置为演示工程?当前内容会被覆盖(可撤销)。") && resetProject()}+ >+ 重置示例+ </button>+ <input+ ref={fileRef}+ type="file"+ accept="application/json"+ style={{ display: "none" }}+ onChange={(e) => {+ const f = e.target.files?.[0];+ if (f) importJson(f);+ e.target.value = "";+ }}+ />+ </header>++ <main className="main">+ <div className="panel-wrap" style={{ width: libW }}>+ <LibraryPanel />+ </div>+ <div+ className="splitter v"+ title="拖拽调整素材库宽度"+ onPointerDown={(e) => {+ const start = libW;+ startSplit(e, (dx) => setLibW(clamp(start + dx, 160, 440)));+ }}+ />+ <PreviewPanel />+ <div+ className="splitter v"+ title="拖拽调整属性面板宽度"+ onPointerDown={(e) => {+ const start = inspW;+ startSplit(e, (dx) => setInspW(clamp(start - dx, 220, 500)));+ }}+ />+ <div className="panel-wrap" style={{ width: inspW }}>+ <Inspector />+ </div>+ </main>++ <div+ className="splitter h"+ title="拖拽调整时间轨高度"+ onPointerDown={(e) => {+ const start = tlH;+ startSplit(e, (_dx, dy) => setTlH(clamp(start - dy, 150, 600)));+ }}+ />+ <div className="panel-wrap" style={{ height: tlH }}>+ <Timeline />+ </div>+ </div>+ );+};diff --git a/workbench/src/cards/background-cards.tsx b/workbench/src/cards/background-cards.tsxnew file mode 100644index 0000000..4afbd8b--- /dev/null+++ b/workbench/src/cards/background-cards.tsx@@ -0,0 +1,48 @@+import React from "react";+import { AbsoluteFill } from "remotion";+import type { CardDef } from "./types";++// —— 预设背景:静态幕底,铺在最底轨。组件不依赖 useCurrentFrame,素材库缩略图可原样渲染 ——+// 色值取 Ink Press 模板(纸底 #f2eee6 / 墨黑)与 synapse 系深底 #0a0908。++const Solid: React.FC<{ color?: string }> = ({ color = "#f2eee6" }) => (+ <AbsoluteFill style={{ background: color }} />+);++const solidCard = (id: string, name: string, color: string, accent: string): CardDef => ({+ id,+ name,+ category: "背景",+ durationInFrames: 300,+ accent,+ component: Solid as React.ComponentType<Record<string, unknown>>,+ schema: [{ type: "color", key: "color", label: "底色", default: color }],+});++/** 暖纸底 + 中心亮斑(PaperTitleCard 同款 radial 提亮) */+const Paper: React.FC<{ color?: string; glow?: number }> = ({ color = "#f2eee6", glow = 0.85 }) => (+ <AbsoluteFill+ style={{+ background: color,+ backgroundImage: `radial-gradient(1100px 750px at 50% 42%, rgba(255,252,244,${glow}), transparent 65%)`,+ }}+ />+);++export const BG_CARDS: CardDef[] = [+ solidCard("bg-paper", "纸底 · 暖白", "#f2eee6", "#e6dfd0"),+ solidCard("bg-white", "纯白", "#ffffff", "#e8e8ea"),+ solidCard("bg-ink", "墨黑", "#0a0908", "#3a3a3f"),+ {+ id: "bg-paper-glow",+ name: "纸底 · 中心提亮",+ category: "背景",+ durationInFrames: 300,+ accent: "#e6dfd0",+ component: Paper as React.ComponentType<Record<string, unknown>>,+ schema: [+ { type: "color", key: "color", label: "底色", default: "#f2eee6" },+ { type: "slider", key: "glow", label: "亮斑强度", default: 0.85, min: 0, max: 1, step: 0.05 },+ ],+ },+];diff --git a/workbench/src/cards/demoCards.ts b/workbench/src/cards/demoCards.tsnew file mode 100644index 0000000..78a43cd--- /dev/null+++ b/workbench/src/cards/demoCards.ts@@ -0,0 +1,27 @@+import type { CardDef } from "./types";+import { DEMO_MODULES } from "./demo-index";+import { DEMO_CATEGORIES, DEMO_META } from "./demoMeta";++/** 镜头卡动效库:demos/<类别>/<卡>/<Stem>.tsx 全量接入(scripts/gen-index.mjs 生成静态索引)。+ * 接入条件与 assets/scripts/smoke-render-demos.py 同口径:文件同时导出 `<Stem>: React.FC`+ * 与 `*_DURATION` / `*_DUR` 时长常量。demo 是顶部常量驱动、不吃 props,所以 schema 为空——+ * 上轨后可裁剪 / 变速 / 定格 / 图层变换;要逐属性调参,把 CONFIG 常量提成 props + schema+ * (模式见 references/workbench.md)。+ * motion-lab 血统的卡(DesignStage + useT)按 Sequence 长度归一化时间:clip 拉长=动画放慢;+ * 其余卡按绝对帧走:clip 超出原时长后尾帧定格。 */+export const DEMO_CARDS: CardDef[] = DEMO_MODULES.map((m) => {+ const meta = DEMO_META[m.stem];+ return {+ id: `demo:${m.stem}`,+ name: meta?.name ?? m.stem,+ category: meta?.category ?? "动效库",+ durationInFrames: Math.max(2, Math.round(m.duration)),+ component: m.component,+ schema: [],+ accent: "#c58a2a",+ preview: meta?.preview ? `cardpreviews/${meta.preview}` : undefined,+ summary: meta?.summary,+ };+});++export { DEMO_CATEGORIES };diff --git a/workbench/src/cards/inkpress/caption-strip.tsx b/workbench/src/cards/inkpress/caption-strip.tsxnew file mode 100644index 0000000..83bf6bb--- /dev/null+++ b/workbench/src/cards/inkpress/caption-strip.tsx@@ -0,0 +1,77 @@+import React from "react";+import { AbsoluteFill, interpolate, useCurrentFrame } from "remotion";+import type { CardDef } from "../types";++// 解说字幕条 · Ink Press —— 参数化版(源出 template/src/aifl/Caption.tsx)+// 屏幕空间等宽小字 + 琥珀方点,8f 上浮入场、尾 8f 淡出(FIXED)。开放文案 / 底距 / 字号 / 颜色。++const MONO = "ui-monospace, SFMono-Regular, Menlo, monospace";++interface Props {+ text?: string;+ bottom?: number;+ fontSize?: number;+ color?: string;+ accent?: string;+ uppercase?: boolean;+ duration?: number;+}++const CaptionStrip: React.FC<Props> = ({+ text = "SEARCH · FILTER · OPEN",+ bottom = 72,+ fontSize = 22,+ color = "#615c54",+ accent = "#b5651d",+ uppercase = true,+ duration = 60,+}) => {+ const frame = useCurrentFrame();+ const inT = interpolate(frame, [0, 8], [0, 1], { extrapolateLeft: "clamp", extrapolateRight: "clamp" });+ const outT = interpolate(frame, [duration - 8, duration], [1, 0], { extrapolateLeft: "clamp", extrapolateRight: "clamp" });+ return (+ <AbsoluteFill style={{ pointerEvents: "none" }}>+ <div+ style={{+ position: "absolute",+ left: 0,+ right: 0,+ bottom,+ display: "flex",+ justifyContent: "center",+ alignItems: "baseline",+ gap: 14,+ fontFamily: MONO,+ fontSize,+ letterSpacing: "0.14em",+ textTransform: uppercase ? "uppercase" : "none",+ color,+ opacity: inT * outT,+ transform: `translateY(${(1 - inT) * 8}px)`,+ }}+ >+ <span style={{ width: 6, height: 6, background: accent, display: "inline-block" }} />+ <span>{text}</span>+ </div>+ </AbsoluteFill>+ );+};++export const captionStripCard: CardDef = {+ id: "inkpress-caption",+ name: "解说字幕条",+ category: "工作台",+ durationInFrames: 60,+ accent: "#34c759",+ durationProp: "duration",+ component: CaptionStrip as React.ComponentType<Record<string, unknown>>,+ summary: "底部通栏等宽解说条,琥珀方点引导;透明底,叠在任何镜头上",+ schema: [+ { type: "text", key: "text", label: "文案", default: "SEARCH · FILTER · OPEN" },+ { type: "slider", key: "bottom", label: "底距", default: 72, min: 20, max: 400, step: 2, unit: "px" },+ { type: "slider", key: "fontSize", label: "字号", default: 22, min: 14, max: 48, step: 1, unit: "px" },+ { type: "color", key: "color", label: "文字色", default: "#615c54" },+ { type: "color", key: "accent", label: "方点色", default: "#b5651d" },+ { type: "boolean", key: "uppercase", label: "全大写", default: true },+ ],+};diff --git a/workbench/src/cards/inkpress/digit-roll.tsx b/workbench/src/cards/inkpress/digit-roll.tsxnew file mode 100644index 0000000..36ca0ea--- /dev/null+++ b/workbench/src/cards/inkpress/digit-roll.tsx@@ -0,0 +1,42 @@+import React from "react";+import { Easing, interpolate, useCurrentFrame } from "remotion";++// 里程表数字滚动(源出 template/src/aifl/DigitRoll.tsx,字卡副标用)+const DIGITS = "0123456789";++export const DigitRoll: React.FC<{+ value: string;+ delay?: number;+ fontSize?: number;+ color?: string;+}> = ({ value, delay = 0, fontSize = 30, color = "#b5651d" }) => {+ const frame = useCurrentFrame();+ const lineH = fontSize * 1.15;+ return (+ <span style={{ display: "inline-flex", overflow: "hidden", height: lineH, verticalAlign: "bottom" }}>+ {value.split("").map((ch, i) => {+ const target = DIGITS.indexOf(ch);+ if (target < 0) {+ return (+ <span key={i} style={{ fontSize, lineHeight: `${lineH}px`, color }}>{ch}</span>+ );+ }+ const t = interpolate(frame, [delay + i * 4, delay + i * 4 + 22], [0, 1], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ easing: Easing.bezier(0.25, 0.8, 0.25, 1),+ });+ const offset = (10 + target) * t * lineH;+ return (+ <span key={i} style={{ display: "inline-block", height: lineH, overflow: "hidden" }}>+ <span style={{ display: "block", transform: `translateY(${-offset}px)` }}>+ {(DIGITS + DIGITS).split("").map((d, j) => (+ <span key={j} style={{ display: "block", fontSize, lineHeight: `${lineH}px`, color }}>{d}</span>+ ))}+ </span>+ </span>+ );+ })}+ </span>+ );+};diff --git a/workbench/src/cards/inkpress/flash-cut.tsx b/workbench/src/cards/inkpress/flash-cut.tsxnew file mode 100644index 0000000..d920654--- /dev/null+++ b/workbench/src/cards/inkpress/flash-cut.tsx@@ -0,0 +1,44 @@+import React from "react";+import { AbsoluteFill, interpolate, useCurrentFrame } from "remotion";+import type { CardDef } from "../types";++// 暖白闪转场 —— 参数化版(源出 template/src/aifl/FlashCut.tsx)+// 跨骑硬切两侧各 5f 的暖白 bloom:峰值在 40% 处(FIXED);开放峰值不透明度与暖色。++interface Props {+ peak?: number;+ color?: string;+ duration?: number;+}++const FlashCut: React.FC<Props> = ({ peak = 0.85, color = "#fff8eb", duration = 10 }) => {+ const frame = useCurrentFrame();+ const o = interpolate(frame, [0, duration * 0.4, duration], [0, peak, 0], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ });+ return (+ <AbsoluteFill+ style={{+ pointerEvents: "none",+ opacity: o,+ background: `radial-gradient(ellipse at 50% 45%, ${color}, ${color}8c 55%, transparent 80%)`,+ }}+ />+ );+};++export const flashCutCard: CardDef = {+ id: "inkpress-flash-cut",+ name: "暖白闪转场",+ category: "工作台",+ durationInFrames: 10,+ accent: "#f7c948",+ durationProp: "duration",+ component: FlashCut as React.ComponentType<Record<string, unknown>>,+ summary: "放在硬切点前 5 帧、跨骑两侧各 5 帧;只盖接缝,不当装饰光效",+ schema: [+ { type: "slider", key: "peak", label: "峰值不透明度", default: 0.85, min: 0.2, max: 1, step: 0.05 },+ { type: "color", key: "color", label: "暖白色", default: "#fff8eb" },+ ],+};diff --git a/workbench/src/cards/inkpress/title-card.tsx b/workbench/src/cards/inkpress/title-card.tsxnew file mode 100644index 0000000..e177bdc--- /dev/null+++ b/workbench/src/cards/inkpress/title-card.tsx@@ -0,0 +1,140 @@+import React from "react";+import { AbsoluteFill, Easing, interpolate, useCurrentFrame } from "remotion";+import type { CardDef } from "../types";+import { DigitRoll } from "./digit-roll";++// 字卡 · Ink Press —— 参数化版(源出 template/src/aifl/PaperTitleCard.tsx,动效逐字同式)+// 开放:文案(*词* 标强调)、副标、数字副标、纸底/墨色/琥珀色、字号、下划线宽。+// 节奏命门 FIXED:逐词 4f 错峰 / 9f 入场、下划线 16–34f、尾 8f 淡出。++const SERIF = 'ui-serif, Georgia, "Times New Roman", serif';+const MONO = "ui-monospace, SFMono-Regular, Menlo, monospace";++/** 文案 DSL:空格分词,`*词*` 为琥珀斜体强调词 */+export const parseWords = (text: string) =>+ text+ .split(/\s+/)+ .filter(Boolean)+ .map((w) => {+ const m = w.match(/^\*(.+)\*$/);+ return m ? { text: m[1], accent: true } : { text: w, accent: false };+ });++interface Props {+ text?: string;+ sub?: string;+ subDigits?: string;+ bg?: string;+ ink?: string;+ accent?: string;+ fontSize?: number;+ underlineWidth?: number;+ duration?: number;+}++const TitleCard: React.FC<Props> = ({+ text = "All your team’s research, *one* place to go.",+ sub = "",+ subDigits = "",+ bg = "#f7f4ee",+ ink = "#1c1a17",+ accent = "#b5651d",+ fontSize = 116,+ underlineWidth = 220,+ duration = 55,+}) => {+ const frame = useCurrentFrame();+ const words = parseWords(text);+ const fadeOut = interpolate(frame, [duration - 8, duration], [1, 0], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ });+ const underline = interpolate(frame, [16, 34], [0, 1], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ easing: Easing.bezier(0.3, 0, 0.2, 1),+ });+ const subT = interpolate(frame, [10, 22], [0, 1], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ });++ return (+ <AbsoluteFill+ style={{+ backgroundColor: bg,+ justifyContent: "center",+ alignItems: "center",+ opacity: fadeOut,+ backgroundImage: "radial-gradient(1100px 750px at 50% 42%, rgba(255,252,244,0.85), transparent 65%)",+ }}+ >+ <div style={{ textAlign: "center", maxWidth: 1500 }}>+ <div+ style={{+ fontFamily: SERIF, fontSize, fontWeight: 600, lineHeight: 1.14,+ color: ink, letterSpacing: "-0.012em",+ display: "flex", flexWrap: "wrap", justifyContent: "center", columnGap: "0.26em",+ }}+ >+ {words.map((w, i) => {+ const delay = 4 + i * 4;+ const t = interpolate(frame, [delay, delay + 9], [0, 1], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ easing: Easing.bezier(0.2, 0.75, 0.3, 1),+ });+ return (+ <span+ key={i}+ style={{+ opacity: t,+ transform: `scale(${1.28 - 0.28 * t})`,+ filter: `blur(${(1 - t) * 7}px)`,+ display: "inline-block",+ fontStyle: w.accent ? "italic" : "normal",+ color: w.accent ? accent : undefined,+ }}+ >+ {w.text}+ </span>+ );+ })}+ </div>+ <div+ style={{+ height: 6, width: underlineWidth, margin: "38px auto 0", borderRadius: 3,+ background: accent, transform: `scaleX(${underline})`,+ }}+ />+ {sub ? (+ <div style={{ fontFamily: MONO, fontSize: 26, letterSpacing: "0.12em", color: "rgba(28,26,23,0.62)", marginTop: 34, opacity: subT, textTransform: "uppercase", display: "flex", justifyContent: "center", alignItems: "baseline", gap: "0.5em" }}>+ {subDigits ? <DigitRoll value={subDigits} delay={12} fontSize={26} color={accent} /> : null}+ <span>{sub}</span>+ </div>+ ) : null}+ </div>+ </AbsoluteFill>+ );+};++export const titleCardCard: CardDef = {+ id: "inkpress-title-card",+ name: "字卡 · Ink Press",+ category: "工作台",+ durationInFrames: 55,+ accent: "#b5651d",+ durationProp: "duration",+ component: TitleCard as React.ComponentType<Record<string, unknown>>,+ summary: "衬线大字逐词压印入场,*词* 标琥珀斜体强调,下划线生长;尾 8 帧淡出",+ schema: [+ { type: "textarea", key: "text", label: "文案(*词* = 强调)", default: "All your team’s research, *one* place to go." },+ { type: "text", key: "sub", label: "副标(等宽小字)", default: "" },+ { type: "text", key: "subDigits", label: "副标滚动数字", default: "" },+ { type: "color", key: "bg", label: "纸底", default: "#f7f4ee" },+ { type: "color", key: "ink", label: "墨色", default: "#1c1a17" },+ { type: "color", key: "accent", label: "强调色", default: "#b5651d" },+ { type: "slider", key: "fontSize", label: "字号", default: 116, min: 60, max: 160, step: 1, unit: "px" },+ { type: "slider", key: "underlineWidth", label: "下划线宽", default: 220, min: 0, max: 600, step: 10, unit: "px" },+ ],+};diff --git a/workbench/src/cards/manifest.ts b/workbench/src/cards/manifest.tsnew file mode 100644index 0000000..6dead94--- /dev/null+++ b/workbench/src/cards/manifest.ts@@ -0,0 +1,137 @@+import type React from "react";+import type { PropField } from "./types";++/** 成片工程接入清单——工程在 `src/workbench.ts` 里 `export const WORKBENCH: WorkbenchManifest`,+ * 工作台据此把成片拆成多轨 clip(镜头 / 转场 / 字幕 / 叠加层 / 音效 / 音乐)。+ * 结构是纯数据 + 组件引用,工程文件不需要 import 本文件(结构兼容即可)。+ * 时间量一律用**绝对帧**,与 Main.tsx 里 <Sequence from durationInFrames> 一一对应。 */++export type ManifestUnit = {+ /** 唯一 id(镜头 id / 转场序号…),导入后作为 clip 标签的一部分 */+ id: string;+ /** 时间轨上显示名(缺省 id) */+ label?: string;+ /** 绝对起帧 */+ from: number;+ /** 帧数 */+ duration: number;+ component: React.ComponentType<Record<string, unknown>>;+ /** 成片里实际传入的 props(= 该 clip 的属性初值) */+ props?: Record<string, unknown>;+ /** 可编辑属性;缺省为空 = 该单元只能动时间/变速/图层 */+ schema?: PropField[];+ /** 注入 clip 源时长的 prop 名(如 "duration" / "dur"),见 CardDef.durationProp */+ durationProp?: string;+ /** 共用同一张卡的单元写同一个 cardId(如四张字卡都是 PaperTitleCard);缺省按 component 引用分组 */+ cardId?: string;+ /** 卡名(素材库展示,同 cardId 的单元取第一个非空值) */+ cardName?: string;+ accent?: string;+};++export type ManifestAudio = {+ from: number;+ /** 帧数;缺省 90(与 Main.tsx 里 SFX Sequence 默认长度对齐) */+ duration?: number;+ /** public/ 下的路径,如 "audio/whoosh-big.mp3" */+ src: string;+ volume: number;+ label?: string;+};++export type WorkbenchManifest = {+ name: string;+ fps: number;+ width: number;+ height: number;+ /** 成片总帧数 */+ total: number;+ /** 舞台底色(Main 最外层 AbsoluteFill 的 background) */+ background?: string;+ /** 版本号(可选)。给了就作为「这是不是同一版成片」的判据;不给则按清单内容哈希+ * (时间表 / label / props / 单元→卡的分组拓扑 / 组件 displayName / 音效表),任一处变了都算新版本 */+ revision?: string;+ shots: ManifestUnit[];+ /** 转场层(闪白 / 光条…) */+ transitions?: ManifestUnit[];+ /** 字幕 / 解说条 */+ captions?: ManifestUnit[];+ /** 全片常驻叠加层(网格 / 暗角 / 水印…) */+ overlays?: ManifestUnit[];+ sfx?: ManifestAudio[];+ bgm?: ManifestAudio[];+ /** 叠加各层的 z 序(从上到下);缺省 transitions > captions > overlays,与 Ink Press 模板一致 */+ order?: ("transitions" | "captions" | "overlays")[];+ /** 原成片合成(整条 Main)——Studio 里注册为 ProjOriginal,供逐帧对照导入结果 */+ original?: React.ComponentType<Record<string, unknown>>;+};++export const UNIT_KINDS = ["shot", "transition", "caption", "overlay"] as const;+export type UnitKind = (typeof UNIT_KINDS)[number];++export const unitsOf = (m: WorkbenchManifest, kind: UnitKind): ManifestUnit[] =>+ kind === "shot" ? m.shots : (m[`${kind}s`] ?? []);++/** 单元 → 卡 id 的分组:显式 cardId 优先;否则同一组件**引用**共用一张卡,卡 id 取该组首个单元的 id+ * (`proj:<kind>:<cardId|首个 unit id>`)。projectCards 建卡与下面的内容哈希共用这一份,+ * 所以「某单元换了组件」这类只体现在引用关系上的变化(多数组件没有 displayName)也会改变哈希,+ * 旧存档里指向老卡的 clip 不会被继续沿用去渲错组件 */+export const groupUnits = (m: WorkbenchManifest): Map<ManifestUnit, string> => {+ const out = new Map<ManifestUnit, string>();+ for (const kind of UNIT_KINDS) {+ const groups = new Map<unknown, ManifestUnit[]>();+ for (const u of unitsOf(m, kind)) {+ const k = u.cardId ?? u.component;+ const g = groups.get(k);+ if (g) g.push(u);+ else groups.set(k, [u]);+ }+ // 一组一个 id。显式 cardId 与另一组「首个单元 id」撞名、或单元 id 重复时,后出现的组按顺序加+ // `~2`/`~3` 后缀(命名仍是清单的确定函数,哈希稳定),并在控制台提醒作者改 id+ const used = new Set<string>();+ for (const units of groups.values()) {+ const base = `proj:${kind}:${units[0].cardId ?? units[0].id}`;+ let id = base;+ for (let n = 2; used.has(id); n++) id = `${base}~${n}`;+ if (id !== base)+ console.warn(`[workbench] 清单卡 id 撞名:${base} 已被另一组单元占用,本组改用 ${id}——建议给单元换 id 或写显式 cardId`);+ used.add(id);+ for (const u of units) out.set(u, id);+ }+ }+ return out;+};++/** FNV-1a 32 位,输出 8 位 hex——够用来判"内容变没变",不做安全用途 */+const fnv1a = (s: string) => {+ let h = 0x811c9dc5;+ for (let i = 0; i < s.length; i++) {+ h ^= s.charCodeAt(i);+ h = Math.imul(h, 0x01000193) >>> 0;+ }+ return h.toString(16).padStart(8, "0");+};++/** 清单可序列化部分的规范化串——凡是会被复制进 ClipData 或决定 clip 指向哪张卡的信息都在内:+ * 时间 / label / props / durationProp / 分组后的卡 id(见 groupUnits)/ 音频表。+ * 组件本身只取显式 displayName(.name 会被 HMR / 压缩改写,纳入会让同一版成片在 dev / build 间+ * 被误判为新版本、白白丢掉用户改动);组件引用的变化靠卡 id 拓扑体现 */+const canonical = (m: WorkbenchManifest): string => {+ const cardOf = groupUnits(m);+ const unit = (u: ManifestUnit) =>+ [+ cardOf.get(u) ?? "", u.id, u.label ?? "", u.from, u.duration, u.durationProp ?? "",+ (u.component as { displayName?: string }).displayName ?? "", JSON.stringify(u.props ?? {}),+ ].join("|");+ const audio = (kind: string, a: ManifestAudio) => [kind, a.from, a.duration ?? "", a.src, a.volume, a.label ?? ""].join("|");+ return [+ m.name, m.fps, m.width, m.height, m.total, m.background ?? "", (m.order ?? []).join(","),+ ...UNIT_KINDS.flatMap((kind) => unitsOf(m, kind).map(unit)),+ ...(m.sfx ?? []).map((a) => audio("sfx", a)),+ ...(m.bgm ?? []).map((a) => audio("bgm", a)),+ ].join("\n");+};++/** 「哪一版成片」的稳定标识:存进 ProjectData.source,`?import=project` 用它判断存档是否过期 */+export const manifestKey = (m: WorkbenchManifest) =>+ `${m.name}@${m.total}f#${m.revision ?? fnv1a(canonical(m))}`;diff --git a/workbench/src/cards/media-cards.tsx b/workbench/src/cards/media-cards.tsxnew file mode 100644index 0000000..3aac417--- /dev/null+++ b/workbench/src/cards/media-cards.tsx@@ -0,0 +1,113 @@+import React from "react";+import { AbsoluteFill, Audio, Img, OffthreadVideo, staticFile } from "remotion";+import type { CardDef } from "./types";++// —— 媒体卡:视频 / 图片 / 音频文件直接上轨(成片工程 public/ 与仓库音效库都走它们)——+// 视频/音频卡 kind:"video"/"audio":裁入=trimBefore、变速=playbackRate(不能包 Freeze,会掐死原生播放)++const VideoClip: React.FC<{+ file?: string;+ fit?: string;+ muted?: boolean;+ volume?: number;+ inOffset?: number;+ speed?: number;+}> = ({ file = "", fit = "contain", muted = false, volume = 1, inOffset = 0, speed = 1 }) => {+ if (!file) return null;+ return (+ <AbsoluteFill style={{ background: "#000" }}>+ <OffthreadVideo+ src={staticFile(file)}+ trimBefore={Math.round(inOffset)}+ playbackRate={speed}+ muted={muted}+ volume={volume}+ style={{ width: "100%", height: "100%", objectFit: fit as React.CSSProperties["objectFit"] }}+ />+ </AbsoluteFill>+ );+};++export const videoClipCard: CardDef = {+ id: "video-clip",+ name: "视频素材",+ category: "素材",+ kind: "video",+ timing: "realtime",+ durationInFrames: 150,+ accent: "#30d158",+ component: VideoClip as React.ComponentType<Record<string, unknown>>,+ schema: [+ { type: "text", key: "file", label: "文件(public/ 下)", default: "" },+ {+ type: "select", key: "fit", label: "适配", default: "contain",+ options: [+ { value: "contain", label: "完整显示" },+ { value: "cover", label: "铺满裁切" },+ ],+ },+ { type: "boolean", key: "muted", label: "静音", default: false },+ { type: "slider", key: "volume", label: "音量", default: 1, min: 0, max: 1, step: 0.01 },+ ],+};++const ImageClip: React.FC<{ file?: string; fit?: string }> = ({ file = "", fit = "contain" }) => {+ if (!file) return null;+ return (+ <AbsoluteFill style={{ background: "#000" }}>+ <Img+ src={staticFile(file)}+ style={{ width: "100%", height: "100%", objectFit: fit as React.CSSProperties["objectFit"] }}+ />+ </AbsoluteFill>+ );+};++export const imageClipCard: CardDef = {+ id: "image-clip",+ name: "图片素材",+ category: "素材",+ timing: "realtime",+ durationInFrames: 90,+ accent: "#64d2ff",+ component: ImageClip as React.ComponentType<Record<string, unknown>>,+ schema: [+ { type: "text", key: "file", label: "文件(public/ 下)", default: "" },+ {+ type: "select", key: "fit", label: "适配", default: "contain",+ options: [+ { value: "contain", label: "完整显示" },+ { value: "cover", label: "铺满裁切" },+ ],+ },+ ],+};++/** 音频卡(BGM / 音效通用):裁入=trimBefore、变速=playbackRate,裁剪变速不哑音 */+const AudioClip: React.FC<{ file?: string; volume?: number; inOffset?: number; speed?: number }> =+ ({ file = "", volume = 1, inOffset = 0, speed = 1 }) => {+ if (!file) return null;+ return (+ <Audio+ src={staticFile(file)}+ volume={volume}+ trimBefore={Math.round(inOffset)}+ playbackRate={speed}+ />+ );+ };++export const audioClipCard: CardDef = {+ id: "audio-clip",+ name: "音频",+ category: "音频",+ kind: "audio",+ timing: "realtime",+ durationInFrames: 90,+ accent: "#ff9f0a",+ component: AudioClip as React.ComponentType<Record<string, unknown>>,+ schema: [+ { type: "text", key: "file", label: "文件(public/ 下)", default: "" },+ { type: "slider", key: "volume", label: "音量", default: 1, min: 0, max: 1, step: 0.01 },+ ],+};diff --git a/workbench/src/cards/projectCards.ts b/workbench/src/cards/projectCards.tsnew file mode 100644index 0000000..695985f--- /dev/null+++ b/workbench/src/cards/projectCards.ts@@ -0,0 +1,66 @@+import type React from "react";+import type { CardDef } from "./types";+import type { ManifestUnit, WorkbenchManifest } from "./manifest";+import { UNIT_KINDS, groupUnits, unitsOf } from "./manifest";+import { WORKBENCH as RAW } from "@proj/workbench";+export { unitsOf } from "./manifest";+export type { UnitKind } from "./manifest";++/** 已链接成片工程的清单(未链接 / 工程没写 workbench.ts 时为 null) */+export const MANIFEST: WorkbenchManifest | null = (RAW ?? null) as WorkbenchManifest | null;++const KIND_LABEL = { shot: "镜头", transition: "转场", caption: "字幕", overlay: "叠加层" } as const;+const KIND_ACCENT: Record<keyof typeof KIND_LABEL, string> = {+ shot: "#4c9aff",+ transition: "#f7c948",+ caption: "#34c759",+ overlay: "#8e8e93",+};++/** 成片单元卡 + 每个单元对应的卡 id(导入器用)。分组来自 manifest.groupUnits——+ * 与内容哈希同一份拓扑,保证「存档没过期」等价于「存档里的 cardId 仍指向同一组单元」 */+const build = (m: WorkbenchManifest | null) => {+ const cards: CardDef[] = [];+ const cardIdOfUnit = m ? groupUnits(m) : new Map<ManifestUnit, string>();+ if (!m) return { cards, cardIdOfUnit };+ for (const kind of UNIT_KINDS) {+ const byCard = new Map<string, ManifestUnit[]>();+ for (const u of unitsOf(m, kind)) {+ const id = cardIdOfUnit.get(u)!;+ const g = byCard.get(id);+ if (g) g.push(u);+ else byCard.set(id, [u]);+ }+ for (const [id, units] of byCard) {+ const first = units[0];+ const name =+ units.find((u) => u.cardName)?.cardName ??+ (units.length > 1 ? `${KIND_LABEL[kind]} · ${componentName(first.component)}` : (first.label ?? first.id));+ cards.push({+ id,+ name,+ category: "成片单元",+ durationInFrames: Math.max(2, first.duration),+ // 成片单元按成片自己的帧率编排(不是卡片库的 30fps)+ sourceFps: m.fps,+ width: m.width,+ height: m.height,+ component: first.component,+ schema: first.schema ?? [],+ durationProp: first.durationProp,+ accent: first.accent ?? KIND_ACCENT[kind],+ });+ }+ }+ return { cards, cardIdOfUnit };+};++const componentName = (c: React.ComponentType<Record<string, unknown>>) =>+ (c as { displayName?: string }).displayName ?? c.name ?? "组件";++const built = build(MANIFEST);+export const PROJECT_CARDS: CardDef[] = built.cards;+export const cardIdOfUnit = (u: ManifestUnit) => built.cardIdOfUnit.get(u)!;++/** 原成片整条合成(清单可选提供),Studio 注册为 ProjOriginal 供逐帧对照 */+export const ORIGINAL = MANIFEST?.original ?? null;diff --git a/workbench/src/cards/registry.ts b/workbench/src/cards/registry.tsnew file mode 100644index 0000000..e3ccc0a--- /dev/null+++ b/workbench/src/cards/registry.ts@@ -0,0 +1,39 @@+import type { CardDef } from "./types";+import { textBasicCard } from "./text-basic";+import { titleCardCard } from "./inkpress/title-card";+import { captionStripCard } from "./inkpress/caption-strip";+import { flashCutCard } from "./inkpress/flash-cut";+import { audioClipCard, imageClipCard, videoClipCard } from "./media-cards";+import { BG_CARDS } from "./background-cards";+import { DEMO_CARDS } from "./demoCards";+import { PROJECT_CARDS } from "./projectCards";++/** 注册表(同 id 先到先得):+ * - 工作台原生卡:通用文字 / Ink Press 字卡 / 解说条 / 闪白转场(全部 schema 参数化)+ * - 媒体卡:音频 / 视频 / 图片(成片工程 public/ 与仓库音效库都走它们)+ * - 背景卡+ * - 成片单元卡:已链接成片工程 workbench.ts 清单里的镜头 / 转场 / 字幕 / 叠加层+ * - 动效库:demos/ 158 张镜头卡的 demo 组件(gen-index 静态索引) */+const ALL: CardDef[] = [+ textBasicCard,+ titleCardCard,+ captionStripCard,+ flashCutCard,+ audioClipCard,+ videoClipCard,+ imageClipCard,+ ...BG_CARDS,+ ...PROJECT_CARDS,+ ...DEMO_CARDS,+];++const seen = new Set<string>();+export const CARD_LIST: CardDef[] = ALL.filter((c) => {+ if (seen.has(c.id)) return false;+ seen.add(c.id);+ return true;+});++export const CARDS: Record<string, CardDef> = Object.fromEntries(+ CARD_LIST.map((c) => [c.id, c]),+);diff --git a/workbench/src/cards/shared.tsx b/workbench/src/cards/shared.tsxnew file mode 100644index 0000000..4d3fee9--- /dev/null+++ b/workbench/src/cards/shared.tsx@@ -0,0 +1,61 @@+import React from "react";++/** 与 template/cards 同款的缓动 / tween helper(对照 GSAP 名字) */+export const clamp01 = (x: number) => Math.max(0, Math.min(1, x));+export const tw = (t: number, t0: number, d: number, ease: (x: number) => number) =>+ ease(clamp01((t - t0) / Math.max(1e-6, d)));+export const lerp = (a: number, b: number, p: number) => a + (b - a) * p;+export const linear = (x: number) => x;+export const power1Out = (x: number) => 1 - Math.pow(1 - x, 2);+export const power2Out = (x: number) => 1 - Math.pow(1 - x, 3);+export const power3Out = (x: number) => 1 - Math.pow(1 - x, 4);+export const power4Out = (x: number) => 1 - Math.pow(1 - x, 5);+export const power4In = (x: number) => Math.pow(x, 5);+export const power2InOut = (x: number) =>+ x < 0.5 ? 4 * x ** 3 : 1 - Math.pow(-2 * x + 2, 3) / 2;+export const power4InOut = (x: number) =>+ x < 0.5 ? 16 * Math.pow(x, 5) : 1 - Math.pow(-2 * x + 2, 5) / 2;++/** GSAP 色彩插值:RGB 逐通道线性;输入 #rrggbb */+export const hexToRgb = (hex: string): [number, number, number] => {+ const h = hex.replace("#", "");+ const v =+ h.length === 3+ ? h.split("").map((c) => parseInt(c + c, 16))+ : [0, 2, 4].map((i) => parseInt(h.slice(i, i + 2), 16));+ return [v[0] || 0, v[1] || 0, v[2] || 0];+};+export const mixHex = (a: string, b: string, p: number) => {+ const ca = hexToRgb(a);+ const cb = hexToRgb(b);+ return `rgb(${Math.round(lerp(ca[0], cb[0], p))},${Math.round(+ lerp(ca[1], cb[1], p),+ )},${Math.round(lerp(ca[2], cb[2], p))})`;+};++export const FONT_STACK =+ '"PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif';++/** 主持人占位剪影(演示语境素材,不属于动效本体) */+export const HostSilhouette: React.FC = () => (+ <div+ style={{+ position: "absolute",+ inset: 0,+ display: "flex",+ alignItems: "flex-end",+ justifyContent: "center",+ background: "#fff",+ }}+ >+ <div+ style={{+ width: "42%",+ height: "78%",+ background:+ "radial-gradient(ellipse 46% 26% at 50% 13%, #e3e3e6 60%, transparent 61%)," ++ "radial-gradient(ellipse 50% 62% at 50% 84%, #ececef 60%, transparent 61%)",+ }}+ />+ </div>+);diff --git a/workbench/src/cards/text-basic.tsx b/workbench/src/cards/text-basic.tsxnew file mode 100644index 0000000..3403a11--- /dev/null+++ b/workbench/src/cards/text-basic.tsx@@ -0,0 +1,166 @@+import React from "react";+import { AbsoluteFill, useCurrentFrame } from "remotion";+import type { CardDef } from "./types";+import { FONT_STACK, lerp, power2Out, power3Out, power4Out, tw } from "./shared";++// text-basic · 通用文字卡 —— 工作台原生卡:内容/字号/颜色/入场动画全部属性化+const FPS = 30;++interface Props {+ content?: string;+ fontSize?: number;+ color?: string;+ bg?: string;+ transparentBg?: boolean;+ fontWeight?: string;+ letterSpacing?: number;+ align?: string;+ anim?: string;+ delay?: number;+ animDur?: number;+}++const TextBasic: React.FC<Props> = ({+ content = "在这里输入文字",+ fontSize = 64,+ color = "#1d1d1f",+ bg = "#ffffff",+ transparentBg = false,+ fontWeight = "700",+ letterSpacing = 0,+ align = "center",+ anim = "fade-up",+ delay = 0.3,+ animDur = 0.4,+}) => {+ const t = useCurrentFrame() / FPS;+ const lines = String(content).split("\n");++ let opacity = 1;+ let transform = "";+ let clipPath: string | undefined;+ if (anim === "fade-up") {+ const p = tw(t, delay, animDur, power3Out);+ opacity = p;+ transform = `translateY(${lerp(24, 0, p)}px)`;+ } else if (anim === "slam") {+ const p = tw(t, delay, animDur, power4Out);+ opacity = p;+ transform = `scale(${lerp(1.12, 1, p)})`;+ } else if (anim === "mask") {+ const p = tw(t, delay, animDur, power3Out);+ clipPath = `inset(0 ${lerp(100, 0, p)}% 0 0)`;+ } else if (anim === "typewriter") {+ const total = String(content).length || 1;+ const shown = Math.floor(tw(t, delay, animDur, (x) => x) * total);+ const remain = String(content).slice(0, shown);+ const tLines = remain.split("\n");+ return (+ <AbsoluteFill+ style={{+ background: transparentBg ? "transparent" : bg,+ display: "flex",+ alignItems: "center",+ justifyContent:+ align === "left" ? "flex-start" : align === "right" ? "flex-end" : "center",+ padding: "0 72px",+ fontFamily: FONT_STACK,+ }}+ >+ <div+ style={{+ fontSize,+ fontWeight: Number(fontWeight),+ color,+ letterSpacing,+ lineHeight: 1.3,+ textAlign: align as React.CSSProperties["textAlign"],+ whiteSpace: "pre-wrap",+ }}+ >+ {tLines.join("\n")}+ </div>+ </AbsoluteFill>+ );+ } else if (anim === "fade") {+ opacity = tw(t, delay, animDur, power2Out);+ }++ return (+ <AbsoluteFill+ style={{+ background: transparentBg ? "transparent" : bg,+ display: "flex",+ alignItems: "center",+ justifyContent:+ align === "left" ? "flex-start" : align === "right" ? "flex-end" : "center",+ padding: "0 72px",+ fontFamily: FONT_STACK,+ }}+ >+ <div+ style={{+ fontSize,+ fontWeight: Number(fontWeight),+ color,+ letterSpacing,+ lineHeight: 1.3,+ opacity,+ transform,+ clipPath,+ textAlign: align as React.CSSProperties["textAlign"],+ whiteSpace: "pre-wrap",+ }}+ >+ {lines.join("\n")}+ </div>+ </AbsoluteFill>+ );+};++export const textBasicCard: CardDef = {+ id: "text-basic",+ name: "通用文字",+ category: "工作台",+ durationInFrames: 120,+ accent: "#0a84ff",+ component: TextBasic as React.ComponentType<Record<string, unknown>>,+ schema: [+ { type: "textarea", key: "content", label: "文字内容", default: "在这里输入文字" },+ { type: "slider", key: "fontSize", label: "字号", default: 64, min: 16, max: 180, step: 1, unit: "px" },+ { type: "color", key: "color", label: "文字颜色", default: "#1d1d1f" },+ {+ type: "select", key: "fontWeight", label: "字重", default: "700",+ options: [+ { value: "400", label: "常规 400" },+ { value: "600", label: "半粗 600" },+ { value: "700", label: "加粗 700" },+ { value: "900", label: "特粗 900" },+ ],+ },+ { type: "slider", key: "letterSpacing", label: "字距", default: 0, min: -4, max: 24, step: 0.5, unit: "px" },+ {+ type: "select", key: "align", label: "对齐", default: "center",+ options: [+ { value: "left", label: "左对齐" },+ { value: "center", label: "居中" },+ { value: "right", label: "右对齐" },+ ],+ },+ {+ type: "select", key: "anim", label: "入场动画", default: "fade-up",+ options: [+ { value: "fade-up", label: "淡入上浮" },+ { value: "slam", label: "砸出" },+ { value: "mask", label: "遮罩揭示" },+ { value: "typewriter", label: "打字机" },+ { value: "fade", label: "纯淡入" },+ { value: "none", label: "无" },+ ],+ },+ { type: "slider", key: "delay", label: "入场延迟", default: 0.3, min: 0, max: 3, step: 0.05, unit: "s" },+ { type: "slider", key: "animDur", label: "动画时长", default: 0.4, min: 0.1, max: 2, step: 0.05, unit: "s" },+ { type: "color", key: "bg", label: "背景色", default: "#ffffff" },+ { type: "boolean", key: "transparentBg", label: "透明背景", default: false },+ ],+};diff --git a/workbench/src/cards/types.ts b/workbench/src/cards/types.tsnew file mode 100644index 0000000..e91474f--- /dev/null+++ b/workbench/src/cards/types.ts@@ -0,0 +1,112 @@+import type React from "react";++/** 属性面板控件描述——卡片用它声明自己有哪些可调属性 */+export type PropField =+ | { type: "text"; key: string; label: string; default: string }+ | { type: "textarea"; key: string; label: string; default: string }+ | {+ type: "number";+ key: string;+ label: string;+ default: number;+ min?: number;+ max?: number;+ step?: number;+ /** 展示单位,如 "s" / "px" */+ unit?: string;+ }+ | {+ type: "slider";+ key: string;+ label: string;+ default: number;+ min: number;+ max: number;+ step: number;+ unit?: string;+ }+ | { type: "color"; key: string; label: string; default: string }+ | {+ type: "select";+ key: string;+ label: string;+ default: string;+ options: { value: string; label: string }[];+ }+ | { type: "boolean"; key: string; label: string; default: boolean };++export interface CardDef {+ id: string;+ /** 中文名(面板展示) */+ name: string;+ category: string;+ /** "audio"/"video":媒体卡——不包 TimeRemap(Freeze 会掐死原生播放),+ * 裁入/变速经 props 传入,由卡内 trimBefore/playbackRate 实现;+ * video 保留图层包裹(透明度/缩放/位移),audio 无视觉 */+ kind?: "visual" | "audio" | "video";+ /** 卡片原始时长(帧,按 sourceFps 计)——新 clip 的默认时长 */+ durationInFrames: number;+ /** 卡片编排帧率:durationInFrames 与卡内时序都按它计。缺省 CARD_FPS(demo / 原生卡);+ * 成片单元卡 = 成片清单的 fps */+ sourceFps?: number;+ /** 时间语义(缺省 "frames"):+ * - "frames":组件按 sourceFps 逐帧编排,工程 fps 不同时换算 clip 时长并反向变速,播放速度不变+ * - "realtime":媒体(视频 / 音频 / 静态图)按墙钟走,durationInFrames 只是 30fps 口径下的默认长度,+ * 换算时长、不变速(inOffset / speed 直接是 trimBefore / playbackRate) */+ timing?: "frames" | "realtime";+ /** 卡片设计画布(缺省 1920×1080;素材库/Studio 预览按它建合成) */+ width?: number;+ height?: number;+ component: React.ComponentType<Record<string, unknown>>;+ schema: PropField[];+ /** 素材库色签 */+ accent?: string;+ /** 把 clip 的源时长(帧)注入到该 prop——成片组件用 `duration`/`dur` 算出场淡出时,+ * clip 拉长/裁短后淡出跟着挪,而不是定格在原时长处 */+ durationProp?: string;+ /** 素材库预览视频(public/ 下路径;缺省用 Player 实时循环) */+ preview?: string;+ /** 一句话说明(素材库 tooltip) */+ summary?: string;+}++/** 卡片库(demo / 原生卡)统一按 30fps 编排:durationInFrames 与内部时序都以它为准。+ * 工程 fps 不同时,store.addClip 按 clipDefaultsFor 换算 clip 时长并反向变速,播放速度不变 */+export const CARD_FPS = 30;++/** 卡片编排帧率(缺省 CARD_FPS) */+export const cardFps = (card: CardDef) => card.sourceFps ?? CARD_FPS;++/** 卡片在工程 fps 下的源长度(帧):realtime 卡把 30fps 口径的默认长度换成工程帧数;+ * frames 卡的源帧就是它自己的帧(变速由 speed 表达) */+export const sourceLength = (card: CardDef, projectFps: number) =>+ card.timing === "realtime"+ ? Math.max(2, Math.round((card.durationInFrames * projectFps) / cardFps(card)))+ : card.durationInFrames;++/** clip.inOffset 的计量帧率:frames 卡的裁入点是**卡片源帧**(Freeze frame = inOffset + f×speed,+ * 时间轨左拖 / 分割也按 speed 换算成源帧),realtime 媒体卡的裁入点直接是 trimBefore(工程帧)。+ * 属性面板 / 时间轨徽标把它换成秒时必须除以这个帧率,否则卡片帧率≠工程帧率时显示与录入都会错 */+export const inOffsetFps = (card: CardDef | undefined, projectFps: number) =>+ !card || card.timing === "realtime" ? projectFps : cardFps(card);++/** 新 clip 的默认时长 / 变速:`sourceFrames`(缺省卡片原始时长)按卡片帧率计。+ * frames 卡:时长 × (工程fps / 卡片fps)、speed = 卡片fps / 工程fps,卡内逐帧动画的墙钟节奏不变+ * (注意 Freeze 不改 useVideoConfig().fps,卡内若用 spring({fps}) 等按秒计时,节奏仍会随工程 fps 偏移,+ * 属性面板会提示);realtime 卡:时长换算、speed 恒为 1 */+export const clipDefaultsFor = (card: CardDef, projectFps: number, sourceFrames = card.durationInFrames) => {+ const scale = projectFps / cardFps(card);+ const realtime = card.timing === "realtime";+ return {+ duration: Math.max(2, Math.round(sourceFrames * scale)),+ speed: realtime || scale === 1 ? 1 : 1 / scale,+ };+};++export const defaultsOf = (card: CardDef): Record<string, unknown> =>+ Object.fromEntries(card.schema.map((f) => [f.key, f.default]));++export const cardSize = (card: CardDef) => ({+ width: card.width ?? 1920,+ height: card.height ?? 1080,+});diff --git a/workbench/src/demoProject.ts b/workbench/src/demoProject.tsnew file mode 100644index 0000000..2210116--- /dev/null+++ b/workbench/src/demoProject.ts@@ -0,0 +1,39 @@+import type { ProjectData } from "./types";+import { uid } from "./types";++/** 初始演示工程(未接入成片时):纸底 + 两张 demo 镜头卡顺排 + 字卡 + 解说条。+ * 同时是 Remotion Studio「Main」合成的 defaultProps 来源——保持纯函数,别引 store。 */+export const demoProject = (): ProjectData => {+ const clip = (cardId: string, start: number, duration: number, props: Record<string, unknown> = {}, label?: string) => ({+ id: uid("clip"), cardId, start, duration, inOffset: 0, speed: 1, opacity: 1, scale: 1, x: 0, y: 0, props, label,+ });+ return {+ name: "未命名工程",+ fps: 30,+ width: 1920,+ height: 1080,+ background: "#f2eee6",+ tracks: [+ {+ id: uid("track"),+ name: "字幕",+ clips: [clip("inkpress-caption", 70, 60, { text: "COUNT UP · CONFETTI" })],+ },+ {+ id: uid("track"),+ name: "镜头",+ clips: [+ clip("inkpress-title-card", 0, 55, { text: "Every shot, *tuned* in one place." }, "字卡"),+ clip("demo:CounterConfetti", 55, 138, {}, "数字冲刺纸屑"),+ clip("demo:CrashImpactReal", 193, 120, {}, "急推撞停"),+ clip("inkpress-title-card", 313, 55, { text: "Drag a card. *Tweak* it. Export." }, "字卡"),+ ],+ },+ {+ id: uid("track"),+ name: "背景",+ clips: [clip("bg-paper", 0, 368)],+ },+ ],+ };+};diff --git a/workbench/src/dnd.ts b/workbench/src/dnd.tsnew file mode 100644index 0000000..6864cf0--- /dev/null+++ b/workbench/src/dnd.ts@@ -0,0 +1,26 @@+import type React from "react";++/** 素材库 → 时间轨 的拖拽负载协议 */+export const DRAG_MIME = "application/x-wb-item";++export type DragPayload = {+ cardId: string;+ props?: Record<string, unknown>;+ label?: string;+ duration?: number;+};++export const setDragPayload = (e: React.DragEvent, payload: DragPayload) => {+ e.dataTransfer.setData(DRAG_MIME, JSON.stringify(payload));+ e.dataTransfer.effectAllowed = "copy";+};++export const readDragPayload = (e: React.DragEvent): DragPayload | null => {+ const raw = e.dataTransfer.getData(DRAG_MIME);+ if (!raw) return null;+ try {+ return JSON.parse(raw) as DragPayload;+ } catch {+ return null;+ }+};diff --git a/workbench/src/main.tsx b/workbench/src/main.tsxnew file mode 100644index 0000000..371ede2--- /dev/null+++ b/workbench/src/main.tsx@@ -0,0 +1,7 @@+import ReactDOM from "react-dom/client";+import { App } from "./App";+import "./styles.css";++// 不包 <React.StrictMode>:工作台永远跑在 dev server 上(导出也走它),StrictMode 会把每个+// Remotion Player / 缩略图挂载两遍,首屏十几个 1080p 场景闪一轮,用户看到的就是"闪"。+ReactDOM.createRoot(document.getElementById("root")!).render(<App />);diff --git a/workbench/src/panels/Inspector.tsx b/workbench/src/panels/Inspector.tsxnew file mode 100644index 0000000..8eb35a6--- /dev/null+++ b/workbench/src/panels/Inspector.tsx@@ -0,0 +1,364 @@+import React, { useRef } from "react";+import type { PropField } from "../cards/types";+import { cardFps, inOffsetFps, sourceLength } from "../cards/types";+import { CARDS } from "../cards/registry";+import { findClip, useStore } from "../store";++/** 单个属性控件:按 schema 字段类型渲染 */+const PropControl: React.FC<{+ field: PropField;+ value: unknown;+ onChange: (v: unknown) => void;+ onBegin: () => void;+}> = ({ field, value, onChange, onBegin }) => {+ switch (field.type) {+ case "text":+ return (+ <input+ type="text"+ value={String(value ?? "")}+ onFocus={onBegin}+ onChange={(e) => onChange(e.target.value)}+ />+ );+ case "textarea":+ return (+ <textarea+ rows={3}+ value={String(value ?? "")}+ onFocus={onBegin}+ onChange={(e) => onChange(e.target.value)}+ />+ );+ case "number":+ return (+ <span className="ctl-row">+ <input+ type="number"+ value={Number(value ?? 0)}+ min={field.min}+ max={field.max}+ step={field.step ?? 1}+ onFocus={onBegin}+ onChange={(e) => onChange(Number(e.target.value))}+ />+ {field.unit && <span className="unit">{field.unit}</span>}+ </span>+ );+ case "slider":+ return (+ <span className="ctl-row">+ <input+ type="range"+ value={Number(value ?? field.default)}+ min={field.min}+ max={field.max}+ step={field.step}+ onPointerDown={onBegin}+ onChange={(e) => onChange(Number(e.target.value))}+ />+ <span className="slider-val">+ {Number(value ?? field.default)}+ {field.unit ?? ""}+ </span>+ </span>+ );+ case "color":+ return (+ <span className="ctl-row">+ <input+ type="color"+ value={String(value ?? field.default)}+ onFocus={onBegin}+ onChange={(e) => onChange(e.target.value)}+ />+ <input+ type="text"+ className="color-text"+ value={String(value ?? field.default)}+ onFocus={onBegin}+ onChange={(e) => onChange(e.target.value)}+ />+ </span>+ );+ case "select":+ return (+ <select+ value={String(value ?? field.default)}+ onFocus={onBegin}+ onChange={(e) => onChange(e.target.value)}+ >+ {field.options.map((o) => (+ <option key={o.value} value={o.value}>+ {o.label}+ </option>+ ))}+ </select>+ );+ case "boolean":+ return (+ <input+ type="checkbox"+ checked={Boolean(value ?? field.default)}+ onChange={(e) => {+ onBegin();+ onChange(e.target.checked);+ }}+ />+ );+ }+};++const Row: React.FC<{ label: string; children: React.ReactNode }> = ({ label, children }) => (+ <label className="prop-row">+ <span className="prop-label">{label}</span>+ <span className="prop-ctl">{children}</span>+ </label>+);++export const Inspector: React.FC = () => {+ const project = useStore((s) => s.project);+ const selectedClipId = useStore((s) => s.selectedClipId);+ const updateClip = useStore((s) => s.updateClip);+ const updateClipProps = useStore((s) => s.updateClipProps);+ const removeClip = useStore((s) => s.removeClip);+ const commit = useStore((s) => s.commit);++ const hit = selectedClipId ? findClip(project, selectedClipId) : null;+ // 连续编辑合并为一步撤销:间隔 >800ms 才压新快照+ const lastBeginRef = useRef(0);++ if (!hit) {+ return (+ <div className="inspector">+ <div className="panel-title">属性</div>+ <div className="inspector-empty dim">+ 选中时间轨上的片段后,+ <br />+ 在这里调整它的文字、颜色、+ <br />+ 动画节奏、变速与图层属性。+ <br />+ <br />+ 快捷键:空格 播放 · S 分割+ <br />+ Delete 删除 · ⌘Z 撤销 · ⌘D 复制+ </div>+ </div>+ );+ }++ const { track, clip } = hit;+ const card = CARDS[clip.cardId];+ const fps = project.fps;+ // 卡片编排帧率 ≠ 工程帧率(只有逐帧编排的卡需要提示;媒体卡按墙钟走无此问题)+ const srcFps = card ? cardFps(card) : fps;+ const fpsMismatch = !!card && card.timing !== "realtime" && srcFps !== fps;+ // 裁入点按源帧计(见 inOffsetFps),秒数换算不能一律用工程 fps+ const inFps = inOffsetFps(card, fps);+ // 每次编辑手势开始压一次撤销快照;短时间内的连续输入合并为一步+ const begin = () => {+ const now = Date.now();+ if (now - lastBeginRef.current > 800) commit();+ lastBeginRef.current = now;+ };++ return (+ <div className="inspector">+ <div className="panel-title">+ {card?.name ?? clip.cardId}+ <span className="dim" style={{ marginLeft: 8, fontWeight: 400 }}>+ {track.name}+ </span>+ </div>++ <div className="inspector-scroll">+ {card && card.schema.length > 0 && (+ <section>+ <div className="sec-title">内容与样式</div>+ {card.schema.map((field) => (+ <Row key={field.key} label={field.label}>+ <PropControl+ field={field}+ value={clip.props[field.key] ?? field.default}+ onChange={(v) => updateClipProps(clip.id, { [field.key]: v })}+ onBegin={begin}+ />+ </Row>+ ))}+ </section>+ )}++ <section>+ <div className="sec-title">时间与变速</div>+ <Row label="起点">+ <span className="ctl-row">+ <input+ type="number"+ value={Number((clip.start / fps).toFixed(2))}+ min={0}+ step={0.1}+ onFocus={begin}+ onChange={(e) =>+ updateClip(clip.id, { start: Math.max(0, Math.round(Number(e.target.value) * fps)) })+ }+ />+ <span className="unit">s</span>+ </span>+ </Row>+ <Row label="时长">+ <span className="ctl-row">+ <input+ type="number"+ value={Number((clip.duration / fps).toFixed(2))}+ min={2 / fps}+ step={0.1}+ onFocus={begin}+ onChange={(e) =>+ updateClip(clip.id, {+ duration: Math.max(2, Math.round(Number(e.target.value) * fps)),+ })+ }+ />+ <span className="unit">s</span>+ </span>+ </Row>+ <Row label="变速">+ <span className="ctl-row">+ <input+ type="range"+ min={0.25}+ max={4}+ step={0.05}+ value={clip.speed}+ onPointerDown={begin}+ onChange={(e) => updateClip(clip.id, { speed: Number(e.target.value) })}+ />+ <span className="slider-val">{clip.speed}×</span>+ </span>+ </Row>+ <Row label="">+ <span className="ctl-row preset-row">+ {[0.5, 1, 1.5, 2].map((v) => (+ <button+ key={v}+ className={`mini preset${clip.speed === v ? " on" : ""}`}+ onClick={() => {+ begin();+ updateClip(clip.id, { speed: v });+ }}+ >+ {v}×+ </button>+ ))}+ </span>+ </Row>+ <Row label="裁入点">+ <span className="ctl-row">+ <input+ type="number"+ value={Number((clip.inOffset / inFps).toFixed(2))}+ min={0}+ step={0.1}+ onFocus={begin}+ onChange={(e) =>+ updateClip(clip.id, {+ inOffset: Math.max(0, Math.round(Number(e.target.value) * inFps)),+ })+ }+ />+ <span className="unit">s</span>+ </span>+ </Row>+ {card && (+ <Row label="">+ <button+ className="mini"+ title="时长恢复为卡片原始时长(按当前变速换算)"+ onClick={() => {+ begin();+ updateClip(clip.id, {+ duration: Math.max(+ 2,+ Math.round((sourceLength(card, fps) - clip.inOffset) / clip.speed),+ ),+ });+ }}+ >+ ↺ 恢复原始时长+ </button>+ </Row>+ )}+ {fpsMismatch && (+ <div className="dim" style={{ fontSize: 11, lineHeight: 1.5, padding: "4px 0 2px" }}>+ 此卡按 {srcFps}fps 编排,工程 {fps}fps:上轨时已换算时长并以 {(srcFps / fps).toFixed(2)}× 变速保持节奏。+ 卡内若按 useVideoConfig().fps 计时(spring 等),节奏仍会偏 {(fps / srcFps).toFixed(2)}×。+ </div>+ )}+ </section>++ <section>+ <div className="sec-title">图层</div>+ <Row label="不透明度">+ <span className="ctl-row">+ <input+ type="range"+ min={0}+ max={1}+ step={0.01}+ value={clip.opacity}+ onPointerDown={begin}+ onChange={(e) => updateClip(clip.id, { opacity: Number(e.target.value) })}+ />+ <span className="slider-val">{Math.round(clip.opacity * 100)}%</span>+ </span>+ </Row>+ <Row label="缩放">+ <span className="ctl-row">+ <input+ type="range"+ min={0.2}+ max={3}+ step={0.01}+ value={clip.scale}+ onPointerDown={begin}+ onChange={(e) => updateClip(clip.id, { scale: Number(e.target.value) })}+ />+ <span className="slider-val">{clip.scale.toFixed(2)}</span>+ </span>+ </Row>+ <Row label="位移 X">+ <span className="ctl-row">+ <input+ type="number"+ value={clip.x}+ step={2}+ onFocus={begin}+ onChange={(e) => updateClip(clip.id, { x: Number(e.target.value) })}+ />+ <span className="unit">px</span>+ </span>+ </Row>+ <Row label="位移 Y">+ <span className="ctl-row">+ <input+ type="number"+ value={clip.y}+ step={2}+ onFocus={begin}+ onChange={(e) => updateClip(clip.id, { y: Number(e.target.value) })}+ />+ <span className="unit">px</span>+ </span>+ </Row>+ </section>++ <section>+ <button className="btn danger" onClick={() => removeClip(clip.id)}>+ 删除片段+ </button>+ </section>+ </div>+ </div>+ );+};diff --git a/workbench/src/panels/LibraryPanel.tsx b/workbench/src/panels/LibraryPanel.tsxnew file mode 100644index 0000000..b618c01--- /dev/null+++ b/workbench/src/panels/LibraryPanel.tsx@@ -0,0 +1,393 @@+import React, { useEffect, useRef, useState } from "react";+import { Player, type PlayerRef } from "@remotion/player";+import type { CardDef } from "../cards/types";+import { cardFps, cardSize, defaultsOf } from "../cards/types";+import { CARD_LIST } from "../cards/registry";+import { DEMO_CATEGORIES } from "../cards/demoCards";+import { MANIFEST } from "../cards/projectCards";+import { importProject, useStore } from "../store";+import { sfxUsage } from "../projectImport";+import { BGM_LIB, MEDIA_ITEMS, SFX_LIB } from "../mediaManifest";+import { PROJ_DIR, PROJ_HAS_MANIFEST, PROJ_LINKED } from "../projMeta";+import { setDragPayload } from "../dnd";++const TABS = [+ { id: "media", label: "素材" },+ { id: "cards", label: "动效库" },+ { id: "sfx", label: "音效" },+] as const;+type TabId = (typeof TABS)[number]["id"];++/** 不进动效库的分类:成片单元只在素材 tab;媒体走素材 / 音效 tab;预设幕底卡不进素材库+ * (已有工程里的幕底 clip 仍由注册表渲染) */+const NON_MOTION_CATS = new Set(["成片单元", "音频", "素材", "背景"]);++/** 进入视口才挂载重内容(预览视频 / 实时 Player) */+const useVisible = () => {+ const ref = useRef<HTMLDivElement>(null);+ const [visible, setVisible] = useState(false);+ useEffect(() => {+ const el = ref.current;+ if (!el) return;+ const io = new IntersectionObserver(([en]) => setVisible(en.isIntersecting), {+ rootMargin: "100px",+ });+ io.observe(el);+ return () => io.disconnect();+ }, []);+ return { ref, visible };+};++/** 进入视口才加载并循环播放的预览视频 */+const LazyLoopVideo: React.FC<{ src: string }> = ({ src }) => {+ const ref = useRef<HTMLVideoElement>(null);+ const [visible, setVisible] = useState(false);+ const [loaded, setLoaded] = useState(false);+ useEffect(() => {+ const el = ref.current;+ if (!el) return;+ const io = new IntersectionObserver(([en]) => setVisible(en.isIntersecting), {+ rootMargin: "100px",+ });+ io.observe(el);+ return () => io.disconnect();+ }, []);+ useEffect(() => {+ if (visible) setLoaded(true);+ }, [visible]);+ useEffect(() => {+ const el = ref.current;+ if (!el || !loaded) return;+ if (visible) el.play().catch(() => {});+ else el.pause();+ }, [visible, loaded]);+ return (+ <video+ ref={ref}+ className="lib-thumb"+ src={loaded ? src : undefined}+ muted+ loop+ playsInline+ autoPlay+ preload="none"+ />+ );+};++/** 没有预渲染视频的卡:可见时用实时 Player 当缩略图——**静止在 45% 处的定妆帧**,鼠标悬停才循环播放。+ * 曾经默认自动循环:十几个 1080p 场景同时跑、闪白转场卡每 0.3s 白一次、字卡每 1.8s 淡出重来,+ * 首屏像在闪光灯下;大图反复解码还刷出一串 EncodingError。 */+const LazyCardLoop: React.FC<{ card: CardDef }> = ({ card }) => {+ const { ref, visible } = useVisible();+ const { width, height } = cardSize(card);+ const player = useRef<PlayerRef>(null);+ const [hover, setHover] = useState(false);+ const total = Math.max(2, card.durationInFrames);+ const poster = Math.min(total - 1, Math.round(total * 0.45));+ // .lib-thumb 本身 pointer-events:none(让拖拽落到 .lib-cell 上),悬停监听挂到所属 cell+ useEffect(() => {+ const cell = ref.current?.closest(".lib-cell");+ if (!cell) return;+ const on = () => setHover(true);+ const off = () => setHover(false);+ cell.addEventListener("pointerenter", on);+ cell.addEventListener("pointerleave", off);+ return () => {+ cell.removeEventListener("pointerenter", on);+ cell.removeEventListener("pointerleave", off);+ };+ }, [ref]);+ useEffect(() => {+ const p = player.current;+ if (!p) return;+ if (hover) {+ p.seekTo(0);+ p.play();+ } else {+ p.pause();+ p.seekTo(poster);+ }+ }, [hover, poster, visible]);+ return (+ <div ref={ref} className="lib-thumb" style={{ position: "relative" }}>+ {visible && (+ <Player+ ref={player}+ component={card.component}+ inputProps={defaultsOf(card)}+ durationInFrames={total}+ compositionWidth={width}+ compositionHeight={height}+ fps={cardFps(card)}+ initialFrame={poster}+ loop+ controls={false}+ initiallyMuted+ numberOfSharedAudioTags={0}+ style={{ width: "100%", height: "100%", pointerEvents: "none" }}+ acknowledgeRemotionLicense+ />+ )}+ </div>+ );+};++const groupBy = <T,>(items: T[], key: (t: T) => string) => {+ const m = new Map<string, T[]>();+ for (const it of items) {+ const k = key(it);+ const g = m.get(k);+ if (g) g.push(it);+ else m.set(k, [it]);+ }+ return [...m.entries()];+};++export const LibraryPanel: React.FC = () => {+ const setPreview = useStore((s) => s.setPreview);+ const [tab, setTab] = useState<TabId>(PROJ_LINKED ? "media" : "cards");+ // 折叠分组默认收起,点击标题展开+ const [openCats, setOpenCats] = useState<Set<string>>(new Set());+ const toggleCat = (cat: string) =>+ setOpenCats((prev) => {+ const next = new Set(prev);+ if (next.has(cat)) next.delete(cat);+ else next.add(cat);+ return next;+ });++ /** 网格单元通用外壳:点击=中屏预览,拖拽=上轨 */+ const Cell: React.FC<{+ name: string;+ meta?: string;+ title?: string;+ onClick: () => void;+ payload: Parameters<typeof setDragPayload>[1];+ children: React.ReactNode;+ }> = ({ name, meta, title, onClick, payload, children }) => (+ <div+ className="lib-cell"+ draggable+ onDragStart={(e) => setDragPayload(e, payload)}+ onClick={onClick}+ title={`${name}${title ? `\n${title}` : ""}\n点击预览,拖到时间轨添加`}+ >+ {children}+ <div className="lib-cell-name">{name}</div>+ {meta && <div className="lib-cell-meta dim">{meta}</div>}+ </div>+ );++ /** 动效卡网格单元 */+ const CardCell: React.FC<{ card: CardDef }> = ({ card }) => (+ <Cell+ name={card.name}+ meta={`${(card.durationInFrames / cardFps(card)).toFixed(1)}s${card.schema.length > 0 ? " · 可调参" : ""}`}+ title={card.summary}+ onClick={() => setPreview({ kind: "card", cardId: card.id })}+ payload={{ cardId: card.id, label: card.name }}+ >+ {card.preview ? <LazyLoopVideo src={`/${card.preview}`} /> : <LazyCardLoop card={card} />}+ </Cell>+ );++ /** 音效等无画面素材的列表行 */+ const Row: React.FC<{+ dot: string;+ name: string;+ meta?: string;+ onClick: () => void;+ payload: Parameters<typeof setDragPayload>[1];+ }> = ({ dot, name, meta, onClick, payload }) => (+ <div+ className="lib-card"+ draggable+ onDragStart={(e) => setDragPayload(e, payload)}+ onClick={onClick}+ title={`${name} · 点击预览,拖到时间轨添加`}+ >+ <span className="lib-dot" style={{ background: dot }} />+ <span className="lib-name">{name}</span>+ {meta && <span className="lib-dur">{meta}</span>}+ </div>+ );++ /** 可折叠分组标题 */+ const Group: React.FC<{ id: string; label: string; count: number; children: React.ReactNode; defaultOpen?: boolean }> =+ ({ id, label, count, children, defaultOpen }) => {+ const open = defaultOpen ? !openCats.has(id) : openCats.has(id);+ return (+ <div>+ <button className="lib-cat-toggle" onClick={() => toggleCat(id)}>+ <span className={`caret${open ? " open" : ""}`}>▸</span>+ {label}+ <span className="dim" style={{ marginLeft: "auto" }}>{count}</span>+ </button>+ {open && children}+ </div>+ );+ };++ const motionCards = CARD_LIST.filter((c) => !NON_MOTION_CATS.has(c.category));+ const projectCards = CARD_LIST.filter((c) => c.category === "成片单元");+ const usage = sfxUsage(MANIFEST);+ const projectAudio = MEDIA_ITEMS.filter((m) => m.kind === "audio");+ const projectVisual = MEDIA_ITEMS.filter((m) => m.kind !== "audio");++ // 动效库:工作台原生卡靳前,然后按画廊分类+ const motionGroups = ["工作台", ...DEMO_CATEGORIES]+ .map((cat) => ({ cat, cards: motionCards.filter((c) => c.category === cat) }))+ .filter((g) => g.cards.length > 0);++ const audioPayload = (file: string, label: string, volume: number, duration: number) =>+ ({ cardId: "audio-clip", props: { file, volume }, label, duration }) as const;++ return (+ <div className="library">+ <div className="lib-tabs">+ {TABS.map((t) => (+ <button+ key={t.id}+ className={`lib-tab${tab === t.id ? " on" : ""}`}+ onClick={() => setTab(t.id)}+ >+ {t.label}+ </button>+ ))}+ </div>++ <div className="library-list">+ {tab === "media" && (+ <>+ {MANIFEST ? (+ <button+ className="btn wide"+ title={`把成片按 src/workbench.ts 清单拆成镜头 / 转场 / 字幕 / 叠加层 / 音效 / 音乐的多轨工程(可撤销)\n${PROJ_DIR}`}+ onClick={() => importProject()}+ >+ ⇣ 导入成片:{MANIFEST.name}+ </button>+ ) : (+ <div className="lib-cat" style={{ whiteSpace: "normal", lineHeight: 1.5 }}>+ {PROJ_LINKED+ ? `已链接 ${PROJ_DIR},但工程没有 src/workbench.ts 清单,无法拆解导入(写法见 references/workbench.md)`+ : "未接入成片工程。在 workbench/ 目录运行:node scripts/open.mjs <成片工程目录>"}+ </div>+ )}++ {projectCards.length > 0 && (+ <>+ <div className="lib-cat">成片单元(可再加一份)</div>+ <div className="lib-grid">+ {projectCards.map((card) => (+ <Cell+ key={card.id}+ name={card.name}+ meta={`${(card.durationInFrames / cardFps(card)).toFixed(1)}s${card.schema.length ? " · 可调参" : ""}`}+ onClick={() => setPreview({ kind: "card", cardId: card.id })}+ payload={{ cardId: card.id, label: card.name }}+ >+ <LazyCardLoop card={card} />+ </Cell>+ ))}+ </div>+ </>+ )}++ {projectVisual.length > 0 && <div className="lib-cat">素材文件(工程 public/)</div>}+ {groupBy(projectVisual, (m) => m.dir || "/").map(([dir, items]) => (+ <Group key={dir} id={`media:${dir}`} label={dir} count={items.length} defaultOpen={items.length <= 12}>+ <div className="lib-grid">+ {items.map((m) => (+ <Cell+ key={m.file}+ name={m.name}+ meta={m.kind === "video" ? "视频" : "图片"}+ onClick={() => setPreview({ kind: m.kind, file: m.file, label: m.name })}+ payload={+ m.kind === "video"+ ? { cardId: "video-clip", props: { file: m.file }, label: m.name, duration: 150 }+ : { cardId: "image-clip", props: { file: m.file }, label: m.name, duration: 90 }+ }+ >+ {m.kind === "video" ? (+ <LazyLoopVideo src={`/${m.file}`} />+ ) : (+ <img className="lib-thumb" src={`/${m.file}`} />+ )}+ </Cell>+ ))}+ </div>+ </Group>+ ))}+ </>+ )}++ {tab === "cards" &&+ motionGroups.map((g) => (+ <Group key={g.cat} id={`cat:${g.cat}`} label={g.cat} count={g.cards.length} defaultOpen={g.cat === "工作台"}>+ <div className="lib-grid">+ {g.cards.map((card) => (+ <CardCell key={card.id} card={card} />+ ))}+ </div>+ </Group>+ ))}++ {tab === "sfx" && (+ <>+ {projectAudio.length > 0 && (+ <Group id="sfx:proj" label="本片音频(工程 public/)" count={projectAudio.length} defaultOpen>+ {projectAudio.map((m) => (+ <Row+ key={m.file}+ dot="#ff9f0a"+ name={m.name}+ meta={usage.has(m.file) ? `片中×${usage.get(m.file)}` : "未用"}+ onClick={() => setPreview({ kind: "audio", file: m.file, label: m.name })}+ payload={audioPayload(m.file, m.name.replace(/\.[^.]+$/, ""), 0.4, 90)}+ />+ ))}+ </Group>+ )}+ {BGM_LIB.length > 0 && (+ <Group id="sfx:bgm" label="BGM 备选(assets/audio/bgm)" count={BGM_LIB.length}>+ {BGM_LIB.map((b) => (+ <Row+ key={b.file}+ dot="#bf5af2"+ name={b.name}+ onClick={() => setPreview({ kind: "audio", file: b.file, label: b.name })}+ payload={audioPayload(b.file, b.name, 0.35, 900)}+ />+ ))}+ </Group>+ )}+ {groupBy(SFX_LIB, (s) => s.cat).map(([cat, items]) => (+ <Group key={cat} id={`sfx:${cat}`} label={`音效库 · ${cat}`} count={items.length}>+ {items.map((s) => (+ <Row+ key={s.file}+ dot="#ff9f0a"+ name={s.name}+ onClick={() => setPreview({ kind: "audio", file: s.file, label: s.name })}+ payload={audioPayload(s.file, s.name, 0.4, 90)}+ />+ ))}+ </Group>+ ))}+ </>+ )}+ </div>++ <div className="lib-foot dim">+ 动效 {motionCards.length} 卡({motionCards.filter((c) => c.schema.length > 0).length} 张可调参)+ · 音效库 {SFX_LIB.length}+ {PROJ_LINKED && PROJ_HAS_MANIFEST ? ` · 成片单元 ${projectCards.length}` : ""}+ <br />+ 点击预览 · 拖拽到时间轨添加+ </div>+ </div>+ );+};diff --git a/workbench/src/playerRef.ts b/workbench/src/playerRef.tsnew file mode 100644index 0000000..bb8ba7e--- /dev/null+++ b/workbench/src/playerRef.ts@@ -0,0 +1,16 @@+import { createRef } from "react";+import type { PlayerRef } from "@remotion/player";++/** 全局共享的 Player 句柄:时间轴 seek / 快捷键播放控制都走这里 */+export const playerRef = createRef<PlayerRef>();++export const seekTo = (frame: number) => {+ playerRef.current?.seekTo(Math.max(0, Math.round(frame)));+};++export const togglePlay = () => {+ const p = playerRef.current;+ if (!p) return;+ if (p.isPlaying()) p.pause();+ else p.play();+};diff --git a/workbench/src/preview/Composition.tsx b/workbench/src/preview/Composition.tsxnew file mode 100644index 0000000..5ac5513--- /dev/null+++ b/workbench/src/preview/Composition.tsx@@ -0,0 +1,69 @@+import React from "react";+import { AbsoluteFill, Freeze, Sequence, useCurrentFrame } from "remotion";+import type { ProjectData } from "../types";+import { CARDS } from "../cards/registry";+import { defaultsOf } from "../cards/types";++/** 时间重映射:clip 本地帧 → 卡片源帧(inOffset + f × speed)。+ * 卡片全部是 frame 的纯函数(tween 均 clamp),因此变速/裁入/超时长定格都安全。+ * 不变速且不裁入时直通不包 Freeze——含 Audio/Video 的卡需要原生播放(Freeze 会掐掉声音)。 */+const TimeRemap: React.FC<{+ inOffset: number;+ speed: number;+ children: React.ReactNode;+}> = ({ inOffset, speed, children }) => {+ const frame = useCurrentFrame();+ if (speed === 1 && inOffset === 0) return <>{children}</>;+ return <Freeze frame={Math.max(0, inOffset + frame * speed)}>{children}</Freeze>;+};++export const MainComposition: React.FC<{ project: ProjectData }> = ({ project }) => {+ // UI 中 tracks[0] 是最上层轨 → 最后渲染(覆盖在上)+ const ordered = [...project.tracks].reverse();+ return (+ <AbsoluteFill style={{ background: project.background ?? "#0e0e10" }}>+ {ordered.map(+ (track) =>+ !track.hidden &&+ track.clips.map((clip) => {+ const card = CARDS[clip.cardId];+ if (!card) return null;+ const Comp = card.component;+ const duration = Math.max(1, Math.round(clip.duration));+ const props: Record<string, unknown> = { ...defaultsOf(card), ...clip.props };+ // 成片组件按 `duration`/`dur` 算出场淡出:注入 clip 的源时长,拉长/裁短后淡出跟着挪+ if (card.durationProp)+ props[card.durationProp] = Math.max(1, Math.round(clip.inOffset + duration * clip.speed));+ // 音频卡:裁入/变速交给卡内 <Audio trimBefore playbackRate>,+ // 不能包 Freeze(会掐死原生播放),也无需图层包裹+ if (card.kind === "audio") {+ return (+ <Sequence key={clip.id} from={clip.start} durationInFrames={duration}>+ <Comp {...props} inOffset={clip.inOffset} speed={clip.speed} />+ </Sequence>+ );+ }+ return (+ <Sequence key={clip.id} from={clip.start} durationInFrames={duration}>+ <AbsoluteFill+ style={{+ opacity: clip.opacity,+ transform: `translate(${clip.x}px, ${clip.y}px) scale(${clip.scale})`,+ }}+ >+ {card.kind === "video" ? (+ // 视频卡:同音频卡走原生播放通道,保留图层包裹+ <Comp {...props} inOffset={clip.inOffset} speed={clip.speed} />+ ) : (+ <TimeRemap inOffset={clip.inOffset} speed={clip.speed}>+ <Comp {...props} />+ </TimeRemap>+ )}+ </AbsoluteFill>+ </Sequence>+ );+ }),+ )}+ </AbsoluteFill>+ );+};diff --git a/workbench/src/preview/PreviewPanel.tsx b/workbench/src/preview/PreviewPanel.tsxnew file mode 100644index 0000000..acbfbf8--- /dev/null+++ b/workbench/src/preview/PreviewPanel.tsx@@ -0,0 +1,164 @@+import React, { useEffect, useMemo, useState } from "react";+import { Player } from "@remotion/player";+import { MainComposition } from "./Composition";+import { playerRef, seekTo, togglePlay } from "../playerRef";+import { projectDuration, useStore } from "../store";+import type { PreviewItem } from "../store";+import { fmtFrames } from "../time";+import { CARDS } from "../cards/registry";+import { cardFps, cardSize, defaultsOf } from "../cards/types";++/** 素材库点击预览:占据画面区,循环播放;主工程 Player 保持挂载(display:none) */+const ItemPreview: React.FC<{ item: NonNullable<PreviewItem>; onClose: () => void }> = ({+ item,+ onClose,+}) => {+ let body: React.ReactNode = null;+ let title = "";+ if (item.kind === "card") {+ const card = CARDS[item.cardId];+ title = card?.name ?? item.cardId;+ if (card && card.kind !== "audio") {+ const { width, height } = cardSize(card);+ body = (+ <Player+ component={card.component}+ inputProps={defaultsOf(card)}+ durationInFrames={Math.max(2, card.durationInFrames)}+ compositionWidth={width}+ compositionHeight={height}+ fps={cardFps(card)}+ autoPlay+ loop+ controls={false}+ clickToPlay+ numberOfSharedAudioTags={32}+ style={{ width: "100%", height: "100%" }}+ acknowledgeRemotionLicense+ />+ );+ } else {+ body = <div className="preview-audio">🔊 音频卡</div>;+ }+ } else {+ title = item.label;+ if (item.kind === "video")+ body = <video className="preview-media" src={`/${item.file}`} controls autoPlay loop />;+ else if (item.kind === "image")+ body = <img className="preview-media" src={`/${item.file}`} />;+ else+ body = (+ <div className="preview-audio">+ 🔊 {item.label}+ <audio src={`/${item.file}`} controls autoPlay />+ </div>+ );+ }+ return (+ <>+ <div className="preview-stage">{body}</div>+ <div className="transport">+ <span className="preview-tag">素材预览</span>+ <b>{title}</b>+ <span className="dim">拖拽素材到时间轨即可添加</span>+ <button className="btn" style={{ marginLeft: "auto" }} onClick={onClose}>+ ✕ 返回工程+ </button>+ </div>+ </>+ );+};++/** 走带控制:唯一订阅 playhead 的预览端组件——播放中每帧只重渲染它,+ * 不能让 frameupdate 波及包含 <Player> 的父组件。 */+const Transport: React.FC<{+ duration: number;+ fps: number;+ loop: boolean;+ setLoop: (b: boolean) => void;+ sizeLabel: string;+}> = ({ duration, fps, loop, setLoop, sizeLabel }) => {+ const playhead = useStore((s) => s.playhead);+ const playing = useStore((s) => s.playing);+ const setPlayhead = useStore((s) => s.setPlayhead);+ const setPlaying = useStore((s) => s.setPlaying);++ useEffect(() => {+ const p = playerRef.current;+ if (!p) return;+ const onFrame = (e: { detail: { frame: number } }) => setPlayhead(e.detail.frame);+ const onPlay = () => setPlaying(true);+ const onPause = () => setPlaying(false);+ p.addEventListener("frameupdate", onFrame);+ p.addEventListener("play", onPlay);+ p.addEventListener("pause", onPause);+ return () => {+ p.removeEventListener("frameupdate", onFrame);+ p.removeEventListener("play", onPlay);+ p.removeEventListener("pause", onPause);+ };+ }, [setPlayhead, setPlaying]);++ return (+ <div className="transport">+ <button className="btn" title="回到开头" onClick={() => seekTo(0)}>+ ⏮+ </button>+ <button className="btn btn-play" title="播放/暂停(空格)" onClick={togglePlay}>+ {playing ? "⏸" : "▶"}+ </button>+ <span className="timecode">+ {fmtFrames(playhead, fps)} <span className="dim">/ {fmtFrames(duration, fps)}</span>+ </span>+ <label className="loop-toggle">+ <input type="checkbox" checked={loop} onChange={(e) => setLoop(e.target.checked)} />+ 循环+ </label>+ <span className="dim" style={{ marginLeft: "auto" }}>+ {sizeLabel}+ </span>+ </div>+ );+};++export const PreviewPanel: React.FC = () => {+ const project = useStore((s) => s.project);+ const previewItem = useStore((s) => s.previewItem);+ const setPreview = useStore((s) => s.setPreview);+ const [loop, setLoop] = useState(true);++ const duration = projectDuration(project);+ const inputProps = useMemo(() => ({ project }), [project]);++ return (+ <div className="preview-panel">+ {previewItem && <ItemPreview item={previewItem} onClose={() => setPreview(null)} />}+ <div className="preview-stage" style={previewItem ? { display: "none" } : undefined}>+ <Player+ ref={playerRef}+ component={MainComposition}+ inputProps={inputProps}+ durationInFrames={duration}+ compositionWidth={project.width}+ compositionHeight={project.height}+ fps={project.fps}+ loop={loop}+ controls={false}+ clickToPlay+ numberOfSharedAudioTags={32}+ style={{ width: "100%", height: "100%" }}+ acknowledgeRemotionLicense+ />+ </div>+ {!previewItem && (+ <Transport+ duration={duration}+ fps={project.fps}+ loop={loop}+ setLoop={setLoop}+ sizeLabel={`${project.width}×${project.height} · ${project.fps}fps`}+ />+ )}+ </div>+ );+};diff --git a/workbench/src/proj.d.ts b/workbench/src/proj.d.tsnew file mode 100644index 0000000..b81b6c3--- /dev/null+++ b/workbench/src/proj.d.ts@@ -0,0 +1,7 @@+/** 外部成片工程源码(workbench/proj 符号链接 → <工程>/src,Vite/webpack 别名 @proj)。+ * 声明为 any 模块:成片工程不参与本工程的 tsc 严格检查——工程源码以它自己为准。 */+declare module "@proj/*";++/** 镜头卡 demo 源码(workbench/demosrc → ../demos,别名 @demos)。+ * 同样不参与 tsc 严格检查:demo 源码由仓库 CI 自己的 tsc 关卡守着。 */+declare module "@demos/*";diff --git a/workbench/src/projectImport.ts b/workbench/src/projectImport.tsnew file mode 100644index 0000000..7246b09--- /dev/null+++ b/workbench/src/projectImport.ts@@ -0,0 +1,95 @@+import type { ClipData, ProjectData, TrackData } from "./types";+import { uid } from "./types";+import type { ManifestAudio, WorkbenchManifest } from "./cards/manifest";+import { manifestKey } from "./cards/manifest";+import { MANIFEST, cardIdOfUnit, unitsOf } from "./cards/projectCards";++const baseClip = (): Omit<ClipData, "id" | "cardId" | "start" | "duration"> => ({+ inOffset: 0, speed: 1, opacity: 1, scale: 1, x: 0, y: 0, props: {},+});++/** 音效使用次数(素材库「本片音效」列的 ×N) */+export const sfxUsage = (m: WorkbenchManifest | null): Map<string, number> => {+ const out = new Map<string, number>();+ for (const s of m?.sfx ?? []) out.set(s.src, (out.get(s.src) ?? 0) + 1);+ return out;+};++const shortName = (src: string) => src.split("/").pop()!.replace(/\.[^.]+$/, "");++/** 音频 cue → clip,贪心装箱进若干互不重叠的轨(同轨不重叠,便于单独挪动) */+const packAudio = (cues: ManifestAudio[], trackName: string, defaultDuration: number, total: number): TrackData[] => {+ const lanes: { end: number; clips: ClipData[] }[] = [];+ for (const c of [...cues].sort((a, b) => a.from - b.from)) {+ const start = Math.max(0, Math.round(c.from));+ // 原片里 <Sequence> 超出合成尾部的部分被合成时长截掉;导出按最晚 clip 结束算时长,所以这里也截到 total+ const duration = Math.max(2, Math.min(Math.round(c.duration ?? defaultDuration), total - start));+ let lane = lanes.find((l) => l.end <= start);+ if (!lane) {+ lane = { end: 0, clips: [] };+ lanes.push(lane);+ }+ lane.clips.push({+ ...baseClip(),+ id: uid("clip"),+ cardId: "audio-clip",+ start,+ duration,+ props: { file: c.src, volume: c.volume },+ label: c.label ?? shortName(c.src),+ });+ lane.end = start + duration;+ }+ return lanes.map((lane, i) => ({+ id: uid("track"),+ name: lanes.length > 1 ? `${trackName} ${i + 1}` : trackName,+ clips: lane.clips,+ }));+};++/** 把成片按清单拆成独立单元:字幕 / 转场 / 叠加层 / 镜头 / 音乐 / 音效。+ * 每个单元的 start/duration 与 Main.tsx 里的 <Sequence> 逐帧一致,导入后先不改任何东西+ * 渲出来就是原片。 */+export const buildProjectFromManifest = (m: WorkbenchManifest = MANIFEST!): ProjectData => {+ const unitTrack = (kind: "shot" | "transition" | "caption" | "overlay", name: string): TrackData | null => {+ const units = unitsOf(m, kind);+ if (!units.length) return null;+ return {+ id: uid("track"),+ name,+ clips: units.map((u) => ({+ ...baseClip(),+ id: uid("clip"),+ cardId: cardIdOfUnit(u),+ start: Math.max(0, Math.round(u.from)),+ duration: Math.max(2, Math.min(Math.round(u.duration), m.total - Math.max(0, Math.round(u.from)))),+ props: { ...(u.props ?? {}) },+ label: u.label ?? u.id,+ })),+ };+ };++ const order = m.order ?? ["transitions", "captions", "overlays"];+ const NAMES = { transitions: "转场", captions: "字幕", overlays: "叠加层" } as const;+ const upper = order+ .map((k) => unitTrack(k.slice(0, -1) as "transition" | "caption" | "overlay", NAMES[k]))+ .filter((t): t is TrackData => !!t);++ const tracks: TrackData[] = [+ // tracks[0] 为最上层,对应原片 z 序:转场 > 字幕 > 叠加层 > 镜头(缺省序,清单 order 可改)+ ...upper,+ unitTrack("shot", "镜头")!,+ ...(m.bgm?.length ? packAudio(m.bgm, "音乐", m.total, m.total) : []),+ ...(m.sfx?.length ? packAudio(m.sfx, "音效", 90, m.total) : []),+ ];++ return {+ name: m.name,+ fps: m.fps,+ width: m.width,+ height: m.height,+ background: m.background,+ source: manifestKey(m),+ tracks,+ };+};diff --git a/workbench/src/remotion/Root.tsx b/workbench/src/remotion/Root.tsxnew file mode 100644index 0000000..aeb9507--- /dev/null+++ b/workbench/src/remotion/Root.tsx@@ -0,0 +1,84 @@+import React from "react";+import { Composition } from "remotion";+import { CARD_LIST } from "../cards/registry";+import { cardFps, cardSize, defaultsOf } from "../cards/types";+import { zodFromCard } from "./zodFromCard";+import { MainComposition } from "../preview/Composition";+import { demoProject } from "../demoProject";+import { projectDuration, projectEndFrame } from "../types";+import type { ProjectData } from "../types";+import { MANIFEST, ORIGINAL } from "../cards/projectCards";+import { buildProjectFromManifest } from "../projectImport";++type MainProps = { project: ProjectData; renderExact?: boolean };+const Main = MainComposition as React.ComponentType<MainProps>;++/** Remotion Studio / CLI 入口:+ * - Main:整条时间轴合成(吃工作台导出的工程 JSON——右侧 Props 面板可直接贴 JSON)+ * - ProjImported:已链接成片按清单刚导入、未做任何改动的工程(= Main + 导入结果)+ * - ProjOriginal:成片工程自己的原合成(清单 `original`)+ * 两者逐帧应一致,scripts/parity.mjs 用它们做对照+ * - 每张卡各注册一个合成,Zod schema 由工作台 schema 自动转换,Studio Inspector 自动生成调参表单 */+export const RemotionRoot: React.FC = () => {+ const demo = demoProject();+ return (+ <>+ <Composition+ id="Main"+ component={Main}+ durationInFrames={projectDuration(demo)}+ fps={demo.fps}+ width={demo.width}+ height={demo.height}+ defaultProps={{ project: demo, renderExact: false }}+ calculateMetadata={({ props }) => ({+ // 导出成片(renderExact)用内容精确时长;Studio 预览留 1s 余量+ durationInFrames: props.renderExact+ ? Math.max(2, projectEndFrame(props.project))+ : projectDuration(props.project),+ fps: props.project.fps,+ width: props.project.width,+ height: props.project.height,+ })}+ />+ {MANIFEST && (+ <Composition+ id="ProjImported"+ component={Main}+ durationInFrames={Math.max(2, MANIFEST.total)}+ fps={MANIFEST.fps}+ width={MANIFEST.width}+ height={MANIFEST.height}+ defaultProps={{ project: buildProjectFromManifest(MANIFEST), renderExact: true }}+ />+ )}+ {MANIFEST && ORIGINAL && (+ <Composition+ id="ProjOriginal"+ component={ORIGINAL}+ durationInFrames={Math.max(2, MANIFEST.total)}+ fps={MANIFEST.fps}+ width={MANIFEST.width}+ height={MANIFEST.height}+ />+ )}+ {CARD_LIST.filter((c) => c.kind !== "audio").map((card) => {+ const { width, height } = cardSize(card);+ return (+ <Composition+ key={card.id}+ id={card.id.replace(/[^a-zA-Z0-9-]/g, "-")}+ // 动态注册:schema/defaultProps 无法静态对齐类型,交给运行时(zod 会校验)+ component={card.component as React.ComponentType<Record<string, unknown>>}+ durationInFrames={Math.max(2, card.durationInFrames)}+ fps={cardFps(card)}+ width={width}+ height={height}+ schema={zodFromCard(card) as never}+ defaultProps={defaultsOf(card) as never}+ />+ );+ })}+ </>+ );+};diff --git a/workbench/src/remotion/index.ts b/workbench/src/remotion/index.tsnew file mode 100644index 0000000..f31c790--- /dev/null+++ b/workbench/src/remotion/index.ts@@ -0,0 +1,4 @@+import { registerRoot } from "remotion";+import { RemotionRoot } from "./Root";++registerRoot(RemotionRoot);diff --git a/workbench/src/remotion/zodFromCard.ts b/workbench/src/remotion/zodFromCard.tsnew file mode 100644index 0000000..d6d03b2--- /dev/null+++ b/workbench/src/remotion/zodFromCard.ts@@ -0,0 +1,30 @@+import { z } from "zod";+import { zColor } from "@remotion/zod-types";+import type { CardDef, PropField } from "../cards/types";++/** 把工作台的 PropField schema 转成 Zod schema——Studio Inspector 据此渲染表单控件 */+const fieldToZod = (f: PropField): z.ZodTypeAny => {+ switch (f.type) {+ case "text":+ case "textarea":+ return z.string().describe(f.label);+ case "number":+ case "slider": {+ let n = z.number();+ if (f.min !== undefined) n = n.min(f.min);+ if (f.max !== undefined) n = n.max(f.max);+ return n.describe(f.label);+ }+ case "color":+ return zColor().describe(f.label);+ case "select":+ return z+ .enum(f.options.map((o) => o.value) as [string, ...string[]])+ .describe(f.label);+ case "boolean":+ return z.boolean().describe(f.label);+ }+};++export const zodFromCard = (card: CardDef) =>+ z.object(Object.fromEntries(card.schema.map((f) => [f.key, fieldToZod(f)])));diff --git a/workbench/src/store.ts b/workbench/src/store.tsnew file mode 100644index 0000000..db78295--- /dev/null+++ b/workbench/src/store.ts@@ -0,0 +1,356 @@+import { create } from "zustand";+import type { ClipData, ProjectData, TrackData } from "./types";+import { uid } from "./types";+import { CARDS } from "./cards/registry";+import { clipDefaultsFor } from "./cards/types";+import { demoProject } from "./demoProject";+import { MANIFEST } from "./cards/projectCards";+import { manifestKey } from "./cards/manifest";+import { buildProjectFromManifest } from "./projectImport";++export { projectDuration } from "./types";++const STORAGE_KEY = "shotcraft-workbench-project-v1";++const loadSaved = (): ProjectData | null => {+ try {+ const raw = localStorage.getItem(STORAGE_KEY);+ if (raw) {+ const p = JSON.parse(raw) as ProjectData;+ if (p && Array.isArray(p.tracks)) return p;+ }+ } catch {+ /* 损坏的存档直接回退 */+ }+ return null;+};++/** 初始工程:+ * - URL 带 `?import=project`(scripts/open.mjs 交付后打开时加)且已链接成片:+ * 存档不是这一版成片(清单内容哈希不同,见 manifestKey)就按清单重新导入,+ * 旧存档压进撤销栈(⌘Z 可找回改动);是这一版的保留用户改动+ * - 否则读存档;没有存档时用演示工程 */+const loadInitial = (): { project: ProjectData; past: ProjectData[]; imported: boolean } => {+ const saved = loadSaved();+ const params = new URLSearchParams(window.location.search);+ if (params.get("import") === "project" && MANIFEST) {+ window.history.replaceState(null, "", window.location.pathname);+ if (saved?.source !== manifestKey(MANIFEST))+ return { project: buildProjectFromManifest(MANIFEST), past: saved ? [saved] : [], imported: true };+ }+ return { project: saved ?? demoProject(), past: [], imported: false };+};+const initial = loadInitial();++const clone = <T,>(v: T): T => JSON.parse(JSON.stringify(v));++export const findClip = (+ project: ProjectData,+ clipId: string,+): { track: TrackData; clip: ClipData } | null => {+ for (const track of project.tracks) {+ const clip = track.clips.find((c) => c.id === clipId);+ if (clip) return { track, clip };+ }+ return null;+};++/** 素材库点击预览:卡片走 Player 实时预览,文件走原生 video/img/audio */+export type PreviewItem =+ | { kind: "card"; cardId: string }+ | { kind: "video" | "image" | "audio"; file: string; label: string }+ | null;++interface WorkbenchState {+ project: ProjectData;+ selectedClipId: string | null;+ playhead: number;+ playing: boolean;+ pxPerFrame: number;+ previewItem: PreviewItem;+ past: ProjectData[];+ future: ProjectData[];++ /** 一次编辑手势开始前调用:压入撤销快照 */+ commit: () => void;+ undo: () => void;+ redo: () => void;++ setProject: (p: ProjectData) => void;+ select: (id: string | null) => void;+ setPlayhead: (f: number) => void;+ setPlaying: (b: boolean) => void;+ setZoom: (pxPerFrame: number) => void;+ setPreview: (p: PreviewItem) => void;++ addTrack: () => void;+ removeTrack: (trackId: string) => void;+ toggleTrackHidden: (trackId: string) => void;+ /** 拖拽排序:把轨道移到插入位 toIndex(按原数组下标:0 = 最上层,tracks.length = 最下层) */+ moveTrack: (trackId: string, toIndex: number) => void;++ addClip: (+ cardId: string,+ trackId?: string,+ at?: number,+ extra?: { props?: Record<string, unknown>; label?: string; duration?: number },+ ) => void;+ updateClip: (clipId: string, patch: Partial<ClipData>) => void;+ updateClipProps: (clipId: string, propPatch: Record<string, unknown>) => void;+ removeClip: (clipId: string) => void;+ splitClip: (clipId: string, atFrame: number) => void;+ duplicateClip: (clipId: string) => void;+ moveClipToTrack: (clipId: string, trackId: string) => void;+}++const mutateProject = (+ project: ProjectData,+ fn: (draft: ProjectData) => void,+): ProjectData => {+ const draft = clone(project);+ fn(draft);+ return draft;+};++export const useStore = create<WorkbenchState>((set, get) => ({+ project: initial.project,+ selectedClipId: null,+ playhead: 0,+ playing: false,+ pxPerFrame: 2,+ previewItem: null,+ past: initial.past,+ future: [],++ commit: () =>+ set((s) => ({ past: [...s.past.slice(-49), clone(s.project)], future: [] })),++ undo: () =>+ set((s) => {+ if (!s.past.length) return s;+ const prev = s.past[s.past.length - 1];+ return {+ project: prev,+ past: s.past.slice(0, -1),+ future: [clone(s.project), ...s.future.slice(0, 49)],+ selectedClipId: null,+ };+ }),++ redo: () =>+ set((s) => {+ if (!s.future.length) return s;+ const next = s.future[0];+ return {+ project: next,+ past: [...s.past.slice(-49), clone(s.project)],+ future: s.future.slice(1),+ selectedClipId: null,+ };+ }),++ setProject: (p) => {+ get().commit();+ set({ project: p, selectedClipId: null });+ },+ select: (id) => set({ selectedClipId: id }),+ setPlayhead: (f) => set({ playhead: Math.max(0, Math.round(f)) }),+ setPlaying: (b) => set({ playing: b }),+ setZoom: (pxPerFrame) =>+ set({ pxPerFrame: Math.min(10, Math.max(0.3, pxPerFrame)) }),+ setPreview: (p) => set({ previewItem: p }),++ addTrack: () => {+ get().commit();+ set((s) => ({+ project: mutateProject(s.project, (d) => {+ d.tracks.unshift({ id: uid("track"), name: `轨道 ${d.tracks.length + 1}`, clips: [] });+ }),+ }));+ },++ removeTrack: (trackId) => {+ get().commit();+ set((s) => ({+ project: mutateProject(s.project, (d) => {+ d.tracks = d.tracks.filter((t) => t.id !== trackId);+ }),+ selectedClipId: null,+ }));+ },++ toggleTrackHidden: (trackId) => {+ get().commit();+ set((s) => ({+ project: mutateProject(s.project, (d) => {+ const t = d.tracks.find((t) => t.id === trackId);+ if (t) t.hidden = !t.hidden;+ }),+ }));+ },++ moveTrack: (trackId, toIndex) => {+ const tracks = get().project.tracks;+ const from = tracks.findIndex((t) => t.id === trackId);+ const to = Math.max(0, Math.min(tracks.length, Math.round(toIndex)));+ // 插到自己前面或紧跟自己后面 = 原位,不记撤销+ if (from < 0 || to === from || to === from + 1) return;+ get().commit();+ set((s) => ({+ project: mutateProject(s.project, (d) => {+ const [t] = d.tracks.splice(from, 1);+ d.tracks.splice(to > from ? to - 1 : to, 0, t);+ }),+ }));+ },++ addClip: (cardId, trackId, at, extra) => {+ const card = CARDS[cardId];+ if (!card) return;+ get().commit();+ const newId = uid("clip");+ set((s) => ({+ project: mutateProject(s.project, (d) => {+ const track =+ d.tracks.find((t) => t.id === trackId) ?? d.tracks[d.tracks.length - 1];+ if (!track) return;+ // 卡片按自己的 sourceFps 编排(卡片库 30、成片单元 = 清单 fps);工程 fps 不同时换算时长 ++ // 反向变速,播放速度不变;媒体卡(realtime)只换算时长、不变速。+ // 拖拽负载里的 duration(素材库给视频 / 音频的默认长度)与 durationInFrames 同口径,一并换算+ const { duration, speed } = clipDefaultsFor(card, d.fps, extra?.duration);+ track.clips.push({+ id: newId,+ cardId,+ start: Math.max(0, Math.round(at ?? s.playhead)),+ duration,+ inOffset: 0,+ speed,+ opacity: 1,+ scale: 1,+ x: 0,+ y: 0,+ props: extra?.props ?? {},+ label: extra?.label,+ });+ }),+ selectedClipId: newId,+ }));+ },++ updateClip: (clipId, patch) =>+ set((s) => ({+ project: mutateProject(s.project, (d) => {+ const hit = findClip(d, clipId);+ if (hit) Object.assign(hit.clip, patch);+ }),+ })),++ updateClipProps: (clipId, propPatch) =>+ set((s) => ({+ project: mutateProject(s.project, (d) => {+ const hit = findClip(d, clipId);+ if (hit) hit.clip.props = { ...hit.clip.props, ...propPatch };+ }),+ })),++ removeClip: (clipId) => {+ get().commit();+ set((s) => ({+ project: mutateProject(s.project, (d) => {+ for (const t of d.tracks) t.clips = t.clips.filter((c) => c.id !== clipId);+ }),+ selectedClipId:+ s.selectedClipId === clipId ? null : s.selectedClipId,+ }));+ },++ splitClip: (clipId, atFrame) => {+ const hit = findClip(get().project, clipId);+ if (!hit) return;+ const { clip } = hit;+ const local = Math.round(atFrame - clip.start);+ if (local <= 0 || local >= clip.duration) return;+ get().commit();+ const rightId = uid("clip");+ set((s) => ({+ project: mutateProject(s.project, (d) => {+ const h = findClip(d, clipId);+ if (!h) return;+ const left = h.clip;+ const right: ClipData = {+ ...clone(left),+ id: rightId,+ start: left.start + local,+ duration: left.duration - local,+ inOffset: left.inOffset + local * left.speed,+ };+ left.duration = local;+ h.track.clips.push(right);+ }),+ selectedClipId: rightId,+ }));+ },++ duplicateClip: (clipId) => {+ const hit = findClip(get().project, clipId);+ if (!hit) return;+ get().commit();+ const newId = uid("clip");+ set((s) => ({+ project: mutateProject(s.project, (d) => {+ const h = findClip(d, clipId);+ if (!h) return;+ const copy: ClipData = {+ ...clone(h.clip),+ id: newId,+ start: h.clip.start + h.clip.duration,+ };+ h.track.clips.push(copy);+ }),+ selectedClipId: newId,+ }));+ },++ moveClipToTrack: (clipId, trackId) =>+ set((s) => ({+ project: mutateProject(s.project, (d) => {+ const hit = findClip(d, clipId);+ const target = d.tracks.find((t) => t.id === trackId);+ if (!hit || !target || hit.track.id === trackId) return;+ hit.track.clips = hit.track.clips.filter((c) => c.id !== clipId);+ target.clips.push(hit.clip);+ }),+ })),+}));++// —— 自动保存:每次改动 800ms 防抖落 localStorage;关页/切后台时立即落盘 ——+let saveTimer: ReturnType<typeof setTimeout> | undefined;+const flushSave = () => {+ clearTimeout(saveTimer);+ try {+ localStorage.setItem(STORAGE_KEY, JSON.stringify(useStore.getState().project));+ } catch {+ /* 存储满/隐私模式:忽略 */+ }+};+useStore.subscribe((s, prev) => {+ if (s.project === prev.project) return;+ clearTimeout(saveTimer);+ saveTimer = setTimeout(flushSave, 800);+});+window.addEventListener("beforeunload", flushSave);+document.addEventListener("visibilitychange", () => {+ if (document.visibilityState === "hidden") flushSave();+});+// 按清单重新导入的工程立即落盘:否则不改任何东西就刷新会退回旧存档+if (initial.imported) flushSave();++export const resetProject = () => {+ useStore.getState().setProject(demoProject());+};++/** 按已链接成片工程的清单重新导入(一步撤销) */+export const importProject = () => {+ if (!MANIFEST) return;+ useStore.getState().setProject(buildProjectFromManifest(MANIFEST));+};diff --git a/workbench/src/styles.css b/workbench/src/styles.cssnew file mode 100644index 0000000..38b7f37--- /dev/null+++ b/workbench/src/styles.css@@ -0,0 +1,386 @@+/* —— ShotCraft Workbench · Apple 风格暗色工作台(源出 video-talkcraft/workbench) ——+ 参照 macOS 专业应用(Final Cut / Logic)的暗色 chrome:+ 近黑分层底 + 发丝线分隔 + SF 字系 + 单一 accent(#0a84ff)+ 克制的圆角与投影。 */+:root {+ --bg: #121215;+ --panel: #1d1d20;+ --panel-2: #28282d;+ --inset: rgba(0, 0, 0, 0.26);+ --line: rgba(255, 255, 255, 0.08);+ --line-strong: rgba(255, 255, 255, 0.16);+ --text: #f5f5f7;+ --text-dim: #98989f;+ --accent: #0a84ff;+ --accent-soft: rgba(10, 132, 255, 0.35);+ --danger: #ff453a;+ --r-s: 6px;+ --r-m: 8px;+}++* { box-sizing: border-box; }+html, body, #root { height: 100%; margin: 0; }+body {+ background: var(--bg);+ color: var(--text);+ font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue",+ "PingFang SC", "Hiragino Sans GB", sans-serif;+ font-size: 13px;+ -webkit-font-smoothing: antialiased;+ overflow: hidden;+ user-select: none;+}++.app { display: flex; flex-direction: column; height: 100%; }+.dim { color: var(--text-dim); }++/* —— 顶栏 —— */+.topbar {+ display: flex; align-items: center; gap: 8px;+ height: 50px; padding: 0 16px;+ background: var(--panel); border-bottom: 1px solid var(--line);+ flex: none;+}+.logo { font-size: 13px; letter-spacing: 0.2px; color: var(--text-dim); }+.logo b { color: var(--text); font-weight: 600; }+.project-name {+ background: transparent; border: 1px solid transparent; border-radius: var(--r-s);+ color: var(--text); font-size: 13px; font-weight: 500; padding: 6px 10px; width: 190px;+ font-family: inherit; transition: background 0.15s, border-color 0.15s;+}+.project-name:hover, .project-name:focus {+ border-color: var(--line); background: var(--inset); outline: none;+}++/* —— 按钮 —— */+.btn {+ background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.06));+ color: var(--text);+ border: 0; border-radius: 7px;+ box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07), 0 1px 2px rgba(0, 0, 0, 0.25);+ padding: 6px 12px; font-size: 12px; font-weight: 500; font-family: inherit;+ cursor: pointer; white-space: nowrap;+ transition: filter 0.15s, transform 0.08s, box-shadow 0.15s;+}+.btn:hover:not(:disabled) { filter: brightness(1.22); }+.btn:active:not(:disabled) { transform: scale(0.97); filter: brightness(0.95); }+.btn:disabled { opacity: 0.4; cursor: default; }+.btn.primary {+ background: linear-gradient(180deg, #2e94ff, #0871e6);+ color: #fff; font-weight: 600;+ box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 1px 4px rgba(10, 132, 255, 0.35);+}+.btn.danger {+ color: #ff8078;+ background: linear-gradient(180deg, rgba(255, 69, 58, 0.2), rgba(255, 69, 58, 0.12));+ box-shadow: inset 0 0 0 1px rgba(255, 69, 58, 0.28);+}+.btn.wide { width: 100%; margin-bottom: 10px; }+.btn-play {+ width: 32px; height: 32px; min-width: 32px; padding: 0; border-radius: 50%;+ display: inline-flex; align-items: center; justify-content: center; font-size: 12px;+}+.mini {+ background: transparent; color: var(--text-dim);+ border: 0; border-radius: var(--r-s);+ padding: 3px 8px; font-size: 11px; font-family: inherit; cursor: pointer;+ transition: background 0.15s, color 0.15s;+}+.mini:hover { color: var(--text); background: rgba(255, 255, 255, 0.08); }+.mini.preset.on { color: var(--accent); background: rgba(10, 132, 255, 0.14); }++/* —— 主区三栏 —— */+.main { display: flex; flex: 1; min-height: 0; }++.panel-title {+ padding: 11px 14px; font-weight: 600; font-size: 13px; letter-spacing: 0.2px;+ border-bottom: 1px solid var(--line); flex: none;+}++/* 可调尺寸面板容器 + 分隔条 */+.panel-wrap { flex: none; display: flex; min-width: 0; min-height: 0; }+.panel-wrap > * { flex: 1; min-width: 0; min-height: 0; }+.splitter { flex: none; background: transparent; transition: background 0.15s; z-index: 20; }+.splitter.v { width: 5px; cursor: col-resize; margin: 0 -1px; }+.splitter.h { height: 5px; cursor: row-resize; margin: -1px 0; }+.splitter:hover, .splitter:active { background: var(--accent-soft); }++/* —— 素材库 —— */+.library {+ width: 100%; display: flex; flex-direction: column;+ background: var(--panel); border-right: 1px solid var(--line);+}+/* 分段控件式 tab(macOS segmented control) */+.lib-tabs {+ display: flex; gap: 2px; flex: none;+ margin: 10px 10px 8px; padding: 2px;+ background: var(--inset); border-radius: 9px;+}+.lib-tab {+ flex: 1; background: transparent; border: 0; border-radius: 7px;+ color: var(--text-dim); font-family: inherit;+ padding: 6px 0; font-size: 12px; font-weight: 500; cursor: pointer;+ transition: background 0.15s, color 0.15s;+}+.lib-tab.on {+ color: var(--text); font-weight: 600; background: #3b3b41;+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4), inset 0 0 0 0.5px rgba(255, 255, 255, 0.09);+}+.library-list { flex: 1; overflow-y: auto; padding: 4px 10px 12px; }+.lib-cat {+ padding: 12px 2px 6px; font-size: 11px; font-weight: 600;+ letter-spacing: 0.4px; color: var(--text-dim);+}+/* 列表行(音效等无画面素材):无框,悬停浮起 */+.lib-card {+ display: flex; align-items: center; gap: 8px; width: 100%;+ background: transparent; border: 0; border-radius: 7px;+ color: var(--text); padding: 7px 8px; margin-bottom: 1px;+ cursor: grab; font-size: 12px; text-align: left;+ transition: background 0.12s;+}+.lib-card:hover { background: rgba(255, 255, 255, 0.07); }+.lib-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }+.lib-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }+.lib-dur { color: var(--text-dim); font-size: 11px; font-variant-numeric: tabular-nums; }+.lib-foot {+ padding: 10px 14px; font-size: 11px; border-top: 1px solid var(--line); line-height: 1.6;+}++/* 分类标题:纯文字行,无框 */+.lib-cat-toggle {+ display: flex; align-items: center; gap: 6px; width: 100%;+ background: transparent; border: 0; border-radius: var(--r-s);+ color: var(--text); font-size: 12.5px; font-weight: 600; font-family: inherit;+ padding: 8px 4px; margin: 2px 0; cursor: pointer;+ transition: color 0.15s;+}+.lib-cat-toggle:hover { color: var(--accent); }+.lib-cat-toggle .dim { font-weight: 400; font-variant-numeric: tabular-nums; }+.caret { display: inline-block; transition: transform 0.15s; color: var(--text-dim); font-size: 10px; }+.caret.open { transform: rotate(90deg); }++/* 素材网格(循环视频/实时卡片预览) */+.lib-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 8px; margin-bottom: 10px; }+.lib-cell { cursor: grab; min-width: 0; }+.lib-thumb {+ display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover;+ background: #0c0c0e; border: 0; border-radius: var(--r-m); pointer-events: none;+ outline: 1px solid rgba(255, 255, 255, 0.13); outline-offset: -1px;+ overflow: hidden;+}+.lib-cell:hover .lib-thumb { outline: 2px solid var(--accent); outline-offset: -2px; }+.lib-thumb-empty {+ display: flex; align-items: center; justify-content: center;+ font-size: 17px; font-weight: 600; color: var(--text-dim);+}+.lib-cell-name {+ padding: 6px 2px 0; font-size: 11px; font-weight: 500;+ white-space: nowrap; overflow: hidden; text-overflow: ellipsis;+}+.lib-cell-meta { padding: 1px 2px 0; font-size: 10px; font-variant-numeric: tabular-nums; }+.lib-card:active, .lib-cell:active { cursor: grabbing; }++/* —— 素材预览模式 —— */+.preview-media { max-width: 100%; max-height: 100%; border-radius: var(--r-m); }+.preview-audio {+ display: flex; flex-direction: column; align-items: center; gap: 16px;+ color: var(--text); font-size: 16px;+}+.preview-tag {+ background: var(--accent); color: #fff; border-radius: 999px;+ padding: 3px 10px; font-size: 11px; font-weight: 600;+}++/* —— 预览 —— */+.preview-panel {+ flex: 1; min-width: 0; display: flex; flex-direction: column;+ background: #0a0a0c;+}+.preview-stage {+ flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center;+ padding: 20px;+}+.preview-stage > div { max-width: 100%; max-height: 100%; }+.transport {+ display: flex; align-items: center; gap: 10px;+ height: 46px; padding: 0 14px; flex: none;+ background: var(--panel); border-top: 1px solid var(--line);+}+.timecode {+ font-variant-numeric: tabular-nums; font-size: 12.5px; letter-spacing: 0.3px;+}+.loop-toggle {+ display: flex; align-items: center; gap: 5px;+ color: var(--text-dim); font-size: 12px; cursor: pointer;+}+.loop-toggle input { accent-color: var(--accent); }++/* —— 属性面板 —— */+.inspector {+ width: 100%; display: flex; flex-direction: column;+ background: var(--panel); border-left: 1px solid var(--line);+}+.inspector-empty { padding: 22px 16px; line-height: 1.8; font-size: 12px; }+.inspector-scroll { flex: 1; overflow-y: auto; padding: 6px 14px 20px; }+.inspector section { margin-top: 14px; }+.sec-title {+ font-size: 11px; font-weight: 600; color: var(--text-dim); letter-spacing: 0.8px;+ padding-bottom: 6px; border-bottom: 1px solid var(--line); margin-bottom: 10px;+}+.prop-row { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }+.prop-label { width: 88px; flex: none; color: var(--text-dim); font-size: 12px; }+.prop-ctl { flex: 1; min-width: 0; }+.ctl-row { display: flex; align-items: center; gap: 6px; }+.preset-row { gap: 4px; }+.unit { color: var(--text-dim); font-size: 11px; }+.slider-val {+ min-width: 42px; text-align: right; font-size: 11px; color: var(--text-dim);+ font-variant-numeric: tabular-nums;+}++.inspector input[type="text"],+.inspector input[type="number"],+.inspector textarea,+.inspector select {+ width: 100%; background: var(--inset);+ border: 1px solid var(--line); border-radius: 7px;+ color: var(--text); padding: 6px 9px; font-size: 12px;+ font-family: inherit;+ transition: border-color 0.15s, box-shadow 0.15s;+}+.inspector input:focus, .inspector textarea:focus, .inspector select:focus {+ outline: none; border-color: var(--accent);+ box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.25);+}+.inspector textarea { resize: vertical; line-height: 1.5; }+.inspector input[type="number"] { width: 76px; }+.inspector input[type="range"] { flex: 1; accent-color: var(--accent); }+.inspector input[type="color"] {+ width: 30px; height: 26px; padding: 1px; border: 1px solid var(--line);+ border-radius: 7px; background: var(--inset); cursor: pointer;+}+.color-text { flex: 1; }++/* —— 时间轴 —— */+.timeline {+ height: 100%; width: 100%; display: flex; flex-direction: column;+ background: var(--panel); border-top: 1px solid var(--line);+}+.tl-toolbar {+ display: flex; align-items: center; gap: 8px;+ height: 40px; padding: 0 12px; flex: none;+ border-bottom: 1px solid var(--line);+}+.tl-toolbar input[type="range"] { accent-color: var(--accent); }+.tl-sep { width: 1px; height: 18px; background: var(--line-strong); margin: 0 4px; }++.tl-scroller { flex: 1; overflow: auto; position: relative; }+.tl-content { position: relative; min-height: 100%; }++.tl-ruler-row { display: flex; position: sticky; top: 0; z-index: 6; }+.tl-corner {+ flex: none; position: sticky; left: 0; z-index: 7;+ background: var(--panel); border-bottom: 1px solid var(--line);+}+.ruler {+ position: relative; height: 26px; flex: none;+ background: var(--panel); border-bottom: 1px solid var(--line);+ cursor: ew-resize;+}+.tick { position: absolute; bottom: 0; width: 1px; height: 6px; background: rgba(255, 255, 255, 0.22); }+.tick.major { height: 10px; background: rgba(255, 255, 255, 0.4); }+.tick-label {+ position: absolute; bottom: 10px; left: 4px;+ font-size: 10px; color: var(--text-dim); white-space: nowrap;+ font-variant-numeric: tabular-nums;+}++.tl-row { display: flex; }+.tl-track-head {+ flex: none; position: sticky; left: 0; z-index: 5;+ display: flex; align-items: center; justify-content: space-between; gap: 4px;+ height: 56px; padding: 0 8px 0 12px;+ background: var(--panel); border-bottom: 1px solid var(--line); border-right: 1px solid var(--line);+}+.tl-track-head { cursor: grab; }+.track-grip { flex: none; font-size: 10px; letter-spacing: -3px; color: var(--text-dim); opacity: 0.5; margin-right: 4px; }+.track-name { flex: 1; min-width: 0; font-size: 12px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }+.track-actions { display: flex; gap: 2px; flex: none; }+.track-actions .mini { padding: 2px 6px; }++/* 轨道拖拽排序 */+.tl-row.dragging { opacity: 0.45; }+.timeline.track-dragging, .timeline.track-dragging * { cursor: grabbing !important; user-select: none; }+.track-drop-line {+ position: absolute; left: 0; right: 0; height: 2px;+ background: var(--accent); z-index: 7; pointer-events: none;+ box-shadow: 0 0 6px rgba(10, 132, 255, 0.6);+}+.track-drop-line::before {+ content: ""; position: absolute; left: 6px; top: -3px;+ width: 8px; height: 8px; border-radius: 50%; background: var(--accent);+}++.tl-lane {+ position: relative; height: 56px; flex: none;+ background:+ repeating-linear-gradient(to right, transparent 0, transparent 59px, rgba(255, 255, 255, 0.035) 59px, rgba(255, 255, 255, 0.035) 60px),+ #19191c;+ border-bottom: 1px solid var(--line);+}+.tl-lane.hidden-track { opacity: 0.35; }++/* clip */+.clip {+ position: absolute; top: 5px; height: 46px;+ background: linear-gradient(180deg, #3c3c44, #2f2f36);+ border: 0; border-left: 3px solid #71717a;+ box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07), 0 1px 3px rgba(0, 0, 0, 0.3);+ border-radius: 7px; cursor: grab; overflow: hidden;+ transition: box-shadow 0.12s;+}+.clip:active { cursor: grabbing; }+.clip.selected {+ border-left-color: var(--accent);+ box-shadow: 0 0 0 2px var(--accent), 0 1px 8px rgba(10, 132, 255, 0.35);+}+.clip-label {+ display: flex; flex-direction: column; justify-content: center; gap: 2px;+ height: 100%; padding: 0 10px; pointer-events: none;+}+.clip-name { font-size: 12px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }+.clip-meta { font-size: 10px; color: var(--text-dim); display: flex; gap: 5px; align-items: center; }+.badge {+ font-style: normal; background: rgba(255, 255, 255, 0.13); border-radius: 4px;+ padding: 0 4px; color: #d5d5dc; font-size: 10px; font-variant-numeric: tabular-nums;+}+.trim {+ position: absolute; top: 0; bottom: 0; width: 8px; cursor: ew-resize; z-index: 2;+}+.trim-l { left: 0; }+.trim-r { right: 0; }+.clip.selected .trim::after {+ content: ""; position: absolute; top: 12px; bottom: 12px; width: 3px;+ background: #fff; opacity: 0.85; border-radius: 2px;+}+.trim-l::after { left: 3px; }+.trim-r::after { right: 3px; }++/* 播放头(Apple 系统红) */+.playhead {+ position: absolute; top: 0; bottom: 0; width: 1px;+ background: var(--danger); z-index: 4; pointer-events: none;+}+.playhead-cap {+ position: absolute; top: 0; left: -5px;+ border: 5px solid transparent; border-top: 7px solid var(--danger);+}++/* —— 滚动条 —— */+::-webkit-scrollbar { width: 9px; height: 9px; }+::-webkit-scrollbar-thumb {+ background: rgba(255, 255, 255, 0.14); border-radius: 5px;+ border: 2px solid transparent; background-clip: content-box;+}+::-webkit-scrollbar-thumb:hover { background-color: rgba(255, 255, 255, 0.26); }+::-webkit-scrollbar-corner { background: transparent; }diff --git a/workbench/src/time.ts b/workbench/src/time.tsnew file mode 100644index 0000000..9ce9484--- /dev/null+++ b/workbench/src/time.ts@@ -0,0 +1,14 @@+export const FPS = 30;++/** 帧 → "mm:ss.ff" */+export const fmtFrames = (frames: number, fps = FPS) => {+ const f = Math.max(0, Math.round(frames));+ const totalSec = Math.floor(f / fps);+ const mm = String(Math.floor(totalSec / 60)).padStart(2, "0");+ const ss = String(totalSec % 60).padStart(2, "0");+ const ff = String(f % fps).padStart(2, "0");+ return `${mm}:${ss}.${ff}`;+};++export const framesToSec = (frames: number, fps = FPS) => frames / fps;+export const secToFrames = (sec: number, fps = FPS) => Math.round(sec * fps);diff --git a/workbench/src/timeline/ClipView.tsx b/workbench/src/timeline/ClipView.tsxnew file mode 100644index 0000000..5948c67--- /dev/null+++ b/workbench/src/timeline/ClipView.tsx@@ -0,0 +1,134 @@+import React from "react";+import { inOffsetFps } from "../cards/types";+import type { ClipData } from "../types";+import { CARDS } from "../cards/registry";+import { useStore } from "../store";++const SNAP_PX = 6;++/** 吸附候选:其他 clip 的首尾 + 播放头(帧) */+const collectSnaps = (excludeClipId: string): number[] => {+ const s = useStore.getState();+ const out: number[] = [s.playhead, 0];+ for (const t of s.project.tracks)+ for (const c of t.clips) {+ if (c.id === excludeClipId) continue;+ out.push(c.start, c.start + c.duration);+ }+ return out;+};++export const ClipView: React.FC<{+ clip: ClipData;+ trackId: string;+ trackIdAt: (clientY: number) => string | null;+}> = ({ clip, trackId, trackIdAt }) => {+ const ppf = useStore((s) => s.pxPerFrame);+ const selected = useStore((s) => s.selectedClipId === clip.id);+ const select = useStore((s) => s.select);+ const commit = useStore((s) => s.commit);+ const updateClip = useStore((s) => s.updateClip);+ const moveClipToTrack = useStore((s) => s.moveClipToTrack);++ const card = CARDS[clip.cardId];++ const applySnap = (frame: number, dur: number): number => {+ const tol = SNAP_PX / ppf;+ for (const snap of collectSnaps(clip.id)) {+ if (Math.abs(frame - snap) < tol) return Math.round(snap);+ if (Math.abs(frame + dur - snap) < tol) return Math.round(snap - dur);+ }+ return frame;+ };++ const onBodyDown = (e: React.PointerEvent) => {+ if (e.button !== 0) return;+ e.stopPropagation();+ select(clip.id);+ commit();+ const startX = e.clientX;+ const orig = { start: clip.start, duration: clip.duration };+ let curTrack = trackId;+ let moved = false;+ const onMove = (ev: PointerEvent) => {+ moved = true;+ const df = (ev.clientX - startX) / ppf;+ let ns = Math.max(0, Math.round(orig.start + df));+ ns = Math.max(0, applySnap(ns, orig.duration));+ updateClip(clip.id, { start: ns });+ const tid = trackIdAt(ev.clientY);+ if (tid && tid !== curTrack) {+ moveClipToTrack(clip.id, tid);+ curTrack = tid;+ }+ };+ const onUp = () => {+ window.removeEventListener("pointermove", onMove);+ if (!moved) return;+ };+ window.addEventListener("pointermove", onMove);+ window.addEventListener("pointerup", onUp, { once: true });+ };++ const onTrimDown = (side: "left" | "right") => (e: React.PointerEvent) => {+ if (e.button !== 0) return;+ e.stopPropagation();+ select(clip.id);+ commit();+ const startX = e.clientX;+ const orig = {+ start: clip.start,+ duration: clip.duration,+ inOffset: clip.inOffset,+ speed: clip.speed,+ };+ const onMove = (ev: PointerEvent) => {+ const df = Math.round((ev.clientX - startX) / ppf);+ if (side === "left") {+ let d = df;+ d = Math.max(d, -orig.start); // 不越过时间轴 0 点+ d = Math.max(d, Math.ceil(-orig.inOffset / orig.speed)); // 裁入点不为负+ d = Math.min(d, orig.duration - 2);+ updateClip(clip.id, {+ start: orig.start + d,+ duration: orig.duration - d,+ inOffset: Math.max(0, orig.inOffset + d * orig.speed),+ });+ } else {+ const d = Math.max(df, 2 - orig.duration);+ updateClip(clip.id, { duration: orig.duration + d });+ }+ };+ const onUp = () => window.removeEventListener("pointermove", onMove);+ window.addEventListener("pointermove", onMove);+ window.addEventListener("pointerup", onUp, { once: true });+ };++ const fps = useStore((s) => s.project.fps);+ const accent = card?.accent ?? "#666";+ const durSec = (clip.duration / fps).toFixed(1);++ return (+ <div+ className={`clip${selected ? " selected" : ""}`}+ style={{+ left: clip.start * ppf,+ width: Math.max(8, clip.duration * ppf),+ borderLeftColor: accent,+ }}+ onPointerDown={onBodyDown}+ >+ <div className="clip-label">+ <span className="clip-name">{clip.label ?? card?.name ?? clip.cardId}</span>+ <span className="clip-meta">+ {durSec}s+ {clip.speed !== 1 && <em className="badge">{clip.speed}×</em>}+ {clip.inOffset > 0 && <em className="badge">✂{(clip.inOffset / inOffsetFps(card, fps)).toFixed(1)}s</em>}+ {clip.opacity < 1 && <em className="badge">{Math.round(clip.opacity * 100)}%</em>}+ </span>+ </div>+ <div className="trim trim-l" onPointerDown={onTrimDown("left")} />+ <div className="trim trim-r" onPointerDown={onTrimDown("right")} />+ </div>+ );+};diff --git a/workbench/src/timeline/Ruler.tsx b/workbench/src/timeline/Ruler.tsxnew file mode 100644index 0000000..435607e--- /dev/null+++ b/workbench/src/timeline/Ruler.tsx@@ -0,0 +1,59 @@+import React, { useRef } from "react";+import { seekTo } from "../playerRef";+import { useStore } from "../store";++/** 时间标尺:刻度 + 点击/拖拽 scrub */+export const Ruler: React.FC<{ durationFrames: number; contentW: number }> = ({+ durationFrames,+ contentW,+}) => {+ const ppf = useStore((s) => s.pxPerFrame);+ const setPlayhead = useStore((s) => s.setPlayhead);+ const fps = useStore((s) => s.project.fps);+ const ref = useRef<HTMLDivElement>(null);++ // 主刻度间隔(秒):保证标签间距 ≥ 64px+ const pxPerSec = ppf * fps;+ const steps = [0.5, 1, 2, 5, 10, 30, 60];+ const stepSec = steps.find((s) => s * pxPerSec >= 64) ?? 60;++ const totalSec = durationFrames / fps;+ const ticks: { sec: number; major: boolean }[] = [];+ for (let s = 0; s <= totalSec + stepSec; s += stepSec / 2) {+ ticks.push({ sec: s, major: Math.round((s / stepSec) * 2) % 2 === 0 });+ }++ const scrub = (clientX: number) => {+ const rect = ref.current?.getBoundingClientRect();+ if (!rect) return;+ const frame = Math.max(0, Math.round((clientX - rect.left) / ppf));+ seekTo(frame);+ setPlayhead(frame);+ };++ const onPointerDown = (e: React.PointerEvent) => {+ if (e.button !== 0) return;+ scrub(e.clientX);+ const onMove = (ev: PointerEvent) => scrub(ev.clientX);+ const onUp = () => window.removeEventListener("pointermove", onMove);+ window.addEventListener("pointermove", onMove);+ window.addEventListener("pointerup", onUp, { once: true });+ };++ const fmt = (sec: number) =>+ stepSec >= 1 ? `${Math.round(sec)}s` : `${sec.toFixed(1)}s`;++ return (+ <div className="ruler" ref={ref} style={{ width: contentW }} onPointerDown={onPointerDown}>+ {ticks.map(({ sec, major }, i) => (+ <div+ key={i}+ className={major ? "tick major" : "tick"}+ style={{ left: sec * pxPerSec }}+ >+ {major && <span className="tick-label">{fmt(sec)}</span>}+ </div>+ ))}+ </div>+ );+};diff --git a/workbench/src/timeline/Timeline.tsx b/workbench/src/timeline/Timeline.tsxnew file mode 100644index 0000000..ac286ce--- /dev/null+++ b/workbench/src/timeline/Timeline.tsx@@ -0,0 +1,257 @@+import React, { useRef, useState } from "react";+import { projectDuration, useStore } from "../store";+import { Ruler } from "./Ruler";+import { ClipView } from "./ClipView";+import { DRAG_MIME, readDragPayload } from "../dnd";++const HEADER_W = 140;++/** 播放头竖线:唯一订阅 playhead 的时间轨组件——播放中每帧只动它 */+const PlayheadLine: React.FC = () => {+ const playhead = useStore((s) => s.playhead);+ const ppf = useStore((s) => s.pxPerFrame);+ return (+ <div className="playhead" style={{ left: HEADER_W + playhead * ppf }}>+ <div className="playhead-cap" />+ </div>+ );+};++export const Timeline: React.FC = () => {+ const project = useStore((s) => s.project);+ const ppf = useStore((s) => s.pxPerFrame);+ const selectedClipId = useStore((s) => s.selectedClipId);+ const setZoom = useStore((s) => s.setZoom);+ const select = useStore((s) => s.select);+ const addTrack = useStore((s) => s.addTrack);+ const removeTrack = useStore((s) => s.removeTrack);+ const toggleTrackHidden = useStore((s) => s.toggleTrackHidden);+ const moveTrack = useStore((s) => s.moveTrack);+ const splitClip = useStore((s) => s.splitClip);+ const duplicateClip = useStore((s) => s.duplicateClip);+ const removeClip = useStore((s) => s.removeClip);+ const addClip = useStore((s) => s.addClip);++ const duration = projectDuration(project);+ const contentW = Math.ceil(duration * ppf) + 240;+ const laneRefs = useRef(new Map<string, HTMLDivElement>());+ const scrollerRef = useRef<HTMLDivElement>(null);++ const trackIdAt = (clientY: number): string | null => {+ for (const [id, el] of laneRefs.current) {+ const r = el.getBoundingClientRect();+ if (clientY >= r.top && clientY <= r.bottom) return id;+ }+ return null;+ };++ const fit = () => {+ const w = scrollerRef.current?.clientWidth;+ if (w) setZoom((w - HEADER_W - 80) / duration);+ };++ // —— 轨道拖拽排序:按住轨道头上下拖,蓝线标出插入位,松手落位(一步撤销)——+ const rowRefs = useRef(new Map<string, HTMLDivElement>());+ /** 拖动中:被拖轨道 id + 目标插入位(原数组下标,0..tracks.length) */+ const [trackDrag, setTrackDrag] = useState<{ id: string; to: number } | null>(null);++ const onTrackHeadDown = (trackId: string) => (e: React.PointerEvent) => {+ if (e.button !== 0) return;+ if ((e.target as HTMLElement).closest("button")) return; // 👁 / ✕ 照常点击+ e.preventDefault();+ const startY = e.clientY;+ const from = useStore.getState().project.tracks.findIndex((t) => t.id === trackId);+ if (from < 0) return;+ let to = from;+ let dragging = false;+ const onMove = (ev: PointerEvent) => {+ if (!dragging) {+ if (Math.abs(ev.clientY - startY) < 4) return; // 抖动阈值:点一下不算拖+ dragging = true;+ setTrackDrag({ id: trackId, to });+ }+ // 插入位 = 中线在指针上方的轨道数+ let idx = 0;+ for (const t of useStore.getState().project.tracks) {+ const el = rowRefs.current.get(t.id);+ if (!el) continue;+ const r = el.getBoundingClientRect();+ if (ev.clientY > r.top + r.height / 2) idx++;+ }+ // 指针贴近时间轨上下边时自动滚动,轨道多时能拖到看不见的位置+ const sc = scrollerRef.current;+ if (sc) {+ const r = sc.getBoundingClientRect();+ if (ev.clientY < r.top + 40) sc.scrollTop -= 10;+ else if (ev.clientY > r.bottom - 30) sc.scrollTop += 10;+ }+ if (idx !== to) {+ to = idx;+ setTrackDrag({ id: trackId, to: idx });+ }+ };+ const onUp = () => {+ window.removeEventListener("pointermove", onMove);+ setTrackDrag(null);+ if (dragging) moveTrack(trackId, to); // 原位落下时 store 内部忽略+ };+ window.addEventListener("pointermove", onMove);+ window.addEventListener("pointerup", onUp, { once: true });+ };++ /** 插入线在 tl-content 内的 top;落回原位时不画 */+ const dropLineTop = (): number | null => {+ if (!trackDrag) return null;+ const tracks = project.tracks;+ const from = tracks.findIndex((t) => t.id === trackDrag.id);+ if (trackDrag.to === from || trackDrag.to === from + 1) return null;+ if (trackDrag.to < tracks.length) {+ const el = rowRefs.current.get(tracks[trackDrag.to].id);+ return el ? el.offsetTop : null;+ }+ const last = tracks.length ? rowRefs.current.get(tracks[tracks.length - 1].id) : null;+ return last ? last.offsetTop + last.offsetHeight : null;+ };+ const dropTop = dropLineTop();++ return (+ <div className={`timeline${trackDrag ? " track-dragging" : ""}`}>+ <div className="tl-toolbar">+ <button+ className="btn"+ disabled={!selectedClipId}+ title="在播放头处分割选中片段(S)"+ onClick={() =>+ selectedClipId && splitClip(selectedClipId, useStore.getState().playhead)+ }+ >+ ✂ 分割+ </button>+ <button+ className="btn"+ disabled={!selectedClipId}+ title="复制选中片段(⌘D)"+ onClick={() => selectedClipId && duplicateClip(selectedClipId)}+ >+ ⧉ 复制+ </button>+ <button+ className="btn"+ disabled={!selectedClipId}+ title="删除选中片段(Delete)"+ onClick={() => selectedClipId && removeClip(selectedClipId)}+ >+ 🗑 删除+ </button>+ <span className="tl-sep" />+ <button className="btn" onClick={addTrack} title="新增一条轨道(加在最上层)">+ + 轨道+ </button>+ <span style={{ marginLeft: "auto" }} />+ <button className="btn" onClick={fit} title="缩放到适配全部内容">+ ⤢ 适配+ </button>+ <span className="dim">缩放</span>+ <input+ type="range"+ min={0.3}+ max={8}+ step={0.1}+ value={ppf}+ onChange={(e) => setZoom(Number(e.target.value))}+ style={{ width: 120 }}+ />+ </div>++ <div className="tl-scroller" ref={scrollerRef}>+ <div className="tl-content" style={{ width: contentW + HEADER_W }}>+ <div className="tl-ruler-row">+ <div className="tl-corner" style={{ width: HEADER_W }} />+ <Ruler durationFrames={duration} contentW={contentW} />+ </div>++ {project.tracks.map((track) => (+ <div+ className={`tl-row${trackDrag?.id === track.id ? " dragging" : ""}`}+ key={track.id}+ ref={(el) => {+ if (el) rowRefs.current.set(track.id, el);+ else rowRefs.current.delete(track.id);+ }}+ >+ <div+ className="tl-track-head"+ style={{ width: HEADER_W }}+ title="按住上下拖动调整轨道层序(上层盖住下层)"+ onPointerDown={onTrackHeadDown(track.id)}+ >+ <span className="track-grip" aria-hidden>+ ⋮⋮+ </span>+ <span className="track-name" title={track.name}>+ {track.name}+ </span>+ <span className="track-actions">+ <button+ className="mini"+ title={track.hidden ? "显示轨道" : "隐藏轨道"}+ onClick={() => toggleTrackHidden(track.id)}+ >+ {track.hidden ? "🚫" : "👁"}+ </button>+ <button+ className="mini"+ title="删除轨道"+ onClick={() => {+ if (+ track.clips.length === 0 ||+ window.confirm(`删除轨道「${track.name}」及其 ${track.clips.length} 个片段?`)+ )+ removeTrack(track.id);+ }}+ >+ ✕+ </button>+ </span>+ </div>+ <div+ className={`tl-lane${track.hidden ? " hidden-track" : ""}`}+ ref={(el) => {+ if (el) laneRefs.current.set(track.id, el);+ else laneRefs.current.delete(track.id);+ }}+ style={{ width: contentW }}+ onPointerDown={() => select(null)}+ onDragOver={(e) => {+ if (e.dataTransfer.types.includes(DRAG_MIME)) {+ e.preventDefault();+ e.dataTransfer.dropEffect = "copy";+ }+ }}+ onDrop={(e) => {+ const payload = readDragPayload(e);+ if (!payload) return;+ e.preventDefault();+ const rect = e.currentTarget.getBoundingClientRect();+ const frame = Math.max(0, Math.round((e.clientX - rect.left) / ppf));+ addClip(payload.cardId, track.id, frame, {+ props: payload.props,+ label: payload.label,+ duration: payload.duration,+ });+ }}+ >+ {track.clips.map((clip) => (+ <ClipView key={clip.id} clip={clip} trackId={track.id} trackIdAt={trackIdAt} />+ ))}+ </div>+ </div>+ ))}++ {dropTop !== null && <div className="track-drop-line" style={{ top: dropTop - 1 }} />}+ <PlayheadLine />+ </div>+ </div>+ </div>+ );+};diff --git a/workbench/src/types.ts b/workbench/src/types.tsnew file mode 100644index 0000000..7c49b99--- /dev/null+++ b/workbench/src/types.ts@@ -0,0 +1,60 @@+/** 工程数据模型:Project → Track → Clip。所有时间量以时间轴帧为单位(默认 30fps)。 */++export interface ClipData {+ id: string;+ cardId: string;+ /** 时间轴上的起点(帧) */+ start: number;+ /** 时间轴上占据的长度(帧)——可短于/长于卡片原始时长(裁剪/定格延长) */+ duration: number;+ /** 裁入点:从卡片素材的第几帧开始播(源帧),控制动效的进场时机 */+ inOffset: number;+ /** 变速倍率:每走 1 时间轴帧,源时间前进 speed 帧 */+ speed: number;+ /** 图层不透明度 0–1 */+ opacity: number;+ /** 图层整体缩放 */+ scale: number;+ /** 图层位移(px,合成坐标系) */+ x: number;+ y: number;+ /** 卡片专属属性覆盖(缺省值来自卡片 schema) */+ props: Record<string, unknown>;+ /** 时间轨上显示的自定义标签(缺省显示卡片名)——导入成片时的镜头/音效用它标注 */+ label?: string;+}++export interface TrackData {+ id: string;+ name: string;+ hidden?: boolean;+ clips: ClipData[];+}++export interface ProjectData {+ name: string;+ fps: number;+ width: number;+ height: number;+ /** 舞台底色(成片工程 AbsoluteFill 的 background;缺省近黑) */+ background?: string;+ /** 由哪个成片清单导入(清单 name + total)——`?import=project` 用它判断是否需要重新导入 */+ source?: string;+ tracks: TrackData[];+}++let seq = 0;+export const uid = (prefix: string) =>+ `${prefix}_${Date.now().toString(36)}${(seq++).toString(36)}`;++/** 内容精确结束帧(最晚 clip 结束;导出成片用,不带余量) */+export const projectEndFrame = (project: ProjectData): number => {+ let end = 0;+ for (const t of project.tracks)+ for (const c of t.clips) end = Math.max(end, c.start + c.duration);+ return end;+};++/** 工程总时长(帧):最晚 clip 结束 + 1s 余量,最短 5s(编辑预览用;按工程 fps 换算) */+export const projectDuration = (project: ProjectData): number =>+ Math.max(5 * project.fps, projectEndFrame(project) + project.fps);diff --git a/workbench/src/vite-env.d.ts b/workbench/src/vite-env.d.tsnew file mode 100644index 0000000..11f02fe--- /dev/null+++ b/workbench/src/vite-env.d.ts@@ -0,0 +1 @@+/// <reference types="vite/client" />diff --git a/workbench/tsconfig.json b/workbench/tsconfig.jsonnew file mode 100644index 0000000..109f0ac--- /dev/null+++ b/workbench/tsconfig.json@@ -0,0 +1,20 @@+{+ "compilerOptions": {+ "target": "ES2020",+ "useDefineForClassFields": true,+ "lib": ["ES2020", "DOM", "DOM.Iterable"],+ "module": "ESNext",+ "skipLibCheck": true,+ "moduleResolution": "bundler",+ "allowImportingTsExtensions": true,+ "isolatedModules": true,+ "moduleDetection": "force",+ "noEmit": true,+ "jsx": "react-jsx",+ "strict": true,+ "noUnusedLocals": true,+ "noUnusedParameters": true,+ "noFallthroughCasesInSwitch": true+ },+ "include": ["src"]+}diff --git a/workbench/vite.config.ts b/workbench/vite.config.tsnew file mode 100644index 0000000..0eab354--- /dev/null+++ b/workbench/vite.config.ts@@ -0,0 +1,174 @@+import { existsSync, mkdirSync, readdirSync, rmSync, writeFileSync } from "node:fs";+import { spawn } from "node:child_process";+import { fileURLToPath } from "node:url";+import path from "node:path";+import { defineConfig, type Plugin } from "vite";+import react from "@vitejs/plugin-react";++// @proj = 外部成片工程源码(本机经 workbench/proj 符号链接接入,不进库;scripts/open.mjs 负责链接)。+// 未链接时自动落到 proj-stub 降级实现:工程可构建可运行,素材 tab 显示接入提示。+// @demos = 仓库 demos/(相对符号链接 demosrc,进库)——158 张镜头卡的 demo 源码直接当动效库。+// preserveSymlinks 让两者按虚拟路径解析,其 'react'/'remotion' 裸导入+// 落到本工程 node_modules(避免双实例);src/proj.d.ts 让 tsc 不检查外部源码。+const root = fileURLToPath(new URL(".", import.meta.url));+// 工程链接了但没写 src/workbench.ts 清单时也回退到 stub(工作台只 import @proj/workbench 这一个模块)+const proj = existsSync(path.join(root, "proj", "workbench.ts")) ? "proj" : "proj-stub";++/** 导出成片:dev server 内起 Remotion CLI 渲染,+ * 前端 POST /api/export 提交工程 JSON,轮询 GET /api/export/:id 取进度。 */+type ExportJob = {+ status: "running" | "done" | "error";+ progress: number; // 0..1+ output: string; // 相对 workbench 的输出路径+ lastLine: string;+ logTail: string[];+};++const renderExportPlugin = (): Plugin => {+ const jobs = new Map<string, ExportJob>();+ const stripAnsi = (s: string) => s.replace(/\x1b\[[0-9;]*[A-Za-z]/g, "");++ return {+ name: "wb-render-export",+ configureServer(server) {+ // 每个任务结束(成功/失败/同步失败)都即时删除 props 文件;启动时清掉历史残留+ const exportsDir = path.join(root, "exports");+ if (existsSync(exportsDir)) {+ for (const f of readdirSync(exportsDir)) {+ if (/^\.props-[a-z0-9]+\.json$/.test(f)) rmSync(path.join(exportsDir, f), { force: true });+ }+ }+ server.middlewares.use("/api/export", (req, res) => {+ const send = (code: number, body: unknown) => {+ res.statusCode = code;+ res.setHeader("Content-Type", "application/json");+ res.end(JSON.stringify(body));+ };+ const sub = (req.url ?? "/").split("?")[0];++ // POST /api/export —— 提交渲染+ if (req.method === "POST" && (sub === "/" || sub === "")) {+ if ([...jobs.values()].some((j) => j.status === "running")) {+ send(409, { error: "已有渲染在进行中" });+ return;+ }+ let raw = "";+ req.on("data", (c) => (raw += c));+ req.on("end", () => {+ let project: { name?: string };+ try {+ project = JSON.parse(raw).project;+ if (!project) throw new Error("no project");+ } catch {+ send(400, { error: "缺少工程 JSON" });+ return;+ }+ const id = Date.now().toString(36);+ const outDir = path.join(root, "exports");+ mkdirSync(outDir, { recursive: true });+ const stamp = new Date().toISOString().slice(0, 19).replace(/[:T]/g, "-");+ const safeName =+ (project.name ?? "工程").replace(/[^\w一-龥·-]+/g, "_").slice(0, 40) || "工程";+ const output = `exports/${safeName}-${stamp}.mp4`;+ const propsFile = path.join(outDir, `.props-${id}.json`);+ writeFileSync(propsFile, JSON.stringify({ project, renderExact: true }));+ const dropProps = () => rmSync(propsFile, { force: true });++ const job: ExportJob = {+ status: "running",+ progress: 0,+ output,+ lastLine: "同步素材…",+ logTail: [],+ };+ jobs.set(id, job);++ const onChunk = (buf: Buffer) => {+ const lines = stripAnsi(buf.toString()).split(/[\r\n]+/).filter((l) => l.trim());+ for (const line of lines) {+ job.lastLine = line.trim();+ job.logTail = [...job.logTail, line.trim()].slice(-40);+ // Remotion CLI 进度形如 "Rendered 123/5544",取最后一处 a/b+ const m = [...line.matchAll(/(\d+)\/(\d+)/g)].pop();+ if (m && Number(m[2]) > 0) job.progress = Number(m[1]) / Number(m[2]);+ }+ };++ // Remotion 静态服务器默认拒绝服务符号链接(lstat 到 symlink 一律 404),+ // 而 public/ 下全是指向成片工程 / 仓库素材库的符号链接——渲染前先解引用同步成+ // 真实文件目录,再用 --public-dir 指过去。cardpreviews 仅 UI 用,排除。+ const renderPublic = path.join(root, ".render-public");+ const rsync = spawn(+ "rsync",+ ["-aL", "--delete", "--exclude=cardpreviews", "public/", `${renderPublic}/`],+ { cwd: root },+ );+ rsync.stderr.on("data", onChunk);+ rsync.on("close", (rc) => {+ if (rc !== 0) {+ dropProps();+ job.status = "error";+ job.lastLine = `素材同步失败(rsync 退出码 ${rc}):${job.lastLine}`;+ return;+ }+ const bin = path.join(root, "node_modules", ".bin", "remotion");+ const child = spawn(+ bin,+ [+ "render",+ "src/remotion/index.ts",+ "Main",+ output,+ `--props=${propsFile}`,+ `--public-dir=${renderPublic}`,+ ],+ { cwd: root },+ );+ child.stdout.on("data", onChunk);+ child.stderr.on("data", onChunk);+ child.on("close", (code) => {+ dropProps(); // Remotion CLI 启动时已读完 props,成功失败都不再需要+ job.status = code === 0 ? "done" : "error";+ if (code === 0) job.progress = 1;+ else {+ // 把最有信息量的错误行顶到 UI(否则 lastLine 常是堆栈尾行)+ const err = job.logTail.find((l) => l.includes("Error"));+ if (err) job.lastLine = err;+ }+ });+ });+ send(200, { id });+ });+ return;+ }++ // GET /api/export/:id —— 查进度+ const m = sub.match(/^\/([a-z0-9]+)(\/reveal)?$/);+ const job = m ? jobs.get(m[1]) : undefined;+ if (!job) {+ send(404, { error: "任务不存在" });+ return;+ }+ // POST /api/export/:id/reveal —— Finder 里显示成片+ if (req.method === "POST" && m![2]) {+ if (process.platform === "darwin") spawn("open", ["-R", path.join(root, job.output)]);+ send(200, { ok: true });+ return;+ }+ send(200, job);+ });+ },+ };+};++export default defineConfig({+ plugins: [react(), renderExportPlugin()],+ // 5198:与 video-talkcraft 的工作台(5199)错开,两边可同时开+ server: { port: 5198, strictPort: true },+ resolve: {+ preserveSymlinks: true,+ alias: { "@proj": path.join(root, proj), "@demos": path.join(root, "demosrc") },+ },+ // 外部工程 / demo 源码经符号链接进来,依赖预构建要认得它们的裸导入+ optimizeDeps: { include: ["react", "react-dom", "remotion", "@remotion/motion-blur"] },+});