Skip to content

WorldPlay2: Extending Real-Time Interactive World Models in Control and Horizon

Python

feat: add WorldPlay2 Reactor integration and interactive demo

Rising03215df46b7172fb
diff --git a/.dockerignore b/.dockerignore
new file mode 100644
index 0000000..afa20b4
--- /dev/null
+++ b/.dockerignore
@@ -0,0 +1,25 @@
+__pycache__/
+**/__pycache__/
+*.py[cod]
+*.egg-info/
+.ruff_cache/
+.venv/
+venv/
+.git/
+.gitignore
+.idea/
+.vscode/
+.env
+.env.*
+weights/
+checkpoints/
+outputs/
+recordings/
+*.safetensors
+*.pt
+*.pth
+*.ckpt
+*.log
+# Not part of the served model
+reactor/demo/
+reactor/assets/
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..fafad19
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,19 @@
+# JetBrains IDE settings
+# Model weights and local environments are never part of the integration.
+.idea/
+__pycache__/
+*.pyc
+.ruff_cache/
+.venv/
+.env
+.env.*
+!.env.example
+checkpoints/
+/weights/
+outputs/
+recordings/
+*.safetensors
+*.pt
+*.pth
+*.ckpt
+*.log
diff --git a/README.md b/README.md
index a7c1ef4..3b05776 100644
--- a/README.md
+++ b/README.md
@@ -6,9 +6,14 @@
<a href=https://worldplay2.github.io/ target="_blank"><img src=https://img.shields.io/badge/Project%20Page-333399.svg?logo=homepage height=22px></a>
<a href=https://arxiv.org/abs/2609.35560 target="_blank"><img src=https://img.shields.io/badge/arXiv-b5212f.svg?logo=arxiv height=22px></a>
<a href=https://www.youtube.com/watch?v=_pFzHHslhgc target="_blank"><img src=https://img.shields.io/badge/YouTube%20Video-FF0000.svg?logo=youtube height=22px></a>
+ <a href="https://reactor.inc/worldplay2" target="_blank"><img src="reactor/assets/try-on-reactor.svg" alt="Try it on Reactor" height="22"></a>
</div>
+## 📰 News
+
+WorldPlay2 is now on Reactor! [Play in your browser](https://reactor.inc/worldplay2), or [deploy it locally](reactor/README.md) with the Reactor integration and demo frontend in this repository.
+
## 🎥 Video
https://github.com/user-attachments/assets/3264efa7-ef6a-4c7b-a043-d819264a93bd
@@ -119,6 +124,27 @@ set `NPROC_PER_NODE` to match your GPU count. For one GPU, also set
All input items are processed, and videos are saved as `<output_name>.mp4` in
`OUTPUT_PATH`.
+## ⚡ Quick Start with Reactor Runtime
+
+The [`reactor/`](reactor/README.md) integration serves WorldPlay2 as an interactive model with a browser frontend. The default configuration uses 4 NVIDIA B200 GPUs, Docker and the NVIDIA Container Toolkit. Follow the [Reactor setup guide](reactor/README.md#1-install-the-reactor-cli) to install the CLI and prepare the weights under `weights/base` and `weights/fast`.
+
+Build and start the model from the repository root, selecting four available GPUs:
+
+```bash
+reactor build
+reactor run --gpus '"device=0,1,2,3"' --port 8080
+```
+
+Once `http://localhost:8080/health` reports `"state":"available"`, open another terminal at the repository root and start the frontend (Node.js 20+ and pnpm required):
+
+```bash
+cd reactor/demo
+pnpm install --frozen-lockfile
+pnpm dev
+```
+
+Open [http://localhost:3000](http://localhost:3000), select the **Local** endpoint (`http://localhost:8080`), and click **Connect**. Choose an example or add your own image and prompt to start playing, then use **WASD** to move and the **arrow keys** to look around. For a remote GPU machine, see the [connection instructions](reactor/README.md#4-open-the-client), including WebRTC requirements for SSH access.
+
## 📖 Input Format
Provide a JSON array. Relative image paths are resolved from the JSON file's
diff --git a/reactor.yaml b/reactor.yaml
new file mode 100644
index 0000000..285f2ac
--- /dev/null
+++ b/reactor.yaml
@@ -0,0 +1,42 @@
+$schema: reactor/v2
+
+model:
+ name: worldplay2
+ version: 0.1.0
+ public: false
+ description: Steer an uploaded scene with native WorldPlay2 action-conditioned chunks.
+ resources:
+ gpu:
+ type: NVIDIA_B200
+ count: 4
+ cpu:
+ request: "8"
+ limit: "16"
+ memory:
+ request: 64Gi
+ limit: 256Gi
+
+runtime:
+ import: reactor.worldplay2_app:WorldPlay2
+ config: reactor/worldplay2.yaml
+ weights_path: ./weights
+
+build:
+ runtime_version: "3.6.1"
+ python_requirements: reactor/requirements.txt
+ # Keep non-Torch packages on PyPI; the CUDA index can lag NumPy releases.
+ python_indexes:
+ - https://pypi.org/simple
+ cuda_version: "12.8.1"
+ python_version: "3.12"
+ system_packages:
+ - build-essential
+ - git
+ - ffmpeg
+ run:
+ - pip install --no-cache-dir --no-build-isolation flash-attn==2.8.3
+ # FlashAttention 4 after FlashAttention 2: both wheels ship flash_attn/cute, and FA4's must win.
+ - pip install --no-cache-dir flash-attn-4==4.0.0b33
+ runtime_env:
+ TOKENIZERS_PARALLELISM: "false"
+ OMP_NUM_THREADS: "8"
diff --git a/reactor/LICENSE b/reactor/LICENSE
new file mode 100644
index 0000000..d645695
--- /dev/null
+++ b/reactor/LICENSE
@@ -0,0 +1,202 @@
+
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright [yyyy] [name of copyright owner]
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
diff --git a/reactor/NOTICE b/reactor/NOTICE
new file mode 100644
index 0000000..65e87c1
--- /dev/null
+++ b/reactor/NOTICE
@@ -0,0 +1,9 @@
+WorldPlay2 on the Reactor runtime.
+
+Adapted from https://github.com/reactor-team/reactor-worldplay2, which distributes
+its integration under Apache-2.0 (see LICENSE).
+
+The upstream WorldPlay2 release (https://github.com/WorldPlay2/WorldPlay2) declares
+CC-BY-NC-4.0 in ../LICENSE.txt. Reused upstream code retains its licence.
+Files derived from Wan2.2 (https://github.com/Wan-Video/Wan2.2) retain the Alibaba
+Wan Team copyright notices. Modified files are identified in their headers.
diff --git a/reactor/README.md b/reactor/README.md
new file mode 100644
index 0000000..acf9d7e
--- /dev/null
+++ b/reactor/README.md
@@ -0,0 +1,220 @@
+# WorldPlay2 on Reactor
+
+Real-time, playable [WorldPlay2](https://github.com/WorldPlay2/WorldPlay2), powered by
+[Reactor](https://reactor.inc). Upload an image of a scene, describe it, and walk through it
+in real time: the model streams video chunk by chunk while you steer with movement and look controls.
+
+![WorldPlay2 running interactively in the Reactor demo](assets/demo.png)
+
+What this integration adds to WorldPlay2:
+
+- **It runs as a Reactor app.** WorldPlay2 is integrated with the [Reactor runtime](https://github.com/reactor-team/reactor-runtime), so the model is a
+ service on your own GPU machine that any Reactor client can drive: the included frontend, or one you
+ build.
+- **It plays in real time.** It streams at a steady 17 frames per second on 4 B200 GPUs.
+- **It deploys as an API.** A step-by-step guide to deploying it to Reactor with the `reactor` CLI.
+
+It takes two steps, and each one supports different work:
+
+| Step | What you get | What it supports |
+| --- | --- | --- |
+| **1. Run it locally** (this README) | The model served on your own GPUs, with a local address any client can connect to | Playing it in the included frontend. Building your own frontend or app against it and debugging the app end to end. Debugging the model, benchmarking and evaluating it, all interactively, at the speed people will play it |
+| **2. Serve it as an API** ([DEPLOY.md](https://github.com/reactor-team/reactor-worldplay2/blob/main/DEPLOY.md)) | The same model as a hosted API on Reactor, reachable from anywhere | Sharing a demo with anyone through a link. Shipping your app, or anything built on the model, to your users |
+
+The client side does not change between the two: a frontend or app built against the local model
+connects to the hosted API by switching its endpoint (the included frontend supports both through its
+endpoint list). Deployment is enabled per account by the Reactor team: ask us in the [Reactor community Slack](https://join.slack.com/t/reactorcommunity/shared_invite/zt-491hb5jwj-9K4~yG58uSWLtGa03omd2Q).
+
+## What you need
+
+- A Linux machine with **4 NVIDIA B200 GPUs**, Docker and the
+ [NVIDIA Container Toolkit](https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/install-guide.html).
+- About 82 GB of disk for the weights, plus room for the Docker image.
+- Python 3 (for the Hugging Face download tool).
+- On the machine where you open the browser: this repository, Node.js 20+ and [pnpm](https://pnpm.io/installation).
+
+Run every command from the root of this repository.
+
+## 1. Install the reactor CLI
+
+```sh
+# macOS or Linux, with Homebrew (keep it current with: reactor upgrade)
+brew install reactor-team/tools/reactor-cli
+
+# Linux without Homebrew (ARCH=amd64 or arm64), into ~/.local/bin
+ARCH=amd64
+mkdir -p ~/.local/bin
+curl -fsSL "https://releases.reactor.inc/reactor-cli/latest/reactor-cli_linux-${ARCH}.tar.gz" \
+ | tar -xz -C ~/.local/bin
+export PATH="$HOME/.local/bin:$PATH"
+```
+
+**Check:** `reactor version` prints a version.
+
+## 2. Get the weights
+
+The base files come from the public [Wan2.2-I2V-A14B](https://huggingface.co/Wan-AI/Wan2.2-I2V-A14B)
+repository (about 12 GB; only the files below, not its expert shards):
+
+```sh
+python3 -m venv .venv && . .venv/bin/activate
+pip install -U "huggingface_hub[cli]"
+hf download Wan-AI/Wan2.2-I2V-A14B \
+ --include "models_t5_umt5-xxl-enc-bf16.pth" \
+ --include "Wan2.1_VAE.pth" \
+ --include "google/umt5-xxl/*" \
+ --include "high_noise_model/config.json" \
+ --include "low_noise_model/config.json" \
+ --local-dir ./weights/base
+```
+
+The two expert files (34.9 GB each) are the few-step (autoregressive, 4-step) WorldPlay2 model,
+published by the WorldPlay2 team as
+[WorldPlay2-Fast](https://huggingface.co/aejion/WorldPlay2-Fast) on Hugging Face:
+
+```sh
+hf download aejion/WorldPlay2-Fast \
+ --include "high_noise_model/diffusion_pytorch_model.safetensors" \
+ --include "low_noise_model/diffusion_pytorch_model.safetensors" \
+ --local-dir ./weights/fast
+```
+
+The two files must end up at exactly these paths:
+
+```text
+weights/fast/high_noise_model/diffusion_pytorch_model.safetensors
+weights/fast/low_noise_model/diffusion_pytorch_model.safetensors
+```
+
+**Check:** `find weights -type f -not -path '*/.cache/*' | wc -l` prints `10`, and
+`du -sh --si weights` prints about `82G`.
+
+## 3. Start the model
+
+```sh
+reactor run --gpus all --port 8080
+```
+
+The first start builds the Docker image, then loads about 82 GB of weights onto the 4 GPUs and
+warms up, which takes about a minute on 4 B200s once the weights are in the file cache. Leave it running in this terminal; `Ctrl+C`
+stops it. On a shared machine, pin 4 free GPUs instead of `all`: `--gpus '"device=0,1,2,3"'`.
+
+**Check:** in another terminal, `curl -s localhost:8080/health` reports `"state":"available"`. Until then it
+reports `"state":"loading"`. If the model stops after an error, stop `reactor run` and start it again:
+reconnecting the client alone does not restart it.
+
+## 4. Open the client
+
+On the machine with your browser:
+
+```sh
+cd reactor/demo && cp .env.example .env && pnpm install && pnpm dev
+```
+
+Open http://localhost:3000 and pick the **Local** endpoint. If the model runs on another machine,
+edit that endpoint's URL in the page to `http://<gpu-host>:8080` (or add an entry in
+`reactor/demo/endpoints.local.json`, see [demo/README.md](demo/README.md)). The browser must reach the GPU host
+over WebRTC: forwarding only the HTTP port through SSH does not carry the video. For SSH-only
+access, also configure a TURN-over-TCP relay and forward its TCP port.
+
+Pick an example from the gallery (each comes with its image and prompt) or add your own image and
+prompt, and start.
+
+**Check:** video appears and responds to the controls.
+
+This frontend is one example application, built on Reactor's JavaScript SDK. You can build your own
+in other languages too.
+
+<details>
+<summary><b>Build your own app with the Reactor SDKs</b> (JavaScript, Python, C++, Swift, Java)</summary>
+
+Once the model is running, locally or as an API, an app reaches it through a Reactor SDK: it opens a
+session, sends commands (an image, a prompt, movement), and receives the video and events. Every SDK
+connects to a local model as well as a hosted one, so you can build and debug an app on your own
+machine and point the same code at the API later.
+
+| SDK | Install | Suited to |
+| --- | --- | --- |
+| JavaScript / React | `npm install @reactor-team/js-sdk` | Browser apps. The included frontend is built on it |
+| Python | `pip install reactor-sdk` | Scripts, servers, evaluation and computer-vision pipelines (frames arrive as NumPy arrays) |
+| C++ | prebuilt archive, CMake `find_package(reactor-sdk)` | Native apps: engines, capture pipelines, desktop clients |
+| Swift | SwiftPM package | macOS and iOS apps |
+| Java | Java 22+ library | JVM applications |
+
+See [Using the SDK](https://docs.reactor.inc/sdk-reference/using-the-sdk) for each one, and this
+model's commands in [`worldplay2_types.py`](worldplay2_types.py) or its served schema
+(`GET /schema` on the running model).
+
+</details>
+
+The frontend's endpoint is a pointer to wherever the model runs. Debug against your own machine,
+then switch the pointer to the API once the model is deployed; nothing else in the client changes:
+
+```mermaid
+flowchart LR
+ FE["Frontend or your app<br/>(endpoint = pointer)"]
+ LOCAL["Your GPU machine<br/>http://localhost:8080<br/>reactor run"]
+ CLOUD["Reactor platform<br/>https://api.reactor.inc<br/>deployed model"]
+ FE -- "1. develop and debug locally" --> LOCAL
+ FE -. "2. switch the endpoint after deploying" .-> CLOUD
+```
+
+**The same frontend reaches the model once it is deployed** ([DEPLOY.md](https://github.com/reactor-team/reactor-worldplay2/blob/main/DEPLOY.md)). Put your Reactor
+API key in `reactor/demo/.env` as `REACTOR_API_KEY`, add a hosted **Reactor** endpoint
+(`https://api.reactor.inc`, `apiKeyEnv: "REACTOR_API_KEY"`) in `reactor/demo/endpoints.local.json`, and select it:
+the page then plays the model served on the Reactor platform instead of
+the one on your machine. The key stays on the frontend's server, which exchanges it for a short-lived
+session token; the browser never sees it. If your model is deployed under a name other than
+`worldplay2` (for example `<org>/worldplay2`), set `modelName` on that endpoint in
+`reactor/demo/endpoints.local.json` (see [demo/README.md](demo/README.md)).
+
+## Controls
+
+Choose first-person (`fps`) or third-person (`tps`), pick an image, write a prompt that describes the
+scene (the examples come with one), then start a fresh world.
+
+| Control | Effect |
+| --- | --- |
+| Image | Start a new world from a PNG, JPEG or WebP and its prompt. |
+| Prompt | Change the text for upcoming video, keeping the current world. |
+| Movement, turn, look, Space | Held until changed; choose `none` and uncheck Space to stop. |
+| Perspective | Switch between first- and third-person controls. |
+| Yaw / pitch degrees | Turning and looking speed. |
+| Reset | Restart the same image with a seed, keeping prompt and controls. |
+
+Prompts take the form `The scene in the video is: ...`; third-person prompts add
+`The character is: ...`, and `The event is: ...` when needed. Changes apply after the video already
+buffered. A world ends after 256 chunks, the model's limit; reset or pick an image to continue.
+
+## More
+
+- **Upstream code:** the [official WorldPlay2 code](https://github.com/WorldPlay2/WorldPlay2).
+- **Deploy:** publishing a release and deploying it on the Reactor platform with the `reactor` CLI,
+ step by step, is in [DEPLOY.md](https://github.com/reactor-team/reactor-worldplay2/blob/main/DEPLOY.md). Platform docs: https://docs.reactor.inc/deploy.
+- **Code map:** `worldplay2_app.py` (client commands and session), `worldplay2_model.py`
+ (model and settings), `worldplay2_types.py` (controls and messages), `acceleration/` (runtime
+ code), `inference/` (streaming and optimized model extensions), `worldplay2.yaml` (settings),
+ `demo/` (client). These live under `reactor/`; shared inference components are imported from
+ the upstream `worldplay2/` and `configs/` packages. The root `reactor.yaml` builds both together.
+
+## Where this is going
+
+We want Reactor to power real-time, interactive models like WorldPlay2: running them on your own GPUs
+while you build, and serving them to anyone once you ship. This integration is one step in that
+direction.
+
+If you have suggestions for the Reactor runtime or the Reactor platform, or something here got in your
+way, we would like to hear it: open an issue on the
+[Reactor runtime repository](https://github.com/reactor-team/reactor-runtime/issues) or in this one, or
+talk to us in the [Reactor community Slack](https://join.slack.com/t/reactorcommunity/shared_invite/zt-491hb5jwj-9K4~yG58uSWLtGa03omd2Q).
+
+## Credits
+
+Thanks to [Rising0321](https://github.com/Rising0321), [Orion-Zheng](https://github.com/Orion-Zheng), and [notrealzapa](https://github.com/notrealzapa) for porting WorldPlay2 to Reactor and optimizing the inference infrastructure.
+
+## Licence
+
+The Reactor integration retains the team's [LICENSE](LICENSE) and [NOTICE](NOTICE).
+The upstream WorldPlay2 release declares CC-BY-NC-4.0 in [LICENSE.txt](../LICENSE.txt);
+its code remains subject to that licence. Files derived from Wan2.2 keep the Alibaba Wan Team
+copyright notices. The weights are under the licences of their Hugging Face repositories.
diff --git a/reactor/__init__.py b/reactor/__init__.py
new file mode 100644
index 0000000..55f1aa6
--- /dev/null
+++ b/reactor/__init__.py
@@ -0,0 +1 @@
+"""WorldPlay2's interactive Reactor application and inference extensions."""
diff --git a/reactor/acceleration/__init__.py b/reactor/acceleration/__init__.py
new file mode 100644
index 0000000..e8249e5
--- /dev/null
+++ b/reactor/acceleration/__init__.py
@@ -0,0 +1,256 @@
+"""Runtime kernels for WorldPlay2."""
+
+from __future__ import annotations
+
+
+import numpy as np
+import torch
+import triton
+import triton.language as tl
+
+from ..inference import model as wp2_model
+
+from . import vae_split
+
+_INSTALLED: list[tuple[object, str, object]] = []
+_MISSING = object()
+
+
+def _set(obj, name, fn):
+ previous = obj.__dict__.get(name, _MISSING) if not isinstance(obj, type(torch)) else getattr(obj, name)
+ setattr(obj, name, fn)
+ _INSTALLED.append((obj, name, previous))
+
+
+def _set_value(obj, name, value):
+ _INSTALLED.append((obj, name, getattr(obj, name)))
+ setattr(obj, name, value)
+
+
+def _install_fp32_tables(pipeline):
+ _set_value(wp2_model, "TABLE_DTYPE", torch.float32)
+ for model in _experts(pipeline):
+ _set_value(model, "freqs", model.freqs.to(torch.complex64))
+
+
+def _install_tf32():
+ _set_value(torch.backends.cuda.matmul, "allow_tf32", True)
+ _set_value(torch.backends.cudnn, "allow_tf32", True)
+
+
+def _experts(pipeline):
+ return (pipeline._find_wan_model(pipeline.high_noise_model),
+ pipeline._find_wan_model(pipeline.low_noise_model))
+
+
+_PREFILL_MASKS = {}
+
+
+def _prefill_bias(sq, l_tot, l_pre, n_new_cmp, n_tmp, ccc, dtype, device):
+ key = (sq, l_tot, l_pre, n_new_cmp, n_tmp, ccc, dtype, device)
+ bias = _PREFILL_MASKS.get(key)
+ if bias is None:
+ mask = torch.zeros(sq, l_tot, dtype=torch.bool, device=device)
+ if n_new_cmp > 0:
+ step = ccc if ccc > 0 else n_new_cmp
+ for rs in range(0, n_new_cmp, step):
+ re = min(rs + step, n_new_cmp)
+ mask[rs:re, :min(l_pre + re, l_pre + n_new_cmp)] = True
+ if n_tmp > 0:
+ mask[n_new_cmp:sq, :l_tot] = True
+ bias = torch.zeros(sq, l_tot, dtype=dtype, device=device).masked_fill_(~mask, float("-inf"))
+ bias = bias.unsqueeze(0).unsqueeze(0)
+ if len(_PREFILL_MASKS) > 8:
+ _PREFILL_MASKS.clear()
+ _PREFILL_MASKS[key] = bias
+ return bias
+
+
+def _install_prefill_attention(pipeline, mode):
+ _PREFILL_MASKS.clear()
+ for model in _experts(pipeline):
+ for block in model.blocks:
+ _set(block.self_attn, "prefill_attention", mode)
+ _set(block.self_attn, "prefill_bias", _prefill_bias)
+
+
+def _install_switches(pipeline, pipeline_flags=(), model_flags=()):
+ for name in pipeline_flags:
+ _set(pipeline, name, True)
+ for model in _experts(pipeline):
+ for name in model_flags:
+ _set(model, name, True)
+
+
+def _qk_rms_rope_kernel(x_ptr, stride_b, stride_s, w_ptr, cos_ptr, sin_ptr, out_ptr,
+ seq, eps,
+ DIM: tl.constexpr, HALF: tl.constexpr, BLOCK: tl.constexpr):
+ row = tl.program_id(0)
+ b = row // seq
+ s = row - b * seq
+ pair = tl.arange(0, BLOCK)
+ mask = pair < DIM // 2
+ base = x_ptr + b * stride_b + s * stride_s
+ even = tl.load(base + 2 * pair, mask=mask, other=0.0).to(tl.float32)
+ odd = tl.load(base + 2 * pair + 1, mask=mask, other=0.0).to(tl.float32)
+ total = tl.sum(even * even + odd * odd, axis=0)
+ inv = 1.0 / tl.sqrt(total / DIM + eps)
+ w_even = tl.load(w_ptr + 2 * pair, mask=mask, other=0.0).to(tl.float32)
+ w_odd = tl.load(w_ptr + 2 * pair + 1, mask=mask, other=0.0).to(tl.float32)
+ even = ((even * inv).to(tl.bfloat16).to(tl.float32) * w_even).to(tl.bfloat16).to(tl.float32)
+ odd = ((odd * inv).to(tl.bfloat16).to(tl.float32) * w_odd).to(tl.bfloat16).to(tl.float32)
+ freq = s * HALF + pair % HALF
+ cos = tl.load(cos_ptr + freq, mask=mask, other=0.0)
+ sin = tl.load(sin_ptr + freq, mask=mask, other=0.0)
+ out = out_ptr + row * DIM
+ tl.store(out + 2 * pair, (even * cos - odd * sin).to(tl.bfloat16), mask=mask)
+ tl.store(out + 2 * pair + 1, (even * sin + odd * cos).to(tl.bfloat16), mask=mask)
+
+
+def _rms_rope(x, weight, cos, sin, eps, num_heads, head_dim):
+ batch, seq, dim = x.shape
+ out = torch.empty((batch, seq, num_heads, head_dim), device=x.device, dtype=torch.bfloat16)
+ if batch * seq:
+ _qk_rms_rope_kernel[(batch * seq,)](
+ x, x.stride(0), x.stride(1), weight, cos, sin, out, seq, eps,
+ DIM=dim, HALF=head_dim // 2, BLOCK=triton.next_power_of_2(dim // 2), num_warps=8)
+ return out
+
+
+def fixed_qk_norm_rope(q, k, norm_q_weight, norm_k_weight, freqs_flat, *, eps, num_heads, head_dim,
+ compile_enabled):
+ if (q.dtype != torch.bfloat16 or k.dtype != torch.bfloat16 or q.stride(-1) != 1
+ or k.stride(-1) != 1 or norm_q_weight.dtype != torch.bfloat16
+ or q.shape[-1] != num_heads * head_dim):
+ return _ORIGINAL_QK(q, k, norm_q_weight, norm_k_weight, freqs_flat, eps=eps,
+ num_heads=num_heads, head_dim=head_dim, compile_enabled=compile_enabled)
+ cos = freqs_flat.real.float().contiguous()
+ sin = freqs_flat.imag.float().contiguous()
+ return (_rms_rope(q, norm_q_weight, cos, sin, eps, num_heads, head_dim),
+ _rms_rope(k, norm_k_weight, cos, sin, eps, num_heads, head_dim), True)
+
+
+_ORIGINAL_QK = wp2_model.run_qk_norm_rope
+
+
+def _install_fixed_qk(pipeline):
+ _set(wp2_model, "run_qk_norm_rope", fixed_qk_norm_rope)
+
+
+def rgb8(rgb):
+ return rgb.float().clamp(-1, 1).add(1).mul(127.5).to(dtype=torch.uint8).permute(1, 2, 3, 0).contiguous()
+
+
+def _install_async_rgb(pipeline, engine):
+ side = torch.cuda.Stream()
+ decode = pipeline._decode_chunk_and_lr_encode
+ original = engine._host_frames
+ pending = {}
+
+ def decode_and_start_copy(*args, **kwargs):
+ out = decode(*args, **kwargs)
+ rgb = out[1]
+ pending.clear()
+ if rgb is not None and rgb.is_cuda:
+ side.wait_stream(torch.cuda.current_stream())
+ with torch.cuda.stream(side):
+ u8 = rgb8(rgb)
+ host = torch.empty(u8.shape, dtype=torch.uint8, pin_memory=True)
+ host.copy_(u8, non_blocking=True)
+ done = torch.cuda.Event()
+ done.record(side)
+ rgb.record_stream(side)
+ pending.update(rgb=rgb, u8=u8, host=host, done=done)
+ return out
+
+ def host_frames(rgb) -> np.ndarray:
+ slot = dict(pending)
+ pending.clear()
+ if slot.get("rgb") is rgb:
+ slot["done"].synchronize()
+ return slot["host"].numpy()
+ return original(rgb)
+
+ _set(pipeline, "_decode_chunk_and_lr_encode", decode_and_start_copy)
+ _set(engine, "_host_frames", host_frames)
+
+
+TECHNIQUES = {
+ "fp32_tables": lambda p, e: _install_fp32_tables(p),
+ "tf32": lambda p, e: _install_tf32(),
+ "zero_tail_clip": lambda p, e: _install_switches(p, ("lazy_zero_clip",)),
+ "kv_inplace": lambda p, e: _install_switches(p, ("kv_inplace",)),
+ "rope_window": lambda p, e: _install_switches(p, model_flags=("rope_window",)),
+ "e0_slice": lambda p, e: _install_switches(p, ("slim_memory",), ("e0_slice",)),
+ "compress_window": lambda p, e: _install_switches(p, ("compress_window",)),
+ "chunk_stream": lambda p, e: _install_switches(p, ("chunk_stream",)),
+ "chunk_noise": lambda p, e: _set(p, "noise_mode", "chunk"),
+ "prefill_split": lambda p, e: _install_prefill_attention(p, "split"),
+ "fixed_qk_norm_rope": lambda p, e: _install_fixed_qk(p),
+ "vae_split": lambda p, e: vae_split.install(p, _set),
+ "prefill_mask_cache": lambda p, e: _install_prefill_attention(p, "bias"),
+ "async_rgb": _install_async_rgb,
+}
+
+_GENERIC = ("zero_tail_clip", "kv_inplace", "rope_window", "e0_slice", "prefill_split")
+_WINDOWED = ("compress_window", "chunk_stream")
+LOSSLESS = {
+ 1: _GENERIC + ("async_rgb",),
+ 2: _GENERIC + ("vae_split", "async_rgb"),
+ 4: _GENERIC + ("vae_split", "async_rgb"),
+}
+NUM_EQUAL = {n: _WINDOWED + ("fp32_tables", "tf32", "chunk_noise") for n in (1, 2, 4)}
+_ORDER = ("fp32_tables", "tf32", "fixed_qk_norm_rope") + _GENERIC + _WINDOWED + (
+ "chunk_noise", "vae_split", "prefill_mask_cache", "async_rgb")
+
+
+def install(pipeline, names, engine=None):
+ unknown = [name for name in names if name not in TECHNIQUES]
+ if unknown:
+ raise ValueError(f"not a lossless technique: {unknown}")
+ if "async_rgb" in names and engine is None:
+ raise ValueError("async_rgb needs the WorldPlay2Model that owns the pipeline")
+ return {name: TECHNIQUES[name](pipeline, engine) for name in names}
+
+
+def _install_release_on_reset(pipeline, engine, split_decoders=()):
+ reset = engine.reset
+
+ def release_reset():
+ reset()
+ for decoder in split_decoders:
+ decoder.reset()
+ _PREFILL_MASKS.clear()
+
+ _set(engine, "reset", release_reset)
+
+
+def select(world_size, fidelity="lossless", disabled=()):
+ if fidelity not in ("lossless", "num-equal"):
+ raise ValueError(f"fidelity must be lossless or num-equal, got {fidelity!r}")
+ names = set(LOSSLESS[world_size])
+ if fidelity == "num-equal":
+ names |= set(NUM_EQUAL[world_size])
+ unknown = [name for name in disabled if name not in TECHNIQUES]
+ if unknown:
+ raise ValueError(f"not a technique: {unknown}")
+ names -= set(disabled)
+ return tuple(name for name in _ORDER if name in names)
+
+
+def install_lossless(engine, fidelity="lossless", disabled=()):
+ names = select(engine.world_size, fidelity, disabled)
+ installed = install(engine._pipeline, names, engine)
+ split = [installed["vae_split"]] if "vae_split" in installed else []
+ _install_release_on_reset(engine._pipeline, engine, split)
+ return names
+
+
+def uninstall():
+ while _INSTALLED:
+ obj, name, previous = _INSTALLED.pop()
+ if previous is _MISSING:
+ obj.__dict__.pop(name, None)
+ else:
+ setattr(obj, name, previous)
diff --git a/reactor/acceleration/flash_attention4.py b/reactor/acceleration/flash_attention4.py
new file mode 100644
index 0000000..0dfb9d0
--- /dev/null
+++ b/reactor/acceleration/flash_attention4.py
@@ -0,0 +1,56 @@
+"""FlashAttention 4 for WorldPlay2's non-causal attention."""
+
+from __future__ import annotations
+
+import torch
+from flash_attn.cute import flash_attn_func
+
+from ..inference import model as wp2_model
+
+_ORIGINAL: dict[str, object] = {}
+
+
+def fa4(q, k, v, softmax_scale=None):
+ """Non-causal attention on ``[B, S, H, D]`` bf16/fp16 tensors."""
+ out = flash_attn_func(q, k, v, softmax_scale=softmax_scale)
+ return out[0] if isinstance(out, tuple) else out
+
+
+def _dense(q, k, v, *, softmax_scale=None, causal=False):
+ if causal:
+ return _ORIGINAL["flash_attention_dense"](q, k, v, softmax_scale=softmax_scale, causal=causal)
+ return fa4(q, k, v, softmax_scale)
+
+
+def _varlen(q, k, v, q_lens=None, k_lens=None, dropout_p=0., softmax_scale=None, q_scale=None,
+ causal=False, window_size=(-1, -1), deterministic=False, dtype=torch.bfloat16, version=None):
+ if (q_lens is None and k_lens is None and not causal and q_scale is None and dropout_p == 0
+ and tuple(window_size) == (-1, -1) and q.dtype in (torch.bfloat16, torch.float16)):
+ return fa4(q, k, v, softmax_scale).type(q.dtype)
+ return _ORIGINAL["flash_attention"](
+ q, k, v, q_lens=q_lens, k_lens=k_lens, dropout_p=dropout_p, softmax_scale=softmax_scale,
+ q_scale=q_scale, causal=causal, window_size=window_size, deterministic=deterministic,
+ dtype=dtype, version=version)
+
+
+def install(pipeline) -> None:
+ if not _ORIGINAL:
+ _ORIGINAL["flash_attention_dense"] = wp2_model.flash_attention_dense
+ _ORIGINAL["flash_attention"] = wp2_model.flash_attention
+ wp2_model.flash_attention_dense = _dense
+ wp2_model.flash_attention = _varlen
+ for expert in (pipeline.high_noise_model, pipeline.low_noise_model):
+ for block in pipeline._find_wan_model(expert).blocks:
+ # The cache write runs on FA4 only where it is split into unmasked parts.
+ if block.self_attn.prefill_attention == "split":
+ _ORIGINAL.setdefault("prefill_attention", {})[block.self_attn] = "split"
+ block.self_attn.prefill_attention = "flash"
+
+
+def uninstall() -> None:
+ if not _ORIGINAL:
+ return
+ wp2_model.flash_attention_dense = _ORIGINAL.pop("flash_attention_dense")
+ wp2_model.flash_attention = _ORIGINAL.pop("flash_attention")
+ for module, mode in _ORIGINAL.pop("prefill_attention", {}).items():
+ module.prefill_attention = mode
diff --git a/reactor/acceleration/vae_split.py b/reactor/acceleration/vae_split.py
new file mode 100644
index 0000000..e0e034a
--- /dev/null
+++ b/reactor/acceleration/vae_split.py
@@ -0,0 +1,174 @@
+"""Multi-GPU VAE: every GPU works on one horizontal band of each frame.
+
+Decode: the decoder's low-resolution stages (up to and including the second temporal upsample) run
+on the whole frame on every GPU. From there on each GPU runs the remaining layers on its own band of
+rows, plus HALO rows of context on either side, which covers the receptive field of those layers.
+Rank 0 gathers the bands, re-encodes the low-resolution memory as before, and broadcasts it.
+
+Conditioning encode (the image clip encoded when a world is set up): the mirror image. Each GPU
+runs the full-resolution stage of the encoder on its band plus ENC_HALO rows, the bands are
+gathered on every GPU, and every GPU runs the rest of the encoder on the whole frame.
+"""
+
+import torch
+import torch.cuda.amp as amp
+import torch.distributed as dist
+import torch.nn.functional as F
+
+from ..inference.vae import CACHE_T, CausalConv3d, ResidualBlock
+
+SPLIT = 8 # first decoder.upsamples layer that runs per band (a quarter of the output resolution)
+HALO = 12 # context rows on either side of a band, at that resolution
+ENC_SPLIT = 3 # encoder.downsamples layers that run per band: the full-resolution stage
+ENC_HALO = 16 # context rows on either side of an encoder band, in input pixels (even)
+
+
+def _cached_conv(conv, x, feat_cache, feat_idx):
+ idx = feat_idx[0]
+ cache_x = x[:, :, -CACHE_T:].clone()
+ if cache_x.shape[2] < 2 and feat_cache[idx] is not None:
+ cache_x = torch.cat([feat_cache[idx][:, :, -1:].to(cache_x.device), cache_x], dim=2)
+ x = conv(x, feat_cache[idx])
+ feat_cache[idx] = cache_x
+ feat_idx[0] += 1
+ return x
+
+
+def _front(dec, x, feat_cache, feat_idx):
+ x = _cached_conv(dec.conv1, x, feat_cache, feat_idx)
+ for layer in dec.middle:
+ x = layer(x, feat_cache, feat_idx) if isinstance(layer, ResidualBlock) else layer(x)
+ for layer in dec.upsamples[:SPLIT]:
+ x = layer(x, feat_cache, feat_idx)
+ return x
+
+
+def _tail(dec, x, feat_cache, feat_idx):
+ for layer in dec.upsamples[SPLIT:]:
+ x = layer(x, feat_cache, feat_idx)
+ for layer in dec.head:
+ x = _cached_conv(layer, x, feat_cache, feat_idx) if isinstance(layer, CausalConv3d) else layer(x)
+ return x
+
+
+class BandDecoder:
+ def __init__(self, vae):
+ self.vae = vae
+ self.rank = dist.get_rank()
+ self.world = dist.get_world_size()
+
+ def decode(self, latent, is_first_chunk):
+ """Decode a ``[C, T, H, W]`` latent chunk. Returns the pixels on rank 0, None elsewhere."""
+ vae, model = self.vae, self.vae.model
+ dec = model.decoder
+ with amp.autocast(dtype=vae.dtype):
+ if is_first_chunk:
+ model.clear_decode_cache()
+ mean, inv_std = vae.scale
+ z = latent.unsqueeze(0).to(vae.dtype) / inv_std.view(1, model.z_dim, 1, 1, 1) + mean.view(1, model.z_dim, 1, 1, 1)
+ x = model.conv2(z)
+ frames = []
+ for i in range(x.shape[2]):
+ feat_idx = [0]
+ h = _front(dec, x[:, :, i:i + 1], model._feat_map, feat_idx)
+ height = h.shape[3]
+ if height % self.world:
+ raise ValueError(f"{height} decoder rows do not split over {self.world} GPUs")
+ rows = height // self.world
+ lo, hi = self.rank * rows, (self.rank + 1) * rows
+ elo, ehi = max(lo - HALO, 0), min(hi + HALO, height)
+ out = _tail(dec, h[:, :, :, elo:ehi].contiguous(), model._feat_map, feat_idx)
+ scale = out.shape[3] // (ehi - elo)
+ frames.append(out[:, :, :, (lo - elo) * scale:(hi - elo) * scale])
+ band = torch.cat(frames, 2).to(vae.dtype).clamp_(-1, 1).squeeze(0).contiguous()
+ bands = [torch.empty_like(band) for _ in range(self.world)] if self.rank == 0 else None
+ dist.gather(band, bands, dst=0)
+ return torch.cat(bands, dim=2) if self.rank == 0 else None
+
+ def reset(self):
+ self.vae.model.clear_decode_cache()
+
+
+class BandEncoder:
+ """One causal encoder step, split by rows: same interface as ``chunk_stream.FrameEncoder``."""
+
+ def __init__(self, vae):
+ self.vae = vae
+ self.rank = dist.get_rank()
+ self.world = dist.get_world_size()
+
+ def new_state(self):
+ from ..inference.vae import count_conv3d
+
+ return [None] * count_conv3d(self.vae.model.encoder)
+
+ def step(self, x, state):
+ model = self.vae.model
+ enc = model.encoder
+ x = x.to(self.vae.dtype)
+ height = x.shape[3]
+ rows = height // 2 // self.world # output rows of the full-resolution stage
+ lo, hi = self.rank * rows, (self.rank + 1) * rows
+ elo, ehi = max(2 * lo - ENC_HALO, 0), min(2 * hi + ENC_HALO, height)
+ feat_idx = [0]
+ h = _cached_conv(enc.conv1, x[:, :, :, elo:ehi].contiguous(), state, feat_idx)
+ for layer in enc.downsamples[:ENC_SPLIT]:
+ h = layer(h, state, feat_idx)
+ band = h[:, :, :, lo - elo // 2:hi - elo // 2].contiguous()
+ parts = [torch.empty_like(band) for _ in range(self.world)]
+ dist.all_gather(parts, band)
+ h = torch.cat(parts, dim=3)
+ for layer in enc.downsamples[ENC_SPLIT:]:
+ h = layer(h, state, feat_idx)
+ for layer in enc.middle:
+ h = layer(h, state, feat_idx) if isinstance(layer, ResidualBlock) else layer(h)
+ for layer in enc.head:
+ h = _cached_conv(layer, h, state, feat_idx) if isinstance(layer, CausalConv3d) else layer(h)
+ mu, _ = model.conv1(h).chunk(2, dim=1)
+ mean, inv_std = self.vae.scale
+ mu = (mu - mean.view(1, model.z_dim, 1, 1, 1)) * inv_std.view(1, model.z_dim, 1, 1, 1)
+ return mu.to(self.vae.dtype).squeeze(0)
+
+ def agree(self, flag):
+ t = torch.tensor([1 if flag else 0], device=self.vae.mean.device, dtype=torch.int32)
+ dist.all_reduce(t, op=dist.ReduceOp.MIN)
+ return bool(t.item())
+
+
+def _y_encoder(pipeline, world):
+ from ..inference.chunk_stream import FrameEncoder
+
+ def make(latent_rows):
+ # Split the full-resolution clip only; the low-resolution one is too small to be worth it.
+ out_rows = 8 * latent_rows // 2
+ if out_rows % world == 0 and out_rows // world >= 2 * ENC_HALO:
+ return BandEncoder(pipeline.vae)
+ return FrameEncoder(pipeline.vae)
+
+ return make
+
+
+def install(pipeline, set_attr):
+ if not (pipeline.use_sp and pipeline.exact_optimizations and dist.is_initialized()):
+ raise RuntimeError("vae_split needs the sequence-parallel pipeline on more than one GPU")
+ decoder = BandDecoder(pipeline.vae)
+
+ def decode_chunk_and_lr_encode(hr_latent_chunk, is_first_vae_chunk):
+ rgb = decoder.decode(hr_latent_chunk, is_first_vae_chunk)
+ if rgb is None:
+ channels, frames, height, width = hr_latent_chunk.shape
+ lr_lat = torch.empty((channels, frames // 2, height // 4, width // 4),
+ device=pipeline.device, dtype=pipeline.vae.dtype)
+ dist.broadcast(lr_lat, src=0)
+ return lr_lat, None
+ lr_pix = rgb[:, ::2]
+ lr_pix = F.interpolate(lr_pix.permute(1, 0, 2, 3), size=(lr_pix.shape[2] // 4, lr_pix.shape[3] // 4),
+ mode='bilinear', align_corners=False).permute(1, 0, 2, 3).contiguous()
+ lr_lat = pipeline.vae.encode_chunk([lr_pix], is_first_chunk=is_first_vae_chunk)[0].contiguous()
+ dist.broadcast(lr_lat, src=0)
+ return lr_lat, rgb
+
+ set_attr(pipeline, "_decode_chunk_and_lr_encode", decode_chunk_and_lr_encode)
+ set_attr(pipeline, "_decode_last_chunk", decoder.decode)
+ set_attr(pipeline, "y_band_encoder", _y_encoder(pipeline, decoder.world))
+ return decoder
diff --git a/reactor/assets/demo.png b/reactor/assets/demo.png
new file mode 100644
index 0000000..b609a5a
Binary files /dev/null and b/reactor/assets/demo.png differ
diff --git a/reactor/assets/try-on-reactor.svg b/reactor/assets/try-on-reactor.svg
new file mode 100644
index 0000000..91acf64
--- /dev/null
+++ b/reactor/assets/try-on-reactor.svg
@@ -0,0 +1,7 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="142" height="22" viewBox="0 0 142 22" role="img" aria-labelledby="title">
+ <title id="title">Try it on Reactor</title>
+ <rect width="142" height="22" rx="3" fill="#555240"/>
+ <!-- Reactor symbol, shared with demo/public/logo/symbol-night.svg. -->
+ <path transform="translate(8 5.34) scale(.03125)" fill="#FDF5C6" fill-rule="evenodd" d="M447.12,0c44.95,0,64.88,26.35,64.88,62.33v105.9c0,34.96-19.41,61.31-63.35,61.31h-1.05c-11.43.04-18.2,12.72-11.81,22.12l75.18,110.64h-91.16l-87.01-124.01c-3.85-5.48-10.16-8.75-16.89-8.75-11.37,0-20.58,9.14-20.58,20.41v112.35h-78.68v-112.35c0-11.27-9.21-20.41-20.58-20.41-6.74,0-13.04,3.27-16.89,8.75l-87.01,124.01H1.02l75.19-110.64c6.39-9.4-.37-22.08-11.81-22.12h-1.05c-43.93,0-63.35-26.35-63.35-61.32V62.33C0,26.35,19.92,0,64.88,0h382.24ZM87.87,70.94c-7.15,0-9.19,2.53-9.19,9.63v69.42c0,6.59,2.04,8.61,8.69,8.61h337.28c6.64,0,8.68-2.03,8.68-8.61v-69.42c0-7.09-2.04-9.63-9.19-9.63H87.87Z"/>
+ <text x="31" y="15" fill="#FDF5C6" font-family="Verdana,DejaVu Sans,sans-serif" font-size="11">Try it on Reactor</text>
+</svg>
diff --git a/reactor/demo/.env.example b/reactor/demo/.env.example
new file mode 100644
index 0000000..0178797
--- /dev/null
+++ b/reactor/demo/.env.example
@@ -0,0 +1,7 @@
+# Copy to .env. Nothing here is needed for a "local" endpoint.
+# Endpoints themselves are listed in endpoints.json (and your own endpoints.local.json).
+
+# Optional API key for a hosted endpoint added to endpoints.local.json.
+# Read on the server by app/api/token; never sent to the browser. A hosted entry
+# you add names its own variable, set it here the same way.
+# REACTOR_API_KEY=your-reactor-api-key
diff --git a/reactor/demo/.gitignore b/reactor/demo/.gitignore
new file mode 100644
index 0000000..15871aa
--- /dev/null
+++ b/reactor/demo/.gitignore
@@ -0,0 +1,45 @@
+# dependencies
+/node_modules
+/.pnp
+.pnp.*
+.yarn/*
+!.yarn/patches
+!.yarn/plugins
+!.yarn/releases
+!.yarn/versions
+
+# testing
+/coverage
+
+# next.js
+/.next/
+/out/
+
+/build
+
+# misc
+.DS_Store
+*.pem
+
+# claude code
+.claude/
+
+# debug
+npm-debug.log*
+yarn-debug.log*
+yarn-error.log*
+.pnpm-debug.log*
+
+# env files
+.env
+.env*.local
+
+# vercel
+.vercel
+
+# typescript
+*.tsbuildinfo
+next-env.d.ts
+
+# local endpoint list (your own hosts); see README "Add an endpoint"
+endpoints.local.json
diff --git a/reactor/demo/README.md b/reactor/demo/README.md
new file mode 100644
index 0000000..2549f90
--- /dev/null
+++ b/reactor/demo/README.md
@@ -0,0 +1,66 @@
+# WorldPlay2 frontend
+
+A browser client for WorldPlay2: pick an image and a prompt, then explore the generated world with the keyboard.
+
+## Setup
+
+```sh
+cp .env.example .env
+pnpm install
+pnpm dev
+```
+
+Open http://localhost:3000, choose an endpoint and click **Connect**.
+
+The endpoint list comes from `endpoints.json`, which ships with a local entry:
+
+- **Local** (default) connects to the model started with `reactor run` at `http://localhost:8080`. The URL can also be edited in the page (remembered per endpoint in this browser). No API key is needed.
+
+The demo also supports optional hosted endpoints. Add one as described below and set
+its `apiKeyEnv` variable in `.env`; it is read only by the server route `app/api/token`
+and never sent to the browser. No `.env` or API key is needed for local use.
+
+### Add an endpoint
+
+Create `endpoints.local.json` next to `endpoints.json` (it is gitignored, so your hosts stay on your machine) and reload the page. Its entries are added to the list; an entry with the same `id` as a shipped one replaces it.
+
+```json
+{
+ "endpoints": [
+ { "label": "GPU box", "url": "http://<gpu-host>:8080", "kind": "local" },
+ { "label": "Other API", "url": "https://<api-host>", "kind": "hosted", "apiKeyEnv": "MY_API_KEY" }
+ ]
+}
+```
+
+| Field | Meaning |
+| --- | --- |
+| `label` | Name shown in the endpoint menu |
+| `url` | `local`: the model runtime's address. `hosted`: the Reactor API base URL |
+| `kind` | `local` talks to the model runtime directly, no key. `hosted` gets a session token from `app/api/token` |
+| `apiKeyEnv` | `hosted` only: the `.env` variable holding that API's key. The server reads the URL and the key from these files; the browser sends only the endpoint id |
+| `id` | Optional; defaults to the label in lowercase-with-dashes. Must be unique |
+| `modelName` | Optional, `hosted` only: the model's name on that API when it is not `worldplay2`, e.g. a canonical `org/worldplay2` |
+
+## Controls
+
+| Input | Effect |
+| --- | --- |
+| `W` `A` `S` `D` | Move forward, left, backward, right; two keys combine into a diagonal |
+| `←` `→` | Turn left / right |
+| `↑` `↓` | Look up / down |
+| `Space` | Hold the space action |
+| `1`–`9` or an event chip | Hold an event: adds `The event is: ...` to the prompt until released |
+| Yaw / Pitch speed (Advanced) | Turn and look speed, in degrees per latent frame |
+| Prompt + **Send** | Replace the base prompt for upcoming video, keeping the current world; held events build on it |
+| Perspective | First person (FPS) or third person (TPS) |
+| Seed + **Reset world** (Advanced) | Restart the current image with the chosen seed |
+| **Pause** / **Resume** | Pause or resume the video stream |
+
+Controls are held while pressed and released when you let go; the on-screen keys work the same way. Prompt changes and events apply from the next chunk the model has not yet generated, so they show after a short delay; hold an event until you see it. **✎ edit** next to the chips changes the current example's events (saved in this browser). When the chunk budget is used up, reset or pick an example to continue.
+
+## Adding your own example
+
+Click **Add your own example** (or drop an image onto the example list), then choose a PNG, JPEG or WebP image, a name, the perspective, the scene (`The scene in the video is: ...`), for TPS the character (`The character is: ...`), and optional named events (a short description of what happens). Write the scene (and the character for TPS) for every example: the prompt is what the model generates from.
+
+Added examples are saved in this browser's IndexedDB, so they stay across reloads but not across browsers or machines. Delete one with its **×** button. To ship an example with the app, put the image in `public/examples/` and add an entry to `lib/examples.ts`.
diff --git a/reactor/demo/app/PageClient.tsx b/reactor/demo/app/PageClient.tsx
new file mode 100644
index 0000000..16c8a8d
--- /dev/null
+++ b/reactor/demo/app/PageClient.tsx
@@ -0,0 +1,185 @@
+"use client";
+
+import { useCallback, useEffect, useRef, useState } from "react";
+import { ReactorProvider, useReactor } from "@reactor-team/js-sdk";
+import { AppShell, StatusDot, Workspace } from "@/components/AppShell";
+import { Button } from "@/components/ui/button";
+import { Settings } from "@/components/Settings";
+import { MODEL_NAME, type Endpoint } from "@/lib/endpoints";
+
+const ENDPOINT_STORAGE = "worldplay2:endpoint";
+// Per-endpoint URL edits for local endpoints, keyed by endpoint id.
+const URL_STORAGE_PREFIX = "worldplay2:url:";
+// The model holds its GPUs for the whole session, so an idle tab disconnects.
+const AUTO_DISCONNECT_MS = 10 * 60 * 1000;
+const TOKEN_TTL_MS = 5 * 60 * 1000;
+
+function readStorage(key: string): string | null {
+ try {
+ return localStorage.getItem(key);
+ } catch {
+ return null;
+ }
+}
+
+function writeStorage(key: string, value: string) {
+ try {
+ localStorage.setItem(key, value);
+ } catch {
+ // Storage unavailable: the choice just isn't remembered.
+ }
+}
+
+/**
+ * The one session row under the nav: connection status and Connect on the
+ * left, the endpoint picker on the right.
+ */
+function SessionBar({
+ endpoints,
+ endpoint,
+ onEndpointChange,
+ localUrl,
+ onLocalUrlChange,
+ tokenError,
+}: {
+ endpoints: Endpoint[];
+ endpoint: Endpoint;
+ onEndpointChange: (endpoint: Endpoint) => void;
+ localUrl: string;
+ onLocalUrlChange: (url: string) => void;
+ tokenError: string | null;
+}) {
+ const { status, connect, disconnect } = useReactor((state) => ({
+ status: state.status,
+ connect: state.connect,
+ disconnect: state.disconnect,
+ }));
+ const timerRef = useRef<ReturnType<typeof setTimeout> | null>(null);
+
+ useEffect(() => {
+ if (status === "ready") {
+ timerRef.current = setTimeout(() => disconnect(), AUTO_DISCONNECT_MS);
+ }
+ return () => {
+ if (timerRef.current) clearTimeout(timerRef.current);
+ };
+ }, [status, disconnect]);
+
+ const busy = status === "connecting" || status === "waiting";
+
+ return (
+ <div
+ className="flex shrink-0 flex-wrap items-center justify-between gap-x-4 gap-y-2 px-4 py-2"
+ style={{ background: "rgba(255,255,255,0.04)", borderBottom: "1px solid rgba(255,255,255,0.06)" }}
+ >
+ <div className="flex min-w-0 items-center gap-3">
+ <StatusDot status={status} />
+ <Button
+ size="xs"
+ variant="secondary"
+ onClick={() => (status === "disconnected" ? connect() : disconnect())}
+ className="h-7 border-white/15 bg-white/10 px-3 font-mono text-xs text-white hover:bg-white/15"
+ >
+ {status === "disconnected" ? "Connect" : busy ? "Cancel" : "Disconnect"}
+ </Button>
+ {tokenError && endpoint.kind === "hosted" && (
+ <span className="truncate font-mono text-[10px] text-red-300" title={tokenError}>
+ {tokenError}
+ </span>
+ )}
+ </div>
+ <Settings
+ endpoints={endpoints}
+ endpoint={endpoint}
+ onEndpointChange={onEndpointChange}
+ localUrl={localUrl}
+ onLocalUrlChange={onLocalUrlChange}
+ />
+ </div>
+ );
+}
+
+export default function PageClient({ endpoints }: { endpoints: Endpoint[] }) {
+ const [endpoint, setEndpoint] = useState<Endpoint>(endpoints[0]);
+ const [urlEdits, setUrlEdits] = useState<Record<string, string>>({});
+ const [tokenError, setTokenError] = useState<string | null>(null);
+ const tokenCache = useRef<Record<string, { jwt: string; at: number }>>({});
+
+ useEffect(() => {
+ const storedEndpoint = endpoints.find((ep) => ep.id === readStorage(ENDPOINT_STORAGE));
+ if (storedEndpoint) setEndpoint(storedEndpoint);
+ const edits: Record<string, string> = {};
+ for (const ep of endpoints) {
+ const stored = ep.kind === "local" ? readStorage(URL_STORAGE_PREFIX + ep.id) : null;
+ if (stored) edits[ep.id] = stored;
+ }
+ setUrlEdits(edits);
+ }, [endpoints]);
+
+ const changeEndpoint = (next: Endpoint) => {
+ setEndpoint(next);
+ setTokenError(null);
+ writeStorage(ENDPOINT_STORAGE, next.id);
+ };
+
+ const localUrl = urlEdits[endpoint.id] ?? endpoint.url;
+ const changeLocalUrl = (url: string) => {
+ setUrlEdits((edits) => ({ ...edits, [endpoint.id]: url }));
+ writeStorage(URL_STORAGE_PREFIX + endpoint.id, url);
+ };
+
+ // Session token for a hosted endpoint, minted by /api/token (which looks the
+ // endpoint up by id in the server's endpoint files) and reused for a few minutes.
+ const endpointId = endpoint.id;
+ const resolveJwt = useCallback(async (): Promise<string> => {
+ const cached = tokenCache.current[endpointId];
+ if (cached && Date.now() - cached.at < TOKEN_TTL_MS) return cached.jwt;
+ const response = await fetch("/api/token", {
+ method: "POST",
+ headers: { "Content-Type": "application/json" },
+ body: JSON.stringify({ endpointId }),
+ });
+ const body = (await response.json().catch(() => ({}))) as { jwt?: string; error?: string };
+ if (!response.ok || !body.jwt) {
+ const message = body.error ?? `Token request failed: ${response.status}`;
+ setTokenError(message);
+ throw new Error(message);
+ }
+ setTokenError(null);
+ tokenCache.current[endpointId] = { jwt: body.jwt, at: Date.now() };
+ return body.jwt;
+ }, [endpointId]);
+
+ const isLocal = endpoint.kind === "local";
+ const apiUrl = isLocal ? localUrl : endpoint.url;
+
+ return (
+ <AppShell>
+ <ReactorProvider
+ // Remount on an endpoint change so the next Connect opens a fresh session there.
+ // The Local URL is deliberately not part of the key: the provider already
+ // builds a new Reactor when `apiUrl` changes, and remounting the subtree on
+ // every keystroke would take focus away from the URL box mid-typing.
+ key={endpoint.id}
+ modelName={endpoint.modelName ?? MODEL_NAME}
+ apiUrl={apiUrl}
+ local={isLocal}
+ jwtToken={isLocal ? undefined : resolveJwt}
+ connectOptions={{ autoConnect: false }}
+ >
+ <div className="relative z-10 shrink-0">
+ <SessionBar
+ endpoints={endpoints}
+ endpoint={endpoint}
+ onEndpointChange={changeEndpoint}
+ localUrl={localUrl}
+ onLocalUrlChange={changeLocalUrl}
+ tokenError={tokenError}
+ />
+ </div>
+
+ <Workspace />
+ </ReactorProvider>
+ </AppShell>
+ );
+}
diff --git a/reactor/demo/app/api/token/route.ts b/reactor/demo/app/api/token/route.ts
new file mode 100644
index 0000000..798434a
--- /dev/null
+++ b/reactor/demo/app/api/token/route.ts
@@ -0,0 +1,43 @@
+import { NextResponse } from "next/server";
+import { loadEndpoints } from "@/lib/endpoints-config";
+
+// Mints a session token for a hosted endpoint. The URL and the API key's env var
+// both come from the endpoint files on the server; the browser sends only an id,
+// and the key never reaches it.
+export async function POST(request: Request) {
+ const body = (await request.json().catch(() => ({}))) as { endpointId?: unknown };
+ let endpoints;
+ try {
+ endpoints = loadEndpoints();
+ } catch (err) {
+ return NextResponse.json({ error: err instanceof Error ? err.message : String(err) }, { status: 500 });
+ }
+ const endpoint = endpoints.find((e) => e.id === body.endpointId && e.kind === "hosted");
+ if (!endpoint?.apiKeyEnv) {
+ return NextResponse.json({ error: "Unknown hosted endpoint" }, { status: 400 });
+ }
+
+ const apiKey = process.env[endpoint.apiKeyEnv];
+ if (!apiKey) {
+ return NextResponse.json(
+ { error: `${endpoint.apiKeyEnv} is not set in .env` },
+ { status: 500 },
+ );
+ }
+
+ const response = await fetch(`${endpoint.url}/tokens`, {
+ method: "POST",
+ headers: { "Reactor-API-Key": apiKey },
+ });
+
+ if (!response.ok) {
+ const text = await response.text();
+ return NextResponse.json(
+ { error: `Token request failed: ${response.status} ${text}` },
+ { status: response.status },
+ );
+ }
+
+ const { jwt } = await response.json();
+ return NextResponse.json({ jwt });
+}
diff --git a/reactor/demo/app/globals.css b/reactor/demo/app/globals.css
new file mode 100644
index 0000000..b55a714
--- /dev/null
+++ b/reactor/demo/app/globals.css
@@ -0,0 +1,181 @@
+@import "tailwindcss";
+@import "tw-animate-css";
+@import "shadcn/tailwind.css";
+@import "@reactor-team/ui/styles.css";
+
+@custom-variant dark (&:is(.dark *));
+
+@theme inline {
+ --color-background: var(--background);
+ --color-foreground: var(--foreground);
+ --font-sans: var(--reactor-font-sans);
+ --font-mono: var(--reactor-font-mono);
+ --color-sidebar-ring: var(--sidebar-ring);
+ --color-sidebar-border: var(--sidebar-border);
+ --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
+ --color-sidebar-accent: var(--sidebar-accent);
+ --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
+ --color-sidebar-primary: var(--sidebar-primary);
+ --color-sidebar-foreground: var(--sidebar-foreground);
+ --color-sidebar: var(--sidebar);
+ --color-chart-5: var(--chart-5);
+ --color-chart-4: var(--chart-4);
+ --color-chart-3: var(--chart-3);
+ --color-chart-2: var(--chart-2);
+ --color-chart-1: var(--chart-1);
+ --color-ring: var(--ring);
+ --color-input: var(--input);
+ --color-border: var(--border);
+ --color-destructive: var(--destructive);
+ --color-accent-foreground: var(--accent-foreground);
+ --color-accent: var(--accent);
+ --color-muted-foreground: var(--muted-foreground);
+ --color-muted: var(--muted);
+ --color-secondary-foreground: var(--secondary-foreground);
+ --color-secondary: var(--secondary);
+ --color-primary-foreground: var(--primary-foreground);
+ --color-primary: var(--primary);
+ --color-popover-foreground: var(--popover-foreground);
+ --color-popover: var(--popover);
+ --color-card-foreground: var(--card-foreground);
+ --color-card: var(--card);
+ --radius-sm: calc(var(--radius) - 4px);
+ --radius-md: calc(var(--radius) - 2px);
+ --radius-lg: var(--radius);
+ --radius-xl: calc(var(--radius) + 4px);
+ --radius-2xl: calc(var(--radius) + 8px);
+ --radius-3xl: calc(var(--radius) + 12px);
+ --radius-4xl: calc(var(--radius) + 16px);
+}
+
+:root {
+ /* Reactor UI Colors */
+ --background: var(--reactor-color-light);
+ --foreground: var(--reactor-color-interstellar);
+ --card: var(--reactor-color-light);
+ --card-foreground: var(--reactor-color-interstellar);
+ --popover: var(--reactor-color-light);
+ --popover-foreground: var(--reactor-color-interstellar);
+ --primary: var(--reactor-color-light-gold);
+ --primary-foreground: var(--reactor-color-interstellar);
+ --secondary: #f5f5f5;
+ --secondary-foreground: var(--reactor-color-interstellar);
+ --muted: #f5f5f5;
+ --muted-foreground: #666666;
+ --accent: var(--reactor-color-light-gold);
+ --accent-foreground: var(--reactor-color-interstellar);
+ --destructive: #ef4444;
+ --border: #e5e5e5;
+ --input: #e5e5e5;
+ --ring: var(--reactor-color-interstellar);
+ --chart-1: var(--reactor-color-light-gold);
+ --chart-2: #e8dfa0;
+ --chart-3: #d4c97a;
+ --chart-4: #c0b354;
+ --chart-5: #ac9d2e;
+ --radius: 4px;
+ --sidebar: #fafafa;
+ --sidebar-foreground: var(--reactor-color-interstellar);
+ --sidebar-primary: var(--reactor-color-light-gold);
+ --sidebar-primary-foreground: var(--reactor-color-interstellar);
+ --sidebar-accent: var(--reactor-color-light-gold);
+ --sidebar-accent-foreground: var(--reactor-color-interstellar);
+ --sidebar-border: #e5e5e5;
+ --sidebar-ring: var(--reactor-color-interstellar);
+}
+
+.dark {
+ /* Reactor UI Colors - Dark Mode */
+ --background: var(--reactor-color-interstellar);
+ --foreground: var(--reactor-color-light);
+ --card: #1a1a1a;
+ --card-foreground: var(--reactor-color-light);
+ --popover: #1a1a1a;
+ --popover-foreground: var(--reactor-color-light);
+ --primary: var(--reactor-color-light-gold);
+ --primary-foreground: var(--reactor-color-interstellar);
+ --secondary: #2a2a2a;
+ --secondary-foreground: var(--reactor-color-light);
+ --muted: #2a2a2a;
+ --muted-foreground: #999999;
+ --accent: var(--reactor-color-light-gold);
+ --accent-foreground: var(--reactor-color-interstellar);
+ --destructive: #ef4444;
+ --border: rgba(255, 255, 255, 0.1);
+ --input: rgba(255, 255, 255, 0.15);
+ --ring: var(--reactor-color-light-gold);
+ --chart-1: var(--reactor-color-light-gold);
+ --chart-2: #e8dfa0;
+ --chart-3: #d4c97a;
+ --chart-4: #c0b354;
+ --chart-5: #ac9d2e;
+ --sidebar: #1a1a1a;
+ --sidebar-foreground: var(--reactor-color-light);
+ --sidebar-primary: var(--reactor-color-light-gold);
+ --sidebar-primary-foreground: var(--reactor-color-interstellar);
+ --sidebar-accent: var(--reactor-color-light-gold);
+ --sidebar-accent-foreground: var(--reactor-color-interstellar);
+ --sidebar-border: rgba(255, 255, 255, 0.1);
+ --sidebar-ring: var(--reactor-color-light-gold);
+}
+
+@layer base {
+ * {
+ @apply border-border outline-ring/50;
+ }
+ body {
+ @apply bg-background text-foreground;
+ }
+}
+
+/* Subtle scrollbars that match the dark UI (the default white bar clashes
+ against the dark panels). Firefox + WebKit/Chromium. */
+.dark {
+ scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
+ scrollbar-width: thin;
+}
+.dark *::-webkit-scrollbar {
+ width: 8px;
+ height: 8px;
+}
+.dark *::-webkit-scrollbar-track {
+ background: transparent;
+}
+.dark *::-webkit-scrollbar-thumb {
+ background-color: rgba(255, 255, 255, 0.15);
+ border-radius: 9999px;
+ border: 2px solid transparent;
+ background-clip: padding-box;
+}
+.dark *::-webkit-scrollbar-thumb:hover {
+ background-color: rgba(255, 255, 255, 0.3);
+}
+.dark *::-webkit-scrollbar-corner {
+ background: transparent;
+}
+
+/* Dark nav override for demos landing */
+.demos-nav .reactor-nav__inner {
+ background-color: #1a1a1a;
+ box-shadow: none;
+ border: 1px solid rgba(255, 255, 255, 0.1);
+ padding: 10px 16px;
+ border-radius: 12px;
+}
+
+.demos-nav .reactor-nav__link {
+ color: rgba(255, 255, 255, 0.6);
+}
+
+.demos-nav .reactor-nav__link:hover {
+ background-color: rgba(255, 255, 255, 0.06);
+ color: rgba(255, 255, 255, 0.9);
+}
+
+/* Action-callout keycap press (fancy mode) — replays on each remount */
+@keyframes keycap-press {
+ 0% { transform: translateY(0) scale(1); }
+ 30% { transform: translateY(3px) scale(0.93); filter: brightness(1.4); }
+ 65% { transform: translateY(-1px) scale(1.02); }
+ 100% { transform: translateY(0) scale(1); filter: brightness(1); }
+}
diff --git a/reactor/demo/app/layout.tsx b/reactor/demo/app/layout.tsx
new file mode 100644
index 0000000..284137c
--- /dev/null
+++ b/reactor/demo/app/layout.tsx
@@ -0,0 +1,20 @@
+import type { Metadata } from "next";
+import "./globals.css";
+
+export const metadata: Metadata = {
+ title: "WorldPlay2 on Reactor",
+ description: "Explore a generated world from an image and a prompt with WASD and the arrow keys.",
+ icons: { icon: "/logo/symbol-white.svg" },
+};
+
+export default function RootLayout({
+ children,
+}: Readonly<{
+ children: React.ReactNode;
+}>) {
+ return (
+ <html lang="en" className="dark">
+ <body className="antialiased font-sans">{children}</body>
+ </html>
+ );
+}
diff --git a/reactor/demo/app/page.tsx b/reactor/demo/app/page.tsx
new file mode 100644
index 0000000..b99501e
--- /dev/null
+++ b/reactor/demo/app/page.tsx
@@ -0,0 +1,11 @@
+// Server component, read on each request: the endpoint picker (PageClient), built
+// from endpoints.json plus the untracked endpoints.local.json; editing either file
+// takes effect on reload.
+import PageClient from "./PageClient";
+import { publicEndpoints } from "@/lib/endpoints-config";
+
+export const dynamic = "force-dynamic";
+
+export default function WorldPlay2Page() {
+ return <PageClient endpoints={publicEndpoints()} />;
+}
diff --git a/reactor/demo/components.json b/reactor/demo/components.json
new file mode 100644
index 0000000..00e1577
--- /dev/null
+++ b/reactor/demo/components.json
@@ -0,0 +1,25 @@
+{
+ "$schema": "https://ui.shadcn.com/schema.json",
+ "style": "radix-vega",
+ "rsc": true,
+ "tsx": true,
+ "tailwind": {
+ "config": "",
+ "css": "app/globals.css",
+ "baseColor": "gray",
+ "cssVariables": true,
+ "prefix": ""
+ },
+ "iconLibrary": "lucide",
+ "rtl": false,
+ "aliases": {
+ "components": "@/components",
+ "utils": "@/lib/utils",
+ "ui": "@/components/ui",
+ "lib": "@/lib",
+ "hooks": "@/hooks"
+ },
+ "menuColor": "inverted",
+ "menuAccent": "bold",
+ "registries": {}
+}
diff --git a/reactor/demo/components/AddExampleModal.tsx b/reactor/demo/components/AddExampleModal.tsx
new file mode 100644
index 0000000..e324c90
--- /dev/null
+++ b/reactor/demo/components/AddExampleModal.tsx
@@ -0,0 +1,366 @@
+"use client";
+
+import { useEffect, useRef, useState } from "react";
+import { Button } from "@/components/ui/button";
+import { Input } from "@/components/ui/input";
+import { cn } from "@/lib/utils";
+import { MAX_EVENTS, type ExampleEvent, type Perspective } from "@/lib/examples";
+import {
+ assertAcceptedImage,
+ dragHasImagePayload,
+ imageFileFromDataTransfer,
+} from "@/lib/image-drop";
+
+export type NewExample = {
+ name: string;
+ perspective: Perspective;
+ scene: string;
+ character: string;
+ events: ExampleEvent[];
+ image: File;
+};
+
+const FIELD_CLASS =
+ "w-full resize-y rounded-md border border-white/10 bg-black/30 px-3 py-2 font-mono text-[11px] leading-relaxed text-white placeholder-white/25 outline-none focus:border-white/30";
+
+/** Removes events with no text. */
+export function cleanEvents(events: ExampleEvent[]): ExampleEvent[] {
+ return events
+ .map((ev) => ({ name: ev.name.trim(), text: ev.text.trim() }))
+ .filter((ev) => ev.text)
+ .map((ev, i) => ({ ...ev, name: ev.name || `Event ${i + 1}` }));
+}
+
+/** Editable list of named events (name + one sentence each). */
+export function EventsEditor({
+ events,
+ onChange,
+}: {
+ events: ExampleEvent[];
+ onChange: (events: ExampleEvent[]) => void;
+}) {
+ const update = (index: number, patch: Partial<ExampleEvent>) =>
+ onChange(events.map((ev, i) => (i === index ? { ...ev, ...patch } : ev)));
+ return (
+ <div className="flex flex-col gap-2">
+ {events.map((ev, i) => (
+ <div key={i} className="flex items-start gap-2">
+ <span className="mt-1.5 inline-flex h-4 min-w-4 items-center justify-center rounded border border-white/25 bg-white/10 px-0.5 font-mono text-[9px] font-bold text-white/80">
+ {i + 1}
+ </span>
+ <div className="flex min-w-0 flex-1 flex-col gap-1">
+ <Input
+ value={ev.name}
+ onChange={(e) => update(i, { name: e.target.value })}
+ placeholder="Name, e.g. Lightning"
+ className="h-7 font-mono text-xs"
+ />
+ <input
+ value={ev.text}
+ onChange={(e) => update(i, { text: e.target.value })}
+ placeholder="What happens, e.g. lightning flashes across the sky"
+ className="h-7 rounded-md border border-white/10 bg-black/30 px-3 font-mono text-[11px] text-white placeholder-white/25 outline-none focus:border-white/30"
+ />
+ </div>
+ <button
+ type="button"
+ onClick={() => onChange(events.filter((_, j) => j !== i))}
+ aria-label={`Remove event ${i + 1}`}
+ className="mt-1 h-6 w-6 rounded font-mono text-sm text-white/45 hover:bg-white/10 hover:text-red-300"
+ >
+ ×
+ </button>
+ </div>
+ ))}
+ {events.length < MAX_EVENTS && (
+ <button
+ type="button"
+ onClick={() => onChange([...events, { name: "", text: "" }])}
+ className="self-start font-mono text-[10px] text-white/50 transition-colors hover:text-amber-200"
+ >
+ + Add event
+ </button>
+ )}
+ </div>
+ );
+}
+
+/** Form for adding an example: image, name, perspective, prompt parts and events. */
+export function AddExampleModal({
+ initialImage,
+ canPlay,
+ onSave,
+ onClose,
+}: {
+ initialImage?: File | null;
+ canPlay: boolean;
+ onSave: (example: NewExample, play: boolean) => Promise<void>;
+ onClose: () => void;
+}) {
+ const [image, setImage] = useState<File | null>(initialImage ?? null);
+ const [preview, setPreview] = useState<string | null>(null);
+ const [name, setName] = useState("");
+ const [perspective, setPerspective] = useState<Perspective>("fps");
+ const [scene, setScene] = useState("");
+ const [character, setCharacter] = useState("");
+ const [events, setEvents] = useState<ExampleEvent[]>([]);
+ const [dropOver, setDropOver] = useState(false);
+ const [error, setError] = useState<string | null>(null);
+ const [saving, setSaving] = useState(false);
+ const fileInputRef = useRef<HTMLInputElement>(null);
+
+ useEffect(() => {
+ if (!image) {
+ setPreview(null);
+ return;
+ }
+ const url = URL.createObjectURL(image);
+ setPreview(url);
+ return () => URL.revokeObjectURL(url);
+ }, [image]);
+
+ useEffect(() => {
+ const onKey = (e: KeyboardEvent) => {
+ if (e.key === "Escape") onClose();
+ };
+ window.addEventListener("keydown", onKey);
+ return () => window.removeEventListener("keydown", onKey);
+ }, [onClose]);
+
+ const acceptFile = (file: File) => {
+ try {
+ assertAcceptedImage(file);
+ setImage(file);
+ setError(null);
+ if (!name.trim()) setName(file.name.replace(/\.[^.]+$/, ""));
+ } catch (err) {
+ setError(err instanceof Error ? err.message : String(err));
+ }
+ };
+
+ const save = async (play: boolean) => {
+ if (!image) {
+ setError("Choose an image first.");
+ return;
+ }
+ setSaving(true);
+ setError(null);
+ try {
+ await onSave(
+ {
+ name: name.trim() || "Untitled example",
+ perspective,
+ scene: scene.trim(),
+ character: perspective === "tps" ? character.trim() : "",
+ events: cleanEvents(events),
+ image,
+ },
+ play,
+ );
+ onClose();
+ } catch (err) {
+ setError(err instanceof Error ? err.message : String(err));
+ } finally {
+ setSaving(false);
+ }
+ };
+
+ return (
+ <div
+ className="fixed inset-0 z-50 flex items-center justify-center bg-black/70 p-4"
+ onClick={onClose}
+ >
+ <div
+ className="flex max-h-[90vh] w-full max-w-lg flex-col gap-4 overflow-y-auto rounded-xl border border-white/15 bg-neutral-950 p-5 shadow-2xl"
+ onClick={(e) => e.stopPropagation()}
+ >
+ <div className="flex items-center justify-between">
+ <h3 className="font-mono text-sm text-white">Add an example</h3>
+ <button
+ type="button"
+ onClick={onClose}
+ className="h-7 w-7 rounded font-mono text-xs text-white/60 hover:bg-white/10"
+ aria-label="Close"
+ >
+ ✕
+ </button>
+ </div>
+
+ <div
+ role="button"
+ tabIndex={0}
+ onClick={() => fileInputRef.current?.click()}
+ onKeyDown={(e) => {
+ if (e.key === "Enter" || e.key === " ") fileInputRef.current?.click();
+ }}
+ onDragOver={(e) => {
+ if (!dragHasImagePayload(e.dataTransfer)) return;
+ e.preventDefault();
+ e.dataTransfer.dropEffect = "copy";
+ setDropOver(true);
+ }}
+ onDragLeave={() => setDropOver(false)}
+ onDrop={(e) => {
+ if (!dragHasImagePayload(e.dataTransfer)) return;
+ e.preventDefault();
+ setDropOver(false);
+ imageFileFromDataTransfer(e.dataTransfer)
+ .then(acceptFile)
+ .catch((err) => setError(err instanceof Error ? err.message : String(err)));
+ }}
+ className={cn(
+ "relative flex aspect-video w-full cursor-pointer items-center justify-center overflow-hidden rounded-lg border border-dashed transition-colors",
+ dropOver
+ ? "border-emerald-300/60 bg-emerald-300/[0.06]"
+ : "border-white/20 bg-white/[0.03] hover:border-white/35",
+ )}
+ >
+ {preview ? (
+ // eslint-disable-next-line @next/next/no-img-element
+ <img src={preview} alt="Selected image" className="h-full w-full object-cover" />
+ ) : (
+ <span className="px-4 text-center font-mono text-[11px] text-white/45">
+ Drop an image here or click to choose one (PNG, JPEG or WebP, up to 25 MiB)
+ </span>
+ )}
+ <input
+ ref={fileInputRef}
+ type="file"
+ accept="image/png,image/jpeg,image/webp"
+ className="hidden"
+ onChange={(e) => {
+ const file = e.target.files?.[0];
+ if (file) acceptFile(file);
+ e.target.value = "";
+ }}
+ />
+ </div>
+
+ <div className="flex flex-col gap-1.5">
+ <label className="font-mono text-[10px] uppercase tracking-wider text-white/50">Name</label>
+ <Input
+ value={name}
+ onChange={(e) => setName(e.target.value)}
+ placeholder="My scene"
+ className="font-mono text-xs"
+ />
+ </div>
+
+ <div className="flex flex-col gap-1.5">
+ <label className="font-mono text-[10px] uppercase tracking-wider text-white/50">
+ Perspective
+ </label>
+ <PerspectiveToggle value={perspective} onChange={setPerspective} />
+ <span className="font-mono text-[10px] leading-snug text-white/40">
+ FPS for a view through someone&apos;s eyes; TPS when the image shows the character to
+ follow.
+ </span>
+ </div>
+
+ <div className="flex flex-col gap-1.5">
+ <label className="font-mono text-[10px] uppercase tracking-wider text-white/50">
+ The scene in the video is:
+ </label>
+ <textarea
+ value={scene}
+ onChange={(e) => setScene(e.target.value)}
+ rows={3}
+ maxLength={2000}
+ placeholder="a narrow alley at night in heavy rain, lined with brick buildings and neon signs"
+ className={FIELD_CLASS}
+ />
+ </div>
+
+ {perspective === "tps" && (
+ <div className="flex flex-col gap-1.5">
+ <label className="font-mono text-[10px] uppercase tracking-wider text-white/50">
+ The character is:
+ </label>
+ <textarea
+ value={character}
+ onChange={(e) => setCharacter(e.target.value)}
+ rows={2}
+ maxLength={1000}
+ placeholder="a man in a dark raincoat, seen from behind"
+ className={FIELD_CLASS}
+ />
+ </div>
+ )}
+ <span className="-mt-2 font-mono text-[10px] leading-snug text-white/40">
+ Empty fields use a generic description of the image.
+ </span>
+
+ <div className="flex flex-col gap-1.5">
+ <label className="font-mono text-[10px] uppercase tracking-wider text-white/50">
+ Events (optional)
+ </label>
+ <span className="font-mono text-[10px] leading-snug text-white/40">
+ Each event adds &quot;The event is: ...&quot; to the prompt while its chip or number key is held.
+ </span>
+ <EventsEditor events={events} onChange={setEvents} />
+ </div>
+
+ {error && (
+ <div className="rounded border border-red-500/30 bg-red-500/10 px-3 py-2 font-mono text-xs text-red-300">
+ {error}
+ </div>
+ )}
+
+ <div className="flex items-center justify-end gap-2">
+ <Button size="sm" variant="ghost" onClick={onClose} className="font-mono text-[11px]">
+ Cancel
+ </Button>
+ <Button
+ size="sm"
+ variant="secondary"
+ disabled={saving || !image}
+ onClick={() => save(false)}
+ className="font-mono text-[11px]"
+ >
+ Save
+ </Button>
+ <Button
+ size="sm"
+ disabled={saving || !image || !canPlay}
+ onClick={() => save(true)}
+ title={canPlay ? undefined : "Connect first to play"}
+ className="font-mono text-[11px]"
+ >
+ Save &amp; play
+ </Button>
+ </div>
+ </div>
+ </div>
+ );
+}
+
+/** Two-way FPS / TPS switch. */
+export function PerspectiveToggle({
+ value,
+ onChange,
+ disabled,
+}: {
+ value: Perspective;
+ onChange: (value: Perspective) => void;
+ disabled?: boolean;
+}) {
+ return (
+ <div className="inline-flex w-fit rounded-md border border-white/10 bg-black/30 p-0.5">
+ {(["fps", "tps"] as const).map((option) => (
+ <button
+ key={option}
+ type="button"
+ disabled={disabled}
+ onClick={() => onChange(option)}
+ aria-pressed={value === option}
+ className={cn(
+ "rounded px-3 py-1 font-mono text-[11px] uppercase tracking-wider transition-colors disabled:cursor-not-allowed disabled:opacity-40",
+ value === option ? "bg-amber-300/20 text-amber-100" : "text-white/50 hover:text-white/80",
+ )}
+ >
+ {option === "fps" ? "FPS · first person" : "TPS · third person"}
+ </button>
+ ))}
+ </div>
+ );
+}
diff --git a/reactor/demo/components/AppShell.tsx b/reactor/demo/components/AppShell.tsx
new file mode 100644
index 0000000..55420c0
--- /dev/null
+++ b/reactor/demo/components/AppShell.tsx
@@ -0,0 +1,91 @@
+"use client";
+
+import Link from "next/link";
+import { Logo, Nav } from "@reactor-team/ui";
+import { WorldPlay2Controller } from "@/components/WorldPlay2Controller";
+
+/** Background, nav pill and the column the session bar and workspace sit in. */
+export function AppShell({ children }: { children: React.ReactNode }) {
+ return (
+ <>
+ <style>{`
+ .dot-grid {
+ background-image: radial-gradient(circle, rgba(255,255,255,0.07) 1px, transparent 1px);
+ background-size: 28px 28px;
+ }
+ @keyframes statusPulse {
+ 0%, 100% { opacity: 1; } 50% { opacity: 0.4; }
+ }
+ `}</style>
+
+ <div className="relative flex h-screen flex-col overflow-hidden" style={{ backgroundColor: "#000" }}>
+ <div className="dot-grid pointer-events-none absolute inset-0" />
+ <div
+ className="pointer-events-none absolute inset-0"
+ style={{ background: "radial-gradient(ellipse 80% 50% at 50% -10%, rgba(199,192,153,0.12), transparent)" }}
+ />
+
+ <div className="relative z-10 shrink-0 px-4 py-3 sm:px-6">
+ <Nav
+ className="demos-nav"
+ logo={
+ <Link href="/" className="flex items-center gap-2 text-white/50 transition-colors hover:text-white/80">
+ <span className="font-mono text-xs uppercase tracking-widest">WorldPlay2</span>
+ </Link>
+ }
+ action={<Logo variant="symbol" color="white" height={18} />}
+ />
+ </div>
+
+ {children}
+ </div>
+ </>
+ );
+}
+
+/** Connection status dot + label, shared by both session bars. */
+export function StatusDot({ status }: { status: string }) {
+ const busy = status === "connecting" || status === "waiting";
+ const dotColor = status === "ready" ? "#4ade80" : busy ? "#facc15" : "rgba(255,255,255,0.3)";
+ const statusLabel =
+ status === "ready"
+ ? "Connected"
+ : status === "waiting"
+ ? "Waiting for GPUs..."
+ : status === "connecting"
+ ? "Connecting..."
+ : "Disconnected";
+ return (
+ <div className="flex items-center gap-2">
+ <div
+ className="h-2 w-2 rounded-full transition-colors"
+ style={{ backgroundColor: dotColor, animation: busy ? "statusPulse 1.5s infinite" : "none" }}
+ />
+ <span className="font-mono text-xs text-white/50">{statusLabel}</span>
+ </div>
+ );
+}
+
+/** Sidebar, display and controls card; must sit inside a ReactorProvider. */
+export function Workspace() {
+ const { sidebar, stage, controls } = WorldPlay2Controller();
+
+ return (
+ <main className="relative z-10 flex min-h-0 flex-1 flex-col px-4 pb-4 pt-3 sm:px-6 sm:pb-6 max-lg:overflow-y-auto lg:overflow-hidden">
+ <div className="mx-auto flex min-h-0 w-full min-w-0 max-w-7xl flex-1 flex-col gap-4">
+ <div className="flex min-w-0 flex-col gap-4 max-lg:flex-none lg:min-h-0 lg:flex-1 lg:flex-row lg:gap-6">
+ {/* Sidebar: left on desktop, below on mobile */}
+ <div className="order-2 flex min-h-0 min-w-0 flex-col gap-4 lg:order-1 lg:w-[min(100%,380px)] lg:max-w-[380px] lg:shrink-0 lg:overflow-y-auto lg:pr-1">
+ <div className="rounded-xl border border-white/[0.08] bg-white/[0.02] p-3 sm:p-4">{sidebar}</div>
+ </div>
+
+ {/* Video and controls */}
+ <div className="order-1 flex min-w-0 flex-col gap-4 lg:order-2 lg:min-h-0 lg:flex-1 lg:overflow-y-auto">
+ {stage}
+ <div className="rounded-xl border border-white/[0.08] bg-white/[0.02] p-3 sm:p-4">{controls}</div>
+ </div>
+ </div>
+ </div>
+ </main>
+ );
+}
diff --git a/reactor/demo/components/Settings.tsx b/reactor/demo/components/Settings.tsx
new file mode 100644
index 0000000..c57e40c
--- /dev/null
+++ b/reactor/demo/components/Settings.tsx
@@ -0,0 +1,60 @@
+"use client";
+
+import type { Endpoint } from "@/lib/endpoints";
+
+/**
+ * Endpoint switcher, laid out inline for the session bar. The Local
+ * endpoint's URL is editable; the tooltip says how each kind connects.
+ */
+export function Settings({
+ endpoints,
+ endpoint,
+ onEndpointChange,
+ localUrl,
+ onLocalUrlChange,
+}: {
+ endpoints: Endpoint[];
+ endpoint: Endpoint;
+ onEndpointChange: (endpoint: Endpoint) => void;
+ localUrl: string;
+ onLocalUrlChange: (url: string) => void;
+}) {
+ return (
+ <div className="flex min-w-0 flex-wrap items-center gap-2" title={
+ endpoint.kind === "local"
+ ? `${endpoint.url} · the model's own runtime; no API key`
+ : `${endpoint.url} · hosted; the server mints a token with its API key`
+ }>
+ <label
+ htmlFor="endpoint-select"
+ className="hidden shrink-0 font-mono text-xs text-white/40 sm:inline"
+ >
+ Endpoint
+ </label>
+ <select
+ id="endpoint-select"
+ value={endpoint.id}
+ onChange={(e) => onEndpointChange(endpoints.find((ep) => ep.id === e.target.value) ?? endpoints[0])}
+ className="h-7 cursor-pointer rounded-md border border-white/15 bg-white/10 px-2 font-mono text-xs text-white hover:bg-white/15 focus:border-white/40 focus:outline-none"
+ >
+ {endpoints.map((ep) => (
+ <option key={ep.id} value={ep.id} className="bg-black">
+ {ep.label}
+ </option>
+ ))}
+ </select>
+
+ {endpoint.kind === "local" && (
+ <input
+ type="text"
+ aria-label="Local URL"
+ value={localUrl}
+ onChange={(e) => onLocalUrlChange(e.target.value)}
+ spellCheck={false}
+ className="h-7 w-44 min-w-0 rounded-md border border-white/10 bg-black/30 px-2 font-mono text-xs text-white/80 placeholder-white/30 focus:border-white/40 focus:outline-none sm:w-56"
+ placeholder="http://localhost:8080"
+ />
+ )}
+ </div>
+ );
+}
diff --git a/reactor/demo/components/WorldPlay2Controller.tsx b/reactor/demo/components/WorldPlay2Controller.tsx
new file mode 100644
index 0000000..c08e010
--- /dev/null
+++ b/reactor/demo/components/WorldPlay2Controller.tsx
@@ -0,0 +1,1533 @@
+"use client";
+
+import { useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState } from "react";
+import { ReactorView, useReactor, useReactorMessage } from "@reactor-team/js-sdk";
+import { Button } from "@/components/ui/button";
+import { Input } from "@/components/ui/input";
+import {
+ AddExampleModal,
+ EventsEditor,
+ PerspectiveToggle,
+ cleanEvents,
+ type NewExample,
+} from "@/components/AddExampleModal";
+import { cn } from "@/lib/utils";
+import {
+ BUILT_IN_EXAMPLES,
+ MAX_EVENTS,
+ composeBasePrompt,
+ stripEvent,
+ withEvent,
+ type Example,
+ type ExampleEvent,
+ type Perspective,
+} from "@/lib/examples";
+import {
+ deleteSavedExample,
+ listSavedExamples,
+ loadEventOverrides,
+ saveEventOverrides,
+ newExampleId,
+ putSavedExample,
+ type SavedExample,
+} from "@/lib/example-store";
+import { dragHasImagePayload, imageFileFromDataTransfer } from "@/lib/image-drop";
+
+// ---- Model controls (mirrors worldplay2_types.py) ----
+
+type Movement =
+ | "none"
+ | "forward"
+ | "backward"
+ | "left"
+ | "right"
+ | "forward_left"
+ | "forward_right"
+ | "backward_left"
+ | "backward_right";
+type Turn = "none" | "left" | "right";
+type Look = "none" | "up" | "down";
+type Action = { movement: Movement; turn: Turn; look: Look; space: boolean };
+
+const IDLE_ACTION: Action = { movement: "none", turn: "none", look: "none", space: false };
+
+/** Fields of the model's `state_update` message. */
+type ModelState = {
+ imageName: string | null;
+ prompt: string | null;
+ action: string;
+ movement: Movement;
+ turn: Turn;
+ look: Look;
+ space: boolean;
+ perspective: Perspective;
+ yawDegrees: number;
+ pitchDegrees: number;
+ worldId: number;
+ completedChunks: number;
+ maxChunks: number;
+ limitReached: boolean;
+ seed: number;
+};
+
+type ChunkInfo = { index: number; frames: number; elapsedSeconds: number; action: string; prompt: string };
+
+const DEFAULT_YAW = 3;
+const DEFAULT_PITCH = 1;
+const DEFAULT_SEED = 42;
+// The model's 1024 temporal positions at 4 latents per chunk; the server reports the same value.
+const DEFAULT_MAX_CHUNKS = 256;
+const SPEED_DEBOUNCE_MS = 250;
+
+const MOVE_KEYS = new Set(["KeyW", "KeyA", "KeyS", "KeyD"]);
+const ARROW_KEYS = new Set(["ArrowLeft", "ArrowRight", "ArrowUp", "ArrowDown"]);
+const CONTROL_KEYS = new Set([...MOVE_KEYS, ...ARROW_KEYS, "Space"]);
+
+/** Event slot for Digit1..Digit9, or -1. */
+function eventSlotForKey(code: string): number {
+ const match = /^Digit([1-9])$/.exec(code);
+ return match ? Number(match[1]) - 1 : -1;
+}
+
+/** Hold-to-fire event chip, with an optional hotkey badge. */
+function EventChip({
+ slot,
+ name,
+ pressed,
+ disabled,
+ onPress,
+ onRelease,
+}: {
+ slot: number;
+ name: string;
+ pressed: boolean;
+ disabled: boolean;
+ onPress: () => void;
+ onRelease: () => void;
+}) {
+ const handlers = disabled
+ ? {}
+ : {
+ onPointerDown: (e: React.PointerEvent) => {
+ e.currentTarget.setPointerCapture(e.pointerId);
+ onPress();
+ },
+ onPointerUp: onRelease,
+ onPointerCancel: onRelease,
+ onPointerLeave: (e: React.PointerEvent) => {
+ if (e.buttons !== 0) onRelease();
+ },
+ };
+ return (
+ <button
+ type="button"
+ disabled={disabled}
+ {...handlers}
+ title={`Hold to fire (key ${slot + 1})`}
+ className={cn(
+ "flex max-w-full select-none items-center gap-1.5 rounded-full border px-2.5 py-1 text-left font-mono text-[10px] transition-colors",
+ "disabled:cursor-not-allowed disabled:opacity-40",
+ pressed
+ ? "border-amber-300/80 bg-amber-300/25 text-amber-100"
+ : "border-white/15 bg-white/5 text-white/70 hover:border-white/25 hover:bg-white/10",
+ )}
+ >
+ <span
+ className={cn(
+ "inline-flex h-4 min-w-4 items-center justify-center rounded border px-0.5 text-[9px] font-bold",
+ pressed ? "border-amber-300/80 bg-amber-300/30 text-amber-100" : "border-white/25 bg-white/10 text-white/80",
+ )}
+ >
+ {slot + 1}
+ </span>
+ <span className="truncate">{name}</span>
+ </button>
+ );
+}
+
+function actionsEqual(a: Action, b: Action): boolean {
+ return a.movement === b.movement && a.turn === b.turn && a.look === b.look && a.space === b.space;
+}
+
+/** Combines held keys into the model's four selectors. */
+function composeAction(held: Set<string>): Action {
+ const fwd = held.has("KeyW") && !held.has("KeyS");
+ const back = held.has("KeyS") && !held.has("KeyW");
+ const left = held.has("KeyA") && !held.has("KeyD");
+ const right = held.has("KeyD") && !held.has("KeyA");
+ const longitudinal = fwd ? "forward" : back ? "backward" : null;
+ const lateral = left ? "left" : right ? "right" : null;
+ const movement = (
+ longitudinal && lateral ? `${longitudinal}_${lateral}` : (longitudinal ?? lateral ?? "none")
+ ) as Movement;
+
+ const arrowLeft = held.has("ArrowLeft") && !held.has("ArrowRight");
+ const arrowRight = held.has("ArrowRight") && !held.has("ArrowLeft");
+ const arrowUp = held.has("ArrowUp") && !held.has("ArrowDown");
+ const arrowDown = held.has("ArrowDown") && !held.has("ArrowUp");
+ const turn: Turn = arrowLeft ? "left" : arrowRight ? "right" : "none";
+ const look: Look = arrowUp ? "up" : arrowDown ? "down" : "none";
+
+ return { movement, turn, look, space: held.has("Space") };
+}
+
+function parseModelState(data: Record<string, unknown>): ModelState {
+ return {
+ imageName: (data.image_name as string | null) ?? null,
+ prompt: (data.prompt as string | null) ?? null,
+ action: (data.action as string) ?? "none",
+ movement: ((data.movement as Movement) ?? "none"),
+ turn: ((data.turn as Turn) ?? "none"),
+ look: ((data.look as Look) ?? "none"),
+ space: Boolean(data.space),
+ perspective: data.perspective === "tps" ? "tps" : "fps",
+ yawDegrees: Number(data.yaw_degrees ?? DEFAULT_YAW),
+ pitchDegrees: Number(data.pitch_degrees ?? DEFAULT_PITCH),
+ worldId: Number(data.world_id ?? 0),
+ completedChunks: Number(data.completed_chunks ?? 0),
+ maxChunks: Number(data.max_chunks ?? DEFAULT_MAX_CHUNKS),
+ limitReached: Boolean(data.limit_reached),
+ seed: Number(data.seed ?? DEFAULT_SEED),
+ };
+}
+
+function isTypingTarget(target: EventTarget | null): boolean {
+ if (!(target instanceof HTMLElement)) return false;
+ const tag = target.tagName;
+ return tag === "INPUT" || tag === "TEXTAREA" || tag === "SELECT" || target.isContentEditable;
+}
+
+/** A saved example with an object URL for its image. */
+type SavedExampleView = Example & { image: Blob; createdAt: number };
+
+function toView(saved: SavedExample): SavedExampleView {
+ return {
+ id: saved.id,
+ name: saved.name,
+ perspective: saved.perspective,
+ scene: saved.scene,
+ character: saved.character,
+ events: saved.events,
+ image: saved.image,
+ createdAt: saved.createdAt,
+ imageSrc: URL.createObjectURL(saved.image),
+ };
+}
+
+// ---- On-screen keys ----
+
+const KEY_IDLE = "bg-white/5 border-white/15 text-white/80 hover:bg-white/10 active:scale-95";
+const KEY_LIT = "bg-amber-300/20 border-amber-300/60 text-amber-200 scale-95";
+
+/** Hold-to-press key: pressed while the pointer is down. */
+function PadButton({
+ label,
+ pressed,
+ disabled,
+ onPress,
+ onRelease,
+ className,
+}: {
+ label: React.ReactNode;
+ pressed: boolean;
+ disabled?: boolean;
+ onPress: () => void;
+ onRelease: () => void;
+ className?: string;
+}) {
+ const handlers = disabled
+ ? {}
+ : {
+ onPointerDown: (e: React.PointerEvent) => {
+ e.currentTarget.setPointerCapture(e.pointerId);
+ onPress();
+ },
+ onPointerUp: onRelease,
+ onPointerCancel: onRelease,
+ onPointerLeave: (e: React.PointerEvent) => {
+ if (e.buttons !== 0) onRelease();
+ },
+ };
+
+ return (
+ <button
+ type="button"
+ disabled={disabled}
+ {...handlers}
+ className={cn(
+ "h-10 w-10 rounded border font-mono text-xs select-none transition-all",
+ "disabled:opacity-30 disabled:cursor-not-allowed",
+ pressed ? KEY_LIT : KEY_IDLE,
+ className,
+ )}
+ >
+ {label}
+ </button>
+ );
+}
+
+function SpeedSlider({
+ label,
+ value,
+ onChange,
+ disabled,
+}: {
+ label: string;
+ value: number;
+ onChange: (value: number) => void;
+ disabled?: boolean;
+}) {
+ return (
+ <div className="flex items-center gap-3">
+ <label className="w-20 shrink-0 font-mono text-[10px] uppercase tracking-wider text-white/50">
+ {label}
+ </label>
+ <input
+ type="range"
+ min={0.1}
+ max={20}
+ step={0.1}
+ value={value}
+ disabled={disabled}
+ onChange={(e) => onChange(Number(e.target.value))}
+ className="min-w-0 flex-1 accent-amber-300 disabled:opacity-40"
+ />
+ <span className="shrink-0 whitespace-nowrap text-right font-mono text-xs tabular-nums text-white/70">
+ {value.toFixed(1)}
+ <span className="text-white/40"> °/frame</span>
+ </span>
+ </div>
+ );
+}
+
+/** A prompt with its "The event is: ..." sentence highlighted in amber. */
+function PromptText({ text, small }: { text: string; small?: boolean }) {
+ const at = text.search(/\s*The event is:/);
+ const base = at >= 0 ? text.slice(0, at) : text;
+ const event = at >= 0 ? text.slice(at).trim() : "";
+ return (
+ <p
+ className={cn(
+ "whitespace-pre-wrap break-words font-mono leading-relaxed",
+ small ? "text-[11px] text-white/70" : "text-[12px] text-white/85",
+ )}
+ >
+ {base}
+ {event && (
+ <>
+ {" "}
+ <span className="box-decoration-clone rounded bg-amber-300/20 px-1 py-0.5 text-amber-100">{event}</span>
+ </>
+ )}
+ </p>
+ );
+}
+
+// ---- Controller ----
+
+export function WorldPlay2Controller() {
+ const { status, sendCommand, uploadFile, pauseTrack, resumeTrack, lastError } = useReactor((s) => ({
+ status: s.status,
+ sendCommand: s.sendCommand,
+ uploadFile: s.uploadFile,
+ pauseTrack: s.pauseTrack,
+ resumeTrack: s.resumeTrack,
+ lastError: s.lastError,
+ }));
+ const isReady = status === "ready";
+
+ const [modelState, setModelState] = useState<ModelState | null>(null);
+ const [lastChunk, setLastChunk] = useState<ChunkInfo | null>(null);
+ const [completionDetail, setCompletionDetail] = useState<string | null>(null);
+ const [isPaused, setIsPaused] = useState(false);
+ const [errorToast, setErrorToast] = useState<string | null>(null);
+
+ const [savedExamples, setSavedExamples] = useState<SavedExampleView[]>([]);
+ const [activeExampleId, setActiveExampleId] = useState<string | null>(null);
+ const [loadingExampleId, setLoadingExampleId] = useState<string | null>(null);
+ const [addOpen, setAddOpen] = useState(false);
+ const [droppedImage, setDroppedImage] = useState<File | null>(null);
+ const [galleryDropOver, setGalleryDropOver] = useState(false);
+ const galleryDropDepth = useRef(0);
+
+ const [promptDraft, setPromptDraft] = useState("");
+
+ // Events: the active world's base prompt plus at most one held event.
+ const [eventOverrides, setEventOverrides] = useState<Record<string, ExampleEvent[]>>({});
+ const [activeEvents, setActiveEvents] = useState<ExampleEvent[]>([]);
+ const [heldEvents, setHeldEvents] = useState<number[]>([]);
+ const [editingEvents, setEditingEvents] = useState<ExampleEvent[] | null>(null);
+ const basePromptRef = useRef("");
+ const activeEventsRef = useRef<ExampleEvent[]>([]);
+ const heldEventsRef = useRef<number[]>([]);
+ const lastSentPromptRef = useRef<string | null>(null);
+ // Mirrors for the live readout: the base prompt in effect and the last full prompt sent.
+ const [basePrompt, setBasePrompt] = useState("");
+ const [sentPrompt, setSentPrompt] = useState<string | null>(null);
+ const [showOnScreen, setShowOnScreen] = useState(false);
+ const [copied, setCopied] = useState(false);
+ const [perspective, setPerspective] = useState<Perspective>("fps");
+ const [yawDegrees, setYawDegrees] = useState(DEFAULT_YAW);
+ const [pitchDegrees, setPitchDegrees] = useState(DEFAULT_PITCH);
+ const [seed, setSeed] = useState(DEFAULT_SEED);
+ const [advancedOpen, setAdvancedOpen] = useState(false);
+ const promptBoxRef = useRef<HTMLTextAreaElement>(null);
+
+ // The prompt box grows to show its whole text; past its max height it scrolls.
+ useLayoutEffect(() => {
+ const box = promptBoxRef.current;
+ if (!box) return;
+ const fit = () => {
+ box.style.height = "auto";
+ box.style.height = `${box.scrollHeight + 2}px`;
+ };
+ fit();
+ window.addEventListener("resize", fit);
+ return () => window.removeEventListener("resize", fit);
+ }, [promptDraft]);
+
+ // Held inputs: keyboard and on-screen pads are tracked separately and unioned.
+ const keysHeld = useRef(new Set<string>());
+ const padsHeld = useRef(new Set<string>());
+ const [heldView, setHeldView] = useState<Set<string>>(new Set());
+
+ // Last action sent (or reported by the model); set_action goes out only on change.
+ const lastActionRef = useRef<Action>(IDLE_ACTION);
+ const lastWorldIdRef = useRef<number | null>(null);
+ const isReadyRef = useRef(isReady);
+ const modelStateRef = useRef<ModelState | null>(null);
+ useEffect(() => {
+ isReadyRef.current = isReady;
+ }, [isReady]);
+ useEffect(() => {
+ modelStateRef.current = modelState;
+ }, [modelState]);
+
+ const hasWorld = Boolean(modelState?.imageName);
+ const limitReached = Boolean(modelState?.limitReached);
+
+ // ---- set_action ----
+
+ const syncAction = useCallback(() => {
+ const held = new Set([...keysHeld.current, ...padsHeld.current]);
+ setHeldView(held);
+ const next = composeAction(held);
+ if (!isReadyRef.current) return;
+ const state = modelStateRef.current;
+ if (!state?.imageName || state.limitReached) return;
+ if (actionsEqual(next, lastActionRef.current)) return;
+ lastActionRef.current = next;
+ void sendCommand("set_action", next);
+ }, [sendCommand]);
+
+ // ---- set_prompt: base prompt plus the most recently held event ----
+
+ const syncPrompt = useCallback(() => {
+ if (!isReadyRef.current || !modelStateRef.current?.imageName || !basePromptRef.current) return;
+ const held = heldEventsRef.current;
+ const slot = held.length > 0 ? held[held.length - 1] : -1;
+ const next = withEvent(basePromptRef.current, activeEventsRef.current[slot] ?? null);
+ if (next === lastSentPromptRef.current) return;
+ lastSentPromptRef.current = next;
+ setSentPrompt(next);
+ void sendCommand("set_prompt", { prompt: next });
+ }, [sendCommand]);
+
+ const pressEvent = useCallback(
+ (slot: number) => {
+ if (slot < 0 || slot >= activeEventsRef.current.length) return;
+ if (heldEventsRef.current.includes(slot)) return;
+ heldEventsRef.current = [...heldEventsRef.current, slot];
+ setHeldEvents(heldEventsRef.current);
+ syncPrompt();
+ },
+ [syncPrompt],
+ );
+
+ const releaseEvent = useCallback(
+ (slot: number) => {
+ if (!heldEventsRef.current.includes(slot)) return;
+ heldEventsRef.current = heldEventsRef.current.filter((s) => s !== slot);
+ setHeldEvents(heldEventsRef.current);
+ syncPrompt();
+ },
+ [syncPrompt],
+ );
+
+ const releaseAll = useCallback(() => {
+ keysHeld.current.clear();
+ padsHeld.current.clear();
+ syncAction();
+ if (heldEventsRef.current.length > 0) {
+ heldEventsRef.current = [];
+ setHeldEvents([]);
+ syncPrompt();
+ }
+ }, [syncAction, syncPrompt]);
+
+ const pressPad = useCallback(
+ (code: string) => {
+ padsHeld.current.add(code);
+ syncAction();
+ },
+ [syncAction],
+ );
+ const releasePad = useCallback(
+ (code: string) => {
+ padsHeld.current.delete(code);
+ syncAction();
+ },
+ [syncAction],
+ );
+
+ // ---- Messages from the model ----
+
+ useReactorMessage((raw) => {
+ const msg = raw as { type?: string; data?: Record<string, unknown> };
+ if (!msg?.type) return;
+ const data = msg.data ?? {};
+ switch (msg.type) {
+ case "state_update": {
+ const next = parseModelState(data);
+ modelStateRef.current = next;
+ setModelState(next);
+ setPerspective(next.perspective);
+ setYawDegrees(next.yawDegrees);
+ setPitchDegrees(next.pitchDegrees);
+ if (!next.limitReached) setCompletionDetail(null);
+ // A new session or a new world: adopt the model's held controls, then
+ // re-send ours if they differ.
+ if (lastWorldIdRef.current !== next.worldId) {
+ lastWorldIdRef.current = next.worldId;
+ lastActionRef.current = {
+ movement: next.movement,
+ turn: next.turn,
+ look: next.look,
+ space: next.space,
+ };
+ syncAction();
+ }
+ break;
+ }
+ case "chunk_generated":
+ setLastChunk({
+ index: Number(data.chunk_index ?? 0),
+ frames: Number(data.frames ?? 0),
+ elapsedSeconds: Number(data.elapsed_seconds ?? 0),
+ action: String(data.action ?? ""),
+ prompt: String(data.prompt ?? ""),
+ });
+ break;
+ case "rollout_completed":
+ setCompletionDetail(String(data.detail ?? "All chunks are complete."));
+ break;
+ }
+ });
+
+ // Session-scoped state is cleared whenever the connection drops.
+ useEffect(() => {
+ if (status !== "disconnected") return;
+ setModelState(null);
+ modelStateRef.current = null;
+ setLastChunk(null);
+ setCompletionDetail(null);
+ setIsPaused(false);
+ setActiveExampleId(null);
+ setActiveEvents([]);
+ activeEventsRef.current = [];
+ heldEventsRef.current = [];
+ setHeldEvents([]);
+ basePromptRef.current = "";
+ lastSentPromptRef.current = null;
+ setBasePrompt("");
+ setSentPrompt(null);
+ lastWorldIdRef.current = null;
+ lastActionRef.current = IDLE_ACTION;
+ }, [status]);
+
+ // The runtime starts outbound tracks paused and the SDK resumes them on
+ // connect, but that first resume can leave the video sender negotiated and
+ // sending nothing (no RTP ever arrives; the stage stays black). An explicit
+ // pause/resume round-trip renegotiates the track and re-attaches it, so do
+ // one as soon as the session is ready.
+ useEffect(() => {
+ if (!isReady) return;
+ void (async () => {
+ try {
+ await pauseTrack("main_video");
+ await resumeTrack("main_video");
+ } catch {
+ // The session ended in between; the next one does its own round-trip.
+ }
+ })();
+ }, [isReady, pauseTrack, resumeTrack]);
+
+ useEffect(() => {
+ if (lastError) setErrorToast(lastError.message);
+ }, [lastError]);
+
+ useEffect(() => {
+ if (!errorToast) return;
+ const id = setTimeout(() => setErrorToast(null), 6000);
+ return () => clearTimeout(id);
+ }, [errorToast]);
+
+ // ---- Keyboard ----
+
+ useEffect(() => {
+ const onKeyDown = (e: KeyboardEvent) => {
+ const slot = eventSlotForKey(e.code);
+ if (slot >= 0 && !e.metaKey && !e.ctrlKey && !e.altKey && !isTypingTarget(e.target)) {
+ e.preventDefault();
+ if (!e.repeat) pressEvent(slot);
+ return;
+ }
+ if (!CONTROL_KEYS.has(e.code) || e.metaKey || e.ctrlKey || e.altKey) return;
+ if (isTypingTarget(e.target)) return;
+ e.preventDefault();
+ if (e.repeat || keysHeld.current.has(e.code)) return;
+ keysHeld.current.add(e.code);
+ syncAction();
+ };
+ const onKeyUp = (e: KeyboardEvent) => {
+ const slot = eventSlotForKey(e.code);
+ if (slot >= 0) {
+ releaseEvent(slot);
+ return;
+ }
+ if (!keysHeld.current.has(e.code)) return;
+ keysHeld.current.delete(e.code);
+ syncAction();
+ };
+ const onBlur = () => releaseAll();
+ window.addEventListener("keydown", onKeyDown);
+ window.addEventListener("keyup", onKeyUp);
+ window.addEventListener("blur", onBlur);
+ return () => {
+ window.removeEventListener("keydown", onKeyDown);
+ window.removeEventListener("keyup", onKeyUp);
+ window.removeEventListener("blur", onBlur);
+ };
+ }, [syncAction, releaseAll, pressEvent, releaseEvent]);
+
+ // ---- Speeds and perspective ----
+
+ const speedTimers = useRef<Record<string, ReturnType<typeof setTimeout>>>({});
+ const sendSpeed = useCallback(
+ (field: "yaw_degrees" | "pitch_degrees", value: number) => {
+ clearTimeout(speedTimers.current[field]);
+ speedTimers.current[field] = setTimeout(() => {
+ if (isReadyRef.current) void sendCommand(`set_${field}`, { [field]: value });
+ }, SPEED_DEBOUNCE_MS);
+ },
+ [sendCommand],
+ );
+
+ const changePerspective = useCallback(
+ (next: Perspective) => {
+ setPerspective(next);
+ if (isReady) void sendCommand("set_perspective", { perspective: next });
+ },
+ [isReady, sendCommand],
+ );
+
+ // ---- Starting worlds ----
+
+ const startWorld = useCallback(
+ async (example: Example, image?: Blob) => {
+ if (!isReady || loadingExampleId) return;
+ setLoadingExampleId(example.id);
+ setErrorToast(null);
+ const base = composeBasePrompt(example);
+ const events = eventOverrides[example.id] ?? example.events;
+ try {
+ if (modelStateRef.current?.perspective !== example.perspective) {
+ await sendCommand("set_perspective", { perspective: example.perspective });
+ }
+ let blob = image;
+ if (!blob) {
+ const response = await fetch(example.imageSrc);
+ if (!response.ok) throw new Error(`Could not load ${example.imageSrc}`);
+ blob = await response.blob();
+ }
+ const extension = blob.type.split("/")[1] || "jpg";
+ const ref = await uploadFile(blob, { name: `${example.id}.${extension}` });
+ await sendCommand("set_image", {
+ image: ref,
+ prompt: base,
+ });
+ basePromptRef.current = base;
+ lastSentPromptRef.current = base;
+ setBasePrompt(base);
+ setSentPrompt(base);
+ activeEventsRef.current = events;
+ heldEventsRef.current = [];
+ setActiveEvents(events);
+ setHeldEvents([]);
+ setActiveExampleId(example.id);
+ setPromptDraft(base);
+ setPerspective(example.perspective);
+ setLastChunk(null);
+ if (isPaused) {
+ await resumeTrack("main_video");
+ setIsPaused(false);
+ }
+ } catch (err) {
+ setErrorToast(err instanceof Error ? err.message : String(err));
+ } finally {
+ setLoadingExampleId(null);
+ }
+ },
+ [isReady, loadingExampleId, sendCommand, uploadFile, isPaused, resumeTrack, eventOverrides],
+ );
+
+ const resetWorld = useCallback(() => {
+ if (!isReady || !hasWorld) return;
+ setLastChunk(null);
+ void sendCommand("reset", { seed });
+ }, [isReady, hasWorld, sendCommand, seed]);
+
+ // The prompt box replaces the base prompt; a held event is re-applied on top of it.
+ const sendPrompt = useCallback(() => {
+ if (!isReady) return;
+ const base = stripEvent(promptDraft);
+ if (!base) return;
+ basePromptRef.current = base;
+ setBasePrompt(base);
+ setPromptDraft(base);
+ lastSentPromptRef.current = null;
+ syncPrompt();
+ }, [isReady, promptDraft, syncPrompt]);
+
+ // ---- Editing the active world's events ----
+
+ useEffect(() => {
+ setEventOverrides(loadEventOverrides());
+ }, []);
+
+ const saveActiveEvents = useCallback(
+ async (edited: ExampleEvent[]) => {
+ const events = cleanEvents(edited);
+ const id = activeExampleId;
+ if (!id) return;
+ const saved = savedExamples.find((ex) => ex.id === id);
+ try {
+ if (saved) {
+ await putSavedExample({
+ id: saved.id,
+ name: saved.name,
+ perspective: saved.perspective,
+ scene: saved.scene,
+ character: saved.character,
+ events,
+ image: saved.image,
+ createdAt: saved.createdAt,
+ });
+ setSavedExamples((list) => list.map((ex) => (ex.id === id ? { ...ex, events } : ex)));
+ } else {
+ const next = { ...eventOverrides, [id]: events };
+ setEventOverrides(next);
+ saveEventOverrides(next);
+ }
+ } catch (err) {
+ setErrorToast(err instanceof Error ? err.message : String(err));
+ return;
+ }
+ activeEventsRef.current = events;
+ heldEventsRef.current = [];
+ setActiveEvents(events);
+ setHeldEvents([]);
+ setEditingEvents(null);
+ syncPrompt();
+ },
+ [activeExampleId, savedExamples, eventOverrides, syncPrompt],
+ );
+
+ const restoreDefaultEvents = useCallback(() => {
+ const id = activeExampleId;
+ const builtIn = BUILT_IN_EXAMPLES.find((ex) => ex.id === id);
+ if (!id || !builtIn) return;
+ const next = { ...eventOverrides };
+ delete next[id];
+ setEventOverrides(next);
+ saveEventOverrides(next);
+ activeEventsRef.current = builtIn.events;
+ heldEventsRef.current = [];
+ setActiveEvents(builtIn.events);
+ setHeldEvents([]);
+ setEditingEvents(null);
+ syncPrompt();
+ }, [activeExampleId, eventOverrides, syncPrompt]);
+
+ const togglePause = useCallback(async () => {
+ try {
+ if (isPaused) {
+ await resumeTrack("main_video");
+ setIsPaused(false);
+ } else {
+ await pauseTrack("main_video");
+ setIsPaused(true);
+ }
+ } catch (err) {
+ setErrorToast(err instanceof Error ? err.message : String(err));
+ }
+ }, [isPaused, pauseTrack, resumeTrack]);
+
+ // ---- Saved examples ----
+
+ useEffect(() => {
+ let cancelled = false;
+ listSavedExamples()
+ .then((list) => {
+ if (!cancelled) setSavedExamples(list.map(toView));
+ })
+ .catch((err) => setErrorToast(err instanceof Error ? err.message : String(err)));
+ return () => {
+ cancelled = true;
+ };
+ }, []);
+
+ const savedRef = useRef(savedExamples);
+ useEffect(() => {
+ savedRef.current = savedExamples;
+ }, [savedExamples]);
+ useEffect(() => () => savedRef.current.forEach((ex) => URL.revokeObjectURL(ex.imageSrc)), []);
+
+ const saveExample = useCallback(
+ async (input: NewExample, play: boolean) => {
+ const saved: SavedExample = {
+ id: newExampleId(),
+ name: input.name,
+ perspective: input.perspective,
+ scene: input.scene,
+ character: input.character,
+ events: input.events,
+ image: input.image,
+ createdAt: Date.now(),
+ };
+ await putSavedExample(saved);
+ const view = toView(saved);
+ setSavedExamples((list) => [view, ...list]);
+ if (play) void startWorld(view, view.image);
+ },
+ [startWorld],
+ );
+
+ const removeExample = useCallback(async (example: SavedExampleView) => {
+ if (!window.confirm(`Delete "${example.name}"?`)) return;
+ try {
+ await deleteSavedExample(example.id);
+ URL.revokeObjectURL(example.imageSrc);
+ setSavedExamples((list) => list.filter((ex) => ex.id !== example.id));
+ } catch (err) {
+ setErrorToast(err instanceof Error ? err.message : String(err));
+ }
+ }, []);
+
+ // Dropping an image anywhere on the page must not navigate away from it.
+ useEffect(() => {
+ const prevent = (e: DragEvent) => {
+ if (dragHasImagePayload(e.dataTransfer)) e.preventDefault();
+ };
+ window.addEventListener("dragover", prevent);
+ window.addEventListener("drop", prevent);
+ return () => {
+ window.removeEventListener("dragover", prevent);
+ window.removeEventListener("drop", prevent);
+ };
+ }, []);
+
+ const openAddWithDrop = useCallback((dt: DataTransfer) => {
+ imageFileFromDataTransfer(dt)
+ .then((file) => {
+ setDroppedImage(file);
+ setAddOpen(true);
+ })
+ .catch((err) => setErrorToast(err instanceof Error ? err.message : String(err)));
+ }, []);
+
+ const currentAction = useMemo(
+ () => composeAction(heldView),
+ [heldView],
+ );
+ const controlsDisabled = !isReady || !hasWorld || limitReached;
+
+ // A disabled on-screen key gets no pointerup, so release any it was holding.
+ useEffect(() => {
+ if (!controlsDisabled || padsHeld.current.size === 0) return;
+ padsHeld.current.clear();
+ syncAction();
+ }, [controlsDisabled, syncAction]);
+
+ // ---- Render: example card ----
+
+ const renderExampleCard = (example: Example, saved?: SavedExampleView) => {
+ const isActive = activeExampleId === example.id;
+ const isLoading = loadingExampleId === example.id;
+ const disabled = !isReady || !!loadingExampleId;
+ const accent = saved ? "emerald" : "amber";
+ return (
+ <div
+ key={example.id}
+ className={cn(
+ "group flex items-stretch gap-1.5 rounded-lg border transition-all",
+ isActive
+ ? accent === "emerald"
+ ? "border-emerald-300/55 bg-emerald-300/10"
+ : "border-amber-300/60 bg-amber-300/10"
+ : "border-white/10 bg-white/[0.03] hover:border-white/20 hover:bg-white/[0.06]",
+ )}
+ >
+ <button
+ type="button"
+ onClick={() => startWorld(example, saved?.image)}
+ disabled={disabled}
+ title={isReady ? "Start a world from this example" : "Connect first"}
+ className={cn(
+ "relative flex min-w-0 flex-1 items-center gap-3 p-2 text-left",
+ saved ? "rounded-l-lg" : "rounded-lg",
+ "disabled:cursor-not-allowed disabled:opacity-50",
+ )}
+ >
+ <div className="relative h-14 w-24 shrink-0 overflow-hidden rounded-md border border-white/10 bg-black/30">
+ {/* eslint-disable-next-line @next/next/no-img-element */}
+ <img src={example.imageSrc} alt={example.name} className="h-full w-full object-cover" />
+ {isLoading && (
+ <div className="absolute inset-0 flex items-center justify-center bg-black/60">
+ <div className="h-4 w-4 animate-spin rounded-full border-2 border-amber-300 border-t-transparent" />
+ </div>
+ )}
+ </div>
+ <div className="flex min-w-0 flex-1 flex-col gap-0.5">
+ <div className="flex min-w-0 items-center gap-1.5">
+ <span className="truncate font-mono text-sm font-medium text-white">{example.name}</span>
+ <span className="shrink-0 rounded border border-white/15 bg-white/5 px-1.5 py-0.5 font-mono text-[8px] uppercase tracking-wider text-white/60">
+ {example.perspective}
+ </span>
+ {saved && (
+ <span className="shrink-0 rounded border border-emerald-300/35 bg-emerald-300/10 px-1.5 py-0.5 font-mono text-[8px] uppercase tracking-wider text-emerald-200">
+ yours
+ </span>
+ )}
+ </div>
+ <span className="line-clamp-2 font-mono text-[10px] leading-snug text-white/50">
+ {example.scene || "Generic description of the image"}
+ </span>
+ <span className="font-mono text-[9px] text-white/35">
+ {(eventOverrides[example.id] ?? example.events).length} event
+ {(eventOverrides[example.id] ?? example.events).length === 1 ? "" : "s"}
+ </span>
+ </div>
+ {isActive && (
+ <div
+ className={cn(
+ "h-2 w-2 shrink-0 rounded-full",
+ accent === "emerald" ? "bg-emerald-300" : "bg-amber-300",
+ )}
+ />
+ )}
+ </button>
+ {saved && (
+ <button
+ type="button"
+ onClick={() => removeExample(saved)}
+ title={`Delete ${example.name}`}
+ aria-label={`Delete ${example.name}`}
+ className="flex w-9 shrink-0 items-center justify-center rounded-r-lg border-l border-white/5 font-mono text-lg leading-none text-white/45 transition-colors hover:bg-white/[0.06] hover:text-red-300"
+ >
+ ×
+ </button>
+ )}
+ </div>
+ );
+ };
+
+ // ---- Live prompt readout ----
+
+ const heldEventName = (() => {
+ const slot = heldEvents.length > 0 ? heldEvents[heldEvents.length - 1] : -1;
+ const ev = activeEvents[slot];
+ return ev ? ev.name || `event ${slot + 1}` : null;
+ })();
+ const draftDirty = promptDraft.trim() !== basePrompt.trim();
+ const promptStatus: { label: string; tone: "green" | "amber" | "yellow" } | null = !sentPrompt
+ ? null
+ : (modelState?.prompt ?? "").trim() !== sentPrompt.trim()
+ ? { label: "sending…", tone: "yellow" }
+ : !lastChunk
+ ? { label: "accepted · waiting for a chunk", tone: "yellow" }
+ : lastChunk.prompt.trim() !== sentPrompt.trim()
+ ? { label: "accepted · on screen from next chunk", tone: "amber" }
+ : { label: "on screen", tone: "green" };
+ const copyLivePrompt = async () => {
+ if (!sentPrompt) return;
+ try {
+ await navigator.clipboard.writeText(sentPrompt);
+ setCopied(true);
+ setTimeout(() => setCopied(false), 1500);
+ } catch {
+ // Clipboard unavailable.
+ }
+ };
+
+ // ---- Render: sidebar ----
+
+ const sidebar = (
+ <div className="flex flex-col gap-4">
+ <div
+ className={cn(
+ "relative flex flex-col gap-2 rounded-lg transition-colors",
+ galleryDropOver && "bg-emerald-300/[0.045] outline outline-1 outline-emerald-300/55",
+ )}
+ onDragEnter={(e) => {
+ if (!dragHasImagePayload(e.dataTransfer)) return;
+ e.preventDefault();
+ galleryDropDepth.current += 1;
+ setGalleryDropOver(true);
+ }}
+ onDragOver={(e) => {
+ if (!dragHasImagePayload(e.dataTransfer)) return;
+ e.preventDefault();
+ e.dataTransfer.dropEffect = "copy";
+ }}
+ onDragLeave={() => {
+ galleryDropDepth.current = Math.max(0, galleryDropDepth.current - 1);
+ if (galleryDropDepth.current === 0) setGalleryDropOver(false);
+ }}
+ onDrop={(e) => {
+ if (!dragHasImagePayload(e.dataTransfer)) return;
+ e.preventDefault();
+ galleryDropDepth.current = 0;
+ setGalleryDropOver(false);
+ openAddWithDrop(e.dataTransfer);
+ }}
+ >
+ {galleryDropOver && (
+ <div className="pointer-events-none absolute inset-0 z-10 flex items-start justify-center rounded-lg border border-emerald-300/35 bg-black/35 p-3">
+ <span className="rounded border border-emerald-300/35 bg-emerald-300/15 px-3 py-2 font-mono text-[10px] uppercase tracking-wider text-emerald-100 shadow-lg">
+ Drop image to add an example
+ </span>
+ </div>
+ )}
+ <span className="font-mono text-xs uppercase tracking-widest text-primary">Examples</span>
+ <p className="text-[10px] leading-snug text-white/40">
+ Click an example to start a world from its image and prompt. Examples you add are saved
+ in this browser.
+ </p>
+ <div className="flex flex-col gap-2">
+ {BUILT_IN_EXAMPLES.map((ex) => renderExampleCard(ex))}
+ {savedExamples.map((ex) => renderExampleCard(ex, ex))}
+ </div>
+ <button
+ type="button"
+ onClick={() => {
+ setDroppedImage(null);
+ setAddOpen(true);
+ }}
+ className="group flex w-full items-center gap-3 rounded-lg border border-emerald-300/25 bg-emerald-300/[0.07] p-3 text-left transition-colors hover:border-emerald-300/45 hover:bg-emerald-300/[0.11]"
+ >
+ <span className="flex h-10 w-10 shrink-0 items-center justify-center rounded-md border border-emerald-300/35 bg-emerald-300/10 font-mono text-xl leading-none text-emerald-100 group-hover:bg-emerald-300/15">
+ +
+ </span>
+ <span className="flex min-w-0 flex-col gap-0.5">
+ <span className="font-mono text-sm font-medium text-white">Add your own example</span>
+ <span className="font-mono text-[10px] leading-snug text-white/45">
+ An image, a prompt and a perspective. Or drop an image here.
+ </span>
+ </span>
+ </button>
+ </div>
+
+ <div className="border-t border-white/[0.06]" />
+
+ <div className="flex flex-col gap-3">
+ <div className="flex flex-wrap items-center gap-3">
+ <div className="flex items-center gap-1.5">
+ <span className={cn("h-1.5 w-1.5 rounded-full", hasWorld ? "bg-green-400" : "bg-white/20")} />
+ <span className="font-mono text-[10px] text-white/50">
+ Image{modelState?.imageName ? `: ${modelState.imageName}` : ""}
+ </span>
+ </div>
+ <div className="flex items-center gap-1.5">
+ <span
+ className={cn("h-1.5 w-1.5 rounded-full", modelState?.prompt ? "bg-green-400" : "bg-white/20")}
+ />
+ <span className="font-mono text-[10px] text-white/50">Prompt</span>
+ </div>
+ </div>
+
+ <div className="flex flex-col gap-1.5">
+ <span className="font-mono text-[10px] uppercase tracking-wider text-white/50">Perspective</span>
+ <PerspectiveToggle value={perspective} onChange={changePerspective} disabled={!isReady} />
+ <span className="font-mono text-[10px] leading-snug text-white/40">
+ Applies from the next chunk. Use an image and prompt that match it.
+ </span>
+ </div>
+
+ </div>
+
+ {errorToast && (
+ <div className="rounded border border-red-500/30 bg-red-500/10 px-3 py-2 font-mono text-xs text-red-300">
+ {errorToast}
+ </div>
+ )}
+
+ <div className="border-t border-white/[0.06]" />
+
+ <div className="flex flex-col gap-3">
+ <span className="font-mono text-xs uppercase tracking-widest text-primary">Prompt</span>
+
+ {/* Live readout: the full prompt last sent (base + held event) and what the model used. */}
+ <div className="flex flex-col gap-2" role="region" aria-label="Live prompt">
+ <div className="flex flex-wrap items-center gap-2">
+ <span className="font-mono text-[10px] uppercase tracking-wider text-white/55">Live prompt</span>
+ {promptStatus && (
+ <span
+ className={cn(
+ "inline-flex items-center gap-1.5 rounded-full border px-2 py-0.5 font-mono text-[9px]",
+ promptStatus.tone === "green" && "border-emerald-400/40 bg-emerald-400/10 text-emerald-200",
+ promptStatus.tone === "amber" && "border-amber-300/50 bg-amber-300/10 text-amber-200",
+ promptStatus.tone === "yellow" && "border-yellow-300/40 bg-yellow-300/10 text-yellow-200",
+ )}
+ >
+ <span
+ className={cn(
+ "h-1.5 w-1.5 rounded-full",
+ promptStatus.tone === "green" ? "bg-emerald-400" : promptStatus.tone === "amber" ? "bg-amber-300" : "bg-yellow-300",
+ )}
+ />
+ {promptStatus.label}
+ </span>
+ )}
+ <div className="flex-1" />
+ {sentPrompt && (
+ <>
+ <span className="font-mono text-[10px] text-white/35">{sentPrompt.length} chars</span>
+ <button
+ type="button"
+ onClick={copyLivePrompt}
+ className="font-mono text-[10px] text-white/45 transition-colors hover:text-white/80"
+ >
+ {copied ? "Copied" : "Copy"}
+ </button>
+ </>
+ )}
+ </div>
+ {heldEventName && (
+ <span className="self-start rounded-full border border-amber-300/60 bg-amber-300/15 px-2.5 py-0.5 font-mono text-[10px] text-amber-100">
+ event held · {heldEventName}
+ </span>
+ )}
+ <div
+ className={cn(
+ "rounded-lg border bg-black/30 p-3 transition-colors",
+ heldEventName ? "border-amber-300/40" : "border-white/10",
+ )}
+ >
+ {sentPrompt ? (
+ <PromptText text={sentPrompt} />
+ ) : (
+ <p className="font-mono text-[11px] italic text-white/30">
+ Nothing sent yet. Pick an example to start a world.
+ </p>
+ )}
+ </div>
+ {sentPrompt && lastChunk && (
+ <div className="flex flex-col gap-1.5">
+ <div className="flex flex-wrap items-center gap-2 font-mono text-[10px] text-white/45">
+ <span>On screen · chunk {lastChunk.index}</span>
+ {lastChunk.prompt.trim() === sentPrompt.trim() ? (
+ <span className="text-emerald-300/80">same as live</span>
+ ) : (
+ <button
+ type="button"
+ onClick={() => setShowOnScreen((v) => !v)}
+ className="text-amber-200/80 transition-colors hover:text-amber-100"
+ >
+ previous prompt {showOnScreen ? "▾ hide" : "▸ show"}
+ </button>
+ )}
+ </div>
+ {showOnScreen && lastChunk.prompt.trim() !== sentPrompt.trim() && (
+ <div className="rounded-md border border-white/10 bg-white/[0.02] p-2.5 opacity-80">
+ <PromptText text={lastChunk.prompt} small />
+ </div>
+ )}
+ </div>
+ )}
+ </div>
+
+ {/* Editable base prompt; the live readout above never overwrites the draft. */}
+ <div className="flex flex-col gap-2 border-t border-dashed border-white/[0.08] pt-3">
+ <div className="flex flex-wrap items-center gap-2">
+ <span className="font-mono text-[10px] uppercase tracking-wider text-white/55">Edit base prompt</span>
+ {draftDirty && (
+ <span className="rounded border border-white/20 bg-white/5 px-1.5 py-0.5 font-mono text-[9px] uppercase tracking-wider text-white/60">
+ edited · not sent
+ </span>
+ )}
+ <div className="ml-auto flex items-center gap-1">
+ {draftDirty && basePrompt && (
+ <Button
+ size="sm"
+ variant="ghost"
+ onClick={() => setPromptDraft(basePrompt)}
+ title="Discard edits and show the base prompt in effect"
+ className="h-7 px-2 font-mono text-[10px] text-white/50"
+ >
+ Revert
+ </Button>
+ )}
+ <Button
+ size="sm"
+ variant="ghost"
+ disabled={!promptDraft}
+ onClick={() => setPromptDraft("")}
+ className="h-7 px-2 font-mono text-[10px] text-white/50 hover:text-red-200"
+ >
+ Clear
+ </Button>
+ <Button
+ size="sm"
+ disabled={!isReady || !promptDraft.trim()}
+ onClick={sendPrompt}
+ title="Replace the base prompt for upcoming chunks, keeping the current world"
+ className="h-7 px-3 font-mono text-[10px]"
+ >
+ Send
+ </Button>
+ </div>
+ </div>
+ <span className="font-mono text-[10px] text-white/30">
+ Enter sends · Shift+Enter new line · held events are added on top
+ </span>
+ <textarea
+ ref={promptBoxRef}
+ value={promptDraft}
+ onChange={(e) => setPromptDraft(e.target.value)}
+ onKeyDown={(e) => {
+ if (e.key === "Enter" && !e.shiftKey) {
+ e.preventDefault();
+ sendPrompt();
+ }
+ }}
+ maxLength={4096}
+ rows={3}
+ placeholder="The scene in the video is: ..."
+ className="max-h-[45vh] min-h-[4.5rem] w-full resize-none overflow-y-auto rounded-md border border-white/10 bg-black/30 px-2.5 py-2 font-mono text-[11px] leading-snug text-white placeholder-white/25 outline-none focus:border-white/30"
+ />
+ </div>
+ </div>
+
+ {/* Advanced: rarely-touched settings, collapsed by default */}
+ <div className="flex flex-col gap-2 border-t border-white/[0.06] pt-3">
+ <button
+ type="button"
+ onClick={() => setAdvancedOpen((v) => !v)}
+ aria-expanded={advancedOpen}
+ className="self-start font-mono text-[10px] uppercase tracking-wider text-white/40 transition-colors hover:text-white/70"
+ >
+ {advancedOpen ? "▾" : "▸"} Advanced
+ </button>
+ {advancedOpen && (
+ <div className="flex flex-col gap-3 rounded border border-white/10 bg-white/[0.02] p-3">
+ <div className="flex items-center gap-3">
+ <label className="w-20 shrink-0 font-mono text-[10px] uppercase tracking-wider text-white/50">
+ Seed
+ </label>
+ <Input
+ type="number"
+ min={0}
+ value={seed}
+ onChange={(e) => setSeed(Math.max(0, Math.floor(Number(e.target.value) || 0)))}
+ className="h-7 w-24 px-2 font-mono text-xs md:text-xs"
+ />
+ <Button
+ size="sm"
+ variant="ghost"
+ onClick={() => setSeed(Math.floor(Math.random() * 1_000_000))}
+ className="h-7 font-mono text-[10px]"
+ >
+ Random
+ </Button>
+ </div>
+ <div className="flex items-center gap-3">
+ <span className="w-20 shrink-0" />
+ <Button
+ size="sm"
+ variant="secondary"
+ disabled={!isReady || !hasWorld}
+ onClick={resetWorld}
+ title="Restart the current image with this seed"
+ className="h-7 bg-red-500/15 font-mono text-[10px] text-red-300 hover:bg-red-500/25"
+ >
+ Reset world
+ </Button>
+ <span className="font-mono text-[10px] leading-snug text-white/40">Keeps prompt and held controls.</span>
+ </div>
+ <SpeedSlider
+ label="Yaw speed"
+ value={yawDegrees}
+ disabled={!isReady}
+ onChange={(v) => {
+ setYawDegrees(v);
+ sendSpeed("yaw_degrees", v);
+ }}
+ />
+ <SpeedSlider
+ label="Pitch speed"
+ value={pitchDegrees}
+ disabled={!isReady}
+ onChange={(v) => {
+ setPitchDegrees(v);
+ sendSpeed("pitch_degrees", v);
+ }}
+ />
+ </div>
+ )}
+ </div>
+
+ {addOpen && (
+ <AddExampleModal
+ initialImage={droppedImage}
+ canPlay={isReady && !loadingExampleId}
+ onSave={saveExample}
+ onClose={() => {
+ setAddOpen(false);
+ setDroppedImage(null);
+ }}
+ />
+ )}
+
+ {editingEvents && (
+ <div
+ className="fixed inset-0 z-50 flex items-center justify-center bg-black/70 p-4"
+ onClick={() => setEditingEvents(null)}
+ >
+ <div
+ className="flex max-h-[90vh] w-full max-w-lg flex-col gap-4 overflow-y-auto rounded-xl border border-white/15 bg-neutral-950 p-5 shadow-2xl"
+ onClick={(e) => e.stopPropagation()}
+ >
+ <h3 className="font-mono text-sm text-white">Edit events</h3>
+ <span className="font-mono text-[10px] leading-snug text-white/40">
+ Saved in this browser for this example.
+ </span>
+ <EventsEditor events={editingEvents} onChange={setEditingEvents} />
+ <div className="flex items-center justify-end gap-2">
+ {activeExampleId && eventOverrides[activeExampleId] && (
+ <Button
+ size="sm"
+ variant="ghost"
+ onClick={restoreDefaultEvents}
+ className="mr-auto font-mono text-[11px] text-white/50"
+ >
+ Restore defaults
+ </Button>
+ )}
+ <Button size="sm" variant="ghost" onClick={() => setEditingEvents(null)} className="font-mono text-[11px]">
+ Cancel
+ </Button>
+ <Button size="sm" onClick={() => saveActiveEvents(editingEvents)} className="font-mono text-[11px]">
+ Save
+ </Button>
+ </div>
+ </div>
+ </div>
+ )}
+ </div>
+ );
+
+ // ---- Render: controls ----
+
+ const lit = (code: string) => heldView.has(code);
+ const turnLit = (dir: Turn) => currentAction.turn === dir;
+ const lookLit = (dir: Look) => currentAction.look === dir;
+
+ const controls = (
+ <div className="flex flex-col gap-3">
+ <div className="flex flex-wrap items-center gap-3">
+ {modelState && (
+ <span className="font-mono text-[10px] text-white/40">
+ chunk {modelState.completedChunks}/{modelState.maxChunks}
+ </span>
+ )}
+ {lastChunk && (
+ <span className="font-mono text-[10px] text-white/40">
+ last chunk {lastChunk.frames} frames in {lastChunk.elapsedSeconds.toFixed(2)} s
+ </span>
+ )}
+ <span className={cn("font-mono text-[10px]", isReady ? "text-amber-300/70" : "text-white/35")}>
+ action: {modelState?.action ?? "none"}
+ </span>
+ <div className="flex-1" />
+ {isReady && (
+ <Button size="sm" variant="secondary" onClick={togglePause} className="font-mono text-[10px]">
+ {isPaused ? "Resume" : "Pause"}
+ </Button>
+ )}
+ </div>
+
+ {activeExampleId && (
+ <div className="flex flex-col gap-1">
+ <div className="flex items-center gap-2">
+ <span className="font-mono text-[9px] uppercase tracking-wider text-white/40">
+ Events · hold a chip or key 1–{Math.max(1, Math.min(MAX_EVENTS, activeEvents.length))}; shows after a
+ short delay, ends on release
+ </span>
+ <button
+ type="button"
+ onClick={() => setEditingEvents(activeEvents.map((ev) => ({ ...ev })))}
+ className="shrink-0 whitespace-nowrap font-mono text-[10px] text-white/40 transition-colors hover:text-amber-200"
+ title="Edit this example's events"
+ >
+ ✎ edit
+ </button>
+ </div>
+ {activeEvents.length > 0 ? (
+ <div className="flex flex-wrap gap-1">
+ {activeEvents.slice(0, MAX_EVENTS).map((ev, slot) => (
+ <EventChip
+ key={slot}
+ slot={slot}
+ name={ev.name}
+ pressed={heldEvents.length > 0 && heldEvents[heldEvents.length - 1] === slot}
+ disabled={!isReady || !hasWorld}
+ onPress={() => pressEvent(slot)}
+ onRelease={() => releaseEvent(slot)}
+ />
+ ))}
+ </div>
+ ) : (
+ <span className="font-mono text-[10px] text-white/35">No events for this example yet.</span>
+ )}
+ </div>
+ )}
+
+ <div className="grid grid-cols-2 gap-4">
+ <div className="flex flex-col items-center gap-1.5">
+ <span className="font-mono text-[9px] uppercase tracking-wider text-white/40">Move (WASD)</span>
+ <div className="flex flex-col items-center gap-0.5">
+ <PadButton
+ label="W"
+ pressed={lit("KeyW")}
+ disabled={controlsDisabled}
+ onPress={() => pressPad("KeyW")}
+ onRelease={() => releasePad("KeyW")}
+ />
+ <div className="flex gap-0.5">
+ {(["KeyA", "KeyS", "KeyD"] as const).map((code) => (
+ <PadButton
+ key={code}
+ label={code.slice(3)}
+ pressed={lit(code)}
+ disabled={controlsDisabled}
+ onPress={() => pressPad(code)}
+ onRelease={() => releasePad(code)}
+ />
+ ))}
+ </div>
+ <PadButton
+ label="Space"
+ pressed={lit("Space")}
+ disabled={controlsDisabled}
+ onPress={() => pressPad("Space")}
+ onRelease={() => releasePad("Space")}
+ className="h-8 w-[124px] text-[11px]"
+ />
+ </div>
+ <span className="font-mono text-[10px] text-white/50">{currentAction.movement}</span>
+ </div>
+
+ <div className="flex flex-col items-center gap-1.5">
+ <span className="font-mono text-[9px] uppercase tracking-wider text-white/40">
+ Turn ← → · Look ↑ ↓
+ </span>
+ <div className="flex flex-col items-center gap-0.5">
+ <PadButton
+ label="↑"
+ pressed={lookLit("up")}
+ disabled={controlsDisabled}
+ onPress={() => pressPad("ArrowUp")}
+ onRelease={() => releasePad("ArrowUp")}
+ />
+ <div className="flex gap-0.5">
+ <PadButton
+ label="←"
+ pressed={turnLit("left")}
+ disabled={controlsDisabled}
+ onPress={() => pressPad("ArrowLeft")}
+ onRelease={() => releasePad("ArrowLeft")}
+ />
+ <PadButton
+ label="↓"
+ pressed={lookLit("down")}
+ disabled={controlsDisabled}
+ onPress={() => pressPad("ArrowDown")}
+ onRelease={() => releasePad("ArrowDown")}
+ />
+ <PadButton
+ label="→"
+ pressed={turnLit("right")}
+ disabled={controlsDisabled}
+ onPress={() => pressPad("ArrowRight")}
+ onRelease={() => releasePad("ArrowRight")}
+ />
+ </div>
+ </div>
+ <span className="font-mono text-[10px] text-white/50">
+ turn {currentAction.turn} · look {currentAction.look}
+ </span>
+ </div>
+
+ </div>
+
+ <p className="font-mono text-[10px] leading-snug text-white/35">
+ Controls are held while pressed and released when you let go.
+ </p>
+ </div>
+ );
+
+ // ---- Render: stage ----
+
+ const stageOverlay = loadingExampleId ? (
+ <div className="pointer-events-none absolute inset-0 flex items-center justify-center bg-black/70">
+ <div className="flex items-center gap-2 rounded-lg border border-white/10 bg-white/[0.06] px-4 py-2">
+ <div className="h-3.5 w-3.5 animate-spin rounded-full border-2 border-amber-300 border-t-transparent" />
+ <span className="font-mono text-xs text-white/70">Loading example</span>
+ </div>
+ </div>
+ ) : limitReached ? (
+ <div className="pointer-events-none absolute inset-x-0 top-4 flex justify-center px-4">
+ <div className="max-w-md rounded-lg border border-amber-300/30 bg-black/70 px-4 py-2 text-center font-mono text-xs text-amber-100">
+ {completionDetail ?? "All chunks are complete."}
+ </div>
+ </div>
+ ) : isPaused ? (
+ <div className="pointer-events-none absolute inset-0 flex items-center justify-center bg-black/35">
+ <div className="rounded-lg border border-white/10 bg-black/55 px-4 py-2 font-mono text-xs text-white/70">
+ Paused
+ </div>
+ </div>
+ ) : !hasWorld ? (
+ <div className="pointer-events-none absolute inset-0 flex items-center justify-center">
+ <span className="font-mono text-xs text-white/40">
+ {isReady ? "Pick an example to start a world" : "Connect, then pick an example"}
+ </span>
+ </div>
+ ) : null;
+
+ const stage = (
+ <div
+ className="relative aspect-video w-full shrink-0 overflow-hidden rounded-xl border border-white/[0.08] bg-black lg:min-w-[320px] lg:max-w-full lg:resize"
+ >
+ <ReactorView
+ track="main_video"
+ videoObjectFit="contain"
+ style={{ position: "absolute", inset: 0, width: "100%", height: "100%", pointerEvents: "none" }}
+ />
+ {stageOverlay}
+ </div>
+ );
+
+ return { sidebar, stage, controls };
+}
diff --git a/reactor/demo/components/ui/button.tsx b/reactor/demo/components/ui/button.tsx
new file mode 100644
index 0000000..e649e6d
--- /dev/null
+++ b/reactor/demo/components/ui/button.tsx
@@ -0,0 +1,66 @@
+import * as React from "react";
+import { cva, type VariantProps } from "class-variance-authority";
+import { Slot } from "radix-ui";
+
+import { cn } from "@/lib/utils";
+
+const buttonVariants = cva(
+ "focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 rounded border border-transparent bg-clip-padding text-sm font-normal focus-visible:ring-[3px] aria-invalid:ring-[3px] [&_svg:not([class*='size-'])]:size-4 inline-flex items-center justify-center whitespace-nowrap transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none shrink-0 [&_svg]:shrink-0 outline-none group/button select-none uppercase tracking-wide",
+ {
+ variants: {
+ variant: {
+ default:
+ "bg-primary text-primary-foreground hover:brightness-95 active:brightness-90 shadow-[var(--reactor-shadow-button)] hover:shadow-[0_2px_3px_rgba(0,0,0,0.12),0_6px_6px_rgba(0,0,0,0.1),0_14px_8px_rgba(0,0,0,0.06),0_24px_10px_rgba(0,0,0,0.02),0_36px_11px_rgba(0,0,0,0)]",
+ outline:
+ "border-border bg-background hover:bg-muted hover:text-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50 aria-expanded:bg-muted aria-expanded:text-foreground shadow-[var(--reactor-shadow-button)]",
+ secondary:
+ "bg-transparent text-foreground border border-foreground hover:bg-foreground/5 active:bg-foreground/10",
+ ghost: "hover:bg-foreground/5 active:bg-foreground/10 text-foreground",
+ destructive:
+ "bg-destructive/10 hover:bg-destructive/20 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/20 text-destructive focus-visible:border-destructive/40 dark:hover:bg-destructive/30",
+ link: "text-primary underline-offset-4 hover:underline normal-case",
+ },
+ size: {
+ default:
+ "h-9 gap-1.5 px-4 in-data-[slot=button-group]:rounded has-data-[icon=inline-end]:pr-3 has-data-[icon=inline-start]:pl-3",
+ xs: "h-6 gap-1 px-3 text-xs in-data-[slot=button-group]:rounded has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2 [&_svg:not([class*='size-'])]:size-3",
+ sm: "h-8 gap-1 px-3 in-data-[slot=button-group]:rounded has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",
+ lg: "h-10 gap-1.5 px-6 has-data-[icon=inline-end]:pr-4 has-data-[icon=inline-start]:pl-4",
+ icon: "size-9",
+ "icon-xs":
+ "size-6 in-data-[slot=button-group]:rounded [&_svg:not([class*='size-'])]:size-3",
+ "icon-sm": "size-8 in-data-[slot=button-group]:rounded",
+ "icon-lg": "size-10",
+ },
+ },
+ defaultVariants: {
+ variant: "default",
+ size: "default",
+ },
+ }
+);
+
+function Button({
+ className,
+ variant = "default",
+ size = "default",
+ asChild = false,
+ ...props
+}: React.ComponentProps<"button"> &
+ VariantProps<typeof buttonVariants> & {
+ asChild?: boolean;
+ }) {
+ const Comp = asChild ? Slot.Root : "button";
+
+ return (
+ <Comp
+ data-slot="button"
+ data-variant={variant}
+ data-size={size}
+ className={cn(buttonVariants({ variant, size, className }))}
+ {...props}
+ />
+ );
+}
+
+export { Button, buttonVariants };
diff --git a/reactor/demo/components/ui/input.tsx b/reactor/demo/components/ui/input.tsx
new file mode 100644
index 0000000..7452d9e
--- /dev/null
+++ b/reactor/demo/components/ui/input.tsx
@@ -0,0 +1,19 @@
+import * as React from "react"
+
+import { cn } from "@/lib/utils"
+
+function Input({ className, type, ...props }: React.ComponentProps<"input">) {
+ return (
+ <input
+ type={type}
+ data-slot="input"
+ className={cn(
+ "dark:bg-input/30 border-input focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 h-9 rounded-md border bg-transparent px-2.5 py-1 text-base shadow-xs transition-[color,box-shadow] file:h-7 file:text-sm file:font-medium focus-visible:ring-[3px] aria-invalid:ring-[3px] md:text-sm file:text-foreground placeholder:text-muted-foreground w-full min-w-0 outline-none file:inline-flex file:border-0 file:bg-transparent disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",
+ className
+ )}
+ {...props}
+ />
+ )
+}
+
+export { Input }
diff --git a/reactor/demo/endpoints.json b/reactor/demo/endpoints.json
new file mode 100644
index 0000000..74e52a0
--- /dev/null
+++ b/reactor/demo/endpoints.json
@@ -0,0 +1,10 @@
+{
+ "endpoints": [
+ {
+ "id": "local",
+ "label": "Local",
+ "url": "http://localhost:8080",
+ "kind": "local"
+ }
+ ]
+}
diff --git a/reactor/demo/eslint.config.mjs b/reactor/demo/eslint.config.mjs
new file mode 100644
index 0000000..2cfeb32
--- /dev/null
+++ b/reactor/demo/eslint.config.mjs
@@ -0,0 +1,12 @@
+import { dirname } from "path";
+import { fileURLToPath } from "url";
+import { FlatCompat } from "@eslint/eslintrc";
+
+const compat = new FlatCompat({ baseDirectory: dirname(fileURLToPath(import.meta.url)) });
+
+const eslintConfig = [
+ ...compat.extends("next/core-web-vitals", "next/typescript"),
+ { ignores: ["node_modules/**", ".next/**", "out/**", "next-env.d.ts"] },
+];
+
+export default eslintConfig;
diff --git a/reactor/demo/lib/endpoints-config.ts b/reactor/demo/lib/endpoints-config.ts
new file mode 100644
index 0000000..7f36c11
--- /dev/null
+++ b/reactor/demo/lib/endpoints-config.ts
@@ -0,0 +1,64 @@
+// Server-only: reads the endpoint list from files at request time, so editing
+// them needs a page reload, not a rebuild. Import only from server components
+// and route handlers.
+import { readFileSync, existsSync } from "node:fs";
+import path from "node:path";
+import type { Endpoint, EndpointKind } from "@/lib/endpoints";
+
+export type EndpointConfig = Endpoint & {
+ /** Name of the server-side env var holding this hosted endpoint's API key. */
+ apiKeyEnv?: string;
+};
+
+const SHIPPED_FILE = "endpoints.json";
+const LOCAL_FILE = "endpoints.local.json";
+
+function slug(text: string): string {
+ return text.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-|-$/g, "");
+}
+
+function parseFile(file: string): EndpointConfig[] {
+ const full = path.join(process.cwd(), file);
+ const raw = JSON.parse(readFileSync(full, "utf8")) as { endpoints?: unknown };
+ if (!Array.isArray(raw.endpoints)) throw new Error(`${file}: expected {"endpoints": [...]}`);
+ return raw.endpoints.map((value, i) => {
+ const entry = value as Record<string, unknown>;
+ const where = `${file} entry ${i + 1}`;
+ const label = typeof entry.label === "string" ? entry.label.trim() : "";
+ const url = typeof entry.url === "string" ? entry.url.trim().replace(/\/+$/, "") : "";
+ const kind = entry.kind as EndpointKind;
+ if (!label) throw new Error(`${where}: "label" is required`);
+ if (!/^https?:\/\//.test(url)) throw new Error(`${where}: "url" must start with http:// or https://`);
+ if (kind !== "local" && kind !== "hosted") throw new Error(`${where}: "kind" must be "local" or "hosted"`);
+ const id = typeof entry.id === "string" && entry.id.trim() ? entry.id.trim() : slug(label);
+ const apiKeyEnv = typeof entry.apiKeyEnv === "string" ? entry.apiKeyEnv.trim() : undefined;
+ if (kind === "hosted" && !apiKeyEnv) throw new Error(`${where}: a hosted entry needs "apiKeyEnv"`);
+ const modelName = typeof entry.modelName === "string" && entry.modelName.trim() ? entry.modelName.trim() : undefined;
+ return { id, label, url, kind, apiKeyEnv, modelName };
+ });
+}
+
+/**
+ * The shipped list, then the optional local file: a local entry with the same
+ * id replaces the shipped one, any other local entry is appended.
+ */
+export function loadEndpoints(): EndpointConfig[] {
+ const list = parseFile(SHIPPED_FILE);
+ if (existsSync(path.join(process.cwd(), LOCAL_FILE))) {
+ for (const entry of parseFile(LOCAL_FILE)) {
+ const at = list.findIndex((e) => e.id === entry.id);
+ if (at >= 0) list[at] = entry;
+ else list.push(entry);
+ }
+ }
+ const ids = list.map((e) => e.id);
+ const dupes = ids.filter((id, i) => ids.indexOf(id) !== i);
+ if (dupes.length) throw new Error(`Duplicate endpoint id(s): ${[...new Set(dupes)].join(", ")}`);
+ if (list.length === 0) throw new Error("No endpoints configured");
+ return list;
+}
+
+/** The browser-safe view of the list. */
+export function publicEndpoints(): Endpoint[] {
+ return loadEndpoints().map(({ id, label, url, kind, modelName }) => ({ id, label, url, kind, ...(modelName ? { modelName } : {}) }));
+}
diff --git a/reactor/demo/lib/endpoints.ts b/reactor/demo/lib/endpoints.ts
new file mode 100644
index 0000000..bc538db
--- /dev/null
+++ b/reactor/demo/lib/endpoints.ts
@@ -0,0 +1,22 @@
+/** Model name on a hosted endpoint. */
+export const MODEL_NAME = "worldplay2";
+
+/**
+ * One connection target, as listed in `endpoints.json` (plus the optional,
+ * untracked `endpoints.local.json`).
+ *
+ * - `local`: the model's own HTTP runtime (`reactor run`); no API key or token.
+ * - `hosted`: a Reactor API; the server route `app/api/token` mints a session
+ * token with the API key held in the env var named by `apiKeyEnv`.
+ */
+export type EndpointKind = "local" | "hosted";
+
+/** What the browser receives: the server keeps `apiKeyEnv` to itself. */
+export type Endpoint = {
+ id: string;
+ label: string;
+ url: string;
+ kind: EndpointKind;
+ /** `hosted` only: the model's name on that API, when it differs from MODEL_NAME (e.g. a canonical `org/name`). */
+ modelName?: string;
+};
diff --git a/reactor/demo/lib/example-store.ts b/reactor/demo/lib/example-store.ts
new file mode 100644
index 0000000..9025d6e
--- /dev/null
+++ b/reactor/demo/lib/example-store.ts
@@ -0,0 +1,111 @@
+import { splitPrompt, type ExampleEvent, type Perspective } from "@/lib/examples";
+
+// Examples added from the UI, kept in this browser's IndexedDB.
+
+/** A saved example as stored: the image is kept as a Blob. */
+export type SavedExample = {
+ id: string;
+ name: string;
+ perspective: Perspective;
+ scene: string;
+ character: string;
+ events: ExampleEvent[];
+ image: Blob;
+ createdAt: number;
+};
+
+/** Entries saved before events existed carry one `prompt` string instead of parts. */
+type StoredExample = Partial<SavedExample> & { id: string; image: Blob; prompt?: string };
+
+function migrate(entry: StoredExample): SavedExample {
+ const parts =
+ entry.scene === undefined ? splitPrompt(entry.prompt ?? "") : { scene: entry.scene, character: entry.character ?? "" };
+ return {
+ id: entry.id,
+ name: entry.name ?? "Untitled example",
+ perspective: entry.perspective === "tps" ? "tps" : "fps",
+ scene: parts.scene,
+ character: parts.character,
+ events: Array.isArray(entry.events) ? entry.events : [],
+ image: entry.image,
+ createdAt: entry.createdAt ?? 0,
+ };
+}
+
+const DB_NAME = "worldplay2";
+const DB_VERSION = 1;
+const STORE = "examples";
+
+function openDb(): Promise<IDBDatabase> {
+ return new Promise((resolve, reject) => {
+ if (typeof indexedDB === "undefined") {
+ reject(new Error("This browser has no IndexedDB, so examples cannot be saved."));
+ return;
+ }
+ const request = indexedDB.open(DB_NAME, DB_VERSION);
+ request.onupgradeneeded = () => {
+ const db = request.result;
+ if (!db.objectStoreNames.contains(STORE)) {
+ db.createObjectStore(STORE, { keyPath: "id" });
+ }
+ };
+ request.onsuccess = () => resolve(request.result);
+ request.onerror = () => reject(request.error ?? new Error("Could not open IndexedDB."));
+ });
+}
+
+async function withStore<T>(
+ mode: IDBTransactionMode,
+ run: (store: IDBObjectStore) => IDBRequest<T>,
+): Promise<T> {
+ const db = await openDb();
+ try {
+ return await new Promise<T>((resolve, reject) => {
+ const tx = db.transaction(STORE, mode);
+ const request = run(tx.objectStore(STORE));
+ tx.oncomplete = () => resolve(request.result);
+ tx.onerror = () => reject(tx.error ?? new Error("IndexedDB transaction failed."));
+ tx.onabort = () => reject(tx.error ?? new Error("IndexedDB transaction aborted."));
+ });
+ } finally {
+ db.close();
+ }
+}
+
+/** All saved examples, newest first. */
+export async function listSavedExamples(): Promise<SavedExample[]> {
+ const all = await withStore<StoredExample[]>("readonly", (store) => store.getAll());
+ return all.map(migrate).sort((a, b) => b.createdAt - a.createdAt);
+}
+
+export async function putSavedExample(example: SavedExample): Promise<void> {
+ await withStore("readwrite", (store) => store.put(example));
+}
+
+export async function deleteSavedExample(id: string): Promise<void> {
+ await withStore("readwrite", (store) => store.delete(id));
+}
+
+export function newExampleId(): string {
+ return `saved-${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 8)}`;
+}
+
+// Edited events of built-in examples, kept in localStorage by example id.
+const EVENT_OVERRIDES_KEY = "worldplay2:event-overrides:v5";
+
+export function loadEventOverrides(): Record<string, ExampleEvent[]> {
+ try {
+ const parsed = JSON.parse(localStorage.getItem(EVENT_OVERRIDES_KEY) ?? "{}");
+ return parsed && typeof parsed === "object" ? parsed : {};
+ } catch {
+ return {};
+ }
+}
+
+export function saveEventOverrides(overrides: Record<string, ExampleEvent[]>): void {
+ try {
+ localStorage.setItem(EVENT_OVERRIDES_KEY, JSON.stringify(overrides));
+ } catch {
+ // Storage unavailable: edits last for this page load only.
+ }
+}
diff --git a/reactor/demo/lib/examples.ts b/reactor/demo/lib/examples.ts
new file mode 100644
index 0000000..fc8ebdb
--- /dev/null
+++ b/reactor/demo/lib/examples.ts
@@ -0,0 +1,157 @@
+export type Perspective = "fps" | "tps";
+
+/** A named event: one sentence added to the prompt while its chip or hotkey is held. */
+export type ExampleEvent = {
+ name: string;
+ text: string;
+};
+
+/** A starting image plus the prompt parts and perspective it is played with. */
+export type Example = {
+ id: string;
+ name: string;
+ perspective: Perspective;
+ /** What "The scene in the video is:" describes. */
+ scene: string;
+ /** What "The character is:" describes; used only for tps. */
+ character: string;
+ events: ExampleEvent[];
+ /** URL of the image: a file under public/ or an object URL for a saved example. */
+ imageSrc: string;
+};
+
+/** Hotkeys 1–9 address the first nine events. */
+export const MAX_EVENTS = 9;
+
+const DEFAULT_SCENE =
+ "the environment shown in the reference image, with consistent layout, objects, and lighting";
+const DEFAULT_CHARACTER =
+ "the same main character shown in the reference image, with consistent appearance and clothing";
+
+function sentencePart(text: string): string {
+ return text.trim().replace(/[.\s]+$/, "");
+}
+
+/** The base prompt: scene, plus character for tps. Blank parts use the model's own defaults. */
+export function composeBasePrompt(parts: Pick<Example, "perspective" | "scene" | "character">): string {
+ const scene = sentencePart(parts.scene) || DEFAULT_SCENE;
+ let prompt = `The scene in the video is: ${scene}.`;
+ if (parts.perspective === "tps") {
+ prompt += ` The character is: ${sentencePart(parts.character) || DEFAULT_CHARACTER}.`;
+ }
+ return prompt;
+}
+
+/** Appends "The event is: ..." to a base prompt; returns the base unchanged without an event. */
+export function withEvent(base: string, event: ExampleEvent | null): string {
+ const text = event ? sentencePart(event.text) : "";
+ return text ? `${base} The event is: ${text}.` : base;
+}
+
+/** Drops any "The event is: ..." sentence, leaving the base prompt. */
+export function stripEvent(prompt: string): string {
+ return prompt.replace(/\s*The event is:[\s\S]*$/, "").trim();
+}
+
+/** Splits a full prompt back into scene and character parts. */
+export function splitPrompt(prompt: string): { scene: string; character: string } {
+ const base = stripEvent(prompt);
+ const match = base.match(/^\s*The scene in the video is:\s*([\s\S]*?)(?:\s*The character is:\s*([\s\S]*))?$/);
+ if (!match) return { scene: base, character: "" };
+ return { scene: sentencePart(match[1] ?? ""), character: sentencePart(match[2] ?? "") };
+}
+
+export const BUILT_IN_EXAMPLES: Example[] = [
+ {
+ id: "example-01",
+ name: "Noir Alley Patrol",
+ perspective: "tps",
+ imageSrc: "/examples/example-01.jpg",
+ scene: "A lone uniformed police officer in dark blue tactical gear in a narrow urban alley at night. The world contains EXACTLY ONE tall street lamp on the right at a fixed position AND EXACTLY ONE glowing neon shop sign on the left at a fixed position AND EXACTLY ONE shop door straight ahead at a fixed position AND EXACTLY ONE green dumpster on the right at a fixed position. Dark brick walls, heavy rain falling, shiny puddles on the wet asphalt, yellow police tape, blue and red ambient light. Cinematic noir night, reflective wet surfaces.",
+ character: "A lone uniformed police officer in dark blue tactical gear",
+ events: [
+ {
+ name: "Fire Pistol",
+ text: "The officer raises his service pistol in both gloved hands, arms extended ahead of him, and fires down the dark alley; the muzzle flash lights the falling rain, the recoil kicks the pistol back in his grip, and a spent casing clatters onto the wet asphalt.",
+ },
+ {
+ name: "Flamethrower",
+ text: "The officer levels a flamethrower in both hands and unleashes a long, continuous jet of roaring flame straight ahead down the alley — one sustained, billowing stream of orange fire and black smoke that pours forward without pause, not separate shots, lighting up the wet brick walls and hissing against the falling rain.",
+ },
+ {
+ name: "Fire Rocket Launcher",
+ text: "The officer hoists a shoulder-fired rocket launcher — an RPG: a long, heavy cylindrical steel tube resting across his shoulder, its wide bore pointing down the alley, gripped with both hands, not a handheld gun — and fires; the rocket blasts from the tube's mouth and flies off into the distance down the rain-slicked alley, dragging a long tail of orange flame and white smoke behind it, then slams into the distant brickwork and erupts in a massive fireball of flame, smoke, and flying debris.",
+ },
+ {
+ name: "Knife Attack",
+ text: "The officer draws a combat knife into his gloved hand and slashes at the air in a swift, practiced motion; the steel blade flashes in the ambient light as it cuts through the rain and his grip tightens on the handle.",
+ },
+ {
+ name: "Forward Roll",
+ text: "The officer drops into a low crouch and executes a forward roll across the wet asphalt, tucking his shoulder and rising smoothly back to his feet.",
+ },
+ ],
+ },
+ {
+ id: "example-02",
+ name: "Battlefield Horseman",
+ perspective: "tps",
+ imageSrc: "/examples/example-02.jpg",
+ scene: "A warrior in green armor and a hood, mounted on a brown horse and holding a large curved blade, on a muddy battlefield strewn with scattered debris and a distant burning campfire. Somber, war-torn atmosphere under a heavy grey sky.",
+ character: "A warrior in green armor and a hood, mounted on a brown horse and holding a large curved blade",
+ events: [
+ {
+ name: "Snowstorm Approaches",
+ text: "The sky darkens rapidly and a heavy blizzard sweeps in across the battlefield, howling wind driving dense sheets of thick snow sideways through the air. The whirling snowfall quickly builds into a near-whiteout, snow piling up over the muddy terrain, the warrior's armor and hood, the horse's back, and the scattered debris, frost creeping across every surface as the war-torn field is swallowed by a cold, roaring, white-grey storm.",
+ },
+ {
+ name: "Horse Lunge Strike",
+ text: "The warrior leans forward, guiding the horse into a sudden lunge. The large curved blade swings in a wide, downward arc, cleaving through the mud and shattering a nearby wooden shield into splinters.",
+ },
+ {
+ name: "Casts Fire Magic",
+ text: "The warrior raises the large curved blade high overhead toward the sky, and dark storm-clouds gather above as the blade glows with channeled energy. In answer, a rain of blazing fireballs streaks down from the sky, slamming into the muddy battlefield one after another in bursts of fire, smoke, and flying debris.",
+ },
+ ],
+ },
+ {
+ id: "example-03",
+ name: "Jet Ski Cruise",
+ perspective: "tps",
+ imageSrc: "/examples/example-03.jpg",
+ scene: "A man in a red life vest on a white and red jet ski on turquoise water near a sandy beach lined with palm trees, a distant rocky outcrop on the horizon. Sunlit coastal atmosphere with light glinting off the calm sea.",
+ character: "A man in a red life vest on a white and red jet ski",
+ events: [
+ {
+ name: "Meteor Shower",
+ text: "Single meteors fall from high in the sky one after another — each a giant burning ball of rock dragging a long tail of fire and smoke straight down toward the sea. One by one they crash into the water far off near the horizon, away from the rider and never on the path ahead, each erupting in a huge fiery explosion and a towering burst of white spray before the next one follows.",
+ },
+ {
+ name: "Sunset Glow",
+ text: "The daylight deepens into a fiery sunset: the sun sinks low and rests right on the horizon, a huge, swollen orange-red disc half-dipping into the sea, while the sky above ignites in deep bands of amber, rose, and violet. Directly beneath it, the sun's reflection blazes across the water — a brilliant, unbroken path of molten gold stretching from the horizon straight toward the viewer, the rippling sea breaking it into shimmering streaks on every wavelet, the beach glowing warm amber.",
+ },
+ {
+ name: "Rides with Torch",
+ text: "The rider raises a burning torch high overhead in one hand, its orange flame streaming and flickering in the wind and trailing a ribbon of smoke, while his other hand grips the handlebars and the jet ski drives forward across the water, spray fanning off the hull.",
+ },
+ ],
+ },
+ {
+ id: "example-04",
+ name: "Dragon Flying",
+ perspective: "fps",
+ imageSrc: "/examples/example-04.jpg",
+ scene: "This is a first-person-view video of a colossal dragon — its neck a column of dense obsidian-black scales rippling with muscle, its enormous bat-like wings veined with pulsing crimson, leading edges sharp and dark. Ahead, a towering ancient castle of crumbling stone spires and moss-covered battlements rises above dense jungle canopy, gothic arches half-swallowed by creeping vines. A vast primordial forest stretches in every direction, pale mist drifting between trunks, dappled golden sunlight filtering through humid air, winding river gorges far below.",
+ character: "",
+ events: [
+ {
+ name: "Portal",
+ text: "As a massive burst of brilliant fireworks erupts across the entire sky — a dazzling explosion of red, gold, violet, and emerald green light blooming in spectacular fashion, the radiant blast filling the screen completely with cascading sparks and shimmering trails. At the peak of the explosion, the fireworks coalesce into a luminous tear in the fabric of reality, a glowing fissure splitting open through the heart of the brilliance, crackling with chromatic energy along its jagged edges. As the fireworks disperse and the sparks fade away in spiraling ribbons of smoke, the dragon emerges through the closing rift to find itself before a sprawling expanse of ancient castles — towering stone spires, weathered battlements, and gothic arches stretching across the horizon, their silhouettes rising majestically against a new sky. The colorful afterglow of the dimensional passage still dances across the dragon's enormous outstretched wings and glints off its obsidian-black armored scales, faint embers from the dissipating rift lingering in the air around the beast as it soars toward the castle landscape ahead.",
+ },
+ {
+ name: "Fire breath",
+ text: "Further ahead, the dragon's head is clearly defined and held level with its body, neck stretched forward, jaws wide open and aimed forward at the horizon — the head is NOT tilted up toward the sky — positioned within the middle distance, not fully filling the frame. From this open mouth, a tightly collimated cylindrical column of brilliant fire shoots horizontally forward along the dragon's flight axis, parallel to the ground far below — NOT angled upward into the sky — projecting straight into the far distance like a focused beam, a narrow cohesive pillar of flame that maintains a consistent diameter along its entire length, NOT a fan, cone, or diffuse spray. The fire column is white-hot at the core with blazing orange and gold edges. The dragon's obsidian-black scales glow molten-red along its neck and back from the sheer radiance. Sparks and glowing embers cascade outward. A dense forest far below is bathed in intense flickering firelight.",
+ },
+ ],
+ },
+];
diff --git a/reactor/demo/lib/image-drop.ts b/reactor/demo/lib/image-drop.ts
new file mode 100644
index 0000000..f6f8bb3
--- /dev/null
+++ b/reactor/demo/lib/image-drop.ts
@@ -0,0 +1,54 @@
+/** Largest image the model accepts. */
+export const MAX_IMAGE_BYTES = 25 * 1024 * 1024;
+const ACCEPTED_TYPES = ["image/png", "image/jpeg", "image/webp"];
+
+export function dragHasImagePayload(dt: DataTransfer | null): boolean {
+ if (!dt) return false;
+ const types = Array.from(dt.types ?? []);
+ return types.includes("Files") || types.includes("text/uri-list");
+}
+
+/** Throws a readable error if the file is not an image the model accepts. */
+export function assertAcceptedImage(file: Blob): void {
+ if (!ACCEPTED_TYPES.includes(file.type)) {
+ throw new Error("Use a PNG, JPEG or WebP image.");
+ }
+ if (file.size === 0 || file.size > MAX_IMAGE_BYTES) {
+ throw new Error("The image must be between 1 byte and 25 MiB.");
+ }
+}
+
+/** Extracts an image from a drop: a file, or an image URL dragged from another page. */
+export async function imageFileFromDataTransfer(dt: DataTransfer): Promise<File> {
+ const file = Array.from(dt.files).find((f) => f.type.startsWith("image/"));
+ if (file) return file;
+ if (dt.files.length > 0) throw new Error("That file is not an image.");
+
+ const uriList = dt.getData("text/uri-list");
+ const uri =
+ uriList
+ .split("\n")
+ .map((line) => line.trim())
+ .find((line) => line && !line.startsWith("#")) ||
+ dt.getData("text/plain").trim();
+
+ if (!uri || !/^(https?:\/\/|data:image\/|\/)/.test(uri)) {
+ throw new Error("Drop an image file or an image URL.");
+ }
+
+ let blob: Blob;
+ try {
+ const response = await fetch(uri);
+ if (!response.ok) throw new Error();
+ blob = await response.blob();
+ } catch {
+ throw new Error("Could not fetch that image. Save it locally and drop the file instead.");
+ }
+
+ if (!blob.type.startsWith("image/")) {
+ throw new Error("That URL does not point to an image.");
+ }
+
+ const extension = blob.type.split("/")[1] || "jpg";
+ return new File([blob], `dropped-image.${extension}`, { type: blob.type });
+}
diff --git a/reactor/demo/lib/utils.ts b/reactor/demo/lib/utils.ts
new file mode 100644
index 0000000..bd0c391
--- /dev/null
+++ b/reactor/demo/lib/utils.ts
@@ -0,0 +1,6 @@
+import { clsx, type ClassValue } from "clsx"
+import { twMerge } from "tailwind-merge"
+
+export function cn(...inputs: ClassValue[]) {
+ return twMerge(clsx(inputs))
+}
diff --git a/reactor/demo/next.config.ts b/reactor/demo/next.config.ts
new file mode 100644
index 0000000..3ab6de6
--- /dev/null
+++ b/reactor/demo/next.config.ts
@@ -0,0 +1,12 @@
+import type { NextConfig } from "next";
+
+const nextConfig: NextConfig = {
+ // ReactorProvider (@reactor-team/js-sdk 3.0.2) is not Strict-Mode safe: the
+ // simulated unmount disposes its first Reactor, and the cleanup that follows
+ // calls disconnect() on that disposed instance, which rejects with "This
+ // Reactor was disposed" as an unhandled error. Dev-only; `next build` output
+ // never double-invokes effects.
+ reactStrictMode: false,
+};
+
+export default nextConfig;
diff --git a/reactor/demo/package.json b/reactor/demo/package.json
new file mode 100644
index 0000000..89f53e0
--- /dev/null
+++ b/reactor/demo/package.json
@@ -0,0 +1,36 @@
+{
+ "name": "worldplay2-frontend",
+ "version": "0.1.0",
+ "private": true,
+ "description": "Drive WorldPlay2 interactively: an image and a prompt in, a steerable world out.",
+ "scripts": {
+ "dev": "next dev",
+ "build": "next build",
+ "start": "next start",
+ "lint": "eslint ."
+ },
+ "dependencies": {
+ "@reactor-team/js-sdk": "3.0.2",
+ "@reactor-team/ui": "^1.4.0",
+ "class-variance-authority": "^0.7.1",
+ "clsx": "^2.1.1",
+ "next": "15.5.9",
+ "radix-ui": "^1.4.3",
+ "react": "19.2.3",
+ "react-dom": "19.2.3",
+ "shadcn": "^3.8.1",
+ "tailwind-merge": "^3.4.0",
+ "tw-animate-css": "^1.4.0"
+ },
+ "devDependencies": {
+ "@eslint/eslintrc": "^3",
+ "@tailwindcss/postcss": "^4",
+ "@types/node": "^20",
+ "@types/react": "^19",
+ "@types/react-dom": "^19",
+ "eslint": "^9",
+ "eslint-config-next": "15.5.9",
+ "tailwindcss": "^4",
+ "typescript": "^5"
+ }
+}
diff --git a/reactor/demo/pnpm-lock.yaml b/reactor/demo/pnpm-lock.yaml
new file mode 100644
index 0000000..4683ab0
--- /dev/null
+++ b/reactor/demo/pnpm-lock.yaml
@@ -0,0 +1,7981 @@
+lockfileVersion: '9.0'
+
+settings:
+ autoInstallPeers: true
+ excludeLinksFromLockfile: false
+
+importers:
+
+ .:
+ dependencies:
+ '@reactor-team/js-sdk':
+ specifier: 3.0.2
+ version: 3.0.2([email protected])
+ '@reactor-team/ui':
+ specifier: ^1.4.0
+ class-variance-authority:
+ specifier: ^0.7.1
+ version: 0.7.1
+ clsx:
+ specifier: ^2.1.1
+ version: 2.1.1
+ next:
+ specifier: 15.5.9
+ radix-ui:
+ specifier: ^1.4.3
+ react:
+ specifier: 19.2.3
+ version: 19.2.3
+ react-dom:
+ specifier: 19.2.3
+ version: 19.2.3([email protected])
+ shadcn:
+ specifier: ^3.8.1
+ version: 3.8.5(@types/[email protected])([email protected])
+ tailwind-merge:
+ specifier: ^3.4.0
+ version: 3.7.0
+ tw-animate-css:
+ specifier: ^1.4.0
+ version: 1.4.0
+ devDependencies:
+ '@eslint/eslintrc':
+ specifier: ^3
+ version: 3.3.7
+ '@tailwindcss/postcss':
+ specifier: ^4
+ version: 4.3.3
+ '@types/node':
+ specifier: ^20
+ version: 20.19.43
+ '@types/react':
+ specifier: ^19
+ version: 19.3.0
+ '@types/react-dom':
+ specifier: ^19
+ version: 19.3.0(@types/[email protected])
+ eslint:
+ specifier: ^9
+ version: 9.39.5([email protected])
+ eslint-config-next:
+ specifier: 15.5.9
+ tailwindcss:
+ specifier: ^4
+ version: 4.3.3
+ typescript:
+ specifier: ^5
+ version: 5.9.3
+
+packages:
+
+ '@alloc/[email protected]':
+ resolution: {integrity: sha512-U4+70Pc5ZS9osnCBCE5Jha/ciHM+Yp+CNMNC/7HvYbNRk1Ldd+f7qO65W5qfhu/TCv+/ozljlXXe9Nj8419DMA==}
+ engines: {node: '>=10'}
+
+ '@antfu/[email protected]':
+ resolution: {integrity: sha512-9q/yCljni37pkMr4sPrI3G4jqdIk074+iukc5aFJl7kmDCCsiJrbZ6zKxnES1Gwg+i9RcDZwvktl23puGslmvA==}
+ hasBin: true
+
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-Aup7aUOfpbAUg2ROOJN6Iw5f9DMBlzu0mIkm/malLQFN/YQgO48wCj0Kxa3sEHJvPVFg7siR+qRInwXd2qhQKw==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-locTkQyKvwIEgBzVrn8693ebc97F2U8ZHjbXwDXJ5Fn2TCpNwTlKcaKLkdHop5c/icOFE7qt7Q9JC5hnKNa6Gg==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-RgHBCvtjbOK2gXSNBNIkNoEc9qoVEtau3hj8gEqKQuL3HZAibKarWFEI3Lfm6EYKkLalOh8eSrj9b+ch9H/VBA==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-gZbepsdh3WDtgZKWL+vTPh71LSBrm/Y4/QDZBVCcYfmeTEEuoOYwlSy+G1StfJg+/Zy550u/3TATbm7qDbbMtg==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-OoK6239jHPuSQOoS0kfTVKn0b/rVTk0seKq4Gd2UMLtmOVLjDC0ki3e+c90Trqv2gMfvJFqkiljrr568+qddiw==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-wem6WaBj4NaVYVdNhLPPVacES6ZJ+KBBfSkTMD3YZxbP3rm3Di85tJU5ljaUNhaOynt+Aj0xruhYuzQBt8n71g==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-IY3ZD9Tmooqr3TUhc3DUWxiuo8xx1DWLhd5M7hQ+ZWJamqM2BbalrBJb2MisSLoYorOj75U03qULCxQTY9r3hg==}
+ engines: {node: '>=6.9.0'}
+ peerDependencies:
+ '@babel/core': ^7.0.0
+
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-3nQVUAtvkKH9zahfWgw96Jc/uFOmjACE1kQz82E2lqWmHBgjzbNlsC22nuQTfahmWeQtTq5nQ/4Nnd2A1wj4zA==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-j+7JYmk1JYDtACIGj0QJqqWZjoUpMoEikQGADMaHgCMCSDqd2+P32rfcibUNrGOMWrlzK1WJBdxrB3JJQZwWtg==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-ejHwrQQYcm9xnTivShn2IDOlIzInN34AXskvq9QicvCtEzq1Vzclu/tKF8Jq1Cg8JG2GL6/EmjgsCT7lXepE3g==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-UPUVSyXbOh627KiCIGQSgwWzGeBKLkaJ9PJEdrngIwMSzxLR4jS4+f1f1jb7VzBbg8nFLaYotvVPFCTqdrmTAg==}
+ engines: {node: '>=6.9.0'}
+ peerDependencies:
+ '@babel/core': ^7.0.0
+
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-+kmGVjcT9RGYzoDwdwEqEvGgKe3BYq+O1iGzjFubaNgZHwYHP6lsF2Yghf4kEuv9BV7tYDZ913aBW9am6YKong==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-G7sHYigPY17oO5SYWnfD/0MTBwVR781S/JI643e/JhUYgVgWE/61SoW3NH9KWUKyKq5LVh3npif99Wkt6j86Jw==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-atfGXWSeCiF4DnKZIfmJfQRkSw9b9gNNXR1kqKjbhG4pGYCOnkp8OcTB8E3NXjBu8NpheSnOeNKz8KT7UNFTmQ==}
+ engines: {node: '>=6.9.0'}
+ peerDependencies:
+ '@babel/core': ^7.0.0
+
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-brcMGQaVzIeUb+6/bs1Av0f8YuNNjKY2JyvfRCsFuFsdKccEQ5Ges2y74D74NZ1Rz8lKJ9ksJkfqwQFJ/iNEyQ==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-Pb5ijPrZ89GDH8223L4UP8i6QApWxs04RbPQJTeWDV0/keR2E36MeKnyr6LYmUUvqRRI+Iv87SuF1W6ErINzYw==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-N9ZErrD+yW5geCDtBqnOoxmR8+tNKiGuxKlDpuJxfsqpa2dFcexaziGAE/qoHLiDDreVNMupxGmSoNlyvsA3gw==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-1k2lAGRMfHTcwuNYcCNUmaUffmQv8KWMfh2iJUUeRlwlwH4FdNG7mfPI10NPfLHJFThE4Tyr4mv7kTNZOiPuBg==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-CjXrNHTnvqBVqHgdBysY3vk2T8tpJHb5/RMeHJBTyVa9xgugCB0CJTx/3oO8RV2QRQP391RWpB7D6hLjm8V9uA==}
+ engines: {node: '>=6.0.0'}
+ hasBin: true
+
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-TSu8+mHCoEaaCDEZ0I3+6mvTBYR4PCxQwf2z9/r5Tbztv6NaLR3B9thGTTxX2WGuGHJqRiAbKPeGTJ5XWXVg6A==}
+ engines: {node: '>=6.9.0'}
+ peerDependencies:
+ '@babel/core': ^7.0.0-0
+
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-ngr+82Sh0xMz25TPCZi+nC2iTzjfCdWS2ONXTp/PtSCHCgaCNBpdMqgvJ2ccdLlClVZ7sisIgB914j/JFe+RZA==}
+ engines: {node: '>=6.9.0'}
+ peerDependencies:
+ '@babel/core': ^7.0.0-0
+
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-j0vCldybPC5b5dwCQOJ21uKtHzt7hxLygJTg9eF1ScfaikEDNfzn94XoW5Fi+seBR0nCyL23xaBFFkq7dTM8XQ==}
+ engines: {node: '>=6.9.0'}
+ peerDependencies:
+ '@babel/core': ^7.0.0-0
+
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-FFwIwzU+7SCOuxxV4YtJql6T9981ZVTm+FHO5GhVsRqCTdy0WwrEZh3l42ARpXruJUDGOptdduHW6Zr7pNPLNg==}
+ engines: {node: '>=6.9.0'}
+ peerDependencies:
+ '@babel/core': ^7.0.0-0
+
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-/Foi8vKY2EVbed/1eZx0gJEEwHAIxogrySI7rULcRIvhZzbvoE/b5qG5Ghc0WKAFKOHA9SD1x7RsFlOYdutIiQ==}
+ engines: {node: '>=6.9.0'}
+ peerDependencies:
+ '@babel/core': ^7.0.0-0
+
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-puq+Gf35oI24FeN11LkoUQFqv9uwNeWpxXZi/Ji3rRIoKAzKnxRaZ+Gkj0vKS9ZCiTESfng1N9LyOyXvo+m+Gg==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-I5z7H3bf/41ktsNVLtpN0wAa336HkqIHQ5BuPLEhTkt1jVSyZpeNKIzTgEWmlxjdg81R0IgUCcaE+Ok3NvrfZg==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-Vj1jF3cPfxg7OAfoI7QnVKLoILlm2JF9pnVHrX8qx7AHMiYWT+NDAA7jChlNgRS4WTLc/fD1lXLmPixluj+3Gg==}
+ engines: {node: '>=6.9.0'}
+
+ '@dotenvx/[email protected]':
+ resolution: {integrity: sha512-/BITOC9dmS/edY2zQwZNicQ059O6RKabtQfyEafV0nGtfYRNHYy1DIPiYVcov40+tob9hfmBnbR963dS+EQ1DQ==}
+ hasBin: true
+
+ '@dotenvx/[email protected]':
+ resolution: {integrity: sha512-VYJy0uhFm9zTJ1TxBaW/pA8bjbOM/OttaNMwZ1RHG4JKyRG7DhSdiqD1ipQoAyoD22olUtxbP78W9xY3Wd11bg==}
+
+ '@emnapi/[email protected]':
+ resolution: {integrity: sha512-yq6OkJ4p82CAfPl0u9mQebQHKPJkY7WrIuk205cTYnYe+k2Z8YBh11FrbRG/H6ihirqcacOgl2BIO8oyMQLeXw==}
+
+ '@emnapi/[email protected]':
+ resolution: {integrity: sha512-ewvYlk86xUoGI0zQRNq/mC+16R1QeDlKQy21Ki3oSYXNgLb45GV1P6A0M+/s6nyCuNDqe5VpaY84BzXGwVbwFA==}
+
+ '@emnapi/[email protected]':
+ resolution: {integrity: sha512-Xz4Tpyki7XyrpbUK1jR1AhdAdaXyhhY4lZ3neLodmhpuWfy2PAQN5B46sAiU4liOXGLkHypn/qU+jvfWSCYYLA==}
+
+ '@emnapi/[email protected]':
+ resolution: {integrity: sha512-uTII7OYF+/Mes/MrcIOYp5yOtSMLBWSIoLPpcgwipoiKbli6k322tcoFsxoIIxPDqW01SQGAgko4EzZi2BNv2w==}
+
+ '@eslint-community/[email protected]':
+ resolution: {integrity: sha512-cuadcxVFE8sDK6iWJbs8Sn0av2Nrh2QSGQhVlBW9AaAHqHwjWsZHT8LJ4hFGPh7ASBV2deFdM7H/DPjulmh8rg==}
+ engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
+ peerDependencies:
+ eslint: ^6.0.0 || ^7.0.0 || >=8.0.0
+
+ '@eslint-community/[email protected]':
+ resolution: {integrity: sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew==}
+ engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0}
+
+ '@eslint/[email protected]':
+ resolution: {integrity: sha512-nJl2KGTlrf9GjLimgIru+V/mzgSK0ABCDQRvxw5BjURL7WfH5uoWmizbH7QB6MmnMBd8cIC9uceWnezL1VZWWw==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+
+ '@eslint/[email protected]':
+ resolution: {integrity: sha512-gBrxN88gOIf3R7ja5K9slwNayVcZgK6SOUORm2uBzTeIEfeVaIhOpCtTox3P6R7o2jLFwLFTLnC7kU/RGcYEgw==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+
+ '@eslint/[email protected]':
+ resolution: {integrity: sha512-yL/sLrpmtDaFEiUj1osRP4TI2MDz1AddJL+jZ7KSqvBuliN4xqYY54IfdN8qD8Toa6g1iloph1fxQNkjOxrrpQ==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+
+ '@eslint/[email protected]':
+ resolution: {integrity: sha512-F42g89Qd5oAWtp0k0nnSrjziAKza7w8SVT4mStc18LZMaRb4J1HQAHLCalEtDCxrTuksx7NU9qsmeLwpOfPqWw==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+
+ '@eslint/[email protected]':
+ resolution: {integrity: sha512-QywQuszQh77pIXCsq998c8hbhSTI/azTty1Z6N53dmAudKHhy573j3yvRLsX2BSp8YpLtoCEG8E9DJe+8zUh4A==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+
+ '@eslint/[email protected]':
+ resolution: {integrity: sha512-VtAOaymWVfZcmZbp6E2mympDIHvyjXs/12LqWYjVw6qjrfF+VK+fyG33kChz3nnK+SU5/NeHOqrTEHS8sXO3OA==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+
+ '@eslint/[email protected]':
+ resolution: {integrity: sha512-43/qtrDUokr7LJqoF2c3+RInu/t4zfrpYdoSDfYyhg52rwLV6TnOvdG4fXm7IkSB3wErkcmJS9iEhjVtOSEjjA==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+
+ '@floating-ui/[email protected]':
+ resolution: {integrity: sha512-0CIZ5itps/8x7BG8dEIhs53BvCUH2PCoogtakwRTut+Arm58sJooJ0AuZhLw2HJYIR5cMLNPBSS728sPho2khQ==}
+
+ '@floating-ui/[email protected]':
+ resolution: {integrity: sha512-yXSrzeHZBTZadLOlfyhCkJHNeLJnHRnRInwdZ40L7ZiaAtrBwoYlsDrX3v5zB1Utk7CLfzcOVnVVWoXEky7Ceg==}
+
+ '@floating-ui/[email protected]':
+ resolution: {integrity: sha512-JDjEFGCpImxDCA7JJKviA0M9+RtmJdj0m/NVU5IMgBK+AmZouAQQ7/+2GLH0GXXY0YMw9oXPB8hKdbPYg5QLYg==}
+ peerDependencies:
+ react: '>=16.8.0'
+ react-dom: '>=16.8.0'
+
+ '@floating-ui/[email protected]':
+ resolution: {integrity: sha512-HpCo8tmWzLVad5s2d19EhAz5zqrrQ6s69qd6moPMQvkOuSwDT1YgRfWSVuc4ennqrgv3OHppiOGMQ7oC13yIww==}
+
+ resolution: {integrity: sha512-TA//nWMqPhbfdfneACk6t5a9eqbS9lABEPyKn0/xZTah3H3U2XaVg85rJFl0/Fyit0I552YDHgXGVSf3GwqbUw==}
+ engines: {node: '>=20'}
+ peerDependencies:
+ hono: ^4
+
+ '@humanfs/[email protected]':
+ resolution: {integrity: sha512-UhXNm+CFMWcbChXywFwkmhqjs3PRCmcSa/hfBgLIb7oQ5HNb1wS0icWsGtSAUNgefHeI+eBrA8I1fxmbHsGdvA==}
+ engines: {node: '>=18.18.0'}
+
+ '@humanfs/[email protected]':
+ resolution: {integrity: sha512-gE1eQNZ3R++kTzFUpdGlpmy8kDZD/MLyHqDwqjkVQI0JMdI1D51sy1H958PNXYkM2rAac7e5/CnIKZrHtPh3BQ==}
+ engines: {node: '>=18.18.0'}
+
+ '@humanfs/[email protected]':
+ resolution: {integrity: sha512-ZZ1w0aoQkwuUuC7Yf+7sdeaNfqQiiLcSRbfI08oAxqLtpXQr9AIVX7Ay7HLDuiLYAaFPu8oBYNq/QIi9URHJ3Q==}
+ engines: {node: '>=18.18.0'}
+
+ '@humanwhocodes/[email protected]':
+ resolution: {integrity: sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==}
+ engines: {node: '>=12.22'}
+
+ '@humanwhocodes/[email protected]':
+ resolution: {integrity: sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==}
+ engines: {node: '>=18.18'}
+
+ resolution: {integrity: sha512-Td76q7j57o/tLVdgS746cYARfSyxk8iEfRxewL9h4OMzYhbW4TAcppl0mT4eyqXddh6L/jwoM75mo7ixa/pCeQ==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-imtQ3WMJXbMY4fxb/Ndp6HBTNVtWCUI0WdobyheGf5+ad6xX8VIDO8u2xE4qc/fr08CKG/7dDseFtn6M6g/r3w==}
+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
+ cpu: [arm64]
+ os: [darwin]
+
+ resolution: {integrity: sha512-YNEFAF/4KQ/PeW0N+r+aVVsoIY0/qxxikF2SWdp+NRkmMB7y9LBZAVqQ4yhGCm/H3H270OSykqmQMKLBhBJDEw==}
+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
+ cpu: [x64]
+ os: [darwin]
+
+ resolution: {integrity: sha512-zqjjo7RatFfFoP0MkQ51jfuFZBnVE2pRiaydKJ1G/rHZvnsrHAOcQALIi9sA5co5xenQdTugCvtb1cuf78Vf4g==}
+ cpu: [arm64]
+ os: [darwin]
+
+ resolution: {integrity: sha512-1IOd5xfVhlGwX+zXv2N93k0yMONvUlANylbJw1eTah8K/Jtpi15KC+WSiaX/nBmbm2HxRM1gZ0nSdjSsrZbGKg==}
+ cpu: [x64]
+ os: [darwin]
+
+ resolution: {integrity: sha512-excjX8DfsIcJ10x1Kzr4RcWe1edC9PquDRRPx3YVCvQv+U5p7Yin2s32ftzikXojb1PIFc/9Mt28/y+iRklkrw==}
+ cpu: [arm64]
+ os: [linux]
+ libc: [glibc]
+
+ resolution: {integrity: sha512-bFI7xcKFELdiNCVov8e44Ia4u2byA+l3XtsAj+Q8tfCwO6BQ8iDojYdvoPMqsKDkuoOo+X6HZA0s0q11ANMQ8A==}
+ cpu: [arm]
+ os: [linux]
+ libc: [glibc]
+
+ resolution: {integrity: sha512-FMuvGijLDYG6lW+b/UvyilUWu5Ayu+3r2d1S8notiGCIyYU/76eig1UfMmkZ7vwgOrzKzlQbFSuQfgm7GYUPpA==}
+ cpu: [ppc64]
+ os: [linux]
+ libc: [glibc]
+
+ resolution: {integrity: sha512-oVDbcR4zUC0ce82teubSm+x6ETixtKZBh/qbREIOcI3cULzDyb18Sr/Wcyx7NRQeQzOiHTNbZFF1UwPS2scyGA==}
+ cpu: [riscv64]
+ os: [linux]
+ libc: [glibc]
+
+ resolution: {integrity: sha512-qmp9VrzgPgMoGZyPvrQHqk02uyjA0/QrTO26Tqk6l4ZV0MPWIW6LTkqOIov+J1yEu7MbFQaDpwdwJKhbJvuRxQ==}
+ cpu: [s390x]
+ os: [linux]
+ libc: [glibc]
+
+ resolution: {integrity: sha512-tJxiiLsmHc9Ax1bz3oaOYBURTXGIRDODBqhveVHonrHJ9/+k89qbLl0bcJns+e4t4rvaNBxaEZsFtSfAdquPrw==}
+ cpu: [x64]
+ os: [linux]
+ libc: [glibc]
+
+ resolution: {integrity: sha512-FVQHuwx1IIuNow9QAbYUzJ+En8KcVm9Lk5+uGUQJHaZmMECZmOlix9HnH7n1TRkXMS0pGxIJokIVB9SuqZGGXw==}
+ cpu: [arm64]
+ os: [linux]
+ libc: [musl]
+
+ resolution: {integrity: sha512-+LpyBk7L44ZIXwz/VYfglaX/okxezESc6UxDSoyo2Ks6Jxc4Y7sGjpgU9s4PMgqgjj1gZCylTieNamqA1MF7Dg==}
+ cpu: [x64]
+ os: [linux]
+ libc: [musl]
+
+ resolution: {integrity: sha512-bKQzaJRY/bkPOXyKx5EVup7qkaojECG6NLYswgktOZjaXecSAeCWiZwwiFf3/Y+O1HrauiE3FVsGxFg8c24rZg==}
+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
+ cpu: [arm64]
+ os: [linux]
+ libc: [glibc]
+
+ resolution: {integrity: sha512-9dLqsvwtg1uuXBGZKsxem9595+ujv0sJ6Vi8wcTANSFpwV/GONat5eCkzQo/1O6zRIkh0m/8+5BjrRr7jDUSZw==}
+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
+ cpu: [arm]
+ os: [linux]
+ libc: [glibc]
+
+ resolution: {integrity: sha512-7zznwNaqW6YtsfrGGDA6BRkISKAAE1Jo0QdpNYXNMHu2+0dTrPflTLNkpc8l7MUP5M16ZJcUvysVWWrMefZquA==}
+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
+ cpu: [ppc64]
+ os: [linux]
+ libc: [glibc]
+
+ resolution: {integrity: sha512-51gJuLPTKa7piYPaVs8GmByo7/U7/7TZOq+cnXJIHZKavIRHAP77e3N2HEl3dgiqdD/w0yUfiJnII77PuDDFdw==}
+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
+ cpu: [riscv64]
+ os: [linux]
+ libc: [glibc]
+
+ resolution: {integrity: sha512-nQtCk0PdKfho3eC5MrbQoigJ2gd1CgddUMkabUj+rBevs8tZ2cULOx46E7oyX+04WGfABgIwmMC0VqieTiR4jg==}
+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
+ cpu: [s390x]
+ os: [linux]
+ libc: [glibc]
+
+ resolution: {integrity: sha512-MEzd8HPKxVxVenwAa+JRPwEC7QFjoPWuS5NZnBt6B3pu7EG2Ge0id1oLHZpPJdn3OQK+BQDiw9zStiHBTJQQQQ==}
+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
+ cpu: [x64]
+ os: [linux]
+ libc: [glibc]
+
+ resolution: {integrity: sha512-fprJR6GtRsMt6Kyfq44IsChVZeGN97gTD331weR1ex1c1rypDEABN6Tm2xa1wE6lYb5DdEnk03NZPqA7Id21yg==}
+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
+ cpu: [arm64]
+ os: [linux]
+ libc: [musl]
+
+ resolution: {integrity: sha512-Jg8wNT1MUzIvhBFxViqrEhWDGzqymo3sV7z7ZsaWbZNDLXRJZoRGrjulp60YYtV4wfY8VIKcWidjojlLcWrd8Q==}
+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
+ cpu: [x64]
+ os: [linux]
+ libc: [musl]
+
+ resolution: {integrity: sha512-OdWTEiVkY2PHwqkbBI8frFxQQFekHaSSkUIJkwzclWZe64O1X4UlUjqqqLaPbUpMOQk6FBu/HtlGXNblIs0huw==}
+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
+ cpu: [wasm32]
+
+ resolution: {integrity: sha512-WQ3AgWCWYSb2yt+IG8mnC6Jdk9Whs7O0gxphblsLvdhSpSTtmu69ZG1Gkb6NuvxsNACwiPV6cNSZNzt0KPsw7g==}
+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
+ cpu: [arm64]
+ os: [win32]
+
+ resolution: {integrity: sha512-FV9m/7NmeCmSHDD5j4+4pNI8Cp3aW+JvLoXcTUo0IqyjSfAZJ8dIUmijx1qaJsIiU+Hosw6xM5KijAWRJCSgNg==}
+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
+ cpu: [ia32]
+ os: [win32]
+
+ resolution: {integrity: sha512-+29YMsqY2/9eFEiW93eqWnuLcWcufowXewwSNIT6UwZdUUCrM3oFjMWH/Z6/TMmb4hlFenmfAVbpWeup2jryCw==}
+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
+ cpu: [x64]
+ os: [win32]
+
+ '@inquirer/[email protected]':
+ resolution: {integrity: sha512-WpQM+Ti6Z40EFwwt+uL2p4UabT+W179zHp6HhLVOzfbwnVn05IPO/eXIZXGNqcT1jbQ15SujNLzQ39k4QPPxBQ==}
+ engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'}
+
+ '@inquirer/[email protected]':
+ resolution: {integrity: sha512-Xvr/0HggjddPtGppuqVmxhTw+Hr8PvsZ/k0HmOEaAqQEt80OITNkFWnsdNmyT0/eM4Ab+iJLx2R8rctlEyfSVg==}
+ engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'}
+ peerDependencies:
+ '@types/node': '>=18'
+ peerDependenciesMeta:
+ '@types/node':
+ optional: true
+
+ '@inquirer/[email protected]':
+ resolution: {integrity: sha512-wsSy0sznmXwkty+2PzZwx00Cazc/E0r0B7mAzdGROz2Ct+DFZXaK7WDjGZvgjRldxH5ZhFVfF2lgkYrqgOw2KA==}
+ engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'}
+ peerDependencies:
+ '@types/node': '>=18'
+ peerDependenciesMeta:
+ '@types/node':
+ optional: true
+
+ '@inquirer/[email protected]':
+ resolution: {integrity: sha512-EAWgUTGQ/Umgga51dE3B2PUHbufuXarDfg86uVgoSgNHNNQnyFKcOrQLWVqYMghuSyHh8+2HUH0Js9cTC1WAdg==}
+ engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'}
+
+ '@inquirer/[email protected]':
+ resolution: {integrity: sha512-yJoHYrMnxIsJZCY+0Vb66Dy3he3kL3e2wOBKhoSwWWAzZAY82emlxwgprCtp6yRixvNRNq9ztfRWQYPNr3Go7A==}
+ engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'}
+ peerDependencies:
+ '@types/node': '>=18'
+ peerDependenciesMeta:
+ '@types/node':
+ optional: true
+
+ '@jridgewell/[email protected]':
+ resolution: {integrity: sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==}
+
+ '@jridgewell/[email protected]':
+ resolution: {integrity: sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==}
+
+ '@jridgewell/[email protected]':
+ resolution: {integrity: sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==}
+ engines: {node: '>=6.0.0'}
+
+ '@jridgewell/[email protected]':
+ resolution: {integrity: sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==}
+
+ '@jridgewell/[email protected]':
+ resolution: {integrity: sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==}
+
+ '@modelcontextprotocol/[email protected]':
+ resolution: {integrity: sha512-8BviX/hK4Gd2eL1KdTwm0gfl4d3wdoErW0Jd00h6nomUAtk6IJk5vwQJc6kfWtJTzN5OEV/lgIiJKI8fiDGAlA==}
+ engines: {node: '>=18'}
+ peerDependencies:
+ '@cfworker/json-schema': ^4.1.1
+ zod: ^3.25 || ^4.0
+ peerDependenciesMeta:
+ '@cfworker/json-schema':
+ optional: true
+
+ '@mswjs/[email protected]':
+ resolution: {integrity: sha512-VVPPgHyQ6ShqnrmDWuxjmUIsO9gWyOZFmuOfLd9LfBGQJwZfy0gvv9pbHSJuoFNIYC7ZDX9aoFwowjcdSC4E8w==}
+ engines: {node: '>=18'}
+
+ '@napi-rs/[email protected]':
+ resolution: {integrity: sha512-AJxoUD2/15ESHbvpcyjU274nsAPLuOtPHCk0vKJM5pj//Fg/B1FXNWjPnXTT9PymCYYiHo4zPj0ZomXBKhoy7g==}
+ engines: {node: ^20.19.0 || ^22.13.0 || >=23.5.0}
+ peerDependencies:
+ '@emnapi/core': ^1.7.1 || ^2.0.0-alpha.4
+ '@emnapi/runtime': ^1.7.1 || ^2.0.0-alpha.4
+
+ resolution: {integrity: sha512-4GlTZ+EJM7WaW2HEZcyU317tIQDjkQIyENDLxYJfSWlfqguN+dHkZgyQTV/7ykvobU7yEH5gKvreNrH4B6QgIg==}
+
+ resolution: {integrity: sha512-kUzXx0iFiXw27cQAViE1yKWnz/nF8JzRmwgMRTMh8qMY90crNsdXJRh2e+R0vBpFR3kk1yvAR7wev7+fCCb79Q==}
+
+ resolution: {integrity: sha512-IZwtxCEpI91HVU/rAUOOobWSZv4P2DeTtNaCdHqLcTJU4wdNXgAySvKa/qJCgR5m6KI8UsKDXtO2B31jcaw1Yw==}
+ engines: {node: '>= 10'}
+ cpu: [arm64]
+ os: [darwin]
+
+ resolution: {integrity: sha512-UP6CaDBcqaCBuiq/gfCEJw7sPEoX1aIjZHnBWN9v9qYHQdMKvCKcAVs4OX1vIjeE+tC5EIuwDTVIoXpUes29lg==}
+ engines: {node: '>= 10'}
+ cpu: [x64]
+ os: [darwin]
+
+ resolution: {integrity: sha512-NCslw3GrNIw7OgmRBxHtdWFQYhexoUCq+0oS2ccjyYLtcn1SzGzeM54jpTFonIMUjNbHmpKpziXnpxhSWLcmBA==}
+ engines: {node: '>= 10'}
+ cpu: [arm64]
+ os: [linux]
+ libc: [glibc]
+
+ resolution: {integrity: sha512-nfymt+SE5cvtTrG9u1wdoxBr9bVB7mtKTcj0ltRn6gkP/2Nu1zM5ei8rwP9qKQP0Y//umK+TtkKgNtfboBxRrw==}
+ engines: {node: '>= 10'}
+ cpu: [arm64]
+ os: [linux]
+ libc: [musl]
+
+ resolution: {integrity: sha512-hvXcZvCaaEbCZcVzcY7E1uXN9xWZfFvkNHwbe/n4OkRhFWrs1J1QV+4U1BN06tXLdaS4DazEGXwgqnu/VMcmqw==}
+ engines: {node: '>= 10'}
+ cpu: [x64]
+ os: [linux]
+ libc: [glibc]
+
+ resolution: {integrity: sha512-4IUO539b8FmF0odY6/SqANJdgwn1xs1GkPO5doZugwZ3ETF6JUdckk7RGmsfSf7ws8Qb2YB5It33mvNL/0acqA==}
+ engines: {node: '>= 10'}
+ cpu: [x64]
+ os: [linux]
+ libc: [musl]
+
+ resolution: {integrity: sha512-CpJVTkYI3ZajQkC5vajM7/ApKJUOlm6uP4BknM3XKvJ7VXAvCqSjSLmM0LKdYzn6nBJVSjdclx8nYJSa3xlTgQ==}
+ engines: {node: '>= 10'}
+ cpu: [arm64]
+ os: [win32]
+
+ resolution: {integrity: sha512-gMzgBX164I6DN+9/PGA+9dQiwmTkE4TloBNx8Kv9UiGARsr9Nba7IpcBRA1iTV9vwlYnrE3Uy6I7Aj6qLjQuqw==}
+ engines: {node: '>= 10'}
+ cpu: [x64]
+ os: [win32]
+
+ '@nodelib/[email protected]':
+ resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==}
+ engines: {node: '>= 8'}
+
+ '@nodelib/[email protected]':
+ resolution: {integrity: sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==}
+ engines: {node: '>= 8'}
+
+ '@nodelib/[email protected]':
+ resolution: {integrity: sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==}
+ engines: {node: '>= 8'}
+
+ '@nolyfill/[email protected]':
+ resolution: {integrity: sha512-nn5ozdjYQpUCZlWGuxcJY/KpxkWQs4DcbMCmKojjyrYDEAGy4Ce19NN4v5MduafTwJlbKc99UA8YhSVqq9yPZA==}
+ engines: {node: '>=12.4.0'}
+
+ '@open-draft/[email protected]':
+ resolution: {integrity: sha512-CecwLWx3rhxVQF6V4bAgPS5t+So2sTbPgAzafKkVizyi7tlwpcFpdFqq+wqF2OwNBmqFuu6tOyouTuxgpMfzmA==}
+
+ '@open-draft/[email protected]':
+ resolution: {integrity: sha512-XW375UK8/9SqUVNVa6M0yEy8+iTi4QN5VZ7aZuRFQmy76LRwI9wy5F4YIBU6T+eTe2/DNDo8tqu8RHlwLHM6RA==}
+
+ '@open-draft/[email protected]':
+ resolution: {integrity: sha512-X2g45fzhxH238HKO4xbSr7+wBS8Fvw6ixhTDuvLd5mqh6bJJCFAPwU9mPDxbcrRtfxv4u5IHCEH77BmxvXmmxQ==}
+
+ '@open-draft/[email protected]':
+ resolution: {integrity: sha512-U69T3ItWHvLwGg5eJ0n3I62nWuE6ilHlmz7zM0npLBRvPRd7e6NYmg54vvRtP5mZG7kZqZCFVdsTWo7BPtBujg==}
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-Road2bidD0uu/1BGDOWNdPI06g0lIRy6IF9GZcIrDK2KGItfor8IQwQa+yM2ERgHM1MmHxaxpTzk0/Jp42lNfA==}
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-rqWnm76nYT8HoNNqEjpgJ7Pw/DrBj5iBTrmEPo6HTX5+VJyBNOqTdv4g89G63HuR5g0AaENoAcH7Is5fF2kZ8Q==}
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-WTQwcAvQf5sOcuUyi90lKPbhwcvQ+j55cjrSmeaN+L2vKU3DooOvlKw2MDeiJ5IkV5N905KW0/fGojKOBhD11A==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-jDhG9FvAEnlhnjrsINbNXcUa4G+L1KqSkJSunkbKEzFRcAb52jvM0PjPxPRvhe1HNc5F5yc0yzzWeeqlH4yBIg==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-VAYOiQRqj3GPpYJE0I9J+X8Ip05cyVlNdKOFeiGS2Ou1HHGfpl0BxOyZm6nmVDyU+W+NF3/XLzmjHmVGydhwgA==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-v4zggRcjadnI+ClKDuijlQEW4tw3NoaeHc/PwpKnLoLLKNUG4InLegkstooLcRIUWCs+8L22dGURCVuFfOKfnA==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-fy+dyVR+90nelK8rqIznFlxzx7uPcGbhxH8Nfr2bHb4UfSe+e3hklOC0luK0hDwVwnRX7xTRySpsrQVeW+/oNQ==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-4ULOTJ/mqy2hT9GlWa/MFHxHSvH3nJzHnZM1waNsc5Bonv7i70aNenghXmD97S6OJ81ekXONGGt4nT1r0PfEdA==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-Gnptr9pDDQxD3hgq2dtPbtrp/c2qH1mBwIzw3X/ivrMb2e1t0jMTi606fVEqFPaQR1ggXIVQWKj3P2WW9v7zGQ==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-mcGesGplBnzN2sbvJETzpCNfSMyPnb29q1GRLU+Ib7bJrpIG2ywmRoh2V5VbA2uNvKikKUlVbAPks7JDjz4A8Q==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-9W+B9NPF0NaaPh/1NJd3+KqsnlLqU9H7T2rvww+fp+T/evVXdNAyYcnfRQZFOjkR1ajQp3yORlqnI8soawLvNA==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-+48PbAAbq3didjJxa+OaWY2ZwgAKsNiRGyeHKszblZMQ+kcpd9pAaT11cMkGEie0vsOi3QdeTE6d5Fe3Gn61kA==}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-CtXP35dxaB5T3zXSd+E3uHe/QpXcpYnZmxp6OaIbfthtfW4wyb77M23BG+bwIJDtsMwEP/YssdsmNyZu7jhWew==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-RHCUGwKHDr0hDGg4X7ma4JG4/+12qxw8rkh5QKdDldlCvtja6nUx1Ef/8HVrJze81lEsgLQlqjzjGNHantgnQA==}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-Ksw4WeROkO4rC9k/onilX/Ao2Cr1ku1unMNH+XSCcP4jSXYu7HDsg9n4ojMjVb22XpYjAQ9qfrFlVbru1vXDUA==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-5pzg4FGQNpExhnhT2zlrP1wZFaYCd1K0nYWoFAdcYoYK868IEigqMX3B3f8yIoRlAhAeDWciLI6ZdCKHF9P4Vg==}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-8g4pfOL9HoKKLWGiypT+dphVqjFfmcXO5GBnhsG6zI+lxAx/8feQpr+1LSN8Re3hiZ+XkLNS4O9ztK11/LzQ6w==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-geq8l2rJkxvkXsT9RMgtUE3P8pITFpTsvYpbySi1IH4fZEABD/Gp85myayFgxk0ktljGMJnCbeFkyTusvSvv7g==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-RNOJjfZMTyBM6xYmV3IVGXkPjIhcBAuv48POevAXwrGJhkWZ9p1rFoIS1JFooPuT193AZmRsCPhpoVJxx6OPoQ==}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-wmRZ2WWLvmt6KHy2rNPOdPUjwq5xOHY02+m+udwJTn0aNIox/rkskAvJTyTLGhPK6KgrUjlJUJpgmx/+wFiFIQ==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-Q4TLEn2A7TAypxwmd6R9EwrlXDvkfYSDMrq9/887AXAGh+G1rH+kYJKSTv+Si9Y0JPKTwKYv6PviAJosysNimA==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-H8qONfZd3ltrU3+jHCIgITbWo6e1iTKvP9DHdrvYbX48ooRM5FjEDTn16AMwdfuOGkWdZEhpl3PLL/Wk/AnHDQ==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-TMQp2llA+RYn7JcjnrMnz7wN4pcVttPZnRZo52PLQsoLVKzNlVwUeHmfePgTgRluXFvlD3GD5g5MOVVTJCO0qA==}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-o/rdYEwZTTo5tjknnPeyQFU45kUC4i/XyeDPP+HGyi6XqpOP6Zf5Ya5vh/Yfe9Id5JiuWnnAx2XqIeD3UYZt0g==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-uW7RVuU6Lp/ZtfeY4b3kL32zccgEWvPv1+cf17ubYzHa9cL8AHokmk36cG/XEiH/smbQvumnieXX9j/e9RqJWA==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-eeVs0vf7cuqXaM0qLQCPcufImiJNVBXdJDLu7ZGYl2732UH23Qat/foNGrr6vYV3/DdTsBqASoggUFgH14OcZA==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-ou7iLEJ+yrhQndkkA4U21XIdS/CS45F4iXIkTZcb6/Ne9EMsOuDudVmCwmDnfFZZ+y1FZqXRNSIgBy+YMvZVZg==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-Tj9P6ntAJEw52oq/F0AGknXR4XncxEt7XU47O3xJQOiWfLzEy3d9gtgKfvjSzGxzHkfL+VzvxGu2KTFsloJqXw==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-4gvFnmDXu3dgj21CqsufzIameRvlRd4SBqaWhcrlrNhRo0Y5i/49AmRJYe1fdAM3G2VNBbmin4b0D6cdQocwgw==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-mw58MrBlyHWFisTOYignD0vf/3gdcgAR+9of1s9G/38CbFiUwH1nCDkc0AUM9IrXFgN5Ue8n45j9WCgyM1sbiQ==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-UsJrrd7w4wuKKTdvd/DNERVlwSlUcyXzjhyDwBk+3aPOsCjOY6ZSbxuw8E6lZTjjfP8Cpd0J8VVkrYUWyGYXyg==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-vKQLcWypUnwZVvfV7UkGahH2g6ySe8M8R+zYBwPrv5byZ9QAW6cQVvNKo7GgmD+p8aYb6D9JBuvy8/WhOno2wQ==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-3wyzCQ6+ubRA+D4uv9m95JYLXxmOHp05qjrkjeA7uKHHtjpPggQzc6DAb0URl7j67oR0K2foO4ip27TiX037Bw==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-MucOnzh6hR5mid6VpkbglRAMYMjKLqRnGBbjXkzjK52fuQDd1qbkx78a5P40mkcnVXJdEVxm26E9OPAiUq7nBg==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-5XnomAsoZZCY+KNTxbIghpGqPruZvKFNlvcAljVAOdDRDsH4/OZQxhtwo5wdtoDM5R6MhJBb2sPnDuRFep3lzg==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-cgYFEkntCxppHZgtSZ+7vh0wbZQ+IC7PPMw8DSnRG27B6kDd32/Zw0OJt7dGDigCoprMuWHjg2PvUn3PYvPFoQ==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-V9jI6hDjT7l3jsCQD9bLNvDLM3tH/gdbOTp7Tefp3hbbgCGQoK7tUvrWiRlcoBHIZ809ElXwNQwVo0B98LuTXQ==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-Zn5Cd171wxsO3Dfg8HaW6RifTb9CYTKQJHs/G4+LN1GfmJpaQMZQyQxMprVPHpaz7QY4l9BxK2JwQuzHsXC8nA==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-WFGImkmbzcfxeIwq/+4HvRN0pizBwbwQUED4I13ezQsDdfl38ZntN6TmR8XaSzPBqoCToe8rF75j6NPNDSzhbg==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-jOLO4lssEzWpoDu7G+Ze4VjwMRUBt291pnZD0gmalREZipnTX3wadQo7Fy48GCTfe14/YRN6rw/rOJqrE85Wxw==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-mTSLf1GC/C0moWjTbvCM6Qn/gBjvlFt1azuWF2v7MN5C3Zq2U2J2lN3ZEYkpujuOU5Ro7A28wkviSxaKnG0BYg==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-qx7oqnYbxnK9kYI9m317qmFmEgo6ywqWvbTogdj7cL9p3/yx4M48p7Rnw5z3H890cL/ow/EeWJsuTykeZVXP5Q==}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-48tB/4dn2UVLBCYhTu9AuR63IHl73l/qLbLgxd86noTUor4/K4LFDAcYjK+isP5313qxaFpjPVogE7+Y0/V3Kw==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-UKxJlZid7FVtsk/WTxj4i4uSEgj2Au+KBbS7SQyTlzMhhn+86Cz3tISZdTa87bfEfcuvZezf2ZsxD4xuEKtkog==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-ofhyAsYaocRGOs/n0XWdUOSVzEAG6BfrMVM8z0c0kLEWY38w/0WuMFPTJP/HVaZPYkMvHZoKIIhNcjbTCBILPg==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-OtnwuSVjd1Ofi+AdnvhsjQdyuhCDwYs1w9RyB5BN/OavXOVQo42SYqQjwUnbPnaiPFBpQ9aX70dWeee+v2oBLA==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-7lonPlKfSacd20GlOBx2ltuVKz9oqWYZz+oMQyOltw6t1y2nyftj2ZmwwUHYn49kqfDWcp8dNZm5NgV+5Z+mug==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-Ph0IvtYw4VB12ZnZg+YtrGs8yJQsnizwo/zu0R4Y/nWugtJzA7Pg1eWeuDR9+LSqn+xjamss+UOSOJJJ4gx8jw==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-6EamKFRRnlpdadndbZ6LMwycfwkwPte1B42hs6QA0gYhjaOKqW4PZ4pjaW9UrlDX5eVt/OjncE7BFTPL5nmZhg==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-R6OUY2e2fA6Yn6s+VSx5KBV6Nx8LQEhu+cz7LCej18rQ1HLyg9PSC9jP/ZNx0o6FAIK9c0F1kHylzSxKsdlkrQ==}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-uEQJGT97ZA/TgP/Hydw47lHu+/vQj6z/0jA+WeTbK1o9Rx45GImjpD0tc3W5ad3D6XTSR6e1yEO0FvGq6WQfVQ==}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-7cshFL8HGS/7HEiHH+9kL9HBwp2sa9yX18Knwek6KYWmXwM7pegMgta2AXMQKI+rq3JnfSj9x8wYqFMTdG1Jgg==}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-ge3ipobwSXTj4JyVtswQ7qZj0ZHdtbGuOno/LrgAAeSxtsJ6Vs4Gz5IkPH2bmqpjcLUFoqGhA/mueuIf63UXlA==}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-umO/aJ+82CpOnhDZUTbILCQf7kU/g0iv+oGs/Q8jw7IkhWBzaEP4sA268PhFAJTFetbwp3ICc6ktpI4TqtxcIw==}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-K20DkRkUwDnxEYMBPcg3Y6voLkEy5p5QQmszZgLngKKiC7dzBR/aEuK3w1qlx2JWDUNH6FluahYdgR3BP+QbYw==}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-XoSLhbRbqxFtgJoi2fNHA3C6pDlY34x508vUpUGoFZfvePfHXHbE1lC4FYFMnJWgiCRroSTw6fOsXQoVS9RwZg==}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-cSOCh6JlkmfjLyNcLiu2nB4v+nm+dkZ+Q5KHWk/soo4U7ZLiEQFKHK9/YmtBHjfCEaU43IBKQOc4/uJmCaiCTQ==}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-D3anSY15EJoxrihpsXI6SMrmmonnQtR2ni7arO+Lfdg3O95b9hNXxONk8jA5C8ANdF/h5HMAxejgs8PWJ6rlhw==}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-NFS86RYYZb4/exihaESBGOpMJFz8MGLAfu3mOBSGByVnVPC9JPASfYubxd/8KbkQK0sYAv8lVQDEQukDX/qXvQ==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-JtyZR+mqgBibTo8xea3B6ZRmzZiM/YeVBtUkas6zMuXjAlfIFIW2FgqeM9eLyvEaYX66vr6DJMK+4U6LV0KhNw==}
+
+ '@reactor-team/[email protected]':
+ resolution: {integrity: sha512-h13EP2WpFXS/qbC7l3HGkfSibN/Gk1WPZou25kwHNtt04bj8JtqzoP/Kupn3/3tV997RHXApANoO6Bie7TssLg==}
+ engines: {node: '>=18'}
+ peerDependencies:
+ react: ^18.0.0 || ^19.0.0
+
+ '@reactor-team/[email protected]':
+ resolution: {integrity: sha512-/05IYSlCqbvA+cj+Boz8/lQkeXpnMFKWvfxZeBvVxU2ePI8eCZ5Ey+1EKbUyuGiWPZ7QT7QeKtHcsrN1LN9hkQ==}
+ peerDependencies:
+ react: '>=18.0.0'
+ react-dom: '>=18.0.0'
+
+ '@rtsao/[email protected]':
+ resolution: {integrity: sha512-zt6OdqaDoOnJ1ZYsCYGt9YmWzDXl4vQdKTyJev62gFhRGKdx7mcT54V9KIjg+d2wi9EXsPvAPKe7i7WjfVWB8g==}
+
+ '@rushstack/[email protected]':
+ resolution: {integrity: sha512-TvZbIpeKqGQQ7X0zSCvPH9riMSFQFSggnfBjFZ1mEoILW+UuXCKwOoPcgjMwiUtRqFZ8jWhPJc4um14vC6I4ag==}
+
+ '@sec-ant/[email protected]':
+ resolution: {integrity: sha512-831qok9r2t8AlxLko40y2ebgSDhenenCatLVeW/uBtnHPyhHOvG0C7TvfgecV+wHzIm5KUICgzmVpWS+IMEAeg==}
+
+ '@sindresorhus/[email protected]':
+ resolution: {integrity: sha512-tlqY9xq5ukxTUZBmoOp+m61cqwQD5pHJtFY3Mn8CA8ps6yghLH/Hw8UPdqg4OLmFW3IFlcXnQNmo/dh8HzXYIQ==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-JQ5TuMi45Owi4/BIMAJBoSQoOJu12oOk/gADqlcUL9JEdHB8vyjUSsxqeNXnmXHjYKMi2WcYtezGEEhqUI/E2g==}
+
+ '@tailwindcss/[email protected]':
+ resolution: {integrity: sha512-/T8IKEsf9VTU6tLjgC7+sv2mOPtQxzE2jMw7u4Tt40Tx+QSZxpzh95/H6cMKoja9XuW7iMdLJYBB0o9G1CaAgg==}
+
+ '@tailwindcss/[email protected]':
+ resolution: {integrity: sha512-Y85A2gmPSkl5Ve5qR86GL4HT509cFqQh1aes9p3sSkyTPwt0Pppf3GkwGe4JPACcRYjgJIEhQgM6dBClnr0NYw==}
+ engines: {node: '>= 20'}
+ cpu: [arm64]
+ os: [android]
+
+ '@tailwindcss/[email protected]':
+ resolution: {integrity: sha512-BiaWatpBcERQFDlOjRDpIVXuFK5PJez5SA4JMg6VYZdBYU+qKfV/vqjcIs+IYmtitf1xYQZTwXvU/8y4lfZUGw==}
+ engines: {node: '>= 20'}
+ cpu: [arm64]
+ os: [darwin]
+
+ '@tailwindcss/[email protected]':
+ resolution: {integrity: sha512-fAeUqfV5ndhxRwai8cXGzdLvul9utWOmeTkv69unv4ZXixjn61Z+p9lCWdwOwA3TYboG3BwdVuN/RDjhBRl0mw==}
+ engines: {node: '>= 20'}
+ cpu: [x64]
+ os: [darwin]
+
+ '@tailwindcss/[email protected]':
+ resolution: {integrity: sha512-iyf5bV6+wnAlflVeEy7R25dupxTNECZN5QMI0qNT6eT+EgaGdZcKhGkr5SdoaWiLJ3spLqIY9VCeSGrwmtg4kw==}
+ engines: {node: '>= 20'}
+ cpu: [x64]
+ os: [freebsd]
+
+ '@tailwindcss/[email protected]':
+ resolution: {integrity: sha512-aAYUprJAJQWWbRrPvtjdroZ56Md+JM8pMiopS6xGEwDfLhqj+2ver2p4nU4Mb3CRqcMmNBjo8KkUgcxhkzVQGQ==}
+ engines: {node: '>= 20'}
+ cpu: [arm]
+ os: [linux]
+
+ '@tailwindcss/[email protected]':
+ resolution: {integrity: sha512-nDxldcEENOxZRzC2uu9jrutZdAAQtb+8WWDCSnWL1zvBk1+FN+x6MtDViPB5AJMfttVCUhehGWus3XBPgatM/w==}
+ engines: {node: '>= 20'}
+ cpu: [arm64]
+ os: [linux]
+ libc: [glibc]
+
+ '@tailwindcss/[email protected]':
+ resolution: {integrity: sha512-Md44bD6veX/PC5iyF8cDVnw4HBIANZepRZZ7a8DQOvkfo5WUBwcp6iAuCUz23u+4SUkhJlD3eL7hNdW8ezd/kA==}
+ engines: {node: '>= 20'}
+ cpu: [arm64]
+ os: [linux]
+ libc: [musl]
+
+ '@tailwindcss/[email protected]':
+ resolution: {integrity: sha512-tx7us1muwOKAKWao2v/GaafFeQboE6aj88vC6ziN2NCGcRm8gWUhwjzg+YdVB1e4boAtdtma4L43onunI6NS4w==}
+ engines: {node: '>= 20'}
+ cpu: [x64]
+ os: [linux]
+ libc: [glibc]
+
+ '@tailwindcss/[email protected]':
+ resolution: {integrity: sha512-SJxX60smvHgasZoBy11dX6YRjXJFovwWBoedhbQPOBzgFWBHGB+TVPWB9BxzR7TTxU8FQZAI2AyiNCMzFm8Img==}
+ engines: {node: '>= 20'}
+ cpu: [x64]
+ os: [linux]
+ libc: [musl]
+
+ '@tailwindcss/[email protected]':
+ resolution: {integrity: sha512-jx1+rPhY/5Ympkktd656HBWEBLxP7dH06losBLjjf5vgCODXvi9KhtftWcMIwTFIDqBr7cRnQkdLnAG+IOlGvQ==}
+ engines: {node: '>=14.0.0'}
+ cpu: [wasm32]
+ bundledDependencies:
+ - '@napi-rs/wasm-runtime'
+ - '@emnapi/core'
+ - '@emnapi/runtime'
+ - '@tybys/wasm-util'
+ - '@emnapi/wasi-threads'
+ - tslib
+
+ '@tailwindcss/[email protected]':
+ resolution: {integrity: sha512-3rc292Ca2ceK6Ulcc/bAVnTs/3nDtoPhyEKlgPv+yQJQi/JS/AMJlqzxvlDacL1nekbrcf6bTqp/jV4qgnPxNQ==}
+ engines: {node: '>= 20'}
+ cpu: [arm64]
+ os: [win32]
+
+ '@tailwindcss/[email protected]':
+ resolution: {integrity: sha512-yJ0pwIVc/nYeGoV02WtsN8KYyLQv7kyI2wDnkezyJlGGjkd4QLwDGAwl47YpPJeuI0M0ObaXGSPjvWDPeTPggw==}
+ engines: {node: '>= 20'}
+ cpu: [x64]
+ os: [win32]
+
+ '@tailwindcss/[email protected]':
+ resolution: {integrity: sha512-krXjAikiaFSPaK/FkAQT5UTx3VormQaiZ5hBFlJZ9UFQGB/rwg1MZIhHAG9smMQRTdyJxP6Qt5MwMtdyU5FWrA==}
+ engines: {node: '>= 20'}
+
+ '@tailwindcss/[email protected]':
+ resolution: {integrity: sha512-JTSZZGQi1AyKirbLN3azmjVzef92tcX7h+iSqPdaeStyFpGpDlKvvpxeOE8njhbUanbRwr3z8DyzhICWnMtQeg==}
+
+ '@ts-morph/[email protected]':
+ resolution: {integrity: sha512-Wf29UqxWDpc+i61k3oIOzcUfQt79PIT9y/MWfAGlrkjg6lBC1hwDECLXPVJAhWjiGbfBCxZd65F/LIZF3+jeJQ==}
+
+ '@tybys/[email protected]':
+ resolution: {integrity: sha512-W3c4gRigFS0T/Ma4qIYF3GDAc5AQdHb1yL5znJT1Zv1YaD9Kitx656wBjvr19qbiosmZT8lWDM5BEMynUqX65A==}
+
+ '@types/[email protected]':
+ resolution: {integrity: sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==}
+
+ '@types/[email protected]':
+ resolution: {integrity: sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==}
+
+ '@types/[email protected]':
+ resolution: {integrity: sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==}
+
+ '@types/[email protected]':
+ resolution: {integrity: sha512-6oYBAi5ikg4Pl+kGsoYtawUMBT2zZMCvPNF7pVLnHZfd1zf38DRiWn/gT01RYCdUqkv7Fhr+C9ot4/tb+2sVvA==}
+
+ '@types/[email protected]':
+ resolution: {integrity: sha512-ZI7bU42mZXXKHn/qNLEw2IrbiINU7X5+vfgdixBHkCNpYWXjKgfQ/P+uyGb5CjOLB9UcnTeg3rylQtV2hym44Q==}
+ peerDependencies:
+ '@types/react': ^19.3.0
+
+ '@types/[email protected]':
+ resolution: {integrity: sha512-N0rFCuH9YoxG9/m61l9MfpJKfmLOVU0em7ipIz6TRgSSkvReLB9vL85GB+yr8Bs5leqpvg96JSwF4ZS1s4viQg==}
+
+ '@types/[email protected]':
+ resolution: {integrity: sha512-GGmQVGpQWUe5qglJozEjZV/5dyxbOOZ0LHe/lqyWssB88Y4svNfst0uqBVscdDeIKl5Jy5+aPSvy7mI9tYRguw==}
+
+ '@types/[email protected]':
+ resolution: {integrity: sha512-xMAgYwceFhRA2zY+XbEA7mxYbA093wdiW8Vu6gZPGWy9cmOyU9XesH1tNcEWsKFd5Vzrqx5T3D38PWx1FIIXkA==}
+
+ '@types/[email protected]':
+ resolution: {integrity: sha512-lrpDziQipxCEeK5kWxvljWYhUvOiB2A9izZd9B2AFarYAkqZshb4lPbRs7zKEic6eGtH8V/2qJW+dPp9OtF6bw==}
+
+ '@typescript-eslint/[email protected]':
+ resolution: {integrity: sha512-pqcS9c1HxZTHt7End4nXqd0s5lJrrFzrgCkKFJrsbUnaL6M3+6oBFZaslg6Gjsl3argl2DDRFROnXARaZ2e4Nw==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+ peerDependencies:
+ '@typescript-eslint/parser': ^8.71.0
+ eslint: ^8.57.0 || ^9.0.0 || ^10.0.0
+ typescript: '>=4.8.4 <6.1.0'
+
+ '@typescript-eslint/[email protected]':
+ resolution: {integrity: sha512-CG4nPk1f2zc8yw4pALqHsFYH2hdo+h1T9daSp21+Hnxi9LOE3GT9hAfTKJCBXVNM2GmYs1eMEP615wPoeOgk3A==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+ peerDependencies:
+ eslint: ^8.57.0 || ^9.0.0 || ^10.0.0
+ typescript: '>=4.8.4 <6.1.0'
+
+ '@typescript-eslint/[email protected]':
+ resolution: {integrity: sha512-aABjw5rjBacYONVPaPiWOCjJu0vEF4a25iQuodlmQYL1trtLZ0X/y+2Vzl3BKI1odM4LnwLE1oUDXYp1wzx1TQ==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+ peerDependencies:
+ typescript: '>=4.8.4 <6.1.0'
+
+ '@typescript-eslint/[email protected]':
+ resolution: {integrity: sha512-gWF0BhUcnjZxSpLE8ngS/59n2SB0J3YqRxvX1+2aoRJk9hNtHSLOV+TcarFiOr5ipXm3yc1QrI4c9YZc8zyCxw==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+
+ '@typescript-eslint/[email protected]':
+ resolution: {integrity: sha512-Z1UlWHADEK2Mlb9NpWfDeSjqoZ5EyrOv4R3eQpbkzqn/EwaIdOpXXupEA1+0ZIOSJSZZDBHG0BrQyN8zUG6Pwg==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+ peerDependencies:
+ typescript: '>=4.8.4 <6.1.0'
+
+ '@typescript-eslint/[email protected]':
+ resolution: {integrity: sha512-i8uO1qbdxeKgRnS5sCRt6On3/nfo2d2DwQe3Yvjx543zLy7r8ySqRuPPiIIXAhS03U0v5NfAFx+rUgxFzKKwNw==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+ peerDependencies:
+ eslint: ^8.57.0 || ^9.0.0 || ^10.0.0
+ typescript: '>=4.8.4 <6.1.0'
+
+ '@typescript-eslint/[email protected]':
+ resolution: {integrity: sha512-cJ4OoxPGWvFnBTnSZyaU+qJzGTqPTGJY+gDchj6cRyLRdmIdt4rcsE4twj+zPfrNiWuVi38wijHzShL++Z9atQ==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+
+ '@typescript-eslint/[email protected]':
+ resolution: {integrity: sha512-PEEF4G5sLLWAS5BpPrUvms4ySZkiBQQZM4z+3ReI46axK5Vqr/vXBQatJQIZZOYdGyPUAKTtsrWzpqKuU+3DEw==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+ peerDependencies:
+ typescript: '>=4.8.4 <6.1.0'
+
+ '@typescript-eslint/[email protected]':
+ resolution: {integrity: sha512-pKR/tEMVrXZG23UFKUn5BQf3zfmfk7KQceI2cGzywZ5nxM5Eu3hEJU1utjWzydtzBbcJAQhHN8iPCxobHpPcZQ==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+ peerDependencies:
+ eslint: ^8.57.0 || ^9.0.0 || ^10.0.0
+ typescript: '>=4.8.4 <6.1.0'
+
+ '@typescript-eslint/[email protected]':
+ resolution: {integrity: sha512-8eQ9R218XORK+KLosnf4bu/QsUXvUyVwTbArg7/0NMB1Pu87OJKvj4nhFblkYE8gQV73mW1dx1ptlPCkwRGa7A==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+
+ resolution: {integrity: sha512-g5T90pqg1bo/7mytQx6F4iBNC0Wsh9cu+z9veDbFjc7HjpesJFWD7QMS0NGStXM075+7dJPPVvBbpZlnrdpi/w==}
+ cpu: [arm]
+ os: [android]
+
+ resolution: {integrity: sha512-YGCRZv/9GLhwmz6mYDeTsm/92BAyR28l6c2ReweVW5pWgfsitWLY8upvfRlGdoyD8HjeTHSYJWyZGD4KJA/nFQ==}
+ cpu: [arm64]
+ os: [android]
+
+ resolution: {integrity: sha512-u9DiNT1auQMO20A9SyTuG3wUgQWB9Z7KjAg0uFuCDR1FsAY8A0CG2S6JpHS1xwm/w1G08bjXZDcyOCjv1WAm2w==}
+ cpu: [arm64]
+ os: [darwin]
+
+ resolution: {integrity: sha512-f7rPLi/T1HVKZu/u6t87lroib16n8vrSzcyxI7lg4BGO9UF26KhQL44sd9eOUgrTYhvRXtWOIZT5PejdPyJfUA==}
+ cpu: [x64]
+ os: [darwin]
+
+ resolution: {integrity: sha512-BpcOjWCJub6nRZUS2zA20pmLvjtqAtGejETaIyRLiZiQf++cbrjltLA5NN/xaXfqeOBOSlMFbemIl5/S5tljmg==}
+ cpu: [x64]
+ os: [freebsd]
+
+ resolution: {integrity: sha512-vZTDvdSISZjJx66OzJqtsOhzifbqRjbmI1Mnu49fQDwog5GtDI4QidRiEAYbZCRj9C8YZEW+3ZjqsyS9GR4k2A==}
+ cpu: [arm]
+ os: [linux]
+
+ resolution: {integrity: sha512-BiPI+IrIlwcW4nLLMM21+B1dFPzd55yAVgVGrdgDjNef+ch03GdxrcyaIz8X9SsQirh/kCQ7mviyWlMxdh2D7g==}
+ cpu: [arm]
+ os: [linux]
+
+ resolution: {integrity: sha512-zJc0H99FEPoFfSrNpa91HYfxzfAJCr502oxNK1cfdC9hlaFI43RT+JFCann9JUgZmLzzntChHyn13Sgn9ljHNg==}
+ cpu: [arm64]
+ os: [linux]
+ libc: [glibc]
+
+ resolution: {integrity: sha512-KQ3Lki6l+Pz1k/eBipN41ES+YUK30beLGb9YqcB1O542cyLCNE6GaxrfcY3T6EezmGGk84wb5XyO9loTM9tkcA==}
+ cpu: [arm64]
+ os: [linux]
+ libc: [musl]
+
+ resolution: {integrity: sha512-3SJGEh1DborhG6pyxvhPzCT4bbSIVihsvgJc13P1bHG7KLdNDaF9T3gsTwFc7Jw/5Y5/iWOjkEx7Zy0NvCGX3Q==}
+ cpu: [loong64]
+ os: [linux]
+ libc: [glibc]
+
+ resolution: {integrity: sha512-jiuG/Obbel7uw1PwHNFfrkiKhLAF6mnyZ6aWlOAVN9WqKm8v0OFGnciJIHu8+CMvXLQ8AD51LPzAoUfT21D5Ew==}
+ cpu: [loong64]
+ os: [linux]
+ libc: [musl]
+
+ resolution: {integrity: sha512-q7xRvVpmcfeL+LlZg8Pbbo6QaTZwDU5BaGZbwfhkEsXJn3Was8xYfE0RBH266xZt0rM6B7i8xAYIvjthuUIWHg==}
+ cpu: [ppc64]
+ os: [linux]
+ libc: [glibc]
+
+ resolution: {integrity: sha512-0CVdx6lcnT3Q9inOH8tsMIOJ6ImndllMjqJHg8RLVdB7Vq4SfkEXl9mCSsVNuNA4MCYycRicCUxPCabVHJRr6A==}
+ cpu: [riscv64]
+ os: [linux]
+ libc: [glibc]
+
+ resolution: {integrity: sha512-iOwlRo9vnp6R6ohHQS11n0NnfdXx/omhkocmIfaPRpQhKZ+3BDMkkdRVh53qjkFkpPddf+FETA28NwGN7l5l+w==}
+ cpu: [riscv64]
+ os: [linux]
+ libc: [musl]
+
+ resolution: {integrity: sha512-HYJtLfXq94q8iZNFT1lknx258wlkkWhZeUXJRqzKBBUJ00CvZ+N33zgbCqimLjsyw5Va6uUxhVa12mI+kaveEw==}
+ cpu: [s390x]
+ os: [linux]
+ libc: [glibc]
+
+ resolution: {integrity: sha512-mPsUhunKKDih5O96Y6enDQyHc1SqBPlY1E/SfMWDM3EdJ95Z9CArPeCVwCCqbP45ljvivdEk8Fxn+SIb1rDAJQ==}
+ cpu: [x64]
+ os: [linux]
+ libc: [glibc]
+
+ resolution: {integrity: sha512-azrt6+5ydLd8Vt210AAFis/lZevSfPw93EJRIJG+xPu4WCJ8K0kppCTpMyLPcKT7H15M4Jnt2tMp5bOvCkRC6A==}
+ cpu: [x64]
+ os: [linux]
+ libc: [musl]
+
+ resolution: {integrity: sha512-YZ9hP4O0X9PQb8eO980qmLNGH4zT3I9+SZTdt0Pr0YyuGQhYKoOZkV02VzrzyOZJ5xIJ3UFIenKkUkGg8GjgWQ==}
+ cpu: [arm64]
+ os: [openharmony]
+
+ resolution: {integrity: sha512-tYFDIkMxSflfEc/h92ZWNsZlHSwgimbNHSO3PL2JWQHfCuC2q316jMyYU9TIWZsFK2bQwyK5VAdYgn8ygPj69A==}
+ engines: {node: '>=14.0.0'}
+ cpu: [wasm32]
+
+ resolution: {integrity: sha512-qzNyg3xL0VPQmCaUh+N5jSitce6k+uCBfMDesWRnlULOZaqUkaJ0ybdT+UqlAWJoQjuqfIU/0Ptx9bteN4D82g==}
+ cpu: [arm64]
+ os: [win32]
+
+ resolution: {integrity: sha512-WD9sY00OfpHVGfsnHZoA8jVT+esS/Bg8z8jzxp5BnDCjjwsuKsPQrzswwpFy4J1AUJbXPRfkpcX0mXrzeXW79g==}
+ cpu: [ia32]
+ os: [win32]
+
+ resolution: {integrity: sha512-nAB74NfSNKknqQ1RrYj6uz8FcXEomu/MATJZxh/x+BArzN2U3JbOYC0APYzUIGhVY3m5hRxA8VPNdPBoG8txlA==}
+ cpu: [x64]
+ os: [win32]
+
+ resolution: {integrity: sha512-5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng==}
+ engines: {node: '>= 0.6'}
+
+ resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==}
+ peerDependencies:
+ acorn: ^6.0.0 || ^7.0.0 || ^8.0.0
+
+ resolution: {integrity: sha512-lGq+9yr1/GuAWaVYIHRjvvySG5/4VfKIvC8EWxStPdcDh/Ka7FG3twP6v4d5BkravUilhIAsG4Qj83t02LWUPQ==}
+ engines: {node: '>=0.4.0'}
+ hasBin: true
+
+ resolution: {integrity: sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==}
+ engines: {node: '>= 14'}
+
+ resolution: {integrity: sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==}
+ peerDependencies:
+ ajv: ^8.0.0
+ peerDependenciesMeta:
+ ajv:
+ optional: true
+
+ resolution: {integrity: sha512-8iUql50EUR+uUcdRQ3HDqa6EVyo3docL8g5WJ3FNcWmu62IbkGUue/pEyLBW8VGKKucTPgqeks4fIU1DA4yowQ==}
+ peerDependencies:
+ ajv: ^8.0.0
+ peerDependenciesMeta:
+ ajv:
+ optional: true
+
+ resolution: {integrity: sha512-fgFx7Hfoq60ytK2c7DhnF8jIvzYgOMxfugjLOSMHjLIPgenqa7S7oaagATUq99mV6IYvN2tRmC0wnTYX6iPbMw==}
+
+ resolution: {integrity: sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA==}
+
+ resolution: {integrity: sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw==}
+ engines: {node: '>=6'}
+
+ resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==}
+ engines: {node: '>=8'}
+
+ resolution: {integrity: sha512-KzTVk2tCWAHtYrvvvaP8bJKJq2pVinhLcGEQdtLIYPbmNGNyYe8QwNaTUYQp2J7/vIsUKt5QCqAfUkYyG9DkOw==}
+ engines: {node: '>=12'}
+
+ resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==}
+ engines: {node: '>=8'}
+
+ resolution: {integrity: sha512-9k3v7xcHwgdO/DruxGIg4HtjvlAZlcnsX/mzqUb1t3NkYnl9kK2UJ+Gq0io+vQf7iT//BD/HB/NBkUR1LWxoeA==}
+ engines: {node: '>=14'}
+
+ resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==}
+
+ resolution: {integrity: sha512-ik3ZgC9dY/lYVVM++OISsaYDeg1tb0VtP5uL3ouh1koGOaUMDPpbFIei4JkFimWUFPn90sbMNMXQAIVOlnYKJA==}
+ engines: {node: '>=10'}
+
+ resolution: {integrity: sha512-COROpnaoap1E2F000S62r6A60uHZnmlvomhfyT2DlTcrY1OrBKn2UhH7qn5wTC9zMvD0AY7csdPSNwKP+7WiQw==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-LHE+8BuR7RYGDKvnrmcuSq3tDcKv9OFEXQt/HpbZhY7V6h0zlUXutnAD82GiFx9rdieCMjkvtcsPqBwgUl1Iiw==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-VXY5eFRarnXcYxwBjJzPmEhH55+rmP79/+ueDhi0F+TuqfHCItagIHqxeUZrmgrOPa31QTh9H85DjX3FfJ0FTg==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-CVvd6FHg1Z3POpBLxO6E6zr+rSKEQ9L6rZHAaY7lLfhKsWYUBBOuMs0e9o24oopj6H+geRCX0YJ+TJLBK2eHyQ==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-F/TKATkzseUExPlfvmwQKGITM3DGTK+vkAsCZoDc5daVygbJBnjEUCbgkAvVFsgfXfX4YIqZ/27G3k3tdXrTxQ==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-rwG/ja1neyLqCuGZ5YYrznA62D4mZXg0i1cIskIUKSiqF3Cje9/wXAls9B9s1Wa2fomMsIv8czB8jZcPmxCXFg==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-Y7Wt51eKJSyi80hFrJCePGGNo5ktJCslFuboqJsbf57CCPcm5zztluPlc4/aD8sWsKvlwatezpV4U1efk8kpjg==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-p6Fx8B7b7ZhL/gmUsAy0D15WhvDccw3mnGNbZpi3pmeJdxtWsj2jEaI4Y6oo3XiHfzuSgPwKc04MYt6KgvC/wA==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-BNoCY6SXXPQ7gF2opIP4GBE+Xw7U+pHMYKuzjgCN3GwiaIR09UUeKfheyIry77QtrCBlC0KK0q5/TER/tYh3PQ==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-OH/2E5Fg20h2aPrbe+QL8JZQFko0YZaF+j4mnQ7BGhfavO7OpSLa8a0y9sBwomHdSbkhTS8TQNayBfnW5DwbvQ==}
+
+ resolution: {integrity: sha512-FvWoWYfSCM6kRxCSH+MGLHIKKGRL6A6AW7Zek2O32REPQRdg131428uRTKMBYAeRd3XXAaHDS60Wpri7CdKDrA==}
+ engines: {node: '>=4'}
+
+ resolution: {integrity: sha512-hsU18Ae8CDTR6Kgu9DYf0EbCr/a5iGL0rytQDobUcdpYOKokk8LEjVphnXkDkgpi0wYVsqrXuP0bZxJaTqdgoA==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-Xcz9l0z7y9yQ9rdDaxlmaI4uJHf/T8g9hOEzJcsEqX2SjCj4J20uK7+ldkDHMbpJDK76wF7xEIgxc/vSlsfw5w==}
+ engines: {node: '>=10.12.0'}
+
+ resolution: {integrity: sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-kzMN6Bdfalok/JWZvwDfI704cIyCvHDi6Ez/bApGzNPjGHQhwJ07DzGd3DDzeXH2fjr9P5g8paESFUvYnbs7rA==}
+ engines: {node: '>=22'}
+
+ resolution: {integrity: sha512-UzGt8zg7Ny8djbYMhxl2zuEevVa7r2gJjYY5Lwr1xM7+XU2nd6CkIWFTVcCIbAP63vSz71NaVyyuSk9lHKcy0A==}
+ engines: {node: '>=4'}
+
+ resolution: {integrity: sha512-qIj0G9wZbMGNLjLmg1PT6v2mE9AH2zlnADJD/2tC6E00hgmhUOfEB6greHPAfLRSufHqROIUTkw6E+M3lH0PTQ==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==}
+
+ resolution: {integrity: sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==}
+ engines: {node: 18 || 20 || >=22}
+
+ resolution: {integrity: sha512-ElY12DaROGuan+lMmZ8Cvo/ZUbXPe7Enc/9VU/b1T3Kp4dwytRcNdR8DoSJN5SNJT/CuvcCA0DHDVmMOCePdRQ==}
+ engines: {node: '>=6.0.0'}
+ hasBin: true
+
+ resolution: {integrity: sha512-2cGmJupaNgg+QUwVLAucDuWuoMZ6EX9iHDRswZ5lsNYEmwPaRknMPCLZz07yTzVq/83p4o/wzbDZbBrTvGGTIw==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-9zeA+KLZNNzglF2TPKRQEDyx6Yby7daAkuy8MiPzpXPsYDWi/DRM8jmwUDxokQjYqBpv5DgPiwD4h4ZZSy1Ujw==}
+
+ resolution: {integrity: sha512-YovQ3rzhaLMIrDjNDMkNS01tea93qhEhG5xy8f6+R0l+dw3Ki+5sCoIoI942iuLZTHWogWktgwVDhU09iNEimQ==}
+ engines: {node: 20 || >=22}
+
+ resolution: {integrity: sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==}
+ engines: {node: '>=8'}
+
+ resolution: {integrity: sha512-1R4kiYKXGViqEN0CnoDrXc1StD9niAwu+j2dukWzrD4bJgsD4lDmEp0CRbc6E/vYJIfTHwPmwyaKtVSudICdPA==}
+ engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7}
+ hasBin: true
+
+ resolution: {integrity: sha512-DdH81/zPLVS11EUgWq3tEu/xn+EzljlMYooDNdzWEnFha3R3NBMpMV1UqYIpjYHV/SgpFKMIX1Oh7o06SjM/oA==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==}
+ engines: {node: '>= 0.8'}
+
+ resolution: {integrity: sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-a/hy+pNsFUTR+Iz8TCJvXudKVLAnz/DyeSUo10I5yvFDQJBFU2s9uqQpoSrJlroHUKoKqzg+epxyP9lqFdzfBQ==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==}
+ engines: {node: '>=6'}
+
+ resolution: {integrity: sha512-/Uaf1lAzr59XcMpW0o96WoEfr+VXK2OX4U9AgFoiSHsVJ4HppnIFUjtYzsyDH2+tgANaQb2/oxYGwCPapN1FpA==}
+
+ resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==}
+ engines: {node: '>=10'}
+
+ resolution: {integrity: sha512-7NzBL0rN6fMUW+f7A6Io4h40qQlG+xGmtMxfbnH/K7TAtt8JQWVQK+6g0UXKMeVJoyV5EkkNsErQ8pVD3bLHbA==}
+ engines: {node: ^12.17.0 || ^14.13 || >=16.0.0}
+
+ resolution: {integrity: sha512-Ka+9Trutv7G8M6WT6SeiRWz792K5qEqIGEGzXKhAE6xOWAY6pPH8U+9IY3oCMv6kqTmLsv7Xh/2w2RigkePMsg==}
+
+ resolution: {integrity: sha512-aCj4O5wKyszjMmDT4tZj93kxyydN/K5zPWSCe6/0AV/AA1pqe5ZBIw0a2ZfPQV7lL5/yb5HsUreJ6UFAF1tEQw==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-ywqV+5MmyL4E7ybXgKys4DugZbX0FC6LnwrhjuykIjnK9k8OQacQ7axGKnjDXWNhns0xot3bZI5h55H8yo9cJg==}
+ engines: {node: '>=6'}
+
+ resolution: {integrity: sha512-ouuZd4/dm2Sw5Gmqy6bGyNNNe1qt9RpmxveLSO7KcgsTnU7RXfsw+/bukWGo1abgBiMAic068rclZsO4IWmmxQ==}
+ engines: {node: '>= 12'}
+
+ resolution: {integrity: sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA==}
+
+ resolution: {integrity: sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==}
+ engines: {node: '>=12'}
+
+ resolution: {integrity: sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==}
+ engines: {node: '>=6'}
+
+ resolution: {integrity: sha512-Oofo0pq3IKnsFtuHqSF7TqBfr71aeyZDVJ0HpmqB7FBM2qEigL0iPONSCZSO9pE9dZTAxANe5XHG9Uy0YMv8cg==}
+
+ resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==}
+ engines: {node: '>=7.0.0'}
+
+ resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==}
+
+ resolution: {integrity: sha512-yPVavfyCcRhmorC7rWlkHn15b4wDVgVmBA7kV4QVBsF7kv/9TKJAbAXVTxvTnwP8HHKjRCJDClKbciiYS7p0DQ==}
+ engines: {node: '>=16'}
+
+ resolution: {integrity: sha512-H+y0Jo/T1RZ9qPP4Eh1pkcQcLRglraJaSLoyOtHxu6AapkjWVCy2Sit1QQ4x3Dng8qDlSsZEet7g5Pq06MvTgw==}
+ engines: {node: '>=20'}
+
+ resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==}
+
+ resolution: {integrity: sha512-8fLl9F04EJqjSqH+QjITQfJF8BrOVaYr1jewVgSRAEWePfxT0sku4w2hrGQ60BC/TNLGQ2pgxNlTbWQmMPFvXg==}
+ engines: {node: '>=12'}
+
+ resolution: {integrity: sha512-5jRCH9Z/+DRP7rkvY83B+yGIGX96OYdJmzngqnw2SBSxqCFPd0w2km3s5iawpGX8krnwSGmF0FW5Nhr0Hfai3g==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==}
+ engines: {node: '>= 0.6'}
+
+ resolution: {integrity: sha512-mj7UPXE0jaqaOsukNZRUEfEi2AcL7C/vwmwcHV0O97eO1E1pxBZuyjlZrx5seTaNBg1U6+o35wpa35Qfcc+7ag==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==}
+
+ resolution: {integrity: sha512-D76uU73ulSXrD1UXF4KE2TMxVVwhsnCgfAyTg9k8P6KGZjlXKrOLe4dJQKI3Bxi5wjesZoFXJWElNWBjPZMbhg==}
+ engines: {node: '>=6.6.0'}
+
+ resolution: {integrity: sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==}
+ engines: {node: '>= 0.6'}
+
+ resolution: {integrity: sha512-ei8Aos7ja0weRpFzJnEA9UHJ/7XQmqglbRwnf2ATjcB9Wq874VKH9kfjjirM6UhU2/E5fFYadylyhFldcqSidQ==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-tJtZBBHA6vjIAaF6EnIaq6laBBP9aq/Y3ouVJjEfoHbRBcHBAHYcMh/w8LDrk2PvIMMq8gmopa5D4V8RmbrxGw==}
+ engines: {node: '>= 0.10'}
+
+ resolution: {integrity: sha512-gtTZxTDau1wL7Y7zifc2dd8jHSK/k6BTx/2Xp/BpdlAdnlYWFVt7qhJqgwi7637yRwRQ3qL4ZidbB4I8tA5VOg==}
+ engines: {node: '>=14'}
+ peerDependencies:
+ typescript: '>=4.9.5'
+ peerDependenciesMeta:
+ typescript:
+ optional: true
+
+ resolution: {integrity: sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==}
+ engines: {node: '>= 8'}
+
+ resolution: {integrity: sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==}
+ engines: {node: '>=4'}
+ hasBin: true
+
+ resolution: {integrity: sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==}
+
+ resolution: {integrity: sha512-sdQSFB7+llfUcQHUQO3+B8ERRj0Oa4w9POWMI/puGtuf7gFywGmkaLCElnudfTiKZV+NvHqL0ifzdrI8Ro7ESA==}
+
+ resolution: {integrity: sha512-0R9ikRb668HB7QDxT1vkpuUBtqc53YyAwMwGeUFKRojY/NWKvdZ+9UYtRfGmhqNbRkTSVpMbmyhXipFFv2cb/A==}
+ engines: {node: '>= 12'}
+
+ resolution: {integrity: sha512-EmKO5V3OLXh1rtK2wgXRansaK1/mtVdTUEiEI0W8RkvgT05kfxaH29PliLnpLP73yYO6142Q72QNa8Wx/A5CqQ==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-tuhGbE6CfTM9+5ANGf+oQb72Ky/0+s3xKUpHvShfiz2RxMFgFPjsXuRLBVMtvMs15awe45SRb83D6wH4ew6wlQ==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-BS8PfmtDGnrgYdOonGZQdLZslWIeCGFP9tpan0hi1Co2Zr2NKADsvGYA8XxuG/4UWgJ6Cjtv+YJnB6MM69QGlQ==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-8pYCQiL9Xdcg0UPSD3d+0KMlOjp+KGU5EPwYddgzQ7DATsg4fuUDjQtsYLmWjnk2obnNHgV3vE2Y4jejSOJVBQ==}
+ engines: {node: '>=10'}
+
+ resolution: {integrity: sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==}
+ peerDependencies:
+ supports-color: '*'
+ peerDependenciesMeta:
+ supports-color:
+ optional: true
+
+ resolution: {integrity: sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==}
+ engines: {node: '>=6.0'}
+ peerDependencies:
+ supports-color: '*'
+ peerDependenciesMeta:
+ supports-color:
+ optional: true
+
+ resolution: {integrity: sha512-WzMx3mW98SN+zn3hgemf4OzdmyNhhhKz5Ay0pUfQiMQ3e1g+xmTJWp/pKdwKVXhdSkAEGIIzqeuWrL3mV/AXbA==}
+ peerDependencies:
+ babel-plugin-macros: ^3.1.0
+ peerDependenciesMeta:
+ babel-plugin-macros:
+ optional: true
+
+ resolution: {integrity: sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==}
+
+ resolution: {integrity: sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==}
+ engines: {node: '>=0.10.0'}
+
+ resolution: {integrity: sha512-x1VCxdX4t+8wVfd1so/9w+vQ4vx7lKd2Qp5tDRutErwmR85OgmfX7RlLRMWafRMY7hbEiXIbudNrjOAPa/hL8Q==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-m1pAzaJgZ/gssEqlOhJkPJp8Xly7QyW6xcrkUa2KKcDeDSEMP7X8xipU3snUcfisTQx0w1AGae+9UtJSfVnXGw==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og==}
+ engines: {node: '>=8'}
+
+ resolution: {integrity: sha512-N+MeXYoqr3pOgn8xfyRPREN7gHakLYjhsHhWGT3fWAiL4IkAt0iDw14QiiEm2bE30c5XX5q0FtAA3CK5f9/BUg==}
+ engines: {node: '>=12'}
+
+ resolution: {integrity: sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==}
+ engines: {node: '>= 0.8'}
+
+ resolution: {integrity: sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==}
+ engines: {node: '>=8'}
+
+ resolution: {integrity: sha512-ypdmJU/TbBby2Dxibuv7ZLW3Bs1QEmM7nHjEANfohJLvE0XVujisn1qPJcZxg+qDucsr+bP6fLD1rPS3AhJ7EQ==}
+
+ resolution: {integrity: sha512-DPi0FmjiSU5EvQV0++GFDOJ9ASQUVFh5kD+OzOnYdi7n3Wpm9hWWGfB/O2blfHcMVTL5WkQXSnRiK9makhrcnw==}
+ engines: {node: '>=0.3.1'}
+
+ resolution: {integrity: sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==}
+ engines: {node: '>=0.10.0'}
+
+ resolution: {integrity: sha512-tE7ztYzXHIeyvc7N+hR3oi7FIbf/NIjVP9hmAt3yMXzrQ072/fpjGLx2GxNxGxUl5V73MEqYzioOMoVhGMJ5cA==}
+ engines: {node: '>=10'}
+
+ resolution: {integrity: sha512-nI4U3TottKAcAD9LLud4Cb7b2QztQMUEfHbvhTH09bqXTxnSie8WnjPALV/WMCrJZ6UV/qHJ6L03OqO3LcdYZw==}
+ engines: {node: '>=12'}
+
+ resolution: {integrity: sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==}
+
+ resolution: {integrity: sha512-5ss/uJfoDYDHT0lfJzT6FbcskIzROIOPf0BbbFkGcvDzoJU7i//9GDrwwIHQVmIsrAGiF3ihpADBRIsrEFt1rQ==}
+
+ resolution: {integrity: sha512-toUI84YS5YmxW219erniWD0CIVOo46xGKColeNQRgOzDorgBi1v4D71/OFzgD9GO2UGKIv1C3Sp8DAn0+j5w7A==}
+
+ resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==}
+
+ resolution: {integrity: sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==}
+
+ resolution: {integrity: sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==}
+ engines: {node: '>= 0.8'}
+
+ resolution: {integrity: sha512-9vhedylFonb2YGogzUKX6+Ja72gOJbN1QHAqdrvqLwhdl/QWbKopzoUC9EbQNVsAns/bx/4uyqalrQAoy1IByw==}
+ engines: {node: '>=10.13.0'}
+
+ resolution: {integrity: sha512-rRqJg/6gd538VHvR3PSrdRBb/1Vy2YfzHqzvbhGIQpDRKIa4FgV/54b5Q1xYSxOOwKvjXweS26E0Q+nAMwp2pQ==}
+ engines: {node: '>=8.6'}
+
+ resolution: {integrity: sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==}
+ engines: {node: '>=6'}
+
+ resolution: {integrity: sha512-sqQamAnR14VgCr1A618A3sGrygcpK+HEbenA/HiEAkkUwcZIIB/tgWqHFxWgOyDh4nB4JCRimh79dR5Ywc9MDQ==}
+
+ resolution: {integrity: sha512-6PMWXpdhshVvFp+FoWYs1EvG1Nj0tvk0dZM+XcK0xMEM1czRVcP6ohqPWHy6qPagSpC8j4+p89WXlT+xXJs/fg==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-2FpH9Q5i2RRwyEP1AylXe6nYLR5OhaJTZwmlcP0dL/+JCbgg7yyEo/sEK6HeGZRf3dFpWwThaRHVApXSkW3xeg==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-c/A0P0oxkACDc+cKWw8evLXK83oBKgn0qPOqCYT4x9uolpCIJAcYvJC9QYKNDRPsTeGyCrQ326jrvgZWdCdK5Q==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-HWcBoN6NileqtSydK2FqHbS/LoDd2pqrnQHLyJzBj4kOp/ky2MWMN694xOfkK8/SnUsW2DH7EfyVlydKCsm1Zw==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-d9T8ucsEhh8Bi1woXCf+TIKDIROLG5WCkxg8geBCbvk22kzwC5G2OnXVMO6FUsvQlgUUXQ2itephWDLqDzbeCw==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-yPDz7wqpg1/mmHLmS3tcfTfbw5f1eryXvyghYBffGdERwe+mV7ZcWzTR8LR17Kvqt3qfPurjlonmnq3MKXIOXw==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==}
+ engines: {node: '>=6'}
+
+ resolution: {integrity: sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==}
+
+ resolution: {integrity: sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==}
+ engines: {node: '>=10'}
+
+ resolution: {integrity: sha512-852JYI3NkFNzW8CqsMhI0K2CDRxTObdZ2jQJj5CtpEaOkYHn13107tHpNuD/h0WRpU4FAbCdUaxQsrfBtNK9Kw==}
+ peerDependencies:
+ eslint: ^7.23.0 || ^8.0.0 || ^9.0.0
+ typescript: '>=3.3.1'
+ peerDependenciesMeta:
+ typescript:
+ optional: true
+
+ resolution: {integrity: sha512-tRrKqFyCaKict5hOd244sL6EQFNycnMQnBe+j8uqGNXYzsImGbGUU4ibtoaBmv5FLwJwcFJNeg1GeVjQfbMrDQ==}
+
+ resolution: {integrity: sha512-A1rHYb06zjMGAxdLSkN2fXPBwuSaQ0iO5M/hdyS0Ajj1VBaRp0sPD3dn1FhME3c/JluGFbwSxyCfqdSbtQLAHQ==}
+ engines: {node: ^14.18.0 || >=16.0.0}
+ peerDependencies:
+ eslint: '*'
+ eslint-plugin-import: '*'
+ eslint-plugin-import-x: '*'
+ peerDependenciesMeta:
+ eslint-plugin-import:
+ optional: true
+ eslint-plugin-import-x:
+ optional: true
+
+ resolution: {integrity: sha512-W2WCRZ9Dqntd+2u8jJcVMV2PKulc6RdLgUUoh/yQr3uB6lo/ZOeGx11sv60/8S4QFFKNslAlWhr9u0Ef7ZW6Ig==}
+ engines: {node: '>=4'}
+ peerDependencies:
+ '@typescript-eslint/parser': '*'
+ eslint: '*'
+ eslint-import-resolver-node: '*'
+ eslint-import-resolver-typescript: '*'
+ eslint-import-resolver-webpack: '*'
+ peerDependenciesMeta:
+ '@typescript-eslint/parser':
+ optional: true
+ eslint:
+ optional: true
+ eslint-import-resolver-node:
+ optional: true
+ eslint-import-resolver-typescript:
+ optional: true
+ eslint-import-resolver-webpack:
+ optional: true
+
+ resolution: {integrity: sha512-whOE1HFo/qJDyX4SnXzP4N6zOWn79WhnCUY/iDR0mPfQZO8wcYE4JClzI2oZrhBnnMUCBCHZhO6VQyoBU95mZA==}
+ engines: {node: '>=4'}
+ peerDependencies:
+ '@typescript-eslint/parser': '*'
+ eslint: ^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8 || ^9
+ peerDependenciesMeta:
+ '@typescript-eslint/parser':
+ optional: true
+
+ resolution: {integrity: sha512-scB3nz4WmG75pV8+3eRUQOHZlNSUhFNq37xnpgRkCCELU3XMvXAxLk1eqWWyE22Ki4Q01Fnsw9BA3cJHDPgn2Q==}
+ engines: {node: '>=4.0'}
+ peerDependencies:
+ eslint: ^3 || ^4 || ^5 || ^6 || ^7 || ^8 || ^9
+
+ resolution: {integrity: sha512-+f15FfK64YQwZdJNELETdn5ibXEUQmW1DZL6KXhNnc2heoy/sg9VJJeT7n8TlMWouzWqSWavFkIhHyIbIAEapg==}
+ engines: {node: '>=10'}
+ peerDependencies:
+ eslint: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 || ^9.0.0
+
+ resolution: {integrity: sha512-Qteup0SqU15kdocexFNAJMvCJEfa2xUKNV4CC1xsVMrIIqEy3SQ/rqyxCWNzfrd3/ldy6HMlD2e0JDVpDg2qIA==}
+ engines: {node: '>=4'}
+ peerDependencies:
+ eslint: ^3 || ^4 || ^5 || ^6 || ^7 || ^8 || ^9.7
+
+ resolution: {integrity: sha512-sNXOfKCn74rt8RICKMvJS7XKV/Xk9kA7DyJr8mJik3S7Cwgy3qlkkmyS2uQB3jiJg6VNdZd/pDBJu0nvG2NlTg==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+
+ resolution: {integrity: sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==}
+ engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
+
+ resolution: {integrity: sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+
+ resolution: {integrity: sha512-tD40eHxA35h0PEIZNeIjkHoDR4YjjJp34biM0mDvplBe//mB+IHCqHDGV7pxF+7MklTvighcCPPZC7ynWyjdTA==}
+ engines: {node: ^20.19.0 || ^22.13.0 || >=24}
+
+ resolution: {integrity: sha512-DgZS62aPLXKlnxILS/AYCoRvHaZeXceIzlXPkkGGzJWSow1aEk0lbTlxUSlyjC8jcaKxAdOnTDz+o1JFSBsyjw==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+ deprecated: This version is no longer supported. Please see https://eslint.org/version-support for other options.
+ hasBin: true
+ peerDependencies:
+ jiti: '*'
+ peerDependenciesMeta:
+ jiti:
+ optional: true
+
+ resolution: {integrity: sha512-j6PAQ2uUr79PZhBjP5C5fhl8e39FmRnOjsD5lGnWrFU8i2G776tBK7+nP8KuQUTTyAZUwfQqXAgrVH5MbH9CYQ==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+
+ resolution: {integrity: sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==}
+ engines: {node: '>=4'}
+ hasBin: true
+
+ resolution: {integrity: sha512-Ap6G0WQwcU/LHsvLwON1fAQX9Zp0A2Y6Y/cJBl9r/JbW90Zyg4/zbG6zzKa2OTALELarYHmKu0GhpM5EO+7T0g==}
+ engines: {node: '>=0.10'}
+
+ resolution: {integrity: sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==}
+ engines: {node: '>=4.0'}
+
+ resolution: {integrity: sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==}
+ engines: {node: '>=4.0'}
+
+ resolution: {integrity: sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==}
+ engines: {node: '>=0.10.0'}
+
+ resolution: {integrity: sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==}
+ engines: {node: '>= 0.6'}
+
+ resolution: {integrity: sha512-EKN1vKAMcZ8MlYMpaNuxN6R9yakzH6uajHcHVTqWJzvu5pWw9DyhbP35HH8MVBQ+dZjAfDxk+A8NiR9KWaXiyQ==}
+ engines: {node: '>=18.0.0'}
+
+ resolution: {integrity: sha512-CRT1WTyuQoD771GW56XEZFQ/ZoSfWid1alKGDYMmkt2yl8UXrVR4pspqWNEcqKvVIzg6PAltWjxcSSPrboA4iA==}
+ engines: {node: '>=18.0.0'}
+
+ resolution: {integrity: sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==}
+ engines: {node: '>=10'}
+
+ resolution: {integrity: sha512-9Be3ZoN4LmYR90tUoVu2te2BsbzHfhJyfEiAVfz7N5/zv+jduIfLrV2xdQXOHbaD6KgpGdO9PRPM1Y4Q9QkPkA==}
+ engines: {node: ^18.19.0 || >=20.5.0}
+
+ resolution: {integrity: sha512-hOwV7WOxXfjRpAM1DSJWZDXx3GhplwD8IfwuwvogD8i1Qnkgosw/H45s4ZnFAUHDAhPjlY9hLBvJhKmGMyY26g==}
+ engines: {node: '>= 16'}
+ peerDependencies:
+ express: '>= 4.11'
+
+ resolution: {integrity: sha512-hIS4idWWai69NezIdRt2xFVofaF4j+6INOpJlVOLDO8zXGpUVEVzIYk12UUi2JzjEzWL3IOAxcTubgz9Po0yXw==}
+ engines: {node: '>= 18'}
+
+ resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==}
+
+ resolution: {integrity: sha512-kNFPyjhh5cKjrUltxs+wFx+ZkbRaxxmZ+X0ZU31SOsxCEtP9VPgtq2teZw1DebupL5GmDaNQ6yKMMVcM41iqDg==}
+ engines: {node: '>=8.6.0'}
+
+ resolution: {integrity: sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==}
+ engines: {node: '>=8.6.0'}
+
+ resolution: {integrity: sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==}
+
+ resolution: {integrity: sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==}
+
+ resolution: {integrity: sha512-0jjjIEL6+0jag3l2XWWizO64/aZVtpiGE3t0Zgqxv0DPuxiMjvB3M24fCyhZUO4KomJQPj3LTSUnDP3GpdwC0g==}
+
+ resolution: {integrity: sha512-gX8LrtNEI5hq8DVUfRQMbr5lpaS4nMIWV+7XEbXk2b8kiQIizgnlr12B4dA3ZEx3308ze0O4Q1R+cHts8kyUJg==}
+
+ resolution: {integrity: sha512-GZMtZUTNRpOVIECoXwLNZS5xUGE+mVNbTB8h/7Rwh2TFWcBQiPzTgyZi05BF9UMZKkLJv8XBRJTlU7zg8+ZfMg==}
+
+ resolution: {integrity: sha512-7F2Fl+TjRSenLqlU3UjSH0iyqopqoZIu7eZVpEirP2g1GtWa2G/ecEmBdgz31+Mxr+ELclgg6sokpSFIQiZ02Q==}
+
+ resolution: {integrity: sha512-XKv5nnLs6nLF71NgiKJLIZFLkPyIEuOselLG7ujZnGrRfQK8HpvY+WqKhAJUAdLomwVHErVS4LfxFlPq0/FTAw==}
+
+ resolution: {integrity: sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==}
+ engines: {node: '>=12.0.0'}
+ peerDependencies:
+ picomatch: ^3 || ^4
+ peerDependenciesMeta:
+ picomatch:
+ optional: true
+
+ resolution: {integrity: sha512-7yAQpD2UMJzLi1Dqv7qFYnPbaPx7ZfFK6PiIxQ4PfkGPyNyl2Ugx+a/umUonmKqjhM4DnfbMvdX6otXq83soQQ==}
+ engines: {node: ^12.20 || >= 14.13}
+
+ resolution: {integrity: sha512-d+l3qxjSesT4V7v2fh+QnmFnUWv9lSpjarhShNTgBOfA0ttejbQUAlHLitbjkoRiDulW0OPoQPYIGhIC8ohejg==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==}
+ engines: {node: '>=16.0.0'}
+
+ resolution: {integrity: sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==}
+ engines: {node: '>=8'}
+
+ resolution: {integrity: sha512-S8KoZgRZN+a5rNwqTxlZZePjT/4cnm0ROV70LedRHZ0p8u9fRID0hJUZQpkKLzro8LfmC8sx23bY6tVNxv8pQA==}
+ engines: {node: '>= 18.0.0'}
+
+ resolution: {integrity: sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==}
+ engines: {node: '>=6'}
+
+ resolution: {integrity: sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==}
+ engines: {node: '>=10'}
+
+ resolution: {integrity: sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==}
+ engines: {node: '>=16'}
+
+ resolution: {integrity: sha512-5+ybhBZANEJxaH3X5evAFatUxLfEHSr7n6kYJ+1Qd0mUqr4eu9gIf6GDbWHf8RJijHrjjO8G+la14SlL2SeS1Q==}
+
+ resolution: {integrity: sha512-dKx12eRCVIzqCxFGplyFKJMPvLEWgmNtUrpTiJIR5u97zEhRG8ySrtboPHZXx7daLxQVrl643cTzbab2tkQjxg==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g==}
+ engines: {node: '>=12.20.0'}
+
+ resolution: {integrity: sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==}
+ engines: {node: '>= 0.6'}
+
+ resolution: {integrity: sha512-Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A==}
+ engines: {node: '>= 0.8'}
+
+ resolution: {integrity: sha512-KYAb4c9BJQI6QqGKthV68OHe0badztdXJWKo0WtBA9IuCFPTKvE5ZdUBglP833aMjhaSPNO4A5j/EkzZtGlKjA==}
+ engines: {node: '>=14.14'}
+
+ resolution: {integrity: sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==}
+
+ resolution: {integrity: sha512-jObKIik1P2QjPHP5nz5BaOtUlfgS0fWo8IUByNXkM+o+02sJOi94em77GwJKQSJ3gfPHdgzLNrHc1uokV4P/ew==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==}
+
+ resolution: {integrity: sha512-sR9BNCjBg6LNgwvxlBd0sBABvQitkLzoVY9MYYROQVX/FvfJ4Mai9LsGhDgd8qYdds0bY77VzYd5iuB+v5rwQQ==}
+
+ resolution: {integrity: sha512-Tt4kuxLXFKHy8KT40zwsUPUkg1CrsgY25FxA2U/j/0WgEDCk3ddc/zLTCCcbSHX9FcKtLuVaDGtGE/STWC+j3Q==}
+
+ resolution: {integrity: sha512-SFdFmIJi+ybC0vjlHN0ZGVGHc3lgE0DxPAT0djjVg+kjOnSqclqmj0KQ7ykTOLP6YxoqOvuAODGdcHJn+43q3g==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==}
+ engines: {node: '>=6.9.0'}
+
+ resolution: {integrity: sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==}
+ engines: {node: 6.* || 8.* || >= 10.*}
+
+ resolution: {integrity: sha512-XjH1AECxf0giL2V1aU8vKyRR2ppRUb5c0EvT7zuJTokQ74bNo52zOtghqdWIqrhUD79fo3x0WfKZdOqxF6LG1Q==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-FJhYRoDaiatfEkUK8HKlicmu/3SGFD51q3itKDGoSTysQJBnfOcxU5GxnhE1E6soB76MbT0MBtnKJuXyAx+96Q==}
+ engines: {node: '>=6'}
+
+ resolution: {integrity: sha512-PKsK2FSrQCyxcGHsGrLDcK0lx+0Ke+6e8KFFozA9/fIQLhQzPaRvJFdcz7+Axg3jUH/Mq+NI4xa5u/UT2tQskA==}
+ engines: {node: '>=14.16'}
+
+ resolution: {integrity: sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==}
+ engines: {node: '>=10'}
+
+ resolution: {integrity: sha512-kVCxPF3vQM/N0B1PmoqVUqgHP+EeVjmZSQn+1oCRPxd2P21P2F19lIgbR3HBosbB1PUhOAoctJnfEn2GbN2eZA==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-w9UMqWwJxHNOvoNzSJ2oPF5wvYcvP7jUvYzhp67yEhTi17ZDBBC1z9pTdGuzjD+EFIqLSYRweZjqfiPzQ06Ebg==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-++QEw4DIY7WGoukz+/+A/8dGYPT9l9yIadnmSgZ8Rjr3YVSVDipQSO9CdnJo9ePqFqUUqh+wk9uIaoiAwsiPkA==}
+
+ resolution: {integrity: sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==}
+ engines: {node: '>= 6'}
+
+ resolution: {integrity: sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==}
+ engines: {node: '>=10.13.0'}
+
+ resolution: {integrity: sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-DpLKbNU4WylpxJykQujfCcwYWiV/Jhm50Goo0wrVILAv5jOr9d+H+UR3PhSCD2rCCEIg0uc+G+muBTwD54JhDQ==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==}
+
+ resolution: {integrity: sha512-Chq1s4CY7jmh8gO2qvLIJyfCDIN+EHLFW/9iShnp1z8FjBQMoodWP1kDC36VAMXXIvAjj4ARa7ntfAV2BrjsbA==}
+ engines: {node: ^12.22.0 || ^14.16.0 || ^16.0.0 || >=17.0.0}
+
+ resolution: {integrity: sha512-R3pbpkcIqv2Pm3dUwgjclDRVmWpTJW2DcMzcIhEXEx1oh/CEMObMm3KLmRJOdvhM7o4uQBnwr8pzRK2sJWIqfg==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==}
+ engines: {node: '>=8'}
+
+ resolution: {integrity: sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==}
+
+ resolution: {integrity: sha512-KIL7eQPfHQRC8+XluaIw7BHUwwqL19bQn4hzNgdr+1wXoU0KKj6rufu47lhY7KbJR2C6T6+PfyN0Ea7wkSS+qQ==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-1TJ6Fih/b8h5TIcv+1+Hw0PDQWJTKDKzFZzcKOiW1wJza3XoAQlkCuXLbymPYB8+ZQyw8mHvdw560e8zVFIWyA==}
+
+ resolution: {integrity: sha512-MsPlx6yVW4Qv4C7mEVou4/gk/5cN2dVxOTnrNjPSmyH2f0Ln+/UkG10Ax1PE6OvrmTVPKgQYozTtBaPOuCzq7A==}
+
+ resolution: {integrity: sha512-6E2QDAc9Ick9Sq77ZrGS/dk2WUYni91aufTw6LJKpV7w8kW5/GxVUc650FOADOmlwg3K+f7Pun6XlV+pYmW6gw==}
+ engines: {node: '>=16.9.0'}
+
+ resolution: {integrity: sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ==}
+ engines: {node: '>= 0.8'}
+
+ resolution: {integrity: sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==}
+ engines: {node: '>= 14'}
+
+ resolution: {integrity: sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==}
+ engines: {node: '>=10.17.0'}
+
+ resolution: {integrity: sha512-eKCa6bwnJhvxj14kZk5NCPc6Hb6BdsU9DZcOnmQKSnO1VKrfV0zCvtttPZUsBvjmNDn8rpcJfpwSYnHBjc95MQ==}
+ engines: {node: '>=18.18.0'}
+
+ resolution: {integrity: sha512-IKXpvIzjnC9XTAUbVBcMfGS0EPaIXtW6v+zr+RRp+hqULEpo0owZax6wyRwPOJbWbzjYspQwusTsfVr0ifh4uQ==}
+ engines: {node: '>=0.10.0'}
+
+ resolution: {integrity: sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==}
+ engines: {node: '>= 4'}
+
+ resolution: {integrity: sha512-/8UvqAPU9DGTI9k4mxtf49U37Isfwr8Uts96+SBHIkFxPJnHS0Ew4f00sM4Scd8V8EjM0jUNtVDdv1kPdt35lg==}
+ engines: {node: '>= 4'}
+
+ resolution: {integrity: sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==}
+ engines: {node: '>=6'}
+
+ resolution: {integrity: sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==}
+ engines: {node: '>=0.8.19'}
+
+ resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==}
+
+ resolution: {integrity: sha512-4gd7VpWNQNB4UKKCFFVcp1AVv+FMOgs9NKzjHKusc8jTMhd5eL1NqQqOpE0KzMds804/yHlglp3uxgluOqAPLw==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-A1kdq/tSb5QjvKvAMgIoEvDBIgL7qaqVP/jkvSwYYRZ9iEzvPpopxp2wQfu3SuZRHtpHNxMn8Fs0bS+gf5Xmwg==}
+ engines: {node: '>= 12'}
+
+ resolution: {integrity: sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==}
+ engines: {node: '>= 0.10'}
+
+ resolution: {integrity: sha512-DDfANUiiG2wC1qawP66qlTugJeL5HyzMpfr8lLK+jMQirGzNod0B12cFB/9q838Ru27sBwfw78/rdoU7RERz6A==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==}
+
+ resolution: {integrity: sha512-9dgM/cZBnNvjzaMYHVoxxfPj2QXt22Ev7SuuPrs+xav0ukGB0S6d4ydZdEiM48kLx5kDV+QBPrpVnFyefL8kkQ==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-n4ZT37wG78iz03xPRKJrHTdZbe3IicyucEtdRsV5yglwc3GyUfbAfpSeD0FJ41NbUNSt5wbhqfp1fS+BgnvDFQ==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-wa56o2/ElJMYqjCjGkXri7it5FbebW5usLw/nPmCMs5DeZ7eziSYZhSmPRn0txqeW4LnAmQQU7FgqLpsEFKM4A==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-gNCGbnnnnFAUGKeZ9PdbyeGYJqewpmc2aKHUEMO5nQPWU9lOmv7jcmQIv+qHD8fXW6W7qfuCwX4rY9LNRjXrkQ==}
+
+ resolution: {integrity: sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-J/vG0zBCbIKOQFfufSwyXdMrsohyJIUNkrnmo6WZGzoM7tr/lsbfW5b2BvisL6zsyMzK9UxV9L6c7AoFbyXHOA==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-RKtWF8pGmS87i2D6gqQu/l7EYRlVdfzemCJN/P3UOs//x1QE7mfhvzHIApBTRf7axvT6DMGwSwBXYCT0nfB9xw==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-PwwhEakHVKTdRNVOw+/Gyh0+MzlCl4R6qKvkhuvLtPMggI1WAHt9sOwZxQLSGpUaDnrdyDsomoRgNnCfKNSXXg==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==}
+ engines: {node: '>=8'}
+ hasBin: true
+
+ resolution: {integrity: sha512-eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ==}
+ engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}
+ hasBin: true
+
+ resolution: {integrity: sha512-+XSoyS05OdBbhFuELhgTCpFNHkpBOJqtsZfUFFpe5QTw+9Sjbh8zitxhQkYAo6wV7e1Vb8cAPvpCk9jGam/82g==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==}
+ engines: {node: '>=0.10.0'}
+
+ resolution: {integrity: sha512-1pC6N8qWJbWoPtEjgcL2xyhQOP491EQjeUo3qTKcmV8YSDDJrOepfG8pcC7h/QgnQHYSv0mJ3Z/ZWxmatVrysg==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==}
+ engines: {node: '>=8'}
+
+ resolution: {integrity: sha512-upqt1SkGkODW9tsGNG5mtXTXtECizwtS2kA161M+gJPc1xdb/Ax629af6YrTwcOeQHbewrPNlE5Dx7kzvXTizA==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==}
+ engines: {node: '>=0.10.0'}
+
+ resolution: {integrity: sha512-jYa6Q9rH90kR1vKB6NM7qqd1mge3Fx4Dhw5TVlK1MUBqhEOuCagrEHMevNuCcbECmXZ0ThXkRm+Ymr51HwEPAw==}
+ engines: {node: '>=20'}
+
+ resolution: {integrity: sha512-KIYLCCJghfHZxqjYBE7rEy0OBuTd5xCHS7tHVgvCLkx7StIoaxwNW3hCALgEUjFfeRk+MG/Qxmp/vtETEF3tRA==}
+ engines: {node: '>=14.16'}
+ hasBin: true
+
+ resolution: {integrity: sha512-qP1vozQRI+BMOPcjFzrjXuQvdak2pHNUMZoeG2eRbiSqyvbEf/wQtEOTOX1guk6E3t36RkaqiSt8A/6YElNxLQ==}
+ engines: {node: '>=12'}
+
+ resolution: {integrity: sha512-1Qed0/Hr2m+YqxnM09CjA2d/i6YZNfF6R2oRAOj36eUdS6qIV/huPJNSEpKbupewFs+ZsJlxsjjPbc0/afW6Lw==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-5KoIu2Ngpyek75jXodFvnafB6DJgr3u8uuK0LEZJjrU19DrMD3EVERaR8sjz8CCGgpZvxPl9SuE1GMVPFHx1mw==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-Vg4o6/fqPxIjtxgUH5QLJhwZ7gW5diGCVlXpuUfELC62CuxM1iHcRe51f2W1FDy04Ai4KJkagKjx3XaqyfRKXw==}
+
+ resolution: {integrity: sha512-lZhclumE1G6VYD8VHe35wFaIif+CTy5SJIi5+3y4psDgWu4wPDoBhF8NxUOinEc7pHgiTsT6MaBb92rKhhD+Xw==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==}
+ engines: {node: '>=0.12.0'}
+
+ resolution: {integrity: sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w==}
+ engines: {node: '>=8'}
+
+ resolution: {integrity: sha512-IlsXEHOjtKhpN8r/tRFj2nDyTmHvcfNeu/nrRIcXE17ROeatXchkojffa1SpdqW4cr/Fj6QkEf/Gn4zf6KKvEQ==}
+ engines: {node: '>=12'}
+
+ resolution: {integrity: sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg==}
+ engines: {node: '>=12'}
+
+ resolution: {integrity: sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ==}
+
+ resolution: {integrity: sha512-MjYsKHO5O7mCsmRGxWcLWheFqN9DJ/2TmngvjKXihe6efViPqc274+Fx/4fYj/r03+ESvBdTXK0V6tA3rgez1g==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-rbku49cWloU5bSMI+zaRaXdQHXnthP6DZ/vLnfdSKyL4zUzuWnomtOEiZZOd+ioQ+avFo/qau3KPTc7Fjy1uPA==}
+ engines: {node: '>=12'}
+
+ resolution: {integrity: sha512-iPAjerrse27/ygGLxw+EBR9agv9Y6uLeYVJMu+QNCoouJ1/1ri0mGrcWpfCqFZuzzx3WjtwxG098X+n4OuRkPg==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-ISWac8drv4ZGfwKl5slpHG9OwPNty4jOWPRIhBpxOoD+hqITiwuipOQ2bNthAzwA3B4fIjO4Nln74N0S9byq8A==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==}
+ engines: {node: '>=8'}
+
+ resolution: {integrity: sha512-Dnz92NInDqYckGEUJv689RbRiTSEHCQ7wOVeALbkOz999YpqT46yMRIGtSNl2iCL1waAZSx40+h59NV/EwzV/A==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-BtEeSsoaQjlSPBemMQIrY1MY0uM6vnS1g5fmufYOtnxLGUZM2178PKbhsk7Ffv58IX+ZtcvoGwccYsh0PglkAA==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-9gGx6GTtCQM73BgmHQXfDmLtfjjTUDSyoxTCbp5WtoixAhfgsDirWIcVQ/IHpvI5Vgd5i/J5F7B9cN/WlVbC/w==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-p3EcsicXjit7SaskXHs1hA91QxgTw46Fv6EFKKGS5DRFLD8yKnohjF3hxoju94b/OcMZoQukzpPpBE9uLVKzgQ==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-43r2mRvz+8JRIKnWJ+3j8JtjRKZ6GmjzfaE/qiBJnikNnYv/6bagRJ1kUhNk8R5EX/GkobD+r+sfxCPJsiKBLQ==}
+ engines: {node: '>=12'}
+
+ resolution: {integrity: sha512-mE00Gnza5EEB3Ds0HfMyllZzbBrmLOX3vfWoj9A9PEnTfratQ/BcaJOuMhnkhjXvb2+FkY3VuHqtAGpTPmglFQ==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-K5pXYOm9wqY1RgjpL3YTkF39tni1XajUIkawTLUo9EZEVUFga5gSQJF8nNS7ZwJQ02y+1YCNYcMh+HIf1ZqE+w==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-6i9mGWSlqzNMEqpCp93KwRS1uUOodk2OJ6b+sq7ZPDSy2WuI5NFIxp/254TytR8ftefexkWn5xNiHUNpPOfSew==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-mfcwb6IzQyOKTs84CQMrOwW4gQcaTOAWJ0zzJCl2WSPDrWk/OzDaImWFH3djXhb24g4eudZfLRozAvPGw4d9hQ==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==}
+ engines: {node: '>=8'}
+
+ resolution: {integrity: sha512-e6rvdUCiQCAuumZslxRJWR/Doq4VpPR82kqclvcS0efgt430SlGIk05vdCN58+VrzgtIcfNODjozVielycD4Sw==}
+ engines: {node: '>=16'}
+
+ resolution: {integrity: sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==}
+
+ resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==}
+
+ resolution: {integrity: sha512-6B3tLtFqtQS4ekarvLVMZ+X+VlvQekbe4taUkf/rhVO3d/h0M2rfARm/pXLcPEsjjMsFgrFgSrhQIxcSVrBz8w==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-H0dkQoCa3b2VEeKQBOxFph+JAbcrQdE7KC0UkqwpLmv2EC4P41QXP+rqo9wYodACiG5/WM5s9oDApTU8utwj9g==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-AC/7JofJvZGrrneWNaEnJeOLUx+JlGt7tNa0wZiRPT4MY1wmfKjt2+6O2p2uz2+skll8OZZmJMNqeke7kKbNgQ==}
+ hasBin: true
+
+ resolution: {integrity: sha512-9NiFmJEex0sy2Dk58j2UGBSHgUs2ypF9eZSu4L6vjOX3Dp96Sw1F3uL+H+D1sx02jZZdzUT0HgvCy59CuvXcWw==}
+
+ resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==}
+
+ resolution: {integrity: sha512-SFNOvSJ+Dgf/9An904Yx+CgSlIPCkIpao4qo51lpee25TIRejdH3rhR4EZMGoNx3/TP3O+wzWuiTFl4sqbltzA==}
+ hasBin: true
+
+ resolution: {integrity: sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==}
+ engines: {node: '>=6'}
+ hasBin: true
+
+ resolution: {integrity: sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==}
+
+ resolution: {integrity: sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==}
+
+ resolution: {integrity: sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==}
+
+ resolution: {integrity: sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==}
+
+ resolution: {integrity: sha512-7DE8mpG+/fVw+dTpjbxnx47TaMnDfOI1jwft9g1VybltZCduyRQPJPvc+zzKY9WPHxhPWczyFuYa6I8Mw4iU5A==}
+
+ resolution: {integrity: sha512-fQhoXdcvc3V28x7C7BMs4P5+kNlgUURe2jmUT1T//oBRMDrqy1QPelJimwZGo7Hg9VPV3EQV5Bnq4hbFy2vetA==}
+
+ resolution: {integrity: sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==}
+
+ resolution: {integrity: sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==}
+ hasBin: true
+
+ resolution: {integrity: sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==}
+ engines: {node: '>=6'}
+ hasBin: true
+
+ resolution: {integrity: sha512-zwOTdL3rFQ/lRdBnntKVOX6k5cKJwEc1HdilT71BWEu7J41gXIB2MRp+vxduPSwZJPWBxEzv4yH1wYLJGUHX4Q==}
+
+ resolution: {integrity: sha512-ZZow9HBI5O6EPgSJLUb8n2NKgmVWTwCvHGwFuJlMjvLFqlGG6pjirPhtdsseaLZjSibD8eegzmYpUZwoIlj2cQ==}
+ engines: {node: '>=4.0'}
+
+ resolution: {integrity: sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==}
+
+ resolution: {integrity: sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==}
+ engines: {node: '>=6'}
+
+ resolution: {integrity: sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==}
+ engines: {node: '>=6'}
+
+ resolution: {integrity: sha512-0K65Lea881pHotoGEa5gDlMxt3pctLi2RplBb7Ezh4rRdLEOtgi7n4EwK9lamnUCkKBqaeKRVebTq6BAxSkpXQ==}
+
+ resolution: {integrity: sha512-MbjN408fEndfiQXbFQ1vnd+1NoLDsnQW41410oQBXiyXDMYH5z505juWa4KUE1LqxRC7DgOgZDbKLxHIwm27hA==}
+ engines: {node: '>=0.10'}
+
+ resolution: {integrity: sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==}
+ engines: {node: '>= 0.8.0'}
+
+ resolution: {integrity: sha512-YK7/ClTt4kAK0vo6w3X+Pnm0D2cf2vPHbhOXdoNti1Ga0al1P4TBZhwjATvjNwLEBCnKvjJc2jQgHXH0NEwlAg==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [arm64]
+ os: [android]
+
+ resolution: {integrity: sha512-RzeG9Ju5bag2Bv1/lwlVJvBE3q6TtXskdZLLCyfg5pt+HLz9BqlICO7LZM7VHNTTn/5PRhHFBSjk5lc4cmscPQ==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [arm64]
+ os: [darwin]
+
+ resolution: {integrity: sha512-U+QsBp2m/s2wqpUYT/6wnlagdZbtZdndSmut/NJqlCcMLTWp5muCrID+K5UJ6jqD2BFshejCYXniPDbNh73V8w==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [x64]
+ os: [darwin]
+
+ resolution: {integrity: sha512-JCTigedEksZk3tHTTthnMdVfGf61Fky8Ji2E4YjUTEQX14xiy/lTzXnu1vwiZe3bYe0q+SpsSH/CTeDXK6WHig==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [x64]
+ os: [freebsd]
+
+ resolution: {integrity: sha512-x6rnnpRa2GL0zQOkt6rts3YDPzduLpWvwAF6EMhXFVZXD4tPrBkEFqzGowzCsIWsPjqSK+tyNEODUBXeeVHSkw==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [arm]
+ os: [linux]
+
+ resolution: {integrity: sha512-0nnMyoyOLRJXfbMOilaSRcLH3Jw5z9HDNGfT/gwCPgaDjnx0i8w7vBzFLFR1f6CMLKF8gVbebmkUN3fa/kQJpQ==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [arm64]
+ os: [linux]
+ libc: [glibc]
+
+ resolution: {integrity: sha512-UpQkoenr4UJEzgVIYpI80lDFvRmPVg6oqboNHfoH4CQIfNA+HOrZ7Mo7KZP02dC6LjghPQJeBsvXhJod/wnIBg==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [arm64]
+ os: [linux]
+ libc: [musl]
+
+ resolution: {integrity: sha512-V7Qr52IhZmdKPVr+Vtw8o+WLsQJYCTd8loIfpDaMRWGUZfBOYEJeyJIkqGIDMZPwPx24pUMfwSxxI8phr/MbOA==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [x64]
+ os: [linux]
+ libc: [glibc]
+
+ resolution: {integrity: sha512-bYcLp+Vb0awsiXg/80uCRezCYHNg1/l3mt0gzHnWV9XP1W5sKa5/TCdGWaR/zBM2PeF/HbsQv/j2URNOiVuxWg==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [x64]
+ os: [linux]
+ libc: [musl]
+
+ resolution: {integrity: sha512-8SbC8BR40pS6baCM8sbtYDSwEVQd4JlFTOlaD3gWGHfThTcABnNDBda6eTZeqbofalIJhFx0qKzgHJmcPTnGdw==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [arm64]
+ os: [win32]
+
+ resolution: {integrity: sha512-Amq9B/SoZYdDi1kFrojnoqPLxYhQ4Wo5XiL8EVJrVsB8ARoC1PWW6VGtT0WKCemjy8aC+louJnjS7U18x3b06Q==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [x64]
+ os: [win32]
+
+ resolution: {integrity: sha512-NXYBzinNrblfraPGyrbPoD19C1h9lfI/1mzgWYvXUTe414Gz/X1FD2XBZSZM7rRTrMA8JL3OtAaGifrIKhQ5yQ==}
+ engines: {node: '>= 12.0.0'}
+
+ resolution: {integrity: sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==}
+
+ resolution: {integrity: sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==}
+ engines: {node: '>=6'}
+
+ resolution: {integrity: sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==}
+ engines: {node: '>=10'}
+
+ resolution: {integrity: sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==}
+
+ resolution: {integrity: sha512-i24m8rpwhmPIS4zscNzK6MSEhk0DUWa/8iYQWxhffV8jkI4Phvs3F+quL5xvS0gdQR0FyTCMMH33Y78dDTzzIw==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==}
+ hasBin: true
+
+ resolution: {integrity: sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==}
+
+ resolution: {integrity: sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==}
+
+ resolution: {integrity: sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-yz3xRaG20c6/BOzvYoDaGtPmGscs7YivItZEEqe6GbwNfHuxu9YNmvnEkMzKldAGY4/80pRcQRZSEnhquk9XuQ==}
+ engines: {node: '>= 0.8'}
+
+ resolution: {integrity: sha512-Snk314V5ayFLhp3fkUREub6WtjBfPdCPY1Ln8/8munuLuiYhsABgBVWsozAG+MWMbVEvcdcpbi9R7ww22l9Q3g==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==}
+
+ resolution: {integrity: sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==}
+ engines: {node: '>= 8'}
+
+ resolution: {integrity: sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==}
+ engines: {node: '>=8.6'}
+
+ resolution: {integrity: sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==}
+ engines: {node: '>= 0.6'}
+
+ resolution: {integrity: sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==}
+ engines: {node: '>=6'}
+
+ resolution: {integrity: sha512-Ysbi9uYW9hFyfrThdDEQuykN4Ey6BuwPD2kpI5ES/nFTDn/98yxYNLZJcgUAKPT/mcrLLKaGzJR9YVxJrIdASQ==}
+ engines: {node: '>=8'}
+
+ resolution: {integrity: sha512-VP79XUPxV2CigYP3jWwAUFSku2aKqBH7uTAapFWCBqutsbmDo96KY5o8uh6U+/YSIn5OxJnXp73beVkpqMIGhA==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-vpLQEs+VLCr1nU0BXS07maYoFwlDAH0gngQuuttxIwutDFEMHq2blX+8vpgxDdK3J1PwjCJiep77OitTZ4Ll1A==}
+ engines: {node: 18 || 20 || >=22}
+
+ resolution: {integrity: sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==}
+
+ resolution: {integrity: sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==}
+
+ resolution: {integrity: sha512-0HGX7nXoDIX6FKLVl4a3wtYjBlwqsN3xuQC3GXzNtKp98FXUOhDSq623azsz8DG5ptd9ZXcXodDkgbdMZOjWvw==}
+ engines: {node: '>=20.8.1'}
+
+ resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==}
+
+ resolution: {integrity: sha512-2wQAmKkQKxRuXvYJxVhPGG0wZNBQyD06oJvxqw90XqLvptdqxdlHrFUfEteKkpaNORX3Xzc+HtEl/q0nfmN2wQ==}
+ engines: {node: '>=18'}
+ hasBin: true
+ peerDependencies:
+ typescript: '>= 4.8.x'
+ peerDependenciesMeta:
+ typescript:
+ optional: true
+
+ resolution: {integrity: sha512-dkEJPVvun4FryqBmZ5KhDo0K9iDXAwn08tMLDinNdRBNPcYEDiWYysLcc6k3mjTMlbP9KyylvRpd4wFtwrT9rw==}
+ engines: {node: ^20.17.0 || >=22.9.0}
+
+ resolution: {integrity: sha512-Y2tUNy4ouw6tq5oDSKeQYGOyhkUBhNOcGV/02KC+6kd9eDGqdZd++mjMiIDilrBYvjEnCYvVtsuHCuP+okSfug==}
+ engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1}
+ hasBin: true
+
+ resolution: {integrity: sha512-PHI5f1O0EP5xJ9gQmFGMS6IZcrVvTjpXjz7Na41gTE7eE2hK11lg04CECCYEEjdc17EV4DO+fkGEtt7TpTaTiQ==}
+ engines: {node: ^12.20.0 || ^14.18.0 || >=16.0.0}
+ hasBin: true
+
+ resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==}
+
+ resolution: {integrity: sha512-NMPBRMJgiQHjbd8phG3Vebdx4kZ1H121rbl5IkMqeOsahptB9BKo/d7oJ3zTXqTgagn2bWlNSXkh0QUGM31RYg==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-agNLK89seZEtC5zUHwtut0+tNrc0Xw4FT/Dg+B/VLEo9pAcS9rtTKpek3V6kVcVwsB2YlqMaHdfZL4eLEVYuCg==}
+ engines: {node: ^18.18.0 || ^19.8.0 || >= 20.0.0}
+ hasBin: true
+ peerDependencies:
+ '@opentelemetry/api': ^1.1.0
+ '@playwright/test': ^1.51.1
+ babel-plugin-react-compiler: '*'
+ react: ^18.2.0 || 19.0.0-rc-de68d2f4-20241204 || ^19.0.0
+ react-dom: ^18.2.0 || 19.0.0-rc-de68d2f4-20241204 || ^19.0.0
+ sass: ^1.3.0
+ peerDependenciesMeta:
+ '@opentelemetry/api':
+ optional: true
+ '@playwright/test':
+ optional: true
+ babel-plugin-react-compiler:
+ optional: true
+ sass:
+ optional: true
+
+ resolution: {integrity: sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==}
+ engines: {node: '>=10.5.0'}
+ deprecated: Use your platform's native DOMException instead
+
+ resolution: {integrity: sha512-kXs9Go0cah0qHVV2v389IXQLdLCeE1xfFtjOAF+iobu0OIoG1pje8At2vMHyaPMiPMnG/LWP50twML21eMcAag==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-dRB78srN/l6gqWulah9SrxeYnxeddIG30+GOqK/9OlLVyLg3HPnr6SqOWTWOXKRwC2eGYCkZ59NNuSgvSrpgOA==}
+ engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}
+
+ resolution: {integrity: sha512-kQK9LGGFiHtrWiNhZtA7Qbw17AQz+dmsEKODRIVTXA9+e5MS/2gZEBhYJt13GrAz5/IOZKddH/0Z3TP/Zgo+yw==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==}
+ engines: {node: '>=8'}
+
+ resolution: {integrity: sha512-9qny7Z9DsQU8Ou39ERsPU4OZQlSTP47ShQzuKZ6PRXpYLtIFgl/DEBYEXKlvcEa+9tHVcK8CF81Y2V72qaZhWA==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==}
+ engines: {node: '>=0.10.0'}
+
+ resolution: {integrity: sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-EFVjAYfzWqWsBMRHPMAXLCDIJnpMhdWAqR7xG6M6a2cs6PMFpl/+Z20w9zDW4vkxOFfddegBKq9Rehd0bxWE7A==}
+ engines: {node: '>= 10'}
+
+ resolution: {integrity: sha512-nK28WOo+QIjBkDduTINE4JkF/UJJKyf2EJxvJKfblDpyg0Q+pkOHNTL0Qwy6NP6FhE/EnzV73BxxqcJaXY9anw==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-8u/hfXFRBD1O0hPUjioLhoWFHRmt6tKA4/vZPyckBr18l1KE9uHrFaFaUi8MDRTpi4uak2goyPTSNJLXX2k2Hw==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-k6E21FzySsSK5a21KRADBd/NGneRegFO5pLHfdQLpRDETUNJueLXs3WCzyQ3tFRDYgbq3KHGXfTbi2bs8WQ6rQ==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-+Lhy3TQTuzXI5hevh8sBGqbmurHbbIjAi0Z4S63nthVLmLxfbj4T54a4CfZrXIrt9iP4mVAPYMo/v99taj3wjQ==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-gXah6aZrcUxjWg2zR2MwouP2eHlCBzdV4pygudehaKXSGW4v2AsRQUK+lwwXhii6KFZcunEnmSUoYp5CXibxtA==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==}
+ engines: {node: '>= 0.8'}
+
+ resolution: {integrity: sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==}
+
+ resolution: {integrity: sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==}
+ engines: {node: '>=6'}
+
+ resolution: {integrity: sha512-VXJjc87FScF88uafS3JllDgvAm+c/Slfz06lorj2uAY34rlUu0Nt+v8wreiImcrgAjjIHp1rXpTDlLOGw29WwQ==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-++Zlftm0kVLPmzC06t6epuWmcRMDbI4z5P3NNX979WA/k23+NtSOynEGzsVfZwguKw2mi5umVgnBlJQMwRz4Pg==}
+ engines: {node: '>=20'}
+
+ resolution: {integrity: sha512-7x81NCL719oNbsq/3mh+hVrAWmFuEYUqrq/Iw3kUzH8ReypT9QQ0BLoJS7/G9k6N81XjW4qHWtjWwe/9eLy1EQ==}
+ engines: {node: '>=12'}
+
+ resolution: {integrity: sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==}
+ engines: {node: '>= 0.8.0'}
+
+ resolution: {integrity: sha512-weP+BZ8MVNnlCm8c0Qdc1WSWq4Qn7I+9CJGm7Qali6g44e/PUzbjNqJX5NJ9ljlNMosfJvg1fKEGILklK9cwnw==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-+Sl2UErvtsoajRDKCE5/dBz4DIvHXQQnAxtQTF04OJxY0+DyZXSo5P5Bb7XYWOh81syohlYL24hbDwxedPUJCA==}
+
+ resolution: {integrity: sha512-19YVAg7T+WTrxggPukVq7DjTv6+PJ867TmhCvBsYwmbFCsZd344rq2Ld1p0wo8f8Qrrhgp82c6FJRqdXWtSEhg==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==}
+ engines: {node: '>=6'}
+
+ resolution: {integrity: sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==}
+ engines: {node: '>=10'}
+
+ resolution: {integrity: sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==}
+ engines: {node: '>=6'}
+
+ resolution: {integrity: sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==}
+ engines: {node: '>=10'}
+
+ resolution: {integrity: sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==}
+ engines: {node: '>=6'}
+
+ resolution: {integrity: sha512-yQA4H19AmPEoMUeavPMDIe1higySl/gH/yaQrkT/s07Qp+7pp2hYz30N3z2l5BkjVkF9Ow6o0wjJamm2y7Sn0A==}
+
+ resolution: {integrity: sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==}
+ engines: {node: '>=6'}
+
+ resolution: {integrity: sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==}
+ engines: {node: '>=8'}
+
+ resolution: {integrity: sha512-TXfryirbmq34y8QBwgqCVLi+8oA3oWx2eAnSn62ITyEhEYaWRlVZ2DvMM9eZbMs/RfxPu/PK/aBLyGj4IrqMHw==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==}
+ engines: {node: '>= 0.8'}
+
+ resolution: {integrity: sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==}
+
+ resolution: {integrity: sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ==}
+ engines: {node: '>=4'}
+
+ resolution: {integrity: sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==}
+ engines: {node: '>=8'}
+
+ resolution: {integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==}
+ engines: {node: '>=8'}
+
+ resolution: {integrity: sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==}
+ engines: {node: '>=12'}
+
+ resolution: {integrity: sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==}
+
+ resolution: {integrity: sha512-Yhpw4T9C6hPpgPeA28us07OJeqZ5EzQTkbfwuhsUg0c237RomFoETJgmp2sa3F/41gfLE6G5cqcYwznmeEeOlQ==}
+
+ resolution: {integrity: sha512-qRcuIdP69NPm4qbACK+aDogI5CBDMi1jKe0ry5rSQJz8JVLsC7jV8XpiJjGRLLol3N+R5ihGYcrPLTno6pAdBA==}
+
+ resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==}
+
+ resolution: {integrity: sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==}
+ engines: {node: '>=8.6'}
+
+ resolution: {integrity: sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==}
+ engines: {node: '>=12'}
+
+ resolution: {integrity: sha512-wQ0b/W4Fr01qtpHlqSqspcj3EhBvimsdh0KlHhH8HRZnMsEa0ea2fTULOXOS9ccQr3om+GcGRk4e+isrZWV8qQ==}
+ engines: {node: '>=16.20.0'}
+
+ resolution: {integrity: sha512-nDywThFk1i4BQK4twPQ6TA4RT8bDY96yeuCVBWL3ePARCiEKDRSrNGbFIgUJpLp+XeIR65v8ra7WuJOFUBtkMA==}
+ engines: {node: '>=8'}
+
+ resolution: {integrity: sha512-/+5VFTchJDoVj3bhoqi6UeymcD00DAwb1nJwamzPvHEszJ4FpF6SNNbUbOS8yI56qHzdV8eK0qEfOSiodkTdxg==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-7qASPzhKF2l2KLboRZux8CCTRMdGiV08vWmyKzPz22qZ7ZjQBOeY7rNzNoCLSUiftJ7HUq0GERHmxw/t0dCdMw==}
+ engines: {node: '>=4'}
+
+ resolution: {integrity: sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ==}
+ engines: {node: ^10 || ^12 || >=14}
+
+ resolution: {integrity: sha512-RRuzqDtt5Y9h3quz5hWhK+TPnsmVs6WwSU6LkJMeY4HstUEDuYTG8UJSdawMRzmzAtV+KEoG8N3Qg2qLy5vM/A==}
+ engines: {node: ^10 || ^12 || >=14}
+
+ resolution: {integrity: sha512-C+y9x90UElAddDZmV4qOx9W53B61PO7cIqWz2dQsWlwswuq4mr8NEwytdGKboYbQlGZ3awrkTeNvcZiZNHnQ8A==}
+ engines: {node: '>=20'}
+
+ resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==}
+ engines: {node: '>= 0.8.0'}
+
+ resolution: {integrity: sha512-HzMy3Geq23nVALD/M2LliU+F+M+gVNsvkQWWqeBZ8HDiCgzo6YPJ/Omrmtq24EFrIsk0a3EkQGEd7bDOo+IhGA==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==}
+ engines: {node: '>= 6'}
+
+ resolution: {integrity: sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==}
+
+ resolution: {integrity: sha512-5nnx0yGyVUcY6t9RnWcARWtwT9F1D8O9rt08htPvnd49W1IgZtmLkhu9WfMzQj1cFxjHIO6connUNVW5k7AVyQ==}
+ engines: {node: '>= 0.10'}
+
+ resolution: {integrity: sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==}
+ engines: {node: '>=6'}
+
+ resolution: {integrity: sha512-h6fhOIaRrID2CbEY2fqs+7t+UXZo+MLAnU5gRIq85uFtdiUPCdsApMlHhXogKVM4HM2DVbIjGNTTYH2OcmP1vA==}
+ engines: {node: '>=0.6'}
+
+ resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==}
+
+ resolution: {integrity: sha512-QBdhh1arIEUvPC0dQ5+nwWAxt7+N+oP/9jPwjJkGFoSk/sqxg32gJtSXGtFh8frAIcS6oC9cx2Q+7KYCQLOAeA==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ resolution: {integrity: sha512-hek2mFQpPuI4E1BBKrSto+BU3e3x4xuarsbiwr3+lf7p44juvFMV0XFWQAP3xUyqXA4RrXLIoaSUGbSt056ZMw==}
+ engines: {node: '>= 0.6'}
+
+ resolution: {integrity: sha512-K5zQjDllxWkf7Z5xJdV0/B0WTNqx6vxG70zJE4N0kBs4LovmEYWJzQGxC9bS9RAKu3bgM40lrd5zoLJ12MQ5BA==}
+ engines: {node: '>= 0.10'}
+
+ resolution: {integrity: sha512-yELu4WmLPw5Mr/lmeEpox5rw3RETacE++JgHqQzd2dg+YbJuat3jH4ingc+WPZhxaoFzdv9y33G+F7Nl5O0GBg==}
+ peerDependencies:
+ react: ^19.2.3
+
+ resolution: {integrity: sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==}
+
+ resolution: {integrity: sha512-9r+yi9+mgU33AKcj6IbT9oRCO78WriSj6t/cF8DWBZJ9aOGPOTEDvdUDz1FwKim7QXWwmHqtdHnRJfhAxEG46Q==}
+ engines: {node: '>=10'}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+
+ resolution: {integrity: sha512-Iqb9NjCCTt6Hf+vOdNIZGdTiH1QSqr27H/Ek9sv/a97gfueI/5h1s3yRi1nngzMUaOOToin5dI1dXKdXiF+u0Q==}
+ engines: {node: '>=10'}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+
+ resolution: {integrity: sha512-b6jSvxvVnyptAiLjbkWLE/lOnR4lfTtDAl+eUC7RZy+QQWc6wRzIV2CE6xBuMmDxc2qIihtDCZD5NPOFl7fRBQ==}
+ engines: {node: '>=10'}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+
+ resolution: {integrity: sha512-Ku/hhYbVjOQnXDZFv2+RibmLFGwFdeeKHFcOTlrt7xplBnya5OGn/hIRDsqDiSUcfORsDC7MPxwork8jBwsIWA==}
+ engines: {node: '>=0.10.0'}
+
+ resolution: {integrity: sha512-mFAyJq9vUbSTARLZUvAEf1z3YxlvAwswbmxMx2mPA/MSm4KmpwvwvhsH/NIrZhyOuwD60Lzyw2qh83uCbgTPYw==}
+ engines: {node: '>= 4'}
+
+ resolution: {integrity: sha512-00o4I+DVrefhv+nX0ulyi3biSHCPDe+yLv5o/p6d/UVlirijB8E16FtfwSAi4g3tcqrQ4lRAqQSoFEZJehYEcw==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-dYqgNSZbDwkaJ2ceRd9ojCGjBq+mOm9LmtXnAnEGyHhN/5R7iDW2TRw3h+o/jCFxus3P2LfWIIiwowAjANm7IA==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==}
+ engines: {node: '>=0.10.0'}
+
+ resolution: {integrity: sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==}
+ engines: {node: '>=0.10.0'}
+
+ resolution: {integrity: sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==}
+ engines: {node: '>=4'}
+
+ resolution: {integrity: sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==}
+
+ resolution: {integrity: sha512-tqt+NBWwyaMgw3zDsnygx4CByWjQEJHOPMdslYhppaQSJUtL/D4JO9CcBBlhPoI8lz9oJIDXkwXfhF4aWqP8xQ==}
+ engines: {node: '>= 0.4'}
+ hasBin: true
+
+ resolution: {integrity: sha512-oMA2dcrw6u0YfxJQXm342bFKX/E4sG9rbTzO9ptUcR/e8A33cHuvStiYOwH7fszkZlZ1z/ta9AAoPk2F4qIOHA==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-5ExtR1ppiDBQkVoPw5NAqdbfH4Iq2VOmQKHMtUoaFxA9bo2krzFYBtyq6K40xxbYp+2w/YOr6D+1ToF6tTN53A==}
+
+ resolution: {integrity: sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==}
+ engines: {iojs: '>=1.0.0', node: '>=0.10.0'}
+
+ resolution: {integrity: sha512-nLTrUKm2UyiL7rlhapu/Zl45FwNgkZGaCpZbIHajDYgwlJCOzLSk+cIPAnsEqV955GjILJnKbdQC1nVPz+gAYQ==}
+ engines: {node: '>= 18'}
+
+ resolution: {integrity: sha512-DPe5pVFaAsinSaV6QjQ6gdiedWDcRCbUuiQfQa2wmWV7+xC9bGulGI8+TdRmoFkAPaBXk8CrAbnlY2ISniJ47Q==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==}
+
+ resolution: {integrity: sha512-wtZlHyOje6OZTGqAoaDKxFkgRtkF9CnHAVnCHKfuj200wAgL+bSJhdsCD2l0Qx/2ekEXjPWcyKkfGb5CPboslg==}
+ engines: {node: '>=0.4'}
+
+ resolution: {integrity: sha512-iKE9w/Z7xCzUMIZqdBsp6pEQvwuEebH4vdpjcDWnyzaI6yl6O9FHvVpmGelvEHNsoY6wGblkxR6Zty/h00WiSA==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-x/+Cz4YrimQxQccJf5mKEbIa1NzeCRNI5Ecl/ekmlYaampdNLPalVyIcCZNNH3MvmqBugV5TMYZXv0ljslUlaw==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==}
+
+ resolution: {integrity: sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q==}
+
+ resolution: {integrity: sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==}
+ hasBin: true
+
+ resolution: {integrity: sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==}
+ engines: {node: '>=10'}
+ hasBin: true
+
+ resolution: {integrity: sha512-1gnZf7DFcoIcajTjTwjwuDjzuz4PPcY2StKPlsGAQ1+YH20IRVrBaXSWmdjowTJ6u8Rc01PoYOGHXfP1mYcZNQ==}
+ engines: {node: '>= 18'}
+
+ resolution: {integrity: sha512-xRXBn0pPqQTVQiC8wyQrKs2MOlX24zQ0POGaj0kultvoOCstBQM5yvOhAVSUwOMjQtTvsPWoNCHfPGwaaQJhTw==}
+ engines: {node: '>= 18'}
+
+ resolution: {integrity: sha512-5/r/lTwbJ3zQ+qwdUFZYeRNqda7P5HD8zQKqlSjdGt1/S0cjLAphHusj4Y58ahDtWn/g32xrIS58/ikOvwl0Lw==}
+
+ resolution: {integrity: sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-7PGFlmtwsEADb0WYyvCMa1t+yke6daIG4Wirafur5kcf+MhUnPms1UeR0CKQdTZD81yESwMHbtn+TR+dMviakQ==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-RJRdvCo6IAnPdsvP/7m6bsQqNnn1FCBX5ZNtFL98MmFF/4xAIJTIg1YbHW5DC2W5SKZanrC6i4HsJqlajw/dZw==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==}
+
+ resolution: {integrity: sha512-jPRx44e+eyeV7xwY3BLJXcfrks00+M0h5BGB9l6DdcBW4BpAj4x3lVmVy0TXPEs2iHEisxejr62sZAAw6B1EVA==}
+ hasBin: true
+
+ resolution: {integrity: sha512-Ou9I5Ft9WNcCbXrU9cMgPBcCK8LiwLqcbywW3t4oDV37n1pzpuNLsYiAV8eODnjbtQlSDwZ2cUEeQz4E54Hltg==}
+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
+
+ resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==}
+ engines: {node: '>=8'}
+
+ resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==}
+ engines: {node: '>=8'}
+
+ resolution: {integrity: sha512-mjn/0bi/oUURjc5Xl7IaWi/OJJJumuoJFQJfDDyO46+hBWsfaVM65TBHq2eoZBhzl9EchxOijpkbRC8SVBQU0w==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-6x6dK6zJdpTzF4sQeNYxwtvBzf6Eg4GtlesS94HOvTudUeyK2WXAaIfmDgsyslYrRBeFIlsi54AYsFGUuhmvrQ==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==}
+
+ resolution: {integrity: sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==}
+ engines: {node: '>=14'}
+
+ resolution: {integrity: sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==}
+
+ resolution: {integrity: sha512-KGj/8Y43x35aZVDtt+J4mK1hoLGHULMYfSkODJNQjNDC3oW1PqPoxMwo0pLUsWM/UEGzON/NxeHywEfNXNP3Vw==}
+ engines: {node: '>=0.10.0'}
+
+ resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==}
+ engines: {node: '>=0.10.0'}
+
+ resolution: {integrity: sha512-+L3ccpzibovGXFK+Ap/f8LOS0ahMrHTf3xu7mMLSpEGU0EO9ucaysSylKo9eRDFNhWve/y275iPmIZ4z39a9iA==}
+
+ resolution: {integrity: sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==}
+ engines: {node: '>= 0.8'}
+
+ resolution: {integrity: sha512-UhDfHmA92YAlNnCfhmq0VeNL5bDbiZGg7sZ2IvPsXubGkiNa9EC+tUTsjBRsYUAz87btI6/1wf4XoVvQ3uRnmQ==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-eLoXW/DHyl62zxY4SCaIgnRhuMr6ri4juEYARS8E6sCEqzKpOiE521Ucofdx+KnDZl5xmvGYaaKCk5FEOxJCoQ==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-vMgjE/GGEPEFnhFub6pa4FmJBRBVOLpIII2hvCZ8Kzb7K0hlHo7mQv6xYrBvCL2LtAIBwFUK8wvuJgTVSQ5MFQ==}
+
+ resolution: {integrity: sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==}
+ engines: {node: '>=8'}
+
+ resolution: {integrity: sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-o7+c9bW6zpAdJHTtujeePODAhkuicdAryFsfVKwA+wGw89wJ4GTY484WTucM9hLtDEOpOvI+aHnzqnC5lHp4Rg==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-tHNHTxInrYLCga9O9YGxWA3G9/nnzQw8UGAyqGx3Ar1pSTTzIuM4woFSq4SowkXCjJIwq5sIiQvEfRI9tCH1qQ==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-0u/TldDbKD8bFCQ/4f5+mNRrXwZ8hg2w7ZR8wa16e8z9XpePWl3eGEcUD0OXpEH/VJH/2G3gjUtR3ZOiBe2S/w==}
+
+ resolution: {integrity: sha512-PwvK7BU+CMTJGYQCTZb5RWXIML92lftJLhQz1tBzgKiqGxJaMlBAa48POXaNAC2s4y8jr3EFqrkF9+44neS46w==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-2+3aDAOmPTmuFwjDnmJG2ctEkQKVki7vOSqaxkv42Mowj1V6PnvuwFCRrR5lChUux1TBskPjfkeTOhqczDMxTw==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-UXSH262CSZY1tfu3G3Secr6uGLCFVPMhIqHjlgCUtCCcgihYc/xKs9djMTMUOb2j1mVSeU8EU6NWc/iQKU6Gfg==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-zaJYxz2FtcMb4f+g60KsRNFOpVMUyuJgA51Zi5Z1DOTC3S59+OQiVOzE9GZt0x72uBGWKsQIuBKeF9iusmKFsg==}
+ engines: {node: '>=14.16'}
+
+ resolution: {integrity: sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==}
+ engines: {node: '>=8'}
+
+ resolution: {integrity: sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w==}
+ engines: {node: '>=12'}
+
+ resolution: {integrity: sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==}
+ engines: {node: '>=4'}
+
+ resolution: {integrity: sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==}
+ engines: {node: '>=6'}
+
+ resolution: {integrity: sha512-aulFJcD6YK8V1G7iRB5tigAP4TsHBZZrOV8pjV++zdUwmeV8uzbY7yn6h9MswN62adStNZFuCIx4haBnRuMDaw==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==}
+ engines: {node: '>=8'}
+
+ resolution: {integrity: sha512-qSVyDTeMotdvQYoHWLNGwRFJHC+i+ZvdBRYosOFgC+Wg1vx4frN2/RG/NA7SYqqvKNLf39P2LSRA2pu6n0XYZA==}
+ engines: {node: '>= 12.0.0'}
+ peerDependencies:
+ '@babel/core': '*'
+ babel-plugin-macros: '*'
+ react: '>= 16.8.0 || 17.x.x || ^18.0.0-0 || ^19.0.0-0'
+ peerDependenciesMeta:
+ '@babel/core':
+ optional: true
+ babel-plugin-macros:
+ optional: true
+
+ resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==}
+ engines: {node: '>=8'}
+
+ resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-s5RloL0F7xhN0ZjfHtLGnbf7EW74EI0N8NFL+1xR7Oxz9QA33obNZsl7lyfnJOhN04E/kGFPoJPlvY7TZ5fzmw==}
+ engines: {node: '>=10.0.0'}
+ os: [darwin, linux, win32, freebsd, openbsd, netbsd, sunos, android]
+ hasBin: true
+
+ resolution: {integrity: sha512-yEFYrVhod+hdNyx7g5Bnkkb0G6si8HJurOoOEgC8B/O0uXLHlaey/65KRv6cuWBNhBgHKAROVpc7QyYqE5gFng==}
+ engines: {node: '>=20'}
+
+ resolution: {integrity: sha512-XPPUyAc+cvspz3lHTcR/QgPfW2A0lv/xQNIjX3HGhLR+Nq2lHaLq5MtTesHn8GUr3W3DguT2KT5x3NVgRtYwmA==}
+
+ resolution: {integrity: sha512-gOhV3P7ufE62QDGg1zVaTgCR+EtPv92k2nIhVcVKcLmxT1sUBsQGhnZj175j+MqRt4zLF7ic+sCYjfhxMxj7YQ==}
+
+ resolution: {integrity: sha512-uxc/zpqFg6x7C8vOE7lh6Lbda8eEL9zmVm/PLeTPBRhh1xCgdWaQ+J1CUieGpIfm2HdtsUpRv+HshiasBMcc6A==}
+ engines: {node: '>=6'}
+
+ resolution: {integrity: sha512-+FbBPE1o9QAYvviau/qC5SE3caw21q3xkvWKBtja5vgqOWIHHJ3ioaq1VPfn/Szqctz2bU/oYeKd9/z5BL+PVg==}
+
+ resolution: {integrity: sha512-GCvB3aoys96IuDFBMcTB46JOR6mdMtAToqwiW8JlWhsoh1mhHi/xn9ss/Dg7N555GiJyEt2qzoG/NHCwM6h1EA==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==}
+ engines: {node: '>=12.0.0'}
+
+ resolution: {integrity: sha512-MDolfaSJtlSK5Y0A1xl3277ekubZwobpBjugknDizI9O5Rm60a1m8k4ICK+MRsCDzPygT81mp3BBf5RKDlFRfA==}
+
+ resolution: {integrity: sha512-QwBER5KMR86IIjpIiO7H/Z3IMJPsZ1A6RKPAqzTTgOyUQUSt9FdnKcqhTaJmkY6HVrgouZHZR0ncK5QxvmnQeg==}
+ hasBin: true
+
+ resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==}
+ engines: {node: '>=8.0'}
+
+ resolution: {integrity: sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==}
+ engines: {node: '>=0.6'}
+
+ resolution: {integrity: sha512-exgYmnmL/sJpR3upZfXG5PoatXQii55xAiXGXzY+sROLZ/Y+SLcp9PgJNI9Vz37HpQ74WvDcLT8eqm+kV3FzrA==}
+ engines: {node: '>=16'}
+
+ resolution: {integrity: sha512-OJ/ibxhPlqrMM0UiNHJ/0CKQkoKF243/AEmplt3qpRgkW8VG7IfOS41h7V8TjITqdByHzrjcS/2si+y4lIh8NA==}
+ engines: {node: '>=18.12'}
+ peerDependencies:
+ typescript: '>=4.8.4'
+
+ resolution: {integrity: sha512-ztMO++owQnz8c/gIENcM9XfCEzgoGphTv+nKpYNM1bgsdOVC/jRZuEBf6N+mLLDNg68Kl+GgUZfOySaRiG1/Ug==}
+
+ resolution: {integrity: sha512-2Ac2RgzDe/cn48GvOe3M+o82pEFewD3UPbyoUHHdKasHwJKjds4fLXWf/Ux5kATBKN20oaFGu+jbElp1pos0mg==}
+
+ resolution: {integrity: sha512-NoZ4roiN7LnbKn9QqE1amc9DJfzvZXxF4xDavcOWt1BPkdx+m+0gJuPM+S0vCe7zTJMYUP0R8pO2XMr+Y8oLIg==}
+ engines: {node: '>=6'}
+
+ resolution: {integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==}
+
+ resolution: {integrity: sha512-7bziOlRqH0hJx80h/3mbicLW7o8qLsH5+RaLR2t+OHM3D0JlWGODQKQ4cxbK7WlvmUxpcj6Kgu6EKqjrGFe3QQ==}
+
+ resolution: {integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==}
+ engines: {node: '>= 0.8.0'}
+
+ resolution: {integrity: sha512-NoSdpq/WEiAg5sjmBkmV/hfxv6HJH4NqPNrqjtSO5CwRmpsDfaf4begxW34KdJykH/l1yHtwBWQkCRdoXO8mPA==}
+ engines: {node: '>=20'}
+
+ resolution: {integrity: sha512-faYHw0anBbc/kWF3zFTEnxSFOAGUX9GFbOBthvDdLsIlEoWOFOtS0zgCiQYwIskL9iGXZL3kAXD8OoZ4GmMATA==}
+ engines: {node: '>= 18'}
+
+ resolution: {integrity: sha512-nAYYwfY3qnzX30IkA6AQZjVbtK6duGontcQm1WSG1MD94YLqK0515GNApXkoxKOWMusVssAHWLh9SeaoefYFGw==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-BaXgOuIxz8n8pIq3e7Atg/7s+DpiYrxn4vdot3w9KbnBhcRQq6o3xemQdIfynqSeXeDrF32x+WvfzmOjPiY9lg==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-0FHJvLPqZ7KJzp17O13jfsAjsqazgrxBu2zEK95PmUz8lv2+GjRuxUInCr2Rk9Dms3ihN21zJ929ZO43yJ95QQ==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-phPGCwqr2+Qo0fwniCE8e4pKnGu/yFb5nD5Y8bf0EEeiI5GklnACYA9GFy/DrAeRrKHXvHn+1SUsOWgJp6RO+g==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==}
+ engines: {node: '>=14.17'}
+ hasBin: true
+
+ resolution: {integrity: sha512-nWJ91DjeOkej/TA8pXQ3myruKpKEYgqvpw9lz4OPHj/NWFNluYrjbz9j01CJ8yKQd2g4jFoOkINCTW2I5LEEyw==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==}
+
+ resolution: {integrity: sha512-dkrQXeHSaoamnItlYbmzG0wFYrM0ZwDxCIg0A7aKjTyyhh9svRzCNFEzV+Vm05/yehjCzjDZ31KXfGEjYSztDQ==}
+ engines: {node: '>=20.18.1'}
+
+ resolution: {integrity: sha512-+QBBXBCvifc56fsbuxZQ6Sic3wqqc3WWaqxs58gvJrcOuN83HGTCwz3oS5phzU9LthRNE9VrJCFCLUgHeeFnfA==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==}
+ engines: {node: '>= 10.0.0'}
+
+ resolution: {integrity: sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==}
+ engines: {node: '>= 0.8'}
+
+ resolution: {integrity: sha512-dmlRxBJJayXjqTwC+JtF1HhJmgf3ftQ3YejFcZrf4+KKtJv0qDsK1pjqaaVjG7wJ5NJ6UVP1OqRMQ71Z4C3rxQ==}
+
+ resolution: {integrity: sha512-IiSk4HlzAMqTUseHHe3VhIGyuFmN90zMTpD3Z3y8jeQbzLIq500MVM7Jq2vUAnTKAFPJrqwkzr6PoTcPhGcOiw==}
+
+ resolution: {integrity: sha512-pJ2sYawQS0R/WI928Gj5GlPhTGzbMelq0+4INtSYNDV9ErKJcX6xjGWkoG/VnB3dpUm00zALaqkrUD77pO5TDQ==}
+ hasBin: true
+ peerDependencies:
+ browserslist: '>= 4.21.0'
+
+ resolution: {integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==}
+
+ resolution: {integrity: sha512-jQL3lRnocaFtu3V00JToYz/4QkNWswxijDaCVNZRiRTO3HQDLsdu1ZtmIUvV4yPp+rvWm5j0y0TG/S61cuijTg==}
+ engines: {node: '>=10'}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+
+ resolution: {integrity: sha512-Fedw0aZvkhynoPYlA5WXrMCAMm+nSWdZt6lzJQ7Ok8S6Q+VsHmHpRWndVRJ8Be0ZbkfPc5LRYH+5XrzXcEeLRQ==}
+ engines: {node: '>=10'}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+
+ resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==}
+
+ resolution: {integrity: sha512-hVDIBwsRruT73PbK7uP5ebUt+ezEtCmzZz3F59BSr2F6OVFnJ/6h8liuvdLrQ88Xmnk6/+xGGuq+pG9WwTuy3A==}
+ engines: {node: ^20.17.0 || >=22.9.0}
+
+ resolution: {integrity: sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==}
+ engines: {node: '>= 0.8'}
+
+ resolution: {integrity: sha512-d2JWLCivmZYTSIoge9MsgFCZrt571BikcWGYkjC1khllbTeDlGqZ2D8vD8E/lJa8WGWbb7Plm8/XJYV7IJHZZw==}
+ engines: {node: '>= 8'}
+
+ resolution: {integrity: sha512-TbX3mj8n0odCBFVlY8AxkqcHASw3L60jIuF8jFP78az3C2YhmGvqbHBpAjTRH2/xqYunrJ9g1jSyjCjpoWzIAA==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-6iBczoX+kDQ7a3+YJBnh3T+KZRxM/iYNPXicqk66/Qfm1b93iu+yOImkg0zHbj5LNOcNv1TEADiZ0xa34B4q6Q==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-K4jVyjnBdgvc86Y6BkaLZEN933SwYOuBFkdmBu9ZfkcAbdVbpITnDmjvZ/aQjRXQrv5EPkTnD1s39GiiqbngCw==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-wk4Mf4pR5mRP7eYuuTBCIQ9d0ud2Fv2jRLQpfgnRjbOxAFHmjKFValgTpitVKzJJS8ajnYQV2Du1SZ8j6b/EUQ==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==}
+ engines: {node: '>= 8'}
+ hasBin: true
+
+ resolution: {integrity: sha512-GlaYyEb07DPxYCKhKzplCWBJtvxZcZMrL+4UkrTSJHHPyZU4mYYTv3qaOe77H7EODLSSopAUFAc6W8U4yqvscg==}
+ engines: {node: ^16.13.0 || >=18.0.0}
+ hasBin: true
+
+ resolution: {integrity: sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==}
+ engines: {node: '>=0.10.0'}
+
+ resolution: {integrity: sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==}
+ engines: {node: '>=10'}
+
+ resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==}
+
+ resolution: {integrity: sha512-c16PKLIRxBYpR3jSWsdS7SFp0COm5SOQdiFjY818dYFHJbMGuLBszpF07LBWmOS1uzrHa9VGdynsEgoeKy0oOQ==}
+ engines: {node: '>=20'}
+
+ resolution: {integrity: sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==}
+ engines: {node: '>=10'}
+
+ resolution: {integrity: sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==}
+
+ resolution: {integrity: sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==}
+ engines: {node: '>=12'}
+
+ resolution: {integrity: sha512-GZtjxm/J/4TSxuL3FNYjCmLktBTnIw/rVmKSIyKeYAZpmJB2ig9VauCC5xsa82GNKVKDAqpOn3KVzNt0zmrU0g==}
+ engines: {node: '>=12'}
+
+ resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==}
+ engines: {node: '>=10'}
+
+ resolution: {integrity: sha512-DODGl1wJjA/s5pnJFKau9lIYHT81lnhob1i3e1TjxZRxEhWRKl74nTbWE6H5KlkViQQTo/Z29YFdxzTZAMY3ng==}
+ engines: {node: '>=18.19'}
+
+ resolution: {integrity: sha512-xYqdZFUK/VYazNl/oCDYN+3WloWQwMfZxBoiNt6qNyk+xfOdi598muWE42rNZFp1kNOiqW936q5RhUdnpqElSg==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-O/PgfnpT1xKSDeQYSCfRI5Gy3hPf91mKVDuYLUHZJMiDFptvP41MSnWofm8dnCm0256ZNfZIM7DSzuSMAFnjHA==}
+ peerDependencies:
+ zod: ^3.25.28 || ^4
+
+ resolution: {integrity: sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==}
+
+snapshots:
+
+ '@alloc/[email protected]': {}
+
+ '@antfu/[email protected]':
+ dependencies:
+ ansis: 4.4.0
+ fzf: 0.5.2
+ package-manager-detector: 1.8.0
+ tinyexec: 1.3.1
+
+ '@babel/[email protected]':
+ dependencies:
+ '@babel/helper-validator-identifier': 7.29.7
+ js-tokens: 4.0.0
+ picocolors: 1.1.1
+
+ '@babel/[email protected]': {}
+
+ '@babel/[email protected]':
+ dependencies:
+ '@babel/code-frame': 7.29.7
+ '@babel/generator': 7.29.8
+ '@babel/helper-compilation-targets': 7.29.7
+ '@babel/helper-module-transforms': 7.29.7(@babel/[email protected])
+ '@babel/helpers': 7.29.7
+ '@babel/parser': 7.29.9
+ '@babel/template': 7.29.7
+ '@babel/traverse': 7.29.8
+ '@babel/types': 7.29.8
+ '@jridgewell/remapping': 2.3.5
+ convert-source-map: 2.0.0
+ debug: 4.4.3
+ gensync: 1.0.0-beta.2
+ json5: 2.2.3
+ semver: 6.3.1
+ transitivePeerDependencies:
+ - supports-color
+
+ '@babel/[email protected]':
+ dependencies:
+ '@babel/parser': 7.29.9
+ '@babel/types': 7.29.8
+ '@jridgewell/gen-mapping': 0.3.13
+ '@jridgewell/trace-mapping': 0.3.31
+ jsesc: 3.1.0
+
+ '@babel/[email protected]':
+ dependencies:
+ '@babel/types': 7.29.8
+
+ '@babel/[email protected]':
+ dependencies:
+ '@babel/compat-data': 7.29.7
+ '@babel/helper-validator-option': 7.29.7
+ browserslist: 4.29.3
+ lru-cache: 5.1.1
+ semver: 6.3.1
+
+ dependencies:
+ '@babel/core': 7.29.7
+ '@babel/helper-annotate-as-pure': 7.29.7
+ '@babel/helper-member-expression-to-functions': 7.29.7
+ '@babel/helper-optimise-call-expression': 7.29.7
+ '@babel/helper-replace-supers': 7.29.7(@babel/[email protected])
+ '@babel/helper-skip-transparent-expression-wrappers': 7.29.7
+ '@babel/traverse': 7.29.8
+ semver: 6.3.1
+ transitivePeerDependencies:
+ - supports-color
+
+ '@babel/[email protected]': {}
+
+ '@babel/[email protected]':
+ dependencies:
+ '@babel/traverse': 7.29.8
+ '@babel/types': 7.29.8
+ transitivePeerDependencies:
+ - supports-color
+
+ '@babel/[email protected]':
+ dependencies:
+ '@babel/traverse': 7.29.8
+ '@babel/types': 7.29.8
+ transitivePeerDependencies:
+ - supports-color
+
+ dependencies:
+ '@babel/core': 7.29.7
+ '@babel/helper-module-imports': 7.29.7
+ '@babel/helper-validator-identifier': 7.29.7
+ '@babel/traverse': 7.29.8
+ transitivePeerDependencies:
+ - supports-color
+
+ '@babel/[email protected]':
+ dependencies:
+ '@babel/types': 7.29.8
+
+ '@babel/[email protected]': {}
+
+ dependencies:
+ '@babel/core': 7.29.7
+ '@babel/helper-member-expression-to-functions': 7.29.7
+ '@babel/helper-optimise-call-expression': 7.29.7
+ '@babel/traverse': 7.29.8
+ transitivePeerDependencies:
+ - supports-color
+
+ '@babel/[email protected]':
+ dependencies:
+ '@babel/traverse': 7.29.8
+ '@babel/types': 7.29.8
+ transitivePeerDependencies:
+ - supports-color
+
+ '@babel/[email protected]': {}
+
+ '@babel/[email protected]': {}
+
+ '@babel/[email protected]': {}
+
+ '@babel/[email protected]':
+ dependencies:
+ '@babel/template': 7.29.7
+ '@babel/types': 7.29.8
+
+ '@babel/[email protected]':
+ dependencies:
+ '@babel/types': 7.29.8
+
+ dependencies:
+ '@babel/core': 7.29.7
+ '@babel/helper-plugin-utils': 7.29.7
+
+ dependencies:
+ '@babel/core': 7.29.7
+ '@babel/helper-plugin-utils': 7.29.7
+
+ dependencies:
+ '@babel/core': 7.29.7
+ '@babel/helper-module-transforms': 7.29.7(@babel/[email protected])
+ '@babel/helper-plugin-utils': 7.29.7
+ transitivePeerDependencies:
+ - supports-color
+
+ dependencies:
+ '@babel/core': 7.29.7
+ '@babel/helper-annotate-as-pure': 7.29.7
+ '@babel/helper-create-class-features-plugin': 7.29.7(@babel/[email protected])
+ '@babel/helper-plugin-utils': 7.29.7
+ '@babel/helper-skip-transparent-expression-wrappers': 7.29.7
+ '@babel/plugin-syntax-typescript': 7.29.7(@babel/[email protected])
+ transitivePeerDependencies:
+ - supports-color
+
+ dependencies:
+ '@babel/core': 7.29.7
+ '@babel/helper-plugin-utils': 7.29.7
+ '@babel/helper-validator-option': 7.29.7
+ '@babel/plugin-syntax-jsx': 7.29.7(@babel/[email protected])
+ '@babel/plugin-transform-modules-commonjs': 7.29.7(@babel/[email protected])
+ '@babel/plugin-transform-typescript': 7.29.9(@babel/[email protected])
+ transitivePeerDependencies:
+ - supports-color
+
+ '@babel/[email protected]':
+ dependencies:
+ '@babel/code-frame': 7.29.7
+ '@babel/parser': 7.29.9
+ '@babel/types': 7.29.8
+
+ '@babel/[email protected]':
+ dependencies:
+ '@babel/code-frame': 7.29.7
+ '@babel/generator': 7.29.8
+ '@babel/helper-globals': 7.29.7
+ '@babel/parser': 7.29.9
+ '@babel/template': 7.29.7
+ '@babel/types': 7.29.8
+ debug: 4.4.3
+ transitivePeerDependencies:
+ - supports-color
+
+ '@babel/[email protected]':
+ dependencies:
+ '@babel/helper-string-parser': 7.29.7
+ '@babel/helper-validator-identifier': 7.29.7
+
+ '@dotenvx/[email protected]':
+ dependencies:
+ '@dotenvx/primitives': 0.8.0
+ commander: 11.1.0
+ conf: 10.2.0
+ dotenv: 17.4.2
+ enquirer: 2.4.1
+ env-paths: 2.2.1
+ execa: 5.1.1
+ fdir: 6.5.0([email protected])
+ ignore: 5.3.2
+ object-treeify: 1.1.33
+ open: 8.4.2
+ picomatch: 4.0.7
+ systeminformation: 5.33.15
+ undici: 7.30.0
+ which: 4.0.0
+ yocto-spinner: 1.2.2
+
+ '@dotenvx/[email protected]': {}
+
+ '@emnapi/[email protected]':
+ dependencies:
+ '@emnapi/wasi-threads': 1.2.1
+ tslib: 2.8.1
+ optional: true
+
+ '@emnapi/[email protected]':
+ dependencies:
+ tslib: 2.8.1
+ optional: true
+
+ '@emnapi/[email protected]':
+ dependencies:
+ tslib: 2.8.1
+ optional: true
+
+ '@emnapi/[email protected]':
+ dependencies:
+ tslib: 2.8.1
+ optional: true
+
+ dependencies:
+ eslint: 9.39.5([email protected])
+ eslint-visitor-keys: 3.4.3
+
+ '@eslint-community/[email protected]': {}
+
+ '@eslint/[email protected]':
+ dependencies:
+ '@eslint/object-schema': 2.1.7
+ debug: 4.4.3
+ minimatch: 3.1.5
+ transitivePeerDependencies:
+ - supports-color
+
+ '@eslint/[email protected]':
+ dependencies:
+ '@eslint/core': 0.17.0
+
+ '@eslint/[email protected]':
+ dependencies:
+ '@types/json-schema': 7.0.15
+
+ '@eslint/[email protected]':
+ dependencies:
+ ajv: 6.15.0
+ debug: 4.4.3
+ espree: 10.4.0
+ globals: 14.0.0
+ ignore: 5.3.2
+ import-fresh: 3.3.1
+ js-yaml: 4.3.2
+ minimatch: 3.1.5
+ strip-json-comments: 3.1.1
+ transitivePeerDependencies:
+ - supports-color
+
+ '@eslint/[email protected]': {}
+
+ '@eslint/[email protected]': {}
+
+ '@eslint/[email protected]':
+ dependencies:
+ '@eslint/core': 0.17.0
+ levn: 0.4.1
+
+ '@floating-ui/[email protected]':
+ dependencies:
+ '@floating-ui/utils': 0.2.12
+
+ '@floating-ui/[email protected]':
+ dependencies:
+ '@floating-ui/core': 1.8.0
+ '@floating-ui/utils': 0.2.12
+
+ dependencies:
+ '@floating-ui/dom': 1.8.0
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+
+ '@floating-ui/[email protected]': {}
+
+ dependencies:
+ hono: 4.13.12
+
+ '@humanfs/[email protected]':
+ dependencies:
+ '@humanfs/types': 0.15.0
+
+ '@humanfs/[email protected]':
+ dependencies:
+ '@humanfs/core': 0.19.2
+ '@humanfs/types': 0.15.0
+ '@humanwhocodes/retry': 0.4.3
+
+ '@humanfs/[email protected]': {}
+
+ '@humanwhocodes/[email protected]': {}
+
+ '@humanwhocodes/[email protected]': {}
+
+ optional: true
+
+ optionalDependencies:
+ '@img/sharp-libvips-darwin-arm64': 1.2.4
+ optional: true
+
+ optionalDependencies:
+ '@img/sharp-libvips-darwin-x64': 1.2.4
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optionalDependencies:
+ '@img/sharp-libvips-linux-arm64': 1.2.4
+ optional: true
+
+ optionalDependencies:
+ '@img/sharp-libvips-linux-arm': 1.2.4
+ optional: true
+
+ optionalDependencies:
+ '@img/sharp-libvips-linux-ppc64': 1.2.4
+ optional: true
+
+ optionalDependencies:
+ '@img/sharp-libvips-linux-riscv64': 1.2.4
+ optional: true
+
+ optionalDependencies:
+ '@img/sharp-libvips-linux-s390x': 1.2.4
+ optional: true
+
+ optionalDependencies:
+ '@img/sharp-libvips-linux-x64': 1.2.4
+ optional: true
+
+ optionalDependencies:
+ '@img/sharp-libvips-linuxmusl-arm64': 1.2.4
+ optional: true
+
+ optionalDependencies:
+ '@img/sharp-libvips-linuxmusl-x64': 1.2.4
+ optional: true
+
+ dependencies:
+ '@emnapi/runtime': 1.11.3
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ '@inquirer/[email protected]': {}
+
+ '@inquirer/[email protected](@types/[email protected])':
+ dependencies:
+ '@inquirer/core': 12.0.3(@types/[email protected])
+ '@inquirer/type': 4.1.1(@types/[email protected])
+ optionalDependencies:
+ '@types/node': 20.19.43
+
+ '@inquirer/[email protected](@types/[email protected])':
+ dependencies:
+ '@inquirer/ansi': 2.0.8
+ '@inquirer/figures': 2.0.9
+ '@inquirer/type': 4.1.1(@types/[email protected])
+ cli-width: 4.1.0
+ fast-wrap-ansi: 0.2.2
+ mute-stream: 3.0.0
+ signal-exit: 4.1.0
+ optionalDependencies:
+ '@types/node': 20.19.43
+
+ '@inquirer/[email protected]': {}
+
+ '@inquirer/[email protected](@types/[email protected])':
+ optionalDependencies:
+ '@types/node': 20.19.43
+
+ '@jridgewell/[email protected]':
+ dependencies:
+ '@jridgewell/sourcemap-codec': 1.6.0
+ '@jridgewell/trace-mapping': 0.3.31
+
+ '@jridgewell/[email protected]':
+ dependencies:
+ '@jridgewell/gen-mapping': 0.3.13
+ '@jridgewell/trace-mapping': 0.3.31
+
+ '@jridgewell/[email protected]': {}
+
+ '@jridgewell/[email protected]': {}
+
+ '@jridgewell/[email protected]':
+ dependencies:
+ '@jridgewell/resolve-uri': 3.1.2
+ '@jridgewell/sourcemap-codec': 1.6.0
+
+ '@modelcontextprotocol/[email protected]([email protected])':
+ dependencies:
+ '@hono/node-server': 2.1.3([email protected])
+ ajv: 8.20.0
+ ajv-formats: 3.0.1([email protected])
+ content-type: 1.0.5
+ cors: 2.8.6
+ cross-spawn: 7.0.6
+ eventsource: 3.0.7
+ eventsource-parser: 3.1.1
+ express: 5.2.1
+ express-rate-limit: 8.7.0([email protected])
+ hono: 4.13.12
+ jose: 6.2.12
+ json-schema-typed: 8.0.2
+ pkce-challenge: 5.0.1
+ raw-body: 3.0.2
+ zod: 3.25.76
+ zod-to-json-schema: 3.25.2([email protected])
+ transitivePeerDependencies:
+ - supports-color
+
+ '@mswjs/[email protected]':
+ dependencies:
+ '@open-draft/deferred-promise': 2.2.0
+ '@open-draft/logger': 0.3.0
+ '@open-draft/until': 2.1.0
+ is-node-process: 1.2.0
+ outvariant: 1.4.3
+ strict-event-emitter: 0.5.1
+
+ dependencies:
+ '@emnapi/core': 1.10.0
+ '@emnapi/runtime': 1.10.0
+ '@tybys/wasm-util': 0.10.4
+ optional: true
+
+ '@next/[email protected]': {}
+
+ dependencies:
+ fast-glob: 3.3.1
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ '@nodelib/[email protected]':
+ dependencies:
+ '@nodelib/fs.stat': 2.0.5
+ run-parallel: 1.2.0
+
+ '@nodelib/[email protected]': {}
+
+ '@nodelib/[email protected]':
+ dependencies:
+ '@nodelib/fs.scandir': 2.1.5
+ fastq: 1.20.3
+
+ '@nolyfill/[email protected]': {}
+
+ '@open-draft/[email protected]': {}
+
+ '@open-draft/[email protected]': {}
+
+ '@open-draft/[email protected]':
+ dependencies:
+ is-node-process: 1.2.0
+ outvariant: 1.4.3
+
+ '@open-draft/[email protected]': {}
+
+ '@radix-ui/[email protected]': {}
+
+ '@radix-ui/[email protected]': {}
+
+ dependencies:
+ '@radix-ui/react-visually-hidden': 1.2.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ optionalDependencies:
+ '@types/react': 19.3.0
+ '@types/react-dom': 19.3.0(@types/[email protected])
+
+ dependencies:
+ '@radix-ui/primitive': 1.1.7
+ '@radix-ui/react-collapsible': 1.1.20(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
+ '@radix-ui/react-compose-refs': 1.1.5(@types/[email protected])([email protected])
+ '@radix-ui/react-context': 1.2.2(@types/[email protected])([email protected])
+ '@radix-ui/react-direction': 1.1.4(@types/[email protected])([email protected])
+ '@radix-ui/react-id': 1.1.4(@types/[email protected])([email protected])
+ '@radix-ui/react-use-controllable-state': 1.2.6(@types/[email protected])([email protected])
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ optionalDependencies:
+ '@types/react': 19.3.0
+ '@types/react-dom': 19.3.0(@types/[email protected])
+
+ dependencies:
+ '@radix-ui/primitive': 1.1.7
+ '@radix-ui/react-compose-refs': 1.1.5(@types/[email protected])([email protected])
+ '@radix-ui/react-context': 1.2.2(@types/[email protected])([email protected])
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ optionalDependencies:
+ '@types/react': 19.3.0
+ '@types/react-dom': 19.3.0(@types/[email protected])
+
+ dependencies:
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ optionalDependencies:
+ '@types/react': 19.3.0
+ '@types/react-dom': 19.3.0(@types/[email protected])
+
+ dependencies:
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ optionalDependencies:
+ '@types/react': 19.3.0
+ '@types/react-dom': 19.3.0(@types/[email protected])
+
+ dependencies:
+ '@radix-ui/primitive': 1.1.7
+ '@radix-ui/react-context': 1.2.2(@types/[email protected])([email protected])
+ '@radix-ui/react-use-callback-ref': 1.1.4(@types/[email protected])([email protected])
+ '@radix-ui/react-use-is-hydrated': 0.1.3(@types/[email protected])([email protected])
+ '@radix-ui/react-use-layout-effect': 1.1.4(@types/[email protected])([email protected])
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ optionalDependencies:
+ '@types/react': 19.3.0
+ '@types/react-dom': 19.3.0(@types/[email protected])
+
+ dependencies:
+ '@radix-ui/primitive': 1.1.7
+ '@radix-ui/react-compose-refs': 1.1.5(@types/[email protected])([email protected])
+ '@radix-ui/react-context': 1.2.2(@types/[email protected])([email protected])
+ '@radix-ui/react-use-controllable-state': 1.2.6(@types/[email protected])([email protected])
+ '@radix-ui/react-use-size': 1.1.4(@types/[email protected])([email protected])
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ optionalDependencies:
+ '@types/react': 19.3.0
+ '@types/react-dom': 19.3.0(@types/[email protected])
+
+ dependencies:
+ '@radix-ui/primitive': 1.1.7
+ '@radix-ui/react-compose-refs': 1.1.5(@types/[email protected])([email protected])
+ '@radix-ui/react-context': 1.2.2(@types/[email protected])([email protected])
+ '@radix-ui/react-id': 1.1.4(@types/[email protected])([email protected])
+ '@radix-ui/react-use-controllable-state': 1.2.6(@types/[email protected])([email protected])
+ '@radix-ui/react-use-layout-effect': 1.1.4(@types/[email protected])([email protected])
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ optionalDependencies:
+ '@types/react': 19.3.0
+ '@types/react-dom': 19.3.0(@types/[email protected])
+
+ dependencies:
+ '@radix-ui/react-compose-refs': 1.1.5(@types/[email protected])([email protected])
+ '@radix-ui/react-context': 1.2.2(@types/[email protected])([email protected])
+ '@radix-ui/react-slot': 1.3.3(@types/[email protected])([email protected])
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ optionalDependencies:
+ '@types/react': 19.3.0
+ '@types/react-dom': 19.3.0(@types/[email protected])
+
+ dependencies:
+ react: 19.2.3
+ optionalDependencies:
+ '@types/react': 19.3.0
+
+ dependencies:
+ '@radix-ui/primitive': 1.1.7
+ '@radix-ui/react-context': 1.2.2(@types/[email protected])([email protected])
+ '@radix-ui/react-use-controllable-state': 1.2.6(@types/[email protected])([email protected])
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ optionalDependencies:
+ '@types/react': 19.3.0
+ '@types/react-dom': 19.3.0(@types/[email protected])
+
+ dependencies:
+ react: 19.2.3
+ optionalDependencies:
+ '@types/react': 19.3.0
+
+ dependencies:
+ '@radix-ui/primitive': 1.1.7
+ '@radix-ui/react-compose-refs': 1.1.5(@types/[email protected])([email protected])
+ '@radix-ui/react-context': 1.2.2(@types/[email protected])([email protected])
+ '@radix-ui/react-dismissable-layer': 1.1.19(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
+ '@radix-ui/react-focus-guards': 1.1.6(@types/[email protected])([email protected])
+ '@radix-ui/react-focus-scope': 1.1.16(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
+ '@radix-ui/react-id': 1.1.4(@types/[email protected])([email protected])
+ '@radix-ui/react-slot': 1.3.3(@types/[email protected])([email protected])
+ '@radix-ui/react-use-controllable-state': 1.2.6(@types/[email protected])([email protected])
+ '@radix-ui/react-use-layout-effect': 1.1.4(@types/[email protected])([email protected])
+ aria-hidden: 1.2.6
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ react-remove-scroll: 2.7.2(@types/[email protected])([email protected])
+ optionalDependencies:
+ '@types/react': 19.3.0
+ '@types/react-dom': 19.3.0(@types/[email protected])
+
+ dependencies:
+ react: 19.2.3
+ optionalDependencies:
+ '@types/react': 19.3.0
+
+ dependencies:
+ '@radix-ui/primitive': 1.1.7
+ '@radix-ui/react-compose-refs': 1.1.5(@types/[email protected])([email protected])
+ '@radix-ui/react-use-callback-ref': 1.1.4(@types/[email protected])([email protected])
+ '@radix-ui/react-use-effect-event': 0.0.5(@types/[email protected])([email protected])
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ optionalDependencies:
+ '@types/react': 19.3.0
+ '@types/react-dom': 19.3.0(@types/[email protected])
+
+ dependencies:
+ '@radix-ui/primitive': 1.1.7
+ '@radix-ui/react-compose-refs': 1.1.5(@types/[email protected])([email protected])
+ '@radix-ui/react-context': 1.2.2(@types/[email protected])([email protected])
+ '@radix-ui/react-id': 1.1.4(@types/[email protected])([email protected])
+ '@radix-ui/react-use-controllable-state': 1.2.6(@types/[email protected])([email protected])
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ optionalDependencies:
+ '@types/react': 19.3.0
+ '@types/react-dom': 19.3.0(@types/[email protected])
+
+ dependencies:
+ react: 19.2.3
+ optionalDependencies:
+ '@types/react': 19.3.0
+
+ dependencies:
+ '@radix-ui/react-compose-refs': 1.1.5(@types/[email protected])([email protected])
+ '@radix-ui/react-use-callback-ref': 1.1.4(@types/[email protected])([email protected])
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ optionalDependencies:
+ '@types/react': 19.3.0
+ '@types/react-dom': 19.3.0(@types/[email protected])
+
+ dependencies:
+ '@radix-ui/primitive': 1.1.7
+ '@radix-ui/react-compose-refs': 1.1.5(@types/[email protected])([email protected])
+ '@radix-ui/react-context': 1.2.2(@types/[email protected])([email protected])
+ '@radix-ui/react-id': 1.1.4(@types/[email protected])([email protected])
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ optionalDependencies:
+ '@types/react': 19.3.0
+ '@types/react-dom': 19.3.0(@types/[email protected])
+
+ dependencies:
+ '@radix-ui/primitive': 1.1.7
+ '@radix-ui/react-compose-refs': 1.1.5(@types/[email protected])([email protected])
+ '@radix-ui/react-context': 1.2.2(@types/[email protected])([email protected])
+ '@radix-ui/react-dismissable-layer': 1.1.19(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
+ '@radix-ui/react-use-controllable-state': 1.2.6(@types/[email protected])([email protected])
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ optionalDependencies:
+ '@types/react': 19.3.0
+ '@types/react-dom': 19.3.0(@types/[email protected])
+
+ dependencies:
+ '@radix-ui/react-use-layout-effect': 1.1.4(@types/[email protected])([email protected])
+ react: 19.2.3
+ optionalDependencies:
+ '@types/react': 19.3.0
+
+ dependencies:
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ optionalDependencies:
+ '@types/react': 19.3.0
+ '@types/react-dom': 19.3.0(@types/[email protected])
+
+ dependencies:
+ '@radix-ui/primitive': 1.1.7
+ '@radix-ui/react-compose-refs': 1.1.5(@types/[email protected])([email protected])
+ '@radix-ui/react-context': 1.2.2(@types/[email protected])([email protected])
+ '@radix-ui/react-direction': 1.1.4(@types/[email protected])([email protected])
+ '@radix-ui/react-dismissable-layer': 1.1.19(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
+ '@radix-ui/react-focus-guards': 1.1.6(@types/[email protected])([email protected])
+ '@radix-ui/react-focus-scope': 1.1.16(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
+ '@radix-ui/react-id': 1.1.4(@types/[email protected])([email protected])
+ '@radix-ui/react-roving-focus': 1.1.19(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
+ '@radix-ui/react-slot': 1.3.3(@types/[email protected])([email protected])
+ '@radix-ui/react-use-callback-ref': 1.1.4(@types/[email protected])([email protected])
+ aria-hidden: 1.2.6
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ react-remove-scroll: 2.7.2(@types/[email protected])([email protected])
+ optionalDependencies:
+ '@types/react': 19.3.0
+ '@types/react-dom': 19.3.0(@types/[email protected])
+
+ dependencies:
+ '@radix-ui/primitive': 1.1.7
+ '@radix-ui/react-compose-refs': 1.1.5(@types/[email protected])([email protected])
+ '@radix-ui/react-context': 1.2.2(@types/[email protected])([email protected])
+ '@radix-ui/react-direction': 1.1.4(@types/[email protected])([email protected])
+ '@radix-ui/react-id': 1.1.4(@types/[email protected])([email protected])
+ '@radix-ui/react-roving-focus': 1.1.19(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
+ '@radix-ui/react-use-controllable-state': 1.2.6(@types/[email protected])([email protected])
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ optionalDependencies:
+ '@types/react': 19.3.0
+ '@types/react-dom': 19.3.0(@types/[email protected])
+
+ dependencies:
+ '@radix-ui/primitive': 1.1.7
+ '@radix-ui/react-compose-refs': 1.1.5(@types/[email protected])([email protected])
+ '@radix-ui/react-context': 1.2.2(@types/[email protected])([email protected])
+ '@radix-ui/react-direction': 1.1.4(@types/[email protected])([email protected])
+ '@radix-ui/react-dismissable-layer': 1.1.19(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
+ '@radix-ui/react-id': 1.1.4(@types/[email protected])([email protected])
+ '@radix-ui/react-use-callback-ref': 1.1.4(@types/[email protected])([email protected])
+ '@radix-ui/react-use-controllable-state': 1.2.6(@types/[email protected])([email protected])
+ '@radix-ui/react-use-layout-effect': 1.1.4(@types/[email protected])([email protected])
+ '@radix-ui/react-use-previous': 1.1.4(@types/[email protected])([email protected])
+ '@radix-ui/react-visually-hidden': 1.2.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ optionalDependencies:
+ '@types/react': 19.3.0
+ '@types/react-dom': 19.3.0(@types/[email protected])
+
+ dependencies:
+ '@radix-ui/number': 1.1.3
+ '@radix-ui/primitive': 1.1.7
+ '@radix-ui/react-compose-refs': 1.1.5(@types/[email protected])([email protected])
+ '@radix-ui/react-context': 1.2.2(@types/[email protected])([email protected])
+ '@radix-ui/react-direction': 1.1.4(@types/[email protected])([email protected])
+ '@radix-ui/react-roving-focus': 1.1.19(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
+ '@radix-ui/react-use-controllable-state': 1.2.6(@types/[email protected])([email protected])
+ '@radix-ui/react-use-effect-event': 0.0.5(@types/[email protected])([email protected])
+ '@radix-ui/react-use-is-hydrated': 0.1.3(@types/[email protected])([email protected])
+ '@radix-ui/react-use-layout-effect': 1.1.4(@types/[email protected])([email protected])
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ optionalDependencies:
+ '@types/react': 19.3.0
+ '@types/react-dom': 19.3.0(@types/[email protected])
+
+ dependencies:
+ '@radix-ui/primitive': 1.1.7
+ '@radix-ui/react-compose-refs': 1.1.5(@types/[email protected])([email protected])
+ '@radix-ui/react-context': 1.2.2(@types/[email protected])([email protected])
+ '@radix-ui/react-id': 1.1.4(@types/[email protected])([email protected])
+ '@radix-ui/react-use-controllable-state': 1.2.6(@types/[email protected])([email protected])
+ '@radix-ui/react-use-effect-event': 0.0.5(@types/[email protected])([email protected])
+ '@radix-ui/react-use-is-hydrated': 0.1.3(@types/[email protected])([email protected])
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ optionalDependencies:
+ '@types/react': 19.3.0
+ '@types/react-dom': 19.3.0(@types/[email protected])
+
+ dependencies:
+ '@radix-ui/primitive': 1.1.7
+ '@radix-ui/react-compose-refs': 1.1.5(@types/[email protected])([email protected])
+ '@radix-ui/react-context': 1.2.2(@types/[email protected])([email protected])
+ '@radix-ui/react-dismissable-layer': 1.1.19(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
+ '@radix-ui/react-focus-guards': 1.1.6(@types/[email protected])([email protected])
+ '@radix-ui/react-focus-scope': 1.1.16(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
+ '@radix-ui/react-id': 1.1.4(@types/[email protected])([email protected])
+ '@radix-ui/react-slot': 1.3.3(@types/[email protected])([email protected])
+ '@radix-ui/react-use-controllable-state': 1.2.6(@types/[email protected])([email protected])
+ aria-hidden: 1.2.6
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ react-remove-scroll: 2.7.2(@types/[email protected])([email protected])
+ optionalDependencies:
+ '@types/react': 19.3.0
+ '@types/react-dom': 19.3.0(@types/[email protected])
+
+ dependencies:
+ '@floating-ui/react-dom': 2.1.9([email protected]([email protected]))([email protected])
+ '@radix-ui/react-compose-refs': 1.1.5(@types/[email protected])([email protected])
+ '@radix-ui/react-context': 1.2.2(@types/[email protected])([email protected])
+ '@radix-ui/react-use-callback-ref': 1.1.4(@types/[email protected])([email protected])
+ '@radix-ui/react-use-layout-effect': 1.1.4(@types/[email protected])([email protected])
+ '@radix-ui/react-use-rect': 1.1.4(@types/[email protected])([email protected])
+ '@radix-ui/react-use-size': 1.1.4(@types/[email protected])([email protected])
+ '@radix-ui/rect': 1.1.3
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ optionalDependencies:
+ '@types/react': 19.3.0
+ '@types/react-dom': 19.3.0(@types/[email protected])
+
+ dependencies:
+ '@radix-ui/react-use-layout-effect': 1.1.4(@types/[email protected])([email protected])
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ optionalDependencies:
+ '@types/react': 19.3.0
+ '@types/react-dom': 19.3.0(@types/[email protected])
+
+ dependencies:
+ '@radix-ui/react-use-layout-effect': 1.1.4(@types/[email protected])([email protected])
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ optionalDependencies:
+ '@types/react': 19.3.0
+ '@types/react-dom': 19.3.0(@types/[email protected])
+
+ dependencies:
+ '@radix-ui/react-slot': 1.3.3(@types/[email protected])([email protected])
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ optionalDependencies:
+ '@types/react': 19.3.0
+ '@types/react-dom': 19.3.0(@types/[email protected])
+
+ dependencies:
+ '@radix-ui/react-context': 1.2.2(@types/[email protected])([email protected])
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ optionalDependencies:
+ '@types/react': 19.3.0
+ '@types/react-dom': 19.3.0(@types/[email protected])
+
+ dependencies:
+ '@radix-ui/primitive': 1.1.7
+ '@radix-ui/react-compose-refs': 1.1.5(@types/[email protected])([email protected])
+ '@radix-ui/react-context': 1.2.2(@types/[email protected])([email protected])
+ '@radix-ui/react-direction': 1.1.4(@types/[email protected])([email protected])
+ '@radix-ui/react-roving-focus': 1.1.19(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
+ '@radix-ui/react-use-controllable-state': 1.2.6(@types/[email protected])([email protected])
+ '@radix-ui/react-use-size': 1.1.4(@types/[email protected])([email protected])
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ optionalDependencies:
+ '@types/react': 19.3.0
+ '@types/react-dom': 19.3.0(@types/[email protected])
+
+ dependencies:
+ '@radix-ui/primitive': 1.1.7
+ '@radix-ui/react-compose-refs': 1.1.5(@types/[email protected])([email protected])
+ '@radix-ui/react-context': 1.2.2(@types/[email protected])([email protected])
+ '@radix-ui/react-direction': 1.1.4(@types/[email protected])([email protected])
+ '@radix-ui/react-id': 1.1.4(@types/[email protected])([email protected])
+ '@radix-ui/react-use-callback-ref': 1.1.4(@types/[email protected])([email protected])
+ '@radix-ui/react-use-controllable-state': 1.2.6(@types/[email protected])([email protected])
+ '@radix-ui/react-use-is-hydrated': 0.1.3(@types/[email protected])([email protected])
+ '@radix-ui/react-use-layout-effect': 1.1.4(@types/[email protected])([email protected])
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ optionalDependencies:
+ '@types/react': 19.3.0
+ '@types/react-dom': 19.3.0(@types/[email protected])
+
+ dependencies:
+ '@radix-ui/number': 1.1.3
+ '@radix-ui/primitive': 1.1.7
+ '@radix-ui/react-compose-refs': 1.1.5(@types/[email protected])([email protected])
+ '@radix-ui/react-context': 1.2.2(@types/[email protected])([email protected])
+ '@radix-ui/react-direction': 1.1.4(@types/[email protected])([email protected])
+ '@radix-ui/react-use-callback-ref': 1.1.4(@types/[email protected])([email protected])
+ '@radix-ui/react-use-layout-effect': 1.1.4(@types/[email protected])([email protected])
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ optionalDependencies:
+ '@types/react': 19.3.0
+ '@types/react-dom': 19.3.0(@types/[email protected])
+
+ dependencies:
+ '@radix-ui/number': 1.1.3
+ '@radix-ui/primitive': 1.1.7
+ '@radix-ui/react-compose-refs': 1.1.5(@types/[email protected])([email protected])
+ '@radix-ui/react-context': 1.2.2(@types/[email protected])([email protected])
+ '@radix-ui/react-direction': 1.1.4(@types/[email protected])([email protected])
+ '@radix-ui/react-dismissable-layer': 1.1.19(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
+ '@radix-ui/react-focus-guards': 1.1.6(@types/[email protected])([email protected])
+ '@radix-ui/react-focus-scope': 1.1.16(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
+ '@radix-ui/react-id': 1.1.4(@types/[email protected])([email protected])
+ '@radix-ui/react-slot': 1.3.3(@types/[email protected])([email protected])
+ '@radix-ui/react-use-callback-ref': 1.1.4(@types/[email protected])([email protected])
+ '@radix-ui/react-use-controllable-state': 1.2.6(@types/[email protected])([email protected])
+ '@radix-ui/react-use-layout-effect': 1.1.4(@types/[email protected])([email protected])
+ '@radix-ui/react-use-previous': 1.1.4(@types/[email protected])([email protected])
+ '@radix-ui/react-visually-hidden': 1.2.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
+ aria-hidden: 1.2.6
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ react-remove-scroll: 2.7.2(@types/[email protected])([email protected])
+ optionalDependencies:
+ '@types/react': 19.3.0
+ '@types/react-dom': 19.3.0(@types/[email protected])
+
+ dependencies:
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ optionalDependencies:
+ '@types/react': 19.3.0
+ '@types/react-dom': 19.3.0(@types/[email protected])
+
+ dependencies:
+ '@radix-ui/number': 1.1.3
+ '@radix-ui/primitive': 1.1.7
+ '@radix-ui/react-compose-refs': 1.1.5(@types/[email protected])([email protected])
+ '@radix-ui/react-context': 1.2.2(@types/[email protected])([email protected])
+ '@radix-ui/react-direction': 1.1.4(@types/[email protected])([email protected])
+ '@radix-ui/react-use-controllable-state': 1.2.6(@types/[email protected])([email protected])
+ '@radix-ui/react-use-layout-effect': 1.1.4(@types/[email protected])([email protected])
+ '@radix-ui/react-use-previous': 1.1.4(@types/[email protected])([email protected])
+ '@radix-ui/react-use-size': 1.1.4(@types/[email protected])([email protected])
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ optionalDependencies:
+ '@types/react': 19.3.0
+ '@types/react-dom': 19.3.0(@types/[email protected])
+
+ dependencies:
+ '@radix-ui/react-compose-refs': 1.1.5(@types/[email protected])([email protected])
+ react: 19.2.3
+ optionalDependencies:
+ '@types/react': 19.3.0
+
+ dependencies:
+ '@radix-ui/primitive': 1.1.7
+ '@radix-ui/react-compose-refs': 1.1.5(@types/[email protected])([email protected])
+ '@radix-ui/react-context': 1.2.2(@types/[email protected])([email protected])
+ '@radix-ui/react-use-controllable-state': 1.2.6(@types/[email protected])([email protected])
+ '@radix-ui/react-use-size': 1.1.4(@types/[email protected])([email protected])
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ optionalDependencies:
+ '@types/react': 19.3.0
+ '@types/react-dom': 19.3.0(@types/[email protected])
+
+ dependencies:
+ '@radix-ui/primitive': 1.1.7
+ '@radix-ui/react-context': 1.2.2(@types/[email protected])([email protected])
+ '@radix-ui/react-direction': 1.1.4(@types/[email protected])([email protected])
+ '@radix-ui/react-id': 1.1.4(@types/[email protected])([email protected])
+ '@radix-ui/react-roving-focus': 1.1.19(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
+ '@radix-ui/react-use-controllable-state': 1.2.6(@types/[email protected])([email protected])
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ optionalDependencies:
+ '@types/react': 19.3.0
+ '@types/react-dom': 19.3.0(@types/[email protected])
+
+ dependencies:
+ '@radix-ui/primitive': 1.1.7
+ '@radix-ui/react-compose-refs': 1.1.5(@types/[email protected])([email protected])
+ '@radix-ui/react-context': 1.2.2(@types/[email protected])([email protected])
+ '@radix-ui/react-dismissable-layer': 1.1.19(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
+ '@radix-ui/react-use-callback-ref': 1.1.4(@types/[email protected])([email protected])
+ '@radix-ui/react-use-controllable-state': 1.2.6(@types/[email protected])([email protected])
+ '@radix-ui/react-use-layout-effect': 1.1.4(@types/[email protected])([email protected])
+ '@radix-ui/react-visually-hidden': 1.2.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ optionalDependencies:
+ '@types/react': 19.3.0
+ '@types/react-dom': 19.3.0(@types/[email protected])
+
+ dependencies:
+ '@radix-ui/primitive': 1.1.7
+ '@radix-ui/react-context': 1.2.2(@types/[email protected])([email protected])
+ '@radix-ui/react-direction': 1.1.4(@types/[email protected])([email protected])
+ '@radix-ui/react-roving-focus': 1.1.19(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
+ '@radix-ui/react-use-controllable-state': 1.2.6(@types/[email protected])([email protected])
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ optionalDependencies:
+ '@types/react': 19.3.0
+ '@types/react-dom': 19.3.0(@types/[email protected])
+
+ dependencies:
+ '@radix-ui/primitive': 1.1.7
+ '@radix-ui/react-use-controllable-state': 1.2.6(@types/[email protected])([email protected])
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ optionalDependencies:
+ '@types/react': 19.3.0
+ '@types/react-dom': 19.3.0(@types/[email protected])
+
+ dependencies:
+ '@radix-ui/primitive': 1.1.7
+ '@radix-ui/react-context': 1.2.2(@types/[email protected])([email protected])
+ '@radix-ui/react-direction': 1.1.4(@types/[email protected])([email protected])
+ '@radix-ui/react-roving-focus': 1.1.19(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
+ '@radix-ui/react-toggle-group': 1.1.19(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ optionalDependencies:
+ '@types/react': 19.3.0
+ '@types/react-dom': 19.3.0(@types/[email protected])
+
+ dependencies:
+ '@radix-ui/primitive': 1.1.7
+ '@radix-ui/react-compose-refs': 1.1.5(@types/[email protected])([email protected])
+ '@radix-ui/react-context': 1.2.2(@types/[email protected])([email protected])
+ '@radix-ui/react-dismissable-layer': 1.1.19(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
+ '@radix-ui/react-id': 1.1.4(@types/[email protected])([email protected])
+ '@radix-ui/react-slot': 1.3.3(@types/[email protected])([email protected])
+ '@radix-ui/react-use-controllable-state': 1.2.6(@types/[email protected])([email protected])
+ '@radix-ui/react-use-layout-effect': 1.1.4(@types/[email protected])([email protected])
+ '@radix-ui/react-visually-hidden': 1.2.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ optionalDependencies:
+ '@types/react': 19.3.0
+ '@types/react-dom': 19.3.0(@types/[email protected])
+
+ dependencies:
+ react: 19.2.3
+ optionalDependencies:
+ '@types/react': 19.3.0
+
+ dependencies:
+ '@radix-ui/primitive': 1.1.7
+ '@radix-ui/react-use-effect-event': 0.0.5(@types/[email protected])([email protected])
+ '@radix-ui/react-use-layout-effect': 1.1.4(@types/[email protected])([email protected])
+ react: 19.2.3
+ optionalDependencies:
+ '@types/react': 19.3.0
+
+ dependencies:
+ '@radix-ui/react-use-layout-effect': 1.1.4(@types/[email protected])([email protected])
+ react: 19.2.3
+ optionalDependencies:
+ '@types/react': 19.3.0
+
+ dependencies:
+ '@radix-ui/react-use-callback-ref': 1.1.4(@types/[email protected])([email protected])
+ react: 19.2.3
+ optionalDependencies:
+ '@types/react': 19.3.0
+
+ dependencies:
+ react: 19.2.3
+ optionalDependencies:
+ '@types/react': 19.3.0
+
+ dependencies:
+ react: 19.2.3
+ optionalDependencies:
+ '@types/react': 19.3.0
+
+ dependencies:
+ react: 19.2.3
+ optionalDependencies:
+ '@types/react': 19.3.0
+
+ dependencies:
+ '@radix-ui/rect': 1.1.3
+ react: 19.2.3
+ optionalDependencies:
+ '@types/react': 19.3.0
+
+ dependencies:
+ '@radix-ui/react-use-layout-effect': 1.1.4(@types/[email protected])([email protected])
+ react: 19.2.3
+ optionalDependencies:
+ '@types/react': 19.3.0
+
+ dependencies:
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ optionalDependencies:
+ '@types/react': 19.3.0
+ '@types/react-dom': 19.3.0(@types/[email protected])
+
+ '@radix-ui/[email protected]': {}
+
+ dependencies:
+ awaitqueue: 3.3.1
+ hls.js: 1.7.3
+ mp4box: 2.4.1
+ react: 19.2.3
+ transitivePeerDependencies:
+ - supports-color
+
+ dependencies:
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+
+ '@rtsao/[email protected]': {}
+
+ '@rushstack/[email protected]': {}
+
+ '@sec-ant/[email protected]': {}
+
+ '@sindresorhus/[email protected]': {}
+
+ dependencies:
+ tslib: 2.8.1
+
+ '@tailwindcss/[email protected]':
+ dependencies:
+ '@jridgewell/remapping': 2.3.5
+ enhanced-resolve: 5.26.0
+ jiti: 2.7.0
+ lightningcss: 1.32.0
+ magic-string: 0.30.21
+ source-map-js: 1.2.2
+ tailwindcss: 4.3.3
+
+ '@tailwindcss/[email protected]':
+ optional: true
+
+ '@tailwindcss/[email protected]':
+ optional: true
+
+ '@tailwindcss/[email protected]':
+ optional: true
+
+ '@tailwindcss/[email protected]':
+ optional: true
+
+ '@tailwindcss/[email protected]':
+ optional: true
+
+ '@tailwindcss/[email protected]':
+ optional: true
+
+ '@tailwindcss/[email protected]':
+ optional: true
+
+ '@tailwindcss/[email protected]':
+ optional: true
+
+ '@tailwindcss/[email protected]':
+ optional: true
+
+ '@tailwindcss/[email protected]':
+ optional: true
+
+ '@tailwindcss/[email protected]':
+ optional: true
+
+ '@tailwindcss/[email protected]':
+ optional: true
+
+ '@tailwindcss/[email protected]':
+ optionalDependencies:
+ '@tailwindcss/oxide-android-arm64': 4.3.3
+ '@tailwindcss/oxide-darwin-arm64': 4.3.3
+ '@tailwindcss/oxide-darwin-x64': 4.3.3
+ '@tailwindcss/oxide-freebsd-x64': 4.3.3
+ '@tailwindcss/oxide-linux-arm-gnueabihf': 4.3.3
+ '@tailwindcss/oxide-linux-arm64-gnu': 4.3.3
+ '@tailwindcss/oxide-linux-arm64-musl': 4.3.3
+ '@tailwindcss/oxide-linux-x64-gnu': 4.3.3
+ '@tailwindcss/oxide-linux-x64-musl': 4.3.3
+ '@tailwindcss/oxide-wasm32-wasi': 4.3.3
+ '@tailwindcss/oxide-win32-arm64-msvc': 4.3.3
+ '@tailwindcss/oxide-win32-x64-msvc': 4.3.3
+
+ '@tailwindcss/[email protected]':
+ dependencies:
+ '@alloc/quick-lru': 5.3.0
+ '@tailwindcss/node': 4.3.3
+ '@tailwindcss/oxide': 4.3.3
+ postcss: 8.5.28
+ tailwindcss: 4.3.3
+
+ '@ts-morph/[email protected]':
+ dependencies:
+ fast-glob: 3.3.3
+ minimatch: 10.2.6
+ path-browserify: 1.0.1
+
+ '@tybys/[email protected]':
+ dependencies:
+ tslib: 2.8.1
+ optional: true
+
+ '@types/[email protected]': {}
+
+ '@types/[email protected]': {}
+
+ '@types/[email protected]': {}
+
+ '@types/[email protected]':
+ dependencies:
+ undici-types: 6.21.0
+
+ dependencies:
+ '@types/react': 19.3.0
+
+ '@types/[email protected]':
+ dependencies:
+ csstype: 3.2.3
+
+ '@types/[email protected]':
+ dependencies:
+ '@types/node': 20.19.43
+
+ '@types/[email protected]': {}
+
+ '@types/[email protected]': {}
+
+ dependencies:
+ '@eslint-community/regexpp': 4.12.2
+ '@typescript-eslint/parser': 8.71.0([email protected]([email protected]))([email protected])
+ '@typescript-eslint/scope-manager': 8.71.0
+ '@typescript-eslint/type-utils': 8.71.0([email protected]([email protected]))([email protected])
+ '@typescript-eslint/utils': 8.71.0([email protected]([email protected]))([email protected])
+ '@typescript-eslint/visitor-keys': 8.71.0
+ eslint: 9.39.5([email protected])
+ ignore: 7.0.12
+ natural-compare: 1.4.0
+ ts-api-utils: 2.5.0([email protected])
+ typescript: 5.9.3
+ transitivePeerDependencies:
+ - supports-color
+
+ dependencies:
+ '@typescript-eslint/scope-manager': 8.71.0
+ '@typescript-eslint/types': 8.71.0
+ '@typescript-eslint/typescript-estree': 8.71.0([email protected])
+ '@typescript-eslint/visitor-keys': 8.71.0
+ debug: 4.4.3
+ eslint: 9.39.5([email protected])
+ typescript: 5.9.3
+ transitivePeerDependencies:
+ - supports-color
+
+ '@typescript-eslint/[email protected]([email protected])':
+ dependencies:
+ '@typescript-eslint/tsconfig-utils': 8.71.0([email protected])
+ '@typescript-eslint/types': 8.71.0
+ debug: 4.4.3
+ typescript: 5.9.3
+ transitivePeerDependencies:
+ - supports-color
+
+ '@typescript-eslint/[email protected]':
+ dependencies:
+ '@typescript-eslint/types': 8.71.0
+ '@typescript-eslint/visitor-keys': 8.71.0
+
+ '@typescript-eslint/[email protected]([email protected])':
+ dependencies:
+ typescript: 5.9.3
+
+ dependencies:
+ '@typescript-eslint/types': 8.71.0
+ '@typescript-eslint/typescript-estree': 8.71.0([email protected])
+ '@typescript-eslint/utils': 8.71.0([email protected]([email protected]))([email protected])
+ debug: 4.4.3
+ eslint: 9.39.5([email protected])
+ ts-api-utils: 2.5.0([email protected])
+ typescript: 5.9.3
+ transitivePeerDependencies:
+ - supports-color
+
+ '@typescript-eslint/[email protected]': {}
+
+ '@typescript-eslint/[email protected]([email protected])':
+ dependencies:
+ '@typescript-eslint/project-service': 8.71.0([email protected])
+ '@typescript-eslint/tsconfig-utils': 8.71.0([email protected])
+ '@typescript-eslint/types': 8.71.0
+ '@typescript-eslint/visitor-keys': 8.71.0
+ debug: 4.4.3
+ minimatch: 10.2.6
+ semver: 7.8.5
+ tinyglobby: 0.2.17
+ ts-api-utils: 2.5.0([email protected])
+ typescript: 5.9.3
+ transitivePeerDependencies:
+ - supports-color
+
+ dependencies:
+ '@eslint-community/eslint-utils': 4.10.1([email protected]([email protected]))
+ '@typescript-eslint/scope-manager': 8.71.0
+ '@typescript-eslint/types': 8.71.0
+ '@typescript-eslint/typescript-estree': 8.71.0([email protected])
+ eslint: 9.39.5([email protected])
+ typescript: 5.9.3
+ transitivePeerDependencies:
+ - supports-color
+
+ '@typescript-eslint/[email protected]':
+ dependencies:
+ '@typescript-eslint/types': 8.71.0
+ eslint-visitor-keys: 5.0.1
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ dependencies:
+ '@emnapi/core': 1.10.0
+ '@emnapi/runtime': 1.10.0
+ '@napi-rs/wasm-runtime': 1.2.4(@emnapi/[email protected])(@emnapi/[email protected])
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ dependencies:
+ mime-types: 3.0.2
+ negotiator: 1.1.0
+
+ dependencies:
+ acorn: 8.18.0
+
+
+
+ optionalDependencies:
+ ajv: 8.20.0
+
+ optionalDependencies:
+ ajv: 8.20.0
+
+ dependencies:
+ fast-deep-equal: 3.1.3
+ fast-json-stable-stringify: 2.1.0
+ json-schema-traverse: 0.4.1
+ uri-js: 4.4.1
+
+ dependencies:
+ fast-deep-equal: 3.1.3
+ fast-uri: 3.1.8
+ json-schema-traverse: 1.0.0
+ require-from-string: 2.0.2
+
+
+
+
+ dependencies:
+ color-convert: 2.0.1
+
+
+
+ dependencies:
+ tslib: 2.8.1
+
+
+ dependencies:
+ call-bound: 1.0.4
+ is-array-buffer: 3.0.5
+
+ dependencies:
+ call-bind: 1.0.9
+ call-bound: 1.0.4
+ define-properties: 1.2.1
+ es-abstract: 1.24.2
+ es-object-atoms: 1.1.2
+ es-shim-unscopables: 1.1.0
+ is-string: 1.1.1
+ math-intrinsics: 1.1.0
+
+ dependencies:
+ call-bind: 1.0.9
+ define-properties: 1.2.1
+ es-abstract: 1.24.2
+ es-errors: 1.3.0
+ es-object-atoms: 1.1.2
+ es-shim-unscopables: 1.1.0
+
+ dependencies:
+ call-bind: 1.0.9
+ call-bound: 1.0.4
+ define-properties: 1.2.1
+ es-abstract: 1.24.2
+ es-errors: 1.3.0
+ es-object-atoms: 1.1.2
+ es-shim-unscopables: 1.1.0
+
+ dependencies:
+ call-bind: 1.0.9
+ define-properties: 1.2.1
+ es-abstract: 1.24.2
+ es-shim-unscopables: 1.1.0
+
+ dependencies:
+ call-bind: 1.0.9
+ define-properties: 1.2.1
+ es-abstract: 1.24.2
+ es-shim-unscopables: 1.1.0
+
+ dependencies:
+ call-bind: 1.0.9
+ define-properties: 1.2.1
+ es-abstract: 1.24.2
+ es-errors: 1.3.0
+ es-shim-unscopables: 1.1.0
+
+ dependencies:
+ array-buffer-byte-length: 1.0.2
+ call-bind: 1.0.9
+ define-properties: 1.2.1
+ es-abstract: 1.24.2
+ es-errors: 1.3.0
+ get-intrinsic: 1.3.0
+ is-array-buffer: 3.0.5
+
+
+ dependencies:
+ tslib: 2.8.1
+
+
+
+ dependencies:
+ possible-typed-array-names: 1.1.0
+
+ dependencies:
+ debug: 4.4.3
+ transitivePeerDependencies:
+ - supports-color
+
+
+
+
+
+
+ dependencies:
+ bytes: 3.1.2
+ content-type: 2.1.0
+ debug: 4.4.3
+ http-errors: 2.0.1
+ iconv-lite: 0.7.3
+ on-finished: 2.4.1
+ qs: 6.16.0
+ raw-body: 3.0.2
+ type-is: 2.1.0
+ transitivePeerDependencies:
+ - supports-color
+
+ dependencies:
+ balanced-match: 1.0.2
+ concat-map: 0.0.1
+
+ dependencies:
+ balanced-match: 4.0.4
+
+ dependencies:
+ fill-range: 7.1.1
+
+ dependencies:
+ baseline-browser-mapping: 2.11.27
+ caniuse-lite: 1.0.30001814
+ electron-to-chromium: 1.5.444
+ node-releases: 2.0.57
+ update-browserslist-db: 1.3.3([email protected])
+
+ dependencies:
+ run-applescript: 7.1.0
+
+
+ dependencies:
+ es-errors: 1.3.0
+ function-bind: 1.1.2
+
+ dependencies:
+ call-bind-apply-helpers: 1.0.2
+ es-define-property: 1.0.1
+ get-intrinsic: 1.3.0
+ set-function-length: 1.2.2
+
+ dependencies:
+ call-bind-apply-helpers: 1.0.2
+ get-intrinsic: 1.3.0
+
+
+
+ dependencies:
+ ansi-styles: 4.3.0
+ supports-color: 7.2.0
+
+
+ dependencies:
+ clsx: 2.1.1
+
+ dependencies:
+ restore-cursor: 5.1.0
+
+
+
+
+ dependencies:
+ string-width: 4.2.3
+ strip-ansi: 6.0.1
+ wrap-ansi: 7.0.0
+
+
+
+ dependencies:
+ color-name: 1.1.4
+
+
+
+
+
+ dependencies:
+ ajv: 8.20.0
+ ajv-formats: 2.1.1([email protected])
+ atomically: 1.7.0
+ debounce-fn: 4.0.0
+ dot-prop: 6.0.1
+ env-paths: 2.2.1
+ json-schema-typed: 7.0.3
+ onetime: 5.1.2
+ pkg-up: 3.1.0
+ semver: 7.8.5
+
+
+
+
+
+
+
+
+ dependencies:
+ object-assign: 4.1.1
+ vary: 1.1.2
+
+ dependencies:
+ env-paths: 2.2.1
+ import-fresh: 3.3.1
+ js-yaml: 4.3.2
+ parse-json: 5.2.0
+ optionalDependencies:
+ typescript: 5.9.3
+
+ dependencies:
+ path-key: 3.1.1
+ shebang-command: 2.0.0
+ which: 2.0.2
+
+
+
+
+
+ dependencies:
+ call-bound: 1.0.4
+ es-errors: 1.3.0
+ is-data-view: 1.0.2
+
+ dependencies:
+ call-bound: 1.0.4
+ es-errors: 1.3.0
+ is-data-view: 1.0.2
+
+ dependencies:
+ call-bound: 1.0.4
+ es-errors: 1.3.0
+ is-data-view: 1.0.2
+
+ dependencies:
+ mimic-fn: 3.1.0
+
+ dependencies:
+ ms: 2.1.3
+
+ dependencies:
+ ms: 2.1.3
+
+
+
+
+
+ dependencies:
+ bundle-name: 4.1.1
+ default-browser-id: 5.0.1
+
+ dependencies:
+ es-define-property: 1.0.1
+ es-errors: 1.3.0
+ gopd: 1.2.0
+
+
+
+ dependencies:
+ define-data-property: 1.1.4
+ has-property-descriptors: 1.0.2
+ object-keys: 1.1.1
+
+
+
+
+
+ dependencies:
+ esutils: 2.0.3
+
+ dependencies:
+ is-obj: 2.0.0
+
+
+ dependencies:
+ call-bind-apply-helpers: 1.0.2
+ es-errors: 1.3.0
+ gopd: 1.2.0
+
+
+
+
+
+
+
+ dependencies:
+ graceful-fs: 4.2.11
+ tapable: 2.3.3
+
+ dependencies:
+ ansi-colors: 4.1.3
+ strip-ansi: 6.0.1
+
+
+ dependencies:
+ is-arrayish: 0.2.1
+
+ dependencies:
+ es-errors: 1.3.0
+ es-object-atoms: 1.1.2
+ is-callable: 1.2.7
+ object-inspect: 1.13.4
+
+ dependencies:
+ array-buffer-byte-length: 1.0.2
+ arraybuffer.prototype.slice: 1.0.4
+ available-typed-arrays: 1.0.7
+ call-bind: 1.0.9
+ call-bound: 1.0.4
+ data-view-buffer: 1.0.2
+ data-view-byte-length: 1.0.2
+ data-view-byte-offset: 1.0.1
+ es-define-property: 1.0.1
+ es-errors: 1.3.0
+ es-object-atoms: 1.1.2
+ es-set-tostringtag: 2.1.0
+ es-to-primitive: 1.3.4
+ function.prototype.name: 1.2.0
+ get-intrinsic: 1.3.0
+ get-proto: 1.0.1
+ get-symbol-description: 1.1.0
+ globalthis: 1.0.4
+ gopd: 1.2.0
+ has-property-descriptors: 1.0.2
+ has-proto: 1.2.0
+ has-symbols: 1.1.0
+ hasown: 2.0.4
+ internal-slot: 1.1.0
+ is-array-buffer: 3.0.5
+ is-callable: 1.2.7
+ is-data-view: 1.0.2
+ is-negative-zero: 2.0.3
+ is-regex: 1.2.1
+ is-set: 2.0.3
+ is-shared-array-buffer: 1.0.4
+ is-string: 1.1.1
+ is-typed-array: 1.1.15
+ is-weakref: 1.1.1
+ math-intrinsics: 1.1.0
+ object-inspect: 1.13.4
+ object-keys: 1.1.1
+ object.assign: 4.1.7
+ own-keys: 1.0.2
+ regexp.prototype.flags: 1.5.4
+ safe-array-concat: 1.1.4
+ safe-push-apply: 1.0.0
+ safe-regex-test: 1.1.0
+ set-proto: 1.0.0
+ stop-iteration-iterator: 1.1.0
+ string.prototype.trim: 1.2.11
+ string.prototype.trimend: 1.0.10
+ string.prototype.trimstart: 1.0.8
+ typed-array-buffer: 1.0.3
+ typed-array-byte-length: 1.0.3
+ typed-array-byte-offset: 1.0.5
+ typed-array-length: 1.0.8
+ unbox-primitive: 1.1.0
+ which-typed-array: 1.1.24
+
+
+
+ dependencies:
+ call-bind: 1.0.9
+ call-bound: 1.0.4
+ define-properties: 1.2.1
+ es-abstract: 1.24.2
+ es-errors: 1.3.0
+ es-set-tostringtag: 2.1.0
+ function-bind: 1.1.2
+ get-intrinsic: 1.3.0
+ globalthis: 1.0.4
+ gopd: 1.2.0
+ has-property-descriptors: 1.0.2
+ has-proto: 1.2.0
+ has-symbols: 1.1.0
+ internal-slot: 1.1.0
+ iterator.prototype: 1.1.5
+ math-intrinsics: 1.1.0
+
+ dependencies:
+ es-errors: 1.3.0
+
+ dependencies:
+ es-errors: 1.3.0
+ get-intrinsic: 1.3.0
+ has-tostringtag: 1.0.2
+ hasown: 2.0.4
+
+ dependencies:
+ hasown: 2.0.4
+
+ dependencies:
+ es-abstract-get: 1.0.0
+ es-define-property: 1.0.1
+ es-errors: 1.3.0
+ is-callable: 1.2.7
+ is-date-object: 1.1.0
+ is-symbol: 1.1.1
+
+
+
+
+ dependencies:
+ '@next/eslint-plugin-next': 15.5.9
+ '@rushstack/eslint-patch': 1.16.1
+ '@typescript-eslint/parser': 8.71.0([email protected]([email protected]))([email protected])
+ eslint: 9.39.5([email protected])
+ eslint-import-resolver-node: 0.3.10
+ eslint-import-resolver-typescript: 3.10.1([email protected])([email protected]([email protected]))
+ eslint-plugin-jsx-a11y: 6.10.2([email protected]([email protected]))
+ eslint-plugin-react: 7.37.5([email protected]([email protected]))
+ eslint-plugin-react-hooks: 5.2.0([email protected]([email protected]))
+ optionalDependencies:
+ typescript: 5.9.3
+ transitivePeerDependencies:
+ - eslint-import-resolver-webpack
+ - eslint-plugin-import-x
+ - supports-color
+
+ dependencies:
+ debug: 3.2.7
+ is-core-module: 2.17.0
+ resolve: 2.0.0-next.7
+ transitivePeerDependencies:
+ - supports-color
+
+ dependencies:
+ '@nolyfill/is-core-module': 1.0.39
+ debug: 4.4.3
+ eslint: 9.39.5([email protected])
+ get-tsconfig: 4.14.3
+ is-bun-module: 2.0.0
+ stable-hash: 0.0.5
+ tinyglobby: 0.2.17
+ unrs-resolver: 1.12.2
+ optionalDependencies:
+ transitivePeerDependencies:
+ - supports-color
+
+ dependencies:
+ debug: 3.2.7
+ optionalDependencies:
+ '@typescript-eslint/parser': 8.71.0([email protected]([email protected]))([email protected])
+ eslint: 9.39.5([email protected])
+ eslint-import-resolver-node: 0.3.10
+ eslint-import-resolver-typescript: 3.10.1([email protected])([email protected]([email protected]))
+ transitivePeerDependencies:
+ - supports-color
+
+ dependencies:
+ '@rtsao/scc': 1.1.0
+ array-includes: 3.2.0
+ array.prototype.findlastindex: 1.2.6
+ array.prototype.flat: 1.3.3
+ array.prototype.flatmap: 1.3.3
+ debug: 3.2.7
+ doctrine: 2.1.0
+ eslint: 9.39.5([email protected])
+ eslint-import-resolver-node: 0.3.10
+ hasown: 2.0.4
+ is-core-module: 2.17.0
+ is-glob: 4.0.3
+ minimatch: 3.1.5
+ object.fromentries: 2.0.8
+ object.groupby: 1.0.3
+ object.values: 1.2.1
+ semver: 6.3.1
+ string.prototype.trimend: 1.0.10
+ tsconfig-paths: 3.15.0
+ optionalDependencies:
+ '@typescript-eslint/parser': 8.71.0([email protected]([email protected]))([email protected])
+ transitivePeerDependencies:
+ - eslint-import-resolver-typescript
+ - eslint-import-resolver-webpack
+ - supports-color
+
+ dependencies:
+ aria-query: 5.3.2
+ array-includes: 3.2.0
+ array.prototype.flatmap: 1.3.3
+ ast-types-flow: 0.0.8
+ axe-core: 4.13.0
+ axobject-query: 4.1.0
+ damerau-levenshtein: 1.0.8
+ emoji-regex: 9.2.2
+ eslint: 9.39.5([email protected])
+ hasown: 2.0.4
+ jsx-ast-utils: 3.3.5
+ language-tags: 1.0.9
+ minimatch: 3.1.5
+ object.fromentries: 2.0.8
+ safe-regex-test: 1.1.0
+ string.prototype.includes: 2.0.1
+
+ dependencies:
+ eslint: 9.39.5([email protected])
+
+ dependencies:
+ array-includes: 3.2.0
+ array.prototype.findlast: 1.2.5
+ array.prototype.flatmap: 1.3.3
+ array.prototype.tosorted: 1.1.4
+ doctrine: 2.1.0
+ es-iterator-helpers: 1.4.0
+ eslint: 9.39.5([email protected])
+ estraverse: 5.3.0
+ hasown: 2.0.4
+ jsx-ast-utils: 3.3.5
+ minimatch: 3.1.5
+ object.entries: 1.1.9
+ object.fromentries: 2.0.8
+ object.values: 1.2.1
+ prop-types: 15.8.1
+ resolve: 2.0.0-next.7
+ semver: 6.3.1
+ string.prototype.matchall: 4.1.0
+ string.prototype.repeat: 1.0.0
+
+ dependencies:
+ esrecurse: 4.3.0
+ estraverse: 5.3.0
+
+
+
+
+ dependencies:
+ '@eslint-community/eslint-utils': 4.10.1([email protected]([email protected]))
+ '@eslint-community/regexpp': 4.12.2
+ '@eslint/config-array': 0.21.2
+ '@eslint/config-helpers': 0.4.2
+ '@eslint/core': 0.17.0
+ '@eslint/eslintrc': 3.3.7
+ '@eslint/js': 9.39.5
+ '@eslint/plugin-kit': 0.4.1
+ '@humanfs/node': 0.16.8
+ '@humanwhocodes/module-importer': 1.0.1
+ '@humanwhocodes/retry': 0.4.3
+ '@types/estree': 1.0.9
+ ajv: 6.15.0
+ chalk: 4.1.2
+ cross-spawn: 7.0.6
+ debug: 4.4.3
+ escape-string-regexp: 4.0.0
+ eslint-scope: 8.4.0
+ eslint-visitor-keys: 4.2.1
+ espree: 10.4.0
+ esquery: 1.7.0
+ esutils: 2.0.3
+ fast-deep-equal: 3.1.3
+ file-entry-cache: 8.0.0
+ find-up: 5.0.0
+ glob-parent: 6.0.2
+ ignore: 5.3.2
+ imurmurhash: 0.1.4
+ is-glob: 4.0.3
+ json-stable-stringify-without-jsonify: 1.0.1
+ lodash.merge: 4.6.2
+ minimatch: 3.1.5
+ natural-compare: 1.4.0
+ optionator: 0.9.4
+ optionalDependencies:
+ jiti: 2.7.0
+ transitivePeerDependencies:
+ - supports-color
+
+ dependencies:
+ acorn: 8.18.0
+ acorn-jsx: 5.3.2([email protected])
+ eslint-visitor-keys: 4.2.1
+
+
+ dependencies:
+ estraverse: 5.3.0
+
+ dependencies:
+ estraverse: 5.3.0
+
+
+
+
+
+ dependencies:
+ eventsource-parser: 3.1.1
+
+ dependencies:
+ cross-spawn: 7.0.6
+ get-stream: 6.0.1
+ human-signals: 2.1.0
+ is-stream: 2.0.1
+ merge-stream: 2.0.0
+ npm-run-path: 4.0.1
+ onetime: 5.1.2
+ signal-exit: 3.0.7
+ strip-final-newline: 2.0.0
+
+ dependencies:
+ '@sindresorhus/merge-streams': 4.0.0
+ cross-spawn: 7.0.6
+ figures: 6.1.0
+ get-stream: 9.0.1
+ human-signals: 8.0.1
+ is-plain-obj: 4.1.0
+ is-stream: 4.0.1
+ npm-run-path: 6.0.0
+ pretty-ms: 9.3.1
+ signal-exit: 4.1.0
+ strip-final-newline: 4.0.0
+ yoctocolors: 2.2.0
+
+ dependencies:
+ debug: 4.4.3
+ express: 5.2.1
+ ip-address: 10.7.3
+ transitivePeerDependencies:
+ - supports-color
+
+ dependencies:
+ accepts: 2.0.0
+ body-parser: 2.3.0
+ content-disposition: 1.1.0
+ content-type: 1.0.5
+ cookie: 0.7.2
+ cookie-signature: 1.2.2
+ debug: 4.4.3
+ depd: 2.0.0
+ encodeurl: 2.0.0
+ escape-html: 1.0.3
+ etag: 1.8.1
+ finalhandler: 2.1.1
+ fresh: 2.0.0
+ http-errors: 2.0.1
+ merge-descriptors: 2.0.0
+ mime-types: 3.0.2
+ on-finished: 2.4.1
+ once: 1.4.0
+ parseurl: 1.3.3
+ proxy-addr: 2.0.8
+ qs: 6.16.0
+ range-parser: 1.3.0
+ router: 2.2.0
+ send: 1.2.1
+ serve-static: 2.2.1
+ statuses: 2.0.2
+ type-is: 2.1.0
+ vary: 1.1.2
+ transitivePeerDependencies:
+ - supports-color
+
+
+ dependencies:
+ '@nodelib/fs.stat': 2.0.5
+ '@nodelib/fs.walk': 1.2.8
+ glob-parent: 5.1.2
+ merge2: 1.4.1
+ micromatch: 4.0.8
+
+ dependencies:
+ '@nodelib/fs.stat': 2.0.5
+ '@nodelib/fs.walk': 1.2.8
+ glob-parent: 5.1.2
+ merge2: 1.4.1
+ micromatch: 4.0.8
+
+
+
+
+ dependencies:
+ fast-string-truncated-width: 3.0.3
+
+
+ dependencies:
+ fast-string-width: 3.0.2
+
+ dependencies:
+ reusify: 1.1.0
+
+ optionalDependencies:
+ picomatch: 4.0.7
+
+ dependencies:
+ node-domexception: 1.0.0
+ web-streams-polyfill: 3.3.3
+
+ dependencies:
+ is-unicode-supported: 2.1.0
+
+ dependencies:
+ flat-cache: 4.0.1
+
+ dependencies:
+ to-regex-range: 5.0.1
+
+ dependencies:
+ debug: 4.4.3
+ encodeurl: 2.0.0
+ escape-html: 1.0.3
+ on-finished: 2.4.1
+ parseurl: 1.3.3
+ statuses: 2.0.2
+ transitivePeerDependencies:
+ - supports-color
+
+ dependencies:
+ locate-path: 3.0.0
+
+ dependencies:
+ locate-path: 6.0.0
+ path-exists: 4.0.0
+
+ dependencies:
+ flatted: 3.4.4
+ keyv: 4.5.4
+
+
+ dependencies:
+ is-callable: 1.2.7
+
+ dependencies:
+ fetch-blob: 3.2.0
+
+
+
+ dependencies:
+ graceful-fs: 4.2.11
+ jsonfile: 6.2.1
+ universalify: 2.0.1
+
+
+ dependencies:
+ call-bind: 1.0.9
+ call-bound: 1.0.4
+ es-define-property: 1.0.1
+ es-errors: 1.3.0
+ functions-have-names: 1.2.3
+ has-property-descriptors: 1.0.2
+ hasown: 2.0.4
+ is-callable: 1.2.7
+ is-document.all: 1.0.0
+
+
+
+
+
+
+
+
+ dependencies:
+ call-bind-apply-helpers: 1.0.2
+ es-define-property: 1.0.1
+ es-errors: 1.3.0
+ es-object-atoms: 1.1.2
+ function-bind: 1.1.2
+ get-proto: 1.0.1
+ gopd: 1.2.0
+ has-symbols: 1.1.0
+ hasown: 2.0.4
+ math-intrinsics: 1.1.0
+
+
+
+ dependencies:
+ dunder-proto: 1.0.1
+ es-object-atoms: 1.1.2
+
+
+ dependencies:
+ '@sec-ant/readable-stream': 0.4.1
+ is-stream: 4.0.1
+
+ dependencies:
+ call-bound: 1.0.4
+ es-errors: 1.3.0
+ get-intrinsic: 1.3.0
+
+ dependencies:
+ resolve-pkg-maps: 1.0.0
+
+ dependencies:
+ is-glob: 4.0.3
+
+ dependencies:
+ is-glob: 4.0.3
+
+
+ dependencies:
+ define-properties: 1.2.1
+ gopd: 1.2.0
+
+
+
+
+
+
+ dependencies:
+ es-define-property: 1.0.1
+
+ dependencies:
+ dunder-proto: 1.0.1
+
+
+ dependencies:
+ has-symbols: 1.1.0
+
+ dependencies:
+ function-bind: 1.1.2
+
+ dependencies:
+ '@types/set-cookie-parser': 2.4.10
+ set-cookie-parser: 3.1.2
+
+
+
+ dependencies:
+ depd: 2.0.0
+ inherits: 2.0.4
+ setprototypeof: 1.2.0
+ statuses: 2.0.2
+ toidentifier: 1.0.1
+
+ dependencies:
+ agent-base: 7.1.4
+ debug: 4.4.3
+ transitivePeerDependencies:
+ - supports-color
+
+
+
+ dependencies:
+ safer-buffer: 2.1.2
+
+
+
+ dependencies:
+ parent-module: 1.0.1
+ resolve-from: 4.0.0
+
+
+
+ dependencies:
+ es-errors: 1.3.0
+ hasown: 2.0.4
+ side-channel: 1.1.1
+
+
+
+ dependencies:
+ call-bind: 1.0.9
+ call-bound: 1.0.4
+ get-intrinsic: 1.3.0
+
+
+ dependencies:
+ async-function: 1.0.0
+ call-bound: 1.0.4
+ get-proto: 1.0.1
+ has-tostringtag: 1.0.2
+ safe-regex-test: 1.1.0
+
+ dependencies:
+ has-bigints: 1.1.0
+
+ dependencies:
+ call-bound: 1.0.4
+ has-tostringtag: 1.0.2
+
+ dependencies:
+ semver: 7.8.5
+
+
+ dependencies:
+ hasown: 2.0.4
+
+ dependencies:
+ call-bound: 1.0.4
+ get-intrinsic: 1.3.0
+ is-typed-array: 1.1.15
+
+ dependencies:
+ call-bound: 1.0.4
+ has-tostringtag: 1.0.2
+
+
+
+ dependencies:
+ call-bound: 1.0.4
+
+
+ dependencies:
+ call-bound: 1.0.4
+
+
+ dependencies:
+ call-bound: 1.0.4
+ generator-function: 2.0.1
+ get-proto: 1.0.1
+ has-tostringtag: 1.0.2
+ safe-regex-test: 1.1.0
+
+ dependencies:
+ is-extglob: 2.1.1
+
+
+ dependencies:
+ is-docker: 3.0.0
+
+
+
+
+
+ dependencies:
+ call-bound: 1.0.4
+ has-tostringtag: 1.0.2
+
+
+
+
+
+
+ dependencies:
+ call-bound: 1.0.4
+ gopd: 1.2.0
+ has-tostringtag: 1.0.2
+ hasown: 2.0.4
+
+
+
+ dependencies:
+ call-bound: 1.0.4
+
+
+
+ dependencies:
+ call-bound: 1.0.4
+ has-tostringtag: 1.0.2
+
+ dependencies:
+ call-bound: 1.0.4
+ has-symbols: 1.1.0
+ safe-regex-test: 1.1.0
+
+ dependencies:
+ which-typed-array: 1.1.24
+
+
+
+
+ dependencies:
+ call-bound: 1.0.4
+
+ dependencies:
+ call-bound: 1.0.4
+ get-intrinsic: 1.3.0
+
+ dependencies:
+ is-docker: 2.2.1
+
+ dependencies:
+ is-inside-container: 1.0.0
+
+
+
+
+ dependencies:
+ define-data-property: 1.1.4
+ es-object-atoms: 1.1.2
+ get-intrinsic: 1.3.0
+ get-proto: 1.0.1
+ has-symbols: 1.1.0
+ set-function-name: 2.0.2
+
+
+
+
+ dependencies:
+ argparse: 2.0.1
+
+
+
+
+
+
+
+
+
+ dependencies:
+ minimist: 1.2.8
+
+
+ dependencies:
+ universalify: 2.0.1
+ optionalDependencies:
+ graceful-fs: 4.2.11
+
+ dependencies:
+ array-includes: 3.2.0
+ array.prototype.flat: 1.3.3
+ object.assign: 4.1.7
+ object.values: 1.2.1
+
+ dependencies:
+ json-buffer: 3.0.1
+
+
+
+
+ dependencies:
+ language-subtag-registry: 0.3.23
+
+ dependencies:
+ prelude-ls: 1.2.1
+ type-check: 0.4.0
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ dependencies:
+ detect-libc: 2.1.2
+ optionalDependencies:
+ lightningcss-android-arm64: 1.32.0
+ lightningcss-darwin-arm64: 1.32.0
+ lightningcss-darwin-x64: 1.32.0
+ lightningcss-freebsd-x64: 1.32.0
+ lightningcss-linux-arm-gnueabihf: 1.32.0
+ lightningcss-linux-arm64-gnu: 1.32.0
+ lightningcss-linux-arm64-musl: 1.32.0
+ lightningcss-linux-x64-gnu: 1.32.0
+ lightningcss-linux-x64-musl: 1.32.0
+ lightningcss-win32-arm64-msvc: 1.32.0
+ lightningcss-win32-x64-msvc: 1.32.0
+
+
+ dependencies:
+ p-locate: 3.0.0
+ path-exists: 3.0.0
+
+ dependencies:
+ p-locate: 5.0.0
+
+
+ dependencies:
+ chalk: 5.6.2
+ is-unicode-supported: 1.3.0
+
+ dependencies:
+ js-tokens: 4.0.0
+
+ dependencies:
+ yallist: 3.1.1
+
+ dependencies:
+ '@jridgewell/sourcemap-codec': 1.6.0
+
+
+
+
+
+
+ dependencies:
+ braces: 3.0.3
+ picomatch: 2.3.2
+
+
+ dependencies:
+ mime-db: 1.54.0
+
+
+
+
+ dependencies:
+ brace-expansion: 5.0.12
+
+ dependencies:
+ brace-expansion: 1.1.21
+
+
+
+
+ dependencies:
+ '@inquirer/confirm': 6.3.2(@types/[email protected])
+ '@mswjs/interceptors': 0.41.9
+ '@open-draft/deferred-promise': 3.0.0
+ '@types/statuses': 2.0.6
+ cookie: 1.1.1
+ graphql: 16.14.2
+ headers-polyfill: 5.0.1
+ is-node-process: 1.2.0
+ outvariant: 1.4.3
+ path-to-regexp: 6.3.0
+ picocolors: 1.1.1
+ rettime: 0.11.12
+ statuses: 2.0.2
+ strict-event-emitter: 0.5.1
+ tough-cookie: 6.0.2
+ type-fest: 5.10.0
+ until-async: 3.0.2
+ yargs: 17.7.3
+ optionalDependencies:
+ typescript: 5.9.3
+ transitivePeerDependencies:
+ - '@types/node'
+
+
+
+
+
+ dependencies:
+ content-type: 2.1.0
+
+ dependencies:
+ '@next/env': 15.5.9
+ '@swc/helpers': 0.5.15
+ caniuse-lite: 1.0.30001814
+ postcss: 8.4.31
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ styled-jsx: 5.1.6(@babel/[email protected])([email protected])
+ optionalDependencies:
+ '@next/swc-darwin-arm64': 15.5.7
+ '@next/swc-darwin-x64': 15.5.7
+ '@next/swc-linux-arm64-gnu': 15.5.7
+ '@next/swc-linux-arm64-musl': 15.5.7
+ '@next/swc-linux-x64-gnu': 15.5.7
+ '@next/swc-linux-x64-musl': 15.5.7
+ '@next/swc-win32-arm64-msvc': 15.5.7
+ '@next/swc-win32-x64-msvc': 15.5.7
+ sharp: 0.34.5
+ transitivePeerDependencies:
+ - '@babel/core'
+ - babel-plugin-macros
+
+
+ dependencies:
+ array.prototype.flatmap: 1.3.3
+ es-errors: 1.3.0
+ object.entries: 1.1.9
+ semver: 6.3.1
+
+ dependencies:
+ data-uri-to-buffer: 4.0.1
+ fetch-blob: 3.2.0
+ formdata-polyfill: 4.0.10
+
+
+ dependencies:
+ path-key: 3.1.1
+
+ dependencies:
+ path-key: 4.0.0
+ unicorn-magic: 0.3.0
+
+
+
+
+
+ dependencies:
+ call-bind: 1.0.9
+ call-bound: 1.0.4
+ define-properties: 1.2.1
+ es-object-atoms: 1.1.2
+ has-symbols: 1.1.0
+ object-keys: 1.1.1
+
+ dependencies:
+ call-bind: 1.0.9
+ call-bound: 1.0.4
+ define-properties: 1.2.1
+ es-object-atoms: 1.1.2
+
+ dependencies:
+ call-bind: 1.0.9
+ define-properties: 1.2.1
+ es-abstract: 1.24.2
+ es-object-atoms: 1.1.2
+
+ dependencies:
+ call-bind: 1.0.9
+ define-properties: 1.2.1
+ es-abstract: 1.24.2
+
+ dependencies:
+ call-bind: 1.0.9
+ call-bound: 1.0.4
+ define-properties: 1.2.1
+ es-object-atoms: 1.1.2
+
+ dependencies:
+ ee-first: 1.1.1
+
+ dependencies:
+ wrappy: 1.0.2
+
+ dependencies:
+ mimic-fn: 2.1.0
+
+ dependencies:
+ mimic-function: 5.0.1
+
+ dependencies:
+ default-browser: 5.5.1
+ define-lazy-prop: 3.0.0
+ is-in-ssh: 1.0.0
+ is-inside-container: 1.0.0
+ powershell-utils: 0.2.1
+ wsl-utils: 1.0.1
+
+ dependencies:
+ define-lazy-prop: 2.0.0
+ is-docker: 2.2.1
+ is-wsl: 2.2.0
+
+ dependencies:
+ deep-is: 0.1.4
+ fast-levenshtein: 2.0.6
+ levn: 0.4.1
+ prelude-ls: 1.2.1
+ type-check: 0.4.0
+ word-wrap: 1.2.5
+
+ dependencies:
+ chalk: 5.6.2
+ cli-cursor: 5.0.0
+ cli-spinners: 2.9.2
+ is-interactive: 2.0.0
+ is-unicode-supported: 2.1.0
+ log-symbols: 6.0.0
+ stdin-discarder: 0.2.2
+ string-width: 7.2.0
+ strip-ansi: 7.2.0
+
+
+ dependencies:
+ call-bound: 1.0.4
+ get-intrinsic: 1.3.0
+ object-keys: 1.1.1
+ safe-push-apply: 1.0.0
+
+ dependencies:
+ p-try: 2.2.0
+
+ dependencies:
+ yocto-queue: 0.1.0
+
+ dependencies:
+ p-limit: 2.3.0
+
+ dependencies:
+ p-limit: 3.1.0
+
+
+
+ dependencies:
+ callsites: 3.1.0
+
+ dependencies:
+ '@babel/code-frame': 7.29.7
+ error-ex: 1.3.4
+ json-parse-even-better-errors: 2.3.1
+ lines-and-columns: 1.2.4
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ dependencies:
+ find-up: 3.0.0
+
+
+ dependencies:
+ cssesc: 3.0.0
+ util-deprecate: 1.0.2
+
+ dependencies:
+ nanoid: 3.3.19
+ picocolors: 1.1.1
+ source-map-js: 1.2.2
+
+ dependencies:
+ nanoid: 3.3.19
+ picocolors: 1.1.1
+ source-map-js: 1.2.2
+
+
+
+ dependencies:
+ parse-ms: 4.0.0
+
+ dependencies:
+ kleur: 3.0.3
+ sisteransi: 1.0.5
+
+ dependencies:
+ loose-envify: 1.4.0
+ object-assign: 4.1.1
+ react-is: 16.13.1
+
+ dependencies:
+ forwarded: 0.2.0
+ ipaddr.js: 1.9.1
+
+
+ dependencies:
+ es-define-property: 1.0.1
+ side-channel: 1.1.1
+
+
+ dependencies:
+ '@radix-ui/primitive': 1.1.7
+ '@radix-ui/react-accessible-icon': 1.1.15(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
+ '@radix-ui/react-alert-dialog': 1.1.23(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
+ '@radix-ui/react-aspect-ratio': 1.1.15(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
+ '@radix-ui/react-collapsible': 1.1.20(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
+ '@radix-ui/react-compose-refs': 1.1.5(@types/[email protected])([email protected])
+ '@radix-ui/react-context': 1.2.2(@types/[email protected])([email protected])
+ '@radix-ui/react-context-menu': 2.3.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
+ '@radix-ui/react-direction': 1.1.4(@types/[email protected])([email protected])
+ '@radix-ui/react-dismissable-layer': 1.1.19(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
+ '@radix-ui/react-dropdown-menu': 2.1.24(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
+ '@radix-ui/react-focus-guards': 1.1.6(@types/[email protected])([email protected])
+ '@radix-ui/react-focus-scope': 1.1.16(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
+ '@radix-ui/react-navigation-menu': 1.2.22(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
+ '@radix-ui/react-one-time-password-field': 0.1.16(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
+ '@radix-ui/react-password-toggle-field': 0.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
+ '@radix-ui/react-roving-focus': 1.1.19(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
+ '@radix-ui/react-scroll-area': 1.2.18(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
+ '@radix-ui/react-slot': 1.3.3(@types/[email protected])([email protected])
+ '@radix-ui/react-toggle-group': 1.1.19(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
+ '@radix-ui/react-use-callback-ref': 1.1.4(@types/[email protected])([email protected])
+ '@radix-ui/react-use-controllable-state': 1.2.6(@types/[email protected])([email protected])
+ '@radix-ui/react-use-effect-event': 0.0.5(@types/[email protected])([email protected])
+ '@radix-ui/react-use-escape-keydown': 1.1.5(@types/[email protected])([email protected])
+ '@radix-ui/react-use-is-hydrated': 0.1.3(@types/[email protected])([email protected])
+ '@radix-ui/react-use-layout-effect': 1.1.4(@types/[email protected])([email protected])
+ '@radix-ui/react-use-size': 1.1.4(@types/[email protected])([email protected])
+ '@radix-ui/react-visually-hidden': 1.2.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ optionalDependencies:
+ '@types/react': 19.3.0
+ '@types/react-dom': 19.3.0(@types/[email protected])
+
+
+ dependencies:
+ bytes: 3.1.2
+ http-errors: 2.0.1
+ iconv-lite: 0.7.3
+ unpipe: 1.0.0
+
+ dependencies:
+ react: 19.2.3
+ scheduler: 0.27.0
+
+
+ dependencies:
+ react: 19.2.3
+ react-style-singleton: 2.2.3(@types/[email protected])([email protected])
+ tslib: 2.8.1
+ optionalDependencies:
+ '@types/react': 19.3.0
+
+ dependencies:
+ react: 19.2.3
+ react-remove-scroll-bar: 2.3.8(@types/[email protected])([email protected])
+ react-style-singleton: 2.2.3(@types/[email protected])([email protected])
+ tslib: 2.8.1
+ use-callback-ref: 1.3.3(@types/[email protected])([email protected])
+ use-sidecar: 1.1.3(@types/[email protected])([email protected])
+ optionalDependencies:
+ '@types/react': 19.3.0
+
+ dependencies:
+ get-nonce: 1.0.1
+ react: 19.2.3
+ tslib: 2.8.1
+ optionalDependencies:
+ '@types/react': 19.3.0
+
+
+ dependencies:
+ ast-types: 0.16.3
+ esprima: 4.0.1
+ source-map: 0.6.1
+ tiny-invariant: 1.3.3
+ tslib: 2.8.1
+
+ dependencies:
+ call-bind: 1.0.9
+ define-properties: 1.2.1
+ es-abstract: 1.24.2
+ es-errors: 1.3.0
+ es-object-atoms: 1.1.2
+ get-intrinsic: 1.3.0
+ get-proto: 1.0.1
+ which-builtin-type: 1.2.1
+
+ dependencies:
+ call-bind: 1.0.9
+ define-properties: 1.2.1
+ es-errors: 1.3.0
+ get-proto: 1.0.1
+ gopd: 1.2.0
+ set-function-name: 2.0.2
+
+
+
+
+
+ dependencies:
+ es-errors: 1.3.0
+ is-core-module: 2.17.0
+ node-exports-info: 1.6.2
+ object-keys: 1.1.1
+ path-parse: 1.0.7
+ supports-preserve-symlinks-flag: 1.0.0
+
+ dependencies:
+ onetime: 7.0.0
+ signal-exit: 4.1.0
+
+
+
+ dependencies:
+ debug: 4.4.3
+ depd: 2.0.0
+ is-promise: 4.0.0
+ parseurl: 1.3.3
+ path-to-regexp: 8.4.2
+ transitivePeerDependencies:
+ - supports-color
+
+
+ dependencies:
+ queue-microtask: 1.2.3
+
+ dependencies:
+ call-bind: 1.0.9
+ call-bound: 1.0.4
+ get-intrinsic: 1.3.0
+ has-symbols: 1.1.0
+ isarray: 2.0.5
+
+ dependencies:
+ es-errors: 1.3.0
+ isarray: 2.0.5
+
+ dependencies:
+ call-bound: 1.0.4
+ es-errors: 1.3.0
+ is-regex: 1.2.1
+
+
+
+
+
+ dependencies:
+ debug: 4.4.3
+ encodeurl: 2.0.0
+ escape-html: 1.0.3
+ etag: 1.8.1
+ fresh: 2.0.0
+ http-errors: 2.0.1
+ mime-types: 3.0.2
+ ms: 2.1.3
+ on-finished: 2.4.1
+ range-parser: 1.3.0
+ statuses: 2.0.2
+ transitivePeerDependencies:
+ - supports-color
+
+ dependencies:
+ encodeurl: 2.0.0
+ escape-html: 1.0.3
+ parseurl: 1.3.3
+ send: 1.2.1
+ transitivePeerDependencies:
+ - supports-color
+
+
+ dependencies:
+ define-data-property: 1.1.4
+ es-errors: 1.3.0
+ function-bind: 1.1.2
+ get-intrinsic: 1.3.0
+ gopd: 1.2.0
+ has-property-descriptors: 1.0.2
+
+ dependencies:
+ define-data-property: 1.1.4
+ es-errors: 1.3.0
+ functions-have-names: 1.2.3
+ has-property-descriptors: 1.0.2
+
+ dependencies:
+ dunder-proto: 1.0.1
+ es-errors: 1.3.0
+ es-object-atoms: 1.1.2
+
+
+ dependencies:
+ '@antfu/ni': 25.0.0
+ '@babel/core': 7.29.7
+ '@babel/parser': 7.29.9
+ '@babel/plugin-transform-typescript': 7.29.9(@babel/[email protected])
+ '@babel/preset-typescript': 7.29.7(@babel/[email protected])
+ '@dotenvx/dotenvx': 1.75.1
+ '@modelcontextprotocol/sdk': 1.32.0([email protected])
+ '@types/validate-npm-package-name': 4.0.2
+ browserslist: 4.29.3
+ commander: 14.0.3
+ cosmiconfig: 9.0.2([email protected])
+ dedent: 1.7.2
+ deepmerge: 4.3.1
+ diff: 8.0.4
+ execa: 9.6.1
+ fast-glob: 3.3.3
+ fs-extra: 11.4.1
+ fuzzysort: 3.1.0
+ https-proxy-agent: 7.0.6
+ kleur: 4.1.5
+ msw: 2.15.0(@types/[email protected])([email protected])
+ node-fetch: 3.3.2
+ open: 11.0.4
+ ora: 8.2.0
+ postcss: 8.5.28
+ postcss-selector-parser: 7.1.6
+ prompts: 2.4.2
+ recast: 0.23.21
+ stringify-object: 5.0.0
+ tailwind-merge: 3.7.0
+ ts-morph: 26.0.0
+ tsconfig-paths: 4.2.0
+ validate-npm-package-name: 7.0.2
+ zod: 3.25.76
+ zod-to-json-schema: 3.25.2([email protected])
+ transitivePeerDependencies:
+ - '@cfworker/json-schema'
+ - '@types/node'
+ - babel-plugin-macros
+ - supports-color
+ - typescript
+
+ dependencies:
+ '@img/colour': 1.1.0
+ detect-libc: 2.1.2
+ semver: 7.8.5
+ optionalDependencies:
+ '@img/sharp-darwin-arm64': 0.34.5
+ '@img/sharp-darwin-x64': 0.34.5
+ '@img/sharp-libvips-darwin-arm64': 1.2.4
+ '@img/sharp-libvips-darwin-x64': 1.2.4
+ '@img/sharp-libvips-linux-arm': 1.2.4
+ '@img/sharp-libvips-linux-arm64': 1.2.4
+ '@img/sharp-libvips-linux-ppc64': 1.2.4
+ '@img/sharp-libvips-linux-riscv64': 1.2.4
+ '@img/sharp-libvips-linux-s390x': 1.2.4
+ '@img/sharp-libvips-linux-x64': 1.2.4
+ '@img/sharp-libvips-linuxmusl-arm64': 1.2.4
+ '@img/sharp-libvips-linuxmusl-x64': 1.2.4
+ '@img/sharp-linux-arm': 0.34.5
+ '@img/sharp-linux-arm64': 0.34.5
+ '@img/sharp-linux-ppc64': 0.34.5
+ '@img/sharp-linux-riscv64': 0.34.5
+ '@img/sharp-linux-s390x': 0.34.5
+ '@img/sharp-linux-x64': 0.34.5
+ '@img/sharp-linuxmusl-arm64': 0.34.5
+ '@img/sharp-linuxmusl-x64': 0.34.5
+ '@img/sharp-wasm32': 0.34.5
+ '@img/sharp-win32-arm64': 0.34.5
+ '@img/sharp-win32-ia32': 0.34.5
+ '@img/sharp-win32-x64': 0.34.5
+ optional: true
+
+ dependencies:
+ shebang-regex: 3.0.0
+
+
+ dependencies:
+ es-errors: 1.3.0
+ object-inspect: 1.13.4
+
+ dependencies:
+ call-bound: 1.0.4
+ es-errors: 1.3.0
+ get-intrinsic: 1.3.0
+ object-inspect: 1.13.4
+
+ dependencies:
+ call-bound: 1.0.4
+ es-errors: 1.3.0
+ get-intrinsic: 1.3.0
+ object-inspect: 1.13.4
+ side-channel-map: 1.0.1
+
+ dependencies:
+ es-errors: 1.3.0
+ object-inspect: 1.13.4
+ side-channel-list: 1.0.1
+ side-channel-map: 1.0.1
+ side-channel-weakmap: 1.0.2
+
+
+
+
+
+
+
+
+
+ dependencies:
+ es-errors: 1.3.0
+ internal-slot: 1.1.0
+
+
+ dependencies:
+ emoji-regex: 8.0.0
+ is-fullwidth-code-point: 3.0.0
+ strip-ansi: 6.0.1
+
+ dependencies:
+ emoji-regex: 10.6.0
+ get-east-asian-width: 1.7.0
+ strip-ansi: 7.2.0
+
+ dependencies:
+ call-bind: 1.0.9
+ define-properties: 1.2.1
+ es-abstract: 1.24.2
+
+ dependencies:
+ call-bind: 1.0.9
+ call-bound: 1.0.4
+ define-properties: 1.2.1
+ es-abstract: 1.24.2
+ es-errors: 1.3.0
+ es-object-atoms: 1.1.2
+ get-intrinsic: 1.3.0
+ gopd: 1.2.0
+ has-symbols: 1.1.0
+ internal-slot: 1.1.0
+ regexp.prototype.flags: 1.5.4
+ set-function-name: 2.0.2
+ side-channel: 1.1.1
+
+ dependencies:
+ define-properties: 1.2.1
+ es-abstract: 1.24.2
+
+ dependencies:
+ call-bind: 1.0.9
+ call-bound: 1.0.4
+ define-data-property: 1.1.4
+ define-properties: 1.2.1
+ es-abstract: 1.24.2
+ es-object-atoms: 1.1.2
+ has-property-descriptors: 1.0.2
+ safe-regex-test: 1.1.0
+
+ dependencies:
+ call-bind: 1.0.9
+ call-bound: 1.0.4
+ define-properties: 1.2.1
+ es-object-atoms: 1.1.2
+
+ dependencies:
+ call-bind: 1.0.9
+ define-properties: 1.2.1
+ es-object-atoms: 1.1.2
+
+ dependencies:
+ get-own-enumerable-keys: 1.0.0
+ is-obj: 3.0.0
+ is-regexp: 3.1.0
+
+ dependencies:
+ ansi-regex: 5.0.1
+
+ dependencies:
+ ansi-regex: 6.4.0
+
+
+
+
+
+ dependencies:
+ client-only: 0.0.1
+ react: 19.2.3
+ optionalDependencies:
+ '@babel/core': 7.29.7
+
+ dependencies:
+ has-flag: 4.0.0
+
+
+
+
+
+
+
+
+
+ dependencies:
+ fdir: 6.5.0([email protected])
+ picomatch: 4.0.7
+
+
+ dependencies:
+ tldts-core: 7.4.16
+
+ dependencies:
+ is-number: 7.0.0
+
+
+ dependencies:
+ tldts: 7.4.16
+
+ dependencies:
+ typescript: 5.9.3
+
+ dependencies:
+ '@ts-morph/common': 0.27.0
+ code-block-writer: 13.0.3
+
+ dependencies:
+ '@types/json5': 0.0.29
+ json5: 1.0.2
+ minimist: 1.2.8
+ strip-bom: 3.0.0
+
+ dependencies:
+ json5: 2.2.3
+ minimist: 1.2.8
+ strip-bom: 3.0.0
+
+
+
+ dependencies:
+ prelude-ls: 1.2.1
+
+ dependencies:
+ tagged-tag: 1.0.0
+
+ dependencies:
+ content-type: 2.1.0
+ media-typer: 1.1.1
+ mime-types: 3.0.2
+
+ dependencies:
+ call-bound: 1.0.4
+ es-errors: 1.3.0
+ is-typed-array: 1.1.15
+
+ dependencies:
+ call-bind: 1.0.9
+ for-each: 0.3.5
+ gopd: 1.2.0
+ has-proto: 1.2.0
+ is-typed-array: 1.1.15
+
+ dependencies:
+ available-typed-arrays: 1.0.7
+ call-bind: 1.0.9
+ for-each: 0.3.5
+ gopd: 1.2.0
+ is-typed-array: 1.1.15
+ reflect.getprototypeof: 1.0.10
+
+ dependencies:
+ call-bind: 1.0.9
+ for-each: 0.3.5
+ gopd: 1.2.0
+ is-typed-array: 1.1.15
+ possible-typed-array-names: 1.1.0
+ reflect.getprototypeof: 1.0.10
+
+
+ dependencies:
+ call-bound: 1.0.4
+ has-bigints: 1.1.0
+ has-symbols: 1.1.0
+ which-boxed-primitive: 1.1.1
+
+
+
+
+
+
+ dependencies:
+ napi-postinstall: 0.3.4
+ optionalDependencies:
+ '@unrs/resolver-binding-android-arm-eabi': 1.12.2
+ '@unrs/resolver-binding-android-arm64': 1.12.2
+ '@unrs/resolver-binding-darwin-arm64': 1.12.2
+ '@unrs/resolver-binding-darwin-x64': 1.12.2
+ '@unrs/resolver-binding-freebsd-x64': 1.12.2
+ '@unrs/resolver-binding-linux-arm-gnueabihf': 1.12.2
+ '@unrs/resolver-binding-linux-arm-musleabihf': 1.12.2
+ '@unrs/resolver-binding-linux-arm64-gnu': 1.12.2
+ '@unrs/resolver-binding-linux-arm64-musl': 1.12.2
+ '@unrs/resolver-binding-linux-loong64-gnu': 1.12.2
+ '@unrs/resolver-binding-linux-loong64-musl': 1.12.2
+ '@unrs/resolver-binding-linux-ppc64-gnu': 1.12.2
+ '@unrs/resolver-binding-linux-riscv64-gnu': 1.12.2
+ '@unrs/resolver-binding-linux-riscv64-musl': 1.12.2
+ '@unrs/resolver-binding-linux-s390x-gnu': 1.12.2
+ '@unrs/resolver-binding-linux-x64-gnu': 1.12.2
+ '@unrs/resolver-binding-linux-x64-musl': 1.12.2
+ '@unrs/resolver-binding-openharmony-arm64': 1.12.2
+ '@unrs/resolver-binding-wasm32-wasi': 1.12.2
+ '@unrs/resolver-binding-win32-arm64-msvc': 1.12.2
+ '@unrs/resolver-binding-win32-ia32-msvc': 1.12.2
+ '@unrs/resolver-binding-win32-x64-msvc': 1.12.2
+
+
+ dependencies:
+ browserslist: 4.29.3
+ escalade: 3.2.0
+ picocolors: 1.1.1
+
+ dependencies:
+ punycode: 2.3.1
+
+ dependencies:
+ react: 19.2.3
+ tslib: 2.8.1
+ optionalDependencies:
+ '@types/react': 19.3.0
+
+ dependencies:
+ detect-node-es: 1.1.0
+ react: 19.2.3
+ tslib: 2.8.1
+ optionalDependencies:
+ '@types/react': 19.3.0
+
+
+
+
+
+ dependencies:
+ is-bigint: 1.1.0
+ is-boolean-object: 1.2.2
+ is-number-object: 1.1.1
+ is-string: 1.1.1
+ is-symbol: 1.1.1
+
+ dependencies:
+ call-bound: 1.0.4
+ function.prototype.name: 1.2.0
+ has-tostringtag: 1.0.2
+ is-async-function: 2.1.1
+ is-date-object: 1.1.0
+ is-finalizationregistry: 1.1.1
+ is-generator-function: 1.1.2
+ is-regex: 1.2.1
+ is-weakref: 1.1.1
+ isarray: 2.0.5
+ which-boxed-primitive: 1.1.1
+ which-collection: 1.0.2
+ which-typed-array: 1.1.24
+
+ dependencies:
+ is-map: 2.0.3
+ is-set: 2.0.3
+ is-weakmap: 2.0.2
+ is-weakset: 2.0.4
+
+ dependencies:
+ available-typed-arrays: 1.0.7
+ call-bind: 1.0.9
+ call-bound: 1.0.4
+ for-each: 0.3.5
+ get-proto: 1.0.1
+ gopd: 1.2.0
+ has-tostringtag: 1.0.2
+
+ dependencies:
+ isexe: 2.0.0
+
+ dependencies:
+ isexe: 3.1.5
+
+
+ dependencies:
+ ansi-styles: 4.3.0
+ string-width: 4.2.3
+ strip-ansi: 6.0.1
+
+
+ dependencies:
+ is-wsl: 3.1.1
+ powershell-utils: 0.2.1
+
+
+
+
+ dependencies:
+ cliui: 8.0.1
+ escalade: 3.2.0
+ get-caller-file: 2.0.5
+ require-directory: 2.1.1
+ string-width: 4.2.3
+ y18n: 5.0.8
+ yargs-parser: 21.1.1
+
+
+ dependencies:
+ yoctocolors: 2.2.0
+
+
+ dependencies:
+ zod: 3.25.76
+
diff --git a/reactor/demo/pnpm-workspace.yaml b/reactor/demo/pnpm-workspace.yaml
new file mode 100644
index 0000000..5998d69
--- /dev/null
+++ b/reactor/demo/pnpm-workspace.yaml
@@ -0,0 +1,7 @@
+allowBuilds:
+ esbuild: true
+ msw: true
+ sharp: true
+ unrs-resolver: true
+publicHoistPattern:
+ - "*eslint*"
diff --git a/reactor/demo/postcss.config.mjs b/reactor/demo/postcss.config.mjs
new file mode 100644
index 0000000..61e3684
--- /dev/null
+++ b/reactor/demo/postcss.config.mjs
@@ -0,0 +1,7 @@
+const config = {
+ plugins: {
+ "@tailwindcss/postcss": {},
+ },
+};
+
+export default config;
diff --git a/reactor/demo/public/examples/example-01.jpg b/reactor/demo/public/examples/example-01.jpg
new file mode 100644
index 0000000..1ceeb7b
Binary files /dev/null and b/reactor/demo/public/examples/example-01.jpg differ
diff --git a/reactor/demo/public/examples/example-02.jpg b/reactor/demo/public/examples/example-02.jpg
new file mode 100644
index 0000000..a7a2a45
Binary files /dev/null and b/reactor/demo/public/examples/example-02.jpg differ
diff --git a/reactor/demo/public/examples/example-03.jpg b/reactor/demo/public/examples/example-03.jpg
new file mode 100644
index 0000000..59da393
Binary files /dev/null and b/reactor/demo/public/examples/example-03.jpg differ
diff --git a/reactor/demo/public/examples/example-04.jpg b/reactor/demo/public/examples/example-04.jpg
new file mode 100644
index 0000000..d8f09ed
Binary files /dev/null and b/reactor/demo/public/examples/example-04.jpg differ
diff --git a/reactor/demo/public/logo/symbol-night.svg b/reactor/demo/public/logo/symbol-night.svg
new file mode 100644
index 0000000..f18386a
--- /dev/null
+++ b/reactor/demo/public/logo/symbol-night.svg
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 362.3">
+ <defs>
+ <style>
+ .cls-1 {
+ fill-rule: evenodd;
+ }
+ </style>
+ </defs>
+ <path class="cls-1" d="M447.12,0c44.95,0,64.88,26.35,64.88,62.33v105.9c0,34.96-19.41,61.31-63.35,61.31h-1.05c-11.43.04-18.2,12.72-11.81,22.12l75.18,110.64h-91.16l-87.01-124.01c-3.85-5.48-10.16-8.75-16.89-8.75-11.37,0-20.58,9.14-20.58,20.41v112.35h-78.68v-112.35c0-11.27-9.21-20.41-20.58-20.41-6.74,0-13.04,3.27-16.89,8.75l-87.01,124.01H1.02l75.19-110.64c6.39-9.4-.37-22.08-11.81-22.12h-1.05c-43.93,0-63.35-26.35-63.35-61.32V62.33C0,26.35,19.92,0,64.88,0h382.24ZM87.87,70.94c-7.15,0-9.19,2.53-9.19,9.63v69.42c0,6.59,2.04,8.61,8.69,8.61h337.28c6.64,0,8.68-2.03,8.68-8.61v-69.42c0-7.09-2.04-9.63-9.19-9.63H87.87Z"/>
+</svg>
\ No newline at end of file
diff --git a/reactor/demo/public/logo/symbol-white.svg b/reactor/demo/public/logo/symbol-white.svg
new file mode 100644
index 0000000..bccaa36
--- /dev/null
+++ b/reactor/demo/public/logo/symbol-white.svg
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 362.3">
+ <defs>
+ <style>
+ .cls-1 {
+ fill: #fff;
+ fill-rule: evenodd;
+ }
+ </style>
+ </defs>
+ <path class="cls-1" d="M447.12,0c44.95,0,64.88,26.35,64.88,62.33v105.9c0,34.96-19.41,61.31-63.35,61.31h-1.05c-11.43.04-18.2,12.72-11.81,22.12l75.18,110.64h-91.16l-87.01-124.01c-3.85-5.48-10.16-8.75-16.89-8.75-11.37,0-20.58,9.14-20.58,20.41v112.35h-78.68v-112.35c0-11.27-9.21-20.41-20.58-20.41-6.74,0-13.04,3.27-16.89,8.75l-87.01,124.01H1.02l75.19-110.64c6.39-9.4-.37-22.08-11.81-22.12h-1.05c-43.93,0-63.35-26.35-63.35-61.32V62.33C0,26.35,19.92,0,64.88,0h382.24ZM87.87,70.94c-7.15,0-9.19,2.53-9.19,9.63v69.42c0,6.59,2.04,8.61,8.69,8.61h337.28c6.64,0,8.68-2.03,8.68-8.61v-69.42c0-7.09-2.04-9.63-9.19-9.63H87.87Z"/>
+</svg>
\ No newline at end of file
diff --git a/reactor/demo/tsconfig.json b/reactor/demo/tsconfig.json
new file mode 100644
index 0000000..2627c60
--- /dev/null
+++ b/reactor/demo/tsconfig.json
@@ -0,0 +1,42 @@
+{
+ "compilerOptions": {
+ "target": "ES2017",
+ "lib": [
+ "dom",
+ "dom.iterable",
+ "esnext"
+ ],
+ "allowJs": true,
+ "skipLibCheck": true,
+ "strict": true,
+ "noEmit": true,
+ "esModuleInterop": true,
+ "module": "esnext",
+ "moduleResolution": "bundler",
+ "resolveJsonModule": true,
+ "isolatedModules": true,
+ "jsx": "preserve",
+ "incremental": true,
+ "plugins": [
+ {
+ "name": "next"
+ }
+ ],
+ "paths": {
+ "@/*": [
+ "./*"
+ ]
+ }
+ },
+ "include": [
+ "next-env.d.ts",
+ "**/*.ts",
+ "**/*.tsx",
+ ".next/types/**/*.ts",
+ ".next/dev/types/**/*.ts",
+ "**/*.mts"
+ ],
+ "exclude": [
+ "node_modules"
+ ]
+}
diff --git a/reactor/inference/__init__.py b/reactor/inference/__init__.py
new file mode 100644
index 0000000..0748f4a
--- /dev/null
+++ b/reactor/inference/__init__.py
@@ -0,0 +1 @@
+"""Reactor-specific streaming extensions to the upstream WorldPlay2 package."""
diff --git a/reactor/inference/checkpoint.py b/reactor/inference/checkpoint.py
new file mode 100644
index 0000000..8c8b031
--- /dev/null
+++ b/reactor/inference/checkpoint.py
@@ -0,0 +1,85 @@
+# Modified for the Reactor runtime.
+from __future__ import annotations
+
+import logging
+from pathlib import Path
+
+import torch
+from safetensors.torch import load_file
+
+
+def load_state_dict(
+ path: str,
+ *,
+ prefer_ema: bool = False,
+ device: torch.device | str = "cpu",
+) -> dict[str, torch.Tensor]:
+ """Read a checkpoint onto ``device``.
+
+ A safetensors file is read tensor by tensor from its memory map straight to
+ ``device``, so loading to a GPU never holds the whole state in host memory.
+ """
+ checkpoint_path = Path(path).expanduser()
+ if not checkpoint_path.is_file():
+ raise FileNotFoundError(checkpoint_path)
+ state = (
+ load_file(str(checkpoint_path), device=str(device))
+ if checkpoint_path.suffix == ".safetensors"
+ else torch.load(checkpoint_path, map_location=device, weights_only=False)
+ )
+
+ if isinstance(state, dict) and ("generator" in state or "generator_ema" in state):
+ key = "generator_ema" if prefer_ema and "generator_ema" in state else "generator"
+ state = state[key]
+ for wrapper in ("state_dict", "model_state_dict", "model"):
+ if isinstance(state, dict) and wrapper in state and isinstance(state[wrapper], dict):
+ state = state[wrapper]
+
+ if not isinstance(state, dict) or not state:
+ raise ValueError(f"checkpoint {checkpoint_path} does not contain a state dict")
+
+ prefixes = ("module.", "model.")
+ for prefix in prefixes:
+ if all(key.startswith(prefix) for key in state):
+ state = {key[len(prefix):]: value for key, value in state.items()}
+ return state
+
+
+def load_expert_checkpoint(
+ model,
+ path: str,
+ *,
+ tag: str,
+ prefer_ema: bool = False,
+ strict: bool = True,
+ device: torch.device | str = "cpu",
+ dtype: torch.dtype | None = None,
+ assign: bool = False,
+) -> None:
+ state = load_state_dict(path, prefer_ema=prefer_ema, device=device)
+ if dtype is not None:
+ for key, tensor in state.items():
+ if tensor.is_floating_point() and tensor.dtype != dtype:
+ state[key] = tensor.to(dtype=dtype)
+ provided = set(state)
+ required_prefixes = (
+ "memory_compress.",
+ "action_in_cont.",
+ "action_in_disc.",
+ )
+ absent = [prefix for prefix in required_prefixes if not any(
+ key.startswith(prefix) for key in provided
+ )]
+ if absent:
+ raise ValueError(
+ f"{tag} checkpoint is missing required parameter groups: {absent}"
+ )
+ missing, unexpected = model.load_state_dict(state, strict=strict, assign=assign)
+ logging.info(
+ "%s checkpoint: loaded=%d missing=%d unexpected=%d strict=%s",
+ tag,
+ len(state),
+ len(missing),
+ len(unexpected),
+ strict,
+ )
diff --git a/reactor/inference/chunk_stream.py b/reactor/inference/chunk_stream.py
new file mode 100644
index 0000000..4653222
--- /dev/null
+++ b/reactor/inference/chunk_stream.py
@@ -0,0 +1,136 @@
+"""Per-chunk streaming helpers for ``WorldPlay2Pipeline.stream_world``."""
+
+from __future__ import annotations
+
+import logging
+
+import torch
+import torch.nn.functional as F
+import torchvision.transforms.functional as TF
+
+from .vae import _same_causal_state, amp
+
+
+class FrameEncoder:
+ """One step of the causal VAE encoder: pixel frames -> one y latent ``[16, 1, h, w]``
+ in the VAE's dtype, carrying the causal state passed in."""
+
+ def __init__(self, vae):
+ self.vae = vae
+
+ def new_state(self):
+ from .vae import count_conv3d
+
+ return [None] * count_conv3d(self.vae.model.encoder)
+
+ def step(self, x, state):
+ model = self.vae.model
+ model._enc_conv_idx = [0]
+ out = model.encoder(x.to(self.vae.dtype), feat_cache=state, feat_idx=model._enc_conv_idx)
+ mu, _ = model.conv1(out).chunk(2, dim=1)
+ scale = self.vae.scale
+ mu = (mu - scale[0].view(1, model.z_dim, 1, 1, 1)) * scale[1].view(1, model.z_dim, 1, 1, 1)
+ return mu.to(self.vae.dtype).squeeze(0)
+
+ def agree(self, flag):
+ return flag
+
+
+def _y_row(latent, first, dtype):
+ mask = torch.zeros(4, 1, *latent.shape[2:], device=latent.device, dtype=latent.dtype)
+ if first:
+ mask.fill_(1)
+ return torch.cat([mask, latent], dim=0).to(dtype)
+
+
+class _CausalY:
+ """``y = [4-ch I2V mask | VAE latent of the clip [image, zeros...]]`` produced latent by latent.
+
+ Indexed like the full-horizon volume (``y[:, a:b]``).
+ """
+
+ def __init__(self, encoder, head, tail, dtype):
+ self.encoder, self.head, self.dtype = encoder, head.to(encoder.vae.dtype), dtype
+ self.fixed_state, self.tail = tail
+ self.state = None
+ self.rows = []
+ self.converged = False
+
+ def _extend(self, upto):
+ vae = self.encoder.vae
+ with amp.autocast(dtype=vae.dtype):
+ while not self.converged and len(self.rows) < upto:
+ k = len(self.rows)
+ if k == 0:
+ self.state = self.encoder.new_state()
+ latent = self.encoder.step(self.head, self.state)
+ else:
+ zeros = self.head.new_zeros(*self.head.shape[:2], 4, *self.head.shape[3:])
+ latent = self.encoder.step(zeros, self.state)
+ self.rows.append(_y_row(latent, k == 0, self.dtype))
+ if k > 1 and self.encoder.agree(_same_causal_state(self.fixed_state, self.state)):
+ self.converged = True
+ self.state = None
+
+ def __getitem__(self, index):
+ _, sl = index
+ start, stop = sl.start or 0, sl.stop
+ self._extend(stop)
+ known = len(self.rows)
+ parts = [self.rows[k] for k in range(start, min(stop, known))]
+ if stop > known:
+ parts.append(self.tail.expand(-1, stop - max(start, known), -1, -1))
+ return torch.cat(parts, dim=1)
+
+
+def zero_tail(encoder, height, width, dtype, steps_cap=256):
+ """Encoder state and y latent for the zero frames of clips of ``height x width``."""
+ vae = encoder.vae
+ device = vae.mean.device
+ head = torch.linspace(-1, 1, height * width * 3, device=device,
+ dtype=vae.dtype).view(1, 3, 1, height, width)
+ with amp.autocast(dtype=vae.dtype):
+ state = encoder.new_state()
+ zeros = head.new_zeros(1, 3, 4, height, width)
+ encoder.step(head, state)
+ for step in range(1, steps_cap):
+ before = [v.clone() if isinstance(v, torch.Tensor) else v for v in state]
+ latent = encoder.step(zeros, state)
+ if step > 1 and encoder.agree(_same_causal_state(before, state)):
+ logging.info("I2V zero tail for %dx%d: fixed point after %d encoder steps", height, width, step)
+ return ([v.clone() if isinstance(v, torch.Tensor) else v for v in state],
+ _y_row(latent, False, dtype))
+ raise RuntimeError("the VAE encoder did not reach a zero-input fixed point")
+
+
+class _LatentWindow:
+ """The trailing ``capacity`` latent frames of a world, indexed by absolute latent frame."""
+
+ def __init__(self, buffers, total):
+ self.buffers = buffers # two [16, capacity, h, w] fp32
+ # Shape of the full-horizon latent volume this window stands in for.
+ self.shape = (buffers[0].shape[0], total, *buffers[0].shape[2:])
+ self.which = 0
+ self.base = 0 # absolute index of buffer frame 0
+ self.length = 0
+
+ def write(self, start, latent):
+ n = latent.shape[1]
+ cap = self.buffers[0].shape[1]
+ if start + n - self.base > cap:
+ keep = cap - n
+ src = self.buffers[self.which]
+ dst = self.buffers[1 - self.which]
+ first = start - keep
+ dst[:, :keep].copy_(src[:, first - self.base:start - self.base])
+ self.which, self.base = 1 - self.which, first
+ self.buffers[self.which][:, start - self.base:start - self.base + n].copy_(latent)
+ self.length = start + n
+
+ def __getitem__(self, index):
+ _, sl = index
+ start, stop = sl.start or 0, sl.stop
+ if start < self.base:
+ raise IndexError(f"latent {start} is outside the kept window (from {self.base})")
+ buf = self.buffers[self.which]
+ return buf[:, start - self.base:stop - self.base]
diff --git a/reactor/inference/model.py b/reactor/inference/model.py
new file mode 100644
index 0000000..503f34d
--- /dev/null
+++ b/reactor/inference/model.py
@@ -0,0 +1,2224 @@
+# Copyright 2024-2025 The Alibaba Wan Team Authors. All rights reserved.
+# Modified for the Reactor runtime.
+import math
+from collections import OrderedDict
+
+import torch
+import torch.nn as nn
+import torch.nn.functional as F
+from einops import rearrange, repeat
+from torch.nn.attention import SDPBackend, sdpa_kernel
+
+from diffusers.configuration_utils import ConfigMixin, register_to_config
+from diffusers.models.modeling_utils import ModelMixin
+
+from worldplay2.models.attention import (
+ flash_attention,
+ flash_attention_dense,
+ resolve_attention_backend,
+ sage_attention,
+)
+from worldplay2.models.kernels import (
+ action_mlp as run_compiled_action_mlp,
+ ffn as run_compiled_ffn,
+ gated_residual as run_compiled_gated_residual,
+ layer_norm_modulation as run_fused_layer_norm_modulation,
+ qk_norm_rope as run_qk_norm_rope,
+)
+from worldplay2.models.fp8 import fp8_autocast
+from worldplay2.distributed.ops import get_rank, get_world_size
+from worldplay2.distributed.ulysses import (
+ gather_sequence,
+ output_all_to_all,
+ packed_qkv_all_to_all,
+)
+
+from .sequence import shard_sequence
+
+__all__ = ['WorldPlay2Model']
+
+# Precision of the sinusoidal timestep embedding and of the eager RoPE products.
+TABLE_DTYPE = torch.float64
+
+
+def _compact_identical_rows(value):
+ first = value[:, :1]
+ if value.stride(-1) == 1 and torch.equal(
+ value.view(torch.uint8), first.expand_as(value).view(torch.uint8)
+ ):
+ return first.clone().expand_as(value)
+ return value
+
+
+def sinusoidal_embedding_1d(dim, position):
+ # preprocess
+ assert dim % 2 == 0
+ half = dim // 2
+ position = position.type(TABLE_DTYPE)
+
+ # calculation
+ sinusoid = torch.outer(
+ position, torch.pow(10000, -torch.arange(half).to(position).div(half)))
+ x = torch.cat([torch.cos(sinusoid), torch.sin(sinusoid)], dim=1)
+ return x
+
+
[email protected]('cuda', enabled=False)
+def rope_params(max_seq_len, dim, theta=10000):
+ assert dim % 2 == 0
+ freqs = torch.outer(
+ torch.arange(max_seq_len),
+ 1.0 / torch.pow(theta,
+ torch.arange(0, dim, 2).to(torch.float64).div(dim)))
+ freqs = torch.polar(torch.ones_like(freqs), freqs)
+ return freqs
+
+
[email protected]('cuda', enabled=False)
+def rope_apply(x, grid_sizes, freqs):
+ n, c = x.size(2), x.size(3) // 2
+
+ # split freqs
+ freqs = freqs.split([c - 2 * (c // 3), c // 3, c // 3], dim=1)
+
+ # loop over samples
+ output = []
+ for i, (f, h, w) in enumerate(grid_sizes.tolist()):
+ seq_len = f * h * w
+
+ # precompute multipliers
+ x_i = torch.view_as_complex(x[i, :seq_len].to(TABLE_DTYPE).reshape(
+ seq_len, n, -1, 2))
+ freqs_i = torch.cat([
+ freqs[0][:f].view(f, 1, 1, -1).expand(f, h, w, -1),
+ freqs[1][:h].view(1, h, 1, -1).expand(f, h, w, -1),
+ freqs[2][:w].view(1, 1, w, -1).expand(f, h, w, -1)
+ ],
+ dim=-1).reshape(seq_len, 1, -1)
+
+ # apply rotary embedding
+ x_i = torch.view_as_real(x_i * freqs_i).flatten(2)
+ x_i = torch.cat([x_i, x[i, seq_len:]])
+
+ # append to collection
+ output.append(x_i)
+ return torch.stack(output).float()
+
+
[email protected]('cuda', enabled=False)
+def rope_apply_flat(x, freqs_flat):
+ """Apply RoPE given a per-token freqs tensor.
+
+ Used by the memory-compress path where the sequence is a heterogeneous
+ concat of context/generate tokens, so a single (F, H, W) grid_sizes
+ description is no longer sufficient.
+
+ Args:
+ x (Tensor): Shape [B, L, Nh, C_head] (real).
+ freqs_flat (Tensor): complex64, shape [L, C_head / 2].
+
+ Returns:
+ Tensor: Same shape as x, with RoPE applied (float).
+ """
+ b, l, n = x.shape[:3]
+ x_c = torch.view_as_complex(x.to(TABLE_DTYPE).reshape(b, l, n, -1, 2))
+ freqs_i = freqs_flat.view(1, l, 1, -1)
+ x_out = torch.view_as_real(x_c * freqs_i).flatten(2)
+ return x_out.float().view(b, l, n, -1)
+
+
+def build_freqs_flat(freqs, grid_size):
+ """Build per-token RoPE freqs for a single grid (F, H, W).
+
+ Returns a complex tensor of shape [F*H*W, C_head/2].
+ """
+ f, h, w = int(grid_size[0]), int(grid_size[1]), int(grid_size[2])
+ c = freqs.size(1)
+ freqs_split = freqs.split([c - 2 * (c // 3), c // 3, c // 3], dim=1)
+ freqs_i = torch.cat([
+ freqs_split[0][:f].view(f, 1, 1, -1).expand(f, h, w, -1),
+ freqs_split[1][:h].view(1, h, 1, -1).expand(f, h, w, -1),
+ freqs_split[2][:w].view(1, 1, w, -1).expand(f, h, w, -1)
+ ], dim=-1).reshape(f * h * w, -1)
+ return freqs_i
+
+
+def build_freqs_rows(freqs, frames, h, w):
+ """``build_freqs_flat`` restricted to the temporal positions ``frames`` (a slice)."""
+ c = freqs.size(1)
+ f0, f1, f2 = freqs.split([c - 2 * (c // 3), c // 3, c // 3], dim=1)
+ t = f0[frames]
+ n = t.shape[0]
+ return torch.cat([
+ t[:, None, None, :].expand(n, h, w, -1),
+ f1[:h][None, :, None, :].expand(n, h, w, -1),
+ f2[:w][None, None, :, :].expand(n, h, w, -1),
+ ], dim=-1).reshape(n * h * w, -1)
+
+
+class WorldPlay2RMSNorm(nn.Module):
+
+ def __init__(self, dim, eps=1e-5):
+ super().__init__()
+ self.dim = dim
+ self.eps = eps
+ self.weight = nn.Parameter(torch.ones(dim))
+
+ def forward(self, x):
+ r"""
+ Args:
+ x(Tensor): Shape [B, L, C]
+ """
+ return self._norm(x.float()).type_as(x) * self.weight
+
+ def _norm(self, x):
+ return x * torch.rsqrt(x.pow(2).mean(dim=-1, keepdim=True) + self.eps)
+
+
+class WorldPlay2LayerNorm(nn.LayerNorm):
+
+ def __init__(self, dim, eps=1e-6, elementwise_affine=False):
+ super().__init__(dim, elementwise_affine=elementwise_affine, eps=eps)
+
+ def forward(self, x):
+ r"""
+ Args:
+ x(Tensor): Shape [B, L, C]
+ """
+ return super().forward(x.float()).type_as(x)
+
+
+class WorldPlay2SelfAttention(nn.Module):
+
+ def __init__(self,
+ dim,
+ num_heads,
+ window_size=(-1, -1),
+ qk_norm=True,
+ eps=1e-6):
+ assert dim % num_heads == 0
+ super().__init__()
+ self.dim = dim
+ self.num_heads = num_heads
+ self.head_dim = dim // num_heads
+ self.window_size = window_size
+ self.qk_norm = qk_norm
+ self.eps = eps
+ self.attention_backend = 'flash'
+
+ # layers
+ self.q = nn.Linear(dim, dim)
+ self.k = nn.Linear(dim, dim)
+ self.v = nn.Linear(dim, dim)
+ self.o = nn.Linear(dim, dim)
+ self.norm_q = WorldPlay2RMSNorm(dim, eps=eps) if qk_norm else nn.Identity()
+ self.norm_k = WorldPlay2RMSNorm(dim, eps=eps) if qk_norm else nn.Identity()
+ self.compile_qk_rope = True
+ self.qk_rope_compile_failed = False
+ self.qkv = None
+ # Cache-write attention: 'mask', 'bias', 'split' or 'flash'.
+ self.prefill_attention = 'mask'
+ self.prefill_bias = None
+
+ @staticmethod
+ def _kv_slot(kv_cache_entry, like, length):
+ """The entry's preallocated K/V storage when ``length`` tokens fit, else None.
+
+ ``kv_cache_entry['_buffers']`` (from ``WorldPlay2Model.init_kv_cache``)
+ holds one ``[1, capacity, heads, head_dim]`` K and V per layer.
+ """
+ slot = kv_cache_entry.get('_buffers')
+ if slot is None or like.shape[0] != 1 or length > slot['capacity']:
+ return None
+ if slot['k'] is None:
+ shape = (1, slot['capacity'], *like.shape[2:])
+ slot['k'] = torch.empty(shape, device=like.device, dtype=like.dtype)
+ slot['v'] = torch.empty(shape, device=like.device, dtype=like.dtype)
+ if slot['k'].shape[2:] != like.shape[2:] or slot['k'].dtype != like.dtype:
+ return None
+ return slot
+
+ @staticmethod
+ def _holds(slot, cached):
+ return cached is not None and cached.data_ptr() == slot['k'].data_ptr()
+
+ def fuse_qkv_projections(self) -> None:
+ """Replace the three self-attention projections with one exact GEMM."""
+ if self.qkv is not None:
+ return
+ if not all(hasattr(self, name) for name in ("q", "k", "v")):
+ raise RuntimeError("Q/K/V projections are unavailable for fusion")
+
+ projections = (self.q, self.k, self.v)
+ reference = projections[0]
+ if any(
+ projection.in_features != reference.in_features
+ or projection.out_features != reference.out_features
+ or (projection.bias is None) != (reference.bias is None)
+ for projection in projections[1:]
+ ):
+ raise RuntimeError("Q/K/V projection shapes are incompatible")
+
+ qkv = nn.Linear(
+ reference.in_features,
+ 3 * reference.out_features,
+ bias=reference.bias is not None,
+ device=reference.weight.device,
+ dtype=reference.weight.dtype,
+ )
+ with torch.no_grad():
+ qkv.weight.copy_(torch.cat(
+ [projection.weight for projection in projections], dim=0))
+ if qkv.bias is not None:
+ qkv.bias.copy_(torch.cat(
+ [projection.bias for projection in projections], dim=0))
+
+ self.qkv = qkv
+ # Do not retain duplicate parameters: fusion must not increase FSDP
+ # storage or checkpoint memory after installation.
+ del self.q
+ del self.k
+ del self.v
+
+ def forward(self, x, seq_lens, grid_sizes, freqs, freqs_flat=None,
+ ar=False, cmp_token_count=0, cmp_chunk_token_count=0,
+ tmp_token_count=0,
+ kv_cache_entry=None, cache_write=False,
+ sink_token_count=0, cache_update=None):
+ r"""
+ Args:
+ x(Tensor): Shape [B, L, num_heads, C / num_heads]
+ seq_lens(Tensor): Shape [B]
+ grid_sizes(Tensor): Shape [B, 3], the second dimension contains (F, H, W).
+ Ignored when ``freqs_flat`` is provided.
+ freqs(Tensor): Rope freqs, shape [1024, C / num_heads / 2]
+ freqs_flat(Tensor, optional): Per-token complex RoPE tensor of shape
+ ``[L, C / num_heads / 2]``. When provided, RoPE is applied via
+ ``rope_apply_flat`` (used by the memory-compress path where
+ the sequence is a heterogeneous concat of context/generate
+ tokens). When ``None``, falls back to the original grid-based
+ ``rope_apply``.
+ ar(bool): when True, run the chunk-AR (KV-cache) self-attention.
+ Cache behavior is selected by ``cache_write``:
+ * prefill (cache_write=True): ``x`` = ctx tokens only
+ (``[cmp | tmp]``). A chunk-causal mask is applied (cmp
+ chunk-causal to cmp; tmp -> all cmp+tmp; no pred rows).
+ The post-RoPE ctx K/V are OVERWRITE-stored into
+ ``kv_cache_entry['k_vision'/'v_vision']``. Returns the
+ ctx output (threaded layer-to-layer by the caller).
+ * cache-hit (cache_write=False): ``x`` = pred tokens only.
+ K/V = ``[cached_ctx | pred]`` (no mask -- pred sees all),
+ via the selected backend. ``cached_*`` may be None on the
+ first chunk (no compressor ctx) -> pred-only attention.
+ kv_cache_entry(dict, optional): per-layer ``{'k_vision','v_vision'}``
+ slot (see ``WorldPlay2Model.init_kv_cache``).
+ cache_write(bool): write/update context cache vs read it for denoise.
+ """
+ b, s, n, d = *x.shape[:2], self.num_heads, self.head_dim
+
+ if self.qkv is not None:
+ q_projection, k_projection, v_projection = self.qkv(x).chunk(
+ 3, dim=-1)
+ else:
+ q_projection = self.q(x)
+ k_projection = self.k(x)
+ v_projection = self.v(x)
+ v = v_projection.view(b, s, n, d)
+
+ if freqs_flat is not None:
+ if self.qk_norm:
+ q, k, compiled = run_qk_norm_rope(
+ q_projection,
+ k_projection,
+ self.norm_q.weight,
+ self.norm_k.weight,
+ freqs_flat,
+ eps=self.eps,
+ num_heads=self.num_heads,
+ head_dim=self.head_dim,
+ compile_enabled=(
+ self.compile_qk_rope
+ and not self.qk_rope_compile_failed
+ ),
+ )
+ if self.compile_qk_rope and not compiled:
+ self.qk_rope_compile_failed = True
+ else:
+ q = q_projection.view(b, s, n, d)
+ k = k_projection.view(b, s, n, d)
+ q = rope_apply_flat(q, freqs_flat)
+ k = rope_apply_flat(k, freqs_flat)
+ else:
+ q = self.norm_q(q_projection).view(b, s, n, d)
+ k = self.norm_k(k_projection).view(b, s, n, d)
+ q = rope_apply(q, grid_sizes, freqs)
+ k = rope_apply(k, grid_sizes, freqs)
+
+ # RoPE is evaluated in FP32 for stability, but attention and packed
+ # QKV communication use the value/projection dtype (BF16 in inference).
+ # This also prevents torch.stack in packed QKV A2A from promoting V
+ # and tripling its communication precision.
+ q = q.to(v.dtype)
+ k = k.to(v.dtype)
+
+ use_sp = getattr(self, "use_sp", False)
+ if use_sp:
+ if not torch.all(seq_lens == seq_lens[0]):
+ raise ValueError(
+ "sequence parallel requires equal sequence lengths "
+ "within the batch")
+ global_sequence = int(seq_lens[0].item())
+ q, k, v = packed_qkv_all_to_all(
+ q, k, v, global_sequence=global_sequence)
+ else:
+ global_sequence = q.shape[1]
+
+ def finish_attention(out):
+ if use_sp:
+ out = output_all_to_all(
+ out,
+ global_sequence=global_sequence,
+ num_heads=self.num_heads,
+ )
+ return self.o(out.flatten(2))
+
+ if not ar:
+ attention_fn = (
+ sage_attention
+ if self.attention_backend == 'sage' else flash_attention
+ )
+ x = attention_fn(
+ q=q, k=k, v=v, k_lens=seq_lens,
+ window_size=self.window_size)
+ return finish_attention(x)
+
+ assert kv_cache_entry is not None, (
+ "self_attn(ar=True) requires kv_cache_entry "
+ "(use WorldPlay2Model.init_kv_cache()).")
+
+ cache_initialized = kv_cache_entry.get('k_vision') is not None
+ if not cache_write:
+ # Case 1: regular AR denoise. Read the persistent context cache;
+ # an empty cache on the very first generated chunk is valid.
+ out = self._attend_with_ar_cache(q, k, v, kv_cache_entry)
+ elif not cache_initialized:
+ # Case 2: first history prefill. Bootstrap the cache as
+ # [sink | cmp | tmp], including the sink-specific attention mask.
+ out = self._initialize_ar_cache(
+ q=q,
+ k=k,
+ v=v,
+ kv_cache_entry=kv_cache_entry,
+ sink_token_count=sink_token_count,
+ cmp_token_count=cmp_token_count,
+ cmp_chunk_token_count=cmp_chunk_token_count,
+ tmp_token_count=tmp_token_count,
+ )
+ else:
+ # Case 3: later history prefill. Keep [sink | old_cmp], discard
+ # the previous tmp, then append [new_cmp | new_tmp].
+ if cache_update is None:
+ raise ValueError("AR cache update metadata is required")
+ out = self._update_ar_cache(
+ q, k, v, kv_cache_entry, cache_update,
+ cmp_chunk_token_count)
+ return finish_attention(out)
+
+ def _initialize_ar_cache(
+ self,
+ q,
+ k,
+ v,
+ kv_cache_entry,
+ sink_token_count,
+ cmp_token_count,
+ cmp_chunk_token_count,
+ tmp_token_count,
+ ):
+ """Bootstrap ``[sink | cmp | tmp]`` on the first history prefill."""
+ sequence_length = q.shape[1]
+ expected_length = (
+ sink_token_count + cmp_token_count + tmp_token_count
+ )
+ if sequence_length != expected_length:
+ raise ValueError(
+ f"initial AR cache expects {expected_length} tokens, "
+ f"got {sequence_length}"
+ )
+
+ q_attn = q.transpose(1, 2)
+ k_attn = k.transpose(1, 2)
+ v_attn = v.transpose(1, 2)
+ cmp_end = sink_token_count + cmp_token_count
+ if (self.prefill_attention == 'flash' and sequence_length
+ and 0 < cmp_token_count <= cmp_chunk_token_count and tmp_token_count):
+ # Sink rows see the sink, cmp rows see [sink | cmp], tmp rows see everything.
+ parts = []
+ if sink_token_count:
+ parts.append(flash_attention_dense(
+ q[:, :sink_token_count], k[:, :sink_token_count], v[:, :sink_token_count]))
+ parts.append(flash_attention_dense(q[:, sink_token_count:cmp_end], k[:, :cmp_end], v[:, :cmp_end]))
+ parts.append(flash_attention_dense(q[:, cmp_end:], k, v))
+ out = torch.cat(parts, dim=1).transpose(1, 2)
+ elif (self.prefill_attention == 'split' and sequence_length
+ and 0 < cmp_token_count <= cmp_chunk_token_count and tmp_token_count):
+ # Sink rows see the sink, cmp rows see [sink | cmp], tmp rows see everything.
+ backend = SDPBackend.EFFICIENT_ATTENTION
+ parts = []
+ with sdpa_kernel(backend):
+ if sink_token_count:
+ parts.append(F.scaled_dot_product_attention(
+ q_attn[:, :, :sink_token_count], k_attn[:, :, :sink_token_count],
+ v_attn[:, :, :sink_token_count]))
+ parts.append(F.scaled_dot_product_attention(
+ q_attn[:, :, sink_token_count:cmp_end], k_attn[:, :, :cmp_end], v_attn[:, :, :cmp_end]))
+ parts.append(F.scaled_dot_product_attention(
+ q_attn[:, :, cmp_end:], k_attn, v_attn))
+ out = torch.cat(parts, dim=2)
+ elif sequence_length == 0:
+ out = torch.zeros_like(q_attn)
+ elif cmp_chunk_token_count <= 0:
+ out = F.scaled_dot_product_attention(
+ q_attn, k_attn, v_attn, is_causal=False)
+ else:
+ mask = torch.zeros(
+ sequence_length,
+ sequence_length,
+ dtype=torch.bool,
+ device=q.device,
+ )
+ if sink_token_count:
+ mask[:sink_token_count, :sink_token_count] = True
+ for chunk_start in range(
+ 0, cmp_token_count, cmp_chunk_token_count
+ ):
+ query_start = sink_token_count + chunk_start
+ query_end = min(
+ query_start + cmp_chunk_token_count,
+ sink_token_count + cmp_token_count,
+ )
+ mask[query_start:query_end, :query_end] = True
+ tmp_start = sink_token_count + cmp_token_count
+ if tmp_token_count:
+ mask[tmp_start:expected_length, :expected_length] = True
+ out = F.scaled_dot_product_attention(
+ q_attn,
+ k_attn,
+ v_attn,
+ attn_mask=mask.unsqueeze(0).unsqueeze(0),
+ is_causal=False,
+ )
+
+ slot = self._kv_slot(kv_cache_entry, k, sequence_length)
+ if slot is not None:
+ slot['k'][:, :sequence_length].copy_(k)
+ slot['v'][:, :sequence_length].copy_(v)
+ kv_cache_entry['k_vision'] = slot['k'][:, :sequence_length]
+ kv_cache_entry['v_vision'] = slot['v'][:, :sequence_length]
+ else:
+ kv_cache_entry['k_vision'] = k.detach()
+ kv_cache_entry['v_vision'] = v.detach()
+ return out.transpose(1, 2)
+
+ def _update_ar_cache(self, q, k, v, kv_cache_entry, cache_update,
+ cmp_chunk_token_count):
+ r"""Replace old tmp and append ``[new_cmp | new_tmp]``.
+
+ ``q/k/v`` contain only ``[new_cmp | new_tmp]``. The persistent prefix
+ ``[sink | old_cmp]`` is sliced directly from ``k_vision/v_vision``;
+ the previous tmp suffix is discarded. After attention, the cache is
+ replaced by ``[cached_prefix | new_cmp | new_tmp]``.
+ """
+ n_new_cmp = int(cache_update['n_new_cmp'])
+ n_tmp = int(cache_update['n_tmp'])
+ cached_prefix_tokens = int(cache_update['cached_prefix_tokens'])
+ Sq = q.shape[1]
+ assert Sq == n_new_cmp + n_tmp, (
+ f"ctx prefill expects q = [new_cmp | tmp] "
+ f"({n_new_cmp}+{n_tmp}), got {Sq}")
+
+ cached_k = kv_cache_entry.get('k_vision', None)
+ cached_v = kv_cache_entry.get('v_vision', None)
+ assert cached_k is not None and cached_v is not None, (
+ "Incremental prefill requires an existing k_vision/v_vision.")
+ assert cached_prefix_tokens <= cached_k.shape[1], (
+ f"cached_prefix_tokens ({cached_prefix_tokens}) exceeds cached "
+ f"length ({cached_k.shape[1]}).")
+ L_pre = cached_prefix_tokens
+ L_tot = L_pre + Sq
+ slot = self._kv_slot(kv_cache_entry, k, L_tot)
+ if slot is not None and self._holds(slot, cached_k):
+ slot['k'][:, L_pre:L_tot].copy_(k)
+ slot['v'][:, L_pre:L_tot].copy_(v)
+ k_full = slot['k'][:, :L_tot]
+ v_full = slot['v'][:, :L_tot]
+ else:
+ pre_k = cached_k[:, :L_pre].to(k.device).to(k.dtype)
+ pre_v = cached_v[:, :L_pre].to(v.device).to(v.dtype)
+ k_full = torch.cat([pre_k, k], dim=1)
+ v_full = torch.cat([pre_v, v], dim=1)
+
+ # Column index landmarks within k_full = [sink | old_cmp | new_cmp | tmp]
+ cmp_new_c0 = L_pre # first new_cmp column
+ cmp_new_c1 = L_pre + n_new_cmp # end of new_cmp / start of tmp
+ tmp_c1 = L_tot # end of tmp
+ ccc = cmp_chunk_token_count if cmp_chunk_token_count > 0 else n_new_cmp
+
+ if self.prefill_attention == 'flash' and 0 < n_new_cmp <= ccc and n_tmp > 0:
+ # new_cmp rows see [:cmp_new_c1], tmp rows see everything.
+ out = torch.cat([
+ flash_attention_dense(q[:, :n_new_cmp], k_full[:, :cmp_new_c1], v_full[:, :cmp_new_c1]),
+ flash_attention_dense(q[:, n_new_cmp:], k_full, v_full),
+ ], dim=1)
+ elif self.prefill_attention == 'split' and 0 < n_new_cmp <= ccc and n_tmp > 0:
+ # new_cmp rows see [:cmp_new_c1], tmp rows see everything.
+ backend = SDPBackend.EFFICIENT_ATTENTION
+ with sdpa_kernel(backend):
+ out_cmp = F.scaled_dot_product_attention(
+ q[:, :n_new_cmp].transpose(1, 2),
+ k_full[:, :cmp_new_c1].transpose(1, 2),
+ v_full[:, :cmp_new_c1].transpose(1, 2))
+ out_tmp = F.scaled_dot_product_attention(
+ q[:, n_new_cmp:].transpose(1, 2),
+ k_full.transpose(1, 2), v_full.transpose(1, 2))
+ out = torch.cat([out_cmp, out_tmp], dim=2).transpose(1, 2)
+ else:
+ if self.prefill_attention == 'bias' and self.prefill_bias is not None:
+ attn_mask = self.prefill_bias(
+ Sq, L_tot, L_pre, n_new_cmp, n_tmp,
+ cmp_chunk_token_count, q.dtype, q.device)
+ else:
+ # Build mask over QUERY rows (Sq) x all columns (L_tot).
+ attn_mask = torch.zeros(Sq, L_tot, dtype=torch.bool, device=q.device)
+ if n_new_cmp > 0:
+ # new_cmp is chunk-causal *within itself* and sees all prefix
+ # (sink + old_cmp), but NOT tmp. Split new_cmp into cmp-chunks.
+ for rs in range(0, n_new_cmp, ccc):
+ re = min(rs + ccc, n_new_cmp)
+ # columns: everything up to and including this cmp sub-chunk
+ ke = cmp_new_c0 + re
+ ke = min(ke, cmp_new_c1)
+ attn_mask[rs:re, :ke] = True
+ if n_tmp > 0:
+ # tmp rows (after new_cmp in q) see EVERYTHING (sink+cmp+tmp).
+ attn_mask[n_new_cmp:Sq, :tmp_c1] = True
+ attn_mask = attn_mask.unsqueeze(0).unsqueeze(0)
+
+ out = F.scaled_dot_product_attention(
+ q.transpose(1, 2), k_full.transpose(1, 2), v_full.transpose(1, 2),
+ attn_mask=attn_mask, is_causal=False)
+ out = out.transpose(1, 2) # [B, Sq, H, D]
+
+ kv_cache_entry['k_vision'] = k_full.detach()
+ kv_cache_entry['v_vision'] = v_full.detach()
+ return out
+
+ def _attend_with_ar_cache(self, q, k, v, kv_cache_entry):
+ """Attend over ``[cached ctx | pred]`` with the selected backend."""
+ cached_k = kv_cache_entry.get('k_vision')
+ cached_v = kv_cache_entry.get('v_vision')
+ if cached_k is not None:
+ n_ctx = cached_k.shape[1]
+ total = n_ctx + k.shape[1]
+ slot = self._kv_slot(kv_cache_entry, k, total)
+ if slot is not None and self._holds(slot, cached_k):
+ slot['k'][:, n_ctx:total].copy_(k)
+ slot['v'][:, n_ctx:total].copy_(v)
+ k = slot['k'][:, :total]
+ v = slot['v'][:, :total]
+ else:
+ k = torch.cat([cached_k.to(k.device, k.dtype), k], dim=1)
+ v = torch.cat([cached_v.to(v.device, v.dtype), v], dim=1)
+ if self.attention_backend == 'sage':
+ return sage_attention(q, k, v, causal=False)
+ return flash_attention_dense(q, k, v, causal=False)
+
+
+
+class WorldPlay2CrossAttention(WorldPlay2SelfAttention):
+
+ def __init__(self, *args, **kwargs):
+ super().__init__(*args, **kwargs)
+ self.conditioning_cache_enabled = True
+ # Keyed by the context tensor itself: torch.Tensor hashes and compares
+ # by identity, so the key doubles as the strong reference that keeps a
+ # stale entry from ever matching a different tensor.
+ self._context_kv_cache: dict[torch.Tensor, tuple] = {}
+
+ def clear_conditioning_cache(self) -> None:
+ self._context_kv_cache.clear()
+
+ def _get_context_kv(self, context):
+ if not self.conditioning_cache_enabled:
+ return self.norm_k(self.k(context)), self.v(context)
+
+ entry = self._context_kv_cache.get(context)
+ if entry is not None:
+ return entry
+
+ key_tensor = self.norm_k(self.k(context)).detach()
+ value_tensor = self.v(context).detach()
+ self._context_kv_cache[context] = (key_tensor, value_tensor)
+ return key_tensor, value_tensor
+
+ def forward(self, x, context, context_lens):
+ r"""
+ Args:
+ x(Tensor): Shape [B, L1, C]
+ context(Tensor): Shape [B, L2, C]
+ context_lens(Tensor): Shape [B]
+ """
+ b, n, d = x.size(0), self.num_heads, self.head_dim
+
+ # compute query, key, value
+ q = self.norm_q(self.q(x)).view(b, -1, n, d)
+ k, v = self._get_context_kv(context)
+ k = k.view(b, -1, n, d)
+ v = v.view(b, -1, n, d)
+
+ # compute attention
+ x = flash_attention(q, k, v, k_lens=context_lens)
+
+ # output
+ x = x.flatten(2)
+ x = self.o(x)
+ return x
+
+
+class WorldPlay2AttentionBlock(nn.Module):
+
+ def __init__(self,
+ dim,
+ ffn_dim,
+ num_heads,
+ window_size=(-1, -1),
+ qk_norm=True,
+ cross_attn_norm=False,
+ eps=1e-6):
+ super().__init__()
+ self.dim = dim
+ self.ffn_dim = ffn_dim
+ self.num_heads = num_heads
+ self.window_size = window_size
+ self.qk_norm = qk_norm
+ self.cross_attn_norm = cross_attn_norm
+ self.eps = eps
+
+ # layers
+ self.norm1 = WorldPlay2LayerNorm(dim, eps)
+ self.self_attn = WorldPlay2SelfAttention(dim, num_heads, window_size, qk_norm,
+ eps)
+ self.norm3 = WorldPlay2LayerNorm(
+ dim, eps,
+ elementwise_affine=True) if cross_attn_norm else nn.Identity()
+ self.cross_attn = WorldPlay2CrossAttention(dim, num_heads, (-1, -1), qk_norm,
+ eps)
+ self.norm2 = WorldPlay2LayerNorm(dim, eps)
+ self.ffn = nn.Sequential(
+ nn.Linear(dim, ffn_dim), nn.GELU(approximate='tanh'),
+ nn.Linear(ffn_dim, dim))
+
+ # modulation
+ self.modulation = nn.Parameter(torch.randn(1, 6, dim) / dim**0.5)
+ self.compile_block_glue = True
+ self.compile_ffn = True
+
+ def forward(
+ self,
+ x,
+ e,
+ seq_lens,
+ grid_sizes,
+ freqs,
+ context,
+ context_lens,
+ vec_action,
+ freqs_flat=None,
+ ar=False,
+ cmp_token_count=0,
+ cmp_chunk_token_count=0,
+ tmp_token_count=0,
+ kv_cache_entry=None,
+ cache_write=False,
+ sink_token_count=0,
+ cache_update=None,
+ ):
+ r"""
+ Args:
+ x(Tensor): Shape [B, L, C]
+ e(Tensor): Shape [B, L1, 6, C]
+ seq_lens(Tensor): Shape [B], length of each sequence in batch
+ grid_sizes(Tensor): Shape [B, 3], the second dimension contains (F, H, W)
+ freqs(Tensor): Rope freqs, shape [1024, C / num_heads / 2]
+ freqs_flat(Tensor, optional): Per-token RoPE freqs for the
+ memory-compress path; forwarded to ``self_attn``.
+ ar(bool): when True, run the chunk-AR (KV-cache) self-attention.
+ kv_cache_entry/cache_write: forwarded to
+ ``self_attn`` for the chunk-AR prefill / cache-hit paths.
+ cache_update(dict, optional): metadata for replacing the old tmp
+ suffix and appending the new cmp/tmp tokens.
+ """
+ assert e.dtype == torch.float32
+ with torch.amp.autocast('cuda', dtype=torch.float32):
+ if e.stride(1) == 0:
+ e = (self.modulation.unsqueeze(0) + e[:, :1]).expand_as(e).chunk(
+ 6, dim=2)
+ else:
+ e = (self.modulation.unsqueeze(0) + e).chunk(6, dim=2)
+ assert e[0].dtype == torch.float32
+
+ # self-attention (BI when ar=False; chunk-AR KV-cache when ar=True)
+ attn_in, _ = run_fused_layer_norm_modulation(
+ x,
+ e[1].squeeze(2),
+ e[0].squeeze(2),
+ eps=self.eps,
+ enabled=self.compile_block_glue,
+ )
+ y = self.self_attn(
+ attn_in, seq_lens, grid_sizes, freqs, freqs_flat=freqs_flat,
+ ar=ar,
+ cmp_token_count=cmp_token_count,
+ cmp_chunk_token_count=cmp_chunk_token_count,
+ tmp_token_count=tmp_token_count,
+ kv_cache_entry=kv_cache_entry,
+ cache_write=cache_write,
+ sink_token_count=sink_token_count,
+ cache_update=cache_update)
+ x, _ = run_compiled_gated_residual(
+ x,
+ y,
+ e[2].squeeze(2),
+ enabled=self.compile_block_glue,
+ )
+
+ # cross-attention & ffn function
+ def cross_attn_ffn(x, context, context_lens, e):
+ cross_input = self.norm3(x)
+ cross_output = self.cross_attn(
+ cross_input, context, context_lens)
+ x = x + cross_output
+
+ # mlp inject action instead of attention
+ if vec_action is not None:
+ x, _ = run_compiled_action_mlp(
+ x,
+ vec_action,
+ self.img_action_mlp[0].weight,
+ self.img_action_mlp[0].bias,
+ self.img_action_mlp[2].weight,
+ self.img_action_mlp[2].bias,
+ enabled=self.compile_block_glue,
+ )
+
+ ffn_in, _ = run_fused_layer_norm_modulation(
+ x,
+ e[4].squeeze(2),
+ e[3].squeeze(2),
+ eps=self.eps,
+ enabled=self.compile_block_glue,
+ )
+ if getattr(self.ffn, "uses_fp8", False):
+ y = self.ffn(ffn_in.to(x.dtype))
+ else:
+ y, _ = run_compiled_ffn(
+ ffn_in,
+ self.ffn[0].weight,
+ self.ffn[0].bias,
+ self.ffn[2].weight,
+ self.ffn[2].bias,
+ enabled=self.compile_ffn,
+ )
+ x, _ = run_compiled_gated_residual(
+ x,
+ y,
+ e[5].squeeze(2),
+ enabled=self.compile_block_glue,
+ )
+ return x
+
+ x = cross_attn_ffn(x, context, context_lens, e)
+ return x
+
+
+class Head(nn.Module):
+
+ def __init__(self, dim, out_dim, patch_size, eps=1e-6):
+ super().__init__()
+ self.dim = dim
+ self.out_dim = out_dim
+ self.patch_size = patch_size
+ self.eps = eps
+
+ # layers
+ out_dim = math.prod(patch_size) * out_dim
+ self.norm = WorldPlay2LayerNorm(dim, eps)
+ self.head = nn.Linear(dim, out_dim)
+
+ # modulation
+ self.modulation = nn.Parameter(torch.randn(1, 2, dim) / dim**0.5)
+ self._active_block_index = None
+ self._last_endpoint_output = None
+
+ def make_fixed_pdd(self, num_blocks: int = 2) -> None:
+ num_blocks = int(num_blocks)
+ if num_blocks <= 0:
+ raise ValueError("fixed PDD block count must be positive")
+ if hasattr(self, "block_weight"):
+ if self._num_fixed_pdd_blocks != num_blocks:
+ raise ValueError("fixed PDD block count mismatch")
+ return
+ self._num_fixed_pdd_blocks = num_blocks
+ output_dim = self.head.out_features
+ self.block_weight = nn.Parameter(torch.empty(
+ num_blocks,
+ 2 * output_dim,
+ self.dim,
+ device=self.head.weight.device,
+ dtype=self.head.weight.dtype,
+ ))
+ self.block_bias = nn.Parameter(torch.empty(
+ num_blocks,
+ 2 * output_dim,
+ device=self.head.bias.device,
+ dtype=self.head.bias.dtype,
+ ))
+ del self.head
+
+ def set_active_block(self, block_index: int) -> None:
+ if not hasattr(self, "block_weight"):
+ raise RuntimeError("set_active_block requires a fixed PDD head")
+ block_index = int(block_index)
+ if not 0 <= block_index < self._num_fixed_pdd_blocks:
+ raise IndexError(
+ f"fixed PDD block index {block_index} is out of range "
+ f"[0, {self._num_fixed_pdd_blocks})"
+ )
+ self._active_block_index = block_index
+
+ def pop_endpoint_output(self):
+ output = self._last_endpoint_output
+ self._last_endpoint_output = None
+ return output
+
+ def forward(self, x, e):
+ r"""
+ Args:
+ x(Tensor): Shape [B, L1, C]
+ e(Tensor): Shape [B, L1, C]
+ """
+ assert e.dtype == torch.float32
+ with torch.amp.autocast('cuda', dtype=torch.float32):
+ shift, scale = (
+ self.modulation.unsqueeze(0) + e.unsqueeze(2)
+ ).chunk(2, dim=2)
+ hidden = (
+ self.norm(x) * (1 + scale.squeeze(2)) + shift.squeeze(2)
+ )
+ if hasattr(self, "block_weight"):
+ if self._active_block_index is None:
+ raise RuntimeError(
+ "fixed PDD inference block was not selected"
+ )
+ projected = F.linear(
+ hidden,
+ self.block_weight[self._active_block_index],
+ self.block_bias[self._active_block_index],
+ )
+ displacement, endpoint = projected.chunk(2, dim=-1)
+ self._last_endpoint_output = endpoint
+ return displacement
+ self._last_endpoint_output = None
+ return self.head(hidden)
+
+
+class WorldPlay2Model(ModelMixin, ConfigMixin):
+ r"""
+ WorldPlay2 diffusion backbone based on Wan2.2.
+ """
+
+ ignore_for_config = [
+ 'patch_size', 'cross_attn_norm', 'qk_norm', 'text_dim', 'window_size'
+ ]
+ _no_split_modules = ['WorldPlay2AttentionBlock']
+
+ @register_to_config
+ def __init__(self,
+ model_type='t2v',
+ patch_size=(1, 2, 2),
+ text_len=512,
+ in_dim=16,
+ dim=2048,
+ ffn_dim=8192,
+ freq_dim=256,
+ text_dim=4096,
+ out_dim=16,
+ num_heads=16,
+ num_layers=32,
+ window_size=(-1, -1),
+ qk_norm=True,
+ cross_attn_norm=True,
+ eps=1e-6):
+ r"""
+ Initialize the diffusion model backbone.
+
+ Args:
+ model_type (`str`, *optional*, defaults to 't2v'):
+ Model variant - 't2v' (text-to-video) or 'i2v' (image-to-video)
+ patch_size (`tuple`, *optional*, defaults to (1, 2, 2)):
+ 3D patch dimensions for video embedding (t_patch, h_patch, w_patch)
+ text_len (`int`, *optional*, defaults to 512):
+ Fixed length for text embeddings
+ in_dim (`int`, *optional*, defaults to 16):
+ Input video channels (C_in)
+ dim (`int`, *optional*, defaults to 2048):
+ Hidden dimension of the transformer
+ ffn_dim (`int`, *optional*, defaults to 8192):
+ Intermediate dimension in feed-forward network
+ freq_dim (`int`, *optional*, defaults to 256):
+ Dimension for sinusoidal time embeddings
+ text_dim (`int`, *optional*, defaults to 4096):
+ Input dimension for text embeddings
+ out_dim (`int`, *optional*, defaults to 16):
+ Output video channels (C_out)
+ num_heads (`int`, *optional*, defaults to 16):
+ Number of attention heads
+ num_layers (`int`, *optional*, defaults to 32):
+ Number of transformer blocks
+ window_size (`tuple`, *optional*, defaults to (-1, -1)):
+ Window size for local attention (-1 indicates global attention)
+ qk_norm (`bool`, *optional*, defaults to True):
+ Enable query/key normalization
+ cross_attn_norm (`bool`, *optional*, defaults to False):
+ Enable cross-attention normalization
+ eps (`float`, *optional*, defaults to 1e-6):
+ Epsilon value for normalization layers
+ """
+
+ super().__init__()
+
+ assert model_type in ['t2v', 'i2v', 'ti2v', 's2v']
+ self.model_type = model_type
+
+ self.patch_size = patch_size
+ self.text_len = text_len
+ self.in_dim = in_dim
+ self.dim = dim
+ self.ffn_dim = ffn_dim
+ self.freq_dim = freq_dim
+ self.text_dim = text_dim
+ self.out_dim = out_dim
+ self.num_heads = num_heads
+ self.num_layers = num_layers
+ self.window_size = window_size
+ self.qk_norm = qk_norm
+ self.cross_attn_norm = cross_attn_norm
+ self.eps = eps
+
+ # embeddings
+ self.patch_embedding = nn.Conv3d(
+ in_dim, dim, kernel_size=patch_size, stride=patch_size)
+ self.text_embedding = nn.Sequential(
+ nn.Linear(text_dim, dim), nn.GELU(approximate='tanh'),
+ nn.Linear(dim, dim))
+
+ self.time_embedding = nn.Sequential(
+ nn.Linear(freq_dim, dim), nn.SiLU(), nn.Linear(dim, dim))
+ self.time_projection = nn.Sequential(nn.SiLU(), nn.Linear(dim, dim * 6))
+
+ # blocks
+ self.blocks = nn.ModuleList([
+ WorldPlay2AttentionBlock(dim, ffn_dim, num_heads, window_size, qk_norm,
+ cross_attn_norm, eps) for _ in range(num_layers)
+ ])
+
+ # head
+ self.head = Head(dim, out_dim, patch_size, eps)
+
+ # buffers (don't use register_buffer otherwise dtype will be changed in to())
+ assert (dim % num_heads) == 0 and (dim // num_heads) % 2 == 0
+ d = dim // num_heads
+ # Always computed on the host (also when the module is constructed
+ # under another device context, e.g. meta): it is not a parameter, so
+ # no checkpoint overwrites it, and it is moved to the device on first use.
+ with torch.device("cpu"):
+ self.freqs = torch.cat([
+ rope_params(1024, d - 4 * (d // 6)),
+ rope_params(1024, 2 * (d // 6)),
+ rope_params(1024, 2 * (d // 6))
+ ],
+ dim=1)
+
+ # initialize weights
+ self.init_weights()
+
+ self.use_sp = False
+ self.attention_backend = 'flash'
+ self.conditioning_cache_enabled = True
+ self._text_projection_cache: dict[tuple, torch.Tensor] = {}
+ self._time_conditioning_cache = OrderedDict()
+ self._time_conditioning_signature = None
+ self.self_qkv_fused = False
+ self.fp8_enabled = False
+ self.fp8_ffn_enabled = False
+ self.fp8_qkv_enabled = False
+ self.fp8_recipe = None
+ self.fp8_block_range = None
+ self.fp8_qkv_block_range = None
+
+ def add_embedding_action_parameters(self):
+ """Continuous (first 2 dims) + per-dim discrete embeddings (last 4).
+
+ Action layout (last dim = 6):
+ [:, 0:2] continuous → ``action_in_cont`` MLP → (N, dim)
+ [:, 2] discrete in {-1, 0, 1} → Embedding(3, dim) (idx +1)
+ [:, 3] discrete in {-1, 0, 1} → Embedding(3, dim) (idx +1)
+ [:, 4] discrete in {0, 1} → Embedding(2, dim)
+ [:, 5] discrete in {0, 1} → Embedding(2, dim)
+ Final ``vec_action = cont + Σ discrete`` so the output shape and
+ downstream usage stay identical to the MLP path.
+ """
+ # continuous branch: (N, 2) -> (N, dim)
+ self.action_in_cont = nn.Sequential(
+ nn.Linear(2, 256),
+ nn.SiLU(),
+ nn.Linear(256, 1024),
+ nn.SiLU(),
+ nn.Linear(1024, self.dim),
+ )
+ # one independent embedding per discrete dim
+ self.action_in_disc = nn.ModuleList([
+ nn.Embedding(3, self.dim), # dim2: {-1,0,1} (+1 offset → {0,1,2})
+ nn.Embedding(3, self.dim), # dim3: {-1,0,1} (+1 offset → {0,1,2})
+ nn.Embedding(2, self.dim), # dim4: {0,1}
+ nn.Embedding(2, self.dim), # dim5: {0,1}
+ ])
+ # Match the per-dim contribution of the continuous branch so all 6
+ # action dims start training with comparable signal strength.
+ #
+ # The continuous branch's last layer (Linear(1024, dim)) under Xavier
+ # has weight std ≈ sqrt(2/(fan_in+fan_out)); its output std ≈ that
+ # value, spread over 2 input dims, so each continuous dim contributes
+ # std ≈ cont_std / sqrt(2). Initialising the discrete embeddings to
+ # the same per-dim std keeps the 6 dims roughly equal-strength.
+ #
+ # Doing this with explicit Xavier on the cont MLP (rather than relying
+ # on Linear's default Kaiming) also keeps it consistent with how
+ # init_weights() initialises every other Linear in this model.
+ for m in self.action_in_cont.modules():
+ if isinstance(m, nn.Linear):
+ nn.init.xavier_uniform_(m.weight)
+ if m.bias is not None:
+ nn.init.zeros_(m.bias)
+ cont_last = self.action_in_cont[-1] # Linear(1024, dim)
+ cont_std = math.sqrt(
+ 2.0 / (cont_last.in_features + cont_last.out_features))
+ per_dim_std = cont_std / math.sqrt(2)
+ for emb in self.action_in_disc:
+ nn.init.normal_(emb.weight, std=per_dim_std)
+
+ # img_action_mlp identical to the MLP path (zero-init last layer)
+ for block in self.blocks:
+ block.img_action_mlp = nn.Sequential(
+ nn.Linear(block.dim + block.dim, block.dim),
+ nn.SiLU(),
+ nn.Linear(block.dim, block.dim),
+ )
+ nn.init.zeros_(block.img_action_mlp[-1].weight)
+ if block.img_action_mlp[-1].bias is not None:
+ nn.init.zeros_(block.img_action_mlp[-1].bias)
+
+ def _encode_action(self, action: torch.Tensor) -> torch.Tensor:
+ """Encode ``[pitch,yaw,forward,lateral,perspective,space]``."""
+ a = action.reshape(-1, 6)
+ cont = self.action_in_cont(a[:, :2])
+ # discrete indices; +1 offset for the {-1,0,1} dims, clamp as a
+ # cheap guard against stray out-of-range values.
+ idx2 = (a[:, 2].long() + 1).clamp_(0, 2)
+ idx3 = (a[:, 3].long() + 1).clamp_(0, 2)
+ idx4 = a[:, 4].long().clamp_(0, 1)
+ idx5 = a[:, 5].long().clamp_(0, 1)
+ disc = (self.action_in_disc[0](idx2)
+ + self.action_in_disc[1](idx3)
+ + self.action_in_disc[2](idx4)
+ + self.action_in_disc[3](idx5))
+ return cont + disc
+
+ def add_memory_compress_model(self):
+ """Attach the hierarchical HR -> compressed-memory feature extractor
+ used by the stage-2 / stage-3 chunked inference recipe.
+
+ Wan2.2 5B contract (lr is 1/2 in T and 1/4 in H/W):
+ - hr_latent : [B, 16, T_hr, H_hr, W_hr]
+ - lr_latent : [B, 16, T_hr/2, H_hr/4, W_hr/4]
+ - y : 20ch (4 mask + 16 first-frame image latent)
+ - compressor input : 36 = 16 + 20 channels at hr resolution.
+ - compressor output : spatial_down=[1,1,1,0,0,0] + temporal_down=[1,0,...]
+ reduces hr ``[T_hr, H_hr, W_hr]`` -> ``[T_hr/2, H_hr/8, W_hr/8]``.
+ ``patch_embedding(lr)`` with patch_size=(1,2,2) also produces
+ ``[T_hr/2, H_hr/8, W_hr/8]``, so ``lr_tokens + hr_tokens`` lines up.
+
+ Only the causal-in-time compressor is supported.
+ """
+ from worldplay2.models.causal_compressor import CausalMemCompressModel
+ self.memory_compress = CausalMemCompressModel(
+ output_dim=self.dim,
+ input_dim=self.in_dim,
+ spatial_down=[1, 1, 1, 0, 0, 0],
+ temporal_down=[1, 0, 0, 0, 0, 0],
+ )
+
+ def set_sequence_parallel(self, enabled: bool) -> None:
+ """Select SP/non-SP paths without runtime monkey-patching."""
+ self.use_sp = bool(enabled)
+ for block in self.blocks:
+ block.self_attn.use_sp = self.use_sp
+
+ def set_compiled_qk_rope(self, enabled: bool) -> None:
+ for block in self.blocks:
+ block.self_attn.compile_qk_rope = bool(enabled)
+ block.self_attn.qk_rope_compile_failed = False
+
+ def set_self_attention_backend(self, backend: str) -> None:
+ """Select visual denoising attention; preserve masked prefill and text."""
+ backend = resolve_attention_backend(backend)
+ if backend == 'sage' and any(
+ tuple(block.self_attn.window_size) != (-1, -1)
+ for block in self.blocks
+ ):
+ raise NotImplementedError(
+ "SageAttention requires window_size=(-1, -1); "
+ "use attention_backend='flash' for sliding-window attention."
+ )
+ self.attention_backend = backend
+ for block in self.blocks:
+ block.self_attn.attention_backend = backend
+
+ def set_compiled_regions(self, *, block_glue: bool, ffn: bool) -> None:
+ for block in self.blocks:
+ block.compile_block_glue = bool(block_glue)
+ block.compile_ffn = bool(ffn)
+
+ def fuse_self_attention_qkv(self) -> None:
+ """Fuse Q/K/V for every visual self-attention block."""
+ if self.self_qkv_fused:
+ return
+ for block in self.blocks:
+ block.self_attn.fuse_qkv_projections()
+ self.self_qkv_fused = True
+
+ def set_conditioning_cache(self, enabled: bool) -> None:
+ self.conditioning_cache_enabled = bool(enabled)
+ for block in self.blocks:
+ block.cross_attn.conditioning_cache_enabled = bool(enabled)
+ if not enabled:
+ self.clear_conditioning_cache()
+
+ def clear_conditioning_cache(self) -> None:
+ self._text_projection_cache.clear()
+ for block in self.blocks:
+ block.cross_attn.clear_conditioning_cache()
+
+ def prepare_time_conditioning(self, timestep, seq_len):
+ """Timestep conditioning for a 1D CPU ``timestep`` at ``seq_len`` tokens."""
+ if timestep.device.type != 'cpu' or timestep.ndim != 1:
+ raise ValueError("Fixed conditioning requires a 1D CPU timestep")
+ parameters = (
+ tuple(self.time_embedding.parameters())
+ + tuple(self.time_projection.parameters())
+ )
+ signature = (
+ tuple((id(p), p.data_ptr(), p._version, p.dtype, p.device)
+ for p in parameters),
+ torch.get_float32_matmul_precision(),
+ )
+ if signature != self._time_conditioning_signature:
+ self._time_conditioning_cache.clear()
+ self._time_conditioning_signature = signature
+ key = (tuple(timestep.tolist()), timestep.dtype, seq_len)
+ cacheable = not self.training and not torch.is_grad_enabled()
+ if cacheable and key in self._time_conditioning_cache:
+ self._time_conditioning_cache.move_to_end(key)
+ return self._time_conditioning_cache[key]
+
+ t = timestep.to(parameters[0].device)
+ expanded = t.expand(t.size(0), seq_len)
+ with torch.amp.autocast('cuda', dtype=torch.float32, enabled=t.is_cuda):
+ e = self.time_embedding(sinusoidal_embedding_1d(
+ self.freq_dim, expanded.flatten()
+ ).unflatten(0, (t.size(0), seq_len)).float())
+ e0 = self.time_projection(e).unflatten(2, (6, self.dim))
+ if cacheable:
+ e, e0 = _compact_identical_rows(e), _compact_identical_rows(e0)
+ result = t, (e, e0)
+ if cacheable:
+ self._time_conditioning_cache[key] = result
+ if len(self._time_conditioning_cache) > 2:
+ self._time_conditioning_cache.popitem(last=False)
+ return result
+
+ def _project_text_context(self, context):
+ # Keyed by the source tensors themselves: torch.Tensor hashes and
+ # compares by identity, so the key both distinguishes cond/uncond and
+ # keeps a strong reference to the tensors it was derived from. Model
+ # movement/offload explicitly clears this cache.
+ key = tuple(context)
+ if self.conditioning_cache_enabled:
+ cached = self._text_projection_cache.get(key)
+ if cached is not None:
+ return cached
+
+ padded = torch.stack([
+ torch.cat([
+ tensor,
+ tensor.new_zeros(
+ self.text_len - tensor.size(0), tensor.size(1)),
+ ])
+ for tensor in key
+ ])
+ projected = self.text_embedding(padded).detach()
+ if self.conditioning_cache_enabled:
+ self._text_projection_cache[key] = projected
+ return projected
+
+ def _forward_compress(
+ self,
+ hr_latents_input,
+ lr_latents_input,
+ lr_action,
+ memory_t,
+ hr_temporal_latents_input=None,
+ hr_temporal_action=None,
+ sink_action=None,
+ ):
+ """Build ``[optional sink | compressed history | temporal anchor]``."""
+ if hr_temporal_latents_input is None or hr_temporal_action is None:
+ raise ValueError("Stage-Three compressor requires a temporal anchor")
+
+ bs = hr_latents_input.shape[0]
+ hr_pf = hr_latents_input.shape[2] // self.patch_size[0]
+ device = hr_latents_input.device
+ if self.freqs.device != device:
+ self.freqs = self.freqs.to(device)
+
+ memory_e = self.time_embedding(
+ sinusoidal_embedding_1d(
+ self.freq_dim,
+ memory_t.reshape(-1).float(),
+ ).float()
+ )
+
+ # Compressed LR+HR history at the LR temporal cadence.
+ _, _, lr_f, lr_h, lr_w = lr_latents_input.shape
+ cmp_pf = lr_f // self.patch_size[0]
+ cmp_ph = lr_h // self.patch_size[1]
+ cmp_pw = lr_w // self.patch_size[2]
+ cmp_spatial = cmp_ph * cmp_pw
+ cmp_tokens = (
+ self.patch_embedding(lr_latents_input).flatten(2).transpose(1, 2)
+ + self.memory_compress(hr_latents_input)
+ )
+ cmp_freqs = build_freqs_flat(self.freqs,(hr_pf, cmp_ph, cmp_pw)).view(hr_pf, cmp_spatial, -1)
+ cmp_freqs = cmp_freqs[::2][:cmp_pf].reshape(cmp_pf * cmp_spatial, -1)
+ cmp_e = repeat(
+ memory_e,
+ "1 D -> B (T HW) D",
+ B=bs,
+ T=cmp_pf,
+ HW=cmp_spatial,
+ )
+ cmp_e0 = self.time_projection(cmp_e).unflatten(2, (6, self.dim))
+ cmp_action = repeat(
+ self._encode_action(lr_action),
+ "(B T) D -> B (T HW) D",
+ B=bs,
+ HW=cmp_spatial,
+ )
+
+ # Temporal anchor occupies the final HR temporal positions.
+ _, _, tmp_f, tmp_h, tmp_w = hr_temporal_latents_input.shape
+ tmp_pf = tmp_f // self.patch_size[0]
+ tmp_ph = tmp_h // self.patch_size[1]
+ tmp_pw = tmp_w // self.patch_size[2]
+ tmp_spatial = tmp_ph * tmp_pw
+
+ tmp_tokens = self.patch_embedding(hr_temporal_latents_input)
+ tmp_tokens = tmp_tokens.flatten(2).transpose(1, 2)
+ tmp_freqs = build_freqs_flat(self.freqs,(hr_pf, tmp_ph, tmp_pw)).view(hr_pf, tmp_spatial, -1)
+ tmp_freqs = tmp_freqs[-tmp_pf:].reshape(tmp_pf * tmp_spatial, -1)
+ tmp_e = repeat(
+ memory_e,
+ "1 D -> B (T HW) D",
+ B=bs,
+ T=tmp_pf,
+ HW=tmp_spatial,
+ )
+ tmp_e0 = self.time_projection(tmp_e).unflatten(2, (6, self.dim))
+ tmp_action = repeat(
+ self._encode_action(hr_temporal_action),
+ "(B T) D -> B (T HW) D",
+ B=bs,
+ HW=tmp_spatial,
+ )
+
+ sink_token_count = 0
+ if sink_action is not None and sink_action.shape[0] > 0:
+ sink_size = sink_action.shape[0]
+ sink_latents = hr_latents_input[:, :, :sink_size]
+ _, _, sink_f, sink_h, sink_w = sink_latents.shape
+ sink_pf = sink_f // self.patch_size[0]
+ sink_ph = sink_h // self.patch_size[1]
+ sink_pw = sink_w // self.patch_size[2]
+ sink_spatial = sink_ph * sink_pw
+
+ sink_tokens = self.patch_embedding(sink_latents)
+ sink_tokens = sink_tokens.flatten(2).transpose(1, 2)
+ sink_freqs = build_freqs_flat(self.freqs,(hr_pf, sink_ph, sink_pw)).view(hr_pf, sink_spatial, -1)
+ sink_freqs = sink_freqs[:sink_pf].reshape(sink_pf * sink_spatial, -1)
+ sink_e = repeat(
+ memory_e,
+ "1 D -> B (T HW) D",
+ B=bs,
+ T=sink_pf,
+ HW=sink_spatial,
+ )
+ sink_e0 = self.time_projection(sink_e).unflatten(2, (6, self.dim))
+ sink_action_embedding = repeat(
+ self._encode_action(sink_action),
+ "(B T) D -> B (T HW) D",
+ B=bs,
+ HW=sink_spatial,
+ )
+ sink_token_count = sink_tokens.shape[1]
+
+ tokens = torch.cat([sink_tokens, cmp_tokens, tmp_tokens], dim=1)
+ freqs_flat = torch.cat([sink_freqs, cmp_freqs, tmp_freqs], dim=0)
+ e0 = torch.cat([sink_e0, cmp_e0, tmp_e0], dim=1)
+ e = torch.cat([sink_e, cmp_e, tmp_e], dim=1)
+ vec_action = torch.cat([sink_action_embedding, cmp_action, tmp_action], dim=1)
+ else:
+ tokens = torch.cat([cmp_tokens, tmp_tokens], dim=1)
+ freqs_flat = torch.cat([cmp_freqs, tmp_freqs], dim=0)
+ e0 = torch.cat([cmp_e0, tmp_e0], dim=1)
+ e = torch.cat([cmp_e, tmp_e], dim=1)
+ vec_action = torch.cat([cmp_action, tmp_action], dim=1)
+
+ return {
+ "tokens": tokens,
+ "freqs_flat": freqs_flat,
+ "e0": e0,
+ "e": e,
+ "vec_action": vec_action,
+ "rope_shift_idx": hr_pf,
+ "sink_token_count": sink_token_count,
+ "cmp_token_count": cmp_tokens.shape[1],
+ "cmp_chunk_token_count": 2 * cmp_spatial,
+ "tmp_token_count": tmp_tokens.shape[1],
+ }
+
+ def _forward_compress_window(
+ self,
+ hr_latents_input,
+ lr_latents_input,
+ lr_action,
+ memory_t,
+ hr_temporal_latents_input,
+ hr_temporal_action,
+ hr_frames,
+ sink_frames,
+ ):
+ """The compressor tokens an incremental prefill reads: ``[new cmp | tmp]``.
+
+ ``hr_latents_input`` is a trailing HR window; ``token_offset`` tells the
+ prefill where this window starts in the full ``[sink | cmp | tmp]`` layout.
+ """
+ bs = hr_latents_input.shape[0]
+ device = hr_latents_input.device
+ if self.freqs.device != device:
+ self.freqs = self.freqs.to(device)
+ hr_pf = hr_frames // self.patch_size[0]
+
+ memory_e = self.time_embedding(
+ sinusoidal_embedding_1d(
+ self.freq_dim,
+ memory_t.reshape(-1).float(),
+ ).float()
+ )
+
+ _, _, new_f, lr_h, lr_w = lr_latents_input.shape
+ new_pf = new_f // self.patch_size[0]
+ cmp_pf = hr_pf // 2
+ cmp_ph = lr_h // self.patch_size[1]
+ cmp_pw = lr_w // self.patch_size[2]
+ cmp_spatial = cmp_ph * cmp_pw
+ new_tokens = new_pf * cmp_spatial
+ cmp_tokens = (
+ self.patch_embedding(lr_latents_input).flatten(2).transpose(1, 2)
+ + self.memory_compress(hr_latents_input)[:, -new_tokens:]
+ )
+ # Temporal positions 2j of the newest LR frames j (cmp_freqs[::2]).
+ cmp_freqs = build_freqs_rows(
+ self.freqs, slice(2 * (cmp_pf - new_pf), 2 * cmp_pf, 2), cmp_ph, cmp_pw)
+ cmp_e = repeat(memory_e, "1 D -> B (T HW) D", B=bs, T=new_pf, HW=cmp_spatial)
+ cmp_e0 = self.time_projection(cmp_e).unflatten(2, (6, self.dim))
+ # The action MLP runs over the full LR action sequence, as upstream.
+ cmp_action = repeat(
+ self._encode_action(lr_action)[-new_pf * bs:],
+ "(B T) D -> B (T HW) D",
+ B=bs,
+ HW=cmp_spatial,
+ )
+
+ _, _, tmp_f, tmp_h, tmp_w = hr_temporal_latents_input.shape
+ tmp_pf = tmp_f // self.patch_size[0]
+ tmp_ph = tmp_h // self.patch_size[1]
+ tmp_pw = tmp_w // self.patch_size[2]
+ tmp_spatial = tmp_ph * tmp_pw
+ tmp_tokens = self.patch_embedding(hr_temporal_latents_input)
+ tmp_tokens = tmp_tokens.flatten(2).transpose(1, 2)
+ tmp_freqs = build_freqs_rows(self.freqs, slice(hr_pf - tmp_pf, hr_pf), tmp_ph, tmp_pw)
+ tmp_e = repeat(memory_e, "1 D -> B (T HW) D", B=bs, T=tmp_pf, HW=tmp_spatial)
+ tmp_e0 = self.time_projection(tmp_e).unflatten(2, (6, self.dim))
+ tmp_action = repeat(
+ self._encode_action(hr_temporal_action),
+ "(B T) D -> B (T HW) D",
+ B=bs,
+ HW=tmp_spatial,
+ )
+
+ sink_token_count = (sink_frames // self.patch_size[0]) * tmp_spatial
+ cmp_token_count = cmp_pf * cmp_spatial
+ return {
+ "tokens": torch.cat([cmp_tokens, tmp_tokens], dim=1),
+ "freqs_flat": torch.cat([cmp_freqs, tmp_freqs], dim=0),
+ "e0": torch.cat([cmp_e0, tmp_e0], dim=1),
+ "vec_action": torch.cat([cmp_action, tmp_action], dim=1),
+ "rope_shift_idx": hr_pf,
+ "sink_token_count": sink_token_count,
+ "cmp_token_count": cmp_token_count,
+ "cmp_chunk_token_count": 2 * cmp_spatial,
+ "tmp_token_count": tmp_tokens.shape[1],
+ "token_offset": sink_token_count + cmp_token_count - new_tokens,
+ }
+
+ def forward(
+ self,
+ x=None,
+ t=None,
+ context=None,
+ seq_len=None,
+ y=None,
+ hr_action=None,
+ memory_dict=None,
+ forward_mode="bi_denoise",
+ kv_cache=None,
+ ar_chunk_start=0,
+ hr_latents_input=None,
+ lr_latents_input=None,
+ lr_action=None,
+ memory_t=None,
+ hr_temporal_latents_input=None,
+ hr_temporal_action=None,
+ sink_action=None,
+ pdd_block_index=None,
+ time_conditioning=None,
+ hr_frames=None,
+ sink_frames=0,
+ ):
+ """Route all model operations through one explicit entry point."""
+ with fp8_autocast(
+ self.fp8_recipe,
+ enabled=self.fp8_enabled,
+ ):
+ if forward_mode == "compress":
+ return self._forward_compress(
+ hr_latents_input=hr_latents_input,
+ lr_latents_input=lr_latents_input,
+ lr_action=lr_action,
+ memory_t=memory_t,
+ hr_temporal_latents_input=hr_temporal_latents_input,
+ hr_temporal_action=hr_temporal_action,
+ sink_action=sink_action,
+ )
+ if forward_mode == "compress_window":
+ return self._forward_compress_window(
+ hr_latents_input=hr_latents_input,
+ lr_latents_input=lr_latents_input,
+ lr_action=lr_action,
+ memory_t=memory_t,
+ hr_temporal_latents_input=hr_temporal_latents_input,
+ hr_temporal_action=hr_temporal_action,
+ hr_frames=hr_frames,
+ sink_frames=sink_frames,
+ )
+ if forward_mode == "bi_denoise":
+ return self._forward_bi_denoise(
+ x=x, t=t, context=context, seq_len=seq_len, y=y,
+ hr_action=hr_action, memory_dict=memory_dict)
+ if forward_mode == "ar_prefill":
+ return self._forward_ar_prefill(
+ context=context, memory_dict=memory_dict,
+ kv_cache=kv_cache)
+ if forward_mode == "ar_denoise":
+ return self._forward_ar_denoise(
+ x=x, t=t, context=context, seq_len=seq_len, y=y,
+ hr_action=hr_action, memory_dict=memory_dict,
+ kv_cache=kv_cache, ar_chunk_start=ar_chunk_start)
+ if forward_mode == "pdd_denoise":
+ self.head.set_active_block(pdd_block_index)
+ return self._forward_ar_denoise(
+ x=x, t=t, context=context, seq_len=seq_len, y=y,
+ hr_action=hr_action, memory_dict=memory_dict,
+ kv_cache=kv_cache, ar_chunk_start=ar_chunk_start,
+ time_conditioning=time_conditioning)
+ raise ValueError(
+ f"unsupported forward_mode={forward_mode!r}; expected "
+ "'compress', 'bi_denoise', 'ar_prefill', 'ar_denoise', "
+ "'pdd_denoise'"
+ )
+
+ def _forward_bi_denoise(
+ self, x, t, context, seq_len, y, hr_action, memory_dict
+ ):
+ """Bidirectional denoise with optional compressed history context."""
+ # BI uses the same body for SP and non-SP. SP only shards the token
+ # tensors before the blocks and gathers the head output afterwards.
+ ar = False
+
+ if self.model_type == 'i2v':
+ assert y is not None
+ # params
+ device = self.patch_embedding.weight.device
+ if self.freqs.device != device:
+ self.freqs = self.freqs.to(device)
+
+ h, w = x[0].shape[2:]
+ tw = w // self.patch_size[2]
+ th = h // self.patch_size[1]
+
+ if y is not None:
+ x = [torch.cat([u, v], dim=0) for u, v in zip(x, y)]
+
+ # embeddings
+ x = [self.patch_embedding(u.unsqueeze(0)) for u in x]
+ grid_sizes = torch.stack(
+ [torch.tensor(u.shape[2:], dtype=torch.long) for u in x])
+ x = [u.flatten(2).transpose(1, 2) for u in x]
+ seq_lens = torch.tensor([u.size(1) for u in x], dtype=torch.long)
+ assert seq_lens.max() <= seq_len
+ x = torch.cat([
+ torch.cat(
+ [u, u.new_zeros(1, seq_len - u.size(1), u.size(2))],
+ dim=1,
+ )
+ for u in x
+ ])
+
+ # time embeddings
+ if t.dim() == 1:
+ t = t.expand(t.size(0), seq_len)
+ with torch.amp.autocast('cuda', dtype=torch.float32):
+ bt = t.size(0)
+ t = t.flatten()
+ e = self.time_embedding(
+ sinusoidal_embedding_1d(
+ self.freq_dim, t
+ ).unflatten(0, (bt, seq_len)).float())
+ e0 = self.time_projection(e).unflatten(2, (6, self.dim))
+ assert e.dtype == torch.float32 and e0.dtype == torch.float32
+
+ # context
+ context_lens = None
+ context = self._project_text_context(context)
+
+ vec_action = None
+ if hr_action is not None:
+ vec_action = self._encode_action(hr_action)
+ vec_action = repeat(
+ vec_action, "(B T) D -> B (T H W) D",
+ B=x.shape[0], H=th, W=tw)
+
+ # Build per-token RoPE for the generate segment. The generate
+ # segment ALWAYS uses per-token ``freqs_flat`` (via ``rope_apply_flat``)
+ # -- both BI and AR, with or without a compressor context -- so the
+ # RoPE handling is uniform and never depends on the grid-based
+ # ``rope_apply`` fallback. When fused with a compressor context the
+ # generate segment's temporal rope indices must START AFTER the
+ # context's time range (= ``rope_shift_idx``); otherwise the generate
+ # and context tokens would share the same temporal phases and the
+ # model could not distinguish "past vs future".
+ #
+ # NB: for ``rope_shift_idx == 0`` (no context) the per-token freqs are
+ # numerically identical to what grid-based ``rope_apply`` would build,
+ # so this does not change the BI first-chunk result.
+ gen_pf = int(grid_sizes[0, 0].item())
+ gen_ph = int(grid_sizes[0, 1].item())
+ gen_pw = int(grid_sizes[0, 2].item())
+ rope_shift_idx = (int(memory_dict.get("rope_shift_idx", 0))
+ if memory_dict is not None else 0)
+ full_freqs = build_freqs_flat(
+ self.freqs,
+ (rope_shift_idx + gen_pf, gen_ph, gen_pw)).to(x.device)
+ full_freqs = full_freqs.view(
+ rope_shift_idx + gen_pf, gen_ph * gen_pw, -1)
+ gen_freqs_flat = full_freqs[-gen_pf:].reshape(
+ gen_pf * gen_ph * gen_pw, -1)
+ # Pad to seq_len (pad tokens are masked out in flash_attention
+ # via ``seq_lens``).
+ if gen_freqs_flat.shape[0] < seq_len:
+ pad_rows = seq_len - gen_freqs_flat.shape[0]
+ pad = gen_freqs_flat.new_zeros(
+ pad_rows, gen_freqs_flat.shape[1])
+ gen_freqs_flat = torch.cat(
+ [gen_freqs_flat, pad], dim=0)
+
+ # -- fuse context (memory_compress output) before generate segment --
+ generate_seq_length = x.shape[1]
+ cmp_token_count = 0
+ cmp_chunk_token_count = 0
+ tmp_token_count = 0
+ if memory_dict is not None:
+ ctx_tokens = memory_dict["tokens"]
+ ctx_freqs_flat = memory_dict["freqs_flat"].to(x.device)
+ ctx_e0 = memory_dict["e0"].float()
+ ctx_e = memory_dict["e"].float()
+ ctx_vec_action = memory_dict["vec_action"]
+
+ x = torch.cat([ctx_tokens, x], dim=1)
+ freqs_flat = torch.cat(
+ [ctx_freqs_flat, gen_freqs_flat], dim=0)
+ e0 = torch.cat([ctx_e0, e0], dim=1)
+ e = torch.cat([ctx_e, e], dim=1)
+ vec_action = torch.cat(
+ [ctx_vec_action, vec_action], dim=1)
+ # seq_lens now counts the full (ctx + generate) length per batch
+ seq_lens = torch.tensor([x.shape[1]] * x.shape[0],
+ dtype=torch.long)
+ cmp_token_count = int(memory_dict.get("cmp_token_count", 0))
+ cmp_chunk_token_count = int(
+ memory_dict.get("cmp_chunk_token_count", 0))
+ tmp_token_count = int(memory_dict.get("tmp_token_count", 0))
+ else:
+ # No compressor ctx (first chunk): generate-only, per-token RoPE.
+ freqs_flat = gen_freqs_flat
+
+ if self.use_sp:
+ sp_size = get_world_size()
+ sp_rank = get_rank()
+ global_sequence = x.shape[1]
+ x = shard_sequence(x, global_sequence=global_sequence, rank=sp_rank, world_size=sp_size, dim=1)
+ e = shard_sequence(e, global_sequence=global_sequence, rank=sp_rank, world_size=sp_size, dim=1)
+ e0 = shard_sequence(e0, global_sequence=global_sequence, rank=sp_rank, world_size=sp_size, dim=1)
+ vec_action = shard_sequence(vec_action, global_sequence=global_sequence, rank=sp_rank, world_size=sp_size, dim=1)
+ freqs_flat = shard_sequence(freqs_flat, global_sequence=global_sequence, rank=sp_rank, world_size=sp_size, dim=0)
+ else:
+ global_sequence = x.shape[1]
+
+ # arguments
+ kwargs = dict(
+ e=e0,
+ seq_lens=seq_lens,
+ grid_sizes=grid_sizes,
+ freqs=self.freqs,
+ context=context,
+ context_lens=context_lens,
+ vec_action=vec_action,
+ freqs_flat=freqs_flat,
+ ar=ar,
+ cmp_token_count=cmp_token_count,
+ cmp_chunk_token_count=cmp_chunk_token_count,
+ tmp_token_count=tmp_token_count,
+ )
+
+ for block in self.blocks:
+ x = block(x, **kwargs)
+
+ # head
+ x = self.head(x, e)
+ if self.use_sp:
+ x = gather_sequence(x, global_sequence=global_sequence)
+
+ # drop the prepended context tokens before unpatchify
+ if memory_dict is not None:
+ x = x[:, -generate_seq_length:]
+
+ # unpatchify
+ x = self.unpatchify(x, grid_sizes)
+ return [u.float() for u in x]
+
+ def init_kv_cache(self, slot=0):
+ r"""Allocate contiguous per-layer ``[sink | cmp | tmp]`` K/V.
+
+ With ``kv_capacity`` set (tokens), each layer of cache ``slot`` writes
+ into K/V storage of that capacity.
+ """
+ entries = [{'k_vision': None, 'v_vision': None}
+ for _ in range(self.num_layers)]
+ capacity = getattr(self, 'kv_capacity', 0)
+ if capacity:
+ pools = self.__dict__.setdefault('_kv_pools', {})
+ pool = pools.get(slot)
+ if pool is None or pool[0]['capacity'] < capacity:
+ pool = [{'capacity': capacity, 'k': None, 'v': None}
+ for _ in range(self.num_layers)]
+ pools[slot] = pool
+ for entry, buffers in zip(entries, pool):
+ entry['_buffers'] = buffers
+ return entries
+
+ def _forward_ar_prefill(self, context, memory_dict, kv_cache):
+ r"""Chunk-AR KV-cache incremental prefill for SP and non-SP.
+
+ Each layer stores only contiguous ``k_vision/v_vision`` with layout
+ ``[sink | accumulated cmp | latest tmp]``. The first context is
+ processed in one masked pass. Later calls infer the old cmp length
+ from the cache shape, discard the previous tmp suffix, process only
+ ``[new cmp | new tmp]``, and replace the cache with the new layout.
+
+ Args:
+ context (List[Tensor]): text embeddings (cond OR uncond).
+ memory_dict (dict | None): compressor output; ``None`` -> no-op.
+ kv_cache (list[dict]): from ``init_kv_cache()``; mutated in place.
+
+ Returns:
+ list[dict]: the same ``kv_cache`` (mutated in place).
+ """
+ assert kv_cache is not None and len(kv_cache) == self.num_layers, (
+ "ar_prefill requires a kv_cache of length num_layers "
+ "(call init_kv_cache()).")
+
+ # First chunk: no compressor ctx -> nothing to cache.
+ if memory_dict is None:
+ return kv_cache
+
+ device = self.patch_embedding.weight.device
+ if self.freqs.device != device:
+ self.freqs = self.freqs.to(device)
+
+ # text context (embed cond/uncond text the same way as the denoise path)
+ context_lens = None
+ context = self._project_text_context(context)
+
+ ctx_tokens = memory_dict["tokens"]
+ freqs_flat = memory_dict["freqs_flat"].to(ctx_tokens.device)
+ # FP32 modulation (the compressor emits BF16 under autocast).
+ e0c = memory_dict["e0"]
+ if not getattr(self, 'e0_slice', False):
+ e0c = e0c.float()
+ # A windowed compressor output omits the first ``token_offset`` tokens.
+ token_offset = int(memory_dict.get("token_offset", 0))
+ vec_action_c = memory_dict["vec_action"]
+ sink_token_count = int(memory_dict.get("sink_token_count", 0))
+ cmp_token_count = int(memory_dict.get("cmp_token_count", 0))
+ cmp_chunk_token_count = int(
+ memory_dict.get("cmp_chunk_token_count", 0))
+ tmp_token_count = int(memory_dict.get("tmp_token_count", 0))
+
+ cache_is_empty = kv_cache[0].get('k_vision') is None
+ if any(
+ (entry.get('k_vision') is None) != cache_is_empty
+ for entry in kv_cache
+ ):
+ raise ValueError("all AR cache layers must have the same state")
+
+ if cache_is_empty:
+ if token_offset:
+ raise ValueError("the first AR prefill needs the full context")
+ self._prefill_initial_ar_context(
+ tokens=ctx_tokens,
+ modulation=e0c.float(),
+ actions=vec_action_c,
+ freqs_flat=freqs_flat,
+ text_context=context,
+ context_lens=context_lens,
+ kv_cache=kv_cache,
+ sink_token_count=sink_token_count,
+ cmp_token_count=cmp_token_count,
+ cmp_chunk_token_count=cmp_chunk_token_count,
+ tmp_token_count=tmp_token_count,
+ )
+ else:
+ self._prefill_ar_context_update(
+ tokens=ctx_tokens,
+ modulation=e0c,
+ actions=vec_action_c,
+ freqs_flat=freqs_flat,
+ text_context=context,
+ context_lens=context_lens,
+ kv_cache=kv_cache,
+ sink_token_count=sink_token_count,
+ cmp_token_count=cmp_token_count,
+ cmp_chunk_token_count=cmp_chunk_token_count,
+ tmp_token_count=tmp_token_count,
+ token_offset=token_offset,
+ )
+ return kv_cache
+
+ def _prefill_initial_ar_context(
+ self,
+ *,
+ tokens,
+ modulation,
+ actions,
+ freqs_flat,
+ text_context,
+ context_lens,
+ kv_cache,
+ sink_token_count,
+ cmp_token_count,
+ cmp_chunk_token_count,
+ tmp_token_count,
+ ):
+ """First prefill: write the complete ``[sink | cmp | tmp]`` cache."""
+ self._run_ar_prefill_blocks(
+ tokens=tokens,
+ modulation=modulation,
+ actions=actions,
+ freqs_flat=freqs_flat,
+ text_context=text_context,
+ context_lens=context_lens,
+ kv_cache=kv_cache,
+ sink_token_count=sink_token_count,
+ cmp_token_count=cmp_token_count,
+ cmp_chunk_token_count=cmp_chunk_token_count,
+ tmp_token_count=tmp_token_count,
+ cache_update=None,
+ )
+
+ def _prefill_ar_context_update(
+ self,
+ *,
+ tokens,
+ modulation,
+ actions,
+ freqs_flat,
+ text_context,
+ context_lens,
+ kv_cache,
+ sink_token_count,
+ cmp_token_count,
+ cmp_chunk_token_count,
+ tmp_token_count,
+ token_offset=0,
+ ):
+ """Later prefill: append new cmp and replace the previous tmp.
+
+ ``tokens``/``modulation``/``actions``/``freqs_flat`` start at context
+ token ``token_offset`` (0 for a full compressor output).
+ """
+ cached_total = int(kv_cache[0]['k_vision'].shape[1])
+ cached_cmp = cached_total - sink_token_count - tmp_token_count
+ if not 0 <= cached_cmp <= cmp_token_count:
+ raise ValueError(
+ "invalid AR cache layout: "
+ f"cached_total={cached_total}, sink={sink_token_count}, "
+ f"tmp={tmp_token_count}, current_cmp={cmp_token_count}"
+ )
+
+ new_cmp_count = cmp_token_count - cached_cmp
+ cmp_start = sink_token_count + cached_cmp
+ cmp_end = sink_token_count + cmp_token_count
+ tmp_start = cmp_end
+ tmp_end = tmp_start + tmp_token_count
+
+ token_parts = []
+ modulation_parts = []
+ action_parts = []
+ freq_parts = []
+ if token_offset > cmp_start:
+ raise ValueError("windowed context does not cover the new tokens")
+ cmp_start -= token_offset
+ cmp_end -= token_offset
+ tmp_start -= token_offset
+ tmp_end -= token_offset
+ if new_cmp_count:
+ token_parts.append(tokens[:, cmp_start:cmp_end])
+ modulation_parts.append(modulation[:, cmp_start:cmp_end])
+ freq_parts.append(freqs_flat[cmp_start:cmp_end])
+ if actions is not None:
+ action_parts.append(actions[:, cmp_start:cmp_end])
+ if tmp_token_count:
+ token_parts.append(tokens[:, tmp_start:tmp_end])
+ modulation_parts.append(modulation[:, tmp_start:tmp_end])
+ freq_parts.append(freqs_flat[tmp_start:tmp_end])
+ if actions is not None:
+ action_parts.append(actions[:, tmp_start:tmp_end])
+ if not token_parts:
+ return
+
+ self._run_ar_prefill_blocks(
+ tokens=torch.cat(token_parts, dim=1),
+ modulation=torch.cat(modulation_parts, dim=1).float(),
+ actions=(
+ torch.cat(action_parts, dim=1)
+ if action_parts else None
+ ),
+ freqs_flat=torch.cat(freq_parts, dim=0),
+ text_context=text_context,
+ context_lens=context_lens,
+ kv_cache=kv_cache,
+ sink_token_count=sink_token_count,
+ cmp_token_count=cmp_token_count,
+ cmp_chunk_token_count=cmp_chunk_token_count,
+ tmp_token_count=tmp_token_count,
+ cache_update={
+ 'n_new_cmp': new_cmp_count,
+ 'n_tmp': tmp_token_count,
+ 'cached_prefix_tokens': sink_token_count + cached_cmp,
+ },
+ )
+
+ def _run_ar_prefill_blocks(
+ self,
+ *,
+ tokens,
+ modulation,
+ actions,
+ freqs_flat,
+ text_context,
+ context_lens,
+ kv_cache,
+ sink_token_count,
+ cmp_token_count,
+ cmp_chunk_token_count,
+ tmp_token_count,
+ cache_update,
+ ):
+ """Run either initial or incremental prefill through all blocks."""
+ global_length = tokens.shape[1]
+ if self.use_sp:
+ sp_size = get_world_size()
+ sp_rank = get_rank()
+ tokens = shard_sequence(tokens, global_sequence=global_length, rank=sp_rank, world_size=sp_size, dim=1)
+ modulation = shard_sequence(modulation, global_sequence=global_length, rank=sp_rank, world_size=sp_size, dim=1)
+ freqs_flat = shard_sequence(freqs_flat, global_sequence=global_length, rank=sp_rank, world_size=sp_size, dim=0)
+ actions = shard_sequence(actions, global_sequence=global_length, rank=sp_rank, world_size=sp_size, dim=1)
+
+ seq_lens = torch.tensor([global_length] * tokens.shape[0], dtype=torch.long)
+ for index, block in enumerate(self.blocks):
+ tokens = block(
+ tokens,
+ e=modulation,
+ seq_lens=seq_lens,
+ grid_sizes=None,
+ freqs=self.freqs,
+ context=text_context,
+ context_lens=context_lens,
+ vec_action=actions,
+ freqs_flat=freqs_flat,
+ ar=True,
+ cmp_token_count=cmp_token_count,
+ cmp_chunk_token_count=cmp_chunk_token_count,
+ tmp_token_count=tmp_token_count,
+ kv_cache_entry=kv_cache[index],
+ cache_write=True,
+ sink_token_count=sink_token_count,
+ cache_update=cache_update,
+ )
+
+ def _forward_ar_denoise(
+ self,
+ x=None,
+ t=None,
+ context=None,
+ seq_len=None,
+ y=None,
+ hr_action=None,
+ memory_dict=None,
+ kv_cache=None,
+ ar_chunk_start=0,
+ time_conditioning=None,
+ ):
+ r"""Chunk-AR KV-cache denoise for both SP and non-SP.
+
+ Runs the gen (pred) tokens through every block with
+ ``cache_write=False``; each block reads its cached ctx K/V (written
+ by :meth:`_forward_ar_prefill`) and prepends it to the pred K/V. No
+ ctx tokens are concatenated to ``x`` here. Returns ``list[Tensor]``.
+
+ ``ar_chunk_start`` phase-shifts the generate segment's RoPE so K/V
+ across chunks share a consistent temporal coordinate system. When
+ ``memory_dict`` is ``None`` / the cache is empty (first chunk) this
+ degenerates to plain pred-only self-attention.
+ """
+ assert kv_cache is not None, (
+ "AR denoise requires kv_cache (call init_kv_cache()).")
+ assert len(kv_cache) == self.num_layers, (
+ f"kv_cache length ({len(kv_cache)}) must equal num_layers "
+ f"({self.num_layers}).")
+
+ if self.model_type == 'i2v':
+ assert y is not None
+ device = self.patch_embedding.weight.device
+ if self.freqs.device != device:
+ self.freqs = self.freqs.to(device)
+
+ h, w = x[0].shape[2:]
+ tw = w // self.patch_size[2]
+ th = h // self.patch_size[1]
+
+ if y is not None:
+ x = [torch.cat([u, v], dim=0) for u, v in zip(x, y)]
+
+ # embeddings (gen/pred tokens)
+ x = [self.patch_embedding(u.unsqueeze(0)) for u in x]
+ grid_sizes = torch.stack([torch.tensor(u.shape[2:], dtype=torch.long) for u in x])
+ x = [u.flatten(2).transpose(1, 2) for u in x]
+ seq_lens = torch.tensor([u.size(1) for u in x], dtype=torch.long)
+ assert seq_lens.max() <= seq_len
+ x = torch.cat([
+ torch.cat(
+ [u, u.new_zeros(1, seq_len - u.size(1), u.size(2))],
+ dim=1,
+ )
+ for u in x
+ ])
+
+ if time_conditioning is None:
+ if t.dim() == 1:
+ t = t.expand(t.size(0), seq_len)
+ with torch.amp.autocast('cuda', dtype=torch.float32):
+ bt = t.size(0)
+ t = t.flatten()
+ e = self.time_embedding(sinusoidal_embedding_1d(self.freq_dim, t).unflatten(0, (bt, seq_len)).float())
+ e0 = self.time_projection(e).unflatten(2, (6, self.dim))
+ else:
+ e, e0 = time_conditioning
+ if (e.shape != (x.shape[0], seq_len, self.dim)
+ or e0.shape != (x.shape[0], seq_len, 6, self.dim)):
+ raise ValueError("Cached timestep conditioning has the wrong shape")
+ assert e.dtype == torch.float32 and e0.dtype == torch.float32
+
+ # text context
+ context_lens = None
+ context = self._project_text_context(context)
+
+ vec_action = None
+ if hr_action is not None:
+ vec_action = self._encode_action(hr_action)
+ vec_action = repeat(vec_action, "(B T) D -> B (T H W) D", B=x.shape[0], H=th, W=tw)
+
+ # ---- per-token RoPE for the generate segment --------------------
+ # The current chunk lives at hr-latent indices
+ # [ar_chunk_start, ar_chunk_start + gen_pf). When a compressor ctx is
+ # present, the generate segment must start AFTER the ctx time range
+ # (rope_shift_idx); resolve gen_start = max(ar_chunk_start, ctx_shift).
+ gen_pf = int(grid_sizes[0, 0].item())
+ gen_ph = int(grid_sizes[0, 1].item())
+ gen_pw = int(grid_sizes[0, 2].item())
+ ctx_shift = int(memory_dict.get("rope_shift_idx", 0)) if memory_dict is not None else 0
+ gen_start = max(int(ar_chunk_start), ctx_shift)
+ if getattr(self, 'rope_window', False):
+ gen_freqs_flat = build_freqs_rows(
+ self.freqs, slice(gen_start, gen_start + gen_pf), gen_ph, gen_pw)
+ else:
+ full_freqs = build_freqs_flat(self.freqs, (gen_start + gen_pf, gen_ph, gen_pw)).to(x.device)
+ full_freqs = full_freqs.view(gen_start + gen_pf, gen_ph * gen_pw, -1)
+ gen_freqs_flat = full_freqs[-gen_pf:].reshape(gen_pf * gen_ph * gen_pw, -1)
+
+ # x = pred only; each block reads cached ctx K/V and prepends to pred.
+ freqs_flat = gen_freqs_flat
+ cmp_token_count = int(memory_dict.get("cmp_token_count", 0)) if memory_dict else 0
+ cmp_chunk_token_count = int(memory_dict.get("cmp_chunk_token_count", 0)) if memory_dict else 0
+ tmp_token_count = int(memory_dict.get("tmp_token_count", 0)) if memory_dict else 0
+ seq_lens = torch.tensor([x.shape[1]] * x.shape[0], dtype=torch.long)
+
+ if self.use_sp:
+ sp_size = get_world_size()
+ sp_rank = get_rank()
+ global_sequence = x.shape[1]
+ x = shard_sequence(x, global_sequence=global_sequence, rank=sp_rank, world_size=sp_size, dim=1)
+ e = shard_sequence(e, global_sequence=global_sequence, rank=sp_rank, world_size=sp_size, dim=1)
+ e0 = shard_sequence(e0, global_sequence=global_sequence, rank=sp_rank, world_size=sp_size, dim=1)
+ vec_action = shard_sequence(vec_action, global_sequence=global_sequence, rank=sp_rank,
+ world_size=sp_size, dim=1)
+ freqs_flat = shard_sequence(freqs_flat, global_sequence=global_sequence, rank=sp_rank,
+ world_size=sp_size, dim=0)
+ else:
+ global_sequence = x.shape[1]
+
+ for idx, block in enumerate(self.blocks):
+ x = block(
+ x,
+ e=e0,
+ seq_lens=seq_lens,
+ grid_sizes=grid_sizes,
+ freqs=self.freqs,
+ context=context,
+ context_lens=context_lens,
+ vec_action=vec_action,
+ freqs_flat=freqs_flat,
+ ar=True,
+ cmp_token_count=cmp_token_count,
+ cmp_chunk_token_count=cmp_chunk_token_count,
+ tmp_token_count=tmp_token_count,
+ kv_cache_entry=kv_cache[idx],
+ cache_write=False,
+ )
+
+ # head
+ x = self.head(x, e)
+ endpoint_x = self.head.pop_endpoint_output()
+ if self.use_sp:
+ x = gather_sequence(x, global_sequence=global_sequence)
+ if endpoint_x is not None:
+ endpoint_x = gather_sequence(endpoint_x, global_sequence=global_sequence)
+
+ # unpatchify (no ctx prefix to strip -- x is pred-only throughout)
+ x = self.unpatchify(x, grid_sizes)
+ if endpoint_x is None:
+ return [u.float() for u in x]
+ endpoint_x = self.unpatchify(endpoint_x, grid_sizes)
+ return [
+ (displacement.float(), endpoint.float())
+ for displacement, endpoint in zip(x, endpoint_x)
+ ]
+
+ def unpatchify(self, x, grid_sizes):
+ r"""
+ Reconstruct video tensors from patch embeddings.
+
+ Args:
+ x (List[Tensor]):
+ List of patchified features, each with shape [L, C_out * prod(patch_size)]
+ grid_sizes (Tensor):
+ Original spatial-temporal grid dimensions before patching,
+ shape [B, 3] (3 dimensions correspond to F_patches, H_patches, W_patches)
+
+ Returns:
+ List[Tensor]:
+ Reconstructed video tensors with shape [C_out, F, H / 8, W / 8]
+ """
+
+ c = self.out_dim
+ out = []
+ for u, v in zip(x, grid_sizes.tolist()):
+ u = u[:math.prod(v)].view(*v, *self.patch_size, c)
+ u = torch.einsum('fhwpqrc->cfphqwr', u)
+ u = u.reshape(c, *[i * j for i, j in zip(v, self.patch_size)])
+ out.append(u)
+ return out
+
+ def init_weights(self):
+ r"""
+ Initialize model parameters using Xavier initialization.
+ """
+
+ # basic init
+ for m in self.modules():
+ if isinstance(m, nn.Linear):
+ nn.init.xavier_uniform_(m.weight)
+ if m.bias is not None:
+ nn.init.zeros_(m.bias)
+
+ # init embeddings
+ nn.init.xavier_uniform_(self.patch_embedding.weight.flatten(1))
+ for m in self.text_embedding.modules():
+ if isinstance(m, nn.Linear):
+ nn.init.normal_(m.weight, std=.02)
+ for m in self.time_embedding.modules():
+ if isinstance(m, nn.Linear):
+ nn.init.normal_(m.weight, std=.02)
+
+ # init output layer
+ nn.init.zeros_(self.head.head.weight)
diff --git a/reactor/inference/pdd.py b/reactor/inference/pdd.py
new file mode 100644
index 0000000..f193188
--- /dev/null
+++ b/reactor/inference/pdd.py
@@ -0,0 +1,64 @@
+# Modified for the Reactor runtime.
+"""Upstream four-step schedule with device-aware checkpoint loading."""
+from __future__ import annotations
+
+import torch
+from worldplay2.pdd import FixedPDD4Scheduler as NativeFixedPDD4Scheduler
+
+from .checkpoint import load_state_dict
+
+
+class FixedPDD4Scheduler(NativeFixedPDD4Scheduler):
+ def prepare_checkpoint(
+ self,
+ path: str,
+ *,
+ expert: str,
+ dtype: torch.dtype,
+ device: torch.device | str = "cpu",
+ ) -> dict[str, torch.Tensor]:
+ """Load either interval-head or already compact fixed-PDD weights.
+
+ Tensors are read onto ``device``. An interval head bank is compacted
+ on the host, whatever ``device`` is, and the result moved to ``device``.
+ """
+ state = load_state_dict(path, device=device)
+ compact_weight = "head.block_weight"
+ compact_bias = "head.block_bias"
+ if compact_weight not in state or compact_bias not in state:
+ weight_key = next((
+ key for key in (
+ "head.weight",
+ "head.pdd_weight",
+ "head.head.weight",
+ )
+ if key in state and state[key].ndim == 3
+ ), None)
+ bias_key = next((
+ key for key in (
+ "head.bias",
+ "head.pdd_bias",
+ "head.head.bias",
+ )
+ if key in state and state[key].ndim == 2
+ ), None)
+ if weight_key is None or bias_key is None:
+ raise KeyError(
+ f"{path} has neither compact fixed-PDD heads nor an "
+ "interval PDD head bank"
+ )
+ block_weight, block_bias = self.compact_head(
+ expert,
+ state.pop(weight_key).cpu(),
+ state.pop(bias_key).cpu(),
+ )
+ state[compact_weight] = block_weight.to(device)
+ state[compact_bias] = block_bias.to(device)
+
+ # A compact resume can retain a now-unused standard projection.
+ state.pop("head.head.weight", None)
+ state.pop("head.head.bias", None)
+ for key, tensor in state.items():
+ if tensor.is_floating_point() and tensor.dtype != dtype:
+ state[key] = tensor.to(dtype=dtype)
+ return state
diff --git a/reactor/inference/pipeline.py b/reactor/inference/pipeline.py
new file mode 100644
index 0000000..2f9275a
--- /dev/null
+++ b/reactor/inference/pipeline.py
@@ -0,0 +1,1589 @@
+# Copyright 2024-2025 The Alibaba Wan Team Authors. All rights reserved.
+# Modified for the Reactor runtime.
+"""WorldPlay2 chunked inference with compressed memory and temporal anchors,
+built on Wan2.2 I2V-A14B.
+
+Recipe (per HY WorldPlay reference, adapted to Wan2.2):
+ * Generate ``total_latent_frames`` HR latent frames in groups of
+ ``chunk_length`` frames (default 4).
+ * For chunk 0, run a vanilla i2v denoising loop without context.
+ * For chunks > 0:
+ 1. Streaming-VAE-decode the just-finished HR chunk.
+ 2. Take ``frames[:, ::2]`` (every other frame) and bilinear
+ downsample to (H/4, W/4) in pixel space.
+ 3. Streaming-VAE-encode the downsampled clip back to LR latents.
+ 4. Accumulate (lr_latents_cache, hr_latents_cache, decoded_rgb_cache).
+ 5. Build ``hr_temporal`` = last 2 hr latents before the generate
+ window with zero y, build hr_y / lr_y context (4-mask + 16-image
+ latent, image-only at t=0), then call
+ ``model(forward_mode="compress", ...)`` to
+ produce ``memory_dict``.
+ 6. Run the chunk's denoising loop with ``memory_dict`` plumbed in.
+ * After the final chunk, decode the last chunk (continuing the same
+ streaming cache) and concatenate with the cached RGB.
+
+The pipeline builds the T5 encoder, VAE, and two ``WorldPlay2Model`` experts.
+Each expert loads its complete DiT, action encoder, and memory compressor
+weights from a separate checkpoint.
+
+Sequence-parallel behavior is owned by ``WorldPlay2Model`` and
+``WorldPlay2SelfAttention`` themselves. The pipeline only enables it through
+``model.set_sequence_parallel``; no runtime monkey-patching is used.
+"""
+
+import gc
+import logging
+import math
+import os
+import random
+import sys
+from contextlib import contextmanager
+from enum import Enum
+from functools import partial
+
+import torch
+import torch.distributed as dist
+import torch.nn.functional as F
+import torchvision.transforms.functional as TF
+from torch.distributed.fsdp import FullyShardedDataParallel as FSDP
+from tqdm import tqdm
+
+from .checkpoint import load_expert_checkpoint
+from worldplay2.distributed.fsdp import shard_model
+from worldplay2.distributed.ops import get_world_size
+from worldplay2.models.attention import resolve_attention_backend
+from .model import WorldPlay2Model
+from worldplay2.models.fp8 import (
+ convert_model_ffn_to_fp8,
+ convert_model_qkv_to_fp8,
+ fp8_model_stats,
+)
+from .pdd import FixedPDD4Scheduler
+from worldplay2.schedulers import (FlowDPMSolverMultistepScheduler,
+ FlowUniPCMultistepScheduler, get_sampling_sigmas,
+ retrieve_timesteps)
+from .text import T5EncoderModel
+from .vae import Wan2_1_VAE
+
+
+def _assert_materialised(model: torch.nn.Module, tag: str) -> None:
+ """Fail if any parameter, buffer or tensor attribute is still on meta."""
+ left = []
+ for module_name, module in model.named_modules():
+ for name, value in module.__dict__.items():
+ if name in ("_parameters", "_buffers"):
+ continue
+ if isinstance(value, torch.Tensor) and value.is_meta:
+ left.append(f"{module_name}.{name}")
+ for name, value in list(module._parameters.items()) + list(
+ module._buffers.items()):
+ if value is not None and value.is_meta:
+ left.append(f"{module_name}.{name}")
+ if left:
+ raise RuntimeError(
+ f"{tag}: tensors not loaded from the checkpoint: {left[:10]}"
+ f"{' ...' if len(left) > 10 else ''}")
+
+
+# ---------------------------------------------------------------------------
+# small utilities (mirror the dataset/training conventions verbatim)
+# ---------------------------------------------------------------------------
+
+def _build_i2v_mask_4ch(t_lat: int, h_lat: int, w_lat: int,
+ device, dtype) -> torch.Tensor:
+ """Build the 4-channel "1,0,0,..." mask used as the first 4 channels
+ of ``y``. Mirrors ``bi_camera_wan22_w_mem_dataset._build_i2v_mask``.
+ """
+ m = torch.ones(1, t_lat * 4 - 3, h_lat, w_lat, device=device, dtype=dtype)
+ m[:, 1:] = 0
+ m = torch.cat([m[:, 0:1].repeat_interleave(4, dim=1), m[:, 1:]], dim=1)
+ m = m.view(1, m.shape[1] // 4, 4, h_lat, w_lat).transpose(1, 2)[0]
+ return m # [4, t_lat, h_lat, w_lat]
+
+
+def _encode_i2v_clip(vae, img_pixel: torch.Tensor, t_lat: int,
+ h_pix: int, w_pix: int, device,
+ reuse_zero_tail: bool = False,
+ lazy_zeros: bool = False) -> torch.Tensor:
+ """VAE-encode the I2V pixel clip ``[image, zeros..., zeros]`` into a
+ 16-channel latent of temporal length ``t_lat``.
+
+ Mirrors the upstream :meth:`WanI2V.generate` recipe verbatim::
+
+ y = vae.encode([
+ cat([
+ F.interpolate(img[None], (h, w), mode='bicubic').transpose(0,1),
+ zeros(3, F_pix - 1, h, w),
+ ], dim=1)
+ ])[0]
+
+ where ``F_pix = t_lat * 4 - 3`` so the temporal-causal VAE produces
+ exactly ``t_lat`` latent frames. ``img_pixel`` is on ``device``,
+ shape ``[3, H_in, W_in]``, value range [-1, 1].
+ """
+ F_pix = t_lat * 4 - 3
+ if lazy_zeros and reuse_zero_tail and isinstance(vae, Wan2_1_VAE):
+ head = torch.nn.functional.interpolate(
+ img_pixel[None].cpu(), size=(h_pix, w_pix),
+ mode='bilinear').transpose(0, 1).to(device) # [3, 1, h, w]
+ return vae.encode_zero_tail(head, F_pix)
+ clip = torch.cat([
+ torch.nn.functional.interpolate(
+ img_pixel[None].cpu(), size=(h_pix, w_pix),
+ mode='bilinear').transpose(0, 1), # [3, 1, h, w]
+ torch.zeros(3, F_pix - 1, h_pix, w_pix),
+ ], dim=1).to(device) # [3, F_pix, h, w]
+ if reuse_zero_tail and isinstance(vae, Wan2_1_VAE):
+ return vae.encode([clip], reuse_zero_tail=True)[0]
+ return vae.encode([clip])[0] # [16, t_lat, h, w]
+
+
+def _build_y(vae, img_pixel: torch.Tensor, t_lat: int,
+ h_pix: int, w_pix: int, device, dtype,
+ reuse_zero_tail: bool = False,
+ lazy_zeros: bool = False) -> torch.Tensor:
+ """Construct the 20-channel y volume = [4-mask | 16-image-clip-latent]
+ using the same recipe as upstream :meth:`WanI2V.generate`.
+ """
+ y_img = _encode_i2v_clip(vae, img_pixel, t_lat, h_pix, w_pix, device,
+ reuse_zero_tail, lazy_zeros)
+ h_lat, w_lat = y_img.shape[2], y_img.shape[3]
+ msk = _build_i2v_mask_4ch(t_lat, h_lat, w_lat, device, y_img.dtype)
+ return torch.cat([msk, y_img], dim=0).to(dtype=dtype) # [20, t_lat, h_lat, w_lat]
+
+
+# Trailing HR frames the windowed memory compressor reads.
+COMPRESS_WINDOW = 32
+
+
+def _memory_counts(memory_dict):
+ return {key: memory_dict[key] for key in (
+ "rope_shift_idx", "sink_token_count", "cmp_token_count",
+ "cmp_chunk_token_count", "tmp_token_count") if key in memory_dict}
+
+
+@contextmanager
+def _noop_no_sync():
+ yield
+
+
+def _parameter_dtype_summary(module) -> dict[str, int]:
+ counts: dict[str, int] = {}
+ for parameter in module.parameters():
+ name = str(parameter.dtype).replace("torch.", "")
+ counts[name] = counts.get(name, 0) + parameter.numel()
+ return counts
+
+
+def _fsdp_unit_count(module) -> int:
+ return sum(
+ 1 for child in module.modules() if isinstance(child, FSDP)
+ )
+
+
+class InferenceMode(str, Enum):
+ BI = "bi"
+ AR = "ar"
+ PDD = "pdd"
+
+
+# ---------------------------------------------------------------------------
+# main pipeline
+# ---------------------------------------------------------------------------
+
+class WorldPlay2Pipeline:
+ """WorldPlay2 pipeline for chunked action-conditioned video generation.
+
+ Owns: T5 encoder, Wan2.1 VAE, two ``WorldPlay2Model`` experts (low / high
+ noise) with the action MLP + memory_compress submodule installed.
+ """
+
+ def __init__(
+ self,
+ config,
+ checkpoint_dir: str,
+ low_noise_mem_ckpt: str,
+ high_noise_mem_ckpt: str,
+ device_id: int = 0,
+ rank: int = 0,
+ t5_fsdp: bool = False,
+ dit_fsdp: bool = False,
+ use_sp: bool = False,
+ compile_qk_rope: bool = True,
+ conditioning_cache: bool = True,
+ fuse_self_qkv: bool = True,
+ compile_block_glue: bool = True,
+ compile_ffn: bool = True,
+ fp8_ffn: bool = False,
+ fp8_start_block: int = 4,
+ fp8_end_block: int = 35,
+ fp8_qkv: bool = False,
+ fp8_qkv_start_block: int = 4,
+ fp8_qkv_end_block: int = 35,
+ init_on_cpu: bool = True,
+ inference_mode: InferenceMode | str = InferenceMode.BI,
+ vae_type: str = "wan2_1",
+ tae_ckpt: str = None,
+ attention_backend: str = "flash",
+ exact_optimizations: bool = False,
+ ):
+ """
+ Args:
+ config: model settings from ``configs.I2V_A14B_CONFIG``.
+ checkpoint_dir: directory holding the base T5 / VAE / DiT
+ checkpoints (same layout :class:`WanI2V` expects).
+ low_noise_mem_ckpt: path to a ``.safetensors``/``.pt`` file
+ holding the LOW-noise expert's trained ``action_in.*``,
+ ``img_action_mlp.*`` and ``memory_compress.*`` weights.
+ high_noise_mem_ckpt: same, but for the HIGH-noise expert.
+ The two experts are trained separately (see
+ ``run_bi_wan22_action_mem_stage_three.sh`` with /
+ without ``--low_noise``), so each carries its own
+ memory_compress + action weights and at inference we
+ must run TWO compressor passes per chunk and dispatch
+ by timestep just like the denoise step does.
+ device_id, rank, t5_fsdp, dit_fsdp, use_sp, init_on_cpu:
+ runtime placement options.
+ attention_backend: visual denoising attention backend, 'flash'
+ or 'sage'.
+ """
+ assert low_noise_mem_ckpt is not None and high_noise_mem_ckpt is not None, (
+ "WorldPlay2Pipeline requires BOTH --low_noise_mem_ckpt and "
+ "--high_noise_mem_ckpt; the FastVideo training pipeline "
+ "produces a separate checkpoint for each expert (each with "
+ "its own memory_compress + action weights) and the inference "
+ "loop dispatches between them by timestep.")
+
+ self.inference_mode = InferenceMode(inference_mode)
+ if exact_optimizations and (dit_fsdp or fp8_ffn or fp8_qkv):
+ raise ValueError("Exact conditioning reuse requires unquantized, non-FSDP experts")
+ self.exact_optimizations = exact_optimizations
+ self.lazy_zero_clip = False
+ self.kv_inplace = False
+ self.compress_window = False
+ self.slim_memory = False
+ self.chunk_stream = False
+ self.noise_mode = "horizon" # "horizon" or "chunk"
+ self._zero_tails = {}
+ self._window_buffers = None
+ self.attention_backend = resolve_attention_backend(attention_backend)
+ logging.info("Visual self-attention backend: %s", self.attention_backend)
+ self.device = torch.device(f"cuda:{device_id}")
+ self.config = config
+ self.rank = rank
+ self.init_on_cpu = init_on_cpu
+ self.denoise_forward_mode = (
+ "bi_denoise"
+ if self.inference_mode is InferenceMode.BI
+ else (
+ "pdd_denoise"
+ if self.inference_mode is InferenceMode.PDD
+ else "ar_denoise"
+ )
+ )
+ self.pdd_scheduler = (
+ FixedPDD4Scheduler()
+ if self.inference_mode is InferenceMode.PDD
+ else None
+ )
+ self.use_sp = use_sp
+ self.compile_qk_rope = compile_qk_rope
+ self.conditioning_cache_enabled = conditioning_cache
+ self.fuse_self_qkv = fuse_self_qkv
+ self.compile_block_glue = compile_block_glue
+ self.compile_ffn = compile_ffn
+ self.fp8_ffn_enabled = fp8_ffn
+ self.fp8_start_block = fp8_start_block
+ self.fp8_end_block = fp8_end_block
+ self.fp8_qkv_enabled = fp8_qkv
+ self.fp8_qkv_start_block = fp8_qkv_start_block
+ self.fp8_qkv_end_block = fp8_qkv_end_block
+ self.fp8_enabled = fp8_ffn or fp8_qkv
+ if self.fp8_enabled and dit_fsdp:
+ raise ValueError(
+ "DiT FP8 currently requires --dit_fsdp to be disabled")
+ if fp8_qkv and not fuse_self_qkv:
+ raise ValueError(
+ "QKV FP8 requires self-attention QKV fusion")
+
+ self.num_train_timesteps = config.num_train_timesteps
+ self.boundary = config.boundary
+ self.param_dtype = config.param_dtype
+
+ if t5_fsdp or dit_fsdp or use_sp:
+ self.init_on_cpu = False
+
+ shard_fn = partial(shard_model, device_id=device_id)
+ self.text_encoder = T5EncoderModel(
+ text_len=config.text_len,
+ dtype=config.t5_dtype,
+ device=self.device,
+ checkpoint_path=os.path.join(checkpoint_dir, config.t5_checkpoint),
+ tokenizer_path=os.path.join(checkpoint_dir, config.t5_tokenizer),
+ shard_fn=shard_fn if t5_fsdp else None,
+ )
+
+ self.vae_stride = config.vae_stride
+ self.patch_size = config.patch_size
+ # VAE is pluggable: the default Wan2.1 VAE, or the causal TAE
+ # (lightvae) which exposes the SAME encode/decode/encode_chunk/
+ # decode_chunk list interface via CausalTAEVAE, so nothing downstream
+ # changes. Both are temporally causal (T_pix = 4*T_lat - 3).
+ assert vae_type in ("wan2_1", "causal_tae"), (
+ f"vae_type must be 'wan2_1' or 'causal_tae', got {vae_type!r}")
+ if vae_type == "causal_tae":
+ from worldplay2.vae.causal_tae import CausalTAEVAE
+ assert tae_ckpt is not None, (
+ "vae_type='causal_tae' requires --tae_ckpt "
+ "(the CausalTAE encoder+decoder weights).")
+ self.vae = CausalTAEVAE(
+ vae_pth=tae_ckpt,
+ z_dim=16,
+ device=self.device)
+ else:
+ self.vae = Wan2_1_VAE(
+ vae_pth=os.path.join(checkpoint_dir, config.vae_checkpoint),
+ device=self.device)
+
+ # Build the architecture from the base model config only. The supplied
+ # expert checkpoints contain the complete DiT + action + compressor
+ # state, so loading base-model parameters through from_pretrained would
+ # be redundant and would temporarily consume additional host memory.
+ # Each expert is materialised directly where it will run: on its GPU
+ # unless it is kept on the host (CPU offload) or sharded from the host
+ # (FSDP).
+ load_device = (
+ torch.device("cpu") if (self.init_on_cpu or dit_fsdp)
+ else self.device
+ )
+ self.low_noise_model = self._build_expert_from_config(
+ checkpoint_dir=checkpoint_dir,
+ config_subfolder=config.low_noise_checkpoint,
+ expert_ckpt=low_noise_mem_ckpt,
+ tag="low_noise_model",
+ dtype=self.param_dtype,
+ device=load_device,
+ fuse_self_qkv=fuse_self_qkv,
+ pdd_scheduler=self.pdd_scheduler,
+ pdd_expert="low",
+ )
+ self.high_noise_model = self._build_expert_from_config(
+ checkpoint_dir=checkpoint_dir,
+ config_subfolder=config.high_noise_checkpoint,
+ expert_ckpt=high_noise_mem_ckpt,
+ tag="high_noise_model",
+ dtype=self.param_dtype,
+ device=load_device,
+ fuse_self_qkv=fuse_self_qkv,
+ pdd_scheduler=self.pdd_scheduler,
+ pdd_expert="high",
+ )
+
+ # ---- configure (FSDP / SP / dtype / device) ----------------------
+ self.low_noise_model = self._configure_model(
+ model=self.low_noise_model,
+ use_sp=use_sp,
+ attention_backend=self.attention_backend,
+ compile_qk_rope=compile_qk_rope,
+ conditioning_cache=conditioning_cache,
+ compile_block_glue=compile_block_glue,
+ compile_ffn=compile_ffn,
+ fp8_ffn=fp8_ffn,
+ fp8_start_block=fp8_start_block,
+ fp8_end_block=fp8_end_block,
+ fp8_qkv=fp8_qkv,
+ fp8_qkv_start_block=fp8_qkv_start_block,
+ fp8_qkv_end_block=fp8_qkv_end_block,
+ dit_fsdp=dit_fsdp,
+ shard_fn=shard_fn)
+ self.high_noise_model = self._configure_model(
+ model=self.high_noise_model,
+ use_sp=use_sp,
+ attention_backend=self.attention_backend,
+ compile_qk_rope=compile_qk_rope,
+ conditioning_cache=conditioning_cache,
+ compile_block_glue=compile_block_glue,
+ compile_ffn=compile_ffn,
+ fp8_ffn=fp8_ffn,
+ fp8_start_block=fp8_start_block,
+ fp8_end_block=fp8_end_block,
+ fp8_qkv=fp8_qkv,
+ fp8_qkv_start_block=fp8_qkv_start_block,
+ fp8_qkv_end_block=fp8_qkv_end_block,
+ dit_fsdp=dit_fsdp,
+ shard_fn=shard_fn)
+
+ self.sp_size = get_world_size() if use_sp else 1
+ self.sample_neg_prompt = config.sample_neg_prompt
+ self.dtype_report = {
+ "attention_backend": self.attention_backend,
+ "configured_dit_compute_dtype": str(
+ self.param_dtype).replace("torch.", ""),
+ "t5_fsdp_requested": bool(t5_fsdp),
+ "dit_fsdp": bool(dit_fsdp),
+ "t5_fsdp_units": _fsdp_unit_count(self.text_encoder.model),
+ "low_noise_fsdp_units": _fsdp_unit_count(
+ self.low_noise_model),
+ "high_noise_fsdp_units": _fsdp_unit_count(
+ self.high_noise_model),
+ "compile_qk_rope": bool(compile_qk_rope),
+ "conditioning_cache": bool(conditioning_cache),
+ "self_qkv_fused": bool(fuse_self_qkv),
+ "compile_block_glue": bool(compile_block_glue),
+ "compile_ffn": bool(compile_ffn),
+ "fp8_ffn": bool(fp8_ffn),
+ "fp8_block_range": (
+ [fp8_start_block, fp8_end_block] if fp8_ffn else None
+ ),
+ "fp8_qkv": bool(fp8_qkv),
+ "fp8_qkv_block_range": (
+ [fp8_qkv_start_block, fp8_qkv_end_block]
+ if fp8_qkv else None
+ ),
+ "low_noise_parameter_storage": _parameter_dtype_summary(
+ self.low_noise_model),
+ "high_noise_parameter_storage": _parameter_dtype_summary(
+ self.high_noise_model),
+ "t5_configured_dtype": str(
+ config.t5_dtype).replace("torch.", ""),
+ "t5_parameter_storage": _parameter_dtype_summary(
+ self.text_encoder.model),
+ "vae_configured_dtype": str(
+ self.vae.dtype).replace("torch.", ""),
+ "vae_parameter_storage": _parameter_dtype_summary(
+ self.vae.model),
+ }
+ logging.info("Dtype report: %s", self.dtype_report)
+
+ # ------------------------------------------------------------------
+ # ckpt loading + model configuration
+ # ------------------------------------------------------------------
+
+ @staticmethod
+ def _build_expert_from_config(
+ checkpoint_dir: str,
+ config_subfolder: str,
+ expert_ckpt: str,
+ tag: str,
+ dtype: torch.dtype,
+ fuse_self_qkv: bool,
+ pdd_scheduler: FixedPDD4Scheduler | None = None,
+ pdd_expert: str | None = None,
+ device: torch.device | str = "cpu",
+ ) -> WorldPlay2Model:
+ """Initialize architecture from config and strictly load a full expert.
+
+ The architecture is created on the meta device, so no parameter is
+ allocated or randomly initialised; the checkpoint is then read straight
+ onto ``device`` in ``dtype`` and its tensors become the parameters
+ (``assign=True``). Every parameter must come from the checkpoint
+ (strict loading), so the result does not depend on how the module
+ would have been initialised. Tensors the model computes itself at
+ construction (the RoPE table) are built on the host, as before.
+ """
+ config_dir = os.path.join(checkpoint_dir, config_subfolder)
+ logging.info("Creating %s from config on the meta device: %s",
+ tag, config_dir)
+ model_config = WorldPlay2Model.load_config(config_dir)
+ with torch.device("meta"):
+ model = WorldPlay2Model.from_config(model_config)
+ model.add_embedding_action_parameters()
+ model.add_memory_compress_model()
+ if pdd_scheduler is not None:
+ model.head.make_fixed_pdd(num_blocks=2)
+ if pdd_scheduler is None:
+ load_expert_checkpoint(
+ model, expert_ckpt, tag=tag, strict=True,
+ device=device, dtype=dtype, assign=True)
+ else:
+ state = pdd_scheduler.prepare_checkpoint(
+ expert_ckpt, expert=pdd_expert, dtype=dtype, device=device
+ )
+ provided = set(state)
+ required_prefixes = (
+ "memory_compress.",
+ "action_in_cont.",
+ "action_in_disc.",
+ )
+ absent = [
+ prefix for prefix in required_prefixes
+ if not any(key.startswith(prefix) for key in provided)
+ ]
+ if absent:
+ raise ValueError(
+ f"{tag} PDD checkpoint is missing required parameter "
+ f"groups: {absent}"
+ )
+ model.load_state_dict(state, strict=True, assign=True)
+ del state
+ logging.info(
+ "%s fixed-PDD checkpoint: loaded=%d expert=%s",
+ tag,
+ len(provided),
+ pdd_expert,
+ )
+ _assert_materialised(model, tag)
+ # Install after strict checkpoint loading (which expects q/k/v keys)
+ # and before FSDP wrapping (which should only see the fused weights).
+ if fuse_self_qkv:
+ model.fuse_self_attention_qkv()
+ return model
+
+ def _configure_model(
+ self,
+ model,
+ use_sp,
+ attention_backend,
+ compile_qk_rope,
+ conditioning_cache,
+ compile_block_glue,
+ compile_ffn,
+ fp8_ffn,
+ fp8_start_block,
+ fp8_end_block,
+ fp8_qkv,
+ fp8_qkv_start_block,
+ fp8_qkv_end_block,
+ dit_fsdp,
+ shard_fn,
+ ):
+ """Configure dtype/device/FSDP and enable the model-owned SP path."""
+ model.eval().requires_grad_(False)
+ model.to(dtype=self.param_dtype)
+
+ model.set_sequence_parallel(use_sp)
+ model.set_self_attention_backend(attention_backend)
+ model.set_compiled_qk_rope(compile_qk_rope)
+ model.set_conditioning_cache(conditioning_cache)
+ model.set_compiled_regions(
+ block_glue=compile_block_glue,
+ ffn=compile_ffn,
+ )
+
+ if dist.is_initialized():
+ dist.barrier(device_ids=[self.device.index])
+
+ if fp8_ffn or fp8_qkv:
+ # TE primary FP8 weights must remain resident. This path
+ # intentionally does not support DiT FSDP or model offload.
+ model.to(self.device)
+ if fp8_qkv:
+ report = convert_model_qkv_to_fp8(
+ model,
+ start_block=fp8_qkv_start_block,
+ end_block=fp8_qkv_end_block,
+ )
+ logging.info("Installed self-attention QKV FP8: %s", report)
+ if fp8_ffn:
+ report = convert_model_ffn_to_fp8(
+ model,
+ start_block=fp8_start_block,
+ end_block=fp8_end_block,
+ )
+ logging.info("Installed FFN FP8: %s", report)
+
+ if dit_fsdp:
+ model = shard_fn(model)
+ else:
+ if not self.init_on_cpu:
+ model.to(self.device)
+
+ return model
+
+ @staticmethod
+ def _find_wan_model(model):
+ for module in model.modules():
+ if isinstance(module, WorldPlay2Model):
+ return module
+ raise RuntimeError("FSDP/model wrapper does not contain WorldPlay2Model")
+
+ def clear_conditioning_cache(self) -> None:
+ self._find_wan_model(
+ self.low_noise_model).clear_conditioning_cache()
+ self._find_wan_model(
+ self.high_noise_model).clear_conditioning_cache()
+
+ def fp8_stats(self) -> dict:
+ return {
+ "low_noise": fp8_model_stats(
+ self._find_wan_model(self.low_noise_model)),
+ "high_noise": fp8_model_stats(
+ self._find_wan_model(self.high_noise_model)),
+ }
+
+ def _prepare_model_for_timestep(self, t, boundary, offload_model):
+ """Mirrors :meth:`WanI2V._prepare_model_for_timestep`."""
+ if t.item() >= boundary:
+ required_model_name = 'high_noise_model'
+ offload_model_name = 'low_noise_model'
+ else:
+ required_model_name = 'low_noise_model'
+ offload_model_name = 'high_noise_model'
+ if offload_model or self.init_on_cpu:
+ other = getattr(self, offload_model_name)
+ active = getattr(self, required_model_name)
+ if next(other.parameters()).device.type == 'cuda':
+ # Cached tensors are plain inference state and are not moved by
+ # Module.to(). Drop them before offloading the expert.
+ self._find_wan_model(other).clear_conditioning_cache()
+ other.to('cpu')
+ if next(active.parameters()).device.type == 'cpu':
+ active.to(self.device)
+ return getattr(self, required_model_name)
+
+ def _prepare_named_expert(self, expert: str, offload_model: bool):
+ required = f"{expert}_noise_model"
+ other = "low_noise_model" if expert == "high" else "high_noise_model"
+ if offload_model or self.init_on_cpu:
+ other_model = getattr(self, other)
+ active_model = getattr(self, required)
+ if next(other_model.parameters()).device.type == "cuda":
+ self._find_wan_model(other_model).clear_conditioning_cache()
+ other_model.to("cpu")
+ if next(active_model.parameters()).device.type == "cpu":
+ active_model.to(self.device)
+ return getattr(self, required)
+
+ def _run_pdd_chunk(
+ self,
+ *,
+ latent,
+ y_chunk,
+ hr_action_chunk,
+ context,
+ memory_dict_high,
+ memory_dict_low,
+ kv_high,
+ kv_low,
+ chunk_start,
+ seed_g,
+ ):
+ for block in self.pdd_scheduler.ordered_blocks:
+ model = self._prepare_named_expert(
+ block.expert,
+ self.offload_model,
+ )
+
+ kv_cache = kv_high if block.expert == "high" else kv_low
+ memory_dict = (
+ memory_dict_high
+ if block.expert == "high"
+ else memory_dict_low
+ )
+ cpu_timestep = self.pdd_scheduler.timesteps[block.start:block.start + 1]
+ if self.exact_optimizations:
+ timestep, time_conditioning = model.prepare_time_conditioning(cpu_timestep, self.seq_len_chunk)
+ else:
+ timestep, time_conditioning = cpu_timestep.to(self.device), None
+ args = dict(
+ context=[context[0]],
+ seq_len=self.seq_len_chunk,
+ y=[y_chunk],
+ hr_action=hr_action_chunk,
+ forward_mode="pdd_denoise",
+ pdd_block_index=block.local_index,
+ kv_cache=kv_cache,
+ ar_chunk_start=chunk_start,
+ memory_dict=memory_dict,
+ time_conditioning=time_conditioning,
+ )
+ output = model(
+ [latent.to(self.device)],
+ t=timestep,
+ **args,
+ )[0]
+ if not isinstance(output, tuple) or len(output) != 2:
+ raise RuntimeError(
+ "fixed PDD model must return "
+ "(displacement, endpoint_velocity)"
+ )
+ displacement, endpoint_velocity = output
+ sigma_endpoint = self.pdd_scheduler.sigmas[block.end - 1].to(device=latent.device, dtype=torch.float32)
+ state_endpoint = latent.float() + displacement.float()
+ x0 = (state_endpoint - sigma_endpoint * endpoint_velocity.float()).to(latent.dtype)
+
+ sigma_end = self.pdd_scheduler.sigmas[block.end].to(device=latent.device, dtype=torch.float32)
+ if block.end == self.pdd_scheduler.num_intervals:
+ latent = x0
+ else:
+ noise = torch.randn(x0.shape, generator=seed_g, device=x0.device, dtype=x0.dtype)
+ latent = ((1.0 - sigma_end) * x0.float() + sigma_end * noise.float()).to(x0.dtype)
+ return latent
+
+ def _build_chunk_scheduler(
+ self,
+ sample_solver: str,
+ sampling_steps: int,
+ shift: float,
+ ):
+ if sample_solver == "unipc":
+ scheduler = FlowUniPCMultistepScheduler(
+ num_train_timesteps=self.num_train_timesteps,
+ shift=1,
+ use_dynamic_shifting=False,
+ )
+ scheduler.set_timesteps(
+ sampling_steps,
+ device=self.device,
+ shift=shift,
+ )
+ return scheduler, scheduler.timesteps
+ if sample_solver == "dpm++":
+ scheduler = FlowDPMSolverMultistepScheduler(
+ num_train_timesteps=self.num_train_timesteps,
+ shift=1,
+ use_dynamic_shifting=False,
+ )
+ sampling_sigmas = get_sampling_sigmas(sampling_steps, shift)
+ timesteps, _ = retrieve_timesteps(
+ scheduler,
+ device=self.device,
+ sigmas=sampling_sigmas,
+ )
+ return scheduler, timesteps
+ raise NotImplementedError(f"Unsupported solver {sample_solver!r}")
+
+ def _predict_chunk_noise(
+ self,
+ *,
+ latent,
+ timestep_value,
+ boundary,
+ context,
+ context_null,
+ memory_dict_high,
+ memory_dict_low,
+ kv_high,
+ kv_high_neg,
+ kv_low,
+ kv_low_neg,
+ y_chunk,
+ hr_action_chunk,
+ ar_cache,
+ chunk_start,
+ ):
+ latent_model_input = [latent.to(self.device)]
+ timestep = torch.stack([timestep_value]).to(self.device)
+ model = self._prepare_model_for_timestep(
+ timestep_value,
+ boundary,
+ self.offload_model,
+ )
+
+ if timestep_value.item() >= boundary:
+ memory_dict = memory_dict_high
+ kv_cache, kv_cache_neg = kv_high, kv_high_neg
+ sample_guide_scale = self.guide_scale[1]
+ use_cfg = self.use_cfg_high
+ else:
+ memory_dict = memory_dict_low
+ kv_cache, kv_cache_neg = kv_low, kv_low_neg
+ sample_guide_scale = self.guide_scale[0]
+ use_cfg = self.use_cfg_low
+
+ model_args = {
+ "context": [context[0]],
+ "seq_len": self.seq_len_chunk,
+ "y": [y_chunk],
+ "hr_action": hr_action_chunk,
+ "forward_mode": self.denoise_forward_mode,
+ }
+ if ar_cache:
+ model_args.update(
+ kv_cache=kv_cache,
+ ar_chunk_start=chunk_start,
+ )
+ else:
+ model_args["memory_dict"] = memory_dict
+
+ noise_pred_cond = model(
+ latent_model_input,
+ t=timestep,
+ **model_args,
+ )[0]
+ if use_cfg:
+ null_args = {
+ "context": context_null,
+ "seq_len": self.seq_len_chunk,
+ "y": [y_chunk],
+ "hr_action": hr_action_chunk,
+ "forward_mode": self.denoise_forward_mode,
+ }
+ if ar_cache:
+ null_args.update(
+ kv_cache=kv_cache_neg,
+ ar_chunk_start=chunk_start,
+ )
+ else:
+ null_args["memory_dict"] = memory_dict
+ noise_pred_uncond = model(
+ latent_model_input,
+ t=timestep,
+ **null_args,
+ )[0]
+ if self.offload_model:
+ torch.cuda.empty_cache()
+ noise_pred_cond = noise_pred_uncond + sample_guide_scale * (
+ noise_pred_cond - noise_pred_uncond
+ )
+ return noise_pred_cond
+
+ def _run_solver_chunk(
+ self,
+ *,
+ latent,
+ sample_solver,
+ sampling_steps,
+ shift,
+ seed_g,
+ boundary,
+ context,
+ context_null,
+ memory_dict_high,
+ memory_dict_low,
+ kv_high,
+ kv_high_neg,
+ kv_low,
+ kv_low_neg,
+ y_chunk,
+ hr_action_chunk,
+ ar_cache,
+ chunk_start,
+ chunk_index,
+ ):
+ scheduler, timesteps = self._build_chunk_scheduler(
+ sample_solver,
+ sampling_steps,
+ shift,
+ )
+ if self.offload_model:
+ torch.cuda.empty_cache()
+
+ for timestep_value in tqdm(timesteps, desc=f"chunk {chunk_index}"):
+ noise_pred = self._predict_chunk_noise(
+ latent=latent,
+ timestep_value=timestep_value,
+ boundary=boundary,
+ context=context,
+ context_null=context_null,
+ memory_dict_high=memory_dict_high,
+ memory_dict_low=memory_dict_low,
+ kv_high=kv_high,
+ kv_high_neg=kv_high_neg,
+ kv_low=kv_low,
+ kv_low_neg=kv_low_neg,
+ y_chunk=y_chunk,
+ hr_action_chunk=hr_action_chunk,
+ ar_cache=ar_cache,
+ chunk_start=chunk_start,
+ )
+ latent = scheduler.step(
+ noise_pred.unsqueeze(0),
+ timestep_value,
+ latent.unsqueeze(0),
+ return_dict=False,
+ generator=seed_g,
+ )[0].squeeze(0)
+ return latent
+
+ def _prefill_kv_cache(
+ self,
+ model,
+ memory_dict,
+ kv_cache,
+ kv_cache_neg,
+ context,
+ context_null,
+ use_cfg,
+ ):
+ """Prefill conditional cache and the optional CFG cache.
+
+ The ctx self-attn K/V pass through cross-attention (text), so the
+ cond and uncond ctx K/V differ -> two separate caches. When
+ ``memory_dict`` is None (first chunk) prefill is a no-op and the
+ caches stay empty (denoise then runs pred-only attention).
+
+ Returns the (possibly mutated) ``(kv_cache, kv_cache_neg)`` so the
+ caller rebinds explicitly rather than relying on in-place mutation.
+ """
+ if memory_dict is None:
+ return kv_cache, kv_cache_neg
+ kv_cache = model(
+ forward_mode="ar_prefill",
+ context=[context[0]],
+ memory_dict=memory_dict,
+ kv_cache=kv_cache,
+ )
+ if use_cfg:
+ if context_null is None or kv_cache_neg is None:
+ raise ValueError("CFG prefill requires null context and cache")
+ kv_cache_neg = model(
+ forward_mode="ar_prefill",
+ context=context_null,
+ memory_dict=memory_dict,
+ kv_cache=kv_cache_neg,
+ )
+ return kv_cache, kv_cache_neg
+
+ # ------------------------------------------------------------------
+ # streaming VAE helpers
+ # ------------------------------------------------------------------
+
+ def _decode_chunk_and_lr_encode(
+ self,
+ hr_latent_chunk: torch.Tensor,
+ is_first_vae_chunk: bool,
+ ):
+ """Decode one HR latent chunk via streaming VAE, downsample
+ (T::2, HW//4 in pixel space), then re-encode via streaming VAE.
+
+ Returns (lr_latent, rgb_frames) where:
+ lr_latent : [16, T_lr_lat, h//4, w//4]
+ rgb_frames : [3, T_pix, H_pix, W_pix] in [-1, 1]
+ """
+ leader_vae = self.use_sp and self.exact_optimizations
+ if leader_vae and self.rank != 0:
+ channels, frames, height, width = hr_latent_chunk.shape
+ lr_lat = torch.empty(
+ (channels, frames // 2, height // 4, width // 4),
+ device=self.device, dtype=self.vae.dtype)
+ dist.broadcast(lr_lat, src=0)
+ return lr_lat, None
+ rgb = self.vae.decode_chunk([hr_latent_chunk],
+ is_first_chunk=is_first_vae_chunk)[0]
+
+ lr_pix = rgb[:, ::2, :, :] # T::2
+ h_pix, w_pix = lr_pix.shape[2:]
+ target_size = (h_pix // 4, w_pix // 4)
+ lr_pix = lr_pix.permute(1, 0, 2, 3).contiguous() # [T, C, H, W]
+ lr_pix = F.interpolate(lr_pix, size=target_size, mode='bilinear',
+ align_corners=False)
+ lr_pix = lr_pix.permute(1, 0, 2, 3).contiguous() # [C, T, H, W]
+
+ lr_lat = self.vae.encode_chunk([lr_pix],
+ is_first_chunk=is_first_vae_chunk)[0]
+ if leader_vae:
+ # Rank 0 decodes; the LR latent is broadcast to the other ranks.
+ lr_lat = lr_lat.contiguous()
+ dist.broadcast(lr_lat, src=0)
+ return lr_lat, rgb
+
+ def _decode_last_chunk(self, latent: torch.Tensor, is_first_vae_chunk: bool):
+ """Decode the stream's last chunk, which needs no LR memory: rank 0 only."""
+ if self.rank != 0:
+ return None
+ return self.vae.decode_chunk([latent], is_first_chunk=is_first_vae_chunk)[0]
+
+ def _build_lr_image_pixel(self, img_pixel_hr: torch.Tensor,
+ h_hr_pix: int, w_hr_pix: int) -> torch.Tensor:
+ """Bicubic-downsample the HR pixel image to the LR resolution
+ ``(h_hr_pix//4, w_hr_pix//4)`` -- matches the (H//4, W//4) target
+ used by :meth:`_decode_chunk_and_lr_encode`. Returns ``[3, H_lr, W_lr]``
+ on ``self.device``.
+ """
+ return F.interpolate(
+ img_pixel_hr[None].cpu(),
+ size=(h_hr_pix // 4, w_hr_pix // 4),
+ mode='bilinear')[0].to(self.device)
+
+ def _prepare_chunk_memory(
+ self,
+ *,
+ chunk_index,
+ chunk_end,
+ latents,
+ hr_y_full,
+ lr_y_full,
+ hr_action,
+ lr_action,
+ context,
+ context_null,
+ kv_high,
+ kv_high_neg,
+ kv_low,
+ kv_low_neg,
+ return_cpu=True,
+ ):
+ """Decode a generated chunk and prepare memory for the next chunk."""
+ chunk_start = chunk_end - self.chunk_length
+ generated_latents = latents[:, chunk_start:chunk_end].contiguous()
+ new_lr_latents, decoded_rgb = self._decode_chunk_and_lr_encode(
+ generated_latents,
+ is_first_vae_chunk=chunk_index == 0,
+ )
+ if self.lr_latents_cache is None:
+ self.lr_latents_cache = new_lr_latents
+ else:
+ self.lr_latents_cache = torch.cat(
+ [self.lr_latents_cache, new_lr_latents],
+ dim=1,
+ )
+
+ window = self.compress_window and self.ar_cache and chunk_index > 0
+ hr_start = max(0, chunk_end - COMPRESS_WINDOW) if window else 0
+ lr_start = (chunk_end - self.chunk_length) // 2 if window else 0
+ hr_context_latents = latents[:, hr_start:chunk_end].contiguous()
+ hr_context_y = hr_y_full[:, hr_start:chunk_end]
+ lr_context_y = lr_y_full[:, lr_start:chunk_end // 2]
+ hr_input = torch.cat([hr_context_latents, hr_context_y], dim=0).to(dtype=self.param_dtype).unsqueeze(0)
+ lr_input = torch.cat(
+ [self.lr_latents_cache[:, lr_start:], lr_context_y],
+ dim=0,
+ ).to(dtype=self.param_dtype).unsqueeze(0)
+
+ temporal_latents = hr_context_latents[:, -self.temporal_size:].to(dtype=self.param_dtype)
+ temporal_y = hr_y_full[:, chunk_end - self.temporal_size:chunk_end].to(dtype=self.param_dtype)
+ temporal_input = torch.cat([temporal_latents, temporal_y], dim=0).unsqueeze(0)
+
+ compressor_args = {
+ "forward_mode": "compress_window" if window else "compress",
+ "hr_latents_input": hr_input,
+ "lr_latents_input": lr_input,
+ "lr_action": lr_action[:chunk_end // 2],
+ "memory_t": torch.zeros(1, device=self.device, dtype=self.param_dtype),
+ "hr_temporal_latents_input": temporal_input,
+ "hr_temporal_action": hr_action[chunk_end - self.temporal_size:chunk_end],
+ }
+ if window:
+ compressor_args.update(hr_frames=chunk_end, sink_frames=self.sink_size)
+ else:
+ compressor_args["sink_action"] = (
+ hr_action[:self.sink_size]
+ if self.sink_size > 0
+ else None
+ )
+
+ if self.offload_model:
+ if next(self.high_noise_model.parameters()).device.type != "cuda":
+ self.high_noise_model.to(self.device)
+ if next(self.low_noise_model.parameters()).device.type == "cuda":
+ self.low_noise_model.to("cpu")
+ memory_dict_high = self.high_noise_model(**compressor_args)
+ if self.ar_cache:
+ kv_high, kv_high_neg = self._prefill_kv_cache(
+ self.high_noise_model,
+ memory_dict_high,
+ kv_high,
+ kv_high_neg,
+ context=context,
+ context_null=context_null,
+ use_cfg=self.use_cfg_high,
+ )
+
+ if self.offload_model:
+ if next(self.low_noise_model.parameters()).device.type != "cuda":
+ self.low_noise_model.to(self.device)
+ if next(self.high_noise_model.parameters()).device.type == "cuda":
+ self.high_noise_model.to("cpu")
+ memory_dict_low = self.low_noise_model(**compressor_args)
+ if self.ar_cache:
+ kv_low, kv_low_neg = self._prefill_kv_cache(
+ self.low_noise_model,
+ memory_dict_low,
+ kv_low,
+ kv_low_neg,
+ context=context,
+ context_null=context_null,
+ use_cfg=self.use_cfg_low,
+ )
+
+ if self.slim_memory and self.ar_cache:
+ memory_dict_high = _memory_counts(memory_dict_high)
+ memory_dict_low = _memory_counts(memory_dict_low)
+ return (
+ decoded_rgb.cpu() if return_cpu and decoded_rgb is not None else decoded_rgb,
+ memory_dict_high,
+ memory_dict_low,
+ kv_high,
+ kv_high_neg,
+ kv_low,
+ kv_low_neg,
+ )
+
+ # ------------------------------------------------------------------
+ # public entry: chunked autoregressive generation
+ # ------------------------------------------------------------------
+
+ def _y_encoder(self, latent_rows):
+ """The causal-encoder step used for y."""
+ from .chunk_stream import FrameEncoder
+
+ factory = getattr(self, "y_band_encoder", None)
+ return factory(latent_rows) if factory is not None else FrameEncoder(self.vae)
+
+ def _zero_tail(self, encoder, height, width):
+ from .chunk_stream import zero_tail
+
+ key = (height, width, self.vae.dtype, type(encoder).__name__)
+ if key not in self._zero_tails:
+ self._zero_tails[key] = zero_tail(encoder, height, width, self.param_dtype)
+ return self._zero_tails[key]
+
+ def stream_world(
+ self,
+ *,
+ img,
+ seed: int,
+ num_chunks: int,
+ chunk_input,
+ height: int = 448,
+ width: int = 832,
+ chunk_length: int = 4,
+ sink_size: int = 1,
+ temporal_size: int = 1,
+ return_cpu: bool = True,
+ prepare: bool = False,
+ prompt: str | None = None,
+ ):
+ """Return a generator yielding one RGB chunk at a time.
+
+ ``chunk_input(index)`` returns ``(prompt_text, action_rows [chunk_length, 6])`` for
+ chunk ``index``. Fixed-PDD, chunk-AR inference with guide scale 1 only.
+
+ The world's setup runs when this is called, not on the first chunk. With ``prepare``
+ it also encodes the image conditioning and ``prompt`` before the first chunk.
+ """
+ from .chunk_stream import _CausalY, _LatentWindow
+
+ if self.inference_mode is not InferenceMode.PDD or not self.compress_window:
+ raise RuntimeError("stream_world needs fixed-PDD inference and the windowed compressor")
+ self.clear_conditioning_cache()
+ self.chunk_length = chunk_length
+ self.temporal_size = temporal_size
+ self.sink_size = sink_size
+ self.offload_model = False
+ self.ar_cache = True
+ self.guide_scale = (1.0, 1.0)
+ self.use_cfg_high = self.use_cfg_low = False
+ self.lr_latents_cache = None
+ total_latent_frames = num_chunks * chunk_length
+
+ # ---- this world's first frame (the only image-dependent input) ----
+ img = TF.to_tensor(img).sub_(0.5).div_(0.5).to(self.device)
+ h, w = height, width
+ lat_h = h // self.vae_stride[1]
+ lat_w = w // self.vae_stride[2]
+ img_pixel = F.interpolate(img[None].cpu(), size=(h, w), mode='bicubic')[0].to(self.device)
+ img_pixel_lr = self._build_lr_image_pixel(img_pixel, h, w)
+
+ def first_frame(pixel, fh, fw):
+ return F.interpolate(pixel[None].cpu(), size=(fh, fw), mode='bilinear').transpose(0, 1).to(
+ self.device).unsqueeze(0) # [1, 3, 1, fh, fw]
+
+ hr_enc = self._y_encoder(lat_h)
+ lr_enc = self._y_encoder(lat_h // 4)
+ hr_y = _CausalY(hr_enc, first_frame(img_pixel, h, w), self._zero_tail(hr_enc, h, w), self.param_dtype)
+ lr_y = _CausalY(lr_enc, first_frame(img_pixel_lr, h // 4, w // 4),
+ self._zero_tail(lr_enc, h // 4, w // 4), self.param_dtype)
+
+ # ---- noise ----
+ seed_g = torch.Generator(device=self.device)
+ seed_g.manual_seed(seed)
+ noise_full = None
+ if self.noise_mode == "horizon":
+ noise_full = torch.randn(16, total_latent_frames, lat_h, lat_w,
+ dtype=torch.float32, generator=seed_g, device=self.device)
+
+ # ---- persistent state ----
+ self.seq_len_chunk = chunk_length * lat_h * lat_w // (self.patch_size[1] * self.patch_size[2])
+ frame_tokens = self.seq_len_chunk // chunk_length
+ cmp_frame_tokens = ((lat_h // 4) // self.patch_size[1]) * ((lat_w // 4) // self.patch_size[2])
+ capacity = ((sink_size + temporal_size) * frame_tokens
+ + (num_chunks - 1) * (chunk_length // 2) * cmp_frame_tokens
+ + self.seq_len_chunk) if self.kv_inplace else 0
+ for expert in (self.high_noise_model, self.low_noise_model):
+ self._find_wan_model(expert).kv_capacity = capacity
+ kv_high = self.high_noise_model.init_kv_cache()
+ kv_low = self.low_noise_model.init_kv_cache()
+ shape = (16, COMPRESS_WINDOW + chunk_length, lat_h, lat_w)
+ if self._window_buffers is None or tuple(self._window_buffers[0].shape) != shape:
+ self._window_buffers = [torch.empty(shape, device=self.device, dtype=torch.float32)
+ for _ in range(2)]
+ latents = _LatentWindow(self._window_buffers, total_latent_frames)
+ if prepare:
+ with torch.no_grad():
+ hr_y._extend(total_latent_frames)
+ lr_y._extend(total_latent_frames // 2)
+ if prompt is not None:
+ self.encode_prompt(prompt)
+ torch.cuda.current_stream().synchronize()
+ return self._world_chunks(
+ num_chunks=num_chunks, chunk_input=chunk_input, chunk_length=chunk_length, seed=seed,
+ lat_h=lat_h, lat_w=lat_w, hr_y=hr_y, lr_y=lr_y, noise_full=noise_full, seed_g=seed_g,
+ kv_high=kv_high, kv_low=kv_low, latents=latents, return_cpu=return_cpu)
+
+ def encode_prompt(self, text):
+ """T5 context of ``text``, encoded once and kept (a few recent prompts)."""
+ contexts = self.__dict__.setdefault("_text_contexts", {})
+ if text not in contexts:
+ with torch.no_grad(), torch.amp.autocast('cuda', enabled=False):
+ contexts[text] = self.text_encoder([text], self.device)
+ while len(contexts) > 8:
+ contexts.pop(next(iter(contexts)))
+ return contexts[text]
+
+ def _world_chunks(self, *, num_chunks, chunk_input, chunk_length, seed, lat_h, lat_w, hr_y, lr_y,
+ noise_full, seed_g, kv_high, kv_low, latents, return_cpu):
+ hr_action = torch.empty(0, 6, device=self.device)
+ memory_dict_high = memory_dict_low = None
+
+ for chunk_i in range(num_chunks):
+ with (torch.amp.autocast('cuda', dtype=self.param_dtype), torch.no_grad()):
+ s = chunk_i * chunk_length
+ e = s + chunk_length
+ prompt_text, action_rows = chunk_input(chunk_i)
+ if tuple(action_rows.shape) != (chunk_length, 6):
+ raise ValueError("chunk_input must supply [chunk_length, 6] actions")
+ hr_action = torch.cat([hr_action, action_rows.to(self.device, hr_action.dtype)])
+ lr_action = hr_action[::2]
+ context = self.encode_prompt(prompt_text)
+ if noise_full is not None:
+ latent = noise_full[:, s:e].contiguous()
+ chunk_g = seed_g
+ else:
+ chunk_g = torch.Generator(device=self.device)
+ chunk_g.manual_seed((seed * 1_000_003 + chunk_i) % (1 << 63))
+ latent = torch.randn(16, chunk_length, lat_h, lat_w, dtype=torch.float32,
+ generator=chunk_g, device=self.device)
+ latent = self._run_pdd_chunk(
+ latent=latent,
+ y_chunk=hr_y[:, s:e],
+ hr_action_chunk=hr_action[s:e],
+ context=context,
+ memory_dict_high=memory_dict_high,
+ memory_dict_low=memory_dict_low,
+ kv_high=kv_high,
+ kv_low=kv_low,
+ chunk_start=s,
+ seed_g=chunk_g,
+ )
+ latents.write(s, latent.float())
+ if chunk_i < num_chunks - 1:
+ (decoded_rgb, memory_dict_high, memory_dict_low,
+ kv_high, _, kv_low, _) = self._prepare_chunk_memory(
+ chunk_index=chunk_i, chunk_end=e, latents=latents,
+ hr_y_full=hr_y, lr_y_full=lr_y, hr_action=hr_action, lr_action=lr_action,
+ context=context, context_null=None, kv_high=kv_high, kv_high_neg=None,
+ kv_low=kv_low, kv_low_neg=None, return_cpu=return_cpu)
+ else:
+ decoded_rgb = self._decode_last_chunk(latent, chunk_i == 0)
+ if return_cpu and decoded_rgb is not None:
+ decoded_rgb = decoded_rgb.cpu()
+ yield decoded_rgb if self.rank == 0 else None
+ if dist.is_initialized():
+ dist.barrier(device_ids=[self.device.index])
+
+ def generate_chunked(self, *args, **kwargs):
+ """Collect the native streaming chunks for the offline CLI."""
+ chunks = list(self.stream_chunked(*args, **kwargs))
+ return torch.cat(chunks, dim=1) if self.rank == 0 else None
+
+ def stream_chunked(
+ self,
+ prompts: dict[str, str],
+ chunk_prompts: tuple[str, ...],
+ img,
+ hr_action: torch.Tensor,
+ total_latent_frames: int = 16,
+ chunk_length: int = 4,
+ shift: float = 5.0,
+ sample_solver: str = 'unipc',
+ sampling_steps: int = 40,
+ guide_scale=5.0,
+ n_prompt: str = "",
+ seed: int = -1,
+ offload_model: bool = True,
+ sink_size: int = 0,
+ temporal_size: int = 2,
+ height: int = 448,
+ width: int = 832,
+ chunk_input=None,
+ return_cpu: bool = True,
+ ):
+ """Yield one native RGB chunk at a time, without resetting model memory.
+
+ Optional ``chunk_input(index)`` returns the current prompt text and
+ four CPU action rows. It is sampled only at a chunk boundary. Offline
+ callers omit it and retain the original prompt/action schedule.
+
+ ``sink_size`` (default 0): number of leading hr latent frames used as
+ the context "sink" (``hr_latents_input[:, :, :sink_size]``, prepended
+ to the front of the context). 0 disables the sink.
+
+ ``temporal_size`` (default 2): number of trailing hr latent frames
+ used as the temporal anchor (``hr_ctx_lat[:, -temporal_size:]``),
+ appended after the compressed lr+hr context.
+ """
+ assert total_latent_frames % chunk_length == 0, (
+ f"total_latent_frames ({total_latent_frames}) must be a multiple "
+ f"of chunk_length ({chunk_length})")
+ num_chunks = total_latent_frames // chunk_length
+ if len(chunk_prompts) != num_chunks:
+ raise ValueError(
+ f"chunk_prompts must contain {num_chunks} entries, "
+ f"got {len(chunk_prompts)}"
+ )
+ # Conditioning is sample-local. Never carry projected text or
+ # cross-attention K/V into the next JSON item.
+ self.clear_conditioning_cache()
+
+ if isinstance(guide_scale, (int, float)):
+ guide_scale = (float(guide_scale), float(guide_scale))
+ else:
+ guide_scale = tuple(float(scale) for scale in guide_scale)
+ if len(guide_scale) != 2:
+ raise ValueError(
+ "guide_scale must be a scalar or (low_noise, high_noise)"
+ )
+ use_cfg_low = not math.isclose(
+ guide_scale[0], 1.0, rel_tol=0.0, abs_tol=1e-8)
+ use_cfg_high = not math.isclose(
+ guide_scale[1], 1.0, rel_tol=0.0, abs_tol=1e-8)
+ use_any_cfg = use_cfg_low or use_cfg_high
+ if self.inference_mode is InferenceMode.PDD and use_any_cfg:
+ raise ValueError("PDD consistency inference requires guide_scale=1")
+ self.chunk_length = chunk_length
+ self.temporal_size = temporal_size
+ self.sink_size = sink_size
+ self.offload_model = offload_model
+ self.ar_cache = (
+ self.denoise_forward_mode in {"ar_denoise", "pdd_denoise"}
+ )
+ self.guide_scale = guide_scale
+ self.use_cfg_high = use_cfg_high
+ self.use_cfg_low = use_cfg_low
+ self.lr_latents_cache = None
+ logging.info(
+ "CFG enabled: low_noise=%s high_noise=%s",
+ use_cfg_low,
+ use_cfg_high,
+ )
+
+ # ---- preprocess image ----
+ img = TF.to_tensor(img).sub_(0.5).div_(0.5).to(self.device)
+ h, w = height, width
+ lat_h = h // self.vae_stride[1] # 56
+ lat_w = w // self.vae_stride[2] # 104
+ img_pixel = F.interpolate(img[None].cpu(), size=(h, w),
+ mode='bicubic')[0].to(self.device)
+
+ # ---- text encode ----
+ if n_prompt == "":
+ n_prompt = self.sample_neg_prompt
+ prompt_names = tuple(dict.fromkeys(chunk_prompts))
+ prompt_texts = [prompts[name] for name in prompt_names]
+ encoded_prompts = self.text_encoder(prompt_texts, self.device)
+ context_null = (
+ self.text_encoder([n_prompt], self.device)
+ if use_any_cfg else None
+ )
+ prompt_contexts = {
+ name: [encoded]
+ for name, encoded in zip(prompt_names, encoded_prompts)
+ }
+
+ # ---- pre-build hr_y_full / lr_y_full (upstream WanI2V recipe:
+ # encode the full pixel clip [image, zeros..., zeros] in one shot
+ # so the temporally-causal VAE produces the correct latent volume).
+ with torch.no_grad():
+ hr_y_full = _build_y(
+ self.vae, img_pixel,
+ t_lat=total_latent_frames,
+ h_pix=h, w_pix=w,
+ device=self.device, dtype=self.param_dtype,
+ reuse_zero_tail=self.exact_optimizations,
+ lazy_zeros=self.lazy_zero_clip)
+
+ img_pixel_lr = self._build_lr_image_pixel(img_pixel, h, w)
+ lr_y_full = _build_y(
+ self.vae, img_pixel_lr,
+ t_lat=total_latent_frames // 2,
+ h_pix=h // 4, w_pix=w // 4,
+ device=self.device, dtype=self.param_dtype,
+ reuse_zero_tail=self.exact_optimizations,
+ lazy_zeros=self.lazy_zero_clip)
+
+ # ---- noise allocation for the whole HR latent volume ----
+ seed = seed if seed >= 0 else random.randint(0, sys.maxsize)
+ seed_g = torch.Generator(device=self.device)
+ seed_g.manual_seed(seed)
+ noise_full = torch.randn(
+ 16, total_latent_frames, lat_h, lat_w,
+ dtype=torch.float32, generator=seed_g, device=self.device)
+ latents = noise_full.clone()
+
+ # ---- hr_action sanity ----
+ hr_action = hr_action.to(self.device)
+ assert hr_action.shape[0] >= total_latent_frames, (
+ f"hr_action must have >= total_latent_frames ({total_latent_frames}) "
+ f"rows; got {hr_action.shape[0]}.")
+ lr_action = hr_action[::2][:total_latent_frames // 2]
+
+ # Chunk-AR always keeps conditional caches. Negative caches are only
+ # allocated for experts whose guide scale actually enables CFG.
+ ar_cache = self.ar_cache
+ self.seq_len_chunk = chunk_length * lat_h * lat_w // (
+ self.patch_size[1] * self.patch_size[2])
+ if ar_cache:
+ # Largest context a world reaches, plus one chunk of denoise tokens.
+ frame_tokens = self.seq_len_chunk // chunk_length
+ cmp_frame_tokens = ((lat_h // 4) // self.patch_size[1]) * (
+ (lat_w // 4) // self.patch_size[2])
+ capacity = (
+ (sink_size + temporal_size) * frame_tokens
+ + (num_chunks - 1) * (chunk_length // 2) * cmp_frame_tokens
+ + self.seq_len_chunk
+ ) if self.kv_inplace else 0
+ for expert in (self.high_noise_model, self.low_noise_model):
+ self._find_wan_model(expert).kv_capacity = capacity
+ # PERSISTENT KV caches, created ONCE and reused across all chunks.
+ # The unified prefill path is incremental: each chunk only pushes the
+ # new cmp block + recomputed tmp anchor. Each layer stores one
+ # contiguous [sink | accumulated cmp | latest tmp] K/V pair instead
+ # of re-prefilling the whole growing ctx. When AR but no KV cache,
+ # ar_cache=False and the denoise falls back to the fused [ctx|pred] AR
+ # path (memory_dict). BI leaves them None.
+ if ar_cache:
+ kv_high = self.high_noise_model.init_kv_cache()
+ kv_low = self.low_noise_model.init_kv_cache()
+ kv_high_neg = (
+ self.high_noise_model.init_kv_cache(slot=1)
+ if use_cfg_high else None
+ )
+ kv_low_neg = (
+ self.low_noise_model.init_kv_cache(slot=1)
+ if use_cfg_low else None
+ )
+ else:
+ kv_high = kv_high_neg = kv_low = kv_low_neg = None
+ memory_dict_high = None
+ memory_dict_low = None
+ boundary = self.boundary * self.num_train_timesteps
+ no_sync_low = getattr(self.low_noise_model, 'no_sync', _noop_no_sync)
+ no_sync_high = getattr(self.high_noise_model, 'no_sync', _noop_no_sync)
+
+ # Keep context managers within each next() call: yielding must not
+ # leave autocast/no_grad enabled on the runtime's worker thread.
+ live_contexts = {prompts[name]: value for name, value in prompt_contexts.items()}
+ for chunk_i in range(num_chunks):
+ with (torch.amp.autocast('cuda', dtype=self.param_dtype),
+ torch.no_grad(), no_sync_low(), no_sync_high()):
+ s = chunk_i * chunk_length
+ e = (chunk_i + 1) * chunk_length
+ prompt_name = chunk_prompts[chunk_i]
+ context = prompt_contexts[prompt_name]
+ if chunk_input is not None:
+ prompt_text, action_rows = chunk_input(chunk_i)
+ if tuple(action_rows.shape) != (chunk_length, 6):
+ raise ValueError("chunk_input must supply [chunk_length, 6] actions")
+ hr_action[s:e].copy_(action_rows)
+ # lr_action is a strided view of hr_action, as upstream.
+ if prompt_text not in live_contexts:
+ # Offline T5 encoding happens outside the DiT autocast
+ # scope. Keep that precision when a live prompt arrives.
+ with torch.amp.autocast('cuda', enabled=False):
+ live_contexts[prompt_text] = self.text_encoder([prompt_text], self.device)
+ context = live_contexts[prompt_text]
+
+ logging.info(f"[stage3] chunk {chunk_i}/{num_chunks - 1} "
+ f"latent frames [{s}, {e}) prompt={prompt_name}")
+
+ # Per-chunk denoise inputs (also needed by AR prefill below).
+ latent = latents[:, s:e].contiguous()
+ hr_action_chunk = hr_action[s:e]
+ y_chunk = hr_y_full[:, s:e]
+
+ chunk_denoise_args = dict(
+ latent=latent,
+ seed_g=seed_g,
+ boundary=boundary,
+ context=context,
+ context_null=context_null,
+ memory_dict_high=memory_dict_high,
+ memory_dict_low=memory_dict_low,
+ kv_high=kv_high,
+ kv_high_neg=kv_high_neg,
+ kv_low=kv_low,
+ kv_low_neg=kv_low_neg,
+ y_chunk=y_chunk,
+ hr_action_chunk=hr_action_chunk,
+ chunk_start=s,
+ )
+
+ if self.inference_mode is InferenceMode.PDD:
+ latent = self._run_pdd_chunk(
+ latent=latent,
+ y_chunk=y_chunk,
+ hr_action_chunk=hr_action_chunk,
+ context=context,
+ memory_dict_high=memory_dict_high,
+ memory_dict_low=memory_dict_low,
+ kv_high=kv_high,
+ kv_low=kv_low,
+ chunk_start=s,
+ seed_g=seed_g,
+ )
+ elif self.inference_mode is InferenceMode.BI:
+ latent = self._run_solver_chunk(
+ sample_solver=sample_solver,
+ sampling_steps=sampling_steps,
+ shift=shift,
+ ar_cache=False,
+ chunk_index=chunk_i,
+ **chunk_denoise_args,
+ )
+ elif self.inference_mode is InferenceMode.AR:
+ latent = self._run_solver_chunk(
+ sample_solver=sample_solver,
+ sampling_steps=sampling_steps,
+ shift=shift,
+ ar_cache=True,
+ chunk_index=chunk_i,
+ **chunk_denoise_args,
+ )
+ else:
+ raise RuntimeError(
+ f"Unsupported inference mode: {self.inference_mode}"
+ )
+ latents[:, s:e] = latent.to(latents.dtype)
+
+ if chunk_i < num_chunks - 1:
+ (
+ decoded_rgb,
+ memory_dict_high,
+ memory_dict_low,
+ kv_high,
+ kv_high_neg,
+ kv_low,
+ kv_low_neg,
+ ) = self._prepare_chunk_memory(
+ chunk_index=chunk_i,
+ chunk_end=e,
+ latents=latents,
+ hr_y_full=hr_y_full,
+ lr_y_full=lr_y_full,
+ hr_action=hr_action,
+ lr_action=lr_action,
+ context=context,
+ context_null=context_null,
+ kv_high=kv_high,
+ kv_high_neg=kv_high_neg,
+ kv_low=kv_low,
+ kv_low_neg=kv_low_neg,
+ return_cpu=return_cpu,
+ )
+ else:
+ decoded_rgb = self._decode_last_chunk(latent, chunk_i == 0)
+ if return_cpu and decoded_rgb is not None:
+ decoded_rgb = decoded_rgb.cpu()
+ yield decoded_rgb if self.rank == 0 else None
+
+ if offload_model:
+ self.clear_conditioning_cache()
+ self.low_noise_model.cpu()
+ self.high_noise_model.cpu()
+ torch.cuda.empty_cache()
+ gc.collect()
+ torch.cuda.synchronize()
+ if dist.is_initialized():
+ dist.barrier(device_ids=[self.device.index])
diff --git a/reactor/inference/sequence.py b/reactor/inference/sequence.py
new file mode 100644
index 0000000..d305cf6
--- /dev/null
+++ b/reactor/inference/sequence.py
@@ -0,0 +1,23 @@
+# Modified for the Reactor runtime.
+"""Preserve zero-stride views when sharding; collectives come from upstream."""
+from __future__ import annotations
+
+import torch
+from worldplay2.distributed.ulysses import _balanced_splits
+
+
+def shard_sequence(
+ tensor: torch.Tensor | None,
+ *,
+ global_sequence: int,
+ rank: int,
+ world_size: int,
+ dim: int,
+) -> torch.Tensor | None:
+ if tensor is None or world_size <= 1:
+ return tensor
+ splits = _balanced_splits(global_sequence, world_size)
+ start = sum(splits[:rank])
+ local = tensor.narrow(dim, start, splits[rank])
+ # An expanded (zero-stride) tensor is returned as a view.
+ return local if tensor.stride(dim) == 0 else local.contiguous()
diff --git a/reactor/inference/text.py b/reactor/inference/text.py
new file mode 100644
index 0000000..dffcb7e
--- /dev/null
+++ b/reactor/inference/text.py
@@ -0,0 +1,46 @@
+# Copyright 2024-2025 The Alibaba Wan Team Authors. All rights reserved.
+# Modified for the Reactor runtime.
+"""Upstream T5 encoder with memory-mapped checkpoint loading."""
+import logging
+
+import torch
+from worldplay2.text.encoder import T5EncoderModel as NativeT5EncoderModel, umt5_xxl
+from worldplay2.text.tokenizer import HuggingfaceTokenizer
+
+
+class T5EncoderModel(NativeT5EncoderModel):
+ def __init__(
+ self,
+ text_len,
+ dtype=torch.bfloat16,
+ device=torch.cuda.current_device(),
+ checkpoint_path=None,
+ tokenizer_path=None,
+ shard_fn=None,
+ ):
+ self.text_len = text_len
+ self.dtype = dtype
+ self.device = device
+ self.checkpoint_path = checkpoint_path
+ self.tokenizer_path = tokenizer_path
+
+ # init model
+ model = umt5_xxl(
+ encoder_only=True,
+ return_tokenizer=False,
+ dtype=dtype,
+ device=device).eval().requires_grad_(False)
+ logging.info(f'loading {checkpoint_path}')
+ # Memory-mapped: the checkpoint's pages are file-backed and copied into
+ # the parameters on ``device``; the state is never held in anonymous
+ # host memory.
+ model.load_state_dict(torch.load(
+ checkpoint_path, map_location='cpu', mmap=True, weights_only=True))
+ self.model = model
+ if shard_fn is not None:
+ self.model = shard_fn(self.model, sync_module_states=False)
+ else:
+ self.model.to(self.device)
+ # init tokenizer
+ self.tokenizer = HuggingfaceTokenizer(
+ name=tokenizer_path, seq_len=text_len, clean='whitespace')
diff --git a/reactor/inference/vae.py b/reactor/inference/vae.py
new file mode 100644
index 0000000..94374fb
--- /dev/null
+++ b/reactor/inference/vae.py
@@ -0,0 +1,908 @@
+# Copyright 2024-2025 The Alibaba Wan Team Authors. All rights reserved.
+# Modified for the Reactor runtime.
+import logging
+
+import torch
+import torch.cuda.amp as amp
+import torch.nn as nn
+import torch.nn.functional as F
+from einops import rearrange
+
+__all__ = [
+ 'Wan2_1_VAE',
+]
+
+CACHE_T = 2
+
+
+def _same_causal_state(before, after):
+ return len(before) == len(after) and all(
+ (a is None and b is None)
+ or (
+ isinstance(a, torch.Tensor)
+ and isinstance(b, torch.Tensor)
+ and a.shape == b.shape
+ and a.dtype == b.dtype
+ and torch.equal(
+ a.contiguous().view(torch.uint8),
+ b.contiguous().view(torch.uint8))
+ )
+ for a, b in zip(before, after)
+ )
+
+
+class CausalConv3d(nn.Conv3d):
+ """
+ Causal 3d convolusion.
+ """
+
+ def __init__(self, *args, **kwargs):
+ super().__init__(*args, **kwargs)
+ self._padding = (self.padding[2], self.padding[2], self.padding[1],
+ self.padding[1], 2 * self.padding[0], 0)
+ self.padding = (0, 0, 0)
+
+ def forward(self, x, cache_x=None):
+ padding = list(self._padding)
+ if cache_x is not None and self._padding[4] > 0:
+ cache_x = cache_x.to(x.device)
+ x = torch.cat([cache_x, x], dim=2)
+ padding[4] -= cache_x.shape[2]
+ x = F.pad(x, padding)
+
+ return super().forward(x)
+
+
+class RMS_norm(nn.Module):
+
+ def __init__(self, dim, channel_first=True, images=True, bias=False):
+ super().__init__()
+ broadcastable_dims = (1, 1, 1) if not images else (1, 1)
+ shape = (dim, *broadcastable_dims) if channel_first else (dim,)
+
+ self.channel_first = channel_first
+ self.scale = dim**0.5
+ self.gamma = nn.Parameter(torch.ones(shape))
+ self.bias = nn.Parameter(torch.zeros(shape)) if bias else 0.
+
+ def forward(self, x):
+ with torch.autocast(x.device.type, enabled=False):
+ return F.normalize(
+ x, dim=(1 if self.channel_first else
+ -1)) * self.scale * self.gamma + self.bias
+
+
+class Upsample(nn.Upsample):
+
+ def forward(self, x):
+ return super().forward(x)
+
+
+class Resample(nn.Module):
+
+ def __init__(self, dim, mode):
+ assert mode in ('none', 'upsample2d', 'upsample3d', 'downsample2d',
+ 'downsample3d')
+ super().__init__()
+ self.dim = dim
+ self.mode = mode
+
+ # layers
+ if mode == 'upsample2d':
+ self.resample = nn.Sequential(
+ Upsample(scale_factor=(2., 2.), mode='nearest-exact'),
+ nn.Conv2d(dim, dim // 2, 3, padding=1))
+ elif mode == 'upsample3d':
+ self.resample = nn.Sequential(
+ Upsample(scale_factor=(2., 2.), mode='nearest-exact'),
+ nn.Conv2d(dim, dim // 2, 3, padding=1))
+ self.time_conv = CausalConv3d(
+ dim, dim * 2, (3, 1, 1), padding=(1, 0, 0))
+
+ elif mode == 'downsample2d':
+ self.resample = nn.Sequential(
+ nn.ZeroPad2d((0, 1, 0, 1)),
+ nn.Conv2d(dim, dim, 3, stride=(2, 2)))
+ elif mode == 'downsample3d':
+ self.resample = nn.Sequential(
+ nn.ZeroPad2d((0, 1, 0, 1)),
+ nn.Conv2d(dim, dim, 3, stride=(2, 2)))
+ self.time_conv = CausalConv3d(
+ dim, dim, (3, 1, 1), stride=(2, 1, 1), padding=(0, 0, 0))
+
+ else:
+ self.resample = nn.Identity()
+
+ def forward(self, x, feat_cache=None, feat_idx=[0]):
+ b, c, t, h, w = x.size()
+ if self.mode == 'upsample3d':
+ if feat_cache is not None:
+ idx = feat_idx[0]
+ if feat_cache[idx] is None:
+ feat_cache[idx] = 'Rep'
+ feat_idx[0] += 1
+ else:
+
+ cache_x = x[:, :, -CACHE_T:, :, :].clone()
+ if cache_x.shape[2] < 2 and feat_cache[
+ idx] is not None and feat_cache[idx] != 'Rep':
+ # cache last frame of last two chunk
+ cache_x = torch.cat([
+ feat_cache[idx][:, :, -1, :, :].unsqueeze(2).to(
+ cache_x.device), cache_x
+ ],
+ dim=2)
+ if cache_x.shape[2] < 2 and feat_cache[
+ idx] is not None and feat_cache[idx] == 'Rep':
+ cache_x = torch.cat([
+ torch.zeros_like(cache_x).to(cache_x.device),
+ cache_x
+ ],
+ dim=2)
+ if feat_cache[idx] == 'Rep':
+ x = self.time_conv(x)
+ else:
+ x = self.time_conv(x, feat_cache[idx])
+ feat_cache[idx] = cache_x
+ feat_idx[0] += 1
+
+ x = x.reshape(b, 2, c, t, h, w)
+ x = torch.stack((x[:, 0, :, :, :, :], x[:, 1, :, :, :, :]),
+ 3)
+ x = x.reshape(b, c, t * 2, h, w)
+ t = x.shape[2]
+ x = rearrange(x, 'b c t h w -> (b t) c h w')
+ x = self.resample(x)
+ x = rearrange(x, '(b t) c h w -> b c t h w', t=t)
+
+ if self.mode == 'downsample3d':
+ if feat_cache is not None:
+ idx = feat_idx[0]
+ if feat_cache[idx] is None:
+ feat_cache[idx] = x.clone()
+ feat_idx[0] += 1
+ else:
+
+ cache_x = x[:, :, -1:, :, :].clone()
+ # if cache_x.shape[2] < 2 and feat_cache[idx] is not None and feat_cache[idx]!='Rep':
+ # # cache last frame of last two chunk
+ # cache_x = torch.cat([feat_cache[idx][:, :, -1, :, :].unsqueeze(2).to(cache_x.device), cache_x], dim=2)
+
+ x = self.time_conv(
+ torch.cat([feat_cache[idx][:, :, -1:, :, :], x], 2))
+ feat_cache[idx] = cache_x
+ feat_idx[0] += 1
+ return x
+
+ def init_weight(self, conv):
+ conv_weight = conv.weight
+ nn.init.zeros_(conv_weight)
+ c1, c2, t, h, w = conv_weight.size()
+ one_matrix = torch.eye(c1, c2)
+ init_matrix = one_matrix
+ nn.init.zeros_(conv_weight)
+ #conv_weight.data[:,:,-1,1,1] = init_matrix * 0.5
+ conv_weight.data[:, :, 1, 0, 0] = init_matrix #* 0.5
+ conv.weight.data.copy_(conv_weight)
+ nn.init.zeros_(conv.bias.data)
+
+ def init_weight2(self, conv):
+ conv_weight = conv.weight.data
+ nn.init.zeros_(conv_weight)
+ c1, c2, t, h, w = conv_weight.size()
+ init_matrix = torch.eye(c1 // 2, c2)
+ #init_matrix = repeat(init_matrix, 'o ... -> (o 2) ...').permute(1,0,2).contiguous().reshape(c1,c2)
+ conv_weight[:c1 // 2, :, -1, 0, 0] = init_matrix
+ conv_weight[c1 // 2:, :, -1, 0, 0] = init_matrix
+ conv.weight.data.copy_(conv_weight)
+ nn.init.zeros_(conv.bias.data)
+
+
+class ResidualBlock(nn.Module):
+
+ def __init__(self, in_dim, out_dim, dropout=0.0):
+ super().__init__()
+ self.in_dim = in_dim
+ self.out_dim = out_dim
+
+ # layers
+ self.residual = nn.Sequential(
+ RMS_norm(in_dim, images=False), nn.SiLU(),
+ CausalConv3d(in_dim, out_dim, 3, padding=1),
+ RMS_norm(out_dim, images=False), nn.SiLU(), nn.Dropout(dropout),
+ CausalConv3d(out_dim, out_dim, 3, padding=1))
+ self.shortcut = CausalConv3d(in_dim, out_dim, 1) \
+ if in_dim != out_dim else nn.Identity()
+
+ def forward(self, x, feat_cache=None, feat_idx=[0]):
+ h = self.shortcut(x)
+ for layer in self.residual:
+ if isinstance(layer, CausalConv3d) and feat_cache is not None:
+ idx = feat_idx[0]
+ cache_x = x[:, :, -CACHE_T:, :, :].clone()
+ if cache_x.shape[2] < 2 and feat_cache[idx] is not None:
+ # cache last frame of last two chunk
+ cache_x = torch.cat([
+ feat_cache[idx][:, :, -1, :, :].unsqueeze(2).to(
+ cache_x.device), cache_x
+ ],
+ dim=2)
+ x = layer(x, feat_cache[idx])
+ feat_cache[idx] = cache_x
+ feat_idx[0] += 1
+ else:
+ x = layer(x)
+ return x + h
+
+
+class AttentionBlock(nn.Module):
+ """
+ Causal self-attention with a single head.
+ """
+
+ def __init__(self, dim):
+ super().__init__()
+ self.dim = dim
+
+ # layers
+ self.norm = RMS_norm(dim)
+ self.to_qkv = nn.Conv2d(dim, dim * 3, 1)
+ self.proj = nn.Conv2d(dim, dim, 1)
+
+ # zero out the last layer params
+ nn.init.zeros_(self.proj.weight)
+
+ def forward(self, x):
+ identity = x
+ b, c, t, h, w = x.size()
+ x = rearrange(x, 'b c t h w -> (b t) c h w')
+ x = self.norm(x)
+ # compute query, key, value
+ q, k, v = self.to_qkv(x).reshape(b * t, 1, c * 3,
+ -1).permute(0, 1, 3,
+ 2).contiguous().chunk(
+ 3, dim=-1)
+
+ # apply attention
+ x = F.scaled_dot_product_attention(
+ q,
+ k,
+ v,
+ )
+ x = x.squeeze(1).permute(0, 2, 1).reshape(b * t, c, h, w)
+
+ # output
+ x = self.proj(x)
+ x = rearrange(x, '(b t) c h w-> b c t h w', t=t)
+ return x + identity
+
+
+class Encoder3d(nn.Module):
+
+ def __init__(self,
+ dim=128,
+ z_dim=4,
+ dim_mult=[1, 2, 4, 4],
+ num_res_blocks=2,
+ attn_scales=[],
+ temperal_downsample=[True, True, False],
+ dropout=0.0):
+ super().__init__()
+ self.dim = dim
+ self.z_dim = z_dim
+ self.dim_mult = dim_mult
+ self.num_res_blocks = num_res_blocks
+ self.attn_scales = attn_scales
+ self.temperal_downsample = temperal_downsample
+
+ # dimensions
+ dims = [dim * u for u in [1] + dim_mult]
+ scale = 1.0
+
+ # init block
+ self.conv1 = CausalConv3d(3, dims[0], 3, padding=1)
+
+ # downsample blocks
+ downsamples = []
+ for i, (in_dim, out_dim) in enumerate(zip(dims[:-1], dims[1:])):
+ # residual (+attention) blocks
+ for _ in range(num_res_blocks):
+ downsamples.append(ResidualBlock(in_dim, out_dim, dropout))
+ if scale in attn_scales:
+ downsamples.append(AttentionBlock(out_dim))
+ in_dim = out_dim
+
+ # downsample block
+ if i != len(dim_mult) - 1:
+ mode = 'downsample3d' if temperal_downsample[
+ i] else 'downsample2d'
+ downsamples.append(Resample(out_dim, mode=mode))
+ scale /= 2.0
+ self.downsamples = nn.Sequential(*downsamples)
+
+ # middle blocks
+ self.middle = nn.Sequential(
+ ResidualBlock(out_dim, out_dim, dropout), AttentionBlock(out_dim),
+ ResidualBlock(out_dim, out_dim, dropout))
+
+ # output blocks
+ self.head = nn.Sequential(
+ RMS_norm(out_dim, images=False), nn.SiLU(),
+ CausalConv3d(out_dim, z_dim, 3, padding=1))
+
+ def forward(self, x, feat_cache=None, feat_idx=[0]):
+ if feat_cache is not None:
+ idx = feat_idx[0]
+ cache_x = x[:, :, -CACHE_T:, :, :].clone()
+ if cache_x.shape[2] < 2 and feat_cache[idx] is not None:
+ # cache last frame of last two chunk
+ cache_x = torch.cat([
+ feat_cache[idx][:, :, -1, :, :].unsqueeze(2).to(
+ cache_x.device), cache_x
+ ],
+ dim=2)
+ x = self.conv1(x, feat_cache[idx])
+ feat_cache[idx] = cache_x
+ feat_idx[0] += 1
+ else:
+ x = self.conv1(x)
+
+ ## downsamples
+ for layer in self.downsamples:
+ if feat_cache is not None:
+ x = layer(x, feat_cache, feat_idx)
+ else:
+ x = layer(x)
+
+ ## middle
+ for layer in self.middle:
+ if isinstance(layer, ResidualBlock) and feat_cache is not None:
+ x = layer(x, feat_cache, feat_idx)
+ else:
+ x = layer(x)
+
+ ## head
+ for layer in self.head:
+ if isinstance(layer, CausalConv3d) and feat_cache is not None:
+ idx = feat_idx[0]
+ cache_x = x[:, :, -CACHE_T:, :, :].clone()
+ if cache_x.shape[2] < 2 and feat_cache[idx] is not None:
+ # cache last frame of last two chunk
+ cache_x = torch.cat([
+ feat_cache[idx][:, :, -1, :, :].unsqueeze(2).to(
+ cache_x.device), cache_x
+ ],
+ dim=2)
+ x = layer(x, feat_cache[idx])
+ feat_cache[idx] = cache_x
+ feat_idx[0] += 1
+ else:
+ x = layer(x)
+ return x
+
+
+class Decoder3d(nn.Module):
+
+ def __init__(self,
+ dim=128,
+ z_dim=4,
+ dim_mult=[1, 2, 4, 4],
+ num_res_blocks=2,
+ attn_scales=[],
+ temperal_upsample=[False, True, True],
+ dropout=0.0):
+ super().__init__()
+ self.dim = dim
+ self.z_dim = z_dim
+ self.dim_mult = dim_mult
+ self.num_res_blocks = num_res_blocks
+ self.attn_scales = attn_scales
+ self.temperal_upsample = temperal_upsample
+
+ # dimensions
+ dims = [dim * u for u in [dim_mult[-1]] + dim_mult[::-1]]
+ scale = 1.0 / 2**(len(dim_mult) - 2)
+
+ # init block
+ self.conv1 = CausalConv3d(z_dim, dims[0], 3, padding=1)
+
+ # middle blocks
+ self.middle = nn.Sequential(
+ ResidualBlock(dims[0], dims[0], dropout), AttentionBlock(dims[0]),
+ ResidualBlock(dims[0], dims[0], dropout))
+
+ # upsample blocks
+ upsamples = []
+ for i, (in_dim, out_dim) in enumerate(zip(dims[:-1], dims[1:])):
+ # residual (+attention) blocks
+ if i == 1 or i == 2 or i == 3:
+ in_dim = in_dim // 2
+ for _ in range(num_res_blocks + 1):
+ upsamples.append(ResidualBlock(in_dim, out_dim, dropout))
+ if scale in attn_scales:
+ upsamples.append(AttentionBlock(out_dim))
+ in_dim = out_dim
+
+ # upsample block
+ if i != len(dim_mult) - 1:
+ mode = 'upsample3d' if temperal_upsample[i] else 'upsample2d'
+ upsamples.append(Resample(out_dim, mode=mode))
+ scale *= 2.0
+ self.upsamples = nn.Sequential(*upsamples)
+
+ # output blocks
+ self.head = nn.Sequential(
+ RMS_norm(out_dim, images=False), nn.SiLU(),
+ CausalConv3d(out_dim, 3, 3, padding=1))
+
+ def forward(self, x, feat_cache=None, feat_idx=[0]):
+ ## conv1
+ if feat_cache is not None:
+ idx = feat_idx[0]
+ cache_x = x[:, :, -CACHE_T:, :, :].clone()
+ if cache_x.shape[2] < 2 and feat_cache[idx] is not None:
+ # cache last frame of last two chunk
+ cache_x = torch.cat([
+ feat_cache[idx][:, :, -1, :, :].unsqueeze(2).to(
+ cache_x.device), cache_x
+ ],
+ dim=2)
+ x = self.conv1(x, feat_cache[idx])
+ feat_cache[idx] = cache_x
+ feat_idx[0] += 1
+ else:
+ x = self.conv1(x)
+
+ ## middle
+ for layer in self.middle:
+ if isinstance(layer, ResidualBlock) and feat_cache is not None:
+ x = layer(x, feat_cache, feat_idx)
+ else:
+ x = layer(x)
+
+ ## upsamples
+ for layer in self.upsamples:
+ if feat_cache is not None:
+ x = layer(x, feat_cache, feat_idx)
+ else:
+ x = layer(x)
+
+ ## head
+ for layer in self.head:
+ if isinstance(layer, CausalConv3d) and feat_cache is not None:
+ idx = feat_idx[0]
+ cache_x = x[:, :, -CACHE_T:, :, :].clone()
+ if cache_x.shape[2] < 2 and feat_cache[idx] is not None:
+ # cache last frame of last two chunk
+ cache_x = torch.cat([
+ feat_cache[idx][:, :, -1, :, :].unsqueeze(2).to(
+ cache_x.device), cache_x
+ ],
+ dim=2)
+ x = layer(x, feat_cache[idx])
+ feat_cache[idx] = cache_x
+ feat_idx[0] += 1
+ else:
+ x = layer(x)
+ return x
+
+
+def count_conv3d(model):
+ count = 0
+ for m in model.modules():
+ if isinstance(m, CausalConv3d):
+ count += 1
+ return count
+
+
+class WanVAE_(nn.Module):
+
+ def __init__(self,
+ dim=128,
+ z_dim=4,
+ dim_mult=[1, 2, 4, 4],
+ num_res_blocks=2,
+ attn_scales=[],
+ temperal_downsample=[True, True, False],
+ dropout=0.0):
+ super().__init__()
+ self.dim = dim
+ self.z_dim = z_dim
+ self.dim_mult = dim_mult
+ self.num_res_blocks = num_res_blocks
+ self.attn_scales = attn_scales
+ self.temperal_downsample = temperal_downsample
+ self.temperal_upsample = temperal_downsample[::-1]
+
+ # modules
+ self.encoder = Encoder3d(dim, z_dim * 2, dim_mult, num_res_blocks,
+ attn_scales, self.temperal_downsample, dropout)
+ self.conv1 = CausalConv3d(z_dim * 2, z_dim * 2, 1)
+ self.conv2 = CausalConv3d(z_dim, z_dim, 1)
+ self.decoder = Decoder3d(dim, z_dim, dim_mult, num_res_blocks,
+ attn_scales, self.temperal_upsample, dropout)
+
+ def forward(self, x):
+ mu, log_var = self.encode(x)
+ z = self.reparameterize(mu, log_var)
+ x_recon = self.decode(z)
+ return x_recon, mu, log_var
+
+ def encode(self, x, scale, *, reuse_zero_tail=False):
+ self.clear_encode_cache()
+ ## cache
+ t = x.shape[2]
+ iter_ = 1 + (t - 1) // 4
+ zero_tail = (
+ reuse_zero_tail
+ and not self.training
+ and not torch.is_grad_enabled()
+ and t > 9
+ and torch.count_nonzero(x[:, :, 1:]).item() == 0
+ )
+ ## 对encode输入的x,按时间拆分为1、4、4、4....
+ for i in range(iter_):
+ before = None
+ if zero_tail and i > 1:
+ before = [v.clone() if isinstance(v, torch.Tensor) else v
+ for v in self._enc_feat_map]
+ self._enc_conv_idx = [0]
+ if i == 0:
+ out = self.encoder(
+ x[:, :, :1, :, :],
+ feat_cache=self._enc_feat_map,
+ feat_idx=self._enc_conv_idx)
+ else:
+ out_ = self.encoder(
+ x[:, :, 1 + 4 * (i - 1):1 + 4 * i, :, :],
+ feat_cache=self._enc_feat_map,
+ feat_idx=self._enc_conv_idx)
+ out = torch.cat([out, out_], 2)
+ if (before is not None
+ and _same_causal_state(before, self._enc_feat_map)):
+ remaining = iter_ - i - 1
+ if remaining:
+ out = torch.cat(
+ [out, out_.repeat(1, 1, remaining, 1, 1)], 2)
+ break
+ mu, log_var = self.conv1(out).chunk(2, dim=1)
+ if isinstance(scale[0], torch.Tensor):
+ mu = (mu - scale[0].view(1, self.z_dim, 1, 1, 1)) * scale[1].view(
+ 1, self.z_dim, 1, 1, 1)
+ else:
+ mu = (mu - scale[0]) * scale[1]
+ self.clear_encode_cache()
+ return mu
+
+ def encode_zero_tail(self, head, frames, scale):
+ """Encode a clip of ``frames`` pixel frames whose first frame is ``head``
+ and the rest are zeros.
+ """
+ self.clear_encode_cache()
+ t = frames
+ iter_ = 1 + (t - 1) // 4
+ zero_tail = not self.training and not torch.is_grad_enabled() and t > 9
+ zeros = head.new_zeros(head.shape[0], head.shape[1], 4, *head.shape[3:])
+ for i in range(iter_):
+ before = None
+ if zero_tail and i > 1:
+ before = [v.clone() if isinstance(v, torch.Tensor) else v
+ for v in self._enc_feat_map]
+ self._enc_conv_idx = [0]
+ if i == 0:
+ out = self.encoder(
+ head,
+ feat_cache=self._enc_feat_map,
+ feat_idx=self._enc_conv_idx)
+ else:
+ out_ = self.encoder(
+ zeros,
+ feat_cache=self._enc_feat_map,
+ feat_idx=self._enc_conv_idx)
+ out = torch.cat([out, out_], 2)
+ if (before is not None
+ and _same_causal_state(before, self._enc_feat_map)):
+ remaining = iter_ - i - 1
+ if remaining:
+ out = torch.cat(
+ [out, out_.repeat(1, 1, remaining, 1, 1)], 2)
+ break
+ mu, log_var = self.conv1(out).chunk(2, dim=1)
+ if isinstance(scale[0], torch.Tensor):
+ mu = (mu - scale[0].view(1, self.z_dim, 1, 1, 1)) * scale[1].view(
+ 1, self.z_dim, 1, 1, 1)
+ else:
+ mu = (mu - scale[0]) * scale[1]
+ self.clear_encode_cache()
+ return mu
+
+ def decode(self, z, scale):
+ self.clear_decode_cache()
+ # z: [b,c,t,h,w]
+ if isinstance(scale[0], torch.Tensor):
+ z = z / scale[1].view(1, self.z_dim, 1, 1, 1) + scale[0].view(
+ 1, self.z_dim, 1, 1, 1)
+ else:
+ z = z / scale[1] + scale[0]
+ iter_ = z.shape[2]
+ x = self.conv2(z)
+ for i in range(iter_):
+ self._conv_idx = [0]
+ if i == 0:
+ out = self.decoder(
+ x[:, :, i:i + 1, :, :],
+ feat_cache=self._feat_map,
+ feat_idx=self._conv_idx)
+ else:
+ out_ = self.decoder(
+ x[:, :, i:i + 1, :, :],
+ feat_cache=self._feat_map,
+ feat_idx=self._conv_idx)
+ out = torch.cat([out, out_], 2)
+ self.clear_decode_cache()
+ return out
+
+ def encode_chunk(self, x, scale, is_first_chunk: bool = False):
+ """Streaming encode for chunked inference.
+
+ Unlike :meth:`encode`, this does **not** ``clear_cache()`` between
+ calls; the per-layer ``_enc_feat_map`` accumulated by previous
+ chunks is reused so the causal convolutions see the prior temporal
+ state.
+
+ Frame-to-latent layout:
+ - is_first_chunk=True : first pixel frame -> 1 latent, then
+ groups of 4 pixel frames -> 1 latent each. ``iter_ = 1 + (T-1)//4``.
+ - is_first_chunk=False : all input frames are continuation
+ frames coming in groups of 4. ``iter_ = T // 4``.
+
+ Args:
+ x: pixel tensor of shape [B, C, T, H, W].
+ scale: (mean, 1/std) tuple matching :meth:`encode`.
+ is_first_chunk: True for the very first chunk; resets the
+ encoder cache before processing.
+ """
+ if is_first_chunk:
+ self.clear_encode_cache()
+
+ t = x.shape[2]
+ if is_first_chunk:
+ iter_ = 1 + (t - 1) // 4
+ else:
+ assert t % 4 == 0, (
+ f"encode_chunk(is_first_chunk=False) requires the number of "
+ f"pixel frames to be a multiple of 4; got T={t}.")
+ iter_ = t // 4
+
+ out = None
+ for i in range(iter_):
+ self._enc_conv_idx = [0]
+ if is_first_chunk:
+ if i == 0:
+ frame_slice = x[:, :, :1, :, :]
+ else:
+ frame_slice = x[:, :, 1 + 4 * (i - 1):1 + 4 * i, :, :]
+ else:
+ frame_slice = x[:, :, 4 * i:4 * (i + 1), :, :]
+
+ chunk_out = self.encoder(
+ frame_slice,
+ feat_cache=self._enc_feat_map,
+ feat_idx=self._enc_conv_idx)
+ out = chunk_out if out is None else torch.cat([out, chunk_out], 2)
+
+ mu, log_var = self.conv1(out).chunk(2, dim=1)
+ if isinstance(scale[0], torch.Tensor):
+ mu = (mu - scale[0].view(1, self.z_dim, 1, 1, 1)) * scale[1].view(
+ 1, self.z_dim, 1, 1, 1)
+ else:
+ mu = (mu - scale[0]) * scale[1]
+ # NOTE: cache is intentionally NOT cleared at the end so the next
+ # chunk continues the streaming state.
+ return mu
+
+ def decode_chunk(self, z, scale, is_first_chunk: bool = False):
+ """Streaming decode for chunked inference.
+
+ Unlike :meth:`decode`, this does **not** ``clear_cache()`` between
+ calls. ``is_first_chunk=True`` resets the decoder cache once at
+ the very first chunk; subsequent calls reuse the cached state so
+ the causal temporal convolutions stay consistent across chunk
+ boundaries.
+
+ Args:
+ z: latent tensor of shape [B, C, T_lat, H, W] for a single chunk.
+ scale: (mean, 1/std) tuple matching :meth:`decode`.
+ is_first_chunk: True for the very first chunk.
+
+ Returns:
+ Tensor of shape [B, 3, T_pix, H_pix, W_pix]. Not clamped here
+ (the public wrapper :meth:`Wan2_1_VAE.decode_chunk` clamps to
+ [-1, 1] to mirror :meth:`Wan2_1_VAE.decode`).
+ """
+ if is_first_chunk:
+ self.clear_decode_cache()
+
+ if isinstance(scale[0], torch.Tensor):
+ z = z / scale[1].view(1, self.z_dim, 1, 1, 1) + scale[0].view(
+ 1, self.z_dim, 1, 1, 1)
+ else:
+ z = z / scale[1] + scale[0]
+
+ iter_ = z.shape[2]
+ x = self.conv2(z)
+ out = None
+ for i in range(iter_):
+ self._conv_idx = [0]
+ cur = self.decoder(
+ x[:, :, i:i + 1, :, :],
+ feat_cache=self._feat_map,
+ feat_idx=self._conv_idx)
+ out = cur if out is None else torch.cat([out, cur], 2)
+ # NOTE: cache is intentionally NOT cleared at the end.
+ return out
+
+ def reparameterize(self, mu, log_var):
+ std = torch.exp(0.5 * log_var)
+ eps = torch.randn_like(std)
+ return eps * std + mu
+
+ def sample(self, imgs, deterministic=False):
+ mu, log_var = self.encode(imgs)
+ if deterministic:
+ return mu
+ std = torch.exp(0.5 * log_var.clamp(-30.0, 20.0))
+ return mu + std * torch.randn_like(std)
+
+ def clear_cache(self):
+ """Reset BOTH encode and decode streaming caches.
+
+ Kept for backwards-compatibility (the non-streaming
+ :meth:`encode` / :meth:`decode` paths use it as a "scratch" reset
+ because they do not interleave with streaming calls). For
+ chunked / streaming inference, prefer :meth:`clear_encode_cache`
+ and :meth:`clear_decode_cache` so that resetting the encode side
+ does not nuke an in-flight decode cache (and vice versa).
+ """
+ self.clear_decode_cache()
+ self.clear_encode_cache()
+
+ def clear_decode_cache(self):
+ self._conv_num = count_conv3d(self.decoder)
+ self._conv_idx = [0]
+ self._feat_map = [None] * self._conv_num
+
+ def clear_encode_cache(self):
+ self._enc_conv_num = count_conv3d(self.encoder)
+ self._enc_conv_idx = [0]
+ self._enc_feat_map = [None] * self._enc_conv_num
+
+
+def _video_vae(pretrained_path=None, z_dim=None, device='cpu', **kwargs):
+ """
+ Autoencoder3d adapted from Stable Diffusion 1.x, 2.x and XL.
+ """
+ # params
+ cfg = dict(
+ dim=96,
+ z_dim=z_dim,
+ dim_mult=[1, 2, 4, 4],
+ num_res_blocks=2,
+ attn_scales=[],
+ temperal_downsample=[False, True, True],
+ dropout=0.0)
+ cfg.update(**kwargs)
+
+ # init model
+ with torch.device('meta'):
+ model = WanVAE_(**cfg)
+
+ # load checkpoint
+ logging.info(f'loading {pretrained_path}')
+ model.load_state_dict(
+ torch.load(pretrained_path, map_location=device), assign=True)
+
+ return model
+
+
+class Wan2_1_VAE:
+
+ def __init__(self,
+ z_dim=16,
+ vae_pth='cache/vae_step_411000.pth',
+ dtype=torch.float,
+ device="cuda"):
+ self.dtype = dtype
+ self.device = device
+
+ mean = [
+ -0.7571, -0.7089, -0.9113, 0.1075, -0.1745, 0.9653, -0.1517, 1.5508,
+ 0.4134, -0.0715, 0.5517, -0.3632, -0.1922, -0.9497, 0.2503, -0.2921
+ ]
+ std = [
+ 2.8184, 1.4541, 2.3275, 2.6558, 1.2196, 1.7708, 2.6052, 2.0743,
+ 3.2687, 2.1526, 2.8652, 1.5579, 1.6382, 1.1253, 2.8251, 1.9160
+ ]
+ self.mean = torch.tensor(mean, dtype=dtype, device=device)
+ self.std = torch.tensor(std, dtype=dtype, device=device)
+ self.scale = [self.mean, 1.0 / self.std]
+
+ # init model
+ self.model = _video_vae(
+ pretrained_path=vae_pth,
+ z_dim=z_dim,
+ ).eval().requires_grad_(False).to(device)
+
+ def set_dtype(self, dtype):
+ """Run the VAE in ``dtype``."""
+ self.model.to(dtype)
+ self.dtype = dtype
+ inv_std = self.scale[1].to(dtype)
+ self.mean = self.mean.to(dtype)
+ self.std = self.std.to(dtype)
+ self.scale = [self.mean, inv_std]
+
+ # Every entry point takes its input in, and returns its output in, the VAE's dtype.
+ def encode(self, videos, *, reuse_zero_tail=False):
+ """
+ videos: A list of videos each with shape [C, T, H, W].
+ """
+ with amp.autocast(dtype=self.dtype):
+ return [
+ self.model.encode(u.unsqueeze(0).to(self.dtype), self.scale,
+ reuse_zero_tail=reuse_zero_tail).to(self.dtype).squeeze(0)
+ for u in videos
+ ]
+
+ def encode_zero_tail(self, head, frames):
+ """Encode a clip whose first pixel frame is ``head`` and the rest are zeros.
+
+ ``head`` is the first pixel frame ``[C, 1, H, W]``; the clip has
+ ``frames`` frames in total.
+ """
+ with amp.autocast(dtype=self.dtype):
+ return self.model.encode_zero_tail(
+ head.unsqueeze(0).to(self.dtype), frames, self.scale).to(self.dtype).squeeze(0)
+
+ def decode(self, zs):
+ with amp.autocast(dtype=self.dtype):
+ return [
+ self.model.decode(u.unsqueeze(0).to(self.dtype),
+ self.scale).to(self.dtype).clamp_(-1, 1).squeeze(0)
+ for u in zs
+ ]
+
+ # ------------------------------------------------------------------
+ # Streaming variants for chunked inference (stage-2 / stage-3).
+ # See ``WanVAE_.encode_chunk`` / ``decode_chunk`` for the cache contract.
+ # ------------------------------------------------------------------
+
+ def encode_chunk(self, videos, is_first_chunk: bool = False):
+ """Streaming encode. ``videos`` is a list of [C, T, H, W] tensors.
+ Returns a list of latent tensors [C_z, T_lat, H/8, W/8].
+
+ Caller is responsible for setting ``is_first_chunk=True`` exactly
+ once at the start of an autoregressive generation and ``False``
+ for every subsequent chunk.
+ """
+ with amp.autocast(dtype=self.dtype):
+ return [
+ self.model.encode_chunk(
+ u.unsqueeze(0).to(self.dtype), self.scale,
+ is_first_chunk=is_first_chunk).to(self.dtype).squeeze(0)
+ for u in videos
+ ]
+
+ def decode_chunk(self, zs, is_first_chunk: bool = False):
+ """Streaming decode. ``zs`` is a list of [C_z, T_lat, H, W] latent
+ tensors. Returns a list of pixel tensors [3, T_pix, H_pix, W_pix]
+ clamped to [-1, 1] (matching :meth:`decode`).
+ """
+ with amp.autocast(dtype=self.dtype):
+ return [
+ self.model.decode_chunk(
+ u.unsqueeze(0).to(self.dtype), self.scale,
+ is_first_chunk=is_first_chunk
+ ).to(self.dtype).clamp_(-1, 1).squeeze(0)
+ for u in zs
+ ]
diff --git a/reactor/requirements.txt b/reactor/requirements.txt
new file mode 100644
index 0000000..d5cd89f
--- /dev/null
+++ b/reactor/requirements.txt
@@ -0,0 +1,21 @@
+# Model dependencies resolved with Reactor Runtime during `reactor build`.
+# `build.runtime_version` in reactor.yaml selects the Runtime release.
+numpy==2.5.3
+PyYAML>=6.0
+torch==2.8.0
+torchvision==0.23.0
+diffusers==0.37.0
+transformers==4.51.3
+accelerate>=1.1.1
+safetensors
+einops
+tqdm
+imageio[ffmpeg]
+ftfy
+regex
+Pillow
+sentencepiece
+# FlashAttention 2 build dependencies used by reactor.yaml's build.run.
+ninja
+packaging
+wheel
diff --git a/reactor/worldplay2.yaml b/reactor/worldplay2.yaml
new file mode 100644
index 0000000..a8b055e
--- /dev/null
+++ b/reactor/worldplay2.yaml
@@ -0,0 +1,9 @@
+height: 448
+width: 832
+seed: 42
+world_size: 4
+# Bound on each generate, prepare or reset call across the GPUs, in seconds.
+call_timeout_seconds: 240.0
+# Playback rate (frames per second) every chunk plays out at. Keep it at or below the slowest
+# chunk's rate: about 18 on 4x B200 for a full 256-chunk world.
+target_fps: 17.0
diff --git a/reactor/worldplay2_app.py b/reactor/worldplay2_app.py
new file mode 100644
index 0000000..f1b2676
--- /dev/null
+++ b/reactor/worldplay2_app.py
@@ -0,0 +1,410 @@
+"""Reactor application: client policy, immutable step inputs and output effects."""
+
+from __future__ import annotations
+
+import asyncio
+import threading
+from io import BytesIO
+from pathlib import Path
+from typing import Literal
+
+from PIL import Image, UnidentifiedImageError
+from reactor_runtime import (
+ ApplicationError,
+ ClientInfo,
+ CommandError,
+ InputField,
+ ReactorApp,
+ StepOutcome,
+ UploadedFile,
+ connected,
+ event,
+ get_logger,
+ get_weights_path,
+ session_ended,
+ session_started,
+)
+from reactor_runtime.distributed import DistributedRunner
+
+from .worldplay2_model import (
+ MAX_CHUNKS,
+ Settings,
+ Anchor,
+ EncodePrompt,
+ PrepareWorld,
+ WorldPlay2Input,
+ WorldPlay2Model,
+ WorldPlay2Result,
+ load_settings,
+ plan_action,
+)
+from .worldplay2_types import (
+ ChunkGenerated,
+ CommandApplied,
+ Look,
+ Movement,
+ RolloutCompleted,
+ StateUpdate,
+ Turn,
+ WorldPlay2Output,
+ WorldPlay2State,
+ compose_action,
+ default_prompt,
+)
+
+logger = get_logger(__name__)
+
+
+class WorldPlay2(ReactorApp):
+ """Steer an uploaded scene using WorldPlay2's native streaming chunks."""
+
+ state: WorldPlay2State
+ buffer_size = 16
+ # Pins playout to a fixed rate instead of each chunk's measured generation time; load()
+ # replaces it with the configured target_fps.
+ fps = 22.0
+
+ def __init__(self):
+ super().__init__()
+ self._engine = None
+ self._engine_error = None
+ self._settings = Settings()
+ self._weights = None
+ self._image = None
+ self._image_name = ""
+ self._world_id = 0
+ self._active_world = None
+ self._completed = 0
+ self._seed = 42
+ # One engine call at a time: a chunk, a world preparation or a prompt encode.
+ self._engine_lock = threading.Lock()
+ self._preparing = 0
+
+ def _engine_generate(self, input):
+ with self._engine_lock:
+ return self._engine.generate(input)
+
+ async def _encode_now(self, input, code):
+ """Run a condition-encoding call on the engine as the condition is set."""
+ if self._engine is None:
+ return None
+ try:
+ return await asyncio.to_thread(self._engine_generate, input)
+ except Exception as exc:
+ raise CommandError(code, f"Could not prepare the input: {exc}") from exc
+
+ async def _prepare_world(self, command, image, prompt, seed):
+ """Encode a new world's conditions before its first chunk; steps wait meanwhile."""
+ self._preparing += 1
+ try:
+ world_id = self._world_id + 1
+ await self._encode_now(PrepareWorld(world_id, Anchor(image, seed), prompt), "prepare_failed")
+ finally:
+ self._preparing -= 1
+ self._world_id = world_id - 1
+ return await self._request_world(command)
+
+ def load(self, config_path: Path | None) -> None:
+ self._settings = load_settings(config_path)
+ self.output.fps = self._settings.target_fps
+ self._weights = get_weights_path()
+ self._start_engine()
+
+ def _start_engine(self):
+ if self._settings.world_size == 1:
+ engine = WorldPlay2Model()
+ engine.load(self._settings, self._weights)
+ else:
+ engine = DistributedRunner(
+ WorldPlay2Model,
+ world_size=self._settings.world_size,
+ call_timeout=self._settings.call_timeout_seconds,
+ load_kwargs={
+ "settings": self._settings,
+ "weights_root": self._weights,
+ },
+ )
+ engine.start()
+ self._engine = engine
+ self._engine_error = None
+
+ @session_started
+ def on_session_started(self):
+ self._image = None
+ self._image_name = ""
+ self._world_id += 1
+ self._active_world = None
+ self._completed = 0
+ self._seed = self._settings.seed
+
+ @connected
+ async def on_connected(self, client: ClientInfo):
+ await client.send(self._snapshot())
+
+ # Publish a complete snapshot after accepted control changes.
+ @event(
+ name="set_prompt",
+ description="Set scene text for the next chunk, preserving world memory. Valid at any time; an empty prompt waits for new input. Broadcasts `state_update`. Rejects with `invalid_prompt` if the text cannot be prepared.",
+ )
+ async def set_prompt(
+ self, prompt: str = WorldPlay2State._public_fields["prompt"]
+ ) -> None:
+ prompt = prompt.strip()
+ if prompt:
+ await self._encode_now(EncodePrompt(prompt), "invalid_prompt")
+ self.state.prompt = prompt
+ await self._send_state_update()
+
+ @event(
+ name="set_action",
+ description="Set movement, turn, look and space together for the next chunk. Selections are held until changed and combined into one native action. Broadcasts `state_update`. Rejects with `invalid_action` for an unsupported selection and with `rollout_complete` once the world has reached its chunk limit, without changing controls. After completion use reset or set_image.",
+ )
+ async def set_action(
+ self,
+ movement: Movement = InputField( # noqa: B008 - Reactor schema declaration
+ default="none",
+ description="Movement dropdown, relative to the current view. Diagonal choices combine two movement keys. Applied next chunk; none releases movement.",
+ ),
+ turn: Turn = InputField( # noqa: B008 - Reactor schema declaration
+ default="none",
+ description="Horizontal turn dropdown. Applied next chunk at yaw_degrees per latent frame; none releases turning.",
+ ),
+ look: Look = InputField( # noqa: B008 - Reactor schema declaration
+ default="none",
+ description="Vertical look dropdown. Applied next chunk at pitch_degrees per latent frame; none releases looking.",
+ ),
+ space: bool = InputField(
+ default=False,
+ description="Hold the upstream space action when checked, release it when unchecked. Combined with the selected movement and rotation next chunk.",
+ ),
+ ) -> None:
+ if self._completed >= MAX_CHUNKS:
+ raise CommandError(
+ "rollout_complete",
+ f"The world reached its {MAX_CHUNKS}-chunk limit (the model's 1024 temporal positions). Use reset or set_image to start another world; controls have not changed.",
+ )
+ try:
+ action = compose_action(movement, turn, look, space)
+ plan_action(
+ action,
+ self.state.perspective,
+ self.state.yaw_degrees,
+ self.state.pitch_degrees,
+ False,
+ )
+ except ValueError as exc:
+ raise CommandError("invalid_action", str(exc)) from exc
+ self.state._movement = movement
+ self.state._turn = turn
+ self.state._look = look
+ self.state._space = space
+ await self._send_state_update()
+
+ @event(
+ name="set_perspective",
+ description="Select first- or third-person controls for the next chunk. Valid at any time; provide a matching image and prompt for a fresh world. Broadcasts `state_update`; an unknown value is rejected with `invalid_command`.",
+ )
+ async def set_perspective(
+ self,
+ perspective: Literal["fps", "tps"] = WorldPlay2State._public_fields[
+ "perspective"
+ ],
+ ) -> None:
+ self.state.perspective = perspective
+ await self._send_state_update()
+
+ @event(
+ name="set_yaw_degrees",
+ description="Set horizontal turn speed for the next chunk. Valid at any time. Broadcasts `state_update`; an out-of-range value is rejected with `invalid_command`.",
+ )
+ async def set_yaw_degrees(
+ self, yaw_degrees: float = WorldPlay2State._public_fields["yaw_degrees"]
+ ) -> None:
+ self.state.yaw_degrees = yaw_degrees
+ await self._send_state_update()
+
+ @event(
+ name="set_pitch_degrees",
+ description="Set vertical turn speed for the next chunk. Valid at any time. Broadcasts `state_update`; an out-of-range value is rejected with `invalid_command`.",
+ )
+ async def set_pitch_degrees(
+ self, pitch_degrees: float = WorldPlay2State._public_fields["pitch_degrees"]
+ ) -> None:
+ self.state.pitch_degrees = pitch_degrees
+ await self._send_state_update()
+
+ @session_ended
+ def on_session_ended(self):
+ with self._engine_lock:
+ self._end_session()
+
+ def _end_session(self):
+ try:
+ engine = self._engine
+ if isinstance(engine, DistributedRunner):
+ if engine.healthy:
+ try:
+ engine.reset()
+ return
+ except Exception:
+ logger.exception("Worker reset failed; replacing the worker group")
+ # A failed reset can leave ranks in different worlds even when
+ # all of them raised the same exception and healthy stays true.
+ engine.shutdown()
+ self._engine = None
+ self._start_engine()
+ elif engine is not None:
+ engine.reset()
+ except Exception as error:
+ # Runtime logs lifecycle-hook errors. Retain the failure so the
+ # next live step terminates instead of reusing an incomplete reset.
+ self._engine_error = error
+ raise
+ finally:
+ self._image = None
+ self._image_name = ""
+ self._active_world = None
+ self._completed = 0
+
+ @event(
+ name="set_image",
+ description="Start a fresh world from an uploaded image and optional prompt. Execute commits both together; blank text uses the upstream FPS/TPS template for the selected perspective. Generation starts on the next runtime playback step; resume if playback is paused. Emits `command_applied` and `state_update`. Rejects with `invalid_image` for an unsupported or undecodable upload and with `prepare_failed` if the world cannot be prepared, without changing the world.",
+ )
+ async def set_image(
+ self,
+ image: UploadedFile = InputField( # noqa: B008 - Reactor schema declaration
+ moderate=True,
+ description="Required uploaded PNG, JPEG or WebP, at most 25 MiB and 32 million pixels. No built-in image is selected.",
+ ),
+ prompt: str = InputField(
+ default="",
+ moderate=True,
+ max_length=4096,
+ description="Optional scene text for this new world. Blank text uses a reference-preserving default for the current fps/tps perspective, without an event. Replaces the previous prompt; set_prompt can change it during generation.",
+ ),
+ ) -> CommandApplied:
+ try:
+ if not image.data or len(image.data) > 25 * 1024 * 1024:
+ raise ValueError("Image must contain 1 byte to 25 MiB")
+ with Image.open(BytesIO(image.data)) as source:
+ if source.format not in {"PNG", "JPEG", "WEBP"}:
+ raise ValueError("Use a PNG, JPEG or WebP image")
+ if source.width * source.height > 32_000_000:
+ raise ValueError("Image exceeds 32 million pixels")
+ source.load()
+ except (
+ OSError,
+ ValueError,
+ UnidentifiedImageError,
+ Image.DecompressionBombError,
+ ) as exc:
+ raise CommandError("invalid_image", str(exc)) from exc
+ prompt = prompt.strip() or default_prompt(self.state.perspective)
+ data = bytes(image.data)
+ result = await self._prepare_world("set_image", data, prompt, self._seed)
+ self._image = data
+ self._image_name = image.name
+ self.state.prompt = prompt
+ return result
+
+ @event(
+ name="reset",
+ description="Restart the selected image with a seed. Preserves prompt and held controls; starts a fresh world on the next step. Emits `command_applied` and `state_update`. Requires an uploaded image, otherwise rejects with `image_required`; rejects with `prepare_failed` if the world cannot be prepared.",
+ )
+ async def reset(
+ self,
+ seed: int = InputField(
+ default=42,
+ ge=0,
+ le=2**63 - 1,
+ description="Seed for the entire rollout noise volume.",
+ ),
+ ) -> CommandApplied:
+ if self._image is None:
+ raise CommandError("image_required", "Upload an image before resetting")
+ result = await self._prepare_world("reset", self._image, self.state.prompt, seed)
+ self._seed = seed
+ return result
+
+ async def _request_world(self, command):
+ self._world_id += 1
+ self._completed = 0
+ self.output.flush()
+ await self._send_state_update()
+ return CommandApplied(command=command, world_id=self._world_id)
+
+ async def process_input(self) -> WorldPlay2Input:
+ if self._engine_error is not None:
+ raise RuntimeError(
+ "Model recovery failed; restart the service"
+ ) from self._engine_error
+ if self._preparing:
+ raise ApplicationError("Preparing the world; generation starts when it is ready")
+ if self._image is None:
+ raise ApplicationError("Upload an image before generating")
+ prompt = self.state.prompt
+ if not prompt:
+ raise ApplicationError("Set a non-empty scene prompt before generating")
+ fresh = self._world_id != self._active_world
+ if not fresh and self._completed >= MAX_CHUNKS:
+ raise ApplicationError(
+ "Rollout complete; reset explicitly to generate again"
+ )
+ try:
+ rows = plan_action(
+ self.state.action,
+ self.state.perspective,
+ self.state.yaw_degrees,
+ self.state.pitch_degrees,
+ fresh,
+ )
+ except ValueError as exc:
+ raise ApplicationError(str(exc)) from exc
+ anchor = Anchor(self._image, self._seed) if fresh else None
+ return WorldPlay2Input(self._world_id, anchor, prompt, self.state.action, rows)
+
+ def generate(self, input: WorldPlay2Input) -> WorldPlay2Result:
+ return self._engine_generate(input)
+
+ async def process_output(self, outcome: StepOutcome) -> WorldPlay2Output:
+ if outcome.error is not None:
+ # Input refusal happens before inference; remaining errors are fatal.
+ raise outcome.error
+ result: WorldPlay2Result = outcome.result
+ if result.world_id != self._active_world:
+ self.output.flush()
+ self._active_world = result.world_id
+ self._completed = result.chunk_index
+ await self.send(
+ ChunkGenerated(
+ world_id=result.world_id,
+ chunk_index=result.chunk_index,
+ frames=len(result.frames),
+ prompt=result.prompt,
+ action=result.action,
+ elapsed_seconds=outcome.elapsed,
+ )
+ )
+ await self.send(self._snapshot())
+ if self._completed == MAX_CHUNKS:
+ await self.send(
+ RolloutCompleted(
+ world_id=result.world_id,
+ completed_chunks=self._completed,
+ detail=f"The world reached its {MAX_CHUNKS}-chunk limit (the model's 1024 temporal positions). Use reset to restart this image, or set_image to start a new world.",
+ )
+ )
+ return WorldPlay2Output(main_video=result.frames)
+
+ def _snapshot(self):
+ return StateUpdate.from_state(
+ self.state,
+ image_name=self._image_name,
+ world_id=self._world_id,
+ completed_chunks=self._completed,
+ max_chunks=MAX_CHUNKS,
+ seed=self._seed,
+ )
+
+ async def _send_state_update(self):
+ await self.send(self._snapshot())
diff --git a/reactor/worldplay2_model.py b/reactor/worldplay2_model.py
new file mode 100644
index 0000000..ebbad16
--- /dev/null
+++ b/reactor/worldplay2_model.py
@@ -0,0 +1,341 @@
+"""Plain model boundary: no Reactor imports, environment reads or worker launchers."""
+
+from __future__ import annotations
+
+from dataclasses import dataclass, fields
+from io import BytesIO
+import logging
+import os
+import time
+from math import isfinite
+from pathlib import Path
+
+import numpy as np
+import yaml
+from PIL import Image
+
+# The DiT's temporal RoPE table has 1024 latent positions, indexed by absolute latent frame, and a
+# chunk is 4 latents, so a world ends after 256 chunks. This is the only cap on a session.
+MAX_CHUNKS = 1024 // 4
+
+
+@dataclass(frozen=True)
+class Settings:
+ height: int = 448
+ width: int = 832
+ seed: int = 42
+ world_size: int = 1
+ call_timeout_seconds: float = 240.0
+ # Chunks of a synthetic world run inside load() as a warm-up.
+ warmup_chunks: int = 10
+ # Persistent compile cache. Cache directories already set in the environment take
+ # precedence.
+ compile_cache_dir: str | None = "~/.cache/worldplay2/compile"
+ # Playback rate of the video track, in frames per second. Every chunk plays out at this
+ # rate whatever its generation time, so a world does not start quickly and slow down as
+ # its memory grows. It must not exceed the rate of the slowest chunk the world will reach: on
+ # 4x B200 that is about 18 for a full 256-chunk world.
+ target_fps: float = 17.0
+
+
+def load_settings(config_path: Path | None) -> Settings:
+ """Read settings without loading weights or initializing a GPU."""
+ values = dict(yaml.safe_load(config_path.read_text()) if config_path else {})
+ unknown = sorted(set(values) - {field.name for field in fields(Settings)})
+ if unknown:
+ raise ValueError(f"unknown settings: {', '.join(unknown)}")
+ settings = Settings(**values)
+ if type(settings.world_size) is not int or settings.world_size not in (1, 2, 4):
+ raise ValueError("world_size must be 1, 2 or 4")
+ if (
+ type(settings.call_timeout_seconds) not in (int, float)
+ or not isfinite(settings.call_timeout_seconds)
+ or settings.call_timeout_seconds <= 0
+ ):
+ raise ValueError("call_timeout_seconds must be finite and positive")
+ if type(settings.target_fps) not in (int, float) or not isfinite(settings.target_fps) or settings.target_fps <= 0:
+ raise ValueError("target_fps must be finite and positive")
+ if type(settings.warmup_chunks) is not int or not 0 <= settings.warmup_chunks <= MAX_CHUNKS:
+ raise ValueError(f"warmup_chunks must be an integer in [0, {MAX_CHUNKS}]")
+ if (
+ settings.height % 32
+ or settings.width % 32
+ or min(settings.height, settings.width) < 128
+ ):
+ raise ValueError(
+ "Resolution must be a multiple of 32, at least 128"
+ )
+ return settings
+
+
+@dataclass(frozen=True)
+class Anchor:
+ image: bytes
+ seed: int
+
+
+@dataclass(frozen=True)
+class WorldPlay2Input:
+ world_id: int
+ anchor: Anchor | None
+ prompt: str
+ action: str
+ action_rows: tuple[tuple[float, ...], ...]
+
+
+@dataclass(frozen=True)
+class PrepareWorld:
+ """Set up world ``world_id`` from its image and prompt before its first chunk."""
+
+ world_id: int
+ anchor: Anchor
+ prompt: str
+
+
+@dataclass(frozen=True)
+class EncodePrompt:
+ """Encode a prompt when it is set, so the chunk that first uses it does not."""
+
+ prompt: str
+
+
+@dataclass(frozen=True)
+class Prepared:
+ world_id: int | None
+ seconds: float
+
+
+@dataclass(frozen=True)
+class WorldPlay2Result:
+ world_id: int
+ chunk_index: int
+ frames: np.ndarray
+ prompt: str
+ action: str
+
+
+def plan_action(
+ action: str, perspective: str, yaw: float, pitch: float, first: bool
+) -> tuple[tuple[float, ...], ...]:
+ """Use the upstream action parser; only the rollout's first latent is idle."""
+ from worldplay2.inputs import parse_action_string
+
+ if "," in action or "-" in action:
+ raise ValueError("Supply one held action without a duration, e.g. w+right.")
+ rows = parse_action_string(
+ f"{action}-{4 if first else 5}",
+ perspective=perspective,
+ yaw_rotation_speed_deg=yaw,
+ pitch_rotation_speed_deg=pitch,
+ ).tensor
+ if not first:
+ rows = rows[1:]
+ return tuple(tuple(float(x) for x in row) for row in rows)
+
+
+class WorldPlay2Model:
+ """Own the native two-expert pipeline and one persistent streaming rollout."""
+
+ def __init__(self):
+ self.rank = 0
+ self.world_size = 1
+ self.device = "cuda:0"
+ self._settings = Settings()
+ self._pipeline = None
+ self._stream = None
+ self._world_id = None
+ self._chunk_index = 0
+ self._pending = None
+
+ def load(self, settings: Settings, weights_root: Path) -> None:
+ from configs import I2V_A14B_CONFIG
+ from .inference.pipeline import WorldPlay2Pipeline
+
+ self._settings = settings
+ if settings.compile_cache_dir:
+ root = Path(settings.compile_cache_dir).expanduser()
+ os.environ.setdefault("TORCHINDUCTOR_CACHE_DIR", str(root / "inductor"))
+ os.environ.setdefault("TRITON_CACHE_DIR", str(root / "triton"))
+ self._pipeline = WorldPlay2Pipeline(
+ config=I2V_A14B_CONFIG,
+ checkpoint_dir=str(weights_root / "base"),
+ low_noise_mem_ckpt=str(
+ weights_root
+ / "fast/low_noise_model/diffusion_pytorch_model.safetensors"
+ ),
+ high_noise_mem_ckpt=str(
+ weights_root
+ / "fast/high_noise_model/diffusion_pytorch_model.safetensors"
+ ),
+ device_id=int(self.device.split(":")[-1]),
+ rank=self.rank,
+ init_on_cpu=False,
+ inference_mode="pdd",
+ use_sp=self.world_size > 1,
+ dit_fsdp=False,
+ t5_fsdp=False,
+ attention_backend="flash",
+ exact_optimizations=True,
+ )
+ self._use_bf16_vae()
+ from .acceleration import install_lossless
+
+ install_lossless(self, "num-equal")
+ self._install_flash_attention4()
+ if settings.warmup_chunks:
+ self._warm_up(settings.warmup_chunks)
+
+ def _warm_up(self, chunks: int) -> None:
+ """Run a synthetic world through the real session path, then reset."""
+ started = time.perf_counter()
+ height, width = self._settings.height, self._settings.width
+ rows = np.linspace(0, 255, height, dtype=np.float32)[:, None, None]
+ cols = np.linspace(0, 255, width, dtype=np.float32)[None, :, None]
+ pixels = np.concatenate(
+ [np.broadcast_to(rows, (height, width, 1)),
+ np.broadcast_to(cols, (height, width, 1)),
+ np.broadcast_to((rows + cols) / 2, (height, width, 1))], axis=2)
+ buffer = BytesIO()
+ Image.fromarray(pixels.astype(np.uint8)).save(buffer, format="PNG")
+ anchor = Anchor(buffer.getvalue(), 0)
+ prompt = "A quiet street between low buildings on a clear day."
+ # Two synthetic worlds, then reset.
+ for world, count in ((-2, 2), (-1, chunks)):
+ if world == -1:
+ # The served path: conditions encoded by a prepare step, then the chunks.
+ WorldPlay2Model.generate(self, PrepareWorld(world, anchor, prompt))
+ for index in range(count):
+ action = plan_action("w+right", "fps", 3.0, 1.0, index == 0)
+ WorldPlay2Model.generate(self, WorldPlay2Input(
+ world, anchor if index == 0 else None, prompt, "w+right", action))
+ self.reset()
+ logging.info("warm-up: %d chunks in %.1f s; ready", chunks, time.perf_counter() - started)
+
+ def _use_bf16_vae(self) -> None:
+ import torch
+
+ self._pipeline.vae.set_dtype(torch.bfloat16)
+
+ def _install_flash_attention4(self) -> None:
+ from .acceleration import flash_attention4
+
+ flash_attention4.install(self._pipeline)
+
+ def _chunk_input(self, index):
+ import torch
+
+ if index != self._chunk_index:
+ raise RuntimeError("Native stream advanced beyond the requested chunk")
+ return self._pending.prompt, torch.tensor(
+ self._pending.action_rows, dtype=torch.float32
+ )
+
+ def _begin(self, input: WorldPlay2Input, prepare: bool = False):
+ import torch
+
+ if input.anchor is None:
+ raise ValueError("A new world requires its uploaded image anchor")
+ self.reset()
+ anchor = input.anchor
+ with Image.open(BytesIO(anchor.image)) as source:
+ image = source.convert("RGB")
+ if getattr(self._pipeline, "chunk_stream", False):
+ self._stream = self._pipeline.stream_world(
+ img=image,
+ seed=anchor.seed,
+ num_chunks=MAX_CHUNKS,
+ chunk_input=self._chunk_input,
+ height=self._settings.height,
+ width=self._settings.width,
+ return_cpu=False,
+ prepare=prepare,
+ prompt=input.prompt,
+ )
+ self._world_id = input.world_id
+ return
+ self._stream = self._pipeline.stream_chunked(
+ prompts={"live": input.prompt},
+ chunk_prompts=("live",) * MAX_CHUNKS,
+ img=image,
+ hr_action=torch.zeros(MAX_CHUNKS * 4, 6),
+ total_latent_frames=MAX_CHUNKS * 4,
+ chunk_length=4,
+ sampling_steps=4,
+ shift=7.0,
+ guide_scale=1.0,
+ seed=anchor.seed,
+ offload_model=False,
+ sink_size=1,
+ temporal_size=1,
+ height=self._settings.height,
+ width=self._settings.width,
+ chunk_input=self._chunk_input,
+ return_cpu=False,
+ )
+ self._world_id = input.world_id
+
+ def generate(self, input):
+ """A chunk of the current world, or (``PrepareWorld`` / ``EncodePrompt``) condition
+ encoding at the moment the condition is set."""
+ if self._pipeline is None:
+ raise RuntimeError("Load weights before generating")
+ if isinstance(input, (PrepareWorld, EncodePrompt)):
+ started = time.perf_counter()
+ if isinstance(input, EncodePrompt):
+ self._pipeline.encode_prompt(input.prompt)
+ world = None
+ else:
+ self._begin(input, prepare=True)
+ world = input.world_id
+ return Prepared(world, time.perf_counter() - started)
+ if input.world_id != self._world_id:
+ self._begin(input)
+ if self._stream is None or self._chunk_index >= MAX_CHUNKS:
+ raise ValueError("Rollout complete; start a new world explicitly")
+ self._pending = input
+ try:
+ rgb = next(self._stream)
+ frames = (
+ self._host_frames(rgb)
+ if self.rank == 0
+ else np.empty((0,), dtype=np.uint8)
+ )
+ except Exception:
+ self.reset()
+ raise
+ finally:
+ self._pending = None
+ self._chunk_index += 1
+ result = WorldPlay2Result(
+ input.world_id, self._chunk_index, frames, input.prompt, input.action
+ )
+ if self._chunk_index == MAX_CHUNKS:
+ self._stream.close()
+ self._stream = None
+ return result
+
+ def _host_frames(self, rgb) -> np.ndarray:
+ import torch
+
+ return (
+ rgb.float()
+ .clamp(-1, 1)
+ .add(1)
+ .mul(127.5)
+ .to(dtype=torch.uint8)
+ .permute(1, 2, 3, 0)
+ .contiguous()
+ .cpu()
+ .numpy()
+ )
+
+ def reset(self) -> None:
+ """Drop rollout state and VAE/text caches, retaining loaded weights."""
+ if self._stream is not None:
+ self._stream.close()
+ self._stream = self._pending = self._world_id = None
+ self._chunk_index = 0
+ if self._pipeline is not None:
+ self._pipeline.clear_conditioning_cache()
+ self._pipeline.vae.model.clear_cache()
+ self._pipeline.lr_latents_cache = None
diff --git a/reactor/worldplay2_types.py b/reactor/worldplay2_types.py
new file mode 100644
index 0000000..82cbf2b
--- /dev/null
+++ b/reactor/worldplay2_types.py
@@ -0,0 +1,197 @@
+"""Public controls, tracks and messages for the WorldPlay2 application."""
+
+from typing import Literal
+
+from reactor_runtime import (
+ InputField,
+ InputState,
+ MessageField,
+ ModelMessage,
+ Output,
+ Video,
+)
+
+Movement = Literal[
+ "none",
+ "forward",
+ "backward",
+ "left",
+ "right",
+ "forward_left",
+ "forward_right",
+ "backward_left",
+ "backward_right",
+]
+Turn = Literal["none", "left", "right"]
+Look = Literal["none", "up", "down"]
+
+
+def compose_action(movement: Movement, turn: Turn, look: Look, space: bool) -> str:
+ """Combine mutually exclusive selectors into one upstream held action."""
+ movements = {
+ "none": "none",
+ "forward": "w",
+ "backward": "s",
+ "left": "a",
+ "right": "d",
+ "forward_left": "wa",
+ "forward_right": "wd",
+ "backward_left": "sa",
+ "backward_right": "sd",
+ }
+ if (
+ movement not in movements
+ or turn not in {"none", "left", "right"}
+ or look not in {"none", "up", "down"}
+ or not isinstance(space, bool)
+ ):
+ raise ValueError(
+ "Select a supported movement, turn, look and boolean space control"
+ )
+ tokens = [movements[movement], turn, look, "space" if space else "none"]
+ return "+".join(token for token in tokens if token != "none") or "none"
+
+
+def default_prompt(perspective: str) -> str:
+ """Reference-preserving fallback using the upstream FPS/TPS prompt template."""
+ scene = "The scene in the video is: the environment shown in the reference image, with consistent layout, objects, and lighting."
+ if perspective == "tps":
+ return (
+ scene
+ + " The character is: the same main character shown in the reference image, with consistent appearance and clothing."
+ )
+ return scene
+
+
+class WorldPlay2State(InputState):
+ """Held controls sampled at the next native four-latent chunk boundary."""
+
+ prompt: str = InputField(
+ default="",
+ max_length=4096,
+ moderate=True,
+ description="Scene text applied next chunk, preserving world memory. FPS: The scene in the video is: ...; TPS also includes The character is: ... . The event is: ... is optional. Empty text waits for a new prompt; set_image supplies a default when its prompt is blank.",
+ )
+ _movement: Movement = "none"
+ _turn: Turn = "none"
+ _look: Look = "none"
+ _space: bool = False
+
+ @property
+ def action(self) -> str:
+ return compose_action(self._movement, self._turn, self._look, self._space)
+
+ perspective: Literal["fps", "tps"] = InputField(
+ default="fps",
+ description="Native perspective bit: fps is first-person, tps is third-person. Applied next chunk; use a matching image and prompt.",
+ )
+ yaw_degrees: float = InputField(
+ default=3.0,
+ ge=0.01,
+ le=90,
+ description="Positive yaw speed in degrees per latent frame for left/right. Applied next chunk; native launcher default is 3.",
+ )
+ pitch_degrees: float = InputField(
+ default=1.0,
+ ge=0.01,
+ le=90,
+ description="Positive pitch speed in degrees per latent frame for up/down. Applied next chunk; native launcher default is 1.",
+ )
+
+
+class WorldPlay2Output(Output):
+ """Native RGB chunks: 13 frames initially, then 16; runtime-paced playback."""
+
+ main_video: Video
+
+
+class StateUpdate(ModelMessage):
+ """Emitted on connection, accepted control changes and completed chunks; full shared state."""
+
+ image_name: str | None = MessageField(
+ description="Uploaded anchor filename; null until explicitly supplied."
+ )
+ prompt: str | None = MessageField(
+ description="Current prompt, sampled on the next step; null when unset."
+ )
+ action: str = MessageField(
+ description="Native action composed from the selectors, sampled on the next step."
+ )
+ movement: str = MessageField(description="Selected movement direction.")
+ turn: str = MessageField(description="Selected horizontal turn direction.")
+ look: str = MessageField(description="Selected vertical look direction.")
+ space: bool = MessageField(description="Whether the native space action is held.")
+ perspective: str = MessageField(description="Current fps/tps perspective control.")
+ yaw_degrees: float = MessageField(description="Yaw degrees per latent frame.")
+ pitch_degrees: float = MessageField(description="Pitch degrees per latent frame.")
+ world_id: int = MessageField(
+ description="Identity of the requested rollout, increased by image/reset commands."
+ )
+ completed_chunks: int = MessageField(
+ description="Successfully completed chunks in this world."
+ )
+ max_chunks: int = MessageField(
+ description="Chunks a world can reach: the model's 1024 temporal positions, 4 latents per chunk."
+ )
+ limit_reached: bool = MessageField(
+ description="True after the final chunk; reset or set_image is required to generate again."
+ )
+ seed: int = MessageField(
+ description="RNG seed for the full rollout, sampled when the world starts."
+ )
+
+ @classmethod
+ def from_state(
+ cls, state, *, image_name, world_id, completed_chunks, max_chunks, seed
+ ):
+ return cls(
+ image_name=image_name or None,
+ world_id=world_id,
+ completed_chunks=completed_chunks,
+ max_chunks=max_chunks,
+ limit_reached=completed_chunks >= max_chunks,
+ seed=seed,
+ prompt=state.prompt or None,
+ action=state.action,
+ movement=state._movement,
+ turn=state._turn,
+ look=state._look,
+ space=state._space,
+ perspective=state.perspective,
+ yaw_degrees=state.yaw_degrees,
+ pitch_degrees=state.pitch_degrees,
+ )
+
+
+class CommandApplied(ModelMessage):
+ """Emitted as the acknowledgement of a successful image/reset command."""
+
+ command: str = MessageField(description="Accepted command name.")
+ world_id: int = MessageField(
+ description="Fresh world identity; its anchor is consumed on the next allowed step."
+ )
+
+
+class ChunkGenerated(ModelMessage):
+ """Emitted after a successful step, before its state snapshot and video output."""
+
+ world_id: int = MessageField(description="World identity echoed by the model.")
+ chunk_index: int = MessageField(description="One-based completed chunk index.")
+ frames: int = MessageField(description="Number of RGB frames actually produced.")
+ prompt: str = MessageField(description="Prompt actually used for this chunk.")
+ action: str = MessageField(description="Action actually used for this chunk.")
+ elapsed_seconds: float = MessageField(
+ description="Inference duration measured by the runtime, in seconds."
+ )
+
+
+class RolloutCompleted(ModelMessage):
+ """Emitted after the final successful chunk; reset or upload an image to continue."""
+
+ world_id: int = MessageField(description="Completed world identity.")
+ completed_chunks: int = MessageField(
+ description="Number of successfully generated chunks."
+ )
+ detail: str = MessageField(
+ description="Why the world ended and how to start another."
+ )