Suno-style web UI for a self-hosted MiniMax-Music3 inference server
TypeScript ai-musicdiffusersdockerexpressminimaxminimax-musicmusic-generationreactself-hostedsgl-omnisunotailwindcsstext-to-musictypescriptvite
feat: Suno-style UI and server for MiniMax-Music3
Adam Benhassen70bb852d7413
diff --git a/.gitignore b/.gitignorenew file mode 100644index 0000000..45c8fc4--- /dev/null+++ b/.gitignore@@ -0,0 +1,5 @@+node_modules/+dist/+data/+*.log+.DS_Storediff --git a/README.md b/README.mdnew file mode 100644index 0000000..4af3734--- /dev/null+++ b/README.md@@ -0,0 +1,48 @@+# minimax-music-ui++Suno-style local web UI for a self-hosted [MiniMax-Music3](https://huggingface.co/MiniMaxAI/MiniMax-Music3) inference server.++- **web/** — Vite + React + Tailwind SPA (create form, take queue with live progress, library, waveform player)+- **server/** — Express 5 server that proxies generation to the inference box, polls jobs, downloads finished audio into `data/tracks/` and keeps metadata in `data/library.json`. Serves the built SPA.++## Run++```bash+npm install+npm run build+MUSIC_API=http://100.105.185.107:7862 npm start # → http://localhost:8787+```++Env vars (server):++| Var | Default | Notes |+|---|---|---|+| `MUSIC_API` | `http://127.0.0.1:7862` | inference server base URL |+| `MUSIC_API_KEY` | – | sent as `Authorization: Bearer` if the server was started with `--api-key` |+| `PORT` | `8787` | UI server port |+| `DATA_DIR` | `./data` | library JSON + audio files |+| `STATIC_DIR` | `web/dist` if present | built SPA to serve |++## Develop++```bash+npm run dev # server :8787 (tsx watch) + vite :5173 with /api proxy+npm run dev:fake # same, plus a fake inference API on :7999 (no GPU needed)+npm test # server unit/integration tests (vitest)+npm run typecheck+```++`FAKE_AUDIO=/path/to/file.wav FAKE_ADVANCE_MS=1500 npm run fake -w server` makes the fake serve a real, playable file and progress faster.++## UI server API++| Method | Path | |+|---|---|---|+| GET | `/api/health` | upstream `/health` + `upstreamReachable` |+| GET | `/api/library` | tracks, newest first |+| POST | `/api/generate` | `{title?, prompt, lyrics?, duration, seed?, steps?, format, takes}` → created tracks (one per take; `seed+i` per take when a seed is given) |+| GET | `/api/tracks/:id/audio` | stream audio (`?download` for attachment) |+| DELETE | `/api/tracks/:id` | cancel upstream if queued/running, delete file + entry |+| GET | `/api/templates` | saved templates (`data/templates.json`) |+| POST | `/api/templates` | `{name, prompt, lyrics?, duration?, steps?, format?}` — same name overwrites |+| DELETE | `/api/templates/:id` | remove a template |diff --git a/package-lock.json b/package-lock.jsonnew file mode 100644index 0000000..90bf067--- /dev/null+++ b/package-lock.json@@ -0,0 +1,4356 @@+{+ "name": "minimax-music-ui",+ "version": "0.1.0",+ "lockfileVersion": 3,+ "requires": true,+ "packages": {+ "": {+ "name": "minimax-music-ui",+ "version": "0.1.0",+ "workspaces": [+ "server",+ "web"+ ],+ "devDependencies": {+ "concurrently": "^10.0.5"+ }+ },+ "node_modules/@esbuild/aix-ppc64": {+ "version": "0.28.2",+ "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.28.2.tgz",+ "integrity": "sha512-XExcO+dvLKvVtNTibSTBej1NCAbaGhWn9Ww1ZPx80qsahhPFe/8jgWP0IchNe0F3HwkU7n8ejhH8bjonqht8mQ==",+ "cpu": [+ "ppc64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "aix"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/android-arm": {+ "version": "0.28.2",+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.28.2.tgz",+ "integrity": "sha512-kXXoiPVVGQcnIYGOeaovwOURpniDBpSq4A03qkQ+BMQqtGG6HYap3xne9C1O1yo4TR3qxlCX5IqqmX6fFo2Lqg==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/android-arm64": {+ "version": "0.28.2",+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.28.2.tgz",+ "integrity": "sha512-5YfKeeI8qWfBZIX+u2xZC3Zlb3Os/gLS2sbEKM+I4ZOcsWmHS2WLysCcQZDAFRslDUU5Oiq44gf6PYN1vGwG5A==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/android-x64": {+ "version": "0.28.2",+ "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.28.2.tgz",+ "integrity": "sha512-O387ite7SzUyCcy3JQX4P4bLtEA7bLLkx+esve5JHnyYfNTxcVpXZo9jhdB0lTKN44gztELTdU7nS8Nr16Fs1Q==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/darwin-arm64": {+ "version": "0.28.2",+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.28.2.tgz",+ "integrity": "sha512-n4KqkOQrraxHJcgjM1RvwbigfQKIKJVpM7xp+KsxiyUSrRdIXnt73VhrPAx0fV44hgfmIVKjxMN9J1t5jySVkw==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/darwin-x64": {+ "version": "0.28.2",+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.28.2.tgz",+ "integrity": "sha512-uq6suIWYP37qzGddBKPw5QEQPi6HiLGsO7UmkpfyaYNQ3D+rN6w6WfwH+nuqcGXWvawGwxOEroO4YGnFh95azw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/freebsd-arm64": {+ "version": "0.28.2",+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.28.2.tgz",+ "integrity": "sha512-n+I0BTSRIoy+d6RPKnEVwql5UwBJolytvY4mAOIEJorKlqgPII8ix6slVVrfZ5Tnj7glIZvloylbB/EJPMWEXw==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/freebsd-x64": {+ "version": "0.28.2",+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.28.2.tgz",+ "integrity": "sha512-78XJTJkvPs0kz2w61301PJjXl4g7q3JqiYMZ/M/yVI73EHBrCRTgkhu9oqG7vPqq+a/yadEW8aD+agKlk5xrmg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-arm": {+ "version": "0.28.2",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.28.2.tgz",+ "integrity": "sha512-XlDnu2q5yoqems+xay6wSAcg9DDD7K9RLKZEBOMZm3ckNpJBvOX20tSfby8KfrrhINDyv9V2YVZKY/SpoGJI8w==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-arm64": {+ "version": "0.28.2",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.28.2.tgz",+ "integrity": "sha512-pW4AC0P3it8c7do9MVM4p51FzHzdM/TZrerurgRcHJ2WTa1VQ1CIq18xncfpBJw4ojkiZZrKW2yIBWBP92j6Ug==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-ia32": {+ "version": "0.28.2",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.28.2.tgz",+ "integrity": "sha512-CYbnj78HsIeA+DhgUKgFCfvNsTHFhMMrinUrMZpDXJXKN8T3XViTZ/+wtHeVxEWY8ewSzTFN+nRmSwO2tZaLUQ==",+ "cpu": [+ "ia32"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-loong64": {+ "version": "0.28.2",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.28.2.tgz",+ "integrity": "sha512-buwkd8nsph4R+ajRvw0qM5Hja/TXQow3ptzWO2EbG/cqcIkHloRrdlBtQlshyYGTNFvfkfJ5tpPLVkY4DtsPfQ==",+ "cpu": [+ "loong64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-mips64el": {+ "version": "0.28.2",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.28.2.tgz",+ "integrity": "sha512-ZVykbDyk7519VwiNb9Lcj9m8XM6v5V9uKPvrEMkkEedVewf+0itkhahp4HDpgERXhwLRpWFypsGbG/J8s0QjJA==",+ "cpu": [+ "mips64el"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-ppc64": {+ "version": "0.28.2",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.28.2.tgz",+ "integrity": "sha512-CAXl+Dtd9UUuJd8pKKdwh6MLm3MUMiqMPmhZ3tTSXPqfyQ3vDl6R5hZdZ/kYojK4ofXtdfSv1tFq8XzWx3heNQ==",+ "cpu": [+ "ppc64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-riscv64": {+ "version": "0.28.2",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.28.2.tgz",+ "integrity": "sha512-GeXCej4IQtU1B+QlDV8W/RRvbzI3O/Stss+/bCXv4lZls5WGRtu2a+3JkA3i4qIUlMXpcHebWpF8AkJhATowuA==",+ "cpu": [+ "riscv64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-s390x": {+ "version": "0.28.2",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.28.2.tgz",+ "integrity": "sha512-3H1weTYZPxt/WOhByszQZybS9w5lKzUn1FDMsgEChbHWQwHYQQRfBxgCcZvPhjHfKyJjIievvMmEUawJrdY9Dg==",+ "cpu": [+ "s390x"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-x64": {+ "version": "0.28.2",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.28.2.tgz",+ "integrity": "sha512-4xTZr1FUmSoQW4XIWmit3tzQrUTZM+N3P0XV8xROKYF50XfI7xeO90+1bZvNwxIufQ9hDQVRJH5YhgPVF8A/HQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/netbsd-arm64": {+ "version": "0.28.2",+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.28.2.tgz",+ "integrity": "sha512-sSATRjPeDBg3pdgHoQfoYBob11Kk1FGa9lui5RIHZCoCkJa9QKlvl3/vKz2usCmYYjs7ymJR/2Nnsqe+Hjt5nw==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "netbsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/netbsd-x64": {+ "version": "0.28.2",+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.28.2.tgz",+ "integrity": "sha512-lqnzCV+mM0gIADaKihiCg6ifgfU2L3h5E33rNQBN1Y4MaVGnzryzmvvf7UHxprpQdE8hpqLolJ9Rl+SkIRDpyw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "netbsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/openbsd-arm64": {+ "version": "0.28.2",+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.28.2.tgz",+ "integrity": "sha512-AL2qJILH7lNjrDmCQDvdxMfAUIv8KMNZOvrwAQ8i8//ntL9FflhOyMJ8OZSMBb8/AWXe3/5v5S20y3zCoZWKoQ==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "openbsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/openbsd-x64": {+ "version": "0.28.2",+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.28.2.tgz",+ "integrity": "sha512-QtiuPytchRyC4rwUKhexJdQKvDuZ6hWloi3igqPQNUJCS1/v9EiO3UTOXR6A3FoMo4fnAKbWJdqaIwhOzh8qEw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "openbsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/openharmony-arm64": {+ "version": "0.28.2",+ "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.28.2.tgz",+ "integrity": "sha512-WkhYDmpTjLvGlScA1rwjRUmhl4k8oXR3cIbtqWmELgU/dFeHHlEllxDvdWcNJV9rbzCexB5vz8gtNewWLgCT7Q==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "openharmony"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/sunos-x64": {+ "version": "0.28.2",+ "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.28.2.tgz",+ "integrity": "sha512-GPMSkTOtMnv2U2F8gxe4Io6qmVs+YKyp832Etqqxr0hFngmXQ3rzwytelm3GIn7T4VviRUlf3sOgBOiTdvaf7g==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "sunos"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/win32-arm64": {+ "version": "0.28.2",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.28.2.tgz",+ "integrity": "sha512-PIhhEkE9uPBleRBrQEJpUn7MBnibZzbGzYWPmY3x+YoVg/95zbjB4CxPPOQ8l5tYYM4mMaCthF8/1DIfBQQyWQ==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/win32-ia32": {+ "version": "0.28.2",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.28.2.tgz",+ "integrity": "sha512-YmJbfTlvU7Sdn9BB+4PRES4oB6pxgS37MAONj+hBr/cpXS1aBPKXxNnDbu+QCWPj0o9dgyxeq79g6c5P8KeuYA==",+ "cpu": [+ "ia32"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/win32-x64": {+ "version": "0.28.2",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.28.2.tgz",+ "integrity": "sha512-5ebpxr3nWMzrL/rnUI755Jkuee0bHL/Gq0WTF9lvcpv73wAp5eu8MfBUgWK9bhWvZjj7yX8etf/8tI8Ney695g==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@jridgewell/gen-mapping": {+ "version": "0.3.13",+ "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz",+ "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@jridgewell/sourcemap-codec": "^1.5.0",+ "@jridgewell/trace-mapping": "^0.3.24"+ }+ },+ "node_modules/@jridgewell/remapping": {+ "version": "2.3.5",+ "resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz",+ "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@jridgewell/gen-mapping": "^0.3.5",+ "@jridgewell/trace-mapping": "^0.3.24"+ }+ },+ "node_modules/@jridgewell/resolve-uri": {+ "version": "3.1.2",+ "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz",+ "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.0.0"+ }+ },+ "node_modules/@jridgewell/sourcemap-codec": {+ "version": "1.5.5",+ "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz",+ "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@jridgewell/trace-mapping": {+ "version": "0.3.31",+ "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz",+ "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@jridgewell/resolve-uri": "^3.1.0",+ "@jridgewell/sourcemap-codec": "^1.4.14"+ }+ },+ "node_modules/@minimax-music-ui/server": {+ "resolved": "server",+ "link": true+ },+ "node_modules/@minimax-music-ui/web": {+ "resolved": "web",+ "link": true+ },+ "node_modules/@noble/hashes": {+ "version": "1.8.0",+ "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.8.0.tgz",+ "integrity": "sha512-jCs9ldd7NwzpgXDIf6P3+NrHh9/sD6CQdxHyjQI+h/6rDNo88ypBxxz45UDuZHz9r3tNz7N/VInSVoVdtXEI4A==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": "^14.21.3 || >=16"+ },+ "funding": {+ "url": "https://paulmillr.com/funding/"+ }+ },+ "node_modules/@oxc-project/types": {+ "version": "0.144.0",+ "resolved": "https://registry.npmjs.org/@oxc-project/types/-/types-0.144.0.tgz",+ "integrity": "sha512-nuhZIOLuI6TFQ32I/WnUx+SCPY7SdSKwgnFHydAuoS1+Z4BRcaP+RRJmGzl9lw+0OFF7UmaESf7KQRXaNLHypg==",+ "dev": true,+ "license": "MIT",+ "funding": {+ "url": "https://github.com/sponsors/Boshen"+ }+ },+ "node_modules/@paralleldrive/cuid2": {+ "version": "2.3.1",+ "resolved": "https://registry.npmjs.org/@paralleldrive/cuid2/-/cuid2-2.3.1.tgz",+ "integrity": "sha512-XO7cAxhnTZl0Yggq6jOgjiOHhbgcO4NqFqwSmQpjK3b6TEE6Uj/jfSk6wzYyemh3+I0sHirKSetjQwn5cZktFw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@noble/hashes": "^1.1.5"+ }+ },+ "node_modules/@rolldown/binding-android-arm64": {+ "version": "1.2.4",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm64/-/binding-android-arm64-1.2.4.tgz",+ "integrity": "sha512-jHC2cnyKz5xU2fhECtFl8OZ83cYNt13GZQD+0uMJ/X3o+ijmd56okHhTUwxVSHPx1IRVIJEZ1/1pPzeLCU6XKA==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }+ },+ "node_modules/@rolldown/binding-darwin-arm64": {+ "version": "1.2.4",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-arm64/-/binding-darwin-arm64-1.2.4.tgz",+ "integrity": "sha512-Dc5mPD8F5F/FS8i01syd7FTF6yB2fVthH/TRkjwJkzUK6EpoxHtqvZQP5Zwq80/5z19TWYHIg1KOHboCgVx/aQ==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }+ },+ "node_modules/@rolldown/binding-darwin-x64": {+ "version": "1.2.4",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-x64/-/binding-darwin-x64-1.2.4.tgz",+ "integrity": "sha512-fpDm4oBo6SqLvWUYCmFhdde3U9KH2fRNNMeAnAPAIwxRL345xutL0EtEUcuoxsoazdJGv/MuDBQHlCDrtbvqOg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }+ },+ "node_modules/@rolldown/binding-freebsd-x64": {+ "version": "1.2.4",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-freebsd-x64/-/binding-freebsd-x64-1.2.4.tgz",+ "integrity": "sha512-rSJoreDE/HoIzoaib6MTp5jQtCTdMHKIvItAKT/ImS6Y6Ww76oUaeMyp4Vc/fAgd/ehji068IxetHXAnqUwN9A==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ],+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }+ },+ "node_modules/@rolldown/binding-linux-arm-gnueabihf": {+ "version": "1.2.4",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-1.2.4.tgz",+ "integrity": "sha512-/jm8OGHgn7oGaJu3i/qZI9spUGcJ+y/lk43ttQ/iO1tOd9NissG6o97bighBCiL+BKRngmcDuR6ikfwYdJmVuQ==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }+ },+ "node_modules/@rolldown/binding-linux-arm64-gnu": {+ "version": "1.2.4",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.2.4.tgz",+ "integrity": "sha512-tIP06BeD9EqvECBrPZ+sqdPlYrT+aYaAiu1wYziVx5elRK/ftm33JxVDy2bXGbr6J0CrtirCkR87/X5a2euEng==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "libc": [+ "glibc"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }+ },+ "node_modules/@rolldown/binding-linux-arm64-musl": {+ "version": "1.2.4",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.2.4.tgz",+ "integrity": "sha512-Ql1Q0EQqVThvn9VAVlwNzsUvbSFtCMGjLpRRi4pk5i7NZZ4n5ISiLMjHYtus4VQ2PvkSw24zyaCVsiS+sXPj1w==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "libc": [+ "musl"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }+ },+ "node_modules/@rolldown/binding-linux-ppc64-gnu": {+ "version": "1.2.4",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-1.2.4.tgz",+ "integrity": "sha512-GjbjXD4XXfN19D0LZNbmiCBUoDiRACsYHr0yaIbbn8aFsXjHZifcYqu/W5Er5X2X990WjHXFrxarn5chzItorQ==",+ "cpu": [+ "ppc64"+ ],+ "dev": true,+ "libc": [+ "glibc"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }+ },+ "node_modules/@rolldown/binding-linux-s390x-gnu": {+ "version": "1.2.4",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-1.2.4.tgz",+ "integrity": "sha512-p5WR0NOwaRmJ/B1b6IjEFLLivwEsf3PrdBIhRbhTCQisbo2SvHHpG4ELB/+FgQNnB88LTOF86upmJmbvZdQ2lw==",+ "cpu": [+ "s390x"+ ],+ "dev": true,+ "libc": [+ "glibc"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }+ },+ "node_modules/@rolldown/binding-linux-x64-gnu": {+ "version": "1.2.4",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.2.4.tgz",+ "integrity": "sha512-4/GyVjmhR+Tc6HLJvwc1sOhPqAZtySiSMesOZyX6JQ5XBxoTDEMKQzvo07NIK6nTon/SivlZqvhzvuVBNQhObQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "libc": [+ "glibc"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }+ },+ "node_modules/@rolldown/binding-linux-x64-musl": {+ "version": "1.2.4",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-musl/-/binding-linux-x64-musl-1.2.4.tgz",+ "integrity": "sha512-l9eeLsCNvPpmSXUej0etw/J1eqV0Jj1D5G/xG6YTijmE6dkv6E2QezgWbTfQk63v952DPqrjOCoiqxq7Bw0YUQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "libc": [+ "musl"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }+ },+ "node_modules/@rolldown/binding-openharmony-arm64": {+ "version": "1.2.4",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-openharmony-arm64/-/binding-openharmony-arm64-1.2.4.tgz",+ "integrity": "sha512-e0F355MSTMm3+UOqtV3L24gFUp2N5m1f8L/7d56deik6va+AXdrt9F8LbzGpeWGWRbZEDq4m8NVnJDeBtf9DZg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "openharmony"+ ],+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }+ },+ "node_modules/@rolldown/binding-win32-arm64-msvc": {+ "version": "1.2.4",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.2.4.tgz",+ "integrity": "sha512-AWLi0uBRYh6QlE7OKhiz+phZC0qwtij2QZmhmOdsLdFn64m7oMpooE9ICE3lhm9xMb4SpDo2WbHcxX1iFLFtqw==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }+ },+ "node_modules/@rolldown/binding-win32-x64-msvc": {+ "version": "1.2.4",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.2.4.tgz",+ "integrity": "sha512-UwSDJOg3dqCAejWdxclJjCsh3Qq4vLYMDxmyHqo1btz3stK2VqgwNd3mm5tuIwzSlGIQ/1H9Hr+Zn09mrezNqQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }+ },+ "node_modules/@rolldown/pluginutils": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.1.tgz",+ "integrity": "sha512-2j9bGt5Jh8hj+vPtgzPtl72j0yRxHAyumoo6TNfAjsLB04UtpSvPbPcDcBMxz7n+9CYB0c1GxQFxYRg2jimqGw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@standard-schema/spec": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/@standard-schema/spec/-/spec-1.1.0.tgz",+ "integrity": "sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@tailwindcss/node": {+ "version": "4.3.3",+ "resolved": "https://registry.npmjs.org/@tailwindcss/node/-/node-4.3.3.tgz",+ "integrity": "sha512-/T8IKEsf9VTU6tLjgC7+sv2mOPtQxzE2jMw7u4Tt40Tx+QSZxpzh95/H6cMKoja9XuW7iMdLJYBB0o9G1CaAgg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@jridgewell/remapping": "^2.3.5",+ "enhanced-resolve": "^5.24.1",+ "jiti": "^2.7.0",+ "lightningcss": "1.32.0",+ "magic-string": "^0.30.21",+ "source-map-js": "^1.2.1",+ "tailwindcss": "4.3.3"+ }+ },+ "node_modules/@tailwindcss/oxide": {+ "version": "4.3.3",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide/-/oxide-4.3.3.tgz",+ "integrity": "sha512-krXjAikiaFSPaK/FkAQT5UTx3VormQaiZ5hBFlJZ9UFQGB/rwg1MZIhHAG9smMQRTdyJxP6Qt5MwMtdyU5FWrA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 20"+ },+ "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"+ }+ },+ "node_modules/@tailwindcss/oxide-android-arm64": {+ "version": "4.3.3",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-android-arm64/-/oxide-android-arm64-4.3.3.tgz",+ "integrity": "sha512-Y85A2gmPSkl5Ve5qR86GL4HT509cFqQh1aes9p3sSkyTPwt0Pppf3GkwGe4JPACcRYjgJIEhQgM6dBClnr0NYw==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">= 20"+ }+ },+ "node_modules/@tailwindcss/oxide-darwin-arm64": {+ "version": "4.3.3",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-arm64/-/oxide-darwin-arm64-4.3.3.tgz",+ "integrity": "sha512-BiaWatpBcERQFDlOjRDpIVXuFK5PJez5SA4JMg6VYZdBYU+qKfV/vqjcIs+IYmtitf1xYQZTwXvU/8y4lfZUGw==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">= 20"+ }+ },+ "node_modules/@tailwindcss/oxide-darwin-x64": {+ "version": "4.3.3",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-x64/-/oxide-darwin-x64-4.3.3.tgz",+ "integrity": "sha512-fAeUqfV5ndhxRwai8cXGzdLvul9utWOmeTkv69unv4ZXixjn61Z+p9lCWdwOwA3TYboG3BwdVuN/RDjhBRl0mw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">= 20"+ }+ },+ "node_modules/@tailwindcss/oxide-freebsd-x64": {+ "version": "4.3.3",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-freebsd-x64/-/oxide-freebsd-x64-4.3.3.tgz",+ "integrity": "sha512-iyf5bV6+wnAlflVeEy7R25dupxTNECZN5QMI0qNT6eT+EgaGdZcKhGkr5SdoaWiLJ3spLqIY9VCeSGrwmtg4kw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ],+ "engines": {+ "node": ">= 20"+ }+ },+ "node_modules/@tailwindcss/oxide-linux-arm-gnueabihf": {+ "version": "4.3.3",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm-gnueabihf/-/oxide-linux-arm-gnueabihf-4.3.3.tgz",+ "integrity": "sha512-aAYUprJAJQWWbRrPvtjdroZ56Md+JM8pMiopS6xGEwDfLhqj+2ver2p4nU4Mb3CRqcMmNBjo8KkUgcxhkzVQGQ==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 20"+ }+ },+ "node_modules/@tailwindcss/oxide-linux-arm64-gnu": {+ "version": "4.3.3",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-gnu/-/oxide-linux-arm64-gnu-4.3.3.tgz",+ "integrity": "sha512-nDxldcEENOxZRzC2uu9jrutZdAAQtb+8WWDCSnWL1zvBk1+FN+x6MtDViPB5AJMfttVCUhehGWus3XBPgatM/w==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "libc": [+ "glibc"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 20"+ }+ },+ "node_modules/@tailwindcss/oxide-linux-arm64-musl": {+ "version": "4.3.3",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-musl/-/oxide-linux-arm64-musl-4.3.3.tgz",+ "integrity": "sha512-Md44bD6veX/PC5iyF8cDVnw4HBIANZepRZZ7a8DQOvkfo5WUBwcp6iAuCUz23u+4SUkhJlD3eL7hNdW8ezd/kA==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "libc": [+ "musl"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 20"+ }+ },+ "node_modules/@tailwindcss/oxide-linux-x64-gnu": {+ "version": "4.3.3",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-gnu/-/oxide-linux-x64-gnu-4.3.3.tgz",+ "integrity": "sha512-tx7us1muwOKAKWao2v/GaafFeQboE6aj88vC6ziN2NCGcRm8gWUhwjzg+YdVB1e4boAtdtma4L43onunI6NS4w==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "libc": [+ "glibc"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 20"+ }+ },+ "node_modules/@tailwindcss/oxide-linux-x64-musl": {+ "version": "4.3.3",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-musl/-/oxide-linux-x64-musl-4.3.3.tgz",+ "integrity": "sha512-SJxX60smvHgasZoBy11dX6YRjXJFovwWBoedhbQPOBzgFWBHGB+TVPWB9BxzR7TTxU8FQZAI2AyiNCMzFm8Img==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "libc": [+ "musl"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 20"+ }+ },+ "node_modules/@tailwindcss/oxide-wasm32-wasi": {+ "version": "4.3.3",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-wasm32-wasi/-/oxide-wasm32-wasi-4.3.3.tgz",+ "integrity": "sha512-jx1+rPhY/5Ympkktd656HBWEBLxP7dH06losBLjjf5vgCODXvi9KhtftWcMIwTFIDqBr7cRnQkdLnAG+IOlGvQ==",+ "bundleDependencies": [+ "@napi-rs/wasm-runtime",+ "@emnapi/core",+ "@emnapi/runtime",+ "@tybys/wasm-util",+ "@emnapi/wasi-threads",+ "tslib"+ ],+ "cpu": [+ "wasm32"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "dependencies": {+ "@emnapi/core": "^1.11.1",+ "@emnapi/runtime": "^1.11.1",+ "@emnapi/wasi-threads": "^1.2.2",+ "@napi-rs/wasm-runtime": "^1.1.4",+ "@tybys/wasm-util": "^0.10.2",+ "tslib": "^2.8.1"+ },+ "engines": {+ "node": ">=14.0.0"+ }+ },+ "node_modules/@tailwindcss/oxide-win32-arm64-msvc": {+ "version": "4.3.3",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-arm64-msvc/-/oxide-win32-arm64-msvc-4.3.3.tgz",+ "integrity": "sha512-3rc292Ca2ceK6Ulcc/bAVnTs/3nDtoPhyEKlgPv+yQJQi/JS/AMJlqzxvlDacL1nekbrcf6bTqp/jV4qgnPxNQ==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">= 20"+ }+ },+ "node_modules/@tailwindcss/oxide-win32-x64-msvc": {+ "version": "4.3.3",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-x64-msvc/-/oxide-win32-x64-msvc-4.3.3.tgz",+ "integrity": "sha512-yJ0pwIVc/nYeGoV02WtsN8KYyLQv7kyI2wDnkezyJlGGjkd4QLwDGAwl47YpPJeuI0M0ObaXGSPjvWDPeTPggw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">= 20"+ }+ },+ "node_modules/@tailwindcss/vite": {+ "version": "4.3.3",+ "resolved": "https://registry.npmjs.org/@tailwindcss/vite/-/vite-4.3.3.tgz",+ "integrity": "sha512-yYU8cogLeSh/ms2jh8Fj7jaba/EWa7Ja6GoUqYZaraEuCI5YS6ms6ObZgjjedm+jm6XZjdNRWBpPP6Z86oOxcw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@tailwindcss/node": "4.3.3",+ "@tailwindcss/oxide": "4.3.3",+ "tailwindcss": "4.3.3"+ },+ "peerDependencies": {+ "vite": "^5.2.0 || ^6 || ^7 || ^8"+ }+ },+ "node_modules/@types/body-parser": {+ "version": "1.19.6",+ "resolved": "https://registry.npmjs.org/@types/body-parser/-/body-parser-1.19.6.tgz",+ "integrity": "sha512-HLFeCYgz89uk22N5Qg3dvGvsv46B8GLvKKo1zKG4NybA8U2DiEO3w9lqGg29t/tfLRJpJ6iQxnVw4OnB7MoM9g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/connect": "*",+ "@types/node": "*"+ }+ },+ "node_modules/@types/chai": {+ "version": "5.2.3",+ "resolved": "https://registry.npmjs.org/@types/chai/-/chai-5.2.3.tgz",+ "integrity": "sha512-Mw558oeA9fFbv65/y4mHtXDs9bPnFMZAL/jxdPFUpOHHIXX91mcgEHbS5Lahr+pwZFR8A7GQleRWeI6cGFC2UA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/deep-eql": "*",+ "assertion-error": "^2.0.1"+ }+ },+ "node_modules/@types/connect": {+ "version": "3.4.38",+ "resolved": "https://registry.npmjs.org/@types/connect/-/connect-3.4.38.tgz",+ "integrity": "sha512-K6uROf1LD88uDQqJCktA4yzL1YYAK6NgfsI0v/mTgyPKWsX1CnJ0XPSDhViejru1GcRkLWb8RlzFYJRqGUbaug==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/node": "*"+ }+ },+ "node_modules/@types/cookiejar": {+ "version": "2.1.5",+ "resolved": "https://registry.npmjs.org/@types/cookiejar/-/cookiejar-2.1.5.tgz",+ "integrity": "sha512-he+DHOWReW0nghN24E1WUqM0efK4kI9oTqDm6XmK8ZPe2djZ90BSNdGnIyCLzCPw7/pogPlGbzI2wHGGmi4O/Q==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@types/deep-eql": {+ "version": "4.0.2",+ "resolved": "https://registry.npmjs.org/@types/deep-eql/-/deep-eql-4.0.2.tgz",+ "integrity": "sha512-c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@types/estree": {+ "version": "1.0.9",+ "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.9.tgz",+ "integrity": "sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@types/express": {+ "version": "5.0.6",+ "resolved": "https://registry.npmjs.org/@types/express/-/express-5.0.6.tgz",+ "integrity": "sha512-sKYVuV7Sv9fbPIt/442koC7+IIwK5olP1KWeD88e/idgoJqDm3JV/YUiPwkoKK92ylff2MGxSz1CSjsXelx0YA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/body-parser": "*",+ "@types/express-serve-static-core": "^5.0.0",+ "@types/serve-static": "^2"+ }+ },+ "node_modules/@types/express-serve-static-core": {+ "version": "5.1.3",+ "resolved": "https://registry.npmjs.org/@types/express-serve-static-core/-/express-serve-static-core-5.1.3.tgz",+ "integrity": "sha512-dPfW8NFiOF4wOHc7+N/QSxlY9cfSsenewGbAz8C8U/MULPd/YZ27LvJUIlzaXie7e6Ove9YunJGgC9tbHD2cKw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/node": "*",+ "@types/qs": "*",+ "@types/range-parser": "*",+ "@types/send": "*"+ }+ },+ "node_modules/@types/http-errors": {+ "version": "2.0.5",+ "resolved": "https://registry.npmjs.org/@types/http-errors/-/http-errors-2.0.5.tgz",+ "integrity": "sha512-r8Tayk8HJnX0FztbZN7oVqGccWgw98T/0neJphO91KkmOzug1KkofZURD4UaD5uH8AqcFLfdPErnBod0u71/qg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@types/methods": {+ "version": "1.1.4",+ "resolved": "https://registry.npmjs.org/@types/methods/-/methods-1.1.4.tgz",+ "integrity": "sha512-ymXWVrDiCxTBE3+RIrrP533E70eA+9qu7zdWoHuOmGujkYtzf4HQF96b8nwHLqhuf4ykX61IGRIB38CC6/sImQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@types/node": {+ "version": "26.2.0",+ "resolved": "https://registry.npmjs.org/@types/node/-/node-26.2.0.tgz",+ "integrity": "sha512-5IviulTZeRNp2vAJ514cc/HUlY5nZ9fCbq9DMyC52BrhFZACo3nI0R7qBxhQmo/d27NFe96ur/b7Wwxklda+kg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "undici-types": "~8.3.0"+ }+ },+ "node_modules/@types/qs": {+ "version": "6.15.1",+ "resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.15.1.tgz",+ "integrity": "sha512-GZHUBZR9hckSUhrxmp1nG6NwdpM9fCunJwyThLW1X3AyHgd9IlHb6VANpQQqDr2o/qQp6McZ3y/IA2rVzKzSbw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@types/range-parser": {+ "version": "1.2.7",+ "resolved": "https://registry.npmjs.org/@types/range-parser/-/range-parser-1.2.7.tgz",+ "integrity": "sha512-hKormJbkJqzQGhziax5PItDUTMAM9uE2XXQmM37dyd4hVM+5aVl7oVxMVUiVQn2oCQFN/LKCZdvSM0pFRqbSmQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@types/react": {+ "version": "19.2.18",+ "resolved": "https://registry.npmjs.org/@types/react/-/react-19.2.18.tgz",+ "integrity": "sha512-AnzbBERsrLKtk2XSfTbYRLjQPdy116Sty4q+T+Bp3IC4l6jNBvreVPAHmpq9qhXQM7CXZPjLVmGMw9sy+hxQ3w==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "csstype": "^3.2.2"+ }+ },+ "node_modules/@types/react-dom": {+ "version": "19.2.4",+ "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-19.2.4.tgz",+ "integrity": "sha512-Bsc+QHgp+P/F02XDzNCY9jnZNCUuLki36KT7VKrTXXLdHf+vHMNZnW1rVu5DNW/rCK+fya3DATySbLM4yhtKUw==",+ "dev": true,+ "license": "MIT",+ "peerDependencies": {+ "@types/react": "^19.2.0"+ }+ },+ "node_modules/@types/send": {+ "version": "1.2.1",+ "resolved": "https://registry.npmjs.org/@types/send/-/send-1.2.1.tgz",+ "integrity": "sha512-arsCikDvlU99zl1g69TcAB3mzZPpxgw0UQnaHeC1Nwb015xp8bknZv5rIfri9xTOcMuaVgvabfIRA7PSZVuZIQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/node": "*"+ }+ },+ "node_modules/@types/serve-static": {+ "version": "2.2.0",+ "resolved": "https://registry.npmjs.org/@types/serve-static/-/serve-static-2.2.0.tgz",+ "integrity": "sha512-8mam4H1NHLtu7nmtalF7eyBH14QyOASmcxHhSfEoRyr0nP/YdoesEtU+uSRvMe96TW/HPTtkoKqQLl53N7UXMQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/http-errors": "*",+ "@types/node": "*"+ }+ },+ "node_modules/@types/superagent": {+ "version": "8.1.11",+ "resolved": "https://registry.npmjs.org/@types/superagent/-/superagent-8.1.11.tgz",+ "integrity": "sha512-KA7srSW/HENDtOw9DOqaFLgWuMqN9WgjEw62lh9dpvRaZDkhdOkazASd7X7i2eMUYLHa1U37ZttnePsH5zTDHw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/cookiejar": "^2.1.5",+ "@types/methods": "^1.1.4",+ "@types/node": "*",+ "form-data": "^4.0.0"+ }+ },+ "node_modules/@types/supertest": {+ "version": "7.2.1",+ "resolved": "https://registry.npmjs.org/@types/supertest/-/supertest-7.2.1.tgz",+ "integrity": "sha512-4CbBvoYVLHL7+yhbYrZET0vsvuyXTC05aRe7dNQkwMzm56auceoy6Yu3K50uZmwfHna1os3CMSgM/3QVkUtPTw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/methods": "^1.1.4",+ "@types/superagent": "^8.1.0"+ }+ },+ "node_modules/@typescript/typescript-aix-ppc64": {+ "version": "7.0.2",+ "resolved": "https://registry.npmjs.org/@typescript/typescript-aix-ppc64/-/typescript-aix-ppc64-7.0.2.tgz",+ "integrity": "sha512-MTKKkWB7p/0E9xi1d1tHtZ5PiLkGEMIq88pK2CubZjOsLtYTLqhgIgi6zepFa+9GHZ6h05NMCkQxGKiPXMxXtQ==",+ "cpu": [+ "ppc64"+ ],+ "dev": true,+ "license": "Apache-2.0",+ "optional": true,+ "os": [+ "aix"+ ],+ "engines": {+ "node": ">=16.20.0"+ }+ },+ "node_modules/@typescript/typescript-darwin-arm64": {+ "version": "7.0.2",+ "resolved": "https://registry.npmjs.org/@typescript/typescript-darwin-arm64/-/typescript-darwin-arm64-7.0.2.tgz",+ "integrity": "sha512-gowzar9MwS/aRWp6f3a4KUqzRjAZjOsmGNCM6LcTgXum+dBfgsBVMN+AgvOCCbguXyick6LJhpBszxMebJ8syA==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "Apache-2.0",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">=16.20.0"+ }+ },+ "node_modules/@typescript/typescript-darwin-x64": {+ "version": "7.0.2",+ "resolved": "https://registry.npmjs.org/@typescript/typescript-darwin-x64/-/typescript-darwin-x64-7.0.2.tgz",+ "integrity": "sha512-SZ9xZInqApNlNGc9s0W1VSsktYSOe9cFqNOIqmN1Gs8SmkjKZYFt017G4VwPxASInODuAdbTW7sXiFUf893RgA==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "Apache-2.0",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">=16.20.0"+ }+ },+ "node_modules/@typescript/typescript-freebsd-arm64": {+ "version": "7.0.2",+ "resolved": "https://registry.npmjs.org/@typescript/typescript-freebsd-arm64/-/typescript-freebsd-arm64-7.0.2.tgz",+ "integrity": "sha512-W5NH4y/J0plIIS5b2xvTEkU7JFxyqdMAOgf+Ilhl0vHQXKO5dZoxd+C/jEtq56c4F3wk71RB4BMRQ2XdI+bwYQ==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "Apache-2.0",+ "optional": true,+ "os": [+ "freebsd"+ ],+ "engines": {+ "node": ">=16.20.0"+ }+ },+ "node_modules/@typescript/typescript-freebsd-x64": {+ "version": "7.0.2",+ "resolved": "https://registry.npmjs.org/@typescript/typescript-freebsd-x64/-/typescript-freebsd-x64-7.0.2.tgz",+ "integrity": "sha512-UMGDx5sTpzNw3WiPebH7l90IWfJggEd+egHt/q6p7/Cm3zqoV7VxkGXt+3DxPIw8CcmvAB0j3sVVfbhX+M4Tpw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "Apache-2.0",+ "optional": true,+ "os": [+ "freebsd"+ ],+ "engines": {+ "node": ">=16.20.0"+ }+ },+ "node_modules/@typescript/typescript-linux-arm": {+ "version": "7.0.2",+ "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-arm/-/typescript-linux-arm-7.0.2.tgz",+ "integrity": "sha512-gffT3xPz9sR7j/YJExkyPntrI0P2EP9XbOyWzth2/Gs0RstK+90RBcO0ncXoXy/beYll1SXw846Nf2zdnEz0QQ==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "Apache-2.0",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=16.20.0"+ }+ },+ "node_modules/@typescript/typescript-linux-arm64": {+ "version": "7.0.2",+ "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-arm64/-/typescript-linux-arm64-7.0.2.tgz",+ "integrity": "sha512-Qh4eU4/y3yDjnfjjyPYihMj5/ODIlmt+Bzu17OI+fiSRDW57QmU5SiN63exPRNJPKUzcc1INa1NXdrJ+MqHjUQ==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "Apache-2.0",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=16.20.0"+ }+ },+ "node_modules/@typescript/typescript-linux-loong64": {+ "version": "7.0.2",+ "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-loong64/-/typescript-linux-loong64-7.0.2.tgz",+ "integrity": "sha512-uEHck9i8hoAzXPiYRib1O7miOnz23SxIeVl6F4LXox+qov1K35jHcEW6VHKvZI+pyvl7fZEP4MCU5LYvIq1GuQ==",+ "cpu": [+ "loong64"+ ],+ "dev": true,+ "license": "Apache-2.0",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=16.20.0"+ }+ },+ "node_modules/@typescript/typescript-linux-mips64el": {+ "version": "7.0.2",+ "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-mips64el/-/typescript-linux-mips64el-7.0.2.tgz",+ "integrity": "sha512-R4KvAMnE43W5Qeqb0Ly56O3mWMWIAgsMyz36DCaycd5nbg/9kzm0liw3JocfRqyJY0KPmzFjbswozXyW0DnIYA==",+ "cpu": [+ "mips64el"+ ],+ "dev": true,+ "license": "Apache-2.0",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=16.20.0"+ }+ },+ "node_modules/@typescript/typescript-linux-ppc64": {+ "version": "7.0.2",+ "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-ppc64/-/typescript-linux-ppc64-7.0.2.tgz",+ "integrity": "sha512-DORx5b3sd/4S7eayxm4FQv+A7CrkUIGRaHiwI8oiHTAI1fAPWhF4J0vAlkC8biAlHSVVwxMQ3tjZ2/DVbnQiiA==",+ "cpu": [+ "ppc64"+ ],+ "dev": true,+ "license": "Apache-2.0",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=16.20.0"+ }+ },+ "node_modules/@typescript/typescript-linux-riscv64": {+ "version": "7.0.2",+ "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-riscv64/-/typescript-linux-riscv64-7.0.2.tgz",+ "integrity": "sha512-wf0jqEDOjrPRnKwYRyyJDRo11KMbvMFrU+q4zqKyChODBzvlkbhNQfKvLxQCcwTpdDaXSHZTVuh0JoCrKCUMHQ==",+ "cpu": [+ "riscv64"+ ],+ "dev": true,+ "license": "Apache-2.0",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=16.20.0"+ }+ },+ "node_modules/@typescript/typescript-linux-s390x": {+ "version": "7.0.2",+ "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-s390x/-/typescript-linux-s390x-7.0.2.tgz",+ "integrity": "sha512-IkwJc3L7yhytWd/ewjyxNDfOmswCm9GWMJT/ue/dU4aZNbwZeYAetq42VyLmsmSjvoX7z74X6ZaYCtzAr0EuGw==",+ "cpu": [+ "s390x"+ ],+ "dev": true,+ "license": "Apache-2.0",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=16.20.0"+ }+ },+ "node_modules/@typescript/typescript-linux-x64": {+ "version": "7.0.2",+ "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-x64/-/typescript-linux-x64-7.0.2.tgz",+ "integrity": "sha512-EYdf2cNg7rgCWJnxCdJ+F3V39O8ihb37eHAu1LK8oAFizgTQbPOK7zHHXbPt8rX24COqODXeI3sIf0fCXG7H/A==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "Apache-2.0",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=16.20.0"+ }+ },+ "node_modules/@typescript/typescript-netbsd-arm64": {+ "version": "7.0.2",+ "resolved": "https://registry.npmjs.org/@typescript/typescript-netbsd-arm64/-/typescript-netbsd-arm64-7.0.2.tgz",+ "integrity": "sha512-+polYF4MF04aPpO5FTkHran9yUQDSXqy5GiSDKpsll5jy3l3+g9QLhpf39T+ePtefhXLOGrLl0QIjkQP6VnelA==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "Apache-2.0",+ "optional": true,+ "os": [+ "netbsd"+ ],+ "engines": {+ "node": ">=16.20.0"+ }+ },+ "node_modules/@typescript/typescript-netbsd-x64": {+ "version": "7.0.2",+ "resolved": "https://registry.npmjs.org/@typescript/typescript-netbsd-x64/-/typescript-netbsd-x64-7.0.2.tgz",+ "integrity": "sha512-8YIT0EHM/3dq10ZOVF/A7pc/YSMtbcecct4rWtexrnSCHOPcpC2KTLXfTCR6vDpnSiY12heNb1GiN/wu+T/FyA==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "Apache-2.0",+ "optional": true,+ "os": [+ "netbsd"+ ],+ "engines": {+ "node": ">=16.20.0"+ }+ },+ "node_modules/@typescript/typescript-openbsd-arm64": {+ "version": "7.0.2",+ "resolved": "https://registry.npmjs.org/@typescript/typescript-openbsd-arm64/-/typescript-openbsd-arm64-7.0.2.tgz",+ "integrity": "sha512-APT8+ClYnuYm1u9+kgGXoMj2VzWzcymwh2gNSQVySHfkRDGOTVkoWLjCmOQSaO+PoqQ57B0flRp9SA+7GnnkzQ==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "Apache-2.0",+ "optional": true,+ "os": [+ "openbsd"+ ],+ "engines": {+ "node": ">=16.20.0"+ }+ },+ "node_modules/@typescript/typescript-openbsd-x64": {+ "version": "7.0.2",+ "resolved": "https://registry.npmjs.org/@typescript/typescript-openbsd-x64/-/typescript-openbsd-x64-7.0.2.tgz",+ "integrity": "sha512-yX7s+Q0Dln0Dt9tEzZsAjXXR/+ytBM7AlglaqyeMPxQszJ1JhlJdZ6jLA+IzldHtflX81em7lDao1xXu+aRRkg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "Apache-2.0",+ "optional": true,+ "os": [+ "openbsd"+ ],+ "engines": {+ "node": ">=16.20.0"+ }+ },+ "node_modules/@typescript/typescript-sunos-x64": {+ "version": "7.0.2",+ "resolved": "https://registry.npmjs.org/@typescript/typescript-sunos-x64/-/typescript-sunos-x64-7.0.2.tgz",+ "integrity": "sha512-dLJDGaLZ1D4HPQn62u1n8mBDkJREwMsAkCdkwd4Ieqw+x3TUyTsqY0YiBCtE6H6OzzgGk3iuZ3vFWRS+E8/d1g==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "Apache-2.0",+ "optional": true,+ "os": [+ "sunos"+ ],+ "engines": {+ "node": ">=16.20.0"+ }+ },+ "node_modules/@typescript/typescript-win32-arm64": {+ "version": "7.0.2",+ "resolved": "https://registry.npmjs.org/@typescript/typescript-win32-arm64/-/typescript-win32-arm64-7.0.2.tgz",+ "integrity": "sha512-Gyl1Vy6OsWesLzmq+EP0Fb7b4Nid5232AvcA2SFcdYreldpNtYFFofPjnt62y9hQy7VTaZp65ICJjuAQRaVcIQ==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "Apache-2.0",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=16.20.0"+ }+ },+ "node_modules/@typescript/typescript-win32-x64": {+ "version": "7.0.2",+ "resolved": "https://registry.npmjs.org/@typescript/typescript-win32-x64/-/typescript-win32-x64-7.0.2.tgz",+ "integrity": "sha512-0BQ3HkAHHlKLSp1qRvf3SUhGpGsDuhB/jgFw75guyqbxJqEaS0Cw/VFO8i2nHglJUzQCRtMMR/IBAKE3ETMC4g==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "Apache-2.0",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=16.20.0"+ }+ },+ "node_modules/@vitejs/plugin-react": {+ "version": "6.0.5",+ "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-6.0.5.tgz",+ "integrity": "sha512-BOVzne/NL162sMdResB25mUv+vWMF5NoAjNf09TeGlE7ZpszZWSD3winycicLJw72yeVsoCn/2kOhEuCvEShMA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@rolldown/pluginutils": "^1.0.1"+ },+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ },+ "peerDependencies": {+ "@rolldown/plugin-babel": "^0.1.7 || ^0.2.0",+ "babel-plugin-react-compiler": "^1.0.0",+ "vite": "^8.0.0"+ },+ "peerDependenciesMeta": {+ "@rolldown/plugin-babel": {+ "optional": true+ },+ "babel-plugin-react-compiler": {+ "optional": true+ }+ }+ },+ "node_modules/@vitest/expect": {+ "version": "4.1.11",+ "resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-4.1.11.tgz",+ "integrity": "sha512-VX2x5vNJXET47KAFzwERI+KRMtTTCSWTfSMKsW7JsUsXV4psq++e3DvZpuTDOpHcxytiDs6p2nhVb2tVDiiUYw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@standard-schema/spec": "^1.1.0",+ "@types/chai": "^5.2.2",+ "@vitest/spy": "4.1.11",+ "@vitest/utils": "4.1.11",+ "chai": "^6.2.2",+ "tinyrainbow": "^3.1.0"+ },+ "funding": {+ "url": "https://opencollective.com/vitest"+ }+ },+ "node_modules/@vitest/mocker": {+ "version": "4.1.11",+ "resolved": "https://registry.npmjs.org/@vitest/mocker/-/mocker-4.1.11.tgz",+ "integrity": "sha512-2XJVD55d1o5AZous5CCGKS74g/riOj9odEt2bQpCVZeblHyHdnMeFl4jl0XjU21stf4mbjUkew2eXQZt65g5CQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@vitest/spy": "4.1.11",+ "estree-walker": "^3.0.3",+ "magic-string": "^0.30.21"+ },+ "funding": {+ "url": "https://opencollective.com/vitest"+ },+ "peerDependencies": {+ "msw": "^2.4.9",+ "vite": "^6.0.0 || ^7.0.0 || ^8.0.0"+ },+ "peerDependenciesMeta": {+ "msw": {+ "optional": true+ },+ "vite": {+ "optional": true+ }+ }+ },+ "node_modules/@vitest/pretty-format": {+ "version": "4.1.11",+ "resolved": "https://registry.npmjs.org/@vitest/pretty-format/-/pretty-format-4.1.11.tgz",+ "integrity": "sha512-yiZzPbGTS9Sr/JpFl8zHrcIkAofNbFV6k21vIgQN/cY/oxZeXhJv5sc/MBJ5jFKWmWs+oJHw0UXLZjmf931+Vw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "tinyrainbow": "^3.1.0"+ },+ "funding": {+ "url": "https://opencollective.com/vitest"+ }+ },+ "node_modules/@vitest/runner": {+ "version": "4.1.11",+ "resolved": "https://registry.npmjs.org/@vitest/runner/-/runner-4.1.11.tgz",+ "integrity": "sha512-LztvUgdwMNJMIkj3hQnnxiC2Xy1zNxq928W/xhjCLaNCzqTZOudjwbQf6v9IntZGPw132i2Lq2rgTRZHD3JHNw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@vitest/utils": "4.1.11",+ "pathe": "^2.0.3"+ },+ "funding": {+ "url": "https://opencollective.com/vitest"+ }+ },+ "node_modules/@vitest/snapshot": {+ "version": "4.1.11",+ "resolved": "https://registry.npmjs.org/@vitest/snapshot/-/snapshot-4.1.11.tgz",+ "integrity": "sha512-pN7ikn1ON7h8ee4gIAp4AzyK+zBtJPzVbqOgu5LCEh4VaJVbPQcgYQYJIMGQPXVeJJq1fnfazis7a5pFNPahog==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@vitest/pretty-format": "4.1.11",+ "@vitest/utils": "4.1.11",+ "magic-string": "^0.30.21",+ "pathe": "^2.0.3"+ },+ "funding": {+ "url": "https://opencollective.com/vitest"+ }+ },+ "node_modules/@vitest/spy": {+ "version": "4.1.11",+ "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-4.1.11.tgz",+ "integrity": "sha512-apNa/prQy2qCeywhnixOHPRCgGNhvg7T4Dapfl1GahLp/R+uhBm5cPyFoNVyqsNd2h1nJxL6BqqdIjiABL60YA==",+ "dev": true,+ "license": "MIT",+ "funding": {+ "url": "https://opencollective.com/vitest"+ }+ },+ "node_modules/@vitest/utils": {+ "version": "4.1.11",+ "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-4.1.11.tgz",+ "integrity": "sha512-zTCVGpyFsGWBhllOyKlTw/vnr6D9qxsfSDyfbyZmTyjHw5N/VuvzHpHoQjm2ZJzn4RJgx5w4r7V0er69CmLgPQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@vitest/pretty-format": "4.1.11",+ "convert-source-map": "^2.0.0",+ "tinyrainbow": "^3.1.0"+ },+ "funding": {+ "url": "https://opencollective.com/vitest"+ }+ },+ "node_modules/accepts": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/accepts/-/accepts-2.0.0.tgz",+ "integrity": "sha512-5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng==",+ "license": "MIT",+ "dependencies": {+ "mime-types": "^3.0.0",+ "negotiator": "^1.0.0"+ },+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/ansi-regex": {+ "version": "6.3.0",+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.3.0.tgz",+ "integrity": "sha512-WpDfL7NO6j7tH88IDBNVdUJxDh9nmCteAVW9dsep846XdwF4naCBK+/tGLX3KJgcpgMRXCFlTM2hKGoK9FsdrQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/chalk/ansi-regex?sponsor=1"+ }+ },+ "node_modules/ansi-styles": {+ "version": "6.2.3",+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.3.tgz",+ "integrity": "sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/chalk/ansi-styles?sponsor=1"+ }+ },+ "node_modules/asap": {+ "version": "2.0.6",+ "resolved": "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz",+ "integrity": "sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/assertion-error": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-2.0.1.tgz",+ "integrity": "sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/asynckit": {+ "version": "0.4.0",+ "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",+ "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/body-parser": {+ "version": "2.3.0",+ "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-2.3.0.tgz",+ "integrity": "sha512-2cGmJupaNgg+QUwVLAucDuWuoMZ6EX9iHDRswZ5lsNYEmwPaRknMPCLZz07yTzVq/83p4o/wzbDZbBrTvGGTIw==",+ "license": "MIT",+ "dependencies": {+ "bytes": "^3.1.2",+ "content-type": "^2.0.0",+ "debug": "^4.4.3",+ "http-errors": "^2.0.1",+ "iconv-lite": "^0.7.2",+ "on-finished": "^2.4.1",+ "qs": "^6.15.2",+ "raw-body": "^3.0.2",+ "type-is": "^2.1.0"+ },+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/express"+ }+ },+ "node_modules/body-parser/node_modules/content-type": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/content-type/-/content-type-2.1.0.tgz",+ "integrity": "sha512-mj7UPXE0jaqaOsukNZRUEfEi2AcL7C/vwmwcHV0O97eO1E1pxBZuyjlZrx5seTaNBg1U6+o35wpa35Qfcc+7ag==",+ "license": "MIT",+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/express"+ }+ },+ "node_modules/bytes": {+ "version": "3.1.2",+ "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz",+ "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.8"+ }+ },+ "node_modules/call-bind-apply-helpers": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz",+ "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==",+ "license": "MIT",+ "dependencies": {+ "es-errors": "^1.3.0",+ "function-bind": "^1.1.2"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/call-bound": {+ "version": "1.0.4",+ "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz",+ "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==",+ "license": "MIT",+ "dependencies": {+ "call-bind-apply-helpers": "^1.0.2",+ "get-intrinsic": "^1.3.0"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/chai": {+ "version": "6.2.2",+ "resolved": "https://registry.npmjs.org/chai/-/chai-6.2.2.tgz",+ "integrity": "sha512-NUPRluOfOiTKBKvWPtSD4PhFvWCqOi0BGStNWs57X9js7XGTprSmFoz5F0tWhR4WPjNeR9jXqdC7/UpSJTnlRg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/chalk": {+ "version": "5.6.2",+ "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.6.2.tgz",+ "integrity": "sha512-7NzBL0rN6fMUW+f7A6Io4h40qQlG+xGmtMxfbnH/K7TAtt8JQWVQK+6g0UXKMeVJoyV5EkkNsErQ8pVD3bLHbA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": "^12.17.0 || ^14.13 || >=16.0.0"+ },+ "funding": {+ "url": "https://github.com/chalk/chalk?sponsor=1"+ }+ },+ "node_modules/cliui": {+ "version": "9.0.1",+ "resolved": "https://registry.npmjs.org/cliui/-/cliui-9.0.1.tgz",+ "integrity": "sha512-k7ndgKhwoQveBL+/1tqGJYNz097I7WOvwbmmU2AR5+magtbjPWQTS1C5vzGkBC8Ym8UWRzfKUzUUqFLypY4Q+w==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "string-width": "^7.2.0",+ "strip-ansi": "^7.1.0",+ "wrap-ansi": "^9.0.0"+ },+ "engines": {+ "node": ">=20"+ }+ },+ "node_modules/combined-stream": {+ "version": "1.0.8",+ "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz",+ "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "delayed-stream": "~1.0.0"+ },+ "engines": {+ "node": ">= 0.8"+ }+ },+ "node_modules/component-emitter": {+ "version": "1.3.1",+ "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.3.1.tgz",+ "integrity": "sha512-T0+barUSQRTUQASh8bx02dl+DhF54GtIDY13Y3m9oWTklKbb3Wv974meRpeZ3lp1JpLVECWWNHC4vaG2XHXouQ==",+ "dev": true,+ "license": "MIT",+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/concurrently": {+ "version": "10.0.5",+ "resolved": "https://registry.npmjs.org/concurrently/-/concurrently-10.0.5.tgz",+ "integrity": "sha512-JaP/CoftUrCcAFW/g//RbgEGwlelnEae6cfBLgH6ZdO6s8jPkn6p9SB9u6pdVxYXoiSnFqseOlHfrEfF82TVOg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "chalk": "5.6.2",+ "rxjs": "7.8.2",+ "shell-quote": "1.9.0",+ "supports-color": "10.2.2",+ "tree-kill": "1.2.2",+ "yargs": "18.0.0"+ },+ "bin": {+ "conc": "dist/bin/index.js",+ "concurrently": "dist/bin/index.js"+ },+ "engines": {+ "node": ">=22"+ },+ "funding": {+ "url": "https://github.com/open-cli-tools/concurrently?sponsor=1"+ }+ },+ "node_modules/content-disposition": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-1.1.0.tgz",+ "integrity": "sha512-5jRCH9Z/+DRP7rkvY83B+yGIGX96OYdJmzngqnw2SBSxqCFPd0w2km3s5iawpGX8krnwSGmF0FW5Nhr0Hfai3g==",+ "license": "MIT",+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/express"+ }+ },+ "node_modules/content-type": {+ "version": "1.0.5",+ "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz",+ "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/convert-source-map": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz",+ "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/cookie": {+ "version": "0.7.2",+ "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.2.tgz",+ "integrity": "sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/cookie-signature": {+ "version": "1.2.2",+ "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.2.2.tgz",+ "integrity": "sha512-D76uU73ulSXrD1UXF4KE2TMxVVwhsnCgfAyTg9k8P6KGZjlXKrOLe4dJQKI3Bxi5wjesZoFXJWElNWBjPZMbhg==",+ "license": "MIT",+ "engines": {+ "node": ">=6.6.0"+ }+ },+ "node_modules/cookiejar": {+ "version": "2.1.4",+ "resolved": "https://registry.npmjs.org/cookiejar/-/cookiejar-2.1.4.tgz",+ "integrity": "sha512-LDx6oHrK+PhzLKJU9j5S7/Y3jM/mUHvD/DeI1WQmJn652iPC5Y4TBzC9l+5OMOXlyTTA+SmVUPm0HQUwpD5Jqw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/csstype": {+ "version": "3.2.3",+ "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz",+ "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/debug": {+ "version": "4.4.3",+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",+ "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",+ "license": "MIT",+ "dependencies": {+ "ms": "^2.1.3"+ },+ "engines": {+ "node": ">=6.0"+ },+ "peerDependenciesMeta": {+ "supports-color": {+ "optional": true+ }+ }+ },+ "node_modules/delayed-stream": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",+ "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=0.4.0"+ }+ },+ "node_modules/depd": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz",+ "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.8"+ }+ },+ "node_modules/detect-libc": {+ "version": "2.1.2",+ "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz",+ "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==",+ "dev": true,+ "license": "Apache-2.0",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/dezalgo": {+ "version": "1.0.4",+ "resolved": "https://registry.npmjs.org/dezalgo/-/dezalgo-1.0.4.tgz",+ "integrity": "sha512-rXSP0bf+5n0Qonsb+SVVfNfIsimO4HEtmnIpPHY8Q1UCzKlQrDMfdobr8nJOOsRgWCyMRqeSBQzmWUMq7zvVig==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "asap": "^2.0.0",+ "wrappy": "1"+ }+ },+ "node_modules/dunder-proto": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz",+ "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==",+ "license": "MIT",+ "dependencies": {+ "call-bind-apply-helpers": "^1.0.1",+ "es-errors": "^1.3.0",+ "gopd": "^1.2.0"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/ee-first": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz",+ "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==",+ "license": "MIT"+ },+ "node_modules/emoji-regex": {+ "version": "10.6.0",+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-10.6.0.tgz",+ "integrity": "sha512-toUI84YS5YmxW219erniWD0CIVOo46xGKColeNQRgOzDorgBi1v4D71/OFzgD9GO2UGKIv1C3Sp8DAn0+j5w7A==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/encodeurl": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz",+ "integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.8"+ }+ },+ "node_modules/enhanced-resolve": {+ "version": "5.24.5",+ "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.24.5.tgz",+ "integrity": "sha512-L1l8TNvomm6UVW5B253AGxQagSQr+vGwhMlrrfRS2qmhx46AMpMVJKQYLvWYbysTMY8VoicOvzHzoHMbyzB+4A==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "graceful-fs": "^4.2.4",+ "tapable": "^2.3.3"+ },+ "engines": {+ "node": ">=10.13.0"+ }+ },+ "node_modules/es-define-property": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz",+ "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/es-errors": {+ "version": "1.3.0",+ "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz",+ "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/es-module-lexer": {+ "version": "2.3.2",+ "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-2.3.2.tgz",+ "integrity": "sha512-poHGpORABojJJucnV9KbOavETW8lBVnphkW77ER5/BQ5Fz7oXSoCNek7IH3vR5nRjdsEz926ibFYX8KtLQmdyw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/es-object-atoms": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.2.tgz",+ "integrity": "sha512-HWcBoN6NileqtSydK2FqHbS/LoDd2pqrnQHLyJzBj4kOp/ky2MWMN694xOfkK8/SnUsW2DH7EfyVlydKCsm1Zw==",+ "license": "MIT",+ "dependencies": {+ "es-errors": "^1.3.0"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/es-set-tostringtag": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz",+ "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "es-errors": "^1.3.0",+ "get-intrinsic": "^1.2.6",+ "has-tostringtag": "^1.0.2",+ "hasown": "^2.0.2"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/esbuild": {+ "version": "0.28.2",+ "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.28.2.tgz",+ "integrity": "sha512-HKVLS8dvII+xoKW9kmqxbRKrnWEXfJJr/FZhhJmiqIB0e053QNYFqOBouTMO/k5sID4MvCiUCvv8b9M4h32wIA==",+ "dev": true,+ "hasInstallScript": true,+ "license": "MIT",+ "bin": {+ "esbuild": "bin/esbuild"+ },+ "engines": {+ "node": ">=18"+ },+ "optionalDependencies": {+ "@esbuild/aix-ppc64": "0.28.2",+ "@esbuild/android-arm": "0.28.2",+ "@esbuild/android-arm64": "0.28.2",+ "@esbuild/android-x64": "0.28.2",+ "@esbuild/darwin-arm64": "0.28.2",+ "@esbuild/darwin-x64": "0.28.2",+ "@esbuild/freebsd-arm64": "0.28.2",+ "@esbuild/freebsd-x64": "0.28.2",+ "@esbuild/linux-arm": "0.28.2",+ "@esbuild/linux-arm64": "0.28.2",+ "@esbuild/linux-ia32": "0.28.2",+ "@esbuild/linux-loong64": "0.28.2",+ "@esbuild/linux-mips64el": "0.28.2",+ "@esbuild/linux-ppc64": "0.28.2",+ "@esbuild/linux-riscv64": "0.28.2",+ "@esbuild/linux-s390x": "0.28.2",+ "@esbuild/linux-x64": "0.28.2",+ "@esbuild/netbsd-arm64": "0.28.2",+ "@esbuild/netbsd-x64": "0.28.2",+ "@esbuild/openbsd-arm64": "0.28.2",+ "@esbuild/openbsd-x64": "0.28.2",+ "@esbuild/openharmony-arm64": "0.28.2",+ "@esbuild/sunos-x64": "0.28.2",+ "@esbuild/win32-arm64": "0.28.2",+ "@esbuild/win32-ia32": "0.28.2",+ "@esbuild/win32-x64": "0.28.2"+ }+ },+ "node_modules/escalade": {+ "version": "3.2.0",+ "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz",+ "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/escape-html": {+ "version": "1.0.3",+ "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz",+ "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==",+ "license": "MIT"+ },+ "node_modules/estree-walker": {+ "version": "3.0.3",+ "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-3.0.3.tgz",+ "integrity": "sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/estree": "^1.0.0"+ }+ },+ "node_modules/etag": {+ "version": "1.8.1",+ "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz",+ "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/expect-type": {+ "version": "1.4.0",+ "resolved": "https://registry.npmjs.org/expect-type/-/expect-type-1.4.0.tgz",+ "integrity": "sha512-KfYbmpRm0VbLjEvVa9yGwCi9GI34xvi7A/HXYWQO65CSD2u3MczUJSuwXKFIxlGsgBQizV9q5J9NHj4VG0n+pA==",+ "dev": true,+ "license": "Apache-2.0",+ "engines": {+ "node": ">=12.0.0"+ }+ },+ "node_modules/express": {+ "version": "5.2.1",+ "resolved": "https://registry.npmjs.org/express/-/express-5.2.1.tgz",+ "integrity": "sha512-hIS4idWWai69NezIdRt2xFVofaF4j+6INOpJlVOLDO8zXGpUVEVzIYk12UUi2JzjEzWL3IOAxcTubgz9Po0yXw==",+ "license": "MIT",+ "dependencies": {+ "accepts": "^2.0.0",+ "body-parser": "^2.2.1",+ "content-disposition": "^1.0.0",+ "content-type": "^1.0.5",+ "cookie": "^0.7.1",+ "cookie-signature": "^1.2.1",+ "debug": "^4.4.0",+ "depd": "^2.0.0",+ "encodeurl": "^2.0.0",+ "escape-html": "^1.0.3",+ "etag": "^1.8.1",+ "finalhandler": "^2.1.0",+ "fresh": "^2.0.0",+ "http-errors": "^2.0.0",+ "merge-descriptors": "^2.0.0",+ "mime-types": "^3.0.0",+ "on-finished": "^2.4.1",+ "once": "^1.4.0",+ "parseurl": "^1.3.3",+ "proxy-addr": "^2.0.7",+ "qs": "^6.14.0",+ "range-parser": "^1.2.1",+ "router": "^2.2.0",+ "send": "^1.1.0",+ "serve-static": "^2.2.0",+ "statuses": "^2.0.1",+ "type-is": "^2.0.1",+ "vary": "^1.1.2"+ },+ "engines": {+ "node": ">= 18"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/express"+ }+ },+ "node_modules/fast-safe-stringify": {+ "version": "2.1.1",+ "resolved": "https://registry.npmjs.org/fast-safe-stringify/-/fast-safe-stringify-2.1.1.tgz",+ "integrity": "sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/fdir": {+ "version": "6.5.0",+ "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz",+ "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=12.0.0"+ },+ "peerDependencies": {+ "picomatch": "^3 || ^4"+ },+ "peerDependenciesMeta": {+ "picomatch": {+ "optional": true+ }+ }+ },+ "node_modules/finalhandler": {+ "version": "2.1.1",+ "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-2.1.1.tgz",+ "integrity": "sha512-S8KoZgRZN+a5rNwqTxlZZePjT/4cnm0ROV70LedRHZ0p8u9fRID0hJUZQpkKLzro8LfmC8sx23bY6tVNxv8pQA==",+ "license": "MIT",+ "dependencies": {+ "debug": "^4.4.0",+ "encodeurl": "^2.0.0",+ "escape-html": "^1.0.3",+ "on-finished": "^2.4.1",+ "parseurl": "^1.3.3",+ "statuses": "^2.0.1"+ },+ "engines": {+ "node": ">= 18.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/express"+ }+ },+ "node_modules/form-data": {+ "version": "4.0.6",+ "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.6.tgz",+ "integrity": "sha512-vKatAh4SlVfgbv+YtmhiRjhEMJsYpsG1Y2rMQtR+SVSbytsSD1YGzDIcrAJmdFec88u/+VoGmxnl+80gL1tRCQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "asynckit": "^0.4.0",+ "combined-stream": "^1.0.8",+ "es-set-tostringtag": "^2.1.0",+ "hasown": "^2.0.4",+ "mime-types": "^2.1.35"+ },+ "engines": {+ "node": ">= 6"+ }+ },+ "node_modules/form-data/node_modules/mime-db": {+ "version": "1.52.0",+ "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",+ "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/form-data/node_modules/mime-types": {+ "version": "2.1.35",+ "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",+ "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "mime-db": "1.52.0"+ },+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/formidable": {+ "version": "3.5.4",+ "resolved": "https://registry.npmjs.org/formidable/-/formidable-3.5.4.tgz",+ "integrity": "sha512-YikH+7CUTOtP44ZTnUhR7Ic2UASBPOqmaRkRKxRbywPTe5VxF7RRCck4af9wutiZ/QKM5nME9Bie2fFaPz5Gug==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@paralleldrive/cuid2": "^2.2.2",+ "dezalgo": "^1.0.4",+ "once": "^1.4.0"+ },+ "engines": {+ "node": ">=14.0.0"+ },+ "funding": {+ "url": "https://ko-fi.com/tunnckoCore/commissions"+ }+ },+ "node_modules/forwarded": {+ "version": "0.2.0",+ "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz",+ "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/fresh": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/fresh/-/fresh-2.0.0.tgz",+ "integrity": "sha512-Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.8"+ }+ },+ "node_modules/fsevents": {+ "version": "2.3.3",+ "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",+ "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",+ "dev": true,+ "hasInstallScript": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": "^8.16.0 || ^10.6.0 || >=11.0.0"+ }+ },+ "node_modules/function-bind": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",+ "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",+ "license": "MIT",+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/get-caller-file": {+ "version": "2.0.5",+ "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz",+ "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==",+ "dev": true,+ "license": "ISC",+ "engines": {+ "node": "6.* || 8.* || >= 10.*"+ }+ },+ "node_modules/get-east-asian-width": {+ "version": "1.6.0",+ "resolved": "https://registry.npmjs.org/get-east-asian-width/-/get-east-asian-width-1.6.0.tgz",+ "integrity": "sha512-QRbvDIbx6YklUe6RxeTeleMR0yv3cYH6PsPZHcnVn7xv7zO1BHN8r0XETu8n6Ye3Q+ahtSarc3WgtNWmehIBfA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/get-intrinsic": {+ "version": "1.3.0",+ "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz",+ "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==",+ "license": "MIT",+ "dependencies": {+ "call-bind-apply-helpers": "^1.0.2",+ "es-define-property": "^1.0.1",+ "es-errors": "^1.3.0",+ "es-object-atoms": "^1.1.1",+ "function-bind": "^1.1.2",+ "get-proto": "^1.0.1",+ "gopd": "^1.2.0",+ "has-symbols": "^1.1.0",+ "hasown": "^2.0.2",+ "math-intrinsics": "^1.1.0"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/get-proto": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz",+ "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==",+ "license": "MIT",+ "dependencies": {+ "dunder-proto": "^1.0.1",+ "es-object-atoms": "^1.0.0"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/gopd": {+ "version": "1.2.0",+ "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz",+ "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/graceful-fs": {+ "version": "4.2.11",+ "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz",+ "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/has-symbols": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz",+ "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/has-tostringtag": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz",+ "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "has-symbols": "^1.0.3"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/hasown": {+ "version": "2.0.4",+ "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.4.tgz",+ "integrity": "sha512-T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A==",+ "license": "MIT",+ "dependencies": {+ "function-bind": "^1.1.2"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/http-errors": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.1.tgz",+ "integrity": "sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ==",+ "license": "MIT",+ "dependencies": {+ "depd": "~2.0.0",+ "inherits": "~2.0.4",+ "setprototypeof": "~1.2.0",+ "statuses": "~2.0.2",+ "toidentifier": "~1.0.1"+ },+ "engines": {+ "node": ">= 0.8"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/express"+ }+ },+ "node_modules/iconv-lite": {+ "version": "0.7.3",+ "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.7.3.tgz",+ "integrity": "sha512-IKXpvIzjnC9XTAUbVBcMfGS0EPaIXtW6v+zr+RRp+hqULEpo0owZax6wyRwPOJbWbzjYspQwusTsfVr0ifh4uQ==",+ "license": "MIT",+ "dependencies": {+ "safer-buffer": ">= 2.1.2 < 3.0.0"+ },+ "engines": {+ "node": ">=0.10.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/express"+ }+ },+ "node_modules/inherits": {+ "version": "2.0.4",+ "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",+ "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",+ "license": "ISC"+ },+ "node_modules/ipaddr.js": {+ "version": "1.9.1",+ "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz",+ "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.10"+ }+ },+ "node_modules/is-promise": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-4.0.0.tgz",+ "integrity": "sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ==",+ "license": "MIT"+ },+ "node_modules/jiti": {+ "version": "2.7.0",+ "resolved": "https://registry.npmjs.org/jiti/-/jiti-2.7.0.tgz",+ "integrity": "sha512-AC/7JofJvZGrrneWNaEnJeOLUx+JlGt7tNa0wZiRPT4MY1wmfKjt2+6O2p2uz2+skll8OZZmJMNqeke7kKbNgQ==",+ "dev": true,+ "license": "MIT",+ "bin": {+ "jiti": "lib/jiti-cli.mjs"+ }+ },+ "node_modules/lightningcss": {+ "version": "1.32.0",+ "resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.32.0.tgz",+ "integrity": "sha512-NXYBzinNrblfraPGyrbPoD19C1h9lfI/1mzgWYvXUTe414Gz/X1FD2XBZSZM7rRTrMA8JL3OtAaGifrIKhQ5yQ==",+ "dev": true,+ "license": "MPL-2.0",+ "dependencies": {+ "detect-libc": "^2.0.3"+ },+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ },+ "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"+ }+ },+ "node_modules/lightningcss-android-arm64": {+ "version": "1.32.0",+ "resolved": "https://registry.npmjs.org/lightningcss-android-arm64/-/lightningcss-android-arm64-1.32.0.tgz",+ "integrity": "sha512-YK7/ClTt4kAK0vo6w3X+Pnm0D2cf2vPHbhOXdoNti1Ga0al1P4TBZhwjATvjNwLEBCnKvjJc2jQgHXH0NEwlAg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ }+ },+ "node_modules/lightningcss-darwin-arm64": {+ "version": "1.32.0",+ "resolved": "https://registry.npmjs.org/lightningcss-darwin-arm64/-/lightningcss-darwin-arm64-1.32.0.tgz",+ "integrity": "sha512-RzeG9Ju5bag2Bv1/lwlVJvBE3q6TtXskdZLLCyfg5pt+HLz9BqlICO7LZM7VHNTTn/5PRhHFBSjk5lc4cmscPQ==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ }+ },+ "node_modules/lightningcss-darwin-x64": {+ "version": "1.32.0",+ "resolved": "https://registry.npmjs.org/lightningcss-darwin-x64/-/lightningcss-darwin-x64-1.32.0.tgz",+ "integrity": "sha512-U+QsBp2m/s2wqpUYT/6wnlagdZbtZdndSmut/NJqlCcMLTWp5muCrID+K5UJ6jqD2BFshejCYXniPDbNh73V8w==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ }+ },+ "node_modules/lightningcss-freebsd-x64": {+ "version": "1.32.0",+ "resolved": "https://registry.npmjs.org/lightningcss-freebsd-x64/-/lightningcss-freebsd-x64-1.32.0.tgz",+ "integrity": "sha512-JCTigedEksZk3tHTTthnMdVfGf61Fky8Ji2E4YjUTEQX14xiy/lTzXnu1vwiZe3bYe0q+SpsSH/CTeDXK6WHig==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "freebsd"+ ],+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ }+ },+ "node_modules/lightningcss-linux-arm-gnueabihf": {+ "version": "1.32.0",+ "resolved": "https://registry.npmjs.org/lightningcss-linux-arm-gnueabihf/-/lightningcss-linux-arm-gnueabihf-1.32.0.tgz",+ "integrity": "sha512-x6rnnpRa2GL0zQOkt6rts3YDPzduLpWvwAF6EMhXFVZXD4tPrBkEFqzGowzCsIWsPjqSK+tyNEODUBXeeVHSkw==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ }+ },+ "node_modules/lightningcss-linux-arm64-gnu": {+ "version": "1.32.0",+ "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-gnu/-/lightningcss-linux-arm64-gnu-1.32.0.tgz",+ "integrity": "sha512-0nnMyoyOLRJXfbMOilaSRcLH3Jw5z9HDNGfT/gwCPgaDjnx0i8w7vBzFLFR1f6CMLKF8gVbebmkUN3fa/kQJpQ==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "libc": [+ "glibc"+ ],+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ }+ },+ "node_modules/lightningcss-linux-arm64-musl": {+ "version": "1.32.0",+ "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-musl/-/lightningcss-linux-arm64-musl-1.32.0.tgz",+ "integrity": "sha512-UpQkoenr4UJEzgVIYpI80lDFvRmPVg6oqboNHfoH4CQIfNA+HOrZ7Mo7KZP02dC6LjghPQJeBsvXhJod/wnIBg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "libc": [+ "musl"+ ],+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ }+ },+ "node_modules/lightningcss-linux-x64-gnu": {+ "version": "1.32.0",+ "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.32.0.tgz",+ "integrity": "sha512-V7Qr52IhZmdKPVr+Vtw8o+WLsQJYCTd8loIfpDaMRWGUZfBOYEJeyJIkqGIDMZPwPx24pUMfwSxxI8phr/MbOA==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "libc": [+ "glibc"+ ],+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ }+ },+ "node_modules/lightningcss-linux-x64-musl": {+ "version": "1.32.0",+ "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.32.0.tgz",+ "integrity": "sha512-bYcLp+Vb0awsiXg/80uCRezCYHNg1/l3mt0gzHnWV9XP1W5sKa5/TCdGWaR/zBM2PeF/HbsQv/j2URNOiVuxWg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "libc": [+ "musl"+ ],+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ }+ },+ "node_modules/lightningcss-win32-arm64-msvc": {+ "version": "1.32.0",+ "resolved": "https://registry.npmjs.org/lightningcss-win32-arm64-msvc/-/lightningcss-win32-arm64-msvc-1.32.0.tgz",+ "integrity": "sha512-8SbC8BR40pS6baCM8sbtYDSwEVQd4JlFTOlaD3gWGHfThTcABnNDBda6eTZeqbofalIJhFx0qKzgHJmcPTnGdw==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ }+ },+ "node_modules/lightningcss-win32-x64-msvc": {+ "version": "1.32.0",+ "resolved": "https://registry.npmjs.org/lightningcss-win32-x64-msvc/-/lightningcss-win32-x64-msvc-1.32.0.tgz",+ "integrity": "sha512-Amq9B/SoZYdDi1kFrojnoqPLxYhQ4Wo5XiL8EVJrVsB8ARoC1PWW6VGtT0WKCemjy8aC+louJnjS7U18x3b06Q==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ }+ },+ "node_modules/magic-string": {+ "version": "0.30.21",+ "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz",+ "integrity": "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@jridgewell/sourcemap-codec": "^1.5.5"+ }+ },+ "node_modules/math-intrinsics": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz",+ "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/media-typer": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-1.1.1.tgz",+ "integrity": "sha512-yz3xRaG20c6/BOzvYoDaGtPmGscs7YivItZEEqe6GbwNfHuxu9YNmvnEkMzKldAGY4/80pRcQRZSEnhquk9XuQ==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.8"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/express"+ }+ },+ "node_modules/merge-descriptors": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-2.0.0.tgz",+ "integrity": "sha512-Snk314V5ayFLhp3fkUREub6WtjBfPdCPY1Ln8/8munuLuiYhsABgBVWsozAG+MWMbVEvcdcpbi9R7ww22l9Q3g==",+ "license": "MIT",+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/methods": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz",+ "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/mime": {+ "version": "2.6.0",+ "resolved": "https://registry.npmjs.org/mime/-/mime-2.6.0.tgz",+ "integrity": "sha512-USPkMeET31rOMiarsBNIHZKLGgvKc/LrjofAnBlOttf5ajRvqiRA8QsenbcooctK6d6Ts6aqZXBA+XbkKthiQg==",+ "dev": true,+ "license": "MIT",+ "bin": {+ "mime": "cli.js"+ },+ "engines": {+ "node": ">=4.0.0"+ }+ },+ "node_modules/mime-db": {+ "version": "1.54.0",+ "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.54.0.tgz",+ "integrity": "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/mime-types": {+ "version": "3.0.2",+ "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-3.0.2.tgz",+ "integrity": "sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A==",+ "license": "MIT",+ "dependencies": {+ "mime-db": "^1.54.0"+ },+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/express"+ }+ },+ "node_modules/ms": {+ "version": "2.1.3",+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",+ "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",+ "license": "MIT"+ },+ "node_modules/nanoid": {+ "version": "3.3.18",+ "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.18.tgz",+ "integrity": "sha512-DTg4MJbGMWkfi6VZFdNt2/caMbQy4Ou+Op/hJQvGEWcnVfoA1QA+xzRKAzw9jD6+GVOOeYr/mIcuDSdug6F6+w==",+ "dev": true,+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],+ "license": "MIT",+ "bin": {+ "nanoid": "bin/nanoid.cjs"+ },+ "engines": {+ "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"+ }+ },+ "node_modules/negotiator": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-1.0.0.tgz",+ "integrity": "sha512-8Ofs/AUQh8MaEcrlq5xOX0CQ9ypTF5dl78mjlMNfOK08fzpgTHQRQPBxcPlEtIw0yRpws+Zo/3r+5WRby7u3Gg==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/object-inspect": {+ "version": "1.13.4",+ "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz",+ "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/obug": {+ "version": "2.1.4",+ "resolved": "https://registry.npmjs.org/obug/-/obug-2.1.4.tgz",+ "integrity": "sha512-4a+OsYv9UktOJKE+l1A4OufDgdRF9PifWj+tJnHURo/P+WOxpG4GzUFL9qCalmWauao6ogiG+QvnCovwPoyAWA==",+ "dev": true,+ "funding": [+ "https://github.com/sponsors/sxzz",+ "https://opencollective.com/debug"+ ],+ "license": "MIT",+ "engines": {+ "node": ">=12.20.0"+ }+ },+ "node_modules/on-finished": {+ "version": "2.4.1",+ "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz",+ "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==",+ "license": "MIT",+ "dependencies": {+ "ee-first": "1.1.1"+ },+ "engines": {+ "node": ">= 0.8"+ }+ },+ "node_modules/once": {+ "version": "1.4.0",+ "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",+ "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==",+ "license": "ISC",+ "dependencies": {+ "wrappy": "1"+ }+ },+ "node_modules/parseurl": {+ "version": "1.3.3",+ "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz",+ "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.8"+ }+ },+ "node_modules/path-to-regexp": {+ "version": "8.4.2",+ "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-8.4.2.tgz",+ "integrity": "sha512-qRcuIdP69NPm4qbACK+aDogI5CBDMi1jKe0ry5rSQJz8JVLsC7jV8XpiJjGRLLol3N+R5ihGYcrPLTno6pAdBA==",+ "license": "MIT",+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/express"+ }+ },+ "node_modules/pathe": {+ "version": "2.0.3",+ "resolved": "https://registry.npmjs.org/pathe/-/pathe-2.0.3.tgz",+ "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/picocolors": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",+ "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/picomatch": {+ "version": "4.0.5",+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.5.tgz",+ "integrity": "sha512-RvwwcruNjI1ncT5xRakeyS9Lf8lcItv34KD+aif+VH9kduAyfYBipGh12274xtenIPZ119/R9BdTBa8gAwSh0A==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/sponsors/jonschlinkert"+ }+ },+ "node_modules/postcss": {+ "version": "8.5.26",+ "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.26.tgz",+ "integrity": "sha512-u82N74LFzG8ca+dD8puPnplTXoGH4fTPpVGuIbt36G3qvNlkvfD0lEAZSxaly3KX8TS/L1A1gsCEmvKmBcVbkQ==",+ "dev": true,+ "funding": [+ {+ "type": "opencollective",+ "url": "https://opencollective.com/postcss/"+ },+ {+ "type": "tidelift",+ "url": "https://tidelift.com/funding/github/npm/postcss"+ },+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "nanoid": "^3.3.17",+ "picocolors": "^1.1.1",+ "source-map-js": "^1.2.1"+ },+ "engines": {+ "node": "^10 || ^12 || >=14"+ }+ },+ "node_modules/proxy-addr": {+ "version": "2.0.7",+ "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz",+ "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==",+ "license": "MIT",+ "dependencies": {+ "forwarded": "0.2.0",+ "ipaddr.js": "1.9.1"+ },+ "engines": {+ "node": ">= 0.10"+ }+ },+ "node_modules/qs": {+ "version": "6.15.3",+ "resolved": "https://registry.npmjs.org/qs/-/qs-6.15.3.tgz",+ "integrity": "sha512-O9gl3zCl5h5blw1KGUzQKhA5oUXSl8rwUIM5o0S3nCXMliSvy5Dzx7/DJcI+SwgICv+IneSZwhBh1oSyEHA71A==",+ "license": "BSD-3-Clause",+ "dependencies": {+ "es-define-property": "^1.0.1",+ "side-channel": "^1.1.1"+ },+ "engines": {+ "node": ">=0.6"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/range-parser": {+ "version": "1.3.0",+ "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.3.0.tgz",+ "integrity": "sha512-hek2mFQpPuI4E1BBKrSto+BU3e3x4xuarsbiwr3+lf7p44juvFMV0XFWQAP3xUyqXA4RrXLIoaSUGbSt056ZMw==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.6"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/express"+ }+ },+ "node_modules/raw-body": {+ "version": "3.0.2",+ "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-3.0.2.tgz",+ "integrity": "sha512-K5zQjDllxWkf7Z5xJdV0/B0WTNqx6vxG70zJE4N0kBs4LovmEYWJzQGxC9bS9RAKu3bgM40lrd5zoLJ12MQ5BA==",+ "license": "MIT",+ "dependencies": {+ "bytes": "~3.1.2",+ "http-errors": "~2.0.1",+ "iconv-lite": "~0.7.0",+ "unpipe": "~1.0.0"+ },+ "engines": {+ "node": ">= 0.10"+ }+ },+ "node_modules/react": {+ "version": "19.2.8",+ "resolved": "https://registry.npmjs.org/react/-/react-19.2.8.tgz",+ "integrity": "sha512-PWaYA1L/q9u2u7xYQi+Y3L3Yfnie7XyLeaJICV1MGD6LprsBxcAqGjYyr0eY3p+QdsA+x/Irkt4Qif8D63+Sbw==",+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/react-dom": {+ "version": "19.2.8",+ "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.2.8.tgz",+ "integrity": "sha512-rVprimfGBG3DR+Tq0IQG2DT5PxKth1WIGDmj5yPmlzr4YBe7uyE+Du4oVqTDXZSHGGGXRtTJEGSSePyQCMBglQ==",+ "license": "MIT",+ "dependencies": {+ "scheduler": "^0.27.0"+ },+ "peerDependencies": {+ "react": "^19.2.8"+ }+ },+ "node_modules/rolldown": {+ "version": "1.2.4",+ "resolved": "https://registry.npmjs.org/rolldown/-/rolldown-1.2.4.tgz",+ "integrity": "sha512-rSr7irW0K7QRWzjdJXqZowkcRdDtjRduh43rBltnVKd0VFq839l1lJoDvGJb6gl7+4rTTCrPWu+YfujUL8Ug7w==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@oxc-project/types": "=0.144.0",+ "@rolldown/pluginutils": "^1.0.0"+ },+ "bin": {+ "rolldown": "bin/cli.mjs"+ },+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ },+ "optionalDependencies": {+ "@rolldown/binding-android-arm64": "1.2.4",+ "@rolldown/binding-darwin-arm64": "1.2.4",+ "@rolldown/binding-darwin-x64": "1.2.4",+ "@rolldown/binding-freebsd-x64": "1.2.4",+ "@rolldown/binding-linux-arm-gnueabihf": "1.2.4",+ "@rolldown/binding-linux-arm64-gnu": "1.2.4",+ "@rolldown/binding-linux-arm64-musl": "1.2.4",+ "@rolldown/binding-linux-ppc64-gnu": "1.2.4",+ "@rolldown/binding-linux-s390x-gnu": "1.2.4",+ "@rolldown/binding-linux-x64-gnu": "1.2.4",+ "@rolldown/binding-linux-x64-musl": "1.2.4",+ "@rolldown/binding-openharmony-arm64": "1.2.4",+ "@rolldown/binding-win32-arm64-msvc": "1.2.4",+ "@rolldown/binding-win32-x64-msvc": "1.2.4"+ }+ },+ "node_modules/router": {+ "version": "2.2.0",+ "resolved": "https://registry.npmjs.org/router/-/router-2.2.0.tgz",+ "integrity": "sha512-nLTrUKm2UyiL7rlhapu/Zl45FwNgkZGaCpZbIHajDYgwlJCOzLSk+cIPAnsEqV955GjILJnKbdQC1nVPz+gAYQ==",+ "license": "MIT",+ "dependencies": {+ "debug": "^4.4.0",+ "depd": "^2.0.0",+ "is-promise": "^4.0.0",+ "parseurl": "^1.3.3",+ "path-to-regexp": "^8.0.0"+ },+ "engines": {+ "node": ">= 18"+ }+ },+ "node_modules/rxjs": {+ "version": "7.8.2",+ "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.2.tgz",+ "integrity": "sha512-dhKf903U/PQZY6boNNtAGdWbG85WAbjT/1xYoZIC7FAY0yWapOBQVsVrDl58W86//e1VpMNBtRV4MaXfdMySFA==",+ "dev": true,+ "license": "Apache-2.0",+ "dependencies": {+ "tslib": "^2.1.0"+ }+ },+ "node_modules/safer-buffer": {+ "version": "2.1.2",+ "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",+ "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==",+ "license": "MIT"+ },+ "node_modules/scheduler": {+ "version": "0.27.0",+ "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.27.0.tgz",+ "integrity": "sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q==",+ "license": "MIT"+ },+ "node_modules/send": {+ "version": "1.2.1",+ "resolved": "https://registry.npmjs.org/send/-/send-1.2.1.tgz",+ "integrity": "sha512-1gnZf7DFcoIcajTjTwjwuDjzuz4PPcY2StKPlsGAQ1+YH20IRVrBaXSWmdjowTJ6u8Rc01PoYOGHXfP1mYcZNQ==",+ "license": "MIT",+ "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.2.1",+ "statuses": "^2.0.2"+ },+ "engines": {+ "node": ">= 18"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/express"+ }+ },+ "node_modules/serve-static": {+ "version": "2.2.1",+ "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-2.2.1.tgz",+ "integrity": "sha512-xRXBn0pPqQTVQiC8wyQrKs2MOlX24zQ0POGaj0kultvoOCstBQM5yvOhAVSUwOMjQtTvsPWoNCHfPGwaaQJhTw==",+ "license": "MIT",+ "dependencies": {+ "encodeurl": "^2.0.0",+ "escape-html": "^1.0.3",+ "parseurl": "^1.3.3",+ "send": "^1.2.0"+ },+ "engines": {+ "node": ">= 18"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/express"+ }+ },+ "node_modules/setprototypeof": {+ "version": "1.2.0",+ "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz",+ "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==",+ "license": "ISC"+ },+ "node_modules/shell-quote": {+ "version": "1.9.0",+ "resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.9.0.tgz",+ "integrity": "sha512-Iov+JwFv/2HcTpcwNMKd8+IWNb8tboQJNQTkAY/LLVK7gGH9jy+LGkVqPxfekHl+yMmiqXszdGWXgkfml7hjqA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/side-channel": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.1.tgz",+ "integrity": "sha512-6x6dK6zJdpTzF4sQeNYxwtvBzf6Eg4GtlesS94HOvTudUeyK2WXAaIfmDgsyslYrRBeFIlsi54AYsFGUuhmvrQ==",+ "license": "MIT",+ "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"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/side-channel-list": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.1.tgz",+ "integrity": "sha512-mjn/0bi/oUURjc5Xl7IaWi/OJJJumuoJFQJfDDyO46+hBWsfaVM65TBHq2eoZBhzl9EchxOijpkbRC8SVBQU0w==",+ "license": "MIT",+ "dependencies": {+ "es-errors": "^1.3.0",+ "object-inspect": "^1.13.4"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/side-channel-map": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz",+ "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==",+ "license": "MIT",+ "dependencies": {+ "call-bound": "^1.0.2",+ "es-errors": "^1.3.0",+ "get-intrinsic": "^1.2.5",+ "object-inspect": "^1.13.3"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/side-channel-weakmap": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz",+ "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==",+ "license": "MIT",+ "dependencies": {+ "call-bound": "^1.0.2",+ "es-errors": "^1.3.0",+ "get-intrinsic": "^1.2.5",+ "object-inspect": "^1.13.3",+ "side-channel-map": "^1.0.1"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/siginfo": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/siginfo/-/siginfo-2.0.0.tgz",+ "integrity": "sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/source-map-js": {+ "version": "1.2.1",+ "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz",+ "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==",+ "dev": true,+ "license": "BSD-3-Clause",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/stackback": {+ "version": "0.0.2",+ "resolved": "https://registry.npmjs.org/stackback/-/stackback-0.0.2.tgz",+ "integrity": "sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/statuses": {+ "version": "2.0.2",+ "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.2.tgz",+ "integrity": "sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.8"+ }+ },+ "node_modules/std-env": {+ "version": "4.2.0",+ "resolved": "https://registry.npmjs.org/std-env/-/std-env-4.2.0.tgz",+ "integrity": "sha512-oCUKSupKTHX53EyjDtuZQ64pjLJ6yYCtpmEw0goYxtjG9KpbRe8KAsl2tBUGU9DyMcJ0RwJ8GqJAFzMXcXW1Rw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/string-width": {+ "version": "7.2.0",+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-7.2.0.tgz",+ "integrity": "sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "emoji-regex": "^10.3.0",+ "get-east-asian-width": "^1.0.0",+ "strip-ansi": "^7.1.0"+ },+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/strip-ansi": {+ "version": "7.2.0",+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.2.0.tgz",+ "integrity": "sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "ansi-regex": "^6.2.2"+ },+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/chalk/strip-ansi?sponsor=1"+ }+ },+ "node_modules/superagent": {+ "version": "10.3.0",+ "resolved": "https://registry.npmjs.org/superagent/-/superagent-10.3.0.tgz",+ "integrity": "sha512-B+4Ik7ROgVKrQsXTV0Jwp2u+PXYLSlqtDAhYnkkD+zn3yg8s/zjA2MeGayPoY/KICrbitwneDHrjSotxKL+0XQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "component-emitter": "^1.3.1",+ "cookiejar": "^2.1.4",+ "debug": "^4.3.7",+ "fast-safe-stringify": "^2.1.1",+ "form-data": "^4.0.5",+ "formidable": "^3.5.4",+ "methods": "^1.1.2",+ "mime": "2.6.0",+ "qs": "^6.14.1"+ },+ "engines": {+ "node": ">=14.18.0"+ }+ },+ "node_modules/supertest": {+ "version": "7.2.2",+ "resolved": "https://registry.npmjs.org/supertest/-/supertest-7.2.2.tgz",+ "integrity": "sha512-oK8WG9diS3DlhdUkcFn4tkNIiIbBx9lI2ClF8K+b2/m8Eyv47LSawxUzZQSNKUrVb2KsqeTDCcjAAVPYaSLVTA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "cookie-signature": "^1.2.2",+ "methods": "^1.1.2",+ "superagent": "^10.3.0"+ },+ "engines": {+ "node": ">=14.18.0"+ }+ },+ "node_modules/supports-color": {+ "version": "10.2.2",+ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-10.2.2.tgz",+ "integrity": "sha512-SS+jx45GF1QjgEXQx4NJZV9ImqmO2NPz5FNsIHrsDjh2YsHnawpan7SNQ1o8NuhrbHZy9AZhIoCUiCeaW/C80g==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "url": "https://github.com/chalk/supports-color?sponsor=1"+ }+ },+ "node_modules/tailwindcss": {+ "version": "4.3.3",+ "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-4.3.3.tgz",+ "integrity": "sha512-gOhV3P7ufE62QDGg1zVaTgCR+EtPv92k2nIhVcVKcLmxT1sUBsQGhnZj175j+MqRt4zLF7ic+sCYjfhxMxj7YQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/tapable": {+ "version": "2.3.3",+ "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.3.3.tgz",+ "integrity": "sha512-uxc/zpqFg6x7C8vOE7lh6Lbda8eEL9zmVm/PLeTPBRhh1xCgdWaQ+J1CUieGpIfm2HdtsUpRv+HshiasBMcc6A==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/webpack"+ }+ },+ "node_modules/tinybench": {+ "version": "2.9.0",+ "resolved": "https://registry.npmjs.org/tinybench/-/tinybench-2.9.0.tgz",+ "integrity": "sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/tinyexec": {+ "version": "1.3.0",+ "resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-1.3.0.tgz",+ "integrity": "sha512-QKAl9m8gWWGHV8jZcPeym6j+XULi6tOf1mT83WYJ4Lk2ytW/uwAWkrP0uFsdoYMdueVJ0qs26wZ+23xeB4ibNQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/tinyglobby": {+ "version": "0.2.17",+ "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.17.tgz",+ "integrity": "sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "fdir": "^6.5.0",+ "picomatch": "^4.0.4"+ },+ "engines": {+ "node": ">=12.0.0"+ },+ "funding": {+ "url": "https://github.com/sponsors/SuperchupuDev"+ }+ },+ "node_modules/tinyrainbow": {+ "version": "3.1.1",+ "resolved": "https://registry.npmjs.org/tinyrainbow/-/tinyrainbow-3.1.1.tgz",+ "integrity": "sha512-yau8yJdTt989Mm0Bd/236QnzEiPf2xLLTqUZRUJOo/3CB078LSwzei343DgtJVmfJKJE3TMINY1u42SQsP6mXw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=14.0.0"+ }+ },+ "node_modules/toidentifier": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz",+ "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==",+ "license": "MIT",+ "engines": {+ "node": ">=0.6"+ }+ },+ "node_modules/tree-kill": {+ "version": "1.2.2",+ "resolved": "https://registry.npmjs.org/tree-kill/-/tree-kill-1.2.2.tgz",+ "integrity": "sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A==",+ "dev": true,+ "license": "MIT",+ "bin": {+ "tree-kill": "cli.js"+ }+ },+ "node_modules/tslib": {+ "version": "2.8.1",+ "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz",+ "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==",+ "dev": true,+ "license": "0BSD"+ },+ "node_modules/tsx": {+ "version": "4.23.12",+ "resolved": "https://registry.npmjs.org/tsx/-/tsx-4.23.12.tgz",+ "integrity": "sha512-FDf4L4sYzKtzWYhU/Xm0AQFdTjdIxNo9ElTf2mxXM6k8YMHXzYUe4yODVaXP4V9uMFbVg8c0qyBccK2OOxb45Q==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "esbuild": "~0.28.0"+ },+ "bin": {+ "tsx": "dist/cli.mjs"+ },+ "engines": {+ "node": ">=18.0.0"+ },+ "optionalDependencies": {+ "fsevents": "~2.3.3"+ }+ },+ "node_modules/type-is": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/type-is/-/type-is-2.1.0.tgz",+ "integrity": "sha512-faYHw0anBbc/kWF3zFTEnxSFOAGUX9GFbOBthvDdLsIlEoWOFOtS0zgCiQYwIskL9iGXZL3kAXD8OoZ4GmMATA==",+ "license": "MIT",+ "dependencies": {+ "content-type": "^2.0.0",+ "media-typer": "^1.1.0",+ "mime-types": "^3.0.0"+ },+ "engines": {+ "node": ">= 18"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/express"+ }+ },+ "node_modules/type-is/node_modules/content-type": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/content-type/-/content-type-2.1.0.tgz",+ "integrity": "sha512-mj7UPXE0jaqaOsukNZRUEfEi2AcL7C/vwmwcHV0O97eO1E1pxBZuyjlZrx5seTaNBg1U6+o35wpa35Qfcc+7ag==",+ "license": "MIT",+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/express"+ }+ },+ "node_modules/typescript": {+ "version": "7.0.2",+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-7.0.2.tgz",+ "integrity": "sha512-8FYau96o3NKOhbjKi/qNvG/W5jhzxkbdm5sj9AbZ/5T5sWqn3hJgLfGx27sRKZWTvyzCP8dLRBTf5tBTSRVUNA==",+ "dev": true,+ "license": "Apache-2.0",+ "bin": {+ "tsc": "bin/tsc"+ },+ "engines": {+ "node": ">=16.20.0"+ },+ "optionalDependencies": {+ "@typescript/typescript-aix-ppc64": "7.0.2",+ "@typescript/typescript-darwin-arm64": "7.0.2",+ "@typescript/typescript-darwin-x64": "7.0.2",+ "@typescript/typescript-freebsd-arm64": "7.0.2",+ "@typescript/typescript-freebsd-x64": "7.0.2",+ "@typescript/typescript-linux-arm": "7.0.2",+ "@typescript/typescript-linux-arm64": "7.0.2",+ "@typescript/typescript-linux-loong64": "7.0.2",+ "@typescript/typescript-linux-mips64el": "7.0.2",+ "@typescript/typescript-linux-ppc64": "7.0.2",+ "@typescript/typescript-linux-riscv64": "7.0.2",+ "@typescript/typescript-linux-s390x": "7.0.2",+ "@typescript/typescript-linux-x64": "7.0.2",+ "@typescript/typescript-netbsd-arm64": "7.0.2",+ "@typescript/typescript-netbsd-x64": "7.0.2",+ "@typescript/typescript-openbsd-arm64": "7.0.2",+ "@typescript/typescript-openbsd-x64": "7.0.2",+ "@typescript/typescript-sunos-x64": "7.0.2",+ "@typescript/typescript-win32-arm64": "7.0.2",+ "@typescript/typescript-win32-x64": "7.0.2"+ }+ },+ "node_modules/undici-types": {+ "version": "8.3.0",+ "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-8.3.0.tgz",+ "integrity": "sha512-j375ScV60dom+YkPFIfTLcOiPxkN/buHz5GobjLhixFuANaNs3C9l4GmrWqejgXWJ7BbJcFYpTEUkS1Ge8bpZQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/unpipe": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz",+ "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.8"+ }+ },+ "node_modules/vary": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz",+ "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.8"+ }+ },+ "node_modules/vite": {+ "version": "8.2.1",+ "resolved": "https://registry.npmjs.org/vite/-/vite-8.2.1.tgz",+ "integrity": "sha512-EU/eS7BH3XROHh2YnBefjM6DBKA6ZeMZEYQbj7NLWg5wHYlhB8B/Mayd5XsgWq+NFYccDOTemRpdETWR6Ka/lw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "lightningcss": "^1.33.0",+ "picomatch": "^4.0.5",+ "postcss": "^8.5.25",+ "rolldown": "~1.2.1",+ "tinyglobby": "^0.2.17"+ },+ "bin": {+ "vite": "bin/vite.js"+ },+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ },+ "funding": {+ "url": "https://github.com/vitejs/vite?sponsor=1"+ },+ "optionalDependencies": {+ "fsevents": "~2.3.3"+ },+ "peerDependencies": {+ "@types/node": "^20.19.0 || >=22.12.0",+ "@vitejs/devtools": "^0.4.0",+ "esbuild": "^0.27.0 || ^0.28.0",+ "jiti": ">=1.21.0",+ "less": "^4.0.0",+ "sass": "^1.70.0",+ "sass-embedded": "^1.70.0",+ "stylus": ">=0.54.8",+ "sugarss": "^5.0.0",+ "terser": "^5.16.0",+ "tsx": "^4.8.1",+ "yaml": "^2.4.2"+ },+ "peerDependenciesMeta": {+ "@types/node": {+ "optional": true+ },+ "@vitejs/devtools": {+ "optional": true+ },+ "esbuild": {+ "optional": true+ },+ "jiti": {+ "optional": true+ },+ "less": {+ "optional": true+ },+ "sass": {+ "optional": true+ },+ "sass-embedded": {+ "optional": true+ },+ "stylus": {+ "optional": true+ },+ "sugarss": {+ "optional": true+ },+ "terser": {+ "optional": true+ },+ "tsx": {+ "optional": true+ },+ "yaml": {+ "optional": true+ }+ }+ },+ "node_modules/vite/node_modules/lightningcss": {+ "version": "1.33.0",+ "resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.33.0.tgz",+ "integrity": "sha512-WkUDrojuJs0xkgGf2udWxa3yGBRxPtxUkB79i6aCZLRgc7PM8fZe9TosfPDcvEpQZbuFASnHYmRLBLUbmLOIIA==",+ "dev": true,+ "license": "MPL-2.0",+ "dependencies": {+ "detect-libc": "^2.0.3"+ },+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ },+ "optionalDependencies": {+ "lightningcss-android-arm64": "1.33.0",+ "lightningcss-darwin-arm64": "1.33.0",+ "lightningcss-darwin-x64": "1.33.0",+ "lightningcss-freebsd-x64": "1.33.0",+ "lightningcss-linux-arm-gnueabihf": "1.33.0",+ "lightningcss-linux-arm64-gnu": "1.33.0",+ "lightningcss-linux-arm64-musl": "1.33.0",+ "lightningcss-linux-x64-gnu": "1.33.0",+ "lightningcss-linux-x64-musl": "1.33.0",+ "lightningcss-win32-arm64-msvc": "1.33.0",+ "lightningcss-win32-x64-msvc": "1.33.0"+ }+ },+ "node_modules/vite/node_modules/lightningcss-android-arm64": {+ "version": "1.33.0",+ "resolved": "https://registry.npmjs.org/lightningcss-android-arm64/-/lightningcss-android-arm64-1.33.0.tgz",+ "integrity": "sha512-gEpRTalKdosp4Bb8qWtc2iOgE5SeIHlpS1up9bFq2wAyYhl1UdTObYiHe98zEM9SQvSoqQZ1IQD0JNpg3Ml5pg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ }+ },+ "node_modules/vite/node_modules/lightningcss-darwin-arm64": {+ "version": "1.33.0",+ "resolved": "https://registry.npmjs.org/lightningcss-darwin-arm64/-/lightningcss-darwin-arm64-1.33.0.tgz",+ "integrity": "sha512-Sciaz8eenNTKn9b3t7+xr0ipTp9YxKQY4npwQ3mrRuL0BAVHBLyZxofhaKBAVtzmtRZ/zTyo0/to4B1uWG/Djg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ }+ },+ "node_modules/vite/node_modules/lightningcss-darwin-x64": {+ "version": "1.33.0",+ "resolved": "https://registry.npmjs.org/lightningcss-darwin-x64/-/lightningcss-darwin-x64-1.33.0.tgz",+ "integrity": "sha512-Z5UPAxzrjlWNNyGy6i65cJzzvgJ5D3T6wMvs+gWpY9d7qRhANrxqAp6LhxIgZhWEw18RfJTGcRxjuLIBr+m8XQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ }+ },+ "node_modules/vite/node_modules/lightningcss-freebsd-x64": {+ "version": "1.33.0",+ "resolved": "https://registry.npmjs.org/lightningcss-freebsd-x64/-/lightningcss-freebsd-x64-1.33.0.tgz",+ "integrity": "sha512-QQM/Ti/hQajJwCY+RiWuCZ9sdtI/XQk7nDK5vC8kkdwixezOlDgvDx7+RT+QjK6FcFT4MpsuoBnHIo/O3StRRg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "freebsd"+ ],+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ }+ },+ "node_modules/vite/node_modules/lightningcss-linux-arm-gnueabihf": {+ "version": "1.33.0",+ "resolved": "https://registry.npmjs.org/lightningcss-linux-arm-gnueabihf/-/lightningcss-linux-arm-gnueabihf-1.33.0.tgz",+ "integrity": "sha512-N7FVBe6iS24MlM6R/4RBTxGhQheZGs7tiQ9U32UtF75NzP5Q7xWPRqLBCKxlRQRk3rY1jCIPLzx7WzOhuUIRLQ==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ }+ },+ "node_modules/vite/node_modules/lightningcss-linux-arm64-gnu": {+ "version": "1.33.0",+ "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-gnu/-/lightningcss-linux-arm64-gnu-1.33.0.tgz",+ "integrity": "sha512-j2v/itmy4HlNxlc6voKXYgBqNi0Ng2LShg4z7GufpEgs05P+2suBVyi9I6YHq5uoVFx9ETin3eCEhLVyXGQnKg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "libc": [+ "glibc"+ ],+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ }+ },+ "node_modules/vite/node_modules/lightningcss-linux-arm64-musl": {+ "version": "1.33.0",+ "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-musl/-/lightningcss-linux-arm64-musl-1.33.0.tgz",+ "integrity": "sha512-yiO5ROMuYQgXbC60yjZU5CYSFZGKXL0HFATXt9mHJn1+zW55oCtMI9NfcVhYLMFDL7gV7oBPon/EmMMGg2OvtQ==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "libc": [+ "musl"+ ],+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ }+ },+ "node_modules/vite/node_modules/lightningcss-linux-x64-gnu": {+ "version": "1.33.0",+ "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.33.0.tgz",+ "integrity": "sha512-ar+Ju7LmcN0Jo4FpL4hpFybwNG9/3A/Br5KW2n2jyODg3MEZXaDYADdemoNS+BDNfMgKvylJLj4S5tyRActuAg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "libc": [+ "glibc"+ ],+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ }+ },+ "node_modules/vite/node_modules/lightningcss-linux-x64-musl": {+ "version": "1.33.0",+ "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.33.0.tgz",+ "integrity": "sha512-RYiYbkokw0trfKqqzfF55lginwEPrD3OJDfTuJzFs1MK6iFnDenaz1fqLLtX4ITG3OktJQXOeTaw1awrBAlZPw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "libc": [+ "musl"+ ],+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ }+ },+ "node_modules/vite/node_modules/lightningcss-win32-arm64-msvc": {+ "version": "1.33.0",+ "resolved": "https://registry.npmjs.org/lightningcss-win32-arm64-msvc/-/lightningcss-win32-arm64-msvc-1.33.0.tgz",+ "integrity": "sha512-1K+MPfLSFVpphzpdbfkhlWk6wBrTObBzS2T6db10PNOZgR9GoVsAWzwNyuhUYYbTp23j+4RrncfujZ4uAzXvwA==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ }+ },+ "node_modules/vite/node_modules/lightningcss-win32-x64-msvc": {+ "version": "1.33.0",+ "resolved": "https://registry.npmjs.org/lightningcss-win32-x64-msvc/-/lightningcss-win32-x64-msvc-1.33.0.tgz",+ "integrity": "sha512-OlEICDx/Xl0FqSp4bry8zFnCvGpig3Gl4gCquvYwHuqJKEC1+n9NgDniFvqHGmMv1ZkqDJrDqKKSykTDX+ehuA==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ }+ },+ "node_modules/vitest": {+ "version": "4.1.11",+ "resolved": "https://registry.npmjs.org/vitest/-/vitest-4.1.11.tgz",+ "integrity": "sha512-fhACrNXUidIbGSBr5FlbuBkO7VWC1ZyLl0DO4CU2DrQoAPxX84Ysxs+HeGQpii5lZWV1Q4gBZTTu49mF+A6Edw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@vitest/expect": "4.1.11",+ "@vitest/mocker": "4.1.11",+ "@vitest/pretty-format": "4.1.11",+ "@vitest/runner": "4.1.11",+ "@vitest/snapshot": "4.1.11",+ "@vitest/spy": "4.1.11",+ "@vitest/utils": "4.1.11",+ "es-module-lexer": "^2.0.0",+ "expect-type": "^1.3.0",+ "magic-string": "^0.30.21",+ "obug": "^2.1.1",+ "pathe": "^2.0.3",+ "picomatch": "^4.0.3",+ "std-env": "^4.0.0-rc.1",+ "tinybench": "^2.9.0",+ "tinyexec": "^1.0.2",+ "tinyglobby": "^0.2.15",+ "tinyrainbow": "^3.1.0",+ "vite": "^6.0.0 || ^7.0.0 || ^8.0.0",+ "why-is-node-running": "^2.3.0"+ },+ "bin": {+ "vitest": "vitest.mjs"+ },+ "engines": {+ "node": "^20.0.0 || ^22.0.0 || >=24.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/vitest"+ },+ "peerDependencies": {+ "@edge-runtime/vm": "*",+ "@opentelemetry/api": "^1.9.0",+ "@types/node": "^20.0.0 || ^22.0.0 || >=24.0.0",+ "@vitest/browser-playwright": "4.1.11",+ "@vitest/browser-preview": "4.1.11",+ "@vitest/browser-webdriverio": "4.1.11",+ "@vitest/coverage-istanbul": "4.1.11",+ "@vitest/coverage-v8": "4.1.11",+ "@vitest/ui": "4.1.11",+ "happy-dom": "*",+ "jsdom": "*",+ "vite": "^6.0.0 || ^7.0.0 || ^8.0.0"+ },+ "peerDependenciesMeta": {+ "@edge-runtime/vm": {+ "optional": true+ },+ "@opentelemetry/api": {+ "optional": true+ },+ "@types/node": {+ "optional": true+ },+ "@vitest/browser-playwright": {+ "optional": true+ },+ "@vitest/browser-preview": {+ "optional": true+ },+ "@vitest/browser-webdriverio": {+ "optional": true+ },+ "@vitest/coverage-istanbul": {+ "optional": true+ },+ "@vitest/coverage-v8": {+ "optional": true+ },+ "@vitest/ui": {+ "optional": true+ },+ "happy-dom": {+ "optional": true+ },+ "jsdom": {+ "optional": true+ },+ "vite": {+ "optional": false+ }+ }+ },+ "node_modules/why-is-node-running": {+ "version": "2.3.0",+ "resolved": "https://registry.npmjs.org/why-is-node-running/-/why-is-node-running-2.3.0.tgz",+ "integrity": "sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "siginfo": "^2.0.0",+ "stackback": "0.0.2"+ },+ "bin": {+ "why-is-node-running": "cli.js"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/wrap-ansi": {+ "version": "9.0.2",+ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-9.0.2.tgz",+ "integrity": "sha512-42AtmgqjV+X1VpdOfyTGOYRi0/zsoLqtXQckTmqTeybT+BDIbM/Guxo7x3pE2vtpr1ok6xRqM9OpBe+Jyoqyww==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "ansi-styles": "^6.2.1",+ "string-width": "^7.0.0",+ "strip-ansi": "^7.1.0"+ },+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "url": "https://github.com/chalk/wrap-ansi?sponsor=1"+ }+ },+ "node_modules/wrappy": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",+ "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==",+ "license": "ISC"+ },+ "node_modules/y18n": {+ "version": "5.0.8",+ "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz",+ "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==",+ "dev": true,+ "license": "ISC",+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/yargs": {+ "version": "18.0.0",+ "resolved": "https://registry.npmjs.org/yargs/-/yargs-18.0.0.tgz",+ "integrity": "sha512-4UEqdc2RYGHZc7Doyqkrqiln3p9X2DZVxaGbwhn2pi7MrRagKaOcIKe8L3OxYcbhXLgLFUS3zAYuQjKBQgmuNg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "cliui": "^9.0.1",+ "escalade": "^3.1.1",+ "get-caller-file": "^2.0.5",+ "string-width": "^7.2.0",+ "y18n": "^5.0.5",+ "yargs-parser": "^22.0.0"+ },+ "engines": {+ "node": "^20.19.0 || ^22.12.0 || >=23"+ }+ },+ "node_modules/yargs-parser": {+ "version": "22.0.0",+ "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-22.0.0.tgz",+ "integrity": "sha512-rwu/ClNdSMpkSrUb+d6BRsSkLUq1fmfsY6TOpYzTwvwkg1/NRG85KBy3kq++A8LKQwX6lsu+aWad+2khvuXrqw==",+ "dev": true,+ "license": "ISC",+ "engines": {+ "node": "^20.19.0 || ^22.12.0 || >=23"+ }+ },+ "server": {+ "name": "@minimax-music-ui/server",+ "version": "0.1.0",+ "dependencies": {+ "express": "^5.2.1"+ },+ "devDependencies": {+ "@types/express": "^5.0.6",+ "@types/node": "^26.2.0",+ "@types/supertest": "^7.0.2",+ "supertest": "^7.2.2",+ "tsx": "^4.23.12",+ "typescript": "^7.0.2",+ "vitest": "^4.1.11"+ }+ },+ "web": {+ "name": "@minimax-music-ui/web",+ "version": "0.1.0",+ "dependencies": {+ "react": "^19.2.8",+ "react-dom": "^19.2.8"+ },+ "devDependencies": {+ "@tailwindcss/vite": "^4.3.3",+ "@types/react": "^19.2.14",+ "@types/react-dom": "^19.2.3",+ "@vitejs/plugin-react": "^6.0.5",+ "tailwindcss": "^4.3.3",+ "typescript": "^7.0.2",+ "vite": "^8.2.1"+ }+ }+ }+}diff --git a/package.json b/package.jsonnew file mode 100644index 0000000..6b0fcd6--- /dev/null+++ b/package.json@@ -0,0 +1,20 @@+{+ "name": "minimax-music-ui",+ "private": true,+ "version": "0.1.0",+ "workspaces": [+ "server",+ "web"+ ],+ "scripts": {+ "dev": "concurrently -k -n server,web -c blue,magenta \"npm run dev -w server\" \"npm run dev -w web\"",+ "dev:fake": "concurrently -k -n fake,server,web -c yellow,blue,magenta \"npm run fake -w server\" \"MUSIC_API=http://127.0.0.1:7999 npm run dev -w server\" \"npm run dev -w web\"",+ "build": "npm run build -w server && npm run build -w web",+ "start": "npm run start -w server",+ "test": "npm test -w server",+ "typecheck": "npm run typecheck -w server && npm run typecheck -w web"+ },+ "devDependencies": {+ "concurrently": "^10.0.5"+ }+}diff --git a/server/package.json b/server/package.jsonnew file mode 100644index 0000000..e6ca0c9--- /dev/null+++ b/server/package.json@@ -0,0 +1,26 @@+{+ "name": "@minimax-music-ui/server",+ "private": true,+ "version": "0.1.0",+ "type": "module",+ "scripts": {+ "dev": "tsx watch src/index.ts",+ "fake": "tsx test/fakeUpstreamServer.ts",+ "build": "tsc -p tsconfig.json",+ "start": "node dist/index.js",+ "test": "vitest run",+ "typecheck": "tsc -p tsconfig.json --noEmit"+ },+ "dependencies": {+ "express": "^5.2.1"+ },+ "devDependencies": {+ "@types/express": "^5.0.6",+ "@types/node": "^26.2.0",+ "@types/supertest": "^7.0.2",+ "supertest": "^7.2.2",+ "tsx": "^4.23.12",+ "typescript": "^7.0.2",+ "vitest": "^4.1.11"+ }+}diff --git a/server/src/app.ts b/server/src/app.tsnew file mode 100644index 0000000..27fd6fd--- /dev/null+++ b/server/src/app.ts@@ -0,0 +1,188 @@+import express, { type NextFunction, type Request, type Response } from 'express';+import fs from 'node:fs/promises';+import path from 'node:path';+import { randomUUID } from 'node:crypto';+import type { JsonStore, Library } from './library.js';+import type { Poller } from './poller.js';+import { UpstreamClient, UpstreamError } from './upstream.js';+import { normalizeGenerate, ValidationError } from './validate.js';+import { DEFAULT_FORMATS, type Template, type Track, type UpstreamHealth } from './types.js';+import { extFor } from './poller.js';++export interface AppDeps {+ library: Library;+ templates: JsonStore<Template>;+ upstream: UpstreamClient;+ poller: Poller;+ tracksDir: string;+ staticDir?: string | null;+ log?: (msg: string) => void;+}++const MIME: Record<string, string> = { wav: 'audio/wav', flac: 'audio/flac', mp3: 'audio/mpeg' };++export function createApp(deps: AppDeps) {+ const { library, templates, upstream, poller, tracksDir } = deps;+ const log = deps.log ?? ((m: string) => console.log(`[app] ${m}`));+ const app = express();+ app.use(express.json({ limit: '1mb' }));++ let lastHealth: UpstreamHealth | null = null;++ app.get('/api/health', async (_req, res) => {+ try {+ lastHealth = await upstream.health();+ poller.upstreamReachable = true;+ res.json({ upstreamReachable: true, ...lastHealth });+ } catch (err) {+ poller.upstreamReachable = false;+ res.json({ upstreamReachable: false, ready: false, busy: false, queued: 0, formats: lastHealth?.formats ?? DEFAULT_FORMATS, error: (err as Error).message });+ }+ });++ app.get('/api/library', (_req, res) => {+ res.json(library.all());+ });++ app.post('/api/generate', async (req, res, next) => {+ try {+ const formats = lastHealth?.formats?.length ? lastHealth.formats : DEFAULT_FORMATS;+ const g = normalizeGenerate(req.body, formats);+ const groupId = randomUUID();+ const created: Track[] = [];+ for (let i = 0; i < g.takes; i++) {+ const seed = g.seed === null ? null : g.seed + i;+ const track: Track = {+ id: randomUUID(),+ groupId,+ takeIndex: i,+ jobId: null,+ title: g.title || titleFromPrompt(g.prompt),+ prompt: g.prompt,+ lyrics: g.lyrics,+ duration: g.duration,+ seed,+ steps: g.steps,+ format: g.format,+ status: 'queued',+ progress: 0,+ stage: 'submitting',+ eta: null,+ error: null,+ file: null,+ createdAt: new Date().toISOString(),+ finishedAt: null,+ };+ try {+ const { job_id } = await upstream.generate({ prompt: g.prompt, lyrics: g.lyrics, duration: g.duration, seed, steps: g.steps, format: g.format });+ track.jobId = job_id;+ track.stage = 'queued';+ } catch (err) {+ track.status = 'error';+ track.stage = 'error';+ track.error = (err as Error).message;+ log(`generate failed: ${track.error}`);+ }+ await library.add(track);+ created.push(track);+ }+ void poller.tick();+ res.status(201).json(created);+ } catch (err) {+ next(err);+ }+ });++ app.delete('/api/tracks/:id', async (req, res) => {+ const track = library.get(req.params.id);+ if (!track) return res.status(404).json({ error: 'not found' });+ if (track.jobId && (track.status === 'queued' || track.status === 'running')) {+ try {+ await upstream.cancel(track.jobId);+ } catch (err) {+ log(`cancel ${track.jobId} failed: ${(err as Error).message}`);+ }+ }+ if (track.file) {+ await fs.rm(path.join(tracksDir, track.file), { force: true });+ }+ await library.remove(track.id);+ res.json({ ok: true });+ });++ app.get('/api/tracks/:id/audio', (req, res) => {+ const track = library.get(req.params.id);+ if (!track || !track.file) return res.status(404).json({ error: 'no audio' });+ const abs = path.join(tracksDir, track.file);+ const type = MIME[extFor(track.format)] ?? 'application/octet-stream';+ const download = req.query.download !== undefined;+ res.sendFile(abs, {+ headers: {+ 'Content-Type': type,+ ...(download ? { 'Content-Disposition': `attachment; filename="${safeName(track.title)}.${extFor(track.format)}"` } : {}),+ },+ }, (err) => {+ if (err && !res.headersSent) res.status(404).json({ error: 'file missing' });+ });+ });++ app.get('/api/templates', (_req, res) => {+ res.json(templates.all());+ });++ app.post('/api/templates', async (req, res, next) => {+ try {+ const b = (req.body ?? {}) as Record<string, unknown>;+ const name = typeof b.name === 'string' ? b.name.trim().slice(0, 80) : '';+ if (!name) throw new ValidationError('name is required');+ const g = normalizeGenerate({ ...b, prompt: b.prompt, takes: 1 }, lastHealth?.formats?.length ? lastHealth.formats : DEFAULT_FORMATS);+ const existing = templates.all().find((t) => t.name.toLowerCase() === name.toLowerCase());+ const tpl: Template = {+ id: existing?.id ?? randomUUID(),+ name,+ prompt: g.prompt,+ lyrics: g.lyrics,+ duration: g.duration,+ steps: g.steps,+ format: g.format,+ createdAt: new Date().toISOString(),+ };+ if (existing) await templates.update(existing.id, tpl);+ else await templates.add(tpl);+ res.status(existing ? 200 : 201).json(tpl);+ } catch (err) {+ next(err);+ }+ });++ app.delete('/api/templates/:id', async (req, res) => {+ const removed = await templates.remove(req.params.id);+ if (!removed) return res.status(404).json({ error: 'not found' });+ res.json({ ok: true });+ });++ if (deps.staticDir) {+ app.use(express.static(deps.staticDir));+ app.get(/^(?!\/api\/).*/, (_req, res) => res.sendFile(path.join(deps.staticDir!, 'index.html')));+ }++ app.use((err: unknown, _req: Request, res: Response, _next: NextFunction) => {+ if (err instanceof ValidationError) return res.status(400).json({ error: err.message });+ if (err instanceof UpstreamError) return res.status(502).json({ error: err.message });+ if (err && typeof err === 'object' && 'type' in err && (err as { type: string }).type === 'entity.parse.failed') {+ return res.status(400).json({ error: 'invalid JSON' });+ }+ log(`unhandled: ${(err as Error).stack ?? err}`);+ res.status(500).json({ error: 'internal error' });+ });++ return app;+}++export function titleFromPrompt(prompt: string): string {+ const cleaned = prompt.replace(/^(Global Metadata|Vocal Details|Arrangement):\s*/i, '').replace(/\s+/g, ' ').trim();+ const words = cleaned.split(' ').slice(0, 6).join(' ');+ return words.length > 48 ? `${words.slice(0, 45)}…` : words || 'Untitled';+}++const safeName = (s: string) => s.replace(/[^\w\- ]+/g, '').trim().slice(0, 60) || 'track';diff --git a/server/src/config.ts b/server/src/config.tsnew file mode 100644index 0000000..95a8e86--- /dev/null+++ b/server/src/config.ts@@ -0,0 +1,21 @@+import path from 'node:path';++export interface Config {+ musicApi: string;+ apiKey: string | null;+ port: number;+ dataDir: string;+ staticDir: string | null;+}++export function loadConfig(env: NodeJS.ProcessEnv = process.env): Config {+ const port = Number(env.PORT ?? 8787);+ if (!Number.isInteger(port) || port <= 0) throw new Error(`Invalid PORT: ${env.PORT}`);+ return {+ musicApi: (env.MUSIC_API ?? 'http://127.0.0.1:7862').replace(/\/+$/, ''),+ apiKey: env.MUSIC_API_KEY?.trim() || null,+ port,+ dataDir: path.resolve(env.DATA_DIR ?? './data'),+ staticDir: env.STATIC_DIR ? path.resolve(env.STATIC_DIR) : null,+ };+}diff --git a/server/src/index.ts b/server/src/index.tsnew file mode 100644index 0000000..ce09efd--- /dev/null+++ b/server/src/index.ts@@ -0,0 +1,39 @@+import path from 'node:path';+import fs from 'node:fs';+import { fileURLToPath } from 'node:url';+import { loadConfig } from './config.js';+import { JsonStore, Library } from './library.js';+import type { Template } from './types.js';+import { UpstreamClient } from './upstream.js';+import { Poller } from './poller.js';+import { createApp } from './app.js';++const config = loadConfig();+const tracksDir = path.join(config.dataDir, 'tracks');+const library = new Library(path.join(config.dataDir, 'library.json'));+await library.load();+const templates = new JsonStore<Template>(path.join(config.dataDir, 'templates.json'));+await templates.load();++const upstream = new UpstreamClient(config.musicApi, config.apiKey);+const poller = new Poller(library, upstream, tracksDir);++const here = path.dirname(fileURLToPath(import.meta.url));+const defaultStatic = path.resolve(here, '../../web/dist');+const staticDir = config.staticDir ?? (fs.existsSync(defaultStatic) ? defaultStatic : null);++const app = createApp({ library, templates, upstream, poller, tracksDir, staticDir });+poller.start();++app.listen(config.port, () => {+ console.log(`minimax-music-ui server on http://localhost:${config.port}`);+ console.log(` upstream: ${config.musicApi}${config.apiKey ? ' (bearer set)' : ''}`);+ console.log(` data: ${config.dataDir}`);+ console.log(` static: ${staticDir ?? '(none — run web dev server)'}`);+ const inflight = library.all().filter((t) => t.status === 'queued' || t.status === 'running').length;+ if (inflight) console.log(` resuming ${inflight} in-flight track(s)`);+});++for (const sig of ['SIGINT', 'SIGTERM'] as const) {+ process.on(sig, () => { poller.stop(); process.exit(0); });+}diff --git a/server/src/library.ts b/server/src/library.tsnew file mode 100644index 0000000..1b72bf2--- /dev/null+++ b/server/src/library.ts@@ -0,0 +1,68 @@+import fs from 'node:fs/promises';+import path from 'node:path';+import type { Track } from './types.js';++/** Generic append-at-front JSON array store with atomic writes. */+export class JsonStore<T extends { id: string }> {+ private tracks: T[] = [];+ private writing: Promise<void> = Promise.resolve();++ constructor(private readonly file: string) {}++ async load(): Promise<void> {+ try {+ const raw = await fs.readFile(this.file, 'utf8');+ const parsed = JSON.parse(raw);+ this.tracks = Array.isArray(parsed) ? parsed : [];+ } catch (err) {+ if ((err as NodeJS.ErrnoException).code === 'ENOENT') {+ this.tracks = [];+ return;+ }+ throw err;+ }+ }++ all(): T[] {+ return this.tracks;+ }++ get(id: string): T | undefined {+ return this.tracks.find((t) => t.id === id);+ }++ async add(track: T): Promise<T> {+ this.tracks.unshift(track);+ await this.persist();+ return track;+ }++ async update(id: string, patch: Partial<T>): Promise<T | undefined> {+ const idx = this.tracks.findIndex((t) => t.id === id);+ if (idx === -1) return undefined;+ this.tracks[idx] = { ...this.tracks[idx], ...patch };+ await this.persist();+ return this.tracks[idx];+ }++ async remove(id: string): Promise<T | undefined> {+ const idx = this.tracks.findIndex((t) => t.id === id);+ if (idx === -1) return undefined;+ const [removed] = this.tracks.splice(idx, 1);+ await this.persist();+ return removed;+ }++ private persist(): Promise<void> {+ const snapshot = JSON.stringify(this.tracks, null, 2);+ this.writing = this.writing.then(async () => {+ await fs.mkdir(path.dirname(this.file), { recursive: true });+ const tmp = `${this.file}.${process.pid}.tmp`;+ await fs.writeFile(tmp, snapshot, 'utf8');+ await fs.rename(tmp, this.file);+ });+ return this.writing;+ }+}++export class Library extends JsonStore<Track> {}diff --git a/server/src/poller.ts b/server/src/poller.tsnew file mode 100644index 0000000..4e1d297--- /dev/null+++ b/server/src/poller.ts@@ -0,0 +1,110 @@+import fs from 'node:fs/promises';+import path from 'node:path';+import type { Library } from './library.js';+import { UpstreamClient, UpstreamError } from './upstream.js';+import type { Track, UpstreamJob } from './types.js';++const EXT: Record<string, string> = { wav: 'wav', wav16: 'wav', wav32f: 'wav', flac: 'flac', mp3: 'mp3' };+export const extFor = (format: string) => EXT[format] ?? format;++export class Poller {+ private timer: NodeJS.Timeout | null = null;+ private inflightTick: Promise<void> | null = null;+ upstreamReachable = true;++ constructor(+ private readonly library: Library,+ private readonly upstream: UpstreamClient,+ private readonly tracksDir: string,+ private readonly intervalMs = 1000,+ private readonly log: (msg: string) => void = (m) => console.log(`[poller] ${m}`),+ ) {}++ start(): void {+ if (this.timer) return;+ this.timer = setInterval(() => void this.tick(), this.intervalMs);+ }++ stop(): void {+ if (this.timer) clearInterval(this.timer);+ this.timer = null;+ }++ /** One pass over all in-flight tracks. Concurrent callers share the in-progress pass. */+ tick(): Promise<void> {+ if (this.inflightTick) return this.inflightTick;+ this.inflightTick = this.pass().finally(() => { this.inflightTick = null; });+ return this.inflightTick;+ }++ private async pass(): Promise<void> {+ const inflight = this.library.all().filter((t) => t.status === 'queued' || t.status === 'running');+ for (const track of inflight) await this.poll(track);+ }++ private async poll(track: Track): Promise<void> {+ if (!track.jobId) {+ await this.library.update(track.id, { status: 'error', error: 'no upstream job id', stage: 'error' });+ return;+ }+ let job: UpstreamJob;+ try {+ job = await this.upstream.job(track.jobId);+ this.upstreamReachable = true;+ } catch (err) {+ if (err instanceof UpstreamError && err.status === 404) {+ await this.library.update(track.id, { status: 'error', error: 'job vanished upstream', stage: 'error' });+ return;+ }+ this.upstreamReachable = false;+ this.log(`poll ${track.jobId} failed: ${(err as Error).message}`);+ return;+ }++ const base: Partial<Track> = {+ progress: typeof job.progress === 'number' ? job.progress : track.progress,+ stage: job.stage ?? track.stage,+ eta: typeof job.eta === 'number' ? job.eta : null,+ seed: typeof job.seed === 'number' ? job.seed : track.seed,+ };++ switch (job.status) {+ case 'queued':+ case 'running':+ await this.library.update(track.id, { ...base, status: job.status });+ return;+ case 'error':+ await this.library.update(track.id, { ...base, status: 'error', error: job.error ?? 'upstream error', stage: 'error', finishedAt: new Date().toISOString() });+ return;+ case 'done': {+ await this.library.update(track.id, { ...base, status: 'running', stage: 'downloading', progress: 1 });+ const rel = `${track.id}.${extFor(track.format)}`;+ const dest = path.join(this.tracksDir, rel);+ try {+ await fs.mkdir(this.tracksDir, { recursive: true });+ await this.upstream.downloadAudio(track.jobId, dest);+ } catch (err) {+ this.log(`download ${track.jobId} failed: ${(err as Error).message}`);+ await this.library.update(track.id, { status: 'error', error: `download failed: ${(err as Error).message}`, stage: 'error' });+ return;+ }+ await this.library.update(track.id, {+ status: 'done',+ stage: 'done',+ progress: 1,+ eta: 0,+ file: rel,+ finishedAt: new Date().toISOString(),+ sampleRate: job.sampling_rate,+ channels: job.channels,+ encoding: job.encoding,+ peakDbfs: job.peak_dbfs,+ clipped: job.clipped,+ });+ return;+ }+ default:+ this.log(`unknown status ${(job as { status: string }).status} for ${track.jobId}`);+ }+ }+}diff --git a/server/src/types.ts b/server/src/types.tsnew file mode 100644index 0000000..c01fd00--- /dev/null+++ b/server/src/types.ts@@ -0,0 +1,79 @@+export type TrackStatus = 'queued' | 'running' | 'done' | 'error';++export interface Track {+ id: string;+ groupId: string;+ takeIndex: number;+ jobId: string | null;+ title: string;+ prompt: string;+ lyrics: string;+ duration: number;+ seed: number | null;+ steps: number | null;+ format: string;+ status: TrackStatus;+ progress: number;+ stage: string;+ eta: number | null;+ error: string | null;+ file: string | null;+ createdAt: string;+ finishedAt: string | null;+ sampleRate?: number;+ channels?: number;+ encoding?: string;+ peakDbfs?: number;+ clipped?: boolean;+}++export interface GenerateRequest {+ title: string;+ prompt: string;+ lyrics: string;+ duration: number;+ seed: number | null;+ steps: number | null;+ format: string;+ takes: number;+}++export interface UpstreamHealth {+ ready: boolean;+ busy: boolean;+ queued: number;+ sampling_rate?: number;+ formats?: string[];+}++export interface UpstreamJob {+ job_id: string;+ status: TrackStatus;+ progress?: number;+ stage?: string;+ elapsed?: number;+ eta?: number | null;+ seed?: number | null;+ duration?: number;+ format?: string;+ error?: string;+ audio_url?: string;+ sampling_rate?: number;+ channels?: number;+ encoding?: string;+ peak_dbfs?: number;+ clipped?: boolean;+}++export const DEFAULT_FORMATS = ['wav', 'wav16', 'wav32f', 'flac', 'mp3'];++export interface Template {+ id: string;+ name: string;+ prompt: string;+ lyrics: string;+ duration: number;+ steps: number | null;+ format: string;+ createdAt: string;+}diff --git a/server/src/upstream.ts b/server/src/upstream.tsnew file mode 100644index 0000000..c288ef1--- /dev/null+++ b/server/src/upstream.ts@@ -0,0 +1,72 @@+import fs from 'node:fs';+import { pipeline } from 'node:stream/promises';+import { Readable } from 'node:stream';+import type { UpstreamHealth, UpstreamJob } from './types.js';++export interface UpstreamGenerateBody {+ prompt: string;+ lyrics: string;+ duration: number;+ seed: number | null;+ steps: number | null;+ format: string;+}++export class UpstreamError extends Error {+ constructor(message: string, readonly status: number | null = null) {+ super(message);+ }+}++export class UpstreamClient {+ constructor(private readonly baseUrl: string, private readonly apiKey: string | null = null) {}++ private headers(extra: Record<string, string> = {}): Record<string, string> {+ const h: Record<string, string> = { ...extra };+ if (this.apiKey) h.Authorization = `Bearer ${this.apiKey}`;+ return h;+ }++ private async req(path: string, init: RequestInit = {}): Promise<Response> {+ let res: Response;+ try {+ res = await fetch(`${this.baseUrl}${path}`, { ...init, headers: this.headers(init.headers as Record<string, string>) });+ } catch (err) {+ throw new UpstreamError(`upstream unreachable: ${(err as Error).message}`);+ }+ if (!res.ok) {+ const text = await res.text().catch(() => '');+ throw new UpstreamError(`upstream ${res.status} on ${path}: ${text.slice(0, 300)}`, res.status);+ }+ return res;+ }++ async health(): Promise<UpstreamHealth> {+ return (await this.req('/health')).json() as Promise<UpstreamHealth>;+ }++ async generate(body: UpstreamGenerateBody): Promise<{ job_id: string }> {+ const res = await this.req('/generate', {+ method: 'POST',+ headers: { 'Content-Type': 'application/json' },+ body: JSON.stringify({ ...body, wait: false }),+ });+ const json = (await res.json()) as { job_id?: string };+ if (!json.job_id) throw new UpstreamError('upstream /generate returned no job_id');+ return { job_id: json.job_id };+ }++ async job(id: string): Promise<UpstreamJob> {+ return (await this.req(`/jobs/${encodeURIComponent(id)}`)).json() as Promise<UpstreamJob>;+ }++ async downloadAudio(id: string, dest: string): Promise<void> {+ const res = await this.req(`/jobs/${encodeURIComponent(id)}/audio`);+ if (!res.body) throw new UpstreamError('empty audio body');+ await pipeline(Readable.fromWeb(res.body as import('node:stream/web').ReadableStream), fs.createWriteStream(dest));+ }++ async cancel(id: string): Promise<void> {+ await this.req(`/jobs/${encodeURIComponent(id)}`, { method: 'DELETE' });+ }+}diff --git a/server/src/validate.ts b/server/src/validate.tsnew file mode 100644index 0000000..a8e9ff8--- /dev/null+++ b/server/src/validate.ts@@ -0,0 +1,45 @@+import { DEFAULT_FORMATS, type GenerateRequest } from './types.js';++export class ValidationError extends Error {+ status = 400;+}++const clamp = (n: number, lo: number, hi: number) => Math.min(hi, Math.max(lo, n));++function optInt(v: unknown, name: string): number | null {+ if (v === undefined || v === null || v === '') return null;+ const n = typeof v === 'string' ? Number(v) : v;+ if (typeof n !== 'number' || !Number.isInteger(n)) throw new ValidationError(`${name} must be an integer`);+ return n;+}++export function normalizeGenerate(body: unknown, formats: string[] = DEFAULT_FORMATS): GenerateRequest {+ if (!body || typeof body !== 'object') throw new ValidationError('body must be an object');+ const b = body as Record<string, unknown>;++ const prompt = typeof b.prompt === 'string' ? b.prompt.trim() : '';+ if (!prompt) throw new ValidationError('prompt is required');++ const lyricsRaw = typeof b.lyrics === 'string' ? b.lyrics.trim() : '';+ const lyrics = lyricsRaw || '[Instrumental]';++ const durationRaw = b.duration === undefined ? 60 : Number(b.duration);+ if (!Number.isFinite(durationRaw)) throw new ValidationError('duration must be a number');+ const duration = clamp(Math.round(durationRaw), 5, 360);++ const seed = optInt(b.seed, 'seed');+ const steps = optInt(b.steps, 'steps');+ if (steps !== null && (steps < 10 || steps > 100)) throw new ValidationError('steps must be 10–100');++ const format = typeof b.format === 'string' && b.format ? b.format : 'wav';+ const allowed = formats.length ? formats : DEFAULT_FORMATS;+ if (!allowed.includes(format)) throw new ValidationError(`format must be one of ${allowed.join(', ')}`);++ const takesRaw = b.takes === undefined ? 1 : Number(b.takes);+ if (!Number.isFinite(takesRaw)) throw new ValidationError('takes must be a number');+ const takes = clamp(Math.round(takesRaw), 1, 4);++ const title = typeof b.title === 'string' ? b.title.trim().slice(0, 120) : '';++ return { title, prompt, lyrics, duration, seed, steps, format, takes };+}diff --git a/server/test/app.test.ts b/server/test/app.test.tsnew file mode 100644index 0000000..fede2da--- /dev/null+++ b/server/test/app.test.ts@@ -0,0 +1,120 @@+import { describe, it, expect, afterEach } from 'vitest';+import request from 'supertest';+import fs from 'node:fs/promises';+import os from 'node:os';+import path from 'node:path';+import { JsonStore, Library } from '../src/library.js';+import type { Template } from '../src/types.js';+import { UpstreamClient } from '../src/upstream.js';+import { Poller } from '../src/poller.js';+import { createApp, titleFromPrompt } from '../src/app.js';+import { startFakeUpstream, type FakeUpstream } from './fakeUpstream.js';++let fake: FakeUpstream | null = null;+afterEach(async () => { await fake?.close(); fake = null; });++async function setup(opts: Parameters<typeof startFakeUpstream>[0] = {}, apiKey: string | null = null) {+ fake = await startFakeUpstream(opts);+ const dir = await fs.mkdtemp(path.join(os.tmpdir(), 'app-'));+ const lib = new Library(path.join(dir, 'library.json'));+ await lib.load();+ const upstream = new UpstreamClient(fake.url, apiKey);+ const tracksDir = path.join(dir, 'tracks');+ const poller = new Poller(lib, upstream, tracksDir, 1000, () => {});+ const templates = new JsonStore<Template>(path.join(dir, 'templates.json'));+ await templates.load();+ const app = createApp({ library: lib, templates, upstream, poller, tracksDir, log: () => {} });+ return { app, lib, poller, tracksDir };+}++describe('app', () => {+ it('health proxies upstream and reports reachability', async () => {+ const { app } = await setup({ formats: ['flac'] });+ const res = await request(app).get('/api/health');+ expect(res.body).toMatchObject({ upstreamReachable: true, ready: true, formats: ['flac'] });+ await fake!.close(); fake = null;+ const down = await request(app).get('/api/health');+ expect(down.body.upstreamReachable).toBe(false);+ expect(down.body.formats).toEqual(['flac']);+ });++ it('generate creates N takes with incrementing seeds and forwards bearer', async () => {+ const { app, lib } = await setup({}, 'sekrit');+ const res = await request(app).post('/api/generate').send({ prompt: 'lo-fi hip hop, 80 BPM', takes: 3, seed: 100, format: 'flac', duration: 20 });+ expect(res.status).toBe(201);+ expect(res.body).toHaveLength(3);+ expect(res.body.map((t: { seed: number }) => t.seed)).toEqual([100, 101, 102]);+ expect(res.body[0].groupId).toBe(res.body[2].groupId);+ expect(res.body[0].title).toBe('lo-fi hip hop, 80 BPM');+ expect(res.body.every((t: { jobId: string }) => t.jobId)).toBe(true);+ expect(lib.all()).toHaveLength(3);+ const gen = fake!.requests.filter((r) => r.path === '/generate');+ expect(gen).toHaveLength(3);+ expect(gen[0].auth).toBe('Bearer sekrit');+ expect(gen[0].body).toMatchObject({ prompt: 'lo-fi hip hop, 80 BPM', lyrics: '[Instrumental]', duration: 20, format: 'flac', wait: false });+ });++ it('rejects bad input', async () => {+ const { app } = await setup();+ expect((await request(app).post('/api/generate').send({})).status).toBe(400);+ expect((await request(app).post('/api/generate').send({ prompt: 'x', steps: 3 })).status).toBe(400);+ });++ it('marks track error when upstream is down at submit', async () => {+ const { app } = await setup();+ await fake!.close(); fake = null;+ const res = await request(app).post('/api/generate').send({ prompt: 'x' });+ expect(res.status).toBe(201);+ expect(res.body[0]).toMatchObject({ status: 'error' });+ expect(res.body[0].error).toMatch(/unreachable/);+ });++ it('full cycle: generate → poll → audio → delete', async () => {+ const { app, poller, tracksDir } = await setup();+ const { body } = await request(app).post('/api/generate').send({ prompt: 'ambient piano', format: 'mp3' });+ const id = body[0].id;+ for (let i = 0; i < 8; i++) await poller.tick();+ const lib = await request(app).get('/api/library');+ expect(lib.body[0]).toMatchObject({ id, status: 'done', file: `${id}.mp3` });+ const audio = await request(app).get(`/api/tracks/${id}/audio`);+ expect(audio.status).toBe(200);+ expect(audio.headers['content-type']).toBe('audio/mpeg');+ const dl = await request(app).get(`/api/tracks/${id}/audio?download`);+ expect(dl.headers['content-disposition']).toMatch(/attachment; filename="ambient piano.mp3"/);+ const del = await request(app).delete(`/api/tracks/${id}`);+ expect(del.status).toBe(200);+ await expect(fs.access(path.join(tracksDir, `${id}.mp3`))).rejects.toThrow();+ expect((await request(app).get('/api/library')).body).toEqual([]);+ expect((await request(app).delete(`/api/tracks/${id}`)).status).toBe(404);+ });++ it('delete cancels in-flight jobs upstream', async () => {+ const { app } = await setup();+ const { body } = await request(app).post('/api/generate').send({ prompt: 'x' });+ await request(app).delete(`/api/tracks/${body[0].id}`);+ expect(fake!.requests.some((r) => r.method === 'DELETE' && r.path === `/jobs/${body[0].jobId}`)).toBe(true);+ });++ it('templates: create, upsert by name, list, delete', async () => {+ const { app } = await setup();+ expect((await request(app).post('/api/templates').send({ prompt: 'x' })).status).toBe(400);+ expect((await request(app).post('/api/templates').send({ name: 'Lo-fi' })).status).toBe(400);+ const c = await request(app).post('/api/templates').send({ name: 'Lo-fi', prompt: 'lo-fi hip hop', lyrics: '', duration: 90, format: 'mp3', steps: 40 });+ expect(c.status).toBe(201);+ expect(c.body).toMatchObject({ name: 'Lo-fi', prompt: 'lo-fi hip hop', lyrics: '[Instrumental]', duration: 90, format: 'mp3', steps: 40 });+ const u = await request(app).post('/api/templates').send({ name: 'lo-fi', prompt: 'lo-fi v2' });+ expect(u.status).toBe(200);+ expect(u.body.id).toBe(c.body.id);+ const list = await request(app).get('/api/templates');+ expect(list.body).toHaveLength(1);+ expect(list.body[0].prompt).toBe('lo-fi v2');+ expect((await request(app).delete(`/api/templates/${c.body.id}`)).status).toBe(200);+ expect((await request(app).delete(`/api/templates/${c.body.id}`)).status).toBe(404);+ expect((await request(app).get('/api/templates')).body).toEqual([]);+ });++ it('titleFromPrompt strips structured prefix', () => {+ expect(titleFromPrompt('Global Metadata: genre dream pop, 92 BPM, D major, wistful')).toBe('genre dream pop, 92 BPM, D');+ expect(titleFromPrompt(' ')).toBe('Untitled');+ });+});diff --git a/server/test/fakeUpstream.ts b/server/test/fakeUpstream.tsnew file mode 100644index 0000000..2bf40b8--- /dev/null+++ b/server/test/fakeUpstream.ts@@ -0,0 +1,111 @@+import express from 'express';+import type { Server } from 'node:http';+import type { UpstreamJob } from '../src/types.js';++/**+ * Fake of the MiniMax-Music3 inference API. Each POST /generate creates a job whose+ * GET /jobs/:id responses walk a scripted list of states (last state repeats).+ */+export interface FakeUpstreamOptions {+ formats?: string[];+ ready?: boolean;+ /** states per job in order; default queued → running → done */+ script?: (jobId: string, body: Record<string, unknown>) => UpstreamJob[];+ audioBytes?: Buffer;+ /** milliseconds between auto-advances; 0 = advance on every poll */+ autoAdvanceMs?: number;+}++export interface FakeUpstream {+ url: string;+ app: express.Express;+ close(): Promise<void>;+ requests: { method: string; path: string; body?: unknown; auth?: string }[];+ jobs: Map<string, { states: UpstreamJob[]; idx: number; body: Record<string, unknown>; last: number }>;+}++let counter = 0;++export function defaultScript(jobId: string, body: Record<string, unknown>): UpstreamJob[] {+ const duration = Number(body.duration ?? 60);+ const format = String(body.format ?? 'wav');+ const seed = typeof body.seed === 'number' ? body.seed : 424242;+ return [+ { job_id: jobId, status: 'queued', progress: 0, stage: 'queued', eta: null, seed, duration, format },+ { job_id: jobId, status: 'running', progress: 0.1, stage: 'generating audio tokens', eta: duration * 2.7, seed, duration, format },+ { job_id: jobId, status: 'running', progress: 0.5, stage: 'step 210/420', eta: duration * 1.3, seed, duration, format },+ { job_id: jobId, status: 'running', progress: 0.95, stage: 'decoding audio', eta: 5, seed, duration, format },+ {+ job_id: jobId, status: 'done', progress: 1, stage: 'done', eta: 0, seed, duration, format,+ audio_url: `/jobs/${jobId}/audio`, sampling_rate: 44100, channels: 2, encoding: 'PCM_24', peak_dbfs: -1.2, clipped: false,+ },+ ];+}++export async function startFakeUpstream(opts: FakeUpstreamOptions = {}): Promise<FakeUpstream> {+ const app = express();+ app.use(express.json());+ const requests: FakeUpstream['requests'] = [];+ const jobs: FakeUpstream['jobs'] = new Map();+ const audio = opts.audioBytes ?? Buffer.from('RIFF-fake-audio');+ const autoAdvanceMs = opts.autoAdvanceMs ?? 0;++ app.use((req, _res, next) => {+ requests.push({ method: req.method, path: req.path, body: req.body, auth: req.header('authorization') ?? undefined });+ next();+ });++ app.get('/health', (_req, res) => {+ const busy = [...jobs.values()].some((j) => j.states[j.idx].status === 'running');+ const queued = [...jobs.values()].filter((j) => j.states[j.idx].status === 'queued').length;+ res.json({ ready: opts.ready ?? true, busy, queued, sampling_rate: 44100, formats: opts.formats ?? ['wav', 'wav16', 'wav32f', 'flac', 'mp3'] });+ });++ app.post('/generate', (req, res) => {+ if (!req.body?.prompt) return res.status(422).json({ detail: 'prompt required' });+ const jobId = `job${(++counter).toString(16).padStart(4, '0')}`;+ const states = (opts.script ?? defaultScript)(jobId, req.body);+ jobs.set(jobId, { states, idx: 0, body: req.body, last: Date.now() });+ res.json({ job_id: jobId, status: 'queued' });+ });++ app.get('/jobs', (_req, res) => {+ res.json([...jobs.entries()].reverse().map(([, j]) => j.states[j.idx]));+ });++ app.get('/jobs/:id', (req, res) => {+ const j = jobs.get(req.params.id);+ if (!j) return res.status(404).json({ detail: 'not found' });+ const state = j.states[j.idx];+ const now = Date.now();+ if (j.idx < j.states.length - 1 && now - j.last >= autoAdvanceMs) {+ j.idx++;+ j.last = now;+ }+ res.json(state);+ });++ app.get('/jobs/:id/audio', (req, res) => {+ const j = jobs.get(req.params.id);+ if (!j || j.states[j.idx].status !== 'done') return res.status(404).json({ detail: 'not ready' });+ res.setHeader('Content-Type', 'audio/wav');+ res.send(audio);+ });++ app.delete('/jobs/:id', (req, res) => {+ if (!jobs.delete(req.params.id)) return res.status(404).json({ detail: 'not found' });+ res.json({ ok: true });+ });++ const server: Server = await new Promise((resolve) => {+ const s = app.listen(opts.autoAdvanceMs !== undefined && process.env.FAKE_PORT ? Number(process.env.FAKE_PORT) : 0, '127.0.0.1', () => resolve(s));+ });+ const addr = server.address() as { port: number };+ return {+ url: `http://127.0.0.1:${addr.port}`,+ app,+ requests,+ jobs,+ close: () => new Promise((resolve, reject) => server.close((e) => (e ? reject(e) : resolve()))),+ };+}diff --git a/server/test/fakeUpstreamServer.ts b/server/test/fakeUpstreamServer.tsnew file mode 100644index 0000000..c427017--- /dev/null+++ b/server/test/fakeUpstreamServer.ts@@ -0,0 +1,9 @@+import fs from 'node:fs';+import { startFakeUpstream } from './fakeUpstream.js';++// Standalone fake for `npm run dev:fake`: jobs advance one state every ~2.5 s.+// FAKE_AUDIO=path/to/file.wav makes it serve a real, playable file.+process.env.FAKE_PORT ??= '7999';+const audioBytes = process.env.FAKE_AUDIO ? fs.readFileSync(process.env.FAKE_AUDIO) : undefined;+const fake = await startFakeUpstream({ autoAdvanceMs: Number(process.env.FAKE_ADVANCE_MS ?? 2500), audioBytes });+console.log(`fake upstream listening on ${fake.url}${audioBytes ? ` (audio: ${process.env.FAKE_AUDIO})` : ''}`);diff --git a/server/test/library.test.ts b/server/test/library.test.tsnew file mode 100644index 0000000..b03aab3--- /dev/null+++ b/server/test/library.test.ts@@ -0,0 +1,33 @@+import { describe, it, expect } from 'vitest';+import fs from 'node:fs/promises';+import os from 'node:os';+import path from 'node:path';+import { Library } from '../src/library.js';+import type { Track } from '../src/types.js';++const mk = (id: string): Track => ({+ id, groupId: 'g', takeIndex: 0, jobId: null, title: id, prompt: 'p', lyrics: '[Instrumental]',+ duration: 60, seed: null, steps: null, format: 'wav', status: 'queued', progress: 0, stage: 'queued',+ eta: null, error: null, file: null, createdAt: new Date().toISOString(), finishedAt: null,+});++describe('Library', () => {+ it('loads empty when file missing, persists and reloads', async () => {+ const dir = await fs.mkdtemp(path.join(os.tmpdir(), 'lib-'));+ const file = path.join(dir, 'library.json');+ const lib = new Library(file);+ await lib.load();+ expect(lib.all()).toEqual([]);+ await lib.add(mk('a'));+ await lib.add(mk('b'));+ expect(lib.all().map((t) => t.id)).toEqual(['b', 'a']);+ await lib.update('a', { status: 'done', progress: 1 });+ expect(lib.get('a')?.status).toBe('done');+ const removed = await lib.remove('b');+ expect(removed?.id).toBe('b');+ const lib2 = new Library(file);+ await lib2.load();+ expect(lib2.all().map((t) => t.id)).toEqual(['a']);+ expect(await lib2.update('nope', {})).toBeUndefined();+ });+});diff --git a/server/test/poller.test.ts b/server/test/poller.test.tsnew file mode 100644index 0000000..8cfa4b8--- /dev/null+++ b/server/test/poller.test.ts@@ -0,0 +1,74 @@+import { describe, it, expect, afterEach } from 'vitest';+import fs from 'node:fs/promises';+import os from 'node:os';+import path from 'node:path';+import { Library } from '../src/library.js';+import { UpstreamClient } from '../src/upstream.js';+import { Poller } from '../src/poller.js';+import { startFakeUpstream, type FakeUpstream } from './fakeUpstream.js';+import type { Track } from '../src/types.js';++let fake: FakeUpstream | null = null;+afterEach(async () => { await fake?.close(); fake = null; });++async function setup(opts: Parameters<typeof startFakeUpstream>[0] = {}) {+ fake = await startFakeUpstream(opts);+ const dir = await fs.mkdtemp(path.join(os.tmpdir(), 'poller-'));+ const lib = new Library(path.join(dir, 'library.json'));+ await lib.load();+ const upstream = new UpstreamClient(fake.url);+ const poller = new Poller(lib, upstream, path.join(dir, 'tracks'), 1000, () => {});+ return { dir, lib, upstream, poller };+}++const track = (jobId: string, format = 'flac'): Track => ({+ id: 't1', groupId: 'g', takeIndex: 0, jobId, title: 'T', prompt: 'p', lyrics: '[Instrumental]', duration: 30,+ seed: null, steps: null, format, status: 'queued', progress: 0, stage: 'queued', eta: null, error: null,+ file: null, createdAt: new Date().toISOString(), finishedAt: null,+});++describe('Poller', () => {+ it('walks queued → running → done and downloads the file', async () => {+ const { dir, lib, upstream, poller } = await setup();+ const { job_id } = await upstream.generate({ prompt: 'p', lyrics: '[Instrumental]', duration: 30, seed: null, steps: null, format: 'flac' });+ await lib.add(track(job_id));+ await poller.tick(); // queued+ expect(lib.get('t1')?.status).toBe('queued');+ await poller.tick(); // running 0.1+ expect(lib.get('t1')).toMatchObject({ status: 'running', progress: 0.1, stage: 'generating audio tokens', seed: 424242 });+ await poller.tick(); await poller.tick(); // 0.5, 0.95+ await poller.tick(); // done → download+ const t = lib.get('t1')!;+ expect(t.status).toBe('done');+ expect(t.file).toBe('t1.flac');+ expect(t.sampleRate).toBe(44100);+ expect(t.peakDbfs).toBe(-1.2);+ const bytes = await fs.readFile(path.join(dir, 'tracks', 't1.flac'));+ expect(bytes.toString()).toBe('RIFF-fake-audio');+ await poller.tick(); // no-op once done+ expect(fake!.requests.filter((r) => r.path.endsWith('/audio')).length).toBe(1);+ });++ it('records upstream error', async () => {+ const { lib, upstream, poller } = await setup({+ script: (id) => [{ job_id: id, status: 'error', error: 'CUDA OOM' }],+ });+ const { job_id } = await upstream.generate({ prompt: 'p', lyrics: '[Instrumental]', duration: 30, seed: null, steps: null, format: 'wav' });+ await lib.add(track(job_id, 'wav'));+ await poller.tick();+ expect(lib.get('t1')).toMatchObject({ status: 'error', error: 'CUDA OOM' });+ });++ it('marks vanished jobs as error and survives unreachable upstream', async () => {+ const { lib, poller } = await setup();+ await lib.add(track('nope'));+ await poller.tick();+ expect(lib.get('t1')?.status).toBe('error');+ await lib.update('t1', { status: 'queued', error: null });+ await fake!.close();+ fake = null;+ await poller.tick();+ expect(lib.get('t1')?.status).toBe('queued');+ expect(poller.upstreamReachable).toBe(false);+ });+});diff --git a/server/test/validate.test.ts b/server/test/validate.test.tsnew file mode 100644index 0000000..66d46b6--- /dev/null+++ b/server/test/validate.test.ts@@ -0,0 +1,32 @@+import { describe, it, expect } from 'vitest';+import { normalizeGenerate, ValidationError } from '../src/validate.js';++describe('normalizeGenerate', () => {+ it('rejects empty prompt', () => {+ expect(() => normalizeGenerate({ prompt: ' ' })).toThrow(ValidationError);+ });+ it('defaults lyrics to [Instrumental]', () => {+ expect(normalizeGenerate({ prompt: 'x' }).lyrics).toBe('[Instrumental]');+ expect(normalizeGenerate({ prompt: 'x', lyrics: '' }).lyrics).toBe('[Instrumental]');+ expect(normalizeGenerate({ prompt: 'x', lyrics: '[Verse]\nhi' }).lyrics).toBe('[Verse]\nhi');+ });+ it('clamps duration and takes', () => {+ expect(normalizeGenerate({ prompt: 'x', duration: 400 }).duration).toBe(360);+ expect(normalizeGenerate({ prompt: 'x', duration: 1 }).duration).toBe(5);+ expect(normalizeGenerate({ prompt: 'x' }).duration).toBe(60);+ expect(normalizeGenerate({ prompt: 'x', takes: 0 }).takes).toBe(1);+ expect(normalizeGenerate({ prompt: 'x', takes: 9 }).takes).toBe(4);+ });+ it('validates steps and seed', () => {+ expect(() => normalizeGenerate({ prompt: 'x', steps: 5 })).toThrow(/steps/);+ expect(normalizeGenerate({ prompt: 'x', steps: null }).steps).toBeNull();+ expect(normalizeGenerate({ prompt: 'x', steps: '40' }).steps).toBe(40);+ expect(() => normalizeGenerate({ prompt: 'x', seed: 1.5 })).toThrow(/seed/);+ expect(normalizeGenerate({ prompt: 'x', seed: '' }).seed).toBeNull();+ });+ it('validates format against upstream list', () => {+ expect(() => normalizeGenerate({ prompt: 'x', format: 'ogg' })).toThrow(/format/);+ expect(normalizeGenerate({ prompt: 'x', format: 'flac' }, ['flac']).format).toBe('flac');+ expect(() => normalizeGenerate({ prompt: 'x', format: 'wav' }, ['flac'])).toThrow(/format/);+ });+});diff --git a/server/tsconfig.json b/server/tsconfig.jsonnew file mode 100644index 0000000..ebf301a--- /dev/null+++ b/server/tsconfig.json@@ -0,0 +1,14 @@+{+ "compilerOptions": {+ "target": "ES2022",+ "module": "NodeNext",+ "moduleResolution": "NodeNext",+ "outDir": "dist",+ "rootDir": "src",+ "strict": true,+ "esModuleInterop": true,+ "skipLibCheck": true,+ "types": ["node"]+ },+ "include": ["src"]+}diff --git a/web/index.html b/web/index.htmlnew file mode 100644index 0000000..0e7ab24--- /dev/null+++ b/web/index.html@@ -0,0 +1,13 @@+<!doctype html>+<html lang="en">+ <head>+ <meta charset="UTF-8" />+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />+ <title>MiniMax Music</title>+ <link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><text y='.9em' font-size='90'>🎵</text></svg>" />+ </head>+ <body class="bg-ink-950 text-zinc-100">+ <div id="root"></div>+ <script type="module" src="/src/main.tsx"></script>+ </body>+</html>diff --git a/web/package.json b/web/package.jsonnew file mode 100644index 0000000..f1567b2--- /dev/null+++ b/web/package.json@@ -0,0 +1,25 @@+{+ "name": "@minimax-music-ui/web",+ "private": true,+ "version": "0.1.0",+ "type": "module",+ "scripts": {+ "dev": "vite",+ "build": "tsc -p tsconfig.json --noEmit && vite build",+ "preview": "vite preview",+ "typecheck": "tsc -p tsconfig.json --noEmit"+ },+ "dependencies": {+ "react": "^19.2.8",+ "react-dom": "^19.2.8"+ },+ "devDependencies": {+ "@tailwindcss/vite": "^4.3.3",+ "@types/react": "^19.2.14",+ "@types/react-dom": "^19.2.3",+ "@vitejs/plugin-react": "^6.0.5",+ "tailwindcss": "^4.3.3",+ "typescript": "^7.0.2",+ "vite": "^8.2.1"+ }+}diff --git a/web/src/App.tsx b/web/src/App.tsxnew file mode 100644index 0000000..6b2348c--- /dev/null+++ b/web/src/App.tsx@@ -0,0 +1,122 @@+import { useCallback, useEffect, useMemo, useState } from 'react';+import { api } from './api';+import { useHealth, useLibrary } from './hooks/usePolling';+import { isInflight, type GenerateInput, type Track } from './types';+import { Sidebar, type View } from './components/Sidebar';+import { HealthPill } from './components/HealthPill';+import { CreatePanel, DEFAULT_FORM, formFromTrack, type FormState } from './components/CreatePanel';+import { TrackFeed } from './components/TrackFeed';+import { Player } from './components/Player';++const FORM_KEY = 'minimax-music-ui.form';++function loadForm(): FormState {+ try {+ const raw = localStorage.getItem(FORM_KEY);+ return raw ? { ...DEFAULT_FORM, ...JSON.parse(raw) } : DEFAULT_FORM;+ } catch {+ return DEFAULT_FORM;+ }+}++export default function App() {+ const [view, setView] = useState<View>('create');+ const [form, setForm] = useState<FormState>(loadForm);+ const [query, setQuery] = useState('');+ const [activeId, setActiveId] = useState<string | null>(null);+ const [playing, setPlaying] = useState(false);+ const health = useHealth();+ const { tracks, error: libError, refresh, setTracks } = useLibrary();++ useEffect(() => { localStorage.setItem(FORM_KEY, JSON.stringify(form)); }, [form]);++ const doneTracks = useMemo(() => tracks.filter((t) => t.status === 'done'), [tracks]);+ const active = useMemo(() => tracks.find((t) => t.id === activeId) ?? null, [tracks, activeId]);+ const inflight = tracks.filter(isInflight).length;++ const visible = useMemo(() => {+ if (view !== 'library' || !query.trim()) return tracks;+ const q = query.toLowerCase();+ return tracks.filter((t) => t.title.toLowerCase().includes(q) || t.prompt.toLowerCase().includes(q) || t.lyrics.toLowerCase().includes(q));+ }, [tracks, view, query]);++ const submit = useCallback(async (input: GenerateInput) => {+ const created = await api.generate(input);+ setTracks((prev) => [...created, ...prev]);+ void refresh();+ }, [refresh, setTracks]);++ const play = (t: Track) => {+ if (t.id === activeId) setPlaying((p) => !p);+ else { setActiveId(t.id); setPlaying(true); }+ };++ const step = (dir: 1 | -1) => {+ if (!doneTracks.length) return;+ const idx = doneTracks.findIndex((t) => t.id === activeId);+ const next = doneTracks[(idx + dir + doneTracks.length) % doneTracks.length];+ setActiveId(next.id);+ setPlaying(true);+ };++ const remove = async (t: Track) => {+ const verb = isInflight(t) ? 'Cancel' : 'Delete';+ if (!confirm(`${verb} “${t.title}”?`)) return;+ setTracks((prev) => prev.filter((x) => x.id !== t.id));+ if (t.id === activeId) { setActiveId(null); setPlaying(false); }+ try { await api.deleteTrack(t.id); } catch (err) { alert((err as Error).message); }+ void refresh();+ };++ const reuse = (t: Track) => { setForm(formFromTrack(t)); setView('create'); };+ const retry = (t: Track) => {+ void submit({ title: t.title, prompt: t.prompt, lyrics: t.lyrics, duration: t.duration, seed: t.seed, steps: t.steps, format: t.format, takes: 1 }).catch((e) => alert((e as Error).message));+ };++ const feed = (+ <TrackFeed+ tracks={visible}+ activeId={activeId}+ playing={playing}+ onPlay={play}+ onDelete={remove}+ onReuse={reuse}+ onRetry={retry}+ emptyHint={view === 'library' && query ? 'No tracks match your search.' : 'No tracks yet — describe a song and hit Create.'}+ />+ );++ return (+ <div className="h-full flex flex-col">+ <div className="flex-1 flex min-h-0">+ <Sidebar view={view} onChange={setView} counts={{ inflight, total: tracks.length }} />+ <main className="flex-1 flex flex-col min-w-0">+ <header className="h-14 shrink-0 flex items-center justify-between gap-3 px-4 md:px-6 border-b border-ink-700">+ <h1 className="text-base font-semibold truncate">{view === 'create' ? 'Create' : 'Library'}</h1>+ <div className="flex items-center gap-3 shrink-0">+ {libError && <span className="text-xs text-red-400">UI server: {libError}</span>}+ {health && !health.upstreamReachable && <span className="text-xs text-red-400 hidden md:inline">Set MUSIC_API and make sure the inference box is reachable</span>}+ <HealthPill health={health} />+ </div>+ </header>+ {view === 'create' ? (+ <div className="flex-1 min-h-0 grid grid-cols-1 lg:grid-cols-[440px_1fr] overflow-y-auto lg:overflow-hidden">+ <section className="lg:border-r border-b lg:border-b-0 border-ink-700 lg:min-h-0">+ <CreatePanel health={health} form={form} onFormChange={setForm} onSubmit={submit} />+ </section>+ <section className="p-4 md:p-5 lg:overflow-y-auto lg:min-h-0">{feed}</section>+ </div>+ ) : (+ <div className="flex-1 min-h-0 flex flex-col">+ <div className="px-5 pt-4">+ <input className="field max-w-md" placeholder="Search title, style, lyrics…" value={query} onChange={(e) => setQuery(e.target.value)} />+ </div>+ <section className="flex-1 p-5 overflow-y-auto min-h-0">{feed}</section>+ </div>+ )}+ </main>+ </div>+ <Player track={active} playing={playing} onPlayingChange={setPlaying} onPrev={() => step(-1)} onNext={() => step(1)} onEnded={() => step(1)} />+ </div>+ );+}diff --git a/web/src/api.ts b/web/src/api.tsnew file mode 100644index 0000000..69ceb46--- /dev/null+++ b/web/src/api.ts@@ -0,0 +1,27 @@+import type { GenerateInput, Health, Template, Track } from './types';++async function json<T>(res: Response): Promise<T> {+ if (!res.ok) {+ let msg = `${res.status} ${res.statusText}`;+ try {+ const body = await res.json();+ if (body?.error) msg = body.error;+ } catch { /* not json */ }+ throw new Error(msg);+ }+ return res.json() as Promise<T>;+}++export const api = {+ health: () => fetch('/api/health').then((r) => json<Health>(r)),+ library: () => fetch('/api/library').then((r) => json<Track[]>(r)),+ generate: (input: GenerateInput) =>+ fetch('/api/generate', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(input) }).then((r) => json<Track[]>(r)),+ deleteTrack: (id: string) => fetch(`/api/tracks/${id}`, { method: 'DELETE' }).then((r) => json<{ ok: true }>(r)),+ templates: () => fetch('/api/templates').then((r) => json<Template[]>(r)),+ saveTemplate: (t: Omit<Template, 'id' | 'createdAt'>) =>+ fetch('/api/templates', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(t) }).then((r) => json<Template>(r)),+ deleteTemplate: (id: string) => fetch(`/api/templates/${id}`, { method: 'DELETE' }).then((r) => json<{ ok: true }>(r)),+ audioUrl: (id: string) => `/api/tracks/${id}/audio`,+ downloadUrl: (id: string) => `/api/tracks/${id}/audio?download`,+};diff --git a/web/src/components/CreatePanel.tsx b/web/src/components/CreatePanel.tsxnew file mode 100644index 0000000..f80e43a--- /dev/null+++ b/web/src/components/CreatePanel.tsx@@ -0,0 +1,231 @@+import { useEffect, useMemo, useState } from 'react';+import type { GenerateInput, Health, Track } from '../types';+import { LyricsEditor } from './LyricsEditor';+import { TemplatesMenu, type TemplateValues } from './TemplatesMenu';+import { Chevron, Sparkle } from './Icons';+import { FORMAT_LABEL } from '../lib/format';++export const TEMPLATE_PROMPT = 'Genre: acoustic pop. BPM: 96. Key: C major. Warm and intimate, building gently into the chorus. Vocals: soft female lead, close and breathy, light stacked harmonies in the chorus. Arrangement: fingerpicked guitar and soft piano; brushed drums and upright bass enter in the chorus.';++export const TEMPLATE_LYRICS = `[Verse]+Morning light filtering through the pine+Every quiet street is yours and mine+[Chorus]+Softly the world begins to breathe`;++export interface FormState {+ mode: 'simple' | 'custom';+ title: string;+ prompt: string;+ lyrics: string;+ instrumental: boolean;+ duration: number;+ takes: number;+ seed: string;+ steps: string;+ format: string;+}++export const DEFAULT_FORM: FormState = {+ mode: 'simple', title: '', prompt: TEMPLATE_PROMPT, lyrics: TEMPLATE_LYRICS, instrumental: false, duration: 60, takes: 1, seed: '', steps: '', format: 'flac',+};++export function formFromTrack(t: Track): FormState {+ return {+ mode: 'custom',+ title: t.title,+ prompt: t.prompt,+ lyrics: t.lyrics === '[Instrumental]' ? '' : t.lyrics,+ instrumental: t.lyrics === '[Instrumental]',+ duration: t.duration,+ takes: 1,+ seed: t.seed === null ? '' : String(t.seed),+ steps: t.steps === null ? '' : String(t.steps),+ format: t.format,+ };+}++interface Props {+ health: Health | null;+ form: FormState;+ onFormChange: (f: FormState) => void;+ onSubmit: (input: GenerateInput) => Promise<void>;+}++export function CreatePanel({ health, form, onFormChange, onSubmit }: Props) {+ const [advanced, setAdvanced] = useState(false);+ const [submitting, setSubmitting] = useState(false);+ const [error, setError] = useState<string | null>(null);+ const set = <K extends keyof FormState>(k: K, v: FormState[K]) => onFormChange({ ...form, [k]: v });++ const formats = health?.formats?.length ? health.formats : ['wav', 'wav16', 'wav32f', 'flac', 'mp3'];+ useEffect(() => {+ if (!formats.includes(form.format)) onFormChange({ ...form, format: formats.includes('flac') ? 'flac' : formats[0] });+ // eslint-disable-next-line react-hooks/exhaustive-deps+ }, [formats.join(',')]);++ const online = !!health?.upstreamReachable;+ const canSubmit = online && form.prompt.trim().length > 0 && !submitting;+ const estMin = useMemo(() => Math.round((form.duration * 3 * form.takes) / 60 * 10) / 10, [form.duration, form.takes]);++ const submit = async () => {+ setError(null);+ const seed = form.seed.trim() === '' ? null : Number(form.seed);+ const steps = form.steps.trim() === '' ? null : Number(form.steps);+ if (seed !== null && !Number.isInteger(seed)) return setError('Seed must be an integer');+ if (steps !== null && (!Number.isInteger(steps) || steps < 10 || steps > 100)) return setError('Steps must be 10–100');+ setSubmitting(true);+ try {+ await onSubmit({+ title: form.title.trim(),+ prompt: form.prompt.trim(),+ lyrics: form.instrumental ? '[Instrumental]' : form.lyrics.trim(),+ duration: form.duration,+ seed,+ steps,+ format: form.format,+ takes: form.takes,+ });+ } catch (err) {+ setError((err as Error).message);+ } finally {+ setSubmitting(false);+ }+ };++ const modeBtn = (m: FormState['mode'], label: string) => (+ <button+ type="button"+ onClick={() => set('mode', m)}+ className={`px-3 py-1 rounded-md text-xs font-medium transition ${form.mode === m ? 'bg-ink-600 text-white' : 'text-zinc-400 hover:text-white'}`}+ >+ {label}+ </button>+ );++ return (+ <div className="flex flex-col lg:h-full lg:min-h-0">+ <div className="lg:flex-1 lg:min-h-0 lg:overflow-y-auto p-4 md:p-5 flex flex-col gap-4">+ <div className="flex items-center justify-between">+ <div className="inline-flex bg-ink-800 border border-ink-600 rounded-lg p-0.5">+ {modeBtn('simple', 'Simple')}+ {modeBtn('custom', 'Custom')}+ </div>+ <label className="flex items-center gap-2 text-xs text-zinc-300 cursor-pointer select-none">+ <span>Instrumental</span>+ <span+ role="switch"+ aria-checked={form.instrumental}+ onClick={() => set('instrumental', !form.instrumental)}+ className={`relative w-9 h-5 rounded-full transition ${form.instrumental ? 'bg-accent' : 'bg-ink-600'}`}+ >+ <span className={`absolute top-0.5 w-4 h-4 rounded-full bg-white transition-all ${form.instrumental ? 'left-[18px]' : 'left-0.5'}`} />+ </span>+ </label>+ </div>++ <div>+ <div className="label mb-1">Song title <span className="text-zinc-600 normal-case tracking-normal">(optional)</span></div>+ <input className="field" value={form.title} onChange={(e) => set('title', e.target.value)} placeholder="Auto-named from the description if empty" maxLength={120} />+ </div>++ <div>+ <div className="flex items-center justify-between mb-1">+ <div className="label">{form.mode === 'simple' ? 'Song description' : 'Style of music'}</div>+ <TemplatesMenu+ builtin={{ prompt: TEMPLATE_PROMPT, lyrics: TEMPLATE_LYRICS, duration: 60, steps: null, format: 'flac' }}+ current={{+ prompt: form.prompt.trim(),+ lyrics: form.instrumental ? '[Instrumental]' : form.lyrics.trim(),+ duration: form.duration,+ steps: form.steps.trim() === '' ? null : Number(form.steps),+ format: form.format,+ }}+ onLoad={(t: TemplateValues) => onFormChange({+ ...form,+ prompt: t.prompt,+ lyrics: t.lyrics === '[Instrumental]' ? '' : t.lyrics,+ instrumental: t.lyrics === '[Instrumental]',+ duration: t.duration,+ steps: t.steps === null ? '' : String(t.steps),+ format: t.format,+ })}+ />+ </div>+ <textarea+ rows={form.mode === 'simple' ? 6 : 5}+ value={form.prompt}+ onChange={(e) => set('prompt', e.target.value)}+ className="field resize-y leading-relaxed"+ placeholder={TEMPLATE_PROMPT}+ />+ </div>++ {!form.instrumental && (+ <div>+ <div className="label mb-1">Lyrics</div>+ <LyricsEditor value={form.lyrics} onChange={(v) => set('lyrics', v)} rows={form.mode === 'simple' ? 6 : 10} />+ </div>+ )}++ <div className="grid grid-cols-2 gap-4">+ <div>+ <div className="flex justify-between mb-1">+ <span className="label">Duration</span>+ <span className="text-xs text-zinc-300 tabular-nums">{form.duration}s</span>+ </div>+ <input type="range" min={5} max={360} step={5} value={form.duration} onChange={(e) => set('duration', Number(e.target.value))} className="w-full" />+ <div className="flex justify-between text-[10px] text-zinc-600"><span>5s</span><span>6 min</span></div>+ </div>+ <div>+ <div className="flex justify-between mb-1">+ <span className="label">Takes</span>+ <span className="text-xs text-zinc-300 tabular-nums">{form.takes}</span>+ </div>+ <div className="grid grid-cols-4 gap-1">+ {[1, 2, 3, 4].map((n) => (+ <button key={n} type="button" onClick={() => set('takes', n)} className={`py-1 rounded-md text-xs border transition ${form.takes === n ? 'bg-accent-soft border-accent text-white' : 'bg-ink-800 border-ink-600 text-zinc-400 hover:text-white'}`}>{n}</button>+ ))}+ </div>+ <div className="text-[10px] text-zinc-600 mt-1">Different seed per take · rendered one at a time</div>+ </div>+ </div>++ <div>+ <button type="button" onClick={() => setAdvanced((a) => !a)} className="flex items-center gap-1 text-xs text-zinc-400 hover:text-white">+ <Chevron width={14} height={14} className={`transition-transform ${advanced ? 'rotate-90' : ''}`} /> Advanced+ </button>+ {advanced && (+ <div className="grid grid-cols-3 gap-3 mt-2">+ <div>+ <div className="label mb-1">Seed</div>+ <input className="field font-mono" inputMode="numeric" value={form.seed} onChange={(e) => set('seed', e.target.value)} placeholder="random" />+ </div>+ <div>+ <div className="label mb-1">Steps</div>+ <input className="field font-mono" inputMode="numeric" value={form.steps} onChange={(e) => set('steps', e.target.value)} placeholder="30" />+ </div>+ <div>+ <div className="label mb-1">Format</div>+ <select className="field" value={form.format} onChange={(e) => set('format', e.target.value)}>+ {formats.map((f) => <option key={f} value={f}>{FORMAT_LABEL[f] ?? f}</option>)}+ </select>+ </div>+ </div>+ )}+ </div>++ {error && <div className="text-xs text-red-400 bg-red-500/10 border border-red-500/30 rounded-lg px-3 py-2">{error}</div>}+ </div>++ <div className="sticky bottom-0 shrink-0 px-4 md:px-5 py-4 border-t border-ink-700 bg-ink-900/90 backdrop-blur flex items-center gap-3">+ <button type="button" className="btn-primary px-5 py-2.5" disabled={!canSubmit} onClick={submit}>+ <Sparkle width={16} height={16} /> {submitting ? 'Queuing…' : form.takes > 1 ? `Create ${form.takes} takes` : 'Create'}+ </button>+ <span className="text-[11px] text-zinc-500">+ {online ? `≈ ${estMin} min of GPU time` : health ? 'Inference server offline' : 'Connecting…'}+ </span>+ </div>+ </div>+ );+}diff --git a/web/src/components/HealthPill.tsx b/web/src/components/HealthPill.tsxnew file mode 100644index 0000000..d53ad04--- /dev/null+++ b/web/src/components/HealthPill.tsx@@ -0,0 +1,19 @@+import type { Health } from '../types';++export function HealthPill({ health }: { health: Health | null }) {+ let dot = 'bg-zinc-500';+ let text = 'Connecting…';+ let pulse = false;+ if (health) {+ if (!health.upstreamReachable) { dot = 'bg-red-500'; text = 'Inference server offline'; }+ else if (!health.ready) { dot = 'bg-amber-400'; text = 'Loading model…'; pulse = true; }+ else if (health.busy) { dot = 'bg-accent'; text = `Rendering${health.queued ? ` · ${health.queued} queued` : ''}`; pulse = true; }+ else { dot = 'bg-emerald-400'; text = 'Idle · ready'; }+ }+ return (+ <div className="inline-flex items-center gap-2 rounded-full bg-ink-800 border border-ink-600 px-3 py-1 text-xs text-zinc-300" title={health?.error ?? ''}>+ <span className={`w-2 h-2 rounded-full ${dot} ${pulse ? 'animate-pulse' : ''}`} />+ {text}+ </div>+ );+}diff --git a/web/src/components/Icons.tsx b/web/src/components/Icons.tsxnew file mode 100644index 0000000..5a8cda6--- /dev/null+++ b/web/src/components/Icons.tsx@@ -0,0 +1,20 @@+import type { SVGProps } from 'react';++const base = (props: SVGProps<SVGSVGElement>) => ({+ width: 18, height: 18, viewBox: '0 0 24 24', fill: 'none', stroke: 'currentColor', strokeWidth: 2, strokeLinecap: 'round' as const, strokeLinejoin: 'round' as const, ...props,+});++export const Play = (p: SVGProps<SVGSVGElement>) => <svg {...base(p)} fill="currentColor" stroke="none"><path d="M8 5v14l11-7z" /></svg>;+export const Pause = (p: SVGProps<SVGSVGElement>) => <svg {...base(p)} fill="currentColor" stroke="none"><path d="M6 5h4v14H6zM14 5h4v14h-4z" /></svg>;+export const Prev = (p: SVGProps<SVGSVGElement>) => <svg {...base(p)} fill="currentColor" stroke="none"><path d="M6 6h2v12H6zM20 6v12L9.5 12z" /></svg>;+export const Next = (p: SVGProps<SVGSVGElement>) => <svg {...base(p)} fill="currentColor" stroke="none"><path d="M16 6h2v12h-2zM4 6v12l10.5-6z" /></svg>;+export const Download = (p: SVGProps<SVGSVGElement>) => <svg {...base(p)}><path d="M12 3v12m0 0l-4-4m4 4l4-4M4 17v3h16v-3" /></svg>;+export const Trash = (p: SVGProps<SVGSVGElement>) => <svg {...base(p)}><path d="M4 7h16M10 11v6m4-6v6M6 7l1 13h10l1-13M9 7V4h6v3" /></svg>;+export const Refresh = (p: SVGProps<SVGSVGElement>) => <svg {...base(p)}><path d="M20 12a8 8 0 1 1-2.3-5.7M20 4v5h-5" /></svg>;+export const Reuse = (p: SVGProps<SVGSVGElement>) => <svg {...base(p)}><path d="M4 12V8a2 2 0 0 1 2-2h12M4 12l3-3M4 12l3 3M20 12v4a2 2 0 0 1-2 2H6m14-6l-3-3m3 3l-3 3" /></svg>;+export const Sparkle = (p: SVGProps<SVGSVGElement>) => <svg {...base(p)}><path d="M12 3l1.8 5.2L19 10l-5.2 1.8L12 17l-1.8-5.2L5 10l5.2-1.8zM19 16l.8 2.2L22 19l-2.2.8L19 22l-.8-2.2L16 19l2.2-.8z" /></svg>;+export const Music = (p: SVGProps<SVGSVGElement>) => <svg {...base(p)}><path d="M9 18V6l10-2v12M9 18a3 3 0 1 1-6 0 3 3 0 0 1 6 0zm10-2a3 3 0 1 1-6 0 3 3 0 0 1 6 0z" /></svg>;+export const Library = (p: SVGProps<SVGSVGElement>) => <svg {...base(p)}><path d="M4 4h4v16H4zM10 4h4v16h-4zM16 5l4-1v16l-4 1z" /></svg>;+export const X = (p: SVGProps<SVGSVGElement>) => <svg {...base(p)}><path d="M6 6l12 12M18 6L6 18" /></svg>;+export const Chevron = (p: SVGProps<SVGSVGElement>) => <svg {...base(p)}><path d="M9 6l6 6-6 6" /></svg>;+export const Alert = (p: SVGProps<SVGSVGElement>) => <svg {...base(p)}><path d="M12 9v4m0 4h.01M10.3 3.9L2.5 18a2 2 0 0 0 1.7 3h15.6a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0z" /></svg>;diff --git a/web/src/components/LyricsEditor.tsx b/web/src/components/LyricsEditor.tsxnew file mode 100644index 0000000..ee6ef09--- /dev/null+++ b/web/src/components/LyricsEditor.tsx@@ -0,0 +1,41 @@+import { useRef } from 'react';++const TAGS = ['Intro', 'Verse', 'Pre-Chorus', 'Chorus', 'Bridge', 'Outro', 'Instrumental'];++export function LyricsEditor({ value, onChange, rows = 10 }: { value: string; onChange: (v: string) => void; rows?: number }) {+ const ref = useRef<HTMLTextAreaElement>(null);++ const insertTag = (tag: string) => {+ const el = ref.current;+ const text = `[${tag}]`;+ if (!el) return onChange(value ? `${value}\n${text}\n` : `${text}\n`);+ const start = el.selectionStart ?? value.length;+ const end = el.selectionEnd ?? start;+ const before = value.slice(0, start);+ const after = value.slice(end);+ const pre = before.length && !before.endsWith('\n') ? '\n' : '';+ const post = after.startsWith('\n') || after.length === 0 ? '\n' : '\n';+ const next = `${before}${pre}${text}${post}${after}`;+ onChange(next);+ const caret = before.length + pre.length + text.length + post.length;+ requestAnimationFrame(() => { el.focus(); el.setSelectionRange(caret, caret); });+ };++ return (+ <div className="space-y-2">+ <div className="flex flex-wrap gap-1.5">+ {TAGS.map((t) => (+ <button key={t} type="button" className="chip" onClick={() => insertTag(t)}>[{t}]</button>+ ))}+ </div>+ <textarea+ ref={ref}+ rows={rows}+ value={value}+ onChange={(e) => onChange(e.target.value)}+ className="field font-mono text-[13px] leading-relaxed resize-y"+ placeholder={'[Verse]\nMorning light filtering through the pine\nEvery quiet street is yours and mine\n[Chorus]\nSoftly the world begins to breathe\n\nLeave empty for an instrumental.'}+ />+ </div>+ );+}diff --git a/web/src/components/Player.tsx b/web/src/components/Player.tsxnew file mode 100644index 0000000..9bc9a6d--- /dev/null+++ b/web/src/components/Player.tsx@@ -0,0 +1,99 @@+import { useEffect, useRef, useState } from 'react';+import type { Track } from '../types';+import { api } from '../api';+import { coverStyle } from '../lib/cover';+import { fmtTime } from '../lib/format';+import { Waveform } from './Waveform';+import { Download, Next, Pause, Play, Prev } from './Icons';++interface Props {+ track: Track | null;+ playing: boolean;+ onPlayingChange: (p: boolean) => void;+ onPrev: () => void;+ onNext: () => void;+ onEnded: () => void;+}++export function Player({ track, playing, onPlayingChange, onPrev, onNext, onEnded }: Props) {+ const audio = useRef<HTMLAudioElement>(null);+ const [time, setTime] = useState(0);+ const [dur, setDur] = useState(0);+ const [err, setErr] = useState<string | null>(null);++ useEffect(() => {+ const el = audio.current;+ if (!el || !track) return;+ setTime(0); setDur(0); setErr(null);+ el.src = api.audioUrl(track.id);+ el.load();+ if (playing) el.play().catch((e) => setErr(e.message));+ // eslint-disable-next-line react-hooks/exhaustive-deps+ }, [track?.id]);++ useEffect(() => {+ const el = audio.current;+ if (!el || !track) return;+ if (playing) el.play().catch((e) => setErr(e.message));+ else el.pause();+ }, [playing, track]);++ useEffect(() => {+ const onKey = (e: KeyboardEvent) => {+ const tag = (e.target as HTMLElement | null)?.tagName;+ if (tag === 'TEXTAREA' || tag === 'INPUT' || tag === 'SELECT') return;+ if (e.code === 'Space' && track) { e.preventDefault(); onPlayingChange(!playing); }+ };+ window.addEventListener('keydown', onKey);+ return () => window.removeEventListener('keydown', onKey);+ }, [playing, track, onPlayingChange]);++ const seek = (frac: number) => {+ const el = audio.current;+ if (!el || !dur) return;+ el.currentTime = frac * dur;+ setTime(el.currentTime);+ };++ return (+ <div className="h-20 shrink-0 border-t border-ink-700 bg-ink-900/95 backdrop-blur px-3 md:px-4 flex items-center gap-2 md:gap-4">+ <audio+ ref={audio}+ preload="metadata"+ onTimeUpdate={(e) => setTime(e.currentTarget.currentTime)}+ onDurationChange={(e) => setDur(e.currentTarget.duration)}+ onEnded={onEnded}+ onPlay={() => onPlayingChange(true)}+ onPause={() => onPlayingChange(false)}+ onError={() => setErr('playback error')}+ />+ <div className="flex items-center gap-3 w-36 md:w-64 min-w-0">+ <div className="w-12 h-12 rounded-lg shrink-0" style={track ? coverStyle(track.id) : { background: '#22222f' }} />+ <div className="min-w-0">+ <div className="text-sm font-medium truncate">{track?.title ?? 'Nothing playing'}</div>+ <div className="text-[11px] text-zinc-500 truncate">{err ?? (track ? track.prompt : 'Pick a finished track')}</div>+ </div>+ </div>+ <div className="flex items-center gap-1">+ <button className="icon-btn" onClick={onPrev} disabled={!track} aria-label="Previous"><Prev width={18} height={18} /></button>+ <button+ className="w-10 h-10 rounded-full bg-white text-ink-950 flex items-center justify-center hover:scale-105 transition disabled:opacity-40"+ onClick={() => onPlayingChange(!playing)}+ disabled={!track}+ aria-label={playing ? 'Pause' : 'Play'}+ >+ {playing ? <Pause width={18} height={18} /> : <Play width={18} height={18} className="translate-x-[1px]" />}+ </button>+ <button className="icon-btn" onClick={onNext} disabled={!track} aria-label="Next"><Next width={18} height={18} /></button>+ </div>+ <div className="flex-1 flex items-center gap-3 min-w-0">+ <span className="text-[11px] text-zinc-400 tabular-nums w-10 text-right">{fmtTime(time)}</span>+ <div className="flex-1 min-w-0">+ {track ? <Waveform url={api.audioUrl(track.id)} progress={dur ? time / dur : 0} onSeek={seek} /> : <div className="h-[2px] bg-ink-700 rounded" />}+ </div>+ <span className="text-[11px] text-zinc-400 tabular-nums w-10">{fmtTime(dur || track?.duration || 0)}</span>+ </div>+ <a className={`icon-btn hidden md:inline-flex ${track ? '' : 'pointer-events-none opacity-40'}`} href={track ? api.downloadUrl(track.id) : '#'} title="Download"><Download width={18} height={18} /></a>+ </div>+ );+}diff --git a/web/src/components/Sidebar.tsx b/web/src/components/Sidebar.tsxnew file mode 100644index 0000000..4b2a313--- /dev/null+++ b/web/src/components/Sidebar.tsx@@ -0,0 +1,33 @@+import { Library, Music, Sparkle } from './Icons';++export type View = 'create' | 'library';++export function Sidebar({ view, onChange, counts }: { view: View; onChange: (v: View) => void; counts: { inflight: number; total: number } }) {+ const item = (v: View, label: string, Icon: typeof Sparkle, badge?: number) => (+ <button+ onClick={() => onChange(v)}+ title={label}+ className={`relative w-full flex items-center justify-center md:justify-start gap-3 px-2 md:px-3 py-2 rounded-lg text-sm transition ${view === v ? 'bg-ink-700 text-white' : 'text-zinc-400 hover:text-white hover:bg-ink-800'}`}+ >+ <Icon width={18} height={18} />+ <span className="hidden md:block flex-1 text-left">{label}</span>+ {badge ? <span className="text-[10px] px-1.5 py-0.5 rounded-full bg-accent text-white absolute md:static top-0 right-0 md:top-auto md:right-auto">{badge}</span> : null}+ </button>+ );+ return (+ <aside className="w-14 md:w-56 shrink-0 h-full flex flex-col border-r border-ink-700 bg-ink-900 p-2 md:p-3 gap-1">+ <div className="flex items-center justify-center md:justify-start gap-2 px-0 md:px-2 py-3 mb-2">+ <div className="w-8 h-8 rounded-lg bg-gradient-to-br from-accent to-purple-500 flex items-center justify-center text-white">+ <Music width={18} height={18} />+ </div>+ <div className="hidden md:block">+ <div className="text-sm font-semibold leading-tight">MiniMax Music</div>+ <div className="text-[10px] text-zinc-500 leading-tight">Music-3 · local</div>+ </div>+ </div>+ {item('create', 'Create', Sparkle, counts.inflight)}+ {item('library', 'Library', Library, undefined)}+ <div className="mt-auto px-3 py-2 text-[11px] text-zinc-500 hidden md:block">{counts.total} track{counts.total === 1 ? '' : 's'}</div>+ </aside>+ );+}diff --git a/web/src/components/TemplatesMenu.tsx b/web/src/components/TemplatesMenu.tsxnew file mode 100644index 0000000..263a20b--- /dev/null+++ b/web/src/components/TemplatesMenu.tsx@@ -0,0 +1,95 @@+import { useEffect, useRef, useState } from 'react';+import { api } from '../api';+import type { Template } from '../types';+import { Trash } from './Icons';++export interface TemplateValues {+ prompt: string;+ lyrics: string;+ duration: number;+ steps: number | null;+ format: string;+}++interface Props {+ builtin: TemplateValues;+ current: TemplateValues;+ onLoad: (t: TemplateValues) => void;+}++export function TemplatesMenu({ builtin, current, onLoad }: Props) {+ const [open, setOpen] = useState(false);+ const [list, setList] = useState<Template[]>([]);+ const [error, setError] = useState<string | null>(null);+ const [saving, setSaving] = useState(false);+ const [name, setName] = useState('');+ const box = useRef<HTMLDivElement>(null);++ const refresh = () => api.templates().then(setList).catch((e) => setError((e as Error).message));++ useEffect(() => { void refresh(); }, []);+ useEffect(() => {+ if (!open) return;+ void refresh();+ const onDoc = (e: MouseEvent) => { if (box.current && !box.current.contains(e.target as Node)) setOpen(false); };+ document.addEventListener('mousedown', onDoc);+ return () => document.removeEventListener('mousedown', onDoc);+ }, [open]);++ const save = async () => {+ const n = name.trim();+ if (!n) return;+ setSaving(true);+ setError(null);+ try {+ await api.saveTemplate({ name: n, ...current });+ setName('');+ await refresh();+ } catch (e) {+ setError((e as Error).message);+ } finally {+ setSaving(false);+ }+ };++ const remove = async (t: Template) => {+ if (!confirm(`Delete template “${t.name}”?`)) return;+ try { await api.deleteTemplate(t.id); await refresh(); } catch (e) { setError((e as Error).message); }+ };++ const row = (label: string, values: TemplateValues, tpl?: Template) => (+ <div key={tpl?.id ?? '__builtin'} className="group/row flex items-center gap-1 rounded-md hover:bg-ink-700">+ <button type="button" className="flex-1 min-w-0 text-left px-2 py-1.5" onClick={() => { onLoad(values); setOpen(false); }}>+ <div className="text-xs text-zinc-200 truncate">{label}</div>+ <div className="text-[10px] text-zinc-500 truncate">{values.prompt}</div>+ </button>+ {tpl && (+ <button type="button" className="icon-btn opacity-0 group-hover/row:opacity-100 hover:!text-red-400" title="Delete template" onClick={() => remove(tpl)}>+ <Trash width={14} height={14} />+ </button>+ )}+ </div>+ );++ return (+ <div ref={box} className="relative">+ <button type="button" className="text-[11px] text-accent hover:text-accent-hover" onClick={() => setOpen((o) => !o)}>+ Templates{list.length ? ` (${list.length})` : ''} ▾+ </button>+ {open && (+ <div className="absolute right-0 z-20 mt-1 w-80 rounded-xl border border-ink-600 bg-ink-800 shadow-2xl p-2 space-y-1">+ <div className="label px-2 pt-1">Load</div>+ {row('Default', builtin)}+ {list.map((t) => row(t.name, t, t))}+ <div className="label px-2 pt-2">Save current as</div>+ <div className="flex gap-1 px-1 pb-1">+ <input className="field !py-1 text-xs" placeholder="Template name" value={name} onChange={(e) => setName(e.target.value)} onKeyDown={(e) => { if (e.key === 'Enter') void save(); }} />+ <button type="button" className="btn-primary !px-3 !py-1 text-xs" disabled={!name.trim() || saving} onClick={save}>Save</button>+ </div>+ <div className="text-[10px] text-zinc-500 px-2 pb-1">Saves style, lyrics, duration, steps and format. Same name overwrites.</div>+ {error && <div className="text-[11px] text-red-400 px-2 pb-1">{error}</div>}+ </div>+ )}+ </div>+ );+}diff --git a/web/src/components/TrackCard.tsx b/web/src/components/TrackCard.tsxnew file mode 100644index 0000000..2d7a96c--- /dev/null+++ b/web/src/components/TrackCard.tsx@@ -0,0 +1,99 @@+import { useState } from 'react';+import { isInflight, type Track } from '../types';+import { coverStyle } from '../lib/cover';+import { fmtAgo, fmtEta, fmtTime, FORMAT_LABEL } from '../lib/format';+import { api } from '../api';+import { Alert, Download, Pause, Play, Refresh, Reuse, Trash, X } from './Icons';++interface Props {+ track: Track;+ groupSize: number;+ active: boolean;+ playing: boolean;+ onPlay: (t: Track) => void;+ onDelete: (t: Track) => void;+ onReuse: (t: Track) => void;+ onRetry: (t: Track) => void;+}++export function TrackCard({ track: t, groupSize, active, playing, onPlay, onDelete, onReuse, onRetry }: Props) {+ const [open, setOpen] = useState(false);+ const inflight = isInflight(t);+ const done = t.status === 'done';+ const err = t.status === 'error';++ return (+ <div className={`group rounded-xl border transition ${active ? 'border-accent/60 bg-ink-800' : 'border-ink-700 bg-ink-900 hover:bg-ink-800'} `}>+ <div className="flex gap-3 p-3">+ <button+ onClick={() => done && onPlay(t)}+ disabled={!done}+ className="relative w-16 h-16 shrink-0 rounded-lg overflow-hidden flex items-center justify-center text-white disabled:cursor-default"+ style={coverStyle(t.id)}+ aria-label={done ? (active && playing ? 'Pause' : 'Play') : t.status}+ >+ {done && (+ <span className={`absolute inset-0 flex items-center justify-center bg-black/30 transition ${active ? 'opacity-100' : 'opacity-0 group-hover:opacity-100'}`}>+ {active && playing ? <Pause width={22} height={22} /> : <Play width={22} height={22} />}+ </span>+ )}+ {inflight && <span className="absolute inset-0 bg-black/40 flex items-center justify-center text-[11px] font-mono tabular-nums">{Math.round(t.progress * 100)}%</span>}+ {err && <span className="absolute inset-0 bg-black/50 flex items-center justify-center text-red-300"><Alert width={20} height={20} /></span>}+ </button>++ <div className="flex-1 min-w-0">+ <div className="flex items-start gap-2">+ <div className="flex-1 min-w-0">+ <div className="text-sm font-medium truncate flex items-center gap-2">+ <span className="truncate">{t.title}</span>+ {groupSize > 1 ? <span className="text-[10px] text-zinc-500 shrink-0">take {t.takeIndex + 1}</span> : null}+ </div>+ <div className="text-xs text-zinc-400 truncate mt-0.5" title={t.prompt}>{t.prompt}</div>+ </div>+ <div className="flex items-center gap-0.5 opacity-0 group-hover:opacity-100 transition shrink-0">+ {done && (+ <a className="icon-btn" href={api.downloadUrl(t.id)} title="Download"><Download width={16} height={16} /></a>+ )}+ <button className="icon-btn" title="Reuse settings" onClick={() => onReuse(t)}><Reuse width={16} height={16} /></button>+ {err && <button className="icon-btn" title="Retry" onClick={() => onRetry(t)}><Refresh width={16} height={16} /></button>}+ <button className="icon-btn hover:!text-red-400" title={inflight ? 'Cancel' : 'Delete'} onClick={() => onDelete(t)}>+ {inflight ? <X width={16} height={16} /> : <Trash width={16} height={16} />}+ </button>+ </div>+ </div>++ <div className="mt-2 flex items-center gap-2 text-[11px] text-zinc-500 tabular-nums">+ <span>{fmtTime(t.duration)}</span>+ <span>·</span>+ <span>{FORMAT_LABEL[t.format] ?? t.format}</span>+ {t.seed !== null && (<><span>·</span><span className="font-mono">seed {t.seed}</span></>)}+ {t.steps !== null && (<><span>·</span><span>{t.steps} steps</span></>)}+ <span>·</span>+ <span>{fmtAgo(t.createdAt)}</span>+ {done && t.clipped && <span className="text-amber-400" title={`peak ${t.peakDbfs?.toFixed(1)} dBFS`}>clipped</span>}+ {t.lyrics !== '[Instrumental]' && (+ <button className="ml-auto text-zinc-400 hover:text-white" onClick={() => setOpen((o) => !o)}>{open ? 'hide lyrics' : 'lyrics'}</button>+ )}+ </div>++ {inflight && (+ <div className="mt-2">+ <div className="h-1.5 rounded-full bg-ink-700 overflow-hidden">+ <div className={`h-full rounded-full bg-gradient-to-r from-accent to-purple-400 transition-all ${t.progress === 0 ? 'animate-pulseBar w-1/12' : ''}`} style={t.progress > 0 ? { width: `${Math.max(2, t.progress * 100)}%` } : undefined} />+ </div>+ <div className="flex justify-between text-[11px] text-zinc-400 mt-1">+ <span>{t.stage}</span>+ <span>{fmtEta(t.eta)}</span>+ </div>+ </div>+ )}++ {err && <div className="mt-2 text-[11px] text-red-400 break-words">{t.error}</div>}+ </div>+ </div>+ {open && (+ <pre className="mx-3 mb-3 p-3 rounded-lg bg-ink-950 text-[12px] leading-relaxed text-zinc-300 whitespace-pre-wrap font-mono max-h-64 overflow-auto">{t.lyrics}</pre>+ )}+ </div>+ );+}diff --git a/web/src/components/TrackFeed.tsx b/web/src/components/TrackFeed.tsxnew file mode 100644index 0000000..bb698c2--- /dev/null+++ b/web/src/components/TrackFeed.tsx@@ -0,0 +1,34 @@+import type { Track } from '../types';+import { TrackCard } from './TrackCard';+import { Music } from './Icons';++interface Props {+ tracks: Track[];+ activeId: string | null;+ playing: boolean;+ onPlay: (t: Track) => void;+ onDelete: (t: Track) => void;+ onReuse: (t: Track) => void;+ onRetry: (t: Track) => void;+ emptyHint: string;+}++export function TrackFeed({ tracks, activeId, playing, emptyHint, ...handlers }: Props) {+ if (tracks.length === 0) {+ return (+ <div className="h-full flex flex-col items-center justify-center text-center text-zinc-500 gap-3">+ <div className="w-14 h-14 rounded-2xl bg-ink-800 flex items-center justify-center"><Music width={26} height={26} /></div>+ <div className="text-sm">{emptyHint}</div>+ </div>+ );+ }+ const groupSizes = new Map<string, number>();+ for (const t of tracks) groupSizes.set(t.groupId, (groupSizes.get(t.groupId) ?? 0) + 1);+ return (+ <div className="flex flex-col gap-2">+ {tracks.map((t) => (+ <TrackCard key={t.id} track={t} groupSize={groupSizes.get(t.groupId) ?? 1} active={t.id === activeId} playing={playing && t.id === activeId} {...handlers} />+ ))}+ </div>+ );+}diff --git a/web/src/components/Waveform.tsx b/web/src/components/Waveform.tsxnew file mode 100644index 0000000..1c8448f--- /dev/null+++ b/web/src/components/Waveform.tsx@@ -0,0 +1,47 @@+import { useEffect, useRef, useState } from 'react';+import { loadPeaks } from '../lib/peaks';++interface Props {+ url: string;+ progress: number; // 0..1+ onSeek: (frac: number) => void;+ height?: number;+}++export function Waveform({ url, progress, onSeek, height = 40 }: Props) {+ const [peaks, setPeaks] = useState<number[] | null>(null);+ const [failed, setFailed] = useState(false);+ const ref = useRef<HTMLDivElement>(null);++ useEffect(() => {+ let alive = true;+ setPeaks(null);+ setFailed(false);+ loadPeaks(url).then((p) => alive && setPeaks(p)).catch(() => alive && setFailed(true));+ return () => { alive = false; };+ }, [url]);++ const seek = (e: React.MouseEvent) => {+ const rect = ref.current!.getBoundingClientRect();+ onSeek(Math.min(1, Math.max(0, (e.clientX - rect.left) / rect.width)));+ };++ const bars = peaks ?? Array.from({ length: 160 }, () => 0.15);+ return (+ <div ref={ref} onClick={seek} className="relative w-full cursor-pointer select-none" style={{ height }} title={failed ? 'waveform unavailable' : undefined}>+ <div className="absolute inset-0 flex items-center gap-[1px]">+ {bars.map((v, i) => {+ const frac = i / bars.length;+ const played = frac <= progress;+ return (+ <div+ key={i}+ className={`flex-1 rounded-sm transition-colors ${peaks ? (played ? 'bg-accent' : 'bg-ink-500') : 'bg-ink-600 animate-pulse'}`}+ style={{ height: `${Math.max(8, v * 100)}%` }}+ />+ );+ })}+ </div>+ </div>+ );+}diff --git a/web/src/hooks/usePolling.ts b/web/src/hooks/usePolling.tsnew file mode 100644index 0000000..797ac19--- /dev/null+++ b/web/src/hooks/usePolling.ts@@ -0,0 +1,53 @@+import { useCallback, useEffect, useRef, useState } from 'react';+import { api } from '../api';+import { isInflight, type Health, type Track } from '../types';++const OFFLINE_HEALTH: Health = { upstreamReachable: false, ready: false, busy: false, queued: 0, formats: ['wav', 'wav16', 'wav32f', 'flac', 'mp3'], error: 'ui server unreachable' };++export function useHealth(intervalMs = 5000) {+ const [health, setHealth] = useState<Health | null>(null);+ useEffect(() => {+ let alive = true;+ const run = () => api.health().then((h) => alive && setHealth(h)).catch(() => alive && setHealth(OFFLINE_HEALTH));+ run();+ const t = setInterval(run, intervalMs);+ return () => { alive = false; clearInterval(t); };+ }, [intervalMs]);+ return health;+}++/** Polls the library: 1 s while anything is in flight, else 10 s. `refresh()` forces an immediate fetch. */+export function useLibrary() {+ const [tracks, setTracks] = useState<Track[]>([]);+ const [error, setError] = useState<string | null>(null);+ const timer = useRef<ReturnType<typeof setTimeout> | null>(null);+ const alive = useRef(true);++ const schedule = useCallback((ms: number) => {+ if (timer.current) clearTimeout(timer.current);+ timer.current = setTimeout(() => void refresh(), ms);+ // eslint-disable-next-line react-hooks/exhaustive-deps+ }, []);++ const refresh = useCallback(async () => {+ try {+ const list = await api.library();+ if (!alive.current) return;+ setTracks(list);+ setError(null);+ schedule(list.some(isInflight) ? 1000 : 10000);+ } catch (err) {+ if (!alive.current) return;+ setError((err as Error).message);+ schedule(5000);+ }+ }, [schedule]);++ useEffect(() => {+ alive.current = true;+ void refresh();+ return () => { alive.current = false; if (timer.current) clearTimeout(timer.current); };+ }, [refresh]);++ return { tracks, error, refresh, setTracks };+}diff --git a/web/src/index.css b/web/src/index.cssnew file mode 100644index 0000000..4a35c76--- /dev/null+++ b/web/src/index.css@@ -0,0 +1,51 @@+@import "tailwindcss";++@theme {+ --color-ink-950: #0a0a0f;+ --color-ink-900: #111118;+ --color-ink-800: #181822;+ --color-ink-700: #22222f;+ --color-ink-600: #2f2f40;+ --color-ink-500: #4a4a5f;+ --color-accent: #ff5c8a;+ --color-accent-hover: #ff759d;+ --color-accent-soft: rgba(255, 92, 138, 0.15);+ --font-sans: Inter, ui-sans-serif, system-ui, sans-serif;+ --animate-pulseBar: pulseBar 1.6s ease-in-out infinite;+ @keyframes pulseBar {+ 0%, 100% { opacity: 0.4; }+ 50% { opacity: 1; }+ }+}++@layer base {+ html, body, #root { height: 100%; }+ body { -webkit-font-smoothing: antialiased; }+ ::-webkit-scrollbar { width: 8px; height: 8px; }+ ::-webkit-scrollbar-thumb { background: var(--color-ink-600); border-radius: 9999px; }+ textarea, input, select { outline: none; }+ input[type='range'] { accent-color: var(--color-accent); }+ button:not(:disabled), [role='switch'] { cursor: pointer; }+}++@utility field {+ @apply w-full rounded-lg bg-ink-800 border border-ink-600 px-3 py-2 text-sm placeholder:text-zinc-500 focus:border-accent/70 focus:ring-1 focus:ring-accent/40 transition;+}+@utility label {+ @apply text-[11px] uppercase tracking-wider text-zinc-400 font-medium;+}+@utility chip {+ @apply px-2 py-0.5 rounded-md text-xs bg-ink-700 hover:bg-ink-600 border border-ink-600 text-zinc-300 transition;+}+@utility btn {+ @apply inline-flex items-center gap-1.5 rounded-lg px-3 py-1.5 text-sm font-medium transition disabled:opacity-40 disabled:cursor-not-allowed;+}+@utility btn-primary {+ @apply btn bg-accent hover:bg-accent-hover text-white shadow-lg shadow-accent/20;+}+@utility btn-ghost {+ @apply btn bg-transparent hover:bg-ink-700 text-zinc-300;+}+@utility icon-btn {+ @apply p-1.5 rounded-md text-zinc-400 hover:text-white hover:bg-ink-600 transition disabled:opacity-40;+}diff --git a/web/src/lib/cover.ts b/web/src/lib/cover.tsnew file mode 100644index 0000000..e8b4377--- /dev/null+++ b/web/src/lib/cover.ts@@ -0,0 +1,11 @@+/** Deterministic gradient from an id, so each track has a stable "cover". */+export function coverStyle(id: string): React.CSSProperties {+ let h = 0;+ for (let i = 0; i < id.length; i++) h = (h * 31 + id.charCodeAt(i)) >>> 0;+ const a = h % 360;+ const b = (a + 40 + (h >> 8) % 80) % 360;+ const c = (a + 200 + (h >> 16) % 60) % 360;+ return {+ backgroundImage: `radial-gradient(circle at 20% 20%, hsl(${a} 80% 60%) 0%, transparent 55%), radial-gradient(circle at 80% 30%, hsl(${b} 75% 55%) 0%, transparent 55%), linear-gradient(135deg, hsl(${c} 60% 25%), hsl(${a} 50% 15%))`,+ };+}diff --git a/web/src/lib/format.ts b/web/src/lib/format.tsnew file mode 100644index 0000000..424a357--- /dev/null+++ b/web/src/lib/format.ts@@ -0,0 +1,24 @@+export function fmtTime(sec: number): string {+ if (!Number.isFinite(sec) || sec < 0) sec = 0;+ const m = Math.floor(sec / 60);+ const s = Math.floor(sec % 60);+ return `${m}:${s.toString().padStart(2, '0')}`;+}++export function fmtEta(sec: number | null): string {+ if (sec === null || !Number.isFinite(sec)) return '';+ if (sec < 60) return `~${Math.max(1, Math.round(sec))}s left`;+ return `~${Math.round(sec / 60)} min left`;+}++export function fmtAgo(iso: string): string {+ const d = (Date.now() - new Date(iso).getTime()) / 1000;+ if (d < 60) return 'just now';+ if (d < 3600) return `${Math.floor(d / 60)}m ago`;+ if (d < 86400) return `${Math.floor(d / 3600)}h ago`;+ return new Date(iso).toLocaleDateString();+}++export const FORMAT_LABEL: Record<string, string> = {+ wav: 'WAV 24-bit', wav16: 'WAV 16-bit', wav32f: 'WAV 32-bit float', flac: 'FLAC', mp3: 'MP3 320k',+};diff --git a/web/src/lib/peaks.ts b/web/src/lib/peaks.tsnew file mode 100644index 0000000..c29b5c1--- /dev/null+++ b/web/src/lib/peaks.ts@@ -0,0 +1,39 @@+const cache = new Map<string, Promise<number[]>>();++/** Decode audio at `url` and return `buckets` normalised peak values (0..1). Cached per url. */+export function loadPeaks(url: string, buckets = 160): Promise<number[]> {+ const key = `${url}#${buckets}`;+ let p = cache.get(key);+ if (!p) {+ p = (async () => {+ const res = await fetch(url);+ if (!res.ok) throw new Error(`audio ${res.status}`);+ const buf = await res.arrayBuffer();+ const ctx = new (window.AudioContext || (window as unknown as { webkitAudioContext: typeof AudioContext }).webkitAudioContext)();+ try {+ const audio = await ctx.decodeAudioData(buf);+ const ch0 = audio.getChannelData(0);+ const ch1 = audio.numberOfChannels > 1 ? audio.getChannelData(1) : ch0;+ const size = Math.max(1, Math.floor(ch0.length / buckets));+ const peaks: number[] = [];+ for (let i = 0; i < buckets; i++) {+ let max = 0;+ const start = i * size;+ const end = Math.min(ch0.length, start + size);+ for (let j = start; j < end; j += 4) {+ const v = Math.max(Math.abs(ch0[j]), Math.abs(ch1[j]));+ if (v > max) max = v;+ }+ peaks.push(max);+ }+ const top = Math.max(0.01, ...peaks);+ return peaks.map((v) => v / top);+ } finally {+ void ctx.close();+ }+ })();+ cache.set(key, p);+ p.catch(() => cache.delete(key));+ }+ return p;+}diff --git a/web/src/main.tsx b/web/src/main.tsxnew file mode 100644index 0000000..9aa52ff--- /dev/null+++ b/web/src/main.tsx@@ -0,0 +1,10 @@+import React from 'react';+import ReactDOM from 'react-dom/client';+import App from './App';+import './index.css';++ReactDOM.createRoot(document.getElementById('root')!).render(+ <React.StrictMode>+ <App />+ </React.StrictMode>,+);diff --git a/web/src/types.ts b/web/src/types.tsnew file mode 100644index 0000000..bdf317d--- /dev/null+++ b/web/src/types.ts@@ -0,0 +1,62 @@+export type TrackStatus = 'queued' | 'running' | 'done' | 'error';++export interface Track {+ id: string;+ groupId: string;+ takeIndex: number;+ jobId: string | null;+ title: string;+ prompt: string;+ lyrics: string;+ duration: number;+ seed: number | null;+ steps: number | null;+ format: string;+ status: TrackStatus;+ progress: number;+ stage: string;+ eta: number | null;+ error: string | null;+ file: string | null;+ createdAt: string;+ finishedAt: string | null;+ sampleRate?: number;+ channels?: number;+ encoding?: string;+ peakDbfs?: number;+ clipped?: boolean;+}++export interface Health {+ upstreamReachable: boolean;+ ready: boolean;+ busy: boolean;+ queued: number;+ sampling_rate?: number;+ formats: string[];+ error?: string;+}++export interface GenerateInput {+ title: string;+ prompt: string;+ lyrics: string;+ duration: number;+ seed: number | null;+ steps: number | null;+ format: string;+ takes: number;+}++export const isInflight = (t: Track) => t.status === 'queued' || t.status === 'running';++export interface Template {+ id: string;+ name: string;+ prompt: string;+ lyrics: string;+ duration: number;+ steps: number | null;+ format: string;+ createdAt: string;+}diff --git a/web/tsconfig.json b/web/tsconfig.jsonnew file mode 100644index 0000000..69c5531--- /dev/null+++ b/web/tsconfig.json@@ -0,0 +1,18 @@+{+ "compilerOptions": {+ "target": "ES2022",+ "lib": ["ES2022", "DOM", "DOM.Iterable"],+ "module": "ESNext",+ "moduleResolution": "Bundler",+ "jsx": "react-jsx",+ "strict": true,+ "noUnusedLocals": true,+ "noUnusedParameters": true,+ "noFallthroughCasesInSwitch": true,+ "skipLibCheck": true,+ "isolatedModules": true,+ "noEmit": true,+ "types": ["vite/client"]+ },+ "include": ["src"]+}diff --git a/web/vite.config.ts b/web/vite.config.tsnew file mode 100644index 0000000..f254518--- /dev/null+++ b/web/vite.config.ts@@ -0,0 +1,11 @@+import { defineConfig } from 'vite';+import react from '@vitejs/plugin-react';+import tailwindcss from '@tailwindcss/vite';++export default defineConfig({+ plugins: [react(), tailwindcss()],+ server: {+ port: 5173,+ proxy: { '/api': { target: process.env.SERVER_URL ?? 'http://127.0.0.1:8787', changeOrigin: true } },+ },+});