From 50473d2d26e06121c4f09fa8722ac4b4fb04874a Mon Sep 17 00:00:00 2001 From: Krzysztof kuhy Rudnicki Date: Fri, 20 Nov 2026 15:33:19 +0100 Subject: [PATCH] kuhy_credit: web element, Godot, Flutter, CI, README Todo: 3a5477b9 Co-Authored-By: Claude Opus 5.5 --- .github/workflows/kuhy-credit-drift.yml | 22 + .github/workflows/kuhy-credit-tests.yml | 96 ++ CLAUDE.md | 3 + kuhy_credit/.gitignore | 6 + kuhy_credit/README.md | 140 ++ kuhy_credit/e2e/browser.py | 149 ++ kuhy_credit/e2e/flutter_web_e2e.py | 72 + kuhy_credit/e2e/web_e2e.py | 81 ++ kuhy_credit/flutter/analysis_options.yaml | 38 + .../flutter/example/analysis_options.yaml | 4 + kuhy_credit/flutter/example/lib/main.dart | 44 + kuhy_credit/flutter/example/pubspec.lock | 297 ++++ kuhy_credit/flutter/example/pubspec.yaml | 18 + kuhy_credit/flutter/lib/kuhy_credit.dart | 5 + .../flutter/lib/src/credit_data.g.dart | 2 + kuhy_credit/flutter/lib/src/kuhy_credit.dart | 268 ++++ kuhy_credit/flutter/pubspec.lock | 290 ++++ kuhy_credit/flutter/pubspec.yaml | 21 + .../flutter/test/kuhy_credit_test.dart | 235 ++++ kuhy_credit/generator/emit.py | 24 +- kuhy_credit/generator/tokens.py | 10 +- kuhy_credit/godot/.gdlintrc | 4 + kuhy_credit/godot/.gitignore | 3 + kuhy_credit/godot/.gutconfig.json | 9 + .../godot/addons/kuhy_credit/credit_data.gd | 17 +- .../godot/addons/kuhy_credit/kuhy_credit.gd | 143 ++ .../godot/addons/kuhy_credit/kuhy_credit.tscn | 6 + kuhy_credit/godot/demo/demo.gd | 27 + kuhy_credit/godot/demo/demo.tscn | 10 + kuhy_credit/godot/lint.sh | 33 + kuhy_credit/godot/project.godot | 20 + kuhy_credit/godot/test.sh | 107 ++ kuhy_credit/godot/tests/test_demo_e2e.gd | 31 + kuhy_credit/godot/tests/test_kuhy_credit.gd | 143 ++ kuhy_credit/kuhy_credit/__init__.py | 2 +- kuhy_credit/kuhy_credit/_data.py | 4 +- kuhy_credit/kuhy_credit/demo.py | 2 +- kuhy_credit/kuhy_credit/tk.py | 2 +- kuhy_credit/pyproject.toml | 2 + kuhy_credit/requirements-dev.txt | 4 + kuhy_credit/tests/conftest.py | 34 +- kuhy_credit/tests/test_generator.py | 33 +- kuhy_credit/tests/test_tk.py | 2 + kuhy_credit/web/demo/index.html | 21 + kuhy_credit/web/demo/theme.js | 8 + kuhy_credit/web/package.json | 36 + kuhy_credit/web/pnpm-lock.yaml | 1195 +++++++++++++++++ kuhy_credit/web/src/credit-data.js | 4 +- kuhy_credit/web/src/kuhy-credit.d.ts | 26 + kuhy_credit/web/src/kuhy-credit.js | 112 ++ kuhy_credit/web/src/kuhy-credit.test.js | 132 ++ kuhy_credit/web/vitest.config.js | 13 + scripts/deploy.sh | 1 + 53 files changed, 3988 insertions(+), 23 deletions(-) create mode 100644 .github/workflows/kuhy-credit-drift.yml create mode 100644 .github/workflows/kuhy-credit-tests.yml create mode 100644 kuhy_credit/.gitignore create mode 100644 kuhy_credit/README.md create mode 100644 kuhy_credit/e2e/browser.py create mode 100644 kuhy_credit/e2e/flutter_web_e2e.py create mode 100644 kuhy_credit/e2e/web_e2e.py create mode 100644 kuhy_credit/flutter/analysis_options.yaml create mode 100644 kuhy_credit/flutter/example/analysis_options.yaml create mode 100644 kuhy_credit/flutter/example/lib/main.dart create mode 100644 kuhy_credit/flutter/example/pubspec.lock create mode 100644 kuhy_credit/flutter/example/pubspec.yaml create mode 100644 kuhy_credit/flutter/lib/kuhy_credit.dart create mode 100644 kuhy_credit/flutter/lib/src/kuhy_credit.dart create mode 100644 kuhy_credit/flutter/pubspec.lock create mode 100644 kuhy_credit/flutter/pubspec.yaml create mode 100644 kuhy_credit/flutter/test/kuhy_credit_test.dart create mode 100644 kuhy_credit/godot/.gdlintrc create mode 100644 kuhy_credit/godot/.gitignore create mode 100644 kuhy_credit/godot/.gutconfig.json create mode 100644 kuhy_credit/godot/addons/kuhy_credit/kuhy_credit.gd create mode 100644 kuhy_credit/godot/addons/kuhy_credit/kuhy_credit.tscn create mode 100644 kuhy_credit/godot/demo/demo.gd create mode 100644 kuhy_credit/godot/demo/demo.tscn create mode 100755 kuhy_credit/godot/lint.sh create mode 100644 kuhy_credit/godot/project.godot create mode 100755 kuhy_credit/godot/test.sh create mode 100644 kuhy_credit/godot/tests/test_demo_e2e.gd create mode 100644 kuhy_credit/godot/tests/test_kuhy_credit.gd create mode 100644 kuhy_credit/requirements-dev.txt create mode 100644 kuhy_credit/web/demo/index.html create mode 100644 kuhy_credit/web/demo/theme.js create mode 100644 kuhy_credit/web/package.json create mode 100644 kuhy_credit/web/pnpm-lock.yaml create mode 100644 kuhy_credit/web/src/kuhy-credit.d.ts create mode 100644 kuhy_credit/web/src/kuhy-credit.js create mode 100644 kuhy_credit/web/src/kuhy-credit.test.js create mode 100644 kuhy_credit/web/vitest.config.js diff --git a/.github/workflows/kuhy-credit-drift.yml b/.github/workflows/kuhy-credit-drift.yml new file mode 100644 index 0000000..93f1cf7 --- /dev/null +++ b/.github/workflows/kuhy-credit-drift.yml @@ -0,0 +1,22 @@ +name: kuhy_credit drift + +# Not path-filtered, like palette-drift: the sources live outside kuhy_credit/ +# (the M1 art, web_ui's tokens.css), so an edit there must be able to fail it. +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + drift: + runs-on: ubuntu-latest + defaults: + run: + working-directory: kuhy_credit + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: { python-version: "3.15.2" } + - name: Every stack's generated file matches credit.json, the art and the tokens + run: python3 -m generator.generate --check diff --git a/.github/workflows/kuhy-credit-tests.yml b/.github/workflows/kuhy-credit-tests.yml new file mode 100644 index 0000000..7943a72 --- /dev/null +++ b/.github/workflows/kuhy-credit-tests.yml @@ -0,0 +1,96 @@ +name: kuhy_credit tests + +on: + push: + branches: [main] + paths: ['kuhy_credit/**', 'flutter_web_drive/**', '.github/workflows/kuhy-credit-tests.yml'] + pull_request: + branches: [main] + paths: ['kuhy_credit/**', 'flutter_web_drive/**', '.github/workflows/kuhy-credit-tests.yml'] + +env: + GODOT_VERSION: "4.7.2" + +jobs: + python: + runs-on: ubuntu-latest + defaults: + run: + working-directory: kuhy_credit + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: { python-version: "3.15.2" } + - name: Install the package, pytest and a virtual X display + run: | + sudo apt-get update && sudo apt-get install -y xvfb python3-tk + pip install -r requirements-dev.txt && pip install --no-deps -e . + - name: Lint + run: ruff check . && ruff format --check . + - name: Tests, Tk E2E and the drift check, 100% branch coverage + run: xvfb-run -a -s "-screen 0 1600x1200x24" python -m pytest -q + + web: + runs-on: ubuntu-latest + defaults: + run: + working-directory: kuhy_credit/web + steps: + - uses: actions/checkout@v4 + - uses: pnpm/action-setup@v4 + with: { version: 12 } + - uses: actions/setup-node@v4 + with: { node-version: "26.13.1" } + - uses: actions/setup-python@v5 + with: { python-version: "3.15.2" } + - run: pnpm install --frozen-lockfile + - run: pnpm lint + - name: Unit tests, 100% coverage + run: pnpm coverage + - name: E2E in headless Chrome (window.open stubbed) + working-directory: . + env: { CHROMIUM: google-chrome } + run: | + pip install -r flutter_web_drive/requirements.txt + python3 kuhy_credit/e2e/web_e2e.py + + flutter: + runs-on: ubuntu-latest + defaults: + run: + working-directory: kuhy_credit/flutter + steps: + - uses: actions/checkout@v4 + - uses: subosito/flutter-action@v2 + with: { channel: stable } + - uses: actions/setup-python@v5 + with: { python-version: "3.15.2" } + - run: flutter pub get + - run: flutter analyze + - name: Widget tests, 100% line coverage + run: flutter test --coverage && ../../scripts/check_coverage.sh coverage/lcov.info 100 + - name: Example web build + E2E in headless Chrome (window.open stubbed) + env: { CHROMIUM: google-chrome } + run: | + (cd example && flutter pub get && flutter analyze && flutter build web --release) + pip install -r ../../flutter_web_drive/requirements.txt + python3 ../e2e/flutter_web_e2e.py + + godot: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: { python-version: "3.15.2" } + - name: Install Godot + run: | + curl -fsSL -o godot.zip "https://github.com/godotengine/godot/releases/download/${GODOT_VERSION}-stable/Godot_v${GODOT_VERSION}-stable_linux.x86_64.zip" + unzip -q godot.zip + chmod +x "Godot_v${GODOT_VERSION}-stable_linux.x86_64" + sudo mv "Godot_v${GODOT_VERSION}-stable_linux.x86_64" /usr/local/bin/godot + rm godot.zip + - name: Lint (gdlint, gdformat) + run: pip install -r godot_dev_tools/requirements-dev.txt && kuhy_credit/godot/lint.sh + - name: GUT unit tests + demo E2E (GUT fetched at its pinned tag) + env: { KUHY_CREDIT_GODOT_TIMEOUT: "50" } + run: kuhy_credit/godot/test.sh diff --git a/CLAUDE.md b/CLAUDE.md index fae5d51..863654d 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -4,6 +4,9 @@ Monorepo of shared gates and libraries (app_errors, dep_freshness, file_length, repo_contract, coverage_gaps, crdt-sync, gatelock, freedays, sickdays, earned_time, music_theory, game_recording, flutter_web_drive (headless Flutter-web E2E driver + MCP), ...). `godot_dev_tools/` is a Godot addon (GDScript): `godot_dev_tools/test.sh` runs its GUT tests. +`kuhy_credit/` is the shared "Created by kuhy" credit, one implementation per stack (web, Flutter, +Godot, Tk, terminal) generated from `kuhy_credit/credit.json`; `kuhy_credit/README.md` lists each +stack's test and E2E command, `python -m generator.generate --check` (from `kuhy_credit/`) the drift check. Python packages with a root-level `/tests` run with `PYTHONPATH=.`; subprojects with their own `pyproject.toml` run via `scripts/run_subproject_tests.sh `. `scripts/check_repo_contract.sh` is the REAL shared gate (not a shim): never diff --git a/kuhy_credit/.gitignore b/kuhy_credit/.gitignore new file mode 100644 index 0000000..02a2436 --- /dev/null +++ b/kuhy_credit/.gitignore @@ -0,0 +1,6 @@ +# Tool output, never committed. +web/node_modules/ +web/coverage/ +flutter/.dart_tool/ +flutter/coverage/ +flutter/example/.dart_tool/ diff --git a/kuhy_credit/README.md b/kuhy_credit/README.md new file mode 100644 index 0000000..b9b7d92 --- /dev/null +++ b/kuhy_credit/README.md @@ -0,0 +1,140 @@ +# kuhy_credit + +One "Created by kuhy" credit for every kuhy repo. The user sees the M1 logo. A +click or tap opens a small panel with the logo and the words "Created by kuhy". +A click or tap on the panel opens https://kuhy.duckdns.org in the system +browser. Escape, a click outside the panel and a second logo click close it. +Nothing loads over the network and nothing opens without a click. + +## Where the data lives + +- `credit.json` holds the URL, the text and the paths of the two sources it + reads: the M1 art (`unified-design-system/logo/final/kuhy.svg`) and the + design tokens (`web_ui/src/tokens.css`). +- `generator/generate.py` writes each stack's data file from those sources. + Never edit a generated file by hand: + + | Stack | Generated file | + | -------- | ----------------------------------------- | + | python | `kuhy_credit/_data.py` | + | web | `web/src/credit-data.js` | + | flutter | `flutter/lib/src/credit_data.g.dart` | + | godot | `godot/addons/kuhy_credit/credit_data.gd` | + | terminal | `terminal/kuhy-credit.sh` | + +- `python -m generator.generate --check` (from `kuhy_credit/`) fails and names + every stack whose file differs from the sources. CI runs it on every push. + +## Decisions (change them here if you disagree) + +- Placement: web footer, Flutter about screen, Godot main-menu corner. The + panel opens above the logo, aligned to its end edge; each stack has a + "below" and a "start" option. +- Lockers and gate windows get no credit. The Tk widget ships but no locker + uses it. +- Distribution: a git dependency pinned to the tag `kuhy-credit-v` + (version in `pyproject.toml`, `web/package.json` and + `flutter/pubspec.yaml`, kept equal). Never copy the files into a repo by hand. + +## Web (plain HTML, Astro, React/Vite) + +```jsonc +// package.json +"@kuhyx/kuhy-credit": "github:kuhyx/utils#kuhy-credit-v0.1.0&path:kuhy_credit/web" +``` + +```html + +
+``` + +In Astro, put the same `import` in a ` + + + +
+ + diff --git a/kuhy_credit/web/demo/theme.js b/kuhy_credit/web/demo/theme.js new file mode 100644 index 0000000..9f61d19 --- /dev/null +++ b/kuhy_credit/web/demo/theme.js @@ -0,0 +1,8 @@ +// ?theme=light|dark forces both the page tokens and the credit's theme. +const theme = new URLSearchParams(location.search).get("theme"); +if (theme === "light" || theme === "dark") { + document.documentElement.style.colorScheme = theme; + document.querySelector("kuhy-credit").setAttribute("theme", theme); + const surface = { dark: "#211d1b", light: "#f6f4f3" }[theme]; + document.body.style.background = surface; +} diff --git a/kuhy_credit/web/package.json b/kuhy_credit/web/package.json new file mode 100644 index 0000000..d72702f --- /dev/null +++ b/kuhy_credit/web/package.json @@ -0,0 +1,36 @@ +{ + "name": "@kuhyx/kuhy-credit", + "version": "0.1.0", + "private": false, + "type": "module", + "description": ": the shared 'Created by kuhy' logo credit as a dependency-free custom element.", + "license": "MIT", + "engines": { + "node": ">=24", + "pnpm": ">=10" + }, + "packageManager": "pnpm@12.21.0+sha512.66fd8278ee28935ce951792d34367ff3af5c432a2756445823029533835b8da529bbe0be5130afd56ed0713fb8789e47bad82d93bd5ae2fe54b15562d6276ef0", + "files": [ + "src/kuhy-credit.js", + "src/kuhy-credit.d.ts", + "src/credit-data.js" + ], + "main": "./src/kuhy-credit.js", + "types": "./src/kuhy-credit.d.ts", + "exports": { + ".": { + "types": "./src/kuhy-credit.d.ts", + "default": "./src/kuhy-credit.js" + } + }, + "scripts": { + "lint": "node --check src/kuhy-credit.js && node --check src/credit-data.js", + "test": "vitest run", + "coverage": "vitest run --coverage" + }, + "devDependencies": { + "@vitest/coverage-v8": "5.1.1", + "jsdom": "31.0.1", + "vitest": "5.1.1" + } +} diff --git a/kuhy_credit/web/pnpm-lock.yaml b/kuhy_credit/web/pnpm-lock.yaml new file mode 100644 index 0000000..b2a872c --- /dev/null +++ b/kuhy_credit/web/pnpm-lock.yaml @@ -0,0 +1,1195 @@ +--- +lockfileVersion: '9.0' + +importers: + + .: + configDependencies: {} + packageManagerDependencies: + pnpm: + specifier: 12.21.0 + version: 12.21.0 + +packages: + + '@pnpm/exe.android-arm64@12.21.0': + resolution: {integrity: sha512-iaWidxR5B9NUBpwMznCQu1yUpKB6BjTY5BYX2lORj76VsfINdj8Z8XWSzSNrGI8qlxa28Jzdp5fiaspzOaJZlA==} + cpu: [arm64] + os: [android] + + '@pnpm/exe.android-x64@12.21.0': + resolution: {integrity: sha512-35e5v3wlwjIYxDywq+R6/z8CE4gLOEgRxt18yqz1tMRLmx2mnW+CFJI2Q8+srTNjn7gykXUC0x1k195JNikC5A==} + cpu: [x64] + os: [android] + + '@pnpm/exe.darwin-arm64@12.21.0': + resolution: {integrity: sha512-F5OyMX/6zLSowpTZEQRojbCmPS1Pq+fyRaIinslsIe6Glh3qbyQ52u+Fe0eEzSaRuIbWZkXmAAXSWh6Q5Wrlgg==} + cpu: [arm64] + os: [darwin] + + '@pnpm/exe.darwin-x64@12.21.0': + resolution: {integrity: sha512-EzpvcsaE6hrrgYeEiAFYd2rSgFybYyxXhkAY7K3y6Hg3loVfcyJ81hHczpFzi8lW5RXtUlFECRPZ8ZAMRFQYYg==} + cpu: [x64] + os: [darwin] + + '@pnpm/exe.freebsd-x64@12.21.0': + resolution: {integrity: sha512-wNjuEnmdLks4aayPu/QZWQ5tQM9Jn+odUp/vwQM8BXRYoulkTZhtZTHoD60N6mUdLWef1hgUeUh8llNGEUsimw==} + cpu: [x64] + os: [freebsd] + + '@pnpm/exe.linux-arm64-musl@12.21.0': + resolution: {integrity: sha512-Ceit9zn4g5ZqCJtx1fV8eJE7p8aeXMrGZ+Dc01vRqZLIUNgNeI+Ur0ruyqxtsnJx6rGADyXzohumxPLHjaJ5AQ==} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@pnpm/exe.linux-arm64@12.21.0': + resolution: {integrity: sha512-4Oj/iF2TDCe2lcH0n4TupPR5sSdrNLclJB6xBElLMPCUOAvBhdf2rRlSaO5M4erJ6g4Fyy7YTXTpcmfFsKyxEA==} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@pnpm/exe.linux-ppc64@12.21.0': + resolution: {integrity: sha512-s2o7rdSDeUTBFsNqxptpZXlTgT6cojmMVUOvTQvFNSv6Easian02ha4tR32fwwD97Au4YzIIjMCwywCF4D82Sw==} + cpu: [ppc64] + os: [linux] + libc: [glibc] + + '@pnpm/exe.linux-riscv64@12.21.0': + resolution: {integrity: sha512-EYv3GzxeBTITCuM3yGHHbpRFpUvyulkXpQ6LsjKAQNL3iaba1E6h9iDmlouLb3Io4AMMsfdk0/uG6poQ41uewA==} + cpu: [riscv64] + os: [linux] + libc: [glibc] + + '@pnpm/exe.linux-s390x@12.21.0': + resolution: {integrity: sha512-8VXGNGVNEfs7pL9GTZOzFxjFEnMt4WL3rLOADR5/kPQ7ROTV9GfpVI2DPO/zArXFSkvfc9Zad/WypHLbvzoaTQ==} + cpu: [s390x] + os: [linux] + libc: [glibc] + + '@pnpm/exe.linux-x64-musl@12.21.0': + resolution: {integrity: sha512-MnC5vpIXYubhDZCgCwlfJMg7Cg6HupN2IuouT9gD/tUmOfVdQYqeyYccWbthyo/Jeto8de1oQlxeRN1+1Hl2DQ==} + cpu: [x64] + os: [linux] + libc: [musl] + + '@pnpm/exe.linux-x64@12.21.0': + resolution: {integrity: sha512-8eufCjHXspKbNS/kh8q4Q0gqJoOuvC4Q5pgos6XS8By/nAMtP+jf8F1Cw9er840kfAX+PJ/ts+A9qnLE91rvXQ==} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@pnpm/exe.netbsd-x64@12.21.0': + resolution: {integrity: sha512-eyh1M8hQZCkLWxuva7S/fc1SbFbgqg0/5di0dgWmyiuc2Io3dbWVihDun8X+XM8zsR5uhIDvvZpbS9aZQbCovg==} + cpu: [x64] + os: [netbsd] + + '@pnpm/exe.win32-arm64@12.21.0': + resolution: {integrity: sha512-7xTxxUXo/grRLivSeIl6B21gnsz7ooe5EMPcJmQqwxc8WLJVReN8MzrlHru8bqXfVr4X3+6ZGZscntKenlCBqQ==} + cpu: [arm64] + os: [win32] + + '@pnpm/exe.win32-x64@12.21.0': + resolution: {integrity: sha512-9TpkJemVApxJ1Z1w0ZFGN+AuSx4nJOqXSJUqMqDvaXTYwGOzvBiiWdFP9GN0ketiWCQS1Q0/pza2E7I3pP0OBQ==} + cpu: [x64] + os: [win32] + + pnpm@12.21.0: + resolution: {integrity: sha512-Zv2CeO4ok1zpUXktNDZ/869cQyonVkRYIwKVM4NbjaUpu+C+UTCv1W7QcT+4eJ5Hutgtk71a4v5UsVVi1idu8A==} + engines: {node: '>=18'} + hasBin: true + +snapshots: + + '@pnpm/exe.android-arm64@12.21.0': + optional: true + + '@pnpm/exe.android-x64@12.21.0': + optional: true + + '@pnpm/exe.darwin-arm64@12.21.0': + optional: true + + '@pnpm/exe.darwin-x64@12.21.0': + optional: true + + '@pnpm/exe.freebsd-x64@12.21.0': + optional: true + + '@pnpm/exe.linux-arm64-musl@12.21.0': + optional: true + + '@pnpm/exe.linux-arm64@12.21.0': + optional: true + + '@pnpm/exe.linux-ppc64@12.21.0': + optional: true + + '@pnpm/exe.linux-riscv64@12.21.0': + optional: true + + '@pnpm/exe.linux-s390x@12.21.0': + optional: true + + '@pnpm/exe.linux-x64-musl@12.21.0': + optional: true + + '@pnpm/exe.linux-x64@12.21.0': + optional: true + + '@pnpm/exe.netbsd-x64@12.21.0': + optional: true + + '@pnpm/exe.win32-arm64@12.21.0': + optional: true + + '@pnpm/exe.win32-x64@12.21.0': + optional: true + + pnpm@12.21.0: + optionalDependencies: + '@pnpm/exe.android-arm64': 12.21.0 + '@pnpm/exe.android-x64': 12.21.0 + '@pnpm/exe.darwin-arm64': 12.21.0 + '@pnpm/exe.darwin-x64': 12.21.0 + '@pnpm/exe.freebsd-x64': 12.21.0 + '@pnpm/exe.linux-arm64': 12.21.0 + '@pnpm/exe.linux-arm64-musl': 12.21.0 + '@pnpm/exe.linux-ppc64': 12.21.0 + '@pnpm/exe.linux-riscv64': 12.21.0 + '@pnpm/exe.linux-s390x': 12.21.0 + '@pnpm/exe.linux-x64': 12.21.0 + '@pnpm/exe.linux-x64-musl': 12.21.0 + '@pnpm/exe.netbsd-x64': 12.21.0 + '@pnpm/exe.win32-arm64': 12.21.0 + '@pnpm/exe.win32-x64': 12.21.0 + +--- +lockfileVersion: '9.0' + +settings: + autoInstallPeers: true + excludeLinksFromLockfile: false + +importers: + + .: + devDependencies: + '@vitest/coverage-v8': + specifier: 5.1.1 + version: 5.1.1(vitest@5.1.1) + jsdom: + specifier: 31.0.1 + version: 31.0.1 + vitest: + specifier: 5.1.1 + version: 5.1.1(@vitest/coverage-v8@5.1.1)(jsdom@31.0.1)(vite@8.3.8) + +packages: + + '@babel/helper-string-parser@7.29.14': + resolution: {integrity: sha512-CXvKMFvM80ihI7Vox9jb+kQjnyjESQNPM+vB7U0Zz6TWuZA+Z/FL0QPMH300h33qJtIx+REeBhXqWOPW48TcAQ==} + engines: {node: '>=6.9.0'} + + '@babel/helper-validator-identifier@7.29.7': + resolution: {integrity: sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg==} + engines: {node: '>=6.9.0'} + + '@babel/parser@7.29.14': + resolution: {integrity: sha512-VL220vXuyO2z3rNIQwY7ftj9UwpqOt+33sH+sBWkOekbsSR2g7EEMnOx24ZlCH0xOA3DM/33SifVFGbnJD8r/w==} + engines: {node: '>=6.0.0'} + hasBin: true + + '@babel/types@7.29.14': + resolution: {integrity: sha512-UjI/dKmwJwT9pOszJitq2G6EObZPnsZUfdCr92z2TlF3EZK9J3EdfOKUrCzHl6wFthbzwhzl1Soc/UIwxRiq6w==} + engines: {node: '>=6.9.0'} + + '@bcoe/v8-coverage@1.0.2': + resolution: {integrity: sha512-6zABk/ECA/QYSCQ1NGiVwwbQerUCZ+TQbp64Q3AgmfNvurHH0j8TtXa1qbShXA6qqkpAj4V5W8pP6mLe1mcMqA==} + engines: {node: '>=18'} + + '@emnapi/core@2.0.0-beta.2': + resolution: {integrity: sha512-MzCVoWtcg4Pm2B3je5mMvYMvj3MmBKw+fU7vbsJc9/iT8ip6/eYIHo/Dsm/mr+wsHB6SEyJDuxB09Yy6r/8+4A==} + + '@emnapi/runtime@2.0.0-beta.2': + resolution: {integrity: sha512-JcrSPzPvZuNZvJqPTF9Fw25LbOJ8avzFVlaf2grmH4Cku0oGP47tRgqPZadcfj3YoZMHkFVnCYFbQM8I+i5QEw==} + + '@emnapi/wasi-threads@2.2.0': + resolution: {integrity: sha512-JP7OYH38Q7+pyTAe14raZHLQIK7BDKbdwji+Xi3pcd/6QkJYQH3SX4wu6EplGrGJWRepoNzedfm0G3B9Z4e9Rw==} + + '@exodus/bytes@1.16.0': + resolution: {integrity: sha512-IcpW84uEn3N7ETtNZMlxKhfl6Pec8rUNGOTBtWbK1FKhJxIFAptZyVrvVRVBimAJxJCgc3PxepxkdWWG4DVzfA==} + engines: {node: ^20.19.0 || ^22.12.0 || >=24.0.0} + peerDependencies: + '@noble/hashes': ^1.8.0 || ^2.0.0 + peerDependenciesMeta: + '@noble/hashes': + optional: true + + '@jridgewell/resolve-uri@3.1.3': + resolution: {integrity: sha512-lhTtjtoEArWBjismtfS761S9Hlyn+nIZqOZVYoZ1Xn82PMNMVnk+jj/NhC4fAXGTs7ydONcJiR5vyQBTMDu27g==} + engines: {node: '>=6.0.0'} + + '@jridgewell/sourcemap-codec@1.6.0': + resolution: {integrity: sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==} + + '@jridgewell/trace-mapping@0.3.31': + resolution: {integrity: sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==} + + '@napi-rs/wasm-runtime@1.2.6': + resolution: {integrity: sha512-mRyDmEw9/fCDXCGfL1sbgIw/GUK0PVxRW4YwgPN61F3LQ+fSyoBFarJVzgGyhF6kRzEQZ0FejDqm4WLXSeqQmw==} + engines: {node: ^20.19.0 || ^22.13.0 || >=23.5.0} + peerDependencies: + '@emnapi/core': ^1.7.1 || 2.0.0-beta.2 + '@emnapi/runtime': ^1.7.1 || 2.0.0-beta.2 + + '@oxc-project/types@0.156.0': + resolution: {integrity: sha512-1Duyg48TdJNdyhEB8Xn1L36bT9Pv6GUtlKjHxOys8xkaF/rQq3XJE+bAurSK/AgIz5mGFsb77cn9Pb20+WCScw==} + + '@rolldown/binding-android-arm-eabi@1.2.19': + resolution: {integrity: sha512-e+Ebe0WT+9tbXmNKPIiC8YrWAHYwug3m6i4p3rZGGulfZri1jtI4HslT+OZnFf/OIHowWF71DTlHwXBP2SiA7A==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm] + os: [android] + + '@rolldown/binding-android-arm64@1.2.19': + resolution: {integrity: sha512-hOombrTJ+szt2ciEzS7oCA78lMPBgF5UMQWCJIyNfnrI7GLl8HYoFqCnpL2gcPOaXMqryGCU5ExdQKyDDcC+yA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [android] + + '@rolldown/binding-darwin-arm64@1.2.19': + resolution: {integrity: sha512-XoMA2pwCKGTQzUjPgtRwkedH4WmXhdIPKT6l6oOxd1PUbNodGI6DcBekgN7EC//+x3pfBYX/qL1gNmZAqivw5g==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [darwin] + + '@rolldown/binding-darwin-x64@1.2.19': + resolution: {integrity: sha512-zo8EsSSwMZCY/e+fRnGaX02YGgvJD0yvhNi/9hpGPA2MJ9ZF8dPCw75UGfpI6OpQ/myR/dIYmogRvqiZD0TrXg==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [darwin] + + '@rolldown/binding-freebsd-x64@1.2.19': + resolution: {integrity: sha512-O8ISAOfI1nj7AuBPd30FSF47z7f7lzlk5poQVGgiikvQuGEBFYvW8ki+UEnT+YJPnNGjQzn304klt4O9FUE7mA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [freebsd] + + '@rolldown/binding-linux-arm-gnueabihf@1.2.19': + resolution: {integrity: sha512-/lYCba5NO0yq4S0jGMH8QTBtkvQxoXjoQWzF5BcWp9MjB9jxVRD1GQDNofkVjcOj30DWyhLIN/4Oe60JKzaONw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm] + os: [linux] + + '@rolldown/binding-linux-arm64-gnu@1.2.19': + resolution: {integrity: sha512-pm/apFMBnSbFb3O6nG5pHO1iqHhZrjGDFEjSm+ot9J17XXPvH9L90y5h+jgfHCE+Qdlsvy8qKEcU4VKxgjD+vA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@rolldown/binding-linux-arm64-musl@1.2.19': + resolution: {integrity: sha512-K1SmQp3FFichn8oqrNIwvFoZ5wcvjC7goBzpaMNvLf9FZc+QB/QvLmnpJZgAAGHiD980tP8FZZnXk2K94rvlxg==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@rolldown/binding-linux-ppc64-gnu@1.2.19': + resolution: {integrity: sha512-I0xwD57jP/3A7+5UPZin2w8Y7XHEmEM5zqpYZOcQ45MlNW6tUJUziymV3yRr7rL4vwyfEcRsRksC4a7Kc08p5Q==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [ppc64] + os: [linux] + libc: [glibc] + + '@rolldown/binding-linux-s390x-gnu@1.2.19': + resolution: {integrity: sha512-BrtEHT24SNXj9HiXqy+s/kXiSiQGt6EKCPUlRirAoIioVxKGnbXBUEkbZASAei7iZJB0/Ynm+0JP00Ipx7AnSw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [s390x] + os: [linux] + libc: [glibc] + + '@rolldown/binding-linux-x64-gnu@1.2.19': + resolution: {integrity: sha512-rm75/9DkHKeU2WnA8w4X94WGYgLlDCFCfkQC+4bguVJmC/jvDRv2B+2wLOYhyE0fVuv7//Ckk39OoOufyCu76Q==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@rolldown/binding-linux-x64-musl@1.2.19': + resolution: {integrity: sha512-irh/4+iYFM4GAzpluDErgjz89bj6NDtqqMAG/6O1LG38Ed3NpyebzCpcVNkFW8uhy+/3/BocUvnXDR33CXWe9A==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [linux] + libc: [musl] + + '@rolldown/binding-openharmony-arm64@1.2.19': + resolution: {integrity: sha512-+KWTWNoPt+CfSq94CiceWu3yPE+QzkaG+phPyz9G60tmZLwfQkcA4AeksafzvJAw4pvg1mcd5a1TkUqVv0s4JA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [openharmony] + + '@rolldown/binding-wasm32-wasi@1.2.19': + resolution: {integrity: sha512-7EH+skOsl5qpWnK0vzamgJFhOv1cwxQpsxm8tI883K9fur5c27p8q87fzEO6BbBPabA2/+s/zR63/pLc137iOg==} + engines: {node: ^20.19.0 || ^22.13.0 || >=23.5.0} + cpu: [wasm32] + + '@rolldown/binding-win32-arm64-msvc@1.2.19': + resolution: {integrity: sha512-3Q1Yg1Q7tEvBWoZf5rFvG/GKZQPgwfru+p4wBajDfJFBs0SHCpL++dfTjW9gyAKd1T7ZpIYvdaUax7Pa/IhFVQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [win32] + + '@rolldown/binding-win32-x64-msvc@1.2.19': + resolution: {integrity: sha512-y/sqRRc6d7hECzOFc5n3LSeqctmIp9mMjY1Kq4s14uLPd/LZ4z7i1zrW6fMtp2mPeuQIC4e6ULMcwQzMomqQag==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [win32] + + '@rolldown/pluginutils@1.1.1': + resolution: {integrity: sha512-glFIJDvLNDtJhT9qrMFWLPbvS+skxgt4L0K8Ei2YtnhPysAJnsI7nyxSJxKj4ADeKX0OLjC4ntRkwpLOoS3rwA==} + + '@tybys/wasm-util@0.10.5': + resolution: {integrity: sha512-dOGOPxlaNV+G046mZzN+9C0dAcQZeSKcXiVaM0TYy/LM4ttTmgSBDxYfovcYI8Em3+eAbiAYpvWLOv8+ZVRJKA==} + + '@types/chai@5.2.3': + resolution: {integrity: sha512-Mw558oeA9fFbv65/y4mHtXDs9bPnFMZAL/jxdPFUpOHHIXX91mcgEHbS5Lahr+pwZFR8A7GQleRWeI6cGFC2UA==} + + '@types/deep-eql@4.0.2': + resolution: {integrity: sha512-c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw==} + + '@types/estree@1.0.10': + resolution: {integrity: sha512-lTyOMnOcmRBzdCv6/4zUZCrEhV0xrqQiUZBZtVcbmLHBXKLnN8q89v/wKRF/Q0HbwVsqbIG3o5HDoFl9sduM+g==} + + '@vitest/coverage-v8@5.1.1': + resolution: {integrity: sha512-xL4NkbVx/UqqDHaXSOyvB8qsSoLQ+dVNGR9H2Bh/4ggQtmaPFNPUC9gZQwKZePLOQ6WDcgwXVnPulFW9eCHt0w==} + peerDependencies: + '@vitest/browser': 5.1.1 + vitest: 5.1.1 + peerDependenciesMeta: + '@vitest/browser': + optional: true + + '@vitest/istanbul-lib-coverage@2.1.1': + resolution: {integrity: sha512-pF9nMHHuyQzyEXdkWX3d4wElEKjymfL5TEoofegJn/jK2WjmTLOcJKfJ7/YwYGYdbZf8Ebrt4VDUoBPiTuO9zg==} + engines: {node: '>=22'} + + '@vitest/istanbul-lib-report@2.1.1': + resolution: {integrity: sha512-Qba+8OpQQAbWrmq3u1olh6jqE/vyW4OYJe6TLrrTBpXhjJhbY7Os69wyVvMQmNA64KJhGd5nQ/c7l4io8tPCHQ==} + engines: {node: '>=22'} + + '@vitest/mocker@5.1.1': + resolution: {integrity: sha512-b2OgTB4+3ImWIVafXKazJXwLKwQxUNnix6b3xUvUTMh7RyXlrtzoxfZr8aEz9zkHOMAS4K5lu3TvFWoiVeVTQg==} + peerDependencies: + msw: ^2.4.9 || ^3.0.0 + vite: ^6.0.0 || ^7.0.0 || ^8.0.0 + peerDependenciesMeta: + msw: + optional: true + vite: + optional: true + + '@vitest/spy@5.1.1': + resolution: {integrity: sha512-6K8C6alQG1/Yc8/ZI22iJS7JEsxPdVzqtqDq+/xM4Z0mGVykemMVjLhqMy/q6/IHYG3kKD8hKSwRen/ZdyI9vQ==} + + assertion-error@2.0.1: + resolution: {integrity: sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==} + engines: {node: '>=12'} + + ast-v8-to-istanbul@1.0.8: + resolution: {integrity: sha512-lPdpagk13ANXV+HClJEpCZM7kUsl5XcvgqKzZhaj6Ve1ZFICcY2sGhAN1n1vT0tML6EclT7bfVgTxqL57Gkpow==} + + bcp-47-match@2.0.3: + resolution: {integrity: sha512-JtTezzbAibu8G0R9op9zb3vcWZd9JF6M0xOYGPn0fNCd7wOpRB1mU2mH9T8gaBGbAAyIIVgB2G7xG0GP98zMAQ==} + + bcp-47@2.1.2: + resolution: {integrity: sha512-wsv86UuNFuPnVieKLyECTT+CP1WSAHeoIg5P3xu2kA9Z+7fVPoKt7dxzSeEhtJel0AI+NW3fIW3KtTKQKUCngg==} + + chai@6.3.0: + resolution: {integrity: sha512-XWAtwJ6OHO+tj0EKCs0Y2UamnyOxseZWltU4x2U2wh8g4AigdjwvtUjvLP2tqkA/avxHEtzxNaqGq/YGNwckKg==} + engines: {node: '>=18'} + + data-urls@8.0.0: + resolution: {integrity: sha512-JQUCCK+/CAGbGGx618PlFZMXH81Jtj7t73CHv9dd/zVWvxgGT2zLFRjnKb+Ng46GIwcy+f7f88qd4duqllK+WQ==} + engines: {node: ^22.14.0 || >=24.0.0} + + decimal.js@10.6.0: + resolution: {integrity: sha512-YpgQiITW3JXGntzdUmyUR1V812Hn8T1YVXhCu+wO3OpS4eU9l4YdD3qjyiKdV6mvV29zapkMeD390UVEf2lkUg==} + + detect-libc@2.1.2: + resolution: {integrity: sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==} + engines: {node: '>=8'} + + entities@9.0.0: + resolution: {integrity: sha512-oJFNDJg3kTPwAD1cNn2+WmUq4wFoo09npc3Ydf1D7ED4smRiWrsKnaLxykrTWgyGEcusc87P5dxlAleol9kpkg==} + engines: {node: '>=20.19.0'} + + es-module-lexer@2.3.2: + resolution: {integrity: sha512-poHGpORABojJJucnV9KbOavETW8lBVnphkW77ER5/BQ5Fz7oXSoCNek7IH3vR5nRjdsEz926ibFYX8KtLQmdyw==} + + estree-walker@3.0.3: + resolution: {integrity: sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==} + + expect-type@1.4.0: + resolution: {integrity: sha512-KfYbmpRm0VbLjEvVa9yGwCi9GI34xvi7A/HXYWQO65CSD2u3MczUJSuwXKFIxlGsgBQizV9q5J9NHj4VG0n+pA==} + engines: {node: '>=12.0.0'} + + fdir@6.5.0: + resolution: {integrity: sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==} + engines: {node: '>=12.0.0'} + peerDependencies: + picomatch: ^3 || ^4 + peerDependenciesMeta: + picomatch: + optional: true + + fsevents@2.3.3: + resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==} + engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} + os: [darwin] + + html-encoding-sniffer@7.0.0: + resolution: {integrity: sha512-UikN5yr7xsCDAq87Or5or0PAlD3HJJOKVzM05az588WnpDJ4Ux7a2A53Qi6gofGg2/EtvF/H4hCi/TXfCW4Y6w==} + engines: {node: ^22.13.0 || >=24.0.0} + + is-alphabetical@2.0.1: + resolution: {integrity: sha512-FWyyY60MeTNyeSRpkM2Iry0G9hpr7/9kD40mD/cGQEuilcZYS4okz8SN2Q6rLCJ8gbCt6fN+rC+6tMGS99LaxQ==} + + is-alphanumerical@2.0.1: + resolution: {integrity: sha512-hmbYhX/9MUMF5uh7tOXyK/n0ZvWpad5caBA17GsC6vyuCqaWliRG5K1qS9inmUhEMaOBIW7/whAnSwveW/LtZw==} + + is-decimal@2.0.1: + resolution: {integrity: sha512-AAB9hiomQs5DXWcRB1rqsxGUstbRroFOPPVAomNk/3XHR5JyEZChOyTWe2oayKnsSsr/kcGqF+z6yuH6HHpN0A==} + + is-potential-custom-element-name@1.0.1: + resolution: {integrity: sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==} + + js-tokens@10.0.0: + resolution: {integrity: sha512-lM/UBzQmfJRo9ABXbPWemivdCW8V2G8FHaHdypQaIy523snUjog0W71ayWXTjiR+ixeMyVHN2XcpnTd/liPg/Q==} + + jsdom@31.0.1: + resolution: {integrity: sha512-CbhJL8ZQg3eKswxSZth4QO9tW0jPIhmR0vtSXQSbKSfWbwIT6hoRc17wdHIVTQ43KI0mdV5iTJr3281IDgVZ5g==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@napi-rs/canvas': ^1.0.13 + peerDependenciesMeta: + '@napi-rs/canvas': + optional: true + + lightningcss-android-arm64@1.33.0: + resolution: {integrity: sha512-gEpRTalKdosp4Bb8qWtc2iOgE5SeIHlpS1up9bFq2wAyYhl1UdTObYiHe98zEM9SQvSoqQZ1IQD0JNpg3Ml5pg==} + engines: {node: '>= 12.0.0'} + cpu: [arm64] + os: [android] + + lightningcss-darwin-arm64@1.33.0: + resolution: {integrity: sha512-Sciaz8eenNTKn9b3t7+xr0ipTp9YxKQY4npwQ3mrRuL0BAVHBLyZxofhaKBAVtzmtRZ/zTyo0/to4B1uWG/Djg==} + engines: {node: '>= 12.0.0'} + cpu: [arm64] + os: [darwin] + + lightningcss-darwin-x64@1.33.0: + resolution: {integrity: sha512-Z5UPAxzrjlWNNyGy6i65cJzzvgJ5D3T6wMvs+gWpY9d7qRhANrxqAp6LhxIgZhWEw18RfJTGcRxjuLIBr+m8XQ==} + engines: {node: '>= 12.0.0'} + cpu: [x64] + os: [darwin] + + lightningcss-freebsd-x64@1.33.0: + resolution: {integrity: sha512-QQM/Ti/hQajJwCY+RiWuCZ9sdtI/XQk7nDK5vC8kkdwixezOlDgvDx7+RT+QjK6FcFT4MpsuoBnHIo/O3StRRg==} + engines: {node: '>= 12.0.0'} + cpu: [x64] + os: [freebsd] + + lightningcss-linux-arm-gnueabihf@1.33.0: + resolution: {integrity: sha512-N7FVBe6iS24MlM6R/4RBTxGhQheZGs7tiQ9U32UtF75NzP5Q7xWPRqLBCKxlRQRk3rY1jCIPLzx7WzOhuUIRLQ==} + engines: {node: '>= 12.0.0'} + cpu: [arm] + os: [linux] + + lightningcss-linux-arm64-gnu@1.33.0: + resolution: {integrity: sha512-j2v/itmy4HlNxlc6voKXYgBqNi0Ng2LShg4z7GufpEgs05P+2suBVyi9I6YHq5uoVFx9ETin3eCEhLVyXGQnKg==} + engines: {node: '>= 12.0.0'} + cpu: [arm64] + os: [linux] + libc: [glibc] + + lightningcss-linux-arm64-musl@1.33.0: + resolution: {integrity: sha512-yiO5ROMuYQgXbC60yjZU5CYSFZGKXL0HFATXt9mHJn1+zW55oCtMI9NfcVhYLMFDL7gV7oBPon/EmMMGg2OvtQ==} + engines: {node: '>= 12.0.0'} + cpu: [arm64] + os: [linux] + libc: [musl] + + lightningcss-linux-x64-gnu@1.33.0: + resolution: {integrity: sha512-ar+Ju7LmcN0Jo4FpL4hpFybwNG9/3A/Br5KW2n2jyODg3MEZXaDYADdemoNS+BDNfMgKvylJLj4S5tyRActuAg==} + engines: {node: '>= 12.0.0'} + cpu: [x64] + os: [linux] + libc: [glibc] + + lightningcss-linux-x64-musl@1.33.0: + resolution: {integrity: sha512-RYiYbkokw0trfKqqzfF55lginwEPrD3OJDfTuJzFs1MK6iFnDenaz1fqLLtX4ITG3OktJQXOeTaw1awrBAlZPw==} + engines: {node: '>= 12.0.0'} + cpu: [x64] + os: [linux] + libc: [musl] + + lightningcss-win32-arm64-msvc@1.33.0: + resolution: {integrity: sha512-1K+MPfLSFVpphzpdbfkhlWk6wBrTObBzS2T6db10PNOZgR9GoVsAWzwNyuhUYYbTp23j+4RrncfujZ4uAzXvwA==} + engines: {node: '>= 12.0.0'} + cpu: [arm64] + os: [win32] + + lightningcss-win32-x64-msvc@1.33.0: + resolution: {integrity: sha512-OlEICDx/Xl0FqSp4bry8zFnCvGpig3Gl4gCquvYwHuqJKEC1+n9NgDniFvqHGmMv1ZkqDJrDqKKSykTDX+ehuA==} + engines: {node: '>= 12.0.0'} + cpu: [x64] + os: [win32] + + lightningcss@1.33.0: + resolution: {integrity: sha512-WkUDrojuJs0xkgGf2udWxa3yGBRxPtxUkB79i6aCZLRgc7PM8fZe9TosfPDcvEpQZbuFASnHYmRLBLUbmLOIIA==} + engines: {node: '>= 12.0.0'} + + lru-cache@11.5.3: + resolution: {integrity: sha512-U4N8FgzmWxc8k1VH8Kr6lQg18U7Fjvby6wXHVRX/ZZ7IwWbRMgrRbP0Wrb5q5NVinryp4SQampHKdvtecItxUg==} + engines: {node: 20 || >=22} + + magic-string@1.4.5: + resolution: {integrity: sha512-oLLC2+YvQUfAa+vxoufE/yc1icb87M9iXIRqAoR/2EhE/8cb3SF/+Gi0c2By1B+5Vz2e2vQtUvHiu1+63Znh+w==} + + magicast@0.5.5: + resolution: {integrity: sha512-UicdXN8zQ3JHlxVq+28afMXPr1z7WNY6+7EJnzTdQWkTAlMLF5fNCCKxJHBQwGaNGR11581EiQmQzx73+MvszA==} + + nanoid@3.3.20: + resolution: {integrity: sha512-uKdg2G3GNCKQn9byYOpxbGqrT2fGO5KRt5J/8b3pok8rT6qxGWF6hxMyJiEYtAf+FVyYuD9hRaDqX5uPFYJ4ZQ==} + engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} + hasBin: true + + obug@3.0.0: + resolution: {integrity: sha512-5vvB5+W7ePv+p3uqxi+RcW1XAzLW0/hxt3/4X4Lc4qHudzOhmBiBwOY6DRob4WnanAEGvNcLjF+KNOufrUoEQw==} + engines: {node: '>=12.20.0'} + + parse5-parser-stream@8.1.1: + resolution: {integrity: sha512-hMcVbbUJcQmP8rURWUdYrT1flRiBiBVjq/RYGguJpDUgIXSqdYKlE0CxthmdMWoSlBAuL5bUBa73g0pttSy7Hw==} + + parse5@8.1.1: + resolution: {integrity: sha512-EcR/6WDcU7b2N3vQSxKALCk9lXGtUMQxXio008OEMBE0kavu/7JLfBEeFPzi43nMqVDSbEn3QCK+BMCc9zO//w==} + + picocolors@1.1.1: + resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==} + + picomatch@4.0.7: + resolution: {integrity: sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==} + engines: {node: '>=12'} + + postcss@8.5.33: + resolution: {integrity: sha512-RVHEU9/Pp1Fnjr/MpAJsZoADukCKhfIi15OunEYiGktIkYLkPVvC1sioWolGDS7XByMTx9m/IGbro0Js13zhnQ==} + engines: {node: ^10 || ^12 || >=14} + + punycode@2.3.1: + resolution: {integrity: sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==} + engines: {node: '>=6'} + + rolldown@1.2.19: + resolution: {integrity: sha512-QIiV1J9d0pzN4jeeTH4sjPy0AZ6cAy2cG0ExeoE1+U8Rvj+hR3gYkokx0YbeUNGlZqiQJJ2utcETe0oKXwzsuA==} + engines: {node: ^20.19.0 || >=22.12.0} + hasBin: true + + saxes@6.0.0: + resolution: {integrity: sha512-xAg7SOnEhrm5zI3puOOKyy1OMcMlIJZYNJY7xLBwSze0UjhPLnWfj2GF2EpT0jmzaJKIWKHLsaSSajf35bcYnA==} + engines: {node: '>=v12.22.7'} + + source-map-js@1.2.4: + resolution: {integrity: sha512-J7ZjMvHd9O1fcT/5V09QWaaSl2BbWx3F6O08spde82Namf9UB0GxRVIPiNbVsdKkoizHiSpTodo3vp2bAy91MA==} + engines: {node: '>=6.0.0'} + + std-env@4.3.0: + resolution: {integrity: sha512-OtU/EgQ1kIm5KwqQpBC6ZEMXrZRui11w8zgfTWp8cdO9B8OaPsbA8bTHO2P+HNo1VlUTGMVBwPhydu6poeXiag==} + + tinybench@6.2.4: + resolution: {integrity: sha512-SQ52jEncXxbMCzJuY2A/jGIbbAu6NYsBWW7grz2pNE+EnzQdoGaoBfpk4qC/opE7qiUcGmGgaGIz5EoHdS1O9w==} + engines: {node: '>=20.0.0'} + + tinyexec@1.3.1: + resolution: {integrity: sha512-GCvB3aoys96IuDFBMcTB46JOR6mdMtAToqwiW8JlWhsoh1mhHi/xn9ss/Dg7N555GiJyEt2qzoG/NHCwM6h1EA==} + engines: {node: '>=18'} + + tinyglobby@0.2.17: + resolution: {integrity: sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==} + engines: {node: '>=12.0.0'} + + tinyrainbow@3.2.0: + resolution: {integrity: sha512-LgO3D9yZJjApUiuUfl9iFAwrtaX4+lok3wJIqttGoKCHlWUqHqbQpnxCf82L8FjgKsh4iGo78hqJwgL8F6To2A==} + engines: {node: '>=14.0.0'} + + tldts-core@7.5.4: + resolution: {integrity: sha512-9+4zWtKEDZ3V3FoZ1B97rv+5z5oqp7yeXGVze3CxgQ+CJro9do9DCPD00wxstYZDXDMXsurkBerFfiB6GYtPbA==} + + tldts@7.5.4: + resolution: {integrity: sha512-Rn2ABgjHZrA+jzqom5zhxA0hLohzYrIgfCPyhpTUxqsUrcsBYuab49LseR9waB9Jr8/MxdodvMHA91oRiGLO3Q==} + hasBin: true + + tough-cookie@6.1.0: + resolution: {integrity: sha512-FTxc8u8Kl2tz0Lat1u8ksvcy8bwHRyEMawwTWybo51JqaC6O7SvfuhAKg+Ld6VqyIe2QRJBzY9HA7y2WyFRT2w==} + engines: {node: '>=16'} + + tr46@7.0.0: + resolution: {integrity: sha512-BcDSDW+SIGWVOns1Zm6Yg91q9AEj7eaID0QDY9oIqJD1A8dscNwMcl9Sms2DeuWCNov1X0/oXanHGYQBSLwZsg==} + engines: {node: ^22.14.0 || >=24.0.0} + + tslib@2.9.1: + resolution: {integrity: sha512-a4Ux9VKuIMHsOS7ENbEq6hK2ZGYIT27Rtl0E4eD9KqwxhKiQeMZE/9xb3IdYwWaSOyIBQLExhQgXDTYoiCxnWA==} + + undici@8.12.4: + resolution: {integrity: sha512-8Mx+uNKKER2bA4AdtedkqRbwUCIJFr2nJckXRe5yrDqzePqwLP7VNcctN8/XdmDSbF7mS+jJKIszlL+vbam1VA==} + engines: {node: '>=22.19.0'} + + vite@8.3.8: + resolution: {integrity: sha512-LzOn3h9rG/0vhLdXrV4yJ4QFA9eEoqCl+Yx+kGJd7aB9w6nfNgVHKSYwLPZUHrz4ZGa+t+kXjV9itvcHDLQouA==} + engines: {node: ^20.19.0 || >=22.12.0} + hasBin: true + peerDependencies: + '@types/node': ^20.19.0 || >=22.12.0 + '@vitejs/devtools': ^0.7.1 || ^0.8.0 + esbuild: ^0.27.0 || ^0.28.0 + jiti: '>=1.21.0' + less: ^4.0.0 + sass: ^1.70.0 + sass-embedded: ^1.70.0 + stylus: '>=0.54.8' + sugarss: ^5.0.0 + terser: ^5.16.0 + tsx: ^4.8.1 + yaml: ^2.4.2 + peerDependenciesMeta: + '@types/node': + optional: true + '@vitejs/devtools': + optional: true + esbuild: + optional: true + jiti: + optional: true + less: + optional: true + sass: + optional: true + sass-embedded: + optional: true + stylus: + optional: true + sugarss: + optional: true + terser: + optional: true + tsx: + optional: true + yaml: + optional: true + + vitest@5.1.1: + resolution: {integrity: sha512-trVmzUFOSraCZcI3uZIMD5FqBh4atFkC/XuJP/IU7qtyQay0FCs3Ia+0QiQ2JJwGyWG/xrcBoJNel2+O7kEZ0g==} + engines: {node: ^22.12.0 || ^24.0.0 || >=26.0.0} + hasBin: true + peerDependencies: + '@edge-runtime/vm': '*' + '@opentelemetry/api': ^1.9.0 + '@types/node': ^22.0.0 || >=24.0.0 + '@vitest/browser-playwright': 5.1.1 + '@vitest/browser-preview': 5.1.1 + '@vitest/browser-webdriverio': ^5.0.0-beta.5 || >=5.0.0 + '@vitest/coverage-istanbul': 5.1.1 + '@vitest/coverage-v8': 5.1.1 + '@vitest/ui': 5.1.1 + happy-dom: '*' + jsdom: '*' + vite: ^6.4.0 || ^7.0.0 || ^8.0.0 + peerDependenciesMeta: + '@edge-runtime/vm': + optional: true + '@opentelemetry/api': + optional: true + '@types/node': + optional: true + '@vitest/browser-playwright': + optional: true + '@vitest/browser-preview': + optional: true + '@vitest/browser-webdriverio': + optional: true + '@vitest/coverage-istanbul': + optional: true + '@vitest/coverage-v8': + optional: true + '@vitest/ui': + optional: true + happy-dom: + optional: true + jsdom: + optional: true + + w3c-xmlserializer@6.0.0: + resolution: {integrity: sha512-4Nsy8K5Tr6SPDH9jhKJOHf7ChDrc1zufZTVSF7x72hwuEXBqxqk9G6cK+K2NRUtB3iELRJqjXb4JPDMBjMTl2Q==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + + webidl-conversions@8.0.1: + resolution: {integrity: sha512-BMhLD/Sw+GbJC21C/UgyaZX41nPt8bUTg+jWyDeg7e7YN4xOM05YPSIXceACnXVtqyEw/LMClUQMtMZ+PGGpqQ==} + engines: {node: '>=20'} + + whatwg-mimetype@5.0.0: + resolution: {integrity: sha512-sXcNcHOC51uPGF0P/D4NVtrkjSU2fNsm9iog4ZvZJsL3rjoDAzXZhkm2MWt1y+PUdggKAYVoMAIYcs78wJ51Cw==} + engines: {node: '>=20'} + + whatwg-url@17.3.0: + resolution: {integrity: sha512-KwOAJrpf+GTgBvcBQJcP38sMF0DsQKdwtG+TxM2pW44P6E5k0hDbWrDmyuJDIF0Uef0aQq0ZoJs+5oI+k8ddhg==} + engines: {node: ^22.14.0 || >=24.0.0} + + why-is-node-running@3.2.1: + resolution: {integrity: sha512-Tb2FUhB4vUsGQlfSquQLYkApkuPAFQXGFzxWKHHumVz2dK+X1RUm/HnID4+TfIGYJ1kTcwOaCk/buYCEJr6YjQ==} + engines: {node: '>=20.11'} + hasBin: true + + xml-name-validator@5.0.0: + resolution: {integrity: sha512-EvGK8EJ3DhaHfbRlETOWAS5pO9MZITeauHKJyb8wyajUfQUenkIg2MvLDTZ4T/TgIcm3HU0TFBgWWboAZ30UHg==} + engines: {node: '>=18'} + + xmlchars@2.2.0: + resolution: {integrity: sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==} + +snapshots: + + '@babel/helper-string-parser@7.29.14': {} + + '@babel/helper-validator-identifier@7.29.7': {} + + '@babel/parser@7.29.14': + dependencies: + '@babel/types': 7.29.14 + + '@babel/types@7.29.14': + dependencies: + '@babel/helper-string-parser': 7.29.14 + '@babel/helper-validator-identifier': 7.29.7 + + '@bcoe/v8-coverage@1.0.2': {} + + '@emnapi/core@2.0.0-beta.2': + dependencies: + '@emnapi/wasi-threads': 2.2.0 + tslib: 2.9.1 + optional: true + + '@emnapi/runtime@2.0.0-beta.2': + dependencies: + tslib: 2.9.1 + optional: true + + '@emnapi/wasi-threads@2.2.0': + dependencies: + tslib: 2.9.1 + optional: true + + '@exodus/bytes@1.16.0': {} + + '@jridgewell/resolve-uri@3.1.3': {} + + '@jridgewell/sourcemap-codec@1.6.0': {} + + '@jridgewell/trace-mapping@0.3.31': + dependencies: + '@jridgewell/resolve-uri': 3.1.3 + '@jridgewell/sourcemap-codec': 1.6.0 + + '@napi-rs/wasm-runtime@1.2.6(@emnapi/core@2.0.0-beta.2)(@emnapi/runtime@2.0.0-beta.2)': + dependencies: + '@emnapi/core': 2.0.0-beta.2 + '@emnapi/runtime': 2.0.0-beta.2 + '@tybys/wasm-util': 0.10.5 + optional: true + + '@oxc-project/types@0.156.0': {} + + '@rolldown/binding-android-arm-eabi@1.2.19': + optional: true + + '@rolldown/binding-android-arm64@1.2.19': + optional: true + + '@rolldown/binding-darwin-arm64@1.2.19': + optional: true + + '@rolldown/binding-darwin-x64@1.2.19': + optional: true + + '@rolldown/binding-freebsd-x64@1.2.19': + optional: true + + '@rolldown/binding-linux-arm-gnueabihf@1.2.19': + optional: true + + '@rolldown/binding-linux-arm64-gnu@1.2.19': + optional: true + + '@rolldown/binding-linux-arm64-musl@1.2.19': + optional: true + + '@rolldown/binding-linux-ppc64-gnu@1.2.19': + optional: true + + '@rolldown/binding-linux-s390x-gnu@1.2.19': + optional: true + + '@rolldown/binding-linux-x64-gnu@1.2.19': + optional: true + + '@rolldown/binding-linux-x64-musl@1.2.19': + optional: true + + '@rolldown/binding-openharmony-arm64@1.2.19': + optional: true + + '@rolldown/binding-wasm32-wasi@1.2.19': + dependencies: + '@emnapi/core': 2.0.0-beta.2 + '@emnapi/runtime': 2.0.0-beta.2 + '@napi-rs/wasm-runtime': 1.2.6(@emnapi/core@2.0.0-beta.2)(@emnapi/runtime@2.0.0-beta.2) + optional: true + + '@rolldown/binding-win32-arm64-msvc@1.2.19': + optional: true + + '@rolldown/binding-win32-x64-msvc@1.2.19': + optional: true + + '@rolldown/pluginutils@1.1.1': {} + + '@tybys/wasm-util@0.10.5': + dependencies: + tslib: 2.9.1 + optional: true + + '@types/chai@5.2.3': + dependencies: + '@types/deep-eql': 4.0.2 + assertion-error: 2.0.1 + + '@types/deep-eql@4.0.2': {} + + '@types/estree@1.0.10': {} + + '@vitest/coverage-v8@5.1.1(vitest@5.1.1)': + dependencies: + '@bcoe/v8-coverage': 1.0.2 + '@vitest/istanbul-lib-coverage': 2.1.1 + '@vitest/istanbul-lib-report': 2.1.1 + ast-v8-to-istanbul: 1.0.8 + magicast: 0.5.5 + obug: 3.0.0 + std-env: 4.3.0 + tinyrainbow: 3.2.0 + vitest: 5.1.1(@vitest/coverage-v8@5.1.1)(jsdom@31.0.1)(vite@8.3.8) + + '@vitest/istanbul-lib-coverage@2.1.1': {} + + '@vitest/istanbul-lib-report@2.1.1': + dependencies: + '@vitest/istanbul-lib-coverage': 2.1.1 + + '@vitest/mocker@5.1.1(vite@8.3.8)': + dependencies: + '@jridgewell/trace-mapping': 0.3.31 + '@vitest/spy': 5.1.1 + estree-walker: 3.0.3 + magic-string: 1.4.5 + optionalDependencies: + vite: 8.3.8 + + '@vitest/spy@5.1.1': {} + + assertion-error@2.0.1: {} + + ast-v8-to-istanbul@1.0.8: + dependencies: + '@jridgewell/trace-mapping': 0.3.31 + estree-walker: 3.0.3 + js-tokens: 10.0.0 + + bcp-47-match@2.0.3: {} + + bcp-47@2.1.2: + dependencies: + is-alphabetical: 2.0.1 + is-alphanumerical: 2.0.1 + is-decimal: 2.0.1 + + chai@6.3.0: {} + + data-urls@8.0.0: + dependencies: + whatwg-mimetype: 5.0.0 + whatwg-url: 17.3.0 + transitivePeerDependencies: + - '@noble/hashes' + + decimal.js@10.6.0: {} + + detect-libc@2.1.2: {} + + entities@9.0.0: {} + + es-module-lexer@2.3.2: {} + + estree-walker@3.0.3: + dependencies: + '@types/estree': 1.0.10 + + expect-type@1.4.0: {} + + fdir@6.5.0(picomatch@4.0.7): + optionalDependencies: + picomatch: 4.0.7 + + fsevents@2.3.3: + optional: true + + html-encoding-sniffer@7.0.0: + dependencies: + '@exodus/bytes': 1.16.0 + transitivePeerDependencies: + - '@noble/hashes' + + is-alphabetical@2.0.1: {} + + is-alphanumerical@2.0.1: + dependencies: + is-alphabetical: 2.0.1 + is-decimal: 2.0.1 + + is-decimal@2.0.1: {} + + is-potential-custom-element-name@1.0.1: {} + + js-tokens@10.0.0: {} + + jsdom@31.0.1: + dependencies: + '@exodus/bytes': 1.16.0 + bcp-47: 2.1.2 + bcp-47-match: 2.0.3 + data-urls: 8.0.0 + decimal.js: 10.6.0 + html-encoding-sniffer: 7.0.0 + is-potential-custom-element-name: 1.0.1 + lru-cache: 11.5.3 + parse5: 8.1.1 + parse5-parser-stream: 8.1.1 + saxes: 6.0.0 + tough-cookie: 6.1.0 + undici: 8.12.4 + w3c-xmlserializer: 6.0.0 + webidl-conversions: 8.0.1 + whatwg-mimetype: 5.0.0 + whatwg-url: 17.3.0 + xml-name-validator: 5.0.0 + transitivePeerDependencies: + - '@noble/hashes' + + lightningcss-android-arm64@1.33.0: + optional: true + + lightningcss-darwin-arm64@1.33.0: + optional: true + + lightningcss-darwin-x64@1.33.0: + optional: true + + lightningcss-freebsd-x64@1.33.0: + optional: true + + lightningcss-linux-arm-gnueabihf@1.33.0: + optional: true + + lightningcss-linux-arm64-gnu@1.33.0: + optional: true + + lightningcss-linux-arm64-musl@1.33.0: + optional: true + + lightningcss-linux-x64-gnu@1.33.0: + optional: true + + lightningcss-linux-x64-musl@1.33.0: + optional: true + + lightningcss-win32-arm64-msvc@1.33.0: + optional: true + + lightningcss-win32-x64-msvc@1.33.0: + optional: true + + lightningcss@1.33.0: + dependencies: + detect-libc: 2.1.2 + optionalDependencies: + lightningcss-android-arm64: 1.33.0 + lightningcss-darwin-arm64: 1.33.0 + lightningcss-darwin-x64: 1.33.0 + lightningcss-freebsd-x64: 1.33.0 + lightningcss-linux-arm-gnueabihf: 1.33.0 + lightningcss-linux-arm64-gnu: 1.33.0 + lightningcss-linux-arm64-musl: 1.33.0 + lightningcss-linux-x64-gnu: 1.33.0 + lightningcss-linux-x64-musl: 1.33.0 + lightningcss-win32-arm64-msvc: 1.33.0 + lightningcss-win32-x64-msvc: 1.33.0 + + lru-cache@11.5.3: {} + + magic-string@1.4.5: + dependencies: + '@jridgewell/sourcemap-codec': 1.6.0 + + magicast@0.5.5: + dependencies: + '@babel/parser': 7.29.14 + '@babel/types': 7.29.14 + source-map-js: 1.2.4 + + nanoid@3.3.20: {} + + obug@3.0.0: {} + + parse5-parser-stream@8.1.1: + dependencies: + parse5: 8.1.1 + + parse5@8.1.1: + dependencies: + entities: 9.0.0 + + picocolors@1.1.1: {} + + picomatch@4.0.7: {} + + postcss@8.5.33: + dependencies: + nanoid: 3.3.20 + picocolors: 1.1.1 + source-map-js: 1.2.4 + + punycode@2.3.1: {} + + rolldown@1.2.19: + dependencies: + '@oxc-project/types': 0.156.0 + '@rolldown/pluginutils': 1.1.1 + optionalDependencies: + '@rolldown/binding-android-arm-eabi': 1.2.19 + '@rolldown/binding-android-arm64': 1.2.19 + '@rolldown/binding-darwin-arm64': 1.2.19 + '@rolldown/binding-darwin-x64': 1.2.19 + '@rolldown/binding-freebsd-x64': 1.2.19 + '@rolldown/binding-linux-arm-gnueabihf': 1.2.19 + '@rolldown/binding-linux-arm64-gnu': 1.2.19 + '@rolldown/binding-linux-arm64-musl': 1.2.19 + '@rolldown/binding-linux-ppc64-gnu': 1.2.19 + '@rolldown/binding-linux-s390x-gnu': 1.2.19 + '@rolldown/binding-linux-x64-gnu': 1.2.19 + '@rolldown/binding-linux-x64-musl': 1.2.19 + '@rolldown/binding-openharmony-arm64': 1.2.19 + '@rolldown/binding-wasm32-wasi': 1.2.19 + '@rolldown/binding-win32-arm64-msvc': 1.2.19 + '@rolldown/binding-win32-x64-msvc': 1.2.19 + + saxes@6.0.0: + dependencies: + xmlchars: 2.2.0 + + source-map-js@1.2.4: {} + + std-env@4.3.0: {} + + tinybench@6.2.4: {} + + tinyexec@1.3.1: {} + + tinyglobby@0.2.17: + dependencies: + fdir: 6.5.0(picomatch@4.0.7) + picomatch: 4.0.7 + + tinyrainbow@3.2.0: {} + + tldts-core@7.5.4: {} + + tldts@7.5.4: + dependencies: + tldts-core: 7.5.4 + + tough-cookie@6.1.0: + dependencies: + tldts: 7.5.4 + + tr46@7.0.0: + dependencies: + punycode: 2.3.1 + + tslib@2.9.1: + optional: true + + undici@8.12.4: {} + + vite@8.3.8: + dependencies: + lightningcss: 1.33.0 + picomatch: 4.0.7 + postcss: 8.5.33 + rolldown: 1.2.19 + tinyglobby: 0.2.17 + optionalDependencies: + fsevents: 2.3.3 + + vitest@5.1.1(@vitest/coverage-v8@5.1.1)(jsdom@31.0.1)(vite@8.3.8): + dependencies: + '@types/chai': 5.2.3 + '@vitest/mocker': 5.1.1(vite@8.3.8) + chai: 6.3.0 + es-module-lexer: 2.3.2 + expect-type: 1.4.0 + magic-string: 1.4.5 + obug: 3.0.0 + picomatch: 4.0.7 + std-env: 4.3.0 + tinybench: 6.2.4 + tinyexec: 1.3.1 + tinyglobby: 0.2.17 + vite: 8.3.8 + why-is-node-running: 3.2.1 + optionalDependencies: + '@vitest/coverage-v8': 5.1.1(vitest@5.1.1) + jsdom: 31.0.1 + transitivePeerDependencies: + - msw + + w3c-xmlserializer@6.0.0: + dependencies: + xml-name-validator: 5.0.0 + + webidl-conversions@8.0.1: {} + + whatwg-mimetype@5.0.0: {} + + whatwg-url@17.3.0: + dependencies: + '@exodus/bytes': 1.16.0 + tr46: 7.0.0 + webidl-conversions: 8.0.1 + transitivePeerDependencies: + - '@noble/hashes' + + why-is-node-running@3.2.1: {} + + xml-name-validator@5.0.0: {} + + xmlchars@2.2.0: {} diff --git a/kuhy_credit/web/src/credit-data.js b/kuhy_credit/web/src/credit-data.js index 0d98f52..0cb6be4 100644 --- a/kuhy_credit/web/src/credit-data.js +++ b/kuhy_credit/web/src/credit-data.js @@ -105,8 +105,8 @@ export const LOGO_SVG = + "139.77 376.54L138.77 382.07L138.23 387.76L138.29 393.51L139." + "06 399.17L140.59 404.59Z\"/>\n\n"; export const TOKENS = { - dark: { surface: "#2b2624", border: "#463e3a", text: "#eceae9" }, - light: { surface: "#fcfbfb", border: "#e0dad7", text: "#211d1b" }, + dark: { bg: "#211d1b", surface: "#2b2624", border: "#463e3a", text: "#eceae9" }, + light: { bg: "#f6f4f3", surface: "#fcfbfb", border: "#e0dad7", text: "#211d1b" }, focus: "#b8862e", radius: 12, spaceSm: 8, diff --git a/kuhy_credit/web/src/kuhy-credit.d.ts b/kuhy_credit/web/src/kuhy-credit.d.ts new file mode 100644 index 0000000..b0b3e01 --- /dev/null +++ b/kuhy_credit/web/src/kuhy-credit.d.ts @@ -0,0 +1,26 @@ +/** ``: the shared "Created by kuhy" logo credit. */ +export declare class KuhyCredit extends HTMLElement { + /** True while the panel is showing. */ + readonly open: boolean; + /** Hide the panel. */ + close(): void; +} + +/** Attributes the element reads. */ +export interface KuhyCreditAttributes { + align?: "end" | "start"; + placement?: "above" | "below"; + theme?: "dark" | "light"; +} + +declare global { + interface HTMLElementTagNameMap { + "kuhy-credit": KuhyCredit; + } + // React 19 / Vite: in JSX. + namespace JSX { + interface IntrinsicElements { + "kuhy-credit": KuhyCreditAttributes & { class?: string; className?: string }; + } + } +} diff --git a/kuhy_credit/web/src/kuhy-credit.js b/kuhy_credit/web/src/kuhy-credit.js new file mode 100644 index 0000000..47f84eb --- /dev/null +++ b/kuhy_credit/web/src/kuhy-credit.js @@ -0,0 +1,112 @@ +/** + * ``: the shared kuhy credit, dependency-free. + * + * Shows only the M1 logo. Click/Enter/Space on it opens a small panel (logo + + * the credit text); a click on the panel opens the website in a new tab. + * Escape, a click anywhere else and a second logo click close the panel. + * Nothing loads over the network: the logo is inlined from credit-data.js, + * which the generator writes from kuhy_credit/credit.json and the M1 art. + * + * Attributes: `placement="above|below"` (default above), `align="end|start"` + * (default end), `theme="light|dark"` (default: follow the page). Size via the + * `--kuhy-credit-size` custom property (default 48px). + */ +import { CREDIT_TEXT, CREDIT_URL, LOGO_SVG, TOKENS } from "./credit-data.js"; + +const { dark, light } = TOKENS; +const palette = (p, usePage) => + ["surface", "border", "text"] + .map((k) => { + const page = { surface: "--surface-1", border: "--border", text: "--text" }[k]; + return `--kc-${k}: ${usePage ? `var(${page}, ${p[k]})` : p[k]};`; + }) + .join(" "); + +const STYLE = ` +:host { position: relative; display: inline-block; ${palette(dark, true)} + --kc-size: var(--kuhy-credit-size, 48px); } +@media (prefers-color-scheme: light) { :host { ${palette(light, true)} } } +:host([theme="dark"]) { ${palette(dark, false)} } +:host([theme="light"]) { ${palette(light, false)} } +button, a { cursor: pointer; border-radius: var(--radius-sm, 8px); } +button { display: block; padding: 0; border: 0; background: none; + width: var(--kc-size); height: var(--kc-size); } +svg { display: block; width: 100%; height: 100%; border-radius: inherit; } +button:focus-visible, a:focus-visible { + outline: 2px solid var(--focus-ring, ${TOKENS.focus}); outline-offset: 2px; } +a { position: absolute; bottom: calc(100% + ${TOKENS.spaceSm}px); right: 0; z-index: 1000; + display: flex; align-items: center; gap: ${TOKENS.spaceSm}px; padding: ${TOKENS.spaceMd}px; + white-space: nowrap; text-decoration: none; color: var(--kc-text); + background: var(--kc-surface); border: 1px solid var(--kc-border); + border-radius: ${TOKENS.radius}px; box-shadow: var(--shadow-1, none); + font: ${TOKENS.textBody}px/1.5 var(--font-sans, system-ui, sans-serif); } +a[hidden] { display: none; } +a svg { width: var(--kc-size); height: var(--kc-size); flex: none; } +:host([placement="below"]) a { bottom: auto; top: calc(100% + ${TOKENS.spaceSm}px); } +:host([align="start"]) a { right: auto; left: 0; } +`; + +export class KuhyCredit extends HTMLElement { + #logo; + #panel; + #onDocClick = (event) => { + if (this.open && !event.composedPath().includes(this)) this.close(); + }; + #onKey = (event) => { + if (this.open && event.key === "Escape") { + this.close(); + this.#logo.focus(); + } + }; + + connectedCallback() { + if (!this.shadowRoot) this.#build(); + document.addEventListener("click", this.#onDocClick); + document.addEventListener("keydown", this.#onKey); + } + + disconnectedCallback() { + document.removeEventListener("click", this.#onDocClick); + document.removeEventListener("keydown", this.#onKey); + } + + /** True while the panel is showing. */ + get open() { + return !this.#panel.hidden; + } + + /** Hide the panel. */ + close() { + this.#panel.hidden = true; + this.#logo.setAttribute("aria-expanded", "false"); + } + + #show() { + this.#panel.hidden = false; + this.#logo.setAttribute("aria-expanded", "true"); + this.#panel.focus(); + } + + #build() { + const root = this.attachShadow({ mode: "open" }); + root.innerHTML = ` + +`; + this.#logo = root.querySelector("button"); + this.#panel = root.querySelector("a"); + this.#logo.setAttribute("aria-label", CREDIT_TEXT); + this.#logo.innerHTML = LOGO_SVG; + this.#panel.href = CREDIT_URL; + this.#panel.insertAdjacentHTML("afterbegin", LOGO_SVG); + this.#panel.querySelector("span").textContent = CREDIT_TEXT; + for (const svg of root.querySelectorAll("svg")) svg.setAttribute("aria-hidden", "true"); + this.#logo.addEventListener("click", () => (this.open ? this.close() : this.#show())); + this.#panel.addEventListener("click", (event) => { + event.preventDefault(); + this.close(); + window.open(CREDIT_URL, "_blank", "noopener,noreferrer"); + }); + } +} + +if (!customElements.get("kuhy-credit")) customElements.define("kuhy-credit", KuhyCredit); diff --git a/kuhy_credit/web/src/kuhy-credit.test.js b/kuhy_credit/web/src/kuhy-credit.test.js new file mode 100644 index 0000000..8948ed5 --- /dev/null +++ b/kuhy_credit/web/src/kuhy-credit.test.js @@ -0,0 +1,132 @@ +import { afterEach, beforeEach, describe, expect, it, vi } from "vitest"; + +import { CREDIT_TEXT, CREDIT_URL, TOKENS } from "./credit-data.js"; +import { KuhyCredit } from "./kuhy-credit.js"; + +let host; +let open; + +const parts = () => ({ + logo: host.shadowRoot.querySelector("button"), + panel: host.shadowRoot.querySelector("a"), +}); +const click = (el) => el.dispatchEvent(new MouseEvent("click", { bubbles: true, composed: true, cancelable: true })); +const key = (el, k) => el.dispatchEvent(new KeyboardEvent("keydown", { key: k, bubbles: true, composed: true })); + +beforeEach(() => { + open = vi.spyOn(window, "open").mockImplementation(() => null); + host = document.createElement("kuhy-credit"); + document.body.append(host); +}); + +afterEach(() => { + document.body.replaceChildren(); + vi.restoreAllMocks(); +}); + +describe("", () => { + it("registers once and shows only the logo", () => { + expect(customElements.get("kuhy-credit")).toBe(KuhyCredit); + const { logo, panel } = parts(); + expect(logo.querySelector("svg")).not.toBeNull(); + expect(logo.textContent.trim()).toBe(""); + expect(panel.hidden).toBe(true); + expect(open).not.toHaveBeenCalled(); + }); + + it("names the logo and the panel, and wires aria-expanded", () => { + const { logo, panel } = parts(); + expect(logo.getAttribute("aria-label")).toBe(CREDIT_TEXT); + expect(logo.getAttribute("aria-expanded")).toBe("false"); + expect(logo.getAttribute("aria-controls")).toBe(panel.id); + expect(panel.textContent.trim()).toBe(CREDIT_TEXT); + expect(panel.getAttribute("href")).toBe(CREDIT_URL); + expect(panel.querySelector("svg").getAttribute("aria-hidden")).toBe("true"); + }); + + it("opens the panel on a logo click and the website on a panel click", () => { + const { logo, panel } = parts(); + click(logo); + expect(panel.hidden).toBe(false); + expect(logo.getAttribute("aria-expanded")).toBe("true"); + expect(host.open).toBe(true); + expect(open).not.toHaveBeenCalled(); + click(panel.querySelector("span")); + expect(open).toHaveBeenCalledExactlyOnceWith(CREDIT_URL, "_blank", "noopener,noreferrer"); + expect(panel.hidden).toBe(true); + }); + + it("closes on Escape and returns focus to the logo", () => { + const { logo, panel } = parts(); + click(logo); + key(document, "Escape"); + expect(panel.hidden).toBe(true); + expect(host.shadowRoot.activeElement).toBe(logo); + expect(open).not.toHaveBeenCalled(); + }); + + it("ignores other keys and Escape while closed", () => { + const { logo, panel } = parts(); + key(document, "Escape"); + click(logo); + key(document, "Enter"); + expect(panel.hidden).toBe(false); + }); + + it("closes on a click outside", () => { + const { logo, panel } = parts(); + click(logo); + click(document.body); + expect(panel.hidden).toBe(true); + expect(open).not.toHaveBeenCalled(); + }); + + it("ignores outside clicks while closed", () => { + click(document.body); + expect(parts().panel.hidden).toBe(true); + }); + + it("closes on a second logo click and stays closed", () => { + const { logo, panel } = parts(); + click(logo); + click(logo); + expect(panel.hidden).toBe(true); + expect(open).not.toHaveBeenCalled(); + }); + + it("focuses the panel link when it opens", () => { + const { logo, panel } = parts(); + click(logo); + expect(host.shadowRoot.activeElement).toBe(panel); + }); + + it("stops listening once removed from the page", () => { + const { logo, panel } = parts(); + click(logo); + host.remove(); + click(document.body); + expect(panel.hidden).toBe(false); + }); + + it("does not redefine the element when loaded twice", async () => { + const again = await import("./kuhy-credit.js?again"); + expect(customElements.get("kuhy-credit")).toBe(KuhyCredit); + expect(again.KuhyCredit).not.toBe(KuhyCredit); + }); + + it("builds its shadow DOM only once when re-attached", () => { + host.remove(); + document.body.append(host); + expect(host.shadowRoot.querySelectorAll("button")).toHaveLength(1); + }); + + it("styles from the design tokens with dark and light fallbacks", () => { + const css = host.shadowRoot.querySelector("style").textContent; + for (const value of [TOKENS.dark.surface, TOKENS.light.surface, TOKENS.dark.text, TOKENS.light.text, TOKENS.focus]) { + expect(css).toContain(value); + } + expect(css).toContain("var(--surface-1"); + expect(css).toContain("prefers-color-scheme: light"); + expect(css).toContain(`${TOKENS.radius}px`); + }); +}); diff --git a/kuhy_credit/web/vitest.config.js b/kuhy_credit/web/vitest.config.js new file mode 100644 index 0000000..0ead6f1 --- /dev/null +++ b/kuhy_credit/web/vitest.config.js @@ -0,0 +1,13 @@ +import { defineConfig } from "vitest/config"; + +export default defineConfig({ + test: { + coverage: { + include: ["src/kuhy-credit.js"], + provider: "v8", + thresholds: { branches: 100, functions: 100, lines: 100, statements: 100 }, + }, + environment: "jsdom", + include: ["src/**/*.test.js"], + }, +}); diff --git a/scripts/deploy.sh b/scripts/deploy.sh index e2e913f..ad20001 100755 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -103,6 +103,7 @@ verify() { check_tag game-recording game_recording check_tag godot-dev-tools godot_dev_tools check_tag app-errors app_errors + check_tag kuhy-credit kuhy_credit check_sickdays check_app_errors if [[ "$FAILED" -ne 0 ]]; then