commit 795c4ffa6376cc56bbc92dfdbaf95ebd597e20c6 Author: Marius Unsel Date: Mon Feb 23 00:22:10 2026 +0100 mayor refactor to use vite instead of weboack and version upgrade 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/README.md b/README.md new file mode 100644 index 0000000..d2e7761 --- /dev/null +++ b/README.md @@ -0,0 +1,73 @@ +# React + TypeScript + 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 [Babel](https://babeljs.io/) (or [oxc](https://oxc.rs) when used in [rolldown-vite](https://vite.dev/guide/rolldown)) for Fast Refresh +- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh + +## 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 updating the configuration to enable type-aware lint rules: + +```js +export default defineConfig([ + globalIgnores(['dist']), + { + files: ['**/*.{ts,tsx}'], + extends: [ + // Other configs... + + // Remove tseslint.configs.recommended and replace with this + tseslint.configs.recommendedTypeChecked, + // Alternatively, use this for stricter rules + tseslint.configs.strictTypeChecked, + // Optionally, add this for stylistic rules + tseslint.configs.stylisticTypeChecked, + + // Other configs... + ], + languageOptions: { + parserOptions: { + project: ['./tsconfig.node.json', './tsconfig.app.json'], + tsconfigRootDir: import.meta.dirname, + }, + // other options... + }, + }, +]) +``` + +You can also install [eslint-plugin-react-x](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-x) and [eslint-plugin-react-dom](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-dom) for React-specific lint rules: + +```js +// eslint.config.js +import reactX from 'eslint-plugin-react-x' +import reactDom from 'eslint-plugin-react-dom' + +export default defineConfig([ + globalIgnores(['dist']), + { + files: ['**/*.{ts,tsx}'], + extends: [ + // Other configs... + // Enable lint rules for React + reactX.configs['recommended-typescript'], + // Enable lint rules for React DOM + reactDom.configs.recommended, + ], + languageOptions: { + parserOptions: { + project: ['./tsconfig.node.json', './tsconfig.app.json'], + tsconfigRootDir: import.meta.dirname, + }, + // other options... + }, + }, +]) +``` diff --git a/eslint.config.js b/eslint.config.js new file mode 100644 index 0000000..5e6b472 --- /dev/null +++ b/eslint.config.js @@ -0,0 +1,23 @@ +import js from '@eslint/js' +import globals from 'globals' +import reactHooks from 'eslint-plugin-react-hooks' +import reactRefresh from 'eslint-plugin-react-refresh' +import tseslint from 'typescript-eslint' +import { defineConfig, globalIgnores } from 'eslint/config' + +export default defineConfig([ + globalIgnores(['dist']), + { + files: ['**/*.{ts,tsx}'], + extends: [ + js.configs.recommended, + tseslint.configs.recommended, + reactHooks.configs.flat.recommended, + reactRefresh.configs.vite, + ], + languageOptions: { + ecmaVersion: 2020, + globals: globals.browser, + }, + }, +]) diff --git a/index.html b/index.html new file mode 100644 index 0000000..b8e7e64 --- /dev/null +++ b/index.html @@ -0,0 +1,13 @@ + + + + + + + Floppy Venture + + +
+ + + diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..2d3ad09 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,3614 @@ +{ + "name": "floppy-venture", + "version": "0.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "floppy-venture", + "version": "0.0.0", + "dependencies": { + "@reduxjs/toolkit": "^2.11.2", + "@types/lodash": "^4.17.23", + "@types/three": "^0.182.0", + "lodash": "^4.17.23", + "popmotion": "^11.0.5", + "react": "^19.2.0", + "react-dom": "^19.2.0", + "react-redux": "^9.2.0", + "react-responsive-modal": "^7.1.0", + "react-router-dom": "^7.13.0", + "three": "^0.182.0" + }, + "devDependencies": { + "@eslint/js": "^9.39.1", + "@types/node": "^24.10.13", + "@types/react": "^19.2.7", + "@types/react-dom": "^19.2.3", + "@vitejs/plugin-react": "^5.1.1", + "eslint": "^9.39.1", + "eslint-plugin-react-hooks": "^7.0.1", + "eslint-plugin-react-refresh": "^0.4.24", + "globals": "^16.5.0", + "typescript": "~5.9.3", + "typescript-eslint": "^8.48.0", + "vite": "^7.3.1" + } + }, + "node_modules/@babel/code-frame": { + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.29.0.tgz", + "integrity": "sha512-9NhCeYjq9+3uxgdtp20LSiJXJvN0FeCtNGpJxuMFZ1Kv3cWUNb6DOhJwUvcVCzKGR66cw4njwM6hrJLqgOwbcw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-validator-identifier": "^7.28.5", + "js-tokens": "^4.0.0", + "picocolors": "^1.1.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/compat-data": { + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.29.0.tgz", + "integrity": "sha512-T1NCJqT/j9+cn8fvkt7jtwbLBfLC/1y1c7NtCeXFRgzGTsafi68MRv8yzkYSapBnFA6L3U2VSc02ciDzoAJhJg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/core": { + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.29.0.tgz", + "integrity": "sha512-CGOfOJqWjg2qW/Mb6zNsDm+u5vFQ8DxXfbM09z69p5Z6+mE1ikP2jUXw+j42Pf1XTYED2Rni5f95npYeuwMDQA==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@babel/code-frame": "^7.29.0", + "@babel/generator": "^7.29.0", + "@babel/helper-compilation-targets": "^7.28.6", + "@babel/helper-module-transforms": "^7.28.6", + "@babel/helpers": "^7.28.6", + "@babel/parser": "^7.29.0", + "@babel/template": "^7.28.6", + "@babel/traverse": "^7.29.0", + "@babel/types": "^7.29.0", + "@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.1", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.29.1.tgz", + "integrity": "sha512-qsaF+9Qcm2Qv8SRIMMscAvG4O3lJ0F1GuMo5HR/Bp02LopNgnZBC/EkbevHFeGs4ls/oPz9v+Bsmzbkbe+0dUw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.29.0", + "@babel/types": "^7.29.0", + "@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.28.6", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.28.6.tgz", + "integrity": "sha512-JYtls3hqi15fcx5GaSNL7SCTJ2MNmjrkHXg4FSpOA/grxK8KwyZ5bubHsCq8FXCkua6xhuaaBit+3b7+VZRfcA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/compat-data": "^7.28.6", + "@babel/helper-validator-option": "^7.27.1", + "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.28.0", + "resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-7.28.0.tgz", + "integrity": "sha512-+W6cISkXFa1jXsDEdYA8HeevQT/FULhxzR99pxphltZcVaugps53THCeiWA8SguxxpSp3gKPiuYfSWopkLQ4hw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-imports": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.28.6.tgz", + "integrity": "sha512-l5XkZK7r7wa9LucGw9LwZyyCUscb4x37JWTPz7swwFE/0FMQAGpiWUZn8u9DzkSBWEcK25jmvubfpw2dnAMdbw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/traverse": "^7.28.6", + "@babel/types": "^7.28.6" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-transforms": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.28.6.tgz", + "integrity": "sha512-67oXFAYr2cDLDVGLXTEABjdBJZ6drElUSI7WKp70NrpyISso3plG9SAGEF6y7zbha/wOzUByWWTJvEDVNIUGcA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-module-imports": "^7.28.6", + "@babel/helper-validator-identifier": "^7.28.5", + "@babel/traverse": "^7.28.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-plugin-utils": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.28.6.tgz", + "integrity": "sha512-S9gzZ/bz83GRysI7gAD4wPT/AI3uCnY+9xn+Mx/KPs2JwHJIz1W8PZkg2cqyt3RNOBM8ejcXhV6y8Og7ly/Dug==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-string-parser": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz", + "integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.28.5", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.28.5.tgz", + "integrity": "sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-option": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.27.1.tgz", + "integrity": "sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helpers": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.28.6.tgz", + "integrity": "sha512-xOBvwq86HHdB7WUDTfKfT/Vuxh7gElQ+Sfti2Cy6yIWNW05P8iUslOVcZ4/sKbE+/jQaukQAdz/gf3724kYdqw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/template": "^7.28.6", + "@babel/types": "^7.28.6" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/parser": { + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.0.tgz", + "integrity": "sha512-IyDgFV5GeDUVX4YdF/3CPULtVGSXXMLh1xVIgdCgxApktqnQV0r7/8Nqthg+8YLGaAtdyIlo2qIdZrbCv4+7ww==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.29.0" + }, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/plugin-transform-react-jsx-self": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-self/-/plugin-transform-react-jsx-self-7.27.1.tgz", + "integrity": "sha512-6UzkCs+ejGdZ5mFFC/OCUrv028ab2fp1znZmCZjAOBKiBK2jXD1O+BPSfX8X2qjJ75fZBMSnQn3Rq2mrBJK2mw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-react-jsx-source": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-source/-/plugin-transform-react-jsx-source-7.27.1.tgz", + "integrity": "sha512-zbwoTsBruTeKB9hSq73ha66iFeJHuaFkUbwvqElnygoNbj/jHRsSeokowZFN3CZ64IvEqcmmkVe89OPXc7ldAw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/template": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.28.6.tgz", + "integrity": "sha512-YA6Ma2KsCdGb+WC6UpBVFJGXL58MDA6oyONbjyF/+5sBgxY/dwkhLogbMT2GXXyU84/IhRw/2D1Os1B/giz+BQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.28.6", + "@babel/parser": "^7.28.6", + "@babel/types": "^7.28.6" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/traverse": { + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.29.0.tgz", + "integrity": "sha512-4HPiQr0X7+waHfyXPZpWPfWL/J7dcN1mx9gL6WdQVMbPnF3+ZhSMs8tCxN7oHddJE9fhNE7+lxdnlyemKfJRuA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.29.0", + "@babel/generator": "^7.29.0", + "@babel/helper-globals": "^7.28.0", + "@babel/parser": "^7.29.0", + "@babel/template": "^7.28.6", + "@babel/types": "^7.29.0", + "debug": "^4.3.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/types": { + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.0.tgz", + "integrity": "sha512-LwdZHpScM4Qz8Xw2iKSzS+cfglZzJGvofQICy7W7v4caru4EaAmyUuO6BGrbyQ2mYV11W0U8j5mBhd14dd3B0A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-string-parser": "^7.27.1", + "@babel/helper-validator-identifier": "^7.28.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@dimforge/rapier3d-compat": { + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/@dimforge/rapier3d-compat/-/rapier3d-compat-0.12.0.tgz", + "integrity": "sha512-uekIGetywIgopfD97oDL5PfeezkFpNhwlzlaEYNOA0N6ghdsOvh/HYjSMek5Q2O1PYvRSDFcqFVJl4r4ZBwOow==", + "license": "Apache-2.0" + }, + "node_modules/@esbuild/aix-ppc64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.27.3.tgz", + "integrity": "sha512-9fJMTNFTWZMh5qwrBItuziu834eOCUcEqymSH7pY+zoMVEZg3gcPuBNxH1EvfVYe9h0x/Ptw8KBzv7qxb7l8dg==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "aix" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.27.3.tgz", + "integrity": "sha512-i5D1hPY7GIQmXlXhs2w8AWHhenb00+GxjxRncS2ZM7YNVGNfaMxgzSGuO8o8SJzRc/oZwU2bcScvVERk03QhzA==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.27.3.tgz", + "integrity": "sha512-YdghPYUmj/FX2SYKJ0OZxf+iaKgMsKHVPF1MAq/P8WirnSpCStzKJFjOjzsW0QQ7oIAiccHdcqjbHmJxRb/dmg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-x64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.27.3.tgz", + "integrity": "sha512-IN/0BNTkHtk8lkOM8JWAYFg4ORxBkZQf9zXiEOfERX/CzxW3Vg1ewAhU7QSWQpVIzTW+b8Xy+lGzdYXV6UZObQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-arm64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.27.3.tgz", + "integrity": "sha512-Re491k7ByTVRy0t3EKWajdLIr0gz2kKKfzafkth4Q8A5n1xTHrkqZgLLjFEHVD+AXdUGgQMq+Godfq45mGpCKg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-x64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.27.3.tgz", + "integrity": "sha512-vHk/hA7/1AckjGzRqi6wbo+jaShzRowYip6rt6q7VYEDX4LEy1pZfDpdxCBnGtl+A5zq8iXDcyuxwtv3hNtHFg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-arm64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.27.3.tgz", + "integrity": "sha512-ipTYM2fjt3kQAYOvo6vcxJx3nBYAzPjgTCk7QEgZG8AUO3ydUhvelmhrbOheMnGOlaSFUoHXB6un+A7q4ygY9w==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-x64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.27.3.tgz", + "integrity": "sha512-dDk0X87T7mI6U3K9VjWtHOXqwAMJBNN2r7bejDsc+j03SEjtD9HrOl8gVFByeM0aJksoUuUVU9TBaZa2rgj0oA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.27.3.tgz", + "integrity": "sha512-s6nPv2QkSupJwLYyfS+gwdirm0ukyTFNl3KTgZEAiJDd+iHZcbTPPcWCcRYH+WlNbwChgH2QkE9NSlNrMT8Gfw==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.27.3.tgz", + "integrity": "sha512-sZOuFz/xWnZ4KH3YfFrKCf1WyPZHakVzTiqji3WDc0BCl2kBwiJLCXpzLzUBLgmp4veFZdvN5ChW4Eq/8Fc2Fg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ia32": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.27.3.tgz", + "integrity": "sha512-yGlQYjdxtLdh0a3jHjuwOrxQjOZYD/C9PfdbgJJF3TIZWnm/tMd/RcNiLngiu4iwcBAOezdnSLAwQDPqTmtTYg==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-loong64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.27.3.tgz", + "integrity": "sha512-WO60Sn8ly3gtzhyjATDgieJNet/KqsDlX5nRC5Y3oTFcS1l0KWba+SEa9Ja1GfDqSF1z6hif/SkpQJbL63cgOA==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-mips64el": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.27.3.tgz", + "integrity": "sha512-APsymYA6sGcZ4pD6k+UxbDjOFSvPWyZhjaiPyl/f79xKxwTnrn5QUnXR5prvetuaSMsb4jgeHewIDCIWljrSxw==", + "cpu": [ + "mips64el" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ppc64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.27.3.tgz", + "integrity": "sha512-eizBnTeBefojtDb9nSh4vvVQ3V9Qf9Df01PfawPcRzJH4gFSgrObw+LveUyDoKU3kxi5+9RJTCWlj4FjYXVPEA==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-riscv64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.27.3.tgz", + "integrity": "sha512-3Emwh0r5wmfm3ssTWRQSyVhbOHvqegUDRd0WhmXKX2mkHJe1SFCMJhagUleMq+Uci34wLSipf8Lagt4LlpRFWQ==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-s390x": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.27.3.tgz", + "integrity": "sha512-pBHUx9LzXWBc7MFIEEL0yD/ZVtNgLytvx60gES28GcWMqil8ElCYR4kvbV2BDqsHOvVDRrOxGySBM9Fcv744hw==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-x64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.27.3.tgz", + "integrity": "sha512-Czi8yzXUWIQYAtL/2y6vogER8pvcsOsk5cpwL4Gk5nJqH5UZiVByIY8Eorm5R13gq+DQKYg0+JyQoytLQas4dA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-arm64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.27.3.tgz", + "integrity": "sha512-sDpk0RgmTCR/5HguIZa9n9u+HVKf40fbEUt+iTzSnCaGvY9kFP0YKBWZtJaraonFnqef5SlJ8/TiPAxzyS+UoA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-x64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.27.3.tgz", + "integrity": "sha512-P14lFKJl/DdaE00LItAukUdZO5iqNH7+PjoBm+fLQjtxfcfFE20Xf5CrLsmZdq5LFFZzb5JMZ9grUwvtVYzjiA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-arm64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.27.3.tgz", + "integrity": "sha512-AIcMP77AvirGbRl/UZFTq5hjXK+2wC7qFRGoHSDrZ5v5b8DK/GYpXW3CPRL53NkvDqb9D+alBiC/dV0Fb7eJcw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-x64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.27.3.tgz", + "integrity": "sha512-DnW2sRrBzA+YnE70LKqnM3P+z8vehfJWHXECbwBmH/CU51z6FiqTQTHFenPlHmo3a8UgpLyH3PT+87OViOh1AQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openharmony-arm64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.27.3.tgz", + "integrity": "sha512-NinAEgr/etERPTsZJ7aEZQvvg/A6IsZG/LgZy+81wON2huV7SrK3e63dU0XhyZP4RKGyTm7aOgmQk0bGp0fy2g==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/sunos-x64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.27.3.tgz", + "integrity": "sha512-PanZ+nEz+eWoBJ8/f8HKxTTD172SKwdXebZ0ndd953gt1HRBbhMsaNqjTyYLGLPdoWHy4zLU7bDVJztF5f3BHA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-arm64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.27.3.tgz", + "integrity": "sha512-B2t59lWWYrbRDw/tjiWOuzSsFh1Y/E95ofKz7rIVYSQkUYBjfSgf6oeYPNWHToFRr2zx52JKApIcAS/D5TUBnA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-ia32": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.27.3.tgz", + "integrity": "sha512-QLKSFeXNS8+tHW7tZpMtjlNb7HKau0QDpwm49u0vUp9y1WOF+PEzkU84y9GqYaAVW8aH8f3GcBck26jh54cX4Q==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-x64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.27.3.tgz", + "integrity": "sha512-4uJGhsxuptu3OcpVAzli+/gWusVGwZZHTlS63hh++ehExkVT8SgiEf7/uC/PclrPPkLhZqGgCTjd0VWLo6xMqA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "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.21.1", + "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.21.1.tgz", + "integrity": "sha512-aw1gNayWpdI/jSYVgzN5pL0cfzU02GT3NBpeT/DXbx1/1x7ZKxFPd9bwrzygx/qiwIQiJ1sw/zD8qY/kRvlGHA==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@eslint/object-schema": "^2.1.7", + "debug": "^4.3.1", + "minimatch": "^3.1.2" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/config-helpers": { + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.4.2.tgz", + "integrity": "sha512-gBrxN88gOIf3R7ja5K9slwNayVcZgK6SOUORm2uBzTeIEfeVaIhOpCtTox3P6R7o2jLFwLFTLnC7kU/RGcYEgw==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@eslint/core": "^0.17.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/core": { + "version": "0.17.0", + "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.17.0.tgz", + "integrity": "sha512-yL/sLrpmtDaFEiUj1osRP4TI2MDz1AddJL+jZ7KSqvBuliN4xqYY54IfdN8qD8Toa6g1iloph1fxQNkjOxrrpQ==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@types/json-schema": "^7.0.15" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/eslintrc": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.3.3.tgz", + "integrity": "sha512-Kr+LPIUVKz2qkx1HAMH8q1q6azbqBAsXJUxBl/ODDuVPX45Z9DfwB8tPjTi6nNZ8BuM3nbJxC5zCAg5elnBUTQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "ajv": "^6.12.4", + "debug": "^4.3.2", + "espree": "^10.0.1", + "globals": "^14.0.0", + "ignore": "^5.2.0", + "import-fresh": "^3.2.1", + "js-yaml": "^4.1.1", + "minimatch": "^3.1.2", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@eslint/eslintrc/node_modules/globals": { + "version": "14.0.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz", + "integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@eslint/js": { + "version": "9.39.2", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.39.2.tgz", + "integrity": "sha512-q1mjIoW1VX4IvSocvM/vbTiveKC4k9eLrajNEuSsmjymSDEbpGddtpfOoN7YGAqBK3NG+uqo8ia4PDTt8buCYA==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://eslint.org/donate" + } + }, + "node_modules/@eslint/object-schema": { + "version": "2.1.7", + "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-2.1.7.tgz", + "integrity": "sha512-VtAOaymWVfZcmZbp6E2mympDIHvyjXs/12LqWYjVw6qjrfF+VK+fyG33kChz3nnK+SU5/NeHOqrTEHS8sXO3OA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/plugin-kit": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.4.1.tgz", + "integrity": "sha512-43/qtrDUokr7LJqoF2c3+RInu/t4zfrpYdoSDfYyhg52rwLV6TnOvdG4fXm7IkSB3wErkcmJS9iEhjVtOSEjjA==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@eslint/core": "^0.17.0", + "levn": "^0.4.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@humanfs/core": { + "version": "0.19.1", + "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.1.tgz", + "integrity": "sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=18.18.0" + } + }, + "node_modules/@humanfs/node": { + "version": "0.16.7", + "resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.7.tgz", + "integrity": "sha512-/zUx+yOsIrG4Y43Eh2peDeKCxlRt/gET6aHfaKpuq267qXdYDFViVHfMaLyygZOnl0kGWxFIgsBy8QFuTLUXEQ==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@humanfs/core": "^0.19.1", + "@humanwhocodes/retry": "^0.4.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/@reduxjs/toolkit": { + "version": "2.11.2", + "resolved": "https://registry.npmjs.org/@reduxjs/toolkit/-/toolkit-2.11.2.tgz", + "integrity": "sha512-Kd6kAHTA6/nUpp8mySPqj3en3dm0tdMIgbttnQ1xFMVpufoj+ADi8pXLBsd4xzTRHQa7t/Jv8W5UnCuW4kuWMQ==", + "license": "MIT", + "dependencies": { + "@standard-schema/spec": "^1.0.0", + "@standard-schema/utils": "^0.3.0", + "immer": "^11.0.0", + "redux": "^5.0.1", + "redux-thunk": "^3.1.0", + "reselect": "^5.1.0" + }, + "peerDependencies": { + "react": "^16.9.0 || ^17.0.0 || ^18 || ^19", + "react-redux": "^7.2.1 || ^8.1.3 || ^9.0.0" + }, + "peerDependenciesMeta": { + "react": { + "optional": true + }, + "react-redux": { + "optional": true + } + } + }, + "node_modules/@rolldown/pluginutils": { + "version": "1.0.0-rc.3", + "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.0-rc.3.tgz", + "integrity": "sha512-eybk3TjzzzV97Dlj5c+XrBFW57eTNhzod66y9HrBlzJ6NsCrWCp/2kaPS3K9wJmurBC0Tdw4yPjXKZqlznim3Q==", + "dev": true, + "license": "MIT" + }, + "node_modules/@rollup/rollup-android-arm-eabi": { + "version": "4.57.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.57.1.tgz", + "integrity": "sha512-A6ehUVSiSaaliTxai040ZpZ2zTevHYbvu/lDoeAteHI8QnaosIzm4qwtezfRg1jOYaUmnzLX1AOD6Z+UJjtifg==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-android-arm64": { + "version": "4.57.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.57.1.tgz", + "integrity": "sha512-dQaAddCY9YgkFHZcFNS/606Exo8vcLHwArFZ7vxXq4rigo2bb494/xKMMwRRQW6ug7Js6yXmBZhSBRuBvCCQ3w==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-darwin-arm64": { + "version": "4.57.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.57.1.tgz", + "integrity": "sha512-crNPrwJOrRxagUYeMn/DZwqN88SDmwaJ8Cvi/TN1HnWBU7GwknckyosC2gd0IqYRsHDEnXf328o9/HC6OkPgOg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-darwin-x64": { + "version": "4.57.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.57.1.tgz", + "integrity": "sha512-Ji8g8ChVbKrhFtig5QBV7iMaJrGtpHelkB3lsaKzadFBe58gmjfGXAOfI5FV0lYMH8wiqsxKQ1C9B0YTRXVy4w==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-freebsd-arm64": { + "version": "4.57.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.57.1.tgz", + "integrity": "sha512-R+/WwhsjmwodAcz65guCGFRkMb4gKWTcIeLy60JJQbXrJ97BOXHxnkPFrP+YwFlaS0m+uWJTstrUA9o+UchFug==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ] + }, + "node_modules/@rollup/rollup-freebsd-x64": { + "version": "4.57.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.57.1.tgz", + "integrity": "sha512-IEQTCHeiTOnAUC3IDQdzRAGj3jOAYNr9kBguI7MQAAZK3caezRrg0GxAb6Hchg4lxdZEI5Oq3iov/w/hnFWY9Q==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ] + }, + "node_modules/@rollup/rollup-linux-arm-gnueabihf": { + "version": "4.57.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.57.1.tgz", + "integrity": "sha512-F8sWbhZ7tyuEfsmOxwc2giKDQzN3+kuBLPwwZGyVkLlKGdV1nvnNwYD0fKQ8+XS6hp9nY7B+ZeK01EBUE7aHaw==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm-musleabihf": { + "version": "4.57.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.57.1.tgz", + "integrity": "sha512-rGfNUfn0GIeXtBP1wL5MnzSj98+PZe/AXaGBCRmT0ts80lU5CATYGxXukeTX39XBKsxzFpEeK+Mrp9faXOlmrw==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-gnu": { + "version": "4.57.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.57.1.tgz", + "integrity": "sha512-MMtej3YHWeg/0klK2Qodf3yrNzz6CGjo2UntLvk2RSPlhzgLvYEB3frRvbEF2wRKh1Z2fDIg9KRPe1fawv7C+g==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-musl": { + "version": "4.57.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.57.1.tgz", + "integrity": "sha512-1a/qhaaOXhqXGpMFMET9VqwZakkljWHLmZOX48R0I/YLbhdxr1m4gtG1Hq7++VhVUmf+L3sTAf9op4JlhQ5u1Q==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-loong64-gnu": { + "version": "4.57.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.57.1.tgz", + "integrity": "sha512-QWO6RQTZ/cqYtJMtxhkRkidoNGXc7ERPbZN7dVW5SdURuLeVU7lwKMpo18XdcmpWYd0qsP1bwKPf7DNSUinhvA==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-loong64-musl": { + "version": "4.57.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.57.1.tgz", + "integrity": "sha512-xpObYIf+8gprgWaPP32xiN5RVTi/s5FCR+XMXSKmhfoJjrpRAjCuuqQXyxUa/eJTdAE6eJ+KDKaoEqjZQxh3Gw==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-ppc64-gnu": { + "version": "4.57.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.57.1.tgz", + "integrity": "sha512-4BrCgrpZo4hvzMDKRqEaW1zeecScDCR+2nZ86ATLhAoJ5FQ+lbHVD3ttKe74/c7tNT9c6F2viwB3ufwp01Oh2w==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-ppc64-musl": { + "version": "4.57.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.57.1.tgz", + "integrity": "sha512-NOlUuzesGauESAyEYFSe3QTUguL+lvrN1HtwEEsU2rOwdUDeTMJdO5dUYl/2hKf9jWydJrO9OL/XSSf65R5+Xw==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-riscv64-gnu": { + "version": "4.57.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.57.1.tgz", + "integrity": "sha512-ptA88htVp0AwUUqhVghwDIKlvJMD/fmL/wrQj99PRHFRAG6Z5nbWoWG4o81Nt9FT+IuqUQi+L31ZKAFeJ5Is+A==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-riscv64-musl": { + "version": "4.57.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.57.1.tgz", + "integrity": "sha512-S51t7aMMTNdmAMPpBg7OOsTdn4tySRQvklmL3RpDRyknk87+Sp3xaumlatU+ppQ+5raY7sSTcC2beGgvhENfuw==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-s390x-gnu": { + "version": "4.57.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.57.1.tgz", + "integrity": "sha512-Bl00OFnVFkL82FHbEqy3k5CUCKH6OEJL54KCyx2oqsmZnFTR8IoNqBF+mjQVcRCT5sB6yOvK8A37LNm/kPJiZg==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-gnu": { + "version": "4.57.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.57.1.tgz", + "integrity": "sha512-ABca4ceT4N+Tv/GtotnWAeXZUZuM/9AQyCyKYyKnpk4yoA7QIAuBt6Hkgpw8kActYlew2mvckXkvx0FfoInnLg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-musl": { + "version": "4.57.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.57.1.tgz", + "integrity": "sha512-HFps0JeGtuOR2convgRRkHCekD7j+gdAuXM+/i6kGzQtFhlCtQkpwtNzkNj6QhCDp7DRJ7+qC/1Vg2jt5iSOFw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-openbsd-x64": { + "version": "4.57.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-openbsd-x64/-/rollup-openbsd-x64-4.57.1.tgz", + "integrity": "sha512-H+hXEv9gdVQuDTgnqD+SQffoWoc0Of59AStSzTEj/feWTBAnSfSD3+Dql1ZruJQxmykT/JVY0dE8Ka7z0DH1hw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ] + }, + "node_modules/@rollup/rollup-openharmony-arm64": { + "version": "4.57.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.57.1.tgz", + "integrity": "sha512-4wYoDpNg6o/oPximyc/NG+mYUejZrCU2q+2w6YZqrAs2UcNUChIZXjtafAiiZSUc7On8v5NyNj34Kzj/Ltk6dQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ] + }, + "node_modules/@rollup/rollup-win32-arm64-msvc": { + "version": "4.57.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.57.1.tgz", + "integrity": "sha512-O54mtsV/6LW3P8qdTcamQmuC990HDfR71lo44oZMZlXU4tzLrbvTii87Ni9opq60ds0YzuAlEr/GNwuNluZyMQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-ia32-msvc": { + "version": "4.57.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.57.1.tgz", + "integrity": "sha512-P3dLS+IerxCT/7D2q2FYcRdWRl22dNbrbBEtxdWhXrfIMPP9lQhb5h4Du04mdl5Woq05jVCDPCMF7Ub0NAjIew==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-x64-gnu": { + "version": "4.57.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.57.1.tgz", + "integrity": "sha512-VMBH2eOOaKGtIJYleXsi2B8CPVADrh+TyNxJ4mWPnKfLB/DBUmzW+5m1xUrcwWoMfSLagIRpjUFeW5CO5hyciQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-x64-msvc": { + "version": "4.57.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.57.1.tgz", + "integrity": "sha512-mxRFDdHIWRxg3UfIIAwCm6NzvxG0jDX/wBN6KsQFTvKFqqg9vTrWUE68qEjHt19A5wwx5X5aUi2zuZT7YR0jrA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@standard-schema/spec": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@standard-schema/spec/-/spec-1.1.0.tgz", + "integrity": "sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w==", + "license": "MIT" + }, + "node_modules/@standard-schema/utils": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/@standard-schema/utils/-/utils-0.3.0.tgz", + "integrity": "sha512-e7Mew686owMaPJVNNLs55PUvgz371nKgwsc4vxE49zsODpJEnxgxRo2y/OKrqueavXgZNMDVj3DdHFlaSAeU8g==", + "license": "MIT" + }, + "node_modules/@tweenjs/tween.js": { + "version": "23.1.3", + "resolved": "https://registry.npmjs.org/@tweenjs/tween.js/-/tween.js-23.1.3.tgz", + "integrity": "sha512-vJmvvwFxYuGnF2axRtPYocag6Clbb5YS7kLL+SO/TeVFzHqDIWrNKYtcsPMibjDx9O+bu+psAy9NKfWklassUA==", + "license": "MIT" + }, + "node_modules/@types/babel__core": { + "version": "7.20.5", + "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz", + "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.20.7", + "@babel/types": "^7.20.7", + "@types/babel__generator": "*", + "@types/babel__template": "*", + "@types/babel__traverse": "*" + } + }, + "node_modules/@types/babel__generator": { + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.27.0.tgz", + "integrity": "sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__template": { + "version": "7.4.4", + "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz", + "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.1.0", + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__traverse": { + "version": "7.28.0", + "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.28.0.tgz", + "integrity": "sha512-8PvcXf70gTDZBgt9ptxJ8elBeBjcLOAcOtoO/mPJjtji1+CdGbHgm77om1GrsPxsiE+uXIpNSK64UYaIwQXd4Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.28.2" + } + }, + "node_modules/@types/estree": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz", + "integrity": "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==", + "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/lodash": { + "version": "4.17.23", + "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.17.23.tgz", + "integrity": "sha512-RDvF6wTulMPjrNdCoYRC8gNR880JNGT8uB+REUpC2Ns4pRqQJhGz90wh7rgdXDPpCczF3VGktDuFGVnz8zP7HA==", + "license": "MIT" + }, + "node_modules/@types/node": { + "version": "24.10.13", + "resolved": "https://registry.npmjs.org/@types/node/-/node-24.10.13.tgz", + "integrity": "sha512-oH72nZRfDv9lADUBSo104Aq7gPHpQZc4BTx38r9xf9pg5LfP6EzSyH2n7qFmmxRQXh7YlUXODcYsg6PuTDSxGg==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "undici-types": "~7.16.0" + } + }, + "node_modules/@types/react": { + "version": "19.2.13", + "resolved": "https://registry.npmjs.org/@types/react/-/react-19.2.13.tgz", + "integrity": "sha512-KkiJeU6VbYbUOp5ITMIc7kBfqlYkKA5KhEHVrGMmUUMt7NeaZg65ojdPk+FtNrBAOXNVM5QM72jnADjM+XVRAQ==", + "devOptional": true, + "license": "MIT", + "peer": true, + "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/@types/stats.js": { + "version": "0.17.4", + "resolved": "https://registry.npmjs.org/@types/stats.js/-/stats.js-0.17.4.tgz", + "integrity": "sha512-jIBvWWShCvlBqBNIZt0KAshWpvSjhkwkEu4ZUcASoAvhmrgAUI2t1dXrjSL4xXVLB4FznPrIsX3nKXFl/Dt4vA==", + "license": "MIT" + }, + "node_modules/@types/three": { + "version": "0.182.0", + "resolved": "https://registry.npmjs.org/@types/three/-/three-0.182.0.tgz", + "integrity": "sha512-WByN9V3Sbwbe2OkWuSGyoqQO8Du6yhYaXtXLoA5FkKTUJorZ+yOHBZ35zUUPQXlAKABZmbYp5oAqpA4RBjtJ/Q==", + "license": "MIT", + "dependencies": { + "@dimforge/rapier3d-compat": "~0.12.0", + "@tweenjs/tween.js": "~23.1.3", + "@types/stats.js": "*", + "@types/webxr": ">=0.5.17", + "@webgpu/types": "*", + "fflate": "~0.8.2", + "meshoptimizer": "~0.22.0" + } + }, + "node_modules/@types/use-sync-external-store": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/@types/use-sync-external-store/-/use-sync-external-store-0.0.6.tgz", + "integrity": "sha512-zFDAD+tlpf2r4asuHEj0XH6pY6i0g5NeAHPn+15wk3BV6JA69eERFXC1gyGThDkVa1zCyKr5jox1+2LbV/AMLg==", + "license": "MIT" + }, + "node_modules/@types/webxr": { + "version": "0.5.24", + "resolved": "https://registry.npmjs.org/@types/webxr/-/webxr-0.5.24.tgz", + "integrity": "sha512-h8fgEd/DpoS9CBrjEQXR+dIDraopAEfu4wYVNY2tEPwk60stPWhvZMf4Foo5FakuQ7HFZoa8WceaWFervK2Ovg==", + "license": "MIT" + }, + "node_modules/@typescript-eslint/eslint-plugin": { + "version": "8.55.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.55.0.tgz", + "integrity": "sha512-1y/MVSz0NglV1ijHC8OT49mPJ4qhPYjiK08YUQVbIOyu+5k862LKUHFkpKHWu//zmr7hDR2rhwUm6gnCGNmGBQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@eslint-community/regexpp": "^4.12.2", + "@typescript-eslint/scope-manager": "8.55.0", + "@typescript-eslint/type-utils": "8.55.0", + "@typescript-eslint/utils": "8.55.0", + "@typescript-eslint/visitor-keys": "8.55.0", + "ignore": "^7.0.5", + "natural-compare": "^1.4.0", + "ts-api-utils": "^2.4.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "@typescript-eslint/parser": "^8.55.0", + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/eslint-plugin/node_modules/ignore": { + "version": "7.0.5", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.5.tgz", + "integrity": "sha512-Hs59xBNfUIunMFgWAbGX5cq6893IbWg4KnrjbYwX3tx0ztorVgTDA6B2sxf8ejHJ4wz8BqGUMYlnzNBer5NvGg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, + "node_modules/@typescript-eslint/parser": { + "version": "8.55.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.55.0.tgz", + "integrity": "sha512-4z2nCSBfVIMnbuu8uinj+f0o4qOeggYJLbjpPHka3KH1om7e+H9yLKTYgksTaHcGco+NClhhY2vyO3HsMH1RGw==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@typescript-eslint/scope-manager": "8.55.0", + "@typescript-eslint/types": "8.55.0", + "@typescript-eslint/typescript-estree": "8.55.0", + "@typescript-eslint/visitor-keys": "8.55.0", + "debug": "^4.4.3" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/project-service": { + "version": "8.55.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.55.0.tgz", + "integrity": "sha512-zRcVVPFUYWa3kNnjaZGXSu3xkKV1zXy8M4nO/pElzQhFweb7PPtluDLQtKArEOGmjXoRjnUZ29NjOiF0eCDkcQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/tsconfig-utils": "^8.55.0", + "@typescript-eslint/types": "^8.55.0", + "debug": "^4.4.3" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/scope-manager": { + "version": "8.55.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.55.0.tgz", + "integrity": "sha512-fVu5Omrd3jeqeQLiB9f1YsuK/iHFOwb04bCtY4BSCLgjNbOD33ZdV6KyEqplHr+IlpgT0QTZ/iJ+wT7hvTx49Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "8.55.0", + "@typescript-eslint/visitor-keys": "8.55.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/tsconfig-utils": { + "version": "8.55.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.55.0.tgz", + "integrity": "sha512-1R9cXqY7RQd7WuqSN47PK9EDpgFUK3VqdmbYrvWJZYDd0cavROGn+74ktWBlmJ13NXUQKlZ/iAEQHI/V0kKe0Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/type-utils": { + "version": "8.55.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.55.0.tgz", + "integrity": "sha512-x1iH2unH4qAt6I37I2CGlsNs+B9WGxurP2uyZLRz6UJoZWDBx9cJL1xVN/FiOmHEONEg6RIufdvyT0TEYIgC5g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "8.55.0", + "@typescript-eslint/typescript-estree": "8.55.0", + "@typescript-eslint/utils": "8.55.0", + "debug": "^4.4.3", + "ts-api-utils": "^2.4.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/types": { + "version": "8.55.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.55.0.tgz", + "integrity": "sha512-ujT0Je8GI5BJWi+/mMoR0wxwVEQaxM+pi30xuMiJETlX80OPovb2p9E8ss87gnSVtYXtJoU9U1Cowcr6w2FE0w==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/typescript-estree": { + "version": "8.55.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.55.0.tgz", + "integrity": "sha512-EwrH67bSWdx/3aRQhCoxDaHM+CrZjotc2UCCpEDVqfCE+7OjKAGWNY2HsCSTEVvWH2clYQK8pdeLp42EVs+xQw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/project-service": "8.55.0", + "@typescript-eslint/tsconfig-utils": "8.55.0", + "@typescript-eslint/types": "8.55.0", + "@typescript-eslint/visitor-keys": "8.55.0", + "debug": "^4.4.3", + "minimatch": "^9.0.5", + "semver": "^7.7.3", + "tinyglobby": "^0.2.15", + "ts-api-utils": "^2.4.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz", + "integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch": { + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", + "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/semver": { + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.4.tgz", + "integrity": "sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@typescript-eslint/utils": { + "version": "8.55.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.55.0.tgz", + "integrity": "sha512-BqZEsnPGdYpgyEIkDC1BadNY8oMwckftxBT+C8W0g1iKPdeqKZBtTfnvcq0nf60u7MkjFO8RBvpRGZBPw4L2ow==", + "dev": true, + "license": "MIT", + "dependencies": { + "@eslint-community/eslint-utils": "^4.9.1", + "@typescript-eslint/scope-manager": "8.55.0", + "@typescript-eslint/types": "8.55.0", + "@typescript-eslint/typescript-estree": "8.55.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/visitor-keys": { + "version": "8.55.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.55.0.tgz", + "integrity": "sha512-AxNRwEie8Nn4eFS1FzDMJWIISMGoXMb037sgCBJ3UR6o0fQTzr2tqN9WT+DkWJPhIdQCfV7T6D387566VtnCJA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "8.55.0", + "eslint-visitor-keys": "^4.2.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@vitejs/plugin-react": { + "version": "5.1.4", + "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-5.1.4.tgz", + "integrity": "sha512-VIcFLdRi/VYRU8OL/puL7QXMYafHmqOnwTZY50U1JPlCNj30PxCMx65c494b1K9be9hX83KVt0+gTEwTWLqToA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/core": "^7.29.0", + "@babel/plugin-transform-react-jsx-self": "^7.27.1", + "@babel/plugin-transform-react-jsx-source": "^7.27.1", + "@rolldown/pluginutils": "1.0.0-rc.3", + "@types/babel__core": "^7.20.5", + "react-refresh": "^0.18.0" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "peerDependencies": { + "vite": "^4.2.0 || ^5.0.0 || ^6.0.0 || ^7.0.0" + } + }, + "node_modules/@webgpu/types": { + "version": "0.1.69", + "resolved": "https://registry.npmjs.org/@webgpu/types/-/types-0.1.69.tgz", + "integrity": "sha512-RPmm6kgRbI8e98zSD3RVACvnuktIja5+yLgDAkTmxLr90BEwdTXRQWNLF3ETTTyH/8mKhznZuN5AveXYFEsMGQ==", + "license": "BSD-3-Clause" + }, + "node_modules/acorn": { + "version": "8.15.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz", + "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==", + "dev": true, + "license": "MIT", + "peer": true, + "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.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "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/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true, + "license": "Python-2.0" + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true, + "license": "MIT" + }, + "node_modules/baseline-browser-mapping": { + "version": "2.9.19", + "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.9.19.tgz", + "integrity": "sha512-ipDqC8FrAl/76p2SSWKSI+H9tFwm7vYqXQrItCuiVPt26Km0jS+NzSsBWAaBusvSbQcfJG+JitdMm+wZAgTYqg==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "baseline-browser-mapping": "dist/cli.js" + } + }, + "node_modules/body-scroll-lock": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/body-scroll-lock/-/body-scroll-lock-3.1.5.tgz", + "integrity": "sha512-Yi1Xaml0EvNA0OYWxXiYNqY24AfWkbA6w5vxE7GWxtKfzIbZM+Qw+aSmkgsbWzbHiy/RCSkUZBplVxTA+E4jJg==", + "license": "MIT" + }, + "node_modules/brace-expansion": { + "version": "1.1.12", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz", + "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/browserslist": { + "version": "4.28.1", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.1.tgz", + "integrity": "sha512-ZC5Bd0LgJXgwGqUknZY/vkUQ04r8NXnJZ3yYi4vDmSiZmC/pdSN0NbNRPxZpbtO4uAfDUAFffO8IZoM3Gj8IkA==", + "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", + "peer": true, + "dependencies": { + "baseline-browser-mapping": "^2.9.0", + "caniuse-lite": "^1.0.30001759", + "electron-to-chromium": "^1.5.263", + "node-releases": "^2.0.27", + "update-browserslist-db": "^1.2.0" + }, + "bin": { + "browserslist": "cli.js" + }, + "engines": { + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + } + }, + "node_modules/callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/caniuse-lite": { + "version": "1.0.30001769", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001769.tgz", + "integrity": "sha512-BCfFL1sHijQlBGWBMuJyhZUhzo7wer5sVj9hqekB/7xn0Ypy+pER/edCYQm4exbXj4WiySGp40P8UuTh6w1srg==", + "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/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/classnames": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/classnames/-/classnames-2.5.1.tgz", + "integrity": "sha512-saHYOzhIQs6wy2sVxTM6bUDsQO4F50V9RQ22qBpEdCW+I+/Wmke2HOl6lS6dTpdxVhb88/I6+Hs+438c3lfUow==", + "license": "MIT" + }, + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true, + "license": "MIT" + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "dev": true, + "license": "MIT" + }, + "node_modules/convert-source-map": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", + "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", + "dev": true, + "license": "MIT" + }, + "node_modules/cookie": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-1.1.1.tgz", + "integrity": "sha512-ei8Aos7ja0weRpFzJnEA9UHJ/7XQmqglbRwnf2ATjcB9Wq874VKH9kfjjirM6UhU2/E5fFYadylyhFldcqSidQ==", + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "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==", + "devOptional": 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/electron-to-chromium": { + "version": "1.5.286", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.286.tgz", + "integrity": "sha512-9tfDXhJ4RKFNerfjdCcZfufu49vg620741MNs26a9+bhLThdB+plgMeou98CAaHu/WATj2iHOOHTp1hWtABj2A==", + "dev": true, + "license": "ISC" + }, + "node_modules/esbuild": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.27.3.tgz", + "integrity": "sha512-8VwMnyGCONIs6cWue2IdpHxHnAjzxnw2Zr7MkVxB2vjmQ2ivqGFb4LEG3SMnv0Gb2F/G/2yA8zUaiL1gywDCCg==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=18" + }, + "optionalDependencies": { + "@esbuild/aix-ppc64": "0.27.3", + "@esbuild/android-arm": "0.27.3", + "@esbuild/android-arm64": "0.27.3", + "@esbuild/android-x64": "0.27.3", + "@esbuild/darwin-arm64": "0.27.3", + "@esbuild/darwin-x64": "0.27.3", + "@esbuild/freebsd-arm64": "0.27.3", + "@esbuild/freebsd-x64": "0.27.3", + "@esbuild/linux-arm": "0.27.3", + "@esbuild/linux-arm64": "0.27.3", + "@esbuild/linux-ia32": "0.27.3", + "@esbuild/linux-loong64": "0.27.3", + "@esbuild/linux-mips64el": "0.27.3", + "@esbuild/linux-ppc64": "0.27.3", + "@esbuild/linux-riscv64": "0.27.3", + "@esbuild/linux-s390x": "0.27.3", + "@esbuild/linux-x64": "0.27.3", + "@esbuild/netbsd-arm64": "0.27.3", + "@esbuild/netbsd-x64": "0.27.3", + "@esbuild/openbsd-arm64": "0.27.3", + "@esbuild/openbsd-x64": "0.27.3", + "@esbuild/openharmony-arm64": "0.27.3", + "@esbuild/sunos-x64": "0.27.3", + "@esbuild/win32-arm64": "0.27.3", + "@esbuild/win32-ia32": "0.27.3", + "@esbuild/win32-x64": "0.27.3" + } + }, + "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": "9.39.2", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.39.2.tgz", + "integrity": "sha512-LEyamqS7W5HB3ujJyvi0HQK/dtVINZvd5mAAp9eT5S/ujByGjiZLCzPcHVzuXbpJDJF/cxwHlfceVUDZ2lnSTw==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@eslint-community/eslint-utils": "^4.8.0", + "@eslint-community/regexpp": "^4.12.1", + "@eslint/config-array": "^0.21.1", + "@eslint/config-helpers": "^0.4.2", + "@eslint/core": "^0.17.0", + "@eslint/eslintrc": "^3.3.1", + "@eslint/js": "9.39.2", + "@eslint/plugin-kit": "^0.4.1", + "@humanfs/node": "^0.16.6", + "@humanwhocodes/module-importer": "^1.0.1", + "@humanwhocodes/retry": "^0.4.2", + "@types/estree": "^1.0.6", + "ajv": "^6.12.4", + "chalk": "^4.0.0", + "cross-spawn": "^7.0.6", + "debug": "^4.3.2", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^8.4.0", + "eslint-visitor-keys": "^4.2.1", + "espree": "^10.4.0", + "esquery": "^1.5.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", + "lodash.merge": "^4.6.2", + "minimatch": "^3.1.2", + "natural-compare": "^1.4.0", + "optionator": "^0.9.3" + }, + "bin": { + "eslint": "bin/eslint.js" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://eslint.org/donate" + }, + "peerDependencies": { + "jiti": "*" + }, + "peerDependenciesMeta": { + "jiti": { + "optional": true + } + } + }, + "node_modules/eslint-plugin-react-hooks": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-7.0.1.tgz", + "integrity": "sha512-O0d0m04evaNzEPoSW+59Mezf8Qt0InfgGIBJnpC0h3NH/WjUAR7BIKUfysC6todmtiZ/A0oUVS8Gce0WhBrHsA==", + "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" + } + }, + "node_modules/eslint-plugin-react-refresh": { + "version": "0.4.26", + "resolved": "https://registry.npmjs.org/eslint-plugin-react-refresh/-/eslint-plugin-react-refresh-0.4.26.tgz", + "integrity": "sha512-1RETEylht2O6FM/MvgnyvT+8K21wLqDNg4qD51Zj3guhjt433XbnnkVttHMyaVyAFD03QSV4LPS5iE3VQmO7XQ==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "eslint": ">=8.40" + } + }, + "node_modules/eslint-scope": { + "version": "8.4.0", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-8.4.0.tgz", + "integrity": "sha512-sNXOfKCn74rt8RICKMvJS7XKV/Xk9kA7DyJr8mJik3S7Cwgy3qlkkmyS2uQB3jiJg6VNdZd/pDBJu0nvG2NlTg==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-visitor-keys": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz", + "integrity": "sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/espree": { + "version": "10.4.0", + "resolved": "https://registry.npmjs.org/espree/-/espree-10.4.0.tgz", + "integrity": "sha512-j6PAQ2uUr79PZhBjP5C5fhl8e39FmRnOjsD5lGnWrFU8i2G776tBK7+nP8KuQUTTyAZUwfQqXAgrVH5MbH9CYQ==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "acorn": "^8.15.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^4.2.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "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/fflate": { + "version": "0.8.2", + "resolved": "https://registry.npmjs.org/fflate/-/fflate-0.8.2.tgz", + "integrity": "sha512-cPJU47OaAoCbg0pBvzsgpTPhmhqI5eJjh/JIu8tPj5q+T7iLvW/JAYUqmE7KOB4R1ZyEhzBaIQpQpardBF5z8A==", + "license": "MIT" + }, + "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.3.3", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.3.tgz", + "integrity": "sha512-GX+ysw4PBCz0PzosHDepZGANEuFCMLrnRTiEy9McGjmkCQYwRq4A/X786G/fjM/+OjsWSU1ZrY5qyARZmO/uwg==", + "dev": true, + "license": "ISC" + }, + "node_modules/framesync": { + "version": "6.1.2", + "resolved": "https://registry.npmjs.org/framesync/-/framesync-6.1.2.tgz", + "integrity": "sha512-jBTqhX6KaQVDyus8muwZbBeGGP0XgujBRbQ7gM7BRdS3CadCZIHiawyzYLnafYcvZIh5j8WE7cxZKFn7dXhu9g==", + "license": "MIT", + "dependencies": { + "tslib": "2.4.0" + } + }, + "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": "16.5.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-16.5.0.tgz", + "integrity": "sha512-c/c15i26VrJ4IRt5Z89DnIzCGDn9EcebibhAOjw5ibqEHsE1wLUgkPn9RDmNcUKyU87GeaL633nyJ+pplFR2ZQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "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/hey-listen": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/hey-listen/-/hey-listen-1.0.8.tgz", + "integrity": "sha512-COpmrF2NOg4TBWUJ5UVyaCU2A88wEMkUPK4hNqyCkqHbxT92BbvfjoSozkAIIm6XhicGlJHhFdullInrdhwU8Q==", + "license": "MIT" + }, + "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/immer": { + "version": "11.1.4", + "resolved": "https://registry.npmjs.org/immer/-/immer-11.1.4.tgz", + "integrity": "sha512-XREFCPo6ksxVzP4E0ekD5aMdf8WMwmdNaz6vuvxgI40UaEiu6q3p8X52aU6GdyvLY3XXX/8R7JOTXStz/nBbRw==", + "license": "MIT", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/immer" + } + }, + "node_modules/import-fresh": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz", + "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "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/js-yaml": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.1.tgz", + "integrity": "sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==", + "dev": true, + "license": "MIT", + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "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/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/lodash": { + "version": "4.17.23", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.23.tgz", + "integrity": "sha512-LgVTMpQtIopCi79SJeDiP0TfWi5CNEc/L/aRdTh3yIvmZXTnheWpKjSZhnvMl8iXbC1tFg9gdHHDMLoV7CnG+w==", + "license": "MIT" + }, + "node_modules/lodash.merge": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", + "dev": true, + "license": "MIT" + }, + "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/meshoptimizer": { + "version": "0.22.0", + "resolved": "https://registry.npmjs.org/meshoptimizer/-/meshoptimizer-0.22.0.tgz", + "integrity": "sha512-IebiK79sqIy+E4EgOr+CAw+Ke8hAspXKzBd0JdgEmPHiAwmvEj2S4h1rfvo+o/BnfEYd/jAOg5IeeIjzlzSnDg==", + "license": "MIT" + }, + "node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "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.11", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz", + "integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==", + "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.27", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.27.tgz", + "integrity": "sha512-nmh3lCkYZ3grZvqcCH+fjmQ7X+H0OeZgP40OierEaAptX4XofMh5kwNbWh7lBduUzCcV/8kZ+NDLCwm2iorIlA==", + "dev": true, + "license": "MIT" + }, + "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/parent-module": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", + "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", + "dev": true, + "license": "MIT", + "dependencies": { + "callsites": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "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.3", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz", + "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", + "dev": true, + "license": "MIT", + "peer": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/popmotion": { + "version": "11.0.5", + "resolved": "https://registry.npmjs.org/popmotion/-/popmotion-11.0.5.tgz", + "integrity": "sha512-la8gPM1WYeFznb/JqF4GiTkRRPZsfaj2+kCxqQgr2MJylMmIKUwBfWW8Wa5fml/8gmtlD5yI01MP1QCZPWmppA==", + "license": "MIT", + "dependencies": { + "framesync": "6.1.2", + "hey-listen": "^1.0.8", + "style-value-types": "5.1.2", + "tslib": "2.4.0" + } + }, + "node_modules/postcss": { + "version": "8.5.6", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.6.tgz", + "integrity": "sha512-3Ybi1tAuwAP9s0r1UQ2J4n5Y0G05bJkpUIO0/bI9MhwmD70S5aTWbXGBwxHrelT+XM1k6dM0pk+SwNkpTRN7Pg==", + "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.11", + "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.4", + "resolved": "https://registry.npmjs.org/react/-/react-19.2.4.tgz", + "integrity": "sha512-9nfp2hYpCwOjAN+8TZFGhtWEwgvWHXqESH8qT89AT/lWklpLON22Lc8pEtnpsZz7VmawabSU0gCjnj8aC0euHQ==", + "license": "MIT", + "peer": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/react-dom": { + "version": "19.2.4", + "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.2.4.tgz", + "integrity": "sha512-AXJdLo8kgMbimY95O2aKQqsz2iWi9jMgKJhRBAxECE4IFxfcazB2LmzloIoibJI3C12IlY20+KFaLv+71bUJeQ==", + "license": "MIT", + "peer": true, + "dependencies": { + "scheduler": "^0.27.0" + }, + "peerDependencies": { + "react": "^19.2.4" + } + }, + "node_modules/react-redux": { + "version": "9.2.0", + "resolved": "https://registry.npmjs.org/react-redux/-/react-redux-9.2.0.tgz", + "integrity": "sha512-ROY9fvHhwOD9ySfrF0wmvu//bKCQ6AeZZq1nJNtbDC+kk5DuSuNX/n6YWYF/SYy7bSba4D4FSz8DJeKY/S/r+g==", + "license": "MIT", + "peer": true, + "dependencies": { + "@types/use-sync-external-store": "^0.0.6", + "use-sync-external-store": "^1.4.0" + }, + "peerDependencies": { + "@types/react": "^18.2.25 || ^19", + "react": "^18.0 || ^19", + "redux": "^5.0.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "redux": { + "optional": true + } + } + }, + "node_modules/react-refresh": { + "version": "0.18.0", + "resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.18.0.tgz", + "integrity": "sha512-QgT5//D3jfjJb6Gsjxv0Slpj23ip+HtOpnNgnb2S5zU3CB26G/IDPGoy4RJB42wzFE46DRsstbW6tKHoKbhAxw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/react-responsive-modal": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/react-responsive-modal/-/react-responsive-modal-7.1.0.tgz", + "integrity": "sha512-BKcvf+SYCmTqmgd22l0tkWT2/eZ9FzkirS0e/4SwDIAfry5QyqGRtsMUpq9z8XPQzIOQZ3EM+5Z2u46iTmVtvQ==", + "license": "MIT", + "dependencies": { + "@bedrock-layout/use-forwarded-ref": "^2.0.17", + "body-scroll-lock": "^3.1.5", + "classnames": "^2.3.1" + }, + "funding": { + "url": "https://github.com/sponsors/pradel" + }, + "peerDependencies": { + "react": "^16.8.0 || ^17 || ^18 || ^19", + "react-dom": "^16.8.0 || ^17 || ^18 || ^19" + } + }, + "node_modules/react-responsive-modal/node_modules/@bedrock-layout/use-forwarded-ref": { + "version": "2.0.17", + "resolved": "https://registry.npmjs.org/@bedrock-layout/use-forwarded-ref/-/use-forwarded-ref-2.0.17.tgz", + "integrity": "sha512-4meaaQjg2ZtP9eg0F2LsL0tENmxZ6CTNz4tLheOOyKjqTSjM11yKjSOsMwaEJ8uRyQf+XBDFBmb/IfpHAuCqug==", + "license": "MIT", + "dependencies": { + "@bedrock-layout/use-stateful-ref": "^2.0.17" + }, + "peerDependencies": { + "react": "^16.8 || ^17 || ^18" + } + }, + "node_modules/react-responsive-modal/node_modules/@bedrock-layout/use-forwarded-ref/node_modules/@bedrock-layout/use-stateful-ref": { + "version": "2.0.17", + "resolved": "https://registry.npmjs.org/@bedrock-layout/use-stateful-ref/-/use-stateful-ref-2.0.17.tgz", + "integrity": "sha512-pzVUYMTa32E9dGa2xadOFej96gYJEHg+Qh4Tg0fMj6zYT4y5LZpE+XkCiPcFafR3kTFhqSGfjRTIJbnSyeEAxQ==", + "license": "MIT", + "peerDependencies": { + "react": "^16.8 || ^17 || ^18" + } + }, + "node_modules/react-router": { + "version": "7.13.0", + "resolved": "https://registry.npmjs.org/react-router/-/react-router-7.13.0.tgz", + "integrity": "sha512-PZgus8ETambRT17BUm/LL8lX3Of+oiLaPuVTRH3l1eLvSPpKO3AvhAEb5N7ihAFZQrYDqkvvWfFh9p0z9VsjLw==", + "license": "MIT", + "dependencies": { + "cookie": "^1.0.1", + "set-cookie-parser": "^2.6.0" + }, + "engines": { + "node": ">=20.0.0" + }, + "peerDependencies": { + "react": ">=18", + "react-dom": ">=18" + }, + "peerDependenciesMeta": { + "react-dom": { + "optional": true + } + } + }, + "node_modules/react-router-dom": { + "version": "7.13.0", + "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-7.13.0.tgz", + "integrity": "sha512-5CO/l5Yahi2SKC6rGZ+HDEjpjkGaG/ncEP7eWFTvFxbHP8yeeI0PxTDjimtpXYlR3b3i9/WIL4VJttPrESIf2g==", + "license": "MIT", + "dependencies": { + "react-router": "7.13.0" + }, + "engines": { + "node": ">=20.0.0" + }, + "peerDependencies": { + "react": ">=18", + "react-dom": ">=18" + } + }, + "node_modules/redux": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/redux/-/redux-5.0.1.tgz", + "integrity": "sha512-M9/ELqF6fy8FwmkpnF0S3YKOqMyoWJ4+CS5Efg2ct3oY9daQvd/Pc71FpGZsVsbl3Cpb+IIcjBDUnnyBdQbq4w==", + "license": "MIT", + "peer": true + }, + "node_modules/redux-thunk": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/redux-thunk/-/redux-thunk-3.1.0.tgz", + "integrity": "sha512-NW2r5T6ksUKXCabzhL9z+h206HQw/NJkcLm1GPImRQ8IzfXwRGqjVhKJGauHirT0DAuyy6hjdnMZaRoAcy0Klw==", + "license": "MIT", + "peerDependencies": { + "redux": "^5.0.0" + } + }, + "node_modules/reselect": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/reselect/-/reselect-5.1.1.tgz", + "integrity": "sha512-K/BG6eIky/SBpzfHZv/dd+9JBFiS4SWV7FIujVyJRux6e45+73RaUHXLmIR1f7WOMaQ0U1km6qwklRQxpJJY0w==", + "license": "MIT" + }, + "node_modules/resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/rollup": { + "version": "4.57.1", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.57.1.tgz", + "integrity": "sha512-oQL6lgK3e2QZeQ7gcgIkS2YZPg5slw37hYufJ3edKlfQSGGm8ICoxswK15ntSzF/a8+h7ekRy7k7oWc3BQ7y8A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/estree": "1.0.8" + }, + "bin": { + "rollup": "dist/bin/rollup" + }, + "engines": { + "node": ">=18.0.0", + "npm": ">=8.0.0" + }, + "optionalDependencies": { + "@rollup/rollup-android-arm-eabi": "4.57.1", + "@rollup/rollup-android-arm64": "4.57.1", + "@rollup/rollup-darwin-arm64": "4.57.1", + "@rollup/rollup-darwin-x64": "4.57.1", + "@rollup/rollup-freebsd-arm64": "4.57.1", + "@rollup/rollup-freebsd-x64": "4.57.1", + "@rollup/rollup-linux-arm-gnueabihf": "4.57.1", + "@rollup/rollup-linux-arm-musleabihf": "4.57.1", + "@rollup/rollup-linux-arm64-gnu": "4.57.1", + "@rollup/rollup-linux-arm64-musl": "4.57.1", + "@rollup/rollup-linux-loong64-gnu": "4.57.1", + "@rollup/rollup-linux-loong64-musl": "4.57.1", + "@rollup/rollup-linux-ppc64-gnu": "4.57.1", + "@rollup/rollup-linux-ppc64-musl": "4.57.1", + "@rollup/rollup-linux-riscv64-gnu": "4.57.1", + "@rollup/rollup-linux-riscv64-musl": "4.57.1", + "@rollup/rollup-linux-s390x-gnu": "4.57.1", + "@rollup/rollup-linux-x64-gnu": "4.57.1", + "@rollup/rollup-linux-x64-musl": "4.57.1", + "@rollup/rollup-openbsd-x64": "4.57.1", + "@rollup/rollup-openharmony-arm64": "4.57.1", + "@rollup/rollup-win32-arm64-msvc": "4.57.1", + "@rollup/rollup-win32-ia32-msvc": "4.57.1", + "@rollup/rollup-win32-x64-gnu": "4.57.1", + "@rollup/rollup-win32-x64-msvc": "4.57.1", + "fsevents": "~2.3.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/set-cookie-parser": { + "version": "2.7.2", + "resolved": "https://registry.npmjs.org/set-cookie-parser/-/set-cookie-parser-2.7.2.tgz", + "integrity": "sha512-oeM1lpU/UvhTxw+g3cIfxXHyJRc/uidd3yK1P242gzHds0udQBYzs3y8j4gCCW+ZJ7ad0yctld8RYO+bdurlvw==", + "license": "MIT" + }, + "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/strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/style-value-types": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/style-value-types/-/style-value-types-5.1.2.tgz", + "integrity": "sha512-Vs9fNreYF9j6W2VvuDTP7kepALi7sk0xtk2Tu8Yxi9UoajJdEVpNpCov0HsLTqXvNGKX+Uv09pkozVITi1jf3Q==", + "license": "MIT", + "dependencies": { + "hey-listen": "^1.0.8", + "tslib": "2.4.0" + } + }, + "node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/three": { + "version": "0.182.0", + "resolved": "https://registry.npmjs.org/three/-/three-0.182.0.tgz", + "integrity": "sha512-GbHabT+Irv+ihI1/f5kIIsZ+Ef9Sl5A1Y7imvS5RQjWgtTPfPnZ43JmlYI7NtCRDK9zir20lQpfg8/9Yd02OvQ==", + "license": "MIT" + }, + "node_modules/tinyglobby": { + "version": "0.2.15", + "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.15.tgz", + "integrity": "sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "fdir": "^6.5.0", + "picomatch": "^4.0.3" + }, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/SuperchupuDev" + } + }, + "node_modules/ts-api-utils": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-2.4.0.tgz", + "integrity": "sha512-3TaVTaAv2gTiMB35i3FiGJaRfwb3Pyn/j3m/bfAvGe8FB7CF6u+LMYqYlDh7reQf7UNvoTvdfAqHGmPGOSsPmA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18.12" + }, + "peerDependencies": { + "typescript": ">=4.8.4" + } + }, + "node_modules/tslib": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", + "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==", + "license": "0BSD" + }, + "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/typescript": { + "version": "5.9.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz", + "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==", + "dev": true, + "license": "Apache-2.0", + "peer": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/typescript-eslint": { + "version": "8.55.0", + "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.55.0.tgz", + "integrity": "sha512-HE4wj+r5lmDVS9gdaN0/+iqNvPZwGfnJ5lZuz7s5vLlg9ODw0bIiiETaios9LvFI1U94/VBXGm3CB2Y5cNFMpw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/eslint-plugin": "8.55.0", + "@typescript-eslint/parser": "8.55.0", + "@typescript-eslint/typescript-estree": "8.55.0", + "@typescript-eslint/utils": "8.55.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/undici-types": { + "version": "7.16.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.16.0.tgz", + "integrity": "sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw==", + "dev": true, + "license": "MIT" + }, + "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/use-sync-external-store": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.6.0.tgz", + "integrity": "sha512-Pp6GSwGP/NrPIrxVFAIkOQeyw8lFenOHijQWkUTrDvrF4ALqylP2C/KCkeS9dpUM3KvYRQhna5vt7IL95+ZQ9w==", + "license": "MIT", + "peerDependencies": { + "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" + } + }, + "node_modules/vite": { + "version": "7.3.1", + "resolved": "https://registry.npmjs.org/vite/-/vite-7.3.1.tgz", + "integrity": "sha512-w+N7Hifpc3gRjZ63vYBXA56dvvRlNWRczTdmCBBa+CotUzAPf5b7YMdMR/8CQoeYE5LX3W4wj6RYTgonm1b9DA==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "esbuild": "^0.27.0", + "fdir": "^6.5.0", + "picomatch": "^4.0.3", + "postcss": "^8.5.6", + "rollup": "^4.43.0", + "tinyglobby": "^0.2.15" + }, + "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", + "jiti": ">=1.21.0", + "less": "^4.0.0", + "lightningcss": "^1.21.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 + }, + "jiti": { + "optional": true + }, + "less": { + "optional": true + }, + "lightningcss": { + "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.3.6", + "resolved": "https://registry.npmjs.org/zod/-/zod-4.3.6.tgz", + "integrity": "sha512-rftlrkhHZOcjDwkGlnUtZZkvaPHCsDATp4pGpuOOMDaTdDDXF91wuVDJoWoPsKX/3YPQ5fHuF3STjcYyKr+Qhg==", + "dev": true, + "license": "MIT", + "peer": true, + "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..4c4cb76 --- /dev/null +++ b/package.json @@ -0,0 +1,39 @@ +{ + "name": "floppy-venture", + "private": true, + "version": "0.0.0", + "type": "module", + "scripts": { + "dev": "vite", + "build": "tsc -b && vite build", + "lint": "eslint .", + "preview": "vite preview" + }, + "dependencies": { + "@reduxjs/toolkit": "^2.11.2", + "@types/lodash": "^4.17.23", + "@types/three": "^0.182.0", + "lodash": "^4.17.23", + "popmotion": "^11.0.5", + "react": "^19.2.0", + "react-dom": "^19.2.0", + "react-redux": "^9.2.0", + "react-responsive-modal": "^7.1.0", + "react-router-dom": "^7.13.0", + "three": "^0.182.0" + }, + "devDependencies": { + "@eslint/js": "^9.39.1", + "@types/node": "^24.10.13", + "@types/react": "^19.2.7", + "@types/react-dom": "^19.2.3", + "@vitejs/plugin-react": "^5.1.1", + "eslint": "^9.39.1", + "eslint-plugin-react-hooks": "^7.0.1", + "eslint-plugin-react-refresh": "^0.4.24", + "globals": "^16.5.0", + "typescript": "~5.9.3", + "typescript-eslint": "^8.48.0", + "vite": "^7.3.1" + } +} diff --git a/public/assets/icons/action.svg b/public/assets/icons/action.svg new file mode 100644 index 0000000..6ad8bd3 --- /dev/null +++ b/public/assets/icons/action.svg @@ -0,0 +1,164 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/public/assets/icons/f1.svg b/public/assets/icons/f1.svg new file mode 100644 index 0000000..0291490 --- /dev/null +++ b/public/assets/icons/f1.svg @@ -0,0 +1,78 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + diff --git a/public/assets/icons/f2.svg b/public/assets/icons/f2.svg new file mode 100644 index 0000000..b516b6e --- /dev/null +++ b/public/assets/icons/f2.svg @@ -0,0 +1,78 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + diff --git a/public/assets/icons/f3.svg b/public/assets/icons/f3.svg new file mode 100644 index 0000000..827ebb4 --- /dev/null +++ b/public/assets/icons/f3.svg @@ -0,0 +1,77 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + + + diff --git a/public/assets/icons/forward.svg b/public/assets/icons/forward.svg new file mode 100644 index 0000000..e2e84a0 --- /dev/null +++ b/public/assets/icons/forward.svg @@ -0,0 +1,91 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + diff --git a/public/assets/icons/jump.svg b/public/assets/icons/jump.svg new file mode 100644 index 0000000..abb2706 --- /dev/null +++ b/public/assets/icons/jump.svg @@ -0,0 +1,107 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + diff --git a/public/assets/icons/turn_left.svg b/public/assets/icons/turn_left.svg new file mode 100644 index 0000000..e80823c --- /dev/null +++ b/public/assets/icons/turn_left.svg @@ -0,0 +1,84 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + + + diff --git a/public/assets/icons/turn_right.svg b/public/assets/icons/turn_right.svg new file mode 100644 index 0000000..c99ff1f --- /dev/null +++ b/public/assets/icons/turn_right.svg @@ -0,0 +1,84 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + + + diff --git a/public/assets/iosevka-regular.ttf b/public/assets/iosevka-regular.ttf new file mode 100644 index 0000000..7d0239f Binary files /dev/null and b/public/assets/iosevka-regular.ttf differ diff --git a/public/assets/models/RobotExpressive.glb b/public/assets/models/RobotExpressive.glb new file mode 100644 index 0000000..6fec9cf Binary files /dev/null and b/public/assets/models/RobotExpressive.glb differ diff --git a/public/assets/textures/crate.gif b/public/assets/textures/crate.gif new file mode 100644 index 0000000..d9b475d Binary files /dev/null and b/public/assets/textures/crate.gif differ diff --git a/public/assets/textures/gamename.png b/public/assets/textures/gamename.png new file mode 100644 index 0000000..b055792 Binary files /dev/null and b/public/assets/textures/gamename.png differ diff --git a/public/assets/textures/name.gif b/public/assets/textures/name.gif new file mode 100644 index 0000000..b055792 Binary files /dev/null and b/public/assets/textures/name.gif differ diff --git a/public/vite.svg b/public/vite.svg new file mode 100644 index 0000000..e7b8dfb --- /dev/null +++ b/public/vite.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/components/Editor.tsx b/src/components/Editor.tsx new file mode 100644 index 0000000..045902d --- /dev/null +++ b/src/components/Editor.tsx @@ -0,0 +1,324 @@ +import * as React from "react"; +import { CodeBlockContainer, INIT_CODEBLOCKS, CodeBlock, INSERT_CODEBLOCK, REMOVE_CODEBLOCK, SET_DROPZONE_Z_INDEX } from "../store/codeBlocks/types"; +import { LevelInitializer, IPlayerData } from "../game/levels"; +import { initCodeBlocks, insertCodeBlock, removeCodeBlock } from "../store/codeBlocks/actions"; +import { AppState } from "../store"; +import game from "../game/game" +import { connect } from "react-redux"; +import { START_EXECUTING, STEP_EXECUTION, TOGGLE_AUTOSTEP, TOGGLE_SPEED } from "../store/executionState/types"; + + + +const CodeBlockComponent = ({ type, blockIdx, remove, container, setDropZoneZIdx }) => { + return (
+ e.preventDefault()} + onDragStart={(e) => { + // e.preventDefault() + for (let e of document.getElementsByClassName("opdropzone")) { + (e as HTMLElement).style.background = "" + } + // console.log("BOOM START DRAGGOING"); + (e.target as HTMLElement).style.zIndex = "3" + + setDropZoneZIdx(2) + + dragged = type + }} + onDragEnd={(e) => { + e.preventDefault() + for (let e of document.getElementsByClassName("opdropzone")) { + (e as HTMLElement).style.background = "" + } + (e.target as HTMLElement).style.zIndex = "" + setDropZoneZIdx(-1) + remove(container, blockIdx) + // console.log("LE END OF DRAG") + }} + > +
) +} + +// show how many operations are possible +const OpIndicators = ({ n }) => { + let ops = [] + for (let i = 0; i < n; i++) { + ops.push(
) + } + return (
{ops}
) +} + +// dropzones which determine how to insert +const OpDropZones = ({ n, cidx, insert, style }) => { + let dropZones = [] + for (let i = 0; i < n; i++) { + dropZones.push( +
{ + e.preventDefault(); + (e.target as HTMLElement).style.background = "purple" + }} + onDragLeave={(e) => { + e.preventDefault(); + (e.target as HTMLElement).style.background = "" + }} + onDragOver={(e) => { e.preventDefault() }} + onDrop={(e) => { + e.preventDefault() + let dragOver = ((e.target as HTMLElement).className); + // console.log(dragOver) + // console.log("DRAGGED", dragged) + insert({ name: dragged }, cidx, i, true) + }}> +
{ + (e.target as HTMLElement).style.background = "purple" + }} + onDragOver={e => { e.preventDefault() }} + onDragLeave={e => { + (e.target as HTMLElement).style.background = "" + }} + onDrop={e => { + (e.target as HTMLElement).style.background = "" + insert({ name: dragged }, cidx, i, false) + }}> +
+
+ ) + } + return (
{dropZones}
) +} + +const FnContainers = ({ code, dropZoneZIdx, setDropZoneZIdx, remove, insert }) => { + return ( +
+ { + code.map((cv, idx) => { + return ( +
+

{cv.name + "(){"}

+
+ +
+ {cv.blocks.map((b, i) => { + return () + })} +
+ +
+

{"}"}

+
) + }) + } +
) +} + + +var dragged: string; + +const OpsPalette = ({ ops, setDropZoneZIdx }) => { + let allowedOps = ops.map((e, i) => { + return ( + undefined} + setDropZoneZIdx={setDropZoneZIdx} />) + }) + return (
{allowedOps}
) +} + +const RuntimeControls = ({ start, fast, step, running, level, code, autostep, toggleAutoStep, toggleSpeed, finished }) => { + let DebugButton = () => ( +
{ + start(level, code, level.playerPos) + }}> + debug +
+ ) + let StepButton = () => ( +
+ step +
+ ) + + let StartButton = () => ( +
{ + start(level, code, level.playerPos) + toggleAutoStep() + step() + }}> + run +
+ ) + let ResetButton = () => ( +
game.reset()}> + reset +
+ ) + + let ToggleSpeedButton = () => ( +
+ {fast ? "slower" : "faster"} +
+ ) + + let AbortButton = () => ( +
console.log("TODO")}> + abort +
+ ) + + if (running) { + if (autostep) { + return ( +
+ + +
+ ) + } + return ( +
+ +
+ ) + } + + if (finished) { + return (
+ +
) + } + return (
+ + +
) +} + + +export interface EditorProps { + level: LevelInitializer, + code?: Array, + init: typeof initCodeBlocks, + insert: typeof insertCodeBlock, + remove: typeof removeCodeBlock, + setDropZoneZIdx: (n: number) => void + dropZoneZIdx: number, + start: (level: LevelInitializer, code: Array>, playerPos: IPlayerData) => void, + running: boolean, + step: () => void, + toggleSpeed: () => void, + autostep: boolean, + fast: boolean, + toggleAutoStep: () => void, + finished: boolean +} + +class Editor extends React.Component { + + constructor(props: EditorProps) { + super(props) + + let { init, level } = props + // console.log(props) + init(level) + // initCodeBlocks(props.level) + + } + + componentDidMount() { + // console.log("YES IT MOUNTS") + } + + componentWillUnmount() { + // console.log("ME NOW UNMOUNT!") + } + + render() { + return ( +
+
+

{this.props.level.name}

+ + +
+ + +
); + } +} + +const mapStateToProps = (state: AppState, ownProps?: { level: LevelInitializer }) => { + // console.log(ownProps) + return { + ...ownProps, + code: state.codeBlocks, + dropZoneZIdx: state.opDropZoneZIdx, + running: state.executionState.running, + autostep: state.executionState.autostep, + finished: state.executionState.finished, + fast: state.executionState.fast + } +} + +const mapDispatchToProps = (dispatch) => { + return { + init: (level: LevelInitializer) => dispatch({ type: INIT_CODEBLOCKS, level: level }), + insert: (cb: CodeBlock, cidx: number, bidx: number, ov: boolean) => + dispatch({ type: INSERT_CODEBLOCK, block: cb, containerIdx: cidx, blocksIdx: bidx, overwrite: ov }), + remove: (cidx: number, bidx: number) => { + dispatch({ + type: REMOVE_CODEBLOCK, + containerIdx: cidx, blocksIdx: bidx + }) + }, + setDropZoneZIdx: (idx: number) => { + dispatch({ type: SET_DROPZONE_Z_INDEX, zIdx: idx }) + }, + start: (level: LevelInitializer, code: Array>, playerPos: IPlayerData) => { + dispatch({ type: START_EXECUTING, level: level, code: code, playerPos: playerPos }) + }, + step: () => dispatch({ type: STEP_EXECUTION }), + toggleAutoStep: () => dispatch({ type: TOGGLE_AUTOSTEP }), + toggleSpeed: () => dispatch({ type: TOGGLE_SPEED }) + } +} + +export default connect(mapStateToProps, mapDispatchToProps)(Editor); + + diff --git a/src/components/GameScreen.tsx b/src/components/GameScreen.tsx new file mode 100644 index 0000000..3c5c24e --- /dev/null +++ b/src/components/GameScreen.tsx @@ -0,0 +1,159 @@ +import * as React from "react"; +import { useState, useRef, useEffect } from 'react'; +import { createPortal } from 'react-dom'; +import Modal from 'react-responsive-modal'; +import LevelScene from "./LevelScene"; +import Editor from "./Editor"; +import { levels, LevelInitializer } from "../game/levels"; +// import { Redirect } from "react-router-dom" +import { Route, Link, useParams } from "react-router-dom"; +import { connect } from "react-redux"; +import { AppState } from "../store"; +import { bindActionCreators } from "redux"; +import TalkyFace from './talkyFace' +import { openModal, closeModal } from "../store/gameScreenState/slice"; +import game from "../game/game" +import { setLevel, nextLevel } from "../store/level/slice"; +import { RESET_EXECUTION } from "../store/executionState/types"; + +const MODAL_STYLES = { + 'overlay': { background: '#11111166' }, + 'modal': { + background: '#555', + width: '40rem', + height: '25rem', + borderRadius: '1rem' + }, + 'closeButton': {}, + 'closeIcon': {} +} + +const SpeechBubble = ({ message }) => { + return ( +
+ + + +
+

+ {message} +

+
+
) +} + +const IntroMessage = ({ name, message }) => { + return ( +
+
+ +
+ + +
+
+
+ ) +} + +const WonMessage = ({ nextRoute }) => { + return ( +
+
+
+ + +
+
+ to levels + next +
+ ) +} + +const GameScreen = ({ nextLevel, won, open, openModal, closeModal, setLevel, resetState }) => { + // first set level to levelname in url params + const { name } = useParams(); + let levelIdx = levels.findIndex((l) => name == l.name) + levelIdx = levelIdx === -1 ? 0 : levelIdx; // first level when no name matches + let level = levels[levelIdx] + setLevel(level, levelIdx) + // resetState() // introduces bug when called after won + + // when there is no next level route to WonScreen + let nextRoute = levelIdx === levels.length - 1 ? '/won' : '/level/' + levels[levelIdx + 1].name; + + let [idxMsgs, setMsgIdx] = useState(level.introMessages && level.introMessages.length > 0 ? 0 : null); + console.log("WON:", won) + + // Auto-open modal for intro messages when level starts or when won + useEffect(() => { + // Auto-open modal for intro messages when level starts + if (level.introMessages && level.introMessages.length > 0 && idxMsgs !== null && !open && !won) { + openModal(); + } + + // Auto-open modal when won + if (won && !open) { + openModal(); + } + }, [idxMsgs, won, open, level.introMessages]); // Proper dependencies + + useEffect(() => game.init(level), []); // only called at creation + + return ( +
+ + + {createPortal( + closeModal()} // Only close, no resetState + styles={MODAL_STYLES} + center> + {won ? + : (level.introMessages !== null) ? : "" + } + , + document.body + )} +
+ ) +} + + +const mapStateToProps = (state: AppState, ownprops?) => { + + return { + ...ownprops, + won: state.executionState.won, + open: state.gameScreenState.modalOpen + } +} + +const mapDispatchToProps = dispatch => { + return { + openModal: () => dispatch(openModal()), + closeModal: () => dispatch(closeModal()), + // nextLevel: game.nextLevel, + setLevel: (level, idx) => dispatch(setLevel({ level, idx })), + resetState: () => dispatch({ type: RESET_EXECUTION }) + } +} + + +export default connect(mapStateToProps, mapDispatchToProps)(GameScreen); diff --git a/src/components/LevelPreview.tsx b/src/components/LevelPreview.tsx new file mode 100644 index 0000000..6c61597 --- /dev/null +++ b/src/components/LevelPreview.tsx @@ -0,0 +1,201 @@ +import { Component } from 'react'; +import * as React from 'react'; +import * as THREE from 'three'; +import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls.js'; +import { AppState } from '../store'; +import { connect } from 'react-redux'; +import { Voxel, DEFAULT_MATERIAL, SWITCHED_ON_MATERIAL, SWITCHED_OFF_MATERIAL } from '../game/voxel'; +import { LevelInitializer } from '../game/levels'; + + + +interface LevelPreviewProps { + level: LevelInitializer; + active: boolean; + +} + +class LevelPreview extends Component { + camera: THREE.OrthographicCamera; + controls: OrbitControls; + renderer: THREE.WebGLRenderer; + scene: THREE.Scene; + mount: HTMLElement; + frameId: number; + clock: THREE.Clock; + + constructor(props: LevelPreviewProps) { + super(props); + this.init() + } + + init = () => { + let width = 6; + let height = 6; + let w = 96; + let h = 96; + this.camera = new THREE.OrthographicCamera(width / - 2, width / 2, height / 2, height / - 2, 1, 30); + this.camera.position.set(0, -1, 2); + // this.camera.lookAt(1, 1, 0) + this.camera.up.set(0, 0, 1); + + // RENDERER + this.renderer = new THREE.WebGLRenderer({ antialias: true }); + this.renderer.setPixelRatio(window.devicePixelRatio); + this.renderer.setSize(w, h); + + + this.renderer.shadowMap.enabled = true; + + this.scene = new THREE.Scene(); + this.scene.background = new THREE.Color(0x555555); + + // LIGHTS + this.scene.add(new THREE.HemisphereLight(0x443333, 0x111122,30)); + + let pl = new THREE.PointLight(0xFFFFFFF, 100, 0,0.3); + pl.position.set(50, -50, 10); + this.scene.add(pl); + + let pl1 = new THREE.PointLight(0xFFFFFFF, 10, 0,0.3); + pl1.position.set(-50, 50, 50); + this.scene.add(pl1); + // camera controller + this.controls = new OrbitControls(this.camera, this.renderer.domElement); + this.controls.enabled = false; + this.controls.enableDamping = true; // an animation loop is required when either damping or auto-rotation are enabled + this.controls.autoRotateSpeed = 5; + this.controls.autoRotate = true; + this.controls.dampingFactor = 0.25; + this.controls.screenSpacePanning = false; + this.controls.minDistance = 8; + this.controls.maxDistance = 13; + // this.controls.minPolarAngle = -Math.PI; + this.controls.maxPolarAngle = Math.PI / 2 - 0.1; + + + let middle = getMeanVoxelPos(this.props.level.voxels) + + this.controls.target = new THREE.Vector3(middle.x, middle.y, 0) + // const axesHelper = new THREE.AxesHelper(5); + // axesHelper.position.set(middle.x, middle.y, 0) + // this.scene.add(axesHelper); + + initScene(this.scene, this.props.level.voxels); + + this.controls.update() + this.renderer.render(this.scene, this.camera); + + if (this.props.active) { + this.startAnimating() + } + + } + + animate = () => { + this.frameId = requestAnimationFrame(this.animate); + this.controls.update() + this.renderer.render(this.scene, this.camera); + } + + startAnimating = () => { + if (!this.frameId) { + this.frameId = requestAnimationFrame(this.animate); + } + + } + + stopAnimating = () => { + cancelAnimationFrame(this.frameId); + this.frameId = 0; + } + + componentDidMount() { + this.mount.appendChild(this.renderer.domElement); + + } + + compoentWillUnmount() { + this.stopAnimating() + } + + componentDidUpdate(prevProps: LevelPreviewProps) { + if (prevProps.active && !this.props.active) this.stopAnimating() + if (!prevProps.active && this.props.active) this.startAnimating() + } + + render() { + return (
{ this.mount = mount }} + + // style={{ + // width: "200px", height: "200px", display: "block" + // }} + />) + } + +} + +function getMeanVoxelPos(voxels: Array) { + let vsum = voxels.reduce((p, c, i, a) => { return { x: p.x + c.x, y: p.y + c.y, z: 0 } }); + return { x: vsum.x / voxels.length, y: vsum.y / voxels.length, z: 0 } +} + + +function initScene(scene: THREE.Scene, voxels: Array) { + const h = 1; + voxels.map((v, idx) => { + let { x, y, z } = v + var geometry = new THREE.BoxGeometry(h, h, h); + // geometry.translate(-meanX, -meanY, (0.5) * h); + geometry.translate(0, 0, (0.5) * h); + + let material = DEFAULT_MATERIAL(); + if (v.actionable) { + switch (v.actionable.type) { + case "BUTTON": + material = v.actionable.pushed ? SWITCHED_ON_MATERIAL() + : SWITCHED_OFF_MATERIAL(); + break; + } + + } + let mesh = new THREE.Mesh(geometry, material); + mesh.castShadow = true; + mesh.receiveShadow = true; + mesh.position.set(x, y, z); + scene.add(mesh); + }) + initGround(scene) + +} + +function initGround(scene: THREE.Scene) { + const geometry = new THREE.PlaneGeometry(40, 40); + + // geometry.rotateX(Math.PI * -0.5) + const material = new THREE.MeshPhongMaterial({ + color: 0x030211, + specular: 0x0, + shininess: 0x0 + }); + const plane = new THREE.Mesh(geometry, material); + scene.add(plane) + var grid = new THREE.GridHelper(40, 20, 0x99bbff, 0x99bbff); + grid.rotateX(Math.PI * 0.5); + grid.position.setX(0.5); + grid.position.setY(0.5); + // console.log(grid.material) + (grid.material as THREE.LineBasicMaterial).opacity = 0.2; + (grid.material as THREE.LineBasicMaterial).transparent = true; + scene.add(grid); +} + +const mapStateToProps = (state: AppState) => { + return { + modalOpen: state.gameScreenState.modalOpen + } +} + +export default connect(mapStateToProps)(LevelPreview); diff --git a/src/components/LevelScene.tsx b/src/components/LevelScene.tsx new file mode 100644 index 0000000..715c3f4 --- /dev/null +++ b/src/components/LevelScene.tsx @@ -0,0 +1,82 @@ +import { Component } from 'react'; +import * as React from 'react'; +import game from "../game/game" +import { AppState } from '../store'; +import { connect } from "react-redux"; +import { STEP_EXECUTION, ExecutionState } from '../store/executionState/types'; +import { LevelInitializer } from '../game/levels'; + + +interface LevelSceneProps { + execState: ExecutionState, + fast: boolean, + step: () => void + level: LevelInitializer +} + +export class LevelScene extends Component { + mount: HTMLElement; + retryTimer: number | null = null; + retryCount: number = 0; + + componentDidMount() { + window.addEventListener('resize', game.onWindowResize, false); + this.mount.addEventListener('resize', game.onWindowResize, false); + + // Simplified initialization without visual corruption + const initializeGame = () => { + if (game.canStart()) { + console.log('Player ready, starting game'); + game.start(); + game.onWindowResize(); + this.mount.appendChild(game.renderer.domElement); + } else { + // Single retry attempt after delay + setTimeout(initializeGame, 100); + } + }; + + initializeGame(); + } + + componentWillUnmount() { + game.stop() + if (this.retryTimer) { + clearInterval(this.retryTimer); + this.retryTimer = null; + } + if (this.mount.contains(game.renderer.domElement)) { + this.mount.removeChild(game.renderer.domElement) + } + } + + componentDidUpdate(prevprops: LevelSceneProps) { + if (prevprops.execState.instructionPtr !== this.props.execState.instructionPtr + && this.props.execState.running) { + let ins = this.props.execState.instruction + if (ins) { + game.player[ins]() + } + } + } + render() { + let { running } = this.props.execState + return ( +
{ this.mount = mount }} /> + ) + } +} + +const mapStateToProps = (state: AppState, ownprops?) => { + + return { ...ownprops, execState: state.executionState } +} + +const mapDispatchToProps = dispatch => { + return { + step: () => { dispatch({ type: STEP_EXECUTION }) } + } +} + +export default connect(mapStateToProps, mapDispatchToProps)(LevelScene) + diff --git a/src/components/LevelSelectScreen.tsx b/src/components/LevelSelectScreen.tsx new file mode 100644 index 0000000..53c129b --- /dev/null +++ b/src/components/LevelSelectScreen.tsx @@ -0,0 +1,69 @@ +import * as React from "react"; +import { useState } from 'react'; +import { AppState } from "../store"; +import { connect } from "react-redux"; +import { levels } from "../game/levels"; +import { Route, Link } from "react-router-dom"; +import LevelPreview from "./LevelPreview" + + +const LevelItem = ({ level, idx, cb, active, unlocked }) => { + return ( +
+
{} } + style={{background: active ? '#9bf': '#79d', + filter: !unlocked ? 'grayscale(70%)': 'none'}}> + +

{idx + 1+": "+level.name}

+
+
+ )} + +const LevelSelectScreen = ({saveState}) =>{ + const [activeIdx, setActiveIdx] = useState(0); + const unlockedState: Array = [true, true]; + // const levelSaveState = store.get + for(let i = 2; i < saveState.levels.length; ++i){ + let {done} = saveState.levels[i]; + unlockedState.push((!done && saveState.levels[i-1].done) || done) + } + + return ( +
+
+

select level:

+ {levels.map((level, idx) => { + let active = (idx === activeIdx); + // let locked = + return setActiveIdx(idx)} + active={active} + key={idx} + unlocked={unlockedState[idx]} + /> + })} + start +
+ +
) +} + +const mapStateToProps = (state: AppState, ownprops?) => { + + return { + ...ownprops, + saveState: state.saveState + } +} + +const mapDispatchToProps = dispatch => { + return { + // openModal: () => dispatch({ type: OPEN_MODAL }) + } +} + + +export default connect(mapStateToProps, mapDispatchToProps)(LevelSelectScreen); + diff --git a/src/components/Root.tsx b/src/components/Root.tsx new file mode 100644 index 0000000..34e3091 --- /dev/null +++ b/src/components/Root.tsx @@ -0,0 +1,44 @@ +import * as React from "react"; +import StartScreen from "./StartScreen" +import GameScreen from "./GameScreen" +import LevelSelectScreen from "./LevelSelectScreen" +import { Provider } from "react-redux"; +// import { BrowserRouter as Router, Route } from 'react-router-dom' +import { HashRouter as Router, Routes, Route } from 'react-router-dom' + +const Root = ({ store }) => ( + + + + } /> + } /> + } /> + + + +) + +// const Root = ({ screen }) => { +// switch (screen) { +// case SET_STARTSCREEN: +// return ; +// case SET_LEVELSELECTSCREEN: +// return ; +// default: +// return ; +// } +// } + + + +// const mapStateToProps = (state: AppState) => { +// return { +// screen: state.screen +// } +// } + +// const mapDispatchToProps = dispatch => { +// return +// } + +export default Root diff --git a/src/components/SettingsScreen.tsx b/src/components/SettingsScreen.tsx new file mode 100644 index 0000000..e57bd99 --- /dev/null +++ b/src/components/SettingsScreen.tsx @@ -0,0 +1,13 @@ +import * as React from "react"; +import { BrowserRouter as Router, Route, Link } from "react-router-dom"; + +const SettingsScreen = () => ( +
+ + + + +
+); + +export default SettingsScreen; diff --git a/src/components/StartScreen.tsx b/src/components/StartScreen.tsx new file mode 100644 index 0000000..23af05e --- /dev/null +++ b/src/components/StartScreen.tsx @@ -0,0 +1,16 @@ +import * as React from "react"; +import { BrowserRouter as Router, Route, Link } from "react-router-dom"; + +const StartScreen = () => ( +
+ + +
Levels
+ + +
Settings
+ +
+); + +export default StartScreen; diff --git a/src/components/WonScreen.tsx b/src/components/WonScreen.tsx new file mode 100644 index 0000000..3589637 --- /dev/null +++ b/src/components/WonScreen.tsx @@ -0,0 +1,42 @@ +import * as React from "react"; +import { useState } from 'react'; +import { AppState } from "../store"; +import { connect } from "react-redux"; +import { Route, Link } from "react-router-dom"; + + +const WonScreen = ({ saveState }) => { + const [activeIdx, setActiveIdx] = useState(0); + let actuallyWon = false; + // const levelSaveState = store.get + for (let i = 2; i < saveState.levels.length; ++i) { + let { done } = saveState.levels[i]; + actuallyWon = actuallyWon && done; + } + + return ( +
+
+

select level:

+ back +
+ +
) +} + +const mapStateToProps = (state: AppState, ownprops?) => { + return { + ...ownprops, + saveState: state.saveState + } +} + +const mapDispatchToProps = dispatch => { + return { + // openModal: () => dispatch({ type: OPEN_MODAL }) + } +} + + +export default connect(mapStateToProps, mapDispatchToProps)(WonScreen); + diff --git a/src/components/talkyFace.tsx b/src/components/talkyFace.tsx new file mode 100644 index 0000000..aead2ad --- /dev/null +++ b/src/components/talkyFace.tsx @@ -0,0 +1,135 @@ +import { Component } from 'react'; +import * as React from 'react'; +import * as THREE from 'three'; +import { GLTFLoader } from 'three/examples/jsm/loaders/GLTFLoader.js'; +import { AppState } from '../store'; +import { connect } from 'react-redux'; + + +interface TalkyFaceProps { + modalOpen: boolean +} + +class TalkyFace extends Component { + camera: THREE.PerspectiveCamera; + renderer: THREE.WebGLRenderer; + scene: THREE.Scene; + mount: HTMLElement; + animations: THREE.AnimationClip[]; + mixer: THREE.AnimationMixer; + model: THREE.Group; + actions: {}; + frameId: number; + clock: THREE.Clock; + + constructor(props: TalkyFaceProps) { + super(props); + this.init() + } + + init = () => { + this.camera = new THREE.PerspectiveCamera(55, 1, 1, 3000); + this.camera.position.set(0, 2, -1); + this.camera.lookAt(0, 0, -1) + // this.camera.up.set(0, 0, 1); + + // RENDERER + this.renderer = new THREE.WebGLRenderer({ antialias: true }); + this.renderer.setPixelRatio(window.devicePixelRatio); + this.renderer.setSize(200, 200); + + + this.renderer.shadowMap.enabled = true; + + this.scene = new THREE.Scene(); + this.scene.background = new THREE.Color(0x555555); + + // LIGHTS + this.scene.add(new THREE.HemisphereLight(0x443333, 0x111122,30)); + + let pl = new THREE.PointLight(0xFFFFFFF, 1, 1000); + pl.position.set(50, -50, 10); + this.scene.add(pl); + + let pl1 = new THREE.PointLight(0xFFFFFFF, 1, 1000); + pl1.position.set(-50, 50, 50); + this.scene.add(pl1); + + // ROBOT MODEL + this.clock = new THREE.Clock() + let loader = new GLTFLoader(); + loader.load('assets/models/RobotExpressive.glb', (gltf) => { + this.model = gltf.scene; + this.animations = gltf.animations; + this.mixer = new THREE.AnimationMixer(this.model) + this.actions = {}; + for (var i = 0; i < this.animations.length; i++) { + var clip = this.animations[i]; + var action = this.mixer.clipAction(clip); + this.actions[clip.name] = action; + if (clip.name != "Idle") action.repetitions = 1 + } + // this.actions["Idle"].play() + this.actions["ThumbsUp"].timeScale = 0.2 + console.log(this.actions["ThumbsUp"]) + this.actions["ThumbsUp"].play(); + this.model.children[0].rotation.x = Math.PI * 0.5; + this.model.children[0].rotation.y = Math.PI - 0.3; + this.model.children[0].rotation.z = Math.PI; + this.model.position.setZ(-0.3) + this.model.scale.set(0.3, 0.3, 0.3) + this.scene.add(this.model); + }) + + } + + animate = () => { + this.frameId = requestAnimationFrame(this.animate); + var dt = this.clock.getDelta(); + if (this.mixer) this.mixer.update(dt); + this.renderer.render(this.scene, this.camera); + } + + startAnimating = () => { + if (!this.frameId) { + this.frameId = requestAnimationFrame(this.animate); + } + } + stopAnimating = () => { + cancelAnimationFrame(this.frameId); + this.frameId = 0; + console.log("now talkyface should have stopped rendering") + } + + componentDidMount() { + this.mount.appendChild(this.renderer.domElement); + this.startAnimating(); + } + + compoentWillUnmount() { + this.stopAnimating() + } + + componentDidUpdate(prevProps: TalkyFaceProps) { + if (prevProps.modalOpen && !this.props.modalOpen) this.stopAnimating() + if (!prevProps.modalOpen && this.props.modalOpen) this.startAnimating() + } + + render() { + return (
{ this.mount = mount }} + style={{ + width: "200px", height: "200px", display: "block" + }} />) + } + +} + +const mapStateToProps = (state: AppState) => { + return { + modalOpen: state.gameScreenState.modalOpen + } +} + +export default connect(mapStateToProps)(TalkyFace); diff --git a/src/game/game.ts b/src/game/game.ts new file mode 100644 index 0000000..01d0cf9 --- /dev/null +++ b/src/game/game.ts @@ -0,0 +1,331 @@ +import store from "../store/store" +import * as THREE from 'three'; +import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls.js'; +import Stats from 'three/examples/jsm/libs/stats.module.js'; +// import { keyframes } from "popmotion"; +import { Voxel, DEFAULT_MATERIAL, SWITCHED_ON_MATERIAL, SWITCHED_OFF_MATERIAL } from '../game/voxel'; +import { Player } from '../game/player'; +import { LevelInitializer, levels } from "./levels"; +import { STEP_EXECUTION, RESET_EXECUTION } from "../store/executionState/types"; +import { ImprovedNoise } from 'three/examples/jsm/math/ImprovedNoise.js'; +import { nextLevel } from "../store/level/slice"; +import { INIT_CODEBLOCKS } from "../store/codeBlocks/types"; +import { openModal, closeModal } from "../store/gameScreenState/slice"; +import { SAVESTATE, SaveState, SET_LEVEL_DONE } from "../store/saveState/types"; +// import { LevelInitializer } from '../game/levels'; +// import { meanBy } from "lodash" + + + +interface ThreeScene { + camera: THREE.PerspectiveCamera, + scene: THREE.Scene, + renderer: THREE.WebGLRenderer, + controls: OrbitControls, + frameId: number, + stats: Stats +} + +class Game implements ThreeScene { + camera: THREE.PerspectiveCamera; + scene: THREE.Scene; + renderer: THREE.WebGLRenderer; + controls: OrbitControls; + frameId: number; + stats: Stats; + player: Player; + levelIdx: number; + unsibscribe: () => void; + + constructor() { + this.camera = new THREE.PerspectiveCamera(55, window.innerWidth / window.innerHeight, 1, 3000); + this.camera.position.set(-40, 40, 30); + this.camera.up.set(0, 0, 1); + + // renderer + this.renderer = new THREE.WebGLRenderer({ antialias: true }); + this.renderer.setPixelRatio(window.devicePixelRatio); + this.renderer.setSize(window.innerWidth, window.innerHeight); + + // Enhanced rendering settings for atmospheric lighting + this.renderer.shadowMap.enabled = true; + this.renderer.shadowMap.type = THREE.PCFSoftShadowMap; + this.renderer.toneMapping = THREE.ACESFilmicToneMapping; + this.renderer.toneMappingExposure = 1.2; + this.renderer.outputColorSpace = THREE.SRGBColorSpace; + + // camera controller + this.controls = new OrbitControls(this.camera, this.renderer.domElement); + this.controls.enableDamping = true; // an animation loop is required when either damping or auto-rotation are enabled + // this.controls.autoRotateSpeed = 0.1; + // this.controls.autoRotate = true; + this.controls.dampingFactor = 0.25; + this.controls.screenSpacePanning = false; + this.controls.minDistance = 8; + this.controls.maxDistance = 13; + // this.controls.minPolarAngle = -Math.PI; + this.controls.maxPolarAngle = Math.PI / 2 - 0.1; + // stats + this.stats = new Stats(); + this.levelIdx = store.getState().level.idx; + this.unsibscribe = store.subscribe(this.handleLevelChange) + } + + handleLevelChange = () => { + let state = store.getState(); + let levelIdx = state.level.idx; + if (levelIdx != this.levelIdx) { + this.levelIdx = levelIdx; + console.log("Game initializing new level now", levelIdx, this.levelIdx); + this.init(state.level); + } + + } + + init = (lev: LevelInitializer) => { + this.scene = new THREE.Scene(); + this.scene.background = new THREE.Color(0x0a0a12); // Dark blue-gray instead of pure black + + // Groundplane + initGround(this.scene); + + let level = lev + + // Create mutable copy of voxels for both Player and initBoxes + const mutableVoxels = level.voxels.map(v => ({ ...v })); + + this.player = new Player(this.scene, { ...level, voxels: mutableVoxels }) + initBoxes(this.scene, mutableVoxels, this.player); + + // Lights + // Subtle ambient light for base visibility + this.scene.add(new THREE.AmbientLight(0x2a2a3a, 2.4)); + + // Improved hemisphere light for mood + this.scene.add(new THREE.HemisphereLight(0x4a4a5a, 0x1a1a2a, 10)); + + // Dramatic point lights with better positioning + let pl = new THREE.PointLight(0x8090ff, 10, 0,0.3); + pl.position.set(40, -40, 25); + pl.castShadow = true; + this.scene.add(pl); + let pl1 = new THREE.PointLight(0xff9080, 10, 0,0.3); + pl1.position.set(-40, 40, 25); + pl1.castShadow = true; + this.scene.add(pl1); + + } + + step = () => { + let state = store.getState() + if (state.executionState.autostep && state.executionState.running) { + store.dispatch({ "type": STEP_EXECUTION }) + } + + } + + animate = () => { + requestAnimationFrame(this.animate); + this.controls.update(); + if (this.player?.ready) { + this.player.update() + } + this.stats.update(); + this.renderer.render(this.scene, this.camera); + } + + start = () => { + if (!this.frameId && this.player?.ready) { + this.frameId = requestAnimationFrame(this.animate) + } + } + + canStart = () => { + return this.player?.ready === true; + } + + stop = () => { + cancelAnimationFrame(this.frameId); + } + + reset = () => { + this.player.reset() + store.dispatch({ type: RESET_EXECUTION }) + } + + onWindowResize = () => { + // conso e.log(this); + let w = Math.max(window.innerWidth * 0.6, 300); + if (this.camera) { + this.camera.aspect = w / window.innerHeight; + this.camera.updateProjectionMatrix(); + } + this.renderer.setSize(w, window.innerHeight); + } + + nextLevel = () => { + store.dispatch(nextLevel()); + let state = store.getState(); + store.dispatch({ type: INIT_CODEBLOCKS, level: state.level }); + store.dispatch({ type: RESET_EXECUTION }); + if (!(state.saveState.showTips && state.level.introMessages)) store.dispatch(closeModal()); + } + +} + +const game = new Game() +export default game + + +function initBoxes(scene: THREE.Scene, voxels: Array, player: Player) { + const h = 1; + let ctx = 0; + // const off = 2 + + // var texture = new THREE.TextureLoader().load('assets/textures/crate.gif'); + // var material = new THREE.MeshBasicMaterial({ map: texture }); + // let meanX = meanBy(voxels, (v) => v.x) + // let meanY = meanBy(voxels, (v) => v.y) + + voxels.forEach((v, idx) => { + let { x, y, z } = v + var geometry = new THREE.BoxGeometry(h, h, h); + // geometry.translate(-meanX, -meanY, (0.5) * h); + geometry.translate(0, 0, (0.5) * h); + + let material = DEFAULT_MATERIAL(); + if (v.actionable) { + switch (v.actionable.type) { + case "BUTTON": + material = v.actionable.pushed ? SWITCHED_ON_MATERIAL() + : SWITCHED_OFF_MATERIAL(); + break; + + } + + } + let mesh = new THREE.Mesh(geometry, material); + mesh.castShadow = true; + mesh.receiveShadow = true; + mesh.position.set(x, y, z); + console.log(player.voxelStandingOn) + if (idx != player.level.playerPos.voxelIdx) { + mesh.position.setZ(10) + setTimeout(() => { + // Simplified animation using setTimeout + const startZ = mesh.position.z; + const startTime = Date.now(); + const duration = 1500; + const animateStep = () => { + const elapsed = Date.now() - startTime; + const progress = Math.min(elapsed / duration, 1); + mesh.position.setZ(startZ + (z - startZ) * progress); + if (progress < 1) { + requestAnimationFrame(animateStep); + } + }; + animateStep(); + }, ctx++ * 200); + } + + // Clone the voxel and add the model property + const extendedVoxel = { ...v, model: mesh }; + voxels[idx] = extendedVoxel; + scene.add(mesh); + }) +} + + + +function initGround(scene: THREE.Scene) { + var planeGeometry = new THREE.PlaneGeometry(400, 400, 127, 127) + planeGeometry.rotateX(Math.PI / -2); + var data = generateHeight(128, 128); + let vertices = planeGeometry.attributes.position.array; + + + console.log(vertices.length) + for (var i = 0, j = 0, l = vertices.length; i < l; i++ , j += 3) { + // console.log(vertices[j + 1]) + (vertices[j + 1] as number) = data[i]; + } + + var planeWire = new THREE.Mesh(planeGeometry, + + new THREE.MeshPhongMaterial({ + color: 0x320032, + specular: 0x0, + // shininess: 0xffffff, + wireframeLinewidth: 3, + wireframe: true + + }) + ); + var planeSolid = new THREE.Mesh(planeGeometry, + + new THREE.MeshPhongMaterial({ + color: 0x030211, + specular: 0x0, + shininess: 0x0, + + }) + ); + planeWire.position.y = 0; + planeWire.rotateX(Math.PI * 0.5) + planeSolid.position.y = 0; + planeSolid.rotateX(Math.PI * 0.5) + planeSolid.receiveShadow = true; + + + var grid = new THREE.GridHelper(400, 30, 0x99bbff, 0x99bbff); + grid.rotateX(Math.PI * 0.5); + // grid.position.setZ(0.5); + // console.log(grid.material) + (grid.material as THREE.LineBasicMaterial).opacity = 0.2; + (grid.material as THREE.LineBasicMaterial).transparent = true; + + // scene.add(planeWire); + // scene.add(planeSolid); + scene.add(grid); +} + + +// used to generate terrain +function generateHeight(width, height) { + var size = width * height, data = new Uint8Array(size), + perlin = new ImprovedNoise(), quality = 1, z = Math.random() * 200; + for (var j = 0; j < 4; j++) { + for (var i = 0; i < size; i++) { + var x = i % width, y = ~ ~(i / width); + data[i] += Math.abs(perlin.noise(x / quality, y / quality, z) * quality * 1.75); + + } + quality *= 5; + } + for (var j = 0; j < size; j++) { + var x = ((j % width) - 64) + var y = ((~ ~(j / width)) - 64) + data[j] *= Math.sqrt(x * x + y * y) * 0.005 + } + return data; +} + + +// check if all button-voxels are currently pressed +export const hasWonGame = (player: Player) => { + for (let v of player.voxels) { + if (v.actionable && v.actionable.type == "BUTTON") { + if (!v.actionable.pushed) return false; + } + } + let idx = store.getState().level.idx + store.dispatch({ type: SET_LEVEL_DONE, levelIdx: idx }); + saveState(); + return true; +} + + +export function saveState() { + let state = store.getState().saveState + localStorage.setItem(SAVESTATE, btoa(JSON.stringify(state))) +} diff --git a/src/game/levels.ts b/src/game/levels.ts new file mode 100644 index 0000000..87a9d40 --- /dev/null +++ b/src/game/levels.ts @@ -0,0 +1,122 @@ +import { CodeBlockContainer } from "../store/codeBlocks/types"; +import { Voxel, BUTTON_ACTIONABLE } from "./voxel"; + +export interface LevelInitializer { + name: string; + voxels: Array; + playerPos: IPlayerData; + codeviews: Array; + allowedCodeBlocks: Array; + activeCodeview: string; + introMessages: Array | null; +} + +export interface IOperationsDict { + [key: string]: string[]; +} + +export interface ICodeview { + name: string; + nLines: number; +} + +export interface IPlayerData { + voxelIdx: number; + direction: string; +} + +export interface IIntroMessage { + message: string; + image: string | null; +} + +export const levels: LevelInitializer[] = [ + { + name: "tutorial", + voxels: [{ x: 0, y: 0, z: 0 }, + { x: 1, y: 0, z: 0 }, + { x: 2, y: 0, z: 0, actionable: { type: BUTTON_ACTIONABLE.type, pushed: BUTTON_ACTIONABLE.pushed } }, + ], + playerPos: { voxelIdx: 0, direction: "east" }, + codeviews: [{ + name: "main", nMaxBlocks: 3, blocks: [ + { name: "forward", containerIndex: 0 }, + { name: "forward", containerIndex: 0 }, + { name: "action", containerIndex: 0 }] + }], + activeCodeview: "main", + allowedCodeBlocks: ["forward", "turn_right", "turn_left", "jump", "action", "f1"], + introMessages: [{ message: "Hit run and watch.", image: null }, + { message: "second page of intro message", image: null }] + }, + { + name: "hello world", + voxels: [{ x: 0, y: 0, z: 0 }, + { x: 1, y: 0, z: 0 }, + { x: 2, y: 0, z: 0 }, + { x: 3, y: 0, z: 0, actionable: { type: BUTTON_ACTIONABLE.type, pushed: BUTTON_ACTIONABLE.pushed } }, + { x: 3, y: 1, z: 0 }, + { x: 3, y: 2, z: 0 }, + { x: 3, y: 3, z: 0, actionable: { type: BUTTON_ACTIONABLE.type, pushed: BUTTON_ACTIONABLE.pushed } }], + playerPos: { voxelIdx: 0, direction: "east" }, + codeviews: [{ + name: "main", + nMaxBlocks: 3, + blocks: [{ name: "f1" }, { name: "turn_left" }] + }, + { + name: "f1", nMaxBlocks: 4, blocks: [{ name: "forward" }, + { name: "forward" }, + { name: "forward" }, + { name: "action" }] + }], + activeCodeview: "main", + allowedCodeBlocks: ["forward", "turn_right", "turn_left", "jump", "action", "f1"], + introMessages: [{ message: "light up all dark cubes!", image: null }] + }, + { + name: "jump n run", + voxels: [{ x: 0, y: 0, z: 0, actionable: { type: BUTTON_ACTIONABLE.type, pushed: BUTTON_ACTIONABLE.pushed } }, + { x: 0, y: 1, z: 1 }, + { x: 0, y: 2, z: 1 }, + { x: 0, y: 3, z: 0 }, + { x: 0, y: 4, z: 0 }, + { x: 0, y: 5, z: 0, actionable: { type: BUTTON_ACTIONABLE.type, pushed: BUTTON_ACTIONABLE.pushed } }], + playerPos: { voxelIdx: 0, direction: "north" }, + codeviews: [{ name: "main", nMaxBlocks: 4, blocks: [] }, + { name: "f1", nMaxBlocks: 3, blocks: [] }], + activeCodeview: "main", + allowedCodeBlocks: ["forward", "turn_right", "turn_left", "jump", "action", "f1"], + introMessages: null + }, + { + name: "jump n run 2", + voxels: [{ x: 0, y: 0, z: 0, actionable: { type: BUTTON_ACTIONABLE.type, pushed: BUTTON_ACTIONABLE.pushed } }, + { x: 0, y: 1, z: 1 }, + { x: 0, y: 2, z: 1 }, + { x: 1, y: 2, z: 0 }, + { x: 2, y: 2, z: 0 }, + { x: 3, y: 2, z: 0, actionable: { type: BUTTON_ACTIONABLE.type, pushed: BUTTON_ACTIONABLE.pushed } }], + playerPos: { voxelIdx: 0, direction: "north" }, + codeviews: [{ name: "main", nMaxBlocks: 4, blocks: [] }, + { name: "f1", nMaxBlocks: 3, blocks: [] }], + activeCodeview: "main", + allowedCodeBlocks: ["forward", "turn_right", "turn_left", "jump", "action", "f1"], + introMessages: null + }, + { + name: "jump n run 3", + voxels: [{ x: 0, y: 0, z: 0, actionable: { type: BUTTON_ACTIONABLE.type, pushed: BUTTON_ACTIONABLE.pushed } }, + { x: 0, y: 1, z: 1 }, + { x: 0, y: 2, z: 1 }, + { x: 0, y: 3, z: 0 }, + { x: 0, y: 4, z: 0 }, + { x: 0, y: 5, z: 0, actionable: { type: BUTTON_ACTIONABLE.type, pushed: BUTTON_ACTIONABLE.pushed } }], + playerPos: { voxelIdx: 0, direction: "north" }, + codeviews: [{ name: "main", nMaxBlocks: 4, blocks: [] }, + { name: "f1", nMaxBlocks: 3, blocks: [] }], + activeCodeview: "main", + allowedCodeBlocks: ["forward", "turn_right", "turn_left", "jump", "action", "f1"], + introMessages: null + } +]; diff --git a/src/game/player.ts b/src/game/player.ts new file mode 100644 index 0000000..61f4970 --- /dev/null +++ b/src/game/player.ts @@ -0,0 +1,248 @@ +import * as THREE from 'three'; +import { LevelInitializer } from './levels'; +import { Voxel, SingleSideNeighbors, buildNeighborhoodMap, buttonVoxelToggle, resetVoxels } from './voxel'; +// import { keyframes } from "popmotion"; +import { ExecutionState } from '../store/executionState/types' +import game, { hasWonGame } from "./game" +import { GLTFLoader } from 'three/examples/jsm/loaders/GLTFLoader.js'; +import store from "../store/store" +import { levelDone } from '../store/saveState/actions'; +import { wonLevel } from '../store/executionState/actions'; + +// interface Player +// model control from https://github.com/mrdoob/three.js/blob/master/examples/webgl_animation_skinning_morph.html +// var states = ['Idle', 'Walking', 'Running', 'Dance', 'Death', 'Sitting', 'Standing']; +// var emotes = ['Jump', 'Yes', 'No', 'Wave', 'Punch', 'ThumbsUp']; + +export class Player { + scene: THREE.Scene; + model: THREE.Object3D; + mixer: THREE.AnimationMixer; + clock: THREE.Clock; + direction: string; + level: LevelInitializer; + voxels: Array; + voxelStandingOn: Voxel; + ready: boolean = false; + actions: {} + animations: THREE.AnimationClip[] + + constructor(scene: THREE.Scene, level: LevelInitializer) { + this.scene = scene; + this.level = level; + this.clock = new THREE.Clock() + let loader = new GLTFLoader(); + loader.load('assets/models/RobotExpressive.glb', (gltf) => { + this.model = gltf.scene; + this.animations = gltf.animations; + this.mixer = new THREE.AnimationMixer(this.model) + this.actions = {}; + for (var i = 0; i < this.animations.length; i++) { + var clip = this.animations[i]; + var action = this.mixer.clipAction(clip); + this.actions[clip.name] = action; + if (clip.name != "Idle") action.repetitions = 1 + } + this.actions["Idle"].play() + this.model.children[0].rotation.x = Math.PI * 0.5; + this.model.children[0].rotation.y = Math.PI; + this.model.scale.set(0.3, 0.3, 0.3) + this.scene.add(this.model); + this.voxels = buildNeighborhoodMap(this.level.voxels) + this.reset() + this.ready = true; + }) + } + + update() { + if (!this.ready) return; // Early return if not ready + var dt = this.clock.getDelta(); + if (this.mixer) this.mixer.update(dt) + } + + setToVoxelPosition(v: Voxel) { + this.model.position.set(v.x, v.y, v.z + 1) + } + + reset() { + this.voxelStandingOn = this.voxels[this.level.playerPos.voxelIdx] + this.setToVoxelPosition(this.voxelStandingOn) + this.direction = this.level.playerPos.direction + this.initRotation(this.direction) + resetVoxels(this.voxels) + } + + doneAnimating() { + // if (this.mixer) this.mixer.stopAllAction() + // this.actions["waling"] + game.step() + } + + initRotation(dir: string) { + let getAngle = dir => { + switch (dir) { + case "east": + return 1.5 * Math.PI + case "west": + return 0.5 * Math.PI + case "south": + return Math.PI + } + return 0; + } + this.model.rotation.z = getAngle(dir) + } + + setRotation(l: number) { + let z0 = this.model.rotation.z + let rz = z0 + l * 0.5 * Math.PI + // Simplified rotation animation + const startRotation = this.model.rotation.z; + const startTime = Date.now(); + const duration = 1000; + const animateStep = () => { + const elapsed = Date.now() - startTime; + const progress = Math.min(elapsed / duration, 1); + this.model.rotation.z = startRotation + (rz - startRotation) * progress; + if (progress < 1) { + requestAnimationFrame(animateStep); + } else { + this.doneAnimating(); + } + }; + animateStep(); + } + + jump() { + let x0 = this.voxelStandingOn + let nextVoxel = this.voxelStandingOn.neighs[this.direction] + if (nextVoxel["up"]) { + this.voxelStandingOn = nextVoxel["up"] + } + if (nextVoxel["down"]) { + this.voxelStandingOn = nextVoxel["down"] + } + this.actions['Jump'].reset() + this.actions['Jump'].play() + if (nextVoxel["down"] || nextVoxel["up"]) { + + let x1 = this.voxelStandingOn + let v0x = x1.x - x0.x + let v0y = x1.y - x0.y + let v0z = x1.z - x0.z + 0.5 * 9.81 + + // Simplified jump animation + const startTime = Date.now(); + const duration = 1000; + const animateStep = () => { + const elapsed = Date.now() - startTime; + const progress = Math.min(elapsed / duration, 1); + const t = progress; + this.model.position.set(x0.x + v0x * t, + x0.y + v0y * t, + x0.z + v0z * t - 0.5 * 9.81 * t * t + 1) + if (progress < 1) { + requestAnimationFrame(animateStep); + } else { + this.doneAnimating(); + } + }; + animateStep(); + + return; + } + else { + this.doneAnimating() + } + } + + forward() { + let nextVoxel = this.voxelStandingOn.neighs[this.direction] + if (nextVoxel["forward"]) { + this.voxelStandingOn = nextVoxel["forward"] + let x = this.model.position.x + let y = this.model.position.y + this.actions['Walking'].reset() + this.actions['Walking'].play() + // Simplified walk animation + const startTime = Date.now(); + const startX = x; + const startY = y; + const duration = 800; + const animateStep = () => { + const elapsed = Date.now() - startTime; + const progress = Math.min(elapsed / duration, 1); + const t = progress; + this.model.position.set(startX * (1 - t) + this.voxelStandingOn.x * t, + startY * (1 - t) + this.voxelStandingOn.y * t, + this.model.position.z); + if (progress < 1) { + requestAnimationFrame(animateStep); + } else { + this.doneAnimating(); + } + }; + animateStep(); + } + else { + this.actions["No"].reset() + this.actions["No"].play() + setTimeout(this.doneAnimating, 800) + } + + } + + action() { + this.actions['Jump'].reset() + this.actions['Jump'].play() + if (this.voxelStandingOn.actionable) { + switch (this.voxelStandingOn.actionable.type) { + case "BUTTON": + buttonVoxelToggle(this.voxelStandingOn) + // console.log("PUSH DE BOTON") + if (hasWonGame(this)) { + store.dispatch(wonLevel()) + // console.log("WON THE GAME") + } + break; + } + } + setTimeout(this.doneAnimating, 800) + } + + turn_left() { + switch (this.direction) { + case "east": + this.direction = "north" + break + case "north": + this.direction = "west" + break + case "west": + this.direction = "south" + break + case "south": + this.direction = "east" + } + this.setRotation(1) + } + + turn_right() { + switch (this.direction) { + case "east": + this.direction = "south" + break + case "north": + this.direction = "east" + break + case "west": + this.direction = "north" + break + case "south": + this.direction = "west" + } + this.setRotation(-1) + } +} + + diff --git a/src/game/voxel.ts b/src/game/voxel.ts new file mode 100644 index 0000000..1b55281 --- /dev/null +++ b/src/game/voxel.ts @@ -0,0 +1,123 @@ +import * as THREE from 'three'; +export const DEFAULT_MATERIAL = () => new THREE.MeshPhongMaterial({ + color: 0x3335cc, + specular: 0x666688, // Brighter specular for atmospheric highlights + shininess: 25, // Allow light reflection + emissive: 0x0a0a15, // Subtle glow for base visibility + emissiveIntensity: 0.15 // Maintain darkness but ensure visibility +}); +export const SWITCHED_ON_MATERIAL = () => new THREE.MeshPhongMaterial({ + color: 0xfefffe, + specular: 0xcccccc, + shininess: 30, + emissive: 0x404050, + emissiveIntensity: 0.3 +}); +export const SWITCHED_OFF_MATERIAL = () => new THREE.MeshPhongMaterial({ + color: 0x222488, + specular: 0x444466, + shininess: 20, + emissive: 0x0a0a15, + emissiveIntensity: 0.12 +}); + +export interface Actionable { + type: string, + pushed?: boolean +} + +export const BUTTON_ACTIONABLE: Actionable = { + type: "BUTTON", + pushed: false +} + +export interface SingleSideNeighbors { + up?: Voxel, + down?: Voxel, + forward?: Voxel +} + +export interface Neighbors { + west: SingleSideNeighbors, + east: SingleSideNeighbors, + north: SingleSideNeighbors, + south: SingleSideNeighbors +} + +export interface Voxel { + x: number, + y: number, + z: number, + neighs?: Neighbors, + actionable?: Actionable, + model?: THREE.Mesh +} + +const searchForNeighbors = ( + v: Voxel, + vxs: Array, + incx: number, + incy: number): SingleSideNeighbors => { + let up = vxs.filter(vt => (vt.x == v.x + incx) + && (vt.y == v.y + incy) + && (vt.z == v.z + 1))[0] + let down = vxs.filter(vt => (vt.x == v.x + incx) + && (vt.y == v.y + incy) + && (vt.z == v.z - 1))[0] + let fwd = vxs.filter(vt => (vt.x == v.x + incx) + && (vt.y == v.y + incy) + && (vt.z == v.z))[0] + return { up: up, down: down, forward: fwd } +} + +export const buildNeighborhoodMap = (voxels: Array) => { + return voxels.map((v) => { + // Ensure voxel is extensible before adding neighs + const extensibleVoxel = { ...v }; // Create fresh copy + let neighs = { + west: searchForNeighbors(extensibleVoxel, voxels, -1, 0), + east: searchForNeighbors(extensibleVoxel, voxels, 1, 0), + north: searchForNeighbors(extensibleVoxel, voxels, 0, 1), + south: searchForNeighbors(extensibleVoxel, voxels, 0, -1) + } + extensibleVoxel.neighs = neighs + return extensibleVoxel + }) +} + +export const buttonVoxelToggle = (voxel: Voxel) => { + // This function modifies the actual voxel in place, but we need to handle read-only issues + // Create extensible copies of the actionable object + if (voxel.actionable) { + const newPushedState = !voxel.actionable.pushed; + const extensibleActionable = { ...voxel.actionable, pushed: newPushedState }; + + if (voxel.model) { + voxel.model.material = newPushedState ? SWITCHED_ON_MATERIAL() : SWITCHED_OFF_MATERIAL(); + } + + // Replace the actionable object (this should work if the main voxel reference is extensible) + voxel.actionable = extensibleActionable; + } +} + +export const resetVoxels = (voxels: Voxel[]) => { + return voxels.map((v) => { + // Create extensible copies to avoid read-only errors + const extensibleVoxel = { ...v }; + if (extensibleVoxel.actionable) { + const extensibleActionable = { ...extensibleVoxel.actionable }; + switch (extensibleActionable.type) { + case ("BUTTON"): + if (extensibleVoxel.model) { + extensibleVoxel.model.material = SWITCHED_OFF_MATERIAL() + } + extensibleActionable.pushed = false + break + } + extensibleVoxel.actionable = extensibleActionable; + } + return extensibleVoxel; + }) +} + diff --git a/src/index.css b/src/index.css new file mode 100644 index 0000000..0f93c31 --- /dev/null +++ b/src/index.css @@ -0,0 +1,302 @@ +body { + background:#223; +} + +* { + margin:0; + padding:0; +} + +*:focus { + outline: none; +} + +h1 { + margin-top:5rem; + text-align:center; +} + +@font-face { + font-family: "iosevka"; + src: url('/assets/iosevka-regular.ttf'); +} + +.controls { + position: fixed; + top:0; + left: 90px; + z-index: 90000; + display:flex; + color:#ffeeff; +} + +.Resizer { + background: #000; + opacity: .2; + z-index: 1; + -moz-box-sizing: border-box; + -webkit-box-sizing: border-box; + box-sizing: border-box; + -moz-background-clip: padding; + -webkit-background-clip: padding; + background-clip: padding-box; +} + +.Resizer:hover { + -webkit-transition: all 2s ease; + transition: all 2s ease; +} + +.Resizer.horizontal { + height: 11px; + margin: -5px 0; + border-top: 5px solid rgba(255, 255, 255, 0); + border-bottom: 5px solid rgba(255, 255, 255, 0); + cursor: row-resize; + width: 100%; +} + +.Resizer.horizontal:hover { + border-top: 5px solid rgba(0, 0, 0, 0.5); + border-bottom: 5px solid rgba(0, 0, 0, 0.5); +} + +.Resizer.vertical { + width: 11px; + margin: 0 -5px; + border-left: 5px solid rgba(255, 255, 255, 0); + border-right: 5px solid rgba(255, 255, 255, 0); + cursor: col-resize; +} + +.Resizer.vertical:hover { + border-left: 5px solid rgba(0, 0, 0, 0.5); + border-right: 5px solid rgba(0, 0, 0, 0.5); +} + +.Resizer.disabled { + cursor: not-allowed; +} + +.Resizer.disabled:hover { + border-color: transparent; +} + +.fncontainers { + display:flex; + height:fit-content; + width:8rem; + flex-flow: column; +} + +.fncontainer { + width:16rem; + margin-bottom:0.8rem; + height:12rem; +} + +.fncontainer h3 { + text-indent:-2rem; + color:#9bf; + display:block; + margin-bottom:0.5rem; + margin-top:0.4rem; + pointer-events:none; + user-select:none; +} + +.ops { + list-style-type:none; + display:flex; + flex-flow: row wrap; + min-height:8rem; + position:absolute; + width:16rem; +} + +.op { + list-style-type:none; + background:#444; + border: 0.1rem solid black; + border-radius: 0.2rem; + width:3.8rem; + height:3.8rem; + user-select:none; + cursor:grab; +} + +.op img { + width:100%; + pointer-events:none; +} + +.opspalette { + background:#122; + display:flex; + flex-flow: row; + padding-top: 1.6rem; + padding-bottom:1rem; + width:100%; + justify-content:space-around; +} + +.opindicators { + display:flex; + flex-flow: row wrap; + position:absolute; + z-index:-2; + width:16rem; +} + +.opindicator { + width:4rem; + height:4rem; + background:#555; +} + +.opdropzones { + position:absolute; + display:flex; + flex-flow: row wrap; + width:16rem; +} + +.opdropzone { + width:4rem; + height:4rem; + + background:#1119; +} + +.frontdropper { + width:1rem; + height:4rem; +} + +.levelname { + margin-top:1rem; + margin-bottom:0.4rem; + margin-left:2rem; + color:#666; + user-select:none; +} + +.titlebar{ + background:#122; + width:100%; + display:flex; + flex-direction:row; + justify-content:space-between; +} + +.game { + /* width:100vw; */ + /* height:100vh; */ + display:flex; + flex-direction: row; +} + +.editor { + align-items: center; + display:flex; + flex-direction:column; + justify-content:space-between; + width:100%; + height:100vh; + font-family:iosevka; + color:#fff; + border-left: solid #112 0.4rem; +} + +.controlbuttons { + display:flex; + flex-direction:row; + margin-right:2rem; + margin-top:0.4rem; + height:2.4rem; +} + +.controlbutton { + padding:0.5rem; + display:block; + border: solid #112 0.05rem; + border-radius:0.3rem; + background:#221; + cursor:pointer; + user-select:none; +} + +.controlbutton:hover { + background:#332; +} + +.levelSelectCaption { + font-family:iosevka; + color:#9bf; + text-align:left; + margin-bottom:1rem; +} + +.levelItems { + max-width: 25rem; + width:100%; + margin:auto; + text-align: center; + /* padding: 1rem; */ + /* display: flex; */ + /* flex-direction: col; */ + /* justify-content:space-between */ +} + +.levelItem { + width: 100%; + max-width: 25rem; + height: 96px; + user-select:none; + /* margin:1rem; */ + /* background:#343; */ + border: 0.1rem solid #112; + display:flex; + justify-content:center; + text-align:center; + font-family:iosevka; + /* box-shadow: 0.2rem 0.5rem 1rem 0px rgba(24, 14, 28, 0.5); */ +} + +.levelItems a { + margin-top: 1rem; + display: block; + background: #555; + border-radius: 0.5rem; + color:#3da; + font-family:iosevka; + font-size: 2em; + text-decoration:none; + +} + +.levelItems a:hover div{ + color: #3c0; + background:#363; +} + +.levelItem p { + margin:auto; +} + +.startContainer { + display:flex; + flex-direction: column; + width: 850px; + height:600px; + margin:auto; + justify-content: flex-start; +} + +.startContainer a { + margin-top:2rem; +} + +.gameName { + margin-top:4rem; +} diff --git a/src/index.tsx b/src/index.tsx new file mode 100644 index 0000000..a15ad10 --- /dev/null +++ b/src/index.tsx @@ -0,0 +1,9 @@ +import React from "react"; +import { createRoot } from "react-dom/client"; +import Root from "./components/Root"; +import store from "./store/store"; +import "./index.css"; + +const container = document.getElementById("root"); +const root = createRoot(container!); +root.render(); diff --git a/src/index_old.css b/src/index_old.css new file mode 100644 index 0000000..f2a83b4 --- /dev/null +++ b/src/index_old.css @@ -0,0 +1,218 @@ +body { + background: #223; +} + +* { + margin: 0; + padding: 0; +} + +*:focus { + outline: none; +} + +h1 { + margin-top: 5rem; + text-align: center; +} + +@font-face { + font-family: "iosevka"; + src: url('/assets/iosevka-regular.ttf') format('woff2'); +} + +/* GameScreen Styles */ +.game { + display: flex; + flex-direction: row; +} + +.levelname { + margin-top: 1rem; + margin-bottom: 0.4rem; + margin-left: 2rem; + color: #666; + user-select: none; +} + +.titlebar { + background: #122; + width: 100%; + display: flex; + flex-direction: row; + justify-content: space-between; +} + +.editor { + align-items: center; + display: flex; + flex-direction: column; + justify-content: space-between; + width: 100%; + height: 100vh; + font-family: iosevka; + color: #fff; + border-left: solid #112 0.4rem; +} + +.controlbuttons { + display: flex; + flex-direction: row; + margin-right: 2rem; + margin-top: 0.4rem; + height: 2.4rem; +} + +.controlbutton { + padding: 0.5rem; + display: block; + border: solid #112 0.05rem; + border-radius: 0.3rem; + background: #221; + cursor: pointer; + user-select: none; +} + +.controlbutton:hover { + background: #332; +} + +/* Operation Blocks (Drag & Drop) */ +.op { + list-style-type: none; + background: #444; + border: 0.1rem solid black; + border-radius: 0.2rem; + width: 3.8rem; + height: 3.8rem; + user-select: none; + cursor: grab; +} + +.op img { + width: 100%; + pointer-events: none; +} + +.opspalette { + background: #122; + display: flex; + flex-flow: row; + padding-top: 1.6rem; + padding-bottom: 1rem; + width: 100%; + justify-content: space-around; +} + +.opindicators { + display: flex; + flex-flow: row wrap; + position: absolute; + z-index: -2; + width: 16rem; +} + +.opindicator { + width: 4rem; + height: 4rem; + background: #555; +} + +.opdropzones { + position: absolute; + display: flex; + flex-flow: row wrap; + width: 16rem; +} + +.opdropzone { + width: 4rem; + height: 4rem; + background: #1119; +} + +.frontdropper { + width: 1rem; + height: 4rem; +} + +.levelSelectCaption { + font-family: iosevka; + color: #9bf; + text-align: left; + margin-bottom: 1rem; +} + +.levelItems { + max-width: 25rem; + width: 100%; + margin: auto; + text-align: center; +} + +.levelItem { + width: 100%; + max-width: 25rem; + height: 96px; + user-select: none; + border: 0.1rem solid #112; + display: flex; + justify-content: center; + text-align: center; + font-family: iosevka; +} + +.levelItems a { + margin-top: 1rem; + display: block; + background: #555; + border-radius: 0.5rem; + color: #3da; + font-family: iosevka; + font-size: 2em; + text-decoration: none; +} + +.levelItems a:hover { + color: #3c0; + background: #363; +} + +.levelItem p { + margin: auto; +} + +.startContainer { + display: flex; + flex-direction: column; + width: 850px; + height: 600px; + margin: auto; + justify-content: flex-start; +} + +.startContainer a { + margin-top: 2rem; +} + +.gameName { + margin-top: 4rem; +} + +.startButton { + display: block; + background: #555; + border-radius: 0.5rem; + color: #3da; + font-family: iosevka; + font-size: 2em; + text-decoration: none; + padding: 0.5rem 1rem; + margin-top: 2rem; + cursor: pointer; +} + +.startButton:hover { + color: #3c0; + background: #363; +} \ No newline at end of file diff --git a/src/store/codeBlocks/actions.ts b/src/store/codeBlocks/actions.ts new file mode 100644 index 0000000..6d72ef1 --- /dev/null +++ b/src/store/codeBlocks/actions.ts @@ -0,0 +1,25 @@ +import { CodeBlocksActionTypes, INIT_CODEBLOCKS, CodeBlock, REMOVE_CODEBLOCK, INSERT_CODEBLOCK } from "./types"; +import { LevelInitializer } from "../../game/levels"; + +export function initCodeBlocks(level: LevelInitializer): CodeBlocksActionTypes { + return { type: INIT_CODEBLOCKS, level: level } +} + +export function removeCodeBlock(idxCodeblocks: number, idxBlocks: number): CodeBlocksActionTypes { + return { + type: REMOVE_CODEBLOCK, + containerIdx: idxCodeblocks, + blocksIdx: idxBlocks + } +} + +export function insertCodeBlock(block: CodeBlock, containerIdx: number, blockIdx: number, overwrite: boolean): CodeBlocksActionTypes { + return { + type: INSERT_CODEBLOCK, + containerIdx: containerIdx, + blocksIdx: blockIdx, + block: block, + overwrite: overwrite + } +} + diff --git a/src/store/codeBlocks/reducers.ts b/src/store/codeBlocks/reducers.ts new file mode 100644 index 0000000..881b0f3 --- /dev/null +++ b/src/store/codeBlocks/reducers.ts @@ -0,0 +1,49 @@ +import { CodeBlockContainer, CodeBlocksActionTypes, INIT_CODEBLOCKS, REMOVE_CODEBLOCK, INSERT_CODEBLOCK, InsertCodeBlockAction, RemoveCodeBlockAction, SetDropZoneZIdxAction, SET_DROPZONE_Z_INDEX } from "./types"; +import { cloneDeep, pullAt } from "lodash" + + +export function codeBlocksReducer(state: Array = [], action: CodeBlocksActionTypes): Array { + switch (action.type) { + case INIT_CODEBLOCKS: + return Object.assign([], state, action.level.codeviews) + case REMOVE_CODEBLOCK: + return reduceRemoveBlock(state, action) + case INSERT_CODEBLOCK: + return reduceInsertBlock(state, action) + default: + return state + } +} + +const reduceRemoveBlock = (state: Array, action: RemoveCodeBlockAction) => { + let newState = cloneDeep(state) + pullAt(newState[action.containerIdx].blocks, action.blocksIdx) + return newState +} + +const reduceInsertBlock = (state: Array, action: InsertCodeBlockAction) => { + if (state[action.containerIdx].blocks.length > state[action.containerIdx].nMaxBlocks) + return state + if (state[action.containerIdx].blocks.length == state[action.containerIdx].nMaxBlocks + && !action.overwrite) + return state + let newState = cloneDeep(state) + if (action.overwrite) { + let bIdx = action.blocksIdx >= state[action.containerIdx].blocks.length ? state[action.containerIdx].blocks.length : action.blocksIdx; + newState[action.containerIdx].blocks[bIdx] = action.block; + } + else { + newState[action.containerIdx].blocks.splice(action.blocksIdx, 0, action.block) + } + return newState +} + +export const opDropZoneZIdxReducer = (state: number = -1, action: SetDropZoneZIdxAction) => { + switch (action.type) { + case SET_DROPZONE_Z_INDEX: + return action.zIdx + default: + return state + } + +} diff --git a/src/store/codeBlocks/types.ts b/src/store/codeBlocks/types.ts new file mode 100644 index 0000000..a1d8b61 --- /dev/null +++ b/src/store/codeBlocks/types.ts @@ -0,0 +1,48 @@ +import { LevelInitializer } from "../../game/levels"; + +export const INIT_CODEBLOCKS = "INIT_CODEBLOCKS" +export const REMOVE_CODEBLOCK = "REMOVE_CODEBLOCK" +export const INSERT_CODEBLOCK = "INSERT_CODEBLOCK" +export const SET_DROPZONE_Z_INDEX = "SET_DROPZONE_Z_INDEX" + +export interface CodeBlock { + name: string, + containerIndex?: number, + // parent: CodeBlockContainer +} + +export interface CodeBlockContainer { + name: string, + nMaxBlocks: number, + blocks: Array +} + +export interface InitCodeBlocksAction { + type: typeof INIT_CODEBLOCKS, + level: LevelInitializer +} + +export interface RemoveCodeBlockAction { + type: typeof REMOVE_CODEBLOCK, + containerIdx: number, + blocksIdx: number, +} + +export interface InsertCodeBlockAction { + type: typeof INSERT_CODEBLOCK, + containerIdx: number, + blocksIdx: number + block: CodeBlock, + overwrite: boolean +} + +export interface SetDropZoneZIdxAction { + type: typeof SET_DROPZONE_Z_INDEX, + zIdx: number +} + +export type CodeBlocksActionTypes = + InitCodeBlocksAction + | RemoveCodeBlockAction + | InsertCodeBlockAction + | SetDropZoneZIdxAction diff --git a/src/store/executionState/actions.ts b/src/store/executionState/actions.ts new file mode 100644 index 0000000..db4780d --- /dev/null +++ b/src/store/executionState/actions.ts @@ -0,0 +1,5 @@ +import { WON_LEVEL, wonLevelAction } from "./types"; + +export function wonLevel(): wonLevelAction { + return { type: WON_LEVEL } +} diff --git a/src/store/executionState/reducers.ts b/src/store/executionState/reducers.ts new file mode 100644 index 0000000..3681ef8 --- /dev/null +++ b/src/store/executionState/reducers.ts @@ -0,0 +1,119 @@ +import { ExecutionState, ExecutionStateActionTypes, START_EXECUTING, PAUSE_EXECUTION, STEP_EXECUTION, startExecutionAction, TOGGLE_SPEED, TOGGLE_AUTOSTEP, RESET_EXECUTION, resetExecutionAction, WON_LEVEL } from "./types"; +import { cloneDeep, pullAt } from "lodash" + +const INIT_STATE: ExecutionState = { + running: false, + autostep: false, + won: false, + instructionPtr: { fn: "main", fnIdx: 0 }, + callStack: [], + fast: false, + finished: false, + playerPos: { voxelIdx: 0, direction: "west" }, + code: {} +} + +export function executionStateReducer(state: ExecutionState = INIT_STATE, action: ExecutionStateActionTypes) { + switch (action.type) { + case START_EXECUTING: + return reduceStart(state, action) + case PAUSE_EXECUTION: + return reducePause(state) + case STEP_EXECUTION: + return reduceStep(state) + case TOGGLE_SPEED: + return reduceToggleSpeed(state) + case TOGGLE_AUTOSTEP: + return reduceToggleAutoStep(state) + case RESET_EXECUTION: + return reduceReset(state) + case WON_LEVEL: + return reduceWonLevel(state) + default: + return state + } +} + +const reduceReset = (state: ExecutionState) => { + return { + ...state, + won: false, + running: false, + finished: false, + instructionPtr: { fn: "main", fnIdx: 0 }, + callStack: [] + } +} + +const reduceStart = (state: ExecutionState, action: startExecutionAction) => { + let code = {} + for (let i = 0; i < action.level.codeviews.length; i++) { + code[action.level.codeviews[i].name] = action.code[i] + } + return { + ...INIT_STATE, + won: false, + running: true, + playerPos: action.playerPos, + code: code, + // level: cloneDeep(action.level) + } +} + +const reducePause = (state: ExecutionState) => { + return { ...state, running: !state.running } +} + +const reduceToggleAutoStep = (state: ExecutionState) => { + return { ...state, autostep: true } +} + +const reduceStep = (state: ExecutionState) => { + // here the machine makes one single instructoin. + // it reads the instruction from the code variable at the + // instruction pointer indices, executes the instruction + // and changes the instructoin pointers. + let newState = cloneDeep(state) + while (newState.instructionPtr.fnIdx >= newState.code[newState.instructionPtr.fn]['blocks'].length) { + let newPtr = newState.callStack.pop() + if (!newPtr) { + newState.running = false + newState.finished = true + return newState + } + newState.instructionPtr = newPtr + } + + let instruction = newState.code[newState.instructionPtr.fn]['blocks'][newState.instructionPtr.fnIdx].name + + while (instruction in newState.code) { // set instruction pointer to fn and put returnaddr on stack + let returnAddr = { fn: newState.instructionPtr.fn, fnIdx: newState.instructionPtr.fnIdx + 1 } + newState.instructionPtr.fn = instruction + newState.instructionPtr.fnIdx = 0 + newState.callStack.push(returnAddr) + instruction = newState.code[newState.instructionPtr.fn]['blocks'][newState.instructionPtr.fnIdx].name + } + + // now check if the istruction is a valid command + newState.instruction = undefined + if (instruction in instructions) + newState.instruction = instruction + newState.instructionPtr.fnIdx++ + return newState +} + +const reduceToggleSpeed = (state: ExecutionState) => { + return { ...state, fast: !state.fast } +} + +const reduceWonLevel = (state: ExecutionState) => { + return { ...state, won: true } +} + +const instructions = { + "forward": (state: ExecutionState) => { }, + "turn_right": (state: ExecutionState) => { }, + "turn_left": (state: ExecutionState) => { }, + "action": (state: ExecutionState) => { }, + "jump": (state: ExecutionState) => { } +} diff --git a/src/store/executionState/types.ts b/src/store/executionState/types.ts new file mode 100644 index 0000000..fe6b83c --- /dev/null +++ b/src/store/executionState/types.ts @@ -0,0 +1,67 @@ +import { IPlayerData, LevelInitializer } from "../../game/levels"; + +export const START_EXECUTING = "START_EXECUTING" +export const PAUSE_EXECUTION = "PAUSE_EXECUTION" +export const STEP_EXECUTION = "STEP_EXECUTION" +export const TOGGLE_SPEED = "TOGGLE_SPEED" +export const TOGGLE_AUTOSTEP = "TOGGLE_AUTOSTEP" +export const RESET_EXECUTION = "RESET_EXECUTION" +export const WON_LEVEL = "WON_LEVEL" + + +export interface ip { fn: string, fnIdx: number } + +export interface ExecutionState { + running: boolean, + autostep: boolean, + instructionPtr: ip, + callStack: Array, + instruction?: string, + playerPos: IPlayerData, + fast: boolean, + finished: boolean, + won: boolean, + code: { [key: string]: Array }, + level?: LevelInitializer + +} + +export interface startExecutionAction { + type: typeof START_EXECUTING, + playerPos: IPlayerData, + code: Array>, + level: LevelInitializer +} + +export interface pauseExecutionAction { + type: typeof PAUSE_EXECUTION +} + +export interface stepExecutionAction { + type: typeof STEP_EXECUTION +} + +export interface toggleSpeedAction { + type: typeof TOGGLE_SPEED +} + +export interface toggleAutoStepAction { + type: typeof TOGGLE_AUTOSTEP +} + +export interface resetExecutionAction { + type: typeof RESET_EXECUTION +} + +export interface wonLevelAction { + type: typeof WON_LEVEL +} + +export type ExecutionStateActionTypes = + startExecutionAction + | pauseExecutionAction + | stepExecutionAction + | toggleSpeedAction + | toggleAutoStepAction + | resetExecutionAction + | wonLevelAction diff --git a/src/store/gameScreenState/actions.ts b/src/store/gameScreenState/actions.ts new file mode 100644 index 0000000..e69de29 diff --git a/src/store/gameScreenState/slice.ts b/src/store/gameScreenState/slice.ts new file mode 100644 index 0000000..4ccb0ff --- /dev/null +++ b/src/store/gameScreenState/slice.ts @@ -0,0 +1,25 @@ +import { createSlice } from '@reduxjs/toolkit'; + +interface GameScreenState { + modalOpen: boolean; +} + +const initialState: GameScreenState = { + modalOpen: true, +}; + +const gameScreenSlice = createSlice({ + name: 'gameScreen', + initialState, + reducers: { + openModal: (state) => { + state.modalOpen = true; + }, + closeModal: (state) => { + state.modalOpen = false; + }, + }, +}); + +export const { openModal, closeModal } = gameScreenSlice.actions; +export const GameScreenReducer = gameScreenSlice.reducer; \ No newline at end of file diff --git a/src/store/index.ts b/src/store/index.ts new file mode 100644 index 0000000..74c4ea8 --- /dev/null +++ b/src/store/index.ts @@ -0,0 +1,19 @@ +import { combineReducers } from 'redux'; +import { codeBlocksReducer, opDropZoneZIdxReducer } from './codeBlocks/reducers'; +import { executionStateReducer } from './executionState/reducers'; +import levelReducer from './level/slice'; +import { saveStateReducer } from './saveState/reducers'; +import { GameScreenReducer } from './gameScreenState/slice'; + + +export const rootReducer = combineReducers({ + codeBlocks: codeBlocksReducer, + opDropZoneZIdx: opDropZoneZIdxReducer, + executionState: executionStateReducer, + level: levelReducer, + saveState: saveStateReducer, + gameScreenState: GameScreenReducer +}) + +export type RootState = ReturnType +export type AppState = ReturnType diff --git a/src/store/level/slice.ts b/src/store/level/slice.ts new file mode 100644 index 0000000..0cb421d --- /dev/null +++ b/src/store/level/slice.ts @@ -0,0 +1,37 @@ +import { createSlice, PayloadAction } from '@reduxjs/toolkit'; +import { LevelInitializer, levels } from "../../game/levels"; + +interface LevelState { + idx: number; + name: string; + voxels: Array; + playerPos: any; + codeviews: Array; + allowedCodeBlocks: Array; + activeCodeview: string; + introMessages: Array | null; +} + +const initialState: LevelState = { + ...levels[0], + idx: 0, +}; + +const levelSlice = createSlice({ + name: 'level', + initialState, + reducers: { + setLevel: (state, action: PayloadAction<{ level: LevelInitializer; idx: number }>) => { + const { level, idx } = action.payload; + return { ...level, idx }; + }, + nextLevel: (state) => { + if (levels.length <= state.idx + 1) return state; + const nextLevel = levels[state.idx + 1]; + return { ...nextLevel, idx: state.idx + 1 }; + }, + }, +}); + +export const { setLevel, nextLevel } = levelSlice.actions; +export default levelSlice.reducer; \ No newline at end of file diff --git a/src/store/saveState/actions.ts b/src/store/saveState/actions.ts new file mode 100644 index 0000000..adf13ca --- /dev/null +++ b/src/store/saveState/actions.ts @@ -0,0 +1,21 @@ +import { setLevelDoneAction, SET_LEVEL_DONE, TOGGLE_SHOW_TIPS, toggleShowTipsAction, toggleSoundsAction, TOGGLE_SOUNDS, TOGGLE_MUSIC, toggleMusicAction, muteAllAction, MUTE_ALL } from "./types"; + +export function toggleSounds(): toggleMusicAction { + return { type: TOGGLE_MUSIC } +} + +export function toggleMusic(): toggleSoundsAction { + return { type: TOGGLE_SOUNDS } +} + +export function toggleShowTips(): toggleShowTipsAction { + return { type: TOGGLE_SHOW_TIPS } +} + +export function levelDone(idx: number, stars: number): setLevelDoneAction { + return { type: SET_LEVEL_DONE, levelIdx: idx, stars: stars } +} + +export function muteAll(): muteAllAction { + return { type: MUTE_ALL } +} diff --git a/src/store/saveState/reducers.ts b/src/store/saveState/reducers.ts new file mode 100644 index 0000000..dadb85f --- /dev/null +++ b/src/store/saveState/reducers.ts @@ -0,0 +1,60 @@ +import { SaveState, SaveStateActions, LevelSaveState, MUTE_ALL, TOGGLE_MUSIC, TOGGLE_SOUNDS, SET_LEVEL_DONE, TOGGLE_SHOW_TIPS, setLevelDoneAction, SAVESTATE } from "./types"; +import { levels } from "../../game/levels"; +import { cloneDeep } from "lodash" + + +const getInitState = () => { + let storedState = localStorage.getItem[SAVESTATE] + if (storedState) { + return JSON.parse(atob(storedState)) + } + let levelStates = new Array() + for (let i = 0; i < levels.length; i++) { + levelStates.push({ stars: 0, done: false }) + } + return { + levels: levelStates, + playSounds: false, + playMusic: false, + showTips: true + } +} + +export const saveStateReducer = (state: SaveState = getInitState(), action: SaveStateActions) => { + switch (action.type) { + case MUTE_ALL: + return reduceMuteAll(state); + case TOGGLE_MUSIC: + return reduceToggleMusic(state); + case TOGGLE_SOUNDS: + return reduceToggleSounds(state); + case SET_LEVEL_DONE: + return reduceSetLevelDone(state, action); + case TOGGLE_SHOW_TIPS: + return reduceToggleShowTips(state); + default: + return state; + } +} + +const reduceToggleMusic = (state: SaveState) => { + return { ...state, playMusic: !state.playMusic } +} + +const reduceToggleSounds = (state: SaveState) => { + return { ...state, playSounds: !state.playSounds } +} + +const reduceToggleShowTips = (state: SaveState) => { + return { ...state, showTips: !state.showTips } +} + +const reduceMuteAll = (state: SaveState) => { + return { ...state, playSounds: false, playMusic: false } +} + +const reduceSetLevelDone = (state: SaveState, action: setLevelDoneAction) => { + let newLevelState = cloneDeep(state.levels) + newLevelState[action.levelIdx] = { stars: action.stars, done: true } + return { ...state, levels: newLevelState } +} diff --git a/src/store/saveState/types.ts b/src/store/saveState/types.ts new file mode 100644 index 0000000..ca55def --- /dev/null +++ b/src/store/saveState/types.ts @@ -0,0 +1,50 @@ +// this savestate holds everything, a user can set and expects to get stored +// it will be saved in local storage and when present, loaded + +export const MUTE_ALL = "MUTE_ALL"; +export const TOGGLE_MUSIC = "TOGGLE_MUSIC"; +export const TOGGLE_SOUNDS = "TOGGLE_SOUNDS"; +export const TOGGLE_SHOW_TIPS = "TOGGLE_SHOW_TIPS"; +export const SET_LEVEL_DONE = "SET_LEVEL_DONE"; +export const SAVESTATE = "SaveState"; + +export interface SaveState { + levels: Array, + playSounds: boolean, + playMusic: boolean, + showTips: boolean +} + +export interface LevelSaveState { + stars: number, + done: boolean +} + +export interface muteAllAction { + type: typeof MUTE_ALL +} + +export interface toggleSoundsAction { + type: typeof TOGGLE_SOUNDS +} + +export interface toggleMusicAction { + type: typeof TOGGLE_MUSIC +} + +export interface toggleShowTipsAction { + type: typeof TOGGLE_SHOW_TIPS +} + +export interface setLevelDoneAction { + type: typeof SET_LEVEL_DONE, + levelIdx: number, + stars: number +} + +export type SaveStateActions = + muteAllAction + | toggleMusicAction + | toggleSoundsAction + | setLevelDoneAction + | toggleShowTipsAction diff --git a/src/store/store.ts b/src/store/store.ts new file mode 100644 index 0000000..63071db --- /dev/null +++ b/src/store/store.ts @@ -0,0 +1,19 @@ +import { configureStore } from '@reduxjs/toolkit'; +import { rootReducer } from "." + +// create store using Redux Toolkit +export const store = configureStore({ + reducer: rootReducer, + middleware: (getDefaultMiddleware) => + getDefaultMiddleware({ + serializableCheck: { + ignoredActions: ['persist/PERSIST'], + }, + }), +}); + +export type RootState = ReturnType; +export type AppDispatch = typeof store.dispatch; + +// export store singleton instance +export default store; diff --git a/tsconfig.app.json b/tsconfig.app.json new file mode 100644 index 0000000..0cbd7f9 --- /dev/null +++ b/tsconfig.app.json @@ -0,0 +1,28 @@ +{ + "compilerOptions": { + "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo", + "target": "ES2022", + "useDefineForClassFields": true, + "lib": ["ES2022", "DOM", "DOM.Iterable"], + "module": "ESNext", + "types": ["vite/client"], + "skipLibCheck": true, + + /* Bundler mode */ + "moduleResolution": "bundler", + "allowImportingTsExtensions": true, + "verbatimModuleSyntax": false, + "moduleDetection": "force", + "noEmit": true, + "jsx": "react-jsx", + + /* Linting */ + "strict": false, + "noUnusedLocals": false, + "noUnusedParameters": false, + "erasableSyntaxOnly": true, + "noFallthroughCasesInSwitch": true, + "noUncheckedSideEffectImports": true + }, + "include": ["src"] +} diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..1ffef60 --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,7 @@ +{ + "files": [], + "references": [ + { "path": "./tsconfig.app.json" }, + { "path": "./tsconfig.node.json" } + ] +} diff --git a/tsconfig.node.json b/tsconfig.node.json new file mode 100644 index 0000000..8a67f62 --- /dev/null +++ b/tsconfig.node.json @@ -0,0 +1,26 @@ +{ + "compilerOptions": { + "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo", + "target": "ES2023", + "lib": ["ES2023"], + "module": "ESNext", + "types": ["node"], + "skipLibCheck": true, + + /* Bundler mode */ + "moduleResolution": "bundler", + "allowImportingTsExtensions": true, + "verbatimModuleSyntax": true, + "moduleDetection": "force", + "noEmit": true, + + /* Linting */ + "strict": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "erasableSyntaxOnly": true, + "noFallthroughCasesInSwitch": true, + "noUncheckedSideEffectImports": true + }, + "include": ["vite.config.ts"] +} diff --git a/vite.config.ts b/vite.config.ts new file mode 100644 index 0000000..01f03bf --- /dev/null +++ b/vite.config.ts @@ -0,0 +1,21 @@ +import { defineConfig } from 'vite' +import react from '@vitejs/plugin-react' +import { resolve } from 'path' + +// https://vite.dev/config/ +export default defineConfig({ + plugins: [react()], + resolve: { + alias: { + '@': resolve(__dirname, 'src'), + }, + }, + server: { + port: 3000, + }, + build: { + outDir: 'dist', + sourcemap: true, + }, + assetsInclude: ['**/*.glb', '**/*.gltf', '**/*.fbx', '**/*.png', '**/*.jpg', '**/*.jpeg'], +})