diff --git a/apps/presentation/calli-workbench/.gitignore b/apps/presentation/calli-workbench/.gitignore new file mode 100644 index 0000000000..f4e2c6d6b8 --- /dev/null +++ b/apps/presentation/calli-workbench/.gitignore @@ -0,0 +1,3 @@ +node_modules/ +dist/ +*.tsbuildinfo diff --git a/apps/presentation/calli-workbench/NOTICE b/apps/presentation/calli-workbench/NOTICE new file mode 100644 index 0000000000..ee957322ce --- /dev/null +++ b/apps/presentation/calli-workbench/NOTICE @@ -0,0 +1,4 @@ +Calli Workbench +Portions derived from Calli (https://github.com/maxliux5/calli). +Copyright Calli contributors. Relicensed under the Apache License, Version 2.0 +with contributor consent. diff --git a/apps/presentation/calli-workbench/README.md b/apps/presentation/calli-workbench/README.md new file mode 100644 index 0000000000..2384a358c8 --- /dev/null +++ b/apps/presentation/calli-workbench/README.md @@ -0,0 +1,58 @@ +# Calli Workbench + +The Calli web UI (React 18 / Vite 5), ported from the Calli repository +(`packages/web`) into LoopX as a separate presentation +surface, then stripped to the part M1 needs: the thread sidebar, the thread view, +the launch bar and the desk. No change to `loopx/`. + +## Data layer: pending replacement + +The app currently runs on the fixture-backed `DemoApi` (`src/demo/`), which +answers from made-up data and refuses every write. It reaches no service. + +`src/api.ts` is still the Calli daemon client and its method signatures are the +interface the M1 adapter has to implement (`LoopxApi`, read-only). Until that +lands, `npm run dev` shows the demo workspace. The dev server proxies nothing: +the shell makes no network calls. The read-only proxy arrives with the +projections PR, together with its first caller. + +## Layout + +- `src/`, `public/`, `test/`: Calli web, with the removals listed below. +- `src/daemon-shared/`: `icons.ts` and `todo-priority.ts`, copied from the Calli + daemon (the web app imported them across packages). +- `src/attention.ts`: the `Attention` and `ProgressReport` types that the web app + took from Calli's extension API package. +- `src/thread-feed.ts`: the thread list feed, moved out of Calli's extensions. + +## Build + +```sh +npm install +npm run build # tsc --noEmit && vite build -> dist/ +npm test # unit tests (tsx --test) +npm run dev # 127.0.0.1:5174 +``` + +## Removed from upstream + +Voice, writing mode, the pet, quota and cost boards, skills and MCP pages, +agent management and login, daemon settings, Calli's own todos/schedules/teams, +handover and the merged handover history, terminal/desktop/files/preview panels, +observability and activity pages, the extension system and its packages, +import/archive panels, side chat, selection notes, and the local caches and +persisted drafts. Their tests went with them. `styles.css` is untouched, so it +still carries the rules for those features. + +## Other deviations from upstream + +- Dev port 5174 / preview 4174 (upstream 5173), and no Calli daemon proxy. +- `App.tsx` and `main.tsx` no longer take a token or connect dialog; the + workspace is the demo until the adapter lands. +- The Composer accepts pictures only; mentions, videos and files, notes and + takeover are gone. +- The merged handover history is replaced by a plain `ThreadView`. + +## Provenance & license + +Derived from Calli (`packages/web`) and relicensed under Apache-2.0 with the consent of its contributors; see `NOTICE`. diff --git a/apps/presentation/calli-workbench/index.html b/apps/presentation/calli-workbench/index.html new file mode 100644 index 0000000000..d855b3614a --- /dev/null +++ b/apps/presentation/calli-workbench/index.html @@ -0,0 +1,33 @@ + + + + + + + + + Calli + + + + + + + + + + +
+ + + diff --git a/apps/presentation/calli-workbench/package-lock.json b/apps/presentation/calli-workbench/package-lock.json new file mode 100644 index 0000000000..d307946b7f --- /dev/null +++ b/apps/presentation/calli-workbench/package-lock.json @@ -0,0 +1,4893 @@ +{ + "name": "@loopx/calli-workbench", + "version": "0.1.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "@loopx/calli-workbench", + "version": "0.1.0", + "license": "Apache-2.0", + "dependencies": { + "mermaid": "^12.1.0", + "react": "^18.3.1", + "react-dom": "^18.3.1", + "react-markdown": "^9.0.1", + "remark-gfm": "^4.0.0" + }, + "devDependencies": { + "@types/node": "^22.10.0", + "@types/react": "^18.3.12", + "@types/react-dom": "^18.3.1", + "@vitejs/plugin-react": "^4.3.4", + "tsx": "^4.19.0", + "typescript": "^5.6.0", + "vite": "^5.4.11" + } + }, + "node_modules/@antfu/install-pkg": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@antfu/install-pkg/-/install-pkg-2.1.0.tgz", + "integrity": "sha512-sdg9NxU3zR4Mnawfbc/x6GB5Wf17WYud5qOuEuxXjaKpYpMkISSJEjItGebXJ2bQ4DIcly4NYH23mtkGJjvKUw==", + "license": "MIT", + "dependencies": { + "package-manager-detector": "^1.8.0", + "tinyexec": "^1.3.1" + }, + "funding": { + "url": "https://github.com/sponsors/antfu" + } + }, + "node_modules/@babel/code-frame": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.29.7.tgz", + "integrity": "sha512-Aup7aUOfpbAUg2ROOJN6Iw5f9DMBlzu0mIkm/malLQFN/YQgO48wCj0Kxa3sEHJvPVFg7siR+qRInwXd2qhQKw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-validator-identifier": "^7.29.7", + "js-tokens": "^4.0.0", + "picocolors": "^1.1.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/compat-data": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.29.7.tgz", + "integrity": "sha512-locTkQyKvwIEgBzVrn8693ebc97F2U8ZHjbXwDXJ5Fn2TCpNwTlKcaKLkdHop5c/icOFE7qt7Q9JC5hnKNa6Gg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/core": { + "version": "7.29.13", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.29.13.tgz", + "integrity": "sha512-j1nvOQCZYSgp7HLmisnCXFTpVvFODiijQ9QHkORfGKWH6YDtskTEeCJS7eV545GZ9UBzrq0e2xsOd5QQ5PjIqw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.29.7", + "@babel/generator": "^7.29.13", + "@babel/helper-compilation-targets": "^7.29.13", + "@babel/helper-module-transforms": "^7.29.13", + "@babel/helpers": "^7.29.13", + "@babel/parser": "^7.29.13", + "@babel/template": "^7.29.7", + "@babel/traverse": "^7.29.13", + "@babel/types": "^7.29.11", + "@jridgewell/remapping": "^2.3.5", + "convert-source-map": "^2.0.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.2", + "json5": "^2.2.3", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/babel" + } + }, + "node_modules/@babel/generator": { + "version": "7.29.14", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.29.14.tgz", + "integrity": "sha512-qSY56jgW5JnSXzuekLVil6zaOQxOCtOHidr65KkaMBw772IuAY28Qx4ZykAcDn8+FRF15qk80XzKwgSc/RYW6g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.29.14", + "@babel/types": "^7.29.14", + "@jridgewell/gen-mapping": "^0.3.12", + "@jridgewell/trace-mapping": "^0.3.28", + "jsesc": "^3.0.2" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-compilation-targets": { + "version": "7.29.13", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.29.13.tgz", + "integrity": "sha512-8WxJ4/Vmes3ghacj8VOJy3NW8eyHiFY/4thU/LSBuBE470+igjR/j1ZTNn8fV5VdNrLx6iXUwig526UdOvfP0w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/compat-data": "^7.29.7", + "@babel/helper-validator-option": "^7.29.7", + "browserslist": "^4.24.0", + "lru-cache": "^5.1.1", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-globals": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-7.29.7.tgz", + "integrity": "sha512-3nQVUAtvkKH9zahfWgw96Jc/uFOmjACE1kQz82E2lqWmHBgjzbNlsC22nuQTfahmWeQtTq5nQ/4Nnd2A1wj4zA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-imports": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.29.7.tgz", + "integrity": "sha512-ejHwrQQYcm9xnTivShn2IDOlIzInN34AXskvq9QicvCtEzq1Vzclu/tKF8Jq1Cg8JG2GL6/EmjgsCT7lXepE3g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/traverse": "^7.29.7", + "@babel/types": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-transforms": { + "version": "7.29.14", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.29.14.tgz", + "integrity": "sha512-2XDvQVd9JESaOgGc4jT2/jquTAO7ppA5noTZQqH+MmZ89yjCzScLwtCPbWtkPZylL+TLWR49IwWmk+QkRR4GsA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-module-imports": "^7.29.7", + "@babel/helper-validator-identifier": "^7.29.7", + "@babel/traverse": "^7.29.14" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-plugin-utils": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.29.7.tgz", + "integrity": "sha512-G7sHYigPY17oO5SYWnfD/0MTBwVR781S/JI643e/JhUYgVgWE/61SoW3NH9KWUKyKq5LVh3npif99Wkt6j86Jw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-string-parser": { + "version": "7.29.14", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.29.14.tgz", + "integrity": "sha512-CXvKMFvM80ihI7Vox9jb+kQjnyjESQNPM+vB7U0Zz6TWuZA+Z/FL0QPMH300h33qJtIx+REeBhXqWOPW48TcAQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.29.7.tgz", + "integrity": "sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-option": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.29.7.tgz", + "integrity": "sha512-N9ZErrD+yW5geCDtBqnOoxmR8+tNKiGuxKlDpuJxfsqpa2dFcexaziGAE/qoHLiDDreVNMupxGmSoNlyvsA3gw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helpers": { + "version": "7.29.14", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.29.14.tgz", + "integrity": "sha512-6E3Mi1r0B0umq6vmZa4/78q+64fqO2YY0THUdjDPKUCKhNb0yQy5NQIaPHCSD3ryTgiTss//P4JsWS80AsZ6LQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/template": "^7.29.7", + "@babel/types": "^7.29.14" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/parser": { + "version": "7.29.14", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.14.tgz", + "integrity": "sha512-VL220vXuyO2z3rNIQwY7ftj9UwpqOt+33sH+sBWkOekbsSR2g7EEMnOx24ZlCH0xOA3DM/33SifVFGbnJD8r/w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.29.14" + }, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/plugin-transform-react-jsx-self": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-self/-/plugin-transform-react-jsx-self-7.29.7.tgz", + "integrity": "sha512-TL0hMc9xzy86VD31nUiwzd5otRAcyEPcsegCxolO0PvcXuH1v0kECe/UIznYFihpkvU5wg/jk4v0TTEFfm53fw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-react-jsx-source": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-source/-/plugin-transform-react-jsx-source-7.29.7.tgz", + "integrity": "sha512-06IyK09H3wi4cGbhDBwp5gUGo0IKtnYa8tyTiephirPCK6fbobVGiXMMI5zLQ4aKEYP3wZ3ArU44o+8KMrSG/Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/template": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.29.7.tgz", + "integrity": "sha512-puq+Gf35oI24FeN11LkoUQFqv9uwNeWpxXZi/Ji3rRIoKAzKnxRaZ+Gkj0vKS9ZCiTESfng1N9LyOyXvo+m+Gg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.29.7", + "@babel/parser": "^7.29.7", + "@babel/types": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/traverse": { + "version": "7.29.14", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.29.14.tgz", + "integrity": "sha512-RAdQJrBgmIH1FWvN0X+1hoDxzMzlP4cv/1Zi4dn4tG1H0cTb+rw7CzUxQJhp1f4ANd8j5vH3fy8BAWFGkBDEsA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.29.7", + "@babel/generator": "^7.29.14", + "@babel/helper-globals": "^7.29.7", + "@babel/parser": "^7.29.14", + "@babel/template": "^7.29.7", + "@babel/types": "^7.29.14", + "debug": "^4.3.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/types": { + "version": "7.29.14", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.14.tgz", + "integrity": "sha512-UjI/dKmwJwT9pOszJitq2G6EObZPnsZUfdCr92z2TlF3EZK9J3EdfOKUrCzHl6wFthbzwhzl1Soc/UIwxRiq6w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-string-parser": "^7.29.14", + "@babel/helper-validator-identifier": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@braintree/sanitize-url": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/@braintree/sanitize-url/-/sanitize-url-7.1.2.tgz", + "integrity": "sha512-jigsZK+sMF/cuiB7sERuo9V7N9jx+dhmHHnQyDSVdpZwVutaBu7WvNYqMDLSgFgfB30n452TP3vjDAvFC973mA==", + "license": "MIT" + }, + "node_modules/@chevrotain/cst-dts-gen": { + "version": "13.2.0", + "resolved": "https://registry.npmjs.org/@chevrotain/cst-dts-gen/-/cst-dts-gen-13.2.0.tgz", + "integrity": "sha512-bA9dvWlhAUcHkNwU+8w9yiUxJPlj/Lm3VqS7MD+NbIR/7LmpNLuK/AWNFdCo/T3SK5ND0/UHf3IJvl/Jn/i6yg==", + "license": "Apache-2.0", + "dependencies": { + "@chevrotain/gast": "13.2.0", + "@chevrotain/types": "13.2.0" + } + }, + "node_modules/@chevrotain/gast": { + "version": "13.2.0", + "resolved": "https://registry.npmjs.org/@chevrotain/gast/-/gast-13.2.0.tgz", + "integrity": "sha512-bCARdAsG+eEbOveSXcOAC7pVxA04I1ionzeMOwIYf5NX7SaS7zgn4Dgug2BSqoL+iyKeMNSorQjsFSHJHsCNwg==", + "license": "Apache-2.0", + "dependencies": { + "@chevrotain/types": "13.2.0" + } + }, + "node_modules/@chevrotain/regexp-to-ast": { + "version": "13.2.0", + "resolved": "https://registry.npmjs.org/@chevrotain/regexp-to-ast/-/regexp-to-ast-13.2.0.tgz", + "integrity": "sha512-kxpUkLtiaK09ph+dib+Yvm+3sWSnuwlo25gqfKRgTPNmF6H7uW4gVkMjaRdtnN783S9sM6vUNWh9CsxYX4QwKw==", + "license": "Apache-2.0" + }, + "node_modules/@chevrotain/types": { + "version": "13.2.0", + "resolved": "https://registry.npmjs.org/@chevrotain/types/-/types-13.2.0.tgz", + "integrity": "sha512-7qrYHRlKfWf2AvBfJi5eVOrKAkbxvMFsy/iIHTGIiApNcEecCaVIdR+mIQhyCBsTDJxBz4JWXHMo6krbhR9hVg==", + "license": "Apache-2.0" + }, + "node_modules/@chevrotain/utils": { + "version": "13.2.0", + "resolved": "https://registry.npmjs.org/@chevrotain/utils/-/utils-13.2.0.tgz", + "integrity": "sha512-SzKYY68rseOrb9KILVzPsl6SjkQtdWw01SRGB5aCVI5kFcHltQsOYV3JB0Ffst72DgkvHCyDQ0NLwxtmCCf97Q==", + "license": "Apache-2.0" + }, + "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/@iconify/types": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@iconify/types/-/types-2.0.0.tgz", + "integrity": "sha512-+wluvCrRhXrhyOmRDJ3q8mux9JkKy5SJ/v8ol2tu4FVjyYvtEzkc/3pK15ET6RKg4b4w4BmTk1+gsCUhf21Ykg==", + "license": "MIT" + }, + "node_modules/@iconify/utils": { + "version": "3.1.7", + "resolved": "https://registry.npmjs.org/@iconify/utils/-/utils-3.1.7.tgz", + "integrity": "sha512-JZHlwdID+dy+lTgbYC8NEC4zeugqeYsc6jewvzb4c58kHauJn+X7rNwQjxz5p2qSjqaEeQoLkCIQ9v/H4PK0/w==", + "license": "MIT", + "dependencies": { + "@antfu/install-pkg": "^2.0.1", + "@iconify/types": "^2.0.0", + "import-meta-resolve": "^4.2.0" + } + }, + "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.3", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.3.tgz", + "integrity": "sha512-lhTtjtoEArWBjismtfS761S9Hlyn+nIZqOZVYoZ1Xn82PMNMVnk+jj/NhC4fAXGTs7ydONcJiR5vyQBTMDu27g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.6.0.tgz", + "integrity": "sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==", + "dev": true, + "license": "MIT" + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.31", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz", + "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "node_modules/@mermaid-js/parser": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@mermaid-js/parser/-/parser-2.0.1.tgz", + "integrity": "sha512-j37dj/h6p6pots1L7pLPPNuABEEu9WP4OYg9pW1g+nYG331j0+3canE9OagtYdytYvdSAMG+2fKU5cxep6LgjA==", + "license": "MIT", + "dependencies": { + "@chevrotain/types": "~13.2.0" + }, + "engines": { + "node": ">=22.12.0" + } + }, + "node_modules/@rolldown/pluginutils": { + "version": "1.0.0-beta.27", + "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.0-beta.27.tgz", + "integrity": "sha512-+d0F4MKMCbeVUJwG96uQ4SgAznZNSq93I3V+9NHA4OpvqG8mRCpGdKmK8l/dl02h2CCDHwW2FqilnTyDcAnqjA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@rollup/rollup-android-arm-eabi": { + "version": "4.68.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.68.3.tgz", + "integrity": "sha512-mqfypgH/liYjaSCoPI4erckUcROgZtmFUUmyOJ05oyayi/tVqOEYAzWP7ufqCoCT3xB31Fw4XIVO/jX42hYvKA==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-android-arm64": { + "version": "4.68.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.68.3.tgz", + "integrity": "sha512-5tY+GC/1gpt79cKS2DQzu6iD824j6BmI4q5Zb6qftZ4kWqIQmvR3DD4eJ2Gclu6/nVMYDk2IVpqxypWOiAuWJg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-android-x64": { + "version": "4.68.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-x64/-/rollup-android-x64-4.68.3.tgz", + "integrity": "sha512-nDBcQ/o3PMmGxmAzGBJFn+n1rb83Va9WSdFIq1AHmlEF3tuibVsyJ3kG5x13r7VIy6WI8SvzCdHVNSlSDIdj8w==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-darwin-arm64": { + "version": "4.68.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.68.3.tgz", + "integrity": "sha512-dra5zl0QWKkIkaMgNDNPC19gkMlPAfAf41yWlkGztXMIvUQrX9XWZFQRw7abhH3nks+XZGQpybINAxT2pKdFew==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-darwin-x64": { + "version": "4.68.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.68.3.tgz", + "integrity": "sha512-xo5xeo/AjEB/ArzQjGn0JRDZuybZicQ5O3VPfko6ocH1li/qNrN4p5+R/WgjavzRz6UwAOaqsau7VvRQA6i6AA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-freebsd-arm64": { + "version": "4.68.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.68.3.tgz", + "integrity": "sha512-zdckkcxHDEEKyDbC1t21DeaaiKGymxbkBU9c3zyfaaz+8N96ItJw4nmzHhZF+Mukgt906fnf2tsc90pVyStuHA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ] + }, + "node_modules/@rollup/rollup-freebsd-x64": { + "version": "4.68.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.68.3.tgz", + "integrity": "sha512-9oXqI7g/ycEz7TyicdGBC4sL6PfWMXAx8u15f/nd7lYkCLJd8U8VdBfbpc4SSnRBU/e7aPALve3mhzasGDeCYg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ] + }, + "node_modules/@rollup/rollup-linux-arm-gnueabihf": { + "version": "4.68.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.68.3.tgz", + "integrity": "sha512-hbgT4NlaOELE3D5UUzSqF+OFgwz4Scvo2SQD9nZJUFjdIsg9Kg3FabQauUxkHKY9N5yjNXfXRRmiKNN4JpLmFA==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm-musleabihf": { + "version": "4.68.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.68.3.tgz", + "integrity": "sha512-yECcXZ/Bl+JVRhLFgld42rYrXgPdE0LtySGAmmmH6OtkaJM17A4cWG/eCzDymMVb52/jZjW0R54YrTHj4xXlSA==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-gnu": { + "version": "4.68.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.68.3.tgz", + "integrity": "sha512-q4Q4/B7wyqM+TFqY5tJYQlaz5+ksGopcRmMeMdu4q6eaPK7N1PymTjIaH5LL32mMJBqIzpRof7BhlYLim5JgNQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-musl": { + "version": "4.68.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.68.3.tgz", + "integrity": "sha512-Ich3TGl/7GqhQ6G6jVPzgGQGJjd3E5hECxSVanPYchy6Vwcq+WI8wG/gmEMilHNy+ZYCR6U8EN50EejG3TaIgw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-loong64-gnu": { + "version": "4.68.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.68.3.tgz", + "integrity": "sha512-URBmOhwv4Y0Hi5Hhxc3cmqZLtQlx55DOs5PUhhITDC3zu0qwAfhcNAFAIwAhOUdA6NFVEck07CNZX6cBEs1vTg==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-loong64-musl": { + "version": "4.68.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.68.3.tgz", + "integrity": "sha512-PTdJXuZplRyaE3ECArlbZubI2LlUHWm0oCipCexnE/8LM+L7qIqUiNbU0piBxt46EB5zxXX+cpmDvHX4Z3WwcQ==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-ppc64-gnu": { + "version": "4.68.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.68.3.tgz", + "integrity": "sha512-IlSQPDExSm9YdtrWeZIHj87GPXI9lYygRvHVwQ1o9t91JHIiB2CihrvNIASpc/zI28atqm04jS3proaQuaJMww==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-ppc64-musl": { + "version": "4.68.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.68.3.tgz", + "integrity": "sha512-O2ssyDcBTZkH5v2P/9ZaXJreL0hCKvUA5UwuHn0jCKeMLKi4GhspZJ1I5FT5QsHtJ/dPx4pup7pg/Lw0emeY0Q==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-riscv64-gnu": { + "version": "4.68.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.68.3.tgz", + "integrity": "sha512-fesqagxcnc87lH2+aBWne/tFCmQVIGH+YezjY1wQwbUODuTBBlhHoyxju6umwn8LnjHVanjpoeaQdLsXP8JQSQ==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-riscv64-musl": { + "version": "4.68.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.68.3.tgz", + "integrity": "sha512-WAjFDtLW3HjJ2RAytKoWdFwlK/hW8rJHrjhRZFw14nR+c9JN//WIlSBkyXUjEYCNOFs2sGLNutOEPQG4iVYHgA==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-s390x-gnu": { + "version": "4.68.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.68.3.tgz", + "integrity": "sha512-+fZiTeHV/1fy/14dRqE4thjYwUOABL6qQjxElOEQg2oHLkCamO8dxhHphVgD4+pFxtVEUIWxsGVduPtwnAlvbg==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-gnu": { + "version": "4.68.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.68.3.tgz", + "integrity": "sha512-pfn4Zd9Ic3lEaSwW3GsQhTIDd7929C+eiEkOutsSCT2IHD6rDLblwmMQkgeGOso0oDo9Jk/ERtFdtFr9ElLs+g==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-musl": { + "version": "4.68.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.68.3.tgz", + "integrity": "sha512-eUXzaeNQbKXKNqseL3g/usUqOPmRu+DbQsvwr9MXMdV+VQFUNb9bcWSNAAs/TRV95PCbFK46kLzHEOhFSzujsg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-openbsd-x64": { + "version": "4.68.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-openbsd-x64/-/rollup-openbsd-x64-4.68.3.tgz", + "integrity": "sha512-OiUclE7QDU4H/hr3ACRHhVGKWl+gNx+6Emignfq0hmNmzzTkZnT79wzB9NXKd0QH16S4t/wVqlAFBfC17nkZ5A==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ] + }, + "node_modules/@rollup/rollup-openharmony-arm64": { + "version": "4.68.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.68.3.tgz", + "integrity": "sha512-s6EclDWmk6zvIfk1yixgYthk7xHNx0xu5cEF5RDpS4IHNTpfswRX6xOXVG5cHF5xWn0B6EpDGARhPQ520KTlsA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ] + }, + "node_modules/@rollup/rollup-win32-arm64-msvc": { + "version": "4.68.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.68.3.tgz", + "integrity": "sha512-G2xnmxGnU8XHLwtjnnXNRcLrub+Af3nm9VQ1QzL2aEiAL7woBdRgTCZBslJl8umA+YMqdEFpUh9kJB/Vyzk2wQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-ia32-msvc": { + "version": "4.68.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.68.3.tgz", + "integrity": "sha512-Y/4tApNVrMUYWbAHsyRWJgwuuJOfhTNhA2B04Xpa6+G9btkPZ9kU3XagUKzPTwF3hg36NpQk748JsnoTVho67Q==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-x64-gnu": { + "version": "4.68.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.68.3.tgz", + "integrity": "sha512-i2vH/OA5BcW+TdNg12ZTRC4rn+vILaPMP9CvHqnv+QEpMjBHGGNLo4k4EnEqzjYvTD6x1Xark9WhsQbH4bTzUQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-x64-msvc": { + "version": "4.68.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.68.3.tgz", + "integrity": "sha512-ADb1Uz2MNM0sxVpAlMNdQG16Hw4sgW1aqVL7NeqBMpcZeiHb192d7W6shZdMQs33D+w9ihDYBBPsYqqc4MlD8w==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@types/babel__core": { + "version": "7.20.5", + "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz", + "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.20.7", + "@babel/types": "^7.20.7", + "@types/babel__generator": "*", + "@types/babel__template": "*", + "@types/babel__traverse": "*" + } + }, + "node_modules/@types/babel__generator": { + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.27.0.tgz", + "integrity": "sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__template": { + "version": "7.4.4", + "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz", + "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.1.0", + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__traverse": { + "version": "7.28.0", + "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.28.0.tgz", + "integrity": "sha512-8PvcXf70gTDZBgt9ptxJ8elBeBjcLOAcOtoO/mPJjtji1+CdGbHgm77om1GrsPxsiE+uXIpNSK64UYaIwQXd4Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.28.2" + } + }, + "node_modules/@types/d3": { + "version": "7.4.3", + "resolved": "https://registry.npmjs.org/@types/d3/-/d3-7.4.3.tgz", + "integrity": "sha512-lZXZ9ckh5R8uiFVt8ogUNf+pIrK4EsWrx2Np75WvF/eTpJ0FMHNhjXk8CKEx/+gpHbNQyJWehbFaTvqmHWB3ww==", + "license": "MIT", + "dependencies": { + "@types/d3-array": "*", + "@types/d3-axis": "*", + "@types/d3-brush": "*", + "@types/d3-chord": "*", + "@types/d3-color": "*", + "@types/d3-contour": "*", + "@types/d3-delaunay": "*", + "@types/d3-dispatch": "*", + "@types/d3-drag": "*", + "@types/d3-dsv": "*", + "@types/d3-ease": "*", + "@types/d3-fetch": "*", + "@types/d3-force": "*", + "@types/d3-format": "*", + "@types/d3-geo": "*", + "@types/d3-hierarchy": "*", + "@types/d3-interpolate": "*", + "@types/d3-path": "*", + "@types/d3-polygon": "*", + "@types/d3-quadtree": "*", + "@types/d3-random": "*", + "@types/d3-scale": "*", + "@types/d3-scale-chromatic": "*", + "@types/d3-selection": "*", + "@types/d3-shape": "*", + "@types/d3-time": "*", + "@types/d3-time-format": "*", + "@types/d3-timer": "*", + "@types/d3-transition": "*", + "@types/d3-zoom": "*" + } + }, + "node_modules/@types/d3-array": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/@types/d3-array/-/d3-array-3.2.2.tgz", + "integrity": "sha512-hOLWVbm7uRza0BYXpIIW5pxfrKe0W+D5lrFiAEYR+pb6w3N2SwSMaJbXdUfSEv+dT4MfHBLtn5js0LAWaO6otw==", + "license": "MIT" + }, + "node_modules/@types/d3-axis": { + "version": "3.0.6", + "resolved": "https://registry.npmjs.org/@types/d3-axis/-/d3-axis-3.0.6.tgz", + "integrity": "sha512-pYeijfZuBd87T0hGn0FO1vQ/cgLk6E1ALJjfkC0oJ8cbwkZl3TpgS8bVBLZN+2jjGgg38epgxb2zmoGtSfvgMw==", + "license": "MIT", + "dependencies": { + "@types/d3-selection": "*" + } + }, + "node_modules/@types/d3-brush": { + "version": "3.0.6", + "resolved": "https://registry.npmjs.org/@types/d3-brush/-/d3-brush-3.0.6.tgz", + "integrity": "sha512-nH60IZNNxEcrh6L1ZSMNA28rj27ut/2ZmI3r96Zd+1jrZD++zD3LsMIjWlvg4AYrHn/Pqz4CF3veCxGjtbqt7A==", + "license": "MIT", + "dependencies": { + "@types/d3-selection": "*" + } + }, + "node_modules/@types/d3-chord": { + "version": "3.0.6", + "resolved": "https://registry.npmjs.org/@types/d3-chord/-/d3-chord-3.0.6.tgz", + "integrity": "sha512-LFYWWd8nwfwEmTZG9PfQxd17HbNPksHBiJHaKuY1XeqscXacsS2tyoo6OdRsjf+NQYeB6XrNL3a25E3gH69lcg==", + "license": "MIT" + }, + "node_modules/@types/d3-color": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/@types/d3-color/-/d3-color-3.1.3.tgz", + "integrity": "sha512-iO90scth9WAbmgv7ogoq57O9YpKmFBbmoEoCHDB2xMBY0+/KVrqAaCDyCE16dUspeOvIxFFRI+0sEtqDqy2b4A==", + "license": "MIT" + }, + "node_modules/@types/d3-contour": { + "version": "3.0.6", + "resolved": "https://registry.npmjs.org/@types/d3-contour/-/d3-contour-3.0.6.tgz", + "integrity": "sha512-BjzLgXGnCWjUSYGfH1cpdo41/hgdWETu4YxpezoztawmqsvCeep+8QGfiY6YbDvfgHz/DkjeIkkZVJavB4a3rg==", + "license": "MIT", + "dependencies": { + "@types/d3-array": "*", + "@types/geojson": "*" + } + }, + "node_modules/@types/d3-delaunay": { + "version": "6.0.4", + "resolved": "https://registry.npmjs.org/@types/d3-delaunay/-/d3-delaunay-6.0.4.tgz", + "integrity": "sha512-ZMaSKu4THYCU6sV64Lhg6qjf1orxBthaC161plr5KuPHo3CNm8DTHiLw/5Eq2b6TsNP0W0iJrUOFscY6Q450Hw==", + "license": "MIT" + }, + "node_modules/@types/d3-dispatch": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/@types/d3-dispatch/-/d3-dispatch-3.0.7.tgz", + "integrity": "sha512-5o9OIAdKkhN1QItV2oqaE5KMIiXAvDWBDPrD85e58Qlz1c1kI/J0NcqbEG88CoTwJrYe7ntUCVfeUl2UJKbWgA==", + "license": "MIT" + }, + "node_modules/@types/d3-drag": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/@types/d3-drag/-/d3-drag-3.0.7.tgz", + "integrity": "sha512-HE3jVKlzU9AaMazNufooRJ5ZpWmLIoc90A37WU2JMmeq28w1FQqCZswHZ3xR+SuxYftzHq6WU6KJHvqxKzTxxQ==", + "license": "MIT", + "dependencies": { + "@types/d3-selection": "*" + } + }, + "node_modules/@types/d3-dsv": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/@types/d3-dsv/-/d3-dsv-3.0.7.tgz", + "integrity": "sha512-n6QBF9/+XASqcKK6waudgL0pf/S5XHPPI8APyMLLUHd8NqouBGLsU8MgtO7NINGtPBtk9Kko/W4ea0oAspwh9g==", + "license": "MIT" + }, + "node_modules/@types/d3-ease": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@types/d3-ease/-/d3-ease-3.0.2.tgz", + "integrity": "sha512-NcV1JjO5oDzoK26oMzbILE6HW7uVXOHLQvHshBUW4UMdZGfiY6v5BeQwh9a9tCzv+CeefZQHJt5SRgK154RtiA==", + "license": "MIT" + }, + "node_modules/@types/d3-fetch": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/@types/d3-fetch/-/d3-fetch-3.0.7.tgz", + "integrity": "sha512-fTAfNmxSb9SOWNB9IoG5c8Hg6R+AzUHDRlsXsDZsNp6sxAEOP0tkP3gKkNSO/qmHPoBFTxNrjDprVHDQDvo5aA==", + "license": "MIT", + "dependencies": { + "@types/d3-dsv": "*" + } + }, + "node_modules/@types/d3-force": { + "version": "3.0.10", + "resolved": "https://registry.npmjs.org/@types/d3-force/-/d3-force-3.0.10.tgz", + "integrity": "sha512-ZYeSaCF3p73RdOKcjj+swRlZfnYpK1EbaDiYICEEp5Q6sUiqFaFQ9qgoshp5CzIyyb/yD09kD9o2zEltCexlgw==", + "license": "MIT" + }, + "node_modules/@types/d3-format": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/@types/d3-format/-/d3-format-3.0.4.tgz", + "integrity": "sha512-fALi2aI6shfg7vM5KiR1wNJnZ7r6UuggVqtDA+xiEdPZQwy/trcQaHnwShLuLdta2rTymCNpxYTiMZX/e09F4g==", + "license": "MIT" + }, + "node_modules/@types/d3-geo": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/@types/d3-geo/-/d3-geo-3.1.1.tgz", + "integrity": "sha512-65Emv9fQiQQqphLlRkuQ5ypPsOmWPhtBGCMv61JDPEPMvsx+gzhGf74yw1a78xFKPj6zw4AgQICJoQv0vK9M2w==", + "license": "MIT", + "dependencies": { + "@types/geojson": "*" + } + }, + "node_modules/@types/d3-hierarchy": { + "version": "3.1.7", + "resolved": "https://registry.npmjs.org/@types/d3-hierarchy/-/d3-hierarchy-3.1.7.tgz", + "integrity": "sha512-tJFtNoYBtRtkNysX1Xq4sxtjK8YgoWUNpIiUee0/jHGRwqvzYxkq0hGVbbOGSz+JgFxxRu4K8nb3YpG3CMARtg==", + "license": "MIT" + }, + "node_modules/@types/d3-interpolate": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/@types/d3-interpolate/-/d3-interpolate-3.0.4.tgz", + "integrity": "sha512-mgLPETlrpVV1YRJIglr4Ez47g7Yxjl1lj7YKsiMCb27VJH9W8NVM6Bb9d8kkpG/uAQS5AmbA48q2IAolKKo1MA==", + "license": "MIT", + "dependencies": { + "@types/d3-color": "*" + } + }, + "node_modules/@types/d3-path": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/@types/d3-path/-/d3-path-3.1.1.tgz", + "integrity": "sha512-VMZBYyQvbGmWyWVea0EHs/BwLgxc+MKi1zLDCONksozI4YJMcTt8ZEuIR4Sb1MMTE8MMW49v0IwI5+b7RmfWlg==", + "license": "MIT" + }, + "node_modules/@types/d3-polygon": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@types/d3-polygon/-/d3-polygon-3.0.2.tgz", + "integrity": "sha512-ZuWOtMaHCkN9xoeEMr1ubW2nGWsp4nIql+OPQRstu4ypeZ+zk3YKqQT0CXVe/PYqrKpZAi+J9mTs05TKwjXSRA==", + "license": "MIT" + }, + "node_modules/@types/d3-quadtree": { + "version": "3.0.6", + "resolved": "https://registry.npmjs.org/@types/d3-quadtree/-/d3-quadtree-3.0.6.tgz", + "integrity": "sha512-oUzyO1/Zm6rsxKRHA1vH0NEDG58HrT5icx/azi9MF1TWdtttWl0UIUsjEQBBh+SIkrpd21ZjEv7ptxWys1ncsg==", + "license": "MIT" + }, + "node_modules/@types/d3-random": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/@types/d3-random/-/d3-random-3.0.4.tgz", + "integrity": "sha512-UHYId5WTCx4L4YNel7NU00XUXXgvgpgZOvp10PuvsQENjMDXhh2RyFc0KBjO7B45ne4Ha1yVH7ii0vnzKkuzWA==", + "license": "MIT" + }, + "node_modules/@types/d3-scale": { + "version": "4.0.9", + "resolved": "https://registry.npmjs.org/@types/d3-scale/-/d3-scale-4.0.9.tgz", + "integrity": "sha512-dLmtwB8zkAeO/juAMfnV+sItKjlsw2lKdZVVy6LRr0cBmegxSABiLEpGVmSJJ8O08i4+sGR6qQtb6WtuwJdvVw==", + "license": "MIT", + "dependencies": { + "@types/d3-time": "*" + } + }, + "node_modules/@types/d3-scale-chromatic": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@types/d3-scale-chromatic/-/d3-scale-chromatic-3.1.0.tgz", + "integrity": "sha512-iWMJgwkK7yTRmWqRB5plb1kadXyQ5Sj8V/zYlFGMUBbIPKQScw+Dku9cAAMgJG+z5GYDoMjWGLVOvjghDEFnKQ==", + "license": "MIT" + }, + "node_modules/@types/d3-selection": { + "version": "3.0.12", + "resolved": "https://registry.npmjs.org/@types/d3-selection/-/d3-selection-3.0.12.tgz", + "integrity": "sha512-Qe/KWYhEiIIxGs7HrAAjMfShxKldx19SJtr5zu53f3afPsdZNz7HHtdTLXo/kqeiWNXVycI24kSnfzBYkTzpgw==", + "license": "MIT" + }, + "node_modules/@types/d3-shape": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/@types/d3-shape/-/d3-shape-3.2.0.tgz", + "integrity": "sha512-kVd74ta9eof3eJOvbNd1vGKS/XERRyQbT26Og63hIsvDO84cjD5gEOhsXf26w3FSoNlPVz84DOFcKv/oou+fMw==", + "license": "MIT", + "dependencies": { + "@types/d3-path": "*" + } + }, + "node_modules/@types/d3-time": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/@types/d3-time/-/d3-time-3.0.4.tgz", + "integrity": "sha512-yuzZug1nkAAaBlBBikKZTgzCeA+k1uy4ZFwWANOfKw5z5LRhV0gNA7gNkKm7HoK+HRN0wX3EkxGk0fpbWhmB7g==", + "license": "MIT" + }, + "node_modules/@types/d3-time-format": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/@types/d3-time-format/-/d3-time-format-4.0.3.tgz", + "integrity": "sha512-5xg9rC+wWL8kdDj153qZcsJ0FWiFt0J5RB6LYUNZjwSnesfblqrI/bJ1wBdJ8OQfncgbJG5+2F+qfqnqyzYxyg==", + "license": "MIT" + }, + "node_modules/@types/d3-timer": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@types/d3-timer/-/d3-timer-3.0.2.tgz", + "integrity": "sha512-Ps3T8E8dZDam6fUyNiMkekK3XUsaUEik+idO9/YjPtfj2qruF8tFBXS7XhtE4iIXBLxhmLjP3SXpLhVf21I9Lw==", + "license": "MIT" + }, + "node_modules/@types/d3-transition": { + "version": "3.0.9", + "resolved": "https://registry.npmjs.org/@types/d3-transition/-/d3-transition-3.0.9.tgz", + "integrity": "sha512-uZS5shfxzO3rGlu0cC3bjmMFKsXv+SmZZcgp0KD22ts4uGXp5EVYGzu/0YdwZeKmddhcAccYtREJKkPfXkZuCg==", + "license": "MIT", + "dependencies": { + "@types/d3-selection": "*" + } + }, + "node_modules/@types/d3-zoom": { + "version": "3.0.9", + "resolved": "https://registry.npmjs.org/@types/d3-zoom/-/d3-zoom-3.0.9.tgz", + "integrity": "sha512-0sE1406XBYJGiqD3AusTl9ZqC//2mIXix51tbom25gDCA8ri4xnSZg28CaSE8Srl6FClqABUKfsn0qghgdepMA==", + "license": "MIT", + "dependencies": { + "@types/d3-interpolate": "*", + "@types/d3-selection": "*" + } + }, + "node_modules/@types/debug": { + "version": "4.1.13", + "resolved": "https://registry.npmjs.org/@types/debug/-/debug-4.1.13.tgz", + "integrity": "sha512-KSVgmQmzMwPlmtljOomayoR89W4FynCAi3E8PPs7vmDVPe84hT+vGPKkJfThkmXs0x0jAaa9U8uW8bbfyS2fWw==", + "license": "MIT", + "dependencies": { + "@types/ms": "*" + } + }, + "node_modules/@types/estree": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.10.tgz", + "integrity": "sha512-lTyOMnOcmRBzdCv6/4zUZCrEhV0xrqQiUZBZtVcbmLHBXKLnN8q89v/wKRF/Q0HbwVsqbIG3o5HDoFl9sduM+g==", + "license": "MIT" + }, + "node_modules/@types/estree-jsx": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/@types/estree-jsx/-/estree-jsx-1.0.5.tgz", + "integrity": "sha512-52CcUVNFyfb1A2ALocQw/Dd1BQFNmSdkuC3BkZ6iqhdMfQz7JWOFRuJFloOzjk+6WijU56m9oKXFAXc7o3Towg==", + "license": "MIT", + "dependencies": { + "@types/estree": "*" + } + }, + "node_modules/@types/geojson": { + "version": "7946.0.16", + "resolved": "https://registry.npmjs.org/@types/geojson/-/geojson-7946.0.16.tgz", + "integrity": "sha512-6C8nqWur3j98U6+lXDfTUWIfgvZU+EumvpHKcYjujKH7woYyLj2sUmff0tRhrqM7BohUw7Pz3ZB1jj2gW9Fvmg==", + "license": "MIT" + }, + "node_modules/@types/hast": { + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/@types/hast/-/hast-3.0.5.tgz", + "integrity": "sha512-rp/ezSWaD1m44dPKICGhiskI13nVr7qTloFwDa/IYkhhf5nzwP+zIQcIJh3WIFSBOy/H1PzB40jPjMDksN4F+g==", + "license": "MIT", + "dependencies": { + "@types/unist": "*" + } + }, + "node_modules/@types/mdast": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-4.0.4.tgz", + "integrity": "sha512-kGaNbPh1k7AFzgpud/gMdvIm5xuECykRR+JnWKQno9TAXVa6WIVCGTPvYGekIDL4uwCZQSYbUxNBSb1aUo79oA==", + "license": "MIT", + "dependencies": { + "@types/unist": "*" + } + }, + "node_modules/@types/ms": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@types/ms/-/ms-2.1.0.tgz", + "integrity": "sha512-GsCCIZDE/p3i96vtEqx+7dBUGXrc7zeSK3wwPHIaRThS+9OhWIXRqzs4d6k1SVU8g91DrNRWxWUGhp5KXQb2VA==", + "license": "MIT" + }, + "node_modules/@types/node": { + "version": "22.20.5", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.20.5.tgz", + "integrity": "sha512-U2+DNr+wSjpsTS/wZGYHq7GcwfuSmKiKvoPvK22zwTlRhU91yOniN4qRR5KhIjvif7ysw/dz/hKmfDH0Ris4aA==", + "dev": true, + "license": "MIT", + "dependencies": { + "undici-types": "~6.21.0" + } + }, + "node_modules/@types/prop-types": { + "version": "15.7.15", + "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.15.tgz", + "integrity": "sha512-F6bEyamV9jKGAFBEmlQnesRPGOQqS2+Uwi0Em15xenOxHaf2hv6L8YCVn3rPdPJOiJfPiCnLIRyvwVaqMY3MIw==", + "license": "MIT" + }, + "node_modules/@types/react": { + "version": "18.3.31", + "resolved": "https://registry.npmjs.org/@types/react/-/react-18.3.31.tgz", + "integrity": "sha512-vfEqpXTvwT91yhmwdfouStN2hSKwTvyRs8qpLfADyrq/kxDw0hZM7Wk9Ug1FELj8hIby+S/+kQCSRFF32nv2Qw==", + "license": "MIT", + "dependencies": { + "@types/prop-types": "*", + "csstype": "^3.2.2" + } + }, + "node_modules/@types/react-dom": { + "version": "18.3.7", + "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.3.7.tgz", + "integrity": "sha512-MEe3UeoENYVFXzoXEWsvcpg6ZvlrFNlOQ7EOsvhI3CfAXwzPfO8Qwuxd40nepsYKqyyVQnTdEfv68q91yLcKrQ==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "@types/react": "^18.0.0" + } + }, + "node_modules/@types/trusted-types": { + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/@types/trusted-types/-/trusted-types-2.0.7.tgz", + "integrity": "sha512-ScaPdn1dQczgbl0QFTeTOmVHFULt394XJgOQNoyVhZ6r2vLnMLJfBPd53SB52T/3G36VI1/g2MZaX0cwDuXsfw==", + "license": "MIT", + "optional": true + }, + "node_modules/@types/unist": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.3.tgz", + "integrity": "sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q==", + "license": "MIT" + }, + "node_modules/@ungap/structured-clone": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.4.0.tgz", + "integrity": "sha512-1mEZtMKPM09vDmQt5y7YvmN2+DFTP7Tg0EWXdic8/C6VRnpb33e4ghisCIE3WZjsE2N8mf+QV1Zqh7ZFYLWInQ==", + "license": "ISC" + }, + "node_modules/@upsetjs/venn.js": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@upsetjs/venn.js/-/venn.js-2.0.0.tgz", + "integrity": "sha512-WbBhLrooyePuQ1VZxrJjtLvTc4NVfpOyKx0sKqioq9bX1C1m7Jgykkn8gLrtwumBioXIqam8DLxp88Adbue6Hw==", + "license": "MIT", + "optionalDependencies": { + "d3-selection": "^3.0.0", + "d3-transition": "^3.0.1" + } + }, + "node_modules/@vitejs/plugin-react": { + "version": "4.7.0", + "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-4.7.0.tgz", + "integrity": "sha512-gUu9hwfWvvEDBBmgtAowQCojwZmJ5mcLn3aufeCsitijs3+f2NsrPtlAWIR6OPiqljl96GVCUbLe0HyqIpVaoA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/core": "^7.28.0", + "@babel/plugin-transform-react-jsx-self": "^7.27.1", + "@babel/plugin-transform-react-jsx-source": "^7.27.1", + "@rolldown/pluginutils": "1.0.0-beta.27", + "@types/babel__core": "^7.20.5", + "react-refresh": "^0.17.0" + }, + "engines": { + "node": "^14.18.0 || >=16.0.0" + }, + "peerDependencies": { + "vite": "^4.2.0 || ^5.0.0 || ^6.0.0 || ^7.0.0" + } + }, + "node_modules/bail": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/bail/-/bail-2.0.2.tgz", + "integrity": "sha512-0xO6mYd7JB2YesxDKplafRpsiOzPt9V02ddPCLbY1xYGPOX24NTyN50qnUxgCPcSoYMhKpAuBTjQoRZCAkUDRw==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/baseline-browser-mapping": { + "version": "2.11.37", + "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.11.37.tgz", + "integrity": "sha512-QYph+vfurmaxhNwi9FprfmtkT5cx2Keg8FzZ0vnjO8ukscIybVyZGMFwdllKGlTI6qyU8ck43OM9UXh+IFJihQ==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "baseline-browser-mapping": "dist/cli.cjs" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/browserslist": { + "version": "4.29.5", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.29.5.tgz", + "integrity": "sha512-khTmKu5NGYTotqcYo8Bew2k4RAE9PuXRSFRXG2lQBrCEQHyeQ/vX6gKMxfokwywBsLiXZMnHsmWMG1pnO8J7uQ==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "baseline-browser-mapping": "^2.11.33", + "caniuse-lite": "^1.0.30001819", + "electron-to-chromium": "^1.5.464", + "node-releases": "^2.0.60", + "update-browserslist-db": "^1.3.4" + }, + "bin": { + "browserslist": "cli.js" + }, + "engines": { + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + } + }, + "node_modules/caniuse-lite": { + "version": "1.0.30001826", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001826.tgz", + "integrity": "sha512-wTB+9tIbLro/BCXwLuNV1meHE4L9dS6dArMDwgYfNBPMYScqClHyGunhkCSDtHhe/69Xl0sHlKgBVZ+fNsYtWA==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "CC-BY-4.0" + }, + "node_modules/ccount": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/ccount/-/ccount-2.0.1.tgz", + "integrity": "sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/character-entities": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/character-entities/-/character-entities-2.0.2.tgz", + "integrity": "sha512-shx7oQ0Awen/BRIdkjkvz54PnEEI/EjwXDSIZp86/KKdbafHh1Df/RYGBhn4hbe2+uKC9FnT5UCEdyPz3ai9hQ==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/character-entities-html4": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/character-entities-html4/-/character-entities-html4-2.1.0.tgz", + "integrity": "sha512-1v7fgQRj6hnSwFpq1Eu0ynr/CDEw0rXo2B61qXrLNdHZmPKgb7fqS1a2JwF0rISo9q77jDI8VMEHoApn8qDoZA==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/character-entities-legacy": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/character-entities-legacy/-/character-entities-legacy-3.0.0.tgz", + "integrity": "sha512-RpPp0asT/6ufRm//AJVwpViZbGM/MkjQFxJccQRHmISF/22NBtsHqAWmL+/pmkPWoIUJdWyeVleTl1wydHATVQ==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/character-reference-invalid": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/character-reference-invalid/-/character-reference-invalid-2.0.1.tgz", + "integrity": "sha512-iBZ4F4wRbyORVsu0jPV7gXkOsGYjGHPmAyv+HiHG8gi5PtC9KI2j1+v8/tlibRvjoWX027ypmG/n0HtO5t7unw==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/chevrotain": { + "version": "13.2.0", + "resolved": "https://registry.npmjs.org/chevrotain/-/chevrotain-13.2.0.tgz", + "integrity": "sha512-GTouk5YzgBxlTPCaDn5q0q2EJKkrYmnPF+HmF8v0Qo4r3iyPG7HJivkN1wthCXZcm3sIcZFpGTRovLPNdJNRCA==", + "license": "Apache-2.0", + "dependencies": { + "@chevrotain/cst-dts-gen": "13.2.0", + "@chevrotain/gast": "13.2.0", + "@chevrotain/regexp-to-ast": "13.2.0", + "@chevrotain/types": "13.2.0", + "@chevrotain/utils": "13.2.0" + }, + "engines": { + "node": ">=22.0.0" + } + }, + "node_modules/comma-separated-tokens": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/comma-separated-tokens/-/comma-separated-tokens-2.0.3.tgz", + "integrity": "sha512-Fu4hJdvzeylCfQPp9SGWidpzrMs7tTrlu6Vb8XGaRGck8QSNZJJp538Wrb60Lax4fPwR64ViY468OIUTbRlGZg==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/commander": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", + "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", + "license": "MIT", + "engines": { + "node": ">= 10" + } + }, + "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/cose-base": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/cose-base/-/cose-base-1.0.3.tgz", + "integrity": "sha512-s9whTXInMSgAp/NVXVNuVxVKzGH2qck3aQlVHxDCdAEPgtMKwc4Wq6/QKhgdEdgbLSi9rBTAcPoRa6JpiG4ksg==", + "license": "MIT", + "dependencies": { + "layout-base": "^1.0.0" + } + }, + "node_modules/csstype": { + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz", + "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==", + "license": "MIT" + }, + "node_modules/cytoscape": { + "version": "3.35.0", + "resolved": "https://registry.npmjs.org/cytoscape/-/cytoscape-3.35.0.tgz", + "integrity": "sha512-sMvBIXiGMnhkCaWz2R06FwF/27MNlS+Tqvi17foO9UhnUg3XGZccKjxsvEqQFAQYMSSZmN5SxYzUYlQ0DOJJ3g==", + "license": "MIT", + "engines": { + "node": ">=0.10" + } + }, + "node_modules/cytoscape-cose-bilkent": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/cytoscape-cose-bilkent/-/cytoscape-cose-bilkent-4.1.0.tgz", + "integrity": "sha512-wgQlVIUJF13Quxiv5e1gstZ08rnZj2XaLHGoFMYXz7SkNfCDOOteKBE6SYRfA9WxxI/iBc3ajfDoc6hb/MRAHQ==", + "license": "MIT", + "dependencies": { + "cose-base": "^1.0.0" + }, + "peerDependencies": { + "cytoscape": "^3.2.0" + } + }, + "node_modules/cytoscape-fcose": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/cytoscape-fcose/-/cytoscape-fcose-2.2.0.tgz", + "integrity": "sha512-ki1/VuRIHFCzxWNrsshHYPs6L7TvLu3DL+TyIGEsRcvVERmxokbf5Gdk7mFxZnTdiGtnA4cfSmjZJMviqSuZrQ==", + "license": "MIT", + "dependencies": { + "cose-base": "^2.2.0" + }, + "peerDependencies": { + "cytoscape": "^3.2.0" + } + }, + "node_modules/cytoscape-fcose/node_modules/cose-base": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/cose-base/-/cose-base-2.2.0.tgz", + "integrity": "sha512-AzlgcsCbUMymkADOJtQm3wO9S3ltPfYOFD5033keQn9NJzIbtnZj+UdBJe7DYml/8TdbtHJW3j58SOnKhWY/5g==", + "license": "MIT", + "dependencies": { + "layout-base": "^2.0.0" + } + }, + "node_modules/cytoscape-fcose/node_modules/layout-base": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/layout-base/-/layout-base-2.0.1.tgz", + "integrity": "sha512-dp3s92+uNI1hWIpPGH3jK2kxE2lMjdXdr+DH8ynZHpd6PUlH6x6cbuXnoMmiNumznqaNO31xu9e79F0uuZ0JFg==", + "license": "MIT" + }, + "node_modules/d3": { + "version": "7.9.2", + "resolved": "https://registry.npmjs.org/d3/-/d3-7.9.2.tgz", + "integrity": "sha512-ZKb/mONPVKzaO5UlcWcwN8bS4ezvQaYu+bsou+XgNABdGC800kwH651ADTbbTxMPHW13UlvbQafdmJQDk1w7Mg==", + "license": "ISC", + "dependencies": { + "d3-array": "^3.2.5", + "d3-axis": "^3.0.1", + "d3-brush": "^3.0.1", + "d3-chord": "^3.0.2", + "d3-color": "^3.1.1", + "d3-contour": "^4.0.3", + "d3-delaunay": "^6.0.6", + "d3-dispatch": "^3.0.2", + "d3-drag": "^3.0.1", + "d3-dsv": "^3.0.2", + "d3-ease": "^3.0.2", + "d3-fetch": "^3.0.2", + "d3-force": "^3.0.1", + "d3-format": "^3.1.3", + "d3-geo": "^3.1.2", + "d3-hierarchy": "^3.1.3", + "d3-interpolate": "^3.0.2", + "d3-path": "^3.1.1", + "d3-polygon": "^3.0.2", + "d3-quadtree": "^3.0.2", + "d3-random": "^3.0.2", + "d3-scale": "^4.0.3", + "d3-scale-chromatic": "^3.1.1", + "d3-selection": "^3.0.1", + "d3-shape": "^3.2.1", + "d3-time": "^3.1.1", + "d3-time-format": "^4.1.1", + "d3-timer": "^3.0.2", + "d3-transition": "^3.0.2", + "d3-zoom": "^3.0.1" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-array": { + "version": "3.2.5", + "resolved": "https://registry.npmjs.org/d3-array/-/d3-array-3.2.5.tgz", + "integrity": "sha512-Th8qGXoBalmWsstpkuhmBuTsBQIFqYOJtjlBvNVvBfJ8E3uYusBUwUR8HU20U0qKKQkgCvKyR1YjiozWadk5QA==", + "license": "ISC", + "dependencies": { + "internmap": "1 - 2" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-axis": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/d3-axis/-/d3-axis-3.0.1.tgz", + "integrity": "sha512-E5QCXfaf/uJZEHHiqoWRq+bQEm2PzoVFv2rDC7CZ3wwI0MjfMW3w83J3ubobG4IJj3lShAI5eiPJhOu/8wHofA==", + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-brush": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/d3-brush/-/d3-brush-3.0.1.tgz", + "integrity": "sha512-L5Glqa/Gb7LU3ndIOMtA5mDzlJ0aXKp5ELP2X09ctWF23jO7+faIUVDbmaIi+D6k3EemXFWn1F3lkfguExoVhA==", + "license": "ISC", + "dependencies": { + "d3-dispatch": "1 - 3", + "d3-drag": "2 - 3", + "d3-interpolate": "1 - 3", + "d3-selection": "3", + "d3-transition": "3" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-chord": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/d3-chord/-/d3-chord-3.0.2.tgz", + "integrity": "sha512-cGmADo5M2PTi3ewJZ2lcE32eURd4JmHtQ5JwRIUcas5L1SXqufG9yPyjWp8fW0gRi7aZi9bgbZPFZO1eyZ+1CQ==", + "license": "ISC", + "dependencies": { + "d3-path": "1 - 3" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-color": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/d3-color/-/d3-color-3.1.1.tgz", + "integrity": "sha512-lfab8x0Bj0UO7SNsY8dZSbNIA6ipbkE3X0NG9nqjCu6CfCHZseuDnOSJY7hidKrjpP++i1M2qT+FlAdPKYRilA==", + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-contour": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/d3-contour/-/d3-contour-4.0.3.tgz", + "integrity": "sha512-5DYURc8KwXPOhSUBblU0P9rVcArsSPxPOxsfO0Eud0s28oU0sB2e80aRHRL9AZW3usT8ikFKyIHpHHLNWLdRVA==", + "license": "ISC", + "dependencies": { + "d3-array": "^3.2.4" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-delaunay": { + "version": "6.0.6", + "resolved": "https://registry.npmjs.org/d3-delaunay/-/d3-delaunay-6.0.6.tgz", + "integrity": "sha512-DMQIEvSJhZCB6pwedcXaAlQ+MeKU5LlM2XakKtc73b/VM+RBiI1SRXycOEOKg2jsKj4zZ9F0KGYG6nCGwwWu/g==", + "license": "ISC", + "dependencies": { + "delaunator": "5" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-dispatch": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/d3-dispatch/-/d3-dispatch-3.0.2.tgz", + "integrity": "sha512-sAzH4Y4nsLo8eSqw5jKiZt+LU2wZmL/qS+OkxQGjhwazB/D7TY34R/QK1eshfGr7cZEKymKZ/Haem7m+lu98Sg==", + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-drag": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/d3-drag/-/d3-drag-3.0.1.tgz", + "integrity": "sha512-OWeoayCq8J69hUIjvL+Mb6Q6Oaj/fyHV5XaXByEUAG+JUjIfTGDnk3qGpcXrD3VmQ3BSV96fcbM6fqq7C0tbPA==", + "license": "ISC", + "dependencies": { + "d3-dispatch": "1 - 3", + "d3-selection": "3" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-dsv": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/d3-dsv/-/d3-dsv-3.0.2.tgz", + "integrity": "sha512-FUnXhX7I4/AXyRCZzwfZTDGSq8PGZ4oR0tiCBqNGOZMsDrQ+6sIWNQnBzcCGhzJKZ6uCvCezTwflUqI209RRiQ==", + "license": "ISC", + "dependencies": { + "commander": "7", + "iconv-lite": "0.6", + "rw": "1" + }, + "bin": { + "csv2json": "bin/dsv2json.js", + "csv2tsv": "bin/dsv2dsv.js", + "dsv2dsv": "bin/dsv2dsv.js", + "dsv2json": "bin/dsv2json.js", + "json2csv": "bin/json2dsv.js", + "json2dsv": "bin/json2dsv.js", + "json2tsv": "bin/json2dsv.js", + "tsv2csv": "bin/dsv2dsv.js", + "tsv2json": "bin/dsv2json.js" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-ease": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/d3-ease/-/d3-ease-3.0.2.tgz", + "integrity": "sha512-B5znKqRmKROAN4oHWQ50W/qisVjA9GXh2WMsVKdFVp4DxWmcrOsweqgUOUVsv5th96kwaZlokU6SlV4J3gak1w==", + "license": "BSD-3-Clause", + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-fetch": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/d3-fetch/-/d3-fetch-3.0.2.tgz", + "integrity": "sha512-1wGF62bgjMRbF6mqbD+6rRWBL2hwWVYQjFO2UP3Wm1nIAvJZKaQxXM5caVY7athoCa8wIq9lCf7g44lPWFk50g==", + "license": "ISC", + "dependencies": { + "d3-dsv": "1 - 3" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-force": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/d3-force/-/d3-force-3.0.1.tgz", + "integrity": "sha512-kAaaHLFebBYwgi5cYBXAI8vKrQFMCD2MEswj2QuPKKbdU1wYLc8WXtS7O8F/b6POCIe3gJjY6hkDstHi1yMETQ==", + "license": "ISC", + "dependencies": { + "d3-dispatch": "1 - 3", + "d3-quadtree": "1 - 3", + "d3-timer": "1 - 3" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-format": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/d3-format/-/d3-format-3.1.3.tgz", + "integrity": "sha512-+F+/49swqmGuQJmSKnVMIDH/QkEFV5li9QRj0xm/KhyAUBv099O5PrvpQFxBp24PYph17Mnvt9mjKQV0ii0nMA==", + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-geo": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/d3-geo/-/d3-geo-3.1.2.tgz", + "integrity": "sha512-5R8ZgDQorIxmauv7R6gpE/ndz+Z0qAZssigq0aXFdvPHdY41RqtW02jrRUQAL724NdPABYXo1+gQEGBBr7uKNg==", + "license": "ISC", + "dependencies": { + "d3-array": "2.5.0 - 3" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-hierarchy": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/d3-hierarchy/-/d3-hierarchy-3.1.3.tgz", + "integrity": "sha512-GRajN5ZcnEwYFWqqdzhG1qJ3+fDg6WWzk47TJg7ePY7yvYAgRfD2r1mUx+wviBOWuCwamCUzjwMSdato43jbGA==", + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-interpolate": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/d3-interpolate/-/d3-interpolate-3.0.2.tgz", + "integrity": "sha512-IRzGU62DtxhvsnSTWMQIdnoZ6gA+BCWwBon1EJI6SjoN595799b6z/QRBzXfFhE8iupUPp3042yBNo0STPqnzQ==", + "license": "ISC", + "dependencies": { + "d3-color": "1 - 3" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-path": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/d3-path/-/d3-path-3.1.1.tgz", + "integrity": "sha512-jsbgV8zIT38ReB9O7X7gcLndTQRONSqNNd+oGIaTBdUug4r5jFmp0N6RY9R5GWbdUDucn0qoTGyfjapT4tDhcg==", + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-polygon": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/d3-polygon/-/d3-polygon-3.0.2.tgz", + "integrity": "sha512-WAUvPudGU1Dn4mDPfb6+JnnbeVEV53hG/BoT+bxts6AkZsOpTEiV1jHYX+2vtwCICNFG9Wxv8QS+eW1zE/Dwfg==", + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-quadtree": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/d3-quadtree/-/d3-quadtree-3.0.2.tgz", + "integrity": "sha512-9Lu9mqJKRbIk0d6mKDjpvPURaPdwHVK5CYbcdd0/4vBgz4ldz/7TIOse3kNERsByGNfld58KEco507AztJWyTQ==", + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-random": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/d3-random/-/d3-random-3.0.2.tgz", + "integrity": "sha512-PxJi9LNV+7mulaYO77nd+oGurXGL1fhedXjHnB3pWLUcqDnQtF4VASoqnQGHgoXLByVdv5QJ/2kfwkGn5HTS8g==", + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-sankey": { + "version": "0.12.3", + "resolved": "https://registry.npmjs.org/d3-sankey/-/d3-sankey-0.12.3.tgz", + "integrity": "sha512-nQhsBRmM19Ax5xEIPLMY9ZmJ/cDvd1BG3UVvt5h3WRxKg5zGRbvnteTyWAbzeSvlh3tW7ZEmq4VwR5mB3tutmQ==", + "license": "BSD-3-Clause", + "dependencies": { + "d3-array": "1 - 2", + "d3-shape": "^1.2.0" + } + }, + "node_modules/d3-sankey/node_modules/d3-array": { + "version": "2.12.1", + "resolved": "https://registry.npmjs.org/d3-array/-/d3-array-2.12.1.tgz", + "integrity": "sha512-B0ErZK/66mHtEsR1TkPEEkwdy+WDesimkM5gpZr5Dsg54BiTA5RXtYW5qTLIAcekaS9xfZrzBLF/OAkB3Qn1YQ==", + "license": "BSD-3-Clause", + "dependencies": { + "internmap": "^1.0.0" + } + }, + "node_modules/d3-sankey/node_modules/d3-path": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/d3-path/-/d3-path-1.0.9.tgz", + "integrity": "sha512-VLaYcn81dtHVTjEHd8B+pbe9yHWpXKZUC87PzoFmsFrJqgFwDe/qxfp5MlfsfM1V5E/iVt0MmEbWQ7FVIXh/bg==", + "license": "BSD-3-Clause" + }, + "node_modules/d3-sankey/node_modules/d3-shape": { + "version": "1.3.7", + "resolved": "https://registry.npmjs.org/d3-shape/-/d3-shape-1.3.7.tgz", + "integrity": "sha512-EUkvKjqPFUAZyOlhY5gzCxCeI0Aep04LwIRpsZ/mLFelJiUfnK56jo5JMDSE7yyP2kLSb6LtF+S5chMk7uqPqw==", + "license": "BSD-3-Clause", + "dependencies": { + "d3-path": "1" + } + }, + "node_modules/d3-sankey/node_modules/internmap": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/internmap/-/internmap-1.0.1.tgz", + "integrity": "sha512-lDB5YccMydFBtasVtxnZ3MRBHuaoE8GKsppq+EchKL2U4nK/DmEpPHNH8MZe5HkMtpSiTSOZwfN0tzYjO/lJEw==", + "license": "ISC" + }, + "node_modules/d3-scale": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/d3-scale/-/d3-scale-4.0.3.tgz", + "integrity": "sha512-66cWobCNzcMvlfoaDHCxuIv9TBUWG1BLOWdv9kHHFuCr1JdqAWPvTmsaEYDD5NRMyWZ5+7u0GqiCDfMXMqh3hg==", + "license": "ISC", + "dependencies": { + "d3-array": "2.10.0 - 3", + "d3-format": "1 - 3", + "d3-interpolate": "1.2.0 - 3", + "d3-time": "2.1.1 - 3", + "d3-time-format": "2 - 4" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-scale-chromatic": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/d3-scale-chromatic/-/d3-scale-chromatic-3.1.1.tgz", + "integrity": "sha512-lA5gfN2yMvmChubmptnDiBfeGpHD7Yb1EbvCz0TZE0WHXhyR6W2allPuhKtzV5ILQRqeOdefF0qYtERReLUBDg==", + "license": "ISC", + "dependencies": { + "d3-color": "1 - 3", + "d3-interpolate": "1 - 3", + "d3-scale": "1 - 4" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-selection": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/d3-selection/-/d3-selection-3.0.1.tgz", + "integrity": "sha512-ODSf35vqCrlCfp7hrm0eZjvOosSXSYLjqvIlhMBV9q9VOx7EBJG6pc+uXBswEZNJgCGJ+qnKYcWutbZDIxe/Xg==", + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-shape": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/d3-shape/-/d3-shape-3.2.1.tgz", + "integrity": "sha512-dm2o+lbKdzg9tY7GEag/dB9hcbodLfwkE/DkvqbELJXaMz0yKzWWhZqhbI7CKubukA7HnRyz0avdtvi7EPxPvw==", + "license": "ISC", + "dependencies": { + "d3-path": "^3.1.1" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-time": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/d3-time/-/d3-time-3.1.1.tgz", + "integrity": "sha512-Ze7rjrhMzdeulh0/hjcfFj7XLAHOfowtEMfsoG6DU866HPynQNW7Wfen6hzXcqKTv8XzxvF6Hzr5XD6bMHr2ug==", + "license": "ISC", + "dependencies": { + "d3-array": "2 - 3" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-time-format": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/d3-time-format/-/d3-time-format-4.1.1.tgz", + "integrity": "sha512-22XaqjyCjpqgda20erhsOjGmC3vvYwTNYniKAd45W5UWLDF43moeOuV9qYpRqobIlsnK0UhnKZjUUJm3VgORUA==", + "license": "ISC", + "dependencies": { + "d3-time": "1 - 3" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-timer": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/d3-timer/-/d3-timer-3.0.2.tgz", + "integrity": "sha512-1Il1aliroVSErrv5aulRBxAY+7+DnaoLIWGd1C6SsBTWDeobWiP/V69vwb8vT6abR1kKwaNe1196pmaQ1fK90A==", + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-transition": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/d3-transition/-/d3-transition-3.0.2.tgz", + "integrity": "sha512-RcjCsdFgyFoDB+QXLC5m60ZkTN0k9zH+ovoLlTdJnDS1AbfbcuowiM4pCKSTOclNibS4f4J4cbv2m7O7y8NTOQ==", + "license": "ISC", + "dependencies": { + "d3-color": "1 - 3", + "d3-dispatch": "1 - 3", + "d3-ease": "1 - 3", + "d3-interpolate": "1 - 3", + "d3-timer": "1 - 3" + }, + "engines": { + "node": ">=12" + }, + "peerDependencies": { + "d3-selection": "2 - 3" + } + }, + "node_modules/d3-zoom": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/d3-zoom/-/d3-zoom-3.0.1.tgz", + "integrity": "sha512-kfjD3BDQu/FOatpZ6JdMSyIoDwTxIpI29ySTI2J5ZlDaH1WbuJGQJ2Q9oJkWTEZEW98j6idezoomSD3Cn2zwiw==", + "license": "ISC", + "dependencies": { + "d3-dispatch": "1 - 3", + "d3-drag": "2 - 3", + "d3-interpolate": "1 - 3", + "d3-selection": "2 - 3", + "d3-transition": "2 - 3" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/dagre-d3-es": { + "version": "7.0.14", + "resolved": "https://registry.npmjs.org/dagre-d3-es/-/dagre-d3-es-7.0.14.tgz", + "integrity": "sha512-P4rFMVq9ESWqmOgK+dlXvOtLwYg0i7u0HBGJER0LZDJT2VHIPAMZ/riPxqJceWMStH5+E61QxFra9kIS3AqdMg==", + "license": "MIT", + "dependencies": { + "d3": "^7.9.0", + "lodash-es": "^4.17.21" + } + }, + "node_modules/dayjs": { + "version": "1.11.23", + "resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.23.tgz", + "integrity": "sha512-QDTCU0M0MxR3hQfnlDJfwekQiaanm1ubOD231u73WBckQ/fsamwRLiE2GBz6D3a/xF1NgfiDLJjXBa1hYOYTtQ==", + "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/decode-named-character-reference": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/decode-named-character-reference/-/decode-named-character-reference-1.3.0.tgz", + "integrity": "sha512-GtpQYB283KrPp6nRw50q3U9/VfOutZOe103qlN7BPP6Ad27xYnOIWv4lPzo8HCAL+mMZofJ9KEy30fq6MfaK6Q==", + "license": "MIT", + "dependencies": { + "character-entities": "^2.0.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/delaunator": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/delaunator/-/delaunator-5.1.0.tgz", + "integrity": "sha512-AGrQ4QSgssa1NGmWmLPqN5NY2KajF5MqxetNEO+o0n3ZwZZeTmt7bBnvzHWrmkZFxGgr4HdyFgelzgi06otLuQ==", + "license": "ISC", + "dependencies": { + "robust-predicates": "^3.0.2" + } + }, + "node_modules/dequal": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz", + "integrity": "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/devlop": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/devlop/-/devlop-1.1.0.tgz", + "integrity": "sha512-RWmIqhcFf1lRYBvNmr7qTNuyCt/7/ns2jbpp1+PalgE/rDQcBT0fioSMUpJ93irlUhC5hrg4cYqe6U+0ImW0rA==", + "license": "MIT", + "dependencies": { + "dequal": "^2.0.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/dompurify": { + "version": "3.4.18", + "resolved": "https://registry.npmjs.org/dompurify/-/dompurify-3.4.18.tgz", + "integrity": "sha512-ofe3wI/uNm68HInABYFJYqQxRw1EaKAjNdrFVKqjUY+UZurvNd2L/HuQe097s/4RivWiZyP6tT7aoT8atjfhwg==", + "license": "(MPL-2.0 OR Apache-2.0)", + "optionalDependencies": { + "@types/trusted-types": "^2.0.7" + } + }, + "node_modules/electron-to-chromium": { + "version": "1.5.485", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.485.tgz", + "integrity": "sha512-m3uadzR0Z+sR19HGWgfxoZcKv9hE/edVM9OZ+FJ4wNRyfuFtkwZJIDoehEty5sisYVwmge8lKV1tenWOyClVgw==", + "dev": true, + "license": "ISC" + }, + "node_modules/elkjs": { + "version": "0.12.1", + "resolved": "https://registry.npmjs.org/elkjs/-/elkjs-0.12.1.tgz", + "integrity": "sha512-IhMYKHE4S2vtx0QrhBP3lYOIKDeIiJXBrdq9MGYkuB8ZHqhrBnHNfSUndjXFewrX1CPK8chwq+2NA0K0hliYuw==", + "license": "EPL-2.0 OR GPL-3.0-or-later" + }, + "node_modules/es-toolkit": { + "version": "1.53.2", + "resolved": "https://registry.npmjs.org/es-toolkit/-/es-toolkit-1.53.2.tgz", + "integrity": "sha512-iUqZ+NlwH4jUgRmXZUxFBsV/9762TQEa1O4IXLFBmDEjVHScBytKuseX23I0+v9ShZ5MYxEx6WKNzm6IPnex8g==", + "license": "MIT", + "workspaces": [ + "docs", + "benchmarks", + "tests/types", + "tests/browser-compat" + ] + }, + "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-string-regexp": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-5.0.0.tgz", + "integrity": "sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw==", + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/estree-util-is-identifier-name": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/estree-util-is-identifier-name/-/estree-util-is-identifier-name-3.0.0.tgz", + "integrity": "sha512-hFtqIDZTIUZ9BXLb8y4pYGyk6+wekIivNVTcmvk8NoOh+VeRn5y6cEHzbURrWbfp1fIqdVipilzj+lfaadNZmg==", + "license": "MIT", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/extend": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", + "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==", + "license": "MIT" + }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/gensync": { + "version": "1.0.0-beta.2", + "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", + "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/hachure-fill": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/hachure-fill/-/hachure-fill-0.5.2.tgz", + "integrity": "sha512-3GKBOn+m2LX9iq+JC1064cSFprJY4jL1jCXTcpnfER5HYE2l/4EfWSGzkPa/ZDBmYI0ZOEj5VHV/eKnPGkHuOg==", + "license": "MIT" + }, + "node_modules/hast-util-to-jsx-runtime": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/hast-util-to-jsx-runtime/-/hast-util-to-jsx-runtime-2.3.7.tgz", + "integrity": "sha512-F7DNV2NMcTxA4GqPVHnXzX+mpoPHAIY9rJAVH3CZ1FdBZOcBUEjUuvMkMpHVs/sicEtznh9tMGj5WUR9S4E2rg==", + "license": "MIT", + "dependencies": { + "@types/estree": "^1.0.0", + "@types/hast": "^3.0.0", + "@types/unist": "^3.0.0", + "comma-separated-tokens": "^2.0.0", + "devlop": "^1.0.0", + "estree-util-is-identifier-name": "^3.0.0", + "hast-util-whitespace": "^3.0.0", + "mdast-util-mdx-expression": "^2.0.0", + "mdast-util-mdx-jsx": "^3.0.0", + "mdast-util-mdxjs-esm": "^2.0.0", + "property-information": "^7.0.0", + "space-separated-tokens": "^2.0.0", + "style-to-object": "^2.0.0", + "unist-util-position": "^5.0.0", + "vfile-message": "^4.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/hast-util-whitespace": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/hast-util-whitespace/-/hast-util-whitespace-3.0.0.tgz", + "integrity": "sha512-88JUN06ipLwsnv+dVn+OIYOvAuvBMy/Qoi6O7mQHxdPXpjy+Cd6xRkWwux7DKO+4sYILtLBRIKgsdpS2gQc7qw==", + "license": "MIT", + "dependencies": { + "@types/hast": "^3.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/html-url-attributes": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/html-url-attributes/-/html-url-attributes-3.0.1.tgz", + "integrity": "sha512-ol6UPyBWqsrO6EJySPz2O7ZSr856WDrEzM5zMqp+FJJLGMW35cLYmmZnl0vztAZxRUoNZJFTCohfjuIJ8I4QBQ==", + "license": "MIT", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/iconv-lite": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", + "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", + "license": "MIT", + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/import-meta-resolve": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/import-meta-resolve/-/import-meta-resolve-4.2.0.tgz", + "integrity": "sha512-Iqv2fzaTQN28s/FwZAoFq0ZSs/7hMAHJVX+w8PZl3cY19Pxk6jFFalxQoIfW2826i/fDLXv8IiEZRIT0lDuWcg==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/inline-style-parser": { + "version": "0.2.9", + "resolved": "https://registry.npmjs.org/inline-style-parser/-/inline-style-parser-0.2.9.tgz", + "integrity": "sha512-IttN8BqKLxzUrnTqHI+/hwAJQItBAUjdoHERCDv+oOuX48VP6bzW8+QjOXSfoevzq3YrYAwX1uLHp8TqO9yIeg==", + "license": "MIT" + }, + "node_modules/internmap": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/internmap/-/internmap-2.0.3.tgz", + "integrity": "sha512-5Hh7Y1wQbvY5ooGgPbDaL5iYLAPzMTUrjMulskHLH6wnv/A+1q5rgEaiuqEjB+oxGXIVZs1FF+R/KPN3ZSQYYg==", + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/is-alphabetical": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-alphabetical/-/is-alphabetical-2.0.1.tgz", + "integrity": "sha512-FWyyY60MeTNyeSRpkM2Iry0G9hpr7/9kD40mD/cGQEuilcZYS4okz8SN2Q6rLCJ8gbCt6fN+rC+6tMGS99LaxQ==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/is-alphanumerical": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-alphanumerical/-/is-alphanumerical-2.0.1.tgz", + "integrity": "sha512-hmbYhX/9MUMF5uh7tOXyK/n0ZvWpad5caBA17GsC6vyuCqaWliRG5K1qS9inmUhEMaOBIW7/whAnSwveW/LtZw==", + "license": "MIT", + "dependencies": { + "is-alphabetical": "^2.0.0", + "is-decimal": "^2.0.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/is-decimal": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-decimal/-/is-decimal-2.0.1.tgz", + "integrity": "sha512-AAB9hiomQs5DXWcRB1rqsxGUstbRroFOPPVAomNk/3XHR5JyEZChOyTWe2oayKnsSsr/kcGqF+z6yuH6HHpN0A==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/is-hexadecimal": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-hexadecimal/-/is-hexadecimal-2.0.1.tgz", + "integrity": "sha512-DgZQp241c8oO6cA1SbTEWiXeoxV42vlcJxgH+B3hi1AiqqKruZR3ZGF8In3fj4+/y/7rHvlOZLZtgJ/4ttYGZg==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/is-plain-obj": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-4.1.0.tgz", + "integrity": "sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg==", + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "license": "MIT" + }, + "node_modules/jsesc": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz", + "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==", + "dev": true, + "license": "MIT", + "bin": { + "jsesc": "bin/jsesc" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/json5": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "dev": true, + "license": "MIT", + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/katex": { + "version": "0.18.10", + "resolved": "https://registry.npmjs.org/katex/-/katex-0.18.10.tgz", + "integrity": "sha512-/B6p9eY9DX7aHBfpkHdpirDTZ5QH9xTwL9y837PWuzuv41O5jFdqNQwVQEQsimY0/iVNkwBY4+4hMfhQ7d4Dbw==", + "funding": [ + "https://opencollective.com/katex", + "https://github.com/sponsors/katex" + ], + "license": "MIT", + "dependencies": { + "commander": "^15.0.0" + }, + "bin": { + "katex": "cli.js" + } + }, + "node_modules/katex/node_modules/commander": { + "version": "15.1.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-15.1.0.tgz", + "integrity": "sha512-cgnQ88TRrWcC7pVq46RzJVRMktu3W2RcbnoidnfBsl1bmDCBwJS/udcIZpKoCrbAYYaCqsz1yZCVIgbIaU3ddQ==", + "license": "MIT", + "engines": { + "node": ">=22.12.0" + } + }, + "node_modules/khroma": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/khroma/-/khroma-2.1.0.tgz", + "integrity": "sha512-Ls993zuzfayK269Svk9hzpeGUKob/sIgZzyHYdjQoAdQetRKpOLj+k/QQQ/6Qi0Yz65mlROrfd+Ev+1+7dz9Kw==" + }, + "node_modules/layout-base": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/layout-base/-/layout-base-1.0.2.tgz", + "integrity": "sha512-8h2oVEZNktL4BH2JCOI90iD1yXwL6iNW7KcCKT2QZgQJR2vbqDsldCTPRU9NifTCqHZci57XvQQ15YTu+sTYPg==", + "license": "MIT" + }, + "node_modules/lodash-es": { + "version": "4.18.1", + "resolved": "https://registry.npmjs.org/lodash-es/-/lodash-es-4.18.1.tgz", + "integrity": "sha512-J8xewKD/Gk22OZbhpOVSwcs60zhd95ESDwezOFuA3/099925PdHJ7OFHNTGtajL3AlZkykD32HykiMo+BIBI8A==", + "license": "MIT" + }, + "node_modules/longest-streak": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/longest-streak/-/longest-streak-3.1.0.tgz", + "integrity": "sha512-9Ri+o0JYgehTaVBBDoMqIl8GXtbWg711O3srftcHhZ0dqnETqLaoIK0x17fUw9rFSlK/0NlsKe0Ahhyl5pXE2g==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/loose-envify": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", + "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", + "license": "MIT", + "dependencies": { + "js-tokens": "^3.0.0 || ^4.0.0" + }, + "bin": { + "loose-envify": "cli.js" + } + }, + "node_modules/lru-cache": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "dev": true, + "license": "ISC", + "dependencies": { + "yallist": "^3.0.2" + } + }, + "node_modules/markdown-table": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/markdown-table/-/markdown-table-3.1.0.tgz", + "integrity": "sha512-xpeSCdM+B+6P3ncfgaB7FoDbtJ30xAe6Z18TGT7AgXJsHqCElCICZovQqdRMm7kHgpTyYv36EupqewoFFSB8vw==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/marked": { + "version": "16.4.2", + "resolved": "https://registry.npmjs.org/marked/-/marked-16.4.2.tgz", + "integrity": "sha512-TI3V8YYWvkVf3KJe1dRkpnjs68JUPyEa5vjKrp1XEEJUAOaQc+Qj+L1qWbPd0SJuAdQkFU0h73sXXqwDYxsiDA==", + "license": "MIT", + "bin": { + "marked": "bin/marked.js" + }, + "engines": { + "node": ">= 20" + } + }, + "node_modules/mdast-util-find-and-replace": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/mdast-util-find-and-replace/-/mdast-util-find-and-replace-3.0.4.tgz", + "integrity": "sha512-z4B5c6jrnJ1ltOQemhWYPBSAo6y42Z8Gt2yEgfgNTMcLSU59B8bfj8Z8AnAlJrBGLnqkdAUZ7jdDEqQw3KuipQ==", + "license": "MIT", + "dependencies": { + "@types/mdast": "^4.0.0", + "escape-string-regexp": "^5.0.0", + "unist-util-is": "^6.0.0", + "unist-util-visit-parents": "^6.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-from-markdown": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mdast-util-from-markdown/-/mdast-util-from-markdown-2.1.0.tgz", + "integrity": "sha512-KRLgmPaP2H1ul2bpoJkOS+9pAcDAAj9Nu1mqLnh8NLeJG5tlvj42TH80PIGBpROWlRXLk0lDrWNuZCFy/tsB4A==", + "license": "MIT", + "dependencies": { + "@types/mdast": "^4.0.0", + "@types/unist": "^3.0.0", + "decode-named-character-reference": "^1.0.0", + "devlop": "^1.0.0", + "mdast-util-to-string": "^4.0.0", + "micromark": "^4.0.0", + "micromark-util-decode-numeric-character-reference": "^2.0.0", + "micromark-util-decode-string": "^2.0.0", + "micromark-util-normalize-identifier": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0", + "unist-util-stringify-position": "^4.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-gfm": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/mdast-util-gfm/-/mdast-util-gfm-3.1.0.tgz", + "integrity": "sha512-0ulfdQOM3ysHhCJ1p06l0b0VKlhU0wuQs3thxZQagjcjPrlFRqY215uZGHHJan9GEAXd9MbfPjFJz+qMkVR6zQ==", + "license": "MIT", + "dependencies": { + "mdast-util-from-markdown": "^2.0.0", + "mdast-util-gfm-autolink-literal": "^2.0.0", + "mdast-util-gfm-footnote": "^2.0.0", + "mdast-util-gfm-strikethrough": "^2.0.0", + "mdast-util-gfm-table": "^2.0.0", + "mdast-util-gfm-task-list-item": "^2.0.0", + "mdast-util-to-markdown": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-gfm-autolink-literal": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mdast-util-gfm-autolink-literal/-/mdast-util-gfm-autolink-literal-2.1.0.tgz", + "integrity": "sha512-Jx6QSK8wDo558Bcf7q+1pe0v81g2PVs09Hlvu9xJHmCFRF3sAPW7vXFVIAwBncs3sde92WbsVqNxwdqViA2XnQ==", + "license": "MIT", + "dependencies": { + "@types/mdast": "^4.0.0", + "ccount": "^2.0.0", + "devlop": "^1.0.0", + "mdast-util-find-and-replace": "^3.0.0", + "micromark-util-character": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-gfm-footnote": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mdast-util-gfm-footnote/-/mdast-util-gfm-footnote-2.1.0.tgz", + "integrity": "sha512-sqpDWlsHn7Ac9GNZQMeUzPQSMzR6Wv0WKRNvQRg0KqHh02fpTz69Qc1QSseNX29bhz1ROIyNyxExfawVKTm1GQ==", + "license": "MIT", + "dependencies": { + "@types/mdast": "^4.0.0", + "devlop": "^1.1.0", + "mdast-util-from-markdown": "^2.0.0", + "mdast-util-to-markdown": "^2.0.0", + "micromark-util-normalize-identifier": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-gfm-strikethrough": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/mdast-util-gfm-strikethrough/-/mdast-util-gfm-strikethrough-2.0.1.tgz", + "integrity": "sha512-OuJHqvr455pwu2OaOrir7dbzqs4jlWKOtlu9L6GjcIjjQwNyw02VntQsr/Ek6/A13vgnXfUhBekWRUP1OkNivw==", + "license": "MIT", + "dependencies": { + "@types/mdast": "^4.0.0", + "mdast-util-from-markdown": "^2.0.0", + "mdast-util-to-markdown": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-gfm-table": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/mdast-util-gfm-table/-/mdast-util-gfm-table-2.0.1.tgz", + "integrity": "sha512-fiIjPrAy4kz68/eFbPHhsiWDGHhqUSVoU1XsfLM5DsEPXw7MxgiVVyulUggFRckVWeT1KXQXkg5vm3kv4oMSOA==", + "license": "MIT", + "dependencies": { + "@types/mdast": "^4.0.0", + "devlop": "^1.0.0", + "markdown-table": "^3.0.0", + "mdast-util-from-markdown": "^2.0.0", + "mdast-util-to-markdown": "^2.0.0", + "mdast-util-to-string": "^4.0.0", + "unist-util-visit": "^5.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-gfm-task-list-item": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/mdast-util-gfm-task-list-item/-/mdast-util-gfm-task-list-item-2.0.1.tgz", + "integrity": "sha512-jXVO1hvB2hs82g1esi7I9nIJDqiijbQLIyH2jDUb5s7jIAZMr/79h0VHSq7XHKTqpLARRm+DDNjduB7S9+6XZA==", + "license": "MIT", + "dependencies": { + "@types/mdast": "^4.0.0", + "devlop": "^1.0.0", + "mdast-util-from-markdown": "^2.0.0", + "mdast-util-to-markdown": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-mdx-expression": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/mdast-util-mdx-expression/-/mdast-util-mdx-expression-2.0.1.tgz", + "integrity": "sha512-J6f+9hUp+ldTZqKRSg7Vw5V6MqjATc+3E4gf3CFNcuZNWD8XdyI6zQ8GqH7f8169MM6P7hMBRDVGnn7oHB9kXQ==", + "license": "MIT", + "dependencies": { + "@types/estree-jsx": "^1.0.0", + "@types/hast": "^3.0.0", + "@types/mdast": "^4.0.0", + "devlop": "^1.0.0", + "mdast-util-from-markdown": "^2.0.0", + "mdast-util-to-markdown": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-mdx-jsx": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/mdast-util-mdx-jsx/-/mdast-util-mdx-jsx-3.2.1.tgz", + "integrity": "sha512-oXp1GIa+E9IwIs3a106+tr3Bz2MlTTBvlXjOZMoIat11kk7vjqgmBnksB9WHmWv+gZh7k3IUgpAHlwHB7DH4GQ==", + "license": "MIT", + "dependencies": { + "@types/estree-jsx": "^1.0.0", + "@types/hast": "^3.0.0", + "@types/mdast": "^4.0.0", + "@types/unist": "^3.0.0", + "ccount": "^2.0.0", + "devlop": "^1.1.0", + "mdast-util-from-markdown": "^2.0.0", + "mdast-util-to-markdown": "^2.0.0", + "parse-entities": "^4.0.0", + "stringify-entities": "^4.0.0", + "unist-util-stringify-position": "^4.0.0", + "vfile-message": "^4.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-mdxjs-esm": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/mdast-util-mdxjs-esm/-/mdast-util-mdxjs-esm-2.0.1.tgz", + "integrity": "sha512-EcmOpxsZ96CvlP03NghtH1EsLtr0n9Tm4lPUJUBccV9RwUOneqSycg19n5HGzCf+10LozMRSObtVr3ee1WoHtg==", + "license": "MIT", + "dependencies": { + "@types/estree-jsx": "^1.0.0", + "@types/hast": "^3.0.0", + "@types/mdast": "^4.0.0", + "devlop": "^1.0.0", + "mdast-util-from-markdown": "^2.0.0", + "mdast-util-to-markdown": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-phrasing": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/mdast-util-phrasing/-/mdast-util-phrasing-4.1.0.tgz", + "integrity": "sha512-TqICwyvJJpBwvGAMZjj4J2n0X8QWp21b9l0o7eXyVJ25YNWYbJDVIyD1bZXE6WtV6RmKJVYmQAKWa0zWOABz2w==", + "license": "MIT", + "dependencies": { + "@types/mdast": "^4.0.0", + "unist-util-is": "^6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-to-hast": { + "version": "13.2.2", + "resolved": "https://registry.npmjs.org/mdast-util-to-hast/-/mdast-util-to-hast-13.2.2.tgz", + "integrity": "sha512-l2pnmOuqs+SGLVpTVXnRLQu5v1AzvDe181404fbXzzqObVxrAnnVxapAP27pUwzLBL/ABIkgUhGlPVU7QSvIFg==", + "license": "MIT", + "dependencies": { + "@types/hast": "^3.0.0", + "@types/mdast": "^4.0.0", + "@ungap/structured-clone": "^1.0.0", + "devlop": "^1.0.0", + "micromark-util-sanitize-uri": "^2.0.0", + "trim-lines": "^3.0.0", + "unist-util-position": "^5.0.0", + "unist-util-visit": "^5.0.0", + "vfile": "^6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-to-markdown": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/mdast-util-to-markdown/-/mdast-util-to-markdown-2.2.3.tgz", + "integrity": "sha512-dImdB6VZRMRac1SwAW6o1c0ESk/7pFFAMCMuKM+9v7LpTSthMM5nzXpqKw4Mjo66aXVKhNkyrP4bMB9MurPyWg==", + "license": "MIT", + "dependencies": { + "@types/mdast": "^4.0.0", + "@types/unist": "^3.0.0", + "longest-streak": "^3.0.0", + "mdast-util-phrasing": "^4.0.0", + "mdast-util-to-string": "^4.0.0", + "micromark-util-character": "^2.0.0", + "micromark-util-classify-character": "^2.0.0", + "micromark-util-decode-string": "^2.0.0", + "micromark-util-html-tag-name": "^2.0.0", + "unist-util-visit": "^5.0.0", + "zwitch": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-to-string": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/mdast-util-to-string/-/mdast-util-to-string-4.0.0.tgz", + "integrity": "sha512-0H44vDimn51F0YwvxSJSm0eCDOJTRlmN0R1yBh4HLj9wiV1Dn0QoXGbvFAWj2hSItVTlCmBF1hqKlIyUBVFLPg==", + "license": "MIT", + "dependencies": { + "@types/mdast": "^4.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mermaid": { + "version": "12.3.0", + "resolved": "https://registry.npmjs.org/mermaid/-/mermaid-12.3.0.tgz", + "integrity": "sha512-4113TdXeLAsMruJ79OpFL5O8+LTFXhQqZ260rF3tgUmiNAtRm4Uume04I+65PRN6yZ69J4f8rVYWW8zRk65UYw==", + "license": "MIT", + "dependencies": { + "@braintree/sanitize-url": "^7.1.2", + "@iconify/utils": "^3.0.2", + "@mermaid-js/parser": "^2.0.1", + "@types/d3": "^7.4.3", + "@upsetjs/venn.js": "^2.0.0", + "chevrotain": "~13.2.0", + "cytoscape": "^3.34.0", + "cytoscape-cose-bilkent": "^4.1.0", + "cytoscape-fcose": "^2.2.0", + "d3": "^7.9.0", + "d3-sankey": "^0.12.3", + "dagre-d3-es": "7.0.14", + "dayjs": "^1.11.21", + "dompurify": "^3.4.17", + "elkjs": "^0.12.0", + "es-toolkit": "^1.45.1", + "katex": "^0.18.0", + "khroma": "^2.1.0", + "marked": "^16.3.0", + "roughjs": "^4.6.6", + "stylis": "^4.3.6", + "ts-dedent": "^2.2.0" + }, + "engines": { + "node": ">=22.12.0" + } + }, + "node_modules/micromark": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/micromark/-/micromark-4.0.3.tgz", + "integrity": "sha512-oGYfQzHSG5dOMovQcJ3fyTmZlWAWpi0XA0sJwJs+i6OT88o1+Jtw/8z0CmdowSLxGhhFK89rQ/oXph/wN02PNw==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "@types/debug": "^4.0.0", + "debug": "^4.0.0", + "decode-named-character-reference": "^1.0.0", + "devlop": "^1.0.0", + "micromark-core-commonmark": "^2.0.0", + "micromark-factory-space": "^2.0.0", + "micromark-util-character": "^2.0.0", + "micromark-util-chunked": "^2.0.0", + "micromark-util-combine-extensions": "^2.0.0", + "micromark-util-decode-numeric-character-reference": "^2.0.0", + "micromark-util-edit-map": "^1.0.0", + "micromark-util-encode": "^2.0.0", + "micromark-util-normalize-identifier": "^2.0.0", + "micromark-util-resolve-all": "^2.0.0", + "micromark-util-sanitize-uri": "^2.0.0", + "micromark-util-subtokenize": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-core-commonmark": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/micromark-core-commonmark/-/micromark-core-commonmark-2.0.4.tgz", + "integrity": "sha512-wxEeE8v8XVvOrxn1TZj74qYhAtTQsSqufHVS3uNVyT1MupXxhyaHk8/9xDNPh9BmL77QNDgWTkZ3RsYHB2ry7w==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "decode-named-character-reference": "^1.0.0", + "devlop": "^1.0.0", + "micromark-factory-destination": "^2.0.0", + "micromark-factory-label": "^2.0.0", + "micromark-factory-space": "^2.1.0", + "micromark-factory-title": "^2.0.0", + "micromark-factory-whitespace": "^2.0.0", + "micromark-util-character": "^2.0.0", + "micromark-util-chunked": "^2.0.0", + "micromark-util-classify-character": "^2.0.0", + "micromark-util-edit-map": "^1.0.0", + "micromark-util-html-tag-name": "^2.0.0", + "micromark-util-normalize-identifier": "^2.0.0", + "micromark-util-resolve-all": "^2.0.0", + "micromark-util-subtokenize": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.3" + } + }, + "node_modules/micromark-extension-gfm": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/micromark-extension-gfm/-/micromark-extension-gfm-3.0.0.tgz", + "integrity": "sha512-vsKArQsicm7t0z2GugkCKtZehqUm31oeGBV/KVSorWSy8ZlNAv7ytjFhvaryUiCUJYqs+NoE6AFhpQvBTM6Q4w==", + "license": "MIT", + "dependencies": { + "micromark-extension-gfm-autolink-literal": "^2.0.0", + "micromark-extension-gfm-footnote": "^2.0.0", + "micromark-extension-gfm-strikethrough": "^2.0.0", + "micromark-extension-gfm-table": "^2.0.0", + "micromark-extension-gfm-tagfilter": "^2.0.0", + "micromark-extension-gfm-task-list-item": "^2.0.0", + "micromark-util-combine-extensions": "^2.0.0", + "micromark-util-types": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/micromark-extension-gfm-autolink-literal": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/micromark-extension-gfm-autolink-literal/-/micromark-extension-gfm-autolink-literal-2.1.0.tgz", + "integrity": "sha512-oOg7knzhicgQ3t4QCjCWgTmfNhvQbDDnJeVu9v81r7NltNCVmhPy1fJRX27pISafdjL+SVc4d3l48Gb6pbRypw==", + "license": "MIT", + "dependencies": { + "micromark-util-character": "^2.0.0", + "micromark-util-sanitize-uri": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/micromark-extension-gfm-footnote": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/micromark-extension-gfm-footnote/-/micromark-extension-gfm-footnote-2.1.0.tgz", + "integrity": "sha512-/yPhxI1ntnDNsiHtzLKYnE3vf9JZ6cAisqVDauhp4CEHxlb4uoOTxOCJ+9s51bIB8U1N1FJ1RXOKTIlD5B/gqw==", + "license": "MIT", + "dependencies": { + "devlop": "^1.0.0", + "micromark-core-commonmark": "^2.0.0", + "micromark-factory-space": "^2.0.0", + "micromark-util-character": "^2.0.0", + "micromark-util-normalize-identifier": "^2.0.0", + "micromark-util-sanitize-uri": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/micromark-extension-gfm-strikethrough": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/micromark-extension-gfm-strikethrough/-/micromark-extension-gfm-strikethrough-2.1.0.tgz", + "integrity": "sha512-ADVjpOOkjz1hhkZLlBiYA9cR2Anf8F4HqZUO6e5eDcPQd0Txw5fxLzzxnEkSkfnD0wziSGiv7sYhk/ktvbf1uw==", + "license": "MIT", + "dependencies": { + "devlop": "^1.0.0", + "micromark-util-chunked": "^2.0.0", + "micromark-util-classify-character": "^2.0.0", + "micromark-util-resolve-all": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/micromark-extension-gfm-table": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/micromark-extension-gfm-table/-/micromark-extension-gfm-table-2.1.2.tgz", + "integrity": "sha512-pRzm4kDTu0MjlmBkxmS9yYhw60nncfcEwu9NNdPFSQEFXS95ZKyIIyTSHu/o3ReBUrLKYEq+7YaXCRn/bPB4MA==", + "license": "MIT", + "dependencies": { + "devlop": "^1.0.0", + "micromark-factory-space": "^2.0.0", + "micromark-util-character": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/micromark-extension-gfm-tagfilter": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/micromark-extension-gfm-tagfilter/-/micromark-extension-gfm-tagfilter-2.0.0.tgz", + "integrity": "sha512-xHlTOmuCSotIA8TW1mDIM6X2O1SiX5P9IuDtqGonFhEK0qgRI4yeC6vMxEV2dgyr2TiD+2PQ10o+cOhdVAcwfg==", + "license": "MIT", + "dependencies": { + "micromark-util-types": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/micromark-extension-gfm-task-list-item": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/micromark-extension-gfm-task-list-item/-/micromark-extension-gfm-task-list-item-2.1.0.tgz", + "integrity": "sha512-qIBZhqxqI6fjLDYFTBIa4eivDMnP+OZqsNwmQ3xNLE4Cxwc+zfQEfbs6tzAo2Hjq+bh6q5F+Z8/cksrLFYWQQw==", + "license": "MIT", + "dependencies": { + "devlop": "^1.0.0", + "micromark-factory-space": "^2.0.0", + "micromark-util-character": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/micromark-factory-destination": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-factory-destination/-/micromark-factory-destination-2.0.1.tgz", + "integrity": "sha512-Xe6rDdJlkmbFRExpTOmRj9N3MaWmbAgdpSrBQvCFqhezUn4AHqJHbaEnfbVYYiexVSs//tqOdY/DxhjdCiJnIA==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-util-character": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-factory-label": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-factory-label/-/micromark-factory-label-2.0.1.tgz", + "integrity": "sha512-VFMekyQExqIW7xIChcXn4ok29YE3rnuyveW3wZQWWqF4Nv9Wk5rgJ99KzPvHjkmPXF93FXIbBp6YdW3t71/7Vg==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "devlop": "^1.0.0", + "micromark-util-character": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-factory-space": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/micromark-factory-space/-/micromark-factory-space-2.1.0.tgz", + "integrity": "sha512-fS8hnLIjnjvdQIj39Geug8wWsR0HrYZ43KShKxNfwT7t2LOHo/LbWZEzEaSOjwtjdCsjoE6syHhonEzW0zv0+Q==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-util-character": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-factory-title": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-factory-title/-/micromark-factory-title-2.0.1.tgz", + "integrity": "sha512-5bZ+3CjhAd9eChYTHsjy6TGxpOFSKgKKJPJxr293jTbfry2KDoWkhBb6TcPVB4NmzaPhMs1Frm9AZH7OD4Cjzw==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-factory-space": "^2.0.0", + "micromark-util-character": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-factory-whitespace": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-factory-whitespace/-/micromark-factory-whitespace-2.0.1.tgz", + "integrity": "sha512-Ob0nuZ3PKt/n0hORHyvoD9uZhr+Za8sFoP+OnMcnWK5lngSzALgQYKMr9RJVOWLqQYuyn6ulqGWSXdwf6F80lQ==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-factory-space": "^2.0.0", + "micromark-util-character": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-util-character": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/micromark-util-character/-/micromark-util-character-2.1.1.tgz", + "integrity": "sha512-wv8tdUTJ3thSFFFJKtpYKOYiGP2+v96Hvk4Tu8KpCAsTMs6yi+nVmGh1syvSCsaxz45J6Jbw+9DD6g97+NV67Q==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-util-chunked": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-chunked/-/micromark-util-chunked-2.0.1.tgz", + "integrity": "sha512-QUNFEOPELfmvv+4xiNg2sRYeS/P84pTW0TCgP5zc9FpXetHY0ab7SxKyAQCNCc1eK0459uoLI1y5oO5Vc1dbhA==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-util-symbol": "^2.0.0" + } + }, + "node_modules/micromark-util-classify-character": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-classify-character/-/micromark-util-classify-character-2.0.1.tgz", + "integrity": "sha512-K0kHzM6afW/MbeWYWLjoHQv1sgg2Q9EccHEDzSkxiP/EaagNzCm7T/WMKZ3rjMbvIpvBiZgwR3dKMygtA4mG1Q==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-util-character": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-util-combine-extensions": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-combine-extensions/-/micromark-util-combine-extensions-2.0.1.tgz", + "integrity": "sha512-OnAnH8Ujmy59JcyZw8JSbK9cGpdVY44NKgSM7E9Eh7DiLS2E9RNQf0dONaGDzEG9yjEl5hcqeIsj4hfRkLH/Bg==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-util-chunked": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-util-decode-numeric-character-reference": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/micromark-util-decode-numeric-character-reference/-/micromark-util-decode-numeric-character-reference-2.0.2.tgz", + "integrity": "sha512-ccUbYk6CwVdkmCQMyr64dXz42EfHGkPQlBj5p7YVGzq8I7CtjXZJrubAYezf7Rp+bjPseiROqe7G6foFd+lEuw==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-util-symbol": "^2.0.0" + } + }, + "node_modules/micromark-util-decode-string": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-decode-string/-/micromark-util-decode-string-2.0.1.tgz", + "integrity": "sha512-nDV/77Fj6eH1ynwscYTOsbK7rR//Uj0bZXBwJZRfaLEJ1iGBR6kIfNmlNqaqJf649EP0F3NWNdeJi03elllNUQ==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "decode-named-character-reference": "^1.0.0", + "micromark-util-character": "^2.0.0", + "micromark-util-decode-numeric-character-reference": "^2.0.0", + "micromark-util-symbol": "^2.0.0" + } + }, + "node_modules/micromark-util-edit-map": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/micromark-util-edit-map/-/micromark-util-edit-map-1.0.0.tgz", + "integrity": "sha512-Pa2ljlsEL6sVwFaYeyrOLSYbQt73JvGbPOYFq+9AElXiSnfI5Q4465RRZ1sHv7lDjDOnGRDDaqPXqClqWK/q1Q==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-util-encode": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-encode/-/micromark-util-encode-2.0.1.tgz", + "integrity": "sha512-c3cVx2y4KqUnwopcO9b/SCdo2O67LwJJ/UyqGfbigahfegL9myoEFoDYZgkT7f36T0bLrM9hZTAaAyH+PCAXjw==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT" + }, + "node_modules/micromark-util-html-tag-name": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-html-tag-name/-/micromark-util-html-tag-name-2.0.1.tgz", + "integrity": "sha512-2cNEiYDhCWKI+Gs9T0Tiysk136SnR13hhO8yW6BGNyhOC4qYFnwF1nKfD3HFAIXA5c45RrIG1ub11GiXeYd1xA==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT" + }, + "node_modules/micromark-util-normalize-identifier": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-normalize-identifier/-/micromark-util-normalize-identifier-2.0.1.tgz", + "integrity": "sha512-sxPqmo70LyARJs0w2UclACPUUEqltCkJ6PhKdMIDuJ3gSf/Q+/GIe3WKl0Ijb/GyH9lOpUkRAO2wp0GVkLvS9Q==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-util-symbol": "^2.0.0" + } + }, + "node_modules/micromark-util-resolve-all": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-resolve-all/-/micromark-util-resolve-all-2.0.1.tgz", + "integrity": "sha512-VdQyxFWFT2/FGJgwQnJYbe1jjQoNTS4RjglmSjTUlpUMa95Htx9NHeYW4rGDJzbjvCsl9eLjMQwGeElsqmzcHg==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-util-sanitize-uri": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-sanitize-uri/-/micromark-util-sanitize-uri-2.0.1.tgz", + "integrity": "sha512-9N9IomZ/YuGGZZmQec1MbgxtlgougxTodVwDzzEouPKo3qFWvymFHWcnDi2vzV1ff6kas9ucW+o3yzJK9YB1AQ==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-util-character": "^2.0.0", + "micromark-util-encode": "^2.0.0", + "micromark-util-symbol": "^2.0.0" + } + }, + "node_modules/micromark-util-subtokenize": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/micromark-util-subtokenize/-/micromark-util-subtokenize-2.1.0.tgz", + "integrity": "sha512-XQLu552iSctvnEcgXw6+Sx75GflAPNED1qx7eBJ+wydBb2KCbRZe+NwvIEEMM83uml1+2WSXpBAcp9IUCgCYWA==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "devlop": "^1.0.0", + "micromark-util-chunked": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-util-symbol": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-2.0.1.tgz", + "integrity": "sha512-vs5t8Apaud9N28kgCrRUdEed4UJ+wWNvicHLPxCa9ENlYuAY31M0ETy5y1vA33YoNPDFTghEbnh6efaE8h4x0Q==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT" + }, + "node_modules/micromark-util-types": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/micromark-util-types/-/micromark-util-types-2.0.3.tgz", + "integrity": "sha512-oxB2Ik03hI0gv+VNn9tnh1t1YEe9MDPptViAEgfdf3YQHsn0pzGTgCdlSCJXcwhqm8phaEuM7zeEu3QQzVBrPg==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT" + }, + "node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "license": "MIT" + }, + "node_modules/nanoid": { + "version": "3.3.20", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.20.tgz", + "integrity": "sha512-uKdg2G3GNCKQn9byYOpxbGqrT2fGO5KRt5J/8b3pok8rT6qxGWF6hxMyJiEYtAf+FVyYuD9hRaDqX5uPFYJ4ZQ==", + "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/node-releases": { + "version": "2.0.64", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.64.tgz", + "integrity": "sha512-zAPCKqMcnqs2nGy6nlkm7JduFseiBJy3EXHGLh+8pFR+TxGCBxxiEN21+UROU5CKwX/f4TlUcYjiM+vs/tsyxw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + } + }, + "node_modules/package-manager-detector": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/package-manager-detector/-/package-manager-detector-1.9.0.tgz", + "integrity": "sha512-zAMfbta9nPA8AKkA4WdmNAT8R8s6Dk0/xwPsqNnRidMFcLo1YkLuPDTgs2f64XdzS8vbLNnoJ+uUIkgbz7oRHA==", + "license": "MIT" + }, + "node_modules/parse-entities": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/parse-entities/-/parse-entities-4.0.2.tgz", + "integrity": "sha512-GG2AQYWoLgL877gQIKeRPGO1xF9+eG1ujIb5soS5gPvLQ1y2o8FL90w2QWNdf9I361Mpp7726c+lj3U0qK1uGw==", + "license": "MIT", + "dependencies": { + "@types/unist": "^2.0.0", + "character-entities-legacy": "^3.0.0", + "character-reference-invalid": "^2.0.0", + "decode-named-character-reference": "^1.0.0", + "is-alphanumerical": "^2.0.0", + "is-decimal": "^2.0.0", + "is-hexadecimal": "^2.0.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/parse-entities/node_modules/@types/unist": { + "version": "2.0.11", + "resolved": "https://registry.npmjs.org/@types/unist/-/unist-2.0.11.tgz", + "integrity": "sha512-CmBKiL6NNo/OqgmMn95Fk9Whlp2mtvIv+KNpQKN2F4SjvrEesubTRWGYSg+BnWZOnlCaSTU1sMpsBOzgbYhnsA==", + "license": "MIT" + }, + "node_modules/path-data-parser": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/path-data-parser/-/path-data-parser-0.1.0.tgz", + "integrity": "sha512-NOnmBpt5Y2RWbuv0LMzsayp3lVylAHLPUTut412ZA3l+C4uw4ZVkQbjShYCQ8TCpUMdPapr4YjUqLYD6v68j+w==", + "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/points-on-curve": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/points-on-curve/-/points-on-curve-0.2.0.tgz", + "integrity": "sha512-0mYKnYYe9ZcqMCWhUjItv/oHjvgEsfKvnUTg8sAtnHr3GVy7rGkXCb6d5cSyqrWqL4k81b9CPg3urd+T7aop3A==", + "license": "MIT" + }, + "node_modules/points-on-path": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/points-on-path/-/points-on-path-0.2.1.tgz", + "integrity": "sha512-25ClnWWuw7JbWZcgqY/gJ4FQWadKxGWk+3kR/7kD0tCaDtPPMj7oHu2ToLaVhfpnHrZzYby2w6tUA0eOIuUg8g==", + "license": "MIT", + "dependencies": { + "path-data-parser": "0.1.0", + "points-on-curve": "0.2.0" + } + }, + "node_modules/postcss": { + "version": "8.5.33", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.33.tgz", + "integrity": "sha512-RVHEU9/Pp1Fnjr/MpAJsZoADukCKhfIi15OunEYiGktIkYLkPVvC1sioWolGDS7XByMTx9m/IGbro0Js13zhnQ==", + "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.20", + "picocolors": "^1.1.1", + "source-map-js": "^1.2.2" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/property-information": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/property-information/-/property-information-7.2.0.tgz", + "integrity": "sha512-IAtzIB6sUiWaJYrX9smp3V46pBGbBeLFRGdh25kg1334VcBlD8HzhPeNIWQH9zhGmo2itIe25EHt9dQP7G5hmg==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/react": { + "version": "18.3.1", + "resolved": "https://registry.npmjs.org/react/-/react-18.3.1.tgz", + "integrity": "sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==", + "license": "MIT", + "dependencies": { + "loose-envify": "^1.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/react-dom": { + "version": "18.3.1", + "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.3.1.tgz", + "integrity": "sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw==", + "license": "MIT", + "dependencies": { + "loose-envify": "^1.1.0", + "scheduler": "^0.23.2" + }, + "peerDependencies": { + "react": "^18.3.1" + } + }, + "node_modules/react-markdown": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/react-markdown/-/react-markdown-9.1.0.tgz", + "integrity": "sha512-xaijuJB0kzGiUdG7nc2MOMDUDBWPyGAjZtUrow9XxUeua8IqeP+VlIfAZ3bphpcLTnSZXz6z9jcVC/TCwbfgdw==", + "license": "MIT", + "dependencies": { + "@types/hast": "^3.0.0", + "@types/mdast": "^4.0.0", + "devlop": "^1.0.0", + "hast-util-to-jsx-runtime": "^2.0.0", + "html-url-attributes": "^3.0.0", + "mdast-util-to-hast": "^13.0.0", + "remark-parse": "^11.0.0", + "remark-rehype": "^11.0.0", + "unified": "^11.0.0", + "unist-util-visit": "^5.0.0", + "vfile": "^6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + }, + "peerDependencies": { + "@types/react": ">=18", + "react": ">=18" + } + }, + "node_modules/react-refresh": { + "version": "0.17.0", + "resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.17.0.tgz", + "integrity": "sha512-z6F7K9bV85EfseRCp2bzrpyQ0Gkw1uLoCel9XBVWPg/TjRj94SkJzUTGfOa4bs7iJvBWtQG0Wq7wnI0syw3EBQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/remark-gfm": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/remark-gfm/-/remark-gfm-4.0.1.tgz", + "integrity": "sha512-1quofZ2RQ9EWdeN34S79+KExV1764+wCUGop5CPL1WGdD0ocPpu91lzPGbwWMECpEpd42kJGQwzRfyov9j4yNg==", + "license": "MIT", + "dependencies": { + "@types/mdast": "^4.0.0", + "mdast-util-gfm": "^3.0.0", + "micromark-extension-gfm": "^3.0.0", + "remark-parse": "^11.0.0", + "remark-stringify": "^11.0.0", + "unified": "^11.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/remark-parse": { + "version": "11.0.0", + "resolved": "https://registry.npmjs.org/remark-parse/-/remark-parse-11.0.0.tgz", + "integrity": "sha512-FCxlKLNGknS5ba/1lmpYijMUzX2esxW5xQqjWxw2eHFfS2MSdaHVINFmhjo+qN1WhZhNimq0dZATN9pH0IDrpA==", + "license": "MIT", + "dependencies": { + "@types/mdast": "^4.0.0", + "mdast-util-from-markdown": "^2.0.0", + "micromark-util-types": "^2.0.0", + "unified": "^11.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/remark-rehype": { + "version": "11.1.2", + "resolved": "https://registry.npmjs.org/remark-rehype/-/remark-rehype-11.1.2.tgz", + "integrity": "sha512-Dh7l57ianaEoIpzbp0PC9UKAdCSVklD8E5Rpw7ETfbTl3FqcOOgq5q2LVDhgGCkaBv7p24JXikPdvhhmHvKMsw==", + "license": "MIT", + "dependencies": { + "@types/hast": "^3.0.0", + "@types/mdast": "^4.0.0", + "mdast-util-to-hast": "^13.0.0", + "unified": "^11.0.0", + "vfile": "^6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/remark-stringify": { + "version": "11.0.0", + "resolved": "https://registry.npmjs.org/remark-stringify/-/remark-stringify-11.0.0.tgz", + "integrity": "sha512-1OSmLd3awB/t8qdoEOMazZkNsfVTeY4fTsgzcQFdXNq8ToTN4ZGwrMnlda4K6smTFKD+GRV6O48i6Z4iKgPPpw==", + "license": "MIT", + "dependencies": { + "@types/mdast": "^4.0.0", + "mdast-util-to-markdown": "^2.0.0", + "unified": "^11.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/robust-predicates": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/robust-predicates/-/robust-predicates-3.0.3.tgz", + "integrity": "sha512-NS3levdsRIUOmiJ8FZWCP7LG3QpJyrs/TE0Zpf1yvZu8cAJJ6QMW92H1c7kWpdIHo8RvmLxN/o2JXTKHp74lUA==", + "license": "Unlicense" + }, + "node_modules/rollup": { + "version": "4.68.3", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.68.3.tgz", + "integrity": "sha512-wd2gavj7CEQv52rdcVqfUupO/KPIKcoJKxyFWl4cOqYZGMQEOSijJRkliz0dRa7gpkj/h4TRqyWa+dJJi6T0OA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/estree": "^1.0.10" + }, + "bin": { + "rollup": "dist/bin/rollup" + }, + "engines": { + "node": ">=18.0.0", + "npm": ">=8.0.0" + }, + "optionalDependencies": { + "@rollup/rollup-android-arm-eabi": "4.68.3", + "@rollup/rollup-android-arm64": "4.68.3", + "@rollup/rollup-android-x64": "4.68.3", + "@rollup/rollup-darwin-arm64": "4.68.3", + "@rollup/rollup-darwin-x64": "4.68.3", + "@rollup/rollup-freebsd-arm64": "4.68.3", + "@rollup/rollup-freebsd-x64": "4.68.3", + "@rollup/rollup-linux-arm-gnueabihf": "4.68.3", + "@rollup/rollup-linux-arm-musleabihf": "4.68.3", + "@rollup/rollup-linux-arm64-gnu": "4.68.3", + "@rollup/rollup-linux-arm64-musl": "4.68.3", + "@rollup/rollup-linux-loong64-gnu": "4.68.3", + "@rollup/rollup-linux-loong64-musl": "4.68.3", + "@rollup/rollup-linux-ppc64-gnu": "4.68.3", + "@rollup/rollup-linux-ppc64-musl": "4.68.3", + "@rollup/rollup-linux-riscv64-gnu": "4.68.3", + "@rollup/rollup-linux-riscv64-musl": "4.68.3", + "@rollup/rollup-linux-s390x-gnu": "4.68.3", + "@rollup/rollup-linux-x64-gnu": "4.68.3", + "@rollup/rollup-linux-x64-musl": "4.68.3", + "@rollup/rollup-openbsd-x64": "4.68.3", + "@rollup/rollup-openharmony-arm64": "4.68.3", + "@rollup/rollup-win32-arm64-msvc": "4.68.3", + "@rollup/rollup-win32-ia32-msvc": "4.68.3", + "@rollup/rollup-win32-x64-gnu": "4.68.3", + "@rollup/rollup-win32-x64-msvc": "4.68.3", + "fsevents": "~2.3.2" + } + }, + "node_modules/roughjs": { + "version": "4.6.6", + "resolved": "https://registry.npmjs.org/roughjs/-/roughjs-4.6.6.tgz", + "integrity": "sha512-ZUz/69+SYpFN/g/lUlo2FXcIjRkSu3nDarreVdGGndHEBJ6cXPdKguS8JGxwj5HA5xIbVKSmLgr5b3AWxtRfvQ==", + "license": "MIT", + "dependencies": { + "hachure-fill": "^0.5.2", + "path-data-parser": "^0.1.0", + "points-on-curve": "^0.2.0", + "points-on-path": "^0.2.1" + } + }, + "node_modules/rw": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/rw/-/rw-1.3.3.tgz", + "integrity": "sha512-PdhdWy89SiZogBLaw42zdeqtRJ//zFd2PgQavcICDUgJT5oW10QCRKbJ6bg4r0/UY2M6BWd5tkxuGFRvCkgfHQ==", + "license": "BSD-3-Clause" + }, + "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.23.2", + "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.2.tgz", + "integrity": "sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ==", + "license": "MIT", + "dependencies": { + "loose-envify": "^1.1.0" + } + }, + "node_modules/semver": { + "version": "6.3.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.2.tgz", + "integrity": "sha512-GYrCADwpu6yV5OAvchkQ27Z5wwMxWAEMg5NNWjyHh/5DboFFqbdbvYNIvZouQpxXyeMPoTOh0vdPYKlf0ZswdQ==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/source-map-js": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.2.tgz", + "integrity": "sha512-KGj/8Y43x35aZVDtt+J4mK1hoLGHULMYfSkODJNQjNDC3oW1PqPoxMwo0pLUsWM/UEGzON/NxeHywEfNXNP3Vw==", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/space-separated-tokens": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/space-separated-tokens/-/space-separated-tokens-2.0.2.tgz", + "integrity": "sha512-PEGlAwrG8yXGXRjW32fGbg66JAlOAwbObuqVoJpv/mRgoWDQfgH1wDPvtzWyUSNAXBGSk8h755YDbbcEy3SH2Q==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/stringify-entities": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/stringify-entities/-/stringify-entities-4.0.4.tgz", + "integrity": "sha512-IwfBptatlO+QCJUo19AqvrPNqlVMpW9YEL2LIVY+Rpv2qsjCGxaDLNRgeGsQWJhfItebuJhsGSLjaBbNSQ+ieg==", + "license": "MIT", + "dependencies": { + "character-entities-html4": "^2.0.0", + "character-entities-legacy": "^3.0.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/style-to-object": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/style-to-object/-/style-to-object-2.0.2.tgz", + "integrity": "sha512-QmbXPUylqU80HAgTOJeEOdbA40W9KtxmjMhQy+tq+b8F2aoh3aQLuy82hh2jm2qsC9hR9eI0+eQidTMydKcqRA==", + "license": "MIT", + "dependencies": { + "inline-style-parser": "0.2.9" + } + }, + "node_modules/stylis": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/stylis/-/stylis-4.4.0.tgz", + "integrity": "sha512-5Z9ZpRzfuH6l/UAvCPAPUo3665Nk2wLaZU3x+TLHKVzIz33+sbJqbtrYoC3KD4/uVOr2Zp+L0LySezP9OHV9yA==", + "license": "MIT" + }, + "node_modules/tinyexec": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-1.3.1.tgz", + "integrity": "sha512-GCvB3aoys96IuDFBMcTB46JOR6mdMtAToqwiW8JlWhsoh1mhHi/xn9ss/Dg7N555GiJyEt2qzoG/NHCwM6h1EA==", + "license": "MIT", + "engines": { + "node": ">=18" + } + }, + "node_modules/trim-lines": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/trim-lines/-/trim-lines-3.0.1.tgz", + "integrity": "sha512-kRj8B+YHZCc9kQYdWfJB2/oUl9rA99qbowYYBtr4ui4mZyAQ2JpvVBd/6U2YloATfqBhBTSMhTpgBHtU0Mf3Rg==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/trough": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/trough/-/trough-2.2.0.tgz", + "integrity": "sha512-tmMpK00BjZiUyVyvrBK7knerNgmgvcV/KLVyuma/SC+TQN167GrMRciANTz09+k3zW8L8t60jWO1GpfkZdjTaw==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/ts-dedent": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/ts-dedent/-/ts-dedent-2.3.0.tgz", + "integrity": "sha512-JfJeIHke7y2egdGGgRAvpCwYFUsHlM2gPcrVOxFkznt/4uzQ7HFmvE63iFHVLBJNDuyDOQgijDK/tXH/f6Msjg==", + "license": "MIT", + "engines": { + "node": ">=6.10" + } + }, + "node_modules/tsx": { + "version": "4.23.15", + "resolved": "https://registry.npmjs.org/tsx/-/tsx-4.23.15.tgz", + "integrity": "sha512-Yiex1Ovn8z2xPpOWckIiysV1SSyRMY9BkLF++q0yKiDxCqRhosKfMg3janKkiLBwZ5c/YryloKwGZcrEmtwxKw==", + "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/typescript": { + "version": "5.9.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz", + "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/undici-types": { + "version": "6.21.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz", + "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/unified": { + "version": "11.0.5", + "resolved": "https://registry.npmjs.org/unified/-/unified-11.0.5.tgz", + "integrity": "sha512-xKvGhPWw3k84Qjh8bI3ZeJjqnyadK+GEFtazSfZv/rKeTkTjOJho6mFqh2SM96iIcZokxiOpg78GazTSg8+KHA==", + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0", + "bail": "^2.0.0", + "devlop": "^1.0.0", + "extend": "^3.0.0", + "is-plain-obj": "^4.0.0", + "trough": "^2.0.0", + "vfile": "^6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/unist-util-is": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-6.0.1.tgz", + "integrity": "sha512-LsiILbtBETkDz8I9p1dQ0uyRUWuaQzd/cuEeS1hoRSyW5E5XGmTzlwY1OrNzzakGowI9Dr/I8HVaw4hTtnxy8g==", + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/unist-util-position": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/unist-util-position/-/unist-util-position-5.0.0.tgz", + "integrity": "sha512-fucsC7HjXvkB5R3kTCO7kUjRdrS0BJt3M/FPxmHMBOm8JQi2BsHAHFsy27E0EolP8rp0NzXsJ+jNPyDWvOJZPA==", + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/unist-util-stringify-position": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/unist-util-stringify-position/-/unist-util-stringify-position-4.0.0.tgz", + "integrity": "sha512-0ASV06AAoKCDkS2+xw5RXJywruurpbC4JZSm7nr7MOt1ojAzvyyaO+UxZf18j8FCF6kmzCZKcAgN/yu2gm2XgQ==", + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/unist-util-visit": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-5.2.0.tgz", + "integrity": "sha512-fpsYs/VVoZxfGY9/j3FQpZmN8wdLJaV1Pt38AaJNZu9uKIHcFU3halCdBveEq1HGKO1OEfJY65w1zvoFV1b3qQ==", + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0", + "unist-util-is": "^6.0.0", + "unist-util-visit-parents": "^6.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/unist-util-visit-parents": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-6.1.0.tgz", + "integrity": "sha512-vKXxz6O38sKDj1mtx/k2cWvkkFBuYGx6uGrlzBkVeWCRF/F8sdI0j3Wbkz/5rVNRRuVc8UrgRdbCxNhmYXgP3w==", + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0", + "unist-util-is": "^6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/update-browserslist-db": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.3.4.tgz", + "integrity": "sha512-t8wonIOdQyOjtPd2VktlBu6QjTVTks6v8bSi7kd0r2Vll8TK1JYDZtRRdbmCHOAMphkZgrzK+L+vXK4pyZ8t4A==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "escalade": "^3.2.0", + "picocolors": "^1.1.1" + }, + "bin": { + "update-browserslist-db": "cli.js" + }, + "peerDependencies": { + "browserslist": ">= 4.21.0" + } + }, + "node_modules/vfile": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/vfile/-/vfile-6.0.3.tgz", + "integrity": "sha512-KzIbH/9tXat2u30jf+smMwFCsno4wHVdNmzFyL+T/L3UGqqk6JKfVqOFOZEpZSHADH1k40ab6NUIXZq422ov3Q==", + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0", + "vfile-message": "^4.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/vfile-message": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/vfile-message/-/vfile-message-4.0.4.tgz", + "integrity": "sha512-66ycRswIkNmHH9PHku7ADtv5RVwgIrOcuv3J8Svz6h4qgGRrKVa+9/neuKyJZUXyOpYwLTvS+whZ4R2urHHgQg==", + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0", + "unist-util-stringify-position": "^4.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/vite": { + "version": "5.4.21", + "resolved": "https://registry.npmjs.org/vite/-/vite-5.4.21.tgz", + "integrity": "sha512-o5a9xKjbtuhY6Bi5S3+HvbRERmouabWbyUcpXXUA1u+GNUKoROi9byOJ8M0nHbHYHkYICiMlqxkg1KkYmm25Sw==", + "dev": true, + "license": "MIT", + "dependencies": { + "esbuild": "^0.21.3", + "postcss": "^8.4.43", + "rollup": "^4.20.0" + }, + "bin": { + "vite": "bin/vite.js" + }, + "engines": { + "node": "^18.0.0 || >=20.0.0" + }, + "funding": { + "url": "https://github.com/vitejs/vite?sponsor=1" + }, + "optionalDependencies": { + "fsevents": "~2.3.3" + }, + "peerDependencies": { + "@types/node": "^18.0.0 || >=20.0.0", + "less": "*", + "lightningcss": "^1.21.0", + "sass": "*", + "sass-embedded": "*", + "stylus": "*", + "sugarss": "*", + "terser": "^5.4.0" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "less": { + "optional": true + }, + "lightningcss": { + "optional": true + }, + "sass": { + "optional": true + }, + "sass-embedded": { + "optional": true + }, + "stylus": { + "optional": true + }, + "sugarss": { + "optional": true + }, + "terser": { + "optional": true + } + } + }, + "node_modules/vite/node_modules/@esbuild/aix-ppc64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.21.5.tgz", + "integrity": "sha512-1SDgH6ZSPTlggy1yI6+Dbkiz8xzpHJEVAlF/AM1tHPLsf5STom9rwtjE4hKAF20FfXXNTFqEYXyJNWh1GiZedQ==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "aix" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vite/node_modules/@esbuild/android-arm": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.21.5.tgz", + "integrity": "sha512-vCPvzSjpPHEi1siZdlvAlsPxXl7WbOVUBBAowWug4rJHb68Ox8KualB+1ocNvT5fjv6wpkX6o/iEpbDrf68zcg==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vite/node_modules/@esbuild/android-arm64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.21.5.tgz", + "integrity": "sha512-c0uX9VAUBQ7dTDCjq+wdyGLowMdtR/GoC2U5IYk/7D1H1JYC0qseD7+11iMP2mRLN9RcCMRcjC4YMclCzGwS/A==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vite/node_modules/@esbuild/android-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.21.5.tgz", + "integrity": "sha512-D7aPRUUNHRBwHxzxRvp856rjUHRFW1SdQATKXH2hqA0kAZb1hKmi02OpYRacl0TxIGz/ZmXWlbZgjwWYaCakTA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vite/node_modules/@esbuild/darwin-arm64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.21.5.tgz", + "integrity": "sha512-DwqXqZyuk5AiWWf3UfLiRDJ5EDd49zg6O9wclZ7kUMv2WRFr4HKjXp/5t8JZ11QbQfUS6/cRCKGwYhtNAY88kQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vite/node_modules/@esbuild/darwin-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.21.5.tgz", + "integrity": "sha512-se/JjF8NlmKVG4kNIuyWMV/22ZaerB+qaSi5MdrXtd6R08kvs2qCN4C09miupktDitvh8jRFflwGFBQcxZRjbw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vite/node_modules/@esbuild/freebsd-arm64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.21.5.tgz", + "integrity": "sha512-5JcRxxRDUJLX8JXp/wcBCy3pENnCgBR9bN6JsY4OmhfUtIHe3ZW0mawA7+RDAcMLrMIZaf03NlQiX9DGyB8h4g==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vite/node_modules/@esbuild/freebsd-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.21.5.tgz", + "integrity": "sha512-J95kNBj1zkbMXtHVH29bBriQygMXqoVQOQYA+ISs0/2l3T9/kj42ow2mpqerRBxDJnmkUDCaQT/dfNXWX/ZZCQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vite/node_modules/@esbuild/linux-arm": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.21.5.tgz", + "integrity": "sha512-bPb5AHZtbeNGjCKVZ9UGqGwo8EUu4cLq68E95A53KlxAPRmUyYv2D6F0uUI65XisGOL1hBP5mTronbgo+0bFcA==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vite/node_modules/@esbuild/linux-arm64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.21.5.tgz", + "integrity": "sha512-ibKvmyYzKsBeX8d8I7MH/TMfWDXBF3db4qM6sy+7re0YXya+K1cem3on9XgdT2EQGMu4hQyZhan7TeQ8XkGp4Q==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vite/node_modules/@esbuild/linux-ia32": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.21.5.tgz", + "integrity": "sha512-YvjXDqLRqPDl2dvRODYmmhz4rPeVKYvppfGYKSNGdyZkA01046pLWyRKKI3ax8fbJoK5QbxblURkwK/MWY18Tg==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vite/node_modules/@esbuild/linux-loong64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.21.5.tgz", + "integrity": "sha512-uHf1BmMG8qEvzdrzAqg2SIG/02+4/DHB6a9Kbya0XDvwDEKCoC8ZRWI5JJvNdUjtciBGFQ5PuBlpEOXQj+JQSg==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vite/node_modules/@esbuild/linux-mips64el": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.21.5.tgz", + "integrity": "sha512-IajOmO+KJK23bj52dFSNCMsz1QP1DqM6cwLUv3W1QwyxkyIWecfafnI555fvSGqEKwjMXVLokcV5ygHW5b3Jbg==", + "cpu": [ + "mips64el" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vite/node_modules/@esbuild/linux-ppc64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.21.5.tgz", + "integrity": "sha512-1hHV/Z4OEfMwpLO8rp7CvlhBDnjsC3CttJXIhBi+5Aj5r+MBvy4egg7wCbe//hSsT+RvDAG7s81tAvpL2XAE4w==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vite/node_modules/@esbuild/linux-riscv64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.21.5.tgz", + "integrity": "sha512-2HdXDMd9GMgTGrPWnJzP2ALSokE/0O5HhTUvWIbD3YdjME8JwvSCnNGBnTThKGEB91OZhzrJ4qIIxk/SBmyDDA==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vite/node_modules/@esbuild/linux-s390x": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.21.5.tgz", + "integrity": "sha512-zus5sxzqBJD3eXxwvjN1yQkRepANgxE9lgOW2qLnmr8ikMTphkjgXu1HR01K4FJg8h1kEEDAqDcZQtbrRnB41A==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vite/node_modules/@esbuild/linux-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.21.5.tgz", + "integrity": "sha512-1rYdTpyv03iycF1+BhzrzQJCdOuAOtaqHTWJZCWvijKD2N5Xu0TtVC8/+1faWqcP9iBCWOmjmhoH94dH82BxPQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vite/node_modules/@esbuild/netbsd-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.21.5.tgz", + "integrity": "sha512-Woi2MXzXjMULccIwMnLciyZH4nCIMpWQAs049KEeMvOcNADVxo0UBIQPfSmxB3CWKedngg7sWZdLvLczpe0tLg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vite/node_modules/@esbuild/openbsd-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.21.5.tgz", + "integrity": "sha512-HLNNw99xsvx12lFBUwoT8EVCsSvRNDVxNpjZ7bPn947b8gJPzeHWyNVhFsaerc0n3TsbOINvRP2byTZ5LKezow==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vite/node_modules/@esbuild/sunos-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.21.5.tgz", + "integrity": "sha512-6+gjmFpfy0BHU5Tpptkuh8+uw3mnrvgs+dSPQXQOv3ekbordwnzTVEb4qnIvQcYXq6gzkyTnoZ9dZG+D4garKg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vite/node_modules/@esbuild/win32-arm64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.21.5.tgz", + "integrity": "sha512-Z0gOTd75VvXqyq7nsl93zwahcTROgqvuAcYDUr+vOv8uHhNSKROyU961kgtCD1e95IqPKSQKH7tBTslnS3tA8A==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vite/node_modules/@esbuild/win32-ia32": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.21.5.tgz", + "integrity": "sha512-SWXFF1CL2RVNMaVs+BBClwtfZSvDgtL//G/smwAc5oVK/UPu2Gu9tIaRgFmYFFKrmg3SyAjSrElf0TiJ1v8fYA==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vite/node_modules/@esbuild/win32-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.21.5.tgz", + "integrity": "sha512-tQd/1efJuzPC6rCFwEvLtci/xNFcTZknmXs98FYDfGE4wP9ClFV98nyKrzJKVPMhdDnjzLhdUyMX4PsQAPjwIw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vite/node_modules/esbuild": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.21.5.tgz", + "integrity": "sha512-mg3OPMV4hXywwpoDxu3Qda5xCKQi+vCTZq8S9J/EpkhB2HzKXq4SNFZE3+NK93JYxc8VMSep+lOUSC/RVKaBqw==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=12" + }, + "optionalDependencies": { + "@esbuild/aix-ppc64": "0.21.5", + "@esbuild/android-arm": "0.21.5", + "@esbuild/android-arm64": "0.21.5", + "@esbuild/android-x64": "0.21.5", + "@esbuild/darwin-arm64": "0.21.5", + "@esbuild/darwin-x64": "0.21.5", + "@esbuild/freebsd-arm64": "0.21.5", + "@esbuild/freebsd-x64": "0.21.5", + "@esbuild/linux-arm": "0.21.5", + "@esbuild/linux-arm64": "0.21.5", + "@esbuild/linux-ia32": "0.21.5", + "@esbuild/linux-loong64": "0.21.5", + "@esbuild/linux-mips64el": "0.21.5", + "@esbuild/linux-ppc64": "0.21.5", + "@esbuild/linux-riscv64": "0.21.5", + "@esbuild/linux-s390x": "0.21.5", + "@esbuild/linux-x64": "0.21.5", + "@esbuild/netbsd-x64": "0.21.5", + "@esbuild/openbsd-x64": "0.21.5", + "@esbuild/sunos-x64": "0.21.5", + "@esbuild/win32-arm64": "0.21.5", + "@esbuild/win32-ia32": "0.21.5", + "@esbuild/win32-x64": "0.21.5" + } + }, + "node_modules/yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "dev": true, + "license": "ISC" + }, + "node_modules/zwitch": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/zwitch/-/zwitch-2.0.4.tgz", + "integrity": "sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + } + } +} diff --git a/apps/presentation/calli-workbench/package.json b/apps/presentation/calli-workbench/package.json new file mode 100644 index 0000000000..c70e886b8c --- /dev/null +++ b/apps/presentation/calli-workbench/package.json @@ -0,0 +1,30 @@ +{ + "name": "@loopx/calli-workbench", + "private": true, + "version": "0.1.0", + "license": "Apache-2.0", + "type": "module", + "scripts": { + "dev": "vite --host 127.0.0.1", + "build": "tsc --noEmit && vite build", + "preview": "vite preview --host 127.0.0.1", + "typecheck": "tsc --noEmit", + "test": "tsx --test test/*.test.ts" + }, + "dependencies": { + "mermaid": "^12.1.0", + "react": "^18.3.1", + "react-dom": "^18.3.1", + "react-markdown": "^9.0.1", + "remark-gfm": "^4.0.0" + }, + "devDependencies": { + "@types/react": "^18.3.12", + "@types/react-dom": "^18.3.1", + "@vitejs/plugin-react": "^4.3.4", + "tsx": "^4.19.0", + "typescript": "^5.6.0", + "vite": "^5.4.11", + "@types/node": "^22.10.0" + } +} diff --git a/apps/presentation/calli-workbench/public/apple-touch-icon.png b/apps/presentation/calli-workbench/public/apple-touch-icon.png new file mode 100644 index 0000000000..830d16f3ad Binary files /dev/null and b/apps/presentation/calli-workbench/public/apple-touch-icon.png differ diff --git a/apps/presentation/calli-workbench/public/calli-icon.png b/apps/presentation/calli-workbench/public/calli-icon.png new file mode 100644 index 0000000000..0a77b1d2c0 Binary files /dev/null and b/apps/presentation/calli-workbench/public/calli-icon.png differ diff --git a/apps/presentation/calli-workbench/public/favicon-32.png b/apps/presentation/calli-workbench/public/favicon-32.png new file mode 100644 index 0000000000..98ca824331 Binary files /dev/null and b/apps/presentation/calli-workbench/public/favicon-32.png differ diff --git a/apps/presentation/calli-workbench/public/favicon.svg b/apps/presentation/calli-workbench/public/favicon.svg new file mode 100644 index 0000000000..6d093d8eeb --- /dev/null +++ b/apps/presentation/calli-workbench/public/favicon.svg @@ -0,0 +1,16 @@ + + + + + + + + + diff --git a/apps/presentation/calli-workbench/public/manifest.webmanifest b/apps/presentation/calli-workbench/public/manifest.webmanifest new file mode 100644 index 0000000000..0a29f9859a --- /dev/null +++ b/apps/presentation/calli-workbench/public/manifest.webmanifest @@ -0,0 +1,20 @@ +{ + "id": "/", + "name": "Calli", + "short_name": "Calli", + "lang": "zh-CN", + "start_url": "/", + "scope": "/", + "display": "standalone", + "display_override": ["window-controls-overlay"], + "background_color": "#fafafa", + "theme_color": "#ffffff", + "icons": [ + { + "src": "/calli-icon.png?v=crab-1", + "sizes": "1024x1024", + "type": "image/png", + "purpose": "any" + } + ] +} diff --git a/apps/presentation/calli-workbench/src/App.tsx b/apps/presentation/calli-workbench/src/App.tsx new file mode 100644 index 0000000000..65844ccac2 --- /dev/null +++ b/apps/presentation/calli-workbench/src/App.tsx @@ -0,0 +1,1701 @@ +import { useCallback, useEffect, useMemo, useRef, useState, type CSSProperties, type KeyboardEvent as ReactKeyboardEvent, type PointerEvent as ReactPointerEvent } from 'react'; +import { + Api, + ApiError, + MAX_QUEUED, + type AgentInfo, + type GoalView, + type ModelOption, + type SearchHit, + type Section, + type SlashCommand, + type Thread, + type Todo, + type WorkdirsConfig, + type WorkMode, +} from './api'; +import { historyPage, mergeHistory, watchHistory } from './history'; +import type { HubAction } from './commands'; +import { buildProjectOptions } from './projects'; +import { useAppearance, useInTitlebar, useIsCompact, useListSwipe, useStoredFlag } from './hooks'; +import { useHosts } from './hosts'; +import type { PreparedImage } from './images'; +import { attentionCount, pageTitle, threadNotices } from './notices'; +import { folderName } from './paths'; +import { ThreadPlace } from './components/ThreadPlace'; +import { PERMISSION_LABELS, startingPermission } from './permissions'; +import { buildTimeline, toMarkdown, turnPreviews, type StoredEvent } from './timeline'; +import { AppearancePanel } from './components/AppearancePanel'; +import { ActionSheet, type SheetTarget } from './components/ActionSheet'; +import { Composer, prefillComposerDraft } from './components/Composer'; +import { DirectoryPicker } from './components/DirectoryPicker'; +import { HostDown, MachinePicker } from './components/Hosts'; +import { Menu } from './components/Menu'; +import { StatusPanel } from './components/StatusPanel'; +import { DeskPage } from './components/DeskPage'; +import { createThreadFeed } from './thread-feed'; +import { clampSidebarWidth, defaultSidebarWidth, projectDir, savedSidebarWidth, SIDEBAR_MAX_WIDTH, SIDEBAR_MIN_WIDTH, type HostSource } from './sidebar'; +import { AgentPicker, effortsForModel, imagesBlocked, imagesNote, modelName, speedsForModel, ModelPicker, PermissionPicker, UsageMeter, WorkspacePicker } from './components/Pickers'; +import { Sidebar, SIDEBAR_SHORTCUT } from './components/Sidebar'; +import { forkBlocked, useThreadActions } from './components/ThreadActions'; +import { ThreadView } from './components/ThreadView'; +import { currentPlan, PlanButton } from './components/PlanPanel'; +import { TurnRuler } from './components/TurnRuler'; +import { NewProjectDialog, ProjectPicker, RootsDialog } from './components/Projects'; +import { Toast, type ToastState } from './components/Toast'; +import { DemoApi, DemoError } from './demo/DemoApi'; +import { IconArrowDown, IconBack, IconClose, IconEdit, IconList, IconMenu, IconMore, IconPalette, IconSidebar, AgentMark, IconLanguage } from './components/icons'; +import { chooseLocale, LOCALES, localeChoice, t } from './i18n'; + +const sleep = (ms: number, signal: AbortSignal) => + new Promise((resolve) => { + const t = setTimeout(resolve, ms); + signal.addEventListener('abort', () => { + clearTimeout(t); + resolve(); + }); + }); + +const message = (e: unknown) => (e instanceof Error ? e.message : String(e)); + + +/** How close to the end of the thread still counts as being at the bottom. */ +const NEAR_BOTTOM_PX = 160; +/** Momentum keeps a list scrolling for a while after the hand that flicked it has lifted. */ +const GESTURE_GRACE_MS = 1500; + +const isNearBottom = (el: HTMLElement) => el.scrollHeight - el.scrollTop - el.clientHeight < NEAR_BOTTOM_PX; + +/** The plan page's address. Threads have none: the main area showing a thread is the plain URL. */ +const DESK_HASH = '#/desk'; + +type MainView = 'thread' | 'desk'; + +/** The page an address opens; null for none (a thread). */ +function viewForHash(hash: string): MainView | null { + return hash === DESK_HASH ? 'desk' : null; +} + +/** Whether the thread list is put away on a wide screen. */ +const SIDEBAR_HIDDEN_KEY = 'calli.sidebar.hidden'; +/** The width a person last dragged the desktop thread list to. */ +const SIDEBAR_WIDTH_KEY = 'calli.sidebar.width'; +const SIDEBAR_KEYBOARD_STEP = 16; + +const QUICK_SWITCH_SIDE = 10; +const QUICK_SWITCH_HOLD_MS = 360; + +function ThreadQuickSwitch({ threads, selectedId, agents, onSelect }: { + threads: Thread[]; + selectedId: string; + agents: AgentInfo[]; + onSelect: (id: string) => void; +}) { + const selectedIndex = threads.findIndex((thread) => thread.id === selectedId); + const items = useMemo(() => selectedIndex < 0 ? [] : threads.slice(Math.max(0, selectedIndex - QUICK_SWITCH_SIDE), Math.min(threads.length, selectedIndex + QUICK_SWITCH_SIDE + 1)), [threads, selectedIndex]); + const root = useRef(null); + const rows = useRef(new Map()); + const panel = useRef(null); + const timer = useRef(null); + const lastY = useRef(0); + const tapOpenAtPointerDown = useRef(false); + const [tapOpen, setTapOpen] = useState(false); + const [press, setPress] = useState<{ pointerId: number; open: boolean; targetId: string } | null>(null); + const agentById = useMemo(() => new Map(agents.map((agent) => [agent.id, agent])), [agents]); + const open = tapOpen || (press?.open ?? false); + const clearTimer = () => { + if (timer.current !== null) window.clearTimeout(timer.current); + timer.current = null; + }; + const targetAt = (y: number) => { + const panelRect = panel.current?.getBoundingClientRect(); + // The floating trigger sits below the list. A hold-and-release without sliding should not + // jump to the nearest row above the finger. + if (!panelRect || y < panelRect.top || y > panelRect.bottom) return selectedId; + const visible = items + .map((thread) => ({ thread, el: rows.current.get(thread.id) })) + .filter((row): row is { thread: Thread; el: HTMLButtonElement } => Boolean(row.el)); + if (!visible.length) return selectedId; + let best = visible[0]; + let bestDistance = Infinity; + for (const row of visible) { + const rect = row.el.getBoundingClientRect(); + if (y >= rect.top && y <= rect.bottom) return row.thread.id; + const distance = Math.abs(y - (rect.top + rect.bottom) / 2); + if (distance < bestDistance) { + best = row; + bestDistance = distance; + } + } + return best.thread.id; + }; + const updateTarget = (y: number) => { + if (!panel.current) return; + setPress((current) => current && current.open ? { ...current, targetId: targetAt(y) } : current); + }; + const reset = (el?: HTMLElement, pointerId?: number) => { + clearTimer(); + if (el && pointerId !== undefined && el.hasPointerCapture(pointerId)) el.releasePointerCapture(pointerId); + setPress(null); + }; + useEffect(() => () => clearTimer(), []); + useEffect(() => { + if (!tapOpen) return; + const onPointerDown = (e: PointerEvent) => { + if (root.current && !root.current.contains(e.target as Node)) setTapOpen(false); + }; + const onKeyDown = (e: KeyboardEvent) => { + if (e.key === 'Escape') setTapOpen(false); + }; + document.addEventListener('pointerdown', onPointerDown, true); + document.addEventListener('keydown', onKeyDown); + return () => { + document.removeEventListener('pointerdown', onPointerDown, true); + document.removeEventListener('keydown', onKeyDown); + }; + }, [tapOpen]); + if (selectedIndex < 0 || items.length <= 1) return null; + return ( +
+ + {open && ( +
+ {items.map((thread) => { + const agent = agentById.get(thread.agent); + const target = press?.open ? press.targetId === thread.id : thread.id === selectedId; + const current = thread.id === selectedId; + const place = thread.scratch ? t('projects.none') : folderName(projectDir(thread).cwd); + return ( + + ); + })} +
+ )} +
+ ); +} + +interface AppProps { + /** The machine on screen: one of the other machines, or null for the local one. */ + hostId?: string | null; + /** Switches machines. The app starts over on the new one, with what the switch was made from still open. */ + onHost?: (id: string | null, start?: AppStart) => void; + start?: AppStart; +} + +/** What is open when the app starts over on another machine: the phone's thread list, or a thread of that machine. */ +export type AppStart = 'list' | { thread: string }; + +export function App({ hostId = null, onHost, start }: AppProps) { + // Looking at another machine, every call is answered by that machine's service. + const { hosts, loaded: hostsLoaded, reload: reloadHosts } = useHosts(false); + const host = hostId ? hosts.find((h) => h.id === hostId) : undefined; + // Until the machines are known, one is taken to be up: asking it is how the page finds out. + const hostUp = !hostId || !hostsLoaded || host?.status === 'online'; + // DATA LAYER PENDING: the fixture-backed DemoApi stands in until the LoopX adapter replaces it. + const api = useMemo(() => new DemoApi(), [hostId, hostUp]); + const demo = api.demo; + + const [agents, setAgents] = useState([]); + const [workdirs, setWorkdirs] = useState([]); + // Each project root and whether it was added from the page; and whether threads can be in no project. + const [roots, setRoots] = useState>([]); + const [scratchAvailable, setScratchAvailable] = useState(false); + // A new thread in no project: the service gives it a scratch folder. + const [draftScratch, setDraftScratch] = useState(false); + const [projectDialog, setProjectDialog] = useState<'new' | 'roots' | null>(null); + const applyWorkdirs = useCallback((c: WorkdirsConfig) => { + setWorkdirs(c.workdirs); + setRoots(c.roots ?? c.workdirs.map((path) => ({ path, removable: false }))); + setScratchAvailable(c.scratch === true); + }, []); + const [threads, setThreads] = useState([]); + /** Whether the list has been read yet: until then an empty one means "not read", not "none". */ + const [threadsKnown, setThreadsKnown] = useState(false); + const [sections, setSections] = useState([]); + const [todos, setTodos] = useState([]); + const [todosLoading, setTodosLoading] = useState(true); + const [todosError, setTodosError] = useState(''); + /** What the main area shows: a thread (or the blank one a new thread starts from) or the desk. */ + const [threadLink, setThreadLink] = useState(() => window.location.hash.startsWith('#/thread/') ? window.location.hash : null); + const [view, setView] = useState(() => viewForHash(window.location.hash) ?? 'thread'); + const [observedAt, setObservedAt] = useState(null); + const threadFeed = useMemo(() => createThreadFeed(api, (list, at) => { + setThreads(list); + setObservedAt(at); + setThreadsKnown(true); + }, () => undefined), [api]); + useEffect(() => { + threadFeed.start(); + return () => threadFeed.dispose(); + }, [threadFeed]); + // Every machine's threads in one list. A display setting, so it stays on as the app starts over + // on another machine; with no other machine there is nothing to merge. + const [allHosts, setAllHosts] = useStoredFlag('calli.sidebar.allHosts'); + const merging = allHosts && hosts.length > 0; + const [elsewhere, setElsewhere] = useState([]); + const hostsRef = useRef(hosts); + hostsRef.current = hosts; + // Which machines there are and whether they answer: the list is read again when that changes. + const hostsKey = hosts.map((h) => `${h.id}:${h.status}`).join('|'); + useEffect(() => { + if (!merging) { setElsewhere([]); return; } + let alive = true; + const targets = [{ id: null as string | null, label: t('hosts.local'), online: true }, ...hostsRef.current.map((h) => ({ id: h.id as string | null, label: h.label, online: h.status === 'online' }))] + .filter((x) => x.id !== hostId); + setElsewhere(targets.map((x): HostSource => ({ hostId: x.id, label: x.label, state: x.online ? 'loading' : 'offline', at: null, threads: [] }))); + const update = (id: string | null, change: (s: HostSource) => HostSource) => setElsewhere((prev) => prev.map((s) => (s.hostId === id ? change(s) : s))); + const read = () => { + for (const x of targets.filter((x) => x.online)) { + new DemoApi().threads().then( + (list) => { if (alive) update(x.id, (s) => ({ ...s, state: 'live', at: new Date().toISOString(), threads: list })); }, + () => { if (alive) update(x.id, (s) => ({ ...s, state: 'failed' })); }, + ); + } + }; + read(); + const timer = setInterval(() => { if (!document.hidden) read(); }, 20_000); + return () => { alive = false; clearInterval(timer); }; + }, [merging, hostId, hostsKey]); + const [todosKey, setTodosKey] = useState(0); + const [selectedId, setSelectedIdState] = useState(typeof start === 'object' ? start.thread : null); + const setSelectedId = useCallback((id: string | null) => setSelectedIdState(id), []); + const [historyTurnIds, setHistoryTurnIds] = useState([]); + const [events, setEvents] = useState([]); + /** The history revision the view holds; an edit names it so a stale page is refused. */ + const [historyRevision, setHistoryRevision] = useState(0); + /** Bumped when an edit replaced the conversation, so the page is read again from its start. */ + const [historyEpoch, setHistoryEpoch] = useState(0); + const [draftAgent, setDraftAgent] = useState(''); + const [draftCwd, setDraftCwd] = useState(''); + // A new thread may start in a git worktree of its directory; offered only when the directory is in a repository. + const [draftWorktree, setDraftWorktree] = useState(false); + const [worktreeOffer, setWorktreeOffer] = useState<{ cwd: string; branch: string | null; changes: number } | null>(null); + const [draftSectionId, setDraftSectionId] = useState(null); + const [draftWorkMode, setDraftWorkMode] = useState('execute'); + const [modeBusy, setModeBusy] = useState(false); + const [draftPermission, setDraftPermission] = useState('auto_edit'); + const [draftModel, setDraftModel] = useState(null); + const [draftEffort, setDraftEffort] = useState(null); + const [draftSpeed, setDraftSpeed] = useState(null); + const [modelsByAgent, setModelsByAgent] = useState>({}); + const modelVersions = useRef>({}); + const [commandsByKey, setCommandsByKey] = useState>({}); + const [drawer, setDrawer] = useState(start === 'list'); + const [chosenSidebarWidth, setSidebarWidth] = useState(() => { + try { + return savedSidebarWidth(window.localStorage.getItem(SIDEBAR_WIDTH_KEY)); + } catch { + return null; + } + }); + // Without a dragged width the list follows the window. The state changes only when the width it + // gives does, so resizing the window does not render the app on every frame. + const [fittedSidebarWidth, setFittedSidebarWidth] = useState(() => defaultSidebarWidth(window.innerWidth)); + useEffect(() => { + if (chosenSidebarWidth !== null) return; + const fit = () => setFittedSidebarWidth(defaultSidebarWidth(window.innerWidth)); + window.addEventListener('resize', fit); + return () => window.removeEventListener('resize', fit); + }, [chosenSidebarWidth]); + const sidebarWidth = chosenSidebarWidth ?? fittedSidebarWidth; + const [sidebarDrag, setSidebarDrag] = useState<{ pointerId: number; startX: number; startWidth: number } | null>(null); + const rememberSidebarWidth = useCallback((width: number) => { + try { + window.localStorage.setItem(SIDEBAR_WIDTH_KEY, String(width)); + } catch { + // The resize still applies for this page when storage is unavailable. + } + }, []); + const startSidebarResize = useCallback((e: ReactPointerEvent) => { + if (e.button !== 0) return; + e.preventDefault(); + e.currentTarget.setPointerCapture(e.pointerId); + setSidebarDrag({ pointerId: e.pointerId, startX: e.clientX, startWidth: sidebarWidth }); + }, [sidebarWidth]); + const moveSidebarResize = useCallback((e: ReactPointerEvent) => { + if (!sidebarDrag || e.pointerId !== sidebarDrag.pointerId) return; + e.preventDefault(); + setSidebarWidth(clampSidebarWidth(sidebarDrag.startWidth + e.clientX - sidebarDrag.startX)); + }, [sidebarDrag]); + const finishSidebarResize = useCallback((e: ReactPointerEvent) => { + if (!sidebarDrag || e.pointerId !== sidebarDrag.pointerId) return; + const width = clampSidebarWidth(sidebarDrag.startWidth + e.clientX - sidebarDrag.startX); + setSidebarWidth(width); + rememberSidebarWidth(width); + setSidebarDrag(null); + if (e.currentTarget.hasPointerCapture(e.pointerId)) e.currentTarget.releasePointerCapture(e.pointerId); + }, [rememberSidebarWidth, sidebarDrag]); + const cancelSidebarResize = useCallback((e: ReactPointerEvent) => { + if (!sidebarDrag || e.pointerId !== sidebarDrag.pointerId) return; + rememberSidebarWidth(sidebarWidth); + setSidebarDrag(null); + if (e.currentTarget.hasPointerCapture(e.pointerId)) e.currentTarget.releasePointerCapture(e.pointerId); + }, [rememberSidebarWidth, sidebarDrag, sidebarWidth]); + const resizeSidebarFromKey = useCallback((e: ReactKeyboardEvent) => { + const next = e.key === 'ArrowLeft' ? sidebarWidth - SIDEBAR_KEYBOARD_STEP + : e.key === 'ArrowRight' ? sidebarWidth + SIDEBAR_KEYBOARD_STEP + : e.key === 'Home' ? SIDEBAR_MIN_WIDTH + : e.key === 'End' ? SIDEBAR_MAX_WIDTH + : null; + if (next === null) return; + e.preventDefault(); + const width = clampSidebarWidth(next); + setSidebarWidth(width); + rememberSidebarWidth(width); + }, [rememberSidebarWidth, sidebarWidth]); + // On a wide screen the list can be put away for room, like Codex; remembered on this device. + const [sidebarHidden, setSidebarHidden] = useState(() => { + try { + return window.localStorage.getItem(SIDEBAR_HIDDEN_KEY) === '1'; + } catch { + return false; + } + }); + const toggleSidebar = useCallback(() => { + setSidebarHidden((hidden) => { + try { + window.localStorage.setItem(SIDEBAR_HIDDEN_KEY, hidden ? '0' : '1'); + } catch { + // Not remembered, still toggled. + } + return !hidden; + }); + }, []); + // On a phone the thread list is a page of its own; `drawer` slides the conversation off to show it. + const compact = useIsCompact(); + // The installed app draws into the window's title bar (see the stylesheet): that row is one band + // of the list's colour, as in Codex, and the theme colour, which the window paints behind its own + // buttons there, says the same. + const inTitlebar = useInTitlebar() && !compact; + // ⇧⌘S (Ctrl+Shift+S elsewhere), Codex's key for it. Only where there is a sidebar to put away. + useEffect(() => { + if (compact) return; + const onKey = (e: KeyboardEvent) => { + if (e.code === 'KeyS' && e.shiftKey && (e.metaKey || e.ctrlKey) && !e.altKey) { + e.preventDefault(); + toggleSidebar(); + } + }; + window.addEventListener('keydown', onKey); + return () => window.removeEventListener('keydown', onKey); + }, [compact, toggleSidebar]); + const listOpen = drawer && compact; + useListSwipe(compact, listOpen, setDrawer); + /** Where the settings menu opened from, while it is open. */ + const [settingsAt, setSettingsAt] = useState<{ x: number; y: number } | null>(null); + const [appearance, setAppearance, theme] = useAppearance(); + const [appearanceOpen, setAppearanceOpen] = useState(false); + // An error belongs to the thread (or new-thread page) it happened in, so other threads stay clean. + // The closure keeps the thread that was open when the failing request started. + const [errorState, setErrorState] = useState<{ text: string; thread: string | null } | null>(null); + const setError = (text: string | null) => setErrorState(text ? { text, thread: selectedId } : null); + const error = errorState && errorState.thread === selectedId ? errorState.text : null; + const [toast, setToast] = useState(null); + const [showDirPicker, setShowDirPicker] = useState(false); + const [statusOpen, setStatusOpen] = useState(false); + // Counters that open the composer's pickers from elsewhere (the slash menu). + const [permissionSignal, setPermissionSignal] = useState(0); + const [modelSignal, setModelSignal] = useState(0); + const [atBottom, setAtBottom] = useState(true); + // The thread has turns older than the ones loaded; they are fetched a page at a time. + const [hasOlder, setHasOlder] = useState(false); + const [loadingOlder, setLoadingOlder] = useState(false); + // The first page of the open thread is still on its way. + const [eventsLoading, setEventsLoading] = useState(false); + // Text handed back to the composer: messages that were waiting when the user pressed stop. + const [restore, setRestore] = useState<{ text: string; nonce: number } | null>(null); + const composerDraftKey = hostId ? `host:${hostId}:${selectedId ?? 'new'}` : selectedId ?? 'new'; + const [pageHidden, setPageHidden] = useState(() => document.hidden); + const baseTitle = useRef(document.title); + const seenThreads = useRef(null); + + const timeline = useMemo(() => buildTimeline(events), [events]); + const turnPreviewMap = useMemo(() => turnPreviews(timeline.items), [timeline.items]); + // The newest turn's plan sits in the top bar, so the conversation does not show it twice. + const topPlan = useMemo(() => currentPlan(timeline.items), [timeline.items]); + const threadItems = useMemo(() => topPlan ? timeline.items.filter((item) => item !== topPlan) : timeline.items, [timeline.items, topPlan]); + /** The thread's native goal. Live events say it when they can; otherwise what the service last said. */ + const [goalFetched, setGoalFetched] = useState(null); + const goalView = useMemo(() => { + for (let i = events.length - 1; i >= 0; i--) { + if (events[i].type === 'goal.updated') return (events[i].data.goal as GoalView | null) ?? null; + } + return goalFetched; + }, [events, goalFetched]); + const rulerTurnIds = useMemo(() => [...new Set([...historyTurnIds, ...turnPreviewMap.keys()])], [historyTurnIds, turnPreviewMap]); + // What the user last sent here, for a box that was reloaded mid-send to learn that its message arrived. + const lastSent = useMemo(() => { + for (let i = timeline.items.length - 1; i >= 0; i--) { + const item = timeline.items[i]; + if (item.kind === 'user') return { turnId: item.turnId, text: item.text }; + } + return null; + }, [timeline.items]); + const selected = threads.find((t) => t.id === selectedId) ?? null; + const onDesk = view === 'desk' && !selectedId; + /** The name of the page the main area shows instead of a thread, for the top bar; null on a thread. */ + const viewTitle = onDesk ? t('desk.title') : null; + const onPage = viewTitle !== null; + + // The address follows what the main area shows. Replaced, not pushed: going between the pages and + // threads is not a trail for the back button to walk. + useEffect(() => { + if (threadLink) return; + const want = onDesk ? DESK_HASH : ''; + if (window.location.hash !== want) { + window.history.replaceState(window.history.state, '', want || window.location.pathname + window.location.search); + } + }, [onDesk, threadLink]); + + // Whether the directory a new thread would start in is a git repository. Asked once per directory picked. + useEffect(() => { + if (!api || !draftCwd || selectedId) return; + let stale = false; + api + .worktreeOptions(draftCwd) + .then((o) => { + if (!stale) setWorktreeOffer(o.available ? { cwd: draftCwd, branch: o.branch ?? null, changes: o.changes ?? 0 } : null); + }) + .catch(() => !stale && setWorktreeOffer(null)); + return () => { + stale = true; + }; + }, [api, draftCwd, selectedId]); + const offer = worktreeOffer?.cwd === draftCwd ? worktreeOffer : null; + // Projects for a new thread: where threads went lately, newest first, then roots not used yet. + const projectOptions = useMemo(() => buildProjectOptions(threads, workdirs, draftCwd), [threads, workdirs, draftCwd]); + + // An address typed or followed while the page is open. + useEffect(() => { + const onHash = () => { + const hash = window.location.hash; + if (hash.startsWith('#/thread/')) { setThreadLink(hash); return; } + setThreadLink(null); + const next = viewForHash(hash); + if (!next) return; + setSelectedId(null); + setView(next); + setDrawer(false); + }; + window.addEventListener('hashchange', onHash); + return () => window.removeEventListener('hashchange', onHash); + }, []); + + // Both spellings of the thread's directory; kept stable so the thread view is not re-rendered for nothing. + const threadRoots = useMemo(() => (selected ? [selected.cwd, selected.cwdReal] : []), [selected?.cwd, selected?.cwdReal]); + const running = timeline.running || selected?.status === 'running'; + + // A plan the user chose to leave be, by thread: the proposal's key, kept for this page only. + const [planSkip, setPlanSkip] = useState<{ threadId: string; key: string } | null>(null); + + // What is waiting for the user right now: the earliest of a pending question, a pending approval, + // or the last finished plan nothing has been said after. The bottom sheet asks about it in the + // composer's place. + const waiting = useMemo(() => { + const candidates: Array<{ order: number; target: SheetTarget }> = []; + timeline.items.forEach((it, order) => { + if (it.kind === 'approval' && it.decision === null) candidates.push({ order, target: { kind: 'approval', item: it } }); + else if (it.kind === 'input' && it.answer === null) candidates.push({ order, target: { kind: it.inputKind === 'plan' ? 'plan-approval' : 'question', item: it } }); + }); + if (!timeline.running) { + for (let i = timeline.items.length - 1; i >= 0; i--) { + const it = timeline.items[i]; + if (it.kind === 'user') break; + if (it.kind === 'proposal' && it.done) { + if (!(planSkip && planSkip.threadId === selectedId && planSkip.key === it.key)) candidates.push({ order: i, target: { kind: 'hub-plan', item: it } }); + break; + } + } + } + candidates.sort((a, b) => a.order - b.order); + return candidates; + }, [timeline, planSkip, selectedId]); + const waitingOn = waiting[0] ?? null; + + const listedThreads = threads; + + const scrollerRef = useRef(null); + const mainRef = useRef(null); + const stickToBottom = useRef(true); + // The thread on screen, for answers that arrive after the user has moved on. + const shownThread = useRef(null); + shownThread.current = selectedId; + // Whether the user has a hand on the scroller, and when they last did. + const gesture = useRef({ held: false, at: 0 }); + + const handleError = (e: unknown) => { + // Doing something the read-only workbench cannot do is refused, not reported as a failure. + if (e instanceof DemoError) { + if (e.write) setToast({ message: t('app.connectToSend') }); + } + // A machine that dropped is explained in the main area; the machines are asked at once how they are. + else if (e instanceof ApiError && e.details.code === 'host_offline') void reloadHosts(); + else setError(message(e)); + }; + + const refreshThreads = () => threadFeed.read().catch(() => undefined); + const todosRequest = useRef(0); + const reloadTodos = useCallback(async () => { + const request = ++todosRequest.current; + try { + const value = await api.todos(); + if (request === todosRequest.current) { setTodos(value); setTodosError(''); } + } catch (e) { if (request === todosRequest.current) setTodosError(String(e)); } + finally { if (request === todosRequest.current) setTodosLoading(false); } + }, [api]); + useEffect(() => { + setTodosLoading(true); setTodosError(''); setTodos([]); void reloadTodos(); + return () => { todosRequest.current++; }; + }, [reloadTodos]); + const dismissToast = useCallback(() => setToast(null), []); + + // Initial data. + useEffect(() => { + let cancelled = false; + (async () => { + try { + const [a, c, , s] = await Promise.all([ + api.agents(), + api.workdirs(), + threadFeed.read(), + api.sections(), + ]); + if (cancelled) return; + setAgents(a); + applyWorkdirs(c); + setSections(s); + setDraftCwd((cur) => cur || c.workdirs[0] || ''); + const first = a.find((x) => x.available && !x.hidden); + setDraftAgent(first?.id ?? ''); + if (first) setDraftPermission(startingPermission(first.capabilities)); + } catch (e) { + if (!cancelled) handleError(e); + } + })(); + return () => { + cancelled = true; + }; + // handleError only touches state setters, so it is stable enough to leave out. + // eslint-disable-next-line react-hooks/exhaustive-deps + }, [api]); + + // Thread-list changes, pushed by the service. Refresh is debounced. + useEffect(() => { + threadFeed.stream(false); + const ctrl = new AbortController(); + let timer: ReturnType | undefined; + const refresh = () => { + clearTimeout(timer); + timer = setTimeout(() => { + void threadFeed.read().catch(() => undefined); + // Plan chips show thread states; a bumped key reloads the open page. + setTodosKey((k) => k + 1); + }, 150); + }; + (async () => { + for (let attempt = 0; !ctrl.signal.aborted; attempt++) { + // Whatever changed while the stream was down was never announced on it. + if (attempt > 0) refresh(); + try { + await api.stream( + '/api/stream', + (ev) => { + if (ev.type === 'agent.modelsChanged') { + const { agent, models } = ev.data as { agent: string; models: ModelOption[] }; + modelVersions.current[agent] = (modelVersions.current[agent] ?? 0) + 1; + setModelsByAgent(previous => ({ ...previous, [agent]: models })); + } else refresh(); + }, + ctrl.signal, + undefined, + () => threadFeed.stream(true), + ); + } catch { + // On another machine, a stream that will not open is how its dropping first shows. + if (api.host && !ctrl.signal.aborted) void reloadHosts(); + } + // The demo has no service; anywhere else, a stream that ended is being retried. + if (!ctrl.signal.aborted) threadFeed.stream(false); + await sleep(2000, ctrl.signal); + } + })(); + return () => { + ctrl.abort(); + clearTimeout(timer); + }; + // eslint-disable-next-line react-hooks/exhaustive-deps + }, [api]); + + const historyCursor = useRef(null); + const olderRequest = useRef(null); + // The card reads the goal from events once they arrive; this covers goals older than the page. + useEffect(() => { + setGoalFetched(null); + if (!api || !selectedId) return; + let active = true; + api.threadGoal(selectedId).then(value => { if (active) setGoalFetched(value.goal); }).catch(() => undefined); + return () => { active = false; }; + }, [api, selectedId, historyEpoch]); + useEffect(() => { + setEvents([]); setHistoryTurnIds([]); setHasOlder(false); setLoadingOlder(false); + setEventsLoading(Boolean(api && selectedId)); historyCursor.current = null; olderRequest.current = null; + if (!api || !selectedId) return; + const ctrl = new AbortController(); + stickToBottom.current = true; setAtBottom(true); + void watchHistory(api, selectedId, ctrl.signal, { + page: page => { + setEvents(page.events); setHistoryTurnIds(page.turnIds ?? []); setEventsLoading(false); + setHistoryRevision(page.snapshotSeq); + historyCursor.current = page.nextCursor; setHasOlder(page.hasOlder); + }, + events: batch => { + // An edit replaced the conversation behind this page: read the current one from the start. + if (batch.some((ev) => ev.type === 'thread.historyChanged')) { + stickToBottom.current = true; + setHistoryEpoch((n) => n + 1); + return; + } + // Everything the page has seen is part of the history it may edit against. + setHistoryRevision((revision) => batch.reduce((latest, ev) => Math.max(latest, ev.seq), revision)); + setEvents(previous => mergeHistory(previous, batch)); + }, + error: error => { setEventsLoading(false); handleError(error); }, + }); + return () => ctrl.abort(); + // eslint-disable-next-line react-hooks/exhaustive-deps + }, [api, selectedId, historyEpoch]); + + /** Prepends the page of turns before the loaded ones, keeping the scroll position on the same content. */ + const loadOlder = async () => { + const id = selectedId; + const first = historyCursor.current ?? 0; + if (!api || !id || loadingOlder || olderRequest.current || first <= 1) return; + const request = {}; olderRequest.current = request; + setLoadingOlder(true); + try { + const page = await historyPage(api, id, first); + const older = page.events; + // The answer is for the thread that asked; another one may be open by now. + if (shownThread.current !== id || olderRequest.current !== request) return; + setHasOlder(page.hasOlder); historyCursor.current = page.nextCursor; + const el = scrollerRef.current; + const fromBottom = el ? el.scrollHeight - el.scrollTop : 0; + setEvents((prev) => mergeHistory(older, prev)); + // New content lands above the viewport; stay on the same row while it inserts. + requestAnimationFrame(() => { + if (el && !stickToBottom.current && !jump) el.scrollTop = el.scrollHeight - fromBottom; + }); + } catch (e) { + if (olderRequest.current === request) { setJump(null); handleError(e); } + } finally { + if (olderRequest.current === request) { olderRequest.current = null; setLoadingOlder(false); } + } + }; + + // Keep the view pinned to the bottom while the user has not scrolled up. + useEffect(() => { + const el = scrollerRef.current; + if (el && stickToBottom.current) el.scrollTop = el.scrollHeight; + }, [events]); + + // Screenshots and slow-rendering blocks grow the thread after the scroll above, which used to + // leave a reopened thread parked at the top. Watching the thread's height keeps it pinned. The + // scroller is watched too: a phone keyboard shrinks it and would hide the newest lines. + useEffect(() => { + const el = scrollerRef.current; + const content = el?.querySelector('.merged-history, .thread'); + if (!el || !content) return; + const ro = new ResizeObserver(() => { + if (stickToBottom.current) el.scrollTop = el.scrollHeight; + // Growth below an unpinned view moves nothing, so no scroll event reports that the view + // has fallen behind; the jump button has to learn it here. + else setAtBottom(isNearBottom(el)); + }); + ro.observe(content); + ro.observe(el); + return () => ro.disconnect(); + }, [selectedId]); + + // A phone keyboard does not resize the page: it covers the bottom of it, and the browser pans + // what is left (the visual viewport) over the page to keep the focused field in sight. So the + // app is drawn exactly where the visual viewport is: its height, and its offset down the page. + // Following the height alone is not enough. Safari pans to the field before the app has shrunk, + // and stays panned: the app, still at the top of the page, shows only its lower part at the top + // of the screen, with bare page under it down to the keyboard. + // Pinch zoom moves and shrinks the visual viewport too, and that is not the keyboard. + // + // This is the one keyboard mechanism: never add interactive-widget=resizes-content to the + // viewport meta as well, or where it is honoured the keyboard is taken off twice. + useEffect(() => { + const vv = window.visualViewport; + if (!vv) return; + const apply = () => { + if (Math.abs(vv.scale - 1) >= 0.01) return; + const root = document.documentElement.style; + root.setProperty('--vvh', `${vv.height}px`); + root.setProperty('--vvt', `${vv.pageTop}px`); + // With the keyboard up the home indicator is under it, so the bottom inset is no space to + // keep clear: kept, it shows as a band between the composer and the keyboard. + if (document.documentElement.clientHeight - vv.height > 120) root.setProperty('--safe-bottom', '0px'); + else root.removeProperty('--safe-bottom'); + }; + apply(); + vv.addEventListener('resize', apply); + vv.addEventListener('scroll', apply); + // The closing keyboard's last report can be lost: the pan-back can land without a final + // scroll event, and a keyboard closed while the page was hidden (app switch, lock, another + // tab) reports nothing at all. The app then stays drawn shrunk and panned, and the edge + // colour below fills most of the screen. Re-read the viewport when focus leaves a field + // and when the page comes back, and keep re-reading briefly, past the close animation. + const timers: number[] = []; + const settle = () => { + timers.forEach((t) => clearTimeout(t)); + timers.length = 0; + for (const ms of [0, 250, 700]) timers.push(window.setTimeout(apply, ms)); + }; + const onVisible = () => { if (!document.hidden) settle(); }; + document.addEventListener('focusout', settle); + document.addEventListener('visibilitychange', onVisible); + window.addEventListener('pageshow', settle); + window.addEventListener('orientationchange', settle); + return () => { + timers.forEach((t) => clearTimeout(t)); + vv.removeEventListener('resize', apply); + vv.removeEventListener('scroll', apply); + document.removeEventListener('focusout', settle); + document.removeEventListener('visibilitychange', onVisible); + window.removeEventListener('pageshow', settle); + window.removeEventListener('orientationchange', settle); + }; + }, []); + + // What a phone paints behind its status bar follows the page: the theme colour on older + // systems, the page background on newer ones. With the list open the top of the screen is the + // list, so both say the list's colour; otherwise a band of the wrong shade sits above it. + useEffect(() => { + const root = document.documentElement; + root.classList.toggle('list-open', listOpen); + root.classList.toggle('in-titlebar', inTitlebar); + // The keyboard belongs to the conversation; it goes down when the conversation moves aside. + if (listOpen && document.activeElement instanceof HTMLElement) document.activeElement.blur(); + // Read again whenever the look changes: by then the new palette is on the page. + const colour = getComputedStyle(root).getPropertyValue(listOpen || inTitlebar ? '--sidebar' : '--bg').trim(); + if (colour) document.querySelector('meta[name="theme-color"]')?.setAttribute('content', colour); + }, [listOpen, inTitlebar, theme, appearance.palette]); + + // A scroll hands the position over to the user only when their hand caused it. Scroll events + // also come from the pin itself, from the keyboard resizing the page and from content changing + // height, and none of those may unpin the view. A gesture that scrolls nothing here (a sideways + // swipe over a code block) unpins nothing either. Scrolling back near the bottom pins again. + const gestureProps = { + onWheel: () => void (gesture.current.at = Date.now()), + onTouchMove: () => void (gesture.current.at = Date.now()), + onTouchEnd: () => void (gesture.current.at = Date.now()), + onKeyDown: () => void (gesture.current.at = Date.now()), + onPointerDown: () => void (gesture.current = { held: true, at: Date.now() }), + onPointerUp: () => void (gesture.current = { held: false, at: Date.now() }), + onPointerCancel: () => void (gesture.current = { held: false, at: Date.now() }), + }; + + const onScroll = () => { + const el = scrollerRef.current; + if (!el) return; + const near = isNearBottom(el); + const byHand = gesture.current.held || Date.now() - gesture.current.at < GESTURE_GRACE_MS; + if (near) stickToBottom.current = true; + else if (byHand) stickToBottom.current = false; + setAtBottom(near); + }; + + // The turn a search led to: shown once it is on the page, which for an old turn means fetching back to it. + const [jump, setJump] = useState<{ threadId: string; turnId: string } | null>(null); + useEffect(() => { + if (!jump || jump.threadId !== selectedId || eventsLoading) return; + const scope = scrollerRef.current?.querySelector(`[data-history-thread="${CSS.escape(jump.threadId)}"]`) ?? scrollerRef.current; + const row = scope?.querySelector(`[data-turn="${CSS.escape(jump.turnId)}"]`); + if (row) { + stickToBottom.current = false; + setAtBottom(false); + row.scrollIntoView({ block: 'start' }); + row.classList.add('found'); + setTimeout(() => row.classList.remove('found'), 2200); + setJump(null); + return; + } + // Loaded but not drawn yet: the next render has it. + if (events.some((e) => e.threadId === jump.threadId && e.turnId === jump.turnId)) return; + // A thread opens at its end; an old turn is pages back, fetched until it is there. + if (events.length === 0 || events[0].threadId !== jump.threadId) return; + stickToBottom.current = false; + if (hasOlder) { if (!loadingOlder) void loadOlder(); } + else setJump(null); + // eslint-disable-next-line react-hooks/exhaustive-deps + }, [jump, selectedId, events, hasOlder, loadingOlder, eventsLoading]); + + const jumpToBottom = () => { + const el = scrollerRef.current; + if (!el) return; + stickToBottom.current = true; + setAtBottom(true); + el.scrollTo({ top: el.scrollHeight, behavior: 'smooth' }); + }; + + // The agent and directory the composer is talking to: the thread's, or the draft's for a new thread. + const activeAgent = selected?.agent ?? draftAgent; + const activeCwd = selected?.cwd ?? draftCwd; + const commandsKey = `${activeAgent}\n${activeCwd}`; + const lastFocusModelRefresh = useRef<{ agent: string; at: number } | null>(null); + const refreshActiveModels = useCallback((force = false) => { + if (!api || !activeAgent || document.hidden) return; + const now = Date.now(); + if (!force && lastFocusModelRefresh.current?.agent === activeAgent && now - lastFocusModelRefresh.current.at < 1000) return; + lastFocusModelRefresh.current = { agent: activeAgent, at: now }; + const version = modelVersions.current[activeAgent] ?? 0; + void api + .models(activeAgent) + .then((list) => { + if ((modelVersions.current[activeAgent] ?? 0) === version) setModelsByAgent(prev => ({ ...prev, [activeAgent]: list })); + }) + .catch(() => undefined); + }, [api, activeAgent]); + + // Models for that agent, loaded once per agent. + useEffect(() => { + if (!api || !activeAgent || modelsByAgent[activeAgent]) return; + const version = modelVersions.current[activeAgent] ?? 0; + api + .models(activeAgent) + .then((list) => { + if ((modelVersions.current[activeAgent] ?? 0) === version) setModelsByAgent(prev => ({ ...prev, [activeAgent]: list })); + }) + .catch(handleError); + // eslint-disable-next-line react-hooks/exhaustive-deps + }, [api, activeAgent]); + + // Model load is a live hint; refresh when the user comes back to the page. + useEffect(() => { + const onFocus = () => refreshActiveModels(); + const onVisible = () => { if (!document.hidden) refreshActiveModels(); }; + window.addEventListener('focus', onFocus); + document.addEventListener('visibilitychange', onVisible); + return () => { + window.removeEventListener('focus', onFocus); + document.removeEventListener('visibilitychange', onVisible); + }; + }, [refreshActiveModels]); + + // Slash commands depend on the directory (projects add their own). Claude only announces them + // once a session has started, so the list is re-read whenever a turn finishes as well. + // Load an initial list even during a turn, so a freshly opened page can offer queued commands. + useEffect(() => { + if (!api || !activeAgent || (running && commandsByKey[commandsKey])) return; + api + .commands(activeAgent, activeCwd || undefined) + .then((list) => setCommandsByKey((prev) => ({ ...prev, [commandsKey]: list }))) + .catch(() => undefined); + // eslint-disable-next-line react-hooks/exhaustive-deps + }, [api, commandsKey, running]); + + const loadImage = useCallback( + (attachmentId: string) => { + if (!api || !selectedId) return Promise.reject(new Error('no thread')); + return api.attachment(selectedId, attachmentId); + }, + [api, selectedId], + ); + + const loadFile = useCallback( + (path: string) => { + if (!api || !selectedId) return Promise.reject(new Error('no thread')); + return api.threadFile(selectedId, path); + }, + [api, selectedId], + ); + + useEffect(() => { + const onVisibility = () => setPageHidden(document.hidden); + document.addEventListener('visibilitychange', onVisibility); + return () => document.removeEventListener('visibilitychange', onVisibility); + }, []); + + // The thread on screen is being read. With the page in the background, nothing is. + const viewingId = pageHidden ? null : selectedId; + + // Say so when something happens in a thread that is not on screen, and keep a count in the tab title. + useEffect(() => { + const before = seenThreads.current; + seenThreads.current = threads; + document.title = pageTitle(baseTitle.current, attentionCount(threads, viewingId)); + if (!before) return; + const notice = threadNotices(before, threads, viewingId).at(-1); + if (notice) { + setToast({ + message: notice.message, + action: { + label: notice.action, + run: () => { + setSelectedId(notice.threadId); + setDrawer(false); + }, + }, + }); + } + }, [threads, viewingId]); + + // Looking at a thread marks it read, on every device. + const selectedUnread = Boolean(selected?.unread); + useEffect(() => { + if (!api || !selectedId || !selectedUnread || pageHidden) return; + api + .updateThread(selectedId, { unread: false }) + .then((updated) => setThreads((prev) => prev.map((t) => (t.id === updated.id ? updated : t)))) + .catch(() => undefined); + }, [api, selectedId, selectedUnread, pageHidden]); + + /** Shows a thread that was just made here: forked, or brought back from the archive. */ + const openThread = (thread: Thread, draft?: string) => { + if (draft !== undefined) prefillComposerDraft(hostId ? `host:${hostId}:${thread.id}` : thread.id, draft); + setThreads((prev) => [thread, ...prev.filter((t) => t.id !== thread.id)]); + setSelectedId(thread.id); + setView('thread'); + setDrawer(false); + void refreshThreads(); // the service decides the order + }; + + const threadActions = useThreadActions({ + api, + agents, + sections, + todos, + onTodosChange: reloadTodos, + onThreadOpen: openThread, + onMarkedUnread: (thread) => { + if (thread.id === selectedId) setSelectedId(null); + }, + onThreadChange: (updated) => { + setThreads((prev) => { + if (updated.archivedAt) return prev.filter((t) => t.id !== updated.id); + return prev.some((t) => t.id === updated.id) ? prev.map((t) => (t.id === updated.id ? updated : t)) : [updated, ...prev]; + }); + if (updated.archivedAt && selectedId === updated.id) setSelectedId(null); + void refreshThreads(); // the service decides the order + }, + onThreadRemove: (id) => { + setThreads((prev) => prev.filter((t) => t.id !== id)); + if (selectedId === id) setSelectedId(null); + }, + onSectionsChange: () => { + api?.sections().then(setSections).catch(handleError); + void refreshThreads(); + }, + onError: handleError, + toast: setToast, + // The open thread is already in memory; copying it straight away keeps the browser's + // "this came from a click" window, which the plain-http copy fallback depends on. + // Only when all of it is: a long thread has older turns that were never loaded, and the copy + // must not stop where the screen does. + markdownOf: async (thread) => { + if (thread.id === selectedId && !hasOlder) return toMarkdown(thread.title, timeline.items); + if (!api) return ''; + return toMarkdown(thread.title, buildTimeline(await api.allEvents(thread.id)).items); + }, + }); + + // A new thread is created by its first message. + const createDraftThread = async (isNewThread: boolean) => { + const t = await api.createThread({ + agent: draftAgent, + cwd: draftCwd, + permissionMode: draftPermission, + workMode: draftWorkMode, + model: draftModel, + effort: draftEffort, + speed: draftSpeed, + ...(draftSectionId && isNewThread ? { sectionId: draftSectionId } : {}), + ...(draftScratch ? { scratch: true } : draftWorktree && offer ? { worktree: true } : {}), + }); + const id = t.id; + setSelectedId(id); + setDraftSectionId(null); + // Every worktree is a new branch; the next thread starts in place unless asked again. + setDraftWorktree(false); + return id; + }; + + const send = async (text: string, images: PreparedImage[]) => { + setError(null); + try { + let id = selectedId; + if (!id) id = await createDraftThread(true); + stickToBottom.current = true; + // "queue" only matters while a turn is running: then the message waits instead of being refused. + await api.startTurn( + id, + text, + images.map(({ data, mimeType }) => ({ data, mimeType })), + { queue: true }, + ); + void refreshThreads(); + } catch (e) { + // The composer keeps the draft. + handleError(e); + throw e; + } + }; + + // Stopping means stopping: messages that were waiting are not sent. Their text goes back in the box. + const stop = () => { + if (!selectedId) return; + api + .cancel(selectedId) + .then(({ dropped }) => { + if (dropped.length) setRestore({ text: dropped.join('\n\n'), nonce: Date.now() }); + }) + .catch(handleError); + }; + + const removeQueued = (queuedId: string) => { + if (selectedId) api.removeQueued(selectedId, queuedId).then(refreshThreads).catch(handleError); + }; + + const editQueued = async (queuedId: string) => { + if (!selectedId) throw new Error(t('composer.noThread')); + const taken = await api.removeQueued(selectedId, queuedId); + refreshThreads(); + return taken; + }; + + const sendQueuedNow = (queuedId: string) => { + if (selectedId) api.sendQueuedNow(selectedId, queuedId).then(refreshThreads).catch(handleError); + }; + + const decide = (approvalId: string, optionId: string | null) => { + const body = optionId === null ? { cancel: true as const } : { optionId }; + api.decide(approvalId, body).catch(handleError); + }; + + const pick = (id: string) => { + setSelectedId(id); + setDrawer(false); + }; + + // The desk takes the place of a thread, so no thread is open while it is. + const openDesk = () => { + setSelectedId(null); setView('desk'); setDrawer(false); + }; + + const newThread = (opts: { cwd?: string; sectionId?: string | null; scratch?: boolean } = {}) => { + setSelectedId(null); + setView('thread'); + setDrawer(false); + if (opts.cwd !== undefined) { + setDraftCwd(opts.cwd); + setDraftScratch(false); + } + if (opts.scratch) setDraftScratch(true); + setDraftSectionId(opts.sectionId ?? null); + }; + + // A turn a search found: its thread is opened and the conversation is brought to that turn. An + // archived thread comes back out of the archive, as it does when opened from anywhere else. + const openHit = async (hit: SearchHit) => { + if (!api) return; + try { + let thread = threads.find((t) => t.id === hit.threadId) ?? (await api.thread(hit.threadId)); + if (thread.archivedAt) { + thread = await api.updateThread(hit.threadId, { archived: false }); + setToast({ message: t('app.unarchived') }); + } + openThread(thread); + setJump({ threadId: hit.threadId, turnId: hit.turnId }); + } catch (e) { + handleError(e); + } + }; + + useEffect(() => { + if (!threadLink) return; + if (hostId) { onHost?.(null); return; } + let active = true; + let id: string; + try { id = decodeURIComponent(threadLink.slice('#/thread/'.length)); } + catch { id = ''; } + void api.thread(id).then(async thread => { + if (!active) return; + if (thread.archivedAt) thread = await api.updateThread(id, { archived: false }); + if (active) openThread(thread); + }).catch(() => { + if (active) setToast({ message: t('app.threadNotFound') }); + }).finally(() => { + if (active) { + setThreadLink(null); + window.history.replaceState(window.history.state, '', window.location.pathname + window.location.search); + } + }); + return () => { active = false; }; + }, [api, hostId, threadLink]); + + const agentLabel = (id: string) => agents.find((a) => a.id === id)?.label ?? id; + const capsOf = (id: string) => agents.find((a) => a.id === id)?.capabilities; + const activeCaps = capsOf(activeAgent); + const models = modelsByAgent[activeAgent] ?? []; + const permissionModes = activeCaps?.permissionModes ?? []; + const effortLevels = activeCaps?.effortLevels ?? []; + + // Settings shown in the composer: the thread's own, or the draft's until the first message is sent. + const workMode = selected?.workMode ?? (selected ? 'execute' : draftWorkMode); + const changeWorkMode = async (mode: WorkMode, execute = false) => { + if (!selected) { setDraftWorkMode(mode); return; } + const id = selected.id; + setModeBusy(true); + try { + if ((selected.workMode ?? 'execute') !== mode) { + const updated = await api.updateThread(id, { workMode: mode }); + setThreads(prev => prev.map(t => t.id === id ? updated : t)); + } + if (execute) await api.startTurn(id, t('app.executePlan')); + } catch (error) { handleError(error); } + finally { setModeBusy(false); } + }; + + const permission = selected ? selected.permissionMode : draftPermission; + const model = selected ? selected.model : draftModel; + const effort = selected ? selected.effort : draftEffort; + const speed = selected ? selected.speed ?? null : draftSpeed; + + const updateSelected = (patch: { speed?: string | null; permissionMode?: string; model?: string | null; effort?: string | null }) => { + if (!selected) return; + // Shown at once: a control that waits for the round trip snaps back to the old value first. + const id = selected.id; + const before = { permissionMode: selected.permissionMode, model: selected.model, effort: selected.effort, speed: selected.speed }; + setThreads((prev) => prev.map((t) => (t.id === id ? { ...t, ...patch } : t))); + api + .updateThread(id, patch) + .then((updated) => setThreads((prev) => prev.map((t) => (t.id === updated.id ? updated : t)))) + .catch((e) => { + setThreads((prev) => prev.map((t) => (t.id === id ? { ...t, ...before } : t))); + handleError(e); + }); + }; + + const pickAgent = (id: string) => { + setDraftAgent(id); + setDraftWorkMode('execute'); + setDraftSpeed(null); + setDraftModel(null); + setDraftEffort(null); + // Each agent starts at its own level: one that cannot ask starts where it can work. + const caps = capsOf(id); + if (caps) setDraftPermission(startingPermission(caps)); + }; + + // What the slash menu offers besides the agent's own commands. The keywords include the names + // these have in the agents' terminals (/clear, /resume, /export, /status), so habits still work. + const hubActions: HubAction[] = [ + { id: 'new', label: t('sidebar.newThread'), hint: t('app.cmd.new'), keywords: ['new', 'clear'] }, + { id: 'status', label: t('statusPanel.status'), hint: t('app.cmd.status'), keywords: ['status', 'info'] }, + ...(models.length || effortLevels.length + ? [{ id: 'model', label: t('pickers.modelAndEffort'), hint: modelName(models, model), keywords: ['model', 'effort', 'thinking'] }] + : []), + ...(permissionModes.length + ? [{ id: 'permission', label: t('statusPanel.permission'), hint: PERMISSION_LABELS[permission]?.label ?? '', keywords: ['permission', 'permissions', 'approvals', 'mode'] }] + : []), + ...(selected + ? [ + { id: 'rename', label: t('actions.rename'), hint: t('app.cmd.rename'), keywords: ['rename', 'name'] }, + { id: 'pin', label: selected.pinned ? t('actions.unpin') : t('actions.pin'), hint: t('app.cmd.pin'), keywords: ['pin'] }, + ...(activeCaps?.fork && !forkBlocked(selected) + ? [{ id: 'fork', label: t('sidebar.fork'), hint: t('app.cmd.fork'), keywords: ['fork', 'branch', 'clone'] }] + : []), + { id: 'export', label: t('app.cmd.exportLabel'), hint: t('app.cmd.export'), keywords: ['export', 'copy'] }, + { id: 'archive', label: t('actions.archive'), hint: t('app.cmd.archive'), keywords: ['archive'] }, + ] + : []), + { id: 'appearance', label: t('appearance.title'), hint: t('app.cmd.appearance'), keywords: ['theme', 'appearance', 'dark', 'light', '主题'] }, + { id: 'help', label: t('app.cmd.helpLabel'), hint: t('app.cmd.help'), keywords: ['help', 'commands'] }, + ]; + + const runHubAction = (id: string) => { + if (id === 'new') return newThread(); + if (id === 'status') return setStatusOpen(true); + if (id === 'export' && selected) return threadActions.copyConversation(selected); + if (id === 'model') return setModelSignal((n) => n + 1); + if (id === 'permission') return setPermissionSignal((n) => n + 1); + if (id === 'appearance') return setAppearanceOpen(true); + if (selected && (id === 'rename' || id === 'pin' || id === 'fork' || id === 'archive')) threadActions.run(id, selected); + }; + + // The hub has its own controls for these; going through the agent would leave them out of sync. + // The hub's own goal entries (the card, or the menu commands on agents without it) replace the + // agent's raw /goal everywhere, as the phone's compact menu already did. + const hiddenCommands = [...(models.length ? ['model'] : []), ...(effortLevels.length ? ['effort'] : []), ...(activeCaps?.quota ? ['usage'] : []), ...(activeCaps?.goal ? ['goal'] : [])]; + + const attachBlocked = !activeCaps?.images ? t('app.noImages', agentLabel(activeAgent)) : imagesBlocked(models, model); + + // The top bar names a thread's agent and directory, so the composer does not repeat them: its + // strip is only for choosing them, before the thread exists. + const header = selected ? null : ( + <> + + { + setDraftCwd(cwd); + setDraftScratch(false); + }} + onScratch={() => setDraftScratch(true)} + onBrowse={() => setShowDirPicker(true)} + onNewProject={() => setProjectDialog('new')} + onManageRoots={() => setProjectDialog('roots')} + /> + {onHost && { if (id !== hostId) onHost(id); }} + />} + {offer && !draftScratch && } + {draftSectionId && sections.some((s) => s.id === draftSectionId) && ( + + )} + + ); + + const left = (<> + (selected ? updateSelected({ permissionMode: m }) : setDraftPermission(m))} + /> + ); + + // Older daemons advertise /compact before they expose the dedicated capability. + const canCompact = activeCaps?.compact ?? (commandsByKey[commandsKey] ?? []).some((command) => command.name === 'compact' && command.kind !== 'skill'); + + const right = ( + <> + {selected && (timeline.usage || canCompact) && send('/compact', []) : undefined} + running={running} + compactQueued={selected.queued?.some((message) => message.text.trim() === '/compact')} + compactDisabled={(selected.queued?.length ?? 0) >= MAX_QUEUED} + />} + selected ? updateSelected({ speed: v }) : setDraftSpeed(v) : undefined} + openSignal={modelSignal} + onOpen={() => refreshActiveModels(true)} + onModel={(v) => { + if (selected) return updateSelected({ model: v }); // the service drops an effort the new model lacks + setDraftModel(v); + if (draftSpeed && !speedsForModel(models, v).some(s => s.id === draftSpeed)) setDraftSpeed(null); + if (draftEffort && !effortsForModel(models, v, effortLevels).includes(draftEffort)) setDraftEffort(null); + }} + onEffort={(v) => (selected ? updateSelected({ effort: v }) : setDraftEffort(v))} + /> + + ); + + return ( +
+ {showDirPicker && ( + { + setShowDirPicker(false); + setProjectDialog('roots'); + }} + onSelect={(cwd) => { + setDraftCwd(cwd); + setDraftScratch(false); + }} + onClose={() => setShowDirPicker(false)} + /> + )} + {projectDialog === 'new' && ( + setProjectDialog(null)} + onCreated={(path) => { + setProjectDialog(null); + setDraftCwd(path); + setDraftScratch(false); + setToast({ message: t('app.projectCreated', folderName(path)) }); + }} + /> + )} + {projectDialog === 'roots' && setProjectDialog(null)} />} + + {!compact && !sidebarHidden && ( +
+ )} + + {/* A conversation under way leans toward the middle of the screen, as in Codex; a new + thread, and the pages, stay centred where they are. */} +
+ {compact && selected && !listOpen && !onPage && hostUp && ( + + )} +
+ + {/* With the list put away, the way back and a new thread move up here. */} + {sidebarHidden && !compact && ( +
+ + +
+ )} +
+ {/* Every page names itself here, the way a thread does: the bar is never left blank. */} + {/* On a phone there is no room for the tag: the title itself opens where the thread runs. */} + {selected && !viewTitle && !(host && !hostUp) && !compact && } + {compact && selected && !viewTitle && !(host && !hostUp) ? ( + + ) : ( +
{host && !hostUp ? host.label : viewTitle ?? (selected ? selected.title : t('sidebar.newThread'))}
+ )} + {!selected && host && hostUp &&
{host.label}
} +
+ {selected && ( +
+ {topPlan && !onPage && } + + +
+ )} +
+ + {error && ( +
+ {error} + +
+ )} + + {host && !hostUp ? ( + // The machine's threads are over there; until it is back there is only this to say. +
+ api.reconnectHost(host.id).catch(() => undefined).then(reloadHosts)} /> +
+ ) : onDesk ? ( +
+ +
+ ) : ( +
+ {selected && setJump({ threadId: selected.id, turnId })} />} + {selected && eventsLoading &&
{t('common.loading')}
} + {selected ? ( + threadActions.forkAt(timeline.running ? selected : { ...selected, status: 'idle' }, turnId) + : undefined + } + forkAnyTurn={Boolean(activeCaps?.forkAt)} + revision={historyRevision} + onEdit={ + selected.agentSessionId && activeCaps?.editMessage + ? async (turnId, edit) => { + stickToBottom.current = true; + await api.editTurn(selected.id, turnId, edit); + } + : undefined + } + /> + ) : ( +
+

{draftScratch ? t('app.emptyScratch') : t('app.emptyIn', folderName(draftCwd))}

+
+ )} +
+ )} + +
+ {selected && !atBottom && ( + + )} +
+ + {!onPage && !(host && !hostUp) && ( +
+ void changeWorkMode(active ? 'plan' : 'execute') } : undefined} + left={left} + right={right} + commands={commandsByKey[commandsKey] ?? []} + goal={activeCaps?.goal} + goalState={goalView} + actions={hubActions} + hiddenCommands={hiddenCommands} + onAction={runHubAction} + attachBlocked={attachBlocked} + attachNote={imagesNote(models, model)} + onError={setError} + queued={selected?.queued ?? []} + modelQueue={selected?.modelQueue ?? null} + onRemoveQueued={removeQueued} + onEditQueued={editQueued} + onSendQueuedNow={sendQueuedNow} + restore={restore} + lastSent={selected ? lastSent : null} + /> + {waitingOn && selected && ( + api.answerInput(id, answer)} + onDecide={decide} + // The service has put the thread back in execute mode when the plan arrived; the call + // below only switches it when that did not happen, then sends the go-ahead. + onExecutePlan={running ? undefined : () => changeWorkMode('execute', true)} + onRejectPlan={(text) => void api.startTurn(selected.id, text, [], { workMode: 'plan' })} + onSkipPlan={() => { + if (waitingOn.target.kind !== 'hub-plan' || !selectedId) return; + setPlanSkip({ threadId: selectedId, key: waitingOn.target.item.key }); + }} + /> + )} +
+ )} +
+ + {statusOpen && ( + (commandsByKey[commandsKey] ?? []).some((c) => c.name === name)) ?? null} + onRunCommand={(text) => void send(text, []).catch(() => undefined)} + onClose={() => setStatusOpen(false)} + /> + )} + {settingsAt && ( + setSettingsAt(null)} + items={[ + { + id: 'appearance', + label: t('appearance.title'), + icon: IconPalette, + onSelect: () => { + setAppearanceOpen(true); + setDrawer(false); + }, + }, + { + id: 'language', + label: t('locale.menu'), + icon: IconLanguage, + // Each language is named in itself, so it can be found from any of the others. + submenu: [ + { id: 'locale:system', label: t('locale.system'), checked: localeChoice() === 'system', onSelect: () => chooseLocale('system') }, + 'separator' as const, + ...LOCALES.map((l) => ({ id: `locale:${l.id}`, label: l.name, checked: localeChoice() === l.id, onSelect: () => chooseLocale(l.id) })), + ], + }, + ]} + /> + )} + {appearanceOpen && ( + setAppearanceOpen(false)} /> + )} + {threadActions.layer} + +
+ ); +} diff --git a/apps/presentation/calli-workbench/src/api.ts b/apps/presentation/calli-workbench/src/api.ts new file mode 100644 index 0000000000..bea49f7777 --- /dev/null +++ b/apps/presentation/calli-workbench/src/api.ts @@ -0,0 +1,1692 @@ +import type { ProgressReport } from './attention'; +export type WorkMode = 'execute' | 'plan'; +export type AutoArchiveDays = 1 | 3 | 7 | 15 | 30 | null; +export interface GeneralSettings { + /** Shared startup preference stored by the daemon. */ + startupPage: 'new-thread' | 'recent-thread'; + /** Shared automatic archive window. Null means conversations stay in the sidebar. */ + autoArchiveDays: AutoArchiveDays; +} +export interface UserQuestion { id: string; question: string; header?: string; options: Array<{ value: string; label: string; description?: string }>; multiple?: boolean; freeText?: boolean; required?: boolean } +export type UserInputAnswer = { answers: Record } | { cancelled: true }; +import type { StoredEvent } from './timeline'; +import type { DetailRef } from './timeline'; +import type { HistoryPage, HistoryDetail, HistoryWork } from './history'; +import { localeTag, t } from './i18n'; + +/** Where threads may work: the project roots, and whether one can start outside any project. */ +export interface FolderEntry { + name: string; + type: 'dir' | 'file'; + size?: number; + /** Ignored by git: shown, but quieter. */ + ignored?: boolean; +} + +/** A folder as the file browser sees it. `root` is the real path of the thread folder it is in. */ +export interface FolderListing { + root: string; + path: string; + entries: FolderEntry[]; + truncated: boolean; +} + +export interface TextFile { + root: string; + path: string; + size: number; + /** Null for a binary file. */ + text: string | null; + /** Only the start of a long file is in `text`. */ + truncated: boolean; + /** SHA-256 of the whole file, sent back when saving; null for a binary or truncated file. Missing from older daemons. */ + hash?: string | null; + /** A writing-mode body (a `.md` under the thread's `writing/`) that the page may save. */ + editable?: boolean; +} + +/** The steps of writing mode, in order: first draft, second, third, figures, polish. */ +export type WritingStage = 'draft' | 'second' | 'third' | 'figures' | 'polish'; +/** `file`: the body, relative to the thread's directory; null until the agent has written one. */ +export interface WritingState { + stage: WritingStage; + file: string | null; + /** The person's writing habits note, kept outside the thread's folder; may not exist yet. + * Missing from older daemons. */ + habits?: string | null; +} + +export interface WorkdirsConfig { + workdirs: string[]; + /** Each root and whether it was added from the page (and so can be removed there). Missing from older daemons. */ + roots?: Array<{ path: string; removable: boolean }>; + /** Missing from older daemons: no threads outside a project. */ + scratch?: boolean; +} + +export interface AgentMention { id: string; label: string; kind: 'agent' | 'member'; cwd?: string; /** What the user asks of this one alone. */ task?: string; + /** An instance on another machine: its id there is `agent@host`, and its folders are that machine's. */ host?: string; directories?: string[] } +/** One turn a search found: where it is, who said it, and the words around the match. */ +export interface SearchHit { + threadId: string; + turnId: string; + role: 'user' | 'assistant'; + ts: string; + snippet: string; + title: string; + agent: string; + cwd: string; + archived: boolean; +} + +/** The whole prompt a conversation runs with, as the agent itself persisted it. */ +export interface SystemPrompt { + text: string; + source: string; +} + +/** One day of the digest: what the user asked and what the models called. */ +export interface ActivityDay { + /** Local calendar day, `YYYY-MM-DD`. */ + date: string; + turns: number; + threads: number; + prompts: Array<{ threadId: string; turnId: string; ts: string; text: string; title: string; agent: string; cwd: string; archived: boolean; /** Tool calls the turn made; absent from older daemons. */ tools?: number }>; + morePrompts: number; + tools: Array<{ name: string; count: number; mcp: boolean; server?: string }>; + mcp: Array<{ server: string; count: number }>; +} + +export interface ActivityReport { + days: ActivityDay[]; +} + +export type TraceStepKind = 'user' | 'thinking' | 'assistant' | 'tool' | 'request' | 'context' | 'error'; + +/** One thing that happened in a turn, as the daemon's trace reads it out of the event log. */ +export interface TraceStep { + kind: TraceStepKind; + ts: string; + endTs?: string; + text?: string; + tool?: string; + title?: string; + server?: string; + status?: string; + input?: string; + output?: string; + model?: string; + tokens?: { input?: number; output?: number; cacheRead?: number; cacheWrite?: number }; + /** A text above was cut; the thread holds all of it. */ + cut?: boolean; +} + +/** One turn read back step by step: the ask, the thinking, each tool and model request, the answer. */ +export interface TurnTrace { + threadId: string; + turnId: string; + title: string; + agent: string; + cwd: string; + models: string[]; + status: 'running' | 'done' | 'cancelled' | 'error'; + startedAt: string; + endedAt: string | null; + steps: TraceStep[]; + totals: { tools: number; mcp: number; requests: number; input: number; output: number }; + turns: Array<{ turnId: string; ts: string }>; +} + +/** The model and thinking effort members of one instance start with; null leaves the agent's own. */ +export interface MemberDefault { model: string | null; effort: string | null; /** Set where this instance's members differ from the team's level. */ permission?: string } +export type TeamStatus = 'running' | 'awaiting_confirm' | 'needs_attention' | 'done'; +export interface TeamSummary { id: string; name: string; description?: string; entry: string; memberCount: number } +export interface TeamMember { name: string; agent: string; model?: string; effort?: string; cwd?: string; instruction?: string } +export interface TeamDefinition { + id?: string; name: string; description?: string; entry: string; members: TeamMember[]; + relations: Array<{ kind: 'delegate'; from: string[]; to: string }>; + budget?: { maxDeliveries?: number }; createdAt?: string; updatedAt?: string; +} +export interface Coordination { + autoHandover?: boolean; + team?: { taskId: string; status: TeamStatus; entry: string; snapshot: { name: string }; error?: string }; + rootId: string; paused: boolean; directories: string[]; agents: string[]; + /** By instance id. Absent from older daemons. */ + defaults?: Record; + /** How much members may do without asking. Absent from older daemons. */ + permission?: string; + /** `host`: the member runs on another machine, and its thread is that machine's. */ + members: Array<{ id: string; name: string; host?: string; hostLabel?: string; thread: Thread | null; latest: CoordinationMessage | null }>; + messages: CoordinationMessage[]; +} +export interface CoordinationMessage { + id: string; from: string; to: string; text: string; kind: string; state: string; result: string; createdAt: string; turnId: string | null; + /** For a result: the message it answers. Absent from older daemons. */ + replyTo?: string | null; +} +export interface HandoverTarget { agent: string; model?: string } +/** How another account of the same agent takes over: a copy of the conversation, or a brief. Absent on older daemons. */ +export type HandoverMethod = 'resume' | 'summary'; +export interface HandoverSettings { enabled: boolean; threshold: number; orders: Record; resume?: boolean; method?: HandoverMethod } +/** A watch waiting for the thread's agent quota to reset; the daemon then resends the failed turn. */ +export interface ResumeView { origin: 'user' | 'global'; resetsAt: string | null; nextCheckAt: string; lastError?: string } +export interface AutoHandoverView { + enabled: boolean; source: 'thread' | 'collaboration' | 'global'; override: boolean | null; + state?: 'checking' | 'preparing' | 'countdown' | 'stopped' | 'failed'; + target?: HandoverTarget; deadline?: string; reason?: 'near' | 'exhausted'; error?: string; + /** Present when this thread waits for its quota to come back; absent on older daemons. */ + resume?: ResumeView | null; +} +export interface Thread { + autoHandover?: AutoHandoverView; + /** `doing`, on a member: its latest task while it works, the opening of its answer once it has returned. */ + coordination?: { retired?: boolean; rootId: string; children: number; paused: boolean; doing?: string; team?: { name: string; status: TeamStatus; role: string; error?: string } }; + id: string; + agent: string; + cwd: string; + title: string; + agentSessionId: string | null; + status: 'idle' | 'running' | 'error'; + pinned: boolean; + workMode?: WorkMode; + /** Writing mode and its stage; null when off. Missing from older daemons. */ + writing?: WritingState | null; + speed?: string | null; + permissionMode: string; + model: string | null; + effort: string | null; + archivedAt: string | null; + sectionId: string | null; + /** The thread this one was forked from, if it is a fork. */ + forkedFrom: string | null; + handover?: { sourceId: string; title: string; agent: string; mode?: 'continue' | 'branch'; automatic?: boolean; detached?: boolean } | null; + /** + * The git worktree the thread runs in, when a fork was given one. `of` is the directory it would + * be in otherwise, which is the project it is listed under; `ofReal` is that with symlinks + * resolved. Missing from daemons that predate worktrees. + */ + worktree?: { root: string; branch: string; of: string; ofReal: string } | null; + /** In no project: working in the hub's scratch area. Missing from daemons that predate it. */ + scratch?: boolean; + /** A turn finished and nobody has looked at the result yet. */ + unread: boolean; + /** The newest thing the user asked, shown under the title. Null until the first ask. */ + preview: string | null; + /** The scheduled task that started this thread, if any. Missing from older daemons. */ + schedule?: { id: string; name: string } | null; + /** When the person marked the thread done on the board. Missing from older daemons. */ + doneAt?: string | null; + /** The agent's latest progress line, kept while the board holds `progress.report`. */ + report?: ProgressReport | null; + /** The terminal wrote to this session since the hub last did. */ + terminalActivity: boolean; + /** The agent is waiting for the user to respond. */ + waiting: boolean; + /** Missing from older daemons, which do not distinguish questions from approvals. */ + waitingReason?: 'approval' | 'question' | 'plan' | null; + /** Messages sent while a turn was running; they go out as turns finish. */ + queued: QueuedMessage[]; + /** The upstream model-provider queue for the running turn. Missing from older daemons. */ + modelQueue?: ModelQueue | null; + /** When the running turn started. Missing from older daemons, null while nothing runs. */ + runningSince?: string | null; + /** Shell command that continues this conversation in a terminal. Null before the first message. */ + resumeCommand: string | null; + /** `cwd` with symlinks resolved, which is how agents report file paths. */ + cwdReal: string; + createdAt: string; + updatedAt: string; +} + +/** A thread's native goal, as the goal card shows it. Served by the daemon, then updated by events. */ +export interface GoalView { + objective: string; + status: string; + tokensUsed?: number; + tokenBudget?: number; + /** When this goal was set. ISO. */ + startedAt: string; + /** When this view was computed. ISO; while active the clock runs on from here. */ + at: string; + /** Active work so far, ms. While active: elapsed = activeMs + (now − at). */ + activeMs: number; +} + +/** What forking a thread can offer. The worktree is there for a thread in a git repository, with an agent that can move a copy. */ +export interface ForkOptions { + worktree: { available: boolean; reason?: string; branch?: string | null; changes?: number }; +} + +/** One firing of a scheduled task: how it went, and which thread to look at. */ +export interface ScheduleRun { + id: string; + scheduleId: string; + status: 'running' | 'done' | 'quiet' | 'error' | 'skipped' | 'missed'; + threadId: string | null; + turnId: string | null; + startedAt: string; + finishedAt: string | null; + message: string | null; +} + +/** A recurring task: a prompt an agent runs in a directory on a cron schedule. */ +export interface Schedule { + id: string; + name: string; + agent: string; + cwd: string; + prompt: string; + cron: string; + mode: 'new' | 'same'; + threadId: string | null; + permissionMode: string; + enabled: boolean; + timezone: string | null; + catchUp: boolean; + /** The cron in words. Empty for uncommon shapes: show the raw expression. */ + description: string; + nextRunAt: string | null; + lastRun: ScheduleRun | null; + /** Why this cannot run as-is: a broken expression, a gone agent, a gone thread. */ + problem: string | null; + createdAt: string; + updatedAt: string; +} + +/** A request the daemon refused. `details` is whatever it sent besides the message, for errors the page handles itself. */ +export class ApiError extends Error { + constructor( + message: string, + readonly details: Record = {}, + readonly status = 0, + ) { + const missingEndpoint = status === 404 && (message === 'not found' || message === 'HTTP 404'); + super(missingEndpoint ? t('api.updateBackend') : message); + if (missingEndpoint) this.name = ''; + } +} + +/** How many messages may wait behind a running turn. Matches the daemon's limit. */ +export const MAX_QUEUED = 5; + +/** One arrival in a batch the Router took in a single turn. */ +export type TurnPart = { kind: 'person'; text: string } | { kind: 'lark' | 'worker'; count: number }; +/** A turn a channel started on the person's behalf (a batch of Lark signals), not words they wrote. */ +export interface TurnChannel { kind: string; count: number; parts?: TurnPart[] } + +export interface QueuedMessage { + channel?: TurnChannel; + targets?: string[]; + error?: string; + id: string; + text: string; + /** How many pictures go with it. */ + images: number; + videos?: number; + /** Attached files that are not videos. */ + files?: number; +} + +export interface ModelQueue { + state: string; + position: number | null; + operation?: string | null; + message?: string | null; + updatedAt: string; +} + +export interface VideoRef { id: string; name: string; mimeType: string; size: number } + +/** A user-made group in the sidebar. */ +export interface Section { + id: string; + name: string; + position: number; +} + +/** One entry on the plan page. `parentId` is a top-level todo or null: one level of nesting. */ +export interface PersonalSettings { routerThreadId?: string | null; directoryIsDefault?: boolean; defaultDirectory?: string; defaultDirectoryDisplay?: string; directoryDisplay?: string | null; directory: string | null; agent: string | null; model: string | null } +export interface PersonalBrief { title: string; lines: string[]; text: string } +export interface LastPersonalBrief { text: string; sentAt: string } +export interface BriefSettings { enabled: boolean; morning: string; evening: string } +export interface LarkChannelSettings { + enabled: boolean; people: Array<{ id: string; name: string; role?: string }>; chats: Array<{ id: string; name: string }>; + intervalMin: number; workHours?: { start: number; end: number; timeZone: string }; +} +export interface LarkChannelStatus { cli: boolean; realtime?: LarkRealtime; topicErrors?: Array<{ ref: string; error: string }>; loggedIn: boolean; lastRunAt: string | null; nextRunAt: string | null; lastError: string | null; lastSignals: number } +export type LarkRealtime = 'off' | 'connecting' | 'live' | 'busy-elsewhere' | 'console-off' | 'unavailable' | 'error'; +/** A signal the channel kept on a matter, and where it went. */ +export interface MatterSignal { + key: string; + at: string; + summary: string | null; + disposition: { outcome: 'filtered' | 'delivered' | 'router'; reason?: string; pending?: boolean }; +} +export interface LarkSearchResult { id: string; name: string; hint?: string } +export interface TodoNote { text: string; updatedAt: string | null; threadId: string | null; rev: number } +export interface PetStatus { id: string; commit: string; installed: boolean; installing: boolean; error: string | null; clips: Record; frameMs: number } +export interface TodoSummaryStatus { threadId: string | null; running: boolean; days: number | null; startedAt: string | null } +export interface Wish { id: string; threadId: string; text: string; createdAt: string } +export interface PushSettings { enabled: boolean; recipient: string; baseUrl: string; waiting: boolean; failure: boolean; notice: boolean; scheduled: boolean } +export interface PushRecord { key: string; at: string; kind: string; title: string; result: 'queued' | 'sent' | 'failed' | 'dropped'; reason: string | null } +export interface PushStatus { cli: boolean; botReady: boolean; recipient: string; reason: string | null; records: PushRecord[]; dropped: number } +export interface TodoSource { type: 'lark-task' | 'lark-message' | 'lark-flag' | 'lark-calendar' | 'manual'; ref: string; url?: string; from?: string; at?: string } +export interface TodoUrgency { urgent: boolean; reason: 'overdue' | 'due-soon' | 'pinned' | 'meeting-today' | null } +/** Whether the assistant may act on its own, and in which repositories she may work in a sandbox. */ +export type ProactiveMode = 'off' | 'observe' | 'auto'; +export interface ProactiveSettings { + /** off: nothing; observe: only note what she would have done; auto: really do it. */ + mode: ProactiveMode; + repos: string[]; + /** Read-only, for older clients: `mode !== 'off'`. */ + enabled: boolean; +} + +export interface ProactiveFile { + path: string; + additions: number; + deletions: number; +} + +export type ProactiveStatus = 'running' | 'observed' | 'approved' | 'ready' | 'merged' | 'discarded' | 'reverted' | 'failed'; + +/** One thing she did unasked: materials prepared for a matter, or code changed in a sandbox. */ +export interface ProactiveRun { + id: string; + matterId: string; + kind: 'prepare' | 'sandbox'; + repo?: string; + branch?: string; + threadId: string; + startedAt: string; + endedAt?: string; + status: ProactiveStatus; + /** What was done, or why it failed. */ + summary?: string; + /** The worker's own account of the tests. */ + testReport?: string; + files?: ProactiveFile[]; + /** Why she dropped the work herself, for an audit list. */ + discardReason?: string; +} + +export type ProactiveAction = 'merge' | 'discard' | 'revert' | 'approve'; + +/** Where a matter stands, derived by the daemon. Null when nothing is going on with it. */ +export type TodoStage = 'answer' | 'review' | 'blocked' | 'working' | 'idle'; +export interface TodoSubscription { kind: 'lark-thread' | 'lark-task' | 'lark-calendar'; ref: string; at: string } + +export interface Todo { + owner?: 'me' | 'agent'; + state?: 'open' | 'waiting' | 'done'; + lane?: 'you' | 'doing' | 'wait' | 'later' | null; + importance?: 'high' | 'normal' | 'low' | null; + urgentUntil?: string | null; + source?: TodoSource | null; + /** Daemon-derived, never stored; only present on list responses. */ + urgency?: TodoUrgency; + waitingOn?: string | null; + dueAt?: string | null; + followUpAt?: string | null; + followUpPaused?: boolean; + hasNote?: boolean; + noteUpdatedAt?: string | null; + /** First line of the continuation note's next steps; the desk cover falls back to thread titles. */ + notePreview?: string | null; + /** How many things the assistant did on its own on this matter; the runs themselves load when asked for. */ + proactiveRunCount?: number; + stage?: TodoStage | null; + /** The outside threads this matter follows. */ + subscriptions?: TodoSubscription[]; + proposed?: boolean; + rev?: number; + proposals?: Array<{ id: string; kind: 'add' | 'done'; evidence: string; threadId: string }>; + id: string; + text: string; + done: boolean; + parentId: string | null; + position: number; + createdAt: string; + /** Last time anyone did anything to this plan; the desk's last-activity signal. */ + updatedAt?: string; + doneAt: string | null; + /** Threads linked to this plan, as full views so chips can show agent, title and state. */ + threads: Thread[]; +} + +/** An image ready to be sent with a message. */ +export interface OutgoingImage { + data: string; + mimeType: string; +} + +export interface DirectoryEntry { + name: string; + type: 'file' | 'dir'; + size?: number; + modified?: string; +} + +export interface DirectoryInfo { + path: string; + files: DirectoryEntry[]; + parent?: string | null; +} + +export interface ProjectDirectoryInfo { + path: string; + parent: string | null; + directories: Array<{ name: string; path: string }>; + allowed: boolean; + selectable: boolean; +} + +export interface DirectoryTreeNode { + name: string; + path: string; + type: 'dir'; + children?: DirectoryTreeNode[]; +} + +export interface SlashCommand { + name: string; + description: string; + /** What to type after the command, as the agent describes it. */ + hint?: string; + /** Present only when the agent says what the entry is. */ + kind?: 'command' | 'prompt' | 'skill'; +} + +export interface ModelOption { + id: string; + label: string; + /** Short note from the agent, such as the concrete version behind an alias. */ + description?: string; + /** How busy this model is right now; above 100 means overloaded. */ + loadPercent?: number; + /** Effort levels this model accepts. Empty: none. Missing: use the agent-wide list. */ + efforts?: string[]; + speeds?: Array<{ id: string; label: string; description?: string; isFast?: boolean }>; + /** False when the model cannot read images. */ + images?: boolean; + /** How images reach a model that cannot read them, such as a tool that hands them to a vision model. */ + imagesVia?: string; + /** The model the agent uses when the thread does not pick one. */ + isDefault?: boolean; +} + +/** Older Hub responses lack isFast. Only recognize their advertised public fast-tier IDs. */ +export function isFastSpeed(speed: NonNullable[number]): boolean { + return speed.isFast ?? ['priority', 'fast', 'ultrafast'].includes(speed.id); +} + +/** What would break if an agent instance disappeared from the registry. */ +export interface AgentReferences { + threads: number; + schedules: number; + teams: number; + handoverOrders: number; +} + +export interface AgentInfo { + id: string; + label: string; + hidden?: boolean; + /** The agent's mark: the path of a 24×24 drawing, filled with the even-odd rule. Missing from daemons that predate it. */ + icon?: string; + /** Which adapter this instance is; instances of one adapter group together in the picker. */ + adapter?: string; + /** The login this instance runs as, when it is a linked account (an email). */ + account?: string | null; + available: boolean; + /** How it can be signed in from the hub, when its adapter can start the CLI's login. */ + login?: 'terminal' | 'wizard'; + capabilities: { + workModes?: WorkMode[]; + speed?: boolean; + coordination?: boolean; + resume: boolean; + approvals: boolean; + memory?: boolean; + permissionModes: string[]; + /** The level a new thread starts at. Missing: `auto_edit`. */ + defaultPermissionMode?: string; + effortLevels: string[]; + images: boolean; + deleteSession: boolean; + /** Can list its past sessions and replay them, so they can be imported. */ + history: boolean; + /** Can read plan usage outside a session, for the quota panel. */ + quota: boolean; + compact?: boolean; + /** Native realtime two-way voice capability. */ + realtimeVoice?: boolean; + goal?: { controls: Array<'show' | 'pause' | 'clear'>; actions?: Array<'set' | 'show' | 'pause' | 'resume' | 'clear'>; /** The hub follows the goal's state live, so a card replaces the menu commands. */ + live?: boolean }; + fork: boolean; + /** A fork can end at an earlier turn instead of taking the whole thread. Missing from daemons that predate it. */ + forkAt?: boolean; + /** An earlier user message can be edited and sent again from there. Missing from older daemons. */ + editMessage?: boolean; + /** A fork can run in a git worktree of its own. Missing from daemons that predate it. */ + forkInto?: boolean; + /** The whole prompt of a conversation can be read from the agent's session file. Missing from daemons that predate it. */ + systemPrompt?: boolean; + }; +} + +export interface AgentLogin { + id: string; + status: 'starting' | 'waiting' | 'submitting' | 'success' | 'error' | 'cancelled'; + url?: string; + error?: 'failed' | 'expired' | 'unavailable' | 'verification'; +} + +export interface SupportedAgent { + adapter: string; + label: string; + icon?: string; + installGuide?: string; + capabilities?: { createAccount: boolean }; +} + +/** One window of a plan's usage, as the agent itself reports it. */ +export interface QuotaWindow { + /** Short chip label, such as "5H" or "7D". */ + label: string; + /** What the window covers, when the agent splits by model group. */ + scope?: string; + /** How much of the window is used, 0 to 100. */ + usedPercent: number; + /** When the window resets, if the agent said so. ISO. */ + resetsAt?: string; + /** How busy the model behind this window is right now; above 100 means overloaded. */ + loadPercent?: number; +} + +/** Plan usage of an agent instance, read outside any session. */ +export interface PlanQuota { + windows: QuotaWindow[]; + note?: string; + /** The subscription the account is on, as the agent reports it (`id`) and as shown (`label`). */ + plan?: { id: string; label: string }; + /** When the agent was last asked. ISO. */ + checkedAt: string; +} + +/** A conversation the agent already has, as offered for import. */ +export interface AgentSession { + id: string; + cwd: string; + title: string; + updatedAt: string | null; + /** Set when this session is already a thread here (possibly an archived one). */ + threadId: string | null; +} + +/** A web terminal, as the daemon lists it. Exited ones are not listed. */ +export interface TerminalInfo { + id: string; + cwd: string; + cols: number; + rows: number; + startedAt: number; + lastActivity: number; +} + +/** One SSE frame of a terminal stream. Output is base64: programs may emit non-UTF-8 bytes. */ +export type TerminalFrame = { type: 'backlog'; data: string } | { type: 'out'; data: string } | { type: 'exit'; code: number }; + +/** Why a machine cannot be reached, as the hub sorts what ssh said. */ +export type HostFailure = 'no_ssh' | 'host_key' | 'auth' | 'unreachable' | 'ssh_failed' | 'daemon_missing' | 'forward_denied'; + +/** A folder an agent reads skills from. `agents` are the instances that see it. */ +export interface SkillLocation { + path: string; + scope: 'personal' | 'shared'; + agents: string[]; +} + +/** One skill as it stands in one folder. */ +export interface SkillPlace { + /** The folder the skill sits in, not the skill's own folder. */ + path: string; + mtime: string; + sizeBytes: number; + fileCount: number; + /** sha256 of the layout plus the SKILL.md: how two machines tell they hold the same. */ + digest: string; + agents: string[]; +} + +/** A skill merged across the folders it sits in, newest first. */ +export interface SkillEntry extends SkillPlace { + name: string; + description: string; + locations: SkillPlace[]; + /** Union of the agents that see it somewhere. */ + agents: string[]; +} + +export interface SkillsListing { + locations: SkillLocation[]; + skills: SkillEntry[]; +} + +export interface SkillDetail extends SkillEntry { + skillMd: string; +} + +/** A skill packed to travel between machines. */ +export interface SkillPayload { + name: string; + description?: string; + files: Array<{ path: string; mode?: number; data: string }>; + sizeBytes: number; + digest: string; +} + +export type SkillInstallStatus = 'installed' | 'exists' | 'same' | 'no_dir' | 'error'; + +export interface SkillInstallOutcome { + agent: string; + dir: string; + status: SkillInstallStatus; + error?: string; +} + +/** One MCP server as one agent instance's own config states it. `config` is the server object + * verbatim, so it can be shown, copied and reinstalled without knowing every agent's extras. */ +export interface McpServer { + name: string; + config: Record; + sourcePath: string; +} + +/** One agent instance's MCP servers, as the machine this client is for reads them. */ +export interface McpAgentListing { + agent: string; + writable: boolean; + servers: McpServer[]; + error?: string; +} + +export interface McpListing { + agents: McpAgentListing[]; +} + +export type McpInstallStatus = 'installed' | 'exists' | 'same' | 'error'; + +export interface McpInstallOutcome { + agent: string; + status: McpInstallStatus; + error?: string; +} + +/** The hub's own note about one server name: the business line and the purpose in words, plus the + * config for servers registered on the page rather than found in any config file. */ +export interface McpEntry { + name: string; + businessLine: string; + description: string; + server: Record | null; + createdAt: string; + updatedAt: string; +} + +/** Another machine this hub shows: the same daemon over there, reached over SSH. */ +export interface HostInfo { + id: string; + label: string; + /** What ssh calls it. */ + target: string; + status: 'connecting' | 'online' | 'offline'; + code?: HostFailure; + /** The failure in ssh's own words. */ + error?: string; + version?: string; +} + +/** Where a path of the API is when another machine answers it: the same path, behind the hub's proxy. */ +export function hostPath(host: string, path: string): string { + return path.startsWith('/api/') ? `/api/hosts/${encodeURIComponent(host)}/proxy/${path.slice('/api/'.length)}` : path; +} + +export class AuthError extends Error {} + +export interface VoiceProvider { + login?: 'ready' | 'required'; + id: string; + available: boolean; + supported: boolean; + reason?: string; +} + +export interface VoiceSnapshot { + id: string; + hostId: string; + providerId: string; + threadId: string; + state: 'connecting' | 'connected' | 'stopping' | 'closed' | 'failed'; + startAccepted: boolean; + upstreamStarted: boolean; + mediaConnected: boolean; + reason?: 'ended' | 'expired' | 'startup_timeout' | 'revoked' | 'provider_error' | 'provider_closed' | 'shutdown'; +} + +export type VoiceEvent = + | { type: 'state'; session: VoiceSnapshot } + | { type: 'sdp'; sdp: string } + | { type: 'transcript'; itemId: string; text: string; final: boolean; + role?: 'user' | 'assistant'; at?: string; afterSeq?: number; order?: number }; + +/** + * Random UUID per browser tab session, sent in X-Calli-Voice-Owner header. + * Generated in memory; never saved to storage and never exposed to extensions. + */ +const TAB_VOICE_OWNER = + typeof crypto !== 'undefined' && typeof crypto.randomUUID === 'function' + ? crypto.randomUUID() + : `tab-${Date.now()}-${Math.random().toString(36).slice(2, 10)}`; + +export function getTabVoiceOwner(): string { + return TAB_VOICE_OWNER; +} + +/** The server pings every 15 seconds; a stream silent for this long is dead, not quiet. */ +const STREAM_IDLE_MS = 40_000; +/** Back in the foreground, a stream that has said nothing for this long is reconnected at once. */ +const STREAM_WAKE_MS = 5_000; + +export class Api { + + /** True for the made-up workspace shown before the page is connected: nothing reaches a daemon. */ + readonly demo: boolean = false; + + constructor( + private readonly token: string, + private readonly base = '', + /** Another machine's id: every call is then answered by that machine's daemon, through the hub. */ + readonly host: string | null = null, + ) {} + + private headers(extra: Record = {}): Record { + // The language picked in the hub, not the browser's: what the daemon writes for people can follow it. + return { Authorization: `Bearer ${this.token}`, 'Accept-Language': localeTag(), ...extra }; + } + + private url(path: string): string { + return this.base + (this.host ? hostPath(this.host, path) : path); + } + + private request(method: string, path: string, body?: unknown): Promise { + return this.send(method, this.url(path), body); + } + + protected async send(method: string, url: string, body?: unknown): Promise { + const res = await fetch(url, { + method, + headers: this.headers(body === undefined ? {} : { 'Content-Type': 'application/json' }), + body: body === undefined ? undefined : JSON.stringify(body), + }); + if (res.status === 401) throw new AuthError('unauthorized'); + if (res.status === 204) return undefined as T; + const json = await res.json().catch(() => ({})); + if (!res.ok) throw new ApiError((json as { error?: string }).error ?? `HTTP ${res.status}`, json as Record, res.status); + return json as T; + } + + // The machines themselves are the hub's own, whichever machine this client is for. + + hosts(): Promise { + return this.send('GET', `${this.base}/api/hosts`); + } + + /** Aliases in the hub user's ssh config that are not machines yet. */ + hostCandidates(): Promise { + return this.send('GET', `${this.base}/api/hosts/candidates`); + } + + /** Signs in to the machine once to find its daemon; refused with a `code` when that fails. */ + addHost(target: string, label?: string): Promise { + return this.send('POST', `${this.base}/api/hosts`, { target, label }); + } + + removeHost(id: string): Promise { + return this.send('DELETE', `${this.base}/api/hosts/${encodeURIComponent(id)}`); + } + + /** Tries the machine again now, and says how that went. */ + reconnectHost(id: string): Promise { + return this.send('POST', `${this.base}/api/hosts/${encodeURIComponent(id)}/reconnect`); + } + + health(): Promise<{ ok: boolean; version: string }> { + return this.request('GET', '/api/health'); + } + + agents(): Promise { + return this.request('GET', '/api/agents'); + } + + workdirs(): Promise { + return this.request('GET', '/api/config'); + } + + /** Allows another directory as a project root, from the page. */ + addWorkdir(path: string): Promise { + return this.request('POST', '/api/workdirs', { path }); + } + + /** Takes back a root that was added from the page. */ + removeWorkdir(path: string): Promise { + return this.request('DELETE', `/api/workdirs?path=${encodeURIComponent(path)}`); + } + + /** A new project folder in `parent`, a git repository with a first commit when `git` is set. */ + createProject(input: { parent: string; name: string; git: boolean }): Promise<{ path: string; git: boolean }> { + return this.request('POST', '/api/projects', input); + } + + threads(opts: { archived?: boolean } = {}): Promise { + return this.request('GET', `/api/threads${opts.archived ? '?archived=1' : ''}`); + } + + sections(): Promise { + return this.request('GET', '/api/sections'); + } + + createSection(name: string): Promise
{ + return this.request('POST', '/api/sections', { name }); + } + + renameSection(id: string, name: string): Promise
{ + return this.request('PATCH', `/api/sections/${id}`, { name }); + } + + deleteSection(id: string): Promise { + return this.request('DELETE', `/api/sections/${id}`); + } + + generalSettings(): Promise { return this.request('GET', '/api/general-settings'); } + saveGeneralSettings(value: GeneralSettings): Promise { return this.request('PUT', '/api/general-settings', value); } + personalSettings(): Promise { return this.request('GET', '/api/personal/settings'); } + savePersonalSettings(value: PersonalSettings): Promise { return this.request('PUT', '/api/personal/settings', value); } + personalBrief(kind: 'morning' | 'evening'): Promise { return this.request('GET', `/api/personal/brief?kind=${kind}`); } + lastPersonalBrief(kind: 'morning' | 'evening'): Promise { return this.request('GET', `/api/personal/brief/last?kind=${kind}`); } + briefSettings(): Promise { return this.request('GET', '/api/personal/brief/settings'); } + saveBriefSettings(value: BriefSettings): Promise { return this.request('PUT', '/api/personal/brief/settings', value); } + proactive(matterId?: string): Promise<{ settings: ProactiveSettings; runs: ProactiveRun[] }> { return this.request('GET', `/api/personal/proactive${matterId ? `?matterId=${encodeURIComponent(matterId)}` : ''}`); } + proactiveSettings(): Promise<{ settings: ProactiveSettings }> { return this.request('GET', '/api/personal/proactive?summary=true'); } + saveProactiveSettings(value: Partial>): Promise { return this.request('PUT', '/api/personal/proactive/settings', value); } + proactiveDiff(id: string): Promise<{ files: ProactiveFile[] }> { return this.request('GET', `/api/personal/proactive/runs/${encodeURIComponent(id)}/diff`); } + proactiveAct(id: string, action: ProactiveAction): Promise { return this.request('POST', `/api/personal/proactive/runs/${encodeURIComponent(id)}/${action}`); } + larkChannel(): Promise { return this.request('GET', '/api/personal/channels/lark'); } + saveLarkChannel(value: LarkChannelSettings): Promise { return this.request('PUT', '/api/personal/channels/lark', value); } + larkStatus(): Promise { return this.request('GET', '/api/personal/channels/lark/status'); } + runLark(): Promise { return this.request('POST', '/api/personal/channels/lark/run'); } + searchLark(kind: 'people' | 'chats', q: string): Promise { return this.request('GET', `/api/personal/channels/lark/search?kind=${kind}&q=${encodeURIComponent(q)}`); } + matterSignals(matterId: string): Promise<{ signals: MatterSignal[] }> { return this.request('GET', `/api/personal/signals?matterId=${encodeURIComponent(matterId)}`); } + todoNote(id: string): Promise { return this.request('GET', `/api/todos/${id}/note`); } + /** The desk's companion: whether its frames are here yet. Always this hub's own, never another machine's. */ + pet(): Promise { return this.send('GET', `${this.base}/api/pets`); } + installPet(): Promise { return this.send('POST', `${this.base}/api/pets/install`); } + petSay(text: string): Promise<{ threadId: string }> { return this.request('POST', '/api/personal/say', { text }); } + petRouter(): Promise<{ threadId: string | null; status: 'idle' | 'running' | 'error' | null; lastReply: string | null; lastReplyAt: string | null }> { + return this.request('GET', '/api/personal/router'); + } + personalProfile(): Promise<{ text: string; updatedAt: string | null; path: string; isTemplate: boolean; rev: number }> { return this.request('GET', '/api/personal/profile'); } + savePersonalProfile(text: string, rev?: number): Promise<{ text: string; updatedAt: string; path: string; isTemplate: boolean; rev: number }> { + return this.request('PUT', '/api/personal/profile', rev === undefined ? { text } : { text, rev }); + } + /** Frames are public artwork, loaded by `` without a token. */ + petFrame(id: string, clip: string, index: number): string { return `${this.base}/pets/${id}/${clip}/${clip}_${String(index * 2 + 1).padStart(3, '0')}.webp`; } + resolveTodoProposal(id: string, pid: string, action: 'accept' | 'dismiss', rev?: number): Promise { return this.request('POST', `/api/todos/${id}/proposals/${pid}/${action}`, { rev }); } + delegateTodo(id: string, cwd?: string): Promise { return this.request('POST', `/api/todos/${id}/delegate`, { cwd }); } + /** The latest "summarize recent days" run on the plan page. */ + todoSummary(): Promise { return this.request('GET', '/api/todos/summary'); } + /** Starts a personal thread that summarizes recent threads into the plan; `heading` is the parent item's text. */ + summarizeTodos(days: number, title: string, heading: string): Promise { return this.request('POST', '/api/todos/summary', { days, title, heading }); } + wishCount(): Promise<{ count: number }> { return this.request('GET', '/api/wishes?summary=true'); } + wishes(): Promise { return this.request('GET', '/api/wishes'); } + pushSettings(): Promise { return this.request('GET', '/api/push/settings'); } + savePushSettings(value: PushSettings): Promise { return this.request('PUT', '/api/push/settings', value); } + pushStatus(full = false): Promise { return this.request('GET', `/api/push/status${full ? '' : '?summary=true'}`); } + testPush(): Promise { return this.request('POST', '/api/push/test', {}); } + + todos(): Promise { + return this.request('GET', '/api/todos'); + } + + createTodo(text: string, parentId?: string | null): Promise { + return this.request('POST', '/api/todos', { text, parentId }); + } + + updateTodo(id: string, patch: { text?: string; done?: boolean; lane?: 'you' | 'doing' | 'wait' | 'later' | null; importance?: 'high' | 'normal' | 'low' | null; urgentUntil?: string | null; source?: TodoSource | null; touch?: boolean; followUpAt?: string | null; unsubscribe?: Array> }): Promise { + return this.request('PATCH', `/api/todos/${id}`, patch); + } + + deleteTodo(id: string): Promise { + return this.request('DELETE', `/api/todos/${id}`); + } + + /** Puts an item under `parentId` (null: top level), before the sibling `before` (null: last). */ + moveTodo(id: string, to: { parentId: string | null; before: string | null }): Promise { + return this.request('POST', `/api/todos/${id}/move`, to); + } + + linkTodo(id: string, threadId: string): Promise { + return this.request('POST', `/api/todos/${id}/threads`, { threadId }); + } + + unlinkTodo(id: string, threadId: string): Promise { + return this.request('DELETE', `/api/todos/${id}/threads?threadId=${encodeURIComponent(threadId)}`); + } + + schedules(): Promise { + return this.request('GET', '/api/schedules'); + } + + createSchedule(input: { + name?: string; + agent: string; + cwd: string; + prompt: string; + cron: string; + mode: 'new' | 'same'; + threadId?: string | null; + permissionMode?: string; + enabled?: boolean; + timezone?: string | null; + catchUp?: boolean; + }): Promise { + return this.request('POST', '/api/schedules', input); + } + + updateSchedule(id: string, patch: Record): Promise { + return this.request('PATCH', `/api/schedules/${id}`, patch); + } + + deleteSchedule(id: string): Promise { + return this.request('DELETE', `/api/schedules/${id}`); + } + + /** Fires now, whatever the clock says and whether the schedule is enabled. */ + runSchedule(id: string): Promise<{ status: string; message?: string }> { + return this.request('POST', `/api/schedules/${id}/run`); + } + + scheduleRuns(id: string): Promise { + return this.request('GET', `/api/schedules/${id}/runs`); + } + + /** What a cron expression means: for the form's live preview. */ + previewCron(cron: string, timezone?: string | null): Promise<{ description: string; fires: string[] }> { + return this.request('POST', '/api/schedules/preview', { cron, ...(timezone ? { timezone } : {}) }); + } + + thread(id: string): Promise { + return this.request('GET', `/api/threads/${id}`); + } + + events(id: string, after = 0): Promise { + return this.request('GET', `/api/threads/${id}/events?after=${after}`); + } + + historyPage(id: string, before?: number, after?: number, chain = false): Promise { + const params = new URLSearchParams(); + if (before) params.set('before', String(before)); + if (after) params.set('after', String(after)); + if (chain) params.set('chain', '1'); + return this.request('GET', `/api/threads/${id}/history${params.size ? `?${params}` : ''}`); + } + + historyHandover(id: string, full = false): Promise<{ source: { sourceId: string; agent: string; title: string }; turnId: string | null; reason: string | null; text?: string }> { + return this.request('GET', `/api/threads/${id}/history/handover${full ? '?text=1' : ''}`); + } + + historySummary(id: string, turn: string, cursor?: number, version?: number): Promise<{ prompt: string; text: string; snapshotSeq: number; nextOffset: number | null }> { + return this.request('GET', `/api/threads/${id}/history/summary?turn=${encodeURIComponent(turn)}${cursor ? `&cursor=${cursor}&version=${version}` : ''}`); + } + + historyPosition(id: string): Promise<{ snapshotSeq: number }> { + return this.request('GET', `/api/threads/${id}/history?head=1`); + } + + historyWork(id: string, ref: DetailRef, cursor?: number, chain = false): Promise { + return this.request('GET', `/api/threads/${id}/history/work?${chain ? 'chain=1&' : ''}turn=${encodeURIComponent(ref.turnId)}&id=${ref.id}${cursor ? `&cursor=${cursor}&version=${ref.version}` : ''}`); + } + + historyDetail(id: string, ref: DetailRef, cursor?: number, path?: string): Promise { + return this.request('GET', `/api/threads/${id}/history/detail?turn=${encodeURIComponent(ref.turnId)}&id=${ref.id}${cursor ? `&cursor=${cursor}&version=${ref.version}` : ''}${path === undefined ? '' : `&path=${encodeURIComponent(path)}`}`); + } + + historyToolOutput(id: string, ref: DetailRef): Promise<{ output: string }> { + return this.request('GET', `/api/threads/${id}/history/tool-output?turn=${encodeURIComponent(ref.turnId)}&id=${ref.id}`); + } + + /** A thread's whole log, with streamed fragments merged: for copying the conversation out. */ + allEvents(id: string): Promise { + return this.request('GET', `/api/threads/${id}/events?all=1`); + } + + /** + * The newest turns of a thread: what a reopened page renders before any history is paged in. + * Pages begin where a turn begins, and streamed fragments come merged. + */ + eventsTail(id: string): Promise { + return this.request('GET', `/api/threads/${id}/events?tail=1`); + } + + /** The page of turns just before the given sequence number. */ + eventsBefore(id: string, before: number): Promise { + return this.request('GET', `/api/threads/${id}/events?before=${before}`); + } + + createThread(input: { + workMode?: WorkMode; + speed?: string | null; + agent: string; + cwd: string; + title?: string; + permissionMode?: string; + model?: string | null; + effort?: string | null; + sectionId?: string | null; + /** Start in a new git worktree under the repository's `.worktrees/`. */ + worktree?: boolean; + /** In no project: the hub gives the thread a scratch folder of its own; `cwd` is ignored. */ + scratch?: boolean; + }): Promise { + return this.request('POST', '/api/threads', input); + } + + /** Whether a new thread in this directory could start in a git worktree of its own. */ + worktreeOptions(cwd: string): Promise { + return this.request('GET', `/api/worktree-options?cwd=${encodeURIComponent(cwd)}`); + } + + teams(): Promise { return this.request('GET', '/api/teams'); } + team(id: string): Promise { return this.request('GET', `/api/teams/${id}`); } + teamTemplate(): Promise { return this.request('GET', '/api/teams/template'); } + saveTeam(value: TeamDefinition): Promise { return this.request(value.id ? 'PUT' : 'POST', `/api/teams${value.id ? '/' + value.id : ''}`, value); } + deleteTeam(id: string): Promise { return this.request('DELETE', `/api/teams/${id}`); } + importTeam(value: unknown): Promise { return this.request('POST', '/api/teams/import', value); } + exportTeam(id: string): Promise { return this.request('GET', `/api/teams/${id}/export`); } + dispatchTeam(id: string, text: string, cwd: string): Promise<{ taskId: string; threadId: string }> { return this.request('POST', `/api/teams/${id}/tasks`, { text, cwd, source: { kind: 'web' } }); } + + coordination(id: string): Promise { return this.request('GET', `/api/threads/${id}/coordination`); } + /** Turns of any thread on this machine, archived ones too, in which the words were said. */ + search(query: string): Promise { + return this.request('GET', `/api/search?q=${encodeURIComponent(query)}`); + } + + /** The daily digest of what was asked and what was called, newest day last. */ + activity(days = 14): Promise { + return this.request('GET', `/api/activity?days=${days}`); + } + + /** One turn of a thread as a trace; the last turn when none is named. */ + trace(threadId: string, turnId?: string): Promise { + return this.request('GET', `/api/threads/${threadId}/trace${turnId ? `?turn=${encodeURIComponent(turnId)}` : ''}`); + } + + /** The whole prompt a thread's conversation runs with, as the agent itself persisted it. */ + systemPrompt(threadId: string): Promise { + return this.request('GET', `/api/threads/${threadId}/system-prompt`); + } + + configureCoordination(id: string, body: { action?: string; directories?: string[]; defaults?: Record; permission?: string }): Promise { + return this.request('POST', `/api/threads/${id}/coordination`, body); + } + + /** Sends a message. With `queue`, one sent while a turn is running waits for that turn to finish. */ + startTurn( + threadId: string, + text: string, + images: OutgoingImage[] = [], + opts: { queue?: boolean; collaboration?: { directories?: string[]; defaults?: Record; permission?: string }; mentions?: AgentMention[]; videos?: string[]; workMode?: WorkMode } = {}, + ): Promise<{ turnId: string } | { queued: true; id: string }> { + return this.request('POST', `/api/threads/${threadId}/turns`, { + text, + ...(images.length ? { images } : {}), + ...(opts.queue ? { queue: true } : {}), + ...(opts.collaboration ? { collaboration: opts.collaboration } : {}), + ...(opts.mentions?.length ? { mentions: opts.mentions } : {}), + ...(opts.videos?.length ? { videos: opts.videos } : {}), + ...(opts.workMode ? { workMode: opts.workMode } : {}), + }); + } + + /** + * Edits an earlier message of the user's and sends it again from there. The page reloads the + * conversation the daemon keeps; the old turns stay out of it. + */ + editTurn( + threadId: string, + turnId: string, + input: { text: string; images: string[]; revision: number; requestId: string }, + ): Promise<{ turnId: string; revision: number }> { + return this.request('POST', `/api/threads/${threadId}/turns/${turnId}/edit`, input); + } + + /** Takes a waiting message out of the queue; it comes back whole, so it can be edited. */ + removeQueued(threadId: string, queuedId: string): Promise<{ text: string; images: OutgoingImage[]; videos?: VideoRef[]; mentions?: AgentMention[] }> { + return this.request('DELETE', `/api/threads/${threadId}/queue/${queuedId}`); + } + + /** Interrupts the running turn and sends this waiting message next. */ + sendQueuedNow(threadId: string, queuedId: string): Promise { + return this.request('POST', `/api/threads/${threadId}/queue/${queuedId}/now`); + } + + /** An image file in the thread's directory that the agent made or mentioned. Rejects if there is none. */ + async threadFile(threadId: string, path: string): Promise { + const res = await fetch(this.url(`/api/threads/${threadId}/files?path=${encodeURIComponent(path)}`), { headers: this.headers() }); + if (res.status === 401) throw new AuthError('unauthorized'); + if (!res.ok) throw new ApiError(`HTTP ${res.status}`, {}, res.status); + return res.blob(); + } + + /** One folder of the thread's directory, for the file browser. No path: the directory itself. */ + threadTree(threadId: string, path?: string): Promise { + return this.request('GET', `/api/threads/${threadId}/tree${path ? `?path=${encodeURIComponent(path)}` : ''}`); + } + + /** A text file in the thread's directory. A binary one comes back with `text: null`. */ + threadText(threadId: string, path: string): Promise { + return this.request('GET', `/api/threads/${threadId}/text?path=${encodeURIComponent(path)}`); + } + + /** Starts writing mode, or moves it to another stage. */ + setWriting(threadId: string, stage: WritingStage): Promise { + return this.request('PUT', `/api/threads/${threadId}/writing`, { stage }); + } + + /** Ends writing mode; the body stays where it is. */ + endWriting(threadId: string): Promise { + return this.request('DELETE', `/api/threads/${threadId}/writing`); + } + + /** + * Saves a writing-mode body. Refused with 409 (`details.hash`: what is on disk now) when the file + * changed since `baseHash` was read. + */ + saveWritingText(threadId: string, path: string, text: string, baseHash: string): Promise<{ hash: string }> { + return this.request('PUT', `/api/threads/${threadId}/writing/text?path=${encodeURIComponent(path)}`, { text, baseHash }); + } + + /** Files in the thread's directory whose path has every word of the query, relative to `root`. */ + findFiles(threadId: string, query: string): Promise<{ root: string; paths: string[]; truncated: boolean }> { + return this.request('GET', `/api/threads/${threadId}/find?q=${encodeURIComponent(query)}`); + } + + /** + * A short-lived, signed address for one of the thread's files, for a `