commit 351e6c3a980e98e68f93254d6442fc92e342e33c Author: johnruina Date: Sun May 31 21:58:14 2026 -0400 added the readme diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a547bf3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,24 @@ +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* +lerna-debug.log* + +node_modules +dist +dist-ssr +*.local + +# Editor directories and files +.vscode/* +!.vscode/extensions.json +.idea +.DS_Store +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? diff --git a/CursorUserSetup-x64-3.6.21.exe b/CursorUserSetup-x64-3.6.21.exe new file mode 100644 index 0000000..fd33e58 Binary files /dev/null and b/CursorUserSetup-x64-3.6.21.exe differ diff --git a/README.md b/README.md new file mode 100644 index 0000000..a36934d --- /dev/null +++ b/README.md @@ -0,0 +1,16 @@ +# React + Vite + +This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules. + +Currently, two official plugins are available: + +- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Oxc](https://oxc.rs) +- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/) + +## React Compiler + +The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see [this documentation](https://react.dev/learn/react-compiler/installation). + +## Expanding the ESLint configuration + +If you are developing a production application, we recommend using TypeScript with type-aware lint rules enabled. Check out the [TS template](https://github.com/vitejs/vite/tree/main/packages/create-vite/template-react-ts) for information on how to integrate TypeScript and [`typescript-eslint`](https://typescript-eslint.io) in your project. diff --git a/eslint.config.js b/eslint.config.js new file mode 100644 index 0000000..ea36dd3 --- /dev/null +++ b/eslint.config.js @@ -0,0 +1,21 @@ +import js from '@eslint/js' +import globals from 'globals' +import reactHooks from 'eslint-plugin-react-hooks' +import reactRefresh from 'eslint-plugin-react-refresh' +import { defineConfig, globalIgnores } from 'eslint/config' + +export default defineConfig([ + globalIgnores(['dist']), + { + files: ['**/*.{js,jsx}'], + extends: [ + js.configs.recommended, + reactHooks.configs.flat.recommended, + reactRefresh.configs.vite, + ], + languageOptions: { + globals: globals.browser, + parserOptions: { ecmaFeatures: { jsx: true } }, + }, + }, +]) diff --git a/index.html b/index.html new file mode 100644 index 0000000..d0daa6c --- /dev/null +++ b/index.html @@ -0,0 +1,13 @@ + + + + + + + citygamin + + +
+ + + diff --git a/malebody.png b/malebody.png new file mode 100644 index 0000000..0188a75 Binary files /dev/null and b/malebody.png differ diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..c7dfef2 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,2424 @@ +{ + "name": "citygamin", + "version": "0.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "citygamin", + "version": "0.0.0", + "dependencies": { + "react": "^19.2.6", + "react-dom": "^19.2.6" + }, + "devDependencies": { + "@eslint/js": "^10.0.1", + "@types/react": "^19.2.14", + "@types/react-dom": "^19.2.3", + "@vitejs/plugin-react": "^6.0.1", + "eslint": "^10.3.0", + "eslint-plugin-react-hooks": "^7.1.1", + "eslint-plugin-react-refresh": "^0.5.2", + "globals": "^17.6.0", + "vite": "^8.0.12" + } + }, + "node_modules/@babel/code-frame": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.29.7.tgz", + "integrity": "sha512-Aup7aUOfpbAUg2ROOJN6Iw5f9DMBlzu0mIkm/malLQFN/YQgO48wCj0Kxa3sEHJvPVFg7siR+qRInwXd2qhQKw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-validator-identifier": "^7.29.7", + "js-tokens": "^4.0.0", + "picocolors": "^1.1.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/compat-data": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.29.7.tgz", + "integrity": "sha512-locTkQyKvwIEgBzVrn8693ebc97F2U8ZHjbXwDXJ5Fn2TCpNwTlKcaKLkdHop5c/icOFE7qt7Q9JC5hnKNa6Gg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/core": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.29.7.tgz", + "integrity": "sha512-RgHBCvtjbOK2gXSNBNIkNoEc9qoVEtau3hj8gEqKQuL3HZAibKarWFEI3Lfm6EYKkLalOh8eSrj9b+ch9H/VBA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.29.7", + "@babel/generator": "^7.29.7", + "@babel/helper-compilation-targets": "^7.29.7", + "@babel/helper-module-transforms": "^7.29.7", + "@babel/helpers": "^7.29.7", + "@babel/parser": "^7.29.7", + "@babel/template": "^7.29.7", + "@babel/traverse": "^7.29.7", + "@babel/types": "^7.29.7", + "@jridgewell/remapping": "^2.3.5", + "convert-source-map": "^2.0.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.2", + "json5": "^2.2.3", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/babel" + } + }, + "node_modules/@babel/generator": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.29.7.tgz", + "integrity": "sha512-DkXD5OJQaAQIdZ1bt3UZdEnHAn9Imd3IVBdX03UFe+ony9Ojw5pzr9YVKGDY1jt+Gcn/FnGkNf8r+Vj5NOJWtQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.29.7", + "@babel/types": "^7.29.7", + "@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.7", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.29.7.tgz", + "integrity": "sha512-wem6WaBj4NaVYVdNhLPPVacES6ZJ+KBBfSkTMD3YZxbP3rm3Di85tJU5ljaUNhaOynt+Aj0xruhYuzQBt8n71g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/compat-data": "^7.29.7", + "@babel/helper-validator-option": "^7.29.7", + "browserslist": "^4.24.0", + "lru-cache": "^5.1.1", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-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.7", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.29.7.tgz", + "integrity": "sha512-UPUVSyXbOh627KiCIGQSgwWzGeBKLkaJ9PJEdrngIwMSzxLR4jS4+f1f1jb7VzBbg8nFLaYotvVPFCTqdrmTAg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-module-imports": "^7.29.7", + "@babel/helper-validator-identifier": "^7.29.7", + "@babel/traverse": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-string-parser": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.29.7.tgz", + "integrity": "sha512-Pb5ijPrZ89GDH8223L4UP8i6QApWxs04RbPQJTeWDV0/keR2E36MeKnyr6LYmUUvqRRI+Iv87SuF1W6ErINzYw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.29.7.tgz", + "integrity": "sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-option": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.29.7.tgz", + "integrity": "sha512-N9ZErrD+yW5geCDtBqnOoxmR8+tNKiGuxKlDpuJxfsqpa2dFcexaziGAE/qoHLiDDreVNMupxGmSoNlyvsA3gw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helpers": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.29.7.tgz", + "integrity": "sha512-1k2lAGRMfHTcwuNYcCNUmaUffmQv8KWMfh2iJUUeRlwlwH4FdNG7mfPI10NPfLHJFThE4Tyr4mv7kTNZOiPuBg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/template": "^7.29.7", + "@babel/types": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/parser": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.7.tgz", + "integrity": "sha512-hnORnjP/1P/zFEndoeX+n+t1RwWRJiJpM/jO7FW32Kn9r5+sJB2JWOdYo4L6k78j15eCwY3Gm/7364B1EMwtNg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.29.7" + }, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.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.7", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.29.7.tgz", + "integrity": "sha512-EhlfNQtZ+NK22w5BM61ciuiq1m58ed33Wr1Xan//ZRTy6hgjnwyCffRYwzsGXdASJSUJ1guZILsErh1eQcl+zw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.29.7", + "@babel/generator": "^7.29.7", + "@babel/helper-globals": "^7.29.7", + "@babel/parser": "^7.29.7", + "@babel/template": "^7.29.7", + "@babel/types": "^7.29.7", + "debug": "^4.3.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/types": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.7.tgz", + "integrity": "sha512-4zBIxpPzowiZpusoFkyGVwakdRJUyuH5PxQ/PrqghfdFWWasvnCdPfQXHrenDai+gyLARulZjZowCOj6fjT4pA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-string-parser": "^7.29.7", + "@babel/helper-validator-identifier": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@emnapi/core": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/@emnapi/core/-/core-1.10.0.tgz", + "integrity": "sha512-yq6OkJ4p82CAfPl0u9mQebQHKPJkY7WrIuk205cTYnYe+k2Z8YBh11FrbRG/H6ihirqcacOgl2BIO8oyMQLeXw==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "@emnapi/wasi-threads": "1.2.1", + "tslib": "^2.4.0" + } + }, + "node_modules/@emnapi/runtime": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.10.0.tgz", + "integrity": "sha512-ewvYlk86xUoGI0zQRNq/mC+16R1QeDlKQy21Ki3oSYXNgLb45GV1P6A0M+/s6nyCuNDqe5VpaY84BzXGwVbwFA==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@emnapi/wasi-threads": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@emnapi/wasi-threads/-/wasi-threads-1.2.1.tgz", + "integrity": "sha512-uTII7OYF+/Mes/MrcIOYp5yOtSMLBWSIoLPpcgwipoiKbli6k322tcoFsxoIIxPDqW01SQGAgko4EzZi2BNv2w==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@eslint-community/eslint-utils": { + "version": "4.9.1", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.9.1.tgz", + "integrity": "sha512-phrYmNiYppR7znFEdqgfWHXR6NCkZEK7hwWDHZUjit/2/U0r6XvkDl0SYnoM51Hq7FhCGdLDT6zxCCOY1hexsQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "eslint-visitor-keys": "^3.4.3" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" + } + }, + "node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", + "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@eslint-community/regexpp": { + "version": "4.12.2", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.2.tgz", + "integrity": "sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^12.0.0 || ^14.0.0 || >=16.0.0" + } + }, + "node_modules/@eslint/config-array": { + "version": "0.23.5", + "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.23.5.tgz", + "integrity": "sha512-Y3kKLvC1dvTOT+oGlqNQ1XLqK6D1HU2YXPc52NmAlJZbMMWDzGYXMiPRJ8TYD39muD/OTjlZmNJ4ib7dvSrMBA==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@eslint/object-schema": "^3.0.5", + "debug": "^4.3.1", + "minimatch": "^10.2.4" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + } + }, + "node_modules/@eslint/config-helpers": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.6.0.tgz", + "integrity": "sha512-ii6Bw9jJ2zi2cWA2Z+9/QZ/+3DX6kwaV5Q986D/CdP3Lap3w/pgQZ373FV7byY/i7L4IRH/G43I5dz1ClsCbpA==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@eslint/core": "^1.2.1" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + } + }, + "node_modules/@eslint/core": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@eslint/core/-/core-1.2.1.tgz", + "integrity": "sha512-MwcE1P+AZ4C6DWlpin/OmOA54mmIZ/+xZuJiQd4SyB29oAJjN30UW9wkKNptW2ctp4cEsvhlLY/CsQ1uoHDloQ==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@types/json-schema": "^7.0.15" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + } + }, + "node_modules/@eslint/js": { + "version": "10.0.1", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-10.0.1.tgz", + "integrity": "sha512-zeR9k5pd4gxjZ0abRoIaxdc7I3nDktoXZk2qOv9gCNWx3mVwEn32VRhyLaRsDiJjTs0xq/T8mfPtyuXu7GWBcA==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + }, + "funding": { + "url": "https://eslint.org/donate" + }, + "peerDependencies": { + "eslint": "^10.0.0" + }, + "peerDependenciesMeta": { + "eslint": { + "optional": true + } + } + }, + "node_modules/@eslint/object-schema": { + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-3.0.5.tgz", + "integrity": "sha512-vqTaUEgxzm+YDSdElad6PiRoX4t8VGDjCtt05zn4nU810UIx/uNEV7/lZJ6KwFThKZOzOxzXy48da+No7HZaMw==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + } + }, + "node_modules/@eslint/plugin-kit": { + "version": "0.7.2", + "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.7.2.tgz", + "integrity": "sha512-+CNAzxglkrpNf/kKywqQfk74QjtceuOE7Qm+AF8miRvPF/wmmK5+OJOgVh3AVTT3RP2mH3+FOaxlE5v72owk0A==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@eslint/core": "^1.2.1", + "levn": "^0.4.1" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + } + }, + "node_modules/@humanfs/core": { + "version": "0.19.2", + "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.2.tgz", + "integrity": "sha512-UhXNm+CFMWcbChXywFwkmhqjs3PRCmcSa/hfBgLIb7oQ5HNb1wS0icWsGtSAUNgefHeI+eBrA8I1fxmbHsGdvA==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@humanfs/types": "^0.15.0" + }, + "engines": { + "node": ">=18.18.0" + } + }, + "node_modules/@humanfs/node": { + "version": "0.16.8", + "resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.8.tgz", + "integrity": "sha512-gE1eQNZ3R++kTzFUpdGlpmy8kDZD/MLyHqDwqjkVQI0JMdI1D51sy1H958PNXYkM2rAac7e5/CnIKZrHtPh3BQ==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@humanfs/core": "^0.19.2", + "@humanfs/types": "^0.15.0", + "@humanwhocodes/retry": "^0.4.0" + }, + "engines": { + "node": ">=18.18.0" + } + }, + "node_modules/@humanfs/types": { + "version": "0.15.0", + "resolved": "https://registry.npmjs.org/@humanfs/types/-/types-0.15.0.tgz", + "integrity": "sha512-ZZ1w0aoQkwuUuC7Yf+7sdeaNfqQiiLcSRbfI08oAxqLtpXQr9AIVX7Ay7HLDuiLYAaFPu8oBYNq/QIi9URHJ3Q==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=18.18.0" + } + }, + "node_modules/@humanwhocodes/module-importer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", + "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=12.22" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@humanwhocodes/retry": { + "version": "0.4.3", + "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.3.tgz", + "integrity": "sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=18.18" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.13", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz", + "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.0", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/remapping": { + "version": "2.3.5", + "resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz", + "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.5.5", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz", + "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==", + "dev": true, + "license": "MIT" + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.31", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz", + "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "node_modules/@napi-rs/wasm-runtime": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-1.1.4.tgz", + "integrity": "sha512-3NQNNgA1YSlJb/kMH1ildASP9HW7/7kYnRI2szWJaofaS1hWmbGI4H+d3+22aGzXXN9IJ+n+GiFVcGipJP18ow==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "@tybys/wasm-util": "^0.10.1" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/Brooooooklyn" + }, + "peerDependencies": { + "@emnapi/core": "^1.7.1", + "@emnapi/runtime": "^1.7.1" + } + }, + "node_modules/@oxc-project/types": { + "version": "0.132.0", + "resolved": "https://registry.npmjs.org/@oxc-project/types/-/types-0.132.0.tgz", + "integrity": "sha512-FESMOxil5Se014ui/Eq8fT5uHJo6nIRwH0PfJrZJXs6Gek3ZVFOrpUv3YIZT20m+extU98Hg1Ym72U58rlsxUQ==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/Boshen" + } + }, + "node_modules/@rolldown/binding-android-arm64": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm64/-/binding-android-arm64-1.0.2.tgz", + "integrity": "sha512-ZS4D1JPGn/MYQN/SYDWftIE/nVsM8j/AFOYEzAoOE2O3NktQOZru+/vYXGbR/qtdLdIfGCP0lcoJiYVzsEz+iQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-darwin-arm64": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-arm64/-/binding-darwin-arm64-1.0.2.tgz", + "integrity": "sha512-vdFA9+C/rekyGce7WqHs/xoT0ioZEWaOFyZLIV1mEeNFaFDUQrPIo8Vs2GvJ6eetb3rzDUtUBgzto3ExpXJB3w==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-darwin-x64": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-x64/-/binding-darwin-x64-1.0.2.tgz", + "integrity": "sha512-BewSOwTHazv77DTYiAZXSqqKZ4KP/KonFisDMVU7PImxoWfB2aepnPhd2E4SWz3zDzYgDNbs6jBmTdgNnF02GA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-freebsd-x64": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@rolldown/binding-freebsd-x64/-/binding-freebsd-x64-1.0.2.tgz", + "integrity": "sha512-m41o7M0YWtUdqk61Tb+jnKb2rN++iRdIASlExkUoKfIAH30DOHCB8fVLzSUpbWHHU8esmEioY62PxzexE8MBuA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-arm-gnueabihf": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-1.0.2.tgz", + "integrity": "sha512-jcojB9H7W/jS29pMKWAK1N+fU99vXodHDTatS3b3y/XSOCiHo0kkA74pL3jJmkoQtYpOCxDvaKs1fo2Ij/1X5w==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-arm64-gnu": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.0.2.tgz", + "integrity": "sha512-1jn6qDU5iiOgFgygDzKUuKP0maTi0/f1+sBLgvij/76C77Nm3ts6ufz9Bjg5q5dduxiUIxtq86JIoBvo1xQ4Ig==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-arm64-musl": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.0.2.tgz", + "integrity": "sha512-QVLO/czFMdoMFSqlX3bcswcJNm/23r+qoa/jgtmFc/qEp6/jXmIkDjF/XIo8dPfGaiwy1xfQn8o77L79GeXFgw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-ppc64-gnu": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-1.0.2.tgz", + "integrity": "sha512-hgO5Abm0w5UL6FEa2iFnZqo2KlK7TQ5QhV5x09hujBf7t5KzHQ1VmfPuTpqRy/rNlSxua3eWH374xxiVrP+lcA==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-s390x-gnu": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-1.0.2.tgz", + "integrity": "sha512-fy8rXxuYEu602abC8MUNaPjYLIFzReOaEIEMKMUa0rFEUxNpVXhs15KSSQ4qlqSaM7B6rcj9rDZgADh/IGDzLQ==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-x64-gnu": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.0.2.tgz", + "integrity": "sha512-0+bOkiQ779+r1WpoHOWHqncvyySci0vKph+myNDYb+im6meJAzHQXay6oEgnkHuUGouM1LKTZwqKpBow6Kj7CQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-x64-musl": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-musl/-/binding-linux-x64-musl-1.0.2.tgz", + "integrity": "sha512-mjSkrzZK5Qsl0a9d1JgILOiuZOSDTVdKENcSXBoqbzSrspLR/4/IRVDo5wd2GgZjNss/viBFJdeq+j7qH2nypw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-openharmony-arm64": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@rolldown/binding-openharmony-arm64/-/binding-openharmony-arm64-1.0.2.tgz", + "integrity": "sha512-1v5vHasdfQAZoEHakBV72LIFAC9JjnymsiKxp+GEr/ma3+NJCPSaYK+qavInOovJkgwFrs7GccX2d6IgDA3Z5w==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-wasm32-wasi": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@rolldown/binding-wasm32-wasi/-/binding-wasm32-wasi-1.0.2.tgz", + "integrity": "sha512-mb1VobWn6NheziTk5/WEaR6AKVbrwT5sOi6C7zk3gy/pD1qtJfU1j4PgTo2NJnOtbL9Dl3Aeei8w9jJ7qC2jZQ==", + "cpu": [ + "wasm32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "@emnapi/core": "1.10.0", + "@emnapi/runtime": "1.10.0", + "@napi-rs/wasm-runtime": "^1.1.4" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-win32-arm64-msvc": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.0.2.tgz", + "integrity": "sha512-SqKonF56vA/L2yHwHYcEp2P34URpOZ7d1fS635cTkpDnUtEGdUbhI6NzsPdqeSWvAAeGDrxjWjNmibDIdFf9/A==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-win32-x64-msvc": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.0.2.tgz", + "integrity": "sha512-v7qRI7gXLRINcOGXt+7YmAZ6iFuyZVMIoXAxhd8oP+DR9dLfL9GfNIx7PLMxmhZdvq8waUJBQiWN9EKNy+TRBQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/pluginutils": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.1.tgz", + "integrity": "sha512-2j9bGt5Jh8hj+vPtgzPtl72j0yRxHAyumoo6TNfAjsLB04UtpSvPbPcDcBMxz7n+9CYB0c1GxQFxYRg2jimqGw==", + "dev": true, + "license": "MIT" + }, + "node_modules/@tybys/wasm-util": { + "version": "0.10.2", + "resolved": "https://registry.npmjs.org/@tybys/wasm-util/-/wasm-util-0.10.2.tgz", + "integrity": "sha512-RoBvJ2X0wuKlWFIjrwffGw1IqZHKQqzIchKaadZZfnNpsAYp2mM0h36JtPCjNDAHGgYez/15uMBpfGwchhiMgg==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@types/esrecurse": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/@types/esrecurse/-/esrecurse-4.3.1.tgz", + "integrity": "sha512-xJBAbDifo5hpffDBuHl0Y8ywswbiAp/Wi7Y/GtAgSlZyIABppyurxVueOPE8LUQOxdlgi6Zqce7uoEpqNTeiUw==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/estree": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.9.tgz", + "integrity": "sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/json-schema": { + "version": "7.0.15", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", + "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/react": { + "version": "19.2.15", + "resolved": "https://registry.npmjs.org/@types/react/-/react-19.2.15.tgz", + "integrity": "sha512-eRwcGNHve+E8qtEQSSRl6urh+rFop4v8gm6O8rGv25CodbvFdLjA1vVQ1KkiFE0w0UPOnb8tDiFKL5lp0rtY5Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "csstype": "^3.2.2" + } + }, + "node_modules/@types/react-dom": { + "version": "19.2.3", + "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-19.2.3.tgz", + "integrity": "sha512-jp2L/eY6fn+KgVVQAOqYItbF0VY/YApe5Mz2F0aykSO8gx31bYCZyvSeYxCHKvzHG5eZjc+zyaS5BrBWya2+kQ==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "@types/react": "^19.2.0" + } + }, + "node_modules/@vitejs/plugin-react": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-6.0.2.tgz", + "integrity": "sha512-DlSMqo4WhThw4vB8Mpn0Woe9J+Jfq1geJ61AKW0QEgLzGMNwtIMdxbDUzLxcun8W7NbJO0e2Jg/Nxm3cCSVzzg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@rolldown/pluginutils": "^1.0.0" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "peerDependencies": { + "@rolldown/plugin-babel": "^0.1.7 || ^0.2.0", + "babel-plugin-react-compiler": "^1.0.0", + "vite": "^8.0.0" + }, + "peerDependenciesMeta": { + "@rolldown/plugin-babel": { + "optional": true + }, + "babel-plugin-react-compiler": { + "optional": true + } + } + }, + "node_modules/acorn": { + "version": "8.16.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.16.0.tgz", + "integrity": "sha512-UVJyE9MttOsBQIDKw1skb9nAwQuR5wuGD3+82K6JgJlm/Y+KI92oNsMNGZCYdDsVtRHSak0pcV5Dno5+4jh9sw==", + "dev": true, + "license": "MIT", + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-jsx": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/ajv": { + "version": "6.15.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.15.0.tgz", + "integrity": "sha512-fgFx7Hfoq60ytK2c7DhnF8jIvzYgOMxfugjLOSMHjLIPgenqa7S7oaagATUq99mV6IYvN2tRmC0wnTYX6iPbMw==", + "dev": true, + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/balanced-match": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.4.tgz", + "integrity": "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==", + "dev": true, + "license": "MIT", + "engines": { + "node": "18 || 20 || >=22" + } + }, + "node_modules/baseline-browser-mapping": { + "version": "2.10.32", + "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.10.32.tgz", + "integrity": "sha512-wbPvpyjJPC0zdfdKXxqEL3Ea+bOMD/87X4lftiJkkaBiuG6ALQy1SLmEd7BSmVCuwCQsBrCamgBoLyfFDD1EPg==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "baseline-browser-mapping": "dist/cli.cjs" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/brace-expansion": { + "version": "5.0.6", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.6.tgz", + "integrity": "sha512-kLpxurY4Z4r9sgMsyG0Z9uzsBlgiU/EFKhj/h91/8yHu0edo7XuixOIH3VcJ8kkxs6/jPzoI6U9Vj3WqbMQ94g==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^4.0.2" + }, + "engines": { + "node": "18 || 20 || >=22" + } + }, + "node_modules/browserslist": { + "version": "4.28.2", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.2.tgz", + "integrity": "sha512-48xSriZYYg+8qXna9kwqjIVzuQxi+KYWp2+5nCYnYKPTr0LvD89Jqk2Or5ogxz0NUMfIjhh2lIUX/LyX9B4oIg==", + "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.10.12", + "caniuse-lite": "^1.0.30001782", + "electron-to-chromium": "^1.5.328", + "node-releases": "^2.0.36", + "update-browserslist-db": "^1.2.3" + }, + "bin": { + "browserslist": "cli.js" + }, + "engines": { + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + } + }, + "node_modules/caniuse-lite": { + "version": "1.0.30001793", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001793.tgz", + "integrity": "sha512-iwSsYWaCOoh26cV8NwNRViHlrfUvYsHDfRVcbtmw0Kg6PJIZZXwMkj1442FYLBGkeUf1juAsU3DTfxW579mrPA==", + "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/convert-source-map": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", + "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", + "dev": true, + "license": "MIT" + }, + "node_modules/cross-spawn": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", + "dev": true, + "license": "MIT", + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/csstype": { + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz", + "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/debug": { + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", + "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/detect-libc": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz", + "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=8" + } + }, + "node_modules/electron-to-chromium": { + "version": "1.5.364", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.364.tgz", + "integrity": "sha512-G/dYE3+AYhyHwzTwg8UbnXf7zqMERYh7l2jJ3QujhFsH8agSYwtnGAR2aZ7f0AakIKJXd5En/Hre4igIUrdlYw==", + "dev": true, + "license": "ISC" + }, + "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": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint": { + "version": "10.4.1", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-10.4.1.tgz", + "integrity": "sha512-AyIKhnOBuOAdueD7RB3xB+YeAWScb9jHsJBgH2Hcde8InP5JYhqrRR6iTMHyTEwgENK54Cp44e4v8BwNhsuHuw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@eslint-community/eslint-utils": "^4.8.0", + "@eslint-community/regexpp": "^4.12.2", + "@eslint/config-array": "^0.23.5", + "@eslint/config-helpers": "^0.6.0", + "@eslint/core": "^1.2.1", + "@eslint/plugin-kit": "^0.7.2", + "@humanfs/node": "^0.16.6", + "@humanwhocodes/module-importer": "^1.0.1", + "@humanwhocodes/retry": "^0.4.2", + "@types/estree": "^1.0.6", + "ajv": "^6.14.0", + "cross-spawn": "^7.0.6", + "debug": "^4.3.2", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^9.1.2", + "eslint-visitor-keys": "^5.0.1", + "espree": "^11.2.0", + "esquery": "^1.7.0", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "^8.0.0", + "find-up": "^5.0.0", + "glob-parent": "^6.0.2", + "ignore": "^5.2.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "json-stable-stringify-without-jsonify": "^1.0.1", + "minimatch": "^10.2.4", + "natural-compare": "^1.4.0", + "optionator": "^0.9.3" + }, + "bin": { + "eslint": "bin/eslint.js" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + }, + "funding": { + "url": "https://eslint.org/donate" + }, + "peerDependencies": { + "jiti": "*" + }, + "peerDependenciesMeta": { + "jiti": { + "optional": true + } + } + }, + "node_modules/eslint-plugin-react-hooks": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-7.1.1.tgz", + "integrity": "sha512-f2I7Gw6JbvCexzIInuSbZpfdQ44D7iqdWX01FKLvrPgqxoE7oMj8clOfto8U6vYiz4yd5oKu39rRSVOe1zRu0g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/core": "^7.24.4", + "@babel/parser": "^7.24.4", + "hermes-parser": "^0.25.1", + "zod": "^3.25.0 || ^4.0.0", + "zod-validation-error": "^3.5.0 || ^4.0.0" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "eslint": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 || ^9.0.0 || ^10.0.0" + } + }, + "node_modules/eslint-plugin-react-refresh": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/eslint-plugin-react-refresh/-/eslint-plugin-react-refresh-0.5.2.tgz", + "integrity": "sha512-hmgTH57GfzoTFjVN0yBwTggnsVUF2tcqi7RJZHqi9lIezSs4eFyAMktA68YD4r5kNw1mxyY4dmkyoFDb3FIqrA==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "eslint": "^9 || ^10" + } + }, + "node_modules/eslint-scope": { + "version": "9.1.2", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-9.1.2.tgz", + "integrity": "sha512-xS90H51cKw0jltxmvmHy2Iai1LIqrfbw57b79w/J7MfvDfkIkFZ+kj6zC3BjtUwh150HsSSdxXZcsuv72miDFQ==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "@types/esrecurse": "^4.3.1", + "@types/estree": "^1.0.8", + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-visitor-keys": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-5.0.1.tgz", + "integrity": "sha512-tD40eHxA35h0PEIZNeIjkHoDR4YjjJp34biM0mDvplBe//mB+IHCqHDGV7pxF+7MklTvighcCPPZC7ynWyjdTA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/espree": { + "version": "11.2.0", + "resolved": "https://registry.npmjs.org/espree/-/espree-11.2.0.tgz", + "integrity": "sha512-7p3DrVEIopW1B1avAGLuCSh1jubc01H2JHc8B4qqGblmg5gI9yumBgACjWo4JlIc04ufug4xJ3SQI8HkS/Rgzw==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "acorn": "^8.16.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^5.0.1" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/esquery": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.7.0.tgz", + "integrity": "sha512-Ap6G0WQwcU/LHsvLwON1fAQX9Zp0A2Y6Y/cJBl9r/JbW90Zyg4/zbG6zzKa2OTALELarYHmKu0GhpM5EO+7T0g==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "estraverse": "^5.1.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "estraverse": "^5.2.0" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "dev": true, + "license": "MIT" + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true, + "license": "MIT" + }, + "node_modules/fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", + "dev": true, + "license": "MIT" + }, + "node_modules/fdir": { + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", + "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "picomatch": "^3 || ^4" + }, + "peerDependenciesMeta": { + "picomatch": { + "optional": true + } + } + }, + "node_modules/file-entry-cache": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz", + "integrity": "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "flat-cache": "^4.0.0" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "dev": true, + "license": "MIT", + "dependencies": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/flat-cache": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-4.0.1.tgz", + "integrity": "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==", + "dev": true, + "license": "MIT", + "dependencies": { + "flatted": "^3.2.9", + "keyv": "^4.5.4" + }, + "engines": { + "node": ">=16" + } + }, + "node_modules/flatted": { + "version": "3.4.2", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.4.2.tgz", + "integrity": "sha512-PjDse7RzhcPkIJwy5t7KPWQSZ9cAbzQXcafsetQoD7sOJRQlGikNbx7yZp2OotDnJyrDcbyRq3Ttb18iYOqkxA==", + "dev": true, + "license": "ISC" + }, + "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/glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "dev": true, + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/globals": { + "version": "17.6.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-17.6.0.tgz", + "integrity": "sha512-sepffkT8stwnIYbsMBpoCHJuJM5l98FUF2AnE07hfvE0m/qp3R586hw4jF4uadbhvg1ooIdzuu7CsfD2jzCaNA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/hermes-estree": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/hermes-estree/-/hermes-estree-0.25.1.tgz", + "integrity": "sha512-0wUoCcLp+5Ev5pDW2OriHC2MJCbwLwuRx+gAqMTOkGKJJiBCLjtrvy4PWUGn6MIVefecRpzoOZ/UV6iGdOr+Cw==", + "dev": true, + "license": "MIT" + }, + "node_modules/hermes-parser": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/hermes-parser/-/hermes-parser-0.25.1.tgz", + "integrity": "sha512-6pEjquH3rqaI6cYAXYPcz9MS4rY6R4ngRgrgfDshRptUZIc3lw0MCIJIGDj9++mfySOuPTHB4nrSW99BCvOPIA==", + "dev": true, + "license": "MIT", + "dependencies": { + "hermes-estree": "0.25.1" + } + }, + "node_modules/ignore": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", + "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true, + "license": "ISC" + }, + "node_modules/js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/jsesc": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz", + "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==", + "dev": true, + "license": "MIT", + "bin": { + "jsesc": "bin/jsesc" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/json-buffer": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", + "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true, + "license": "MIT" + }, + "node_modules/json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", + "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", + "dev": true, + "license": "MIT" + }, + "node_modules/json5": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "dev": true, + "license": "MIT", + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/keyv": { + "version": "4.5.4", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", + "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", + "dev": true, + "license": "MIT", + "dependencies": { + "json-buffer": "3.0.1" + } + }, + "node_modules/levn": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", + "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/lightningcss": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.32.0.tgz", + "integrity": "sha512-NXYBzinNrblfraPGyrbPoD19C1h9lfI/1mzgWYvXUTe414Gz/X1FD2XBZSZM7rRTrMA8JL3OtAaGifrIKhQ5yQ==", + "dev": true, + "license": "MPL-2.0", + "dependencies": { + "detect-libc": "^2.0.3" + }, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + }, + "optionalDependencies": { + "lightningcss-android-arm64": "1.32.0", + "lightningcss-darwin-arm64": "1.32.0", + "lightningcss-darwin-x64": "1.32.0", + "lightningcss-freebsd-x64": "1.32.0", + "lightningcss-linux-arm-gnueabihf": "1.32.0", + "lightningcss-linux-arm64-gnu": "1.32.0", + "lightningcss-linux-arm64-musl": "1.32.0", + "lightningcss-linux-x64-gnu": "1.32.0", + "lightningcss-linux-x64-musl": "1.32.0", + "lightningcss-win32-arm64-msvc": "1.32.0", + "lightningcss-win32-x64-msvc": "1.32.0" + } + }, + "node_modules/lightningcss-android-arm64": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-android-arm64/-/lightningcss-android-arm64-1.32.0.tgz", + "integrity": "sha512-YK7/ClTt4kAK0vo6w3X+Pnm0D2cf2vPHbhOXdoNti1Ga0al1P4TBZhwjATvjNwLEBCnKvjJc2jQgHXH0NEwlAg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-darwin-arm64": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-darwin-arm64/-/lightningcss-darwin-arm64-1.32.0.tgz", + "integrity": "sha512-RzeG9Ju5bag2Bv1/lwlVJvBE3q6TtXskdZLLCyfg5pt+HLz9BqlICO7LZM7VHNTTn/5PRhHFBSjk5lc4cmscPQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-darwin-x64": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-darwin-x64/-/lightningcss-darwin-x64-1.32.0.tgz", + "integrity": "sha512-U+QsBp2m/s2wqpUYT/6wnlagdZbtZdndSmut/NJqlCcMLTWp5muCrID+K5UJ6jqD2BFshejCYXniPDbNh73V8w==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-freebsd-x64": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-freebsd-x64/-/lightningcss-freebsd-x64-1.32.0.tgz", + "integrity": "sha512-JCTigedEksZk3tHTTthnMdVfGf61Fky8Ji2E4YjUTEQX14xiy/lTzXnu1vwiZe3bYe0q+SpsSH/CTeDXK6WHig==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm-gnueabihf": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm-gnueabihf/-/lightningcss-linux-arm-gnueabihf-1.32.0.tgz", + "integrity": "sha512-x6rnnpRa2GL0zQOkt6rts3YDPzduLpWvwAF6EMhXFVZXD4tPrBkEFqzGowzCsIWsPjqSK+tyNEODUBXeeVHSkw==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm64-gnu": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-gnu/-/lightningcss-linux-arm64-gnu-1.32.0.tgz", + "integrity": "sha512-0nnMyoyOLRJXfbMOilaSRcLH3Jw5z9HDNGfT/gwCPgaDjnx0i8w7vBzFLFR1f6CMLKF8gVbebmkUN3fa/kQJpQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm64-musl": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-musl/-/lightningcss-linux-arm64-musl-1.32.0.tgz", + "integrity": "sha512-UpQkoenr4UJEzgVIYpI80lDFvRmPVg6oqboNHfoH4CQIfNA+HOrZ7Mo7KZP02dC6LjghPQJeBsvXhJod/wnIBg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-x64-gnu": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.32.0.tgz", + "integrity": "sha512-V7Qr52IhZmdKPVr+Vtw8o+WLsQJYCTd8loIfpDaMRWGUZfBOYEJeyJIkqGIDMZPwPx24pUMfwSxxI8phr/MbOA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-x64-musl": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.32.0.tgz", + "integrity": "sha512-bYcLp+Vb0awsiXg/80uCRezCYHNg1/l3mt0gzHnWV9XP1W5sKa5/TCdGWaR/zBM2PeF/HbsQv/j2URNOiVuxWg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-win32-arm64-msvc": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-win32-arm64-msvc/-/lightningcss-win32-arm64-msvc-1.32.0.tgz", + "integrity": "sha512-8SbC8BR40pS6baCM8sbtYDSwEVQd4JlFTOlaD3gWGHfThTcABnNDBda6eTZeqbofalIJhFx0qKzgHJmcPTnGdw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-win32-x64-msvc": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-win32-x64-msvc/-/lightningcss-win32-x64-msvc-1.32.0.tgz", + "integrity": "sha512-Amq9B/SoZYdDi1kFrojnoqPLxYhQ4Wo5XiL8EVJrVsB8ARoC1PWW6VGtT0WKCemjy8aC+louJnjS7U18x3b06Q==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/locate-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "dev": true, + "license": "MIT", + "dependencies": { + "p-locate": "^5.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "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/minimatch": { + "version": "10.2.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.5.tgz", + "integrity": "sha512-MULkVLfKGYDFYejP07QOurDLLQpcjk7Fw+7jXS2R2czRQzR56yHRveU5NDJEOviH+hETZKSkIk5c+T23GjFUMg==", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "brace-expansion": "^5.0.5" + }, + "engines": { + "node": "18 || 20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "dev": true, + "license": "MIT" + }, + "node_modules/nanoid": { + "version": "3.3.12", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.12.tgz", + "integrity": "sha512-ZB9RH/39qpq5Vu6Y+NmUaFhQR6pp+M2Xt76XBnEwDaGcVAqhlvxrl3B2bKS5D3NH3QR76v3aSrKaF/Kiy7lEtQ==", + "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/natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", + "dev": true, + "license": "MIT" + }, + "node_modules/node-releases": { + "version": "2.0.46", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.46.tgz", + "integrity": "sha512-GYVXHE2KnrzAfsAjl4uP++evGFCrAU1jta4ubEjIG7YWt/64Gqv66a30yKwWczVjA6j3bM4nBwH7Pk1JmDHaxQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + } + }, + "node_modules/optionator": { + "version": "0.9.4", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz", + "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==", + "dev": true, + "license": "MIT", + "dependencies": { + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0", + "word-wrap": "^1.2.5" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "dev": true, + "license": "MIT", + "dependencies": { + "p-limit": "^3.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/picocolors": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", + "dev": true, + "license": "ISC" + }, + "node_modules/picomatch": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.4.tgz", + "integrity": "sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/postcss": { + "version": "8.5.15", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.15.tgz", + "integrity": "sha512-FfR8sjd4em2T6fb3I2MwAJU7HWVMr9zba+enmQeeWFfCbm+UOC/0X4DS8XtpUTMwWMGbjKYP7xjfNekzyGmB3A==", + "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.12", + "picocolors": "^1.1.1", + "source-map-js": "^1.2.1" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/prelude-ls": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/punycode": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/react": { + "version": "19.2.6", + "resolved": "https://registry.npmjs.org/react/-/react-19.2.6.tgz", + "integrity": "sha512-sfWGGfavi0xr8Pg0sVsyHMAOziVYKgPLNrS7ig+ivMNb3wbCBw3KxtflsGBAwD3gYQlE/AEZsTLgToRrSCjb0Q==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/react-dom": { + "version": "19.2.6", + "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.2.6.tgz", + "integrity": "sha512-0prMI+hvBbPjsWnxDLxlCGyM8PN6UuWjEUCYmZhO67xIV9Xasa/r/vDnq+Xyq4Lo27g8QSbO5YzARu0D1Sps3g==", + "license": "MIT", + "dependencies": { + "scheduler": "^0.27.0" + }, + "peerDependencies": { + "react": "^19.2.6" + } + }, + "node_modules/rolldown": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/rolldown/-/rolldown-1.0.2.tgz", + "integrity": "sha512-oZx5zVDtVB44AW3eaifgDml1gWRDZGvjcfdxonE4swNPG98PrrXjaO/KrnUjzlMnztCCRVlUueA1kCXhARGk6g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@oxc-project/types": "=0.132.0", + "@rolldown/pluginutils": "^1.0.0" + }, + "bin": { + "rolldown": "bin/cli.mjs" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "optionalDependencies": { + "@rolldown/binding-android-arm64": "1.0.2", + "@rolldown/binding-darwin-arm64": "1.0.2", + "@rolldown/binding-darwin-x64": "1.0.2", + "@rolldown/binding-freebsd-x64": "1.0.2", + "@rolldown/binding-linux-arm-gnueabihf": "1.0.2", + "@rolldown/binding-linux-arm64-gnu": "1.0.2", + "@rolldown/binding-linux-arm64-musl": "1.0.2", + "@rolldown/binding-linux-ppc64-gnu": "1.0.2", + "@rolldown/binding-linux-s390x-gnu": "1.0.2", + "@rolldown/binding-linux-x64-gnu": "1.0.2", + "@rolldown/binding-linux-x64-musl": "1.0.2", + "@rolldown/binding-openharmony-arm64": "1.0.2", + "@rolldown/binding-wasm32-wasi": "1.0.2", + "@rolldown/binding-win32-arm64-msvc": "1.0.2", + "@rolldown/binding-win32-x64-msvc": "1.0.2" + } + }, + "node_modules/scheduler": { + "version": "0.27.0", + "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.27.0.tgz", + "integrity": "sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q==", + "license": "MIT" + }, + "node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "license": "MIT", + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/source-map-js": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", + "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/tinyglobby": { + "version": "0.2.16", + "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.16.tgz", + "integrity": "sha512-pn99VhoACYR8nFHhxqix+uvsbXineAasWm5ojXoN8xEwK5Kd3/TrhNn1wByuD52UxWRLy8pu+kRMniEi6Eq9Zg==", + "dev": true, + "license": "MIT", + "dependencies": { + "fdir": "^6.5.0", + "picomatch": "^4.0.4" + }, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/SuperchupuDev" + } + }, + "node_modules/tslib": { + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", + "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==", + "dev": true, + "license": "0BSD", + "optional": true + }, + "node_modules/type-check": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", + "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", + "dev": true, + "license": "MIT", + "dependencies": { + "prelude-ls": "^1.2.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/update-browserslist-db": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.2.3.tgz", + "integrity": "sha512-Js0m9cx+qOgDxo0eMiFGEueWztz+d4+M3rGlmKPT+T4IS/jP4ylw3Nwpu6cpTTP8R1MAC1kF4VbdLt3ARf209w==", + "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/uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "punycode": "^2.1.0" + } + }, + "node_modules/vite": { + "version": "8.0.14", + "resolved": "https://registry.npmjs.org/vite/-/vite-8.0.14.tgz", + "integrity": "sha512-s4BJJ+5y1pYL6Otw51FHhVJQhPnuRinKig64g/1+EUNaJsd3gCKdD31IPFvswUgW9/60QT9oFHbZHbQK5imcxw==", + "dev": true, + "license": "MIT", + "dependencies": { + "lightningcss": "^1.32.0", + "picomatch": "^4.0.4", + "postcss": "^8.5.15", + "rolldown": "1.0.2", + "tinyglobby": "^0.2.16" + }, + "bin": { + "vite": "bin/vite.js" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "funding": { + "url": "https://github.com/vitejs/vite?sponsor=1" + }, + "optionalDependencies": { + "fsevents": "~2.3.3" + }, + "peerDependencies": { + "@types/node": "^20.19.0 || >=22.12.0", + "@vitejs/devtools": "^0.1.18", + "esbuild": "^0.27.0 || ^0.28.0", + "jiti": ">=1.21.0", + "less": "^4.0.0", + "sass": "^1.70.0", + "sass-embedded": "^1.70.0", + "stylus": ">=0.54.8", + "sugarss": "^5.0.0", + "terser": "^5.16.0", + "tsx": "^4.8.1", + "yaml": "^2.4.2" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "@vitejs/devtools": { + "optional": true + }, + "esbuild": { + "optional": true + }, + "jiti": { + "optional": true + }, + "less": { + "optional": true + }, + "sass": { + "optional": true + }, + "sass-embedded": { + "optional": true + }, + "stylus": { + "optional": true + }, + "sugarss": { + "optional": true + }, + "terser": { + "optional": true + }, + "tsx": { + "optional": true + }, + "yaml": { + "optional": true + } + } + }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "license": "ISC", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/word-wrap": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", + "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "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/yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/zod": { + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/zod/-/zod-4.4.3.tgz", + "integrity": "sha512-ytENFjIJFl2UwYglde2jchW2Hwm4GJFLDiSXWdTrJQBIN9Fcyp7n4DhxJEiWNAJMV1/BqWfW/kkg71UDcHJyTQ==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/colinhacks" + } + }, + "node_modules/zod-validation-error": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/zod-validation-error/-/zod-validation-error-4.0.2.tgz", + "integrity": "sha512-Q6/nZLe6jxuU80qb/4uJ4t5v2VEZ44lzQjPDhYJNztRQ4wyWc6VF3D3Kb/fAuPetZQnhS3hnajCf9CsWesghLQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18.0.0" + }, + "peerDependencies": { + "zod": "^3.25.0 || ^4.0.0" + } + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..d266638 --- /dev/null +++ b/package.json @@ -0,0 +1,27 @@ +{ + "name": "citygamin", + "private": true, + "version": "0.0.0", + "type": "module", + "scripts": { + "dev": "vite", + "build": "vite build", + "lint": "eslint .", + "preview": "vite preview" + }, + "dependencies": { + "react": "^19.2.6", + "react-dom": "^19.2.6" + }, + "devDependencies": { + "@eslint/js": "^10.0.1", + "@types/react": "^19.2.14", + "@types/react-dom": "^19.2.3", + "@vitejs/plugin-react": "^6.0.1", + "eslint": "^10.3.0", + "eslint-plugin-react-hooks": "^7.1.1", + "eslint-plugin-react-refresh": "^0.5.2", + "globals": "^17.6.0", + "vite": "^8.0.12" + } +} diff --git a/public/favicon.svg b/public/favicon.svg new file mode 100644 index 0000000..0942e10 --- /dev/null +++ b/public/favicon.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/public/icons.svg b/public/icons.svg new file mode 100644 index 0000000..e952219 --- /dev/null +++ b/public/icons.svg @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/App.css b/src/App.css new file mode 100644 index 0000000..c6c5c0b --- /dev/null +++ b/src/App.css @@ -0,0 +1,2054 @@ +* { + margin: 0; + padding: 0; + box-sizing: border-box; +} + +body { + background: #0f0f1a; + color: #e0e0e0; + font-family: 'Segoe UI', system-ui, sans-serif; +} + +.game-map { + width: 100vw; + height: 100vh; + position: relative; + overflow: hidden; +} + +.map-svg { + width: 100%; + height: 100%; + display: block; +} + +.ctx-menu { + position: fixed; + background: #2a2a3e; + border: 1px solid #4a4a6a; + border-radius: 4px; + z-index: 1000; + min-width: 120px; + box-shadow: 0 4px 12px rgba(0,0,0,0.4); +} + +.ctx-item { + padding: 8px 16px; + cursor: pointer; + color: #e0e0e0; + font-size: 14px; +} + +.ctx-item:hover { + background: #5F71C5; + color: #fff; +} + +.tooltip { + position: fixed; + background: #1e1e30; + border: 1px solid #5F71C5; + border-radius: 1px; + padding: 10px 14px; + pointer-events: none; + z-index: 999; + max-width: 220px; +} + +.tooltip-name { + color: #5F71C5; + font-weight: bold; + font-size: 14px; + margin-bottom: 4px; +} + +.tooltip-desc { + color: #9ca3af; + font-size: 12px; + line-height: 1.4; +} + +.fight-btn-wrapper { + position: absolute; + bottom: 40px; + left: 40px; + z-index: 10; +} + +.fight-btn { + background: #dc2626; + color: #fff; + border: none; + border-radius: 1px; + padding: 10px 24px; + cursor: pointer; + font-size: 15px; + font-weight: bold; +} + +.fight-btn:hover { + background: #b91c1c; +} + +.combat-panel { + position: absolute; + inset: 0; + background: rgba(15, 15, 26, 0.75); + z-index: 100; + display: flex; + flex-direction: column; + align-items: center; + padding: 16px 60px 24px; +} + +.combat-top-bar { + width: 100%; + display: flex; + align-items: center; + justify-content: space-between; + margin-bottom: 12px; +} + +.combat-top-left { + display: flex; + gap: 8px; +} + +.combat-timer { + color: #e0e0e0; + font-size: 20px; + font-weight: bold; + letter-spacing: 1px; + display: flex; + align-items: center; + gap: 6px; +} + +.timer-icon { + color: #5F71C5; + animation: pulse 1s ease-in-out infinite; +} + +.combat-name { + font-size: 16px; + font-weight: bold; + padding: 10px 14px; + cursor: pointer; + border-radius: 3px; + transition: background 0.15s; +} + +.combat-name:hover { + background: rgba(255,255,255,0.05); +} + +.combat-name--player { + color: #22c55e; +} + +.combat-name--enemy { + color: #ef4444; + text-align: right; +} + +.combat-name--dead { + opacity: 0.4; + text-decoration: line-through; +} + + + +.combat-layout { + display: flex; + justify-content: center; + width: 100%; + flex: 1; + position: relative; + min-height: 0; +} + +.combat-left { + position: absolute; + left: 0; + top: 0; + display: flex; + flex-direction: column; + gap: 16px; + width: 240px; +} + +.moving-indicator { + color: #5F71C5; + font-size: 16px; + font-weight: bold; + padding: 20px; + text-align: center; + animation: pulse 1s ease-in-out infinite; +} + +@keyframes pulse { + 0%, 100% { opacity: 1; } + 50% { opacity: 0.5; } +} + +.combat-center { + flex: 1; + display: flex; + flex-direction: column; + align-items: center; + min-width: 0; + height: 100%; + padding: 10px 20px 4px; + gap: 8px; + max-width: min(700px, calc(100vw - 600px)); +} + +.combat-minimap { + width: 100%; + aspect-ratio: 1; + position: relative; + flex-shrink: 0; +} + +.combat-minimap .minimap-svg { + width: 100%; + height: 100%; +} + +.minimap-toolbar { + position: absolute; + top: 8px; + right: 8px; + z-index: 10; + display: flex; + gap: 4px; +} + +.zoom-btn { + width: 30px; + height: 30px; + background: rgba(15, 15, 26, 0.85); + color: #e0e0e0; + border: 1px solid #5F71C5; + border-radius: 3px; + cursor: pointer; + font-size: 16px; + font-weight: bold; + display: flex; + align-items: center; + justify-content: center; + line-height: 1; +} + +.zoom-btn:hover { + background: #2a2a44; + color: #5F71C5; +} + +.minimap-hint { + color: #6b7280; + font-size: 11px; + display: flex; + align-items: center; + margin-left: 8px; + white-space: nowrap; +} + +.combat-right { + position: absolute; + right: 0; + top: 0; + width: 320px; + display: flex; + flex-direction: column; + gap: 16px; + padding-top: 8px; +} + +.combat-bodies { + display: flex; + align-items: center; + gap: 40px; + justify-content: center; +} + +.combat-side { + display: flex; + flex-direction: column; + align-items: center; + gap: 10px; +} + +.combat-side .body-image-wrap { + width: 140px; +} + +.combat-side-label { + font-size: 15px; + color: #9ca3af; + font-weight: bold; + text-align: center; + display: flex; + flex-direction: column; + align-items: center; + gap: 2px; +} + +.combat-speed { + font-size: 11px; + color: #6b7280; + font-weight: normal; +} + +.combat-side-hp { + width: 100%; + max-width: 220px; +} + +.hp-track { + height: 16px; + background: #2e303a; + border-radius: 1px; + overflow: hidden; +} + +.hp-fill { + height: 100%; + border-radius: 1px; + transition: width 0.2s; +} + +.player-fill { + background: #22c55e; +} + +.enemy-fill { + background: #ef4444; +} + +.hp-text { + font-size: 13px; + color: #6b7280; + margin-top: 4px; + text-align: center; +} + +.combat-vs { + font-size: 18px; + color: #6b7280; + font-weight: bold; +} + +.minimap-container { + width: 100%; + aspect-ratio: 1; + flex-shrink: 0; + border: 2px solid #5F71C5; + border-radius: 3px; + overflow: hidden; +} + +.minimap-container svg { + width: 100%; + height: 100%; + display: block; +} + +.combat-log { + width: 100%; + height: 120px; + overflow-y: auto; + flex-shrink: 0; + font-size: 14px; + line-height: 1.5; + background: rgba(15, 15, 26, 0.75); + border: 2px solid #5F71C5; + border-radius: 3px; + padding: 12px 16px; +} + +.combat-log-title { + font-size: 11px; + color: #6b7280; + text-transform: uppercase; + letter-spacing: 1px; + margin-bottom: 6px; +} + +.combat-log-entries { + font-size: 14px; +} + +.combat-log-entry { + padding: 3px 0; +} + +.enemy-list { + font-size: 14px; +} + +.enemy-entry { + padding: 6px 8px; + cursor: pointer; + border-radius: 1px; +} + +.enemy-entry:hover { + background: #1e1e30; +} + +.enemy-name { + color: #e0e0e0; + font-weight: bold; + font-size: 14px; + display: block; + margin-bottom: 4px; +} + + + +.log-line { + color: #d1d5db; + padding: 3px 0; +} + +.attack-btn { + width: 100%; + background: #ef4444; + color: #fff; + border: none; + border-radius: 1px; + padding: 16px; + cursor: pointer; + font-size: 20px; + font-weight: bold; +} + +.attack-btn:hover { + background: #dc2626; +} + +.combat-actions { + width: 100%; +} + +.tree-root { + user-select: none; +} + +.tree-node { + display: flex; + align-items: center; + gap: 6px; + padding: 5px 8px; + cursor: pointer; + border-radius: 1px; + font-size: 14px; + user-select: none; +} + +.tree-node:hover { + background: #1e1e30; +} + +.tree-node.folder { + color: #e0e0e0; + font-weight: bold; +} + +.tree-node.leaf { + color: #fbbf24; + padding-left: 8px; + font-weight: bold; +} + +.tree-node.leaf:hover { + color: #fcd34d; + background: #1a1a2e; +} + +.combat-busy .tree-node.leaf { + color: #6b7280; + pointer-events: none; +} + +.tree-toggle { + width: 16px; + flex-shrink: 0; + font-size: 11px; + color: #6b7280; +} + +.tree-bullet { + width: 16px; + flex-shrink: 0; + font-size: 10px; + color: #fbbf24; + text-align: center; +} + +.tree-label { + flex: 1; +} + +.tree-children { + margin-left: 16px; +} + +.combat-back { + background: none; + border: none; + color: #6b7280; + cursor: pointer; + font-size: 13px; + padding: 4px; + margin-top: 4px; +} + +.combat-back:hover { + color: #9ca3af; +} + +.panel-hint { + color: #6b7280; + font-size: 14px; + text-align: center; + padding: 24px 16px; + border: 1px dashed #2e303a; + border-radius: 1px; + background: #16171d; +} + +.skills-panel { + background: #16171d; + border: 1px solid #2e303a; + border-radius: 1px; + padding: 16px; +} + +.skills-title { + color: #5F71C5; + font-size: 15px; + font-weight: bold; + margin-bottom: 12px; + text-align: center; +} + +.skills-grid { + display: flex; + flex-direction: column; + gap: 8px; +} + +.skill-btn { + background: #1e1e30; + color: #fbbf24; + border: 2px solid #fbbf24; + border-radius: 1px; + padding: 12px 16px; + cursor: pointer; + font-size: 14px; + font-weight: bold; + display: flex; + justify-content: space-between; + align-items: center; + transition: background 0.15s; +} + +.skill-btn:hover { + background: #2a2a44; + border-color: #fcd34d; + color: #fcd34d; +} + +.skill-btn.active { + background: #2a2a44; + border-color: #5F71C5; + color: #5F71C5; +} + +.skill-mult { + font-size: 12px; + color: #6b7280; +} + +.skill-btn:hover .skill-mult { + color: #9ca3af; +} + +.skill-btn.active .skill-mult { + color: #5F71C5; +} + +.limbs-title { + color: #ef4444; + font-size: 15px; + font-weight: bold; + margin-bottom: 12px; + text-align: center; +} + +.limbs-grid { + display: grid; + grid-template-columns: 1fr 1fr; + gap: 8px; +} + +.limbs-grid .limb-btn { + background: #1e1e30; + color: #fbbf24; + border: 2px solid #fbbf24; + border-radius: 1px; + padding: 14px 10px; + cursor: pointer; + font-size: 14px; + font-weight: bold; + transition: background 0.15s; +} + +.limbs-grid .limb-btn:hover { + background: #2a2a44; + border-color: #fcd34d; + color: #fcd34d; +} + +.combat-enemy-inv-btn { + background: #1e1e30; + color: #5F71C5; + border: 1px solid #5F71C5; + border-radius: 1px; + padding: 10px 16px; + cursor: pointer; + font-size: 13px; + font-weight: bold; + white-space: nowrap; +} + +.combat-enemy-inv-btn:hover { + background: #2a2a44; +} + +.minimap-svg { + width: 100%; + height: 100%; + border-radius: 3px; + border: 1px solid #5F71C5; +} + +.minimap-svg.clickable { + cursor: crosshair; + box-shadow: inset 0 0 20px rgba(74, 158, 255, 0.3); +} + +.minimap-svg.moving { + cursor: default; + opacity: 0.7; +} + +.move-hint { + color: #9ca3af; + font-size: 12px; + padding: 10px 14px; + background: rgba(255,255,255,0.03); + border-radius: 1px; + margin: 4px 0; + line-height: 1.5; +} + +.move-grid { + display: grid; + grid-template-columns: repeat(3, 1fr); + gap: 6px; + padding: 8px; +} + +.move-dir-btn { + background: #1e1e30; + color: #e0e0e0; + border: 1px solid #5F71C5; + border-radius: 3px; + padding: 8px 4px; + cursor: pointer; + font-size: 13px; + font-weight: bold; + text-align: center; +} + +.move-dir-btn:hover { + background: #2a2a44; + color: #5F71C5; +} + +.combat-enemy-overlay { + position: absolute; + inset: 0; + background: rgba(0,0,0,0.6); + z-index: 200; + display: flex; + align-items: center; + justify-content: center; +} + +.combat-enemy-panel { + background: #1a1a2e; + border: 1px solid #5F71C5; + border-radius: 1px; + padding: 24px 32px 32px; + min-width: 280px; + position: relative; +} + +.combat-enemy-close { + position: absolute; + top: 10px; + right: 14px; + background: none; + border: none; + color: #6b7280; + font-size: 20px; + cursor: pointer; +} + +.combat-enemy-close:hover { + color: #e0e0e0; +} + +.combat-enemy-title { + color: #5F71C5; + font-size: 18px; + font-weight: bold; + margin-bottom: 16px; +} + +.combat-enemy-row { + display: flex; + gap: 8px; + padding: 4px 0; + font-size: 14px; +} + +.cel-label { + color: #6b7280; +} + +.cel-value { + color: #e0e0e0; +} + +.cel-divider { + height: 1px; + background: #2e303a; + margin: 12px 0; +} + +.cel-item { + color: #9ca3af; + font-size: 13px; + padding: 3px 0 3px 12px; +} + +.inv-stats-content { + padding: 4px 0; +} + +.stat-row { + display: flex; + justify-content: space-between; + padding: 5px 0; + font-size: 14px; + border-bottom: 1px solid #1f2028; +} + +.stat-label { + color: #6b7280; +} + +.stat-value { + color: #e0e0e0; + font-weight: bold; +} + +.limb-overlay { + position: absolute; + inset: 0; + background: rgba(0,0,0,0.7); + z-index: 300; + display: flex; + align-items: center; + justify-content: center; +} + +.limb-panel-wrap { + display: flex; + flex-direction: row; + align-items: stretch; + gap: 24px; +} + +.limb-panel { + background: rgba(15, 15, 26, 0.75); + border: 2px solid #5F71C5; + border-radius: 3px; + padding: 52px 80px; + width: 860px; + display: flex; + flex-direction: column; + gap: 28px; + align-items: flex-start; +} + +.limb-title { + color: #5F71C5; + font-size: 22px; + font-weight: bold; + margin-bottom: 28px; +} + +.limb-speed { + font-size: 14px; + color: #6b7280; + font-weight: normal; +} + +.limb-subtitle { + color: #9ca3af; + font-size: 16px; + margin-bottom: 16px; +} + +.limb-options { + display: grid; + grid-template-columns: 1fr 1fr; + gap: 12px; + margin-bottom: 20px; +} + +.limb-btn { + background: #1e1e30; + color: #fbbf24; + border: 2px solid #fbbf24; + border-radius: 3px; + padding: 16px 20px; + cursor: pointer; + font-size: 16px; + font-weight: bold; +} + +.limb-btn:hover { + background: #2a2a44; + border-color: #fcd34d; + color: #fcd34d; +} + +.limb-two-col { + display: flex; + width: 100%; + justify-content: space-between; +} + +.limb-three-col { + display: flex; + width: 100%; + justify-content: space-between; + gap: 16px; +} + +.limb-col { + display: flex; + flex-direction: column; + gap: 2px; + min-width: 160px; +} + +.limb-col-title { + color: #e0e0e0; + font-size: 14px; + font-weight: bold; + padding: 5px 8px; + margin-bottom: 2px; + user-select: none; +} + +.limb-sel-btn.active { + background: #1e2642; + color: #5F71C5; +} + +.limb-sel-btn.active .tree-bullet { + color: #5F71C5; +} + +.limb-sel-none { + color: #6b7280; + font-size: 14px; + padding: 14px 20px; + font-style: italic; +} + +.limb-info-box { + background: rgba(15, 15, 26, 0.85); + border: 1px solid #5F71C5; + border-radius: 1px; + padding: 14px 20px; + display: flex; + flex-direction: column; + gap: 6px; + min-width: 200px; + align-self: flex-start; +} + +.limb-side-btns { + display: flex; + flex-direction: column; + gap: 12px; + justify-content: center; +} + +.limb-info-row { + display: flex; + justify-content: space-between; + gap: 24px; +} + +.limb-info-label { + color: #6b7280; + font-size: 13px; + text-transform: uppercase; + letter-spacing: 0.5px; +} + +.limb-info-val { + color: #e0e0e0; + font-size: 13px; + font-weight: bold; +} + + + +.limb-confirm-btn { + background: #22c55e; + color: #000; + border: none; + border-radius: 3px; + padding: 14px 40px; + cursor: pointer; + font-size: 16px; + font-weight: bold; +} + +.limb-confirm-btn:hover:not(:disabled) { + background: #16a34a; +} + +.limb-confirm-btn:disabled { + background: #4b5563; + color: #9ca3af; + cursor: not-allowed; +} + +.limb-cancel-btn { + background: #1e1e30; + color: #6b7280; + border: 1px solid #2e303a; + border-radius: 3px; + padding: 14px 40px; + cursor: pointer; + font-size: 16px; + font-weight: bold; +} + +.limb-cancel-btn:hover { + color: #e0e0e0; + border-color: #4b5563; +} + +.return-btn { + width: 100%; + background: #5F71C5; + color: #fff; + border: none; + border-radius: 1px; + padding: 14px; + cursor: pointer; + font-size: 18px; + font-weight: bold; +} + +.return-btn:hover { + background: #5F71C5; +} + +.zoom-controls { + position: absolute; + bottom: 40px; + right: 40px; + display: flex; + flex-direction: column; + gap: 4px; + z-index: 10; +} + +.zoom-controls button { + width: 40px; + height: 40px; + background: #1e1e30; + border: 1px solid #5F71C5; + border-radius: 1px; + color: #5F71C5; + font-size: 22px; + cursor: pointer; + display: flex; + align-items: center; + justify-content: center; + user-select: none; +} + +.zoom-controls button:hover { + background: #2a2a44; +} + +.bottom-left-btns { + position: absolute; + bottom: 40px; + left: 40px; + display: flex; + gap: 8px; + z-index: 10; +} + +.fight-rand-btn { + background: #1e1e30; + border: 1px solid #ef4444; + border-radius: 1px; + color: #ef4444; + font-size: 14px; + padding: 10px 18px; + cursor: pointer; + user-select: none; + font-weight: bold; +} + +.fight-rand-btn:hover { + background: #2a1a1a; +} + +.info-panel { + position: absolute; + bottom: 40px; + left: 50%; + transform: translateX(-50%); + background: rgba(15, 15, 26, 0.75); + border: 2px solid #5F71C5; + border-radius: 3px; + padding: 16px 20px; + text-align: center; + z-index: 10; + min-width: 260px; +} + +.info-name { + color: #5F71C5; + font-size: 18px; + font-weight: bold; + margin-bottom: 6px; +} + +.info-desc { + color: #9ca3af; + font-size: 14px; + line-height: 1.4; + margin-bottom: 12px; +} + +.travel-section { + border-top: 1px solid #2e303a; + margin-top: 12px; + padding-top: 12px; +} + +.travel-label { + color: #6b7280; + font-size: 11px; + text-transform: uppercase; + letter-spacing: 1px; + margin-bottom: 8px; +} + +.travel-options { + display: flex; + flex-wrap: wrap; + gap: 6px; +} + +.travel-btn { + background: #1e2642; + color: #5F71C5; + border: 1px solid #5F71C5; + border-radius: 3px; + padding: 6px 14px; + cursor: pointer; + font-size: 13px; +} + +.travel-btn:hover { + background: #2a4a7a; +} + +.go-btn { + width: 100%; + text-align: center; + background: #22c55e; + color: #000; + border-color: #22c55e; + font-weight: bold; +} + +.go-btn:hover { + background: #16a34a; + border-color: #16a34a; +} + +.characters-section { + border-top: 1px solid #2e303a; + margin-top: 12px; + padding-top: 12px; +} + +.characters-label { + color: #6b7280; + font-size: 11px; + text-transform: uppercase; + letter-spacing: 1px; + margin-bottom: 6px; +} + +.character-entry { + padding: 6px 0; + border-bottom: 1px solid #1f2028; +} + +.character-entry:last-child { + border-bottom: none; +} + +.character-name { + color: #e0e0e0; + font-size: 14px; + font-weight: bold; +} + +.character-details { + display: flex; + gap: 12px; + font-size: 12px; + color: #6b7280; + margin-top: 2px; +} + +.char-money { + color: #fbbf24; +} + +.char-inv { + color: #9ca3af; +} + +.characters-empty { + color: #4b5563; + font-size: 13px; + font-style: italic; +} + +.close-btn { + background: #5F71C5; + color: #fff; + border: none; + border-radius: 3px; + padding: 6px 16px; + cursor: pointer; + font-size: 13px; + margin-top: 12px; + width: 100%; +} + +.close-btn:hover { + background: #5F71C5; +} + +.top-bar { + position: absolute; + top: 0; + left: 0; + right: 0; + padding: 16px; + z-index: 10; + display: flex; + justify-content: space-between; + align-items: center; + pointer-events: none; +} + +.top-bar-left { + pointer-events: auto; + display: flex; + gap: 8px; +} + +.icon-btn { + background: #1e1e30; + border: 1px solid #2e303a; + border-radius: 3px; + width: 40px; + height: 40px; + cursor: pointer; + display: flex; + align-items: center; + justify-content: center; + color: #9ca3af; + transition: all 0.15s; +} + +.icon-btn:hover { + color: #5F71C5; + border-color: #5F71C5; + background: #2a2a44; +} + +.icon-btn svg { + width: 20px; + height: 20px; +} + +.top-bar-right { + display: flex; + align-items: center; + gap: 16px; +} + +.time-display { + color: #9ca3af; + font-size: 14px; + font-weight: bold; + background: #1e1e30; + border: 1px solid #2e303a; + border-radius: 1px; + padding: 8px 16px; +} + +.weather-display { + color: #5F71C5; + font-size: 14px; + font-weight: bold; + background: #1e1e30; + border: 1px solid #5F71C5; + border-radius: 1px; + padding: 8px 16px; +} + +.inv-btn { + background: #1e1e30; + color: #5F71C5; + border: 1px solid #5F71C5; + border-radius: 1px; + padding: 10px 20px; + cursor: pointer; + font-size: 14px; + font-weight: bold; +} + +.inv-btn:hover { + background: #2a2a44; +} + +.shop-section { + border-top: 1px solid #2e303a; + margin-top: 12px; + padding-top: 12px; +} + +.shop-item { + display: flex; + align-items: center; + gap: 8px; + padding: 4px 0; + font-size: 13px; +} + +.shop-item-name { + flex: 1; + text-align: left; + color: #e0e0e0; +} + +.shop-item-price { + color: #fbbf24; + width: 40px; + text-align: right; +} + +.buy-btn { + background: #22c55e; + color: #000; + border: none; + border-radius: 1px; + padding: 4px 12px; + cursor: pointer; + font-size: 12px; + font-weight: bold; +} + +.buy-btn:disabled { + background: #4b5563; + color: #9ca3af; + cursor: not-allowed; +} + +.buy-btn:hover:not(:disabled) { + background: #16a34a; +} + +.inventory-overlay { + position: absolute; + inset: 0; + background: rgba(0,0,0,0.6); + z-index: 200; + display: flex; + align-items: center; + justify-content: center; +} + +.inventory-panel { + background: rgba(15, 15, 26, 0.75); + border: 2px solid #5F71C5; + border-radius: 3px; + padding: 24px 32px 32px; + width: 1200px; + max-width: 95vw; + min-height: 70vh; + max-height: 95vh; + position: relative; + overflow-y: auto; +} + +.inv-close { + position: absolute; + top: 10px; + right: 14px; + background: none; + border: none; + color: #6b7280; + font-size: 20px; + cursor: pointer; + z-index: 1; +} + +.inv-close:hover { + color: #e0e0e0; +} + +.inv-tabs { + display: flex; + gap: 0; + margin-bottom: 20px; + border-bottom: 1px solid #2e303a; +} + +.inv-tab { + background: none; + border: none; + color: #6b7280; + font-size: 14px; + padding: 8px 20px; + cursor: pointer; + border-bottom: 2px solid transparent; + margin-bottom: -1px; + font-weight: bold; +} + +.inv-tab.active { + color: #5F71C5; + border-bottom-color: #5F71C5; +} + +.inv-tab:hover { + color: #9ca3af; +} + +.inv-layout { + display: flex; + gap: 24px; +} + +.inv-body-col { + display: flex; + flex-direction: column; + align-items: center; + gap: 12px; + flex-shrink: 0; +} + +.inv-body-col .body-image-wrap { + width: 260px; +} + +.inv-right-col { + flex: 1; + min-width: 0; +} + +.inv-inv-content { + padding: 8px 0; +} + +.body-image-wrap { + position: relative; + width: 140px; +} + +.male-body { + width: 100%; + height: auto; + display: block; +} + +.body-part-overlay { + position: absolute; + opacity: 0.35; + border-radius: 1px; + pointer-events: none; +} + +.inv-money { + color: #fbbf24; + font-size: 22px; + font-weight: bold; + padding: 8px 12px; + background: #1f2028; + border: 1px solid #2e303a; + border-radius: 3px; + text-align: right; + margin-top: 8px; +} + +.inv-weight { + color: #9ca3af; + font-size: 13px; + padding: 6px 12px; + background: #1f2028; + border: 1px solid #2e303a; + border-radius: 3px; + text-align: right; + margin-top: 12px; +} + +.inv-item { + padding: 5px 0; + font-size: 13px; + color: #e0e0e0; + border-bottom: 1px solid #1f2028; + cursor: default; +} + +.inv-item:hover { + color: #5F71C5; +} + +.inv-item:last-child { + border-bottom: none; +} + +.inv-empty { + color: #4b5563; + font-size: 13px; + font-style: italic; +} + +.inv-parts-col { + padding: 4px 0; +} + +.inv-parts-title { + font-size: 11px; + color: #6b7280; + text-transform: uppercase; + letter-spacing: 1px; + margin-bottom: 10px; +} + +.part-row { + display: flex; + align-items: center; + gap: 8px; + padding: 4px 0; + font-size: 13px; +} + +.part-color { + width: 8px; + height: 8px; + border-radius: 1px; + flex-shrink: 0; +} + +.part-label { + color: #e0e0e0; + width: 80px; + flex-shrink: 0; +} + +.part-bar-track { + flex: 1; + height: 8px; + background: #2e303a; + border-radius: 1px; + overflow: hidden; +} + +.part-bar-fill { + height: 100%; + border-radius: 1px; + transition: width 0.2s; +} + +.part-hp { + color: #6b7280; + font-size: 11px; + width: 40px; + text-align: right; +} + +.part-injuries { + display: flex; + flex-wrap: wrap; + gap: 4px; + padding: 0 0 4px 16px; +} + +.part-injury { + font-size: 10px; + padding: 1px 6px; + border-radius: 1px; + background: #2e303a; + color: #9ca3af; +} + +.part-injury--cut { + color: #fbbf24; + background: rgba(251, 191, 36, 0.15); +} + +.part-injury--laceration { + color: #f97316; + background: rgba(249, 115, 22, 0.15); +} + +.part-injury--stab { + color: #ef4444; + background: rgba(239, 68, 68, 0.15); +} + +.inv-total-row { + display: flex; + justify-content: space-between; + padding: 8px 0 4px; + margin-top: 8px; + border-top: 1px solid #2e303a; + font-size: 13px; + color: #9ca3af; + font-weight: bold; +} + +.inv-items-section { + margin-top: 16px; + border-top: 1px solid #2e303a; + padding-top: 12px; +} + +.inv-equip-section { + margin-bottom: 8px; +} + +.equip-row { + display: flex; + flex-wrap: wrap; + align-items: center; + gap: 12px; + padding: 8px 12px; + background: #1f2028; + border: 1px solid #2e303a; + border-radius: 3px; + font-size: 13px; +} + +.equip-name { + color: #fbbf24; + font-weight: bold; +} + +.equip-stat { + color: #9ca3af; +} + +.equip-passives { + color: #5F71C5; + font-style: italic; + font-size: 11px; +} + +.inv-divider { + height: 1px; + background: #2e303a; + margin: 12px 0; +} + +.settings-sidebar { + position: absolute; + top: 12px; + left: 0; + bottom: 12px; + width: 280px; + background: rgba(15, 15, 26, 0.75); + border-right: none; + border-radius: 0 6px 6px 0; + z-index: 200; + display: flex; + flex-direction: column; + animation: slideIn 0.2s ease-out; + overflow: hidden; +} + +@keyframes slideIn { + from { transform: translateX(-100%); } + to { transform: translateX(0); } +} + +.settings-header { + display: flex; + justify-content: space-between; + align-items: center; + padding: 16px 20px; + border-bottom: 1px solid #2e303a; + color: #e0e0e0; + font-size: 18px; + font-weight: bold; +} + +.settings-close { + background: none; + border: none; + color: #6b7280; + font-size: 20px; + cursor: pointer; +} + +.settings-close:hover { + color: #e0e0e0; +} + +.settings-body { + flex: 1; + overflow-y: auto; + padding: 12px 0; +} + +.settings-section { + padding: 12px 20px; + border-bottom: 1px solid #1f2028; +} + +.settings-section-title { + color: #6b7280; + font-size: 11px; + text-transform: uppercase; + letter-spacing: 1px; + margin-bottom: 12px; +} + +.settings-row { + display: flex; + justify-content: space-between; + align-items: center; + padding: 6px 0; + font-size: 14px; +} + +.settings-label { + color: #9ca3af; +} + +.settings-value { + color: #e0e0e0; + font-weight: bold; +} + +.settings-zoom-group { + display: flex; + align-items: center; + gap: 8px; +} + +.settings-zoom-btn { + background: #1e1e30; + color: #5F71C5; + border: 1px solid #5F71C5; + border-radius: 1px; + width: 28px; + height: 28px; + cursor: pointer; + font-size: 16px; + display: flex; + align-items: center; + justify-content: center; +} + +.settings-zoom-btn:hover { + background: #2a2a44; +} + +.settings-zoom-val { + color: #e0e0e0; + font-size: 14px; + min-width: 40px; + text-align: center; +} + +.enter-btn { + background: #22c55e; + color: #000; + border: none; + border-radius: 1px; + padding: 10px 20px; + cursor: pointer; + font-size: 14px; + font-weight: bold; + width: 100%; + margin-top: 10px; +} + +.enter-btn:hover { + background: #16a34a; +} + +.location-overlay { + position: absolute; + inset: 0; + background: rgba(0,0,0,0.6); + z-index: 60; + display: flex; + align-items: center; + justify-content: center; +} + +.location-modal { + background: rgba(15, 15, 26, 0.75); + border: 2px solid #5F71C5; + border-radius: 3px; + width: 900px; + height: 640px; + display: flex; + flex-direction: column; + overflow: hidden; + position: relative; +} + +.location-header { + display: flex; + justify-content: space-between; + align-items: center; + padding: 20px 24px; + border-bottom: 1px solid #2e303a; +} + +.location-name { + color: #5F71C5; + font-size: 22px; + font-weight: bold; +} + +.location-close { + background: none; + border: none; + color: #6b7280; + font-size: 22px; + cursor: pointer; +} + +.location-close:hover { + color: #e0e0e0; +} + +.location-body { + display: flex; + flex: 1; + overflow: hidden; +} + +.location-log-col { + width: 200px; + flex-shrink: 0; + display: flex; + flex-direction: column; + border-right: 1px solid #2e303a; +} + +.location-log-title { + color: #6b7280; + font-size: 11px; + text-transform: uppercase; + letter-spacing: 1px; + padding: 14px 16px 8px; +} + +.location-log-content { + flex: 1; + overflow-y: auto; + padding: 0 16px 12px; +} + +.location-log-line { + color: #9ca3af; + font-size: 13px; + padding: 3px 0; + line-height: 1.4; +} + +.location-main-col { + flex: 1; + display: flex; + flex-direction: row; + overflow-y: auto; +} + +.location-section { + display: flex; + flex-direction: column; + flex: 1; + min-width: 0; +} + +.location-section + .location-section { + border-left: 1px solid #2e303a; +} + +.location-section-header { + padding: 12px 16px; + font-size: 14px; + font-weight: bold; + color: #e0e0e0; + border-bottom: 1px solid #2e303a; +} + +.location-section-body { + flex: 1; + padding: 8px 0; + overflow-y: auto; +} + +.location-dropdown { + display: flex; + flex-direction: column; + flex: 1; +} + +.location-dropdown + .location-dropdown { + border-top: 1px solid #2e303a; +} + +.location-dropdown-header { + display: flex; + align-items: center; + gap: 6px; + padding: 12px 16px; + cursor: pointer; + user-select: none; +} + +.location-dropdown-header:hover { + background: #1e1e30; +} + +.location-dropdown-toggle { + font-size: 11px; + color: #6b7280; + width: 14px; +} + +.location-dropdown-label { + color: #e0e0e0; + font-size: 14px; + font-weight: bold; +} + +.location-dropdown-body { + padding: 4px 0; +} + +.location-empty { + color: #4b5563; + font-size: 14px; + font-style: italic; + text-align: center; + padding: 40px 0; +} + +.location-surrounding-desc { + color: #9ca3af; + font-size: 13px; + padding: 12px 16px; + line-height: 1.5; + border-bottom: 1px solid #1f2028; +} + +.location-surrounding-connections { + padding: 8px 16px 12px; + border-bottom: 1px solid #1f2028; +} + +.location-surrounding-shops { + padding: 8px 16px 12px; +} + +.location-surrounding-subtitle { + color: #6b7280; + font-size: 11px; + text-transform: uppercase; + letter-spacing: 1px; + margin-bottom: 6px; + margin-top: 4px; +} + +.location-surrounding-connection { + color: #5F71C5; + font-size: 13px; + padding: 3px 0; +} + +.location-surrounding-shop { + color: #e0e0e0; + font-size: 13px; + padding: 3px 0; +} + +.location-npc-row { + display: flex; + align-items: center; + gap: 12px; + padding: 14px 16px; + border-bottom: 1px solid #1f2028; + border-radius: 1px; +} + +.location-npc-name { + color: #e0e0e0; + font-size: 16px; + font-weight: bold; + flex: 1; +} + +.location-action-btn { + background: #5F71C5; + color: #fff; + border: none; + border-radius: 1px; + padding: 8px 20px; + cursor: pointer; + font-size: 14px; + font-weight: bold; +} + +.location-action-btn:hover { + background: #5F71C5; +} + +.action-modal { + background: rgba(15, 15, 26, 0.75); + border: 2px solid #5F71C5; + border-radius: 3px; + width: 600px; + height: 500px; + max-width: 90vw; + max-height: 80vh; + position: relative; +} + +.action-body { + display: flex; + align-items: center; + justify-content: center; + height: 100%; +} + +.action-fight-btn { + background: #ef4444; + color: #fff; + border: none; + border-radius: 1px; + padding: 16px 48px; + cursor: pointer; + font-size: 18px; + font-weight: bold; +} + +.action-fight-btn:hover { + background: #dc2626; +} + +.arm-choice-overlay { + position: fixed; + inset: 0; + background: rgba(0,0,0,0.5); + z-index: 1000; + display: flex; + align-items: center; + justify-content: center; +} + +.arm-choice-panel { + background: #1a1a2e; + border: 2px solid #5F71C5; + border-radius: 3px; + padding: 24px; + display: flex; + flex-direction: column; + align-items: center; + gap: 16px; +} + +.arm-choice-title { + color: #e0e0e0; + font-size: 18px; + font-weight: bold; +} + +.arm-choice-btns { + display: flex; + gap: 12px; +} + +.arm-choice-btn { + background: #2e303a; + color: #e0e0e0; + border: 1px solid #5F71C5; + border-radius: 1px; + padding: 12px 24px; + cursor: pointer; + font-size: 15px; +} + +.arm-choice-btn:hover { + background: #5F71C5; + color: #fff; +} + +.arm-choice-cancel { + background: none; + border: none; + color: #6b7280; + cursor: pointer; + font-size: 13px; +} + +.arm-choice-cancel:hover { + color: #e0e0e0; +} diff --git a/src/App.jsx b/src/App.jsx new file mode 100644 index 0000000..2a962ff --- /dev/null +++ b/src/App.jsx @@ -0,0 +1,1720 @@ +import { useState, useRef, useCallback, useEffect, Fragment } from 'react' +import './App.css' +import maleBody from './assets/body/malebody.png' + +const locations = [ + { id: 'A', name: 'Alpha', description: 'A quiet village at the edge of the forest.', x: 200, y: 300 }, + { id: 'B', name: 'Beta', description: 'A bustling trade port by the sea.', x: 600, y: 300 }, + { id: 'C', name: 'Gamma', description: 'A hidden monastery in the mountains.', x: 400, y: 130 }, + { id: 'D', name: 'Delta', description: 'An ancient ruined city swallowed by desert.', x: 100, y: 130 }, + { id: 'E', name: 'Epsilon', description: 'A floating island held aloft by magic.', x: 700, y: 130 }, +] + +const connections = [ + { from: 'A', to: 'B' }, + { from: 'A', to: 'C' }, + { from: 'A', to: 'D' }, + { from: 'B', to: 'C' }, + { from: 'B', to: 'E' }, + { from: 'C', to: 'D' }, + { from: 'C', to: 'E' }, +] + +const characters = [ + { id: 'player', name: 'You', location: 'A' }, + { id: '1', name: 'Mara', location: 'A', money: 120, inventory: ['herbs', 'old_map'] }, + { id: '2', name: 'Rook', location: 'A', money: 0, inventory: ['lockpicks'] }, + { id: '3', name: 'Vex', location: 'B', money: 500, inventory: ['silver_brooch', 'fine_wine'] }, + { id: 'd1', name: 'Dust Gutter', location: 'D', money: 15, inventory: ['health_potion'] }, + { id: 'd2', name: 'Bone Collector', location: 'D', money: 30, inventory: ['torch', 'old_map'] }, + { id: 'd3', name: 'Sand Viper', location: 'D', money: 8, inventory: ['lockpicks'] }, + { id: 'd4', name: 'Rust-Eye', location: 'D', money: 45, inventory: ['health_potion', 'silver_brooch'] }, + { id: 'd5', name: 'Cinder', location: 'D', money: 22, inventory: ['herbs', 'rope'] }, +] + +const shops = [ + { + id: 'shop_e', + locationId: 'E', + name: 'Epsilon Market', + items: [ + { name: 'Health Potion', price: 15, itemId: 'health_potion' }, + { name: 'Steel Sword', price: 80, weaponId: 'steel_sword' }, + { name: 'Iron Shield', price: 50, weaponId: 'iron_shield' }, + { name: 'Dagger', price: 30, weaponId: 'dagger' }, + { name: 'Torch', price: 5, itemId: 'torch' }, + { name: 'Rope', price: 8, itemId: 'rope' }, + ], + }, +] + +const weapons = [ + { id: 'fists', name: 'Fists', damage: 35, condition: 100, maxCondition: 100, passives: ['Brawler'], weight: 0, speed: 14, skills: [{ name: 'Jab', mult: 1.0, damageType: 'blunt', range: 12 }, { name: 'Hook', mult: 1.3, damageType: 'blunt', range: 12 }, { name: 'Kick', mult: 1.5, damageType: 'blunt', range: 14 }, { name: 'Shove', mult: 0, damageType: 'shove', range: 10 }] }, + { id: 'rusty_sword', name: 'Rusty Sword', damage: 60, condition: 65, maxCondition: 100, passives: ['Bleed'], weight: 4, speed: 10, skills: [{ name: 'Slash', mult: 1.0, damageType: 'slash', range: 15 }, { name: 'Stab', mult: 1.2, damageType: 'pierce', range: 18 }] }, + { id: 'steel_sword', name: 'Steel Sword', damage: 85, condition: 100, maxCondition: 100, passives: ['Bleed', 'Pierce'], weight: 5, speed: 9, skills: [{ name: 'Slash', mult: 1.0, damageType: 'slash', range: 15 }, { name: 'Stab', mult: 1.2, damageType: 'pierce', range: 18 }, { name: 'Overhead', mult: 1.4, damageType: 'slash', range: 14 }] }, + { id: 'iron_shield', name: 'Iron Shield', damage: 40, condition: 100, maxCondition: 100, passives: ['Block', 'Sturdy'], weight: 6, speed: 7, skills: [{ name: 'Bash', mult: 1.0, damageType: 'blunt', range: 12 }, { name: 'Shield Slam', mult: 1.3, damageType: 'blunt', range: 13 }] }, + { id: 'dagger', name: 'Dagger', damage: 50, condition: 100, maxCondition: 100, passives: ['Quick', 'Bleed'], weight: 2, speed: 13, skills: [{ name: 'Slash', mult: 1.0, damageType: 'slash', range: 12 }, { name: 'Stab', mult: 1.3, damageType: 'pierce', range: 15 }] }, + { id: 'warhammer', name: 'Warhammer', damage: 100, condition: 100, maxCondition: 100, passives: ['Crush', 'Stagger'], weight: 8, speed: 6, skills: [{ name: 'Pound', mult: 1.0, damageType: 'blunt', range: 14 }, { name: 'Slam', mult: 1.4, damageType: 'blunt', range: 13 }] }, +] + +const items = [ + { id: 'health_potion', name: 'Health Potion', description: 'Restores 15 HP when consumed.', weight: 1 }, + { id: 'torch', name: 'Torch', description: 'A wooden torch that burns for hours. Provides light in dark places.', weight: 2 }, + { id: 'rope', name: 'Rope', description: '20 feet of sturdy rope. Useful for climbing and binding.', weight: 3 }, + { id: 'leather_bag', name: 'Leather Bag', description: 'A worn leather bag with plenty of storage space.', weight: 1 }, + { id: 'herbs', name: 'Herbs', description: 'A bundle of medicinal herbs.', weight: 1 }, + { id: 'old_map', name: 'Old Map', description: 'A faded map of the surrounding region.', weight: 1 }, + { id: 'lockpicks', name: 'Lockpicks', description: 'A set of fine metal tools for picking locks.', weight: 1 }, + { id: 'silver_brooch', name: 'Silver Brooch', description: 'A polished silver brooch inlaid with a small gem.', weight: 1 }, + { id: 'fine_wine', name: 'Fine Wine', description: 'A bottle of aged red wine worth a pretty penny.', weight: 2 }, +] + +const itemMap = {} +items.forEach(i => { itemMap[i.id] = i }) + +const weaponMap = {} +weapons.forEach(w => { weaponMap[w.id] = w }) + +const MAX_BODY = { head: 100, torso: 100, leftArm: 100, rightArm: 100, leftLeg: 100, rightLeg: 100 } +const MAX_HP = Object.values(MAX_BODY).reduce((a, b) => a + b, 0) +const MAX_WEIGHT = 50 + +const MAP_BLOCKS = [ + { x: 30, y: 20, w: 20, h: 40 }, + { x: 100, y: 10, w: 25, h: 35 }, + { x: 70, y: 60, w: 40, h: 15 }, + { x: 15, y: 90, w: 35, h: 20 }, + { x: 105, y: 100, w: 30, h: 30 }, +] + +function rectCollides(px, py, block) { + return px >= block.x && px <= block.x + block.w && py >= block.y && py <= block.y + block.h +} + +const bodyPartLabels = { + head: 'Head', + torso: 'Torso', + leftArm: 'Left Arm', + rightArm: 'Right Arm', + leftLeg: 'Left Leg', + rightLeg: 'Right Leg', +} + +function partColor(hp, max) { + const ratio = hp / max + if (ratio > 0.6) return '#22c55e' + if (ratio > 0.3) return '#eab308' + return '#ef4444' +} + +function freshBody() { + return { head: 100, torso: 100, leftArm: 100, rightArm: 100, leftLeg: 100, rightLeg: 100 } +} + +function injuryType(damageType) { + if (damageType === 'blunt') return 'laceration' + if (damageType === 'pierce') return 'stab' + return 'cut' +} + +const INJURY_DECAY = { cut: 0.3, laceration: 0.6, stab: 0.8 } + +function applyInjury(injuries, part, type, severity) { + const next = { ...injuries, [part]: [...(injuries[part] ?? []), { type, severity }] } + return next +} + +function calcIntegrity(integrity, injuries, deltaTime = 1) { + let totalDrain = 0 + for (const part of Object.keys(injuries)) { + for (const inj of injuries[part]) { + totalDrain += (INJURY_DECAY[inj.type] ?? 0.3) * inj.severity + } + } + const drained = { ...integrity } + for (const part of Object.keys(drained)) { + drained[part] = Math.max(0, drained[part] - totalDrain * deltaTime) + } + return drained +} + +function freshInjuries() { + return { head: [], torso: [], leftArm: [], rightArm: [], leftLeg: [], rightLeg: [] } +} + +function totalHp(body) { + return Object.values(body).reduce((a, b) => a + b, 0) +} + +function randomPart() { + const parts = ['head', 'torso', 'leftArm', 'rightArm', 'leftLeg', 'rightLeg'] + return parts[Math.floor(Math.random() * parts.length)] +} + +const bodyOverlays = [ + { part: 'head', left: '22%', top: '1%', width: '56%', height: '20%' }, + { part: 'torso', left: '18%', top: '22%', width: '64%', height: '35%' }, + { part: 'leftArm', left: '2%', top: '22%', width: '20%', height: '34%' }, + { part: 'rightArm', left: '78%', top: '22%', width: '20%', height: '34%' }, + { part: 'leftLeg', left: '20%', top: '58%', width: '30%', height: '36%' }, + { part: 'rightLeg', left: '50%', top: '58%', width: '30%', height: '36%' }, +] + +function BodyImage({ body }) { + const c = (part) => partColor(body[part], MAX_BODY[part]) + + return ( +
+ + {bodyOverlays.map(o => ( +
+ ))} +
+ ) +} + +function App() { + const [hovered, setHovered] = useState(null) + const [selected, setSelected] = useState(null) + const [mousePos, setMousePos] = useState({ x: 0, y: 0 }) + const [view, setView] = useState({ x: 0, y: 0, scale: 1 }) + const [playerLoc, setPlayerLoc] = useState('A') + const [travelAnim, setTravelAnim] = useState(null) + const [combat, setCombat] = useState(null) + const [bodyParts, setBodyParts] = useState(freshBody()) + const [bodyInjuries, setBodyInjuries] = useState(freshInjuries()) + const [combatTime, setCombatTime] = useState(0) + const [displayTime, setDisplayTime] = useState(0) + const [playerMoney, setPlayerMoney] = useState(50) + const [playerInventory, setPlayerInventory] = useState(['leather_bag']) + const [hoverInfo, setHoverInfo] = useState(null) + const [equippedWeapons, setEquippedWeapons] = useState({ left: 'fists', right: 'rusty_sword' }) + const [weaponConditions, setWeaponConditions] = useState({ rusty_sword: 65 }) + const [buyArmChoice, setBuyArmChoice] = useState(null) + const [showInventory, setShowInventory] = useState(false) + const [invTab, setInvTab] = useState('health') + const [gameTime, setGameTime] = useState({ day: 1, hour: 8 }) + const [contextMenu, setContextMenu] = useState(null) + const [weather, setWeather] = useState('clear') + const [expandedWeapon, setExpandedWeapon] = useState(null) + const [weaponsOpen, setWeaponsOpen] = useState(false) + const [itemsOpen, setItemsOpen] = useState(false) + const [movementOpen, setMovementOpen] = useState(false) + const [moveMode, setMoveMode] = useState(null) + const [playerMoveTarget, setPlayerMoveTarget] = useState(null) + const [moveAnim, setMoveAnim] = useState(null) + const [attackAnim, setAttackAnim] = useState(null) + const [attackLerp, setAttackLerp] = useState(null) + const [hitShake, setHitShake] = useState(null) + const [mapView, setMapView] = useState({ x: 0, y: 0, size: 150 }) + const mapPanning = useRef(false) + const mapMoved = useRef(false) + const mapPanStart = useRef({ x: 0, y: 0 }) + const moveAnimRef = useRef(null) + moveAnimRef.current = moveAnim + const attackAnimRef = useRef(null) + attackAnimRef.current = attackAnim + const combatRef = useRef(null) + combatRef.current = combat + + const locMap = {} + locations.forEach(l => { locMap[l.id] = l }) + + const weatherLabels = { clear: 'Clear', cloudy: 'Cloudy', rain: 'Rain', storm: 'Storm' } + + const combatLogEnd = useRef(null) + const svgRef = useRef(null) + const isPanning = useRef(false) + const panStart = useRef({ x: 0, y: 0 }) + + const playerHp = totalHp(bodyParts) + const currentWeight = playerInventory.reduce((sum, id) => sum + (itemMap[id]?.weight ?? 0), 0) + + const [showSettings, setShowSettings] = useState(false) + const [showLocationModal, setShowLocationModal] = useState(null) + const [surroundingsExpanded, setSurroundingsExpanded] = useState(false) + const [charactersExpanded, setCharactersExpanded] = useState(false) + const [actionNpc, setActionNpc] = useState(null) + const [selectedNpc, setSelectedNpc] = useState(null) + const [locationLog, setLocationLog] = useState([`You arrive at ${locMap[playerLoc]?.name}.`]) + const [limbSelect, setLimbSelect] = useState(null) + const [selectedTarget, setSelectedTarget] = useState(null) + const [selectedSkill, setSelectedSkill] = useState(null) + const [selectedEnemy, setSelectedEnemy] = useState(0) + const [targetEnemy, setTargetEnemy] = useState(null) + const [showEnemyInv, setShowEnemyInv] = useState(false) + const [enemyInvTab, setEnemyInvTab] = useState('health') + const [charView, setCharView] = useState(null) + + const liveCharacters = characters + + const connectedTo = (locId) => { + const result = [] + for (const c of connections) { + if (c.from === locId) result.push(c.to) + if (c.to === locId) result.push(c.from) + } + return result + } + + const shopAtLoc = shops.find(s => s.locationId === selected) + + const travel = (targetId) => { + if (travelAnim) return + const from = locations.find(l => l.id === playerLoc) + const to = locations.find(l => l.id === targetId) + if (!from || !to) return + setTravelAnim({ from, to, fromId: playerLoc, toId: targetId, startTs: null, progress: 0 }) + } + + const buyItem = (item) => { + if (playerMoney < item.price) return + if (item.weaponId) { + setBuyArmChoice({ item }) + } else { + setPlayerMoney(m => m - item.price) + setPlayerInventory(prev => [...prev, item.itemId]) + } + } + + const confirmEquipArm = (arm) => { + const { item } = buyArmChoice + setPlayerMoney(m => m - item.price) + setWeaponConditions(prev => ({ ...prev, [item.weaponId]: weaponMap[item.weaponId].maxCondition })) + setEquippedWeapons(prev => { + if (arm === 'left') return { ...prev, left: item.weaponId } + if (arm === 'right') return { ...prev, right: item.weaponId } + return { left: item.weaponId, right: item.weaponId } + }) + setBuyArmChoice(null) + } + + const handleWheel = (e) => { + e.preventDefault() + const rect = svgRef.current.getBoundingClientRect() + const mx = e.clientX - rect.left + const my = e.clientY - rect.top + const factor = e.deltaY > 0 ? 0.9 : 1.1 + setView(v => { + const ns = Math.max(0.3, Math.min(3, v.scale * factor)) + const rx = mx / rect.width + const ry = my / rect.height + const nx = v.x + (rx * 800) / v.scale - (rx * 800) / ns + const ny = v.y + (ry * 600) / v.scale - (ry * 600) / ns + return { x: nx, y: ny, scale: ns } + }) + } + + const handleBgPointerDown = (e) => { + if (e.button !== 0) return + isPanning.current = true + panStart.current = { x: e.clientX, y: e.clientY, vx: view.x, vy: view.y } + e.currentTarget.setPointerCapture(e.pointerId) + } + + const handleBgPointerMove = (e) => { + if (!isPanning.current) return + const dx = (e.clientX - panStart.current.x) / view.scale + const dy = (e.clientY - panStart.current.y) / view.scale + setView(v => ({ ...v, x: panStart.current.vx - dx, y: panStart.current.vy - dy })) + } + + const handleBgPointerUp = () => { + isPanning.current = false + } + + const zoomIn = () => { + const rect = svgRef.current.getBoundingClientRect() + const mx = mousePos.x - rect.left + const my = mousePos.y - rect.top + const factor = 1.3 + setView(v => { + const ns = Math.max(0.3, Math.min(3, v.scale * factor)) + const rx = mx / rect.width + const ry = my / rect.height + const nx = v.x + (rx * 800) / v.scale - (rx * 800) / ns + const ny = v.y + (ry * 600) / v.scale - (ry * 600) / ns + return { x: nx, y: ny, scale: ns } + }) + } + + const zoomOut = () => { + const rect = svgRef.current.getBoundingClientRect() + const mx = mousePos.x - rect.left + const my = mousePos.y - rect.top + const factor = 1 / 1.3 + setView(v => { + const ns = Math.max(0.3, Math.min(3, v.scale * factor)) + const rx = mx / rect.width + const ry = my / rect.height + const nx = v.x + (rx * 800) / v.scale - (rx * 800) / ns + const ny = v.y + (ry * 600) / v.scale - (ry * 600) / ns + return { x: nx, y: ny, scale: ns } + }) + } + + const makeEnemy = (npc, index) => { + const npcWeaponId = npc.weapon ?? 'fists' + const npcWeapon = weaponMap[npcWeaponId] + const spread = 20 + return { + id: npc.id, + name: npc.name, + pos: { x: 120 + index * spread, y: 60 + index * spread }, + integrity: freshBody(), + injuries: freshInjuries(), + attack: npcWeapon?.damage ?? 30, + speed: npcWeapon?.speed ?? 10, + weapon: npcWeaponId, + inventory: npc.inventory ?? [], + money: npc.money ?? 0, + } + } + + const startFight = (npcList) => { + const list = npcList ?? (() => { + const npc = liveCharacters.find(c => c.id === actionNpc) + return npc ? [npc] : [] + })() + if (list.length === 0) return + const enemies = list.map((npc, i) => makeEnemy(npc, i)) + setCombat({ + playerPos: { x: 20, y: 75 }, + log: [`You engage ${enemies.map(e => e.name).join(' and ')} in combat!`], + enemies + }) + setCombatTime(0) + setExpandedWeapon('ROOT') + setDisplayTime(0) + setSelectedEnemy(0) + } + + const getSkillRange = (weaponId, skillName) => { + if (weaponId === 'left_arm' || weaponId === 'right_arm') return 12 + const base = weaponMap[weaponId] + if (!base) return 15 + const skill = (base.skills ?? []).find(s => s.name === skillName) + return skill?.range ?? 15 + } + + const canAttack = (weaponId, skillName, enemyIndex) => { + if (!combat) return false + const enemy = combat.enemies[enemyIndex ?? selectedEnemy] + if (!enemy || enemy.integrity.head <= 0) return false + const dx = combat.playerPos.x - enemy.pos.x + const dy = combat.playerPos.y - enemy.pos.y + const range = getSkillRange(weaponId, skillName) + return Math.sqrt(dx * dx + dy * dy) <= range + } + + const startMove = (targetX, targetY) => { + if (!combat) return + if (moveAnim || attackAnim) return + const fromX = combat.playerPos.x + const fromY = combat.playerPos.y + const dx = targetX - fromX + const dy = targetY - fromY + const dist = Math.sqrt(dx * dx + dy * dy) + if (dist < 1) return + const speed = moveMode === 'walk' ? 1 : 3 + setMoveAnim({ fromX, fromY, toX: targetX, toY: targetY, speed }) + setMoveMode(null) + } + + const zoomMap = (step) => { + setMapView(v => { + const newSize = Math.max(30, Math.min(250, v.size + step * 10)) + const cx = v.x + v.size / 2 + const cy = v.y + v.size / 2 + const clampedX = newSize > 150 ? (150 - newSize) / 2 : Math.max(0, Math.min(150 - newSize, cx - newSize / 2)) + const clampedY = newSize > 150 ? (150 - newSize) / 2 : Math.max(0, Math.min(150 - newSize, cy - newSize / 2)) + return { x: clampedX, y: clampedY, size: newSize } + }) + } + + const playerAttack = (targetPart, weaponId, skillName, enemyIndex) => { + if (!combat) return + if (attackAnim) return + const ei = enemyIndex ?? selectedEnemy + const enemy = combat.enemies[ei] + if (!enemy) return + if (enemy.integrity.head <= 0) { + setCombat(c => ({ ...c, log: [...c.log, 'That enemy is already defeated!'] })) + return + } + if (!canAttack(weaponId, skillName, ei)) { + setCombat(c => ({ ...c, log: [...c.log, 'You are too far from the enemy to attack!'] })) + return + } + if (attackAnim) return + const wid = weaponId || equippedWeapons.right + if (wid === 'left_arm' || wid === 'right_arm') { + const armDmg = 10 + const dmg = Math.max(1, armDmg + Math.floor(Math.random() * 5) - 2) + const severity = Math.round(dmg / 5) + 1 + setAttackAnim({ + targetPart, weaponId: wid, skillName: 'Punch', + dmg, severity, injType: 'bruise', injLabel: 'bruise', + enemyIndex: ei, + combatLog: combat.log, + bodyParts: bodyParts, + bodyInjuries: bodyInjuries, + startTs: null + }) + return + } + const base = weaponMap[wid] + const skill = (base.skills ?? []).find(s => s.name === skillName) ?? { name: 'Attack', mult: 1.0, damageType: 'blunt' } + const bothHands = equippedWeapons.left === wid && equippedWeapons.right === wid + const bothMult = bothHands ? 1.5 : 1.0 + + if (skill.damageType === 'shove') { + const actionTime = Math.max(1, (20 - base.speed) * 0.3 + 1) + const pushDist = 30 + Math.floor(Math.random() * 20) + const dx = enemy.pos.x - combat.playerPos.x + const dy = enemy.pos.y - combat.playerPos.y + const dist = Math.sqrt(dx * dx + dy * dy) || 1 + const nx = dx / dist, ny = dy / dist + let ex = enemy.pos.x, ey = enemy.pos.y + const steps = Math.ceil(pushDist / 3) + for (let i = 1; i <= steps; i++) { + const sx = enemy.pos.x + nx * (pushDist * i / steps) + const sy = enemy.pos.y + ny * (pushDist * i / steps) + if (MAP_BLOCKS.some(b => rectCollides(sx, sy, b))) break + ex = sx; ey = sy + } + const actualPush = Math.sqrt((ex - enemy.pos.x) ** 2 + (ey - enemy.pos.y) ** 2) + const clamped = { x: Math.max(5, Math.min(145, ex)), y: Math.max(5, Math.min(145, ey)) } + setCombatTime(t => t + actionTime) + setCombat(c => { + const enemies = [...c.enemies] + enemies[ei] = { ...enemies[ei], pos: clamped } + return { + ...c, + enemies, + log: [...c.log, `You shove the ${enemy.name} back ${Math.round(actualPush)} units!`] + } + }) + return + } + + const cond = weaponConditions[wid] ?? base.maxCondition + const conditionPenalty = cond < 30 ? 0.5 : cond < 60 ? 0.25 : 0 + const adjustedDmg = Math.round(base.damage * skill.mult * bothMult * (1 - conditionPenalty)) + const variance = Math.floor(Math.random() * (Math.max(2, adjustedDmg / 2) + 1)) - Math.floor(Math.max(2, adjustedDmg / 4)) + const dmg = Math.max(1, adjustedDmg + variance) + const severity = Math.round(dmg / 5) + 1 + const injType = injuryType(skill.damageType) + const injLabel = injType === 'laceration' ? 'laceration' : injType === 'stab' ? 'stab wound' : 'cut' + + setAttackAnim({ + targetPart, weaponId: wid, skillName, + dmg, severity, injType, injLabel, + enemyIndex: ei, + combatLog: combat.log, + bodyParts: bodyParts, + bodyInjuries: bodyInjuries, + startTs: null + }) + } + + useEffect(() => { + const anim = attackAnimRef.current + if (!anim) return + const startTs = performance.now() + const hitAt = 0.5 + let hit = false + const startPos = combatRef.current?.playerPos ?? { x: 20, y: 75 } + const targetEnemy = anim.enemyIndex !== undefined ? combatRef.current?.enemies[anim.enemyIndex] : null + const targetPos = targetEnemy?.pos ?? startPos + const frame = requestAnimationFrame(function tick() { + const elapsed = (performance.now() - startTs) / 1000 + setCombatTime(ct => ct + 1/60) + + let lerp + if (elapsed < 0.3) { + lerp = elapsed / 0.3 + } else if (elapsed < 0.5) { + lerp = 1 + } else if (elapsed < 0.8) { + lerp = 1 - (elapsed - 0.5) / 0.3 + } else { + lerp = 0 + } + setAttackLerp({ from: startPos, to: targetPos, t: lerp }) + + if (elapsed >= hitAt && !hit) { + hit = true + setHitShake({ enemyIndex: anim.enemyIndex, startTs: performance.now() }) + const wid = anim.weaponId + const isArm = wid === 'left_arm' || wid === 'right_arm' + if (!isArm) { + const base = weaponMap[wid] + setWeaponConditions(prev => wid !== 'fists' ? { ...prev, [wid]: Math.max(0, (prev[wid] ?? base.maxCondition) - (1 + Math.floor(Math.random() * 2))) } : prev) + } + + const decayedPlayer = calcIntegrity(anim.bodyParts, anim.bodyInjuries, hitAt) + let finalPlayerParts = decayedPlayer + let finalPlayerInjuries = anim.bodyInjuries + let log = [...anim.combatLog] + + const cc = combatRef.current + if (anim.enemyIndex !== undefined && cc) { + const enemy = cc.enemies[anim.enemyIndex] + if (enemy) { + const decayedEnemy = calcIntegrity(enemy.integrity, enemy.injuries, hitAt) + const hitEnemy = { ...decayedEnemy, [anim.targetPart]: Math.max(0, decayedEnemy[anim.targetPart] - anim.dmg) } + const newEnemyInjuries = applyInjury(enemy.injuries, anim.targetPart, anim.injType, anim.severity) + + log.push(`You ${anim.skillName ? anim.skillName.toLowerCase() : 'attack'} the ${enemy.name}'s ${bodyPartLabels[anim.targetPart]} — ${anim.injLabel} (severity ${anim.severity}, integrity -${anim.dmg}).`) + + if (hitEnemy.head <= 0) { + log.push(`You crush the ${enemy.name}'s head!`) + log.push(`You defeated the ${enemy.name}!`) + } + + if (hitEnemy.head > 0) { + const eDmg = Math.max(1, enemy.attack + Math.floor(Math.random() * 6) - 2) + const eSeverity = 1 + Math.floor(Math.random() * 4) + const eType = ['cut', 'laceration', 'stab'][Math.floor(Math.random() * 3)] + const ePart = randomPart() + const eLabel = eType === 'laceration' ? 'laceration' : eType === 'stab' ? 'stab wound' : 'cut' + const eTime = Math.max(2, (20 - enemy.speed) * 0.3 + 1) + + const decayedPlayer2 = calcIntegrity(finalPlayerParts, finalPlayerInjuries, eTime) + finalPlayerParts = { ...decayedPlayer2, [ePart]: Math.max(0, decayedPlayer2[ePart] - eDmg) } + finalPlayerInjuries = applyInjury(finalPlayerInjuries, ePart, eType, eSeverity) + + log.push(`${enemy.name} lands a ${eLabel} on your ${bodyPartLabels[ePart]} (severity ${eSeverity}, integrity -${eDmg}).`) + + if (finalPlayerParts.head <= 0) { + log.push('You have been defeated...') + } + } + + setCombat(prev => { + const enemies = prev.enemies.map((e, i) => i === anim.enemyIndex ? { ...e, integrity: hitEnemy, injuries: newEnemyInjuries } : e) + return { ...prev, enemies, log } + }) + } + } + + setBodyParts(finalPlayerParts) + setBodyInjuries(finalPlayerInjuries) + } + if (elapsed >= 1) { + setAttackAnim(null) + setAttackLerp(null) + setHitShake(null) + } else { + requestAnimationFrame(tick) + } + }) + return () => cancelAnimationFrame(frame) + }, [attackAnim]) + + useEffect(() => { + if (!travelAnim) return + if (travelAnim.startTs === null) { + setTravelAnim(a => ({ ...a, startTs: performance.now() })) + return + } + const duration = 1000 + const frame = requestAnimationFrame(() => { + const elapsed = performance.now() - travelAnim.startTs + const progress = Math.min(1, elapsed / duration) + setTravelAnim(a => ({ ...a, progress })) + if (progress >= 1) { + setPlayerLoc(travelAnim.toId) + setTravelAnim(null) + } + }) + return () => cancelAnimationFrame(frame) + }, [travelAnim]) + + useEffect(() => { + const anim = moveAnimRef.current + if (!anim) return + const frame = requestAnimationFrame(() => { + const { fromX, fromY, toX, toY, speed } = anim + const dx = toX - fromX + const dy = toY - fromY + const dist = Math.sqrt(dx * dx + dy * dy) + if (dist <= speed) { + setCombat(c => ({ ...c, playerPos: { x: toX, y: toY } })) + setMoveAnim(null) + return + } + const step = 0.5 + const steps = Math.floor(speed / step) + let cx = fromX, cy = fromY + for (let i = 0; i < steps; i++) { + const nx = cx + (dx / dist) * step + const ny = cy + (dy / dist) * step + if (MAP_BLOCKS.some(b => rectCollides(nx, ny, b))) break + cx = nx; cy = ny + } + if (cx === fromX && cy === fromY) { + setMoveAnim(null) + } else { + setMoveAnim({ fromX: cx, fromY: cy, toX, toY, speed }) + setCombat(c => ({ ...c, playerPos: { x: cx, y: cy } })) + setCombatTime(t => t + 1/60) + } + }) + return () => cancelAnimationFrame(frame) + }, [moveAnim]) + + useEffect(() => { + if (!combat) { setDisplayTime(0); return } + if (displayTime >= combatTime) return + const frame = requestAnimationFrame(() => { + setDisplayTime(t => Math.min(t + 0.03, combatTime)) + }) + return () => cancelAnimationFrame(frame) + }, [displayTime, combatTime, combat]) + + useEffect(() => { + if (!hitShake) return + const duration = 300 + const frame = requestAnimationFrame(function tick() { + if (!hitShake) return + if (performance.now() - hitShake.startTs >= duration) { + setHitShake(null) + } else { + requestAnimationFrame(tick) + } + }) + return () => cancelAnimationFrame(frame) + }, [hitShake]) + + const lastDecayRef = useRef(-1) + useEffect(() => { + if (!combat) { lastDecayRef.current = -1; return } + const s = Math.floor(combatTime) + if (s > lastDecayRef.current && s >= 1) { + const delta = s - Math.max(0, lastDecayRef.current) + lastDecayRef.current = s + setBodyParts(p => calcIntegrity(p, bodyInjuries, delta)) + setCombat(c => ({ + ...c, + enemies: c.enemies.map(e => ({ ...e, integrity: calcIntegrity(e.integrity, e.injuries, delta) })) + })) + } + }, [combatTime, combat, bodyInjuries]) + + const handleItemClick = (itemId, i) => { + setCharView('player') + } + + const confirmLimbAttack = (part) => { + if (!limbSelect) return + const partMap = { larm: 'leftArm', rarm: 'rightArm', lleg: 'leftLeg', rleg: 'rightLeg' } + const fullPart = partMap[part] || part + playerAttack(fullPart, limbSelect, null, selectedEnemy) + setLimbSelect(null) + } + + return ( +
+ {combat && ( +
+
+
{(attackAnim || moveAnim) && ( + + + + )} Time: {Math.floor(displayTime / 60)}:{String(Math.floor(displayTime) % 60).padStart(2, '0')}.{String(Math.floor((displayTime % 1) * 100)).padStart(2, '0')}
+
+
+
+ {playerHp > 0 && combat.enemies.some(e => e.integrity.head > 0) && ( +
+
+
setExpandedWeapon(expandedWeapon === 'ROOT' ? null : 'ROOT')}> + {expandedWeapon === 'ROOT' ? '▼' : '▶'} + { e.stopPropagation(); setCharView('player') }}>Player +
+ {expandedWeapon === 'ROOT' && ( +
+
setWeaponsOpen(!weaponsOpen)}> + {weaponsOpen ? '▼' : '▶'} + Weapons +
+ {weaponsOpen && ( +
+ {(() => { + const lw = equippedWeapons.left + const rw = equippedWeapons.right + const leftFree = lw === 'fists' + const rightFree = rw === 'fists' + const entries = [] + if (leftFree) { + entries.push( +
setHoverInfo({ type: 'weapon', id: 'left_arm' })} + onMouseLeave={() => setHoverInfo(null)} + onClick={() => { setLimbSelect('left_arm'); setSelectedSkill(null); setSelectedTarget(null); setMoveMode(null) }}> + + Left Arm +
+ ) + } else { + entries.push( +
setHoverInfo({ type: 'weapon', id: lw })} + onMouseLeave={() => setHoverInfo(null)} + onClick={() => { setLimbSelect(lw); setSelectedSkill(null); setSelectedTarget(null); setMoveMode(null) }}> + + Left: {weaponMap[lw].name} +
+ ) + } + if (rightFree) { + entries.push( +
setHoverInfo({ type: 'weapon', id: 'right_arm' })} + onMouseLeave={() => setHoverInfo(null)} + onClick={() => { setLimbSelect('right_arm'); setSelectedSkill(null); setSelectedTarget(null); setMoveMode(null) }}> + + Right Arm +
+ ) + } else if (lw !== rw) { + entries.push( +
setHoverInfo({ type: 'weapon', id: rw })} + onMouseLeave={() => setHoverInfo(null)} + onClick={() => { setLimbSelect(rw); setSelectedSkill(null); setSelectedTarget(null); setMoveMode(null) }}> + + Right: {weaponMap[rw].name} +
+ ) + } + if (leftFree && rightFree) { + entries.push( +
setHoverInfo({ type: 'weapon', id: 'fists' })} + onMouseLeave={() => setHoverInfo(null)} + onClick={() => { setLimbSelect('fists'); setSelectedSkill(null); setSelectedTarget(null); setMoveMode(null) }}> + + Fists +
+ ) + } + return entries + })()} +
+ )} +
setItemsOpen(!itemsOpen)}> + {itemsOpen ? '▼' : '▶'} + Items +
+ {itemsOpen && ( +
+ {playerInventory.length === 0 ? ( +
No items
+ ) : ( + playerInventory.map((itemId, i) => ( +
handleItemClick(itemId, i)}> + + {itemMap[itemId]?.name ?? itemId} +
+ )) + )} +
+ )} +
setMovementOpen(!movementOpen)}> + {movementOpen ? '▼' : '▶'} + Movement +
+ {movementOpen && ( +
+
{ if (!moveAnim && !attackAnim) setMoveMode(m => m === "walk" ? null : "walk") }}> + + Walk +
+
{ if (!moveAnim && !attackAnim) setMoveMode(m => m === "run" ? null : "run") }}> + + Run +
+ {moveMode && ( +
+
Click on the mini-map to move
+
+ )} +
+ )} +
+ )} +
+
+ )} +
+
+
+ { + if (!moveMode) return + const rect = e.currentTarget.getBoundingClientRect() + const x = ((e.clientX - rect.left) / rect.width) * 160 + const y = ((e.clientY - rect.top) / rect.height) * 160 + startMove(x, y) + }}> + + {MAP_BLOCKS.map((block, i) => ( + + ))} + {(combat?.enemies || []).map((enemy, i) => ( + { e.stopPropagation(); setHoverInfo({ type: 'enemy', name: enemy.name, attack: enemy.attack, speed: enemy.speed }) }} + onMouseMove={(e) => setMousePos({ x: e.clientX, y: e.clientY })} + onMouseLeave={() => setHoverInfo(null)} + onClick={() => { setTargetEnemy(i); setCharView(i) }} /> + ))} + {combat && } + +
+
+
Combat Log
+
+ {(combat?.log || []).map((entry, i) => ( +
{entry}
+ ))} +
+
+
+
+
+ {(combat?.enemies || []).map((enemy, i) => ( +
{ setSelectedEnemy(i); setTargetEnemy(i); setCharView(i) }}> + {enemy.name} +
+ ))} +
+
+
+ {charView !== null && ( +
{ setCharView(null); setHoverInfo(null); setContextMenu(null) }} + onContextMenu={e => { e.preventDefault(); setContextMenu(null) }} + onMouseMove={(e) => setMousePos({ x: e.clientX, y: e.clientY })}> +
e.stopPropagation()}> + +
+
+ {charView === 'player' ? ( + + ) : combat?.enemies[charView] ? ( + + ) : null} +
+
+
+ {charView === 'player' ? ( + <> + + + + + ) : ( + <> + + + + + )} +
+ + {charView === 'player' ? ( + <> + {invTab === 'health' && ( +
+
Body Parts
+ {Object.keys(MAX_BODY).map(part => { + const hp = bodyParts[part] + const max = MAX_BODY[part] + const injuries = bodyInjuries[part] ?? [] + return ( +
+
+
+
{bodyPartLabels[part]}
+
+
+
+
{hp}/{max}
+
+ {injuries.length > 0 && ( +
+ {injuries.map((inj, i) => ( + {inj.type} ({inj.severity}) + ))} +
+ )} +
+ ) + })} +
+ Integrity + {playerHp}/{MAX_HP} +
+
+ )} + + {invTab === 'inventory' && ( +
+
+
Weapons
+ {(() => { + const lw = equippedWeapons.left, rw = equippedWeapons.right + if (lw === rw) { + return ( +
setHoverInfo({ type: 'weapon', id: lw })} + onMouseLeave={() => setHoverInfo(null)} + onContextMenu={e => { e.preventDefault(); setContextMenu({ x: e.clientX, y: e.clientY, weaponId: lw, side: 'both' }) }}> + {lw === 'fists' ? 'Fists' : `Both: ${weaponMap[lw].name}`} + {lw !== 'fists' && ( + <>DMG: {weaponMap[lw].damage} + COND: {weaponConditions[lw] ?? weaponMap[lw].maxCondition}/{weaponMap[lw].maxCondition} + {weaponMap[lw].passives.length > 0 && ( + {weaponMap[lw].passives.join(', ')} + )} + )} +
+ ) + } + return ['left', 'right'].map(side => { + const wid = equippedWeapons[side] + if (wid === 'fists') return null + return ( +
setHoverInfo({ type: 'weapon', id: wid })} + onMouseLeave={() => setHoverInfo(null)} + onContextMenu={e => { e.preventDefault(); setContextMenu({ x: e.clientX, y: e.clientY, weaponId: wid, side }) }}> + {side === 'left' ? 'Left' : 'Right'}: {weaponMap[wid].name} + DMG: {weaponMap[wid].damage} + COND: {weaponConditions[wid] ?? weaponMap[wid].maxCondition}/{weaponMap[wid].maxCondition} + {weaponMap[wid].passives.length > 0 && ( + {weaponMap[wid].passives.join(', ')} + )} +
+ ) + }) + })()} +
+
+
Inventory ({playerInventory.length})
+ {playerInventory.length === 0 ? ( +
Empty
+ ) : ( + <> + {playerInventory.map((itemId, i) => ( +
setHoverInfo({ type: 'item', id: itemId })} + onMouseLeave={() => setHoverInfo(null)}> + {itemMap[itemId]?.name ?? itemId} +
+ ))} + + )} +
Weight: {currentWeight}/{MAX_WEIGHT}
+
{playerMoney}g
+
+ )} + + {invTab === 'stats' && ( +
+
Character
+
NameYou
+
Age24
+
Location{locMap[playerLoc]?.name ?? playerLoc}
+
Day{gameTime.day}
+
Time{String(gameTime.hour).padStart(2, '0')}:00
+
Weather{weatherLabels[weather]}
+
+
Equipped{equippedWeapons.left === equippedWeapons.right ? (equippedWeapons.left === 'fists' ? 'Fists' : `Both: ${weaponMap[equippedWeapons.left].name}`) : [equippedWeapons.left !== 'fists' ? `L:${weaponMap[equippedWeapons.left].name}` : '', equippedWeapons.right !== 'fists' ? `R:${weaponMap[equippedWeapons.right].name}` : ''].filter(Boolean).join(' + ')}
+ {(() => { + const shown = new Set() + const rows = [] + const addWeapon = (wid) => { + if (shown.has(wid) || wid === 'fists') return + shown.add(wid) + rows.push( + +
Skills{weaponMap[wid].skills.map(s => s.name).join(', ')}
+
Weapon SPD{weaponMap[wid].speed}
+
+ ) + } + addWeapon(equippedWeapons.left) + addWeapon(equippedWeapons.right) + return rows + })()} +
+
Integrity{playerHp}/{MAX_HP}
+
Items{playerInventory.length}
+
Weight{currentWeight}/{MAX_WEIGHT}
+
Money{playerMoney}g
+
+ )} + + ) : combat?.enemies[charView] ? ( + <> + {enemyInvTab === 'health' && ( +
+
Body Parts
+ {Object.keys(MAX_BODY).map(part => { + const hp = combat.enemies[charView].integrity[part] + const max = MAX_BODY[part] + const injuries = combat.enemies[charView].injuries[part] ?? [] + return ( +
+
+
+
{bodyPartLabels[part]}
+
+
+
+
{hp}/{max}
+
+ {injuries.length > 0 && ( +
+ {injuries.map((inj, i) => ( + {inj.type} ({inj.severity}) + ))} +
+ )} +
+ ) + })} +
+ Integrity + {Object.values(combat.enemies[charView].integrity).reduce((a, b) => a + b, 0)}/{MAX_HP} +
+
+ )} + + {enemyInvTab === 'inventory' && ( +
+
Inventory ({(combat.enemies[charView].inventory || []).length})
+ {(combat.enemies[charView].inventory || []).length === 0 ? ( +
Empty
+ ) : ( + <> + {combat.enemies[charView].inventory.map((itemId, i) => ( +
setHoverInfo({ type: 'item', id: itemId })} + onMouseLeave={() => setHoverInfo(null)}> + {itemMap[itemId]?.name ?? itemId} +
+ ))} + + )} +
{combat.enemies[charView].money || 0}g
+
+ )} + + {enemyInvTab === 'stats' && ( +
+
{combat.enemies[charView].name}
+
Attack{combat.enemies[charView].attack || 0}
+
Speed{combat.enemies[charView].speed || 0}
+
+ )} + + ) : null} +
+
+
+
+ )} + {showSettings && ( +
+
+ Settings + +
+
+
+
Display
+
+ Zoom +
+ + {Math.round(view.scale * 100)}% + +
+
+
+
+
Game
+
+ Day + {gameTime.day} +
+
+ Time + {String(gameTime.hour).padStart(2, "0")}:00 +
+
+ Weather + {weatherLabels[weather]} +
+
+
+
Player
+
+ Location + {locMap[playerLoc]?.name ?? playerLoc} +
+
+ Money + {playerMoney}g +
+
+
+
+ )} + {limbSelect && ( +
setLimbSelect(null)}> +
e.stopPropagation()}> +
Select body part to attack
+
+ + + + + + +
+
+ +
+
+
+ )} +
+ )} + {!combat && ( + <> + setMousePos({ x: e.clientX, y: e.clientY })}> + + + + {connections.map((c, i) => { + const from = locMap[c.from] + const to = locMap[c.to] + return ( + + ) + })} + + {locations.map(l => ( + + setSelected(selected === l.id ? null : l.id)} + onMouseEnter={() => setHovered(l.id)} + onMouseMove={(e) => setMousePos({ x: e.clientX, y: e.clientY })} + onMouseLeave={() => setHovered(null)} /> + {l.id} + {shops.some(s => s.locationId === l.id) && ( + S + )} + {!travelAnim && playerLoc === l.id && ( + <> + + P + + )} + + ))} + {travelAnim && ( + + )} + + + +
+
+ + +
+
+
Day {gameTime.day} {String(gameTime.hour).padStart(2, '0')}:00
+
{weatherLabels[weather]}
+
+
+ +
+ + +
+
+ +
+ + {hovered && ( +
+
{locMap[hovered].name}
+
{locMap[hovered].description}
+
+ )} + + {hoverInfo?.type === 'item' && itemMap[hoverInfo.id] && ( +
+
{itemMap[hoverInfo.id].name}
+
{itemMap[hoverInfo.id].description}
+
+ )} + + {hoverInfo?.type === 'weapon' && hoverInfo.id && (weaponMap[hoverInfo.id] || hoverInfo.id === 'left_arm' || hoverInfo.id === 'right_arm') && ( +
+ {hoverInfo.id === 'left_arm' || hoverInfo.id === 'right_arm' ? ( + <> +
{hoverInfo.id === 'left_arm' ? 'Left Arm' : 'Right Arm'}
+
A weak unarmed punch (DMG: 10)
+ + ) : ( + <> +
{weaponMap[hoverInfo.id].name}
+
DMG: {weaponMap[hoverInfo.id].damage} SPD: {weaponMap[hoverInfo.id].speed}
+
+ Condition: {weaponConditions[hoverInfo.id] ?? weaponMap[hoverInfo.id].maxCondition}/{weaponMap[hoverInfo.id].maxCondition} +
+
+ Skills: {weaponMap[hoverInfo.id].skills.map(s => `${s.name} (${s.damageType})`).join(', ')} +
+ {weaponMap[hoverInfo.id].passives.length > 0 && ( +
+ Passives: {weaponMap[hoverInfo.id].passives.join(', ')} +
+ )} + + )} +
+ )} + + {selected && ( +
+
{locMap[selected].name}
+
{locMap[selected].description}
+ + {playerLoc !== selected && connectedTo(playerLoc).includes(selected) && ( +
+
Travel here
+ +
+ )} + + {shopAtLoc && ( +
+
{shopAtLoc.name}
+ {shopAtLoc.items.map((item, i) => ( +
+ {item.name} + {item.price}g + +
+ ))} +
+ )} + +
+
Characters here
+ {liveCharacters.filter(c => c.location === selected).length === 0 ? ( +
None
+ ) : ( + liveCharacters.filter(c => c.location === selected).map(c => ( +
+
{c.name}
+
+ {c.money !== undefined && ( + {c.money}g + )} + {c.inventory && c.inventory.length > 0 && ( + {c.inventory.map(id => itemMap[id]?.name ?? id).join(', ')} + )} +
+
+ )) + )} +
+ {playerLoc === selected && ( + + )} + +
+ )} + + {showLocationModal && ( +
{ setShowLocationModal(null); setActionNpc(null) }}> +
e.stopPropagation()}> +
+
{locMap[showLocationModal]?.name}
+ +
+
+
+
Log
+
+ {locationLog.map((line, i) => ( +
{line}
+ ))} +
+
+
+
+
Surroundings
+
+
{locMap[showLocationModal]?.description}
+
+
Connections
+ {connections.filter(c => c.from === showLocationModal || c.to === showLocationModal).map(c => { + const otherId = c.from === showLocationModal ? c.to : c.from + return
{locMap[otherId]?.name}
+ })} +
+ {shops.filter(s => s.locationId === showLocationModal).length > 0 && ( +
+
Shops
+ {shops.filter(s => s.locationId === showLocationModal).map(s => ( +
{s.name}
+ ))} +
+ )} +
+
+
+
Characters
+
+ {liveCharacters.filter(c => c.id !== 'player' && c.location === showLocationModal).length === 0 ? ( +
No one here.
+ ) : ( + liveCharacters.filter(c => c.id !== 'player' && c.location === showLocationModal).map(c => ( +
+
{c.name}
+ +
+ )) + )} +
+
+
+
+ {actionNpc && ( +
setActionNpc(null)}> +
e.stopPropagation()}> + +
+ +
+
+
+ )} +
+
+ )} + + {showInventory && ( +
{ setShowInventory(false); setHoverInfo(null); setContextMenu(null) }} + onContextMenu={e => { e.preventDefault(); setContextMenu(null) }} + onMouseMove={(e) => setMousePos({ x: e.clientX, y: e.clientY })}> +
e.stopPropagation()}> + +
+
+ +
+
+
+ + + +
+ + {invTab === 'health' && ( +
+
Body Parts
+ {Object.keys(MAX_BODY).map(part => { + const hp = bodyParts[part] + const max = MAX_BODY[part] + const injuries = bodyInjuries[part] ?? [] + return ( +
+
+
+
{bodyPartLabels[part]}
+
+
+
+
{hp}/{max}
+
+ {injuries.length > 0 && ( +
+ {injuries.map((inj, i) => ( + {inj.type} ({inj.severity}) + ))} +
+ )} +
+ ) + })} +
+ Integrity + {playerHp}/{MAX_HP} +
+
+ )} + + {invTab === 'inventory' && ( +
+
+
Weapons
+ {(() => { + const lw = equippedWeapons.left, rw = equippedWeapons.right + if (lw === rw) { + return ( +
setHoverInfo({ type: 'weapon', id: lw })} + onMouseLeave={() => setHoverInfo(null)} + onContextMenu={e => { e.preventDefault(); setContextMenu({ x: e.clientX, y: e.clientY, weaponId: lw, side: 'both' }) }}> + {lw === 'fists' ? 'Fists' : `Both: ${weaponMap[lw].name}`} + {lw !== 'fists' && ( + <>DMG: {weaponMap[lw].damage} + COND: {weaponConditions[lw] ?? weaponMap[lw].maxCondition}/{weaponMap[lw].maxCondition} + {weaponMap[lw].passives.length > 0 && ( + {weaponMap[lw].passives.join(', ')} + )} + )} +
+ ) + } + return ['left', 'right'].map(side => { + const wid = equippedWeapons[side] + if (wid === 'fists') return null + return ( +
setHoverInfo({ type: 'weapon', id: wid })} + onMouseLeave={() => setHoverInfo(null)} + onContextMenu={e => { e.preventDefault(); setContextMenu({ x: e.clientX, y: e.clientY, weaponId: wid, side }) }}> + {side === 'left' ? 'Left' : 'Right'}: {weaponMap[wid].name} + DMG: {weaponMap[wid].damage} + COND: {weaponConditions[wid] ?? weaponMap[wid].maxCondition}/{weaponMap[wid].maxCondition} + {weaponMap[wid].passives.length > 0 && ( + {weaponMap[wid].passives.join(', ')} + )} +
+ ) + }) + })()} +
+
+
Inventory ({playerInventory.length})
+ {playerInventory.length === 0 ? ( +
Empty
+ ) : ( + <> + {playerInventory.map((itemId, i) => ( +
setHoverInfo({ type: 'item', id: itemId })} + onMouseLeave={() => setHoverInfo(null)}> + {itemMap[itemId]?.name ?? itemId} +
+ ))} + + )} +
Weight: {currentWeight}/{MAX_WEIGHT}
+
{playerMoney}g
+
+ )} + + {invTab === 'stats' && ( +
+
Character
+
NameYou
+
Age24
+
Location{locMap[playerLoc]?.name ?? playerLoc}
+
Day{gameTime.day}
+
Time{String(gameTime.hour).padStart(2, '0')}:00
+
Weather{weatherLabels[weather]}
+
+
Equipped{equippedWeapons.left === equippedWeapons.right ? (equippedWeapons.left === 'fists' ? 'Fists' : `Both: ${weaponMap[equippedWeapons.left].name}`) : [equippedWeapons.left !== 'fists' ? `L:${weaponMap[equippedWeapons.left].name}` : '', equippedWeapons.right !== 'fists' ? `R:${weaponMap[equippedWeapons.right].name}` : ''].filter(Boolean).join(' + ')}
+ {(() => { + const shown = new Set() + const rows = [] + const addWeapon = (wid) => { + if (shown.has(wid) || wid === 'fists') return + shown.add(wid) + rows.push( + +
Skills{weaponMap[wid].skills.map(s => s.name).join(', ')}
+
Weapon SPD{weaponMap[wid].speed}
+
+ ) + } + addWeapon(equippedWeapons.left) + addWeapon(equippedWeapons.right) + return rows + })()} +
+
Integrity{playerHp}/{MAX_HP}
+
Items{playerInventory.length}
+
Weight{currentWeight}/{MAX_WEIGHT}
+
Money{playerMoney}g
+
+ )} +
+
+
+
+ )} + + {showSettings && ( +
+
+ Settings + +
+
+
+
Display
+
+ Zoom +
+ + {Math.round(view.scale * 100)}% + +
+
+
+
+
Game
+
+ Day + {gameTime.day} +
+
+ Time + {String(gameTime.hour).padStart(2, '0')}:00 +
+
+ Weather + {weatherLabels[weather]} +
+
+
+
Player
+
+ Location + {locMap[playerLoc]?.name ?? playerLoc} +
+
+ Money + {playerMoney}g +
+
+
+
+ )} + + )} + + {hoverInfo?.type === 'enemy' && ( +
+
{hoverInfo.name}
+
{hoverInfo.defeated ? 'Defeated' : 'Hostile'}
+
+ )} + {buyArmChoice && ( +
setBuyArmChoice(null)}> +
e.stopPropagation()}> +
Equip {buyArmChoice.item.name}
+
+ + + +
+ +
+
+ )} +
+ ) +} + +export default App diff --git a/src/assets/body/malebody.png b/src/assets/body/malebody.png new file mode 100644 index 0000000..0188a75 Binary files /dev/null and b/src/assets/body/malebody.png differ diff --git a/src/assets/hero.png b/src/assets/hero.png new file mode 100644 index 0000000..02251f4 Binary files /dev/null and b/src/assets/hero.png differ diff --git a/src/assets/react.svg b/src/assets/react.svg new file mode 100644 index 0000000..6c87de9 --- /dev/null +++ b/src/assets/react.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/assets/vite.svg b/src/assets/vite.svg new file mode 100644 index 0000000..5101b67 --- /dev/null +++ b/src/assets/vite.svg @@ -0,0 +1 @@ +Vite diff --git a/src/index.css b/src/index.css new file mode 100644 index 0000000..8b91b62 --- /dev/null +++ b/src/index.css @@ -0,0 +1,10 @@ +*, *::before, *::after { + margin: 0; + padding: 0; + box-sizing: border-box; +} + +html, body, #root { + width: 100%; + height: 100%; +} diff --git a/src/main.jsx b/src/main.jsx new file mode 100644 index 0000000..b9a1a6d --- /dev/null +++ b/src/main.jsx @@ -0,0 +1,10 @@ +import { StrictMode } from 'react' +import { createRoot } from 'react-dom/client' +import './index.css' +import App from './App.jsx' + +createRoot(document.getElementById('root')).render( + + + , +) diff --git a/vite.config.js b/vite.config.js new file mode 100644 index 0000000..8b0f57b --- /dev/null +++ b/vite.config.js @@ -0,0 +1,7 @@ +import { defineConfig } from 'vite' +import react from '@vitejs/plugin-react' + +// https://vite.dev/config/ +export default defineConfig({ + plugins: [react()], +})