commit 0ecacb9a214b5a1d664163520aeb9cf8d8cce4fb Author: yin <3313488199@qq.com> Date: Mon Mar 16 14:21:04 2026 +0800 初始化项目文件 diff --git a/.env.development b/.env.development new file mode 100644 index 00000000..737e1dd9 --- /dev/null +++ b/.env.development @@ -0,0 +1,8 @@ +# just a flag +VITE_USER_NODE_ENV = development + +# base api +VITE_APP_BASE_API = 'http://192.168.11.56:6060/' + +VITE_APP_IM_WS_URL=wss://your-im-server.com/ws +VITE_APP_IM_API_URL=https://your-im-server.com/api diff --git a/.env.production b/.env.production new file mode 100644 index 00000000..0192426f --- /dev/null +++ b/.env.production @@ -0,0 +1,8 @@ +# just a flag +VITE_USER_NODE_ENV = production + +# base api +VITE_APP_BASE_API = 'http://qimen.wms.gztbyc.com/' + +VITE_APP_IM_WS_URL=wss://your-im-server.com/ws +VITE_APP_IM_API_URL=https://your-im-server.com/api diff --git a/.env.staging b/.env.staging new file mode 100644 index 00000000..c1fc1cac --- /dev/null +++ b/.env.staging @@ -0,0 +1,5 @@ +# just a flag +VITE_USER_NODE_ENV = production + +# base api +VITE_APP_BASE_API = '/stage-api' diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..cd68f140 --- /dev/null +++ b/.gitignore @@ -0,0 +1,39 @@ +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* +lerna-debug.log* + +node_modules +.DS_Store +dist +dist-ssr +coverage +*.local + +# Editor directories and files +.vscode/* +!.vscode/extensions.json +.idea +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? + +*.tsbuildinfo + +.eslintcache + +# Cypress +/cypress/videos/ +/cypress/screenshots/ + +# Vitest +__screenshots__/ + +# Vite +*.timestamp-*-*.mjs diff --git a/.vite/deps/_metadata.json b/.vite/deps/_metadata.json new file mode 100644 index 00000000..c756c7b9 --- /dev/null +++ b/.vite/deps/_metadata.json @@ -0,0 +1,8 @@ +{ + "hash": "9d9ccd0b", + "configHash": "cfc2dbc4", + "lockfileHash": "dd8f2c82", + "browserHash": "1f2545e6", + "optimized": {}, + "chunks": {} +} \ No newline at end of file diff --git a/.vite/deps/package.json b/.vite/deps/package.json new file mode 100644 index 00000000..3dbc1ca5 --- /dev/null +++ b/.vite/deps/package.json @@ -0,0 +1,3 @@ +{ + "type": "module" +} diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 00000000..a7cea0b0 --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,3 @@ +{ + "recommendations": ["Vue.volar"] +} diff --git a/README.md b/README.md new file mode 100644 index 00000000..2676ebcf --- /dev/null +++ b/README.md @@ -0,0 +1,42 @@ +# newproject + +This template should help get you started developing with Vue 3 in Vite. + +## Recommended IDE Setup + +[VS Code](https://code.visualstudio.com/) + [Vue (Official)](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur). + +## Recommended Browser Setup + +- Chromium-based browsers (Chrome, Edge, Brave, etc.): + - [Vue.js devtools](https://chromewebstore.google.com/detail/vuejs-devtools/nhdogjmejiglipccpnnnanhbledajbpd) + - [Turn on Custom Object Formatter in Chrome DevTools](http://bit.ly/object-formatters) +- Firefox: + - [Vue.js devtools](https://addons.mozilla.org/en-US/firefox/addon/vue-js-devtools/) + - [Turn on Custom Object Formatter in Firefox DevTools](https://fxdx.dev/firefox-devtools-custom-object-formatters/) + +## Type Support for `.vue` Imports in TS + +TypeScript cannot handle type information for `.vue` imports by default, so we replace the `tsc` CLI with `vue-tsc` for type checking. In editors, we need [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) to make the TypeScript language service aware of `.vue` types. + +## Customize configuration + +See [Vite Configuration Reference](https://vite.dev/config/). + +## Project Setup + +```sh +npm install +``` + +### Compile and Hot-Reload for Development + +```sh +npm run dev +``` + +### Type-Check, Compile and Minify for Production + +```sh +npm run build +``` diff --git a/env.d.ts b/env.d.ts new file mode 100644 index 00000000..ae5c9124 --- /dev/null +++ b/env.d.ts @@ -0,0 +1,12 @@ +/// +declare module '@/utils/auth' { + export function getToken(): string | undefined + export function setToken(token: string): void + export function removeToken(): void +} +declare module '@/api/user' { + export function login(data: any): Promise + export function getInfo(data: any): Promise + export function changeRole(data: any): Promise + export function logout(data: any): Promise +} diff --git a/index.html b/index.html new file mode 100644 index 00000000..9e5fc8f0 --- /dev/null +++ b/index.html @@ -0,0 +1,13 @@ + + + + + + + Vite App + + +
+ + + diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 00000000..d2dc74b4 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,9602 @@ +{ + "name": "newproject", + "version": "0.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "newproject", + "version": "0.0.0", + "dependencies": { + "@element-plus/icons-vue": "^2.3.2", + "@types/nprogress": "^0.2.3", + "@vueuse/core": "^14.2.1", + "axios": "^1.13.6", + "dayjs": "^1.11.19", + "echarts": "^6.0.0", + "element-plus": "^2.13.3", + "js-cookie": "^3.0.5", + "jsbarcode": "^3.12.3", + "nprogress": "^0.2.0", + "path-browserify": "^1.0.1", + "path-to-regexp": "^8.3.0", + "pinia": "^3.0.4", + "qrcode": "^1.5.4", + "spark-md5": "^3.0.2", + "three": "^0.183.2", + "uuid": "^13.0.0", + "vue": "^3.5.29", + "vue-draggable-plus": "^0.6.1", + "vue-i18n": "^11.2.8", + "vue-router": "^5.0.3" + }, + "devDependencies": { + "@tsconfig/node24": "^24.0.4", + "@types/js-cookie": "^3.0.6", + "@types/node": "^24.11.0", + "@types/path-browserify": "^1.0.3", + "@types/spark-md5": "^3.0.5", + "@vitejs/plugin-vue": "^6.0.4", + "@vue/tsconfig": "^0.8.1", + "eslint-plugin-vue": "^10.8.0", + "fast-glob": "^3.3.3", + "npm-run-all2": "^8.0.4", + "sass": "^1.97.3", + "typescript": "~5.9.3", + "vite": "^7.3.1", + "vite-plugin-svg-icons": "^2.0.1", + "vite-plugin-vue-devtools": "^8.0.6", + "vue-tsc": "^3.2.5" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "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==", + "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-annotate-as-pure": { + "version": "7.27.3", + "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.27.3.tgz", + "integrity": "sha512-fXSwMQqitTGeHLBC08Eq5yXz2m37E4pJX1qAU1+2cNedz/ifv/bVXft90VeSav5nFO61EcNgwr0aJxbyPaWBPg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.27.3" + }, + "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-create-class-features-plugin": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.28.6.tgz", + "integrity": "sha512-dTOdvsjnG3xNT9Y0AUg1wAl38y+4Rl4sf9caSQZOXdNqVn+H+HbbJ4IyyHaIqNR6SW9oJpA/RuRjsjCw2IdIow==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.27.3", + "@babel/helper-member-expression-to-functions": "^7.28.5", + "@babel/helper-optimise-call-expression": "^7.27.1", + "@babel/helper-replace-supers": "^7.28.6", + "@babel/helper-skip-transparent-expression-wrappers": "^7.27.1", + "@babel/traverse": "^7.28.6", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.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-member-expression-to-functions": { + "version": "7.28.5", + "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.28.5.tgz", + "integrity": "sha512-cwM7SBRZcPCLgl8a7cY0soT1SptSzAlMH39vwiRpOQkJlh53r5hdHwLSCZpQdVLT39sZt+CRpNwYG4Y2v77atg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/traverse": "^7.28.5", + "@babel/types": "^7.28.5" + }, + "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-optimise-call-expression": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.27.1.tgz", + "integrity": "sha512-URMGH08NzYFhubNSGJrpUEphGKQwMQYBySzat5cAByY1/YgIRkULnIy3tAMeszlL/so2HbeilYloUmSpd7GdVw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.27.1" + }, + "engines": { + "node": ">=6.9.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-replace-supers": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.28.6.tgz", + "integrity": "sha512-mq8e+laIk94/yFec3DxSjCRD2Z0TAjhVbEJY3UQrlwVo15Lmt7C2wAUbK4bjnTs4APkwsYLTahXRraQXhb1WCg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-member-expression-to-functions": "^7.28.5", + "@babel/helper-optimise-call-expression": "^7.27.1", + "@babel/traverse": "^7.28.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-skip-transparent-expression-wrappers": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.27.1.tgz", + "integrity": "sha512-Tub4ZKEXqbPjXgWLl2+3JpQAYBJ8+ikpQ2Ocj/q/r0LwE3UhENh7EUabyHjz2kCEsrRY83ew2DQdHluuiDQFzg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/traverse": "^7.27.1", + "@babel/types": "^7.27.1" + }, + "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==", + "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==", + "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==", + "license": "MIT", + "dependencies": { + "@babel/types": "^7.29.0" + }, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/plugin-proposal-decorators": { + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-decorators/-/plugin-proposal-decorators-7.29.0.tgz", + "integrity": "sha512-CVBVv3VY/XRMxRYq5dwr2DS7/MvqPm23cOCjbwNnVrfOqcWlnefua1uUs0sjdKOGjvPUG633o07uWzJq4oI6dA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-create-class-features-plugin": "^7.28.6", + "@babel/helper-plugin-utils": "^7.28.6", + "@babel/plugin-syntax-decorators": "^7.28.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-decorators": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-decorators/-/plugin-syntax-decorators-7.28.6.tgz", + "integrity": "sha512-71EYI0ONURHJBL4rSFXnITXqXrrY8q4P0q006DPfN+Rk+ASM+++IBXem/ruokgBZR8YNEWZ8R6B+rCb8VcUTqA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.28.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-import-attributes": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.28.6.tgz", + "integrity": "sha512-jiLC0ma9XkQT3TKJ9uYvlakm66Pamywo+qwL+oL8HJOvc6TWdZXVfhqJr8CCzbSGUAbDOzlGHJC1U+vRfLQDvw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.28.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-import-meta": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz", + "integrity": "sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-jsx": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.28.6.tgz", + "integrity": "sha512-wgEmr06G6sIpqr8YDwA2dSRTE3bJ+V0IfpzfSY3Lfgd7YWOaAdlykvJi13ZKBt8cZHfgH1IXN+CL656W3uUa4w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.28.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-typescript": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.28.6.tgz", + "integrity": "sha512-+nDNmQye7nlnuuHDboPbGm00Vqg3oO8niRRL27/4LYHUsHYh0zJ1xWOz0uRwNFmM1Avzk8wZbc6rdiYhomzv/A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.28.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-typescript": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.28.6.tgz", + "integrity": "sha512-0YWL2RFxOqEm9Efk5PvreamxPME8OyY0wM5wh5lHjF+VtVhdneCWGzZeSqzOfiobVqQaNCd2z0tQvnI9DaPWPw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.27.3", + "@babel/helper-create-class-features-plugin": "^7.28.6", + "@babel/helper-plugin-utils": "^7.28.6", + "@babel/helper-skip-transparent-expression-wrappers": "^7.27.1", + "@babel/plugin-syntax-typescript": "^7.28.6" + }, + "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==", + "license": "MIT", + "dependencies": { + "@babel/helper-string-parser": "^7.27.1", + "@babel/helper-validator-identifier": "^7.28.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@ctrl/tinycolor": { + "version": "3.6.1", + "resolved": "https://registry.npmjs.org/@ctrl/tinycolor/-/tinycolor-3.6.1.tgz", + "integrity": "sha512-SITSV6aIXsuVNV3f3O0f2n/cgyEDWoSqtZMYiAmcsYHydcKrOz3gUxB/iXd/Qf08+IZX4KpgNbvUdMBmWz+kcA==", + "license": "MIT", + "engines": { + "node": ">=10" + } + }, + "node_modules/@element-plus/icons-vue": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/@element-plus/icons-vue/-/icons-vue-2.3.2.tgz", + "integrity": "sha512-OzIuTaIfC8QXEPmJvB4Y4kw34rSXdCJzxcD1kFStBvr8bK6X1zQAYDo0CNMjojnfTqRQCJ0I7prlErcoRiET2A==", + "license": "MIT", + "peerDependencies": { + "vue": "^3.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.23.3", + "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.23.3.tgz", + "integrity": "sha512-j+eEWmB6YYLwcNOdlwQ6L2OsptI/LO6lNBuLIqe5R7RetD658HLoF+Mn7LzYmAWWNNzdC6cqP+L6r8ujeYXWLw==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@eslint/object-schema": "^3.0.3", + "debug": "^4.3.1", + "minimatch": "^10.2.4" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + } + }, + "node_modules/@eslint/config-helpers": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.5.3.tgz", + "integrity": "sha512-lzGN0onllOZCGroKJmRwY6QcEHxbjBw1gwB8SgRSqK8YbbtEXMvKynsXc3553ckIEBxsbMBU7oOZXKIPGZNeZw==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@eslint/core": "^1.1.1" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + } + }, + "node_modules/@eslint/core": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@eslint/core/-/core-1.1.1.tgz", + "integrity": "sha512-QUPblTtE51/7/Zhfv8BDwO0qkkzQL7P/aWWbqcf4xWLEYn1oKjdO0gglQBB4GAsu7u6wjijbCmzsUTy6mnk6oQ==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@types/json-schema": "^7.0.15" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + } + }, + "node_modules/@eslint/object-schema": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-3.0.3.tgz", + "integrity": "sha512-iM869Pugn9Nsxbh/YHRqYiqd23AmIbxJOcpUMOuWCVNdoQJ5ZtwL6h3t0bcZzJUlC3Dq9jCFCESBZnX0GTv7iQ==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + } + }, + "node_modules/@eslint/plugin-kit": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.6.1.tgz", + "integrity": "sha512-iH1B076HoAshH1mLpHMgwdGeTs0CYwL0SPMkGuSebZrwBp16v415e9NZXg2jtrqPVQjf6IANe2Vtlr5KswtcZQ==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@eslint/core": "^1.1.1", + "levn": "^0.4.1" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + } + }, + "node_modules/@floating-ui/core": { + "version": "1.7.5", + "resolved": "https://registry.npmjs.org/@floating-ui/core/-/core-1.7.5.tgz", + "integrity": "sha512-1Ih4WTWyw0+lKyFMcBHGbb5U5FtuHJuujoyyr5zTaWS5EYMeT6Jb2AuDeftsCsEuchO+mM2ij5+q9crhydzLhQ==", + "license": "MIT", + "dependencies": { + "@floating-ui/utils": "^0.2.11" + } + }, + "node_modules/@floating-ui/dom": { + "version": "1.7.6", + "resolved": "https://registry.npmjs.org/@floating-ui/dom/-/dom-1.7.6.tgz", + "integrity": "sha512-9gZSAI5XM36880PPMm//9dfiEngYoC6Am2izES1FF406YFsjvyBMmeJ2g4SAju3xWwtuynNRFL2s9hgxpLI5SQ==", + "license": "MIT", + "dependencies": { + "@floating-ui/core": "^1.7.5", + "@floating-ui/utils": "^0.2.11" + } + }, + "node_modules/@floating-ui/utils": { + "version": "0.2.11", + "resolved": "https://registry.npmjs.org/@floating-ui/utils/-/utils-0.2.11.tgz", + "integrity": "sha512-RiB/yIh78pcIxl6lLMG0CgBXAZ2Y0eVHqMPYugu+9U0AeT6YBeiJpf7lbdJNIugFP5SIjwNRgo4DhR1Qxi26Gg==", + "license": "MIT" + }, + "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/@intlify/core-base": { + "version": "11.2.8", + "resolved": "https://registry.npmjs.org/@intlify/core-base/-/core-base-11.2.8.tgz", + "integrity": "sha512-nBq6Y1tVkjIUsLsdOjDSJj4AsjvD0UG3zsg9Fyc+OivwlA/oMHSKooUy9tpKj0HqZ+NWFifweHavdljlBLTwdA==", + "license": "MIT", + "dependencies": { + "@intlify/message-compiler": "11.2.8", + "@intlify/shared": "11.2.8" + }, + "engines": { + "node": ">= 16" + }, + "funding": { + "url": "https://github.com/sponsors/kazupon" + } + }, + "node_modules/@intlify/message-compiler": { + "version": "11.2.8", + "resolved": "https://registry.npmjs.org/@intlify/message-compiler/-/message-compiler-11.2.8.tgz", + "integrity": "sha512-A5n33doOjmHsBtCN421386cG1tWp5rpOjOYPNsnpjIJbQ4POF0QY2ezhZR9kr0boKwaHjbOifvyQvHj2UTrDFQ==", + "license": "MIT", + "dependencies": { + "@intlify/shared": "11.2.8", + "source-map-js": "^1.0.2" + }, + "engines": { + "node": ">= 16" + }, + "funding": { + "url": "https://github.com/sponsors/kazupon" + } + }, + "node_modules/@intlify/shared": { + "version": "11.2.8", + "resolved": "https://registry.npmjs.org/@intlify/shared/-/shared-11.2.8.tgz", + "integrity": "sha512-l6e4NZyUgv8VyXXH4DbuucFOBmxLF56C/mqh2tvApbzl2Hrhi1aTDcuv5TKdxzfHYmpO3UB0Cz04fgDT9vszfw==", + "license": "MIT", + "engines": { + "node": ">= 16" + }, + "funding": { + "url": "https://github.com/sponsors/kazupon" + } + }, + "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==", + "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==", + "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==", + "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==", + "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==", + "license": "MIT", + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "node_modules/@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@parcel/watcher": { + "version": "2.5.6", + "resolved": "https://registry.npmjs.org/@parcel/watcher/-/watcher-2.5.6.tgz", + "integrity": "sha512-tmmZ3lQxAe/k/+rNnXQRawJ4NjxO2hqiOLTHvWchtGZULp4RyFeh6aU4XdOYBFe2KE1oShQTv4AblOs2iOrNnQ==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "dependencies": { + "detect-libc": "^2.0.3", + "is-glob": "^4.0.3", + "node-addon-api": "^7.0.0", + "picomatch": "^4.0.3" + }, + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + }, + "optionalDependencies": { + "@parcel/watcher-android-arm64": "2.5.6", + "@parcel/watcher-darwin-arm64": "2.5.6", + "@parcel/watcher-darwin-x64": "2.5.6", + "@parcel/watcher-freebsd-x64": "2.5.6", + "@parcel/watcher-linux-arm-glibc": "2.5.6", + "@parcel/watcher-linux-arm-musl": "2.5.6", + "@parcel/watcher-linux-arm64-glibc": "2.5.6", + "@parcel/watcher-linux-arm64-musl": "2.5.6", + "@parcel/watcher-linux-x64-glibc": "2.5.6", + "@parcel/watcher-linux-x64-musl": "2.5.6", + "@parcel/watcher-win32-arm64": "2.5.6", + "@parcel/watcher-win32-ia32": "2.5.6", + "@parcel/watcher-win32-x64": "2.5.6" + } + }, + "node_modules/@parcel/watcher-android-arm64": { + "version": "2.5.6", + "resolved": "https://registry.npmjs.org/@parcel/watcher-android-arm64/-/watcher-android-arm64-2.5.6.tgz", + "integrity": "sha512-YQxSS34tPF/6ZG7r/Ih9xy+kP/WwediEUsqmtf0cuCV5TPPKw/PQHRhueUo6JdeFJaqV3pyjm0GdYjZotbRt/A==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-darwin-arm64": { + "version": "2.5.6", + "resolved": "https://registry.npmjs.org/@parcel/watcher-darwin-arm64/-/watcher-darwin-arm64-2.5.6.tgz", + "integrity": "sha512-Z2ZdrnwyXvvvdtRHLmM4knydIdU9adO3D4n/0cVipF3rRiwP+3/sfzpAwA/qKFL6i1ModaabkU7IbpeMBgiVEA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-darwin-x64": { + "version": "2.5.6", + "resolved": "https://registry.npmjs.org/@parcel/watcher-darwin-x64/-/watcher-darwin-x64-2.5.6.tgz", + "integrity": "sha512-HgvOf3W9dhithcwOWX9uDZyn1lW9R+7tPZ4sug+NGrGIo4Rk1hAXLEbcH1TQSqxts0NYXXlOWqVpvS1SFS4fRg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-freebsd-x64": { + "version": "2.5.6", + "resolved": "https://registry.npmjs.org/@parcel/watcher-freebsd-x64/-/watcher-freebsd-x64-2.5.6.tgz", + "integrity": "sha512-vJVi8yd/qzJxEKHkeemh7w3YAn6RJCtYlE4HPMoVnCpIXEzSrxErBW5SJBgKLbXU3WdIpkjBTeUNtyBVn8TRng==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-linux-arm-glibc": { + "version": "2.5.6", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm-glibc/-/watcher-linux-arm-glibc-2.5.6.tgz", + "integrity": "sha512-9JiYfB6h6BgV50CCfasfLf/uvOcJskMSwcdH1PHH9rvS1IrNy8zad6IUVPVUfmXr+u+Km9IxcfMLzgdOudz9EQ==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-linux-arm-musl": { + "version": "2.5.6", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm-musl/-/watcher-linux-arm-musl-2.5.6.tgz", + "integrity": "sha512-Ve3gUCG57nuUUSyjBq/MAM0CzArtuIOxsBdQ+ftz6ho8n7s1i9E1Nmk/xmP323r2YL0SONs1EuwqBp2u1k5fxg==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-linux-arm64-glibc": { + "version": "2.5.6", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm64-glibc/-/watcher-linux-arm64-glibc-2.5.6.tgz", + "integrity": "sha512-f2g/DT3NhGPdBmMWYoxixqYr3v/UXcmLOYy16Bx0TM20Tchduwr4EaCbmxh1321TABqPGDpS8D/ggOTaljijOA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-linux-arm64-musl": { + "version": "2.5.6", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm64-musl/-/watcher-linux-arm64-musl-2.5.6.tgz", + "integrity": "sha512-qb6naMDGlbCwdhLj6hgoVKJl2odL34z2sqkC7Z6kzir8b5W65WYDpLB6R06KabvZdgoHI/zxke4b3zR0wAbDTA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-linux-x64-glibc": { + "version": "2.5.6", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-x64-glibc/-/watcher-linux-x64-glibc-2.5.6.tgz", + "integrity": "sha512-kbT5wvNQlx7NaGjzPFu8nVIW1rWqV780O7ZtkjuWaPUgpv2NMFpjYERVi0UYj1msZNyCzGlaCWEtzc+exjMGbQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-linux-x64-musl": { + "version": "2.5.6", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-x64-musl/-/watcher-linux-x64-musl-2.5.6.tgz", + "integrity": "sha512-1JRFeC+h7RdXwldHzTsmdtYR/Ku8SylLgTU/reMuqdVD7CtLwf0VR1FqeprZ0eHQkO0vqsbvFLXUmYm/uNKJBg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-win32-arm64": { + "version": "2.5.6", + "resolved": "https://registry.npmjs.org/@parcel/watcher-win32-arm64/-/watcher-win32-arm64-2.5.6.tgz", + "integrity": "sha512-3ukyebjc6eGlw9yRt678DxVF7rjXatWiHvTXqphZLvo7aC5NdEgFufVwjFfY51ijYEWpXbqF5jtrK275z52D4Q==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-win32-ia32": { + "version": "2.5.6", + "resolved": "https://registry.npmjs.org/@parcel/watcher-win32-ia32/-/watcher-win32-ia32-2.5.6.tgz", + "integrity": "sha512-k35yLp1ZMwwee3Ez/pxBi5cf4AoBKYXj00CZ80jUz5h8prpiaQsiRPKQMxoLstNuqe2vR4RNPEAEcjEFzhEz/g==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-win32-x64": { + "version": "2.5.6", + "resolved": "https://registry.npmjs.org/@parcel/watcher-win32-x64/-/watcher-win32-x64-2.5.6.tgz", + "integrity": "sha512-hbQlYcCq5dlAX9Qx+kFb0FHue6vbjlf0FrNzSKdYK2APUf7tGfGxQCk2ihEREmbR6ZMc0MVAD5RIX/41gpUzTw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@polka/url": { + "version": "1.0.0-next.29", + "resolved": "https://registry.npmjs.org/@polka/url/-/url-1.0.0-next.29.tgz", + "integrity": "sha512-wwQAWhWSuHaag8c4q/KN/vCoeOJYshAIvMQwD4GpSb3OiZklFfvAgmj0VCBBImRpuF/aFgIRzllXlVX93Jevww==", + "dev": true, + "license": "MIT" + }, + "node_modules/@popperjs/core": { + "name": "@sxzz/popperjs-es", + "version": "2.11.8", + "resolved": "https://registry.npmjs.org/@sxzz/popperjs-es/-/popperjs-es-2.11.8.tgz", + "integrity": "sha512-wOwESXvvED3S8xBmcPWHs2dUuzrE4XiZeFu7e1hROIJkm02a49N120pmOXxY33sBb6hArItm5W5tcg1cBtV+HQ==", + "license": "MIT", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/popperjs" + } + }, + "node_modules/@rolldown/pluginutils": { + "version": "1.0.0-rc.2", + "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.0-rc.2.tgz", + "integrity": "sha512-izyXV/v+cHiRfozX62W9htOAvwMo4/bXKDrQ+vom1L1qRuexPock/7VZDAhnpHCLNejd3NJ6hiab+tO0D44Rgw==", + "dev": true, + "license": "MIT" + }, + "node_modules/@rollup/rollup-android-arm-eabi": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.59.0.tgz", + "integrity": "sha512-upnNBkA6ZH2VKGcBj9Fyl9IGNPULcjXRlg0LLeaioQWueH30p6IXtJEbKAgvyv+mJaMxSm1l6xwDXYjpEMiLMg==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-android-arm64": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.59.0.tgz", + "integrity": "sha512-hZ+Zxj3SySm4A/DylsDKZAeVg0mvi++0PYVceVyX7hemkw7OreKdCvW2oQ3T1FMZvCaQXqOTHb8qmBShoqk69Q==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-darwin-arm64": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.59.0.tgz", + "integrity": "sha512-W2Psnbh1J8ZJw0xKAd8zdNgF9HRLkdWwwdWqubSVk0pUuQkoHnv7rx4GiF9rT4t5DIZGAsConRE3AxCdJ4m8rg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-darwin-x64": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.59.0.tgz", + "integrity": "sha512-ZW2KkwlS4lwTv7ZVsYDiARfFCnSGhzYPdiOU4IM2fDbL+QGlyAbjgSFuqNRbSthybLbIJ915UtZBtmuLrQAT/w==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-freebsd-arm64": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.59.0.tgz", + "integrity": "sha512-EsKaJ5ytAu9jI3lonzn3BgG8iRBjV4LxZexygcQbpiU0wU0ATxhNVEpXKfUa0pS05gTcSDMKpn3Sx+QB9RlTTA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ] + }, + "node_modules/@rollup/rollup-freebsd-x64": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.59.0.tgz", + "integrity": "sha512-d3DuZi2KzTMjImrxoHIAODUZYoUUMsuUiY4SRRcJy6NJoZ6iIqWnJu9IScV9jXysyGMVuW+KNzZvBLOcpdl3Vg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ] + }, + "node_modules/@rollup/rollup-linux-arm-gnueabihf": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.59.0.tgz", + "integrity": "sha512-t4ONHboXi/3E0rT6OZl1pKbl2Vgxf9vJfWgmUoCEVQVxhW6Cw/c8I6hbbu7DAvgp82RKiH7TpLwxnJeKv2pbsw==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm-musleabihf": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.59.0.tgz", + "integrity": "sha512-CikFT7aYPA2ufMD086cVORBYGHffBo4K8MQ4uPS/ZnY54GKj36i196u8U+aDVT2LX4eSMbyHtyOh7D7Zvk2VvA==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-gnu": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.59.0.tgz", + "integrity": "sha512-jYgUGk5aLd1nUb1CtQ8E+t5JhLc9x5WdBKew9ZgAXg7DBk0ZHErLHdXM24rfX+bKrFe+Xp5YuJo54I5HFjGDAA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-musl": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.59.0.tgz", + "integrity": "sha512-peZRVEdnFWZ5Bh2KeumKG9ty7aCXzzEsHShOZEFiCQlDEepP1dpUl/SrUNXNg13UmZl+gzVDPsiCwnV1uI0RUA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-loong64-gnu": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.59.0.tgz", + "integrity": "sha512-gbUSW/97f7+r4gHy3Jlup8zDG190AuodsWnNiXErp9mT90iCy9NKKU0Xwx5k8VlRAIV2uU9CsMnEFg/xXaOfXg==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-loong64-musl": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.59.0.tgz", + "integrity": "sha512-yTRONe79E+o0FWFijasoTjtzG9EBedFXJMl888NBEDCDV9I2wGbFFfJQQe63OijbFCUZqxpHz1GzpbtSFikJ4Q==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-ppc64-gnu": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.59.0.tgz", + "integrity": "sha512-sw1o3tfyk12k3OEpRddF68a1unZ5VCN7zoTNtSn2KndUE+ea3m3ROOKRCZxEpmT9nsGnogpFP9x6mnLTCaoLkA==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-ppc64-musl": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.59.0.tgz", + "integrity": "sha512-+2kLtQ4xT3AiIxkzFVFXfsmlZiG5FXYW7ZyIIvGA7Bdeuh9Z0aN4hVyXS/G1E9bTP/vqszNIN/pUKCk/BTHsKA==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-riscv64-gnu": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.59.0.tgz", + "integrity": "sha512-NDYMpsXYJJaj+I7UdwIuHHNxXZ/b/N2hR15NyH3m2qAtb/hHPA4g4SuuvrdxetTdndfj9b1WOmy73kcPRoERUg==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-riscv64-musl": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.59.0.tgz", + "integrity": "sha512-nLckB8WOqHIf1bhymk+oHxvM9D3tyPndZH8i8+35p/1YiVoVswPid2yLzgX7ZJP0KQvnkhM4H6QZ5m0LzbyIAg==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-s390x-gnu": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.59.0.tgz", + "integrity": "sha512-oF87Ie3uAIvORFBpwnCvUzdeYUqi2wY6jRFWJAy1qus/udHFYIkplYRW+wo+GRUP4sKzYdmE1Y3+rY5Gc4ZO+w==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-gnu": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.59.0.tgz", + "integrity": "sha512-3AHmtQq/ppNuUspKAlvA8HtLybkDflkMuLK4DPo77DfthRb71V84/c4MlWJXixZz4uruIH4uaa07IqoAkG64fg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-musl": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.59.0.tgz", + "integrity": "sha512-2UdiwS/9cTAx7qIUZB/fWtToJwvt0Vbo0zmnYt7ED35KPg13Q0ym1g442THLC7VyI6JfYTP4PiSOWyoMdV2/xg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-openbsd-x64": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-openbsd-x64/-/rollup-openbsd-x64-4.59.0.tgz", + "integrity": "sha512-M3bLRAVk6GOwFlPTIxVBSYKUaqfLrn8l0psKinkCFxl4lQvOSz8ZrKDz2gxcBwHFpci0B6rttydI4IpS4IS/jQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ] + }, + "node_modules/@rollup/rollup-openharmony-arm64": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.59.0.tgz", + "integrity": "sha512-tt9KBJqaqp5i5HUZzoafHZX8b5Q2Fe7UjYERADll83O4fGqJ49O1FsL6LpdzVFQcpwvnyd0i+K/VSwu/o/nWlA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ] + }, + "node_modules/@rollup/rollup-win32-arm64-msvc": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.59.0.tgz", + "integrity": "sha512-V5B6mG7OrGTwnxaNUzZTDTjDS7F75PO1ae6MJYdiMu60sq0CqN5CVeVsbhPxalupvTX8gXVSU9gq+Rx1/hvu6A==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-ia32-msvc": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.59.0.tgz", + "integrity": "sha512-UKFMHPuM9R0iBegwzKF4y0C4J9u8C6MEJgFuXTBerMk7EJ92GFVFYBfOZaSGLu6COf7FxpQNqhNS4c4icUPqxA==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-x64-gnu": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.59.0.tgz", + "integrity": "sha512-laBkYlSS1n2L8fSo1thDNGrCTQMmxjYY5G0WFWjFFYZkKPjsMBsgJfGf4TLxXrF6RyhI60L8TMOjBMvXiTcxeA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-x64-msvc": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.59.0.tgz", + "integrity": "sha512-2HRCml6OztYXyJXAvdDXPKcawukWY2GpR5/nxKp4iBgiO3wcoEGkAaqctIbZcNB6KlUQBIqt8VYkNSj2397EfA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@trysound/sax": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/@trysound/sax/-/sax-0.2.0.tgz", + "integrity": "sha512-L7z9BgrNEcYyUYtF+HaEfiS5ebkh9jXqbszz7pC0hRBPaatV0XjSD3+eHrpqFemQfgwiFF0QPIarnIihIDn7OA==", + "dev": true, + "license": "ISC", + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/@tsconfig/node24": { + "version": "24.0.4", + "resolved": "https://registry.npmjs.org/@tsconfig/node24/-/node24-24.0.4.tgz", + "integrity": "sha512-2A933l5P5oCbv6qSxHs7ckKwobs8BDAe9SJ/Xr2Hy+nDlwmLE1GhFh/g/vXGRZWgxBg9nX/5piDtHR9Dkw/XuA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/esrecurse": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/@types/esrecurse/-/esrecurse-4.3.1.tgz", + "integrity": "sha512-xJBAbDifo5hpffDBuHl0Y8ywswbiAp/Wi7Y/GtAgSlZyIABppyurxVueOPE8LUQOxdlgi6Zqce7uoEpqNTeiUw==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/estree": { + "version": "1.0.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/js-cookie": { + "version": "3.0.6", + "resolved": "https://registry.npmjs.org/@types/js-cookie/-/js-cookie-3.0.6.tgz", + "integrity": "sha512-wkw9yd1kEXOPnvEeEV1Go1MmxtBJL0RR79aOTAApecWFVu7w0NNXNqhcWgvw2YgZDYadliXkl14pa3WXw5jlCQ==", + "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.24", + "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.17.24.tgz", + "integrity": "sha512-gIW7lQLZbue7lRSWEFql49QJJWThrTFFeIMJdp3eH4tKoxm1OvEPg02rm4wCCSHS0cL3/Fizimb35b7k8atwsQ==", + "license": "MIT" + }, + "node_modules/@types/lodash-es": { + "version": "4.17.12", + "resolved": "https://registry.npmjs.org/@types/lodash-es/-/lodash-es-4.17.12.tgz", + "integrity": "sha512-0NgftHUcV4v34VhXm8QBSftKVXtbkBG3ViCjs6+eJ5a6y6Mi/jiFGPc1sC7QK+9BFhWrURE3EOggmWaSxL9OzQ==", + "license": "MIT", + "peer": true, + "dependencies": { + "@types/lodash": "*" + } + }, + "node_modules/@types/node": { + "version": "24.11.0", + "resolved": "https://registry.npmjs.org/@types/node/-/node-24.11.0.tgz", + "integrity": "sha512-fPxQqz4VTgPI/IQ+lj9r0h+fDR66bzoeMGHp8ASee+32OSGIkeASsoZuJixsQoVef1QJbeubcPBxKk22QVoWdw==", + "dev": true, + "license": "MIT", + "dependencies": { + "undici-types": "~7.16.0" + } + }, + "node_modules/@types/nprogress": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/@types/nprogress/-/nprogress-0.2.3.tgz", + "integrity": "sha512-k7kRA033QNtC+gLc4VPlfnue58CM1iQLgn1IMAU8VPHGOj7oIHPp9UlhedEnD/Gl8evoCjwkZjlBORtZ3JByUA==", + "license": "MIT" + }, + "node_modules/@types/path-browserify": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@types/path-browserify/-/path-browserify-1.0.3.tgz", + "integrity": "sha512-ZmHivEbNCBtAfcrFeBCiTjdIc2dey0l7oCGNGpSuRTy8jP6UVND7oUowlvDujBy8r2Hoa8bfFUOCiPWfmtkfxw==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/sortablejs": { + "version": "1.15.9", + "resolved": "https://registry.npmjs.org/@types/sortablejs/-/sortablejs-1.15.9.tgz", + "integrity": "sha512-7HP+rZGE2p886PKV9c9OJzLBI6BBJu1O7lJGYnPyG3fS4/duUCcngkNCjsLwIMV+WMqANe3tt4irrXHSIe68OQ==", + "license": "MIT" + }, + "node_modules/@types/spark-md5": { + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/@types/spark-md5/-/spark-md5-3.0.5.tgz", + "integrity": "sha512-lWf05dnD42DLVKQJZrDHtWFidcLrHuip01CtnC2/S6AMhX4t9ZlEUj4iuRlAnts0PQk7KESOqKxeGE/b6sIPGg==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/svgo": { + "version": "2.6.4", + "resolved": "https://registry.npmjs.org/@types/svgo/-/svgo-2.6.4.tgz", + "integrity": "sha512-l4cmyPEckf8moNYHdJ+4wkHvFxjyW6ulm9l4YGaOxeyBWPhBOT0gvni1InpFPdzx1dKf/2s62qGITwxNWnPQng==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/web-bluetooth": { + "version": "0.0.21", + "resolved": "https://registry.npmjs.org/@types/web-bluetooth/-/web-bluetooth-0.0.21.tgz", + "integrity": "sha512-oIQLCGWtcFZy2JW77j9k8nHzAOpqMHLQejDA48XXMWH6tjCQHz5RCFz1bzsmROyL6PUm+LLnUiI4BCn221inxA==", + "license": "MIT" + }, + "node_modules/@vitejs/plugin-vue": { + "version": "6.0.4", + "resolved": "https://registry.npmjs.org/@vitejs/plugin-vue/-/plugin-vue-6.0.4.tgz", + "integrity": "sha512-uM5iXipgYIn13UUQCZNdWkYk+sysBeA97d5mHsAoAt1u/wpN3+zxOmsVJWosuzX+IMGRzeYUNytztrYznboIkQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@rolldown/pluginutils": "1.0.0-rc.2" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "peerDependencies": { + "vite": "^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0", + "vue": "^3.2.25" + } + }, + "node_modules/@volar/language-core": { + "version": "2.4.28", + "resolved": "https://registry.npmjs.org/@volar/language-core/-/language-core-2.4.28.tgz", + "integrity": "sha512-w4qhIJ8ZSitgLAkVay6AbcnC7gP3glYM3fYwKV3srj8m494E3xtrCv6E+bWviiK/8hs6e6t1ij1s2Endql7vzQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@volar/source-map": "2.4.28" + } + }, + "node_modules/@volar/source-map": { + "version": "2.4.28", + "resolved": "https://registry.npmjs.org/@volar/source-map/-/source-map-2.4.28.tgz", + "integrity": "sha512-yX2BDBqJkRXfKw8my8VarTyjv48QwxdJtvRgUpNE5erCsgEUdI2DsLbpa+rOQVAJYshY99szEcRDmyHbF10ggQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/@volar/typescript": { + "version": "2.4.28", + "resolved": "https://registry.npmjs.org/@volar/typescript/-/typescript-2.4.28.tgz", + "integrity": "sha512-Ja6yvWrbis2QtN4ClAKreeUZPVYMARDYZl9LMEv1iQ1QdepB6wn0jTRxA9MftYmYa4DQ4k/DaSZpFPUfxl8giw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@volar/language-core": "2.4.28", + "path-browserify": "^1.0.1", + "vscode-uri": "^3.0.8" + } + }, + "node_modules/@vue-macros/common": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@vue-macros/common/-/common-3.1.2.tgz", + "integrity": "sha512-h9t4ArDdniO9ekYHAD95t9AZcAbb19lEGK+26iAjUODOIJKmObDNBSe4+6ELQAA3vtYiFPPBtHh7+cQCKi3Dng==", + "license": "MIT", + "dependencies": { + "@vue/compiler-sfc": "^3.5.22", + "ast-kit": "^2.1.2", + "local-pkg": "^1.1.2", + "magic-string-ast": "^1.0.2", + "unplugin-utils": "^0.3.0" + }, + "engines": { + "node": ">=20.19.0" + }, + "funding": { + "url": "https://github.com/sponsors/vue-macros" + }, + "peerDependencies": { + "vue": "^2.7.0 || ^3.2.25" + }, + "peerDependenciesMeta": { + "vue": { + "optional": true + } + } + }, + "node_modules/@vue/babel-helper-vue-transform-on": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@vue/babel-helper-vue-transform-on/-/babel-helper-vue-transform-on-1.5.0.tgz", + "integrity": "sha512-0dAYkerNhhHutHZ34JtTl2czVQHUNWv6xEbkdF5W+Yrv5pCWsqjeORdOgbtW2I9gWlt+wBmVn+ttqN9ZxR5tzA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@vue/babel-plugin-jsx": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@vue/babel-plugin-jsx/-/babel-plugin-jsx-1.5.0.tgz", + "integrity": "sha512-mneBhw1oOqCd2247O0Yw/mRwC9jIGACAJUlawkmMBiNmL4dGA2eMzuNZVNqOUfYTa6vqmND4CtOPzmEEEqLKFw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-module-imports": "^7.27.1", + "@babel/helper-plugin-utils": "^7.27.1", + "@babel/plugin-syntax-jsx": "^7.27.1", + "@babel/template": "^7.27.2", + "@babel/traverse": "^7.28.0", + "@babel/types": "^7.28.2", + "@vue/babel-helper-vue-transform-on": "1.5.0", + "@vue/babel-plugin-resolve-type": "1.5.0", + "@vue/shared": "^3.5.18" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + }, + "peerDependenciesMeta": { + "@babel/core": { + "optional": true + } + } + }, + "node_modules/@vue/babel-plugin-resolve-type": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@vue/babel-plugin-resolve-type/-/babel-plugin-resolve-type-1.5.0.tgz", + "integrity": "sha512-Wm/60o+53JwJODm4Knz47dxJnLDJ9FnKnGZJbUUf8nQRAtt6P+undLUAVU3Ha33LxOJe6IPoifRQ6F/0RrU31w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.27.1", + "@babel/helper-module-imports": "^7.27.1", + "@babel/helper-plugin-utils": "^7.27.1", + "@babel/parser": "^7.28.0", + "@vue/compiler-sfc": "^3.5.18" + }, + "funding": { + "url": "https://github.com/sponsors/sxzz" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@vue/compiler-core": { + "version": "3.5.29", + "resolved": "https://registry.npmjs.org/@vue/compiler-core/-/compiler-core-3.5.29.tgz", + "integrity": "sha512-cuzPhD8fwRHk8IGfmYaR4eEe4cAyJEL66Ove/WZL7yWNL134nqLddSLwNRIsFlnnW1kK+p8Ck3viFnC0chXCXw==", + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.29.0", + "@vue/shared": "3.5.29", + "entities": "^7.0.1", + "estree-walker": "^2.0.2", + "source-map-js": "^1.2.1" + } + }, + "node_modules/@vue/compiler-dom": { + "version": "3.5.29", + "resolved": "https://registry.npmjs.org/@vue/compiler-dom/-/compiler-dom-3.5.29.tgz", + "integrity": "sha512-n0G5o7R3uBVmVxjTIYcz7ovr8sy7QObFG8OQJ3xGCDNhbG60biP/P5KnyY8NLd81OuT1WJflG7N4KWYHaeeaIg==", + "license": "MIT", + "dependencies": { + "@vue/compiler-core": "3.5.29", + "@vue/shared": "3.5.29" + } + }, + "node_modules/@vue/compiler-sfc": { + "version": "3.5.29", + "resolved": "https://registry.npmjs.org/@vue/compiler-sfc/-/compiler-sfc-3.5.29.tgz", + "integrity": "sha512-oJZhN5XJs35Gzr50E82jg2cYdZQ78wEwvRO6Y63TvLVTc+6xICzJHP1UIecdSPPYIbkautNBanDiWYa64QSFIA==", + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.29.0", + "@vue/compiler-core": "3.5.29", + "@vue/compiler-dom": "3.5.29", + "@vue/compiler-ssr": "3.5.29", + "@vue/shared": "3.5.29", + "estree-walker": "^2.0.2", + "magic-string": "^0.30.21", + "postcss": "^8.5.6", + "source-map-js": "^1.2.1" + } + }, + "node_modules/@vue/compiler-ssr": { + "version": "3.5.29", + "resolved": "https://registry.npmjs.org/@vue/compiler-ssr/-/compiler-ssr-3.5.29.tgz", + "integrity": "sha512-Y/ARJZE6fpjzL5GH/phJmsFwx3g6t2KmHKHx5q+MLl2kencADKIrhH5MLF6HHpRMmlRAYBRSvv347Mepf1zVNw==", + "license": "MIT", + "dependencies": { + "@vue/compiler-dom": "3.5.29", + "@vue/shared": "3.5.29" + } + }, + "node_modules/@vue/devtools-api": { + "version": "7.7.9", + "resolved": "https://registry.npmjs.org/@vue/devtools-api/-/devtools-api-7.7.9.tgz", + "integrity": "sha512-kIE8wvwlcZ6TJTbNeU2HQNtaxLx3a84aotTITUuL/4bzfPxzajGBOoqjMhwZJ8L9qFYDU/lAYMEEm11dnZOD6g==", + "license": "MIT", + "dependencies": { + "@vue/devtools-kit": "^7.7.9" + } + }, + "node_modules/@vue/devtools-core": { + "version": "8.0.7", + "resolved": "https://registry.npmjs.org/@vue/devtools-core/-/devtools-core-8.0.7.tgz", + "integrity": "sha512-PmpiPxvg3Of80ODHVvyckxwEW1Z02VIAvARIZS1xegINn3VuNQLm9iHUmKD+o6cLkMNWV8OG8x7zo0kgydZgdg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@vue/devtools-kit": "^8.0.7", + "@vue/devtools-shared": "^8.0.7" + }, + "peerDependencies": { + "vue": "^3.0.0" + } + }, + "node_modules/@vue/devtools-core/node_modules/@vue/devtools-kit": { + "version": "8.0.7", + "resolved": "https://registry.npmjs.org/@vue/devtools-kit/-/devtools-kit-8.0.7.tgz", + "integrity": "sha512-H6esJGHGl5q0E9iV3m2EoBQHJ+V83WMW83A0/+Fn95eZ2iIvdsq4+UCS6yT/Fdd4cGZSchx/MdWDreM3WqMsDw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@vue/devtools-shared": "^8.0.7", + "birpc": "^2.6.1", + "hookable": "^5.5.3", + "perfect-debounce": "^2.0.0" + } + }, + "node_modules/@vue/devtools-core/node_modules/@vue/devtools-shared": { + "version": "8.0.7", + "resolved": "https://registry.npmjs.org/@vue/devtools-shared/-/devtools-shared-8.0.7.tgz", + "integrity": "sha512-CgAb9oJH5NUmbQRdYDj/1zMiaICYSLtm+B1kxcP72LBrifGAjUmt8bx52dDH1gWRPlQgxGPqpAMKavzVirAEhA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@vue/devtools-core/node_modules/perfect-debounce": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/perfect-debounce/-/perfect-debounce-2.1.0.tgz", + "integrity": "sha512-LjgdTytVFXeUgtHZr9WYViYSM/g8MkcTPYDlPa3cDqMirHjKiSZPYd6DoL7pK8AJQr+uWkQvCjHNdiMqsrJs+g==", + "dev": true, + "license": "MIT" + }, + "node_modules/@vue/devtools-kit": { + "version": "7.7.9", + "resolved": "https://registry.npmjs.org/@vue/devtools-kit/-/devtools-kit-7.7.9.tgz", + "integrity": "sha512-PyQ6odHSgiDVd4hnTP+aDk2X4gl2HmLDfiyEnn3/oV+ckFDuswRs4IbBT7vacMuGdwY/XemxBoh302ctbsptuA==", + "license": "MIT", + "dependencies": { + "@vue/devtools-shared": "^7.7.9", + "birpc": "^2.3.0", + "hookable": "^5.5.3", + "mitt": "^3.0.1", + "perfect-debounce": "^1.0.0", + "speakingurl": "^14.0.1", + "superjson": "^2.2.2" + } + }, + "node_modules/@vue/devtools-shared": { + "version": "7.7.9", + "resolved": "https://registry.npmjs.org/@vue/devtools-shared/-/devtools-shared-7.7.9.tgz", + "integrity": "sha512-iWAb0v2WYf0QWmxCGy0seZNDPdO3Sp5+u78ORnyeonS6MT4PC7VPrryX2BpMJrwlDeaZ6BD4vP4XKjK0SZqaeA==", + "license": "MIT", + "dependencies": { + "rfdc": "^1.4.1" + } + }, + "node_modules/@vue/language-core": { + "version": "3.2.5", + "resolved": "https://registry.npmjs.org/@vue/language-core/-/language-core-3.2.5.tgz", + "integrity": "sha512-d3OIxN/+KRedeM5wQ6H6NIpwS3P5gC9nmyaHgBk+rO6dIsjY+tOh4UlPpiZbAh3YtLdCGEX4M16RmsBqPmJV+g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@volar/language-core": "2.4.28", + "@vue/compiler-dom": "^3.5.0", + "@vue/shared": "^3.5.0", + "alien-signals": "^3.0.0", + "muggle-string": "^0.4.1", + "path-browserify": "^1.0.1", + "picomatch": "^4.0.2" + } + }, + "node_modules/@vue/reactivity": { + "version": "3.5.29", + "resolved": "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.5.29.tgz", + "integrity": "sha512-zcrANcrRdcLtmGZETBxWqIkoQei8HaFpZWx/GHKxx79JZsiZ8j1du0VUJtu4eJjgFvU/iKL5lRXFXksVmI+5DA==", + "license": "MIT", + "dependencies": { + "@vue/shared": "3.5.29" + } + }, + "node_modules/@vue/runtime-core": { + "version": "3.5.29", + "resolved": "https://registry.npmjs.org/@vue/runtime-core/-/runtime-core-3.5.29.tgz", + "integrity": "sha512-8DpW2QfdwIWOLqtsNcds4s+QgwSaHSJY/SUe04LptianUQ/0xi6KVsu/pYVh+HO3NTVvVJjIPL2t6GdeKbS4Lg==", + "license": "MIT", + "dependencies": { + "@vue/reactivity": "3.5.29", + "@vue/shared": "3.5.29" + } + }, + "node_modules/@vue/runtime-dom": { + "version": "3.5.29", + "resolved": "https://registry.npmjs.org/@vue/runtime-dom/-/runtime-dom-3.5.29.tgz", + "integrity": "sha512-AHvvJEtcY9tw/uk+s/YRLSlxxQnqnAkjqvK25ZiM4CllCZWzElRAoQnCM42m9AHRLNJ6oe2kC5DCgD4AUdlvXg==", + "license": "MIT", + "dependencies": { + "@vue/reactivity": "3.5.29", + "@vue/runtime-core": "3.5.29", + "@vue/shared": "3.5.29", + "csstype": "^3.2.3" + } + }, + "node_modules/@vue/server-renderer": { + "version": "3.5.29", + "resolved": "https://registry.npmjs.org/@vue/server-renderer/-/server-renderer-3.5.29.tgz", + "integrity": "sha512-G/1k6WK5MusLlbxSE2YTcqAAezS+VuwHhOvLx2KnQU7G2zCH6KIb+5Wyt6UjMq7a3qPzNEjJXs1hvAxDclQH+g==", + "license": "MIT", + "dependencies": { + "@vue/compiler-ssr": "3.5.29", + "@vue/shared": "3.5.29" + }, + "peerDependencies": { + "vue": "3.5.29" + } + }, + "node_modules/@vue/shared": { + "version": "3.5.29", + "resolved": "https://registry.npmjs.org/@vue/shared/-/shared-3.5.29.tgz", + "integrity": "sha512-w7SR0A5zyRByL9XUkCfdLs7t9XOHUyJ67qPGQjOou3p6GvBeBW+AVjUUmlxtZ4PIYaRvE+1LmK44O4uajlZwcg==", + "license": "MIT" + }, + "node_modules/@vue/tsconfig": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/@vue/tsconfig/-/tsconfig-0.8.1.tgz", + "integrity": "sha512-aK7feIWPXFSUhsCP9PFqPyFOcz4ENkb8hZ2pneL6m2UjCkccvaOhC/5KCKluuBufvp2KzkbdA2W2pk20vLzu3g==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "typescript": "5.x", + "vue": "^3.4.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + }, + "vue": { + "optional": true + } + } + }, + "node_modules/@vueuse/core": { + "version": "14.2.1", + "resolved": "https://registry.npmjs.org/@vueuse/core/-/core-14.2.1.tgz", + "integrity": "sha512-3vwDzV+GDUNpdegRY6kzpLm4Igptq+GA0QkJ3W61Iv27YWwW/ufSlOfgQIpN6FZRMG0mkaz4gglJRtq5SeJyIQ==", + "license": "MIT", + "dependencies": { + "@types/web-bluetooth": "^0.0.21", + "@vueuse/metadata": "14.2.1", + "@vueuse/shared": "14.2.1" + }, + "funding": { + "url": "https://github.com/sponsors/antfu" + }, + "peerDependencies": { + "vue": "^3.5.0" + } + }, + "node_modules/@vueuse/metadata": { + "version": "14.2.1", + "resolved": "https://registry.npmjs.org/@vueuse/metadata/-/metadata-14.2.1.tgz", + "integrity": "sha512-1ButlVtj5Sb/HDtIy1HFr1VqCP4G6Ypqt5MAo0lCgjokrk2mvQKsK2uuy0vqu/Ks+sHfuHo0B9Y9jn9xKdjZsw==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/antfu" + } + }, + "node_modules/@vueuse/shared": { + "version": "14.2.1", + "resolved": "https://registry.npmjs.org/@vueuse/shared/-/shared-14.2.1.tgz", + "integrity": "sha512-shTJncjV9JTI4oVNyF1FQonetYAiTBd+Qj7cY89SWbXSkx7gyhrgtEdF2ZAVWS1S3SHlaROO6F2IesJxQEkZBw==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/antfu" + }, + "peerDependencies": { + "vue": "^3.5.0" + } + }, + "node_modules/acorn": { + "version": "8.16.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.16.0.tgz", + "integrity": "sha512-UVJyE9MttOsBQIDKw1skb9nAwQuR5wuGD3+82K6JgJlm/Y+KI92oNsMNGZCYdDsVtRHSak0pcV5Dno5+4jh9sw==", + "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.14.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.14.0.tgz", + "integrity": "sha512-IWrosm/yrn43eiKqkfkHis7QioDleaXQHdDVPKg0FSwwd/DuvyX79TZnFOnYpB7dcsFAMmtFztZuXPDvSePkFw==", + "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/alien-signals": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/alien-signals/-/alien-signals-3.1.2.tgz", + "integrity": "sha512-d9dYqZTS90WLiU0I5c6DHj/HcKkF8ZyGN3G5x8wSbslulz70KOxaqCT0hQCo9KOyhVqzqGojvNdJXoTumZOtcw==", + "dev": true, + "license": "MIT" + }, + "node_modules/ansi-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/ansi-styles": { + "version": "6.2.3", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.3.tgz", + "integrity": "sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/ansis": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/ansis/-/ansis-4.2.0.tgz", + "integrity": "sha512-HqZ5rWlFjGiV0tDm3UxxgNRqsOTniqoKZu0pIAfh7TZQMGuZK+hH0drySty0si0QXj1ieop4+SkSfPZBPPkHig==", + "dev": true, + "license": "ISC", + "engines": { + "node": ">=14" + } + }, + "node_modules/arr-diff": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-4.0.0.tgz", + "integrity": "sha512-YVIQ82gZPGBebQV/a8dar4AitzCQs0jjXwMPZllpXMaGjXPYVUawSxQrRsjhjupyVxEvbHgUmIhKVlND+j02kA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/arr-flatten": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/arr-flatten/-/arr-flatten-1.1.0.tgz", + "integrity": "sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/arr-union": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/arr-union/-/arr-union-3.1.0.tgz", + "integrity": "sha512-sKpyeERZ02v1FeCZT8lrfJq5u6goHCtpTAzPwJYe7c8SPFOboNjNg1vz2L4VTn9T4PQxEx13TbXLmYUcS6Ug7Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/array-buffer-byte-length": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.2.tgz", + "integrity": "sha512-LHE+8BuR7RYGDKvnrmcuSq3tDcKv9OFEXQt/HpbZhY7V6h0zlUXutnAD82GiFx9rdieCMjkvtcsPqBwgUl1Iiw==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3", + "is-array-buffer": "^3.0.5" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array-unique": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.3.2.tgz", + "integrity": "sha512-SleRWjh9JUud2wH1hPs9rZBZ33H6T9HOiL0uwGnGx9FpE6wKGyfWugmbkEOIs6qWrZhg0LWeLziLrEwQJhs5mQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/arraybuffer.prototype.slice": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/arraybuffer.prototype.slice/-/arraybuffer.prototype.slice-1.0.4.tgz", + "integrity": "sha512-BNoCY6SXXPQ7gF2opIP4GBE+Xw7U+pHMYKuzjgCN3GwiaIR09UUeKfheyIry77QtrCBlC0KK0q5/TER/tYh3PQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "array-buffer-byte-length": "^1.0.1", + "call-bind": "^1.0.8", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.5", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.6", + "is-array-buffer": "^3.0.4" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/assign-symbols": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/assign-symbols/-/assign-symbols-1.0.0.tgz", + "integrity": "sha512-Q+JC7Whu8HhmTdBph/Tq59IoRtoy6KAm5zzPv00WdujX82lbAL8K7WVjne7vdCsAmbF4AYaDOPyO3k0kl8qIrw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/ast-kit": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/ast-kit/-/ast-kit-2.2.0.tgz", + "integrity": "sha512-m1Q/RaVOnTp9JxPX+F+Zn7IcLYMzM8kZofDImfsKZd8MbR+ikdOzTeztStWqfrqIxZnYWryyI9ePm3NGjnZgGw==", + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.28.5", + "pathe": "^2.0.3" + }, + "engines": { + "node": ">=20.19.0" + }, + "funding": { + "url": "https://github.com/sponsors/sxzz" + } + }, + "node_modules/ast-walker-scope": { + "version": "0.8.3", + "resolved": "https://registry.npmjs.org/ast-walker-scope/-/ast-walker-scope-0.8.3.tgz", + "integrity": "sha512-cbdCP0PGOBq0ASG+sjnKIoYkWMKhhz+F/h9pRexUdX2Hd38+WOlBkRKlqkGOSm0YQpcFMQBJeK4WspUAkwsEdg==", + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.28.4", + "ast-kit": "^2.1.3" + }, + "engines": { + "node": ">=20.19.0" + }, + "funding": { + "url": "https://github.com/sponsors/sxzz" + } + }, + "node_modules/async-function": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/async-function/-/async-function-1.0.0.tgz", + "integrity": "sha512-hsU18Ae8CDTR6Kgu9DYf0EbCr/a5iGL0rytQDobUcdpYOKokk8LEjVphnXkDkgpi0wYVsqrXuP0bZxJaTqdgoA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/async-validator": { + "version": "4.2.5", + "resolved": "https://registry.npmjs.org/async-validator/-/async-validator-4.2.5.tgz", + "integrity": "sha512-7HhHjtERjqlNbZtqNqy2rckN/SpOOlmDliet+lP7k+eKZEjPk3DgyeU9lIXLdeLz0uBbbVp+9Qdow9wJWgwwfg==", + "license": "MIT" + }, + "node_modules/asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", + "license": "MIT" + }, + "node_modules/atob": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/atob/-/atob-2.1.2.tgz", + "integrity": "sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==", + "dev": true, + "license": "(MIT OR Apache-2.0)", + "bin": { + "atob": "bin/atob.js" + }, + "engines": { + "node": ">= 4.5.0" + } + }, + "node_modules/available-typed-arrays": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.7.tgz", + "integrity": "sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "possible-typed-array-names": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/axios": { + "version": "1.13.6", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.13.6.tgz", + "integrity": "sha512-ChTCHMouEe2kn713WHbQGcuYrr6fXTBiu460OTwWrWob16g1bXn4vtz07Ope7ewMozJAnEquLk5lWQWtBig9DQ==", + "license": "MIT", + "dependencies": { + "follow-redirects": "^1.15.11", + "form-data": "^4.0.5", + "proxy-from-env": "^1.1.0" + } + }, + "node_modules/balanced-match": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.4.tgz", + "integrity": "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==", + "dev": true, + "license": "MIT", + "engines": { + "node": "18 || 20 || >=22" + } + }, + "node_modules/base": { + "version": "0.11.2", + "resolved": "https://registry.npmjs.org/base/-/base-0.11.2.tgz", + "integrity": "sha512-5T6P4xPgpp0YDFvSWwEZ4NoE3aM4QBQXDzmVbraCkFj8zHM+mba8SyqB5DbZWyR7mYHo6Y7BdQo3MoA4m0TeQg==", + "dev": true, + "license": "MIT", + "dependencies": { + "cache-base": "^1.0.1", + "class-utils": "^0.3.5", + "component-emitter": "^1.2.1", + "define-property": "^1.0.0", + "isobject": "^3.0.1", + "mixin-deep": "^1.2.0", + "pascalcase": "^0.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/base/node_modules/isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/baseline-browser-mapping": { + "version": "2.10.0", + "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.10.0.tgz", + "integrity": "sha512-lIyg0szRfYbiy67j9KN8IyeD7q7hcmqnJ1ddWmNt19ItGpNN64mnllmxUNFIOdOm6by97jlL6wfpTTJrmnjWAA==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "baseline-browser-mapping": "dist/cli.cjs" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/big.js": { + "version": "5.2.2", + "resolved": "https://registry.npmjs.org/big.js/-/big.js-5.2.2.tgz", + "integrity": "sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": "*" + } + }, + "node_modules/birpc": { + "version": "2.9.0", + "resolved": "https://registry.npmjs.org/birpc/-/birpc-2.9.0.tgz", + "integrity": "sha512-KrayHS5pBi69Xi9JmvoqrIgYGDkD6mcSe/i6YKi3w5kekCLzrX4+nawcXqrj2tIp50Kw/mT/s3p+GVK0A0sKxw==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/antfu" + } + }, + "node_modules/bluebird": { + "version": "3.7.2", + "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz", + "integrity": "sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==", + "dev": true, + "license": "MIT" + }, + "node_modules/boolbase": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz", + "integrity": "sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==", + "dev": true, + "license": "ISC" + }, + "node_modules/brace-expansion": { + "version": "5.0.4", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.4.tgz", + "integrity": "sha512-h+DEnpVvxmfVefa4jFbCf5HdH5YMDXRsmKflpf1pILZWRFlTbJpxeU55nJl4Smt5HQaGzg1o6RHFPJaOqnmBDg==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^4.0.2" + }, + "engines": { + "node": "18 || 20 || >=22" + } + }, + "node_modules/braces": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", + "dev": true, + "license": "MIT", + "dependencies": { + "fill-range": "^7.1.1" + }, + "engines": { + "node": ">=8" + } + }, + "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/bundle-name": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/bundle-name/-/bundle-name-4.1.0.tgz", + "integrity": "sha512-tjwM5exMg6BGRI+kNmTntNsvdZS1X8BFYS6tnJ2hdH0kVxM6/eVZ2xy+FqStSWvYmtfFMDLIxurorHwDKfDz5Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "run-applescript": "^7.0.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/cache-base": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/cache-base/-/cache-base-1.0.1.tgz", + "integrity": "sha512-AKcdTnFSWATd5/GCPRxr2ChwIJ85CeyrEyjRHlKxQ56d4XJMGym0uAiKn0xbLOGOl3+yRpOTi484dVCEc5AUzQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "collection-visit": "^1.0.0", + "component-emitter": "^1.2.1", + "get-value": "^2.0.6", + "has-value": "^1.0.0", + "isobject": "^3.0.1", + "set-value": "^2.0.0", + "to-object-path": "^0.3.0", + "union-value": "^1.0.0", + "unset-value": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/cache-base/node_modules/isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/call-bind": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.8.tgz", + "integrity": "sha512-oKlSFMcMwpUg2ednkhQ454wfWiU/ul3CkJe/PEHcTKuiX6RpbehUiFMXu13HalGZxfUwCQzZG747YXBn1im9ww==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.0", + "es-define-property": "^1.0.0", + "get-intrinsic": "^1.2.4", + "set-function-length": "^1.2.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/call-bind-apply-helpers": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", + "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/call-bound": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz", + "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.2", + "get-intrinsic": "^1.3.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/caniuse-lite": { + "version": "1.0.30001776", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001776.tgz", + "integrity": "sha512-sg01JDPzZ9jGshqKSckOQthXnYwOEP50jeVFhaSFbZcOy05TiuuaffDOfcwtCisJ9kNQuLBFibYywv2Bgm9osw==", + "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": "1.1.3", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", + "integrity": "sha512-U3lRVLMSlsCfjqYPbLyVv11M9CPW4I728d6TCKMAOJueEeB9/8o+eSsMnxPJD+Q+K909sdESg7C+tIkoH6on1A==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^2.2.1", + "escape-string-regexp": "^1.0.2", + "has-ansi": "^2.0.0", + "strip-ansi": "^3.0.0", + "supports-color": "^2.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/chalk/node_modules/ansi-styles": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", + "integrity": "sha512-kmCevFghRiWM7HB5zTPULl4r9bVFSWjz62MhqizDGUrq2NWuNMQyuv4tHHoKJHs69M/MF64lEcHdYIocrdWQYA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/chalk/node_modules/supports-color": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", + "integrity": "sha512-KKNVtd6pCYgPIKU4cp2733HWYCpplQhddZLBUryaAHou723x+FRzQ5Df824Fj+IyyuiQTRoub4SnIFfIcrp70g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/chokidar": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-5.0.0.tgz", + "integrity": "sha512-TQMmc3w+5AxjpL8iIiwebF73dRDF4fBIieAqGn9RGCWaEVwQ6Fb2cGe31Yns0RRIzii5goJ1Y7xbMwo1TxMplw==", + "license": "MIT", + "dependencies": { + "readdirp": "^5.0.0" + }, + "engines": { + "node": ">= 20.19.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/class-utils": { + "version": "0.3.6", + "resolved": "https://registry.npmjs.org/class-utils/-/class-utils-0.3.6.tgz", + "integrity": "sha512-qOhPa/Fj7s6TY8H8esGu5QNpMMQxz79h+urzrNYN6mn+9BnxlDGf5QZ+XeCDsxSjPqsSR56XOZOJmpeurnLMeg==", + "dev": true, + "license": "MIT", + "dependencies": { + "arr-union": "^3.1.0", + "define-property": "^0.2.5", + "isobject": "^3.0.0", + "static-extend": "^0.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/class-utils/node_modules/define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha512-Rr7ADjQZenceVOAKop6ALkkRAmH1A4Gx9hV/7ZujPUN2rkATqFO0JZLZInbAjpZYoJ1gUx8MRMQVkYemcbMSTA==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-descriptor": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/class-utils/node_modules/is-descriptor": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.7.tgz", + "integrity": "sha512-C3grZTvObeN1xud4cRWl366OMXZTj0+HGyk4hvfpx4ZHt1Pb60ANSXqCK7pdOTeUQpRzECBSTphqvD7U+l22Eg==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-accessor-descriptor": "^1.0.1", + "is-data-descriptor": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/class-utils/node_modules/isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/cliui": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz", + "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==", + "license": "ISC", + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^6.2.0" + } + }, + "node_modules/cliui/node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/cliui/node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/clone": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/clone/-/clone-2.1.2.tgz", + "integrity": "sha512-3Pe/CF1Nn94hyhIYpjtiLhdCoEoz0DqQ+988E9gmeEdQZlojxnOb74wctFyuwWQHzqyf9X7C7MG8juUpqBJT8w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.8" + } + }, + "node_modules/collection-visit": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/collection-visit/-/collection-visit-1.0.0.tgz", + "integrity": "sha512-lNkKvzEeMBBjUGHZ+q6z9pSJla0KWAQPvtzhEV9+iGyQYG+pBpl7xKDhxoNSOZH2hhv0v5k0y2yAM4o4SjoSkw==", + "dev": true, + "license": "MIT", + "dependencies": { + "map-visit": "^1.0.0", + "object-visit": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "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==", + "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==", + "license": "MIT" + }, + "node_modules/combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "license": "MIT", + "dependencies": { + "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/commander": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", + "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 10" + } + }, + "node_modules/component-emitter": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.3.1.tgz", + "integrity": "sha512-T0+barUSQRTUQASh8bx02dl+DhF54GtIDY13Y3m9oWTklKbb3Wv974meRpeZ3lp1JpLVECWWNHC4vaG2XHXouQ==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/confbox": { + "version": "0.2.4", + "resolved": "https://registry.npmjs.org/confbox/-/confbox-0.2.4.tgz", + "integrity": "sha512-ysOGlgTFbN2/Y6Cg3Iye8YKulHw+R2fNXHrgSmXISQdMnomY6eNDprVdW9R5xBguEqI954+S6709UyiO7B+6OQ==", + "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/copy-anything": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/copy-anything/-/copy-anything-4.0.5.tgz", + "integrity": "sha512-7Vv6asjS4gMOuILabD3l739tsaxFQmC+a7pLZm02zyvs8p977bL3zEgq3yDk5rn9B0PbYgIv++jmHcuUab4RhA==", + "license": "MIT", + "dependencies": { + "is-what": "^5.2.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/mesqueeb" + } + }, + "node_modules/copy-descriptor": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/copy-descriptor/-/copy-descriptor-0.1.1.tgz", + "integrity": "sha512-XgZ0pFcakEUlbwQEVNg3+QAis1FyTL3Qel9FYy8pSkQqoG3PNoT0bOCQtOXcOkur21r2Eq2kI+IE+gsmAEVlYw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/cors": { + "version": "2.8.6", + "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.6.tgz", + "integrity": "sha512-tJtZBBHA6vjIAaF6EnIaq6laBBP9aq/Y3ouVJjEfoHbRBcHBAHYcMh/w8LDrk2PvIMMq8gmopa5D4V8RmbrxGw==", + "dev": true, + "license": "MIT", + "dependencies": { + "object-assign": "^4", + "vary": "^1" + }, + "engines": { + "node": ">= 0.10" + }, + "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/cross-spawn/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/cross-spawn/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/css-select": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/css-select/-/css-select-4.3.0.tgz", + "integrity": "sha512-wPpOYtnsVontu2mODhA19JrqWxNsfdatRKd64kmpRbQgh1KtItko5sTnEpPdpSaJszTOhEMlF/RPz28qj4HqhQ==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "boolbase": "^1.0.0", + "css-what": "^6.0.1", + "domhandler": "^4.3.1", + "domutils": "^2.8.0", + "nth-check": "^2.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/fb55" + } + }, + "node_modules/css-select/node_modules/dom-serializer": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-1.4.1.tgz", + "integrity": "sha512-VHwB3KfrcOOkelEG2ZOfxqLZdfkil8PtJi4P8N2MMXucZq2yLp75ClViUlOVwyoHEDjYU433Aq+5zWP61+RGag==", + "dev": true, + "license": "MIT", + "dependencies": { + "domelementtype": "^2.0.1", + "domhandler": "^4.2.0", + "entities": "^2.0.0" + }, + "funding": { + "url": "https://github.com/cheeriojs/dom-serializer?sponsor=1" + } + }, + "node_modules/css-select/node_modules/domelementtype": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-2.3.0.tgz", + "integrity": "sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/fb55" + } + ], + "license": "BSD-2-Clause" + }, + "node_modules/css-select/node_modules/domhandler": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-4.3.1.tgz", + "integrity": "sha512-GrwoxYN+uWlzO8uhUXRl0P+kHE4GtVPfYzVLcUxPL7KNdHKj66vvlhiweIHqYYXWlw+T8iLMp42Lm67ghw4WMQ==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "domelementtype": "^2.2.0" + }, + "engines": { + "node": ">= 4" + }, + "funding": { + "url": "https://github.com/fb55/domhandler?sponsor=1" + } + }, + "node_modules/css-select/node_modules/domutils": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/domutils/-/domutils-2.8.0.tgz", + "integrity": "sha512-w96Cjofp72M5IIhpjgobBimYEfoPjx1Vx0BSX9P30WBdZW2WIKU0T1Bd0kz2eNZ9ikjKgHbEyKx8BB6H1L3h3A==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "dom-serializer": "^1.0.1", + "domelementtype": "^2.2.0", + "domhandler": "^4.2.0" + }, + "funding": { + "url": "https://github.com/fb55/domutils?sponsor=1" + } + }, + "node_modules/css-select/node_modules/entities": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-2.2.0.tgz", + "integrity": "sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==", + "dev": true, + "license": "BSD-2-Clause", + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" + } + }, + "node_modules/css-tree": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-1.1.3.tgz", + "integrity": "sha512-tRpdppF7TRazZrjJ6v3stzv93qxRcSsFmW6cX0Zm2NVKpxE1WV1HblnghVv9TreireHkqI/VDEsfolRF1p6y7Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "mdn-data": "2.0.14", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/css-what": { + "version": "6.2.2", + "resolved": "https://registry.npmjs.org/css-what/-/css-what-6.2.2.tgz", + "integrity": "sha512-u/O3vwbptzhMs3L1fQE82ZSLHQQfto5gyZzwteVIEyeaY5Fc7R4dapF/BvRoSYFeqfBk4m0V1Vafq5Pjv25wvA==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">= 6" + }, + "funding": { + "url": "https://github.com/sponsors/fb55" + } + }, + "node_modules/cssesc": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz", + "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==", + "dev": true, + "license": "MIT", + "bin": { + "cssesc": "bin/cssesc" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/csso": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/csso/-/csso-4.2.0.tgz", + "integrity": "sha512-wvlcdIbf6pwKEk7vHj8/Bkc0B4ylXZruLvOgs9doS5eOsOpuodOV2zJChSpkp+pRpYQLQMeF04nr3Z68Sta9jA==", + "dev": true, + "license": "MIT", + "dependencies": { + "css-tree": "^1.1.2" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/csstype": { + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz", + "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==", + "license": "MIT" + }, + "node_modules/data-view-buffer": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/data-view-buffer/-/data-view-buffer-1.0.2.tgz", + "integrity": "sha512-EmKO5V3OLXh1rtK2wgXRansaK1/mtVdTUEiEI0W8RkvgT05kfxaH29PliLnpLP73yYO6142Q72QNa8Wx/A5CqQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3", + "es-errors": "^1.3.0", + "is-data-view": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/data-view-byte-length": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/data-view-byte-length/-/data-view-byte-length-1.0.2.tgz", + "integrity": "sha512-tuhGbE6CfTM9+5ANGf+oQb72Ky/0+s3xKUpHvShfiz2RxMFgFPjsXuRLBVMtvMs15awe45SRb83D6wH4ew6wlQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3", + "es-errors": "^1.3.0", + "is-data-view": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/inspect-js" + } + }, + "node_modules/data-view-byte-offset": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/data-view-byte-offset/-/data-view-byte-offset-1.0.1.tgz", + "integrity": "sha512-BS8PfmtDGnrgYdOonGZQdLZslWIeCGFP9tpan0hi1Co2Zr2NKADsvGYA8XxuG/4UWgJ6Cjtv+YJnB6MM69QGlQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "is-data-view": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/dayjs": { + "version": "1.11.19", + "resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.19.tgz", + "integrity": "sha512-t5EcLVS6QPBNqM2z8fakk/NKel+Xzshgt8FFKAn+qwlD1pzZWxh0nVCrvFK7ZDb6XucZeF9z8C7CBWTRIVApAw==", + "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/decamelize": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", + "integrity": "sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/decode-uri-component": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.2.tgz", + "integrity": "sha512-FqUYQ+8o158GyGTrMFJms9qh3CqTKvAqgqsTnkLI8sKu0028orqBhxNMFkFen0zGyg6epACD32pjVk58ngIErQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10" + } + }, + "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/default-browser": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/default-browser/-/default-browser-5.5.0.tgz", + "integrity": "sha512-H9LMLr5zwIbSxrmvikGuI/5KGhZ8E2zH3stkMgM5LpOWDutGM2JZaj460Udnf1a+946zc7YBgrqEWwbk7zHvGw==", + "dev": true, + "license": "MIT", + "dependencies": { + "bundle-name": "^4.1.0", + "default-browser-id": "^5.0.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/default-browser-id": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/default-browser-id/-/default-browser-id-5.0.1.tgz", + "integrity": "sha512-x1VCxdX4t+8wVfd1so/9w+vQ4vx7lKd2Qp5tDRutErwmR85OgmfX7RlLRMWafRMY7hbEiXIbudNrjOAPa/hL8Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/define-data-property": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz", + "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-define-property": "^1.0.0", + "es-errors": "^1.3.0", + "gopd": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/define-lazy-prop": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-3.0.0.tgz", + "integrity": "sha512-N+MeXYoqr3pOgn8xfyRPREN7gHakLYjhsHhWGT3fWAiL4IkAt0iDw14QiiEm2bE30c5XX5q0FtAA3CK5f9/BUg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/define-properties": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.1.tgz", + "integrity": "sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==", + "dev": true, + "license": "MIT", + "dependencies": { + "define-data-property": "^1.0.1", + "has-property-descriptors": "^1.0.0", + "object-keys": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/define-property": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", + "integrity": "sha512-cZTYKFWspt9jZsMscWo8sc/5lbPC9Q0N5nBLgb+Yd915iL3udB1uFgS3B8YCx66UVHq018DAVFoee7x+gxggeA==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-descriptor": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "license": "MIT", + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/detect-libc": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz", + "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==", + "dev": true, + "license": "Apache-2.0", + "optional": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/dijkstrajs": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/dijkstrajs/-/dijkstrajs-1.0.3.tgz", + "integrity": "sha512-qiSlmBq9+BCdCA/L46dw8Uy93mloxsPSbwnm5yrKn2vMPiy8KyAskTF6zuV/j5BMsmOGZDPs7KjU+mjb670kfA==", + "license": "MIT" + }, + "node_modules/dom-serializer": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-0.2.2.tgz", + "integrity": "sha512-2/xPb3ORsQ42nHYiSunXkDjPLBaEj/xTwUO4B7XCZQTRk7EBtTOPaygh10YAAh2OI1Qrp6NWfpAhzswj0ydt9g==", + "dev": true, + "license": "MIT", + "dependencies": { + "domelementtype": "^2.0.1", + "entities": "^2.0.0" + } + }, + "node_modules/dom-serializer/node_modules/domelementtype": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-2.3.0.tgz", + "integrity": "sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/fb55" + } + ], + "license": "BSD-2-Clause" + }, + "node_modules/dom-serializer/node_modules/entities": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-2.2.0.tgz", + "integrity": "sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==", + "dev": true, + "license": "BSD-2-Clause", + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" + } + }, + "node_modules/domelementtype": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-1.3.1.tgz", + "integrity": "sha512-BSKB+TSpMpFI/HOxCNr1O8aMOTZ8hT3pM3GQ0w/mWRmkhEDSFJkkyzz4XQsBV44BChwGkrDfMyjVD0eA2aFV3w==", + "dev": true, + "license": "BSD-2-Clause" + }, + "node_modules/domhandler": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-2.4.2.tgz", + "integrity": "sha512-JiK04h0Ht5u/80fdLMCEmV4zkNh2BcoMFBmZ/91WtYZ8qVXSKjiw7fXMgFPnHcSZgOo3XdinHvmnDUeMf5R4wA==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "domelementtype": "1" + } + }, + "node_modules/domutils": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/domutils/-/domutils-1.7.0.tgz", + "integrity": "sha512-Lgd2XcJ/NjEw+7tFvfKxOzCYKZsdct5lczQ2ZaQY8Djz7pfAD3Gbp8ySJWtreII/vDlMVmxwa6pHmdxIYgttDg==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "dom-serializer": "0", + "domelementtype": "1" + } + }, + "node_modules/dunder-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", + "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.1", + "es-errors": "^1.3.0", + "gopd": "^1.2.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/echarts": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/echarts/-/echarts-6.0.0.tgz", + "integrity": "sha512-Tte/grDQRiETQP4xz3iZWSvoHrkCQtwqd6hs+mifXcjrCuo2iKWbajFObuLJVBlDIJlOzgQPd1hsaKt/3+OMkQ==", + "license": "Apache-2.0", + "dependencies": { + "tslib": "2.3.0", + "zrender": "6.0.0" + } + }, + "node_modules/electron-to-chromium": { + "version": "1.5.307", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.307.tgz", + "integrity": "sha512-5z3uFKBWjiNR44nFcYdkcXjKMbg5KXNdciu7mhTPo9tB7NbqSNP2sSnGR+fqknZSCwKkBN+oxiiajWs4dT6ORg==", + "dev": true, + "license": "ISC" + }, + "node_modules/element-plus": { + "version": "2.13.3", + "resolved": "https://registry.npmjs.org/element-plus/-/element-plus-2.13.3.tgz", + "integrity": "sha512-RwLVtFpeHjZ4UCtHxVi1/sGR2cr2xOL7hqWa7qJc/+gdO6QavVG8Nw1C647obCb3tIg2ztMhNbIIjZUv+6z1og==", + "license": "MIT", + "dependencies": { + "@ctrl/tinycolor": "^3.4.1", + "@element-plus/icons-vue": "^2.3.2", + "@floating-ui/dom": "^1.0.1", + "@popperjs/core": "npm:@sxzz/popperjs-es@^2.11.7", + "@types/lodash": "^4.17.20", + "@types/lodash-es": "^4.17.12", + "@vueuse/core": "^10.11.0", + "async-validator": "^4.2.5", + "dayjs": "^1.11.19", + "lodash": "^4.17.23", + "lodash-es": "^4.17.23", + "lodash-unified": "^1.0.3", + "memoize-one": "^6.0.0", + "normalize-wheel-es": "^1.2.0" + }, + "peerDependencies": { + "vue": "^3.3.0" + } + }, + "node_modules/element-plus/node_modules/@types/web-bluetooth": { + "version": "0.0.20", + "resolved": "https://registry.npmjs.org/@types/web-bluetooth/-/web-bluetooth-0.0.20.tgz", + "integrity": "sha512-g9gZnnXVq7gM7v3tJCWV/qw7w+KeOlSHAhgF9RytFyifW6AF61hdT2ucrYhPq9hLs5JIryeupHV3qGk95dH9ow==", + "license": "MIT" + }, + "node_modules/element-plus/node_modules/@vueuse/core": { + "version": "10.11.1", + "resolved": "https://registry.npmjs.org/@vueuse/core/-/core-10.11.1.tgz", + "integrity": "sha512-guoy26JQktXPcz+0n3GukWIy/JDNKti9v6VEMu6kV2sYBsWuGiTU8OWdg+ADfUbHg3/3DlqySDe7JmdHrktiww==", + "license": "MIT", + "dependencies": { + "@types/web-bluetooth": "^0.0.20", + "@vueuse/metadata": "10.11.1", + "@vueuse/shared": "10.11.1", + "vue-demi": ">=0.14.8" + }, + "funding": { + "url": "https://github.com/sponsors/antfu" + } + }, + "node_modules/element-plus/node_modules/@vueuse/core/node_modules/vue-demi": { + "version": "0.14.10", + "resolved": "https://registry.npmjs.org/vue-demi/-/vue-demi-0.14.10.tgz", + "integrity": "sha512-nMZBOwuzabUO0nLgIcc6rycZEebF6eeUfaiQx9+WSk8e29IbLvPU9feI6tqW4kTo3hvoYAJkMh8n8D0fuISphg==", + "hasInstallScript": true, + "license": "MIT", + "bin": { + "vue-demi-fix": "bin/vue-demi-fix.js", + "vue-demi-switch": "bin/vue-demi-switch.js" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/antfu" + }, + "peerDependencies": { + "@vue/composition-api": "^1.0.0-rc.1", + "vue": "^3.0.0-0 || ^2.6.0" + }, + "peerDependenciesMeta": { + "@vue/composition-api": { + "optional": true + } + } + }, + "node_modules/element-plus/node_modules/@vueuse/metadata": { + "version": "10.11.1", + "resolved": "https://registry.npmjs.org/@vueuse/metadata/-/metadata-10.11.1.tgz", + "integrity": "sha512-IGa5FXd003Ug1qAZmyE8wF3sJ81xGLSqTqtQ6jaVfkeZ4i5kS2mwQF61yhVqojRnenVew5PldLyRgvdl4YYuSw==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/antfu" + } + }, + "node_modules/element-plus/node_modules/@vueuse/shared": { + "version": "10.11.1", + "resolved": "https://registry.npmjs.org/@vueuse/shared/-/shared-10.11.1.tgz", + "integrity": "sha512-LHpC8711VFZlDaYUXEBbFBCQ7GS3dVU9mjOhhMhXP6txTV4EhYQg/KGnQuvt/sPAtoUKq7VVUnL6mVtFoL42sA==", + "license": "MIT", + "dependencies": { + "vue-demi": ">=0.14.8" + }, + "funding": { + "url": "https://github.com/sponsors/antfu" + } + }, + "node_modules/element-plus/node_modules/@vueuse/shared/node_modules/vue-demi": { + "version": "0.14.10", + "resolved": "https://registry.npmjs.org/vue-demi/-/vue-demi-0.14.10.tgz", + "integrity": "sha512-nMZBOwuzabUO0nLgIcc6rycZEebF6eeUfaiQx9+WSk8e29IbLvPU9feI6tqW4kTo3hvoYAJkMh8n8D0fuISphg==", + "hasInstallScript": true, + "license": "MIT", + "bin": { + "vue-demi-fix": "bin/vue-demi-fix.js", + "vue-demi-switch": "bin/vue-demi-switch.js" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/antfu" + }, + "peerDependencies": { + "@vue/composition-api": "^1.0.0-rc.1", + "vue": "^3.0.0-0 || ^2.6.0" + }, + "peerDependenciesMeta": { + "@vue/composition-api": { + "optional": true + } + } + }, + "node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "license": "MIT" + }, + "node_modules/emojis-list": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/emojis-list/-/emojis-list-3.0.0.tgz", + "integrity": "sha512-/kyM18EfinwXZbno9FyUGeFh87KC8HRQBQGildHZbEuRyWFOmv1U10o9BBp8XVZDVNNuQKyIGIu5ZYAAXJ0V2Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, + "node_modules/entities": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/entities/-/entities-7.0.1.tgz", + "integrity": "sha512-TWrgLOFUQTH994YUyl1yT4uyavY5nNB5muff+RtWaqNVCAK408b5ZnnbNAUEWLTCpum9w6arT70i1XdQ4UeOPA==", + "license": "BSD-2-Clause", + "engines": { + "node": ">=0.12" + }, + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" + } + }, + "node_modules/error-stack-parser-es": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/error-stack-parser-es/-/error-stack-parser-es-1.0.5.tgz", + "integrity": "sha512-5qucVt2XcuGMcEGgWI7i+yZpmpByQ8J1lHhcL7PwqCwu9FPP3VUXzT4ltHe5i2z9dePwEHcDVOAfSnHsOlCXRA==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/antfu" + } + }, + "node_modules/es-abstract": { + "version": "1.24.1", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.24.1.tgz", + "integrity": "sha512-zHXBLhP+QehSSbsS9Pt23Gg964240DPd6QCf8WpkqEXxQ7fhdZzYsocOr5u7apWonsS5EjZDmTF+/slGMyasvw==", + "dev": true, + "license": "MIT", + "dependencies": { + "array-buffer-byte-length": "^1.0.2", + "arraybuffer.prototype.slice": "^1.0.4", + "available-typed-arrays": "^1.0.7", + "call-bind": "^1.0.8", + "call-bound": "^1.0.4", + "data-view-buffer": "^1.0.2", + "data-view-byte-length": "^1.0.2", + "data-view-byte-offset": "^1.0.1", + "es-define-property": "^1.0.1", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.1.1", + "es-set-tostringtag": "^2.1.0", + "es-to-primitive": "^1.3.0", + "function.prototype.name": "^1.1.8", + "get-intrinsic": "^1.3.0", + "get-proto": "^1.0.1", + "get-symbol-description": "^1.1.0", + "globalthis": "^1.0.4", + "gopd": "^1.2.0", + "has-property-descriptors": "^1.0.2", + "has-proto": "^1.2.0", + "has-symbols": "^1.1.0", + "hasown": "^2.0.2", + "internal-slot": "^1.1.0", + "is-array-buffer": "^3.0.5", + "is-callable": "^1.2.7", + "is-data-view": "^1.0.2", + "is-negative-zero": "^2.0.3", + "is-regex": "^1.2.1", + "is-set": "^2.0.3", + "is-shared-array-buffer": "^1.0.4", + "is-string": "^1.1.1", + "is-typed-array": "^1.1.15", + "is-weakref": "^1.1.1", + "math-intrinsics": "^1.1.0", + "object-inspect": "^1.13.4", + "object-keys": "^1.1.1", + "object.assign": "^4.1.7", + "own-keys": "^1.0.1", + "regexp.prototype.flags": "^1.5.4", + "safe-array-concat": "^1.1.3", + "safe-push-apply": "^1.0.0", + "safe-regex-test": "^1.1.0", + "set-proto": "^1.0.0", + "stop-iteration-iterator": "^1.1.0", + "string.prototype.trim": "^1.2.10", + "string.prototype.trimend": "^1.0.9", + "string.prototype.trimstart": "^1.0.8", + "typed-array-buffer": "^1.0.3", + "typed-array-byte-length": "^1.0.3", + "typed-array-byte-offset": "^1.0.4", + "typed-array-length": "^1.0.7", + "unbox-primitive": "^1.1.0", + "which-typed-array": "^1.1.19" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/es-define-property": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", + "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-errors": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", + "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-object-atoms": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz", + "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-set-tostringtag": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz", + "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.6", + "has-tostringtag": "^1.0.2", + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-to-primitive": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.3.0.tgz", + "integrity": "sha512-w+5mJ3GuFL+NjVtJlvydShqE1eN3h3PbI7/5LAsYJP/2qtuMXjfL2LpHSRqo4b4eSF5K/DH1JXKUAHSB2UW50g==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-callable": "^1.2.7", + "is-date-object": "^1.0.5", + "is-symbol": "^1.0.4" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "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": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/eslint": { + "version": "10.0.3", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-10.0.3.tgz", + "integrity": "sha512-COV33RzXZkqhG9P2rZCFl9ZmJ7WL+gQSCRzE7RhkbclbQPtLAWReL7ysA0Sh4c8Im2U9ynybdR56PV0XcKvqaQ==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@eslint-community/eslint-utils": "^4.8.0", + "@eslint-community/regexpp": "^4.12.2", + "@eslint/config-array": "^0.23.3", + "@eslint/config-helpers": "^0.5.2", + "@eslint/core": "^1.1.1", + "@eslint/plugin-kit": "^0.6.1", + "@humanfs/node": "^0.16.6", + "@humanwhocodes/module-importer": "^1.0.1", + "@humanwhocodes/retry": "^0.4.2", + "@types/estree": "^1.0.6", + "ajv": "^6.14.0", + "cross-spawn": "^7.0.6", + "debug": "^4.3.2", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^9.1.2", + "eslint-visitor-keys": "^5.0.1", + "espree": "^11.1.1", + "esquery": "^1.7.0", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "^8.0.0", + "find-up": "^5.0.0", + "glob-parent": "^6.0.2", + "ignore": "^5.2.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "json-stable-stringify-without-jsonify": "^1.0.1", + "minimatch": "^10.2.4", + "natural-compare": "^1.4.0", + "optionator": "^0.9.3" + }, + "bin": { + "eslint": "bin/eslint.js" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + }, + "funding": { + "url": "https://eslint.org/donate" + }, + "peerDependencies": { + "jiti": "*" + }, + "peerDependenciesMeta": { + "jiti": { + "optional": true + } + } + }, + "node_modules/eslint-plugin-vue": { + "version": "10.8.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-vue/-/eslint-plugin-vue-10.8.0.tgz", + "integrity": "sha512-f1J/tcbnrpgC8suPN5AtdJ5MQjuXbSU9pGRSSYAuF3SHoiYCOdEX6O22pLaRyLHXvDcOe+O5ENgc1owQ587agA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@eslint-community/eslint-utils": "^4.4.0", + "natural-compare": "^1.4.0", + "nth-check": "^2.1.1", + "postcss-selector-parser": "^7.1.0", + "semver": "^7.6.3", + "xml-name-validator": "^4.0.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "peerDependencies": { + "@stylistic/eslint-plugin": "^2.0.0 || ^3.0.0 || ^4.0.0 || ^5.0.0", + "@typescript-eslint/parser": "^7.0.0 || ^8.0.0", + "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", + "vue-eslint-parser": "^10.0.0" + }, + "peerDependenciesMeta": { + "@stylistic/eslint-plugin": { + "optional": true + }, + "@typescript-eslint/parser": { + "optional": true + } + } + }, + "node_modules/eslint-plugin-vue/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/eslint-scope": { + "version": "9.1.2", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-9.1.2.tgz", + "integrity": "sha512-xS90H51cKw0jltxmvmHy2Iai1LIqrfbw57b79w/J7MfvDfkIkFZ+kj6zC3BjtUwh150HsSSdxXZcsuv72miDFQ==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "@types/esrecurse": "^4.3.1", + "@types/estree": "^1.0.8", + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-visitor-keys": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-5.0.1.tgz", + "integrity": "sha512-tD40eHxA35h0PEIZNeIjkHoDR4YjjJp34biM0mDvplBe//mB+IHCqHDGV7pxF+7MklTvighcCPPZC7ynWyjdTA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint/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/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/espree": { + "version": "11.2.0", + "resolved": "https://registry.npmjs.org/espree/-/espree-11.2.0.tgz", + "integrity": "sha512-7p3DrVEIopW1B1avAGLuCSh1jubc01H2JHc8B4qqGblmg5gI9yumBgACjWo4JlIc04ufug4xJ3SQI8HkS/Rgzw==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "acorn": "^8.16.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^5.0.1" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/esquery": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.7.0.tgz", + "integrity": "sha512-Ap6G0WQwcU/LHsvLwON1fAQX9Zp0A2Y6Y/cJBl9r/JbW90Zyg4/zbG6zzKa2OTALELarYHmKu0GhpM5EO+7T0g==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "estraverse": "^5.1.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "estraverse": "^5.2.0" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estree-walker": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz", + "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==", + "license": "MIT" + }, + "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/etag": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", + "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/expand-brackets": { + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/expand-brackets/-/expand-brackets-2.1.4.tgz", + "integrity": "sha512-w/ozOKR9Obk3qoWeY/WDi6MFta9AoMR+zud60mdnbniMcBxRuFJyDt2LdX/14A1UABeqk+Uk+LDfUpvoGKppZA==", + "dev": true, + "license": "MIT", + "dependencies": { + "debug": "^2.3.3", + "define-property": "^0.2.5", + "extend-shallow": "^2.0.1", + "posix-character-classes": "^0.1.0", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/expand-brackets/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/expand-brackets/node_modules/define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha512-Rr7ADjQZenceVOAKop6ALkkRAmH1A4Gx9hV/7ZujPUN2rkATqFO0JZLZInbAjpZYoJ1gUx8MRMQVkYemcbMSTA==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-descriptor": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/expand-brackets/node_modules/is-descriptor": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.7.tgz", + "integrity": "sha512-C3grZTvObeN1xud4cRWl366OMXZTj0+HGyk4hvfpx4ZHt1Pb60ANSXqCK7pdOTeUQpRzECBSTphqvD7U+l22Eg==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-accessor-descriptor": "^1.0.1", + "is-data-descriptor": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/expand-brackets/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "dev": true, + "license": "MIT" + }, + "node_modules/exsolve": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/exsolve/-/exsolve-1.0.8.tgz", + "integrity": "sha512-LmDxfWXwcTArk8fUEnOfSZpHOJ6zOMUJKOtFLFqJLoKJetuQG874Uc7/Kki7zFLzYybmZhp1M7+98pfMqeX8yA==", + "license": "MIT" + }, + "node_modules/extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-extendable": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/extglob": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/extglob/-/extglob-2.0.4.tgz", + "integrity": "sha512-Nmb6QXkELsuBr24CJSkilo6UHHgbekK5UiZgfE6UHD3Eb27YC6oD+bhcT+tJ6cl8dmsgdQxnWlcry8ksBIBLpw==", + "dev": true, + "license": "MIT", + "dependencies": { + "array-unique": "^0.3.2", + "define-property": "^1.0.0", + "expand-brackets": "^2.1.4", + "extend-shallow": "^2.0.1", + "fragment-cache": "^0.2.1", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.1" + }, + "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-glob": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.3.tgz", + "integrity": "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.8" + }, + "engines": { + "node": ">=8.6.0" + } + }, + "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/fastq": { + "version": "1.20.1", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.20.1.tgz", + "integrity": "sha512-GGToxJ/w1x32s/D2EKND7kTil4n8OVk/9mycTc4VDza13lOvpUZTGX3mFSCtV9ksdGBVzvsyAVLM6mHFThxXxw==", + "dev": true, + "license": "ISC", + "dependencies": { + "reusify": "^1.0.4" + } + }, + "node_modules/fdir": { + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", + "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", + "license": "MIT", + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "picomatch": "^3 || ^4" + }, + "peerDependenciesMeta": { + "picomatch": { + "optional": true + } + } + }, + "node_modules/file-entry-cache": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz", + "integrity": "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "flat-cache": "^4.0.0" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/fill-range": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", + "dev": true, + "license": "MIT", + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "dev": true, + "license": "MIT", + "dependencies": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/flat-cache": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-4.0.1.tgz", + "integrity": "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==", + "dev": true, + "license": "MIT", + "dependencies": { + "flatted": "^3.2.9", + "keyv": "^4.5.4" + }, + "engines": { + "node": ">=16" + } + }, + "node_modules/flatted": { + "version": "3.4.1", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.4.1.tgz", + "integrity": "sha512-IxfVbRFVlV8V/yRaGzk0UVIcsKKHMSfYw66T/u4nTwlWteQePsxe//LjudR1AMX4tZW3WFCh3Zqa/sjlqpbURQ==", + "dev": true, + "license": "ISC" + }, + "node_modules/follow-redirects": { + "version": "1.15.11", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.11.tgz", + "integrity": "sha512-deG2P0JfjrTxl50XGCDyfI97ZGVCxIpfKYmfyrQ54n5FO/0gfIES8C/Psl6kWVDolizcaaxZJnTS0QSMxvnsBQ==", + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/RubenVerborgh" + } + ], + "license": "MIT", + "engines": { + "node": ">=4.0" + }, + "peerDependenciesMeta": { + "debug": { + "optional": true + } + } + }, + "node_modules/for-each": { + "version": "0.3.5", + "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.5.tgz", + "integrity": "sha512-dKx12eRCVIzqCxFGplyFKJMPvLEWgmNtUrpTiJIR5u97zEhRG8ySrtboPHZXx7daLxQVrl643cTzbab2tkQjxg==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-callable": "^1.2.7" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/for-in": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz", + "integrity": "sha512-7EwmXrOjyL+ChxMhmG5lnW9MPt1aIeZEwKhQzoBUdTV0N3zuwWDZYVJatDvZ2OyzPUvdIAZDsCetk3coyMfcnQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/form-data": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.5.tgz", + "integrity": "sha512-8RipRLol37bNs2bhoV67fiTEvdTrbMUYcFTiy3+wuuOnUog2QBHCZWXDRijWQfAkhBj2Uf5UnVaiWwA5vdd82w==", + "license": "MIT", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "es-set-tostringtag": "^2.1.0", + "hasown": "^2.0.2", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/fragment-cache": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/fragment-cache/-/fragment-cache-0.2.1.tgz", + "integrity": "sha512-GMBAbW9antB8iZRHLoGw0b3HANt57diZYFO/HL1JGIC1MjKrdmhxvrJbupnVvpys0zsz7yBApXdQyfepKly2kA==", + "dev": true, + "license": "MIT", + "dependencies": { + "map-cache": "^0.2.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/fs-extra": { + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz", + "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/function-bind": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/function.prototype.name": { + "version": "1.1.8", + "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.8.tgz", + "integrity": "sha512-e5iwyodOHhbMr/yNrc7fDYG4qlbIvI5gajyzPnb5TCwyhjApznQh1BMFou9b30SevY43gCJKXycoCBjMbsuW0Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.3", + "define-properties": "^1.2.1", + "functions-have-names": "^1.2.3", + "hasown": "^2.0.2", + "is-callable": "^1.2.7" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/functions-have-names": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", + "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/generator-function": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/generator-function/-/generator-function-2.0.1.tgz", + "integrity": "sha512-SFdFmIJi+ybC0vjlHN0ZGVGHc3lgE0DxPAT0djjVg+kjOnSqclqmj0KQ7ykTOLP6YxoqOvuAODGdcHJn+43q3g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "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/get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "license": "ISC", + "engines": { + "node": "6.* || 8.* || >= 10.*" + } + }, + "node_modules/get-intrinsic": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", + "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.2", + "es-define-property": "^1.0.1", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.1.1", + "function-bind": "^1.1.2", + "get-proto": "^1.0.1", + "gopd": "^1.2.0", + "has-symbols": "^1.1.0", + "hasown": "^2.0.2", + "math-intrinsics": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", + "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", + "license": "MIT", + "dependencies": { + "dunder-proto": "^1.0.1", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/get-symbol-description": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.1.0.tgz", + "integrity": "sha512-w9UMqWwJxHNOvoNzSJ2oPF5wvYcvP7jUvYzhp67yEhTi17ZDBBC1z9pTdGuzjD+EFIqLSYRweZjqfiPzQ06Ebg==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.6" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-value": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/get-value/-/get-value-2.0.6.tgz", + "integrity": "sha512-Ln0UQDlxH1BapMu3GPtf7CuYNwRZf2gwCuPqbyG6pB8WfmFpzqcy4xtAaAMUhnNqjMKTiCPZG2oMT3YSx8U2NA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/globalthis": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.4.tgz", + "integrity": "sha512-DpLKbNU4WylpxJykQujfCcwYWiV/Jhm50Goo0wrVILAv5jOr9d+H+UR3PhSCD2rCCEIg0uc+G+muBTwD54JhDQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "define-properties": "^1.2.1", + "gopd": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/gopd": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", + "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/graceful-fs": { + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", + "dev": true, + "license": "ISC" + }, + "node_modules/has-ansi": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz", + "integrity": "sha512-C8vBJ8DwUCx19vhm7urhTuUsr4/IyP6l4VzNQDv+ryHQObW3TTTp9yB68WpYgRe2bbaGuZ/se74IqFeVnMnLZg==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^2.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/has-bigints": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.1.0.tgz", + "integrity": "sha512-R3pbpkcIqv2Pm3dUwgjclDRVmWpTJW2DcMzcIhEXEx1oh/CEMObMm3KLmRJOdvhM7o4uQBnwr8pzRK2sJWIqfg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-flag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-1.0.0.tgz", + "integrity": "sha512-DyYHfIYwAJmjAjSSPKANxI8bFY9YtFrgkAfinBojQ8YJTOuOuav64tMUJv584SES4xl74PmuaevIyaLESHdTAA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/has-property-descriptors": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz", + "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-define-property": "^1.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-proto": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.2.0.tgz", + "integrity": "sha512-KIL7eQPfHQRC8+XluaIw7BHUwwqL19bQn4hzNgdr+1wXoU0KKj6rufu47lhY7KbJR2C6T6+PfyN0Ea7wkSS+qQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "dunder-proto": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-symbols": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", + "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-tostringtag": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", + "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", + "license": "MIT", + "dependencies": { + "has-symbols": "^1.0.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-value": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-value/-/has-value-1.0.0.tgz", + "integrity": "sha512-IBXk4GTsLYdQ7Rvt+GRBrFSVEkmuOUy4re0Xjd9kJSUQpnTrWR4/y9RpfexN9vkAPMFuQoeWKwqzPozRTlasGw==", + "dev": true, + "license": "MIT", + "dependencies": { + "get-value": "^2.0.6", + "has-values": "^1.0.0", + "isobject": "^3.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/has-value/node_modules/isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/has-values": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-values/-/has-values-1.0.0.tgz", + "integrity": "sha512-ODYZC64uqzmtfGMEAX/FvZiRyWLpAC3vYnNunURUnkGVTS+mI0smVsWaPydRBsE3g+ok7h960jChO8mFcWlHaQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-number": "^3.0.0", + "kind-of": "^4.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/has-values/node_modules/is-number": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", + "integrity": "sha512-4cboCqIpliH+mAvFNegjZQ4kgKc3ZUhQVr3HvWbSh5q3WH2v82ct+T2Y1hdU5Gdtorx/cLifQjqCbL7bpznLTg==", + "dev": true, + "license": "MIT", + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/has-values/node_modules/is-number/node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/has-values/node_modules/kind-of": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-4.0.0.tgz", + "integrity": "sha512-24XsCxmEbRwEDbz/qz3stgin8TTzZ1ESR56OMCN0ujYg+vRutNSiOj9bHH9u85DKgXguraugV5sFuvbD4FW/hw==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/hasown": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", + "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", + "license": "MIT", + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/he": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", + "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==", + "dev": true, + "license": "MIT", + "bin": { + "he": "bin/he" + } + }, + "node_modules/hookable": { + "version": "5.5.3", + "resolved": "https://registry.npmjs.org/hookable/-/hookable-5.5.3.tgz", + "integrity": "sha512-Yc+BQe8SvoXH1643Qez1zqLRmbA5rCL+sSmk6TVos0LWVfNIB7PGncdlId77WzLGSIB5KaWgTaNTs2lNVEI6VQ==", + "license": "MIT" + }, + "node_modules/htmlparser2": { + "version": "3.10.1", + "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-3.10.1.tgz", + "integrity": "sha512-IgieNijUMbkDovyoKObU1DUhm1iwNYE/fuifEoEHfd1oZKZDaONBSkal7Y01shxsM49R4XaMdGez3WnF9UfiCQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "domelementtype": "^1.3.1", + "domhandler": "^2.3.0", + "domutils": "^1.5.1", + "entities": "^1.1.1", + "inherits": "^2.0.1", + "readable-stream": "^3.1.1" + } + }, + "node_modules/htmlparser2/node_modules/entities": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/entities/-/entities-1.1.2.tgz", + "integrity": "sha512-f2LZMYl1Fzu7YSBKg+RoROelpOaNrcGmE9AZubeDfrCEia483oW4MI4VyFd5VNHIgQ/7qm1I0wUHK1eJnn2y2w==", + "dev": true, + "license": "BSD-2-Clause" + }, + "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/image-size": { + "version": "0.5.5", + "resolved": "https://registry.npmjs.org/image-size/-/image-size-0.5.5.tgz", + "integrity": "sha512-6TDAlDPZxUFCv+fuOkIoXT/V/f3Qbq8e37p+YOiYrUv3v9cc3/6x78VdfPgFVaB9dZYeLUfKgHRebpkm/oP2VQ==", + "dev": true, + "license": "MIT", + "bin": { + "image-size": "bin/image-size.js" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/immutable": { + "version": "5.1.5", + "resolved": "https://registry.npmjs.org/immutable/-/immutable-5.1.5.tgz", + "integrity": "sha512-t7xcm2siw+hlUM68I+UEOK+z84RzmN59as9DZ7P1l0994DKUWV7UXBMQZVxaoMSRQ+PBZbHCOoBt7a2wxOMt+A==", + "dev": true, + "license": "MIT" + }, + "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/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "dev": true, + "license": "ISC" + }, + "node_modules/internal-slot": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.1.0.tgz", + "integrity": "sha512-4gd7VpWNQNB4UKKCFFVcp1AVv+FMOgs9NKzjHKusc8jTMhd5eL1NqQqOpE0KzMds804/yHlglp3uxgluOqAPLw==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "hasown": "^2.0.2", + "side-channel": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/is-accessor-descriptor": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.1.tgz", + "integrity": "sha512-YBUanLI8Yoihw923YeFUS5fs0fF2f5TSFTNiYAAzhhDscDa3lEqYuz1pDOEP5KvX94I9ey3vsqjJcLVFVU+3QA==", + "dev": true, + "license": "MIT", + "dependencies": { + "hasown": "^2.0.0" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/is-array-buffer": { + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.5.tgz", + "integrity": "sha512-DDfANUiiG2wC1qawP66qlTugJeL5HyzMpfr8lLK+jMQirGzNod0B12cFB/9q838Ru27sBwfw78/rdoU7RERz6A==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.3", + "get-intrinsic": "^1.2.6" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-async-function": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-async-function/-/is-async-function-2.1.1.tgz", + "integrity": "sha512-9dgM/cZBnNvjzaMYHVoxxfPj2QXt22Ev7SuuPrs+xav0ukGB0S6d4ydZdEiM48kLx5kDV+QBPrpVnFyefL8kkQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "async-function": "^1.0.0", + "call-bound": "^1.0.3", + "get-proto": "^1.0.1", + "has-tostringtag": "^1.0.2", + "safe-regex-test": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-bigint": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.1.0.tgz", + "integrity": "sha512-n4ZT37wG78iz03xPRKJrHTdZbe3IicyucEtdRsV5yglwc3GyUfbAfpSeD0FJ41NbUNSt5wbhqfp1fS+BgnvDFQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "has-bigints": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-boolean-object": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.2.2.tgz", + "integrity": "sha512-wa56o2/ElJMYqjCjGkXri7it5FbebW5usLw/nPmCMs5DeZ7eziSYZhSmPRn0txqeW4LnAmQQU7FgqLpsEFKM4A==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3", + "has-tostringtag": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-buffer": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", + "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", + "dev": true, + "license": "MIT" + }, + "node_modules/is-callable": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", + "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-data-descriptor": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.1.tgz", + "integrity": "sha512-bc4NlCDiCr28U4aEsQ3Qs2491gVq4V8G7MQyws968ImqjKuYtTJXrl7Vq7jsN7Ly/C3xj5KWFrY7sHNeDkAzXw==", + "dev": true, + "license": "MIT", + "dependencies": { + "hasown": "^2.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/is-data-view": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-data-view/-/is-data-view-1.0.2.tgz", + "integrity": "sha512-RKtWF8pGmS87i2D6gqQu/l7EYRlVdfzemCJN/P3UOs//x1QE7mfhvzHIApBTRf7axvT6DMGwSwBXYCT0nfB9xw==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "get-intrinsic": "^1.2.6", + "is-typed-array": "^1.1.13" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-date-object": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.1.0.tgz", + "integrity": "sha512-PwwhEakHVKTdRNVOw+/Gyh0+MzlCl4R6qKvkhuvLtPMggI1WAHt9sOwZxQLSGpUaDnrdyDsomoRgNnCfKNSXXg==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "has-tostringtag": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-descriptor": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.3.tgz", + "integrity": "sha512-JCNNGbwWZEVaSPtS45mdtrneRWJFp07LLmykxeFV5F6oBvNF8vHSfJuJgoT472pSfk+Mf8VnlrspaFBHWM8JAw==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-accessor-descriptor": "^1.0.1", + "is-data-descriptor": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/is-docker": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-3.0.0.tgz", + "integrity": "sha512-eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ==", + "dev": true, + "license": "MIT", + "bin": { + "is-docker": "cli.js" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "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-finalizationregistry": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-finalizationregistry/-/is-finalizationregistry-1.1.1.tgz", + "integrity": "sha512-1pC6N8qWJbWoPtEjgcL2xyhQOP491EQjeUo3qTKcmV8YSDDJrOepfG8pcC7h/QgnQHYSv0mJ3Z/ZWxmatVrysg==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/is-generator-function": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/is-generator-function/-/is-generator-function-1.1.2.tgz", + "integrity": "sha512-upqt1SkGkODW9tsGNG5mtXTXtECizwtS2kA161M+gJPc1xdb/Ax629af6YrTwcOeQHbewrPNlE5Dx7kzvXTizA==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.4", + "generator-function": "^2.0.0", + "get-proto": "^1.0.1", + "has-tostringtag": "^1.0.2", + "safe-regex-test": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "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/is-inside-container": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-inside-container/-/is-inside-container-1.0.0.tgz", + "integrity": "sha512-KIYLCCJghfHZxqjYBE7rEy0OBuTd5xCHS7tHVgvCLkx7StIoaxwNW3hCALgEUjFfeRk+MG/Qxmp/vtETEF3tRA==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-docker": "^3.0.0" + }, + "bin": { + "is-inside-container": "cli.js" + }, + "engines": { + "node": ">=14.16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-map": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/is-map/-/is-map-2.0.3.tgz", + "integrity": "sha512-1Qed0/Hr2m+YqxnM09CjA2d/i6YZNfF6R2oRAOj36eUdS6qIV/huPJNSEpKbupewFs+ZsJlxsjjPbc0/afW6Lw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-negative-zero": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.3.tgz", + "integrity": "sha512-5KoIu2Ngpyek75jXodFvnafB6DJgr3u8uuK0LEZJjrU19DrMD3EVERaR8sjz8CCGgpZvxPl9SuE1GMVPFHx1mw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/is-number-object": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.1.1.tgz", + "integrity": "sha512-lZhclumE1G6VYD8VHe35wFaIif+CTy5SJIi5+3y4psDgWu4wPDoBhF8NxUOinEc7pHgiTsT6MaBb92rKhhD+Xw==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3", + "has-tostringtag": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-plain-obj": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-1.1.0.tgz", + "integrity": "sha512-yvkRyxmFKEOQ4pNXCmJG5AEQNlXJS5LaONXo5/cLdTZdWvsZ1ioJEonLGAosKlMWE8lwUy/bJzMjcw8az73+Fg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-plain-object": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", + "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", + "dev": true, + "license": "MIT", + "dependencies": { + "isobject": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-plain-object/node_modules/isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-regex": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.2.1.tgz", + "integrity": "sha512-MjYsKHO5O7mCsmRGxWcLWheFqN9DJ/2TmngvjKXihe6efViPqc274+Fx/4fYj/r03+ESvBdTXK0V6tA3rgez1g==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "gopd": "^1.2.0", + "has-tostringtag": "^1.0.2", + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-set": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/is-set/-/is-set-2.0.3.tgz", + "integrity": "sha512-iPAjerrse27/ygGLxw+EBR9agv9Y6uLeYVJMu+QNCoouJ1/1ri0mGrcWpfCqFZuzzx3WjtwxG098X+n4OuRkPg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-shared-array-buffer": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.4.tgz", + "integrity": "sha512-ISWac8drv4ZGfwKl5slpHG9OwPNty4jOWPRIhBpxOoD+hqITiwuipOQ2bNthAzwA3B4fIjO4Nln74N0S9byq8A==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-string": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.1.1.tgz", + "integrity": "sha512-BtEeSsoaQjlSPBemMQIrY1MY0uM6vnS1g5fmufYOtnxLGUZM2178PKbhsk7Ffv58IX+ZtcvoGwccYsh0PglkAA==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3", + "has-tostringtag": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-symbol": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.1.1.tgz", + "integrity": "sha512-9gGx6GTtCQM73BgmHQXfDmLtfjjTUDSyoxTCbp5WtoixAhfgsDirWIcVQ/IHpvI5Vgd5i/J5F7B9cN/WlVbC/w==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "has-symbols": "^1.1.0", + "safe-regex-test": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-typed-array": { + "version": "1.1.15", + "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.15.tgz", + "integrity": "sha512-p3EcsicXjit7SaskXHs1hA91QxgTw46Fv6EFKKGS5DRFLD8yKnohjF3hxoju94b/OcMZoQukzpPpBE9uLVKzgQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "which-typed-array": "^1.1.16" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-weakmap": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/is-weakmap/-/is-weakmap-2.0.2.tgz", + "integrity": "sha512-K5pXYOm9wqY1RgjpL3YTkF39tni1XajUIkawTLUo9EZEVUFga5gSQJF8nNS7ZwJQ02y+1YCNYcMh+HIf1ZqE+w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-weakref": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.1.1.tgz", + "integrity": "sha512-6i9mGWSlqzNMEqpCp93KwRS1uUOodk2OJ6b+sq7ZPDSy2WuI5NFIxp/254TytR8ftefexkWn5xNiHUNpPOfSew==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-weakset": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/is-weakset/-/is-weakset-2.0.4.tgz", + "integrity": "sha512-mfcwb6IzQyOKTs84CQMrOwW4gQcaTOAWJ0zzJCl2WSPDrWk/OzDaImWFH3djXhb24g4eudZfLRozAvPGw4d9hQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3", + "get-intrinsic": "^1.2.6" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-what": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/is-what/-/is-what-5.5.0.tgz", + "integrity": "sha512-oG7cgbmg5kLYae2N5IVd3jm2s+vldjxJzK1pcu9LfpGuQ93MQSzo0okvRna+7y5ifrD+20FE8FvjusyGaz14fw==", + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/mesqueeb" + } + }, + "node_modules/is-windows": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-windows/-/is-windows-1.0.2.tgz", + "integrity": "sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-wsl": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-3.1.1.tgz", + "integrity": "sha512-e6rvdUCiQCAuumZslxRJWR/Doq4VpPR82kqclvcS0efgt430SlGIk05vdCN58+VrzgtIcfNODjozVielycD4Sw==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-inside-container": "^1.0.0" + }, + "engines": { + "node": ">=16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/isexe": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-3.1.5.tgz", + "integrity": "sha512-6B3tLtFqtQS4ekarvLVMZ+X+VlvQekbe4taUkf/rhVO3d/h0M2rfARm/pXLcPEsjjMsFgrFgSrhQIxcSVrBz8w==", + "dev": true, + "license": "BlueOak-1.0.0", + "engines": { + "node": ">=18" + } + }, + "node_modules/isobject": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-2.1.0.tgz", + "integrity": "sha512-+OUdGJlgjOBZDfxnDjYYG6zp487z0JGNQq3cYQYg5f5hKR+syHMsaztzGeml/4kGG55CSpKSpWTY+jYGgsHLgA==", + "dev": true, + "license": "MIT", + "dependencies": { + "isarray": "1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/js-base64": { + "version": "2.6.4", + "resolved": "https://registry.npmjs.org/js-base64/-/js-base64-2.6.4.tgz", + "integrity": "sha512-pZe//GGmwJndub7ZghVHz7vjb2LgC1m8B07Au3eYqeqv9emhESByMXxaEgkUkEqJe87oBbSniGYoQNIBklc7IQ==", + "dev": true, + "license": "BSD-3-Clause" + }, + "node_modules/js-cookie": { + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/js-cookie/-/js-cookie-3.0.5.tgz", + "integrity": "sha512-cEiJEAEoIbWfCZYKWhVwFuvPX1gETRYPw6LlaTKoxD3s2AkXzkCjnp6h0V77ozyqj0jakteJ4YqDJT830+lVGw==", + "license": "MIT", + "engines": { + "node": ">=14" + } + }, + "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/jsbarcode": { + "version": "3.12.3", + "resolved": "https://registry.npmjs.org/jsbarcode/-/jsbarcode-3.12.3.tgz", + "integrity": "sha512-CuHU9hC6dPsHF5oVFMo8NW76uQVjH4L22CsP4hW+dNnGywJHC/B0ThA1CTDVLnxKLrrpYdicBLnd2xsgTfRnvg==", + "license": "MIT" + }, + "node_modules/jsesc": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz", + "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==", + "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-parse-even-better-errors": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-4.0.0.tgz", + "integrity": "sha512-lR4MXjGNgkJc7tkQ97kb2nuEMnNCyU//XYVH0MKTGcXEiSudQ5MKGKen3C5QubYy0vmq+JGitUg92uuywGEwIA==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.17.0 || >=20.5.0" + } + }, + "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==", + "license": "MIT", + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/jsonfile": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.2.0.tgz", + "integrity": "sha512-FGuPw30AdOIUTRMC2OMRtQV+jkVj2cfPqSeWXv1NEAJ1qZ5zb1X6z1mFhbfOB/iy3ssJCD+3KuZ8r8C3uVFlAg==", + "dev": true, + "license": "MIT", + "dependencies": { + "universalify": "^2.0.0" + }, + "optionalDependencies": { + "graceful-fs": "^4.1.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/kind-of": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", + "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/kolorist": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/kolorist/-/kolorist-1.8.0.tgz", + "integrity": "sha512-Y+60/zizpJ3HRH8DCss+q95yr6145JXZo46OTpFvDZWLfRCE4qChOyk1b26nMaNpfHHgxagk9dXT5OP0Tfe+dQ==", + "dev": true, + "license": "MIT" + }, + "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/loader-utils": { + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-1.4.2.tgz", + "integrity": "sha512-I5d00Pd/jwMD2QCduo657+YM/6L3KZu++pmX9VFncxaxvHcru9jx1lBaFft+r4Mt2jK0Yhp41XlRAihzPxHNCg==", + "dev": true, + "license": "MIT", + "dependencies": { + "big.js": "^5.2.2", + "emojis-list": "^3.0.0", + "json5": "^1.0.1" + }, + "engines": { + "node": ">=4.0.0" + } + }, + "node_modules/loader-utils/node_modules/json5": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", + "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", + "dev": true, + "license": "MIT", + "dependencies": { + "minimist": "^1.2.0" + }, + "bin": { + "json5": "lib/cli.js" + } + }, + "node_modules/local-pkg": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/local-pkg/-/local-pkg-1.1.2.tgz", + "integrity": "sha512-arhlxbFRmoQHl33a0Zkle/YWlmNwoyt6QNZEIJcqNbdrsix5Lvc4HyyI3EnwxTYlZYc32EbYrQ8SzEZ7dqgg9A==", + "license": "MIT", + "dependencies": { + "mlly": "^1.7.4", + "pkg-types": "^2.3.0", + "quansync": "^0.2.11" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/antfu" + } + }, + "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", + "peer": true + }, + "node_modules/lodash-es": { + "version": "4.17.23", + "resolved": "https://registry.npmjs.org/lodash-es/-/lodash-es-4.17.23.tgz", + "integrity": "sha512-kVI48u3PZr38HdYz98UmfPnXl2DXrpdctLrFLCd3kOx1xUkOmpFPx7gCWWM5MPkL/fD8zb+Ph0QzjGFs4+hHWg==", + "license": "MIT", + "peer": true + }, + "node_modules/lodash-unified": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/lodash-unified/-/lodash-unified-1.0.3.tgz", + "integrity": "sha512-WK9qSozxXOD7ZJQlpSqOT+om2ZfcT4yO+03FuzAHD0wF6S0l0090LRPDx3vhTTLZ8cFKpBn+IOcVXK6qOcIlfQ==", + "license": "MIT", + "peerDependencies": { + "@types/lodash-es": "*", + "lodash": "*", + "lodash-es": "*" + } + }, + "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/magic-string": { + "version": "0.30.21", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz", + "integrity": "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==", + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.5" + } + }, + "node_modules/magic-string-ast": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/magic-string-ast/-/magic-string-ast-1.0.3.tgz", + "integrity": "sha512-CvkkH1i81zl7mmb94DsRiFeG9V2fR2JeuK8yDgS8oiZSFa++wWLEgZ5ufEOyLHbvSbD1gTRKv9NdX69Rnvr9JA==", + "license": "MIT", + "dependencies": { + "magic-string": "^0.30.19" + }, + "engines": { + "node": ">=20.19.0" + }, + "funding": { + "url": "https://github.com/sponsors/sxzz" + } + }, + "node_modules/map-cache": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/map-cache/-/map-cache-0.2.2.tgz", + "integrity": "sha512-8y/eV9QQZCiyn1SprXSrCmqJN0yNRATe+PO8ztwqrvrbdRLA3eYJF0yaR0YayLWkMbsQSKWS9N2gPcGEc4UsZg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/map-visit": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/map-visit/-/map-visit-1.0.0.tgz", + "integrity": "sha512-4y7uGv8bd2WdM9vpQsiQNo41Ln1NvhvDRuVt0k2JZQ+ezN2uaQes7lZeZ+QQUHOLQAtDaBJ+7wCbi+ab/KFs+w==", + "dev": true, + "license": "MIT", + "dependencies": { + "object-visit": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/math-intrinsics": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", + "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/mdn-data": { + "version": "2.0.14", + "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.14.tgz", + "integrity": "sha512-dn6wd0uw5GsdswPFfsgMp5NSB0/aDe6fK94YJV/AJDYXL6HVLWBsxeq7js7Ad+mU2K9LAlwpk6kN2D5mwCPVow==", + "dev": true, + "license": "CC0-1.0" + }, + "node_modules/memoize-one": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/memoize-one/-/memoize-one-6.0.0.tgz", + "integrity": "sha512-rkpe71W0N0c0Xz6QD0eJETuWAJGnJ9afsl1srmwPrI+yBCkge5EycXXbYRyvL29zZVUWQCY7InPRCv3GDXuZNw==", + "license": "MIT" + }, + "node_modules/memorystream": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/memorystream/-/memorystream-0.3.1.tgz", + "integrity": "sha512-S3UwM3yj5mtUSEfP41UZmt/0SCoVYUcU1rkXv+BQ5Ig8ndL4sPoJNBUJERafdPb5jjHJGuMgytgKvKIf58XNBw==", + "dev": true, + "engines": { + "node": ">= 0.10.0" + } + }, + "node_modules/merge-options": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/merge-options/-/merge-options-1.0.1.tgz", + "integrity": "sha512-iuPV41VWKWBIOpBsjoxjDZw8/GbSfZ2mk7N1453bwMrfzdrIk7EzBd+8UVR6rkw67th7xnk9Dytl3J+lHPdxvg==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-plain-obj": "^1.1" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/merge2": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 8" + } + }, + "node_modules/micromatch": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", + "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", + "dev": true, + "license": "MIT", + "dependencies": { + "braces": "^3.0.3", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/micromatch/node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "license": "MIT", + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/minimatch": { + "version": "10.2.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.4.tgz", + "integrity": "sha512-oRjTw/97aTBN0RHbYCdtF1MQfvusSIBQM0IZEgzl6426+8jSC0nF1a/GmnVLpfB9yyr6g6FTqWqiZVbxrtaCIg==", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "brace-expansion": "^5.0.2" + }, + "engines": { + "node": "18 || 20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/minimist": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", + "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/mitt": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/mitt/-/mitt-3.0.1.tgz", + "integrity": "sha512-vKivATfr97l2/QBCYAkXYDbrIWPM2IIKEl7YPhjCvKlG3kE2gm+uBo6nEXK3M5/Ffh/FLpKExzOQ3JJoJGFKBw==", + "license": "MIT" + }, + "node_modules/mixin-deep": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/mixin-deep/-/mixin-deep-1.3.2.tgz", + "integrity": "sha512-WRoDn//mXBiJ1H40rqa3vH0toePwSsGb45iInWlTySa+Uu4k3tYUSxa2v1KqAiLtvlrSzaExqS1gtk96A9zvEA==", + "dev": true, + "license": "MIT", + "dependencies": { + "for-in": "^1.0.2", + "is-extendable": "^1.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/mixin-deep/node_modules/is-extendable": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", + "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-plain-object": "^2.0.4" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/mlly": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/mlly/-/mlly-1.8.0.tgz", + "integrity": "sha512-l8D9ODSRWLe2KHJSifWGwBqpTZXIXTeo8mlKjY+E2HAakaTeNpqAyBZ8GSqLzHgw4XmHmC8whvpjJNMbFZN7/g==", + "license": "MIT", + "dependencies": { + "acorn": "^8.15.0", + "pathe": "^2.0.3", + "pkg-types": "^1.3.1", + "ufo": "^1.6.1" + } + }, + "node_modules/mlly/node_modules/confbox": { + "version": "0.1.8", + "resolved": "https://registry.npmjs.org/confbox/-/confbox-0.1.8.tgz", + "integrity": "sha512-RMtmw0iFkeR4YV+fUOSucriAQNb9g8zFR52MWCtl+cCZOFRNL6zeB395vPzFhEjjn4fMxXudmELnl/KF/WrK6w==", + "license": "MIT" + }, + "node_modules/mlly/node_modules/pkg-types": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/pkg-types/-/pkg-types-1.3.1.tgz", + "integrity": "sha512-/Jm5M4RvtBFVkKWRu2BLUTNP8/M2a+UwuAX+ae4770q1qVGtfjG+WTCupoZixokjmHiry8uI+dlY8KXYV5HVVQ==", + "license": "MIT", + "dependencies": { + "confbox": "^0.1.8", + "mlly": "^1.7.4", + "pathe": "^2.0.1" + } + }, + "node_modules/mrmime": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/mrmime/-/mrmime-2.0.1.tgz", + "integrity": "sha512-Y3wQdFg2Va6etvQ5I82yUhGdsKrcYox6p7FfL1LbK2J4V01F9TGlepTIhnK24t7koZibmg82KGglhA1XK5IsLQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + } + }, + "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/muggle-string": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/muggle-string/-/muggle-string-0.4.1.tgz", + "integrity": "sha512-VNTrAak/KhO2i8dqqnqnAHOa3cYBwXEZe9h+D5h/1ZqFSTEFHdM65lR7RoIqq3tBBYavsOXV84NoHXZ0AkPyqQ==", + "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==", + "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/nanomatch": { + "version": "1.2.13", + "resolved": "https://registry.npmjs.org/nanomatch/-/nanomatch-1.2.13.tgz", + "integrity": "sha512-fpoe2T0RbHwBTBUOftAfBPaDEi06ufaUai0mE6Yn1kacc3SnTErfb/h+X94VXzI64rKFHYImXSvdwGGCmwOqCA==", + "dev": true, + "license": "MIT", + "dependencies": { + "arr-diff": "^4.0.0", + "array-unique": "^0.3.2", + "define-property": "^2.0.2", + "extend-shallow": "^3.0.2", + "fragment-cache": "^0.2.1", + "is-windows": "^1.0.2", + "kind-of": "^6.0.2", + "object.pick": "^1.3.0", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/nanomatch/node_modules/define-property": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-2.0.2.tgz", + "integrity": "sha512-jwK2UV4cnPpbcG7+VRARKTZPUWowwXA8bzH5NP6ud0oeAxyYPuGZUAC7hMugpCdz4BeSZl2Dl9k66CHJ/46ZYQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-descriptor": "^1.0.2", + "isobject": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/nanomatch/node_modules/extend-shallow": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz", + "integrity": "sha512-BwY5b5Ql4+qZoefgMj2NUmx+tehVTH/Kf4k1ZEtOHNFcm2wSxMRo992l6X3TIgni2eZVTZ85xMOjF31fwZAj6Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "assign-symbols": "^1.0.0", + "is-extendable": "^1.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/nanomatch/node_modules/is-extendable": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", + "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-plain-object": "^2.0.4" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/nanomatch/node_modules/isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/nanomatch/node_modules/kind-of": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", + "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "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-addon-api": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-7.1.1.tgz", + "integrity": "sha512-5m3bsyrjFWE1xf7nz7YXdN4udnVtXK6/Yfgn5qnahL6bCkf2yKt4k3nuTKAtT4r3IG8JNR2ncsIMdZuAzJjHQQ==", + "dev": true, + "license": "MIT", + "optional": true + }, + "node_modules/node-releases": { + "version": "2.0.36", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.36.tgz", + "integrity": "sha512-TdC8FSgHz8Mwtw9g5L4gR/Sh9XhSP/0DEkQxfEFXOpiul5IiHgHan2VhYYb6agDSfp4KuvltmGApc8HMgUrIkA==", + "dev": true, + "license": "MIT" + }, + "node_modules/normalize-wheel-es": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/normalize-wheel-es/-/normalize-wheel-es-1.2.0.tgz", + "integrity": "sha512-Wj7+EJQ8mSuXr2iWfnujrimU35R2W4FAErEyTmJoJ7ucwTn2hOUSsRehMb5RSYkxXGTM7Y9QpvPmp++w5ftoJw==", + "license": "BSD-3-Clause" + }, + "node_modules/npm-normalize-package-bin": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/npm-normalize-package-bin/-/npm-normalize-package-bin-4.0.0.tgz", + "integrity": "sha512-TZKxPvItzai9kN9H/TkmCtx/ZN/hvr3vUycjlfmH0ootY9yFBzNOpiXAdIn1Iteqsvk4lQn6B5PTrt+n6h8k/w==", + "dev": true, + "license": "ISC", + "engines": { + "node": "^18.17.0 || >=20.5.0" + } + }, + "node_modules/npm-run-all2": { + "version": "8.0.4", + "resolved": "https://registry.npmjs.org/npm-run-all2/-/npm-run-all2-8.0.4.tgz", + "integrity": "sha512-wdbB5My48XKp2ZfJUlhnLVihzeuA1hgBnqB2J9ahV77wLS+/YAJAlN8I+X3DIFIPZ3m5L7nplmlbhNiFDmXRDA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^6.2.1", + "cross-spawn": "^7.0.6", + "memorystream": "^0.3.1", + "picomatch": "^4.0.2", + "pidtree": "^0.6.0", + "read-package-json-fast": "^4.0.0", + "shell-quote": "^1.7.3", + "which": "^5.0.0" + }, + "bin": { + "npm-run-all": "bin/npm-run-all/index.js", + "npm-run-all2": "bin/npm-run-all/index.js", + "run-p": "bin/run-p/index.js", + "run-s": "bin/run-s/index.js" + }, + "engines": { + "node": "^20.5.0 || >=22.0.0", + "npm": ">= 10" + } + }, + "node_modules/nprogress": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/nprogress/-/nprogress-0.2.0.tgz", + "integrity": "sha512-I19aIingLgR1fmhftnbWWO3dXc0hSxqHQHQb3H8m+K3TnEn/iSeTZZOyvKXWqQESMwuUVnatlCnZdLBZZt2VSA==", + "license": "MIT" + }, + "node_modules/nth-check": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-2.1.1.tgz", + "integrity": "sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "boolbase": "^1.0.0" + }, + "funding": { + "url": "https://github.com/fb55/nth-check?sponsor=1" + } + }, + "node_modules/object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-copy": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/object-copy/-/object-copy-0.1.0.tgz", + "integrity": "sha512-79LYn6VAb63zgtmAteVOWo9Vdj71ZVBy3Pbse+VqxDpEP83XuujMrGqHIwAXJ5I/aM0zU7dIyIAhifVTPrNItQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "copy-descriptor": "^0.1.0", + "define-property": "^0.2.5", + "kind-of": "^3.0.3" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-copy/node_modules/define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha512-Rr7ADjQZenceVOAKop6ALkkRAmH1A4Gx9hV/7ZujPUN2rkATqFO0JZLZInbAjpZYoJ1gUx8MRMQVkYemcbMSTA==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-descriptor": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-copy/node_modules/is-descriptor": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.7.tgz", + "integrity": "sha512-C3grZTvObeN1xud4cRWl366OMXZTj0+HGyk4hvfpx4ZHt1Pb60ANSXqCK7pdOTeUQpRzECBSTphqvD7U+l22Eg==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-accessor-descriptor": "^1.0.1", + "is-data-descriptor": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/object-copy/node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-inspect": { + "version": "1.13.4", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz", + "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object-keys": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", + "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/object-visit": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/object-visit/-/object-visit-1.0.1.tgz", + "integrity": "sha512-GBaMwwAVK9qbQN3Scdo0OyvgPW7l3lnaVMj84uTOZlswkX0KpF6fyDBJhtTthf7pymztoN36/KEr1DyhF96zEA==", + "dev": true, + "license": "MIT", + "dependencies": { + "isobject": "^3.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-visit/node_modules/isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object.assign": { + "version": "4.1.7", + "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.7.tgz", + "integrity": "sha512-nK28WOo+QIjBkDduTINE4JkF/UJJKyf2EJxvJKfblDpyg0Q+pkOHNTL0Qwy6NP6FhE/EnzV73BxxqcJaXY9anw==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.3", + "define-properties": "^1.2.1", + "es-object-atoms": "^1.0.0", + "has-symbols": "^1.1.0", + "object-keys": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object.pick": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/object.pick/-/object.pick-1.3.0.tgz", + "integrity": "sha512-tqa/UMy/CCoYmj+H5qc07qvSL9dqcs/WZENZ1JbtWBlATP+iVOe778gE6MSijnyCnORzDuX6hU+LA4SZ09YjFQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "isobject": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object.pick/node_modules/isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/ohash": { + "version": "2.0.11", + "resolved": "https://registry.npmjs.org/ohash/-/ohash-2.0.11.tgz", + "integrity": "sha512-RdR9FQrFwNBNXAr4GixM8YaRZRJ5PUWbKYbE5eOsrwAjJW0q2REGcf79oYPsLyskQCZG1PLN+S/K1V00joZAoQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/open": { + "version": "10.2.0", + "resolved": "https://registry.npmjs.org/open/-/open-10.2.0.tgz", + "integrity": "sha512-YgBpdJHPyQ2UE5x+hlSXcnejzAvD0b22U2OuAP+8OnlJT+PjWPxtgmGqKKc+RgTM63U9gN0YzrYc71R2WT/hTA==", + "dev": true, + "license": "MIT", + "dependencies": { + "default-browser": "^5.2.1", + "define-lazy-prop": "^3.0.0", + "is-inside-container": "^1.0.0", + "wsl-utils": "^0.1.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "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/own-keys": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/own-keys/-/own-keys-1.0.1.tgz", + "integrity": "sha512-qFOyK5PjiWZd+QQIh+1jhdb9LpxTF0qs7Pm8o5QHYZ0M3vKqSqzsZaEB6oWlxZ+q2sJBMI/Ktgd2N5ZwQoRHfg==", + "dev": true, + "license": "MIT", + "dependencies": { + "get-intrinsic": "^1.2.6", + "object-keys": "^1.1.1", + "safe-push-apply": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "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/p-try": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/pascalcase": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/pascalcase/-/pascalcase-0.1.1.tgz", + "integrity": "sha512-XHXfu/yOQRy9vYOtUDVMN60OEJjW013GoObG1o+xwQTpB9eYJX/BjXMsdW13ZDPruFhYYn0AG22w0xgQMwl3Nw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/path-browserify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-browserify/-/path-browserify-1.0.1.tgz", + "integrity": "sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==", + "license": "MIT" + }, + "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==", + "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/path-to-regexp": { + "version": "8.3.0", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-8.3.0.tgz", + "integrity": "sha512-7jdwVIRtsP8MYpdXSwOS0YdD0Du+qOoF/AEPIt88PcCFrZCzx41oxku1jD88hZBwbNUIEfpqvuhjFaMAqMTWnA==", + "license": "MIT", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/pathe": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/pathe/-/pathe-2.0.3.tgz", + "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==", + "license": "MIT" + }, + "node_modules/perfect-debounce": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/perfect-debounce/-/perfect-debounce-1.0.0.tgz", + "integrity": "sha512-xCy9V055GLEqoFaHoC1SoLIaLmWctgCUaBaWxDZ7/Zx4CTyX7cJQLJOok/orfjZAh9kEYpjJa4d0KcJmCbctZA==", + "license": "MIT" + }, + "node_modules/picocolors": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", + "license": "ISC" + }, + "node_modules/picomatch": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz", + "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/pidtree": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/pidtree/-/pidtree-0.6.0.tgz", + "integrity": "sha512-eG2dWTVw5bzqGRztnHExczNxt5VGsE6OwTeCG3fdUf9KBsZzO3R5OIIIzWR+iZA0NtZ+RDVdaoE2dK1cn6jH4g==", + "dev": true, + "license": "MIT", + "bin": { + "pidtree": "bin/pidtree.js" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/pinia": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/pinia/-/pinia-3.0.4.tgz", + "integrity": "sha512-l7pqLUFTI/+ESXn6k3nu30ZIzW5E2WZF/LaHJEpoq6ElcLD+wduZoB2kBN19du6K/4FDpPMazY2wJr+IndBtQw==", + "license": "MIT", + "peer": true, + "dependencies": { + "@vue/devtools-api": "^7.7.7" + }, + "funding": { + "url": "https://github.com/sponsors/posva" + }, + "peerDependencies": { + "typescript": ">=4.5.0", + "vue": "^3.5.11" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/pkg-types": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/pkg-types/-/pkg-types-2.3.0.tgz", + "integrity": "sha512-SIqCzDRg0s9npO5XQ3tNZioRY1uK06lA41ynBC1YmFTmnY6FjUjVt6s4LoADmwoig1qqD0oK8h1p/8mlMx8Oig==", + "license": "MIT", + "dependencies": { + "confbox": "^0.2.2", + "exsolve": "^1.0.7", + "pathe": "^2.0.3" + } + }, + "node_modules/pngjs": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/pngjs/-/pngjs-5.0.0.tgz", + "integrity": "sha512-40QW5YalBNfQo5yRYmiw7Yz6TKKVr3h6970B2YE+3fQpsWcrbj1PzJgxeJ19DRQjhMbKPIuMY8rFaXc8moolVw==", + "license": "MIT", + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/posix-character-classes": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/posix-character-classes/-/posix-character-classes-0.1.1.tgz", + "integrity": "sha512-xTgYBc3fuo7Yt7JbiuFxSYGToMoz8fLoE6TC9Wx1P/u+LfeThMOAqmuyECnlBaaJb+u1m9hHiXUEtwW4OzfUJg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/possible-typed-array-names": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/possible-typed-array-names/-/possible-typed-array-names-1.1.0.tgz", + "integrity": "sha512-/+5VFTchJDoVj3bhoqi6UeymcD00DAwb1nJwamzPvHEszJ4FpF6SNNbUbOS8yI56qHzdV8eK0qEfOSiodkTdxg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/postcss": { + "version": "8.5.8", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.8.tgz", + "integrity": "sha512-OW/rX8O/jXnm82Ey1k44pObPtdblfiuWnrd8X7GJ7emImCOstunGbXUpp7HdBrFQX6rJzn3sPT397Wp5aCwCHg==", + "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", + "peer": true, + "dependencies": { + "nanoid": "^3.3.11", + "picocolors": "^1.1.1", + "source-map-js": "^1.2.1" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/postcss-prefix-selector": { + "version": "1.16.1", + "resolved": "https://registry.npmjs.org/postcss-prefix-selector/-/postcss-prefix-selector-1.16.1.tgz", + "integrity": "sha512-Umxu+FvKMwlY6TyDzGFoSUnzW+NOfMBLyC1tAkIjgX+Z/qGspJeRjVC903D7mx7TuBpJlwti2ibXtWuA7fKMeQ==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "postcss": ">4 <9" + } + }, + "node_modules/postcss-selector-parser": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-7.1.1.tgz", + "integrity": "sha512-orRsuYpJVw8LdAwqqLykBj9ecS5/cRHlI5+nvTo8LcCKmzDmqVORXtOIYEEQuL9D4BxtA1lm5isAqzQZCoQ6Eg==", + "dev": true, + "license": "MIT", + "dependencies": { + "cssesc": "^3.0.0", + "util-deprecate": "^1.0.2" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/posthtml": { + "version": "0.9.2", + "resolved": "https://registry.npmjs.org/posthtml/-/posthtml-0.9.2.tgz", + "integrity": "sha512-spBB5sgC4cv2YcW03f/IAUN1pgDJWNWD8FzkyY4mArLUMJW+KlQhlmUdKAHQuPfb00Jl5xIfImeOsf6YL8QK7Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "posthtml-parser": "^0.2.0", + "posthtml-render": "^1.0.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/posthtml-parser": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/posthtml-parser/-/posthtml-parser-0.2.1.tgz", + "integrity": "sha512-nPC53YMqJnc/+1x4fRYFfm81KV2V+G9NZY+hTohpYg64Ay7NemWWcV4UWuy/SgMupqQ3kJ88M/iRfZmSnxT+pw==", + "dev": true, + "license": "MIT", + "dependencies": { + "htmlparser2": "^3.8.3", + "isobject": "^2.1.0" + } + }, + "node_modules/posthtml-rename-id": { + "version": "1.0.12", + "resolved": "https://registry.npmjs.org/posthtml-rename-id/-/posthtml-rename-id-1.0.12.tgz", + "integrity": "sha512-UKXf9OF/no8WZo9edRzvuMenb6AD5hDLzIepJW+a4oJT+T/Lx7vfMYWT4aWlGNQh0WMhnUx1ipN9OkZ9q+ddEw==", + "dev": true, + "license": "MIT", + "dependencies": { + "escape-string-regexp": "1.0.5" + } + }, + "node_modules/posthtml-render": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/posthtml-render/-/posthtml-render-1.4.0.tgz", + "integrity": "sha512-W1779iVHGfq0Fvh2PROhCe2QhB8mEErgqzo1wpIt36tCgChafP+hbXIhLDOM8ePJrZcFs0vkNEtdibEWVqChqw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + } + }, + "node_modules/posthtml-svg-mode": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/posthtml-svg-mode/-/posthtml-svg-mode-1.0.3.tgz", + "integrity": "sha512-hEqw9NHZ9YgJ2/0G7CECOeuLQKZi8HjWLkBaSVtOWjygQ9ZD8P7tqeowYs7WrFdKsWEKG7o+IlsPY8jrr0CJpQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "merge-options": "1.0.1", + "posthtml": "^0.9.2", + "posthtml-parser": "^0.2.1", + "posthtml-render": "^1.0.6" + } + }, + "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/proxy-from-env": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", + "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==", + "license": "MIT" + }, + "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/qrcode": { + "version": "1.5.4", + "resolved": "https://registry.npmjs.org/qrcode/-/qrcode-1.5.4.tgz", + "integrity": "sha512-1ca71Zgiu6ORjHqFBDpnSMTR2ReToX4l1Au1VFLyVeBTFavzQnv5JxMFr3ukHVKpSrSA2MCk0lNJSykjUfz7Zg==", + "license": "MIT", + "dependencies": { + "dijkstrajs": "^1.0.1", + "pngjs": "^5.0.0", + "yargs": "^15.3.1" + }, + "bin": { + "qrcode": "bin/qrcode" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/quansync": { + "version": "0.2.11", + "resolved": "https://registry.npmjs.org/quansync/-/quansync-0.2.11.tgz", + "integrity": "sha512-AifT7QEbW9Nri4tAwR5M/uzpBuqfZf+zwaEM/QkzEjj7NBuFD2rBuy0K3dE+8wltbezDV7JMA0WfnCPYRSYbXA==", + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/antfu" + }, + { + "type": "individual", + "url": "https://github.com/sponsors/sxzz" + } + ], + "license": "MIT" + }, + "node_modules/query-string": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/query-string/-/query-string-4.3.4.tgz", + "integrity": "sha512-O2XLNDBIg1DnTOa+2XrIwSiXEV8h2KImXUnjhhn2+UsvZ+Es2uyd5CCRTNQlDGbzUQOW3aYCBx9rVA6dzsiY7Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "object-assign": "^4.1.0", + "strict-uri-encode": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/queue-microtask": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" + }, + "node_modules/read-package-json-fast": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/read-package-json-fast/-/read-package-json-fast-4.0.0.tgz", + "integrity": "sha512-qpt8EwugBWDw2cgE2W+/3oxC+KTez2uSVR8JU9Q36TXPAGCaozfQUs59v4j4GFpWTaw0i6hAZSvOmu1J0uOEUg==", + "dev": true, + "license": "ISC", + "dependencies": { + "json-parse-even-better-errors": "^4.0.0", + "npm-normalize-package-bin": "^4.0.0" + }, + "engines": { + "node": "^18.17.0 || >=20.5.0" + } + }, + "node_modules/readable-stream": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", + "dev": true, + "license": "MIT", + "dependencies": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/readdirp": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-5.0.0.tgz", + "integrity": "sha512-9u/XQ1pvrQtYyMpZe7DXKv2p5CNvyVwzUB6uhLAnQwHMSgKMBR62lc7AHljaeteeHXn11XTAaLLUVZYVZyuRBQ==", + "license": "MIT", + "engines": { + "node": ">= 20.19.0" + }, + "funding": { + "type": "individual", + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/reflect.getprototypeof": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/reflect.getprototypeof/-/reflect.getprototypeof-1.0.10.tgz", + "integrity": "sha512-00o4I+DVrefhv+nX0ulyi3biSHCPDe+yLv5o/p6d/UVlirijB8E16FtfwSAi4g3tcqrQ4lRAqQSoFEZJehYEcw==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.9", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.0.0", + "get-intrinsic": "^1.2.7", + "get-proto": "^1.0.1", + "which-builtin-type": "^1.2.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/regex-not": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/regex-not/-/regex-not-1.0.2.tgz", + "integrity": "sha512-J6SDjUgDxQj5NusnOtdFxDwN/+HWykR8GELwctJ7mdqhcyy1xEc4SRFHUXvxTp661YaVKAjfRLZ9cCqS6tn32A==", + "dev": true, + "license": "MIT", + "dependencies": { + "extend-shallow": "^3.0.2", + "safe-regex": "^1.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/regex-not/node_modules/extend-shallow": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz", + "integrity": "sha512-BwY5b5Ql4+qZoefgMj2NUmx+tehVTH/Kf4k1ZEtOHNFcm2wSxMRo992l6X3TIgni2eZVTZ85xMOjF31fwZAj6Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "assign-symbols": "^1.0.0", + "is-extendable": "^1.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/regex-not/node_modules/is-extendable": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", + "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-plain-object": "^2.0.4" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/regexp.prototype.flags": { + "version": "1.5.4", + "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.4.tgz", + "integrity": "sha512-dYqgNSZbDwkaJ2ceRd9ojCGjBq+mOm9LmtXnAnEGyHhN/5R7iDW2TRw3h+o/jCFxus3P2LfWIIiwowAjANm7IA==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "define-properties": "^1.2.1", + "es-errors": "^1.3.0", + "get-proto": "^1.0.1", + "gopd": "^1.2.0", + "set-function-name": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/repeat-element": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.4.tgz", + "integrity": "sha512-LFiNfRcSu7KK3evMyYOuCzv3L10TW7yC1G2/+StMjK8Y6Vqd2MG7r/Qjw4ghtuCOjFvlnms/iMmLqpvW/ES/WQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/repeat-string": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz", + "integrity": "sha512-PV0dzCYDNfRi1jCDbJzpW7jNNDRuCOG/jI5ctQcGKt/clZD+YcPS3yIlWuTJMmESC8aevCFmWJy5wjAFgNqN6w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10" + } + }, + "node_modules/require-directory": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/require-main-filename": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz", + "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==", + "license": "ISC" + }, + "node_modules/resolve-url": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/resolve-url/-/resolve-url-0.2.1.tgz", + "integrity": "sha512-ZuF55hVUQaaczgOIwqWzkEcEidmlD/xl44x1UZnhOXcYuFN2S6+rcxpG+C1N3So0wvNI3DmJICUFfu2SxhBmvg==", + "deprecated": "https://github.com/lydell/resolve-url#deprecated", + "dev": true, + "license": "MIT" + }, + "node_modules/ret": { + "version": "0.1.15", + "resolved": "https://registry.npmjs.org/ret/-/ret-0.1.15.tgz", + "integrity": "sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.12" + } + }, + "node_modules/reusify": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.1.0.tgz", + "integrity": "sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==", + "dev": true, + "license": "MIT", + "engines": { + "iojs": ">=1.0.0", + "node": ">=0.10.0" + } + }, + "node_modules/rfdc": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/rfdc/-/rfdc-1.4.1.tgz", + "integrity": "sha512-q1b3N5QkRUWUl7iyylaaj3kOpIT0N2i9MqIEQXP73GVsN9cw3fdx8X63cEmWhJGi2PPCF23Ijp7ktmd39rawIA==", + "license": "MIT" + }, + "node_modules/rollup": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.59.0.tgz", + "integrity": "sha512-2oMpl67a3zCH9H79LeMcbDhXW/UmWG/y2zuqnF2jQq5uq9TbM9TVyXvA4+t+ne2IIkBdrLpAaRQAvo7YI/Yyeg==", + "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.59.0", + "@rollup/rollup-android-arm64": "4.59.0", + "@rollup/rollup-darwin-arm64": "4.59.0", + "@rollup/rollup-darwin-x64": "4.59.0", + "@rollup/rollup-freebsd-arm64": "4.59.0", + "@rollup/rollup-freebsd-x64": "4.59.0", + "@rollup/rollup-linux-arm-gnueabihf": "4.59.0", + "@rollup/rollup-linux-arm-musleabihf": "4.59.0", + "@rollup/rollup-linux-arm64-gnu": "4.59.0", + "@rollup/rollup-linux-arm64-musl": "4.59.0", + "@rollup/rollup-linux-loong64-gnu": "4.59.0", + "@rollup/rollup-linux-loong64-musl": "4.59.0", + "@rollup/rollup-linux-ppc64-gnu": "4.59.0", + "@rollup/rollup-linux-ppc64-musl": "4.59.0", + "@rollup/rollup-linux-riscv64-gnu": "4.59.0", + "@rollup/rollup-linux-riscv64-musl": "4.59.0", + "@rollup/rollup-linux-s390x-gnu": "4.59.0", + "@rollup/rollup-linux-x64-gnu": "4.59.0", + "@rollup/rollup-linux-x64-musl": "4.59.0", + "@rollup/rollup-openbsd-x64": "4.59.0", + "@rollup/rollup-openharmony-arm64": "4.59.0", + "@rollup/rollup-win32-arm64-msvc": "4.59.0", + "@rollup/rollup-win32-ia32-msvc": "4.59.0", + "@rollup/rollup-win32-x64-gnu": "4.59.0", + "@rollup/rollup-win32-x64-msvc": "4.59.0", + "fsevents": "~2.3.2" + } + }, + "node_modules/run-applescript": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/run-applescript/-/run-applescript-7.1.0.tgz", + "integrity": "sha512-DPe5pVFaAsinSaV6QjQ6gdiedWDcRCbUuiQfQa2wmWV7+xC9bGulGI8+TdRmoFkAPaBXk8CrAbnlY2ISniJ47Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/run-parallel": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT", + "dependencies": { + "queue-microtask": "^1.2.2" + } + }, + "node_modules/safe-array-concat": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/safe-array-concat/-/safe-array-concat-1.1.3.tgz", + "integrity": "sha512-AURm5f0jYEOydBj7VQlVvDrjeFgthDdEF5H1dP+6mNpoXOMo1quQqJ4wvJDyRZ9+pO3kGWoOdmV08cSv2aJV6Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.2", + "get-intrinsic": "^1.2.6", + "has-symbols": "^1.1.0", + "isarray": "^2.0.5" + }, + "engines": { + "node": ">=0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/safe-array-concat/node_modules/isarray": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", + "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==", + "dev": true, + "license": "MIT" + }, + "node_modules/safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" + }, + "node_modules/safe-push-apply": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/safe-push-apply/-/safe-push-apply-1.0.0.tgz", + "integrity": "sha512-iKE9w/Z7xCzUMIZqdBsp6pEQvwuEebH4vdpjcDWnyzaI6yl6O9FHvVpmGelvEHNsoY6wGblkxR6Zty/h00WiSA==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "isarray": "^2.0.5" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/safe-push-apply/node_modules/isarray": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", + "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==", + "dev": true, + "license": "MIT" + }, + "node_modules/safe-regex": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/safe-regex/-/safe-regex-1.1.0.tgz", + "integrity": "sha512-aJXcif4xnaNUzvUuC5gcb46oTS7zvg4jpMTnuqtrEPlR3vFr4pxtdTwaF1Qs3Enjn9HK+ZlwQui+a7z0SywIzg==", + "dev": true, + "license": "MIT", + "dependencies": { + "ret": "~0.1.10" + } + }, + "node_modules/safe-regex-test": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.1.0.tgz", + "integrity": "sha512-x/+Cz4YrimQxQccJf5mKEbIa1NzeCRNI5Ecl/ekmlYaampdNLPalVyIcCZNNH3MvmqBugV5TMYZXv0ljslUlaw==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "is-regex": "^1.2.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/sass": { + "version": "1.97.3", + "resolved": "https://registry.npmjs.org/sass/-/sass-1.97.3.tgz", + "integrity": "sha512-fDz1zJpd5GycprAbu4Q2PV/RprsRtKC/0z82z0JLgdytmcq0+ujJbJ/09bPGDxCLkKY3Np5cRAOcWiVkLXJURg==", + "dev": true, + "license": "MIT", + "dependencies": { + "chokidar": "^4.0.0", + "immutable": "^5.0.2", + "source-map-js": ">=0.6.2 <2.0.0" + }, + "bin": { + "sass": "sass.js" + }, + "engines": { + "node": ">=14.0.0" + }, + "optionalDependencies": { + "@parcel/watcher": "^2.4.1" + } + }, + "node_modules/sass/node_modules/chokidar": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-4.0.3.tgz", + "integrity": "sha512-Qgzu8kfBvo+cA4962jnP1KkS6Dop5NS6g7R5LFYJr4b8Ub94PPQXUksCw9PvXoeXPRRddRNC5C1JQUR2SMGtnA==", + "dev": true, + "license": "MIT", + "dependencies": { + "readdirp": "^4.0.1" + }, + "engines": { + "node": ">= 14.16.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/sass/node_modules/readdirp": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-4.1.2.tgz", + "integrity": "sha512-GDhwkLfywWL2s6vEjyhri+eXmfH6j1L7JE27WhqLeYzoh/A3DBaYGEj2H/HFZCn/kMfim73FXxEJTw06WtxQwg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 14.18.0" + }, + "funding": { + "type": "individual", + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/scule": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/scule/-/scule-1.3.0.tgz", + "integrity": "sha512-6FtHJEvt+pVMIB9IBY+IcCJ6Z5f1iQnytgyfKMhDKgmzYG+TeH/wx1y3l27rshSbLiSanrR9ffZDrEsmjlQF2g==", + "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-blocking": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", + "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==", + "license": "ISC" + }, + "node_modules/set-function-length": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz", + "integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==", + "dev": true, + "license": "MIT", + "dependencies": { + "define-data-property": "^1.1.4", + "es-errors": "^1.3.0", + "function-bind": "^1.1.2", + "get-intrinsic": "^1.2.4", + "gopd": "^1.0.1", + "has-property-descriptors": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/set-function-name": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/set-function-name/-/set-function-name-2.0.2.tgz", + "integrity": "sha512-7PGFlmtwsEADb0WYyvCMa1t+yke6daIG4Wirafur5kcf+MhUnPms1UeR0CKQdTZD81yESwMHbtn+TR+dMviakQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "define-data-property": "^1.1.4", + "es-errors": "^1.3.0", + "functions-have-names": "^1.2.3", + "has-property-descriptors": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/set-proto": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/set-proto/-/set-proto-1.0.0.tgz", + "integrity": "sha512-RJRdvCo6IAnPdsvP/7m6bsQqNnn1FCBX5ZNtFL98MmFF/4xAIJTIg1YbHW5DC2W5SKZanrC6i4HsJqlajw/dZw==", + "dev": true, + "license": "MIT", + "dependencies": { + "dunder-proto": "^1.0.1", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/set-value": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/set-value/-/set-value-2.0.1.tgz", + "integrity": "sha512-JxHc1weCN68wRY0fhCoXpyK55m/XPHafOmK4UWD7m2CI14GMcFypt4w/0+NV5f/ZMby2F6S2wwA7fgynh9gWSw==", + "dev": true, + "license": "MIT", + "dependencies": { + "extend-shallow": "^2.0.1", + "is-extendable": "^0.1.1", + "is-plain-object": "^2.0.3", + "split-string": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "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/shell-quote": { + "version": "1.8.3", + "resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.8.3.tgz", + "integrity": "sha512-ObmnIF4hXNg1BqhnHmgbDETF8dLPCggZWBjkQfhZpbszZnYur5DUljTcCHii5LC3J5E0yeO/1LIMyH+UvHQgyw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz", + "integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "object-inspect": "^1.13.3", + "side-channel-list": "^1.0.0", + "side-channel-map": "^1.0.1", + "side-channel-weakmap": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-list": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.0.tgz", + "integrity": "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "object-inspect": "^1.13.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-map": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz", + "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.5", + "object-inspect": "^1.13.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-weakmap": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz", + "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.5", + "object-inspect": "^1.13.3", + "side-channel-map": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/sirv": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/sirv/-/sirv-3.0.2.tgz", + "integrity": "sha512-2wcC/oGxHis/BoHkkPwldgiPSYcpZK3JU28WoMVv55yHJgcZ8rlXvuG9iZggz+sU1d4bRgIGASwyWqjxu3FM0g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@polka/url": "^1.0.0-next.24", + "mrmime": "^2.0.0", + "totalist": "^3.0.0" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/snapdragon": { + "version": "0.8.2", + "resolved": "https://registry.npmjs.org/snapdragon/-/snapdragon-0.8.2.tgz", + "integrity": "sha512-FtyOnWN/wCHTVXOMwvSv26d+ko5vWlIDD6zoUJ7LW8vh+ZBC8QdljveRP+crNrtBwioEUWy/4dMtbBjA4ioNlg==", + "dev": true, + "license": "MIT", + "dependencies": { + "base": "^0.11.1", + "debug": "^2.2.0", + "define-property": "^0.2.5", + "extend-shallow": "^2.0.1", + "map-cache": "^0.2.2", + "source-map": "^0.5.6", + "source-map-resolve": "^0.5.0", + "use": "^3.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/snapdragon-node": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/snapdragon-node/-/snapdragon-node-2.1.1.tgz", + "integrity": "sha512-O27l4xaMYt/RSQ5TR3vpWCAB5Kb/czIcqUFOM/C4fYcLnbZUc1PkjTAMjof2pBWaSTwOUd6qUHcFGVGj7aIwnw==", + "dev": true, + "license": "MIT", + "dependencies": { + "define-property": "^1.0.0", + "isobject": "^3.0.0", + "snapdragon-util": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/snapdragon-node/node_modules/isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/snapdragon-util": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/snapdragon-util/-/snapdragon-util-3.0.1.tgz", + "integrity": "sha512-mbKkMdQKsjX4BAL4bRYTj21edOf8cN7XHdYUJEe+Zn99hVEYcMvKPct1IqNe7+AZPirn8BCDOQBHQZknqmKlZQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "kind-of": "^3.2.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/snapdragon-util/node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/snapdragon/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/snapdragon/node_modules/define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha512-Rr7ADjQZenceVOAKop6ALkkRAmH1A4Gx9hV/7ZujPUN2rkATqFO0JZLZInbAjpZYoJ1gUx8MRMQVkYemcbMSTA==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-descriptor": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/snapdragon/node_modules/is-descriptor": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.7.tgz", + "integrity": "sha512-C3grZTvObeN1xud4cRWl366OMXZTj0+HGyk4hvfpx4ZHt1Pb60ANSXqCK7pdOTeUQpRzECBSTphqvD7U+l22Eg==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-accessor-descriptor": "^1.0.1", + "is-data-descriptor": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/snapdragon/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "dev": true, + "license": "MIT" + }, + "node_modules/snapdragon/node_modules/source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ==", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "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==", + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/source-map-resolve": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.5.3.tgz", + "integrity": "sha512-Htz+RnsXWk5+P2slx5Jh3Q66vhQj1Cllm0zvnaY98+NFx+Dv2CF/f5O/t8x+KaNdrdIAsruNzoh/KpialbqAnw==", + "deprecated": "See https://github.com/lydell/source-map-resolve#deprecated", + "dev": true, + "license": "MIT", + "dependencies": { + "atob": "^2.1.2", + "decode-uri-component": "^0.2.0", + "resolve-url": "^0.2.1", + "source-map-url": "^0.4.0", + "urix": "^0.1.0" + } + }, + "node_modules/source-map-url": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/source-map-url/-/source-map-url-0.4.1.tgz", + "integrity": "sha512-cPiFOTLUKvJFIg4SKVScy4ilPPW6rFgMgfuZJPNoDuMs3nC1HbMUycBoJw77xFIp6z1UJQJOfx6C9GMH80DiTw==", + "deprecated": "See https://github.com/lydell/source-map-url#deprecated", + "dev": true, + "license": "MIT" + }, + "node_modules/spark-md5": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/spark-md5/-/spark-md5-3.0.2.tgz", + "integrity": "sha512-wcFzz9cDfbuqe0FZzfi2or1sgyIrsDwmPwfZC4hiNidPdPINjeUwNfv5kldczoEAcjl9Y1L3SM7Uz2PUEQzxQw==", + "license": "(WTFPL OR MIT)" + }, + "node_modules/speakingurl": { + "version": "14.0.1", + "resolved": "https://registry.npmjs.org/speakingurl/-/speakingurl-14.0.1.tgz", + "integrity": "sha512-1POYv7uv2gXoyGFpBCmpDVSNV74IfsWlDW216UPjbWufNf+bSU6GdbDsxdcxtfwb4xlI3yxzOTKClUosxARYrQ==", + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/split-string": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/split-string/-/split-string-3.1.0.tgz", + "integrity": "sha512-NzNVhJDYpwceVVii8/Hu6DKfD2G+NrQHlS/V/qgv763EYudVwEcMQNxd2lh+0VrUByXN/oJkl5grOhYWvQUYiw==", + "dev": true, + "license": "MIT", + "dependencies": { + "extend-shallow": "^3.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/split-string/node_modules/extend-shallow": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz", + "integrity": "sha512-BwY5b5Ql4+qZoefgMj2NUmx+tehVTH/Kf4k1ZEtOHNFcm2wSxMRo992l6X3TIgni2eZVTZ85xMOjF31fwZAj6Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "assign-symbols": "^1.0.0", + "is-extendable": "^1.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/split-string/node_modules/is-extendable": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", + "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-plain-object": "^2.0.4" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/stable": { + "version": "0.1.8", + "resolved": "https://registry.npmjs.org/stable/-/stable-0.1.8.tgz", + "integrity": "sha512-ji9qxRnOVfcuLDySj9qzhGSEFVobyt1kIOSkj1qZzYLzq7Tos/oUUWvotUPQLlrsidqsK6tBH89Bc9kL5zHA6w==", + "deprecated": "Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility", + "dev": true, + "license": "MIT" + }, + "node_modules/static-extend": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/static-extend/-/static-extend-0.1.2.tgz", + "integrity": "sha512-72E9+uLc27Mt718pMHt9VMNiAL4LMsmDbBva8mxWUCkT07fSzEGMYUCk0XWY6lp0j6RBAG4cJ3mWuZv2OE3s0g==", + "dev": true, + "license": "MIT", + "dependencies": { + "define-property": "^0.2.5", + "object-copy": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/static-extend/node_modules/define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha512-Rr7ADjQZenceVOAKop6ALkkRAmH1A4Gx9hV/7ZujPUN2rkATqFO0JZLZInbAjpZYoJ1gUx8MRMQVkYemcbMSTA==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-descriptor": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/static-extend/node_modules/is-descriptor": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.7.tgz", + "integrity": "sha512-C3grZTvObeN1xud4cRWl366OMXZTj0+HGyk4hvfpx4ZHt1Pb60ANSXqCK7pdOTeUQpRzECBSTphqvD7U+l22Eg==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-accessor-descriptor": "^1.0.1", + "is-data-descriptor": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/stop-iteration-iterator": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/stop-iteration-iterator/-/stop-iteration-iterator-1.1.0.tgz", + "integrity": "sha512-eLoXW/DHyl62zxY4SCaIgnRhuMr6ri4juEYARS8E6sCEqzKpOiE521Ucofdx+KnDZl5xmvGYaaKCk5FEOxJCoQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "internal-slot": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/strict-uri-encode": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/strict-uri-encode/-/strict-uri-encode-1.1.0.tgz", + "integrity": "sha512-R3f198pcvnB+5IpnBlRkphuE9n46WyVl8I39W/ZUTZLz4nqSP/oLYUrcnJrw462Ds8he4YKMov2efsTIw1BDGQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/string_decoder": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", + "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", + "dev": true, + "license": "MIT", + "dependencies": { + "safe-buffer": "~5.2.0" + } + }, + "node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "license": "MIT", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/string-width/node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/string-width/node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/string.prototype.trim": { + "version": "1.2.10", + "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.10.tgz", + "integrity": "sha512-Rs66F0P/1kedk5lyYyH9uBzuiI/kNRmwJAR9quK6VOtIpZ2G+hMZd+HQbbv25MgCA6gEffoMZYxlTod4WcdrKA==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.2", + "define-data-property": "^1.1.4", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.5", + "es-object-atoms": "^1.0.0", + "has-property-descriptors": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/string.prototype.trimend": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.9.tgz", + "integrity": "sha512-G7Ok5C6E/j4SGfyLCloXTrngQIQU3PWtXGst3yM7Bea9FRURf1S42ZHlZZtsNque2FN2PoUhfZXYLNWwEr4dLQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.2", + "define-properties": "^1.2.1", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/string.prototype.trimstart": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.8.tgz", + "integrity": "sha512-UXSH262CSZY1tfu3G3Secr6uGLCFVPMhIqHjlgCUtCCcgihYc/xKs9djMTMUOb2j1mVSeU8EU6NWc/iQKU6Gfg==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.7", + "define-properties": "^1.2.1", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/strip-ansi": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", + "integrity": "sha512-VhumSSbBqDTP8p2ZLKj40UjBCV4+v8bUSEpUb4KjRgWk9pbqGF4REFj6KEagidb2f/M6AzC0EmFyDNGaw9OCzg==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^2.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/superjson": { + "version": "2.2.6", + "resolved": "https://registry.npmjs.org/superjson/-/superjson-2.2.6.tgz", + "integrity": "sha512-H+ue8Zo4vJmV2nRjpx86P35lzwDT3nItnIsocgumgr0hHMQ+ZGq5vrERg9kJBo5AWGmxZDhzDo+WVIJqkB0cGA==", + "license": "MIT", + "dependencies": { + "copy-anything": "^4" + }, + "engines": { + "node": ">=16" + } + }, + "node_modules/supports-color": { + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-3.2.3.tgz", + "integrity": "sha512-Jds2VIYDrlp5ui7t8abHN2bjAu4LV/q4N2KivFPpGH0lrka0BMq/33AmECUXlKPcHigkNaqfXRENFju+rlcy+A==", + "dev": true, + "license": "MIT", + "dependencies": { + "has-flag": "^1.0.0" + }, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/svg-baker": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/svg-baker/-/svg-baker-1.7.0.tgz", + "integrity": "sha512-nibslMbkXOIkqKVrfcncwha45f97fGuAOn1G99YwnwTj8kF9YiM6XexPcUso97NxOm6GsP0SIvYVIosBis1xLg==", + "dev": true, + "license": "MIT", + "dependencies": { + "bluebird": "^3.5.0", + "clone": "^2.1.1", + "he": "^1.1.1", + "image-size": "^0.5.1", + "loader-utils": "^1.1.0", + "merge-options": "1.0.1", + "micromatch": "3.1.0", + "postcss": "^5.2.17", + "postcss-prefix-selector": "^1.6.0", + "posthtml-rename-id": "^1.0", + "posthtml-svg-mode": "^1.0.3", + "query-string": "^4.3.2", + "traverse": "^0.6.6" + } + }, + "node_modules/svg-baker/node_modules/braces": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-2.3.2.tgz", + "integrity": "sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w==", + "dev": true, + "license": "MIT", + "dependencies": { + "arr-flatten": "^1.1.0", + "array-unique": "^0.3.2", + "extend-shallow": "^2.0.1", + "fill-range": "^4.0.0", + "isobject": "^3.0.1", + "repeat-element": "^1.1.2", + "snapdragon": "^0.8.1", + "snapdragon-node": "^2.0.1", + "split-string": "^3.0.2", + "to-regex": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/svg-baker/node_modules/fill-range": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-4.0.0.tgz", + "integrity": "sha512-VcpLTWqWDiTerugjj8e3+esbg+skS3M9e54UuR3iCeIDMXCLTsAH8hTSzDQU/X6/6t3eYkOKoZSef2PlU6U1XQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "extend-shallow": "^2.0.1", + "is-number": "^3.0.0", + "repeat-string": "^1.6.1", + "to-regex-range": "^2.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/svg-baker/node_modules/is-number": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", + "integrity": "sha512-4cboCqIpliH+mAvFNegjZQ4kgKc3ZUhQVr3HvWbSh5q3WH2v82ct+T2Y1hdU5Gdtorx/cLifQjqCbL7bpznLTg==", + "dev": true, + "license": "MIT", + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/svg-baker/node_modules/is-number/node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/svg-baker/node_modules/isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/svg-baker/node_modules/micromatch": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-3.1.0.tgz", + "integrity": "sha512-3StSelAE+hnRvMs8IdVW7Uhk8CVed5tp+kLLGlBP6WiRAXS21GPGu/Nat4WNPXj2Eoc24B02SaeoyozPMfj0/g==", + "dev": true, + "license": "MIT", + "dependencies": { + "arr-diff": "^4.0.0", + "array-unique": "^0.3.2", + "braces": "^2.2.2", + "define-property": "^1.0.0", + "extend-shallow": "^2.0.1", + "extglob": "^2.0.2", + "fragment-cache": "^0.2.1", + "kind-of": "^5.0.2", + "nanomatch": "^1.2.1", + "object.pick": "^1.3.0", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/svg-baker/node_modules/postcss": { + "version": "5.2.18", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-5.2.18.tgz", + "integrity": "sha512-zrUjRRe1bpXKsX1qAJNJjqZViErVuyEkMTRrwu4ud4sbTtIBRmtaYDrHmcGgmrbsW3MHfmtIf+vJumgQn+PrXg==", + "dev": true, + "license": "MIT", + "dependencies": { + "chalk": "^1.1.3", + "js-base64": "^2.1.9", + "source-map": "^0.5.6", + "supports-color": "^3.2.3" + }, + "engines": { + "node": ">=0.12" + } + }, + "node_modules/svg-baker/node_modules/source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ==", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/svg-baker/node_modules/to-regex-range": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-2.1.1.tgz", + "integrity": "sha512-ZZWNfCjUokXXDGXFpZehJIkZqq91BcULFq/Pi7M5i4JnxXdhMKAK682z8bCW3o8Hj1wuuzoKcW3DfVzaP6VuNg==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-number": "^3.0.0", + "repeat-string": "^1.6.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/svgo": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/svgo/-/svgo-2.8.0.tgz", + "integrity": "sha512-+N/Q9kV1+F+UeWYoSiULYo4xYSDQlTgb+ayMobAXPwMnLvop7oxKMo9OzIrX5x3eS4L4f2UHhc9axXwY8DpChg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@trysound/sax": "0.2.0", + "commander": "^7.2.0", + "css-select": "^4.1.3", + "css-tree": "^1.1.3", + "csso": "^4.2.0", + "picocolors": "^1.0.0", + "stable": "^0.1.8" + }, + "bin": { + "svgo": "bin/svgo" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/three": { + "version": "0.183.2", + "resolved": "https://registry.npmjs.org/three/-/three-0.183.2.tgz", + "integrity": "sha512-di3BsL2FEQ1PA7Hcvn4fyJOlxRRgFYBpMTcyOgkwJIaDOdJMebEFPA+t98EvjuljDx4hNulAGwF6KIjtwI5jgQ==", + "license": "MIT" + }, + "node_modules/tinyglobby": { + "version": "0.2.15", + "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.15.tgz", + "integrity": "sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==", + "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/to-object-path": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/to-object-path/-/to-object-path-0.3.0.tgz", + "integrity": "sha512-9mWHdnGRuh3onocaHzukyvCZhzvr6tiflAy/JRFXcJX0TjgfWA9pk9t8CMbzmBE4Jfw58pXbkngtBtqYxzNEyg==", + "dev": true, + "license": "MIT", + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/to-object-path/node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/to-regex": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/to-regex/-/to-regex-3.0.2.tgz", + "integrity": "sha512-FWtleNAtZ/Ki2qtqej2CXTOayOH9bHDQF+Q48VpWyDXjbYxA4Yz8iDB31zXOBUlOHHKidDbqGVrTUvQMPmBGBw==", + "dev": true, + "license": "MIT", + "dependencies": { + "define-property": "^2.0.2", + "extend-shallow": "^3.0.2", + "regex-not": "^1.0.2", + "safe-regex": "^1.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/to-regex/node_modules/define-property": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-2.0.2.tgz", + "integrity": "sha512-jwK2UV4cnPpbcG7+VRARKTZPUWowwXA8bzH5NP6ud0oeAxyYPuGZUAC7hMugpCdz4BeSZl2Dl9k66CHJ/46ZYQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-descriptor": "^1.0.2", + "isobject": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/to-regex/node_modules/extend-shallow": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz", + "integrity": "sha512-BwY5b5Ql4+qZoefgMj2NUmx+tehVTH/Kf4k1ZEtOHNFcm2wSxMRo992l6X3TIgni2eZVTZ85xMOjF31fwZAj6Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "assign-symbols": "^1.0.0", + "is-extendable": "^1.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/to-regex/node_modules/is-extendable": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", + "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-plain-object": "^2.0.4" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/to-regex/node_modules/isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/totalist": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/totalist/-/totalist-3.0.1.tgz", + "integrity": "sha512-sf4i37nQ2LBx4m3wB74y+ubopq6W/dIzXg0FDGjsYnZHVa1Da8FH853wlL2gtUhg+xJXjfk3kUZS3BRoQeoQBQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/traverse": { + "version": "0.6.11", + "resolved": "https://registry.npmjs.org/traverse/-/traverse-0.6.11.tgz", + "integrity": "sha512-vxXDZg8/+p3gblxB6BhhG5yWVn1kGRlaL8O78UDXc3wRnPizB5g83dcvWV1jpDMIPnjZjOFuxlMmE82XJ4407w==", + "dev": true, + "license": "MIT", + "dependencies": { + "gopd": "^1.2.0", + "typedarray.prototype.slice": "^1.0.5", + "which-typed-array": "^1.1.18" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/tslib": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.0.tgz", + "integrity": "sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg==", + "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/typed-array-buffer": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/typed-array-buffer/-/typed-array-buffer-1.0.3.tgz", + "integrity": "sha512-nAYYwfY3qnzX30IkA6AQZjVbtK6duGontcQm1WSG1MD94YLqK0515GNApXkoxKOWMusVssAHWLh9SeaoefYFGw==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3", + "es-errors": "^1.3.0", + "is-typed-array": "^1.1.14" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/typed-array-byte-length": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/typed-array-byte-length/-/typed-array-byte-length-1.0.3.tgz", + "integrity": "sha512-BaXgOuIxz8n8pIq3e7Atg/7s+DpiYrxn4vdot3w9KbnBhcRQq6o3xemQdIfynqSeXeDrF32x+WvfzmOjPiY9lg==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "for-each": "^0.3.3", + "gopd": "^1.2.0", + "has-proto": "^1.2.0", + "is-typed-array": "^1.1.14" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/typed-array-byte-offset": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/typed-array-byte-offset/-/typed-array-byte-offset-1.0.4.tgz", + "integrity": "sha512-bTlAFB/FBYMcuX81gbL4OcpH5PmlFHqlCCpAl8AlEzMz5k53oNDvN8p1PNOWLEmI2x4orp3raOFB51tv9X+MFQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "available-typed-arrays": "^1.0.7", + "call-bind": "^1.0.8", + "for-each": "^0.3.3", + "gopd": "^1.2.0", + "has-proto": "^1.2.0", + "is-typed-array": "^1.1.15", + "reflect.getprototypeof": "^1.0.9" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/typed-array-length": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.7.tgz", + "integrity": "sha512-3KS2b+kL7fsuk/eJZ7EQdnEmQoaho/r6KUef7hxvltNA5DR8NAUM+8wJMbJyZ4G9/7i3v5zPBIMN5aybAh2/Jg==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.7", + "for-each": "^0.3.3", + "gopd": "^1.0.1", + "is-typed-array": "^1.1.13", + "possible-typed-array-names": "^1.0.0", + "reflect.getprototypeof": "^1.0.6" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/typedarray.prototype.slice": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/typedarray.prototype.slice/-/typedarray.prototype.slice-1.0.5.tgz", + "integrity": "sha512-q7QNVDGTdl702bVFiI5eY4l/HkgCM6at9KhcFbgUAzezHFbOVy4+0O/lCjsABEQwbZPravVfBIiBVGo89yzHFg==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.9", + "es-errors": "^1.3.0", + "get-proto": "^1.0.1", + "math-intrinsics": "^1.1.0", + "typed-array-buffer": "^1.0.3", + "typed-array-byte-offset": "^1.0.4" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/typescript": { + "version": "5.9.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz", + "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==", + "devOptional": true, + "license": "Apache-2.0", + "peer": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/ufo": { + "version": "1.6.3", + "resolved": "https://registry.npmjs.org/ufo/-/ufo-1.6.3.tgz", + "integrity": "sha512-yDJTmhydvl5lJzBmy/hyOAA0d+aqCBuwl818haVdYCRrWV84o7YyeVm4QlVHStqNrrJSTb6jKuFAVqAFsr+K3Q==", + "license": "MIT" + }, + "node_modules/unbox-primitive": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.1.0.tgz", + "integrity": "sha512-nWJ91DjeOkej/TA8pXQ3myruKpKEYgqvpw9lz4OPHj/NWFNluYrjbz9j01CJ8yKQd2g4jFoOkINCTW2I5LEEyw==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3", + "has-bigints": "^1.0.2", + "has-symbols": "^1.1.0", + "which-boxed-primitive": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "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/union-value": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/union-value/-/union-value-1.0.1.tgz", + "integrity": "sha512-tJfXmxMeWYnczCVs7XAEvIV7ieppALdyepWMkHkwciRpZraG/xwT+s2JN8+pr1+8jCRf80FFzvr+MpQeeoF4Xg==", + "dev": true, + "license": "MIT", + "dependencies": { + "arr-union": "^3.1.0", + "get-value": "^2.0.6", + "is-extendable": "^0.1.1", + "set-value": "^2.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/universalify": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", + "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/unplugin": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/unplugin/-/unplugin-3.0.0.tgz", + "integrity": "sha512-0Mqk3AT2TZCXWKdcoaufeXNukv2mTrEZExeXlHIOZXdqYoHHr4n51pymnwV8x2BOVxwXbK2HLlI7usrqMpycdg==", + "license": "MIT", + "dependencies": { + "@jridgewell/remapping": "^2.3.5", + "picomatch": "^4.0.3", + "webpack-virtual-modules": "^0.6.2" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/unplugin-utils": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/unplugin-utils/-/unplugin-utils-0.3.1.tgz", + "integrity": "sha512-5lWVjgi6vuHhJ526bI4nlCOmkCIF3nnfXkCMDeMJrtdvxTs6ZFCM8oNufGTsDbKv/tJ/xj8RpvXjRuPBZJuJog==", + "license": "MIT", + "dependencies": { + "pathe": "^2.0.3", + "picomatch": "^4.0.3" + }, + "engines": { + "node": ">=20.19.0" + }, + "funding": { + "url": "https://github.com/sponsors/sxzz" + } + }, + "node_modules/unset-value": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/unset-value/-/unset-value-1.0.0.tgz", + "integrity": "sha512-PcA2tsuGSF9cnySLHTLSh2qrQiJ70mn+r+Glzxv2TWZblxsxCC52BDlZoPCsz7STd9pN7EZetkWZBAvk4cgZdQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "has-value": "^0.3.1", + "isobject": "^3.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/unset-value/node_modules/has-value": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/has-value/-/has-value-0.3.1.tgz", + "integrity": "sha512-gpG936j8/MzaeID5Yif+577c17TxaDmhuyVgSwtnL/q8UUTySg8Mecb+8Cf1otgLoD7DDH75axp86ER7LFsf3Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "get-value": "^2.0.3", + "has-values": "^0.1.4", + "isobject": "^2.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/unset-value/node_modules/has-value/node_modules/isobject": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-2.1.0.tgz", + "integrity": "sha512-+OUdGJlgjOBZDfxnDjYYG6zp487z0JGNQq3cYQYg5f5hKR+syHMsaztzGeml/4kGG55CSpKSpWTY+jYGgsHLgA==", + "dev": true, + "license": "MIT", + "dependencies": { + "isarray": "1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/unset-value/node_modules/has-values": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/has-values/-/has-values-0.1.4.tgz", + "integrity": "sha512-J8S0cEdWuQbqD9//tlZxiMuMNmxB8PlEwvYwuxsTmR1G5RXUePEX/SJn7aD0GMLieuZYSwNH0cQuJGwnYunXRQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/unset-value/node_modules/isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/update-browserslist-db": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.2.3.tgz", + "integrity": "sha512-Js0m9cx+qOgDxo0eMiFGEueWztz+d4+M3rGlmKPT+T4IS/jP4ylw3Nwpu6cpTTP8R1MAC1kF4VbdLt3ARf209w==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "escalade": "^3.2.0", + "picocolors": "^1.1.1" + }, + "bin": { + "update-browserslist-db": "cli.js" + }, + "peerDependencies": { + "browserslist": ">= 4.21.0" + } + }, + "node_modules/uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "punycode": "^2.1.0" + } + }, + "node_modules/urix": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/urix/-/urix-0.1.0.tgz", + "integrity": "sha512-Am1ousAhSLBeB9cG/7k7r2R0zj50uDRlZHPGbazid5s9rlF1F/QKYObEKSIunSjIOkJZqwRRLpvewjEkM7pSqg==", + "deprecated": "Please see https://github.com/lydell/urix#deprecated", + "dev": true, + "license": "MIT" + }, + "node_modules/use": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/use/-/use-3.1.1.tgz", + "integrity": "sha512-cwESVXlO3url9YWlFW/TA9cshCEhtu7IKJ/p5soJ/gGpj7vbvFrAY/eIioQ6Dw23KjZhYgiIo8HOs1nQ2vr/oQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", + "dev": true, + "license": "MIT" + }, + "node_modules/uuid": { + "version": "13.0.0", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-13.0.0.tgz", + "integrity": "sha512-XQegIaBTVUjSHliKqcnFqYypAd4S+WCYt5NIeRs6w/UAry7z8Y9j5ZwRRL4kzq9U3sD6v+85er9FvkEaBpji2w==", + "funding": [ + "https://github.com/sponsors/broofa", + "https://github.com/sponsors/ctavan" + ], + "license": "MIT", + "bin": { + "uuid": "dist-node/bin/uuid" + } + }, + "node_modules/vary": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", + "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "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/vite-dev-rpc": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/vite-dev-rpc/-/vite-dev-rpc-1.1.0.tgz", + "integrity": "sha512-pKXZlgoXGoE8sEKiKJSng4hI1sQ4wi5YT24FCrwrLt6opmkjlqPPVmiPWWJn8M8byMxRGzp1CrFuqQs4M/Z39A==", + "dev": true, + "license": "MIT", + "dependencies": { + "birpc": "^2.4.0", + "vite-hot-client": "^2.1.0" + }, + "funding": { + "url": "https://github.com/sponsors/antfu" + }, + "peerDependencies": { + "vite": "^2.9.0 || ^3.0.0-0 || ^4.0.0-0 || ^5.0.0-0 || ^6.0.1 || ^7.0.0-0" + } + }, + "node_modules/vite-hot-client": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/vite-hot-client/-/vite-hot-client-2.1.0.tgz", + "integrity": "sha512-7SpgZmU7R+dDnSmvXE1mfDtnHLHQSisdySVR7lO8ceAXvM0otZeuQQ6C8LrS5d/aYyP/QZ0hI0L+dIPrm4YlFQ==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/antfu" + }, + "peerDependencies": { + "vite": "^2.6.0 || ^3.0.0 || ^4.0.0 || ^5.0.0-0 || ^6.0.0-0 || ^7.0.0-0" + } + }, + "node_modules/vite-plugin-inspect": { + "version": "11.3.3", + "resolved": "https://registry.npmjs.org/vite-plugin-inspect/-/vite-plugin-inspect-11.3.3.tgz", + "integrity": "sha512-u2eV5La99oHoYPHE6UvbwgEqKKOQGz86wMg40CCosP6q8BkB6e5xPneZfYagK4ojPJSj5anHCrnvC20DpwVdRA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansis": "^4.1.0", + "debug": "^4.4.1", + "error-stack-parser-es": "^1.0.5", + "ohash": "^2.0.11", + "open": "^10.2.0", + "perfect-debounce": "^2.0.0", + "sirv": "^3.0.1", + "unplugin-utils": "^0.3.0", + "vite-dev-rpc": "^1.1.0" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/antfu" + }, + "peerDependencies": { + "vite": "^6.0.0 || ^7.0.0-0" + }, + "peerDependenciesMeta": { + "@nuxt/kit": { + "optional": true + } + } + }, + "node_modules/vite-plugin-inspect/node_modules/perfect-debounce": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/perfect-debounce/-/perfect-debounce-2.1.0.tgz", + "integrity": "sha512-LjgdTytVFXeUgtHZr9WYViYSM/g8MkcTPYDlPa3cDqMirHjKiSZPYd6DoL7pK8AJQr+uWkQvCjHNdiMqsrJs+g==", + "dev": true, + "license": "MIT" + }, + "node_modules/vite-plugin-svg-icons": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/vite-plugin-svg-icons/-/vite-plugin-svg-icons-2.0.1.tgz", + "integrity": "sha512-6ktD+DhV6Rz3VtedYvBKKVA2eXF+sAQVaKkKLDSqGUfnhqXl3bj5PPkVTl3VexfTuZy66PmINi8Q6eFnVfRUmA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/svgo": "^2.6.1", + "cors": "^2.8.5", + "debug": "^4.3.3", + "etag": "^1.8.1", + "fs-extra": "^10.0.0", + "pathe": "^0.2.0", + "svg-baker": "1.7.0", + "svgo": "^2.8.0" + }, + "peerDependencies": { + "vite": ">=2.0.0" + } + }, + "node_modules/vite-plugin-svg-icons/node_modules/pathe": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/pathe/-/pathe-0.2.0.tgz", + "integrity": "sha512-sTitTPYnn23esFR3RlqYBWn4c45WGeLcsKzQiUpXJAyfcWkolvlYpV8FLo7JishK946oQwMFUCHXQ9AjGPKExw==", + "dev": true, + "license": "MIT" + }, + "node_modules/vite-plugin-vue-devtools": { + "version": "8.0.7", + "resolved": "https://registry.npmjs.org/vite-plugin-vue-devtools/-/vite-plugin-vue-devtools-8.0.7.tgz", + "integrity": "sha512-BWj/ykGpqVAJVdPyHmSTUm44buz3jPv+6jnvuFdQSRH0kAgP1cEIE4doHiFyqHXOmuB5EQVR/nh2g9YRiRNs9g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@vue/devtools-core": "^8.0.7", + "@vue/devtools-kit": "^8.0.7", + "@vue/devtools-shared": "^8.0.7", + "sirv": "^3.0.2", + "vite-plugin-inspect": "^11.3.3", + "vite-plugin-vue-inspector": "^5.3.2" + }, + "engines": { + "node": ">=v14.21.3" + }, + "peerDependencies": { + "vite": "^6.0.0 || ^7.0.0-0 || ^8.0.0-0" + } + }, + "node_modules/vite-plugin-vue-devtools/node_modules/@vue/devtools-kit": { + "version": "8.0.7", + "resolved": "https://registry.npmjs.org/@vue/devtools-kit/-/devtools-kit-8.0.7.tgz", + "integrity": "sha512-H6esJGHGl5q0E9iV3m2EoBQHJ+V83WMW83A0/+Fn95eZ2iIvdsq4+UCS6yT/Fdd4cGZSchx/MdWDreM3WqMsDw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@vue/devtools-shared": "^8.0.7", + "birpc": "^2.6.1", + "hookable": "^5.5.3", + "perfect-debounce": "^2.0.0" + } + }, + "node_modules/vite-plugin-vue-devtools/node_modules/@vue/devtools-shared": { + "version": "8.0.7", + "resolved": "https://registry.npmjs.org/@vue/devtools-shared/-/devtools-shared-8.0.7.tgz", + "integrity": "sha512-CgAb9oJH5NUmbQRdYDj/1zMiaICYSLtm+B1kxcP72LBrifGAjUmt8bx52dDH1gWRPlQgxGPqpAMKavzVirAEhA==", + "dev": true, + "license": "MIT" + }, + "node_modules/vite-plugin-vue-devtools/node_modules/perfect-debounce": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/perfect-debounce/-/perfect-debounce-2.1.0.tgz", + "integrity": "sha512-LjgdTytVFXeUgtHZr9WYViYSM/g8MkcTPYDlPa3cDqMirHjKiSZPYd6DoL7pK8AJQr+uWkQvCjHNdiMqsrJs+g==", + "dev": true, + "license": "MIT" + }, + "node_modules/vite-plugin-vue-inspector": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/vite-plugin-vue-inspector/-/vite-plugin-vue-inspector-5.3.2.tgz", + "integrity": "sha512-YvEKooQcSiBTAs0DoYLfefNja9bLgkFM7NI2b07bE2SruuvX0MEa9cMaxjKVMkeCp5Nz9FRIdcN1rOdFVBeL6Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/core": "^7.23.0", + "@babel/plugin-proposal-decorators": "^7.23.0", + "@babel/plugin-syntax-import-attributes": "^7.22.5", + "@babel/plugin-syntax-import-meta": "^7.10.4", + "@babel/plugin-transform-typescript": "^7.22.15", + "@vue/babel-plugin-jsx": "^1.1.5", + "@vue/compiler-dom": "^3.3.4", + "kolorist": "^1.8.0", + "magic-string": "^0.30.4" + }, + "peerDependencies": { + "vite": "^3.0.0-0 || ^4.0.0-0 || ^5.0.0-0 || ^6.0.0-0 || ^7.0.0-0" + } + }, + "node_modules/vscode-uri": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/vscode-uri/-/vscode-uri-3.1.0.tgz", + "integrity": "sha512-/BpdSx+yCQGnCvecbyXdxHDkuk55/G3xwnC0GqY4gmQ3j+A+g8kzzgB4Nk/SINjqn6+waqw3EgbVF2QKExkRxQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/vue": { + "version": "3.5.29", + "resolved": "https://registry.npmjs.org/vue/-/vue-3.5.29.tgz", + "integrity": "sha512-BZqN4Ze6mDQVNAni0IHeMJ5mwr8VAJ3MQC9FmprRhcBYENw+wOAAjRj8jfmN6FLl0j96OXbR+CjWhmAmM+QGnA==", + "license": "MIT", + "peer": true, + "dependencies": { + "@vue/compiler-dom": "3.5.29", + "@vue/compiler-sfc": "3.5.29", + "@vue/runtime-dom": "3.5.29", + "@vue/server-renderer": "3.5.29", + "@vue/shared": "3.5.29" + }, + "peerDependencies": { + "typescript": "*" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/vue-draggable-plus": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/vue-draggable-plus/-/vue-draggable-plus-0.6.1.tgz", + "integrity": "sha512-FbtQ/fuoixiOfTZzG3yoPl4JAo9HJXRHmBQZFB9x2NYCh6pq0TomHf7g5MUmpaDYv+LU2n6BPq2YN9sBO+FbIg==", + "license": "MIT", + "dependencies": { + "@types/sortablejs": "^1.15.8" + }, + "peerDependencies": { + "@types/sortablejs": "^1.15.0" + }, + "peerDependenciesMeta": { + "@vue/composition-api": { + "optional": true + } + } + }, + "node_modules/vue-eslint-parser": { + "version": "10.4.0", + "resolved": "https://registry.npmjs.org/vue-eslint-parser/-/vue-eslint-parser-10.4.0.tgz", + "integrity": "sha512-Vxi9pJdbN3ZnVGLODVtZ7y4Y2kzAAE2Cm0CZ3ZDRvydVYxZ6VrnBhLikBsRS+dpwj4Jv4UCv21PTEwF5rQ9WXg==", + "dev": true, + "license": "MIT", + "dependencies": { + "debug": "^4.4.0", + "eslint-scope": "^8.2.0 || ^9.0.0", + "eslint-visitor-keys": "^4.2.0 || ^5.0.0", + "espree": "^10.3.0 || ^11.0.0", + "esquery": "^1.6.0", + "semver": "^7.6.3" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://github.com/sponsors/mysticatea" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0" + } + }, + "node_modules/vue-eslint-parser/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/vue-i18n": { + "version": "11.2.8", + "resolved": "https://registry.npmjs.org/vue-i18n/-/vue-i18n-11.2.8.tgz", + "integrity": "sha512-vJ123v/PXCZntd6Qj5Jumy7UBmIuE92VrtdX+AXr+1WzdBHojiBxnAxdfctUFL+/JIN+VQH4BhsfTtiGsvVObg==", + "license": "MIT", + "dependencies": { + "@intlify/core-base": "11.2.8", + "@intlify/shared": "11.2.8", + "@vue/devtools-api": "^6.5.0" + }, + "engines": { + "node": ">= 16" + }, + "funding": { + "url": "https://github.com/sponsors/kazupon" + }, + "peerDependencies": { + "vue": "^3.0.0" + } + }, + "node_modules/vue-i18n/node_modules/@vue/devtools-api": { + "version": "6.6.4", + "resolved": "https://registry.npmjs.org/@vue/devtools-api/-/devtools-api-6.6.4.tgz", + "integrity": "sha512-sGhTPMuXqZ1rVOk32RylztWkfXTRhuS7vgAKv0zjqk8gbsHkJ7xfFf+jbySxt7tWObEJwyKaHMikV/WGDiQm8g==", + "license": "MIT" + }, + "node_modules/vue-router": { + "version": "5.0.3", + "resolved": "https://registry.npmjs.org/vue-router/-/vue-router-5.0.3.tgz", + "integrity": "sha512-nG1c7aAFac7NYj8Hluo68WyWfc41xkEjaR0ViLHCa3oDvTQ/nIuLJlXJX1NUPw/DXzx/8+OKMng045HHQKQKWw==", + "license": "MIT", + "dependencies": { + "@babel/generator": "^7.28.6", + "@vue-macros/common": "^3.1.1", + "@vue/devtools-api": "^8.0.6", + "ast-walker-scope": "^0.8.3", + "chokidar": "^5.0.0", + "json5": "^2.2.3", + "local-pkg": "^1.1.2", + "magic-string": "^0.30.21", + "mlly": "^1.8.0", + "muggle-string": "^0.4.1", + "pathe": "^2.0.3", + "picomatch": "^4.0.3", + "scule": "^1.3.0", + "tinyglobby": "^0.2.15", + "unplugin": "^3.0.0", + "unplugin-utils": "^0.3.1", + "yaml": "^2.8.2" + }, + "funding": { + "url": "https://github.com/sponsors/posva" + }, + "peerDependencies": { + "@pinia/colada": ">=0.21.2", + "@vue/compiler-sfc": "^3.5.17", + "pinia": "^3.0.4", + "vue": "^3.5.0" + }, + "peerDependenciesMeta": { + "@pinia/colada": { + "optional": true + }, + "@vue/compiler-sfc": { + "optional": true + }, + "pinia": { + "optional": true + } + } + }, + "node_modules/vue-router/node_modules/@vue/devtools-api": { + "version": "8.0.7", + "resolved": "https://registry.npmjs.org/@vue/devtools-api/-/devtools-api-8.0.7.tgz", + "integrity": "sha512-tc1TXAxclsn55JblLkFVcIRG7MeSJC4fWsPjfM7qu/IcmPUYnQ5Q8vzWwBpyDY24ZjmZTUCCwjRSNbx58IhlAA==", + "license": "MIT", + "dependencies": { + "@vue/devtools-kit": "^8.0.7" + } + }, + "node_modules/vue-router/node_modules/@vue/devtools-kit": { + "version": "8.0.7", + "resolved": "https://registry.npmjs.org/@vue/devtools-kit/-/devtools-kit-8.0.7.tgz", + "integrity": "sha512-H6esJGHGl5q0E9iV3m2EoBQHJ+V83WMW83A0/+Fn95eZ2iIvdsq4+UCS6yT/Fdd4cGZSchx/MdWDreM3WqMsDw==", + "license": "MIT", + "dependencies": { + "@vue/devtools-shared": "^8.0.7", + "birpc": "^2.6.1", + "hookable": "^5.5.3", + "perfect-debounce": "^2.0.0" + } + }, + "node_modules/vue-router/node_modules/@vue/devtools-shared": { + "version": "8.0.7", + "resolved": "https://registry.npmjs.org/@vue/devtools-shared/-/devtools-shared-8.0.7.tgz", + "integrity": "sha512-CgAb9oJH5NUmbQRdYDj/1zMiaICYSLtm+B1kxcP72LBrifGAjUmt8bx52dDH1gWRPlQgxGPqpAMKavzVirAEhA==", + "license": "MIT" + }, + "node_modules/vue-router/node_modules/perfect-debounce": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/perfect-debounce/-/perfect-debounce-2.1.0.tgz", + "integrity": "sha512-LjgdTytVFXeUgtHZr9WYViYSM/g8MkcTPYDlPa3cDqMirHjKiSZPYd6DoL7pK8AJQr+uWkQvCjHNdiMqsrJs+g==", + "license": "MIT" + }, + "node_modules/vue-tsc": { + "version": "3.2.5", + "resolved": "https://registry.npmjs.org/vue-tsc/-/vue-tsc-3.2.5.tgz", + "integrity": "sha512-/htfTCMluQ+P2FISGAooul8kO4JMheOTCbCy4M6dYnYYjqLe3BExZudAua6MSIKSFYQtFOYAll7XobYwcpokGA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@volar/typescript": "2.4.28", + "@vue/language-core": "3.2.5" + }, + "bin": { + "vue-tsc": "bin/vue-tsc.js" + }, + "peerDependencies": { + "typescript": ">=5.0.0" + } + }, + "node_modules/webpack-virtual-modules": { + "version": "0.6.2", + "resolved": "https://registry.npmjs.org/webpack-virtual-modules/-/webpack-virtual-modules-0.6.2.tgz", + "integrity": "sha512-66/V2i5hQanC51vBQKPH4aI8NMAcBW59FVBs+rC7eGHupMyfn34q7rZIE+ETlJ+XTevqfUhVVBgSUNSW2flEUQ==", + "license": "MIT" + }, + "node_modules/which": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/which/-/which-5.0.0.tgz", + "integrity": "sha512-JEdGzHwwkrbWoGOlIHqQ5gtprKGOenpDHpxE9zVR1bWbOtYRyPPHMe9FaP6x61CmNaTThSkb0DAJte5jD+DmzQ==", + "dev": true, + "license": "ISC", + "dependencies": { + "isexe": "^3.1.1" + }, + "bin": { + "node-which": "bin/which.js" + }, + "engines": { + "node": "^18.17.0 || >=20.5.0" + } + }, + "node_modules/which-boxed-primitive": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.1.1.tgz", + "integrity": "sha512-TbX3mj8n0odCBFVlY8AxkqcHASw3L60jIuF8jFP78az3C2YhmGvqbHBpAjTRH2/xqYunrJ9g1jSyjCjpoWzIAA==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-bigint": "^1.1.0", + "is-boolean-object": "^1.2.1", + "is-number-object": "^1.1.1", + "is-string": "^1.1.1", + "is-symbol": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/which-builtin-type": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/which-builtin-type/-/which-builtin-type-1.2.1.tgz", + "integrity": "sha512-6iBczoX+kDQ7a3+YJBnh3T+KZRxM/iYNPXicqk66/Qfm1b93iu+yOImkg0zHbj5LNOcNv1TEADiZ0xa34B4q6Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "function.prototype.name": "^1.1.6", + "has-tostringtag": "^1.0.2", + "is-async-function": "^2.0.0", + "is-date-object": "^1.1.0", + "is-finalizationregistry": "^1.1.0", + "is-generator-function": "^1.0.10", + "is-regex": "^1.2.1", + "is-weakref": "^1.0.2", + "isarray": "^2.0.5", + "which-boxed-primitive": "^1.1.0", + "which-collection": "^1.0.2", + "which-typed-array": "^1.1.16" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/which-builtin-type/node_modules/isarray": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", + "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==", + "dev": true, + "license": "MIT" + }, + "node_modules/which-collection": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/which-collection/-/which-collection-1.0.2.tgz", + "integrity": "sha512-K4jVyjnBdgvc86Y6BkaLZEN933SwYOuBFkdmBu9ZfkcAbdVbpITnDmjvZ/aQjRXQrv5EPkTnD1s39GiiqbngCw==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-map": "^2.0.3", + "is-set": "^2.0.3", + "is-weakmap": "^2.0.2", + "is-weakset": "^2.0.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/which-module": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.1.tgz", + "integrity": "sha512-iBdZ57RDvnOR9AGBhML2vFZf7h8vmBjhoaZqODJBFWHVtKkDmKuHai3cx5PgVMrX5YDNp27AofYbAwctSS+vhQ==", + "license": "ISC" + }, + "node_modules/which-typed-array": { + "version": "1.1.20", + "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.20.tgz", + "integrity": "sha512-LYfpUkmqwl0h9A2HL09Mms427Q1RZWuOHsukfVcKRq9q95iQxdw0ix1JQrqbcDR9PH1QDwf5Qo8OZb5lksZ8Xg==", + "dev": true, + "license": "MIT", + "dependencies": { + "available-typed-arrays": "^1.0.7", + "call-bind": "^1.0.8", + "call-bound": "^1.0.4", + "for-each": "^0.3.5", + "get-proto": "^1.0.1", + "gopd": "^1.2.0", + "has-tostringtag": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "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/wrap-ansi": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", + "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/wrap-ansi/node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/wrap-ansi/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==", + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/wrap-ansi/node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/wsl-utils": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/wsl-utils/-/wsl-utils-0.1.0.tgz", + "integrity": "sha512-h3Fbisa2nKGPxCpm89Hk33lBLsnaGBvctQopaBSOW/uIs6FTe1ATyAnKFJrzVs9vpGdsTe73WF3V4lIsk4Gacw==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-wsl": "^3.1.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/xml-name-validator": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-4.0.0.tgz", + "integrity": "sha512-ICP2e+jsHvAj2E2lIHxa5tjXRlKDJo4IdvPvCXbXQGdzSfmSpNVyIKMvoZHjDY9DP0zV17iI85o90vRFXNccRw==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=12" + } + }, + "node_modules/y18n": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", + "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==", + "license": "ISC" + }, + "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/yaml": { + "version": "2.8.2", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.8.2.tgz", + "integrity": "sha512-mplynKqc1C2hTVYxd0PU2xQAc22TI1vShAYGksCCfxbn/dFwnHTNi1bvYsBTkhdUNtGIf5xNOg938rrSSYvS9A==", + "license": "ISC", + "bin": { + "yaml": "bin.mjs" + }, + "engines": { + "node": ">= 14.6" + }, + "funding": { + "url": "https://github.com/sponsors/eemeli" + } + }, + "node_modules/yargs": { + "version": "15.4.1", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz", + "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==", + "license": "MIT", + "dependencies": { + "cliui": "^6.0.0", + "decamelize": "^1.2.0", + "find-up": "^4.1.0", + "get-caller-file": "^2.0.1", + "require-directory": "^2.1.1", + "require-main-filename": "^2.0.0", + "set-blocking": "^2.0.0", + "string-width": "^4.2.0", + "which-module": "^2.0.0", + "y18n": "^4.0.0", + "yargs-parser": "^18.1.2" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/yargs-parser": { + "version": "18.1.3", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz", + "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==", + "license": "ISC", + "dependencies": { + "camelcase": "^5.0.0", + "decamelize": "^1.2.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/yargs/node_modules/find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "license": "MIT", + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/yargs/node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "license": "MIT", + "dependencies": { + "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/yargs/node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "license": "MIT", + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/yargs/node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "license": "MIT", + "dependencies": { + "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" + } + }, + "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/zrender": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/zrender/-/zrender-6.0.0.tgz", + "integrity": "sha512-41dFXEEXuJpNecuUQq6JlbybmnHaqqpGlbH1yxnA5V9MMP4SbohSVZsJIwz+zdjQXSSlR1Vc34EgH1zxyTDvhg==", + "license": "BSD-3-Clause", + "dependencies": { + "tslib": "2.3.0" + } + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 00000000..156dffc4 --- /dev/null +++ b/package.json @@ -0,0 +1,57 @@ +{ + "name": "newproject", + "version": "0.0.0", + "private": true, + "type": "module", + "scripts": { + "dev": "vite", + "build": "run-p type-check \"build-only {@}\" --", + "preview": "vite preview", + "build-only": "vite build", + "type-check": "vue-tsc --build" + }, + "dependencies": { + "@element-plus/icons-vue": "^2.3.2", + "@types/nprogress": "^0.2.3", + "@vueuse/core": "^14.2.1", + "axios": "^1.13.6", + "dayjs": "^1.11.19", + "echarts": "^6.0.0", + "element-plus": "^2.13.3", + "js-cookie": "^3.0.5", + "jsbarcode": "^3.12.3", + "nprogress": "^0.2.0", + "path-browserify": "^1.0.1", + "path-to-regexp": "^8.3.0", + "pinia": "^3.0.4", + "qrcode": "^1.5.4", + "spark-md5": "^3.0.2", + "three": "^0.183.2", + "uuid": "^13.0.0", + "vue": "^3.5.29", + "vue-draggable-plus": "^0.6.1", + "vue-i18n": "^11.2.8", + "vue-router": "^5.0.3" + }, + "devDependencies": { + "@tsconfig/node24": "^24.0.4", + "@types/js-cookie": "^3.0.6", + "@types/node": "^24.11.0", + "@types/path-browserify": "^1.0.3", + "@types/spark-md5": "^3.0.5", + "@vitejs/plugin-vue": "^6.0.4", + "@vue/tsconfig": "^0.8.1", + "eslint-plugin-vue": "^10.8.0", + "fast-glob": "^3.3.3", + "npm-run-all2": "^8.0.4", + "sass": "^1.97.3", + "typescript": "~5.9.3", + "vite": "^7.3.1", + "vite-plugin-svg-icons": "^2.0.1", + "vite-plugin-vue-devtools": "^8.0.6", + "vue-tsc": "^3.2.5" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + } +} diff --git a/public/favicon.ico b/public/favicon.ico new file mode 100644 index 00000000..df36fcfb Binary files /dev/null and b/public/favicon.ico differ diff --git a/public/logo/1.png b/public/logo/1.png new file mode 100644 index 00000000..4123c8e0 Binary files /dev/null and b/public/logo/1.png differ diff --git a/src/App.vue b/src/App.vue new file mode 100644 index 00000000..7c1bf97b --- /dev/null +++ b/src/App.vue @@ -0,0 +1,25 @@ + + + + + diff --git a/src/api/index.ts b/src/api/index.ts new file mode 100644 index 00000000..1697d21f --- /dev/null +++ b/src/api/index.ts @@ -0,0 +1,137 @@ +import request from '@/utils/request' + +export function fastWhereTree(type:any) { + return request({ + url: '/system', + method: 'post', + params: { + method: 'index.fastWhereTree', + v: '1.0', + timestamp: new Date().getTime() + }, + data: {type}, + isSystemApi: true + } as any) +} +export function loadStores(type:any) { + return request({ + url: '/system', + method: 'post', + params: { + method: 'index.loadStores', + v: '1.0', + timestamp: new Date().getTime() + }, + data: {type}, + isSystemApi: true + } as any) +} +export function getCOSUploadConfig(data:any){ + return request({ + url: '/system', + method: 'post', + params: { + method: 'index.getCOSUploadConfig', + v: '1.0', + timestamp: new Date().getTime() + }, + data: {data}, + isSystemApi: true + } as any) +} +export function getImages(data:any){ + return request({ + url: '/system', + method: 'post', + params: { + method: 'index.getImages', + v: '1.0', + timestamp: new Date().getTime() + }, + data: data, + isSystemApi: true + } as any) +} + +export function uploadSuccessNotify(data:any){ + return request({ + url: '/system', + method: 'post', + params: { + method: 'index.uploadSuccessNotify', + v: '1.0', + timestamp: new Date().getTime() + }, + data: data, + isSystemApi: true + } as any) +} + +export function ReferenceFile(data:any){ + return request({ + url: '/system', + method: 'post', + params: { + method: 'index.ReferenceFile', + v: '1.0', + timestamp: new Date().getTime() + }, + data: data, + isSystemApi: true + } as any) +} + +export function getMessageDetail(data:any){ + return request({ + url: '/system', + method: 'post', + params: { + method: 'index.getMessageDetail', + v: '1.0', + timestamp: new Date().getTime() + }, + data: data, + isSystemApi: true + } as any) +} + +export function getI18nMessage(data:any){ + return request({ + url: '/system', + method: 'post', + params: { + method: 'index.getI18nMessage', + v: '1.0', + timestamp: new Date().getTime() + }, + data: data, + isSystemApi: true + } as any) +} + +export function putI18nCollect(data:any){ + return request({ + url: '/system', + method: 'post', + params: { + method: 'index.putI18nCollect', + v: '1.0', + timestamp: new Date().getTime() + }, + data: data, + isSystemApi: true + } as any) +} + +export function getExpressList(){ + return request({ + url: '/system', + method: 'post', + params: { + method: 'index.getExpressList', + v: '1.0', + timestamp: new Date().getTime() + }, + isSystemApi: true + } as any) +} diff --git a/src/api/print/station.ts b/src/api/print/station.ts new file mode 100644 index 00000000..cd6b8065 --- /dev/null +++ b/src/api/print/station.ts @@ -0,0 +1,159 @@ +import request from '@/utils/request' +const v = "1.0"; + +export function getList(data:any){ + return request({ + url: '/system', + method: 'post', + params: { + method: 'print.getList', + v, + timestamp: new Date().getTime() + }, + data: data + }) +} + +export function getItem(id: string) { + return request({ + url: '/system', + method: 'post', + params: { + method: 'print.getItem', + v, + timestamp: new Date().getTime() + }, + data: { id } + }) +} + +export function add(data: any) { + return request({ + url: '/system', + method: 'post', + params: { + method: 'print.add', + v, + timestamp: new Date().getTime() + }, + data: data + }) +} + +export function hasName(data: any) { + return request({ + url: '/system', + method: 'post', + params: { + method: 'print.hasName', + v, + timestamp: new Date().getTime() + }, + data: data + }) +} + + + + +export function updateItem(data: any) { + return request({ + url: '/system', + method: 'post', + params: { + method: 'print.updateItem', + v, + timestamp: new Date().getTime() + }, + data: data + }) +} + +// 删除单个打印台(兼容传入 id 或 { ids: [...] }) +export function delItem(idOrPayload: any) { + let payload: any = idOrPayload + if (typeof idOrPayload === 'string' || typeof idOrPayload === 'number') { + payload = { ids: [String(idOrPayload)] } + } else if (Array.isArray(idOrPayload)) { + payload = { ids: idOrPayload } + } + + return request({ + url: '/system', + method: 'post', + params: { + method: 'print.del', + v, + timestamp: new Date().getTime() + }, + data: payload + }) +} + +// 批量删除打印台,接受 id 字符串数组 +export function delItems(ids: string[]) { + const payload = { ids: ids.map(String) } + return request({ + url: '/system', + method: 'post', + params: { + method: 'print.del', + v, + timestamp: new Date().getTime() + }, + data: payload + }) +} + +export function getComputer() { + return request({ + url: '/system', + method: 'post', + params: { + method: 'print.getComputer', + v, + timestamp: new Date().getTime() + }, + data: {} + }) +} + +export function getExpressList() { + return request({ + url: '/system', + method: 'post', + params: { + method: 'index.getExpressList', + v, + timestamp: new Date().getTime() + }, + data:{}, + }) +} + +export function getComputerPrinter(id: string) { + return request({ + url: '/system', + method: 'post', + params: { + method: 'print.getComputerPrinter', + v, + timestamp: new Date().getTime() + }, + data: { id } + }) +} + +// 保存打印机与快递绑定关系 +export function savePrinters(data: any) { + return request({ + url: '/system', + method: 'post', + params: { + method: 'print.savePrinters', + v, + timestamp: new Date().getTime() + }, + data: data + }) +} diff --git a/src/api/printTemplate.ts b/src/api/printTemplate.ts new file mode 100644 index 00000000..efaab898 --- /dev/null +++ b/src/api/printTemplate.ts @@ -0,0 +1,196 @@ +import request from '@/utils/request' + +// 模板列表(旧接口,保留兼容) +export function listTemplates(data:any) { + return request({ + url: '/system', + method: 'post', + params: { + method: 'setting.printTemplate.list', + v: '1.0', + timestamp: new Date().getTime() + }, + data: data, + isSystemApi: true + } as any) +} + +// 新的模板列表请求,接受业务类型参数用于过滤 +export function listTemplatesByType(data:any) { + // 内部映射仍使用同一方法,后端根据 data.businessType 处理 + return request({ + url: '/system', + method: 'post', + params: { + method: 'setting.printTemplate.listTemplatesByType', + v: '1.0', + timestamp: new Date().getTime() + }, + data: data, + isSystemApi: true + } as any) +} + +// 获取模板详情 +export function getTemplateDetail(data:any) { + return request({ + url: '/system', + method: 'post', + params: { + method: 'setting.printTemplate.get', + v: '1.0', + timestamp: new Date().getTime() + }, + data: data, + isSystemApi: true + } as any) +} + +// 创建模板 +export function createTemplate(data:any) { + return request({ + url: '/system', + method: 'post', + params: { + method: 'setting.printTemplate.create', + v: '1.0', + timestamp: new Date().getTime() + }, + data: data, + isSystemApi: true + } as any) +} + +// 更新模板 +export function updateTemplate(data:any) { + return request({ + url: '/system', + method: 'post', + params: { + method: 'setting.printTemplate.update', + v: '1.0', + timestamp: new Date().getTime() + }, + data: data, + isSystemApi: true + } as any) +} + +// 删除模板 +export function deleteTemplate(data:any) { + return request({ + url: '/system', + method: 'post', + params: { + method: 'setting.printTemplate.delete', + v: '1.0', + timestamp: new Date().getTime() + }, + data: data, + isSystemApi: true + } as any) +} + +// 导出模板为 XML +export function exportTemplateXml(data:any) { + return request({ + url: '/system', + method: 'post', + params: { + method: 'setting.printTemplate.exportXml', + v: '1.0', + timestamp: new Date().getTime() + }, + data: data, + isSystemApi: true + } as any) +} + +// 导入 XML 模板 +export function importTemplateXml(data:any) { + return request({ + url: '/system', + method: 'post', + params: { + method: 'setting.printTemplate.importXml', + v: '1.0', + timestamp: new Date().getTime() + }, + data: data, + isSystemApi: true + } as any) +} + +// 元素相关:新增元素 +export function addElement(data:any) { + return request({ + url: '/system', + method: 'post', + params: { + method: 'setting.printTemplate.addElement', + v: '1.0', + timestamp: new Date().getTime() + }, + data: data, + isSystemApi: true + } as any) +} + +// 更新元素 +export function updateElement(data:any) { + return request({ + url: '/system', + method: 'post', + params: { + method: 'setting.printTemplate.updateElement', + v: '1.0', + timestamp: new Date().getTime() + }, + data: data, + isSystemApi: true + } as any) +} + +// 删除元素 +export function deleteElement(data:any) { + return request({ + url: '/system', + method: 'post', + params: { + method: 'setting.printTemplate.deleteElement', + v: '1.0', + timestamp: new Date().getTime() + }, + data: data, + isSystemApi: true + } as any) +} + +// 复制元素 +export function duplicateElement(data:any) { + return request({ + url: '/system', + method: 'post', + params: { + method: 'setting.printTemplate.duplicateElement', + v: '1.0', + timestamp: new Date().getTime() + }, + data: data, + isSystemApi: true + } as any) +} +export function saveTemplate (data:any) { + return request({ + url: '/system', + method: 'post', + params: { + method: 'setting.printTemplate.save', + v: '1.0', + timestamp: new Date().getTime() + }, + data: data, + isSystemApi: true + } as any) +} + diff --git a/src/api/printer.ts b/src/api/printer.ts new file mode 100644 index 00000000..2117f3a6 --- /dev/null +++ b/src/api/printer.ts @@ -0,0 +1,171 @@ +import request from '@/utils/request' + +// ---------------- 打印台 (Print Station) ---------------- + +// 打印台列表 +export function listPrintStations(data:any) { + return request({ + url: '/system', + method: 'post', + params: { + method: 'printer.station.list', + v: '1.0', + timestamp: new Date().getTime() + }, + data: data, + isSystemApi: true + } as any) +} + +// 创建打印台 +export function createPrintStation(data:any) { + return request({ + url: '/system', + method: 'post', + params: { + method: 'printer.station.create', + v: '1.0', + timestamp: new Date().getTime() + }, + data: data, + isSystemApi: true + } as any) +} + +// 更新打印台 +export function updatePrintStation(data:any) { + return request({ + url: '/system', + method: 'post', + params: { + method: 'printer.station.update', + v: '1.0', + timestamp: new Date().getTime() + }, + data: data, + isSystemApi: true + } as any) +} + +// 删除打印台 +export function deletePrintStation(data:any) { + return request({ + url: '/system', + method: 'post', + params: { + method: 'printer.station.delete', + v: '1.0', + timestamp: new Date().getTime() + }, + data: data, + isSystemApi: true + } as any) +} +// ---------------- 打印电脑 (Print Computer) ---------------- + +// 打印电脑列表 +export function listPrintComputers(data:any) { + return request({ + url: '/system', + method: 'post', + params: { + method: 'printer.computer.list', + v: '1.0', + timestamp: new Date().getTime() + }, + data: data, + isSystemApi: true + } as any) +} + +// 创建打印电脑 +export function createPrintComputer(data:any) { + return request({ + url: '/system', + method: 'post', + params: { + method: 'printer.computer.create', + v: '1.0', + timestamp: new Date().getTime() + }, + data: data, + isSystemApi: true + } as any) +} + +// 更新打印电脑 +export function updatePrintComputer(data:any) { + return request({ + url: '/system', + method: 'post', + params: { + method: 'printer.computer.update', + v: '1.0', + timestamp: new Date().getTime() + }, + data: data, + isSystemApi: true + } as any) +} + +// 删除打印电脑 +export function deletePrintComputer(data:any) { + return request({ + url: '/system', + method: 'post', + params: { + method: 'printer.computer.delete', + v: '1.0', + timestamp: new Date().getTime() + }, + data: data, + isSystemApi: true + } as any) +} + +// ---------------- 打印机绑定 (Printer Binding) ---------------- + +// 打印机列表 (获取电脑上的物理打印机) +export function listPrinters(data:any) { + return request({ + url: '/system', + method: 'post', + params: { + method: 'printer.device.list', + v: '1.0', + timestamp: new Date().getTime() + }, + data: data, + isSystemApi: true + } as any) +} + +// 绑定打印机到打印台 +export function bindPrinterToStation(data:any) { + return request({ + url: '/system', + method: 'post', + params: { + method: 'printer.station.bind', + v: '1.0', + timestamp: new Date().getTime() + }, + data: data, + isSystemApi: true + } as any) +} + +// 解绑打印机 +export function unbindPrinterFromStation(data:any) { + return request({ + url: '/system', + method: 'post', + params: { + method: 'printer.station.unbind', + v: '1.0', + timestamp: new Date().getTime() + }, + data: data, + isSystemApi: true + } as any) +} diff --git a/src/api/stock.ts b/src/api/stock.ts new file mode 100644 index 00000000..7bcd5123 --- /dev/null +++ b/src/api/stock.ts @@ -0,0 +1,325 @@ +import request from '@/utils/request' + +const v = "1.0"; + +export function stockWarehouse(pagination: any, data: any) { + return request({ + url: '/system', + method: 'post', + params: { + method: 'stock.stockWarehouse', + v, + timestamp: new Date().getTime() + }, + data: { pagination, where: data }, + isSystemApi: true + } as any) +} + +export function getProhibitedType() { + return request({ + url: '/system', + method: 'post', + params: { + method: 'stock.getProhibitedType', + v, + timestamp: new Date().getTime() + }, + data: {}, + isSystemApi: true + } as any) +} + +export function getProhibitedList() { + return request({ + url: '/system', + method: 'post', + params: { + method: 'stock.getProhibitedList', + v, + timestamp: new Date().getTime() + }, + data: {}, + isSystemApi: true + } as any) +} + +export function getInfo(id: any) { + return request({ + url: '/system', + method: 'post', + params: { + method: 'stock.getInfo', + v, + timestamp: new Date().getTime() + }, + data: { id }, + isSystemApi: true + } as any) +} + +export function saveWarehouseStock(data: any) { + return request({ + url: '/system', + method: 'post', + params: { + method: 'stock.saveWarehouseStock', + v, + timestamp: new Date().getTime() + }, + data: data, + isSystemApi: true + } as any) +} + +export function getBarcodes(id: any) { + return request({ + url: '/system', + method: 'post', + params: { + method: 'stock.getBarcodes', + v, + timestamp: new Date().getTime() + }, + data: { id }, + isSystemApi: true + } as any) +} + +export function saveWarehouseStockBarcode(data: any) { + return request({ + url: '/system', + method: 'post', + params: { + method: 'stock.saveWarehouseStockBarcode', + v, + timestamp: new Date().getTime() + }, + data: data, + isSystemApi: true + } as any) +} + +export function getStoreStocks(data: any) { + return request({ + url: '/system', + method: 'post', + params: { + method: 'stock.getStoreStocks', + v, + timestamp: new Date().getTime() + }, + data: data, + isSystemApi: true + } as any) +} + +export function bindItem(data: any) { + return request({ + url: '/system', + method: 'post', + params: { + method: 'stock.bindItem', + v, + timestamp: new Date().getTime() + }, + data: data, + isSystemApi: true + } as any) +} + +export function unbindItem(data: any) { + return request({ + url: '/system', + method: 'post', + params: { + method: 'stock.unbindItem', + v, + timestamp: new Date().getTime() + }, + data: data, + isSystemApi: true + } as any) +} + +export function queryStockLogs(data: any) { + return request({ + url: '/system', + method: 'post', + params: { + method: 'stock.queryStockLogs', + v, + timestamp: new Date().getTime() + }, + data: data, + isSystemApi: true + } as any) +} + +export function getStockUnits() { + return request({ + url: '/system', + method: 'post', + params: { + method: 'stock.getStockUnits', + v, + timestamp: new Date().getTime() + }, + data: {}, + isSystemApi: true + } as any) +} + +export function getUnitList() { + return request({ + url: '/system', + method: 'post', + params: { + method: 'stock.getUnitList', + v, + timestamp: new Date().getTime() + }, + data: {}, + isSystemApi: true + } as any) +} + +export function createUnit(data: any) { + return request({ + url: '/system', + method: 'post', + params: { + method: 'stock.createUnit', + v, + timestamp: new Date().getTime() + }, + data: data, + isSystemApi: true + } as any) +} + +export function getBoxUnits() { + return request({ + url: '/system', + method: 'post', + params: { + method: 'stock.getBoxUnits', + v, + timestamp: new Date().getTime() + }, + data: {}, + isSystemApi: true + } as any) +} + +export function checkItemCodeUnique(data: any) { + return request({ + url: '/system', + method: 'post', + params: { + method: 'stock.checkItemCodeUnique', + v, + timestamp: new Date().getTime() + }, + data: data, + isSystemApi: true + } as any) +} + +export function createWarehouseStock(data: any) { + return request({ + url: '/system', + method: 'post', + params: { + method: 'stock.createWarehouseStock', + v, + timestamp: new Date().getTime() + }, + data: data, + isSystemApi: true + } as any) +} + +export function handleBatchDelete(data: any) { + return request({ + url: '/system', + method: 'post', + params: { + method: 'stock.handleBatchDelete', + v, + timestamp: new Date().getTime() + }, + data: data, + isSystemApi: true + } as any) +} + +export function handleBatchChange(data: any) { + return request({ + url: '/system', + method: 'post', + params: { + method: 'stock.handleBatchChange', + v, + timestamp: new Date().getTime() + }, + data: data, + isSystemApi: true + } as any) +} + +export function deleteUnit(data: any) { + return request({ + url: '/system', + method: 'post', + params: { + method: 'stock.deleteUnit', + v, + timestamp: new Date().getTime() + }, + data: data, + isSystemApi: true + } as any) +} + +export function createProhibited(data: any) { + return request({ + url: '/system', + method: 'post', + params: { + method: 'stock.createProhibited', + v, + timestamp: new Date().getTime() + }, + data: data, + isSystemApi: true + } as any) +} + +export function deleteProhibited(data: any) { + return request({ + url: '/system', + method: 'post', + params: { + method: 'stock.deleteProhibited', + v, + timestamp: new Date().getTime() + }, + data: data, + isSystemApi: true + } as any) +} + +export function backData(data: any) { + return request({ + url: '/system', + method: 'post', + params: { + method: 'stock.backData', + v, + timestamp: new Date().getTime() + }, + data: data, + isSystemApi: true + } as any) +} diff --git a/src/api/storage/receiving.ts b/src/api/storage/receiving.ts new file mode 100644 index 00000000..6e1cc58d --- /dev/null +++ b/src/api/storage/receiving.ts @@ -0,0 +1,54 @@ +import request from '@/utils/request' +const v = "1.0" + +export function getReceivingList(data: any): Promise { + return request({ + url: '/system', + method: 'post', + params: { + method: 'storage.receiving.getReceivingList', + v, + timestamp: new Date().getTime() + }, + data: data + }) +} + +export function getReceivingDetail(data: any): Promise { + return request({ + url: '/system', + method: 'post', + params: { + method: 'storage.receiving.getReceivingDetail', + v, + timestamp: new Date().getTime() + }, + data: data + }) +} + +export function batchCancelReceiving(data: any): Promise { + return request({ + url: '/system', + method: 'post', + params: { + method: 'storage.receiving.batchCancelReceiving', + v, + timestamp: new Date().getTime() + }, + data: data + }) +} + +export function exportReceiving(data: any): Promise { + return request({ + url: '/system', + method: 'post', + params: { + method: 'storage.receiving.exportReceiving', + v, + timestamp: new Date().getTime() + }, + data: data + }) +} \ No newline at end of file diff --git a/src/api/store.ts b/src/api/store.ts new file mode 100644 index 00000000..b63f6061 --- /dev/null +++ b/src/api/store.ts @@ -0,0 +1,85 @@ +import request from '@/utils/request' +const v = "1.0"; +export function createStore(data:any) { + return request({ + url: '/system', + method: 'post', + params: { + method: 'store.createStore', + v, + timestamp: new Date().getTime() + }, + data: data, + isSystemApi: true + } as any) +} + +export function createWarehouse(data:any) { + return request({ + url: '/system', + method: 'post', + params: { + method: 'store.createWarehouse', + v, + timestamp: new Date().getTime() + }, + data: data, + isSystemApi: true + } as any) +} + +export function joinStore(data:any) { + return request({ + url: '/system', + method: 'post', + params: { + method: 'store.joinStore', + v, + timestamp: new Date().getTime() + }, + data: data, + isSystemApi: true + } as any) +} + +export function joinWarehouse(data:any) { + return request({ + url: '/system', + method: 'post', + params: { + method: 'store.joinWarehouse', + v, + timestamp: new Date().getTime() + }, + data: data, + isSystemApi: true + } as any) +} + +export function auditApply(data:any) { + return request({ + url: '/system', + method: 'post', + params: { + method: 'store.auditApply', + v, + timestamp: new Date().getTime() + }, + data: data, + isSystemApi: true + } as any) +} + +export function getStoreRoles(data:any) { + return request({ + url: '/system', + method: 'post', + params: { + method: 'store.getStoreRoles', + v, + timestamp: new Date().getTime() + }, + data: data, + isSystemApi: true + } as any) +} diff --git a/src/api/system/config.ts b/src/api/system/config.ts new file mode 100644 index 00000000..0369dbef --- /dev/null +++ b/src/api/system/config.ts @@ -0,0 +1,66 @@ +import request from '@/utils/request' + +// 查询参数列表 +export function listConfig(query: any) { + return request({ + url: '/system', + method: 'post', + params: { + method: 'config.list', + v: '1.0', + timestamp: new Date().getTime() + }, + data: query, + isSystemApi:true, + } as any) +} + +// 查询参数详细 +export function getConfig(configId:any) { + return request({ + url: '/system/config/getConfigValue/' + configId, + method: 'get' + }) +} + +// 根据参数键名查询参数值 +export function getConfigKey(configKey:any) { + return request({ + url: '/system/config/configKey/' + configKey, + method: 'get' + }) +} + +// 新增参数配置 +export function addConfig(data:any) { + return request({ + url: '/system/config', + method: 'post', + data: data + }) +} + +// 修改参数配置 +export function updateConfig(data:any) { + return request({ + url: '/system/config', + method: 'put', + data: data + }) +} + +// 删除参数配置 +export function delConfig(configId:any) { + return request({ + url: '/system/config/' + configId, + method: 'delete' + }) +} + +// 刷新参数缓存 +export function refreshCache() { + return request({ + url: '/system/config/refreshCache', + method: 'delete' + }) +} \ No newline at end of file diff --git a/src/api/table.ts b/src/api/table.ts new file mode 100644 index 00000000..03e4c866 --- /dev/null +++ b/src/api/table.ts @@ -0,0 +1,9 @@ +import request from '@/utils/request' + +export function getList(params: any) { + return request({ + url: '/vue-admin-template/table/list', + method: 'get', + params + }) +} diff --git a/src/api/user.ts b/src/api/user.ts new file mode 100644 index 00000000..b262de42 --- /dev/null +++ b/src/api/user.ts @@ -0,0 +1,82 @@ +import request from '@/utils/request' +import type { AxiosRequestConfig } from 'axios' + +interface SystemApiRequestConfig extends AxiosRequestConfig { + isSystemApi?: boolean; +} + +export interface UserLoginParams { + [key: string]: any; +} + +export function login(data: UserLoginParams) { + return request({ + url: '/system', + method: 'post', + params: { + method: 'user.login', + v: '1.0', + timestamp: new Date().getTime() + }, + data, + isSystemApi: true + } as SystemApiRequestConfig); +} + +export function register (data:any):any { + return request({ + url: '/system', + method: 'post', + params: { + method: 'user.register', + v: '1.0', + timestamp: new Date().getTime() + }, + data, + isSystemApi: true + } as SystemApiRequestConfig); +} + + + +export function getInfo(data: Record) { + return request({ + url: '/system', + method: 'post', + params: { + method: 'user.info', + v: '1.0', + timestamp: new Date().getTime() + }, + data, + isSystemApi: true + } as SystemApiRequestConfig>); +} + +export function changeRole(data: Record) { + return request({ + url: '/system', + method: 'post', + params: { + method: 'user.changeRole', + v: '1.0', + timestamp: new Date().getTime() + }, + data, + isSystemApi: true + } as SystemApiRequestConfig>); +} + +export function logout(data?: Record) { + return request({ + url: '/system', + method: 'post', + params: { + method: 'user.logout', + v: '1.0', + timestamp: new Date().getTime() + }, + data: {}, + isSystemApi: true + } as SystemApiRequestConfig>); +} diff --git a/src/api/warehouse.ts b/src/api/warehouse.ts new file mode 100644 index 00000000..b7b75f8e --- /dev/null +++ b/src/api/warehouse.ts @@ -0,0 +1,212 @@ +// src/api/warehouse.js + +import request from '@/utils/request' + +export function getWarehouseZones(data:any) { + return request({ + url: '/system', + method: 'post', + params: { + method: 'warehouse.getWarehouseZones', + v: '1.0', + timestamp: new Date().getTime() + }, + data: data || {}, + isSystemApi: true + } as any) +} + +export function getWarehouseTree(warehouseId:any) { + return request({ + url: '/system', + method: 'post', + params: { + method: 'warehouse.getWarehouseTree', + v: '1.0', + timestamp: new Date().getTime() + }, + data: { warehouseId }, + isSystemApi: true + } as any) +} + +export function getChildren(zoneId:any) { + return request({ + url: '/system', + method: 'post', + params: { + method: 'warehouse.getChildren', + v: '1.0', + timestamp: new Date().getTime() + }, + data: { zoneId }, + isSystemApi: true + } as any) +} + +export function create(data:any) { + return request({ + url: '/system', + method: 'post', + params: { + method: 'warehouse.create', + v: '1.0', + timestamp: new Date().getTime() + }, + data: data, + isSystemApi: true + } as any) +} + +export function update(data:any, id:any) { + return request({ + url: '/system', + method: 'post', + params: { + method: 'warehouse.update', + v: '1.0', + timestamp: new Date().getTime() + }, + data: { id, ...data }, + isSystemApi: true + } as any ) +} + +export function deleteZone(id:any) { // 避免使用保留字 + return request({ + url: '/system', + method: 'post', + params: { + method: 'warehouse.delete', + v: '1.0', + timestamp: new Date().getTime() + }, + data: { id }, + isSystemApi: true + } as any) +} + +export function detail(id:any) { + return request({ + url: '/system', + method: 'post', + params: { + method: 'warehouse.detail', + v: '1.0', + timestamp: new Date().getTime() + }, + data: { id }, + isSystemApi: true + } as any) +} + +export function toggleActive(id:any, isActive:any) { + return request({ + url: '/system', + method: 'post', + params: { + method: 'warehouse.toggleActive', + v: '1.0', + timestamp: new Date().getTime() + }, + data: { id, isActive }, + isSystemApi: true + } as any) +} + +export function getPath(id:any) { + return request({ + url: '/system', + method: 'post', + params: { + method: 'warehouse.getPath', + v: '1.0', + timestamp: new Date().getTime() + }, + data: { id }, + isSystemApi: true + } as any) +} + +// 检测连通性 +export function checkConnectivity(data:any) { + return request({ + url: '/system', + method: 'post', + params: { + method: 'warehouse.checkConnectivity', + v: '1.0', + timestamp: new Date().getTime() + }, + data: data, + isSystemApi: true + } as any) +} + +export function getSpacesByRack(id:any){ + return request({ + url: '/system', + method: 'post', + params: { + method: 'warehouse.getSpacesByRack', + v: '1.0', + timestamp: new Date().getTime() + }, + data: {id:id}, + isSystemApi: true + } as any) +} + +export function createRackWithSpaces(id:any){ + return request({ + url: '/system', + method: 'post', + params: { + method: 'warehouse.createRackWithSpaces', + v: '1.0', + timestamp: new Date().getTime() + }, + data: {id:id}, + isSystemApi: true + } as any) +} + +export function getSpaceInfo(id:any){ + return request({ + url: '/system', + method: 'post', + params: { + method: 'warehouse.getSpaceInfo', + v: '1.0', + timestamp: new Date().getTime() + }, + data: {id:id}, + isSystemApi: true + } as any) +} +export function checkBarcodeUnique(data:any){ + return request({ + url: '/system', + method: 'post', + params: { + method: 'warehouse.checkBarcodeUnique', + v: '1.0', + timestamp: new Date().getTime() + }, + data: data, + isSystemApi: true + } as any) +} +export function updateSpaceInfo(data:any){ + return request({ + url: '/system', + method: 'post', + params: { + method: 'warehouse.updateSpaceInfo', + v: '1.0', + timestamp: new Date().getTime() + }, + data: data, + isSystemApi: true + } as any) +} diff --git a/src/assets/404_images/404.png b/src/assets/404_images/404.png new file mode 100644 index 00000000..3d8e2305 Binary files /dev/null and b/src/assets/404_images/404.png differ diff --git a/src/assets/404_images/404_cloud.png b/src/assets/404_images/404_cloud.png new file mode 100644 index 00000000..c6281d09 Binary files /dev/null and b/src/assets/404_images/404_cloud.png differ diff --git a/src/components/Breadcrumb/index.vue b/src/components/Breadcrumb/index.vue new file mode 100644 index 00000000..2a632b16 --- /dev/null +++ b/src/components/Breadcrumb/index.vue @@ -0,0 +1,86 @@ + + + + + diff --git a/src/components/ImagesUpload/index.vue b/src/components/ImagesUpload/index.vue new file mode 100644 index 00000000..811e8f72 --- /dev/null +++ b/src/components/ImagesUpload/index.vue @@ -0,0 +1,578 @@ + + + + + diff --git a/src/components/LangSelect/index.vue b/src/components/LangSelect/index.vue new file mode 100644 index 00000000..958d78ec --- /dev/null +++ b/src/components/LangSelect/index.vue @@ -0,0 +1,57 @@ + + + + + \ No newline at end of file diff --git a/src/components/RequestData/index.vue b/src/components/RequestData/index.vue new file mode 100644 index 00000000..bcfed5eb --- /dev/null +++ b/src/components/RequestData/index.vue @@ -0,0 +1,365 @@ + + + + + diff --git a/src/components/ScanBox/index.vue b/src/components/ScanBox/index.vue new file mode 100644 index 00000000..2d48ddcd --- /dev/null +++ b/src/components/ScanBox/index.vue @@ -0,0 +1,896 @@ + + + + + diff --git a/src/components/SvgIcon/index.vue b/src/components/SvgIcon/index.vue new file mode 100644 index 00000000..819ba41d --- /dev/null +++ b/src/components/SvgIcon/index.vue @@ -0,0 +1,54 @@ + + + + + diff --git a/src/components/UpperTable/index.vue b/src/components/UpperTable/index.vue new file mode 100644 index 00000000..aecd914a --- /dev/null +++ b/src/components/UpperTable/index.vue @@ -0,0 +1,696 @@ + + + + + diff --git a/src/icons/index.js b/src/icons/index.js new file mode 100644 index 00000000..2c6b309c --- /dev/null +++ b/src/icons/index.js @@ -0,0 +1,9 @@ +import Vue from 'vue' +import SvgIcon from '@/components/SvgIcon'// svg component + +// register globally +Vue.component('svg-icon', SvgIcon) + +const req = require.context('./svg', false, /\.svg$/) +const requireAll = requireContext => requireContext.keys().map(requireContext) +requireAll(req) diff --git a/src/icons/svg/dashboard.svg b/src/icons/svg/dashboard.svg new file mode 100644 index 00000000..5317d370 --- /dev/null +++ b/src/icons/svg/dashboard.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/icons/svg/example.svg b/src/icons/svg/example.svg new file mode 100644 index 00000000..46f42b53 --- /dev/null +++ b/src/icons/svg/example.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/icons/svg/eye-open.svg b/src/icons/svg/eye-open.svg new file mode 100644 index 00000000..88dcc98e --- /dev/null +++ b/src/icons/svg/eye-open.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/icons/svg/eye.svg b/src/icons/svg/eye.svg new file mode 100644 index 00000000..16ed2d87 --- /dev/null +++ b/src/icons/svg/eye.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/icons/svg/form.svg b/src/icons/svg/form.svg new file mode 100644 index 00000000..dcbaa185 --- /dev/null +++ b/src/icons/svg/form.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/icons/svg/link.svg b/src/icons/svg/link.svg new file mode 100644 index 00000000..48197ba4 --- /dev/null +++ b/src/icons/svg/link.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/icons/svg/nested.svg b/src/icons/svg/nested.svg new file mode 100644 index 00000000..06713a86 --- /dev/null +++ b/src/icons/svg/nested.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/icons/svg/password.svg b/src/icons/svg/password.svg new file mode 100644 index 00000000..e291d85d --- /dev/null +++ b/src/icons/svg/password.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/icons/svg/table.svg b/src/icons/svg/table.svg new file mode 100644 index 00000000..0e3dc9de --- /dev/null +++ b/src/icons/svg/table.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/icons/svg/tree.svg b/src/icons/svg/tree.svg new file mode 100644 index 00000000..dd4b7dd2 --- /dev/null +++ b/src/icons/svg/tree.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/icons/svg/user.svg b/src/icons/svg/user.svg new file mode 100644 index 00000000..0ba0716a --- /dev/null +++ b/src/icons/svg/user.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/icons/svgo.yml b/src/icons/svgo.yml new file mode 100644 index 00000000..d11906ae --- /dev/null +++ b/src/icons/svgo.yml @@ -0,0 +1,22 @@ +# replace default config + +# multipass: true +# full: true + +plugins: + + # - name + # + # or: + # - name: false + # - name: true + # + # or: + # - name: + # param1: 1 + # param2: 2 + +- removeAttrs: + attrs: + - 'fill' + - 'fill-rule' diff --git a/src/lang/en-US.ts b/src/lang/en-US.ts new file mode 100644 index 00000000..1157073a --- /dev/null +++ b/src/lang/en-US.ts @@ -0,0 +1,147 @@ +export default { + "common": { + "add": "Add", + "edit": "Edit", + "delete": "Delete", + "search": "Search", + "export": "Export", + "language": "Language", + "validity": "Validity", + "days": "Days", + "refresh": "Refresh", + "Close": "Close", + "Close Other": "Close Other", + "Close All": "Close All" + }, + "menu": { + "Dashboard": "Dashboard", + "Download": "Download", + "orderManagement": "Order Management", + "System": "System", + "deliverOrder": "Deliver Order", + "orderSetting": "Order Setting", + "Stock Info": "Stock Info", + "Store Stock": "Store Stock", + "Combo Stock ": "Combo Stock", + "Stock Storage": "Stock Storage", + "receiving": "Receiving", + "Entry Order": "Entry Order", + "Stock out": "Stock Out", + "inventory": "Inventory", + "Log": "Log", + "Exception": "Exception", + "Material Info": "Material Info", + "Storage": "Storage", + "Bill": "Bill", + "Daily": "Daily", + "Account": "Account", + "Statistics": "Statistics", + "Valuation": "Valuation", + "Receivable": "Receivable", + "Encoding": "Encoding", + "Open": "Open Platform", + "basicManagement": "Basic Management", + "Order": "Order", + "Stock": "Stock", + "Material": "Material", + "Finance": "Finance", + "Warehouse": "Warehouse", + "Store": "Store", + "Express": "Express", + "Data": "Data", + "Video": "Video", + "Message": "Message", + "Profile": "Profile", + "printTemplate": "Print Template" + }, + "login": { + "title": "Login", + "username": "Username", + "password": "Password", + "logIn": "Login", + "loggingIn": "Logging in...", + "show": "Show", + "hide": "Hide", + "usernamePlaceholder": "Please enter username", + "passwordPlaceholder": "Please enter password", + "correctUsernameTip": "Please enter correct username", + "usernameLengthTip": "Please enter valid username", + "passwordLengthTip": "Password at least 6 characters", + "loginFailed": "Login failed", + "logOut": "Logout", + "register": "Register", + "confirmPassword": "Confirm Password", + "passwordMismatch": "Passwords do not match", + "registerSuccess": "Registration successful", + "toLogin": "Back to Login", + "noAccount": "Don't have an account?", + "hasAccount": "Already have an account?" + }, + "dashboard": { + "expressDistribution": "Express Distribution", + "hotOrderRank": "Hot Order Rank (Top 10)", + "rank": "Rank", + "productName": "Product Name", + "orderOutboundCount": "Order Outbound Count", + "trend": "Trend", + "viewAll": "View All", + "orderTrend": "Order Trend", + "today": "Today", + "thisWeek": "This Week", + "thisMonth": "This Month", + "platformDistribution": "Platform Distribution", + "todayOrders": "Today Orders", + "vsYesterday": "vs Yesterday", + "unassignedExpress": "Unassigned Express", + "toBeAssigned": "To Be Assigned", + "unprinted": "Unprinted", + "toBePrinted": "To Be Printed", + "unpicked": "Unpicked", + "needTimelyProcessing": "Need Timely Processing", + "pendingShipment": "Pending Shipment", + "welcomeCardPlaceholder": "Welcome Card Placeholder", + "warehouseStatistics": "Warehouse Statistics", + "storeStatistics": "Store Statistics", + "expressRatio": "Express Ratio", + "orderVolume": "Order Volume", + "shipmentVolume": "Shipment Volume", + "shipmentRate": "Shipment Rate", + "todayOutbound": "Today Outbound", + "completionRate": "Completion Rate", + "interceptedOrders": "Intercepted Orders", + "exceptionOrders": "Exception Orders" + }, + "inventory": { + "sku": "SKU", + "batch_no": "Batch No", + "quantity": "Quantity", + "locked_qty": "Locked Qty", + "safety_stock": "Safety Stock" + }, + "order": { + "order_no": "Order No", + "customer": "Customer", + "status": "Status", + "create_time": "Create Time", + "total_amount": "Total Amount" + }, + "shipment": { + "ship_no": "Shipment No", + "ship_type": "Type", + "express_no": "Express No", + "ship_time": "Time" + }, + "user": { + "username": "Username", + "role": "Role", + "permission": "Permission", + "login_time": "Login Time" + }, + "warehouse": { + "name": "Name", + "code": "Code", + "type": "Type", + "status": "Status", + "address": "Address" + } +} diff --git a/src/lang/index.ts b/src/lang/index.ts new file mode 100644 index 00000000..0da89a70 --- /dev/null +++ b/src/lang/index.ts @@ -0,0 +1,250 @@ +import { createI18n } from 'vue-i18n' +import Cookies from 'js-cookie' +import elementEnLocale from 'element-plus/es/locale/lang/en' +import elementZhLocale from 'element-plus/es/locale/lang/zh-cn' +import localEnUS from './en-US.ts' +import localZhCN from './zh-CN.ts' +import * as indexApi from '@/api/index.ts' + +// ==================== 配置 ==================== +const CONFIG = { + API_BASE: import.meta.env.VITE_APP_BASE_API || '/api', + PROJECT: import.meta.env.VITE_APP_PROJECT_NAME || 'vue-admin', + AUTO_REPORT: true, // 是否自动上报新键值 + REPORT_DELAY: 3000, // 上报延迟(毫秒) + CACHE_KEY: 'i18n_collected_keys' // 本地缓存键名 +} + +// ==================== 状态管理 ==================== +const state = { + serverMessages: {} as Record, // 服务器加载的翻译 + collectedKeys: new Set(), // 已采集的键值 + pendingKeys: new Map(), // 待上报的键值 + isReporting: false, // 是否正在上报 + isLoaded: false // 服务器翻译是否已加载 +} + +const messages = { + 'en': { + ...localEnUS, + ...elementEnLocale + }, + 'zh-CN': { + ...localZhCN, + ...elementZhLocale + } +} + +export function getLanguage() { + const chooseLanguage = Cookies.get('language') + if (chooseLanguage) return chooseLanguage + + const language = (navigator.language || (navigator.languages && navigator.languages[0]) || 'zh-CN').toLowerCase() + const locales = Object.keys(messages) + for (const locale of locales) { + if (language.indexOf(locale.toLowerCase()) > -1) { + return locale + } + } + return 'zh-CN' +} + +// ==================== 核心函数 ==================== + +/** + * 4. 加载本地缓存的键值 + */ +function loadCollectedKeys() { + try { + const saved = localStorage.getItem(CONFIG.CACHE_KEY) + if (saved) { + state.collectedKeys = new Set(JSON.parse(saved)) + // console.log(`📦 加载 ${state.collectedKeys.size} 个已采集键值`) + } + } catch (e) { + console.warn('加载缓存键值失败:', e) + } +} + +/** + * 5. 保存到本地缓存 + */ +function saveCollectedKeys() { + try { + localStorage.setItem( + CONFIG.CACHE_KEY, + JSON.stringify(Array.from(state.collectedKeys)) + ) + } catch (e) { + console.warn('保存缓存键值失败:', e) + } +} + +/** + * 7. 获取调用上下文(帮助定位键值位置) + */ +function getCallContext() { + try { + const stack = new Error().stack + // @ts-ignore + const lines = stack.split('\n').slice(3, 6) // 获取调用堆栈 + + return { + stack: lines.join('\n'), + url: window.location.href, + userAgent: navigator.userAgent, + timestamp: new Date().toISOString() + } + } catch { + return {} + } +} + +/** + * 9. 上报键值到服务器 + */ +async function reportKeysToServer() { + if (state.isReporting || state.pendingKeys.size === 0) return + + state.isReporting = true + const keysToReport = Array.from(state.pendingKeys.values()) + + try { + console.log(`📤 上报 ${keysToReport.length} 个新键值到服务器...`) + // @ts-ignore + const response = await indexApi.putI18nCollect({ + project: 'wms', + locale: i18n.global.locale.value, + keys: keysToReport, + source: 'frontend-auto-collect' + }); + + if (response.data && response.data.success) { + // 清空已上报的 + keysToReport.forEach(item => state.pendingKeys.delete(item.key)) + console.log(`✅ 上报成功,服务器已处理 ${response.data.processed} 个键值`) + + // 重新加载服务器翻译(获取新生成的翻译) + await loadServerMessages() + } + + } catch (error) { + console.error('❌ 上报失败:', error) + } finally { + state.isReporting = false + } +} + +/** + * 8. 防抖上报 + */ +let reportTimer: any = null +function debounceReport() { + clearTimeout(reportTimer) + reportTimer = setTimeout(() => { + if (state.pendingKeys.size > 0 && !state.isReporting) { + reportKeysToServer() + } + }, CONFIG.REPORT_DELAY) +} + +/** + * 6. 采集新键值 + */ +function collectKey(key: string, value: string | null = null) { + // 跳过已采集的 + if (state.collectedKeys.has(key)) return + + // 获取调用上下文(用于定位) + // const context = getCallContext() + + state.collectedKeys.add(key) + saveCollectedKeys() + + // 添加到待上报队列 + state.pendingKeys.set(key, { + key, + value: value || key, + timestamp: Date.now(), + visitedCount: 1 + }) + + // 触发上报 + if (CONFIG.AUTO_REPORT) { + debounceReport() + } +} + +const i18n = createI18n({ + legacy: false, // Use Composition API + locale: getLanguage(), + fallbackLocale: 'zh-CN', + globalInjection: true, + messages, + missing: (locale, key) => { + // 采集这个新键值 + if (CONFIG.AUTO_REPORT) { + collectKey(key) + } + // Return key as fallback + return key + } +}) + +/** + * 递归深度合并对象 + */ +function deepMerge(target: any, source: any) { + if (!source) return target + + Object.keys(source).forEach(key => { + if (source[key] && typeof source[key] === 'object' && !Array.isArray(source[key])) { + if (!target[key] || typeof target[key] !== 'object') { + target[key] = {} + } + deepMerge(target[key], source[key]) + } else { + target[key] = source[key] + } + }) + return target +} + +/** + * 从服务器加载翻译 + */ +export async function loadServerMessages(language: string | null = null) { + const targetLanguage = language || i18n.global.locale.value; + + try { + console.log(`🌐 从服务器加载国际化翻译 (${targetLanguage})...`) + + const response = await indexApi.getI18nMessage({ + language: targetLanguage + }); + + if (response.data) { + const newMessages = response.data.messages || response.data; + // @ts-ignore + state.serverMessages[targetLanguage] = newMessages; + state.isLoaded = true; + + // 深度合并到 i18n 实例,确保本地新增的键值不被服务器返回的同名父级对象覆盖 + // @ts-ignore + const currentMessages = JSON.parse(JSON.stringify(i18n.global.getLocaleMessage(targetLanguage))) + const mergedMessages = deepMerge(currentMessages, newMessages) + + // @ts-ignore + i18n.global.setLocaleMessage(targetLanguage, mergedMessages) + + console.log(`✅ 服务器翻译加载并深度合并成功 (${targetLanguage})`); + } + } catch (error) { + console.warn(`⚠️ 服务器翻译加载失败 (${targetLanguage}),使用本地翻译`, error); + } +} + +// 初始化加载 +loadCollectedKeys() + +export default i18n diff --git a/src/lang/zh-CN.ts b/src/lang/zh-CN.ts new file mode 100644 index 00000000..0f1ff2a9 --- /dev/null +++ b/src/lang/zh-CN.ts @@ -0,0 +1,147 @@ +export default { + "common": { + "add": "新增", + "edit": "编辑", + "delete": "删除", + "search": "搜索", + "export": "导出", + "language": "语言", + "validity": "有效期", + "days": "天", + "refresh": "刷新", + "Close": "关闭", + "Close Other": "关闭其他", + "Close All": "全部关闭" + }, + "menu": { + "Dashboard": "控制台", + "Download": "下载", + "orderManagement": "订单管理", + "System": "系统", + "deliverOrder": "配送订单", + "orderSetting": "订单设置", + "Stock Info": "商品明细", + "Store Stock": "货主商品", + "Combo Stock ": "组合商品", + "Stock Storage": "商品库存", + "receiving": "收货单", + "Entry Order": "入库单", + "Stock out": "出库单", + "inventory": "库存", + "Log": "日志", + "Exception": "异常处理", + "Material Info": "物料明细", + "Storage": "库存", + "Bill": "余额", + "Daily": "流水", + "Account": "账户", + "Statistics": "统计", + "Valuation": "定价", + "Receivable": "应收", + "Encoding": "编码", + "Open": "开放平台", + "basicManagement": "基础设置", + "Order": "订单", + "Stock": "商品", + "Material": "耗材", + "Finance": "财务", + "Warehouse": "仓库", + "Store": "货主", + "Express": "快递", + "Data": "数据", + "Video": "录像", + "Message": "消息", + "Profile": "个人中心", + "printTemplate": "打印模板" + }, + "login": { + "title": "登录", + "username": "用户名", + "password": "密码", + "logIn": "登录", + "loggingIn": "登录中...", + "show": "显示", + "hide": "隐藏", + "usernamePlaceholder": "请输入用户名", + "passwordPlaceholder": "请输入密码", + "correctUsernameTip": "请输入用户名", + "usernameLengthTip": "请输入有效的用户名", + "passwordLengthTip": "密码至少 6 位", + "loginFailed": "登录失败", + "logOut": "登出", + "register": "注册", + "confirmPassword": "确认密码", + "passwordMismatch": "两次输入的密码不一致", + "registerSuccess": "注册成功", + "toLogin": "返回登录", + "noAccount": "还没有账号?", + "hasAccount": "已有账号?" + }, + "dashboard": { + "expressDistribution": "快递分布", + "hotOrderRank": "热销商品排行(Top10)", + "rank": "排名", + "productName": "商品名称", + "orderOutboundCount": "订单出库数", + "trend": "趋势", + "viewAll": "查看全部", + "orderTrend": "订单趋势", + "today": "今日", + "thisWeek": "本周", + "thisMonth": "本月", + "platformDistribution": "平台分布", + "todayOrders": "今日订单", + "vsYesterday": "较昨日", + "unassignedExpress": "未分配快递号", + "toBeAssigned": "待分配", + "unprinted": "未打印", + "toBePrinted": "待打印", + "unpicked": "未拣货", + "needTimelyProcessing": "需及时处理", + "pendingShipment": "待发货", + "welcomeCardPlaceholder": "欢迎卡片占位符", + "warehouseStatistics": "仓库统计", + "storeStatistics": "店铺统计", + "expressRatio": "快递占比", + "orderVolume": "订单量", + "shipmentVolume": "发货量", + "shipmentRate": "发货率", + "todayOutbound": "今日出库", + "completionRate": "完成率", + "interceptedOrders": "拦截订单", + "exceptionOrders": "异常订单" + }, + "inventory": { + "sku": "商品SKU", + "batch_no": "批次号", + "quantity": "库存数量", + "locked_qty": "锁定数量", + "safety_stock": "安全库存" + }, + "order": { + "order_no": "订单编号", + "customer": "客户名称", + "status": "订单状态", + "create_time": "创建时间", + "total_amount": "订单金额" + }, + "shipment": { + "ship_no": "出库单号", + "ship_type": "出库类型", + "express_no": "快递单号", + "ship_time": "出库时间" + }, + "user": { + "username": "用户名", + "role": "用户角色", + "permission": "用户权限", + "login_time": "登录时间" + }, + "warehouse": { + "name": "仓库名称", + "code": "仓库编码", + "type": "仓库类型", + "status": "仓库状态", + "address": "仓库地址" + } +} diff --git a/src/layout/AppMain.vue b/src/layout/AppMain.vue new file mode 100644 index 00000000..b1e58eb6 --- /dev/null +++ b/src/layout/AppMain.vue @@ -0,0 +1,7 @@ + + + + + \ No newline at end of file diff --git a/src/layout/component/AiChat/index.vue b/src/layout/component/AiChat/index.vue new file mode 100644 index 00000000..1b4e2dda --- /dev/null +++ b/src/layout/component/AiChat/index.vue @@ -0,0 +1,467 @@ + + + + + diff --git a/src/layout/component/AppMain.vue b/src/layout/component/AppMain.vue new file mode 100644 index 00000000..6e62cc50 --- /dev/null +++ b/src/layout/component/AppMain.vue @@ -0,0 +1,43 @@ + + + + + + + diff --git a/src/layout/component/Navbar.vue b/src/layout/component/Navbar.vue new file mode 100644 index 00000000..d7ffc18c --- /dev/null +++ b/src/layout/component/Navbar.vue @@ -0,0 +1,374 @@ + + + + + + + diff --git a/src/layout/component/Sidebar/Item.vue b/src/layout/component/Sidebar/Item.vue new file mode 100644 index 00000000..f460610e --- /dev/null +++ b/src/layout/component/Sidebar/Item.vue @@ -0,0 +1,73 @@ + + + + + diff --git a/src/layout/component/Sidebar/Link.vue b/src/layout/component/Sidebar/Link.vue new file mode 100644 index 00000000..c1d7af58 --- /dev/null +++ b/src/layout/component/Sidebar/Link.vue @@ -0,0 +1,38 @@ + + + diff --git a/src/layout/component/Sidebar/SidebarItem.vue b/src/layout/component/Sidebar/SidebarItem.vue new file mode 100644 index 00000000..eeb276bd --- /dev/null +++ b/src/layout/component/Sidebar/SidebarItem.vue @@ -0,0 +1,136 @@ + + + + + diff --git a/src/layout/component/Sidebar/SubItem.vue b/src/layout/component/Sidebar/SubItem.vue new file mode 100644 index 00000000..a68f76c5 --- /dev/null +++ b/src/layout/component/Sidebar/SubItem.vue @@ -0,0 +1,103 @@ + + + + + diff --git a/src/layout/component/Sidebar/index.vue b/src/layout/component/Sidebar/index.vue new file mode 100644 index 00000000..16295522 --- /dev/null +++ b/src/layout/component/Sidebar/index.vue @@ -0,0 +1,67 @@ + + + + + diff --git a/src/layout/component/TaskView/ScrollPane.vue b/src/layout/component/TaskView/ScrollPane.vue new file mode 100644 index 00000000..3252a843 --- /dev/null +++ b/src/layout/component/TaskView/ScrollPane.vue @@ -0,0 +1,55 @@ + + + + + diff --git a/src/layout/component/TaskView/index.vue b/src/layout/component/TaskView/index.vue new file mode 100644 index 00000000..6128750e --- /dev/null +++ b/src/layout/component/TaskView/index.vue @@ -0,0 +1,411 @@ + + + + + diff --git a/src/layout/component/TopMenu.vue b/src/layout/component/TopMenu.vue new file mode 100644 index 00000000..a0e92a27 --- /dev/null +++ b/src/layout/component/TopMenu.vue @@ -0,0 +1,88 @@ + + + + + diff --git a/src/layout/index.vue b/src/layout/index.vue new file mode 100644 index 00000000..7b2ef0d6 --- /dev/null +++ b/src/layout/index.vue @@ -0,0 +1,179 @@ + + + + + diff --git a/src/main.ts b/src/main.ts new file mode 100644 index 00000000..e29ed7ac --- /dev/null +++ b/src/main.ts @@ -0,0 +1,26 @@ +import { createApp } from 'vue' +import { createPinia } from 'pinia' +import ElementPlus from 'element-plus' +import 'element-plus/dist/index.css' +import 'virtual:svg-icons-register' + +import App from './App.vue' +import router from './router' +import './permission' // permission control +import SvgIcon from '@/components/SvgIcon/index.vue' +import i18n, { loadServerMessages } from '@/lang/index' + +import '@/styles/index.scss' // global css + +const app = createApp(App) + +app.component('svg-icon', SvgIcon) +app.use(createPinia()) +app.use(router) +app.use(i18n) +app.use(ElementPlus) + +// 加载服务器国际化翻译 +loadServerMessages() + +app.mount('#app') diff --git a/src/permission.ts b/src/permission.ts new file mode 100644 index 00000000..f8f3ba83 --- /dev/null +++ b/src/permission.ts @@ -0,0 +1,72 @@ +import router from './router' +import { useUserStore } from '@/stores/modules/user' +import { usePermissionStore } from '@/stores/modules/permission' +import { ElMessage } from 'element-plus' +import NProgress from 'nprogress' +import 'nprogress/nprogress.css' +import { getToken } from '@/utils/auth' +import getPageTitle from '@/utils/get-page-title' + +NProgress.configure({ showSpinner: false }) + +const whiteList = ['/login','/redirect'] + +router.beforeEach(async (to, from) => { + NProgress.start() + // console.log("路由表",router.getRoutes()); + document.title = getPageTitle(to.meta.title as string) + + const hasToken = getToken() + + if (hasToken) { + if (to.path === '/login') { + NProgress.done() + return { path: '/' } + } else { + const userStore = useUserStore() + const hasGetUserInfo = userStore.user && userStore.user.employees_name + + if (hasGetUserInfo) { + return true + } else { + try { + // get user info + const user = await userStore.getInfo() + + const permissionStore = usePermissionStore() + // generate accessible routes based on menus + const accessRoutes = await permissionStore.generateRoutes(user.menus || []) + // console.log("生成的路由表",accessRoutes); + // dynamically add accessible routes + accessRoutes.forEach(route => { + router.addRoute(route) + }) + + // hack method to ensure that addRoutes is complete + // set the replace: true, so the navigation will not leave a history record + return { ...to, replace: true } + } catch (error) { + // remove token and go to login page to re-login + await userStore.resetToken() + ElMessage.error((error as any).message || 'Has Error') + NProgress.done() + return `/login?redirect=${to.path}` + } + } + } + } else { + /* has no token*/ + if (whiteList.indexOf(to.path) !== -1) { + // in the free login whitelist, go directly + return true + } else { + // other pages that do not have permission to access are redirected to the login page. + NProgress.done() + return `/login?redirect=${to.path}` + } + } +}) + +router.afterEach(() => { + NProgress.done() +}) diff --git a/src/router/index.ts b/src/router/index.ts new file mode 100644 index 00000000..6a8dfa98 --- /dev/null +++ b/src/router/index.ts @@ -0,0 +1,221 @@ +import { createRouter, createWebHistory, RouterView } from 'vue-router' +import type { RouteRecordRaw } from 'vue-router' +import { getToken } from '@/utils/auth' +import Layout from '@/layout/index.vue' +import { usePermissionStore } from '@/stores/modules/permission' +import { h } from 'vue' +import { componentMap } from './map' + +/** + * 空白父级路由组件 + */ +const ParentView = { + name: 'ParentView', + render: () => h(RouterView) +} + +/** + * 基础路由 - 固定不变的路由 + */ +export const constantRoutes: RouteRecordRaw[] = [ + { + path: '/redirect', + component: Layout, + meta: { hidden: true }, + children: [ + { + path: '/redirect/:path(.*)', + component: () => import('@/views/redirect/index.vue') + } + ] + }, + { + path: '/login', + name: 'Login', + component: () => import('@/views/login/index.vue'), + meta: { title: '登录', hidden: true } + }, + { + path: '/', + component: Layout, + redirect: '/dashboard', + children: [ + { + path: 'dashboard', + name: 'Dashboard', + component: () => import('@/views/dashboard/index.vue'), + meta: { + title: 'Dashboard', + icon: 'dashboard', + affix: true + } + } + ] + }, + { + path: '/message', + component: Layout, + meta: { hidden: true }, + children: [ + { + path: '', + name: 'Message', + component: () => import('@/views/message/index.vue'), + meta: { + title: '消息中心', + icon: 'example', + affix: false + } + } + ] + }, + { + path: '/profile', + component: Layout, + meta: { hidden: true }, + children: [ + { + path: '', + name: 'Profile', + component: () => import('@/views/profile/index.vue'), + meta: { + title: '个人中心', + icon: 'user', + affix: false + } + } + ] + }, + { + path: '/download', + component: Layout, + meta: { hidden: true }, + children: [ + { + path: '', + name: 'Download', + component: () => import('@/views/download/index.vue'), + meta: { + title: '下载中心', + icon: 'link', + affix: false + } + } + ] + } +] + +/** + * 404路由配置 + */ +export const notFoundRoute: RouteRecordRaw = { + path: '/:pathMatch(.*)*', + redirect: '/404', + meta: { hidden: true } +} + +export const notFoundPage: RouteRecordRaw = { + path: '/404', + name: 'Page404', + component: () => import('@/views/404.vue'), + meta: { hidden: true } +} + +/** + * 解析组件路径 + */ +function resolveComponent(componentPath: string) { + if (componentMap[componentPath]) { + return componentMap[componentPath] + } + + console.warn(`Component ${componentPath} not found in componentMap, using dynamic import`) + + // 处理常见的目录结构,例如 'warehouse' -> 'warehouse/index.vue' + if (!componentPath.includes('/')) { + return () => import(`@/views/${componentPath}/index.vue`).catch(() => import(`@/views/${componentPath}.vue`)) + } + + return () => import(`@/views/${componentPath}.vue`) +} + +/** + * 将菜单数据转换为路由格式 + */ +export const transformMenusToRoutes = (menus: any[]) => { + if (!menus || !Array.isArray(menus)) { + return [] + } + + const transformRoute = (menu: any, parentName?: string): RouteRecordRaw => { + let routeName = menu.name + // 检查名称冲突:如果子路由名称与父路由名称相同,Vue Router 4 会报错 + if (routeName && parentName && routeName === parentName) { + routeName = `${routeName}_Child` + console.warn(`Route name conflict detected: ${parentName}. Child name changed to ${routeName}`) + } + + let routePath = menu.path + const isExternal = /^(https?:|mailto:|tel:)/.test(routePath || '') + // Vue Router 4 要求顶层路由路径必须以 / 开头 + if (!parentName && routePath && !routePath.startsWith('/') && !isExternal) { + routePath = `/${routePath}` + } + + const route: any = { + path: routePath, + name: routeName, + hidden: !!menu.hidden, + alwaysShow: !!menu.alwaysShow, + meta: { + title: menu.meta?.title || menu.name || '', + icon: menu.meta?.icon || '', + noCache: !!menu.meta?.noCache, + affix: !!menu.meta?.affix, + breadcrumb: menu.meta?.breadcrumb !== false, + activeMenu: menu.meta?.activeMenu, + roles: menu.meta?.roles + } + } + + if (menu.redirect) { + route.redirect = menu.redirect + } + + if (menu.component) { + if (menu.component === 'Layout') { + route.component = Layout + } else if (menu.component.startsWith('@/views/')) { + const componentPath = menu.component.replace('@/views/', '') + route.component = resolveComponent(componentPath) + } else if (menu.component.startsWith('@/')) { + const componentPath = menu.component.replace('@/', '') + route.component = () => import(`@/${componentPath}.vue`) + } else { + route.component = () => import(`@/views/${menu.component}.vue`) + } + } else { + if (!menu.children || menu.children.length === 0) { + route.component = ParentView + } else { + route.component = Layout + } + } + + if (menu.children && menu.children.length > 0) { + route.children = menu.children.map((child: any) => transformRoute(child, routeName)) + } + + return route as RouteRecordRaw + } + + return menus.map(menu => transformRoute(menu)) +} + +const router = createRouter({ + history: createWebHistory('/'), + routes: constantRoutes, + scrollBehavior: () => ({ top: 0 }) +}) + +export default router \ No newline at end of file diff --git a/src/router/map.ts b/src/router/map.ts new file mode 100644 index 00000000..20b2785a --- /dev/null +++ b/src/router/map.ts @@ -0,0 +1,19 @@ +export const componentMap: Record = { + 'dashboard/index': () => import('@/views/dashboard/index.vue'), + 'login/index': () => import('@/views/login/index.vue'), + 'permission/index': () => import('@/views/permission/index.vue'), + // 'system/setting/index': () => import('@/views/system/setting/index.vue'), + 'order/index': () => import('@/views/order/index.vue'), + 'auth/approve': () => import('@/views/auth/approve.vue'), + 'account/index': () => import('@/views/account/index.vue'), + 'warehouse/index': () => import('@/views/warehouse/index.vue'), + 'stock/index': () => import('@/views/stock/index.vue'), + 'stock/storestock/index': () => import('@/views/stock/storestock/index.vue'), + 'stock/combo_stock/index': () => import('@/views/stock/combo_stock/index.vue'), + 'storage/receiving': () => import('@/views/storage/receiving/index.vue'), + 'system/setting/printTemplate/index': () => import('@/views/system/setting/printTemplate/index.vue'), + // 'system/setting/printStation/index': () => import('@/views/system/setting/printStation/index.vue'), + 'system/print/station': () => import('@/views/system/setting/printStation/index.vue'), + // 'system/StoreManagement/station2': () => import('@/views/system/setting/printStation/index2.vue'), + // 'system/setting/printStation': () => import('@/views/system/setting/printStation/index.vue'), +}; \ No newline at end of file diff --git a/src/settings.ts b/src/settings.ts new file mode 100644 index 00000000..69e23e50 --- /dev/null +++ b/src/settings.ts @@ -0,0 +1,33 @@ +export default { + title: 'Vue Admin Template', + + /** + * @type {boolean} true | false + * @description Whether show the settings right-panel + */ + showSettings: true, + + /** + * @type {boolean} true | false + * @description Whether need tagsView + */ + tagsView: true, + + /** + * @type {boolean} true | false + * @description Whether fix the header + */ + fixedHeader: true, + + /** + * @type {boolean} true | false + * @description Whether show the logo in sidebar + */ + sidebarLogo: true, + + /** + * @type {boolean} true | false + * @description Whether expand the shortcut key area + */ + shortcutExpanded: true +} diff --git a/src/stores/counter.ts b/src/stores/counter.ts new file mode 100644 index 00000000..b6757ba5 --- /dev/null +++ b/src/stores/counter.ts @@ -0,0 +1,12 @@ +import { ref, computed } from 'vue' +import { defineStore } from 'pinia' + +export const useCounterStore = defineStore('counter', () => { + const count = ref(0) + const doubleCount = computed(() => count.value * 2) + function increment() { + count.value++ + } + + return { count, doubleCount, increment } +}) diff --git a/src/stores/modules/ai.ts b/src/stores/modules/ai.ts new file mode 100644 index 00000000..ca02681c --- /dev/null +++ b/src/stores/modules/ai.ts @@ -0,0 +1,191 @@ +import { defineStore } from 'pinia' + +export interface Message { + role: 'user' | 'ai' + content: string + timestamp: number +} + +export interface ChatSession { + id: string + title: string + messages: Message[] + createdAt: number +} + +export interface AiIdentity { + key: string + name: string + icon: string + description: string + systemPrompt?: string +} + +export const AI_IDENTITIES: AiIdentity[] = [ + { + key: 'assistant', + name: 'General Assistant', + icon: 'Service', + description: 'Helpful general assistant', + systemPrompt: 'You are a helpful general assistant.' + } +] + +interface AiState { + isVisible: boolean + messages: Message[] + sessions: ChatSession[] + currentSessionId: string | null + currentIdentityKey: string +} + +const getStorageKey = (identityKey: string) => `ai-chat-history-${identityKey}` + +export const useAiStore = defineStore('ai', { + state: (): AiState => { + // Default to first identity + const defaultIdentity = AI_IDENTITIES[0]?.key ?? 'assistant' + let savedSessions: ChatSession[] = [] + + try { + const stored = localStorage.getItem(getStorageKey(defaultIdentity)) + if (stored) { + savedSessions = JSON.parse(stored) + } + } catch (e) { + console.error('Failed to load chat history', e) + } + + return { + isVisible: false, + messages: [], + sessions: savedSessions, + currentSessionId: null, + currentIdentityKey: defaultIdentity + } + }, + getters: { + currentIdentity: (state) => AI_IDENTITIES.find(i => i.key === state.currentIdentityKey) || AI_IDENTITIES[0] + }, + actions: { + toggleAiContainer() { + this.isVisible = !this.isVisible + }, + openAiContainer() { + this.isVisible = true + }, + closeAiContainer() { + this.isVisible = false + }, + setIdentity(identityKey: string) { + if (this.currentIdentityKey === identityKey) return + + // Save current session before switching if needed + if (this.currentSessionId) { + this.saveCurrentSession() + } + + this.currentIdentityKey = identityKey + this.messages = [] + this.currentSessionId = null + this.sessions = [] + + // Load sessions for new identity + this.loadSessionsForIdentity() + }, + loadSessionsForIdentity() { + try { + const stored = localStorage.getItem(getStorageKey(this.currentIdentityKey)) + if (stored) { + this.sessions = JSON.parse(stored) + } else { + this.sessions = [] + } + } catch (e) { + console.error('Failed to load chat history for identity ' + this.currentIdentityKey, e) + this.sessions = [] + } + }, + addMessage(role: 'user' | 'ai', content: string) { + this.messages.push({ + role, + content, + timestamp: Date.now() + }) + if (this.currentSessionId) { + this.saveCurrentSession() + } + }, + startNewChat() { + if (this.messages.length > 0 && !this.currentSessionId) { + this.saveCurrentSession() + } + this.messages = [] + this.currentSessionId = null + }, + saveCurrentSession() { + if (this.messages.length === 0) return + + const firstUserMsg = this.messages.find(m => m.role === 'user') + const title = firstUserMsg ? firstUserMsg.content.slice(0, 20) : 'New Chat' + + let session: ChatSession + + if (this.currentSessionId) { + const index = this.sessions.findIndex(s => s.id === this.currentSessionId) + if (index !== -1) { + const target = this.sessions[index] + if (target) { + target.messages = [...this.messages] + } + this._persist() + return + } + } + + // Create new session + const newId = Date.now().toString() + session = { + id: newId, + title, + messages: [...this.messages], + createdAt: Date.now() + } + this.sessions.unshift(session) + this.currentSessionId = newId + this._persist() + }, + loadSession(sessionId: string) { + const session = this.sessions.find(s => s.id === sessionId) + if (session) { + if (this.messages.length > 0 && this.currentSessionId !== sessionId) { + this.saveCurrentSession() + } else if (this.messages.length > 0 && !this.currentSessionId) { + this.saveCurrentSession() + } + + this.messages = [...session.messages] + this.currentSessionId = sessionId + } + }, + deleteSession(sessionId: string) { + this.sessions = this.sessions.filter(s => s.id !== sessionId) + if (this.currentSessionId === sessionId) { + this.messages = [] + this.currentSessionId = null + } + this._persist() + }, + clearHistory() { + this.sessions = [] + this._persist() + }, + _persist() { + try { + localStorage.setItem(getStorageKey(this.currentIdentityKey), JSON.stringify(this.sessions)) + } catch (e) { + console.error('Failed to save chat history', e) + } + } + } +}) diff --git a/src/stores/modules/app.ts b/src/stores/modules/app.ts new file mode 100644 index 00000000..9ad7f0cc --- /dev/null +++ b/src/stores/modules/app.ts @@ -0,0 +1,46 @@ +import { defineStore } from 'pinia' +import Cookies from 'js-cookie' +import { getLanguage } from '@/lang' + +interface AppState { + sidebar: { + opened: boolean + withoutAnimation: boolean + } + device: string + language: string +} + +export const useAppStore = defineStore('app', { + state: (): AppState => ({ + sidebar: { + opened: Cookies.get('sidebarStatus') ? !!+Cookies.get('sidebarStatus')! : true, + withoutAnimation: false + }, + device: 'desktop', + language: getLanguage() + }), + actions: { + toggleSideBar() { + this.sidebar.opened = !this.sidebar.opened + this.sidebar.withoutAnimation = false + if (this.sidebar.opened) { + Cookies.set('sidebarStatus', '1') + } else { + Cookies.set('sidebarStatus', '0') + } + }, + closeSideBar(withoutAnimation: boolean) { + Cookies.set('sidebarStatus', '0') + this.sidebar.opened = false + this.sidebar.withoutAnimation = withoutAnimation + }, + toggleDevice(device: string) { + this.device = device + }, + setLanguage(language: string) { + this.language = language + Cookies.set('language', language) + } + } +}) diff --git a/src/stores/modules/permission.ts b/src/stores/modules/permission.ts new file mode 100644 index 00000000..594ed6e6 --- /dev/null +++ b/src/stores/modules/permission.ts @@ -0,0 +1,39 @@ +import { defineStore } from 'pinia' +import { constantRoutes, transformMenusToRoutes, notFoundPage, notFoundRoute } from '@/router' +import type { RouteRecordRaw } from 'vue-router' + +interface PermissionState { + routes: RouteRecordRaw[] + addRoutes: RouteRecordRaw[] + hasAddRoutes: boolean +} + +export const usePermissionStore = defineStore('permission', { + state: (): PermissionState => ({ + routes: [], + addRoutes: [], + hasAddRoutes: false + }), + actions: { + setRoutes(routes: RouteRecordRaw[]) { + this.addRoutes = routes + this.routes = constantRoutes.concat(routes) + this.hasAddRoutes = true + }, + generateRoutes(menus: any[]) { + return new Promise((resolve) => { + let accessedRoutes: RouteRecordRaw[] = [] + // 如果有菜单数据,转换菜单为路由 + if (menus && menus.length > 0) { + accessedRoutes = transformMenusToRoutes(menus) as RouteRecordRaw[] + } + + // 最后添加 404 路由,确保它在最后匹配 + const finalRoutes = [...accessedRoutes, notFoundPage, notFoundRoute] + + this.setRoutes(finalRoutes) + resolve(finalRoutes) + }) + } + } +}) diff --git a/src/stores/modules/printTemplate.ts b/src/stores/modules/printTemplate.ts new file mode 100644 index 00000000..f3cc3898 --- /dev/null +++ b/src/stores/modules/printTemplate.ts @@ -0,0 +1,331 @@ +import { defineStore } from 'pinia' +import { v4 as uuidv4 } from 'uuid' + +interface TemplateInfo { + template_name?: string + width?: number + height?: number + dpi?: number + createdAt?: string + updatedAt?: string + editable?: boolean + businessType?: any + id?: any +} + +interface History { + past: any[] + future: any[] + maxSteps: number +} + +export const usePrintTemplateStore = defineStore('printTemplate', { + state: () => ({ + // 模板对象树(平铺结构) + templateObjects: [] as any[], + // 模板信息 + templateInfo: {} as TemplateInfo, + // 历史记录(用于撤销/重做) + history: { + past: [], + future: [], + maxSteps: 50 + } as History, + + // 初始快照(用于完整重置) + initialSnapshot: null as null | { info: TemplateInfo; objects: any[] }, + selectedElement: null as any, + isSelectTable: false, + editable: true + }), + + getters: { + // 验证模板是否有效 + isValidTemplate: (state) => { + try { + const page = state.templateInfo.width + return page !== undefined + } catch (error) { + return false + } + } + }, + + actions: { + // 创建新模板 + createTemplate({ width, height, template_name }: { width?: number; height?: number; template_name?: string }) { + this.templateObjects = [] + this.editable = true + // 更新模板信息 + this.templateInfo = { + template_name: template_name || '未命名模板', + width: width || 75, + height: height || 129, + dpi: 203, + createdAt: new Date().toISOString(), + updatedAt: new Date().toISOString() + } + // 清空历史 + this.history.past = [] + this.history.future = [] + }, + + // 删除元素 + deleteElement(id: string) { + const element = this.templateObjects.find(el => el.id === id) + if (!element) return + + this.saveHistory() // 删除前保存 + + // 删除元素及其所有子元素 + const deleteRecursive = (elementId: string) => { + // 删除所有子元素 + const children = this.templateObjects.filter(el => el.pid === elementId) + children.forEach(child => deleteRecursive(child.id)) + + // 删除元素本身 + const index = this.templateObjects.findIndex(el => el.id === elementId) + if (index !== -1) { + this.templateObjects.splice(index, 1) + } + } + + deleteRecursive(id) + + // 如果删除的是选中的元素,清空选中状态 + if (this.selectedElement?.id === id) { + this.selectedElement = null + } + + this.templateInfo.updatedAt = new Date().toISOString() + }, + + // 选择元素 + selectElement(selector: { id: string | null; tableCellId?: string; isSelectTable?: boolean }) { + const { id, tableCellId, isSelectTable = false } = selector + + if (id === null) { + this.selectedElement = null + return + } + + if (tableCellId) { + const tableElement = this.templateObjects.find(el => el.id === id) + if (!tableElement) return + const cellElement = tableElement.rows.find((c: any) => c.id === tableCellId) + if (!cellElement) return + this.selectedElement = cellElement + this.isSelectTable = true + return + } + + this.isSelectTable = isSelectTable + this.selectedElement = this.templateObjects.find(el => el.id === id) + }, + + // 清空选中状态 + clearSelection() { + this.selectedElement = null + }, + + // 复制元素 + duplicateElement(id: string) { + const sourceElement = this.templateObjects.find(el => el.id === id) + if (!sourceElement) return + + this.saveHistory() // 复制前保存 + + const newElement = { + ...sourceElement, + id: uuidv4(), + left: (sourceElement.left || 0) + 10, // 稍微偏移 + top: (sourceElement.top || 0) + 10 + } + + this.templateObjects.push(newElement) + this.selectedElement = newElement + this.templateInfo.updatedAt = new Date().toISOString() + }, + + // 记录历史快照 + saveHistory() { + // 限制历史记录步数 + if (this.history.past.length >= this.history.maxSteps) { + this.history.past.shift() + } + + this.history.past.push({ + objects: JSON.parse(JSON.stringify(this.templateObjects)), + info: JSON.parse(JSON.stringify(this.templateInfo)) + }) + // 每次新的操作产生,清空“未来”历史(重做历史) + this.history.future = [] + }, + + // 撤销 + undo() { + if (this.history.past.length === 0) return + + // 将当前状态存入 future 以支持 redo (虽然目前没 UI 触发 redo) + this.history.future.push({ + objects: JSON.parse(JSON.stringify(this.templateObjects)), + info: JSON.parse(JSON.stringify(this.templateInfo)) + }) + + const prevState = this.history.past.pop() + this.templateObjects = prevState.objects + this.templateInfo = prevState.info + + this.selectedElement = null // 撤销后清除选中,避免指向已不存在的对象 + this.isSelectTable = false + this.templateInfo.updatedAt = new Date().toISOString() + }, + + // 载入模板数据 + loadFromData(data: any[]) { + this.templateObjects = data || [] + }, + + loadInfo(info: TemplateInfo) { + this.templateInfo = { + ...this.templateInfo, + ...info + } + if (info.editable !== undefined) { + this.editable = info.editable + } + }, + + addElement(elements: any) { + this.saveHistory() // 添加前保存历史 + const createTime = new Date().toISOString() + const newElement = { + name: elements.name, + left: 0, + top: 0, + createdAt: createTime, + updatedAt: createTime, + id: uuidv4(), + ...elements + } + this.templateObjects.push(newElement) + this.selectedElement = this.templateObjects.find(el => el.id === newElement.id) + }, + + updateElementAction({ id, attributes, noHistory }: { id: string; attributes: any; noHistory?: boolean }) { + const index = this.templateObjects.findIndex(el => el.id === id) + if (index !== -1 && !noHistory) { + this.saveHistory() // 更新前保存历史(除非明确指定不保存,如拖动中) + } + if (this.isSelectTable) { + const tableIndex = this.templateObjects.findIndex(el => el.type === 'table') + if (tableIndex !== -1 && this.selectedElement) { + const cellIndex = this.templateObjects[tableIndex].rows.findIndex((c: any) => c.id === this.selectedElement.id) + if (cellIndex !== -1) { + Object.assign(this.templateObjects[tableIndex].rows[cellIndex], attributes) + return + } + } + } + if (index !== -1) { + Object.assign(this.templateObjects[index], attributes) + } + }, + + async addTableObject(data: any) { + data.id = uuidv4() + let tableElement = this.templateObjects.find(el => el.type === 'table') + + if (!tableElement) { + this.addElement({ + name: 'table', + type: 'table', + headerHeight: 4, + rowHeight: 4, + rows: [data], + width: 100, + height: 20 + }) + } else { + this.saveHistory() // 追加表格行前保存 + tableElement.rows.push(data) + this.updateElementAction({ id: tableElement.id, attributes: { rows: tableElement.rows }, noHistory: true }) + } + }, + + async addTemplateObject(data: any) { + this.addElement(data) + }, + + async updateTemplateObject({ id, attributes }: { id: string; attributes: any }) { + this.updateElementAction({ id, attributes }) + }, + + async updateTemplateInfo(info: TemplateInfo) { + this.loadInfo(info) + }, + + async loadTemplate(data: any) { + const info = { + template_name: data.template_name || '未命名模板', + width: data.page_width || 75, + height: data.page_height || 129, + businessType: data.business_type || null, + id: data.id || null, + editable: data.editable !== undefined ? data.editable : true + } + this.loadFromData(data.template_content) + this.loadInfo(info) + this.clearSelection() + // 保存初始快照,用于 "重置为最初状态" + try { + this.initialSnapshot = { + info: JSON.parse(JSON.stringify(this.templateInfo)), + objects: JSON.parse(JSON.stringify(this.templateObjects)) + } + } catch (e) { + this.initialSnapshot = { info: { ...this.templateInfo }, objects: (this.templateObjects || []).slice() } + } + // 清空历史(加载新模板时,重置历史) + this.history.past = [] + this.history.future = [] + }, + + // 完整重置为初始载入状态(撤销所有操作) + resetTemplate() { + if (!this.initialSnapshot) return + try { + this.templateInfo = JSON.parse(JSON.stringify(this.initialSnapshot.info)) + this.templateObjects = JSON.parse(JSON.stringify(this.initialSnapshot.objects)) + } catch (e) { + this.templateInfo = { ...this.initialSnapshot.info } + this.templateObjects = (this.initialSnapshot.objects || []).slice() + } + // 清空历史并清除选中 + this.history.past = [] + this.history.future = [] + this.selectedElement = null + this.isSelectTable = false + this.templateInfo.updatedAt = new Date().toISOString() + }, + + // 更新初始快照(在保存成功后调用,使后续重置能恢复到此保存点) + updateInitialSnapshot() { + try { + this.initialSnapshot = { + info: JSON.parse(JSON.stringify(this.templateInfo)), + objects: JSON.parse(JSON.stringify(this.templateObjects)) + } + // 更新快照后,按理说也应该清空历史,因为现在这成了新的“最开始的模样” + this.history.past = [] + this.history.future = [] + } catch (e) { + this.initialSnapshot = { info: { ...this.templateInfo }, objects: (this.templateObjects || []).slice() } + } + }, + + removeTemplateObject(id: string) { + this.deleteElement(id) + } + } +}) diff --git a/src/stores/modules/settings.ts b/src/stores/modules/settings.ts new file mode 100644 index 00000000..06f24a66 --- /dev/null +++ b/src/stores/modules/settings.ts @@ -0,0 +1,126 @@ +import { defineStore } from 'pinia' +import defaultSettings from '@/settings' +import { ref, computed, watch } from 'vue' +import { useUserStore } from './user' + +const { showSettings, tagsView, fixedHeader, sidebarLogo, shortcutExpanded } = defaultSettings + +export const useSettingsStore = defineStore('settings', () => { + const userStore = useUserStore() + + const theme = ref('#1890ff') + const showSettingsRef = ref(showSettings) + const tagsViewRef = ref(tagsView) + const fixedHeaderRef = ref(fixedHeader) + const sidebarLogoRef = ref(sidebarLogo) + const layoutMode = ref<'sidebar' | 'top-bottom'>('top-bottom') + const shortcutExpandedRef = ref(shortcutExpanded) + + const storageKey = computed(() => { + if (!userStore.user?.username && !userStore.user?.id) return null + const userId = userStore.user.username || userStore.user.id || 'unknown' + return `settings_${userId}_${userStore.roleId || 'default'}` + }) + + const loadSettings = () => { + if (!storageKey.value) return + const saved = localStorage.getItem(storageKey.value) + if (saved) { + try { + const parsed = JSON.parse(saved) + if (typeof parsed.showSettings === 'boolean') showSettingsRef.value = parsed.showSettings + if (typeof parsed.tagsView === 'boolean') tagsViewRef.value = parsed.tagsView + if (typeof parsed.fixedHeader === 'boolean') fixedHeaderRef.value = parsed.fixedHeader + if (typeof parsed.sidebarLogo === 'boolean') sidebarLogoRef.value = parsed.sidebarLogo + if (typeof parsed.layoutMode === 'string') layoutMode.value = parsed.layoutMode + if (typeof parsed.shortcutExpanded === 'boolean') shortcutExpandedRef.value = parsed.shortcutExpanded + } catch (e) { + console.error('Failed to parse settings from storage', e) + } + } + } + + const saveSettings = () => { + if (!storageKey.value) return + const payload = { + showSettings: showSettingsRef.value, + tagsView: tagsViewRef.value, + fixedHeader: fixedHeaderRef.value, + sidebarLogo: sidebarLogoRef.value, + layoutMode: layoutMode.value, + shortcutExpanded: shortcutExpandedRef.value + } + try { + localStorage.setItem(storageKey.value, JSON.stringify(payload)) + } catch (e) { + console.error('Failed to save settings to storage', e) + } + } + + // When user changes (login/logout/role change), reload settings for that user + watch(storageKey, (newKey) => { + if (newKey) { + loadSettings() + } else { + // reset to defaults when there's no user + showSettingsRef.value = showSettings + tagsViewRef.value = tagsView + fixedHeaderRef.value = fixedHeader + sidebarLogoRef.value = sidebarLogo + layoutMode.value = 'top-bottom' + shortcutExpandedRef.value = shortcutExpanded + } + }, { immediate: true }) + + const changeSetting = ({ key, value }: { key: string; value: any }) => { + if (!Object.prototype.hasOwnProperty.call({ + theme: 1, + showSettings: 1, + tagsView: 1, + fixedHeader: 1, + sidebarLogo: 1, + layoutMode: 1, + shortcutExpanded: 1 + }, key)) return + + switch (key) { + case 'theme': + theme.value = value + break + case 'showSettings': + showSettingsRef.value = value + break + case 'tagsView': + tagsViewRef.value = value + break + case 'fixedHeader': + fixedHeaderRef.value = value + break + case 'sidebarLogo': + sidebarLogoRef.value = value + break + case 'layoutMode': + layoutMode.value = value + break + case 'shortcutExpanded': + shortcutExpandedRef.value = value + break + default: + break + } + + // persist user settings + saveSettings() + } + + return { + theme, + showSettings: showSettingsRef, + tagsView: tagsViewRef, + fixedHeader: fixedHeaderRef, + sidebarLogo: sidebarLogoRef, + layoutMode, + shortcutExpanded: shortcutExpandedRef, + changeSetting + } +}) diff --git a/src/stores/modules/shortcuts.ts b/src/stores/modules/shortcuts.ts new file mode 100644 index 00000000..aa7af649 --- /dev/null +++ b/src/stores/modules/shortcuts.ts @@ -0,0 +1,139 @@ +import { defineStore } from 'pinia' +import { ref, watch, computed } from 'vue' +import { useUserStore } from './user' +import { usePermissionStore } from './permission' +import router from '@/router' + +export interface Shortcut { + title: string + path: string + icon?: string +} + +export const useShortcutsStore = defineStore('shortcuts', () => { + const userStore = useUserStore() + const permissionStore = usePermissionStore() + const shortcuts = ref([]) + + // Create a unique key for storage based on user and role + const storageKey = computed(() => { + // Wait for user info to be available + if (!userStore.user?.username && !userStore.user?.id) return null + // Use a combination of username (or id) and roleId to ensure uniqueness per identity + const userId = userStore.user.username || userStore.user.id || 'unknown' + return `shortcuts_${userId}_${userStore.roleId || 'default'}` + }) + + // Load from localStorage + const loadShortcuts = () => { + if (!storageKey.value) { + shortcuts.value = [] + return + } + + const saved = localStorage.getItem(storageKey.value) + if (saved) { + try { + const loaded: Shortcut[] = JSON.parse(saved) + + // Filter out invalid routes based on current router configuration + // This ensures users only see shortcuts for pages they currently have access to + if (permissionStore.hasAddRoutes) { + shortcuts.value = loaded.filter(s => { + const resolved = router.resolve(s.path) + // Check if route exists and is not a 404 page + if (!resolved || resolved.matched.length === 0) return false + // Check if it's the catch-all or 404 page + const is404 = resolved.matched.some(r => r.name === 'Page404' || r.path === '/:pathMatch(.*)*' || r.redirect === '/404') + if (is404) return false + + // Update title/icon from current route meta if available to keep it fresh + if (resolved.meta?.title) { + s.title = resolved.meta.title as string + } + if (resolved.meta?.icon) { + s.icon = resolved.meta.icon as string + } + + return true + }) + } else { + // If dynamic routes are not loaded yet, we can't fully validate. + // However, we should still load the data so it's ready when routes arrive. + // The validation will happen when hasAddRoutes becomes true (via watcher). + shortcuts.value = loaded + } + } catch (e) { + console.error('Failed to parse shortcuts', e) + shortcuts.value = [] + } + } else { + shortcuts.value = [] + } + } + + const saveShortcuts = () => { + if (storageKey.value) { + localStorage.setItem(storageKey.value, JSON.stringify(shortcuts.value)) + } + } + + const addShortcut = (shortcut: Shortcut) => { + // Validate that the route exists in current permission routes + const resolved = router.resolve(shortcut.path) + let isValid = resolved && resolved.matched.length > 0 + if (isValid) { + const is404 = resolved.matched.some(r => r.name === 'Page404' || r.path === '/:pathMatch(.*)*' || r.redirect === '/404') + if (is404) isValid = false + } + + if (isValid && !shortcuts.value.find(s => s.path === shortcut.path)) { + shortcuts.value.push(shortcut) + saveShortcuts() + } + } + + const removeShortcut = (path: string) => { + const index = shortcuts.value.findIndex(s => s.path === path) + if (index > -1) { + shortcuts.value.splice(index, 1) + saveShortcuts() + } + } + + const toggleShortcut = (shortcut: Shortcut) => { + if (isShortcut(shortcut.path)) { + removeShortcut(shortcut.path) + } else { + addShortcut(shortcut) + } + } + + const isShortcut = (path: string) => { + return shortcuts.value.some(s => s.path === path) + } + + // Watch for storage key changes (user/role change) + watch(storageKey, (newKey) => { + if (newKey) { + loadShortcuts() + } else { + shortcuts.value = [] + } + }, { immediate: true }) + + // Watch for permission routes loaded to re-validate shortcuts + watch(() => permissionStore.hasAddRoutes, (hasRoutes) => { + if (hasRoutes && storageKey.value) { + loadShortcuts() + } + }) + + return { + shortcuts, + addShortcut, + removeShortcut, + toggleShortcut, + isShortcut + } +}) diff --git a/src/stores/modules/tagsView.ts b/src/stores/modules/tagsView.ts new file mode 100644 index 00000000..147f32ff --- /dev/null +++ b/src/stores/modules/tagsView.ts @@ -0,0 +1,131 @@ +import { defineStore } from 'pinia' + +export interface TagView extends Partial { + title?: string +} + +interface TagsViewState { + visitedViews: TagView[] + cachedViews: string[] +} + +export const useTagsViewStore = defineStore('tagsView', { + state: (): TagsViewState => ({ + visitedViews: [], + cachedViews: [] + }), + actions: { + addView(view: TagView) { + this.addVisitedView(view) + this.addCachedView(view) + }, + addVisitedView(view: TagView) { + if (this.visitedViews.some(v => v.path === view.path)) return + this.visitedViews.push( + Object.assign({}, view, { + title: view.meta?.title || 'no-name' + }) + ) + }, + addCachedView(view: TagView) { + if (this.cachedViews.includes(view.name as string)) return + if (!view.meta?.noCache) { + this.cachedViews.push(view.name as string) + } + }, + + delView(view: TagView) { + return new Promise(resolve => { + this.delVisitedView(view) + this.delCachedView(view) + resolve({ + visitedViews: [...this.visitedViews], + cachedViews: [...this.cachedViews] + }) + }) + }, + delVisitedView(view: TagView) { + return new Promise(resolve => { + for (const [i, v] of this.visitedViews.entries()) { + if (v.path === view.path) { + this.visitedViews.splice(i, 1) + break + } + } + resolve([...this.visitedViews]) + }) + }, + delCachedView(view: TagView) { + return new Promise(resolve => { + const index = this.cachedViews.indexOf(view.name as string) + index > -1 && this.cachedViews.splice(index, 1) + resolve([...this.cachedViews]) + }) + }, + + delOthersViews(view: TagView) { + return new Promise(resolve => { + this.delOthersVisitedViews(view) + this.delOthersCachedViews(view) + resolve({ + visitedViews: [...this.visitedViews], + cachedViews: [...this.cachedViews] + }) + }) + }, + delOthersVisitedViews(view: TagView) { + return new Promise(resolve => { + this.visitedViews = this.visitedViews.filter(v => { + return v.meta?.affix || v.path === view.path + }) + resolve([...this.visitedViews]) + }) + }, + delOthersCachedViews(view: TagView) { + return new Promise(resolve => { + const index = this.cachedViews.indexOf(view.name as string) + if (index > -1) { + this.cachedViews = this.cachedViews.slice(index, index + 1) + } else { + // if index < 0, there is no cached view + this.cachedViews = [] + } + resolve([...this.cachedViews]) + }) + }, + + delAllViews(view?: TagView) { + return new Promise(resolve => { + this.delAllVisitedViews() + this.delAllCachedViews() + resolve({ + visitedViews: [...this.visitedViews], + cachedViews: [...this.cachedViews] + }) + }) + }, + delAllVisitedViews() { + return new Promise(resolve => { + // keep affix tags + const affixTags = this.visitedViews.filter(tag => tag.meta?.affix) + this.visitedViews = affixTags + resolve([...this.visitedViews]) + }) + }, + delAllCachedViews() { + return new Promise(resolve => { + this.cachedViews = [] + resolve([...this.cachedViews]) + }) + }, + + updateVisitedView(view: TagView) { + for (let v of this.visitedViews) { + if (v.path === view.path) { + v = Object.assign(v, view) + break + } + } + } + } +}) diff --git a/src/stores/modules/user.ts b/src/stores/modules/user.ts new file mode 100644 index 00000000..d0d4e38e --- /dev/null +++ b/src/stores/modules/user.ts @@ -0,0 +1,110 @@ +import { defineStore } from 'pinia' +import { getToken, setToken, removeToken } from '@/utils/auth' +import { + login as apiLogin, + getInfo as apiGetInfo, + changeRole as apiChangeRole, + logout as apiLogout +} from '@/api/user' +import { useAppStore } from './app' +import { useTagsViewStore } from './tagsView' + +interface UserInfo { + [key: string]: any +} + +interface State { + token: string | undefined + user: UserInfo + avatar: string + roleId: number + permissions: string[] +} + +const getDefaultState = (): State => ({ + token: getToken(), + user: {}, + avatar: '', + roleId: 0, + permissions: [] +}) + +export const useUserStore = defineStore('user', { + state: (): State => getDefaultState(), + + actions: { + async login(payload: { username: string; password: string }) { + const { username, password } = payload + const appStore = useAppStore() + const resp = await apiLogin({ + username: username.trim(), + password, + device: appStore.device + }) + const data = resp.data + this.token = data.token + setToken(data.token) + return true + }, + + async register(payload: any) { + // Dynamically import the API module and call register if available to avoid static import error + const apiModule: any = await import('@/api/user') + if (typeof apiModule.register !== 'function') { + throw new Error('register API is not available') + } + const resp = await apiModule.register(payload) + return resp + }, + + async getInfo() { + const appStore = useAppStore() + const resp = await apiGetInfo({ device: appStore.device }) + const data = resp.data + if (!data) throw new Error('Verification failed, please Login again.') + const user = data + this.permissions = user.permissions || [] + this.user = user + this.roleId = user.employees_id || 0 + return user + }, + + async changeRole(roleId: number) { + const appStore = useAppStore() + const tagsViewStore = useTagsViewStore() + const resp = await apiChangeRole({ roleId, device: appStore.device }) + const data = resp.data + const user = data.user + setToken(data.token) + this.token = data.token + this.user = user + this.permissions = user.permissions || [] + this.roleId = user.employees_id || 0 + + // Reset tags view after role change + await tagsViewStore.delAllViews() + + return resp + }, + + async logout() { + await apiLogout({}) + removeToken() + this.$reset() + }, + + async resetToken() { + removeToken() + this.$reset() + }, + + updateToken(token: string) { + setToken(token) + this.token = token + }, + + checkPermission(key: string) { + return this.permissions.includes(key) + } + } +}) diff --git a/src/styles/element-ui.scss b/src/styles/element-ui.scss new file mode 100644 index 00000000..00624119 --- /dev/null +++ b/src/styles/element-ui.scss @@ -0,0 +1,49 @@ +// cover some element-ui styles + +.el-breadcrumb__inner, +.el-breadcrumb__inner a { + font-weight: 400 !important; +} + +.el-upload { + input[type="file"] { + display: none !important; + } +} + +.el-upload__input { + display: none; +} + + +// to fixed https://github.com/ElemeFE/element/issues/2461 +.el-dialog { + transform: none; + left: 0; + position: relative; + margin: 0 auto; +} + +// refine element ui upload +.upload-container { + .el-upload { + width: 100%; + + .el-upload-dragger { + width: 100%; + height: 200px; + } + } +} + +// dropdown +.el-dropdown-menu { + a { + display: block + } +} + +// to fix el-date-picker css style +.el-range-separator { + box-sizing: content-box; +} diff --git a/src/styles/index.scss b/src/styles/index.scss new file mode 100644 index 00000000..83872abd --- /dev/null +++ b/src/styles/index.scss @@ -0,0 +1,68 @@ +@use './variables.scss' as *; +@use './mixin.scss' as *; +@use './transition.scss' as *; +@use './element-ui.scss' as *; +@use './sidebar.scss' as *; + +body { + height: 100%; + margin:0; + overflow: hidden; + -moz-osx-font-smoothing: grayscale; + -webkit-font-smoothing: antialiased; + text-rendering: optimizeLegibility; + font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif; +} + +label { + font-weight: 700; +} + +html { + height: 100%; + box-sizing: border-box; +} + +#app { + height: 100%; +} + +*, +*:before, +*:after { + box-sizing: inherit; +} + +a:focus, +a:active { + outline: none; +} + +a, +a:focus, +a:hover { + cursor: pointer; + color: inherit; + text-decoration: none; +} + +div:focus { + outline: none; +} + +.clearfix { + &:after { + visibility: hidden; + display: block; + font-size: 0; + content: " "; + clear: both; + height: 0; + } +} + +// main-container global css +.app-container { + padding: 10px; + width: 100%; +} diff --git a/src/styles/mixin.scss b/src/styles/mixin.scss new file mode 100644 index 00000000..36b74bbd --- /dev/null +++ b/src/styles/mixin.scss @@ -0,0 +1,28 @@ +@mixin clearfix { + &:after { + content: ""; + display: table; + clear: both; + } +} + +@mixin scrollBar { + &::-webkit-scrollbar-track-piece { + background: #d3dce6; + } + + &::-webkit-scrollbar { + width: 6px; + } + + &::-webkit-scrollbar-thumb { + background: #99a9bf; + border-radius: 20px; + } +} + +@mixin relative { + position: relative; + width: 100%; + height: 100%; +} diff --git a/src/styles/sidebar.scss b/src/styles/sidebar.scss new file mode 100644 index 00000000..c61bf54f --- /dev/null +++ b/src/styles/sidebar.scss @@ -0,0 +1,263 @@ +@use './variables.scss' as *; +#app { + + .main-container { + height: 100%; + transition: margin-left .28s; + margin-left: $sideBarWidth; + position: relative; + } + + .sidebar-container { + transition: width 0.28s; + width: $sideBarWidth !important; + border-right: 1px solid #dcdfe6; + background-color: $menuBg; + height: 100%; + position: fixed; + font-size: 0px; + top: 0; + bottom: 0; + left: 0; + z-index: 1001; + overflow: hidden; + + // reset element-ui css + .horizontal-collapse-transition { + transition: 0s width ease-in-out, 0s padding-left ease-in-out, 0s padding-right ease-in-out; + } + + .scrollbar-wrapper { + overflow-x: hidden !important; + } + + .el-scrollbar__bar.is-vertical { + right: 0px; + } + + .el-scrollbar { + height: 100%; + } + + &.has-logo { + .el-scrollbar { + height: calc(100% - 50px); + } + } + + .is-horizontal { + display: none; + } + + a { + display: inline-block; + width: 100%; + overflow: hidden; + } + + .svg-icon { + margin-right: 16px; + } + + .sub-el-icon { + margin-right: 12px; + margin-left: -2px; + } + + .el-menu { + border: none; + height: 100%; + width: 100% !important; + } + + // Increase menu item size + .el-menu-item, .el-sub-menu__title { + height: 60px !important; + line-height: 60px !important; + font-size: 16px !important; + } + + // menu hover + .submenu-title-noDropdown, + .el-sub-menu__title { + &:hover { + background-color: #99a9bf; + // background-color: $menuHover !important; + } + } + + .is-active>.el-sub-menu__title { + i{ + color: $subMenuActiveText !important; + } + color: $subMenuActiveText !important; + } + + & .nest-menu .el-sub-menu>.el-sub-menu__title, + & .el-sub-menu .el-menu-item { + min-width: $sideBarWidth !important; + background-color: #f4f4f5 !important; + + &:hover { + background-color: #e9e9eb !important; + } + } + } + + .hideSidebar { + .sidebar-container { + width: $sideBarCollapsedWidth !important; + } + + .main-container { + margin-left: $sideBarCollapsedWidth; + } + + .submenu-title-noDropdown { + padding: 0 !important; + position: relative; + + .el-tooltip { + padding: 0 !important; + + .svg-icon { + margin-left: 20px; + } + + .sub-el-icon { + margin-left: 19px; + } + } + } + + .el-sub-menu { + overflow: hidden; + + &>.el-sub-menu__title { + padding: 0 !important; + + .svg-icon { + margin-left: 20px; + } + + .sub-el-icon { + margin-left: 19px; + } + + .el-sub-menu__icon-arrow { + display: none; + } + } + } + + .el-menu--collapse { + .el-sub-menu { + &>.el-sub-menu__title { + &>span { + height: 0; + width: 0; + overflow: hidden; + visibility: hidden; + display: inline-block; + } + /* Ensure arrow is hidden */ + .el-sub-menu__icon-arrow { + display: none; + } + } + } + } + } + + .el-menu--collapse .el-menu .el-sub-menu { + min-width: $sideBarWidth !important; + } + + // mobile responsive + .mobile { + .main-container { + margin-left: 0px; + } + + .sidebar-container { + transition: transform .28s; + width: $sideBarWidth !important; + } + + &.hideSidebar { + .sidebar-container { + pointer-events: none; + transition-duration: 0.3s; + transform: translate3d(-$sideBarWidth, 0, 0); + } + } + } + + .withoutAnimation { + + .main-container, + .sidebar-container { + transition: none; + } + } + + // Layout Switch Styles (Top-Bottom) + .layout-top-bottom { + .main-container { + margin-left: 0 !important; + } + + .sidebar-container { + display: none !important; + } + + .fixed-header { + width: 100% !important; + } + + /* Ensure drawer background is hidden as sidebar is gone */ + .drawer-bg { + display: none !important; + } + } +} + +// when menu collapsed +.el-menu--vertical { + &>.el-menu { + .svg-icon { + margin-right: 16px; + } + .sub-el-icon { + margin-right: 12px; + margin-left: -2px; + } + } + + .nest-menu .el-sub-menu>.el-sub-menu__title, + .el-menu-item { + &:hover { + // you can use $subMenuHover + background-color: $menuHover !important; + } + } + + // the scroll bar appears when the subMenu is too long + >.el-menu--popup { + max-height: 100vh; + overflow-y: auto; + + &::-webkit-scrollbar-track-piece { + background: #d3dce6; + } + + &::-webkit-scrollbar { + width: 6px; + } + + &::-webkit-scrollbar-thumb { + background: #99a9bf; + border-radius: 20px; + } + } +} diff --git a/src/styles/transition.scss b/src/styles/transition.scss new file mode 100644 index 00000000..5909017e --- /dev/null +++ b/src/styles/transition.scss @@ -0,0 +1,53 @@ +// global transition css + +/* fade */ +.fade-enter-active, +.fade-leave-active { + transition: opacity 0.28s; +} + +.fade-enter-from, +.fade-leave-to { + opacity: 0; +} + +/* fade-transform */ +.fade-transform-leave-active, +.fade-transform-enter-active { + transition: all .5s; +} + +.fade-transform-leave-active { + position: absolute; + width: 100%; +} + +.fade-transform-enter-from { + opacity: 0; + transform: translateX(-30px); +} + +.fade-transform-leave-to { + opacity: 0; + transform: translateX(30px); +} + +/* breadcrumb transition */ +.breadcrumb-enter-active, +.breadcrumb-leave-active { + transition: all .5s; +} + +.breadcrumb-enter-from, +.breadcrumb-leave-to { + opacity: 0; + transform: translateX(20px); +} + +.breadcrumb-move { + transition: all .5s; +} + +.breadcrumb-leave-active { + position: absolute; +} diff --git a/src/styles/variables.module.scss b/src/styles/variables.module.scss new file mode 100644 index 00000000..c2f7e27a --- /dev/null +++ b/src/styles/variables.module.scss @@ -0,0 +1,14 @@ +@use "./variables.scss" as *; + +// the :export directive is the magic sauce for webpack +// https://www.bluematador.com/blog/how-to-share-variables-between-js-and-sass +:export { + menuText: $menuText; + menuActiveText: $menuActiveText; + subMenuActiveText: $subMenuActiveText; + menuBg: $menuBg; + menuHover: $menuHover; + subMenuBg: $subMenuBg; + subMenuHover: $subMenuHover; + sideBarWidth: $sideBarWidth; +} diff --git a/src/styles/variables.scss b/src/styles/variables.scss new file mode 100644 index 00000000..516b949e --- /dev/null +++ b/src/styles/variables.scss @@ -0,0 +1,13 @@ +// sidebar +$menuText:rgba(0,0,0,.65); +$menuActiveText:#653eb3; +$subMenuActiveText:#653eb3; //https://github.com/ElemeFE/element/issues/12951 + +$menuBg:#FFF; +$menuHover:#efeaf4; + +$subMenuBg:#1f2d3d; +$subMenuHover:#001528; + +$sideBarWidth: 210px; +$sideBarCollapsedWidth: 70px; diff --git a/src/utils/CanvasRenderer.js b/src/utils/CanvasRenderer.js new file mode 100644 index 00000000..40cb795e --- /dev/null +++ b/src/utils/CanvasRenderer.js @@ -0,0 +1,978 @@ +import { watch } from 'vue' + +/** + * Canvas 渲染工具类 + * 自动监听模板数据变化,渲染到 Canvas,支持元素选中和拖拽 + */ +class CanvasRenderer { + constructor(options = {}) { + // 配置 + this.config = { + dpi: 203, + scale: 1, + backgroundColor: '#ffffff', + gridColor: '#e0e0e0', + gridSize: 5, // mm + showGrid: true, + ...options + } + + // Canvas 相关 + this.canvas = null + this.ctx = null + this.container = null + + // 渲染状态 + this.isRendering = false + this.needsRender = false + this.lastRenderTime = 0 + this.renderDebounce = 16 // 约 60fps + + // 模板数据 + this.templateData = null + this.templateTree = null + + // 交互状态 + this.selectedElementId = null + this.hoveredElementId = null + this.draggingElement = null + this.dragStartPos = { x: 0, y: 0 } + this.dragElementStartPos = { x: 0, y: 0 } + + // 转换缓存 + this.mmToPixelCache = {} + this.elementsCache = new Map() + + // 事件监听器 + this.eventListeners = { + select: [], + update: [], + render: [] + } + + // 边界检查 + this.bounds = { + minX: 0, + minY: 0, + maxX: 0, + maxY: 0 + } + } + + /** + * 初始化 Canvas 渲染器 + * @param {HTMLCanvasElement} canvas - Canvas 元素 + * @param {HTMLElement} container - 容器元素(用于事件) + */ + initialize(canvas, container) { + if (!canvas || !container) { + throw new Error('Canvas 和容器元素不能为空') + } + + this.canvas = canvas + this.container = container + this.ctx = canvas.getContext('2d') + + // 设置 Canvas 尺寸 + this.updateCanvasSize() + + // 初始化事件监听 + this.initEventListeners() + + // 初始化渲染循环 + this.initRenderLoop() + + console.log('CanvasRenderer 初始化完成') + } + + /** + * 设置模板数据并开始监听 + * @param {Object} templateStore - 模板 Store(响应式对象) + */ + setTemplateData(templateStore) { + try { + + + if (!templateStore || !templateStore.templateObjects) { + console.error('无效的模板数据') + return + } + + this.templateData = templateStore + + // 初始渲染 + this.scheduleRender() + } catch (error) { + console.log(error); + } + } + + /** + * 更新 Canvas 尺寸 + */ + updateCanvasSize() { + if (!this.canvas || !this.container) return + + const containerRect = this.container.getBoundingClientRect() + const width = containerRect.width + const height = containerRect.height + + // 设置 Canvas 物理像素 + const dpr = window.devicePixelRatio || 1 + this.canvas.width = width * dpr + this.canvas.height = height * dpr + this.canvas.style.width = `${width}px` + this.canvas.style.height = `${height}px` + + // 缩放 Canvas 上下文 + this.ctx.scale(dpr, dpr) + + this.scheduleRender() + } + + /** + * 初始化事件监听 + */ + initEventListeners() { + if (!this.canvas || !this.container) return + + // 点击事件 - 选择元素 + this.canvas.addEventListener('click', this.handleCanvasClick.bind(this)) + + // 鼠标移动事件 - 悬停效果 + this.canvas.addEventListener('mousemove', this.handleMouseMove.bind(this)) + + // 鼠标按下事件 - 开始拖拽 + this.canvas.addEventListener('mousedown', this.handleMouseDown.bind(this)) + + // 鼠标松开事件 - 结束拖拽 + document.addEventListener('mouseup', this.handleMouseUp.bind(this)) + + // 鼠标离开事件 + this.canvas.addEventListener('mouseleave', this.handleMouseLeave.bind(this)) + + // 键盘事件 - 删除选中的元素 + document.addEventListener('keydown', this.handleKeyDown.bind(this)) + + // 窗口大小变化 + window.addEventListener('resize', this.handleResize.bind(this)) + } + + /** + * 移除事件监听 + */ + removeEventListeners() { + if (!this.canvas) return + + this.canvas.removeEventListener('click', this.handleCanvasClick) + this.canvas.removeEventListener('mousemove', this.handleMouseMove) + this.canvas.removeEventListener('mousedown', this.handleMouseDown) + document.removeEventListener('mouseup', this.handleMouseUp) + this.canvas.removeEventListener('mouseleave', this.handleMouseLeave) + document.removeEventListener('keydown', this.handleKeyDown) + window.removeEventListener('resize', this.handleResize) + } + + /** + * 初始化渲染循环 + */ + initRenderLoop() { + const renderFrame = () => { + if (this.needsRender) { + this.render() + this.needsRender = false + } + requestAnimationFrame(renderFrame) + } + requestAnimationFrame(renderFrame) + } + + /** + * 安排渲染 + */ + scheduleRender() { + this.needsRender = true + } + + /** + * 主渲染方法 + */ + render() { + if (!this.canvas || !this.ctx || !this.templateData) return + + const startTime = performance.now() + + // 清除画布 + this.clearCanvas() + + // 绘制背景 + this.drawBackground() + + // 绘制网格(如果启用) + if (this.config.showGrid) { + this.drawGrid() + } + + // 绘制模板 + this.drawTemplate() + + // 绘制选中状态 + this.drawSelection() + + // 绘制悬停状态 + this.drawHover() + + // 绘制边界 + this.drawBounds() + + this.lastRenderTime = performance.now() - startTime + + // 触发渲染完成事件 + this.emit('render', { + time: this.lastRenderTime, + elements: this.templateData?.templateObjects?.length || 0 + }) + } + + /** + * 清除画布 + */ + clearCanvas() { + const width = this.canvas.width / (window.devicePixelRatio || 1) + const height = this.canvas.height / (window.devicePixelRatio || 1) + + this.ctx.save() + this.ctx.setTransform(1, 0, 0, 1, 0, 0) + this.ctx.clearRect(0, 0, width, height) + this.ctx.restore() + } + + /** + * 绘制背景 + */ + drawBackground() { + const width = this.canvas.width / (window.devicePixelRatio || 1) + const height = this.canvas.height / (window.devicePixelRatio || 1) + + this.ctx.fillStyle = this.config.backgroundColor + this.ctx.fillRect(0, 0, width, height) + } + + /** + * 绘制网格 + */ + drawGrid() { + const width = this.canvas.width / (window.devicePixelRatio || 1) + const height = this.canvas.height / (window.devicePixelRatio || 1) + const gridSizePx = this.mmToPixel(this.config.gridSize) + + this.ctx.strokeStyle = this.config.gridColor + this.ctx.lineWidth = 0.5 + + // 绘制垂直线 + for (let x = 0; x <= width; x += gridSizePx) { + this.ctx.beginPath() + this.ctx.moveTo(x, 0) + this.ctx.lineTo(x, height) + this.ctx.stroke() + } + + // 绘制水平线 + for (let y = 0; y <= height; y += gridSizePx) { + this.ctx.beginPath() + this.ctx.moveTo(0, y) + this.ctx.lineTo(width, y) + this.ctx.stroke() + } + } + + /** + * 绘制模板 + */ + drawTemplate() { + if (!this.templateData?.templateObjects) return + + // 获取页面元素 + const page = this.templateData.templateObjects.find(el => el.name === 'page') + if (!page) return + + // 计算偏移量(居中显示) + const containerWidth = this.canvas.width / (window.devicePixelRatio || 1) + const containerHeight = this.canvas.height / (window.devicePixelRatio || 1) + const pageWidth = this.mmToPixel(page.width) + const pageHeight = this.mmToPixel(page.height) + + this.offsetX = (containerWidth - pageWidth) / 2 + this.offsetY = (containerHeight - pageHeight) / 2 + + // 保存上下文 + this.ctx.save() + + // 应用偏移 + this.ctx.translate(this.offsetX, this.offsetY) + + // 绘制页面背景 + this.ctx.fillStyle = '#ffffff' + this.ctx.fillRect(0, 0, pageWidth, pageHeight) + this.ctx.strokeStyle = '#cccccc' + this.ctx.lineWidth = 1 + this.ctx.strokeRect(0, 0, pageWidth, pageHeight) + + // 绘制所有元素 + this.templateData.templateObjects.forEach(element => { + if (element.name !== 'page') { + this.drawElement(element) + } + }) + + // 恢复上下文 + this.ctx.restore() + + // 更新边界 + this.bounds = { + minX: this.offsetX, + minY: this.offsetY, + maxX: this.offsetX + pageWidth, + maxY: this.offsetY + pageHeight + } + } + + /** + * 绘制单个元素 + * @param {Object} element - 元素对象 + */ + drawElement(element) { + const style = this.parseStyle(element.style) + + // 应用样式 + this.ctx.save() + + // 设置透明度 + this.ctx.globalAlpha = style.opacity || 1 + + // 绘制不同类型元素 + switch (element.name) { + case 'text': + this.drawTextElement(element, style) + break + case 'barcode': + this.drawBarcodeElement(element, style) + break + case 'image': + this.drawImageElement(element, style) + break + case 'line': + this.drawLineElement(element, style) + break + case 'layout': + this.drawLayoutElement(element, style) + break + default: + console.warn(`未知元素类型: ${element.name}`) + } + + // 绘制元素边框(调试用) + if (this.config.showDebugInfo) { + this.drawElementDebugInfo(element) + } + + this.ctx.restore() + } + + /** + * 绘制文本元素 + */ + drawTextElement(element, style) { + const x = this.mmToPixel(element.left || 0) + const y = this.mmToPixel(element.top || 0) + const width = this.mmToPixel(element.width || 50) + const height = this.mmToPixel(element.height || 10) + + // 设置文本样式 + this.ctx.fillStyle = style.color || element.color || '#000000' + this.ctx.font = `${style.fontWeight || 'normal'} ${this.mmToPixel(style.fontSize || element.fontSize || 12)}px ${style.fontFamily || element.fontFamily || 'Arial'}` + this.ctx.textAlign = style.align || element.align || 'left' + this.ctx.textBaseline = 'top' + + // 绘制文本 + const lines = (element.content || '').split('\n') + const lineHeight = this.mmToPixel(style.lineHeight || element.lineHeight || element.fontSize || 12) + + lines.forEach((line, index) => { + const lineY = y + (lineHeight * index) + + // 文本溢出处理 + if (style.overflow === 'ellipsis') { + const metrics = this.ctx.measureText(line) + if (metrics.width > width) { + line = this.truncateText(line, width) + } + } + + this.ctx.fillText(line, x, lineY) + }) + } + + /** + * 绘制条码元素(简化版,实际应使用条码库) + */ + drawBarcodeElement(element, style) { + const x = this.mmToPixel(element.left || 0) + const y = this.mmToPixel(element.top || 0) + const width = this.mmToPixel(element.width || 50) + const height = this.mmToPixel(element.height || 20) + + // 绘制条码背景 + this.ctx.fillStyle = '#ffffff' + this.ctx.fillRect(x, y, width, height) + this.ctx.strokeStyle = '#cccccc' + this.ctx.strokeRect(x, y, width, height) + + // 绘制模拟条码(实际项目应集成条码库) + this.ctx.fillStyle = '#000000' + for (let i = 0; i < 20; i++) { + const barWidth = width / 20 + const barHeight = Math.random() * height * 0.8 + const barX = x + i * barWidth + const barY = y + (height - barHeight) / 2 + + if (Math.random() > 0.3) { + this.ctx.fillRect(barX, barY, barWidth * 0.8, barHeight) + } + } + + // 绘制条码文本 + if (!element.hideText) { + this.ctx.fillStyle = '#000000' + this.ctx.font = `${this.mmToPixel(8)}px Arial` + this.ctx.textAlign = 'center' + this.ctx.textBaseline = 'bottom' + this.ctx.fillText(element.content || 'BARCODE', x + width / 2, y + height - 2) + } + } + + /** + * 绘制图片元素 + */ + drawImageElement(element, style) { + // 简化实现,实际项目需要加载图片 + const x = this.mmToPixel(element.left || 0) + const y = this.mmToPixel(element.top || 0) + const width = this.mmToPixel(element.width || 50) + const height = this.mmToPixel(element.height || 50) + + // 绘制图片占位 + this.ctx.fillStyle = '#f0f0f0' + this.ctx.fillRect(x, y, width, height) + this.ctx.strokeStyle = '#cccccc' + this.ctx.strokeRect(x, y, width, height) + + // 绘制图片图标 + this.ctx.fillStyle = '#999999' + this.ctx.font = `${this.mmToPixel(10)}px Arial` + this.ctx.textAlign = 'center' + this.ctx.textBaseline = 'middle' + this.ctx.fillText('📷', x + width / 2, y + height / 2) + + // 绘制图片名称 + this.ctx.fillStyle = '#666666' + this.ctx.font = `${this.mmToPixel(6)}px Arial` + this.ctx.fillText(element.src ? element.src.split('/').pop() : '图片', x + width / 2, y + height + 5) + } + + /** + * 绘制线条元素 + */ + drawLineElement(element, style) { + const startX = this.mmToPixel(element.startX || 0) + const startY = this.mmToPixel(element.startY || 0) + const endX = this.mmToPixel(element.endX || 50) + const endY = this.mmToPixel(element.endY || 50) + + // 设置线条样式 + this.ctx.strokeStyle = style.lineColor || element.lineColor || '#000000' + this.ctx.lineWidth = this.mmToPixel(style.lineWidth || element.lineWidth || 1) + + // 设置线条类型 + if (style.lineType === 'dashed') { + this.ctx.setLineDash([5, 5]) + } else { + this.ctx.setLineDash([]) + } + + // 绘制线条 + this.ctx.beginPath() + this.ctx.moveTo(startX, startY) + this.ctx.lineTo(endX, endY) + this.ctx.stroke() + this.ctx.setLineDash([]) // 重置虚线 + } + + /** + * 绘制布局容器 + */ + drawLayoutElement(element, style) { + const x = this.mmToPixel(element.left || 0) + const y = this.mmToPixel(element.top || 0) + const width = this.mmToPixel(element.width || 100) + const height = this.mmToPixel(element.height || 100) + + // 绘制布局背景 + this.ctx.fillStyle = style.backgroundColor || 'rgba(200, 200, 255, 0.1)' + this.ctx.fillRect(x, y, width, height) + + // 绘制布局边框 + this.ctx.strokeStyle = style.borderColor || '#cccccc' + this.ctx.lineWidth = 1 + this.ctx.strokeRect(x, y, width, height) + } + + /** + * 绘制元素调试信息 + */ + drawElementDebugInfo(element) { + const x = this.mmToPixel(element.left || 0) + const y = this.mmToPixel(element.top || 0) + const width = this.mmToPixel(element.width || 0) + const height = this.mmToPixel(element.height || 0) + + this.ctx.strokeStyle = '#ff0000' + this.ctx.lineWidth = 0.5 + this.ctx.strokeRect(x, y, width, height) + + // 显示元素ID + this.ctx.fillStyle = '#ff0000' + this.ctx.font = '8px Arial' + this.ctx.fillText(element.id.slice(0, 8), x, y - 5) + } + + /** + * 绘制选中状态 + */ + drawSelection() { + if (!this.selectedElementId || !this.templateData) return + + const element = this.templateData.templateObjects.find(el => el.id === this.selectedElementId) + if (!element) return + + this.drawElementHighlight(element, '#409eff', 2) + + // 绘制控制点 + this.drawControlHandles(element) + } + + /** + * 绘制悬停状态 + */ + drawHover() { + if (!this.hoveredElementId || !this.templateData || this.draggingElement) return + + const element = this.templateData.templateObjects.find(el => el.id === this.hoveredElementId) + if (!element) return + + this.drawElementHighlight(element, '#67c23a', 1) + } + + /** + * 绘制元素高亮 + */ + drawElementHighlight(element, color, lineWidth) { + const x = this.mmToPixel(element.left || 0) + const y = this.mmToPixel(element.top || 0) + const width = this.mmToPixel(element.width || 0) + const height = this.mmToPixel(element.height || 0) + + this.ctx.save() + this.ctx.strokeStyle = color + this.ctx.lineWidth = lineWidth + this.ctx.setLineDash([5, 5]) + this.ctx.strokeRect(x, y, width, height) + this.ctx.restore() + } + + /** + * 绘制控制手柄 + */ + drawControlHandles(element) { + const x = this.mmToPixel(element.left || 0) + const y = this.mmToPixel(element.top || 0) + const width = this.mmToPixel(element.width || 0) + const height = this.mmToPixel(element.height || 0) + const handleSize = 6 + + // 定义控制点位置 + const handles = [ + { x: x - handleSize/2, y: y - handleSize/2, type: 'nw' }, // 左上 + { x: x + width/2 - handleSize/2, y: y - handleSize/2, type: 'n' }, // 上中 + { x: x + width - handleSize/2, y: y - handleSize/2, type: 'ne' }, // 右上 + { x: x - handleSize/2, y: y + height/2 - handleSize/2, type: 'w' }, // 左中 + { x: x + width - handleSize/2, y: y + height/2 - handleSize/2, type: 'e' }, // 右中 + { x: x - handleSize/2, y: y + height - handleSize/2, type: 'sw' }, // 左下 + { x: x + width/2 - handleSize/2, y: y + height - handleSize/2, type: 's' }, // 下中 + { x: x + width - handleSize/2, y: y + height - handleSize/2, type: 'se' } // 右下 + ] + + // 绘制控制点 + handles.forEach(handle => { + this.ctx.fillStyle = '#ffffff' + this.ctx.fillRect(handle.x + this.offsetX, handle.y + this.offsetY, handleSize, handleSize) + this.ctx.strokeStyle = '#409eff' + this.ctx.lineWidth = 1 + this.ctx.strokeRect(handle.x + this.offsetX, handle.y + this.offsetY, handleSize, handleSize) + }) + } + + /** + * 绘制边界 + */ + drawBounds() { + this.ctx.save() + this.ctx.strokeStyle = '#e0e0e0' + this.ctx.lineWidth = 1 + this.ctx.setLineDash([2, 2]) + this.ctx.strokeRect( + this.bounds.minX, + this.bounds.minY, + this.bounds.maxX - this.bounds.minX, + this.bounds.maxY - this.bounds.minY + ) + this.ctx.restore() + } + + /** + * 事件处理:画布点击 + */ + handleCanvasClick(event) { + if (!this.templateData) return + + const rect = this.canvas.getBoundingClientRect() + const x = event.clientX - rect.left - this.offsetX + const y = event.clientY - rect.top - this.offsetY + + // 查找点击的元素 + const clickedElement = this.findElementAtPoint(x, y) + + if (clickedElement) { + // 选择元素 + this.selectedElementId = clickedElement.id + + // 更新 Store + if (this.templateData.SELECT_ELEMENT) { + this.templateData.SELECT_ELEMENT(clickedElement.id) + } + + // 触发选择事件 + this.emit('select', clickedElement) + } else { + // 点击空白处,清除选择 + this.selectedElementId = null + if (this.templateData.CLEAR_SELECTION) { + this.templateData.CLEAR_SELECTION() + } + } + + this.scheduleRender() + } + + /** + * 事件处理:鼠标移动 + */ + handleMouseMove(event) { + if (!this.templateData) return + + const rect = this.canvas.getBoundingClientRect() + const x = event.clientX - rect.left - this.offsetX + const y = event.clientY - rect.top - this.offsetY + + // 拖拽处理 + if (this.draggingElement) { + this.handleDragMove(x, y) + return + } + + // 悬停处理 + const hoveredElement = this.findElementAtPoint(x, y) + if (hoveredElement && hoveredElement.id !== this.hoveredElementId) { + this.hoveredElementId = hoveredElement.id + this.canvas.style.cursor = 'move' + this.scheduleRender() + } else if (!hoveredElement && this.hoveredElementId) { + this.hoveredElementId = null + this.canvas.style.cursor = 'default' + this.scheduleRender() + } + } + + /** + * 事件处理:鼠标按下 + */ + handleMouseDown(event) { + if (!this.templateData || !this.selectedElementId) return + + const rect = this.canvas.getBoundingClientRect() + const x = event.clientX - rect.left - this.offsetX + const y = event.clientY - rect.top - this.offsetY + + // 检查是否点击了选中的元素 + const element = this.templateData.templateObjects.find(el => el.id === this.selectedElementId) + if (!element) return + + const elementX = this.mmToPixel(element.left || 0) + const elementY = this.mmToPixel(element.top || 0) + const elementWidth = this.mmToPixel(element.width || 0) + const elementHeight = this.mmToPixel(element.height || 0) + + // 判断是否点击在元素范围内 + if (x >= elementX && x <= elementX + elementWidth && + y >= elementY && y <= elementY + elementHeight) { + this.startDragging(element, x, y) + } + } + + /** + * 开始拖拽 + */ + startDragging(element, startX, startY) { + this.draggingElement = element + this.dragStartPos = { x: startX, y: startY } + this.dragElementStartPos = { + x: element.left || 0, + y: element.top || 0 + } + + this.canvas.style.cursor = 'grabbing' + } + + /** + * 处理拖拽移动 + */ + handleDragMove(x, y) { + if (!this.draggingElement || !this.templateData) return + + // 计算移动距离(毫米) + const deltaX = this.pixelToMm(x - this.dragStartPos.x) + const deltaY = this.pixelToMm(y - this.dragStartPos.y) + + // 计算新位置(对齐到网格) + const gridSize = this.config.gridSize + let newLeft = Math.round((this.dragElementStartPos.x + deltaX) / gridSize) * gridSize + let newTop = Math.round((this.dragElementStartPos.y + deltaY) / gridSize) * gridSize + + // 边界检查 + const page = this.templateData.templateObjects.find(el => el.name === 'page') + if (page) { + const maxX = page.width - (this.draggingElement.width || 0) + const maxY = page.height - (this.draggingElement.height || 0) + newLeft = Math.max(0, Math.min(newLeft, maxX)) + newTop = Math.max(0, Math.min(newTop, maxY)) + } + + // 更新元素位置 + if (this.templateData.UPDATE_ELEMENT) { + this.templateData.UPDATE_ELEMENT({ + id: this.draggingElement.id, + attributes: { left: newLeft, top: newTop } + }) + } + + this.scheduleRender() + } + + /** + * 事件处理:鼠标松开 + */ + handleMouseUp() { + if (this.draggingElement) { + this.draggingElement = null + this.canvas.style.cursor = 'move' + + // 触发更新事件 + this.emit('update', { type: 'dragEnd' }) + } + } + + /** + * 事件处理:鼠标离开 + */ + handleMouseLeave() { + if (this.hoveredElementId) { + this.hoveredElementId = null + this.scheduleRender() + } + } + + /** + * 事件处理:键盘按下 + */ + handleKeyDown(event) { + if (!this.selectedElementId || !this.templateData) return + + // 删除键 + if (event.key === 'Delete' || event.key === 'Backspace') { + event.preventDefault() + + if (this.templateData.DELETE_ELEMENT) { + this.templateData.DELETE_ELEMENT(this.selectedElementId) + this.selectedElementId = null + this.scheduleRender() + } + } + + // 方向键移动 + const moveStep = 1 // 1mm + let deltaX = 0, deltaY = 0 + + switch (event.key) { + case 'ArrowUp': + deltaY = -moveStep + break + case 'ArrowDown': + deltaY = moveStep + break + case 'ArrowLeft': + deltaX = -moveStep + break + case 'ArrowRight': + deltaX = moveStep + break + } + + if (deltaX !== 0 || deltaY !== 0) { + event.preventDefault() + + const element = this.templateData.templateObjects.find(el => el.id === this.selectedElementId) + if (element && this.templateData.UPDATE_ELEMENT) { + const newLeft = (element.left || 0) + deltaX + const newTop = (element.top || 0) + deltaY + + this.templateData.UPDATE_ELEMENT({ + id: element.id, + attributes: { left: newLeft, top: newTop } + }) + + this.scheduleRender() + } + } + } + + /** + * 事件处理:窗口大小变化 + */ + handleResize() { + this.updateCanvasSize() + } + + /** + * 查找指定坐标下的元素 + */ + findElementAtPoint(x, y) { + if (!this.templateData?.templateObjects) return null + + // 反向遍历(后绘制的元素在上层) + const elements = [...this.templateData.templateObjects].reverse() + + for (const element of elements) { + if (element.name === 'page') continue + + const elementX = this.mmToPixel(element.left || 0) + const elementY = this.mmToPixel(element.top || 0) + const elementWidth = this.mmToPixel(element.width || 0) + const elementHeight = this.mmToPixel(element.height || 0) + + if (x >= elementX && x <= elementX + elementWidth && + y >= elementY && y <= elementY + elementHeight) { + return element + } + } + + return null + } + + /** + * 毫米转像素 + */ + mmToPixel(mm) { + if (this.mmToPixelCache[mm] !== undefined) { + return this.mmToPixelCache[mm] + } + + const pixels = (mm * this.config.dpi) / 25.4 * this.config.scale + this.mmToPixelCache[mm] = pixels + return pixels + } + + /** + * 像素转毫米 + */ + pixelToMm(pixel) { + return (pixel * 25.4) / (this.config.dpi * this.config.scale) + } + + /** + * 解析样式字符串 + */ + parseStyle(styleString) { + if (!styleString) return {} + + const style = {} + const pairs = styleString.split(';').filter(Boolean) + + pairs.forEach(pair => { + const [key, value] = pair.split(':').map(s => s.trim()) + if (key && value) { + style[key] = value + } + }) + + return style + } + + /** + * 截断文本 + */ + truncateText(text, maxWidth) { + let truncated = text + const ellipsis = '...' + + while (this.ctx.measureText(truncated + ellipsis).width > maxWidth && truncated.length > 1) { + truncated = truncated.slice(0, -1) + } + + return truncated + ellipsis + } + + /** + * 事件发射 + */ + on(event, callback) { + if (!this.eventListeners[event]) { + this.eventListeners[event] = [] + } + this.eventListeners[event].push(callback) + } + + /** + * 事件触发 + */ + emit(event, data) { + if (this.eventListeners[event]) { + this.eventListeners[event].forEach(callback => { + callback(data) + }) + } + } + + /** + * 销毁 + */ + destroy() { + this.removeEventListeners() + this.templateData = null + this.canvas = null + this.ctx = null + this.container = null + console.log('CanvasRenderer 已销毁') + } +} + +export default CanvasRenderer \ No newline at end of file diff --git a/src/utils/CanvasRenderer.ts b/src/utils/CanvasRenderer.ts new file mode 100644 index 00000000..2b405915 --- /dev/null +++ b/src/utils/CanvasRenderer.ts @@ -0,0 +1,1039 @@ +import { watch } from 'vue' + +/** + * Canvas 渲染工具类 + * 自动监听模板数据变化,渲染到 Canvas,支持元素选中和拖拽 + */ +class CanvasRenderer { + config: { + dpi: number + scale: number + backgroundColor: string + gridColor: string + gridSize: number + showGrid: boolean + [k: string]: any + } + + canvas: HTMLCanvasElement | null + ctx: CanvasRenderingContext2D | null + container: HTMLElement | null + + isRendering: boolean + needsRender: boolean + lastRenderTime: number + renderDebounce: number + + templateData: any + templateTree: any + + selectedElementId: string | null + hoveredElementId: string | null + draggingElement: any + dragStartPos: { x: number; y: number } + dragElementStartPos: { x: number; y: number } + + mmToPixelCache: Record + elementsCache: Map + + eventListeners: Record void>> + + bounds: { minX: number; minY: number; maxX: number; maxY: number } + + offsetX = 0 + offsetY = 0 + + constructor(options: Record = {}) { + // 配置 + this.config = { + dpi: 203, + scale: 1, + backgroundColor: '#ffffff', + gridColor: '#e0e0e0', + gridSize: 5, // mm + showGrid: true, + ...options + } + + // Canvas 相关 + this.canvas = null + this.ctx = null + this.container = null + + // 渲染状态 + this.isRendering = false + this.needsRender = false + this.lastRenderTime = 0 + this.renderDebounce = 16 // 约 60fps + + // 模板数据 + this.templateData = null + this.templateTree = null + + // 交互状态 + this.selectedElementId = null + this.hoveredElementId = null + this.draggingElement = null + this.dragStartPos = { x: 0, y: 0 } + this.dragElementStartPos = { x: 0, y: 0 } + + // 转换缓存 + this.mmToPixelCache = {} + this.elementsCache = new Map() + + // 事件监听器 + this.eventListeners = { + select: [], + update: [], + render: [] + } + + // 边界检查 + this.bounds = { + minX: 0, + minY: 0, + maxX: 0, + maxY: 0 + } + } + + /** + * 初始化 Canvas 渲染器 + * @param {HTMLCanvasElement} canvas - Canvas 元素 + * @param {HTMLElement} container - 容器元素(用于事件) + */ + initialize(canvas:any, container:any) { + if (!canvas || !container) { + throw new Error('Canvas 和容器元素不能为空') + } + + this.canvas = canvas as HTMLCanvasElement + this.container = container as HTMLElement + this.ctx = (canvas as HTMLCanvasElement).getContext('2d') + + // 设置 Canvas 尺寸 + this.updateCanvasSize() + + // 初始化事件监听 + this.initEventListeners() + + // 初始化渲染循环 + this.initRenderLoop() + + console.log('CanvasRenderer 初始化完成') + } + + /** + * 设置模板数据并开始监听 + * @param {Object} templateStore - 模板 Store(响应式对象) + */ + setTemplateData(templateStore: any) { + try { + + + if (!templateStore || !templateStore.templateObjects) { + console.error('无效的模板数据') + return + } + + this.templateData = templateStore + + // 初始渲染 + this.scheduleRender() + } catch (error) { + console.log(error); + } + } + + /** + * 更新 Canvas 尺寸 + */ + updateCanvasSize() { + if (!this.canvas || !this.container) return + + const containerRect = this.container.getBoundingClientRect() + const width = containerRect.width + const height = containerRect.height + + // 设置 Canvas 物理像素 + const dpr = window.devicePixelRatio || 1 + this.canvas.width = width * dpr + this.canvas.height = height * dpr + this.canvas.style.width = `${width}px` + this.canvas.style.height = `${height}px` + + // 缩放 Canvas 上下文 + this.ctx?.scale(dpr, dpr) + + this.scheduleRender() + } + + /** + * 初始化事件监听 + */ + initEventListeners() { + if (!this.canvas || !this.container) return + + // 点击事件 - 选择元素 + this.canvas.addEventListener('click', this.handleCanvasClick.bind(this)) + + // 鼠标移动事件 - 悬停效果 + this.canvas.addEventListener('mousemove', this.handleMouseMove.bind(this)) + + // 鼠标按下事件 - 开始拖拽 + this.canvas.addEventListener('mousedown', this.handleMouseDown.bind(this)) + + // 鼠标松开事件 - 结束拖拽 + document.addEventListener('mouseup', this.handleMouseUp.bind(this)) + + // 鼠标离开事件 + this.canvas.addEventListener('mouseleave', this.handleMouseLeave.bind(this)) + + // 键盘事件 - 删除选中的元素 + document.addEventListener('keydown', this.handleKeyDown.bind(this)) + + // 窗口大小变化 + window.addEventListener('resize', this.handleResize.bind(this)) + } + + /** + * 移除事件监听 + */ + removeEventListeners() { + if (!this.canvas) return + this.canvas.removeEventListener('click', this.handleCanvasClick) + this.canvas.removeEventListener('mousemove', this.handleMouseMove) + this.canvas.removeEventListener('mousedown', this.handleMouseDown) + document.removeEventListener('mouseup', this.handleMouseUp) + this.canvas.removeEventListener('mouseleave', this.handleMouseLeave) + document.removeEventListener('keydown', this.handleKeyDown) + window.removeEventListener('resize', this.handleResize) + } + + /** + * 初始化渲染循环 + */ + initRenderLoop() { + const renderFrame = () => { + if (this.needsRender) { + this.render() + this.needsRender = false + } + requestAnimationFrame(renderFrame) + } + requestAnimationFrame(renderFrame) + } + + /** + * 安排渲染 + */ + scheduleRender() { + this.needsRender = true + } + + /** + * 主渲染方法 + */ + render() { + if (!this.canvas || !this.ctx || !this.templateData) return + + const startTime = performance.now() + + // 清除画布 + this.clearCanvas() + + // 绘制背景 + this.drawBackground() + + // 绘制网格(如果启用) + if (this.config.showGrid) { + this.drawGrid() + } + + // 绘制模板 + this.drawTemplate() + + // 绘制选中状态 + this.drawSelection() + + // 绘制悬停状态 + this.drawHover() + + // 绘制边界 + this.drawBounds() + + this.lastRenderTime = performance.now() - startTime + + // 触发渲染完成事件 + this.emit('render', { + time: this.lastRenderTime, + elements: this.templateData?.templateObjects?.length || 0 + }) + } + + /** + * 清除画布 + */ + clearCanvas() { + const width = (this.canvas!.width) / (window.devicePixelRatio || 1) + const height = (this.canvas!.height) / (window.devicePixelRatio || 1) + + this.ctx?.save() + this.ctx?.setTransform(1, 0, 0, 1, 0, 0) + this.ctx?.clearRect(0, 0, width, height) + this.ctx?.restore() + } + + /** + * 绘制背景 + */ + drawBackground() { + const width = (this.canvas!.width) / (window.devicePixelRatio || 1) + const height = (this.canvas!.height) / (window.devicePixelRatio || 1) + + if (!this.ctx) return + this.ctx.fillStyle = this.config.backgroundColor + this.ctx.fillRect(0, 0, width, height) + } + + /** + * 绘制网格 + */ + drawGrid() { + if (!this.canvas || !this.ctx) return + + const width = this.canvas.width / (window.devicePixelRatio || 1) + const height = this.canvas.height / (window.devicePixelRatio || 1) + const gridSizePx = this.mmToPixel(this.config.gridSize) + + this.ctx.strokeStyle = this.config.gridColor + this.ctx.lineWidth = 0.5 + + // 绘制垂直线 + for (let x = 0; x <= width; x += gridSizePx) { + this.ctx.beginPath() + this.ctx.moveTo(x, 0) + this.ctx.lineTo(x, height) + this.ctx.stroke() + } + + // 绘制水平线 + for (let y = 0; y <= height; y += gridSizePx) { + this.ctx.beginPath() + this.ctx.moveTo(0, y) + this.ctx.lineTo(width, y) + this.ctx.stroke() + } + } + + /** + * 绘制模板 + */ + drawTemplate() { + if (!this.templateData?.templateObjects || !this.ctx || !this.canvas) return + + // 获取页面元素 + const page = this.templateData.templateObjects.find((el: any) => el.name === 'page') + if (!page) return + + // 计算偏移量(居中显示) + const containerWidth = this.canvas.width / (window.devicePixelRatio || 1) + const containerHeight = this.canvas.height / (window.devicePixelRatio || 1) + const pageWidth = this.mmToPixel(page.width) + const pageHeight = this.mmToPixel(page.height) + + this.offsetX = (containerWidth - pageWidth) / 2 + this.offsetY = (containerHeight - pageHeight) / 2 + + // 保存上下文 + this.ctx.save() + + // 应用偏移 + this.ctx.translate(this.offsetX, this.offsetY) + + // 绘制页面背景 + this.ctx.fillStyle = '#ffffff' + this.ctx.fillRect(0, 0, pageWidth, pageHeight) + this.ctx.strokeStyle = '#cccccc' + this.ctx.lineWidth = 1 + this.ctx.strokeRect(0, 0, pageWidth, pageHeight) + + // 绘制所有元素 + this.templateData.templateObjects.forEach((element: any) => { + if (element.name !== 'page') { + this.drawElement(element) + } + }) + + // 恢复上下文 + this.ctx.restore() + + // 更新边界 + this.bounds = { + minX: this.offsetX, + minY: this.offsetY, + maxX: this.offsetX + pageWidth, + maxY: this.offsetY + pageHeight + } + } + + /** + * 绘制单个元素 + * @param {Object} element - 元素对象 + */ + drawElement(element: any) { + const style = this.parseStyle(element.style) + if (!this.ctx) return + + // 应用样式 + this.ctx.save() + + // 设置透明度 + this.ctx.globalAlpha = style.opacity || 1 + + // 绘制不同类型元素 + switch (element.name) { + case 'text': + this.drawTextElement(element, style) + break + case 'barcode': + this.drawBarcodeElement(element, style) + break + case 'image': + this.drawImageElement(element, style) + break + case 'line': + this.drawLineElement(element, style) + break + case 'layout': + this.drawLayoutElement(element, style) + break + default: + console.warn(`未知元素类型: ${element.name}`) + } + + // 绘制元素边框(调试用) + if (this.config.showDebugInfo) { + this.drawElementDebugInfo(element) + } + + this.ctx.restore() + } + + /** + * 绘制文本元素 + */ + drawTextElement(element: any, style: any) { + if (!this.ctx) return + const x = this.mmToPixel(element.left || 0) + const y = this.mmToPixel(element.top || 0) + const width = this.mmToPixel(element.width || 50) + const height = this.mmToPixel(element.height || 10) + + // 设置文本样式 + this.ctx.fillStyle = style.color || element.color || '#000000' + this.ctx.font = `${style.fontWeight || 'normal'} ${this.mmToPixel(style.fontSize || element.fontSize || 12)}px ${style.fontFamily || element.fontFamily || 'Arial'}` + this.ctx.textAlign = style.align || element.align || 'left' + this.ctx.textBaseline = 'top' + + // 绘制文本 + const lines = (element.content || '').split('\n') + const lineHeight = this.mmToPixel(style.lineHeight || element.lineHeight || element.fontSize || 12) + + lines.forEach((line:any, index:any) => { + if (!this.ctx) return + const lineY = y + (lineHeight * index) + + // 文本溢出处理 + if (style.overflow === 'ellipsis') { + const metrics = this.ctx.measureText(line) + if (metrics.width > width) { + line = this.truncateText(line, width) + } + } + + this.ctx.fillText(line, x, lineY) + }) + } + + /** + * 绘制条码元素(简化版,实际应使用条码库) + */ + drawBarcodeElement(element: any, style: any) { + if (!this.ctx) return + const x = this.mmToPixel(element.left || 0) + const y = this.mmToPixel(element.top || 0) + const width = this.mmToPixel(element.width || 50) + const height = this.mmToPixel(element.height || 20) + + // 绘制条码背景 + this.ctx.fillStyle = '#ffffff' + this.ctx.fillRect(x, y, width, height) + this.ctx.strokeStyle = '#cccccc' + this.ctx.strokeRect(x, y, width, height) + + // 绘制模拟条码(实际项目应集成条码库) + this.ctx.fillStyle = '#000000' + for (let i = 0; i < 20; i++) { + const barWidth = width / 20 + const barHeight = Math.random() * height * 0.8 + const barX = x + i * barWidth + const barY = y + (height - barHeight) / 2 + + if (Math.random() > 0.3) { + this.ctx.fillRect(barX, barY, barWidth * 0.8, barHeight) + } + } + + // 绘制条码文本 + if (!element.hideText) { + this.ctx.fillStyle = '#000000' + this.ctx.font = `${this.mmToPixel(8)}px Arial` + this.ctx.textAlign = 'center' + this.ctx.textBaseline = 'bottom' + this.ctx.fillText(element.content || 'BARCODE', x + width / 2, y + height - 2) + } + } + + /** + * 绘制图片元素 + */ + drawImageElement(element: any, style: any ) { + if (!this.ctx) return + // 简化实现,实际项目需要加载图片 + const x = this.mmToPixel(element.left || 0) + const y = this.mmToPixel(element.top || 0) + const width = this.mmToPixel(element.width || 50) + const height = this.mmToPixel(element.height || 50) + + // 绘制图片占位 + this.ctx.fillStyle = '#f0f0f0' + this.ctx.fillRect(x, y, width, height) + this.ctx.strokeStyle = '#cccccc' + this.ctx.strokeRect(x, y, width, height) + + // 绘制图片图标 + this.ctx.fillStyle = '#999999' + this.ctx.font = `${this.mmToPixel(10)}px Arial` + this.ctx.textAlign = 'center' + this.ctx.textBaseline = 'middle' + this.ctx.fillText('📷', x + width / 2, y + height / 2) + + // 绘制图片名称 + this.ctx.fillStyle = '#666666' + this.ctx.font = `${this.mmToPixel(6)}px Arial` + this.ctx.fillText(element.src ? element.src.split('/').pop() : '图片', x + width / 2, y + height + 5) + } + + /** + * 绘制线条元素 + */ + drawLineElement(element: any, style: any) { + if (!this.ctx) return + const startX = this.mmToPixel(element.startX || 0) + const startY = this.mmToPixel(element.startY || 0) + const endX = this.mmToPixel(element.endX || 50) + const endY = this.mmToPixel(element.endY || 50) + + // 设置线条样式 + this.ctx.strokeStyle = style.lineColor || element.lineColor || '#000000' + this.ctx.lineWidth = this.mmToPixel(style.lineWidth || element.lineWidth || 1) + + // 设置线条类型 + if (style.lineType === 'dashed') { + this.ctx.setLineDash([5, 5]) + } else { + this.ctx.setLineDash([]) + } + + // 绘制线条 + this.ctx.beginPath() + this.ctx.moveTo(startX, startY) + this.ctx.lineTo(endX, endY) + this.ctx.stroke() + this.ctx.setLineDash([]) // 重置虚线 + } + + /** + * 绘制布局容器 + */ + drawLayoutElement(element: any, style: any) { + if (!this.ctx) return + const x = this.mmToPixel(element.left || 0) + const y = this.mmToPixel(element.top || 0) + const width = this.mmToPixel(element.width || 100) + const height = this.mmToPixel(element.height || 100) + + // 绘制布局背景 + this.ctx.fillStyle = style.backgroundColor || 'rgba(200, 200, 255, 0.1)' + this.ctx.fillRect(x, y, width, height) + + // 绘制布局边框 + this.ctx.strokeStyle = style.borderColor || '#cccccc' + this.ctx.lineWidth = 1 + this.ctx.strokeRect(x, y, width, height) + } + + /** + * 绘制元素调试信息 + */ + drawElementDebugInfo(element: any) { + if (!this.ctx) return + const x = this.mmToPixel(element.left || 0) + const y = this.mmToPixel(element.top || 0) + const width = this.mmToPixel(element.width || 0) + const height = this.mmToPixel(element.height || 0) + + this.ctx.strokeStyle = '#ff0000' + this.ctx.lineWidth = 0.5 + this.ctx.strokeRect(x, y, width, height) + + // 显示元素ID + this.ctx.fillStyle = '#ff0000' + this.ctx.font = '8px Arial' + this.ctx.fillText(element.id.slice(0, 8), x, y - 5) + } + + /** + * 绘制选中状态 + */ + drawSelection() { + if (!this.selectedElementId || !this.templateData || !this.ctx) return + + const element = this.templateData.templateObjects.find((el: any) => el.id === this.selectedElementId) + if (!element) return + + this.drawElementHighlight(element, '#409eff', 2) + + // 绘制控制点 + this.drawControlHandles(element) + } + + /** + * 绘制悬停状态 + */ + drawHover() { + if (!this.hoveredElementId || !this.templateData || this.draggingElement || !this.ctx) return + + const element = this.templateData.templateObjects.find((el: any) => el.id === this.hoveredElementId) + if (!element) return + + this.drawElementHighlight(element, '#67c23a', 1) + } + + /** + * 绘制元素高亮 + */ + drawElementHighlight(element: any, color: string, lineWidth: number) { + if (!this.ctx) return + const x = this.mmToPixel(element.left || 0) + const y = this.mmToPixel(element.top || 0) + const width = this.mmToPixel(element.width || 0) + const height = this.mmToPixel(element.height || 0) + + this.ctx.save() + this.ctx.strokeStyle = color + this.ctx.lineWidth = lineWidth + this.ctx.setLineDash([5, 5]) + this.ctx.strokeRect(x, y, width, height) + this.ctx.restore() + } + + /** + * 绘制控制手柄 + */ + drawControlHandles(element: any) { + const x = this.mmToPixel(element.left || 0) + const y = this.mmToPixel(element.top || 0) + const width = this.mmToPixel(element.width || 0) + const height = this.mmToPixel(element.height || 0) + const handleSize = 6 + + // 定义控制点位置 + const handles = [ + { x: x - handleSize/2, y: y - handleSize/2, type: 'nw' }, // 左上 + { x: x + width/2 - handleSize/2, y: y - handleSize/2, type: 'n' }, // 上中 + { x: x + width - handleSize/2, y: y - handleSize/2, type: 'ne' }, // 右上 + { x: x - handleSize/2, y: y + height/2 - handleSize/2, type: 'w' }, // 左中 + { x: x + width - handleSize/2, y: y + height/2 - handleSize/2, type: 'e' }, // 右中 + { x: x - handleSize/2, y: y + height - handleSize/2, type: 'sw' }, // 左下 + { x: x + width/2 - handleSize/2, y: y + height - handleSize/2, type: 's' }, // 下中 + { x: x + width - handleSize/2, y: y + height - handleSize/2, type: 'se' } // 右下 + ] + + // 绘制控制点 + handles.forEach(handle => { + if (!this.ctx) return + this.ctx.fillStyle = '#ffffff' + this.ctx.fillRect(handle.x + this.offsetX, handle.y + this.offsetY, handleSize, handleSize) + this.ctx.strokeStyle = '#409eff' + this.ctx.lineWidth = 1 + this.ctx.strokeRect(handle.x + this.offsetX, handle.y + this.offsetY, handleSize, handleSize) + }) + } + + /** + * 绘制边界 + */ + drawBounds() { + if (!this.ctx) return + this.ctx.save() + this.ctx.strokeStyle = '#e0e0e0' + this.ctx.lineWidth = 1 + this.ctx.setLineDash([2, 2]) + this.ctx.strokeRect( + this.bounds.minX, + this.bounds.minY, + this.bounds.maxX - this.bounds.minX, + this.bounds.maxY - this.bounds.minY + ) + this.ctx.restore() + } + + /** + * 事件处理:画布点击 + */ + handleCanvasClick(event :any) { + if (!this.templateData || !this.canvas) return + + const rect = this.canvas.getBoundingClientRect() + const x = event.clientX - rect.left - this.offsetX + const y = event.clientY - rect.top - this.offsetY + + // 查找点击的元素 + const clickedElement = this.findElementAtPoint(x, y) + + if (clickedElement) { + // 选择元素 + this.selectedElementId = clickedElement.id + + // 更新 Store + if (this.templateData.SELECT_ELEMENT) { + this.templateData.SELECT_ELEMENT(clickedElement.id) + } + + // 触发选择事件 + this.emit('select', clickedElement) + } else { + // 点击空白处,清除选择 + this.selectedElementId = null + if (this.templateData.CLEAR_SELECTION) { + this.templateData.CLEAR_SELECTION() + } + } + + this.scheduleRender() + } + + /** + * 事件处理:鼠标移动 + */ + handleMouseMove(event: any) { + if (!this.templateData || !this.ctx || !this.canvas) return + + const rect = this.canvas.getBoundingClientRect() + const x = event.clientX - rect.left - this.offsetX + const y = event.clientY - rect.top - this.offsetY + + // 拖拽处理 + if (this.draggingElement) { + this.handleDragMove(x, y) + return + } + + // 悬停处理 + const hoveredElement = this.findElementAtPoint(x, y) + if (hoveredElement && hoveredElement.id !== this.hoveredElementId) { + this.hoveredElementId = hoveredElement.id + this.canvas.style.cursor = 'move' + this.scheduleRender() + } else if (!hoveredElement && this.hoveredElementId) { + this.hoveredElementId = null + this.canvas.style.cursor = 'default' + this.scheduleRender() + } + } + + /** + * 事件处理:鼠标按下 + */ + handleMouseDown(event: any) { + if (!this.templateData || !this.selectedElementId || !this.ctx || !this.canvas) return + + const rect = this.canvas.getBoundingClientRect() + const x = event.clientX - rect.left - this.offsetX + const y = event.clientY - rect.top - this.offsetY + + // 检查是否点击了选中的元素 + const element = this.templateData.templateObjects.find((el: any) => el.id === this.selectedElementId) + if (!element) return + + const elementX = this.mmToPixel(element.left || 0) + const elementY = this.mmToPixel(element.top || 0) + const elementWidth = this.mmToPixel(element.width || 0) + const elementHeight = this.mmToPixel(element.height || 0) + + // 判断是否点击在元素范围内 + if (x >= elementX && x <= elementX + elementWidth && + y >= elementY && y <= elementY + elementHeight) { + this.startDragging(element, x, y) + } + } + + /** + * 开始拖拽 + */ + startDragging(element: any, startX: number, startY: number) { + if (!this.templateData || !this.ctx || !this.canvas) return + this.draggingElement = element + this.dragStartPos = { x: startX, y: startY } + this.dragElementStartPos = { + x: element.left || 0, + y: element.top || 0 + } + + this.canvas.style.cursor = 'grabbing' + } + + /** + * 处理拖拽移动 + */ + handleDragMove(x: number, y: number) { + if (!this.draggingElement || !this.templateData || !this.ctx || !this.canvas) return + + // 计算移动距离(毫米) + const deltaX = this.pixelToMm(x - this.dragStartPos.x) + const deltaY = this.pixelToMm(y - this.dragStartPos.y) + + // 计算新位置(对齐到网格) + const gridSize = this.config.gridSize + let newLeft = Math.round((this.dragElementStartPos.x + deltaX) / gridSize) * gridSize + let newTop = Math.round((this.dragElementStartPos.y + deltaY) / gridSize) * gridSize + + // 边界检查 + const page = this.templateData.templateObjects.find((el: any) => el.name === 'page') + if (page) { + const maxX = page.width - (this.draggingElement.width || 0) + const maxY = page.height - (this.draggingElement.height || 0) + newLeft = Math.max(0, Math.min(newLeft, maxX)) + newTop = Math.max(0, Math.min(newTop, maxY)) + } + + // 更新元素位置 + if (this.templateData.UPDATE_ELEMENT) { + this.templateData.UPDATE_ELEMENT({ + id: this.draggingElement.id, + attributes: { left: newLeft, top: newTop } + }) + } + + this.scheduleRender() + } + + /** + * 事件处理:鼠标松开 + */ + handleMouseUp() { + if (!this.ctx || !this.canvas) return + + if (this.draggingElement) { + this.draggingElement = null + this.canvas.style.cursor = 'move' + + // 触发更新事件 + this.emit('update', { type: 'dragEnd' }) + } + } + + /** + * 事件处理:鼠标离开 + */ + handleMouseLeave() { + if (this.hoveredElementId) { + this.hoveredElementId = null + this.scheduleRender() + } + } + + /** + * 事件处理:键盘按下 + */ + handleKeyDown(event:any) { + if (!this.selectedElementId || !this.templateData || !this.ctx || !this.canvas) return + + // 删除键 + if (event.key === 'Delete' || event.key === 'Backspace') { + event.preventDefault() + + if (this.templateData.DELETE_ELEMENT) { + this.templateData.DELETE_ELEMENT(this.selectedElementId) + this.selectedElementId = null + this.scheduleRender() + } + } + + // 方向键移动 + const moveStep = 1 // 1mm + let deltaX = 0, deltaY = 0 + + switch (event.key) { + case 'ArrowUp': + deltaY = -moveStep + break + case 'ArrowDown': + deltaY = moveStep + break + case 'ArrowLeft': + deltaX = -moveStep + break + case 'ArrowRight': + deltaX = moveStep + break + } + + if (deltaX !== 0 || deltaY !== 0) { + event.preventDefault() + + const element = this.templateData.templateObjects.find((el: any) => el.id === this.selectedElementId) + if (element && this.templateData.UPDATE_ELEMENT) { + const newLeft = (element.left || 0) + deltaX + const newTop = (element.top || 0) + deltaY + + this.templateData.UPDATE_ELEMENT({ + id: element.id, + attributes: { left: newLeft, top: newTop } + }) + + this.scheduleRender() + } + } + } + + /** + * 事件处理:窗口大小变化 + */ + handleResize() { + this.updateCanvasSize() + } + + /** + * 查找指定坐标下的元素 + */ + findElementAtPoint(x: number, y: number) { + if (!this.templateData?.templateObjects) return null + + // 反向遍历(后绘制的元素在上层) + const elements = [...this.templateData.templateObjects].reverse() + + for (const element of elements) { + if (element.name === 'page') continue + + const elementX = this.mmToPixel(element.left || 0) + const elementY = this.mmToPixel(element.top || 0) + const elementWidth = this.mmToPixel(element.width || 0) + const elementHeight = this.mmToPixel(element.height || 0) + + if (x >= elementX && x <= elementX + elementWidth && + y >= elementY && y <= elementY + elementHeight) { + return element + } + } + + return null + } + + /** + * 毫米转像素 + */ + mmToPixel(mm:any) { + if (this.mmToPixelCache[mm] !== undefined) { + return this.mmToPixelCache[mm] + } + + const pixels = (mm * this.config.dpi) / 25.4 * this.config.scale + this.mmToPixelCache[mm] = pixels + return pixels + } + + /** + * 像素转毫米 + */ + pixelToMm(pixel:any) { + return (pixel * 25.4) / (this.config.dpi * this.config.scale) + } + + /** + * 解析样式字符串 + */ + parseStyle(styleString: string | Record): Record { + if (!styleString) return {} + + // 如果已经是对象,直接返回 + if (typeof styleString === 'object') return styleString as Record + + const style: Record = {} + const pairs = styleString.split(';').filter(Boolean) + + pairs.forEach(pair => { + const [key, value] = pair.split(':').map(s => s.trim()) + if (key && value) { + // 尝试把数值字符串转换为数字 + const num = Number(value) + style[key] = isNaN(num) ? value : num + } + }) + + return style + } + + /** + * 截断文本 + */ + truncateText(text:any, maxWidth:any) { + if (!this.ctx) return text + + let truncated = text + const ellipsis = '...' + + while (this.ctx.measureText(truncated + ellipsis).width > maxWidth && truncated.length > 1) { + truncated = truncated.slice(0, -1) + } + + return truncated + ellipsis + } + + /** + * 事件发射 + */ + on(event: string, callback: (...args: any[]) => void) { + if (!this.eventListeners[event]) { + this.eventListeners[event] = [] + } + this.eventListeners[event].push(callback) + } + + /** + * 事件触发 + */ + emit(event: string, data: any) { + if (this.eventListeners[event]) { + this.eventListeners[event].forEach(callback => { + callback(data) + }) + } + } + + /** + * 销毁 + */ + destroy() { + this.removeEventListeners() + this.templateData = null + this.canvas = null + this.ctx = null + this.container = null + console.log('CanvasRenderer 已销毁') + } +} + +export default CanvasRenderer \ No newline at end of file diff --git a/src/utils/auth.ts b/src/utils/auth.ts new file mode 100644 index 00000000..6072d039 --- /dev/null +++ b/src/utils/auth.ts @@ -0,0 +1,15 @@ +import Cookies from 'js-cookie'; + +const TokenKey = 'token'; + +export function getToken(): string | undefined { + return Cookies.get(TokenKey); +} + +export function setToken(token: string): void { + Cookies.set(TokenKey, token); +} + +export function removeToken(): void { + Cookies.remove(TokenKey); +} diff --git a/src/utils/get-page-title.js b/src/utils/get-page-title.js new file mode 100644 index 00000000..a6de99dd --- /dev/null +++ b/src/utils/get-page-title.js @@ -0,0 +1,10 @@ +import defaultSettings from '@/settings' + +const title = defaultSettings.title || 'Vue Admin Template' + +export default function getPageTitle(pageTitle) { + if (pageTitle) { + return `${pageTitle} - ${title}` + } + return `${title}` +} diff --git a/src/utils/get-page-title.ts b/src/utils/get-page-title.ts new file mode 100644 index 00000000..09884bcf --- /dev/null +++ b/src/utils/get-page-title.ts @@ -0,0 +1,10 @@ +import defaultSettings from '@/settings' + +const title = defaultSettings.title || 'Vue Admin Template' + +export default function getPageTitle(pageTitle:any) { + if (pageTitle) { + return `${pageTitle} - ${title}` + } + return `${title}` +} diff --git a/src/utils/index.js b/src/utils/index.js new file mode 100644 index 00000000..e77fb0c7 --- /dev/null +++ b/src/utils/index.js @@ -0,0 +1,118 @@ +/** + * Created by PanJiaChen on 16/11/18. + */ + +/** + * Parse the time to string + * @param {(Object|string|number)} time + * @param {string} cFormat + * @returns {string | null} + */ +export function parseTime(time, cFormat) { + if (arguments.length === 0 || !time) { + return null + } + const format = cFormat || '{y}-{m}-{d} {h}:{i}:{s}' + let date + if (typeof time === 'object') { + date = time + } else { + if ((typeof time === 'string')) { + if ((/^[0-9]+$/.test(time))) { + // support "1548221490638" + time = parseInt(time) + } else { + // support safari + // https://stackoverflow.com/questions/4310953/invalid-date-in-safari + time = time.replace(new RegExp(/-/gm), '/') + } + } + + if ((typeof time === 'number') && (time.toString().length === 10)) { + time = time * 1000 + } + date = new Date(time) + } + const formatObj = { + y: date.getFullYear(), + m: date.getMonth() + 1, + d: date.getDate(), + h: date.getHours(), + i: date.getMinutes(), + s: date.getSeconds(), + a: date.getDay() + } + const time_str = format.replace(/{([ymdhisa])+}/g, (result, key) => { + const value = formatObj[key] + // Note: getDay() returns 0 on Sunday + if (key === 'a') { return ['日', '一', '二', '三', '四', '五', '六'][value ] } + return value.toString().padStart(2, '0') + }) + return time_str +} + +/** + * @param {number} time + * @param {string} option + * @returns {string} + */ +export function formatTime(time, option) { + if (('' + time).length === 10) { + time = parseInt(time) * 1000 + } else { + time = +time + } + const d = new Date(time) + const now = Date.now() + + const diff = (now - d) / 1000 + + if (diff < 30) { + return '刚刚' + } else if (diff < 3600) { + // less 1 hour + return Math.ceil(diff / 60) + '分钟前' + } else if (diff < 3600 * 24) { + return Math.ceil(diff / 3600) + '小时前' + } else if (diff < 3600 * 24 * 2) { + return '1天前' + } + if (option) { + return parseTime(time, option) + } else { + return ( + d.getMonth() + + 1 + + '月' + + d.getDate() + + '日' + + d.getHours() + + '时' + + d.getMinutes() + + '分' + ) + } +} + +/** + * @param {string} url + * @returns {Object} + */ +export function param2Obj(url) { + const search = decodeURIComponent(url.split('?')[1]).replace(/\+/g, ' ') + if (!search) { + return {} + } + const obj = {} + const searchArr = search.split('&') + searchArr.forEach(v => { + const index = v.indexOf('=') + if (index !== -1) { + const name = v.substring(0, index) + const val = v.substring(index + 1, v.length) + obj[name] = val + } + }) + return obj +} + diff --git a/src/utils/index.ts b/src/utils/index.ts new file mode 100644 index 00000000..4ea10e13 --- /dev/null +++ b/src/utils/index.ts @@ -0,0 +1,118 @@ +/** + * Created by PanJiaChen on 16/11/18. + */ + +/** + * Parse the time to string + * @param {(Object|string|number)} time + * @param {string} cFormat + * @returns {string | null} + */ +export function parseTime(time:any, cFormat:any) { + if (arguments.length === 0 || !time) { + return null + } + const format = cFormat || '{y}-{m}-{d} {h}:{i}:{s}' + let date + if (typeof time === 'object') { + date = time + } else { + if ((typeof time === 'string')) { + if ((/^[0-9]+$/.test(time))) { + // support "1548221490638" + time = parseInt(time) + } else { + // support safari + // https://stackoverflow.com/questions/4310953/invalid-date-in-safari + time = time.replace(new RegExp(/-/gm), '/') + } + } + + if ((typeof time === 'number') && (time.toString().length === 10)) { + time = time * 1000 + } + date = new Date(time) + } + const formatObj = { + y: date.getFullYear(), + m: date.getMonth() + 1, + d: date.getDate(), + h: date.getHours(), + i: date.getMinutes(), + s: date.getSeconds(), + a: date.getDay() + } + const time_str = format.replace(/{([ymdhisa])+}/g, (result:any, key:any ) => { + const value = formatObj[key as keyof typeof formatObj] + // Note: getDay() returns 0 on Sunday + if (key === 'a') { return ['日', '一', '二', '三', '四', '五', '六'][value ] } + return value.toString().padStart(2, '0') + }) + return time_str +} + +/** + * @param {number} time + * @param {string} option + * @returns {string} + */ +export function formatTime(time:any, option:any) { + if (('' + time).length === 10) { + time = parseInt(time) * 1000 + } else { + time = +time + } + const d = new Date(time) + const now = Date.now() + + const diff = (now - d.getTime()) / 1000 + + if (diff < 30) { + return '刚刚' + } else if (diff < 3600) { + // less 1 hour + return Math.ceil(diff / 60) + '分钟前' + } else if (diff < 3600 * 24) { + return Math.ceil(diff / 3600) + '小时前' + } else if (diff < 3600 * 24 * 2) { + return '1天前' + } + if (option) { + return parseTime(time, option) + } else { + return ( + d.getMonth() + + 1 + + '月' + + d.getDate() + + '日' + + d.getHours() + + '时' + + d.getMinutes() + + '分' + ) + } +} + +/** + * @param {string} url + * @returns {Object} + */ +export function param2Obj(url:any) { + const search = decodeURIComponent(url.split('?')[1]).replace(/\+/g, ' ') + if (!search) { + return {} + } + const obj: Record = {} + const searchArr = search.split('&') + searchArr.forEach(v => { + const index = v.indexOf('=') + if (index !== -1) { + const name = v.substring(0, index) + const val = v.substring(index + 1, v.length) + obj[name] = val + } + }) + return obj +} + diff --git a/src/utils/overlookControls.js b/src/utils/overlookControls.js new file mode 100644 index 00000000..0e7ea94b --- /dev/null +++ b/src/utils/overlookControls.js @@ -0,0 +1,371 @@ +//src/utils/overlookControls.js + +import * as THREE from 'three' + +// 辅助函数:厘米转Three.js单位(1单位=1cm) +const cm = (value) => value // Three.js中直接使用厘米为单位 + +export class OverlookControls { + constructor(camera, domElement, scene, config = {}) { + this.camera = camera + this.domElement = domElement + this.scene = scene + this.enabled = true + + // 2.5D视角固定参数 + this.cameraAngle = Math.PI / 4 // 45度固定角度 + this.cameraPitch = 70 // 70度俯仰角(LOL风格) + this.targetHeight = cm(0) // 目标在地面 + + // 相机高度(缩放) + this.cameraHeight = cm(8000) // 初始高度80米 + this.minHeight = cm(4000) // 最小高度40米 + this.maxHeight = cm(20000) // 最大高度200米 + + // 目标位置(镜头中心点) + this.target = new THREE.Vector3(0, 0, 0) + + // 视野边界参数(类似LOL地图边界) + this.boundaryMinX = config.boundaryMinX || cm(-30000) + this.boundaryMaxX = config.boundaryMaxX || cm(30000) + this.boundaryMinZ = config.boundaryMinZ || cm(-30000) + this.boundaryMaxZ = config.boundaryMaxZ || cm(30000) + + // 移动速度(厘米/秒)- 键盘速度加速2倍 + this.moveSpeed = { + keyboard: cm(1600), // 键盘移动速度(原800 * 2) + drag: cm(0.5) // 拖拽灵敏度系数 + } + + // 鼠标拖拽控制 + this.isDragging = false + this.dragStart = new THREE.Vector2() + this.dragCurrent = new THREE.Vector2() + this.lastDragPos = new THREE.Vector2() + + // 点击地面检测 + this.raycaster = new THREE.Raycaster() + this.mouse = new THREE.Vector2() + this.groundObjects = [] + + // 键盘控制状态 + this.keys = { + w: false, a: false, s: false, d: false, + up: false, left: false, down: false, right: false + } + + // 区域边界检测 + this.areaBoundaries = [] + this.onAreaClick = null + + // 初始化 + this.initControls() + this.updateCameraPosition() + } + + initControls() { + const canvas = this.domElement + + // 鼠标按下开始拖拽 + const onMouseDown = (e) => { + if (!this.enabled || e.button !== 0) return // 只响应左键 + + e.preventDefault() + this.isDragging = true + this.dragStart.set(e.clientX, e.clientY) + this.lastDragPos.set(e.clientX, e.clientY) + canvas.style.cursor = 'grabbing' + } + + // 鼠标移动处理拖拽 + const onMouseMove = (e) => { + if (!this.enabled) return + + this.dragCurrent.set(e.clientX, e.clientY) + + if (this.isDragging) { + const deltaX = this.dragCurrent.x - this.lastDragPos.x + const deltaY = this.dragCurrent.y - this.lastDragPos.y + + // 根据拖拽距离移动视角 + const moveX = -deltaX * this.moveSpeed.drag + const moveZ = -deltaY * this.moveSpeed.drag + + // 根据固定45度角度旋转移动方向 + const angle = -this.cameraAngle + const cos = Math.cos(angle) + const sin = Math.sin(angle) + + const worldMoveX = (moveX * cos - moveZ * sin) + const worldMoveZ = (moveX * sin + moveZ * cos) + + this.setTargetPosition( + this.target.x + worldMoveX, + this.target.z + worldMoveZ + ) + + this.lastDragPos.set(e.clientX, e.clientY) + } + } + + // 鼠标释放停止拖拽 + const onMouseUp = (e) => { + if (!this.enabled || e.button !== 0) return + + this.isDragging = false + canvas.style.cursor = 'grab' + + // 检查是否是点击(移动距离很小) + const dx = this.dragCurrent.x - this.dragStart.x + const dy = this.dragCurrent.y - this.dragStart.y + const dragDistance = Math.sqrt(dx * dx + dy * dy) + + if (dragDistance < 5) { + this.handleClick(e) + } + } + + // 鼠标滚轮缩放 + const onWheel = (e) => { + if (!this.enabled) return + + e.preventDefault() + const delta = e.deltaY > 0 ? 1.2 : 0.8 + const newHeight = this.cameraHeight * delta + this.cameraHeight = THREE.MathUtils.clamp(newHeight, this.minHeight, this.maxHeight) + this.updateCameraPosition() + } + + // 点击检测 + const handleClick = (e) => { + const rect = canvas.getBoundingClientRect() + this.mouse.x = ((e.clientX - rect.left) / rect.width) * 2 - 1 + this.mouse.y = -((e.clientY - rect.top) / rect.height) * 2 + 1 + + this.raycaster.setFromCamera(this.mouse, this.camera) + + // 1. 先检测是否点击了区域边界 + let areaClicked = false + for (const area of this.areaBoundaries) { + const intersects = this.raycaster.intersectObject(area.boundary) + if (intersects.length > 0) { + if (this.onAreaClick) { + this.onAreaClick(area.areaId, area.areaName, area.areaType) + } + areaClicked = true + break + } + } + + // 2. 如果没有点击区域,检测地面(仅显示标记,不移动) + if (!areaClicked) { + const intersects = this.raycaster.intersectObjects(this.groundObjects) + if (intersects.length > 0) { + const point = intersects[0].point + this.showClickMarker(point) + } + } + } + + // 键盘事件 + const onKeyDown = (e) => { + if (!this.enabled) return + + switch(e.key.toLowerCase()) { + case 'w': case 'arrowup': this.keys.w = this.keys.up = true; break + case 'a': case 'arrowleft': this.keys.a = this.keys.left = true; break + case 's': case 'arrowdown': this.keys.s = this.keys.down = true; break + case 'd': case 'arrowright': this.keys.d = this.keys.right = true; break + } + } + + const onKeyUp = (e) => { + switch(e.key.toLowerCase()) { + case 'w': case 'arrowup': this.keys.w = this.keys.up = false; break + case 'a': case 'arrowleft': this.keys.a = this.keys.left = false; break + case 's': case 'arrowdown': this.keys.s = this.keys.down = false; break + case 'd': case 'arrowright': this.keys.d = this.keys.right = false; break + } + } + + // 添加事件监听器 + canvas.addEventListener('mousedown', onMouseDown) + canvas.addEventListener('mousemove', onMouseMove) + canvas.addEventListener('mouseup', onMouseUp) + canvas.addEventListener('wheel', onWheel) + + // 键盘事件监听在window上 + window.addEventListener('keydown', onKeyDown) + window.addEventListener('keyup', onKeyUp) + + // 鼠标离开画布时停止拖拽 + canvas.addEventListener('mouseleave', () => { + if (this.isDragging) { + this.isDragging = false + canvas.style.cursor = 'grab' + } + }) + + // 初始化光标样式 + canvas.style.cursor = 'grab' + + // 保存事件处理器以便清理 + this.eventHandlers = { + onMouseDown, onMouseMove, onMouseUp, onWheel, + onKeyDown, onKeyUp, handleClick + } + this.handleClick = handleClick + } + + setTargetPosition(x, z) { + // 限制目标位置在边界内 + const clampedX = THREE.MathUtils.clamp(x, this.boundaryMinX, this.boundaryMaxX) + const clampedZ = THREE.MathUtils.clamp(z, this.boundaryMinZ, this.boundaryMaxZ) + + this.target.x = clampedX + this.target.z = clampedZ + + this.updateCameraPosition() + } + + updateCameraPosition() { + // 固定2.5D视角计算 + const phi = THREE.MathUtils.degToRad(90 - this.cameraPitch) + const theta = this.cameraAngle + + const x = this.target.x + this.cameraHeight * Math.sin(phi) * Math.cos(theta) + const y = this.target.y + this.cameraHeight * Math.cos(phi) + const z = this.target.z + this.cameraHeight * Math.sin(phi) * Math.sin(theta) + + this.camera.position.set(x, y, z) + this.camera.lookAt(this.target) + } + + update(deltaTime) { + if (!this.enabled) return + + // 键盘控制(速度加倍) + let moveX = 0, moveZ = 0 + if (this.keys.w || this.keys.up) moveZ += 1 + if (this.keys.s || this.keys.down) moveZ -= 1 + if (this.keys.a || this.keys.left) moveX -= 1 + if (this.keys.d || this.keys.right) moveX += 1 + + if (moveX !== 0 || moveZ !== 0) { + const speed = deltaTime ? this.moveSpeed.keyboard * deltaTime * 0.16: this.moveSpeed.keyboard * 0.066 + + // 根据固定45度角度旋转移动方向 + const angle = -this.cameraAngle + const cos = Math.cos(angle) + const sin = Math.sin(angle) + + const worldMoveX = (moveX * cos - moveZ * sin) * speed + const worldMoveZ = (moveX * sin + moveZ * cos) * speed + + this.setTargetPosition( + this.target.x + worldMoveX, + this.target.z + worldMoveZ + ) + } + } + + showClickMarker(position) { + // 移除旧的标记 + if (this.clickMarker) { + this.scene.remove(this.clickMarker) + } + + // 创建新的标记(圆形标记) + const markerGeometry = new THREE.RingGeometry(cm(50), cm(70), 32) + const markerMaterial = new THREE.MeshBasicMaterial({ + color: 0x00ffff, + side: THREE.DoubleSide, + transparent: true, + opacity: 0.7 + }) + const marker = new THREE.Mesh(markerGeometry, markerMaterial) + marker.position.copy(position) + marker.position.y += cm(5) // 稍微高于地面 + marker.rotation.x = -Math.PI / 2 // 水平放置 + + this.scene.add(marker) + this.clickMarker = marker + + // 2秒后淡出移除 + setTimeout(() => { + if (this.clickMarker === marker) { + const fadeOut = () => { + markerMaterial.opacity -= 0.05 + if (markerMaterial.opacity > 0) { + requestAnimationFrame(fadeOut) + } else { + this.scene.remove(marker) + if (this.clickMarker === marker) { + this.clickMarker = null + } + } + } + fadeOut() + } + }, 2000) + } + + // 设置边界 + setBoundary(minX, maxX, minZ, maxZ) { + this.boundaryMinX = cm(minX) + this.boundaryMaxX = cm(maxX) + this.boundaryMinZ = cm(minZ) + this.boundaryMaxZ = cm(maxZ) + + // 确保当前目标在边界内 + this.setTargetPosition(this.target.x, this.target.z) + } + + // 添加区域边界(用于区域点击检测) + addAreaBoundary(boundaryMesh, areaId, areaName, areaType) { + this.areaBoundaries.push({ + boundary: boundaryMesh, + areaId, + areaName, + areaType + }) + } + + // 设置区域点击回调 + setOnAreaClick(callback) { + this.onAreaClick = callback + } + + addGroundObject(object) { + this.groundObjects.push(object) + } + + // 重置视角到指定位置 + resetView(x = 0, z = 0) { + this.setTargetPosition(x, z) + this.cameraHeight = cm(8000) + this.updateCameraPosition() + } + + dispose() { + const canvas = this.domElement + const handlers = this.eventHandlers + + if (canvas && handlers) { + canvas.removeEventListener('mousedown', handlers.onMouseDown) + canvas.removeEventListener('mousemove', handlers.onMouseMove) + canvas.removeEventListener('mouseup', handlers.onMouseUp) + canvas.removeEventListener('wheel', handlers.onWheel) + + window.removeEventListener('keydown', handlers.onKeyDown) + window.removeEventListener('keyup', handlers.onKeyUp) + + canvas.style.cursor = 'default' + } + + if (this.clickMarker) { + this.scene.remove(this.clickMarker) + this.clickMarker = null + } + } +} diff --git a/src/utils/overlookControls.ts b/src/utils/overlookControls.ts new file mode 100644 index 00000000..7fee0e36 --- /dev/null +++ b/src/utils/overlookControls.ts @@ -0,0 +1,405 @@ +//src/utils/overlookControls.ts + +import * as THREE from 'three' + +// 辅助函数:厘米转Three.js单位(1单位=1cm) +const cm = (value: number) => value // Three.js中直接使用厘米为单位 + +type AreaBoundary = { + boundary: THREE.Object3D + areaId: any + areaName?: string + areaType?: any +} + +export class OverlookControls { + camera: THREE.Camera + domElement: HTMLElement + scene: THREE.Scene + enabled: boolean + + cameraAngle: number + cameraPitch: number + targetHeight: number + + cameraHeight: number + minHeight: number + maxHeight: number + + target: THREE.Vector3 + + boundaryMinX: number + boundaryMaxX: number + boundaryMinZ: number + boundaryMaxZ: number + + moveSpeed: { keyboard: number; drag: number } + + isDragging: boolean + dragStart: THREE.Vector2 + dragCurrent: THREE.Vector2 + lastDragPos: THREE.Vector2 + + raycaster: THREE.Raycaster + mouse: THREE.Vector2 + groundObjects: THREE.Object3D[] + + keys: { w: boolean; a: boolean; s: boolean; d: boolean; up: boolean; left: boolean; down: boolean; right: boolean } + + areaBoundaries: AreaBoundary[] + onAreaClick: ((areaId: any, areaName?: string, areaType?: any) => void) | null + + eventHandlers: any + handleClick: ((e: MouseEvent) => void) | null + clickMarker: THREE.Object3D | null + + constructor(camera: THREE.Camera, domElement: HTMLElement, scene: THREE.Scene, config: Record = {}) { + this.camera = camera + this.domElement = domElement + this.scene = scene + this.enabled = true + + // 2.5D视角固定参数 + this.cameraAngle = Math.PI / 4 // 45度固定角度 + this.cameraPitch = 70 // 70度俯仰角(LOL风格) + this.targetHeight = cm(0) // 目标在地面 + + // 相机高度(缩放) + this.cameraHeight = cm(8000) // 初始高度80米 + this.minHeight = cm(4000) // 最小高度40米 + this.maxHeight = cm(20000) // 最大高度200米 + + // 目标位置(镜头中心点) + this.target = new THREE.Vector3(0, 0, 0) + + // 视野边界参数(类似LOL地图边界) + this.boundaryMinX = config.boundaryMinX || cm(-30000) + this.boundaryMaxX = config.boundaryMaxX || cm(30000) + this.boundaryMinZ = config.boundaryMinZ || cm(-30000) + this.boundaryMaxZ = config.boundaryMaxZ || cm(30000) + + // 移动速度(厘米/秒)- 键盘速度加速2倍 + this.moveSpeed = { + keyboard: cm(1600), // 键盘移动速度(原800 * 2) + drag: cm(0.5) // 拖拽灵敏度系数 + } + + // 鼠标拖拽控制 + this.isDragging = false + this.dragStart = new THREE.Vector2() + this.dragCurrent = new THREE.Vector2() + this.lastDragPos = new THREE.Vector2() + + // 点击地面检测 + this.raycaster = new THREE.Raycaster() + this.mouse = new THREE.Vector2() + this.groundObjects = [] + + // 键盘控制状态 + this.keys = { w: false, a: false, s: false, d: false, up: false, left: false, down: false, right: false } + + // 区域边界检测 + this.areaBoundaries = [] + this.onAreaClick = null + + this.eventHandlers = null + this.handleClick = null + this.clickMarker = null + + // 初始化 + this.initControls() + this.updateCameraPosition() + } + + initControls() { + const canvas = this.domElement + + // 鼠标按下开始拖拽 + const onMouseDown = (e: MouseEvent) => { + if (!this.enabled || e.button !== 0) return // 只响应左键 + + e.preventDefault() + this.isDragging = true + this.dragStart.set((e as MouseEvent).clientX, (e as MouseEvent).clientY) + this.lastDragPos.set((e as MouseEvent).clientX, (e as MouseEvent).clientY) + canvas.style.cursor = 'grabbing' + } + + // 鼠标移动处理拖拽 + const onMouseMove = (e: MouseEvent) => { + if (!this.enabled) return + + this.dragCurrent.set(e.clientX, e.clientY) + + if (this.isDragging) { + const deltaX = this.dragCurrent.x - this.lastDragPos.x + const deltaY = this.dragCurrent.y - this.lastDragPos.y + + // 根据拖拽距离移动视角 + const moveX = -deltaX * this.moveSpeed.drag + const moveZ = -deltaY * this.moveSpeed.drag + + // 根据固定45度角度旋转移动方向 + const angle = -this.cameraAngle + const cos = Math.cos(angle) + const sin = Math.sin(angle) + + const worldMoveX = (moveX * cos - moveZ * sin) + const worldMoveZ = (moveX * sin + moveZ * cos) + + this.setTargetPosition(this.target.x + worldMoveX, this.target.z + worldMoveZ) + + this.lastDragPos.set(e.clientX, e.clientY) + } + } + + // 鼠标释放停止拖拽 + const onMouseUp = (e: MouseEvent) => { + if (!this.enabled || e.button !== 0) return + + this.isDragging = false + canvas.style.cursor = 'grab' + + // 检查是否是点击(移动距离很小) + const dx = this.dragCurrent.x - this.dragStart.x + const dy = this.dragCurrent.y - this.dragStart.y + const dragDistance = Math.sqrt(dx * dx + dy * dy) + + if (dragDistance < 5) { + this.handleClick && this.handleClick(e as MouseEvent) + } + } + + // 鼠标滚轮缩放 + const onWheel = (e: WheelEvent) => { + if (!this.enabled) return + + e.preventDefault() + const delta = e.deltaY > 0 ? 1.2 : 0.8 + const newHeight = this.cameraHeight * delta + this.cameraHeight = THREE.MathUtils.clamp(newHeight, this.minHeight, this.maxHeight) + this.updateCameraPosition() + } + + // 点击检测 + const handleClick = (e: MouseEvent) => { + const rect = canvas.getBoundingClientRect() + this.mouse.x = ((e.clientX - rect.left) / rect.width) * 2 - 1 + this.mouse.y = -((e.clientY - rect.top) / rect.height) * 2 + 1 + + this.raycaster.setFromCamera(this.mouse, this.camera) + + // 1. 先检测是否点击了区域边界 + let areaClicked = false + for (const area of this.areaBoundaries) { + const intersects = this.raycaster.intersectObject(area.boundary) + if (intersects.length > 0) { + if (this.onAreaClick) { + this.onAreaClick(area.areaId, area.areaName, area.areaType) + } + areaClicked = true + break + } + } + + // 2. 如果没有点击区域,检测地面(仅显示标记,不移动) + if (!areaClicked) { + const intersects = this.raycaster.intersectObjects(this.groundObjects) + if (intersects.length > 0) { + const point = intersects[0].point + this.showClickMarker(point) + } + } + } + + // 键盘事件 + const onKeyDown = (e: KeyboardEvent) => { + if (!this.enabled) return + + switch (e.key.toLowerCase()) { + case 'w': case 'arrowup': this.keys.w = this.keys.up = true; break + case 'a': case 'arrowleft': this.keys.a = this.keys.left = true; break + case 's': case 'arrowdown': this.keys.s = this.keys.down = true; break + case 'd': case 'arrowright': this.keys.d = this.keys.right = true; break + } + } + + const onKeyUp = (e: KeyboardEvent) => { + switch (e.key.toLowerCase()) { + case 'w': case 'arrowup': this.keys.w = this.keys.up = false; break + case 'a': case 'arrowleft': this.keys.a = this.keys.left = false; break + case 's': case 'arrowdown': this.keys.s = this.keys.down = false; break + case 'd': case 'arrowright': this.keys.d = this.keys.right = false; break + } + } + + // 添加事件监听器 + canvas.addEventListener('mousedown', onMouseDown) + canvas.addEventListener('mousemove', onMouseMove) + canvas.addEventListener('mouseup', onMouseUp) + canvas.addEventListener('wheel', onWheel) + + // 键盘事件监听在window上 + window.addEventListener('keydown', onKeyDown) + window.addEventListener('keyup', onKeyUp) + + // 鼠标离开画布时停止拖拽 + canvas.addEventListener('mouseleave', () => { + if (this.isDragging) { + this.isDragging = false + canvas.style.cursor = 'grab' + } + }) + + // 初始化光标样式 + canvas.style.cursor = 'grab' + + // 保存事件处理器以便清理 + this.eventHandlers = { onMouseDown, onMouseMove, onMouseUp, onWheel, onKeyDown, onKeyUp, handleClick } + this.handleClick = handleClick + } + + setTargetPosition(x: number, z: number) { + // 限制目标位置在边界内 + const clampedX = THREE.MathUtils.clamp(x, this.boundaryMinX, this.boundaryMaxX) + const clampedZ = THREE.MathUtils.clamp(z, this.boundaryMinZ, this.boundaryMaxZ) + + this.target.x = clampedX + this.target.z = clampedZ + + this.updateCameraPosition() + } + + updateCameraPosition() { + // 固定2.5D视角计算 + const phi = THREE.MathUtils.degToRad(90 - this.cameraPitch) + const theta = this.cameraAngle + + const x = this.target.x + this.cameraHeight * Math.sin(phi) * Math.cos(theta) + const y = this.target.y + this.cameraHeight * Math.cos(phi) + const z: number = this.target.z + this.cameraHeight * Math.sin(phi) * Math.sin(theta) + + (this.camera.position as THREE.Vector3).set(x, y, z) + this.camera.lookAt(this.target) + } + + update(deltaTime?: number) { + if (!this.enabled) return + + // 键盘控制(速度加倍) + let moveX = 0, moveZ = 0 + if (this.keys.w || this.keys.up) moveZ += 1 + if (this.keys.s || this.keys.down) moveZ -= 1 + if (this.keys.a || this.keys.left) moveX -= 1 + if (this.keys.d || this.keys.right) moveX += 1 + + if (moveX !== 0 || moveZ !== 0) { + const speed = deltaTime ? this.moveSpeed.keyboard * deltaTime * 0.16 : this.moveSpeed.keyboard * 0.066 + + // 根据固定45度角度旋转移动方向 + const angle = -this.cameraAngle + const cos = Math.cos(angle) + const sin = Math.sin(angle) + + const worldMoveX = (moveX * cos - moveZ * sin) * speed + const worldMoveZ = (moveX * sin + moveZ * cos) * speed + + this.setTargetPosition(this.target.x + worldMoveX, this.target.z + worldMoveZ) + } + } + + showClickMarker(position: THREE.Vector3) { + // 移除旧的标记 + if (this.clickMarker) { + this.scene.remove(this.clickMarker) + } + + // 创建新的标记(圆形标记) + const markerGeometry = new THREE.RingGeometry(cm(50), cm(70), 32) + const markerMaterial = new THREE.MeshBasicMaterial({ + color: 0x00ffff, + side: THREE.DoubleSide, + transparent: true, + opacity: 0.7 + }) + const marker = new THREE.Mesh(markerGeometry, markerMaterial) + marker.position.copy(position) + marker.position.y += cm(5) // 稍微高于地面 + marker.rotation.x = -Math.PI / 2 // 水平放置 + + this.scene.add(marker) + this.clickMarker = marker + + // 2秒后淡出移除 + setTimeout(() => { + if (this.clickMarker === marker) { + const fadeOut = () => { + markerMaterial.opacity -= 0.05 + if (markerMaterial.opacity > 0) { + requestAnimationFrame(fadeOut) + } else { + this.scene.remove(marker) + if (this.clickMarker === marker) { + this.clickMarker = null + } + } + } + fadeOut() + } + }, 2000) + } + + // 设置边界 + setBoundary(minX: number, maxX: number, minZ: number, maxZ: number) { + this.boundaryMinX = cm(minX) + this.boundaryMaxX = cm(maxX) + this.boundaryMinZ = cm(minZ) + this.boundaryMaxZ = cm(maxZ) + + // 确保当前目标在边界内 + this.setTargetPosition(this.target.x, this.target.z) + } + + // 添加区域边界(用于区域点击检测) + addAreaBoundary(boundaryMesh: THREE.Object3D, areaId: any, areaName?: string, areaType?: any) { + this.areaBoundaries.push({ boundary: boundaryMesh, areaId, areaName, areaType }) + } + + // 设置区域点击回调 + setOnAreaClick(callback: (areaId: any, areaName?: string, areaType?: any) => void) { + this.onAreaClick = callback + } + + addGroundObject(object: THREE.Object3D) { + this.groundObjects.push(object) + } + + // 重置视角到指定位置 + resetView(x = 0, z = 0) { + this.setTargetPosition(x, z) + this.cameraHeight = cm(8000) + this.updateCameraPosition() + } + + dispose() { + const canvas = this.domElement + const handlers = this.eventHandlers + + if (canvas && handlers) { + canvas.removeEventListener('mousedown', handlers.onMouseDown) + canvas.removeEventListener('mousemove', handlers.onMouseMove) + canvas.removeEventListener('mouseup', handlers.onMouseUp) + canvas.removeEventListener('wheel', handlers.onWheel) + + window.removeEventListener('keydown', handlers.onKeyDown) + window.removeEventListener('keyup', handlers.onKeyUp) + + canvas.style.cursor = 'default' + } + + if (this.clickMarker) { + this.scene.remove(this.clickMarker) + this.clickMarker = null + } + } +} diff --git a/src/utils/request.ts b/src/utils/request.ts new file mode 100644 index 00000000..c7010372 --- /dev/null +++ b/src/utils/request.ts @@ -0,0 +1,233 @@ +import axios from 'axios' +import { ElMessage, ElMessageBox } from 'element-plus' +import { + getToken, setToken, removeToken +} from '@/utils/auth' +import router from '@/router' + +// create an axios instance +const service = axios.create({ + baseURL: import.meta.env.VITE_APP_BASE_API, + timeout: 10000, // 建议适当延长超时时间 + // withCredentials: true, // 根据实际情况决定是否开启 +}); + +// 定义业务成功码 +const SUCCESS_CODES = [200, 20000, 1,0] // 支持多种成功码 + +// 错误码映射 +const ERROR_CODE_MAP = { + // 认证相关错误 + 400: '请求参数错误', + 401: '未授权访问', + 403: '禁止访问', + 404: '资源不存在', + 409: '资源冲突', + 422: '参数验证失败', + 500: '服务器内部错误', + + // 打印机错误 + 1001: '参数错误', + 1002: '打印台不存在', + 1003: '打印电脑不存在', + 1004: '保存失败', + 1005: '删除失败', + + // 业务错误码(根据实际后端调整) + 40001: '用户名或密码错误', + 40002: '账号已被禁用', + 40003: '验证码错误', + 40004: '账号不存在', + 40005: '没有操作权限', + 40006: '访问被拒绝', + 40010: '数据不存在', + 40011: '数据重复', + 40012: '参数验证失败', + + // Token 相关错误 + 50008: '非法的token', + 50012: '其他客户端登录', + 50014: 'Token过期', +} + +// request interceptor +service.interceptors.request.use( + config => { + config.headers['platform'] ='web'; + config.headers['project'] ='all'; + // 添加 token + const token = getToken() + if (token) { + config.headers['Authorization'] = 'Bearer ' + token + } + + // 为 GET 请求添加时间戳防止缓存 + if (config.method === 'get') { + config.params = { + ...(config.params), + _t: new Date().getTime(), + } + } + + return config + }, + error => { + return Promise.reject(error) + } +) + +// response interceptor +service.interceptors.response.use( + response => { + const headers = response.headers + const res = response.data + const authHeader = headers['authorization'] || headers['Authorization']; + if (authHeader && authHeader.startsWith('Bearer ')) { + const newToken = authHeader.substring(7) + setToken(newToken) + } + + // 检查业务状态码 + if (!SUCCESS_CODES.includes(res.code)) { + const errorMessage = (ERROR_CODE_MAP as Record)[res.code] || res.message || '请求失败' + + // Token 失效处理 + if ([401, 50008, 50012, 50014].includes(res.code)) { + handleTokenExpired() + return Promise.reject(new Error(errorMessage)) + } + + // 权限不足处理 + if ([403, 40005, 40006].includes(res.code)) { + ElMessage.warning('没有操作权限') + return Promise.reject(new Error(errorMessage)) + } + + ElMessage.error(errorMessage) + return Promise.reject(new Error(errorMessage)) + } else { + // 请求成功,返回数据 + return res + } + }, + error => { + let message = '网络错误,请稍后重试' + + if (error.response) { + // 服务器返回了错误状态码 + const status = error.response.status + const data = error.response.data + + // 如果后端返回了格式化错误信息,使用后端的消息 + if (data && data.message) { + message = data.message + } else { + // 否则使用默认的 HTTP 错误消息 + switch (status) { + case 400: message = '请求参数错误'; break + case 401: + message = '未授权,请重新登录' + handleTokenExpired() + break + case 403: message = '拒绝访问,没有操作权限'; break + case 404: message = '请求资源不存在'; break + case 405: message = '请求方法不被允许'; break + case 406: message = '仓库有效期过期,拒绝访问'; break + case 408: message = '请求超时'; break + case 500: message = '服务器内部错误'; break + case 501: message = '服务未实现'; break + case 502: message = '网关错误'; break + case 503: message = '服务不可用'; break + case 504: message = '网关超时'; break + case 505: message = 'HTTP版本不受支持'; break + default: message = `连接错误 ${status}` + } + } + } else if (error.request) { + if (error.code === 'ECONNABORTED' && error.message.includes('timeout')) { + message = '请求超时,请检查网络连接' + } else { + message = '网络连接异常,请检查网络' + } + } else { + message = error.message + } + + ElMessage.error(message) + return Promise.reject(error) + } +) + +// Token 过期处理函数 +let isReloginShow = false +function handleTokenExpired() { + if (isReloginShow) return + isReloginShow = true + ElMessageBox.confirm('登录状态已过期,请重新登录', '确认注销', { + confirmButtonText: '重新登录', + cancelButtonText: '取消', + type: 'warning' + }).then(() => { + isReloginShow = false + removeToken() + // 强制刷新页面到登录页 + window.location.href = '/login' + }).catch(() => { + isReloginShow = false + }) +} + +// 封装常用的请求方法 +export const http = { + get(url : string, params = {}, config = {}) { + return service({ + method: 'get', + url, + params, + ...config + }) + }, + + post(url : string, data = {}, config = {}) { + return service({ + method: 'post', + url, + data, + ...config + }) + }, + + put(url : string, data = {}, config = {}) { + return service({ + method: 'put', + url, + data, + ...config + }) + }, + + delete(url : string, config = {}) { + return service({ + method: 'delete', + url, + ...config + }) + }, + + upload(url : string, formData : FormData, onProgress = null) { + const requestConfig: any = { + method: 'post', + url, + data: formData, + headers: { + 'Content-Type': 'multipart/form-data' + } + }; + if (onProgress) { + requestConfig.onUploadProgress = onProgress; + } + return service(requestConfig); + } +} + +export default service; diff --git a/src/utils/threeScene.js b/src/utils/threeScene.js new file mode 100644 index 00000000..1d928e72 --- /dev/null +++ b/src/utils/threeScene.js @@ -0,0 +1,1206 @@ +import * as THREE from 'three' + +const cm = (value) => value // Three.js中直接使用厘米为单位 +import {loadOrbitControls,RoamControls} from './threeUtils.js'; +import {OverlookControls} from './overlookControls.js'; + +export class ThreeScene { + constructor(container, options = {}) { + this.container = container + this.options = { + backgroundColor: 0xf0f0f0, + gridSize: cm(10000), // 100米 + gridDivisions: 100, + showGrid: true, + showAxes: false, + mode: 'overlook', + enableShadows: true, + ...options + } + + this.scene = null + this.camera = null + this.renderer = null + this.controls = null + this.animateId = null + + // 模式相关 + this.currentMode = this.options.mode + this.groundObjects = [] + + // 仓库数据 + this.warehouseData = null + this.shelfCells = new Map() // 货架格子映射 + this.areas = new Map() // 区域映射 + + // 回调函数 + this.onShelfCellClick = null + this.onAreaClick = null + this.onModeChange = null + + // 控制面板 + this.controlPanel = null + this.modeButtons = null + this.exitButtons = null + } + + async init() { + try { + if (!this.container) { + console.error('ThreeScene: 容器元素不存在') + return false + } + + // 确保容器有尺寸 + if (this.container.clientWidth === 0 || this.container.clientHeight === 0) { + console.warn('ThreeScene: 容器尺寸为0,等待一下再初始化') + await new Promise(resolve => setTimeout(resolve, 100)) + } + + // 1. 创建场景 + this.scene = new THREE.Scene() + this.scene.background = new THREE.Color(this.options.backgroundColor) + + // 2. 创建相机 + const width = this.container.clientWidth || 800 + const height = this.container.clientHeight || 600 + this.camera = new THREE.PerspectiveCamera(60, width / height, cm(1), cm(500000)) // 最大5公里 + + // 根据模式设置初始相机位置 - 厘米为单位 + if (this.currentMode === 'overlook') { + this.camera.position.set(cm(10000), cm(10000), cm(10000)) + this.camera.lookAt(0, 0, 0) + } else { + this.camera.position.set(0, cm(170), 0) // 1.7米高度 + } + + // 3. 创建渲染器 + this.renderer = new THREE.WebGLRenderer({ + antialias: true, + alpha: true + }) + this.renderer.setSize(width, height) + this.renderer.shadowMap.enabled = this.options.enableShadows + this.renderer.shadowMap.type = THREE.PCFSoftShadowMap + + // 清空容器并添加渲染器 + while (this.container.firstChild) { + this.container.removeChild(this.container.firstChild) + } + this.container.appendChild(this.renderer.domElement) + + console.log('Three.js 渲染器创建成功,模式:', this.currentMode) + + // 4. 根据模式创建控制器 + await this.createControls() + + // 5. 添加光源 + this.addLights() + + // 6. 添加网格和坐标轴 + if (this.options.showGrid) { + this.addGrid() + } + + if (this.options.showAxes) { + this.addAxes() + } + + // 7. 创建控制面板 + this.createControlPanel() + + // 8. 添加窗口大小监听 + window.addEventListener('resize', this.onWindowResize.bind(this)) + + // 9. 开始动画 + this.animate() + + console.log('Three.js 场景初始化完成') + return true + + } catch (error) { + console.error('Three.js 初始化失败:', error) + return false + } + } + + async createControls() { + // 清理旧的控制器 + if (this.controls) { + this.controls.dispose() + this.controls = null + } + + if (this.currentMode === 'overlook') { + // 俯瞰模式 + try { + this.controls = new OverlookControls(this.camera, this.renderer.domElement, this.scene, { + boundaryMinX: -20000, // 地图左边界 + boundaryMaxX: 20000, // 地图右边界 + boundaryMinZ: -20000, // 地图上边界 + boundaryMaxZ: 20000 // 地图下边界 + }) + } catch (error) { + console.warn('OrbitControls 创建失败,使用备用方案:', error) + this.controls = new OverlookControls(this.camera, this.renderer.domElement, this.scene) + } + + // 设置区域点击回调 + if (this.controls.setOnAreaClick) { + this.controls.setOnAreaClick((areaId, areaName, areaType) => { + if (this.onAreaClick) { + this.onAreaClick(areaId, areaName, areaType) + } + }) + } + } else { + // 漫游模式 + this.controls = new RoamControls(this.camera, this.renderer.domElement, this.scene) + console.log('使用 RoamControls 漫游模式') + + // 设置货架格子点击回调 + if (this.controls.setOnObjectClick) { + this.controls.setOnObjectClick((shelfCellId, row, column, level) => { + if (this.onShelfCellClick) { + this.onShelfCellClick(shelfCellId, row, column, level) + } + }) + } + + // 设置退出漫游回调 + if (this.controls.setOnExitRoam) { + this.controls.setOnExitRoam(() => { + this.switchMode('overlook') + }) + } + } + } + + // 创建控制面板 + createControlPanel() { + // 创建控制面板容器 + this.controlPanel = document.createElement('div') + this.controlPanel.style.position = 'absolute' + this.controlPanel.style.top = '10px' + this.controlPanel.style.right = '10px' + this.controlPanel.style.zIndex = '1000' + this.controlPanel.style.display = 'flex' + this.controlPanel.style.flexDirection = 'column' + this.controlPanel.style.gap = '10px' + + // 模式切换按钮 + this.modeButtons = document.createElement('div') + this.modeButtons.style.display = 'flex' + this.modeButtons.style.gap = '5px' + + const overlookBtn = document.createElement('button') + overlookBtn.textContent = '俯瞰模式' + overlookBtn.style.padding = '5px 10px' + overlookBtn.style.backgroundColor = this.currentMode === 'overlook' ? '#409EFF' : '#fff' + overlookBtn.style.color = this.currentMode === 'overlook' ? '#fff' : '#333' + overlookBtn.style.border = '1px solid #dcdfe6' + overlookBtn.style.borderRadius = '4px' + overlookBtn.style.cursor = 'pointer' + overlookBtn.onclick = () => this.switchMode('overlook') + + const roamBtn = document.createElement('button') + roamBtn.textContent = '漫游模式' + roamBtn.style.padding = '5px 10px' + roamBtn.style.backgroundColor = this.currentMode === 'roam' ? '#409EFF' : '#fff' + roamBtn.style.color = this.currentMode === 'roam' ? '#fff' : '#333' + roamBtn.style.border = '1px solid #dcdfe6' + roamBtn.style.borderRadius = '4px' + roamBtn.style.cursor = 'pointer' + roamBtn.onclick = () => this.switchMode('roam') + + this.modeButtons.appendChild(overlookBtn) + this.modeButtons.appendChild(roamBtn) + + // 退出按钮(只在漫游模式显示) + this.exitButtons = document.createElement('div') + const exitRoamBtn = document.createElement('button') + exitRoamBtn.textContent = '退出漫游 (ESC)' + exitRoamBtn.style.padding = '5px 10px' + exitRoamBtn.style.backgroundColor = '#F56C6C' + exitRoamBtn.style.color = '#fff' + exitRoamBtn.style.border = 'none' + exitRoamBtn.style.borderRadius = '4px' + exitRoamBtn.style.cursor = 'pointer' + exitRoamBtn.onclick = () => this.switchMode('overlook') + this.exitButtons.appendChild(exitRoamBtn) + this.exitButtons.style.display = this.currentMode === 'roam' ? 'block' : 'none' + + // 重置视角按钮 + const resetBtn = document.createElement('button') + resetBtn.textContent = '重置视角' + resetBtn.style.padding = '5px 10px' + resetBtn.style.backgroundColor = '#fff' + resetBtn.style.color = '#333' + resetBtn.style.border = '1px solid #dcdfe6' + resetBtn.style.borderRadius = '4px' + resetBtn.style.cursor = 'pointer' + resetBtn.onclick = () => this.resetCamera() + + this.controlPanel.appendChild(this.modeButtons) + this.controlPanel.appendChild(this.exitButtons) + this.controlPanel.appendChild(resetBtn) + + this.container.appendChild(this.controlPanel) + } + + // 切换模式 + async switchMode(mode) { + if (mode === this.currentMode) return + + const oldMode = this.currentMode + this.currentMode = mode + + console.log(`切换模式: ${oldMode} -> ${mode}`) + + // 保存当前相机状态 + const oldPosition = this.camera.position.clone() + const oldRotation = this.camera.rotation.clone() + + // 创建新控制器 + await this.createControls() + + // 根据不同模式调整相机 + if (mode === 'overlook') { + // 从漫游切换到俯瞰 + if (oldMode === 'roam') { + this.camera.position.set(oldPosition.x, oldPosition.y + cm(5000), oldPosition.z) + this.camera.lookAt(oldPosition.x, 0, oldPosition.z) + } + } else { + // 从俯瞰切换到漫游 + if (oldMode === 'overlook') { + this.camera.position.set(oldPosition.x, cm(170), oldPosition.z) + this.camera.rotation.set(0, oldRotation.y, 0) + } + } + + // 更新控制面板 + this.updateControlPanel() + + // 通知UI模式已切换 + if (this.onModeChange) { + this.onModeChange(mode, oldMode) + } + } + + // 更新控制面板 + updateControlPanel() { + if (this.modeButtons && this.exitButtons) { + const buttons = this.modeButtons.querySelectorAll('button') + buttons[0].style.backgroundColor = this.currentMode === 'overlook' ? '#409EFF' : '#fff' + buttons[0].style.color = this.currentMode === 'overlook' ? '#fff' : '#333' + buttons[1].style.backgroundColor = this.currentMode === 'roam' ? '#409EFF' : '#fff' + buttons[1].style.color = this.currentMode === 'roam' ? '#fff' : '#333' + + this.exitButtons.style.display = this.currentMode === 'roam' ? 'block' : 'none' + } + } + + // 加载仓库数据并生成场景 + loadWarehouseData(data) { + this.warehouseData = data + + // 清空现有场景 + while(this.scene.children.length > 0) { + const object = this.scene.children[0] + if (object.geometry) object.geometry.dispose() + if (object.material) { + if (Array.isArray(object.material)) { + object.material.forEach(material => material.dispose()) + } else { + object.material.dispose() + } + } + this.scene.remove(object) + } + + // 清空映射 + this.shelfCells.clear() + this.areas.clear() + + // 重新添加基础元素 + this.addLights() + if (this.options.showGrid) { + this.addGrid() + } + if (this.options.showAxes) { + this.addAxes() + } + + // 生成仓库场景 + this.generateWarehouseScene() + } + + // 生成仓库场景 + generateWarehouseScene() { + if (!this.warehouseData) return + + const { areas = [] } = this.warehouseData + + // 创建地面 + this.createGround() + + // 创建各个区域 + areas.forEach(area => { + this.createArea(area) + }) + } + + // 创建地面 + createGround() { + const groundGeometry = new THREE.PlaneGeometry(cm(200000), cm(200000)) + const groundMaterial = new THREE.MeshPhongMaterial({ + color: 0x78909C, + side: THREE.DoubleSide + }) + const ground = new THREE.Mesh(groundGeometry, groundMaterial) + ground.rotation.x = Math.PI / 2 + ground.position.y = -cm(10) + ground.receiveShadow = true + ground.name = 'ground-main' + this.addObject(ground) + + this.setGroundHeight(0) + } + + // 创建区域 + createArea(area) { + const { id, name, type, length, width, height, angle, distance, doors = [], shelves = [] } = area + + // 计算区域位置(根据角度和距离)- 所有尺寸都是厘米 + const rad = THREE.MathUtils.degToRad(angle) + const position = new THREE.Vector3( + Math.cos(rad) * distance, + 0, + Math.sin(rad) * distance + ) + + // 创建区域建筑物 + const buildingGroup = new THREE.Group() + buildingGroup.position.copy(position) + buildingGroup.rotation.y = rad + + console.log(`创建区域 ${name}:`, { + 位置: `(${position.x.toFixed(0)}, ${position.y.toFixed(0)}, ${position.z.toFixed(0)})cm`, + 尺寸: `${length}cm x ${width}cm x ${height}cm`, + 角度: `${angle}°`, + 距离: `${distance}cm` + }) + + // 1. 创建墙壁 + this.createWalls(buildingGroup, length, width, height, doors, type) + + // 2. 创建门标记 + doors.forEach(door => { + this.createDoorMarker(buildingGroup, door, length, width, height) + }) + + // 3. 创建货架(如果是库区) + if (type === 'storage' && shelves.length > 0) { + this.createShelves(buildingGroup, shelves, length, width, height) + } + + // 4. 创建区域边界(用于点击检测) + const boundary = this.createAreaBoundary(buildingGroup, length, width, id, name, type) + + // 添加到场景 + this.scene.add(buildingGroup) + + // 保存区域引用 + this.areas.set(id, { + group: buildingGroup, + position: position.clone(), + rotation: rad, + length, + width, + height, + boundary + }) + + // 添加到控制器(俯瞰模式可以点击进入) + if (this.controls && this.controls.addAreaBoundary) { + this.controls.addAreaBoundary(boundary, id, name, type) + } + + // 添加到碰撞检测(漫游模式) + if (this.controls && this.controls.addCollisionObject) { + this.controls.addCollisionObject(buildingGroup) + } + } + + // 创建墙壁 + createWalls(group, length, width, height, doors, type) { + const wallThickness = cm(30) + const wallHeight = height + + // 墙壁材质 + const wallMaterial = new THREE.MeshPhongMaterial({ + color: type === 'storage' ? 0x8D6E63 : + type === 'office' ? 0x4FC3F7 : + type === 'functional' ? 0x81C784 : 0xBDBDBD, + side: THREE.FrontSide + }) + + // 创建四面墙 + const walls = [] + + // 前墙(有门) + const frontWallGeometry = new THREE.BoxGeometry(length, wallHeight, wallThickness) + const frontWall = new THREE.Mesh(frontWallGeometry, wallMaterial) + frontWall.position.set(0, wallHeight/2, width/2) + frontWall.castShadow = true + frontWall.receiveShadow = true + group.add(frontWall) + walls.push(frontWall) + + // 后墙 + const backWallGeometry = new THREE.BoxGeometry(length, wallHeight, wallThickness) + const backWall = new THREE.Mesh(backWallGeometry, wallMaterial) + backWall.position.set(0, wallHeight/2, -width/2) + backWall.castShadow = true + backWall.receiveShadow = true + group.add(backWall) + walls.push(backWall) + + // 左墙 + const leftWallGeometry = new THREE.BoxGeometry(wallThickness, wallHeight, width) + const leftWall = new THREE.Mesh(leftWallGeometry, wallMaterial) + leftWall.position.set(-length/2, wallHeight/2, 0) + leftWall.castShadow = true + leftWall.receiveShadow = true + group.add(leftWall) + walls.push(leftWall) + + // 右墙 + const rightWallGeometry = new THREE.BoxGeometry(wallThickness, wallHeight, width) + const rightWall = new THREE.Mesh(rightWallGeometry, wallMaterial) + rightWall.position.set(length/2, wallHeight/2, 0) + rightWall.castShadow = true + rightWall.receiveShadow = true + group.add(rightWall) + walls.push(rightWall) + + return walls + } + + // 创建门标记 + createDoorMarker(group, door, length, width, height) { + const { position: doorPos, width: doorWidth = cm(100), height: doorHeight = cm(250) } = door + const doorGroup = new THREE.Group() + + // 门框 + const doorFrameMaterial = new THREE.MeshPhongMaterial({ color: 0x5D4037 }) + const doorFrameGeometry = new THREE.BoxGeometry(doorWidth, doorHeight, cm(20)) + const doorFrame = new THREE.Mesh(doorFrameGeometry, doorFrameMaterial) + doorFrame.position.y = doorHeight/2 + doorGroup.add(doorFrame) + + // 门板 + const doorMaterial = new THREE.MeshPhongMaterial({ color: 0x795548 }) + const doorGeometry = new THREE.BoxGeometry(doorWidth-cm(20), doorHeight-cm(20), cm(5)) + const doorPanel = new THREE.Mesh(doorGeometry, doorMaterial) + doorPanel.position.y = doorHeight/2 + doorGroup.add(doorPanel) + + // 门把手 + const handleGeometry = new THREE.CylinderGeometry(cm(2), cm(2), cm(10)) + const handleMaterial = new THREE.MeshPhongMaterial({ color: 0x212121 }) + const handle = new THREE.Mesh(handleGeometry, handleMaterial) + handle.position.set(doorWidth/2 - cm(5), doorHeight/2, cm(3)) + handle.rotation.z = Math.PI/2 + doorGroup.add(handle) + + // 根据位置放置门 + // doorPos: 'front', 'back', 'left', 'right' + switch(doorPos) { + case 'front': + doorGroup.position.set(0, 0, width/2) + break + case 'back': + doorGroup.position.set(0, 0, -width/2) + break + case 'left': + doorGroup.position.set(-length/2, 0, 0) + doorGroup.rotation.y = Math.PI/2 + break + case 'right': + doorGroup.position.set(length/2, 0, 0) + doorGroup.rotation.y = Math.PI/2 + break + } + + doorGroup.castShadow = true + group.add(doorGroup) + + return doorGroup + } + + // 创建货架系统 + createShelves(group, shelves, areaLength, areaWidth, areaHeight) { + shelves.forEach((shelf, shelfIndex) => { + const { id, rows, columns, levels, rowLengths, direction, position } = shelf + + // 计算货架总尺寸 - 所有尺寸都是厘米 + const totalLength = rowLengths.reduce((sum, len) => sum + len, 0) + const shelfWidth = cm(100) // 货架深度100厘米 + const levelHeight = cm(150) // 每层高度150厘米 + const shelfHeight = levels * levelHeight + + // 创建货架组 + const shelfGroup = new THREE.Group() + shelfGroup.name = `shelf-${id}` + + // 计算货架在区域内的位置 + const shelfPos = this.calculateShelfPosition(position, areaLength, areaWidth, totalLength, shelfWidth) + shelfGroup.position.set(shelfPos.x, 0, shelfPos.z) + + // 设置货架方向 + if (direction === 'vertical') { + shelfGroup.rotation.y = Math.PI / 2 + } + + console.log(`创建货架 ${id}:`, { + 位置: `(${shelfPos.x.toFixed(0)}, ${shelfPos.z.toFixed(0)})cm`, + 总长度: `${totalLength}cm`, + 宽度: `${shelfWidth}cm`, + 高度: `${shelfHeight}cm`, + 行列层: `${rows}排${columns}列${levels}层` + }) + + // 创建货架结构 + this.createShelfStructure(shelfGroup, { + rows, + columns, + levels, + rowLengths, + direction, + totalLength, + shelfWidth, + shelfHeight, + levelHeight, + shelfId: id + }) + + // 添加到碰撞检测 + if (this.controls && this.controls.addCollisionObject) { + this.controls.addCollisionObject(shelfGroup) + } + + group.add(shelfGroup) + }) + } + + // 计算货架位置 + calculateShelfPosition(position, areaLength, areaWidth, shelfLength, shelfWidth) { + const { x: xPos, z: zPos } = position + + let x = 0 + let z = 0 + + // 计算X轴位置 + switch(xPos) { + case 'left': + x = -areaLength/2 + shelfLength/2 + break + case 'right': + x = areaLength/2 - shelfLength/2 + break + case 'center': + default: + x = 0 + break + } + + // 计算Z轴位置 + switch(zPos) { + case 'front': + z = areaWidth/2 - shelfWidth/2 + break + case 'back': + z = -areaWidth/2 + shelfWidth/2 + break + case 'center': + default: + z = 0 + break + } + + // 添加一点偏移避免紧贴墙壁 + const wallOffset = cm(50) + if (xPos === 'left') x += wallOffset + if (xPos === 'right') x -= wallOffset + if (zPos === 'front') z -= wallOffset + if (zPos === 'back') z += wallOffset + + return new THREE.Vector3(x, 0, z) + } + + // 创建货架结构 + createShelfStructure(group, config) { + const { + rows, columns, levels, rowLengths, + totalLength, shelfWidth, shelfHeight, levelHeight, shelfId + } = config + + // 验证参数 + if (rowLengths.length !== rows) { + console.warn(`货架 ${shelfId}: rowLengths数量(${rowLengths.length})与rows(${rows})不匹配`) + return + } + + // 立柱材质和颜色 + const columnMaterial = new THREE.MeshPhongMaterial({ + color: 0x37474F, + shininess: 30 + }) + const beamMaterial = new THREE.MeshPhongMaterial({ + color: 0x455A64, + shininess: 20 + }) + const shelfMaterial = new THREE.MeshPhongMaterial({ + color: 0x607D8B, + transparent: true, + opacity: 0.7, + shininess: 10 + }) + + // 创建立柱 - 厘米为单位 + const columnThickness = cm(10) + const beamThickness = cm(5) + + // 计算每排的起始位置 + let currentX = -totalLength / 2 + + // 创建每排的立柱 + for (let row = 0; row <= rows; row++) { + if (row > 0) { + currentX += rowLengths[row-1] + } + + // 每排需要2根立柱(前后) + for (let side = 0; side < 2; side++) { + const columnZ = side === 0 ? -shelfWidth/2 + columnThickness/2 : shelfWidth/2 - columnThickness/2 + + // 创建立柱 + const columnGeometry = new THREE.BoxGeometry( + columnThickness, + shelfHeight, + columnThickness + ) + const column = new THREE.Mesh(columnGeometry, columnMaterial) + column.position.set(currentX, shelfHeight/2, columnZ) + column.castShadow = true + column.receiveShadow = true + column.name = `column-${shelfId}-R${row}-${side===0?'F':'B'}` + group.add(column) + } + } + + // 重置当前X位置 + currentX = -totalLength / 2 + + // 创建水平横梁(连接前后立柱) + for (let row = 0; row <= rows; row++) { + const rowX = row === 0 ? -totalLength/2 : (-totalLength/2 + rowLengths.slice(0, row).reduce((a,b)=>a+b,0)) + + for (let level = 0; level <= levels; level++) { + const y = level * levelHeight + + // 连接前后立柱的横梁 + const beamLength = shelfWidth - columnThickness + const beamGeometry = new THREE.BoxGeometry( + beamThickness, + beamThickness, + beamLength + ) + const beam = new THREE.Mesh(beamGeometry, beamMaterial) + beam.position.set(rowX, y, 0) + beam.castShadow = true + beam.receiveShadow = true + beam.name = `beam-horizontal-${shelfId}-R${row}-L${level}` + group.add(beam) + } + } + + // 创建垂直横梁(连接同一侧的立柱) + for (let side = 0; side < 2; side++) { + const sideZ = side === 0 ? -shelfWidth/2 + columnThickness/2 : shelfWidth/2 - columnThickness/2 + currentX = -totalLength/2 + + for (let row = 0; row < rows; row++) { + const beamLength = rowLengths[row] + + for (let level = 0; level <= levels; level++) { + const y = level * levelHeight + + const beamGeometry = new THREE.BoxGeometry( + beamLength, + beamThickness, + beamThickness + ) + const beam = new THREE.Mesh(beamGeometry, beamMaterial) + beam.position.set(currentX + beamLength/2, y, sideZ) + beam.castShadow = true + beam.receiveShadow = true + beam.name = `beam-vertical-${shelfId}-S${side}-R${row}-L${level}` + group.add(beam) + } + + currentX += rowLengths[row] + } + } + + // 创建货架格子和库位 + this.createShelfCells(group, config) + } + + // 创建货架格子和库位 + createShelfCells(group, config) { + const { + rows, columns, levels, rowLengths, + totalLength, shelfWidth, levelHeight, shelfId + } = config + + let currentX = -totalLength / 2 + + for (let row = 0; row < rows; row++) { + const rowLength = rowLengths[row] + const cellWidth = rowLength / columns // 每列宽度 + + for (let col = 0; col < columns; col++) { + const colX = currentX + (col + 0.5) * cellWidth + + for (let level = 0; level < levels; level++) { + const y = level * levelHeight + levelHeight/2 + + // 计算格子位置(前后都有格子) + for (let side = 0; side < 2; side++) { + const sideZ = side === 0 ? -shelfWidth/3 : shelfWidth/3 + + // 创建格子 + const cellGeometry = new THREE.BoxGeometry( + cellWidth - cm(5), // 减去一点间隙 + levelHeight - cm(10), // 格子高度 + cm(80) // 格子深度 + ) + const cellMaterial = new THREE.MeshPhongMaterial({ + color: 0x90A4AE, + transparent: true, + opacity: 0.7, + side: THREE.DoubleSide + }) + + const cellMesh = new THREE.Mesh(cellGeometry, cellMaterial) + + cellMesh.position.set(colX, y, sideZ) + cellMesh.castShadow = true + cellMesh.receiveShadow = true + + // 生成库位编码 + const cellId = `${shelfId}-R${row+1}C${col+1}L${level+1}-${side+1}` + const cellCode = `${shelfId}-${row+1}-${col+1}-${level+1}-${side+1}` + + // 添加用户数据 + cellMesh.userData = { + shelfCellId: cellId, + shelfCode: cellCode, + shelfRow: row + 1, + shelfColumn: col + 1, + shelfLevel: level + 1, + cellIndex: side + 1, + isClickable: true + } + + // 创建库位编码标签 + // this.createShelfLabel(cellMesh, cellCode, cellWidth) + + // 添加到组 + group.add(cellMesh) + + // 保存到映射 + this.shelfCells.set(cellId, { + mesh: cellMesh, + position: new THREE.Vector3(colX, y, sideZ), + group: group, + row: row + 1, + column: col + 1, + level: level + 1, + cellIndex: side + 1 + }) + + // 添加到控制器的可点击对象列表 + if (this.controls && this.controls.addClickableObject) { + this.controls.addClickableObject( + cellMesh, + cellId, + row + 1, + col + 1, + level + 1 + ) + } + } + } + } + + currentX += rowLength + } + } + + // 创建库位编码标签 + createShelfLabel(cellMesh, code, width) { + // 创建Canvas绘制文本 + const canvas = document.createElement('canvas') + const context = canvas.getContext('2d') + canvas.width = 256 + canvas.height = 128 + + // 绘制背景 + context.fillStyle = 'rgba(255, 255, 255, 0.8)' + context.fillRect(0, 0, canvas.width, canvas.height) + + // 绘制文本 + context.fillStyle = '#333' + context.font = 'bold 24px Arial' + context.textAlign = 'center' + context.textBaseline = 'middle' + context.fillText(code, canvas.width/2, canvas.height/2) + + // 创建纹理 + const texture = new THREE.CanvasTexture(canvas) + const spriteMaterial = new THREE.SpriteMaterial({ + map: texture, + transparent: true + }) + const sprite = new THREE.Sprite(spriteMaterial) + + // 设置精灵大小 + const scale = width * 0.5 + sprite.scale.set(scale, scale * 0.5, 1) + + // 放置在格子前面 + sprite.position.copy(cellMesh.position) + sprite.position.z += cm(45) // 稍微突出 + + // 添加到格子的父对象 + cellMesh.parent.add(sprite) + + // 保存引用 + cellMesh.userData.labelSprite = sprite + } + + // 创建区域边界(用于点击检测) + createAreaBoundary(group, length, width, areaId, areaName, areaType) { + // 创建一个不可见的平面用于点击检测 + const boundaryGeometry = new THREE.PlaneGeometry(length, width) + const boundaryMaterial = new THREE.MeshBasicMaterial({ + color: 0xffffff, + transparent: true, + opacity: 0, + side: THREE.DoubleSide + }) + const boundary = new THREE.Mesh(boundaryGeometry, boundaryMaterial) + boundary.position.y = cm(10) + boundary.rotation.x = -Math.PI/2 + + // 添加用户数据 + boundary.userData = { + isAreaBoundary: true, + areaId, + areaName, + areaType + } + + group.add(boundary) + return boundary + } + + // 移动到指定库位 + moveToShelfCell(shelfCellId) { + const cellData = this.shelfCells.get(shelfCellId) + if (!cellData) { + console.warn(`库位 ${shelfCellId} 不存在`) + return false + } + + // 切换到漫游模式 + this.switchMode('roam') + + // 计算最佳观察位置(最近的过道地面上) + const cellPos = cellData.position.clone() + const groupPos = cellData.group.position.clone() + const worldPos = cellPos.add(groupPos) + + // 根据货架方向确定观察位置 + const isHorizontal = Math.abs(cellData.group.rotation.y) < 0.1 + + let observerPos + if (isHorizontal) { + // 货架水平放置,在Z轴方向观察 + observerPos = new THREE.Vector3( + worldPos.x, + cm(170), // 人眼高度170cm + worldPos.z > 0 ? worldPos.z + cm(200) : worldPos.z - cm(200) + ) + } else { + // 货架垂直放置,在X轴方向观察 + observerPos = new THREE.Vector3( + worldPos.x > 0 ? worldPos.x + cm(200) : worldPos.x - cm(200), + cm(170), + worldPos.z + ) + } + + // 设置相机位置和朝向 + this.camera.position.copy(observerPos) + this.camera.lookAt(worldPos) + + // 更新漫游控制器的角度 + if (this.controls && this.currentMode === 'roam') { + const lookDirection = new THREE.Vector3() + this.camera.getWorldDirection(lookDirection) + this.controls.yaw = Math.atan2(lookDirection.x, lookDirection.z) + this.controls.pitch = Math.asin(lookDirection.y) + this.controls.updateCameraRotation() + } + + return true + } + + // 进入指定区域 + enterArea(areaId) { + const areaData = this.areas.get(areaId) + if (!areaData) { + console.warn(`区域 ${areaId} 不存在`) + return false + } + + // 切换到漫游模式 + this.switchMode('roam') + + // 移动到区域中心 + const centerPos = areaData.position.clone() + centerPos.y = cm(170) // 人眼高度 + + this.camera.position.copy(centerPos) + this.camera.rotation.set(0, areaData.rotation, 0) + + // 更新漫游控制器的角度 + if (this.controls && this.currentMode === 'roam') { + this.controls.yaw = areaData.rotation + this.controls.pitch = 0 + this.controls.updateCameraRotation() + } + + return true + } + + addLights() { + // 环境光 + const ambientLight = new THREE.AmbientLight(0xffffff, 0.6) + this.scene.add(ambientLight) + + // 方向光 + const directionalLight = new THREE.DirectionalLight(0xffffff, 0.8) + directionalLight.position.set(cm(5000), cm(10000), cm(5000)) + directionalLight.castShadow = true + directionalLight.shadow.mapSize.width = 2048 + directionalLight.shadow.mapSize.height = 2048 + directionalLight.shadow.camera.near = cm(50) + directionalLight.shadow.camera.far = cm(50000) + directionalLight.shadow.camera.left = cm(-10000) + directionalLight.shadow.camera.right = cm(10000) + directionalLight.shadow.camera.top = cm(10000) + directionalLight.shadow.camera.bottom = cm(-10000) + this.scene.add(directionalLight) + + // 半球光 + const hemisphereLight = new THREE.HemisphereLight(0xffffff, 0x444444, 0.3) + this.scene.add(hemisphereLight) + + // 漫游模式下添加手电筒效果 + if (this.currentMode === 'roam') { + const flashlight = new THREE.SpotLight(0xffffff, 1) + flashlight.angle = Math.PI / 6 + flashlight.penumbra = 0.2 + flashlight.decay = 1 + flashlight.distance = cm(3000) + this.camera.add(flashlight) + flashlight.position.set(0, 0, 0) + flashlight.target.position.set(0, 0, -cm(100)) + this.camera.add(flashlight.target) + } + } + + addGrid() { + const gridHelper = new THREE.GridHelper( + this.options.gridSize, + this.options.gridDivisions, + 0x888888, + 0xcccccc + ) + gridHelper.position.y = -cm(10) + this.scene.add(gridHelper) + this.addGroundObject(gridHelper) + } + + addAxes() { + const axesHelper = new THREE.AxesHelper(cm(2000)) + this.scene.add(axesHelper) + } + + onWindowResize() { + if (!this.camera || !this.renderer || !this.container) return + + const width = this.container.clientWidth + const height = this.container.clientHeight + + if (width === 0 || height === 0) return + + this.camera.aspect = width / height + this.camera.updateProjectionMatrix() + this.renderer.setSize(width, height) + } + + animate() { + this.animateId = requestAnimationFrame(this.animate.bind(this)) + + // 更新控制器 + if (this.controls && this.controls.update) { + this.controls.update() + } + + // 渲染场景 + if (this.renderer && this.scene && this.camera) { + this.renderer.render(this.scene, this.camera) + } + } + + // 其他方法保持不变... + addGroundObject(object) { + this.groundObjects.push(object) + if (this.controls && this.controls.addGroundObject) { + this.controls.addGroundObject(object) + } + } + + addObject(object) { + if (this.scene) { + this.scene.add(object) + if (object.name && object.name.includes('ground')) { + this.addGroundObject(object) + } + } + } + + dispose() { + if (this.animateId) { + cancelAnimationFrame(this.animateId) + this.animateId = null + } + + window.removeEventListener('resize', this.onWindowResize.bind(this)) + + if (this.controlPanel && this.container.contains(this.controlPanel)) { + this.container.removeChild(this.controlPanel) + } + + if (this.controls && this.controls.dispose) { + this.controls.dispose() + this.controls = null + } + + if (this.scene) { + while(this.scene.children.length > 0) { + const object = this.scene.children[0] + if (object.geometry) object.geometry.dispose() + if (object.material) { + if (Array.isArray(object.material)) { + object.material.forEach(material => material.dispose()) + } else { + object.material.dispose() + } + } + this.scene.remove(object) + } + this.scene = null + } + + if (this.renderer && this.container) { + if (this.container.contains(this.renderer.domElement)) { + this.container.removeChild(this.renderer.domElement) + } + this.renderer.dispose() + this.renderer.forceContextLoss() + this.renderer = null + } + + this.camera = null + this.shelfCells.clear() + this.areas.clear() + } + + resetCamera() { + if (this.camera) { + if (this.currentMode === 'overlook') { + this.camera.position.set(cm(10000), cm(10000), cm(10000)) + this.camera.lookAt(0, 0, 0) + } else { + this.camera.position.set(0, cm(170), 0) + this.camera.rotation.set(0, 0, 0) + } + + if (this.controls && this.controls.target) { + this.controls.target.set(0, 0, 0) + } + } + } + + // 设置回调函数 + setOnShelfCellClick(callback) { + this.onShelfCellClick = callback + } + + setOnAreaClick(callback) { + this.onAreaClick = callback + } + + setOnModeChange(callback) { + this.onModeChange = callback + } + + setGroundHeight(height) { + if (this.controls && this.controls.setGroundHeight) { + this.controls.setGroundHeight(height) + } + } + + getCurrentMode() { + return this.currentMode + } + + getScreenshot() { + if (!this.renderer) return '' + return this.renderer.domElement.toDataURL('image/png') + } + + setBackgroundColor(color) { + if (this.scene) { + this.scene.background = new THREE.Color(color) + } + } + + removeObject(object) { + if (this.scene && this.scene.children.includes(object)) { + this.scene.remove(object) + const index = this.groundObjects.indexOf(object) + if (index > -1) { + this.groundObjects.splice(index, 1) + } + } + } +} diff --git a/src/utils/threeUtils.js b/src/utils/threeUtils.js new file mode 100644 index 00000000..13ccb6e8 --- /dev/null +++ b/src/utils/threeUtils.js @@ -0,0 +1,390 @@ + +import * as THREE from 'three' + +// 使用 Three.js 自带的 OrbitControls +let OrbitControls = null + +// 异步加载 OrbitControls +export const loadOrbitControls = async () => { + if (typeof window === 'undefined') return null + + try { + const module = await import('three/examples/jsm/controls/OrbitControls.js') + OrbitControls = module.OrbitControls + console.log('OrbitControls 加载成功') + return OrbitControls + } catch (error) { + console.warn('无法加载 OrbitControls:', error.message) + return null + } +} + +// 辅助函数:厘米转Three.js单位(1单位=1cm) +const cm = (value) => value// Three.js中直接使用厘米为单位 + +// 俯瞰模式控制器(增强版) + + +// 漫游模式控制器(第一人称)- 增强版 +export class RoamControls { + constructor(camera, domElement, scene) { + this.camera = camera + this.domElement = domElement + this.scene = scene + this.enabled = true + + // 漫游参数 - 厘米为单位 + this.moveSpeed = cm(30)// 每秒移动30厘米 + this.rotateSpeed = 0.002 + this.jumpForce = cm(50) + this.gravity = cm(2) + + // 移动状态 + this.moveForward = false + this.moveBackward = false + this.moveLeft = false + this.moveRight = false + this.moveUp = false + this.moveDown = false + + // 视角控制 + this.isMouseDown = false + this.lastMouseX = 0 + this.lastMouseY = 0 + this.yaw = 0 + this.pitch = 0 + + // 物理参数 + this.velocity = new THREE.Vector3() + this.onGround = true + this.groundHeight = 0 + + // 碰撞检测 + this.collisionObjects = [] + this.raycaster = new THREE.Raycaster() + this.mouse = new THREE.Vector2() + + // 点击检测 + this.clickableObjects = []// 可点击对象(货架格子) + this.onObjectClick = null// 对象点击回调 + + // 控制面板 + this.showUI = true + this.uiElements = {} + + this.initControls() + this.updateCameraRotation() + } + + initControls() { + const canvas = this.domElement + + // 鼠标控制 + const onMouseDown = (e) => { + this.isMouseDown = true + this.lastMouseX = e.clientX + this.lastMouseY = e.clientY + canvas.style.cursor = 'none' + + // 请求指针锁定 + if (canvas.requestPointerLock) { + canvas.requestPointerLock() + } else if (canvas.mozRequestPointerLock) { + canvas.mozRequestPointerLock() + } else if (canvas.webkitRequestPointerLock) { + canvas.webkitRequestPointerLock() + } + } + + const onMouseMove = (e) => { + if (!this.isMouseDown || !this.enabled) return + + const movementX = e.movementX || e.mozMovementX || e.webkitMovementX || 0 + const movementY = e.movementY || e.mozMovementY || e.webkitMovementY || 0 + + // 更新视角 + this.yaw -= movementX * this.rotateSpeed + this.pitch -= movementY * this.rotateSpeed + + // 限制俯仰角度 + this.pitch = Math.max(-Math.PI/2, Math.min(Math.PI/2, this.pitch)) + + this.updateCameraRotation() + } + + const onMouseUp = (e) => { + this.isMouseDown = false + canvas.style.cursor = 'grab' + + // 退出指针锁定 + if (document.exitPointerLock) { + document.exitPointerLock() + } else if (document.mozExitPointerLock) { + document.mozExitPointerLock() + } else if (document.webkitExitPointerLock) { + document.webkitExitPointerLock() + } + + // 检测点击对象 + if (this.clickableObjects.length > 0 && this.onObjectClick) { + const rect = canvas.getBoundingClientRect() + this.mouse.x = ((e.clientX - rect.left) / rect.width) * 2 - 1 + this.mouse.y = -((e.clientY - rect.top) / rect.height) * 2 + 1 + + this.raycaster.setFromCamera(this.mouse, this.camera) + const intersects = this.raycaster.intersectObjects(this.clickableObjects, true) + + if (intersects.length > 0) { + const object = intersects[0].object + let shelfCell = object + // 向上查找带有货架信息的父对象 + while (shelfCell && !shelfCell.userData.shelfCellId) { + shelfCell = shelfCell.parent + } + if (shelfCell && shelfCell.userData.shelfCellId) { + this.onObjectClick( + shelfCell.userData.shelfCellId, + shelfCell.userData.shelfRow, + shelfCell.userData.shelfColumn, + shelfCell.userData.shelfLevel + ) + } + } + } + } + + // 键盘控制 + const onKeyDown = (e) => { + switch(e.code){ + case 'KeyW': + case 'ArrowUp': + this.moveForward = true + break + case 'KeyS': + case 'ArrowDown': + this.moveBackward = true + break + case 'KeyA': + case 'ArrowLeft': + this.moveLeft = true + break + case 'KeyD': + case 'ArrowRight': + this.moveRight = true + break + case 'Space': + if (this.onGround) { + this.velocity.y = this.jumpForce + this.onGround = false + } + break + case 'ShiftLeft': + case 'ShiftRight': + this.moveDown = true + break + case 'Escape': + // ESC键返回俯瞰模式 + if (this.onExitRoam) { + this.onExitRoam() + } + break + } + } + + const onKeyUp = (e) => { + switch(e.code){ + case 'KeyW': + case 'ArrowUp': + this.moveForward = false + break + case 'KeyS': + case 'ArrowDown': + this.moveBackward = false + break + case 'KeyA': + case 'ArrowLeft': + this.moveLeft = false + break + case 'KeyD': + case 'ArrowRight': + this.moveRight = false + break + case 'ShiftLeft': + case 'ShiftRight': + this.moveDown = false + break + } + } + + // 防止右键菜单 + canvas.addEventListener('contextmenu', (e) => e.preventDefault()) + + canvas.addEventListener('mousedown', onMouseDown) + canvas.addEventListener('mousemove', onMouseMove) + canvas.addEventListener('mouseup', onMouseUp) + window.addEventListener('keydown', onKeyDown) + window.addEventListener('keyup', onKeyUp) + + // 退出指针锁定时的处理 + const onPointerLockChange = () => { + const pointerLockElement = + document.pointerLockElement || + document.mozPointerLockElement || + document.webkitPointerLockElement + + if (pointerLockElement !== canvas) { + this.isMouseDown = false + canvas.style.cursor = 'grab' + } + } + + document.addEventListener('pointerlockchange', onPointerLockChange) + document.addEventListener('mozpointerlockchange', onPointerLockChange) + document.addEventListener('webkitpointerlockchange', onPointerLockChange) + + // 保存事件处理器以便清理 + this.eventHandlers = { + onMouseDown, onMouseMove, onMouseUp, + onKeyDown, onKeyUp, + onPointerLockChange + } + } + + updateCameraRotation() { + this.camera.rotation.order = 'YXZ' + this.camera.rotation.y = this.yaw + this.camera.rotation.x = this.pitch + } + + update() { + if (!this.enabled) return + + // 计算移动方向 + const direction = new THREE.Vector3() + + if (this.moveForward) { + direction.z -= 1 + } + if (this.moveBackward) { + direction.z += 1 + } + if (this.moveLeft) { + direction.x -= 1 + } + if (this.moveRight) { + direction.x += 1 + } + + // 根据相机方向旋转移动向量 + direction.applyQuaternion(this.camera.quaternion) + direction.y = 0 + direction.normalize() + + // 垂直移动 + if (this.moveUp) { + direction.y += 1 + } + if (this.moveDown) { + direction.y -= 1 + } + + // 应用移动 + this.velocity.x = direction.x * this.moveSpeed + this.velocity.z = direction.z * this.moveSpeed + this.velocity.y = direction.y * this.moveSpeed + + // 应用重力(如果不在跳跃状态) + if (!this.onGround) { + this.velocity.y -= this.gravity + } + + // 碰撞检测 + const newPosition = this.camera.position.clone() + newPosition.x += this.velocity.x + newPosition.z += this.velocity.z + newPosition.y += this.velocity.y + + // 简单的边界检查 + let canMove = true + for (const obj of this.collisionObjects) { + if (obj.geometry.boundingBox) { + const box = obj.geometry.boundingBox.clone() + box.applyMatrix4(obj.matrixWorld) + + // 检查是否与物体碰撞 - 厘米为单位 + const playerBox = new THREE.Box3( + new THREE.Vector3(newPosition.x - cm(30), newPosition.y - cm(50), newPosition.z - cm(30)), + new THREE.Vector3(newPosition.x + cm(30), newPosition.y + cm(170), newPosition.z + cm(30)) + ) + + if (box.intersectsBox(playerBox)) { + canMove = false + break + } + } + } + + if (canMove) { + this.camera.position.copy(newPosition) + } + + // 限制在地面之上 - 厘米为单位 + if (this.camera.position.y < this.groundHeight + cm(170)) { + this.camera.position.y = this.groundHeight + cm(170) + this.onGround = true + this.velocity.y = 0 + } else { + this.onGround = false + } + } + + // 添加可点击对象(货架格子) + addClickableObject(object, shelfCellId, row, column, level) { + object.userData = { + shelfCellId, + shelfRow: row, + shelfColumn: column, + shelfLevel: level, + isClickable: true + } + this.clickableObjects.push(object) + } + + // 设置货架格子点击回调 + setOnObjectClick(callback) { + this.onObjectClick = callback + } + + // 设置退出漫游回调 + setOnExitRoam(callback) { + this.onExitRoam = callback + } + + addCollisionObject(object) { + this.collisionObjects.push(object) + } + + setGroundHeight(height) { + this.groundHeight = height + } + + dispose() { + const canvas = this.domElement + const handlers = this.eventHandlers + + if (canvas && handlers) { + canvas.removeEventListener('mousedown', handlers.onMouseDown) + canvas.removeEventListener('mousemove', handlers.onMouseMove) + canvas.removeEventListener('mouseup', handlers.onMouseUp) + canvas.removeEventListener('contextmenu', (e) => e.preventDefault()) + } + + window.removeEventListener('keydown', handlers.onKeyDown) + window.removeEventListener('keyup', handlers.onKeyUp) + + document.removeEventListener('pointerlockchange', handlers.onPointerLockChange) + document.removeEventListener('mozpointerlockchange', handlers.onPointerLockChange) + document.removeEventListener('webkitpointerlockchange', handlers.onPointerLockChange) + } +} + diff --git a/src/utils/validate.js b/src/utils/validate.js new file mode 100644 index 00000000..0556c779 --- /dev/null +++ b/src/utils/validate.js @@ -0,0 +1,19 @@ +/** + * Created by PanJiaChen on 16/11/18. + */ + +/** + * @param {string} path + * @returns {Boolean} + */ +export function isExternal(path) { + return /^(https?:|mailto:|tel:)/.test(path) +} + +/** + * @param {string} str + * @returns {Boolean} + */ +export function validUsername(str) { + return 1; +} diff --git a/src/utils/warehouseData.js b/src/utils/warehouseData.js new file mode 100644 index 00000000..57e87629 --- /dev/null +++ b/src/utils/warehouseData.js @@ -0,0 +1,698 @@ +// 基础颜色配置 +export const warehouseColors = { + // 区域颜色 + area: { + storage: '#4CAF50', // 存储区 - 绿色 + picking: '#2196F3', // 拣选区 - 蓝色 + packing: '#FF9800', // 包装区 - 橙色 + sorting: '#9C27B0', // 分拣区 - 紫色 + buffer: '#795548', // 缓冲区 - 棕色 + loading: '#607D8B', // 装卸区 - 灰色 + cold: '#00BCD4', // 冷链区 - 青色 + hazard: '#F44336' // 危化品区 - 红色 + }, + + // 货架颜色 + shelf: { + frame: '#795548', // 货架框架 - 棕色 + beam: '#8D6E63', // 横梁 - 浅棕色 + column: '#5D4037', // 立柱 - 深棕色 + divider: '#BDBDBD', // 隔板 - 灰色 + occupied: '#F44336', // 已占用 - 红色 + empty: '#4CAF50', // 空闲 - 绿色 + reserved: '#FFC107', // 预留 - 黄色 + warning: '#FF9800', // 警告 - 橙色 + block: '#757575' // 禁用 - 深灰 + }, + + // 建筑颜色 + building: { + wall: '#BDBDBD', // 墙壁 - 灰色 + floor: '#78909C', // 地面 - 蓝灰色 + roof: '#9E9E9E', // 屋顶 - 中灰色 + door: '#795548', // 门 - 棕色 + window: '#B3E5FC', // 窗户 - 浅蓝色 + column: '#616161', // 建筑立柱 - 深灰色 + railing: '#546E7A' // 护栏 - 深蓝灰色 + }, + + // 外部区域颜色 + external: { + office: '#673AB7', // 办公室 - 深紫色 + rest: '#4CAF50', // 休息区 - 绿色 + equipment: '#607D8B', // 设备区 - 灰色 + parking: '#795548', // 停车场 - 棕色 + charging: '#FF9800', // 充电区 - 橙色 + security: '#F44336', // 安防区 - 红色 + entrance: '#009688' // 出入口 - 青色 + } +} + +// 生成模拟的仓库数据 +export function generateWarehouseData() { + return { + warehouseId: 'WH-2024-001', + warehouseName: '智能仓储中心', + warehouseType: 'distribution', + warehouseSize: { + length: 200, // 长度(米) + width: 150, // 宽度(米) + height: 12 // 高度(米) + }, + areas: generateAreas(), + statistics: { + totalAreas: 0, + totalShelves: 0, + totalColumns: 0, + totalCells: 0, + totalRows: 0, + totalLevels: 0, + usageRate: 0, + capacity: { + max: 0, + used: 0, + available: 0 + } + }, + buildingInfo: { + walls: generateWalls(), + doors: generateDoors(), + windows: generateWindows(), + pillars: generatePillars() + }, + createdAt: '2024-01-01', + updatedAt: '2024-01-15' + } +} + +// 生成区域数据 +function generateAreas() { + const areas = [] + + // A区:重型存储区 + areas.push({ + id: 'area-A-001', + name: 'A区-重型存储', + type: 'storage', + position: { x: 0, y: 0, z: 0 }, + size: { + length: 80, // 长 + width: 60, // 宽 + height: 10 // 高 + }, + groundHeight: 0, + angle: 0, + color: warehouseColors.area.storage, + features: { + temperature: '常温', + humidity: '标准', + accessControl: true, + fireRating: 'A级', + lighting: 'LED照明', + ventilation: '自然通风' + }, + shelves: generateStorageShelves('A', 30, 7) // 30排,7列 + }) + + // B区:快速拣选区 + areas.push({ + id: 'area-B-001', + name: 'B区-快速拣选', + type: 'picking', + position: { x: 0, y: 0, z: 70 }, + size: { + length: 60, + width: 50, + height: 8 + }, + groundHeight: 0, + angle: 0, + color: warehouseColors.area.picking, + features: { + temperature: '常温', + humidity: '标准', + accessControl: true, + fireRating: 'B级', + lighting: '高亮度LED', + ventilation: '强制通风' + }, + shelves: generatePickingShelves('B', 30, 5) // 30排,5列 + }) + + // C区:包装加工区 + areas.push({ + id: 'area-C-001', + name: 'C区-包装加工', + type: 'packing', + position: { x: 90, y: 0, z: 0 }, + size: { + length: 40, + width: 30, + height: 6 + }, + groundHeight: 0, + angle: -Math.PI / 4, + color: warehouseColors.area.packing, + features: { + temperature: '常温', + humidity: '标准', + accessControl: true, + fireRating: 'C级', + lighting: '工作灯', + ventilation: '自然通风' + }, + shelves: generatePackingShelves('C', 5, 3) + }) + + return areas +} + +// 生成存储区货架(重型货架) +function generateStorageShelves(prefix, rows, columns) { + const shelves = [] + const shelfWidth = 2.4 // 货架宽度(米) + const shelfDepth = 1.2 // 货架深度(米) + const aisleWidth = 3.0 // 过道宽度(米) + + // 每个货架有4层,每层2个货位 + const levels = 4 + const cellsPerLevel = 2 + + for (let row = 0; row < rows; row++) { + for (let col = 0; col < columns; col++) { + const shelfId = `shelf-${prefix}-${String(row + 1).padStart(3, '0')}-${String(col + 1).padStart(2, '0')}` + + shelves.push({ + id: shelfId, + name: `重型货架${prefix}${row + 1}-${col + 1}`, + type: 'heavy', + position: { + x: col * (shelfWidth + aisleWidth) + shelfWidth / 2 + aisleWidth / 2, + y: 0, + z: row * (shelfDepth + aisleWidth) + shelfDepth / 2 + aisleWidth / 2 + }, + size: { + width: shelfWidth, + depth: shelfDepth, + height: 6.0 // 货架总高6米 + }, + orientation: 0, + aisleWidth: aisleWidth, + material: '重型钢结构', + maxLoad: 2000, // 最大承重2000kg + safety: { + loadIndicator: '正常', + stability: '优秀', + lastInspection: '2024-01-10' + }, + + // 货架结构 + structure: { + columns: 3, // 每组货架有3个立柱 + beams: 4, // 每层有横梁 + hasTopBeam: false, // 最上面一排没有横梁 + columnSpacing: 1.2 // 立柱间距 + }, + + // 层级配置 + levels: Array.from({ length: levels }, (_, levelIndex) => ({ + levelId: `${shelfId}-L${levelIndex + 1}`, + levelNumber: levelIndex + 1, + heightFromGround: 0.5 + levelIndex * 1.5, // 层高从地面开始 + levelHeight: 1.3, // 每层高度1.3米 + beams: { + hasBeam: true, + beamHeight: 0.15, + beamColor: warehouseColors.shelf.beam + }, + + // 格子配置(每层2个格子) + cells: Array.from({ length: cellsPerLevel }, (_, cellIndex) => { + const cellId = `${shelfId}-L${levelIndex + 1}-C${cellIndex + 1}` + const isOccupied = Math.random() > 0.4 + + return { + id: cellId, + name: `${prefix}${row + 1}-${col + 1}-L${levelIndex + 1}-C${cellIndex + 1}`, + position: { + x: -shelfWidth / 2 + shelfWidth / (cellsPerLevel * 2) + (shelfWidth / cellsPerLevel) * cellIndex, + y: 0, + z: 0 + }, + size: { + width: shelfWidth / cellsPerLevel - 0.05, // 格子宽度 + depth: shelfDepth - 0.1, // 格子深度 + height: levelIndex === 0 ? 1.2 : 1.3 // 第一层稍低 + }, + rowNumber: row + 1, + columnNumber: col + 1, + levelNumber: levelIndex + 1, + cellNumber: cellIndex + 1, + status: isOccupied ? 'occupied' : Math.random() > 0.7 ? 'reserved' : 'empty', + capacity: { + maxWeight: 500, + maxVolume: 1.2, + currentWeight: isOccupied ? Math.random() * 300 + 100 : 0 + }, + goods: isOccupied ? generateGoods() : null, + attributes: { + temperature: '常温', + humidity: '标准', + accessType: '正面', + lockType: '机械锁' + }, + lastAccessed: isOccupied ? randomDate() : null, + inspectionDate: '2024-01-10' + } + }) + })), + + // 维护信息 + maintenance: { + lastInspection: '2024-01-10', + nextInspection: '2024-04-10', + condition: '良好', + notes: '' + } + }) + } + } + + return shelves +} + +// 生成拣选区货架(流利架) +function generatePickingShelves(prefix, rows, columns) { + const shelves = [] + const shelfWidth = 1.8 + const shelfDepth = 1.0 + const aisleWidth = 2.8 + + const levels = 3 + const cellsPerLevel = 3 + + for (let row = 0; row < rows; row++) { + for (let col = 0; col < columns; col++) { + const shelfId = `shelf-${prefix}-${String(row + 1).padStart(3, '0')}-${String(col + 1).padStart(2, '0')}` + + shelves.push({ + id: shelfId, + name: `流利架${prefix}${row + 1}-${col + 1}`, + type: 'flow', + position: { + x: col * (shelfWidth + aisleWidth) + shelfWidth / 2 + aisleWidth / 2, + y: 0, + z: 70 + row * (shelfDepth + aisleWidth) + shelfDepth / 2 + aisleWidth / 2 + }, + size: { + width: shelfWidth, + depth: shelfDepth, + height: 4.5 + }, + orientation: Math.PI / 2, + aisleWidth: aisleWidth, + material: '轻型铝材', + maxLoad: 800, + + structure: { + columns: 2, + beams: 3, + hasTopBeam: false, + columnSpacing: 1.0 + }, + + levels: Array.from({ length: levels }, (_, levelIndex) => ({ + levelId: `${shelfId}-L${levelIndex + 1}`, + levelNumber: levelIndex + 1, + heightFromGround: 0.3 + levelIndex * 1.4, + levelHeight: 1.2, + beams: { + hasBeam: true, + beamHeight: 0.12, + beamColor: '#607D8B' + }, + + cells: Array.from({ length: cellsPerLevel }, (_, cellIndex) => { + const cellId = `${shelfId}-L${levelIndex + 1}-C${cellIndex + 1}` + const isOccupied = Math.random() > 0.3 + + return { + id: cellId, + name: `${prefix}${row + 1}-${col + 1}-L${levelIndex + 1}-C${cellIndex + 1}`, + position: { + x: -shelfWidth / 2 + shelfWidth / (cellsPerLevel * 2) + (shelfWidth / cellsPerLevel) * cellIndex, + y: 0, + z: 0 + }, + size: { + width: shelfWidth / cellsPerLevel - 0.04, + depth: shelfDepth - 0.08, + height: 1.0 + }, + rowNumber: row + 1, + columnNumber: col + 1, + levelNumber: levelIndex + 1, + cellNumber: cellIndex + 1, + status: isOccupied ? 'occupied' : 'empty', + capacity: { + maxWeight: 200, + maxVolume: 0.8, + currentWeight: isOccupied ? Math.random() * 150 + 50 : 0 + }, + goods: isOccupied ? generateGoods() : null, + attributes: { + flowDirection: 'forward', + currentStock: isOccupied ? Math.floor(Math.random() * 15) + 5 : 0, + minStock: 5, + maxStock: 20 + }, + lastAccessed: isOccupied ? randomDate() : null + } + }) + })), + + features: ['重力滑道', '先进先出', '电子标签', '缺货报警'] + }) + } + } + + return shelves +} + +// 生成包装区工作台 +function generatePackingShelves(prefix, rows, columns) { + const shelves = [] + + for (let row = 0; row < rows; row++) { + for (let col = 0; col < columns; col++) { + shelves.push({ + id: `shelf-${prefix}-${row + 1}-${col + 1}`, + name: `工作台${prefix}${row + 1}-${col + 1}`, + type: 'workbench', + position: { + x: 90 + col * 5, + y: 0, + z: row * 6 + }, + size: { + width: 2.0, + depth: 1.5, + height: 1.2 + }, + orientation: 0, + material: '不锈钢', + equipment: ['打包机', '称重仪', '标签打印机', '扫描枪'], + status: Math.random() > 0.7 ? 'busy' : 'idle', + currentTask: Math.random() > 0.7 ? '打包作业中' : '待机' + }) + } + } + + return shelves +} + +// 生成货物数据 +function generateGoods() { + const goodsTypes = [ + { category: 'electronics', name: '智能手机', weight: 0.5, volume: 0.002, color: '#2196F3' }, + { category: 'electronics', name: '笔记本电脑', weight: 2.5, volume: 0.015, color: '#3F51B5' }, + { category: 'clothing', name: '服装', weight: 1.2, volume: 0.008, color: '#E91E63' }, + { category: 'food', name: '食品', weight: 3.0, volume: 0.025, color: '#4CAF50' }, + { category: 'furniture', name: '家具配件', weight: 8.0, volume: 0.05, color: '#795548' }, + { category: 'medical', name: '医疗用品', weight: 1.8, volume: 0.012, color: '#009688' }, + { category: 'chemical', name: '化工原料', weight: 15.0, volume: 0.03, color: '#FF9800' }, + { category: 'machinery', name: '机械零件', weight: 12.0, volume: 0.04, color: '#607D8B' } + ] + + const type = goodsTypes[Math.floor(Math.random() * goodsTypes.length)] + const quantity = Math.floor(Math.random() * 10) + 1 + + return { + id: `goods-${Date.now()}-${Math.random().toString(36).substr(2, 9)}`, + name: type.name, + category: type.category, + sku: `SKU-${Math.floor(Math.random() * 10000).toString().padStart(6, '0')}`, + quantity: quantity, + unit: '件', + weight: type.weight * quantity, + volume: type.volume * quantity, + color: type.color, + storageRequirements: { + temperature: '常温', + humidity: '标准', + specialHandling: type.category === 'chemical' ? '危险品' : '普通' + }, + expiryDate: type.category === 'food' ? randomDate(30, 180) : null, + value: Math.floor(Math.random() * 5000) + 100, + supplier: randomSupplier(), + arrivedDate: randomDate(1, 30), + status: 'in_storage' + } +} + +// 生成墙壁 +function generateWalls() { + return [ + // 主墙 + { + id: 'wall-north', + name: '北墙', + position: { x: 100, y: 0, z: -1 }, + size: { width: 200, height: 10, depth: 0.5 }, + rotation: 0, + color: warehouseColors.building.wall, + type: 'exterior', + features: ['防火', '隔音', '保温'] + }, + { + id: 'wall-south', + name: '南墙', + position: { x: 100, y: 0, z: 151 }, + size: { width: 200, height: 10, depth: 0.5 }, + rotation: 0, + color: warehouseColors.building.wall, + type: 'exterior' + }, + { + id: 'wall-west', + name: '西墙', + position: { x: -1, y: 0, z: 75 }, + size: { width: 150, height: 10, depth: 0.5 }, + rotation: Math.PI / 2, + color: warehouseColors.building.wall, + type: 'exterior' + }, + { + id: 'wall-east', + name: '东墙', + position: { x: 201, y: 0, z: 75 }, + size: { width: 150, height: 10, depth: 0.5 }, + rotation: Math.PI / 2, + color: warehouseColors.building.wall, + type: 'exterior' + }, + + // 区域分隔墙 + { + id: 'wall-divider-1', + name: 'A-B区分隔墙', + position: { x: 40, y: 0, z: 60 }, + size: { width: 80, height: 8, depth: 0.3 }, + rotation: 0, + color: '#E0E0E0', + type: 'interior', + hasDoor: true + } + ] +} + +// 生成门 +function generateDoors() { + return [ + { + id: 'door-main', + name: '主入口', + position: { x: 100, y: 0, z: -0.25 }, + size: { width: 5, height: 4, depth: 0.1 }, + rotation: 0, + color: warehouseColors.building.door, + type: 'sliding', + direction: '双向', + accessControl: true, + status: 'closed' + }, + { + id: 'door-area-ab', + name: 'A-B区通道门', + position: { x: 40, y: 0, z: 60 }, + size: { width: 3, height: 3, depth: 0.1 }, + rotation: Math.PI / 2, + color: warehouseColors.building.door, + type: 'swing', + direction: '双向', + accessControl: true, + status: 'open' + }, + { + id: 'door-emergency', + name: '紧急出口', + position: { x: 180, y: 0, z: 150.75 }, + size: { width: 2, height: 2.5, depth: 0.1 }, + rotation: Math.PI, + color: '#F44336', + type: 'emergency', + direction: '向外', + accessControl: false, + status: 'closed' + } + ] +} + +// 生成窗户 +function generateWindows() { + const windows = [] + + // 北墙窗户 + for (let i = 0; i < 5; i++) { + windows.push({ + id: `window-north-${i + 1}`, + position: { x: 20 + i * 30, y: 3, z: -0.25 }, + size: { width: 2, height: 1.5, depth: 0.05 }, + rotation: 0, + color: warehouseColors.building.window + }) + } + + // 南墙窗户 + for (let i = 0; i < 5; i++) { + windows.push({ + id: `window-south-${i + 1}`, + position: { x: 20 + i * 30, y: 3, z: 150.75 }, + size: { width: 2, height: 1.5, depth: 0.05 }, + rotation: Math.PI, + color: warehouseColors.building.window + }) + } + + return windows +} + +// 生成立柱 +function generatePillars() { + const pillars = [] + + // 主立柱 + for (let x = 0; x <= 200; x += 20) { + for (let z = 0; z <= 150; z += 20) { + pillars.push({ + id: `pillar-${x}-${z}`, + position: { x: x, y: 0, z: z }, + size: { width: 0.6, depth: 0.6, height: 10 }, + color: warehouseColors.building.column, + type: 'structural', + material: '钢筋混凝土' + }) + } + } + + return pillars +} + +// 辅助函数 +function randomSupplier() { + const suppliers = ['华为', '小米', '联想', '海尔', '美的', '格力', '三只松鼠', '伊利'] + return suppliers[Math.floor(Math.random() * suppliers.length)] +} + +function randomDate(minDays = 1, maxDays = 365) { + const date = new Date() + date.setDate(date.getDate() - Math.floor(Math.random() * (maxDays - minDays)) + minDays) + return date.toISOString().split('T')[0] +} + +// 计算仓库统计信息 +export function calculateWarehouseStats(warehouseData) { + const stats = { + totalAreas: warehouseData.areas?.length || 0, + totalShelves: 0, + totalColumns: 0, + totalRows: 0, + totalLevels: 0, + totalCells: 0, + occupiedCells: 0, + reservedCells: 0, + emptyCells: 0, + usageRate: 0, + capacity: { + max: 0, + used: 0, + available: 0 + } + } + + if (!warehouseData.areas) return stats + + warehouseData.areas.forEach(area => { + if (area.shelves) { + stats.totalShelves += area.shelves.length + + area.shelves.forEach(shelf => { + // 计算货架结构 + if (shelf.structure) { + stats.totalColumns += shelf.structure.columns || 0 + } + + // 计算层级和格子 + if (shelf.levels) { + stats.totalLevels += shelf.levels.length + + shelf.levels.forEach(level => { + if (level.cells) { + stats.totalCells += level.cells.length + + level.cells.forEach(cell => { + // 容量计算 + const cellVolume = cell.size?.width * cell.size?.depth * cell.size?.height || 0 + const cellWeight = cell.capacity?.maxWeight || 0 + + stats.capacity.max += cellWeight + + switch (cell.status) { + case 'occupied': + stats.occupiedCells++ + stats.capacity.used += cell.capacity?.currentWeight || 0 + break + case 'reserved': + stats.reservedCells++ + break + case 'empty': + stats.emptyCells++ + stats.capacity.available += cellWeight + break + } + }) + } + }) + } + }) + } + }) + + // 计算使用率 + if (stats.totalCells > 0) { + stats.usageRate = Math.round((stats.occupiedCells / stats.totalCells) * 100) + } + + // 计算行数(假设每排货架为一行) + stats.totalRows = stats.totalShelves > 0 ? + Math.floor(Math.sqrt(stats.totalShelves)) : 0 + + return stats +} + +// 导出默认数据 +export default { + warehouseColors, + generateWarehouseData, + calculateWarehouseStats +} diff --git a/src/utils/zhijian.js b/src/utils/zhijian.js new file mode 100644 index 00000000..7d338656 --- /dev/null +++ b/src/utils/zhijian.js @@ -0,0 +1,239 @@ + + +/** + * 通用js方法封装处理 + * Copyright (c) 2023 zhijian + */ + +// 日期格式化 +export function parseTime(time, pattern) { + if (arguments.length === 0 || !time) { + return null + } + const format = pattern || '{y}-{m}-{d} {h}:{i}:{s}' + let date + if (typeof time === 'object') { + date = time + } else { + if ((typeof time === 'string') && (/^[0-9]+$/.test(time))) { + time = parseInt(time) + } else if (typeof time === 'string') { + time = time.replace(new RegExp(/-/gm), '/').replace('T', ' ').replace(new RegExp(/\.[\d]{3}/gm), ''); + } + if ((typeof time === 'number') && (time.toString().length === 10)) { + time = time * 1000 + } + date = new Date(time) + } + const formatObj = { + y: date.getFullYear(), + m: date.getMonth() + 1, + d: date.getDate(), + h: date.getHours(), + i: date.getMinutes(), + s: date.getSeconds(), + a: date.getDay() + } + const time_str = format.replace(/{(y|m|d|h|i|s|a)+}/g, (result, key) => { + let value = formatObj[key] + // Note: getDay() returns 0 on Sunday + if (key === 'a') { return ['日', '一', '二', '三', '四', '五', '六'][value] } + if (result.length > 0 && value < 10) { + value = '0' + value + } + return value || 0 + }) + return time_str +} + +// 表单重置 +export function resetForm(refName) { + if (this.$refs[refName]) { + this.$refs[refName].resetFields(); + } +} + +// 添加日期范围 +export function addDateRange(params, dateRange, propName) { + let search = params; + search.params = typeof (search.params) === 'object' && search.params !== null && !Array.isArray(search.params) ? search.params : {}; + dateRange = Array.isArray(dateRange) ? dateRange : []; + if (typeof (propName) === 'undefined') { + search.params['beginTime'] = dateRange[0]; + search.params['endTime'] = dateRange[1]; + } else { + search.params['begin' + propName] = dateRange[0]; + search.params['end' + propName] = dateRange[1]; + } + return search; +} + +// 回显数据字典 +export function selectDictLabel(datas, value) { + if (value === undefined) { + return ""; + } + var actions = []; + Object.keys(datas).some((key) => { + if (datas[key].value == ('' + value)) { + actions.push(datas[key].label); + return true; + } + }) + if (actions.length === 0) { + actions.push(value); + } + return actions.join(''); +} + +// 回显数据字典(字符串、数组) +export function selectDictLabels(datas, value, separator) { + if (value === undefined || value.length ===0) { + return ""; + } + if (Array.isArray(value)) { + value = value.join(","); + } + var actions = []; + var currentSeparator = undefined === separator ? "," : separator; + var temp = value.split(currentSeparator); + Object.keys(value.split(currentSeparator)).some((val) => { + var match = false; + Object.keys(datas).some((key) => { + if (datas[key].value == ('' + temp[val])) { + actions.push(datas[key].label + currentSeparator); + match = true; + } + }) + if (!match) { + actions.push(temp[val] + currentSeparator); + } + }) + return actions.join('').substring(0, actions.join('').length - 1); +} + +// 字符串格式化(%s ) +export function sprintf(str) { + var args = arguments, flag = true, i = 1; + str = str.replace(/%s/g, function () { + var arg = args[i++]; + if (typeof arg === 'undefined') { + flag = false; + return ''; + } + return arg; + }); + return flag ? str : ''; +} + +// 转换字符串,undefined,null等转化为"" +export function parseStrEmpty(str) { + if (!str || str == "undefined" || str == "null") { + return ""; + } + return str; +} + +// 数据合并 +export function mergeRecursive(source, target) { + for (var p in target) { + try { + if (target[p].constructor == Object) { + source[p] = mergeRecursive(source[p], target[p]); + } else { + source[p] = target[p]; + } + } catch (e) { + source[p] = target[p]; + } + } + return source; +}; + +/** + * 构造树型结构数据 + * @param {*} data 数据源 + * @param {*} id id字段 默认 'id' + * @param {*} parentId 父节点字段 默认 'parentId' + * @param {*} children 孩子节点字段 默认 'children' + */ +export function handleTree(data, id, parentId, children) { + let config = { + id: id || 'id', + parentId: parentId || 'parentId', + childrenList: children || 'children' + }; + + var childrenListMap = {}; + var nodeIds = {}; + var tree = []; + + for (let d of data) { + let parentId = d[config.parentId]; + if (childrenListMap[parentId] == null) { + childrenListMap[parentId] = []; + } + nodeIds[d[config.id]] = d; + childrenListMap[parentId].push(d); + } + + for (let d of data) { + let parentId = d[config.parentId]; + if (nodeIds[parentId] == null) { + tree.push(d); + } + } + + for (let t of tree) { + adaptToChildrenList(t); + } + + function adaptToChildrenList(o) { + if (childrenListMap[o[config.id]] !== null) { + o[config.childrenList] = childrenListMap[o[config.id]]; + } + if (o[config.childrenList]) { + for (let c of o[config.childrenList]) { + adaptToChildrenList(c); + } + } + } + return tree; +} + +/** +* 参数处理 +* @param {*} params 参数 +*/ +export function tansParams(params) { + let result = '' + for (const propName of Object.keys(params)) { + const value = params[propName]; + var part = encodeURIComponent(propName) + "="; + if (value !== null && value !== "" && typeof (value) !== "undefined") { + if (typeof value === 'object') { + for (const key of Object.keys(value)) { + if (value[key] !== null && value[key] !== "" && typeof (value[key]) !== 'undefined') { + let params = propName + '[' + key + ']'; + var subPart = encodeURIComponent(params) + "="; + result += subPart + encodeURIComponent(value[key]) + "&"; + } + } + } else { + result += part + encodeURIComponent(value) + "&"; + } + } + } + return result +} + +// 验证是否为blob格式 +export function blobValidate(data) { + return data.type !== 'application/json' +} +// 金额格式化 +export function amountFormatter(row, column, cellValue, index) { + if(cellValue) { + return '¥' + cellValue.toFixed(2).replace(/\d(?=(\d{3})+\.)/g, '$&,'); + } +} diff --git a/src/utils/zhijian.ts b/src/utils/zhijian.ts new file mode 100644 index 00000000..8ca94c76 --- /dev/null +++ b/src/utils/zhijian.ts @@ -0,0 +1,243 @@ +/** + * 通用js方法封装处理(TypeScript 版) + * Copyright (c) 2023 zhijian + */ + +// 日期格式化 +export function parseTime(time: any, pattern?: string): string | null { + if (arguments.length === 0 || !time) { + return null + } + const format = pattern || '{y}-{m}-{d} {h}:{i}:{s}' + let date: Date + if (typeof time === 'object') { + date = time + } else { + if ((typeof time === 'string') && (/^[0-9]+$/.test(time))) { + time = parseInt(time) + } else if (typeof time === 'string') { + time = time.replace(new RegExp(/-/gm), '/').replace('T', ' ').replace(new RegExp(/\.[\d]{3}/gm), ''); + } + if ((typeof time === 'number') && (time.toString().length === 10)) { + time = time * 1000 + } + date = new Date(time) + } + const formatObj: { [key: string]: number } = { + y: date.getFullYear(), + m: date.getMonth() + 1, + d: date.getDate(), + h: date.getHours(), + i: date.getMinutes(), + s: date.getSeconds(), + a: date.getDay() + } + const time_str = format.replace(/{(y|m|d|h|i|s|a)+}/g, (result: string, key: string) => { + let value: any = formatObj[key] + // Note: getDay() returns 0 on Sunday + if (key === 'a') { return ['日', '一', '二', '三', '四', '五', '六'][value] } + if (result.length > 0 && value < 10) { + value = '0' + value + } + return value || 0 + }) + return time_str +} + +// 表单重置(保留原有 this.$refs 行为) +export function resetForm(this: any, refName: string): void { + const ctx = (this as any) + if (ctx && ctx.$refs && ctx.$refs[refName]) { + ctx.$refs[refName].resetFields(); + } +} + +// 添加日期范围 +export function addDateRange(params: any, dateRange: any[], propName?: string) { + let search = params; + search.params = typeof (search.params) === 'object' && search.params !== null && !Array.isArray(search.params) ? search.params : {}; + dateRange = Array.isArray(dateRange) ? dateRange : []; + if (typeof (propName) === 'undefined') { + search.params['beginTime'] = dateRange[0]; + search.params['endTime'] = dateRange[1]; + } else { + search.params['begin' + propName] = dateRange[0]; + search.params['end' + propName] = dateRange[1]; + } + return search; +} + +// 回显数据字典 +export function selectDictLabel(datas: any, value: any) { + if (value === undefined) { + return ""; + } + const actions: string[] = []; + Object.keys(datas || {}).some((key) => { + if (datas[key].value == ('' + value)) { + actions.push(datas[key].label); + return true; + } + return false; + }) + if (actions.length === 0) { + actions.push(value); + } + return actions.join(''); +} + +// 回显数据字典(字符串、数组) +export function selectDictLabels(datas: any, value: any, separator?: string) { + if (value === undefined || value.length === 0) { + return ""; + } + if (Array.isArray(value)) { + value = value.join(","); + } + const actions: string[] = []; + const currentSeparator = separator === undefined ? "," : separator; + const temp = ('' + value).split(currentSeparator); + Object.keys(temp).some((val) => { + let match = false; + Object.keys(datas || {}).some((key) => { + if (datas[key].value == ('' + temp[Number(val)])) { + actions.push(datas[key].label + currentSeparator); + match = true; + } + return match; + }) + if (!match) { + actions.push(temp[Number(val)] + currentSeparator); + } + return false; + }) + const joined = actions.join(''); + return joined.substring(0, joined.length - 1); +} + +// 字符串格式化(%s ) +export function sprintf(str: string, ...args: any[]): string { + const argumentsObj = (arguments as any); + let flag = true, i = 1; + str = str.replace(/%s/g, function () { + const arg = argumentsObj[i++]; + if (typeof arg === 'undefined') { + flag = false; + return ''; + } + return arg; + }); + return flag ? str : ''; +} + +// 转换字符串,undefined,null等转化为"" +export function parseStrEmpty(str: any) { + if (!str || str == "undefined" || str == "null") { + return ""; + } + return str; +} + +// 数据合并 +export function mergeRecursive(source: any, target: any): any { + for (const p in target) { + try { + if (target[p].constructor == Object) { + source[p] = mergeRecursive(source[p], target[p]); + } else { + source[p] = target[p]; + } + } catch (e) { + source[p] = target[p]; + } + } + return source; +}; + +/** + * 构造树型结构数据 + * @param {*} data 数据源 + * @param {*} id id字段 默认 'id' + * @param {*} parentId 父节点字段 默认 'parentId' + * @param {*} children 孩子节点字段 默认 'children' + */ +export function handleTree(data: any[], id?: string, parentId?: string, children?: string): any[] { + const config = { + id: id || 'id', + parentId: parentId || 'parentId', + childrenList: children || 'children' + }; + + const childrenListMap: { [key: string]: any[] } = {}; + const nodeIds: { [key: string]: any } = {}; + const tree: any[] = []; + + for (const d of data) { + const parent = d[config.parentId]; + if (childrenListMap[parent] == null) { + childrenListMap[parent] = []; + } + nodeIds[d[config.id]] = d; + childrenListMap[parent].push(d); + } + + for (const d of data) { + const parent = d[config.parentId]; + if (nodeIds[parent] == null) { + tree.push(d); + } + } + + for (const t of tree) { + adaptToChildrenList(t); + } + + function adaptToChildrenList(o: any) { + if (childrenListMap[o[config.id]] !== null) { + o[config.childrenList] = childrenListMap[o[config.id]]; + } + if (o[config.childrenList]) { + for (const c of o[config.childrenList]) { + adaptToChildrenList(c); + } + } + } + return tree; +} + +/** +* 参数处理 +* @param {*} params 参数 +*/ +export function tansParams(params: any) { + let result = '' + for (const propName of Object.keys(params)) { + const value = params[propName]; + const part = encodeURIComponent(propName) + "="; + if (value !== null && value !== "" && typeof (value) !== "undefined") { + if (typeof value === 'object') { + for (const key of Object.keys(value)) { + if (value[key] !== null && value[key] !== "" && typeof (value[key]) !== 'undefined') { + const paramName = propName + '[' + key + ']'; + const subPart = encodeURIComponent(paramName) + "="; + result += subPart + encodeURIComponent(value[key]) + "&"; + } + } + } else { + result += part + encodeURIComponent(value) + "&"; + } + } + } + return result +} + +// 验证是否为blob格式 +export function blobValidate(data: { type?: string }) { + return data.type !== 'application/json' +} +// 金额格式化 +export function amountFormatter(row: any, column: any, cellValue: any, index: any) { + if (cellValue) { + return '¥' + cellValue.toFixed(2).replace(/\d(?=(\d{3})+\.)/g, '$&,'); + } +} \ No newline at end of file diff --git a/src/views/404.vue b/src/views/404.vue new file mode 100644 index 00000000..70acc752 --- /dev/null +++ b/src/views/404.vue @@ -0,0 +1,6 @@ + + \ No newline at end of file diff --git a/src/views/account/index.vue b/src/views/account/index.vue new file mode 100644 index 00000000..6cce14c7 --- /dev/null +++ b/src/views/account/index.vue @@ -0,0 +1,8 @@ + + + \ No newline at end of file diff --git a/src/views/auth/approve.vue b/src/views/auth/approve.vue new file mode 100644 index 00000000..dcc3640a --- /dev/null +++ b/src/views/auth/approve.vue @@ -0,0 +1,8 @@ + + + \ No newline at end of file diff --git a/src/views/dashboard/components/ExpressRatio.vue b/src/views/dashboard/components/ExpressRatio.vue new file mode 100644 index 00000000..bc3d964d --- /dev/null +++ b/src/views/dashboard/components/ExpressRatio.vue @@ -0,0 +1,226 @@ + + + + + diff --git a/src/views/dashboard/components/HotOrderRank.vue b/src/views/dashboard/components/HotOrderRank.vue new file mode 100644 index 00000000..38df1616 --- /dev/null +++ b/src/views/dashboard/components/HotOrderRank.vue @@ -0,0 +1,356 @@ + + + + + diff --git a/src/views/dashboard/components/OrderTrend.vue b/src/views/dashboard/components/OrderTrend.vue new file mode 100644 index 00000000..9439e66a --- /dev/null +++ b/src/views/dashboard/components/OrderTrend.vue @@ -0,0 +1,312 @@ + + + + + diff --git a/src/views/dashboard/components/PlatformDistribution.vue b/src/views/dashboard/components/PlatformDistribution.vue new file mode 100644 index 00000000..dae526b3 --- /dev/null +++ b/src/views/dashboard/components/PlatformDistribution.vue @@ -0,0 +1,222 @@ + + + + + diff --git a/src/views/dashboard/components/StatsCardsStore.vue b/src/views/dashboard/components/StatsCardsStore.vue new file mode 100644 index 00000000..4b66721f --- /dev/null +++ b/src/views/dashboard/components/StatsCardsStore.vue @@ -0,0 +1,455 @@ + + + + + diff --git a/src/views/dashboard/components/StatsCardsWarehouse.vue b/src/views/dashboard/components/StatsCardsWarehouse.vue new file mode 100644 index 00000000..de3a9e66 --- /dev/null +++ b/src/views/dashboard/components/StatsCardsWarehouse.vue @@ -0,0 +1,454 @@ + + + + + diff --git a/src/views/dashboard/components/WelcomCard.vue b/src/views/dashboard/components/WelcomCard.vue new file mode 100644 index 00000000..9fbfaf4e --- /dev/null +++ b/src/views/dashboard/components/WelcomCard.vue @@ -0,0 +1,214 @@ + + + + + diff --git a/src/views/dashboard/components/forms/createStore.vue b/src/views/dashboard/components/forms/createStore.vue new file mode 100644 index 00000000..1d646d5a --- /dev/null +++ b/src/views/dashboard/components/forms/createStore.vue @@ -0,0 +1,113 @@ + + + diff --git a/src/views/dashboard/components/forms/createWarehouse.vue b/src/views/dashboard/components/forms/createWarehouse.vue new file mode 100644 index 00000000..191ca684 --- /dev/null +++ b/src/views/dashboard/components/forms/createWarehouse.vue @@ -0,0 +1,109 @@ + + + diff --git a/src/views/dashboard/components/forms/joinStore.vue b/src/views/dashboard/components/forms/joinStore.vue new file mode 100644 index 00000000..5ff25dfc --- /dev/null +++ b/src/views/dashboard/components/forms/joinStore.vue @@ -0,0 +1,264 @@ + + + + + diff --git a/src/views/dashboard/components/forms/joinWarehouse.vue b/src/views/dashboard/components/forms/joinWarehouse.vue new file mode 100644 index 00000000..6a9585e9 --- /dev/null +++ b/src/views/dashboard/components/forms/joinWarehouse.vue @@ -0,0 +1,276 @@ + + + + + diff --git a/src/views/dashboard/composables/useDashboard.ts b/src/views/dashboard/composables/useDashboard.ts new file mode 100644 index 00000000..d124d6ba --- /dev/null +++ b/src/views/dashboard/composables/useDashboard.ts @@ -0,0 +1,74 @@ +import { ref, onMounted, onBeforeUnmount, unref } from 'vue' +import { useRouter } from 'vue-router' +import request from '@/utils/request' +import { ElMessage } from 'element-plus' + +export function useDashboard(props: { method: string; queryParams?: any }) { + const router = useRouter() + const loading = ref(false) + const error = ref(null) + + // Data holder - generic + const data = ref(null) + + const loadData = async () => { + if (!props.method) return + + loading.value = true + error.value = null + + try { + // Use the request utility directly as in Vue 2 mixin + const res: any = await request({ + url: '/system', + method: 'post', + params: { + method: props.method, + v: '1.0', + timestamp: new Date().getTime() + }, + data: unref(props.queryParams) || {}, + // isSystemApi: true // Not sure if this flag is needed in Vue 3 request util, removing for now + }) + + if (res.code === 200) { + data.value = res.data + return res.data + } else { + error.value = res.message || '数据加载失败' + console.error(`数据加载失败:`, error.value) + // ElMessage.error(error.value) // request.js handles error messages usually + } + } catch (err: any) { + error.value = err.message || '网络错误' + console.error(`数据加载失败:`, error.value) + } finally { + loading.value = false + } + } + + const refreshData = () => { + loadData() + } + + const gotoOrderPage = (params: any = {}) => { + const query = { + tab: 'reviewOrder', + ...params + } + + router.push({ + path: '/order/orderManagement', + query: query + }) + } + + return { + loading, + error, + data, + loadData, + refreshData, + gotoOrderPage + } +} diff --git a/src/views/dashboard/index.vue b/src/views/dashboard/index.vue new file mode 100644 index 00000000..0457dda6 --- /dev/null +++ b/src/views/dashboard/index.vue @@ -0,0 +1,273 @@ + + + + + diff --git a/src/views/download/index.vue b/src/views/download/index.vue new file mode 100644 index 00000000..5937ec68 --- /dev/null +++ b/src/views/download/index.vue @@ -0,0 +1,6 @@ + + \ No newline at end of file diff --git a/src/views/login/index.vue b/src/views/login/index.vue new file mode 100644 index 00000000..0e10ddfa --- /dev/null +++ b/src/views/login/index.vue @@ -0,0 +1,501 @@ + + + + + + + diff --git a/src/views/message/index.vue b/src/views/message/index.vue new file mode 100644 index 00000000..547fbbb4 --- /dev/null +++ b/src/views/message/index.vue @@ -0,0 +1,6 @@ + + \ No newline at end of file diff --git a/src/views/order/index.vue b/src/views/order/index.vue new file mode 100644 index 00000000..43448338 --- /dev/null +++ b/src/views/order/index.vue @@ -0,0 +1,8 @@ + + + \ No newline at end of file diff --git a/src/views/permission/index.vue b/src/views/permission/index.vue new file mode 100644 index 00000000..83482346 --- /dev/null +++ b/src/views/permission/index.vue @@ -0,0 +1,8 @@ + + + \ No newline at end of file diff --git a/src/views/profile/components/AccountSecurity.vue b/src/views/profile/components/AccountSecurity.vue new file mode 100644 index 00000000..60898e7e --- /dev/null +++ b/src/views/profile/components/AccountSecurity.vue @@ -0,0 +1,305 @@ + + + + + diff --git a/src/views/profile/components/BasicInfoForm.vue b/src/views/profile/components/BasicInfoForm.vue new file mode 100644 index 00000000..e8d06dfb --- /dev/null +++ b/src/views/profile/components/BasicInfoForm.vue @@ -0,0 +1,184 @@ + + + + + diff --git a/src/views/profile/components/ChangePasswordDialog.vue b/src/views/profile/components/ChangePasswordDialog.vue new file mode 100644 index 00000000..8d674d79 --- /dev/null +++ b/src/views/profile/components/ChangePasswordDialog.vue @@ -0,0 +1,112 @@ + + + diff --git a/src/views/profile/components/OperationLogs.vue b/src/views/profile/components/OperationLogs.vue new file mode 100644 index 00000000..1430e890 --- /dev/null +++ b/src/views/profile/components/OperationLogs.vue @@ -0,0 +1,329 @@ + + + + + diff --git a/src/views/profile/components/UserInfoCard.vue b/src/views/profile/components/UserInfoCard.vue new file mode 100644 index 00000000..f16656d5 --- /dev/null +++ b/src/views/profile/components/UserInfoCard.vue @@ -0,0 +1,173 @@ + + + + + diff --git a/src/views/profile/index.vue b/src/views/profile/index.vue new file mode 100644 index 00000000..c9810692 --- /dev/null +++ b/src/views/profile/index.vue @@ -0,0 +1,229 @@ + + + + + diff --git a/src/views/redirect/index.vue b/src/views/redirect/index.vue new file mode 100644 index 00000000..d9d3d696 --- /dev/null +++ b/src/views/redirect/index.vue @@ -0,0 +1,17 @@ + + + \ No newline at end of file diff --git a/src/views/stock/combo_stock/index.vue b/src/views/stock/combo_stock/index.vue new file mode 100644 index 00000000..89d4dd5e --- /dev/null +++ b/src/views/stock/combo_stock/index.vue @@ -0,0 +1,7 @@ + + + + + \ No newline at end of file diff --git a/src/views/stock/component/add.vue b/src/views/stock/component/add.vue new file mode 100644 index 00000000..616e1dbb --- /dev/null +++ b/src/views/stock/component/add.vue @@ -0,0 +1,813 @@ + + + + + \ No newline at end of file diff --git a/src/views/stock/component/barcode.vue b/src/views/stock/component/barcode.vue new file mode 100644 index 00000000..ec627436 --- /dev/null +++ b/src/views/stock/component/barcode.vue @@ -0,0 +1,277 @@ + + + + + diff --git a/src/views/stock/component/erpStock.vue b/src/views/stock/component/erpStock.vue new file mode 100644 index 00000000..516044a4 --- /dev/null +++ b/src/views/stock/component/erpStock.vue @@ -0,0 +1,160 @@ + + + + + diff --git a/src/views/stock/component/info.vue b/src/views/stock/component/info.vue new file mode 100644 index 00000000..20751bfd --- /dev/null +++ b/src/views/stock/component/info.vue @@ -0,0 +1,1039 @@ + + + + + diff --git a/src/views/stock/component/log.vue b/src/views/stock/component/log.vue new file mode 100644 index 00000000..aa75ca53 --- /dev/null +++ b/src/views/stock/component/log.vue @@ -0,0 +1,222 @@ + + + + + diff --git a/src/views/stock/component/recycle.vue b/src/views/stock/component/recycle.vue new file mode 100644 index 00000000..7ca14d71 --- /dev/null +++ b/src/views/stock/component/recycle.vue @@ -0,0 +1,278 @@ + + + + + diff --git a/src/views/stock/component/storage.vue b/src/views/stock/component/storage.vue new file mode 100644 index 00000000..93c95a6a --- /dev/null +++ b/src/views/stock/component/storage.vue @@ -0,0 +1,118 @@ + + + + + diff --git a/src/views/stock/component/store_stock.vue b/src/views/stock/component/store_stock.vue new file mode 100644 index 00000000..9dd28483 --- /dev/null +++ b/src/views/stock/component/store_stock.vue @@ -0,0 +1,266 @@ + + + + + diff --git a/src/views/stock/index.vue b/src/views/stock/index.vue new file mode 100644 index 00000000..8190bc99 --- /dev/null +++ b/src/views/stock/index.vue @@ -0,0 +1,1052 @@ + + + + + diff --git a/src/views/stock/storestock/index.vue b/src/views/stock/storestock/index.vue new file mode 100644 index 00000000..9f079fb5 --- /dev/null +++ b/src/views/stock/storestock/index.vue @@ -0,0 +1,7 @@ + + + + + \ No newline at end of file diff --git a/src/views/storage/receiving/component/Details.vue b/src/views/storage/receiving/component/Details.vue new file mode 100644 index 00000000..77880a03 --- /dev/null +++ b/src/views/storage/receiving/component/Details.vue @@ -0,0 +1,27 @@ + + + + + + + diff --git a/src/views/storage/receiving/component/DetailsPanel.vue b/src/views/storage/receiving/component/DetailsPanel.vue new file mode 100644 index 00000000..e0f59eeb --- /dev/null +++ b/src/views/storage/receiving/component/DetailsPanel.vue @@ -0,0 +1,187 @@ + + + + + diff --git a/src/views/storage/receiving/component/Logs.vue b/src/views/storage/receiving/component/Logs.vue new file mode 100644 index 00000000..f459ce47 --- /dev/null +++ b/src/views/storage/receiving/component/Logs.vue @@ -0,0 +1,14 @@ + + + + + diff --git a/src/views/storage/receiving/component/Storage.vue b/src/views/storage/receiving/component/Storage.vue new file mode 100644 index 00000000..74f5b43b --- /dev/null +++ b/src/views/storage/receiving/component/Storage.vue @@ -0,0 +1,14 @@ + + + + + diff --git a/src/views/storage/receiving/index.vue b/src/views/storage/receiving/index.vue new file mode 100644 index 00000000..9346bec0 --- /dev/null +++ b/src/views/storage/receiving/index.vue @@ -0,0 +1,432 @@ + + + + + \ No newline at end of file diff --git a/src/views/storage/receiving/receiving-config.ts b/src/views/storage/receiving/receiving-config.ts new file mode 100644 index 00000000..c99c4c9f --- /dev/null +++ b/src/views/storage/receiving/receiving-config.ts @@ -0,0 +1,196 @@ +export const statusConfig = { + receiving: { text: '收货中', tagType: 'warning' }, + completed: { text: '已完成', tagType: 'success' }, + cancelled: { text: '已作废', tagType: 'danger' } +} + +export const detailStatusConfig = { + all_matched: { text: '全部匹配', tagType: 'success' }, + partial_matched: { text: '部分匹配', tagType: 'warning' }, + unmatched: { text: '未匹配', tagType: 'info' } +} + +export const storageStatusConfig = { + all: { text: '全部入库', tagType: 'success' }, + partial: { text: '部分入库', tagType: 'warning' }, + none: { text: '未入库', tagType: 'info' } +} + +export const deliveryMethodConfig: any = { + truck: { text: '货车', tagType: 'primary' }, + express: { text: '快递', tagType: 'success' }, + air_freight: { text: '空运', tagType: 'info' }, + sea_freight: { text: '海运', tagType: 'warning' }, + other: { text: '其他', tagType: '' } +} + +export const loadingMethodConfig: any = { + with_pallet: { text: '带托盘', tagType: 'success' }, + without_pallet: { text: '不带托盘', tagType: 'info' } +} + +export const receivingColumns = [ + { prop: 'receiving_number', label: '收货单号', width: '160', fixed: 'left' }, + { prop: 'status', label: '收货状态', width: '100', align: 'center' }, + { prop: 'detail_status', label: '匹配状态', width: '100', align: 'center' }, + { prop: 'storage_status', label: '入库状态', width: '100', align: 'center' }, + { prop: 'store_name', label: '货主', width: '150' }, + { prop: 'creator_name', label: '创建人', width: '120' }, + { prop: 'delivery_method', label: '来货方式', width: '100', align: 'center' }, + { prop: 'loading_method', label: '装卸方式', width: '100', align: 'center' }, + { prop: 'license_plate', label: '车牌号', width: '120' }, + { prop: 'tracking_number', label: '物流单号', width: '180' }, + { prop: 'total_items', label: '商品种类', width: '100', align: 'right' }, + { prop: 'total_quantity', label: '总数量', width: '100', align: 'right' }, + { prop: 'total_boxes', label: '总箱数', width: '100', align: 'right' }, + { prop: 'total_pallets', label: '总托盘数', width: '100', align: 'right' }, + { prop: 'receiving_start_time', label: '收货开始', width: '150' }, + { prop: 'receiving_end_time', label: '收货结束', width: '150' }, + { prop: 'remark', label: '备注', minWidth: '150' }, + { prop: 'created_at', label: '创建时间', width: '160' }, + { prop: 'updated_at', label: '更新时间', width: '160' }, + + +] + +export const availableFields = [ + { value: 'receiving_number', label: '收货单号', type: 'text' }, + { value: 'status', label: '收货状态', type: 'select', options: Object.entries(statusConfig).map(([v, c]) => ({ value: v, label: c.text })) }, + { value: 'detail_status', label: '匹配状态', type: 'select', options: Object.entries(detailStatusConfig).map(([v, c]) => ({ value: v, label: c.text })) }, + { value: 'storage_status', label: '入库状态', type: 'select', options: Object.entries(storageStatusConfig).map(([v, c]) => ({ value: v, label: c.text })) }, + { value: 'store_id', label: '货主', type: 'select', filterable: true, options: [] }, + { value: 'delivery_method', label: '来货方式', type: 'select', options: Object.entries(deliveryMethodConfig).map(([v, c]: [string, any]) => ({ value: v, label: c.text })) }, + { value: 'loading_method', + label: '装卸方式', + type: 'select', + placeholder: '请选择装卸方式', + options: Object.entries(loadingMethodConfig).map(([value, config]: [string, any]) => ({ + value, + label: (config as any).text + }))}, + { + value: 'license_plate', + label: '车牌号', + type: 'text', + placeholder: '请输入车牌号', + operators: ['contains'], + defaultOperator: 'contains' + }, + { + value: 'tracking_number', + label: '物流单号', + type: 'text', + placeholder: '请输入物流单号', + operators: ['contains'], + defaultOperator: 'contains' + }, + // 数量范围筛选 + { + value: 'total_items', + label: '商品种类', + type: 'number', + placeholder: '请输入商品种类数', + operators: ['eq', 'ne', 'gt', 'lt', 'ge', 'le', 'between'], + defaultOperator: 'ge' + }, + { + value: 'total_quantity', + label: '总数量', + type: 'number', + placeholder: '请输入总数量', + operators: ['eq', 'ne', 'gt', 'lt', 'ge', 'le', 'between'], + defaultOperator: 'ge' + }, + { + value: 'total_boxes', + label: '总箱数', + type: 'number', + placeholder: '请输入总箱数', + operators: ['eq', 'ne', 'gt', 'lt', 'ge', 'le', 'between'], + defaultOperator: 'ge' + }, + { + value: 'total_pallets', + label: '总托盘数', + type: 'number', + placeholder: '请输入总托盘数', + operators: ['eq', 'ne', 'gt', 'lt', 'ge', 'le', 'between'], + defaultOperator: 'ge' + }, + // 时间筛选 + { + value: 'created_at', + label: '创建时间', + type: 'daterange', + startPlaceholder: '开始时间', + endPlaceholder: '结束时间' + }, + { + value: 'updated_at', + label: '更新时间', + type: 'daterange', + startPlaceholder: '开始时间', + endPlaceholder: '结束时间' + }, + { + value: 'receiving_start_time', + label: '收货开始时间', + type: 'daterange', + startPlaceholder: '开始时间', + endPlaceholder: '结束时间' + }, + { + value: 'receiving_end_time', + label: '收货结束时间', + type: 'daterange', + startPlaceholder: '开始时间', + endPlaceholder: '结束时间' + }, + // 创建人筛选 + { + value: 'creator_id', + label: '创建人', + type: 'select', + placeholder: '请选择创建人', + filterable: true, + options: [] + }, + // 备注筛选 + { + value: 'remark', + label: '备注', + type: 'text', + placeholder: '请输入备注关键词', + operators: ['contains'], + defaultOperator: 'contains' + }, + // 录像设备 + { + value: 'video_device_id', + label: '录像设备ID', + type: 'text', + placeholder: '请输入录像设备ID', + operators: ['eq', 'contains'], + defaultOperator: 'contains' + } +] + +export function formatReceivingData(list: any[] = []) { + return (list || []).map(item => ({ + ...item, + store_name: item.store?.store_remask || item['store.store_remask'] || '--', + creator_name: (() => { + try { + const s = JSON.parse(item.creator_snapshot || '{}') + return s.name || s.username || item.creator_id || '--' + } catch (e) { + return item.creator_id || '--' + } + })() + , + // 确保总箱数、总托盘数和更新时间字段存在并提供合理默认值 + total_boxes: item.total_boxes ?? item.totalBoxes ?? ((item.details && Array.isArray(item.details)) ? item.details.reduce((sum: number, d: any) => sum + (d.box_count || d.boxes || 0), 0) : 0), + total_pallets: item.total_pallets ?? item.totalPallets ?? ((item.details && Array.isArray(item.details)) ? item.details.reduce((sum: number, d: any) => sum + (d.pallet_count || d.pallets || 0), 0) : 0), + updated_at: item.updated_at || item.updatedAt || item.update_time || item.last_modified || item.modified_at || item.updated || '' + })) +} diff --git a/src/views/system/setting/printStation/components/Printer.vue b/src/views/system/setting/printStation/components/Printer.vue new file mode 100644 index 00000000..a832aeda --- /dev/null +++ b/src/views/system/setting/printStation/components/Printer.vue @@ -0,0 +1,130 @@ + + + + + diff --git a/src/views/system/setting/printStation/components/add.vue b/src/views/system/setting/printStation/components/add.vue new file mode 100644 index 00000000..f0c2779b --- /dev/null +++ b/src/views/system/setting/printStation/components/add.vue @@ -0,0 +1,141 @@ + + + + + \ No newline at end of file diff --git a/src/views/system/setting/printStation/components/expressCompany.vue b/src/views/system/setting/printStation/components/expressCompany.vue new file mode 100644 index 00000000..91a1d6c8 --- /dev/null +++ b/src/views/system/setting/printStation/components/expressCompany.vue @@ -0,0 +1,118 @@ + + + + + diff --git a/src/views/system/setting/printStation/components/info.vue b/src/views/system/setting/printStation/components/info.vue new file mode 100644 index 00000000..2688fbfe --- /dev/null +++ b/src/views/system/setting/printStation/components/info.vue @@ -0,0 +1,439 @@ + + + + + diff --git a/src/views/system/setting/printStation/components/printComputer.vue b/src/views/system/setting/printStation/components/printComputer.vue new file mode 100644 index 00000000..dad7ca9a --- /dev/null +++ b/src/views/system/setting/printStation/components/printComputer.vue @@ -0,0 +1,112 @@ + + + + + diff --git a/src/views/system/setting/printStation/index.vue b/src/views/system/setting/printStation/index.vue new file mode 100644 index 00000000..67c5687e --- /dev/null +++ b/src/views/system/setting/printStation/index.vue @@ -0,0 +1,760 @@ + + + + + \ No newline at end of file diff --git a/src/views/system/setting/printTemplate/components/TemplateEditor.vue b/src/views/system/setting/printTemplate/components/TemplateEditor.vue new file mode 100644 index 00000000..796879f3 --- /dev/null +++ b/src/views/system/setting/printTemplate/components/TemplateEditor.vue @@ -0,0 +1,1668 @@ + + + + + diff --git a/src/views/system/setting/printTemplate/index.vue b/src/views/system/setting/printTemplate/index.vue new file mode 100644 index 00000000..422a4221 --- /dev/null +++ b/src/views/system/setting/printTemplate/index.vue @@ -0,0 +1,253 @@ + + + + + diff --git a/src/views/warehouse/index.vue b/src/views/warehouse/index.vue new file mode 100644 index 00000000..6efde35a --- /dev/null +++ b/src/views/warehouse/index.vue @@ -0,0 +1,8 @@ + + + \ No newline at end of file diff --git a/src/windows.vue b/src/windows.vue new file mode 100644 index 00000000..a346464a --- /dev/null +++ b/src/windows.vue @@ -0,0 +1,1482 @@ + + + + + \ No newline at end of file diff --git a/tsconfig.app.json b/tsconfig.app.json new file mode 100644 index 00000000..c3b60f48 --- /dev/null +++ b/tsconfig.app.json @@ -0,0 +1,19 @@ +{ + "extends": "@vue/tsconfig/tsconfig.dom.json", + "include": ["env.d.ts", "src/**/*", "src/**/*.vue"], + "exclude": ["src/**/__tests__/*"], + "compilerOptions": { + "allowJs": true, + // Extra safety for array and object lookups, but may have false positives. + "noUncheckedIndexedAccess": true, + + // Path mapping for cleaner imports. + "paths": { + "@/*": ["./src/*"] + }, + + // `vue-tsc --build` produces a .tsbuildinfo file for incremental type-checking. + // Specified here to keep it out of the root directory. + "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo" + } +} diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 00000000..13e2d052 --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,15 @@ +{ + "files": [], + "references": [ + { + "path": "./tsconfig.node.json" + }, + { + "path": "./tsconfig.app.json" + } + ], + "compilerOptions": { + "moduleResolution": "node", + "esModuleInterop": true + } +} diff --git a/tsconfig.node.json b/tsconfig.node.json new file mode 100644 index 00000000..59888397 --- /dev/null +++ b/tsconfig.node.json @@ -0,0 +1,28 @@ +// TSConfig for modules that run in Node.js environment via either transpilation or type-stripping. +{ + "extends": "@tsconfig/node24/tsconfig.json", + "include": [ + "vite.config.*", + "vitest.config.*", + "cypress.config.*", + "nightwatch.conf.*", + "playwright.config.*", + "eslint.config.*" + ], + "compilerOptions": { + // Most tools use transpilation instead of Node.js's native type-stripping. + // Bundler mode provides a smoother developer experience. + "module": "preserve", + "moduleResolution": "bundler", + + // Include Node.js types and avoid accidentally including other `@types/*` packages. + "types": ["node"], + + // Disable emitting output during `vue-tsc --build`, which is used for type-checking only. + "noEmit": true, + + // `vue-tsc --build` produces a .tsbuildinfo file for incremental type-checking. + // Specified here to keep it out of the root directory. + "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo" + } +} diff --git a/vite.config.ts b/vite.config.ts new file mode 100644 index 00000000..89ecd617 --- /dev/null +++ b/vite.config.ts @@ -0,0 +1,36 @@ +import { fileURLToPath, URL } from 'node:url' +import path from 'path' +import { defineConfig } from 'vite' +import vue from '@vitejs/plugin-vue' +import vueDevTools from 'vite-plugin-vue-devtools' +import { createSvgIconsPlugin } from 'vite-plugin-svg-icons' + +// https://vite.dev/config/ +export default defineConfig({ + plugins: [ + vue(), + vueDevTools(), + createSvgIconsPlugin({ + // Specify the icon folder to be cached + iconDirs: [path.resolve(process.cwd(), 'src/icons/svg')], + // Specify symbolId format + symbolId: 'icon-[dir]-[name]', + }), + ], + server: { + port: 5174, + host: '0.0.0.0', + proxy: { + '/dev-api': { + target: 'http://localhost:9528', // Assuming Vue 2 backend is running here, user can change + changeOrigin: true, + rewrite: (path) => path.replace(/^\/dev-api/, '') + } + } + }, + resolve: { + alias: { + '@': fileURLToPath(new URL('./src', import.meta.url)) + }, + }, +})