diff --git a/.gitignore b/.gitignore index 5ab3dde..c839b08 100644 --- a/.gitignore +++ b/.gitignore @@ -31,10 +31,6 @@ data/exports/* !data/temp/.gitkeep !data/exports/.gitkeep -# Built static assets generated by frontend builds -pages/imagestudio/assets/ -web/assets/ - # Local machine/editor noise .env .env.* diff --git a/adapters/webui_adapter.py b/adapters/webui_adapter.py index 9526c2b..a8d8ef7 100644 --- a/adapters/webui_adapter.py +++ b/adapters/webui_adapter.py @@ -1 +1,14 @@ -"""AstrBot WebUI adapter placeholder.""" +"""AstrBot WebUI adapter helpers. + +The actual AstrBot runtime performs route registration. This adapter keeps the +ImageStudio mount contract in one place so the runtime layer can wire it +without starting a standalone server. +""" + +from __future__ import annotations + +from backend.services.web_hosting_service import WebHostingService + + +def get_web_mount_manifest() -> dict: + return WebHostingService().manifest() diff --git a/backend/routes/web_routes.py b/backend/routes/web_routes.py new file mode 100644 index 0000000..c5fa4e3 --- /dev/null +++ b/backend/routes/web_routes.py @@ -0,0 +1,23 @@ +"""Web UI route helpers.""" + +from __future__ import annotations + +from typing import Any + +from backend.routes.common import handle_request +from backend.services.web_hosting_service import WebHostingService +from core.identity import RequestContext +from core.security import require_authenticated + + +def get_web_manifest( + ctx: RequestContext, + service: WebHostingService | None = None, +) -> dict: + web_service = service or WebHostingService() + + def action() -> dict[str, Any]: + require_authenticated(ctx) + return web_service.manifest() + + return handle_request(ctx, action) diff --git a/backend/services/settings_service.py b/backend/services/settings_service.py index feb9117..3dc779c 100644 --- a/backend/services/settings_service.py +++ b/backend/services/settings_service.py @@ -193,7 +193,12 @@ def _mask_sensitive(value: Any, path: str = "") -> Any: masked: dict[str, Any] = {} for key, child in value.items(): child_path = f"{path}.{key}" if path else str(key) - masked[str(key)] = "***MASKED***" if _is_sensitive_key(child_path) and child else _mask_sensitive(child, child_path) + if _is_sensitive_key(child_path) and child: + masked[str(key)] = "***MASKED***" + elif _is_path_key(child_path) and _is_absolute_path_value(child): + masked[str(key)] = "***PATH***" + else: + masked[str(key)] = _mask_sensitive(child, child_path) return masked if isinstance(value, list): return [_mask_sensitive(item, path) for item in value] @@ -218,6 +223,15 @@ def _is_sensitive_key(path: str) -> bool: return any(part in lowered for part in SENSITIVE_KEY_PARTS) +def _is_path_key(path: str) -> bool: + lowered = path.lower() + return lowered.endswith("_path") or lowered.endswith(".path") + + +def _is_absolute_path_value(value: Any) -> bool: + return isinstance(value, str) and Path(value).is_absolute() + + def _resolve_path(path: str | Path) -> Path: resolved = Path(path) if not resolved.is_absolute(): diff --git a/backend/services/web_hosting_service.py b/backend/services/web_hosting_service.py new file mode 100644 index 0000000..6dbfcbc --- /dev/null +++ b/backend/services/web_hosting_service.py @@ -0,0 +1,66 @@ +"""Web UI mount metadata and static asset resolution.""" + +from __future__ import annotations + +import mimetypes +from pathlib import Path +from typing import Any + +from backend.dto.common import ApiError, ErrorCode +from database.db_helper import REPO_ROOT + + +PLUGIN_PAGE_DIR = REPO_ROOT / "pages" / "imagestudio" +STANDALONE_WEB_DIR = REPO_ROOT / "web" +PLUGIN_PAGE_URL = "/plugin/imagestudio" +STANDALONE_WEB_URL = "/api/v1/plugins/extensions/astrbot_plugin_imagestudio/web" + + +class WebHostingService: + def __init__( + self, + plugin_page_dir: Path = PLUGIN_PAGE_DIR, + standalone_web_dir: Path = STANDALONE_WEB_DIR, + ): + self.plugin_page_dir = plugin_page_dir + self.standalone_web_dir = standalone_web_dir + + def manifest(self) -> dict[str, Any]: + return { + "plugin_page": { + "url": PLUGIN_PAGE_URL, + "built": (self.plugin_page_dir / "index.html").exists(), + }, + "standalone_web": { + "url": STANDALONE_WEB_URL, + "assets_url": f"{STANDALONE_WEB_URL}/assets", + "built": (self.standalone_web_dir / "index.html").exists(), + }, + } + + def resolve_standalone_asset(self, relative_path: str = "index.html") -> dict[str, Any]: + asset_path = self._resolve(self.standalone_web_dir, relative_path or "index.html") + return _asset_metadata(asset_path) + + def resolve_plugin_page_asset(self, relative_path: str = "index.html") -> dict[str, Any]: + asset_path = self._resolve(self.plugin_page_dir, relative_path or "index.html") + return _asset_metadata(asset_path) + + def _resolve(self, root: Path, relative_path: str) -> Path: + root = root.resolve() + candidate = (root / relative_path).resolve() + if candidate != root and root not in candidate.parents: + raise ApiError(ErrorCode.FORBIDDEN, "web asset escapes its root", {"asset": relative_path}) + if candidate.is_dir(): + candidate = candidate / "index.html" + if not candidate.exists() or not candidate.is_file(): + raise ApiError(ErrorCode.RESOURCE_NOT_FOUND, "web asset not built", {"asset": relative_path}) + return candidate + + +def _asset_metadata(path: Path) -> dict[str, Any]: + return { + "content_type": mimetypes.guess_type(path.name)[0] or "application/octet-stream", + "size_bytes": path.stat().st_size, + "etag": f"{path.stat().st_mtime_ns:x}-{path.stat().st_size:x}", + } diff --git a/frontend/package-lock.json b/frontend/package-lock.json new file mode 100644 index 0000000..7ff4d2b --- /dev/null +++ b/frontend/package-lock.json @@ -0,0 +1,1533 @@ +{ + "name": "astrbot-plugin-imagestudio-frontend", + "version": "3.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "astrbot-plugin-imagestudio-frontend", + "version": "3.0.0", + "dependencies": { + "@vitejs/plugin-vue": "^5.2.0", + "pinia": "^2.3.0", + "typescript": "^5.7.0", + "vite": "^6.0.0", + "vue": "^3.5.0", + "vue-router": "^4.5.0", + "vue-tsc": "^2.2.0" + }, + "devDependencies": {} + }, + "node_modules/@babel/helper-string-parser": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.29.7.tgz", + "integrity": "sha512-Pb5ijPrZ89GDH8223L4UP8i6QApWxs04RbPQJTeWDV0/keR2E36MeKnyr6LYmUUvqRRI+Iv87SuF1W6ErINzYw==", + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.29.7.tgz", + "integrity": "sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg==", + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/parser": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.7.tgz", + "integrity": "sha512-hnORnjP/1P/zFEndoeX+n+t1RwWRJiJpM/jO7FW32Kn9r5+sJB2JWOdYo4L6k78j15eCwY3Gm/7364B1EMwtNg==", + "license": "MIT", + "dependencies": { + "@babel/types": "^7.29.7" + }, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/types": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.7.tgz", + "integrity": "sha512-4zBIxpPzowiZpusoFkyGVwakdRJUyuH5PxQ/PrqghfdFWWasvnCdPfQXHrenDai+gyLARulZjZowCOj6fjT4pA==", + "license": "MIT", + "dependencies": { + "@babel/helper-string-parser": "^7.29.7", + "@babel/helper-validator-identifier": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@esbuild/aix-ppc64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.12.tgz", + "integrity": "sha512-Hhmwd6CInZ3dwpuGTF8fJG6yoWmsToE+vYgD4nytZVxcu1ulHpUQRAB1UJ8+N1Am3Mz4+xOByoQoSZf4D+CpkA==", + "cpu": [ + "ppc64" + ], + "license": "MIT", + "optional": true, + "os": [ + "aix" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.12.tgz", + "integrity": "sha512-VJ+sKvNA/GE7Ccacc9Cha7bpS8nyzVv0jdVgwNDaR4gDMC/2TTRc33Ip8qrNYUcpkOHUT5OZ0bUcNNVZQ9RLlg==", + "cpu": [ + "arm" + ], + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.12.tgz", + "integrity": "sha512-6AAmLG7zwD1Z159jCKPvAxZd4y/VTO0VkprYy+3N2FtJ8+BQWFXU+OxARIwA46c5tdD9SsKGZ/1ocqBS/gAKHg==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.12.tgz", + "integrity": "sha512-5jbb+2hhDHx5phYR2By8GTWEzn6I9UqR11Kwf22iKbNpYrsmRB18aX/9ivc5cabcUiAT/wM+YIZ6SG9QO6a8kg==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.12.tgz", + "integrity": "sha512-N3zl+lxHCifgIlcMUP5016ESkeQjLj/959RxxNYIthIg+CQHInujFuXeWbWMgnTo4cp5XVHqFPmpyu9J65C1Yg==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.12.tgz", + "integrity": "sha512-HQ9ka4Kx21qHXwtlTUVbKJOAnmG1ipXhdWTmNXiPzPfWKpXqASVcWdnf2bnL73wgjNrFXAa3yYvBSd9pzfEIpA==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.12.tgz", + "integrity": "sha512-gA0Bx759+7Jve03K1S0vkOu5Lg/85dou3EseOGUes8flVOGxbhDDh/iZaoek11Y8mtyKPGF3vP8XhnkDEAmzeg==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.12.tgz", + "integrity": "sha512-TGbO26Yw2xsHzxtbVFGEXBFH0FRAP7gtcPE7P5yP7wGy7cXK2oO7RyOhL5NLiqTlBh47XhmIUXuGciXEqYFfBQ==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.12.tgz", + "integrity": "sha512-lPDGyC1JPDou8kGcywY0YILzWlhhnRjdof3UlcoqYmS9El818LLfJJc3PXXgZHrHCAKs/Z2SeZtDJr5MrkxtOw==", + "cpu": [ + "arm" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.12.tgz", + "integrity": "sha512-8bwX7a8FghIgrupcxb4aUmYDLp8pX06rGh5HqDT7bB+8Rdells6mHvrFHHW2JAOPZUbnjUpKTLg6ECyzvas2AQ==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ia32": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.12.tgz", + "integrity": "sha512-0y9KrdVnbMM2/vG8KfU0byhUN+EFCny9+8g202gYqSSVMonbsCfLjUO+rCci7pM0WBEtz+oK/PIwHkzxkyharA==", + "cpu": [ + "ia32" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-loong64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.12.tgz", + "integrity": "sha512-h///Lr5a9rib/v1GGqXVGzjL4TMvVTv+s1DPoxQdz7l/AYv6LDSxdIwzxkrPW438oUXiDtwM10o9PmwS/6Z0Ng==", + "cpu": [ + "loong64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-mips64el": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.12.tgz", + "integrity": "sha512-iyRrM1Pzy9GFMDLsXn1iHUm18nhKnNMWscjmp4+hpafcZjrr2WbT//d20xaGljXDBYHqRcl8HnxbX6uaA/eGVw==", + "cpu": [ + "mips64el" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ppc64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.12.tgz", + "integrity": "sha512-9meM/lRXxMi5PSUqEXRCtVjEZBGwB7P/D4yT8UG/mwIdze2aV4Vo6U5gD3+RsoHXKkHCfSxZKzmDssVlRj1QQA==", + "cpu": [ + "ppc64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-riscv64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.12.tgz", + "integrity": "sha512-Zr7KR4hgKUpWAwb1f3o5ygT04MzqVrGEGXGLnj15YQDJErYu/BGg+wmFlIDOdJp0PmB0lLvxFIOXZgFRrdjR0w==", + "cpu": [ + "riscv64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-s390x": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.12.tgz", + "integrity": "sha512-MsKncOcgTNvdtiISc/jZs/Zf8d0cl/t3gYWX8J9ubBnVOwlk65UIEEvgBORTiljloIWnBzLs4qhzPkJcitIzIg==", + "cpu": [ + "s390x" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.12.tgz", + "integrity": "sha512-uqZMTLr/zR/ed4jIGnwSLkaHmPjOjJvnm6TVVitAa08SLS9Z0VM8wIRx7gWbJB5/J54YuIMInDquWyYvQLZkgw==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.12.tgz", + "integrity": "sha512-xXwcTq4GhRM7J9A8Gv5boanHhRa/Q9KLVmcyXHCTaM4wKfIpWkdXiMog/KsnxzJ0A1+nD+zoecuzqPmCRyBGjg==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.12.tgz", + "integrity": "sha512-Ld5pTlzPy3YwGec4OuHh1aCVCRvOXdH8DgRjfDy/oumVovmuSzWfnSJg+VtakB9Cm0gxNO9BzWkj6mtO1FMXkQ==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.12.tgz", + "integrity": "sha512-fF96T6KsBo/pkQI950FARU9apGNTSlZGsv1jZBAlcLL1MLjLNIWPBkj5NlSz8aAzYKg+eNqknrUJ24QBybeR5A==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.12.tgz", + "integrity": "sha512-MZyXUkZHjQxUvzK7rN8DJ3SRmrVrke8ZyRusHlP+kuwqTcfWLyqMOE3sScPPyeIXN/mDJIfGXvcMqCgYKekoQw==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openharmony-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.25.12.tgz", + "integrity": "sha512-rm0YWsqUSRrjncSXGA7Zv78Nbnw4XL6/dzr20cyrQf7ZmRcsovpcRBdhD43Nuk3y7XIoW2OxMVvwuRvk9XdASg==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/sunos-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.12.tgz", + "integrity": "sha512-3wGSCDyuTHQUzt0nV7bocDy72r2lI33QL3gkDNGkod22EsYl04sMf0qLb8luNKTOmgF/eDEDP5BFNwoBKH441w==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.12.tgz", + "integrity": "sha512-rMmLrur64A7+DKlnSuwqUdRKyd3UE7oPJZmnljqEptesKM8wx9J8gx5u0+9Pq0fQQW8vqeKebwNXdfOyP+8Bsg==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-ia32": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.12.tgz", + "integrity": "sha512-HkqnmmBoCbCwxUKKNPBixiWDGCpQGVsrQfJoVGYLPT41XWF8lHuE5N6WhVia2n4o5QK5M4tYr21827fNhi4byQ==", + "cpu": [ + "ia32" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.12.tgz", + "integrity": "sha512-alJC0uCZpTFrSL0CCDjcgleBXPnCrEAhTBILpeAp7M/OFgoqtAetfBzX0xM00MUsVVPpVjlPuMbREqnZCXaTnA==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "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/@rollup/rollup-android-arm-eabi": { + "version": "4.62.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.62.2.tgz", + "integrity": "sha512-6o7ZLZK+BeenkZCFNDXqpbjw9bD6nuWonvS/lwQJp7NoVVxm6p3qE7qQ5jGuBjiFsgvqjD8mZAU5oWxTmbOeOg==", + "cpu": [ + "arm" + ], + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-android-arm64": { + "version": "4.62.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.62.2.tgz", + "integrity": "sha512-BaH7BllCACHoH1LguOU56UItGfUWjujlO65kS9LAodViaN4bwIKd7oeW/ZHJ/4ljr/7MIiENnNy3HJ0zXv8Zkw==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-darwin-arm64": { + "version": "4.62.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.62.2.tgz", + "integrity": "sha512-v39RCCvj4He82I9sFmk+M1VZ0PLM9sfsLVikjfx2hYBNALhrrOR2D3JjQA6AhlaSOgcR+RzrKY7e1+bT6SUO/A==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-darwin-x64": { + "version": "4.62.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.62.2.tgz", + "integrity": "sha512-yl0y2vq3S3lHeuXhEdss6TWfKW8vkujImO12tn4ZkG/4oghr09LvdYm2RElVjokTQiUvDUGXLGsYeLqUMCKpGA==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-freebsd-arm64": { + "version": "4.62.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.62.2.tgz", + "integrity": "sha512-tT4pvt4qXD+vEoezupCWi+a1F0vvDiksiHc+PxRlYTOH1I6/X4id9jPxTP+Fg+545euaFT1jJVs4CEdHZAU1vw==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ] + }, + "node_modules/@rollup/rollup-freebsd-x64": { + "version": "4.62.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.62.2.tgz", + "integrity": "sha512-6nU5F2wCW+qvCBhTn1pdIU3bzsIoF7EUwsCDRxilWGprQR6yd508YnH9+OKFCwpfS8pjZqDUmnCAr7exax0XCg==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ] + }, + "node_modules/@rollup/rollup-linux-arm-gnueabihf": { + "version": "4.62.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.62.2.tgz", + "integrity": "sha512-n1GJHPOvpIfhi3TmrCeh6S6URt9BFCt0KQE3qvexyGCTAKpR4Lg+eWvNZEqu7epxwus/8ElT3hacYEucm49SZg==", + "cpu": [ + "arm" + ], + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm-musleabihf": { + "version": "4.62.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.62.2.tgz", + "integrity": "sha512-JqgflS8wEB+UXV/vS1RpRbifGBeN4D5lz8D8oOFbFZw4vedvdOgCFAjfBmIMdW3yL10XpQQ0Ambepw6MXrhOnA==", + "cpu": [ + "arm" + ], + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-gnu": { + "version": "4.62.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.62.2.tgz", + "integrity": "sha512-wnFJkogWvN4jm/hQRF2UBaeUmk20j5+DmHvoyWii2b8HJDyvz1MF2OU/6ynXt2KR63rbZLWkFpoytpdc/yBuSA==", + "cpu": [ + "arm64" + ], + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-musl": { + "version": "4.62.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.62.2.tgz", + "integrity": "sha512-HVu2bp0zhvJ8xHEV9+UUs7S90VadmBSY3LcIMvozbPo4AuMGDWlz3ymHLHZPX4hR67TKTt8Qp5PJ5RBg/i+RMQ==", + "cpu": [ + "arm64" + ], + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-loong64-gnu": { + "version": "4.62.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.62.2.tgz", + "integrity": "sha512-mQqqAV8QaoSgr9I2fKDLY2BAVvmKjWoGiu/cSYQonsLvtqwEn1E4QYfnCOcp5zoEqNhsDYin1s6jx/VJmrxlZg==", + "cpu": [ + "loong64" + ], + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-loong64-musl": { + "version": "4.62.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.62.2.tgz", + "integrity": "sha512-IxKLoxCQ2IWi6bT2akyDUBGsOImDKB+sPp4EsTmwFQ/fMwpCKm8uLSSgP/Kx/QYUgKis6SEZ5/Nlhup0DIA0PQ==", + "cpu": [ + "loong64" + ], + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-ppc64-gnu": { + "version": "4.62.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.62.2.tgz", + "integrity": "sha512-Mk5ha2RQSgyFfmYYLkBpPnUk8D8FriBxesO1u9O75X0mHgXL1UQcH5Itl2lurWL2tj0RxV9b9tJgipac0hRY9A==", + "cpu": [ + "ppc64" + ], + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-ppc64-musl": { + "version": "4.62.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.62.2.tgz", + "integrity": "sha512-CjvEnqJL/0/TQ3TXX3OPIJ/kmBellrWd4heXUmHeJlTnmwjKpSJzoehLaL6Xk0ZnMHBu9dZuFADNOrtjF4v+2w==", + "cpu": [ + "ppc64" + ], + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-riscv64-gnu": { + "version": "4.62.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.62.2.tgz", + "integrity": "sha512-1SiZbzwdkaDURsew/tSOrooKiYy7EQGT6m8ufavAi9NEyQb/6VuIxFXAL1fqa4iZe3g4NbNk4P7J32z2tw5Mgg==", + "cpu": [ + "riscv64" + ], + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-riscv64-musl": { + "version": "4.62.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.62.2.tgz", + "integrity": "sha512-nQts12zJ3NQRoE6uYljOH89v7szzLDvG2JD/vsX+vGXU8w/At1GowTZ5/7qeFQ8m7L55rpR8Okugnuo5bgjy2Q==", + "cpu": [ + "riscv64" + ], + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-s390x-gnu": { + "version": "4.62.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.62.2.tgz", + "integrity": "sha512-E9/ll019jhPIJgpzfZoIkBGhcz+kKNgVWYRY0zr9srBdPPFVpvOKW8VaJKUbeK+eZXyQF9ltME+Kk6affeaPgg==", + "cpu": [ + "s390x" + ], + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-gnu": { + "version": "4.62.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.62.2.tgz", + "integrity": "sha512-5BqxR/pshjey51iliyzTD5Xi3EN0aLmQ2lZ3lvefVV9c82BvrLo2/6OT55iifpWBufs6kdwWbuOKS841DrmK9A==", + "cpu": [ + "x64" + ], + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-musl": { + "version": "4.62.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.62.2.tgz", + "integrity": "sha512-uNN83XxQrRAh/w0/pmAfibcwyb6YWt4gP+dpnQKPVJshAloQ785ii8CT8ZCIxkGg9opVsvAlGhFitSm6D1Jjpg==", + "cpu": [ + "x64" + ], + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-openbsd-x64": { + "version": "4.62.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-openbsd-x64/-/rollup-openbsd-x64-4.62.2.tgz", + "integrity": "sha512-srjEIxSH3LRnJN6THczDHWQplqEMFiAJrTab0msUryh9kwNpkICf3Ea6q6MN/2cZwRFUNx5w+h6Hpi4QuHS6Zg==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ] + }, + "node_modules/@rollup/rollup-openharmony-arm64": { + "version": "4.62.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.62.2.tgz", + "integrity": "sha512-8hOJnxgbyObnCm5AlRA3A931xX19xq80RjVTKgJOvEKWqJruP/Uf12IbAOaDjjEXYRewwHLfmF0YRIdK3OwKWA==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ] + }, + "node_modules/@rollup/rollup-win32-arm64-msvc": { + "version": "4.62.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.62.2.tgz", + "integrity": "sha512-mmF4AY1i0hG/bLWUctUq59gtmgaSIRa3cu/A3JFRp/sCNEme2bgDEiDS22P9FbnJB8NJNF4jPJiSP5RHQpUTDg==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-ia32-msvc": { + "version": "4.62.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.62.2.tgz", + "integrity": "sha512-DZgkknc6jhHrk46V25vbAM0zZkyP0nSDkJB8/dRkLTxv470dOmWDqGoEJl/9A0dFfS7yE3REOwNDxpHwSLSt0Q==", + "cpu": [ + "ia32" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-x64-gnu": { + "version": "4.62.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.62.2.tgz", + "integrity": "sha512-T6xr6ucWSFto+VGajA8YH26LdpHRuP4YLHEKAtCWvJDOlnmWcDZVCI2Jmjr+IFHDlt2zRaTAKE4tfjTaWLgJBg==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-x64-msvc": { + "version": "4.62.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.62.2.tgz", + "integrity": "sha512-BfzEnDJOt9T8M989/lA37EcJgat01wLRnoi5dQf3QzOH7jzpqTAzdDbVfRljVr5r+jzKqpbHeyOfAaXxAd0PAA==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@types/estree": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.9.tgz", + "integrity": "sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==", + "license": "MIT" + }, + "node_modules/@vitejs/plugin-vue": { + "version": "5.2.4", + "resolved": "https://registry.npmjs.org/@vitejs/plugin-vue/-/plugin-vue-5.2.4.tgz", + "integrity": "sha512-7Yx/SXSOcQq5HiiV3orevHUFn+pmMB4cgbEkDYgnkUWb0WfeQ/wa2yFv6D5ICiCQOVpjA7vYDXrC7AGO8yjDHA==", + "license": "MIT", + "engines": { + "node": "^18.0.0 || >=20.0.0" + }, + "peerDependencies": { + "vite": "^5.0.0 || ^6.0.0", + "vue": "^3.2.25" + } + }, + "node_modules/@volar/language-core": { + "version": "2.4.15", + "resolved": "https://registry.npmjs.org/@volar/language-core/-/language-core-2.4.15.tgz", + "integrity": "sha512-3VHw+QZU0ZG9IuQmzT68IyN4hZNd9GchGPhbD9+pa8CVv7rnoOZwo7T8weIbrRmihqy3ATpdfXFnqRrfPVK6CA==", + "license": "MIT", + "dependencies": { + "@volar/source-map": "2.4.15" + } + }, + "node_modules/@volar/source-map": { + "version": "2.4.15", + "resolved": "https://registry.npmjs.org/@volar/source-map/-/source-map-2.4.15.tgz", + "integrity": "sha512-CPbMWlUN6hVZJYGcU/GSoHu4EnCHiLaXI9n8c9la6RaI9W5JHX+NqG+GSQcB0JdC2FIBLdZJwGsfKyBB71VlTg==", + "license": "MIT" + }, + "node_modules/@volar/typescript": { + "version": "2.4.15", + "resolved": "https://registry.npmjs.org/@volar/typescript/-/typescript-2.4.15.tgz", + "integrity": "sha512-2aZ8i0cqPGjXb4BhkMsPYDkkuc2ZQ6yOpqwAuNwUoncELqoy5fRgOQtLR9gB0g902iS0NAkvpIzs27geVyVdPg==", + "license": "MIT", + "dependencies": { + "@volar/language-core": "2.4.15", + "path-browserify": "^1.0.1", + "vscode-uri": "^3.0.8" + } + }, + "node_modules/@vue/compiler-core": { + "version": "3.5.39", + "resolved": "https://registry.npmjs.org/@vue/compiler-core/-/compiler-core-3.5.39.tgz", + "integrity": "sha512-16KBTEXAJCpDr0mwlw+AZyhu8iyC7R3S2vBwsI7QnWJU6X3WKc9VKeNEZpiMdZ569qWhz9574L3vV55qRL0Vtw==", + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.29.7", + "@vue/shared": "3.5.39", + "entities": "^7.0.1", + "estree-walker": "^2.0.2", + "source-map-js": "^1.2.1" + } + }, + "node_modules/@vue/compiler-dom": { + "version": "3.5.39", + "resolved": "https://registry.npmjs.org/@vue/compiler-dom/-/compiler-dom-3.5.39.tgz", + "integrity": "sha512-oQPigALqYbNxTNPvNgSOe+czwVExfbVF02lz8jP0S3AXJiu3jxYDygNUiqSep4ezzW8XgnubqH63My2A7JR/vg==", + "license": "MIT", + "dependencies": { + "@vue/compiler-core": "3.5.39", + "@vue/shared": "3.5.39" + } + }, + "node_modules/@vue/compiler-sfc": { + "version": "3.5.39", + "resolved": "https://registry.npmjs.org/@vue/compiler-sfc/-/compiler-sfc-3.5.39.tgz", + "integrity": "sha512-d0ki86iOyN8LoZPBmk5SJWNwHP19CnDDCfuo//+2WJa2g5Ke0Jay983PIBIcSSzldC68I8DrD5GrHV3OSDfodg==", + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.29.7", + "@vue/compiler-core": "3.5.39", + "@vue/compiler-dom": "3.5.39", + "@vue/compiler-ssr": "3.5.39", + "@vue/shared": "3.5.39", + "estree-walker": "^2.0.2", + "magic-string": "^0.30.21", + "postcss": "^8.5.15", + "source-map-js": "^1.2.1" + } + }, + "node_modules/@vue/compiler-ssr": { + "version": "3.5.39", + "resolved": "https://registry.npmjs.org/@vue/compiler-ssr/-/compiler-ssr-3.5.39.tgz", + "integrity": "sha512-Ce7/wvwMHai74bdszfXExdazFigYnlF9zgCmEQUcM1j0fOymlouZ7XilTYNo8oUjhlnjYOZbGrcYKuqjz89Ucw==", + "license": "MIT", + "dependencies": { + "@vue/compiler-dom": "3.5.39", + "@vue/shared": "3.5.39" + } + }, + "node_modules/@vue/compiler-vue2": { + "version": "2.7.16", + "resolved": "https://registry.npmjs.org/@vue/compiler-vue2/-/compiler-vue2-2.7.16.tgz", + "integrity": "sha512-qYC3Psj9S/mfu9uVi5WvNZIzq+xnXMhOwbTFKKDD7b1lhpnn71jXSFdTQ+WsIEk0ONCd7VV2IMm7ONl6tbQ86A==", + "license": "MIT", + "dependencies": { + "de-indent": "^1.0.2", + "he": "^1.2.0" + } + }, + "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/language-core": { + "version": "2.2.12", + "resolved": "https://registry.npmjs.org/@vue/language-core/-/language-core-2.2.12.tgz", + "integrity": "sha512-IsGljWbKGU1MZpBPN+BvPAdr55YPkj2nB/TBNGNC32Vy2qLG25DYu/NBN2vNtZqdRbTRjaoYrahLrToim2NanA==", + "license": "MIT", + "dependencies": { + "@volar/language-core": "2.4.15", + "@vue/compiler-dom": "^3.5.0", + "@vue/compiler-vue2": "^2.7.16", + "@vue/shared": "^3.5.0", + "alien-signals": "^1.0.3", + "minimatch": "^9.0.3", + "muggle-string": "^0.4.1", + "path-browserify": "^1.0.1" + }, + "peerDependencies": { + "typescript": "*" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@vue/reactivity": { + "version": "3.5.39", + "resolved": "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.5.39.tgz", + "integrity": "sha512-TpsuBJ9gGlZa5d23XcM2y8EXanz9dZeVDQBXRwzy46ItgvM+rWpzs+UVM0wcRLxGvcav0HE5jz2gNL53xlRAog==", + "license": "MIT", + "dependencies": { + "@vue/shared": "3.5.39" + } + }, + "node_modules/@vue/runtime-core": { + "version": "3.5.39", + "resolved": "https://registry.npmjs.org/@vue/runtime-core/-/runtime-core-3.5.39.tgz", + "integrity": "sha512-9GLtNyRvPAUMbX+7ono0RC2j0guo2LXVi8LvcmAooImACUKm0oFf0jjwbX8/H0AE/t1nxhAkn8RSl9PMCzzxZw==", + "license": "MIT", + "dependencies": { + "@vue/reactivity": "3.5.39", + "@vue/shared": "3.5.39" + } + }, + "node_modules/@vue/runtime-dom": { + "version": "3.5.39", + "resolved": "https://registry.npmjs.org/@vue/runtime-dom/-/runtime-dom-3.5.39.tgz", + "integrity": "sha512-7Y6aAGboKcXAZ3ECuUy7RrS5yy2r47dhTp2SKaJmYxjopImaVFaNa5Ne66NwGovsrxVAl5S5rwc7m22UG7Lmww==", + "license": "MIT", + "dependencies": { + "@vue/reactivity": "3.5.39", + "@vue/runtime-core": "3.5.39", + "@vue/shared": "3.5.39", + "csstype": "^3.2.3" + } + }, + "node_modules/@vue/server-renderer": { + "version": "3.5.39", + "resolved": "https://registry.npmjs.org/@vue/server-renderer/-/server-renderer-3.5.39.tgz", + "integrity": "sha512-yZSakiAGw85rZfG7UM8akMnIF+FmeiNk47uvHf2nVBBSe+dIKUhZuZq9+XgJhbV3nS5Z4ALH23/MpXofW+mbcw==", + "license": "MIT", + "dependencies": { + "@vue/compiler-ssr": "3.5.39", + "@vue/shared": "3.5.39" + }, + "peerDependencies": { + "vue": "3.5.39" + } + }, + "node_modules/@vue/shared": { + "version": "3.5.39", + "resolved": "https://registry.npmjs.org/@vue/shared/-/shared-3.5.39.tgz", + "integrity": "sha512-l1rrBtBfTnmxvtsvdQDXltUUy8S1Y+ZaqdfUzmAnJkTd8Z8rv5v/ytW+TKiqEOWyHPoqtPlNFSs0lhRmYVSHVA==", + "license": "MIT" + }, + "node_modules/alien-signals": { + "version": "1.0.13", + "resolved": "https://registry.npmjs.org/alien-signals/-/alien-signals-1.0.13.tgz", + "integrity": "sha512-OGj9yyTnJEttvzhTUWuscOvtqxq5vrhF7vL9oS0xJ2mK0ItPYP1/y+vCFebfxoEyAz0++1AIwJ5CMr+Fk3nDmg==", + "license": "MIT" + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "license": "MIT" + }, + "node_modules/brace-expansion": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.1.1.tgz", + "integrity": "sha512-WR1cURNjuvBLMZBMbqM0UoE+WAfdUcEV1ccD8PVBVOI+Z3ND4+SZbN8RsfT2bMuG1qwz5RFvPukSZm5fF2D5eA==", + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/csstype": { + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz", + "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==", + "license": "MIT" + }, + "node_modules/de-indent": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/de-indent/-/de-indent-1.0.2.tgz", + "integrity": "sha512-e/1zu3xH5MQryN2zdVaF0OrdNLUbvWxzMbi+iNA6Bky7l1RoP8a2fIbRocyHclXt/arDrrR6lL3TqFD9pMQTsg==", + "license": "MIT" + }, + "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/esbuild": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.12.tgz", + "integrity": "sha512-bbPBYYrtZbkt6Os6FiTLCTFxvq4tt3JKall1vRwshA3fdVztsLAatFaZobhkBC8/BrPetoa0oksYoKXoG4ryJg==", + "hasInstallScript": true, + "license": "MIT", + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=18" + }, + "optionalDependencies": { + "@esbuild/aix-ppc64": "0.25.12", + "@esbuild/android-arm": "0.25.12", + "@esbuild/android-arm64": "0.25.12", + "@esbuild/android-x64": "0.25.12", + "@esbuild/darwin-arm64": "0.25.12", + "@esbuild/darwin-x64": "0.25.12", + "@esbuild/freebsd-arm64": "0.25.12", + "@esbuild/freebsd-x64": "0.25.12", + "@esbuild/linux-arm": "0.25.12", + "@esbuild/linux-arm64": "0.25.12", + "@esbuild/linux-ia32": "0.25.12", + "@esbuild/linux-loong64": "0.25.12", + "@esbuild/linux-mips64el": "0.25.12", + "@esbuild/linux-ppc64": "0.25.12", + "@esbuild/linux-riscv64": "0.25.12", + "@esbuild/linux-s390x": "0.25.12", + "@esbuild/linux-x64": "0.25.12", + "@esbuild/netbsd-arm64": "0.25.12", + "@esbuild/netbsd-x64": "0.25.12", + "@esbuild/openbsd-arm64": "0.25.12", + "@esbuild/openbsd-x64": "0.25.12", + "@esbuild/openharmony-arm64": "0.25.12", + "@esbuild/sunos-x64": "0.25.12", + "@esbuild/win32-arm64": "0.25.12", + "@esbuild/win32-ia32": "0.25.12", + "@esbuild/win32-x64": "0.25.12" + } + }, + "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/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/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "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==", + "license": "MIT", + "bin": { + "he": "bin/he" + } + }, + "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/minimatch": { + "version": "9.0.9", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.9.tgz", + "integrity": "sha512-OBwBN9AL4dqmETlpS2zasx+vTeWclWzkblfZk7KTA5j3jeOONz/tRCnZomUyvNg83wL5Zv9Ss6HMJXAgL8R2Yg==", + "license": "ISC", + "dependencies": { + "brace-expansion": "^2.0.2" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "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.15", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.15.tgz", + "integrity": "sha512-y7Wygv/7mEOvxTuEQDB8StXdMRBWf1kR/tlhAzBRUFkB2jfcLOAxO/SHmOO2zgz1pVgK29/kyupn059/bCHdjA==", + "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/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/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.5", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.5.tgz", + "integrity": "sha512-RvwwcruNjI1ncT5xRakeyS9Lf8lcItv34KD+aif+VH9kduAyfYBipGh12274xtenIPZ119/R9BdTBa8gAwSh0A==", + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/pinia": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/pinia/-/pinia-2.3.1.tgz", + "integrity": "sha512-khUlZSwt9xXCaTbbxFYBKDc/bWAGWJjOgvxETwkTN7KRm66EeT1ZdZj6i2ceh9sP2Pzqsbc704r2yngBrxBVug==", + "license": "MIT", + "dependencies": { + "@vue/devtools-api": "^6.6.3", + "vue-demi": "^0.14.10" + }, + "funding": { + "url": "https://github.com/sponsors/posva" + }, + "peerDependencies": { + "typescript": ">=4.4.4", + "vue": "^2.7.0 || ^3.5.11" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/postcss": { + "version": "8.5.16", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.16.tgz", + "integrity": "sha512-vuwillviilfKZsg0VGj5R/YwwcHx4SLsIOI/7K6mQkWx+l5cUHTjj5g0AasTBcyXsbfTgrwsUNmVUb5xVwyPwg==", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "nanoid": "^3.3.12", + "picocolors": "^1.1.1", + "source-map-js": "^1.2.1" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/rollup": { + "version": "4.62.2", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.62.2.tgz", + "integrity": "sha512-RFnrW4lhXA3s3eqHDZvN654g8OTjzRfqpIRJYczCGB6HzphckVAi/Qh4tbPUbRuDi7s1Llv8g/NspLkttY3gTA==", + "license": "MIT", + "dependencies": { + "@types/estree": "1.0.9" + }, + "bin": { + "rollup": "dist/bin/rollup" + }, + "engines": { + "node": ">=18.0.0", + "npm": ">=8.0.0" + }, + "optionalDependencies": { + "@rollup/rollup-android-arm-eabi": "4.62.2", + "@rollup/rollup-android-arm64": "4.62.2", + "@rollup/rollup-darwin-arm64": "4.62.2", + "@rollup/rollup-darwin-x64": "4.62.2", + "@rollup/rollup-freebsd-arm64": "4.62.2", + "@rollup/rollup-freebsd-x64": "4.62.2", + "@rollup/rollup-linux-arm-gnueabihf": "4.62.2", + "@rollup/rollup-linux-arm-musleabihf": "4.62.2", + "@rollup/rollup-linux-arm64-gnu": "4.62.2", + "@rollup/rollup-linux-arm64-musl": "4.62.2", + "@rollup/rollup-linux-loong64-gnu": "4.62.2", + "@rollup/rollup-linux-loong64-musl": "4.62.2", + "@rollup/rollup-linux-ppc64-gnu": "4.62.2", + "@rollup/rollup-linux-ppc64-musl": "4.62.2", + "@rollup/rollup-linux-riscv64-gnu": "4.62.2", + "@rollup/rollup-linux-riscv64-musl": "4.62.2", + "@rollup/rollup-linux-s390x-gnu": "4.62.2", + "@rollup/rollup-linux-x64-gnu": "4.62.2", + "@rollup/rollup-linux-x64-musl": "4.62.2", + "@rollup/rollup-openbsd-x64": "4.62.2", + "@rollup/rollup-openharmony-arm64": "4.62.2", + "@rollup/rollup-win32-arm64-msvc": "4.62.2", + "@rollup/rollup-win32-ia32-msvc": "4.62.2", + "@rollup/rollup-win32-x64-gnu": "4.62.2", + "@rollup/rollup-win32-x64-msvc": "4.62.2", + "fsevents": "~2.3.2" + } + }, + "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/tinyglobby": { + "version": "0.2.17", + "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.17.tgz", + "integrity": "sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==", + "license": "MIT", + "dependencies": { + "fdir": "^6.5.0", + "picomatch": "^4.0.4" + }, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/SuperchupuDev" + } + }, + "node_modules/typescript": { + "version": "5.9.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz", + "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==", + "license": "Apache-2.0", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/vite": { + "version": "6.4.3", + "resolved": "https://registry.npmjs.org/vite/-/vite-6.4.3.tgz", + "integrity": "sha512-NTKlcQjlAK7MlQoyb6LgaqHc8sso/pVyUJYWMws3jg21uTJw/LddqIFPcPqP6PzpgbIcZyKI85sFE4HBrQDA8A==", + "license": "MIT", + "dependencies": { + "esbuild": "^0.25.0", + "fdir": "^6.4.4", + "picomatch": "^4.0.2", + "postcss": "^8.5.3", + "rollup": "^4.34.9", + "tinyglobby": "^0.2.13" + }, + "bin": { + "vite": "bin/vite.js" + }, + "engines": { + "node": "^18.0.0 || ^20.0.0 || >=22.0.0" + }, + "funding": { + "url": "https://github.com/vitejs/vite?sponsor=1" + }, + "optionalDependencies": { + "fsevents": "~2.3.3" + }, + "peerDependencies": { + "@types/node": "^18.0.0 || ^20.0.0 || >=22.0.0", + "jiti": ">=1.21.0", + "less": "*", + "lightningcss": "^1.21.0", + "sass": "*", + "sass-embedded": "*", + "stylus": "*", + "sugarss": "*", + "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/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==", + "license": "MIT" + }, + "node_modules/vue": { + "version": "3.5.39", + "resolved": "https://registry.npmjs.org/vue/-/vue-3.5.39.tgz", + "integrity": "sha512-xmZCYabFGcirU8r0fTuvl/LICc1OU620rnqepaJDL/a141ZigkG7AyaxQLdqJ02ZRYzWe6YPaDHeQx7MfknQfA==", + "license": "MIT", + "dependencies": { + "@vue/compiler-dom": "3.5.39", + "@vue/compiler-sfc": "3.5.39", + "@vue/runtime-dom": "3.5.39", + "@vue/server-renderer": "3.5.39", + "@vue/shared": "3.5.39" + }, + "peerDependencies": { + "typescript": "*" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "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/vue-router": { + "version": "4.6.4", + "resolved": "https://registry.npmjs.org/vue-router/-/vue-router-4.6.4.tgz", + "integrity": "sha512-Hz9q5sa33Yhduglwz6g9skT8OBPii+4bFn88w6J+J4MfEo4KRRpmiNG/hHHkdbRFlLBOqxN8y8gf2Fb0MTUgVg==", + "license": "MIT", + "dependencies": { + "@vue/devtools-api": "^6.6.4" + }, + "funding": { + "url": "https://github.com/sponsors/posva" + }, + "peerDependencies": { + "vue": "^3.5.0" + } + }, + "node_modules/vue-tsc": { + "version": "2.2.12", + "resolved": "https://registry.npmjs.org/vue-tsc/-/vue-tsc-2.2.12.tgz", + "integrity": "sha512-P7OP77b2h/Pmk+lZdJ0YWs+5tJ6J2+uOQPo7tlBnY44QqQSPYvS0qVT4wqDJgwrZaLe47etJLLQRFia71GYITw==", + "license": "MIT", + "dependencies": { + "@volar/typescript": "2.4.15", + "@vue/language-core": "2.2.12" + }, + "bin": { + "vue-tsc": "bin/vue-tsc.js" + }, + "peerDependencies": { + "typescript": ">=5.0.0" + } + } + } +} diff --git a/frontend/plugin-page/src/App.vue b/frontend/plugin-page/src/App.vue index 6855d06..d4d0862 100644 --- a/frontend/plugin-page/src/App.vue +++ b/frontend/plugin-page/src/App.vue @@ -1,7 +1,112 @@ + + @@ -10,20 +115,164 @@ box-sizing: border-box; min-height: 100vh; padding: 24px; - color: #1f2937; - background: #f8fafc; + color: #1d2430; + background: #f4f6f8; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; } +.topbar, +.activity { + display: grid; + gap: 16px; + grid-template-columns: minmax(0, 1fr) auto; + align-items: start; +} + +h1, +h2, +p { + margin: 0; +} + h1 { - margin: 0 0 8px; font-size: 24px; font-weight: 700; } -p { - margin: 0; - color: #64748b; +h2 { + font-size: 14px; +} + +p, +small, +.empty { + color: #667085; +} + +.actions { + display: flex; + gap: 8px; + align-items: center; +} + +button, +a.primary { + min-height: 36px; + padding: 0 14px; + border: 1px solid #c7d0da; + border-radius: 6px; + color: #1d2430; + background: #ffffff; + font: inherit; + text-decoration: none; + cursor: pointer; +} + +a.primary { + display: inline-flex; + align-items: center; + border-color: #256f5b; + color: #ffffff; + background: #256f5b; +} + +.status { + display: inline-flex; + align-items: center; + min-height: 28px; + padding: 0 10px; + border-radius: 999px; + color: #245347; + background: #dff3eb; + font-size: 13px; +} + +.status[data-state="loading"] { + color: #6b4f1d; + background: #f7e7c5; +} + +.notice { + margin-top: 18px; + padding: 14px; + border: 1px solid #d6dde6; + border-radius: 8px; + background: #ffffff; +} + +.metrics { + display: grid; + grid-template-columns: repeat(5, minmax(120px, 1fr)); + gap: 12px; + margin-top: 20px; +} + +article, +.activity > div { + border: 1px solid #d6dde6; + border-radius: 8px; + background: #ffffff; +} + +article { + display: grid; + gap: 8px; + padding: 16px; +} + +article span { + color: #667085; + font-size: 13px; +} + +article strong { + font-size: 24px; +} + +.activity { + grid-template-columns: repeat(2, minmax(0, 1fr)); + margin-top: 16px; +} + +.activity > div { + padding: 16px; +} + +ul { + display: grid; + gap: 10px; + margin: 12px 0 0; + padding: 0; + list-style: none; +} + +li { + display: flex; + justify-content: space-between; + gap: 12px; + min-width: 0; +} + +li span, +li small { + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} + +@media (max-width: 820px) { + .topbar, + .activity { + grid-template-columns: 1fr; + } + + .actions { + flex-wrap: wrap; + } + + .metrics { + grid-template-columns: repeat(2, minmax(0, 1fr)); + } } diff --git a/frontend/shared/api/client.ts b/frontend/shared/api/client.ts new file mode 100644 index 0000000..469a966 --- /dev/null +++ b/frontend/shared/api/client.ts @@ -0,0 +1,53 @@ +import { API_BASE } from "./endpoints" +import type { ApiResponse } from "../types/api" + +export class ApiClientError extends Error { + readonly code: string + readonly details: Record + + constructor(code: string, message: string, details: Record = {}) { + super(message) + this.name = "ApiClientError" + this.code = code + this.details = details + } +} + +export async function getJson(endpoint: string, query?: Record) { + return request(endpoint, { method: "GET", query }) +} + +export async function postJson(endpoint: string, body?: unknown) { + return request(endpoint, { method: "POST", body }) +} + +export async function request( + endpoint: string, + options: { + method?: "GET" | "POST" | "PUT" | "DELETE" + query?: Record + body?: unknown + } = {}, +): Promise { + const response = await fetch(buildUrl(endpoint, options.query), { + method: options.method ?? "GET", + headers: options.body === undefined ? undefined : { "Content-Type": "application/json" }, + body: options.body === undefined ? undefined : JSON.stringify(options.body), + }) + const payload = (await response.json()) as ApiResponse + if (!payload.ok) { + throw new ApiClientError(payload.error_code, payload.message, payload.details) + } + return payload.data +} + +export function buildUrl(endpoint: string, query?: Record) { + const trimmed = endpoint.replace(/^\/+/, "") + const url = new URL(`${API_BASE}/${trimmed}`, window.location.origin) + for (const [key, value] of Object.entries(query ?? {})) { + if (value !== undefined) { + url.searchParams.set(key, String(value)) + } + } + return `${url.pathname}${url.search}` +} diff --git a/frontend/shared/api/endpoints.ts b/frontend/shared/api/endpoints.ts index c07e7ea..a107b51 100644 --- a/frontend/shared/api/endpoints.ts +++ b/frontend/shared/api/endpoints.ts @@ -10,4 +10,5 @@ export const endpoints = { settingsCurrent: "settings/current", storageStatus: "storage/status", mediaSign: "media/sign", + webManifest: "web/manifest", } as const diff --git a/frontend/shared/types/job.ts b/frontend/shared/types/job.ts new file mode 100644 index 0000000..6ab7db7 --- /dev/null +++ b/frontend/shared/types/job.ts @@ -0,0 +1,20 @@ +export interface GenerationJob { + task_id: string + profile_id?: string | null + workflow_id?: string | null + node_id?: string | null + task_type: string + status: string + model_route?: string | null + progress: number + error_message?: string | null + created_at: string + updated_at: string +} + +export interface JobListResult { + items: GenerationJob[] + total: number + page: number + page_size: number +} diff --git a/frontend/shared/types/profile.ts b/frontend/shared/types/profile.ts new file mode 100644 index 0000000..9045bb1 --- /dev/null +++ b/frontend/shared/types/profile.ts @@ -0,0 +1,17 @@ +export interface CharacterProfile { + profile_id: string + name: string + status: string + avatar_image_uri?: string | null + description?: string | null + default_model_route?: string | null + created_at: string + updated_at: string +} + +export interface ProfileListResult { + items: CharacterProfile[] + total: number + page: number + page_size: number +} diff --git a/frontend/shared/types/settings.ts b/frontend/shared/types/settings.ts new file mode 100644 index 0000000..f6eba35 --- /dev/null +++ b/frontend/shared/types/settings.ts @@ -0,0 +1,19 @@ +export interface SettingsSchema { + schema_version: string + sections: Array<{ + key: string + title: string + fields: Array<{ + key: string + type: string + options: string[] + sensitive: boolean + readonly: boolean + }> + }> +} + +export interface CurrentSettings { + config_path: string + config: Record +} diff --git a/frontend/shared/types/storage.ts b/frontend/shared/types/storage.ts new file mode 100644 index 0000000..0b2b690 --- /dev/null +++ b/frontend/shared/types/storage.ts @@ -0,0 +1,10 @@ +export interface StorageStatus { + roots: Array<{ + root: string + uri_prefix: string + exists: boolean + writable: boolean + bytes: number + }> + total_bytes: number +} diff --git a/frontend/standalone-web/src/App.vue b/frontend/standalone-web/src/App.vue index e530a5d..5c149ff 100644 --- a/frontend/standalone-web/src/App.vue +++ b/frontend/standalone-web/src/App.vue @@ -1,13 +1,182 @@ + + @@ -15,43 +184,212 @@ .web-shell { box-sizing: border-box; display: grid; - grid-template-columns: 240px minmax(0, 1fr); + grid-template-columns: 220px minmax(0, 1fr) 260px; min-height: 100vh; - color: #172033; - background: #f6f7f9; + color: #1b2430; + background: #f5f6f8; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; } -.sidebar { - display: flex; - flex-direction: column; - gap: 8px; - padding: 24px; - border-right: 1px solid #d7dde6; +.sidebar, +.inspector { background: #ffffff; } -.sidebar strong { - font-size: 18px; +.sidebar { + border-right: 1px solid #d9e0e8; + padding: 20px; } -.sidebar span, -.workspace p { - color: #607086; +.inspector { + border-left: 1px solid #d9e0e8; + padding: 20px; +} + +.brand { + display: grid; + gap: 4px; + margin-bottom: 24px; +} + +.brand strong { + font-size: 19px; +} + +.brand span, +p, +dt, +.empty { + color: #667085; +} + +nav { + display: grid; + gap: 6px; +} + +button { + min-height: 36px; + border: 1px solid transparent; + border-radius: 6px; + color: #1b2430; + background: transparent; + font: inherit; + text-align: left; + cursor: pointer; +} + +nav button { + padding: 0 10px; +} + +button.active { + border-color: #b8d8cf; + color: #164f43; + background: #e5f4ef; } .workspace { - padding: 32px; + min-width: 0; + padding: 24px; +} + +.topbar { + display: flex; + justify-content: space-between; + gap: 16px; + align-items: center; +} + +.topbar button { + padding: 0 14px; + border-color: #c7d0da; + background: #ffffff; +} + +h1, +h2, +p, +dl, +dd { + margin: 0; } h1 { - margin: 0 0 8px; - font-size: 28px; + min-height: 30px; + font-size: 26px; } -p { - margin: 0; +h2 { + font-size: 15px; +} + +.notice, +article, +.list-view, +pre { + border: 1px solid #d9e0e8; + border-radius: 8px; + background: #ffffff; +} + +.notice { + margin-top: 18px; + padding: 14px; +} + +.dashboard-grid { + display: grid; + grid-template-columns: repeat(4, minmax(130px, 1fr)); + gap: 12px; + margin-top: 18px; +} + +article { + display: grid; + gap: 8px; + padding: 16px; +} + +article span { + color: #667085; + font-size: 13px; +} + +article strong { + font-size: 24px; +} + +.list-view, +.settings-view { + margin-top: 18px; +} + +.list-view { + padding: 16px; +} + +.list-view header { + display: flex; + justify-content: space-between; +} + +ul { + display: grid; + gap: 10px; + margin: 14px 0 0; + padding: 0; + list-style: none; +} + +li { + display: flex; + justify-content: space-between; + gap: 12px; + min-width: 0; +} + +li strong, +li span { + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} + +.settings-sections { + display: grid; + grid-template-columns: repeat(3, minmax(120px, 1fr)); + gap: 12px; +} + +pre { + overflow: auto; + max-height: 420px; + margin: 12px 0 0; + padding: 14px; + font-size: 12px; +} + +dl { + display: grid; + gap: 12px; + margin-top: 14px; +} + +dl div { + display: flex; + justify-content: space-between; +} + +@media (max-width: 1100px) { + .web-shell { + grid-template-columns: 190px minmax(0, 1fr); + } + + .inspector { + display: none; + } } @media (max-width: 760px) { @@ -61,7 +399,20 @@ p { .sidebar { border-right: 0; - border-bottom: 1px solid #d7dde6; + border-bottom: 1px solid #d9e0e8; + } + + nav { + grid-template-columns: repeat(4, minmax(0, 1fr)); + } + + nav button { + text-align: center; + } + + .dashboard-grid, + .settings-sections { + grid-template-columns: 1fr; } } diff --git a/pages/imagestudio/.gitkeep b/pages/imagestudio/.gitkeep deleted file mode 100644 index 8b13789..0000000 --- a/pages/imagestudio/.gitkeep +++ /dev/null @@ -1 +0,0 @@ - diff --git a/pages/imagestudio/assets/index-DJoLO_ft.js b/pages/imagestudio/assets/index-DJoLO_ft.js new file mode 100644 index 0000000..16aa6b6 --- /dev/null +++ b/pages/imagestudio/assets/index-DJoLO_ft.js @@ -0,0 +1,17 @@ +var qr=Object.defineProperty;var Gr=(e,t,s)=>t in e?qr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;var ls=(e,t,s)=>Gr(e,typeof t!="symbol"?t+"":t,s);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))n(r);new MutationObserver(r=>{for(const i of r)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&n(l)}).observe(document,{childList:!0,subtree:!0});function s(r){const i={};return r.integrity&&(i.integrity=r.integrity),r.referrerPolicy&&(i.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?i.credentials="include":r.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(r){if(r.ep)return;r.ep=!0;const i=s(r);fetch(r.href,i)}})();/** +* @vue/shared v3.5.39 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function Fs(e){const t=Object.create(null);for(const s of e.split(","))t[s]=1;return s=>s in t}const q={},nt=[],Re=()=>{},Hn=()=>!1,zt=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Xt=e=>e.startsWith("onUpdate:"),Q=Object.assign,Ds=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},Jr=Object.prototype.hasOwnProperty,H=(e,t)=>Jr.call(e,t),M=Array.isArray,rt=e=>Pt(e)==="[object Map]",Ln=e=>Pt(e)==="[object Set]",rn=e=>Pt(e)==="[object Date]",I=e=>typeof e=="function",z=e=>typeof e=="string",Fe=e=>typeof e=="symbol",B=e=>e!==null&&typeof e=="object",Nn=e=>(B(e)||I(e))&&I(e.then)&&I(e.catch),Bn=Object.prototype.toString,Pt=e=>Bn.call(e),Yr=e=>Pt(e).slice(8,-1),Kn=e=>Pt(e)==="[object Object]",js=e=>z(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,mt=Fs(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Zt=e=>{const t=Object.create(null);return(s=>t[s]||(t[s]=e(s)))},zr=/-\w/g,be=Zt(e=>e.replace(zr,t=>t.slice(1).toUpperCase())),Xr=/\B([A-Z])/g,et=Zt(e=>e.replace(Xr,"-$1").toLowerCase()),Un=Zt(e=>e.charAt(0).toUpperCase()+e.slice(1)),os=Zt(e=>e?`on${Un(e)}`:""),Me=(e,t)=>!Object.is(e,t),fs=(e,...t)=>{for(let s=0;s{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:s})},Zr=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let ln;const kt=()=>ln||(ln=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function $s(e){if(M(e)){const t={};for(let s=0;s{if(s){const n=s.split(Qr);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Hs(e){let t="";if(z(e))t=e;else if(M(e))for(let s=0;s!!(e&&e.__v_isRef===!0),le=e=>z(e)?e:e==null?"":M(e)||B(e)&&(e.toString===Bn||!I(e.toString))?qn(e)?le(e.value):JSON.stringify(e,Gn,2):String(e),Gn=(e,t)=>qn(t)?Gn(e,t.value):rt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[n,r],i)=>(s[cs(n,i)+" =>"]=r,s),{})}:Ln(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>cs(s))}:Fe(t)?cs(t):B(t)&&!M(t)&&!Kn(t)?String(t):t,cs=(e,t="")=>{var s;return Fe(e)?`Symbol(${(s=e.description)!=null?s:t})`:e};/** +* @vue/reactivity v3.5.39 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let k;class ii{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&k&&(k.active?(this.parent=k,this.index=(k.scopes||(k.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t0&&--this._on===0){if(k===this)k=this.prevScope;else{let t=k;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let s,n;for(s=0,n=this.effects.length;s0)return;if(yt){let t=yt;for(yt=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;bt;){let t=bt;for(bt=void 0;t;){const s=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=s}}if(e)throw e}function Xn(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Zn(e){let t,s=e.depsTail,n=s;for(;n;){const r=n.prevDep;n.version===-1?(n===s&&(s=r),Ks(n),oi(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=r}e.deps=t,e.depsTail=s}function xs(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(kn(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function kn(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Ct)||(e.globalVersion=Ct,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!xs(e))))return;e.flags|=2;const t=e.dep,s=W,n=ye;W=e,ye=!0;try{Xn(e);const r=e.fn(e._value);(t.version===0||Me(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{W=s,ye=n,Zn(e),e.flags&=-3}}function Ks(e,t=!1){const{dep:s,prevSub:n,nextSub:r}=e;if(n&&(n.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=n,e.nextSub=void 0),s.subs===e&&(s.subs=n,!n&&s.computed)){s.computed.flags&=-5;for(let i=s.computed.deps;i;i=i.nextDep)Ks(i,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function oi(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let ye=!0;const Qn=[];function De(){Qn.push(ye),ye=!1}function je(){const e=Qn.pop();ye=e===void 0?!0:e}function on(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=W;W=void 0;try{t()}finally{W=s}}}let Ct=0;class fi{constructor(t,s){this.sub=t,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Us{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!W||!ye||W===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==W)s=this.activeLink=new fi(W,this),W.deps?(s.prevDep=W.depsTail,W.depsTail.nextDep=s,W.depsTail=s):W.deps=W.depsTail=s,er(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const n=s.nextDep;n.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=n),s.prevDep=W.depsTail,s.nextDep=void 0,W.depsTail.nextDep=s,W.depsTail=s,W.deps===s&&(W.deps=n)}return s}trigger(t){this.version++,Ct++,this.notify(t)}notify(t){Ns();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{Bs()}}}function er(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)er(n)}const s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}const Ss=new WeakMap,ke=Symbol(""),ws=Symbol(""),Tt=Symbol("");function ee(e,t,s){if(ye&&W){let n=Ss.get(e);n||Ss.set(e,n=new Map);let r=n.get(s);r||(n.set(s,r=new Us),r.map=n,r.key=s),r.track()}}function Ne(e,t,s,n,r,i){const l=Ss.get(e);if(!l){Ct++;return}const o=c=>{c&&c.trigger()};if(Ns(),t==="clear")l.forEach(o);else{const c=M(e),d=c&&js(s);if(c&&s==="length"){const a=Number(n);l.forEach((p,w)=>{(w==="length"||w===Tt||!Fe(w)&&w>=a)&&o(p)})}else switch((s!==void 0||l.has(void 0))&&o(l.get(s)),d&&o(l.get(Tt)),t){case"add":c?d&&o(l.get("length")):(o(l.get(ke)),rt(e)&&o(l.get(ws)));break;case"delete":c||(o(l.get(ke)),rt(e)&&o(l.get(ws)));break;case"set":rt(e)&&o(l.get(ke));break}}Bs()}function tt(e){const t=$(e);return t===e?t:(ee(t,"iterate",Tt),pe(e)?t:t.map(ve))}function Qt(e){return ee(e=$(e),"iterate",Tt),e}function Ae(e,t){return Ke(e)?ot(Qe(e)?ve(t):t):ve(t)}const ci={__proto__:null,[Symbol.iterator](){return as(this,Symbol.iterator,e=>Ae(this,e))},concat(...e){return tt(this).concat(...e.map(t=>M(t)?tt(t):t))},entries(){return as(this,"entries",e=>(e[1]=Ae(this,e[1]),e))},every(e,t){return $e(this,"every",e,t,void 0,arguments)},filter(e,t){return $e(this,"filter",e,t,s=>s.map(n=>Ae(this,n)),arguments)},find(e,t){return $e(this,"find",e,t,s=>Ae(this,s),arguments)},findIndex(e,t){return $e(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return $e(this,"findLast",e,t,s=>Ae(this,s),arguments)},findLastIndex(e,t){return $e(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return $e(this,"forEach",e,t,void 0,arguments)},includes(...e){return ds(this,"includes",e)},indexOf(...e){return ds(this,"indexOf",e)},join(e){return tt(this).join(e)},lastIndexOf(...e){return ds(this,"lastIndexOf",e)},map(e,t){return $e(this,"map",e,t,void 0,arguments)},pop(){return ht(this,"pop")},push(...e){return ht(this,"push",e)},reduce(e,...t){return fn(this,"reduce",e,t)},reduceRight(e,...t){return fn(this,"reduceRight",e,t)},shift(){return ht(this,"shift")},some(e,t){return $e(this,"some",e,t,void 0,arguments)},splice(...e){return ht(this,"splice",e)},toReversed(){return tt(this).toReversed()},toSorted(e){return tt(this).toSorted(e)},toSpliced(...e){return tt(this).toSpliced(...e)},unshift(...e){return ht(this,"unshift",e)},values(){return as(this,"values",e=>Ae(this,e))}};function as(e,t,s){const n=Qt(e),r=n[t]();return n!==e&&!pe(e)&&(r._next=r.next,r.next=()=>{const i=r._next();return i.done||(i.value=s(i.value)),i}),r}const ui=Array.prototype;function $e(e,t,s,n,r,i){const l=Qt(e),o=l!==e&&!pe(e),c=l[t];if(c!==ui[t]){const p=c.apply(e,i);return o?ve(p):p}let d=s;l!==e&&(o?d=function(p,w){return s.call(this,Ae(e,p),w,e)}:s.length>2&&(d=function(p,w){return s.call(this,p,w,e)}));const a=c.call(l,d,n);return o&&r?r(a):a}function fn(e,t,s,n){const r=Qt(e),i=r!==e&&!pe(e);let l=s,o=!1;r!==e&&(i?(o=n.length===0,l=function(d,a,p){return o&&(o=!1,d=Ae(e,d)),s.call(this,d,Ae(e,a),p,e)}):s.length>3&&(l=function(d,a,p){return s.call(this,d,a,p,e)}));const c=r[t](l,...n);return o?Ae(e,c):c}function ds(e,t,s){const n=$(e);ee(n,"iterate",Tt);const r=n[t](...s);return(r===-1||r===!1)&&Gs(s[0])?(s[0]=$(s[0]),n[t](...s)):r}function ht(e,t,s=[]){De(),Ns();const n=$(e)[t].apply(e,s);return Bs(),je(),n}const ai=Fs("__proto__,__v_isRef,__isVue"),tr=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Fe));function di(e){Fe(e)||(e=String(e));const t=$(this);return ee(t,"has",e),t.hasOwnProperty(e)}class sr{constructor(t=!1,s=!1){this._isReadonly=t,this._isShallow=s}get(t,s,n){if(s==="__v_skip")return t.__v_skip;const r=this._isReadonly,i=this._isShallow;if(s==="__v_isReactive")return!r;if(s==="__v_isReadonly")return r;if(s==="__v_isShallow")return i;if(s==="__v_raw")return n===(r?i?Si:lr:i?ir:rr).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const l=M(t);if(!r){let c;if(l&&(c=ci[s]))return c;if(s==="hasOwnProperty")return di}const o=Reflect.get(t,s,te(t)?t:n);if((Fe(s)?tr.has(s):ai(s))||(r||ee(t,"get",s),i))return o;if(te(o)){const c=l&&js(s)?o:o.value;return r&&B(c)?Ts(c):c}return B(o)?r?Ts(o):Ws(o):o}}class nr extends sr{constructor(t=!1){super(!1,t)}set(t,s,n,r){let i=t[s];const l=M(t)&&js(s);if(!this._isShallow){const d=Ke(i);if(!pe(n)&&!Ke(n)&&(i=$(i),n=$(n)),!l&&te(i)&&!te(n))return d||(i.value=n),!0}const o=l?Number(s)e,$t=e=>Reflect.getPrototypeOf(e);function mi(e,t,s){return function(...n){const r=this.__v_raw,i=$(r),l=rt(i),o=e==="entries"||e===Symbol.iterator&&l,c=e==="keys"&&l,d=r[e](...n),a=s?Cs:t?ot:ve;return!t&&ee(i,"iterate",c?ws:ke),Q(Object.create(d),{next(){const{value:p,done:w}=d.next();return w?{value:p,done:w}:{value:o?[a(p[0]),a(p[1])]:a(p),done:w}}})}}function Ht(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function bi(e,t){const s={get(r){const i=this.__v_raw,l=$(i),o=$(r);e||(Me(r,o)&&ee(l,"get",r),ee(l,"get",o));const{has:c}=$t(l),d=t?Cs:e?ot:ve;if(c.call(l,r))return d(i.get(r));if(c.call(l,o))return d(i.get(o));i!==l&&i.get(r)},get size(){const r=this.__v_raw;return!e&&ee($(r),"iterate",ke),r.size},has(r){const i=this.__v_raw,l=$(i),o=$(r);return e||(Me(r,o)&&ee(l,"has",r),ee(l,"has",o)),r===o?i.has(r):i.has(r)||i.has(o)},forEach(r,i){const l=this,o=l.__v_raw,c=$(o),d=t?Cs:e?ot:ve;return!e&&ee(c,"iterate",ke),o.forEach((a,p)=>r.call(i,d(a),d(p),l))}};return Q(s,e?{add:Ht("add"),set:Ht("set"),delete:Ht("delete"),clear:Ht("clear")}:{add(r){const i=$(this),l=$t(i),o=$(r),c=!t&&!pe(r)&&!Ke(r)?o:r;return l.has.call(i,c)||Me(r,c)&&l.has.call(i,r)||Me(o,c)&&l.has.call(i,o)||(i.add(c),Ne(i,"add",c,c)),this},set(r,i){!t&&!pe(i)&&!Ke(i)&&(i=$(i));const l=$(this),{has:o,get:c}=$t(l);let d=o.call(l,r);d||(r=$(r),d=o.call(l,r));const a=c.call(l,r);return l.set(r,i),d?Me(i,a)&&Ne(l,"set",r,i):Ne(l,"add",r,i),this},delete(r){const i=$(this),{has:l,get:o}=$t(i);let c=l.call(i,r);c||(r=$(r),c=l.call(i,r)),o&&o.call(i,r);const d=i.delete(r);return c&&Ne(i,"delete",r,void 0),d},clear(){const r=$(this),i=r.size!==0,l=r.clear();return i&&Ne(r,"clear",void 0,void 0),l}}),["keys","values","entries",Symbol.iterator].forEach(r=>{s[r]=mi(r,e,t)}),s}function Vs(e,t){const s=bi(e,t);return(n,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?n:Reflect.get(H(s,r)&&r in n?s:n,r,i)}const yi={get:Vs(!1,!1)},vi={get:Vs(!1,!0)},xi={get:Vs(!0,!1)};const rr=new WeakMap,ir=new WeakMap,lr=new WeakMap,Si=new WeakMap;function wi(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ws(e){return Ke(e)?e:qs(e,!1,pi,yi,rr)}function Ci(e){return qs(e,!1,_i,vi,ir)}function Ts(e){return qs(e,!0,gi,xi,lr)}function qs(e,t,s,n,r){if(!B(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const i=r.get(e);if(i)return i;const l=wi(Yr(e));if(l===0)return e;const o=new Proxy(e,l===2?n:s);return r.set(e,o),o}function Qe(e){return Ke(e)?Qe(e.__v_raw):!!(e&&e.__v_isReactive)}function Ke(e){return!!(e&&e.__v_isReadonly)}function pe(e){return!!(e&&e.__v_isShallow)}function Gs(e){return e?!!e.__v_raw:!1}function $(e){const t=e&&e.__v_raw;return t?$(t):e}function Ti(e){return!H(e,"__v_skip")&&Object.isExtensible(e)&&Vn(e,"__v_skip",!0),e}const ve=e=>B(e)?Ws(e):e,ot=e=>B(e)?Ts(e):e;function te(e){return e?e.__v_isRef===!0:!1}function Lt(e){return Ei(e,!1)}function Ei(e,t){return te(e)?e:new Oi(e,t)}class Oi{constructor(t,s){this.dep=new Us,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?t:$(t),this._value=s?t:ve(t),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(t){const s=this._rawValue,n=this.__v_isShallow||pe(t)||Ke(t);t=n?t:$(t),Me(t,s)&&(this._rawValue=t,this._value=n?t:ve(t),this.dep.trigger())}}function Ai(e){return te(e)?e.value:e}const Pi={get:(e,t,s)=>t==="__v_raw"?e:Ai(Reflect.get(e,t,s)),set:(e,t,s,n)=>{const r=e[t];return te(r)&&!te(s)?(r.value=s,!0):Reflect.set(e,t,s,n)}};function or(e){return Qe(e)?e:new Proxy(e,Pi)}class Mi{constructor(t,s,n){this.fn=t,this.setter=s,this._value=void 0,this.dep=new Us(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Ct-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&W!==this)return zn(this,!0),!0}get value(){const t=this.dep.track();return kn(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Ii(e,t,s=!1){let n,r;return I(e)?n=e:(n=e.get,r=e.set),new Mi(n,r,s)}const Nt={},Ut=new WeakMap;let Ze;function Ri(e,t=!1,s=Ze){if(s){let n=Ut.get(s);n||Ut.set(s,n=[]),n.push(e)}}function Fi(e,t,s=q){const{immediate:n,deep:r,once:i,scheduler:l,augmentJob:o,call:c}=s,d=O=>r?O:pe(O)||r===!1||r===0?We(O,1):We(O);let a,p,w,C,j=!1,A=!1;if(te(e)?(p=()=>e.value,j=pe(e)):Qe(e)?(p=()=>d(e),j=!0):M(e)?(A=!0,j=e.some(O=>Qe(O)||pe(O)),p=()=>e.map(O=>{if(te(O))return O.value;if(Qe(O))return d(O);if(I(O))return c?c(O,2):O()})):I(e)?t?p=c?()=>c(e,2):e:p=()=>{if(w){De();try{w()}finally{je()}}const O=Ze;Ze=a;try{return c?c(e,3,[C]):e(C)}finally{Ze=O}}:p=Re,t&&r){const O=p,Y=r===!0?1/0:r;p=()=>We(O(),Y)}const G=li(),K=()=>{a.stop(),G&&G.active&&Ds(G.effects,a)};if(i&&t){const O=t;t=(...Y)=>{const fe=O(...Y);return K(),fe}}let R=A?new Array(e.length).fill(Nt):Nt;const L=O=>{if(!(!(a.flags&1)||!a.dirty&&!O))if(t){const Y=a.run();if(O||r||j||(A?Y.some((fe,ce)=>Me(fe,R[ce])):Me(Y,R))){w&&w();const fe=Ze;Ze=a;try{const ce=[Y,R===Nt?void 0:A&&R[0]===Nt?[]:R,C];R=Y,c?c(t,3,ce):t(...ce)}finally{Ze=fe}}}else a.run()};return o&&o(L),a=new Jn(p),a.scheduler=l?()=>l(L,!1):L,C=O=>Ri(O,!1,a),w=a.onStop=()=>{const O=Ut.get(a);if(O){if(c)c(O,4);else for(const Y of O)Y();Ut.delete(a)}},t?n?L(!0):R=a.run():l?l(L.bind(null,!0),!0):a.run(),K.pause=a.pause.bind(a),K.resume=a.resume.bind(a),K.stop=K,K}function We(e,t=1/0,s){if(t<=0||!B(e)||e.__v_skip||(s=s||new Map,(s.get(e)||0)>=t))return e;if(s.set(e,t),t--,te(e))We(e.value,t,s);else if(M(e))for(let n=0;n{We(n,t,s)});else if(Kn(e)){for(const n in e)We(e[n],t,s);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&We(e[n],t,s)}return e}/** +* @vue/runtime-core v3.5.39 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function Mt(e,t,s,n){try{return n?e(...n):e()}catch(r){es(r,t,s)}}function xe(e,t,s,n){if(I(e)){const r=Mt(e,t,s,n);return r&&Nn(r)&&r.catch(i=>{es(i,t,s)}),r}if(M(e)){const r=[];for(let i=0;i>>1,r=re[n],i=Et(r);i=Et(s)?re.push(e):re.splice($i(t),0,e),e.flags|=1,cr()}}function cr(){Vt||(Vt=fr.then(ar))}function Hi(e){M(e)?it.push(...e):Ve&&e.id===-1?Ve.splice(st+1,0,e):e.flags&1||(it.push(e),e.flags|=1),cr()}function cn(e,t,s=Oe+1){for(;sEt(s)-Et(n));if(it.length=0,Ve){Ve.push(...t);return}for(Ve=t,st=0;ste.id==null?e.flags&2?-1:1/0:e.id;function ar(e){try{for(Oe=0;Oe{n._d&&xn(-1);const i=Wt(t);let l;try{l=e(...r)}finally{Wt(i),n._d&&xn(1)}return l};return n._n=!0,n._c=!0,n._d=!0,n}function ze(e,t,s,n){const r=e.dirs,i=t&&t.dirs;for(let l=0;l1)return s&&I(t)?t.call(n&&n.proxy):t}}const Bi=Symbol.for("v-scx"),Ki=()=>Bt(Bi);function hs(e,t,s){return hr(e,t,s)}function hr(e,t,s=q){const{immediate:n,deep:r,flush:i,once:l}=s,o=Q({},s),c=t&&n||!t&&i!=="post";let d;if(At){if(i==="sync"){const C=Ki();d=C.__watcherHandles||(C.__watcherHandles=[])}else if(!c){const C=()=>{};return C.stop=Re,C.resume=Re,C.pause=Re,C}}const a=ie;o.call=(C,j,A)=>xe(C,a,j,A);let p=!1;i==="post"?o.scheduler=C=>{oe(C,a&&a.suspense)}:i!=="sync"&&(p=!0,o.scheduler=(C,j)=>{j?C():Js(C)}),o.augmentJob=C=>{t&&(C.flags|=4),p&&(C.flags|=2,a&&(C.id=a.uid,C.i=a))};const w=Fi(e,t,o);return At&&(d?d.push(w):c&&w()),w}function Ui(e,t,s){const n=this.proxy,r=z(e)?e.includes(".")?pr(n,e):()=>n[e]:e.bind(n,n);let i;I(t)?i=t:(i=t.handler,s=t);const l=It(this),o=hr(r,i.bind(n),s);return l(),o}function pr(e,t){const s=t.split(".");return()=>{let n=e;for(let r=0;re.__isTeleport,ps=Symbol("_leaveCb");function Ys(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Ys(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function qi(e,t){return I(e)?Q({name:e.name},t,{setup:e}):e}function gr(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function un(e,t){let s;return!!((s=Object.getOwnPropertyDescriptor(e,t))&&!s.configurable)}const qt=new WeakMap;function vt(e,t,s,n,r=!1){if(M(e)){e.forEach((A,G)=>vt(A,t&&(M(t)?t[G]:t),s,n,r));return}if(xt(n)&&!r){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&vt(e,t,s,n.component.subTree);return}const i=n.shapeFlag&4?Zs(n.component):n.el,l=r?null:i,{i:o,r:c}=e,d=t&&t.r,a=o.refs===q?o.refs={}:o.refs,p=o.setupState,w=$(p),C=p===q?Hn:A=>un(a,A)?!1:H(w,A),j=(A,G)=>!(G&&un(a,G));if(d!=null&&d!==c){if(an(t),z(d))a[d]=null,C(d)&&(p[d]=null);else if(te(d)){const A=t;j(d,A.k)&&(d.value=null),A.k&&(a[A.k]=null)}}if(I(c)){De();try{Mt(c,o,12,[l,a])}finally{je()}}else{const A=z(c),G=te(c);if(A||G){const K=()=>{if(e.f){const R=A?C(c)?p[c]:a[c]:j()||!e.k?c.value:a[e.k];if(r)M(R)&&Ds(R,i);else if(M(R))R.includes(i)||R.push(i);else if(A)a[c]=[i],C(c)&&(p[c]=a[c]);else{const L=[i];j(c,e.k)&&(c.value=L),e.k&&(a[e.k]=L)}}else A?(a[c]=l,C(c)&&(p[c]=l)):G&&(j(c,e.k)&&(c.value=l),e.k&&(a[e.k]=l))};if(l){const R=()=>{K(),qt.delete(e)};R.id=-1,qt.set(e,R),oe(R,s)}else an(e),K()}}}function an(e){const t=qt.get(e);t&&(t.flags|=8,qt.delete(e))}kt().requestIdleCallback;kt().cancelIdleCallback;const xt=e=>!!e.type.__asyncLoader,_r=e=>e.type.__isKeepAlive;function Gi(e,t){mr(e,"a",t)}function Ji(e,t){mr(e,"da",t)}function mr(e,t,s=ie){const n=e.__wdc||(e.__wdc=()=>{let r=s;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(ts(t,n,s),s){let r=s.parent;for(;r&&r.parent;)_r(r.parent.vnode)&&Yi(n,t,s,r),r=r.parent}}function Yi(e,t,s,n){const r=ts(t,e,n,!0);yr(()=>{Ds(n[t],r)},s)}function ts(e,t,s=ie,n=!1){if(s){const r=s[e]||(s[e]=[]),i=t.__weh||(t.__weh=(...l)=>{De();const o=It(s),c=xe(t,s,e,l);return o(),je(),c});return n?r.unshift(i):r.push(i),i}}const Ue=e=>(t,s=ie)=>{(!At||e==="sp")&&ts(e,(...n)=>t(...n),s)},zi=Ue("bm"),br=Ue("m"),Xi=Ue("bu"),Zi=Ue("u"),ki=Ue("bum"),yr=Ue("um"),Qi=Ue("sp"),el=Ue("rtg"),tl=Ue("rtc");function sl(e,t=ie){ts("ec",e,t)}const nl=Symbol.for("v-ndc");function dn(e,t,s,n){let r;const i=s,l=M(e);if(l||z(e)){const o=l&&Qe(e);let c=!1,d=!1;o&&(c=!pe(e),d=Ke(e),e=Qt(e)),r=new Array(e.length);for(let a=0,p=e.length;at(o,c,void 0,i));else{const o=Object.keys(e);r=new Array(o.length);for(let c=0,d=o.length;ce?Br(e)?Zs(e):Es(e.parent):null,St=Q(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Es(e.parent),$root:e=>Es(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>xr(e),$forceUpdate:e=>e.f||(e.f=()=>{Js(e.update)}),$nextTick:e=>e.n||(e.n=ji.bind(e.proxy)),$watch:e=>Ui.bind(e)}),gs=(e,t)=>e!==q&&!e.__isScriptSetup&&H(e,t),rl={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:n,data:r,props:i,accessCache:l,type:o,appContext:c}=e;if(t[0]!=="$"){const w=l[t];if(w!==void 0)switch(w){case 1:return n[t];case 2:return r[t];case 4:return s[t];case 3:return i[t]}else{if(gs(n,t))return l[t]=1,n[t];if(r!==q&&H(r,t))return l[t]=2,r[t];if(H(i,t))return l[t]=3,i[t];if(s!==q&&H(s,t))return l[t]=4,s[t];Os&&(l[t]=0)}}const d=St[t];let a,p;if(d)return t==="$attrs"&&ee(e.attrs,"get",""),d(e);if((a=o.__cssModules)&&(a=a[t]))return a;if(s!==q&&H(s,t))return l[t]=4,s[t];if(p=c.config.globalProperties,H(p,t))return p[t]},set({_:e},t,s){const{data:n,setupState:r,ctx:i}=e;return gs(r,t)?(r[t]=s,!0):n!==q&&H(n,t)?(n[t]=s,!0):H(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:n,appContext:r,props:i,type:l}},o){let c;return!!(s[o]||e!==q&&o[0]!=="$"&&H(e,o)||gs(t,o)||H(i,o)||H(n,o)||H(St,o)||H(r.config.globalProperties,o)||(c=l.__cssModules)&&c[o])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:H(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function hn(e){return M(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}let Os=!0;function il(e){const t=xr(e),s=e.proxy,n=e.ctx;Os=!1,t.beforeCreate&&pn(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:l,watch:o,provide:c,inject:d,created:a,beforeMount:p,mounted:w,beforeUpdate:C,updated:j,activated:A,deactivated:G,beforeDestroy:K,beforeUnmount:R,destroyed:L,unmounted:O,render:Y,renderTracked:fe,renderTriggered:ce,errorCaptured:ge,serverPrefetch:de,expose:Ge,inheritAttrs:ct,components:Rt,directives:Ft,filters:rs}=t;if(d&&ll(d,n,null),l)for(const J in l){const V=l[J];I(V)&&(n[J]=V.bind(s))}if(r){const J=r.call(s,s);B(J)&&(e.data=Ws(J))}if(Os=!0,i)for(const J in i){const V=i[J],Je=I(V)?V.bind(s,s):I(V.get)?V.get.bind(s,s):Re,Dt=!I(V)&&I(V.set)?V.set.bind(s):Re,Ye=Is({get:Je,set:Dt});Object.defineProperty(n,J,{enumerable:!0,configurable:!0,get:()=>Ye.value,set:Se=>Ye.value=Se})}if(o)for(const J in o)vr(o[J],n,s,J);if(c){const J=I(c)?c.call(s):c;Reflect.ownKeys(J).forEach(V=>{Ni(V,J[V])})}a&&pn(a,e,"c");function se(J,V){M(V)?V.forEach(Je=>J(Je.bind(s))):V&&J(V.bind(s))}if(se(zi,p),se(br,w),se(Xi,C),se(Zi,j),se(Gi,A),se(Ji,G),se(sl,ge),se(tl,fe),se(el,ce),se(ki,R),se(yr,O),se(Qi,de),M(Ge))if(Ge.length){const J=e.exposed||(e.exposed={});Ge.forEach(V=>{Object.defineProperty(J,V,{get:()=>s[V],set:Je=>s[V]=Je,enumerable:!0})})}else e.exposed||(e.exposed={});Y&&e.render===Re&&(e.render=Y),ct!=null&&(e.inheritAttrs=ct),Rt&&(e.components=Rt),Ft&&(e.directives=Ft),de&&gr(e)}function ll(e,t,s=Re){M(e)&&(e=As(e));for(const n in e){const r=e[n];let i;B(r)?"default"in r?i=Bt(r.from||n,r.default,!0):i=Bt(r.from||n):i=Bt(r),te(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:l=>i.value=l}):t[n]=i}}function pn(e,t,s){xe(M(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,s)}function vr(e,t,s,n){let r=n.includes(".")?pr(s,n):()=>s[n];if(z(e)){const i=t[e];I(i)&&hs(r,i)}else if(I(e))hs(r,e.bind(s));else if(B(e))if(M(e))e.forEach(i=>vr(i,t,s,n));else{const i=I(e.handler)?e.handler.bind(s):t[e.handler];I(i)&&hs(r,i,e)}}function xr(e){const t=e.type,{mixins:s,extends:n}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:l}}=e.appContext,o=i.get(t);let c;return o?c=o:!r.length&&!s&&!n?c=t:(c={},r.length&&r.forEach(d=>Gt(c,d,l,!0)),Gt(c,t,l)),B(t)&&i.set(t,c),c}function Gt(e,t,s,n=!1){const{mixins:r,extends:i}=t;i&&Gt(e,i,s,!0),r&&r.forEach(l=>Gt(e,l,s,!0));for(const l in t)if(!(n&&l==="expose")){const o=ol[l]||s&&s[l];e[l]=o?o(e[l],t[l]):t[l]}return e}const ol={data:gn,props:_n,emits:_n,methods:gt,computed:gt,beforeCreate:ne,created:ne,beforeMount:ne,mounted:ne,beforeUpdate:ne,updated:ne,beforeDestroy:ne,beforeUnmount:ne,destroyed:ne,unmounted:ne,activated:ne,deactivated:ne,errorCaptured:ne,serverPrefetch:ne,components:gt,directives:gt,watch:cl,provide:gn,inject:fl};function gn(e,t){return t?e?function(){return Q(I(e)?e.call(this,this):e,I(t)?t.call(this,this):t)}:t:e}function fl(e,t){return gt(As(e),As(t))}function As(e){if(M(e)){const t={};for(let s=0;st==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${be(t)}Modifiers`]||e[`${et(t)}Modifiers`];function hl(e,t,...s){if(e.isUnmounted)return;const n=e.vnode.props||q;let r=s;const i=t.startsWith("update:"),l=i&&dl(n,t.slice(7));l&&(l.trim&&(r=s.map(a=>z(a)?a.trim():a)),l.number&&(r=s.map(Zr)));let o,c=n[o=os(t)]||n[o=os(be(t))];!c&&i&&(c=n[o=os(et(t))]),c&&xe(c,e,6,r);const d=n[o+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[o])return;e.emitted[o]=!0,xe(d,e,6,r)}}const pl=new WeakMap;function wr(e,t,s=!1){const n=s?pl:t.emitsCache,r=n.get(e);if(r!==void 0)return r;const i=e.emits;let l={},o=!1;if(!I(e)){const c=d=>{const a=wr(d,t,!0);a&&(o=!0,Q(l,a))};!s&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!i&&!o?(B(e)&&n.set(e,null),null):(M(i)?i.forEach(c=>l[c]=null):Q(l,i),B(e)&&n.set(e,l),l)}function ss(e,t){return!e||!zt(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),H(e,t[0].toLowerCase()+t.slice(1))||H(e,et(t))||H(e,t))}function mn(e){const{type:t,vnode:s,proxy:n,withProxy:r,propsOptions:[i],slots:l,attrs:o,emit:c,render:d,renderCache:a,props:p,data:w,setupState:C,ctx:j,inheritAttrs:A}=e,G=Wt(e);let K,R;try{if(s.shapeFlag&4){const O=r||n,Y=O;K=Pe(d.call(Y,O,a,p,C,w,j)),R=o}else{const O=t;K=Pe(O.length>1?O(p,{attrs:o,slots:l,emit:c}):O(p,null)),R=t.props?o:gl(o)}}catch(O){wt.length=0,es(O,e,1),K=Be(qe)}let L=K;if(R&&A!==!1){const O=Object.keys(R),{shapeFlag:Y}=L;O.length&&Y&7&&(i&&O.some(Xt)&&(R=_l(R,i)),L=ft(L,R,!1,!0))}return s.dirs&&(L=ft(L,null,!1,!0),L.dirs=L.dirs?L.dirs.concat(s.dirs):s.dirs),s.transition&&Ys(L,s.transition),K=L,Wt(G),K}const gl=e=>{let t;for(const s in e)(s==="class"||s==="style"||zt(s))&&((t||(t={}))[s]=e[s]);return t},_l=(e,t)=>{const s={};for(const n in e)(!Xt(n)||!(n.slice(9)in t))&&(s[n]=e[n]);return s};function ml(e,t,s){const{props:n,children:r,component:i}=e,{props:l,children:o,patchFlag:c}=t,d=i.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&c>=0){if(c&1024)return!0;if(c&16)return n?bn(n,l,d):!!l;if(c&8){const a=t.dynamicProps;for(let p=0;pObject.create(Tr),Or=e=>Object.getPrototypeOf(e)===Tr;function yl(e,t,s,n=!1){const r={},i=Er();e.propsDefaults=Object.create(null),Ar(e,t,r,i);for(const l in e.propsOptions[0])l in r||(r[l]=void 0);s?e.props=n?r:Ci(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function vl(e,t,s,n){const{props:r,attrs:i,vnode:{patchFlag:l}}=e,o=$(r),[c]=e.propsOptions;let d=!1;if((n||l>0)&&!(l&16)){if(l&8){const a=e.vnode.dynamicProps;for(let p=0;p{c=!0;const[w,C]=Pr(p,t,!0);Q(l,w),C&&o.push(...C)};!s&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}if(!i&&!c)return B(e)&&n.set(e,nt),nt;if(M(i))for(let a=0;ae==="_"||e==="_ctx"||e==="$stable",Xs=e=>M(e)?e.map(Pe):[Pe(e)],Sl=(e,t,s)=>{if(t._n)return t;const n=Li((...r)=>Xs(t(...r)),s);return n._c=!1,n},Mr=(e,t,s)=>{const n=e._ctx;for(const r in e){if(zs(r))continue;const i=e[r];if(I(i))t[r]=Sl(r,i,n);else if(i!=null){const l=Xs(i);t[r]=()=>l}}},Ir=(e,t)=>{const s=Xs(t);e.slots.default=()=>s},Rr=(e,t,s)=>{for(const n in t)(s||!zs(n))&&(e[n]=t[n])},wl=(e,t,s)=>{const n=e.slots=Er();if(e.vnode.shapeFlag&32){const r=t._;r?(Rr(n,t,s),s&&Vn(n,"_",r,!0)):Mr(t,n)}else t&&Ir(e,t)},Cl=(e,t,s)=>{const{vnode:n,slots:r}=e;let i=!0,l=q;if(n.shapeFlag&32){const o=t._;o?s&&o===1?i=!1:Rr(r,t,s):(i=!t.$stable,Mr(t,r)),l=t}else t&&(Ir(e,t),l={default:1});if(i)for(const o in r)!zs(o)&&l[o]==null&&delete r[o]},oe=Pl;function Tl(e){return El(e)}function El(e,t){const s=kt();s.__VUE__=!0;const{insert:n,remove:r,patchProp:i,createElement:l,createText:o,createComment:c,setText:d,setElementText:a,parentNode:p,nextSibling:w,setScopeId:C=Re,insertStaticContent:j}=e,A=(f,u,h,b=null,m=null,g=null,x=void 0,v=null,y=!!u.dynamicChildren)=>{if(f===u)return;f&&!pt(f,u)&&(b=jt(f),Se(f,m,g,!0),f=null),u.patchFlag===-2&&(y=!1,u.dynamicChildren=null);const{type:_,ref:E,shapeFlag:S}=u;switch(_){case ns:G(f,u,h,b);break;case qe:K(f,u,h,b);break;case ms:f==null&&R(u,h,b,x);break;case me:Rt(f,u,h,b,m,g,x,v,y);break;default:S&1?Y(f,u,h,b,m,g,x,v,y):S&6?Ft(f,u,h,b,m,g,x,v,y):(S&64||S&128)&&_.process(f,u,h,b,m,g,x,v,y,at)}E!=null&&m?vt(E,f&&f.ref,g,u||f,!u):E==null&&f&&f.ref!=null&&vt(f.ref,null,g,f,!0)},G=(f,u,h,b)=>{if(f==null)n(u.el=o(u.children),h,b);else{const m=u.el=f.el;u.children!==f.children&&d(m,u.children)}},K=(f,u,h,b)=>{f==null?n(u.el=c(u.children||""),h,b):u.el=f.el},R=(f,u,h,b)=>{[f.el,f.anchor]=j(f.children,u,h,b,f.el,f.anchor)},L=({el:f,anchor:u},h,b)=>{let m;for(;f&&f!==u;)m=w(f),n(f,h,b),f=m;n(u,h,b)},O=({el:f,anchor:u})=>{let h;for(;f&&f!==u;)h=w(f),r(f),f=h;r(u)},Y=(f,u,h,b,m,g,x,v,y)=>{if(u.type==="svg"?x="svg":u.type==="math"&&(x="mathml"),f==null)fe(u,h,b,m,g,x,v,y);else{const _=f.el&&f.el._isVueCE?f.el:null;try{_&&_._beginPatch(),de(f,u,m,g,x,v,y)}finally{_&&_._endPatch()}}},fe=(f,u,h,b,m,g,x,v)=>{let y,_;const{props:E,shapeFlag:S,transition:T,dirs:P}=f;if(y=f.el=l(f.type,g,E&&E.is,E),S&8?a(y,f.children):S&16&&ge(f.children,y,null,b,m,_s(f,g),x,v),P&&ze(f,null,b,"created"),ce(y,f,f.scopeId,x,b),E){for(const U in E)U!=="value"&&!mt(U)&&i(y,U,null,E[U],g,b);"value"in E&&i(y,"value",null,E.value,g),(_=E.onVnodeBeforeMount)&&Ee(_,b,f)}P&&ze(f,null,b,"beforeMount");const D=Ol(m,T);D&&T.beforeEnter(y),n(y,u,h),((_=E&&E.onVnodeMounted)||D||P)&&oe(()=>{try{_&&Ee(_,b,f),D&&T.enter(y),P&&ze(f,null,b,"mounted")}finally{}},m)},ce=(f,u,h,b,m)=>{if(h&&C(f,h),b)for(let g=0;g{for(let _=y;_{const v=u.el=f.el;let{patchFlag:y,dynamicChildren:_,dirs:E}=u;y|=f.patchFlag&16;const S=f.props||q,T=u.props||q;let P;if(h&&Xe(h,!1),(P=T.onVnodeBeforeUpdate)&&Ee(P,h,u,f),E&&ze(u,f,h,"beforeUpdate"),h&&Xe(h,!0),_&&(!f.dynamicChildren||f.dynamicChildren.length!==_.length)&&(y=0,x=!1,_=null),(S.innerHTML&&T.innerHTML==null||S.textContent&&T.textContent==null)&&a(v,""),_?Ge(f.dynamicChildren,_,v,h,b,_s(u,m),g):x||V(f,u,v,null,h,b,_s(u,m),g,!1),y>0){if(y&16)ct(v,S,T,h,m);else if(y&2&&S.class!==T.class&&i(v,"class",null,T.class,m),y&4&&i(v,"style",S.style,T.style,m),y&8){const D=u.dynamicProps;for(let U=0;U{P&&Ee(P,h,u,f),E&&ze(u,f,h,"updated")},b)},Ge=(f,u,h,b,m,g,x)=>{for(let v=0;v{if(u!==h){if(u!==q)for(const g in u)!mt(g)&&!(g in h)&&i(f,g,u[g],null,m,b);for(const g in h){if(mt(g))continue;const x=h[g],v=u[g];x!==v&&g!=="value"&&i(f,g,v,x,m,b)}"value"in h&&i(f,"value",u.value,h.value,m)}},Rt=(f,u,h,b,m,g,x,v,y)=>{const _=u.el=f?f.el:o(""),E=u.anchor=f?f.anchor:o("");let{patchFlag:S,dynamicChildren:T,slotScopeIds:P}=u;P&&(v=v?v.concat(P):P),f==null?(n(_,h,b),n(E,h,b),ge(u.children||[],h,E,m,g,x,v,y)):S>0&&S&64&&T&&f.dynamicChildren&&f.dynamicChildren.length===T.length?(Ge(f.dynamicChildren,T,h,m,g,x,v),(u.key!=null||m&&u===m.subTree)&&Fr(f,u,!0)):V(f,u,h,E,m,g,x,v,y)},Ft=(f,u,h,b,m,g,x,v,y)=>{u.slotScopeIds=v,f==null?u.shapeFlag&512?m.ctx.activate(u,h,b,x,y):rs(u,h,b,m,g,x,y):ks(f,u,y)},rs=(f,u,h,b,m,g,x)=>{const v=f.component=Ll(f,b,m);if(_r(f)&&(v.ctx.renderer=at),Bl(v,!1,x),v.asyncDep){if(m&&m.registerDep(v,se,x),!f.el){const y=v.subTree=Be(qe);K(null,y,u,h),f.placeholder=y.el}}else se(v,f,u,h,m,g,x)},ks=(f,u,h)=>{const b=u.component=f.component;if(ml(f,u,h))if(b.asyncDep&&!b.asyncResolved){J(b,u,h);return}else b.next=u,b.update();else u.el=f.el,b.vnode=u},se=(f,u,h,b,m,g,x)=>{const v=()=>{if(f.isMounted){let{next:S,bu:T,u:P,parent:D,vnode:U}=f;{const Ce=Dr(f);if(Ce){S&&(S.el=U.el,J(f,S,x)),Ce.asyncDep.then(()=>{oe(()=>{f.isUnmounted||_()},m)});return}}let N=S,X;Xe(f,!1),S?(S.el=U.el,J(f,S,x)):S=U,T&&fs(T),(X=S.props&&S.props.onVnodeBeforeUpdate)&&Ee(X,D,S,U),Xe(f,!0);const Z=mn(f),we=f.subTree;f.subTree=Z,A(we,Z,p(we.el),jt(we),f,m,g),S.el=Z.el,N===null&&bl(f,Z.el),P&&oe(P,m),(X=S.props&&S.props.onVnodeUpdated)&&oe(()=>Ee(X,D,S,U),m)}else{let S;const{el:T,props:P}=u,{bm:D,m:U,parent:N,root:X,type:Z}=f,we=xt(u);Xe(f,!1),D&&fs(D),!we&&(S=P&&P.onVnodeBeforeMount)&&Ee(S,N,u),Xe(f,!0);{X.ce&&X.ce._hasShadowRoot()&&X.ce._injectChildStyle(Z,f.parent?f.parent.type:void 0);const Ce=f.subTree=mn(f);A(null,Ce,h,b,f,m,g),u.el=Ce.el}if(U&&oe(U,m),!we&&(S=P&&P.onVnodeMounted)){const Ce=u;oe(()=>Ee(S,N,Ce),m)}(u.shapeFlag&256||N&&xt(N.vnode)&&N.vnode.shapeFlag&256)&&f.a&&oe(f.a,m),f.isMounted=!0,u=h=b=null}};f.scope.on();const y=f.effect=new Jn(v);f.scope.off();const _=f.update=y.run.bind(y),E=f.job=y.runIfDirty.bind(y);E.i=f,E.id=f.uid,y.scheduler=()=>Js(E),Xe(f,!0),_()},J=(f,u,h)=>{u.component=f;const b=f.vnode.props;f.vnode=u,f.next=null,vl(f,u.props,b,h),Cl(f,u.children,h),De(),cn(f),je()},V=(f,u,h,b,m,g,x,v,y=!1)=>{const _=f&&f.children,E=f?f.shapeFlag:0,S=u.children,{patchFlag:T,shapeFlag:P}=u;if(T>0){if(T&128){Dt(_,S,h,b,m,g,x,v,y);return}else if(T&256){Je(_,S,h,b,m,g,x,v,y);return}}P&8?(E&16&&ut(_,m,g),S!==_&&a(h,S)):E&16?P&16?Dt(_,S,h,b,m,g,x,v,y):ut(_,m,g,!0):(E&8&&a(h,""),P&16&&ge(S,h,b,m,g,x,v,y))},Je=(f,u,h,b,m,g,x,v,y)=>{f=f||nt,u=u||nt;const _=f.length,E=u.length,S=Math.min(_,E);let T;for(T=0;TE?ut(f,m,g,!0,!1,S):ge(u,h,b,m,g,x,v,y,S)},Dt=(f,u,h,b,m,g,x,v,y)=>{let _=0;const E=u.length;let S=f.length-1,T=E-1;for(;_<=S&&_<=T;){const P=f[_],D=u[_]=y?Le(u[_]):Pe(u[_]);if(pt(P,D))A(P,D,h,null,m,g,x,v,y);else break;_++}for(;_<=S&&_<=T;){const P=f[S],D=u[T]=y?Le(u[T]):Pe(u[T]);if(pt(P,D))A(P,D,h,null,m,g,x,v,y);else break;S--,T--}if(_>S){if(_<=T){const P=T+1,D=PT)for(;_<=S;)Se(f[_],m,g,!0),_++;else{const P=_,D=_,U=new Map;for(_=D;_<=T;_++){const ue=u[_]=y?Le(u[_]):Pe(u[_]);ue.key!=null&&U.set(ue.key,_)}let N,X=0;const Z=T-D+1;let we=!1,Ce=0;const dt=new Array(Z);for(_=0;_=Z){Se(ue,m,g,!0);continue}let Te;if(ue.key!=null)Te=U.get(ue.key);else for(N=D;N<=T;N++)if(dt[N-D]===0&&pt(ue,u[N])){Te=N;break}Te===void 0?Se(ue,m,g,!0):(dt[Te-D]=_+1,Te>=Ce?Ce=Te:we=!0,A(ue,u[Te],h,null,m,g,x,v,y),X++)}const tn=we?Al(dt):nt;for(N=tn.length-1,_=Z-1;_>=0;_--){const ue=D+_,Te=u[ue],sn=u[ue+1],nn=ue+1{const{el:g,type:x,transition:v,children:y,shapeFlag:_}=f;if(_&6){Ye(f.component.subTree,u,h,b);return}if(_&128){f.suspense.move(u,h,b);return}if(_&64){x.move(f,u,h,at);return}if(x===me){n(g,u,h);for(let S=0;Sv.enter(g),m));else{const{leave:S,delayLeave:T,afterLeave:P}=v,D=()=>{f.ctx.isUnmounted?r(g):n(g,u,h)},U=()=>{const N=g._isLeaving||!!g[ps];g._isLeaving&&g[ps](!0),v.persisted&&!N?D():S(g,()=>{D(),P&&P()})};T?T(g,D,U):U()}else n(g,u,h)},Se=(f,u,h,b=!1,m=!1)=>{const{type:g,props:x,ref:v,children:y,dynamicChildren:_,shapeFlag:E,patchFlag:S,dirs:T,cacheIndex:P,memo:D}=f;if(S===-2&&(m=!1),v!=null&&(De(),vt(v,null,h,f,!0),je()),P!=null&&(u.renderCache[P]=void 0),E&256){u.ctx.deactivate(f);return}const U=E&1&&T,N=!xt(f);let X;if(N&&(X=x&&x.onVnodeBeforeUnmount)&&Ee(X,u,f),E&6)Wr(f.component,h,b);else{if(E&128){f.suspense.unmount(h,b);return}U&&ze(f,null,u,"beforeUnmount"),E&64?f.type.remove(f,u,h,at,b):_&&!_.hasOnce&&(g!==me||S>0&&S&64)?ut(_,u,h,!1,!0):(g===me&&S&384||!m&&E&16)&&ut(y,u,h),b&&Qs(f)}const Z=D!=null&&P==null;(N&&(X=x&&x.onVnodeUnmounted)||U||Z)&&oe(()=>{X&&Ee(X,u,f),U&&ze(f,null,u,"unmounted"),Z&&(f.el=null)},h)},Qs=f=>{const{type:u,el:h,anchor:b,transition:m}=f;if(u===me){Vr(h,b);return}if(u===ms){O(f);return}const g=()=>{r(h),m&&!m.persisted&&m.afterLeave&&m.afterLeave()};if(f.shapeFlag&1&&m&&!m.persisted){const{leave:x,delayLeave:v}=m,y=()=>x(h,g);v?v(f.el,g,y):y()}else g()},Vr=(f,u)=>{let h;for(;f!==u;)h=w(f),r(f),f=h;r(u)},Wr=(f,u,h)=>{const{bum:b,scope:m,job:g,subTree:x,um:v,m:y,a:_}=f;vn(y),vn(_),b&&fs(b),m.stop(),g&&(g.flags|=8,Se(x,f,u,h)),v&&oe(v,u),oe(()=>{f.isUnmounted=!0},u)},ut=(f,u,h,b=!1,m=!1,g=0)=>{for(let x=g;x{if(f.shapeFlag&6)return jt(f.component.subTree);if(f.shapeFlag&128)return f.suspense.next();const u=w(f.anchor||f.el),h=u&&u[Vi];return h?w(h):u};let is=!1;const en=(f,u,h)=>{let b;f==null?u._vnode&&(Se(u._vnode,null,null,!0),b=u._vnode.component):A(u._vnode||null,f,u,null,null,null,h),u._vnode=f,is||(is=!0,cn(b),ur(),is=!1)},at={p:A,um:Se,m:Ye,r:Qs,mt:rs,mc:ge,pc:V,pbc:Ge,n:jt,o:e};return{render:en,hydrate:void 0,createApp:al(en)}}function _s({type:e,props:t},s){return s==="svg"&&e==="foreignObject"||s==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:s}function Xe({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Ol(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Fr(e,t,s=!1){const n=e.children,r=t.children;if(M(n)&&M(r))for(let i=0;i>1,e[s[o]]0&&(t[n]=s[i-1]),s[i]=n)}}for(i=s.length,l=s[i-1];i-- >0;)s[i]=l,l=t[l];return s}function Dr(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Dr(t)}function vn(e){if(e)for(let t=0;te.__isSuspense;function Pl(e,t){t&&t.pendingBranch?M(e)?t.effects.push(...e):t.effects.push(e):Hi(e)}const me=Symbol.for("v-fgt"),ns=Symbol.for("v-txt"),qe=Symbol.for("v-cmt"),ms=Symbol.for("v-stc"),wt=[];let ae=null;function he(e=!1){wt.push(ae=e?null:[])}function Ml(){wt.pop(),ae=wt[wt.length-1]||null}let Ot=1;function xn(e,t=!1){Ot+=e,e<0&&ae&&t&&(ae.hasOnce=!0)}function Hr(e){return e.dynamicChildren=Ot>0?ae||nt:null,Ml(),Ot>0&&ae&&ae.push(e),e}function _e(e,t,s,n,r,i){return Hr(F(e,t,s,n,r,i,!0))}function Il(e,t,s,n,r){return Hr(Be(e,t,s,n,r,!0))}function Lr(e){return e?e.__v_isVNode===!0:!1}function pt(e,t){return e.type===t.type&&e.key===t.key}const Nr=({key:e})=>e??null,Kt=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?z(e)||te(e)||I(e)?{i:Ie,r:e,k:t,f:!!s}:e:null);function F(e,t=null,s=null,n=0,r=null,i=e===me?0:1,l=!1,o=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Nr(t),ref:t&&Kt(t),scopeId:dr,slotScopeIds:null,children:s,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:n,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Ie};return o?(Jt(c,s),i&128&&e.normalize(c)):s&&(c.shapeFlag|=z(s)?8:16),Ot>0&&!l&&ae&&(c.patchFlag>0||i&6)&&c.patchFlag!==32&&ae.push(c),c}const Be=Rl;function Rl(e,t=null,s=null,n=0,r=null,i=!1){if((!e||e===nl)&&(e=qe),Lr(e)){const o=ft(e,t,!0);return s&&Jt(o,s),Ot>0&&!i&&ae&&(o.shapeFlag&6?ae[ae.indexOf(e)]=o:ae.push(o)),o.patchFlag=-2,o}if(Wl(e)&&(e=e.__vccOpts),t){t=Fl(t);let{class:o,style:c}=t;o&&!z(o)&&(t.class=Hs(o)),B(c)&&(Gs(c)&&!M(c)&&(c=Q({},c)),t.style=$s(c))}const l=z(e)?1:$r(e)?128:Wi(e)?64:B(e)?4:I(e)?2:0;return F(e,t,s,n,r,l,i,!0)}function Fl(e){return e?Gs(e)||Or(e)?Q({},e):e:null}function ft(e,t,s=!1,n=!1){const{props:r,ref:i,patchFlag:l,children:o,transition:c}=e,d=t?jl(r||{},t):r,a={__v_isVNode:!0,__v_skip:!0,type:e.type,props:d,key:d&&Nr(d),ref:t&&t.ref?s&&i?M(i)?i.concat(Kt(t)):[i,Kt(t)]:Kt(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==me?l===-1?16:l|16:l,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ft(e.ssContent),ssFallback:e.ssFallback&&ft(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&n&&Ys(a,c.clone(a)),a}function Dl(e=" ",t=0){return Be(ns,null,e,t)}function bs(e="",t=!1){return t?(he(),Il(qe,null,e)):Be(qe,null,e)}function Pe(e){return e==null||typeof e=="boolean"?Be(qe):M(e)?Be(me,null,e.slice()):Lr(e)?Le(e):Be(ns,null,String(e))}function Le(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:ft(e)}function Jt(e,t){let s=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(M(t))s=16;else if(typeof t=="object")if(n&65){const r=t.default;r&&(r._c&&(r._d=!1),Jt(e,r()),r._c&&(r._d=!0));return}else{s=32;const r=t._;!r&&!Or(t)?t._ctx=Ie:r===3&&Ie&&(Ie.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(I(t)){if(n&65){Jt(e,{default:t});return}t={default:t,_ctx:Ie},s=32}else t=String(t),n&64?(s=16,t=[Dl(t)]):s=8;e.children=t,e.shapeFlag|=s}function jl(...e){const t={};for(let s=0;sie||Ie;let Yt,Ms;{const e=kt(),t=(s,n)=>{let r;return(r=e[s])||(r=e[s]=[]),r.push(n),i=>{r.length>1?r.forEach(l=>l(i)):r[0](i)}};Yt=t("__VUE_INSTANCE_SETTERS__",s=>ie=s),Ms=t("__VUE_SSR_SETTERS__",s=>At=s)}const It=e=>{const t=ie;return Yt(e),e.scope.on(),()=>{e.scope.off(),Yt(t)}},Sn=()=>{ie&&ie.scope.off(),Yt(null)};function Br(e){return e.vnode.shapeFlag&4}let At=!1;function Bl(e,t=!1,s=!1){t&&Ms(t);const{props:n,children:r}=e.vnode,i=Br(e);yl(e,n,i,t),wl(e,r,s||t);const l=i?Kl(e,t):void 0;return t&&Ms(!1),l}function Kl(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,rl);const{setup:n}=s;if(n){De();const r=e.setupContext=n.length>1?Vl(e):null,i=It(e),l=Mt(n,e,0,[e.props,r]),o=Nn(l);if(je(),i(),(o||e.sp)&&!xt(e)&&gr(e),o){if(l.then(Sn,Sn),t)return l.then(c=>{wn(e,c)}).catch(c=>{es(c,e,0)});e.asyncDep=l}else wn(e,l)}else Kr(e)}function wn(e,t,s){I(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:B(t)&&(e.setupState=or(t)),Kr(e)}function Kr(e,t,s){const n=e.type;e.render||(e.render=n.render||Re);{const r=It(e);De();try{il(e)}finally{je(),r()}}}const Ul={get(e,t){return ee(e,"get",""),e[t]}};function Vl(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,Ul),slots:e.slots,emit:e.emit,expose:t}}function Zs(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(or(Ti(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in St)return St[s](e)},has(t,s){return s in t||s in St}})):e.proxy}function Wl(e){return I(e)&&"__vccOpts"in e}const Is=(e,t)=>Ii(e,t,At),ql="3.5.39";/** +* @vue/runtime-dom v3.5.39 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let Rs;const Cn=typeof window<"u"&&window.trustedTypes;if(Cn)try{Rs=Cn.createPolicy("vue",{createHTML:e=>e})}catch{}const Ur=Rs?e=>Rs.createHTML(e):e=>e,Gl="http://www.w3.org/2000/svg",Jl="http://www.w3.org/1998/Math/MathML",He=typeof document<"u"?document:null,Tn=He&&He.createElement("template"),Yl={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,n)=>{const r=t==="svg"?He.createElementNS(Gl,e):t==="mathml"?He.createElementNS(Jl,e):s?He.createElement(e,{is:s}):He.createElement(e);return e==="select"&&n&&n.multiple!=null&&r.setAttribute("multiple",n.multiple),r},createText:e=>He.createTextNode(e),createComment:e=>He.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>He.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,n,r,i){const l=s?s.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),s),!(r===i||!(r=r.nextSibling)););else{Tn.innerHTML=Ur(n==="svg"?`${e}`:n==="mathml"?`${e}`:e);const o=Tn.content;if(n==="svg"||n==="mathml"){const c=o.firstChild;for(;c.firstChild;)o.appendChild(c.firstChild);o.removeChild(c)}t.insertBefore(o,s)}return[l?l.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},zl=Symbol("_vtc");function Xl(e,t,s){const n=e[zl];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const En=Symbol("_vod"),Zl=Symbol("_vsh"),kl=Symbol(""),Ql=/(?:^|;)\s*display\s*:/;function eo(e,t,s){const n=e.style,r=z(s);let i=!1;if(s&&!r){if(t)if(z(t))for(const l of t.split(";")){const o=l.slice(0,l.indexOf(":")).trim();s[o]==null&&_t(n,o,"")}else for(const l in t)s[l]==null&&_t(n,l,"");for(const l in s){l==="display"&&(i=!0);const o=s[l];o!=null?so(e,l,!z(t)&&t?t[l]:void 0,o)||_t(n,l,o):_t(n,l,"")}}else if(r){if(t!==s){const l=n[kl];l&&(s+=";"+l),n.cssText=s,i=Ql.test(s)}}else t&&e.removeAttribute("style");En in e&&(e[En]=i?n.display:"",e[Zl]&&(n.display="none"))}const On=/\s*!important$/;function _t(e,t,s){if(M(s))s.forEach(n=>_t(e,t,n));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const n=to(e,t);On.test(s)?e.setProperty(et(n),s.replace(On,""),"important"):e[n]=s}}const An=["Webkit","Moz","ms"],ys={};function to(e,t){const s=ys[t];if(s)return s;let n=be(t);if(n!=="filter"&&n in e)return ys[t]=n;n=Un(n);for(let r=0;rvs||(co.then(()=>vs=0),vs=Date.now());function ao(e,t){const s=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=s.attached)return;const r=s.value;if(M(r)){const i=n.stopImmediatePropagation;n.stopImmediatePropagation=()=>{i.call(n),n._stopped=!0};const l=r.slice(),o=[n];for(let c=0;ce.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,ho=(e,t,s,n,r,i)=>{const l=r==="svg";t==="class"?Xl(e,n,l):t==="style"?eo(e,s,n):zt(t)?Xt(t)||io(e,t,s,n,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):po(e,t,n,l))?(In(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Mn(e,t,n,l,i,t!=="value")):e._isVueCE&&(go(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!z(n)))?In(e,be(t),n,i,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),Mn(e,t,n,l))};function po(e,t,s,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&Fn(t)&&I(s));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return Fn(t)&&z(s)?!1:t in e}function go(e,t){const s=e._def.props;if(!s)return!1;const n=be(t);return Array.isArray(s)?s.some(r=>be(r)===n):Object.keys(s).some(r=>be(r)===n)}const _o=Q({patchProp:ho},Yl);let Dn;function mo(){return Dn||(Dn=Tl(_o))}const bo=((...e)=>{const t=mo().createApp(...e),{mount:s}=t;return t.mount=n=>{const r=vo(n);if(!r)return;const i=t._component;!I(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const l=s(r,!1,yo(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),l},t});function yo(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function vo(e){return z(e)?document.querySelector(e):e}const xo="/api/v1/plugins/extensions/astrbot_plugin_imagestudio",jn={uiBootstrap:"ui/bootstrap",dashboardSummary:"dashboard/summary",profiles:"profiles",quickProfileDraft:"profiles/quick-draft",jobs:"jobs",settingsSchema:"settings/schema",settingsCurrent:"settings/current",storageStatus:"storage/status",mediaSign:"media/sign",webManifest:"web/manifest"};class So extends Error{constructor(s,n,r={}){super(n);ls(this,"code");ls(this,"details");this.name="ApiClientError",this.code=s,this.details=r}}async function $n(e,t){return wo(e,{method:"GET",query:t})}async function wo(e,t={}){const n=await(await fetch(Co(e,t.query),{method:t.method??"GET",headers:t.body===void 0?void 0:{"Content-Type":"application/json"},body:t.body===void 0?void 0:JSON.stringify(t.body)})).json();if(!n.ok)throw new So(n.error_code,n.message,n.details);return n.data}function Co(e,t){const s=e.replace(/^\/+/,""),n=new URL(`${xo}/${s}`,window.location.origin);for(const[r,i]of Object.entries(t??{}))i!==void 0&&n.searchParams.set(r,String(i));return`${n.pathname}${n.search}`}const To={class:"plugin-page-shell"},Eo={class:"topbar"},Oo={class:"actions"},Ao=["data-state"],Po=["href"],Mo={key:0,class:"notice"},Io={key:1,class:"notice"},Ro={key:2,class:"metrics","aria-label":"ImageStudio dashboard"},Fo={class:"activity"},Do={key:0,class:"empty"},jo={key:0,class:"empty"},$o=qi({__name:"App",setup(e){const t=Lt(null),s=Lt(null),n=Lt(!0),r=Lt(""),i=Is(()=>{var d;return`${((d=t.value)==null?void 0:d.api_base)??""}/web`}),l=Is(()=>{var a;const d=(a=s.value)==null?void 0:a.queue;return d?d.pending+d.running+d.failed+d.dead_letter:0});br(o);async function o(){n.value=!0,r.value="";try{const[d,a]=await Promise.all([$n(jn.uiBootstrap),$n(jn.dashboardSummary)]);t.value=d,s.value=a}catch(d){r.value=d instanceof Error?d.message:"加载失败"}finally{n.value=!1}}function c(d=0){return d<1024?`${d} B`:d<1024*1024?`${(d/1024).toFixed(1)} KB`:d<1024*1024*1024?`${(d/1024/1024).toFixed(1)} MB`:`${(d/1024/1024/1024).toFixed(1)} GB`}return(d,a)=>{var p,w,C,j,A,G,K,R,L,O,Y,fe,ce,ge;return he(),_e("main",To,[F("header",Eo,[F("div",null,[F("h1",null,le(((p=t.value)==null?void 0:p.display_name)??"ImageStudio"),1),F("p",null,le(((w=t.value)==null?void 0:w.dashboard_user)??"AstrBot"),1)]),F("div",Oo,[F("span",{class:"status","data-state":((C=s.value)==null?void 0:C.plugin_status)??"loading"},le(((j=s.value)==null?void 0:j.plugin_status)??"loading"),9,Ao),F("button",{type:"button",onClick:o},"刷新"),t.value?(he(),_e("a",{key:0,class:"primary",href:i.value,target:"_blank",rel:"noreferrer"},"工作台",8,Po)):bs("",!0)])]),r.value?(he(),_e("section",Mo,le(r.value),1)):n.value?(he(),_e("section",Io,"加载中")):(he(),_e("section",Ro,[F("article",null,[a[0]||(a[0]=F("span",null,"角色",-1)),F("strong",null,le(((A=s.value)==null?void 0:A.active_profiles)??0),1)]),F("article",null,[a[1]||(a[1]=F("span",null,"队列",-1)),F("strong",null,le(l.value),1)]),F("article",null,[a[2]||(a[2]=F("span",null,"运行中",-1)),F("strong",null,le(((G=s.value)==null?void 0:G.queue.running)??0),1)]),F("article",null,[a[3]||(a[3]=F("span",null,"失败",-1)),F("strong",null,le(((K=s.value)==null?void 0:K.queue.failed)??0),1)]),F("article",null,[a[4]||(a[4]=F("span",null,"存储",-1)),F("strong",null,le(c((R=s.value)==null?void 0:R.storage.total_bytes)),1)])])),F("section",Fo,[F("div",null,[a[5]||(a[5]=F("h2",null,"最近图片",-1)),F("ul",null,[(he(!0),_e(me,null,dn(((L=s.value)==null?void 0:L.recent_images)??[],de=>(he(),_e("li",{key:String(de.image_id)},[F("span",null,le(de.image_id),1),F("small",null,le(de.created_at),1)]))),128)),(Y=(O=s.value)==null?void 0:O.recent_images)!=null&&Y.length?bs("",!0):(he(),_e("li",Do,"暂无图片"))])]),F("div",null,[a[6]||(a[6]=F("h2",null,"任务",-1)),F("ul",null,[(he(!0),_e(me,null,dn(((fe=s.value)==null?void 0:fe.recent_jobs)??[],de=>(he(),_e("li",{key:String(de.task_id)},[F("span",null,le(de.task_id),1),F("small",null,le(de.status),1)]))),128)),(ge=(ce=s.value)==null?void 0:ce.recent_jobs)!=null&&ge.length?bs("",!0):(he(),_e("li",jo,"暂无任务"))])])])])}}}),Ho=(e,t)=>{const s=e.__vccOpts||e;for(const[n,r]of t)s[n]=r;return s},Lo=Ho($o,[["__scopeId","data-v-7e06e9af"]]);bo(Lo).mount("#app"); diff --git a/pages/imagestudio/assets/index-KxvCyOGk.css b/pages/imagestudio/assets/index-KxvCyOGk.css new file mode 100644 index 0000000..2790786 --- /dev/null +++ b/pages/imagestudio/assets/index-KxvCyOGk.css @@ -0,0 +1 @@ +.plugin-page-shell[data-v-7e06e9af]{box-sizing:border-box;min-height:100vh;padding:24px;color:#1d2430;background:#f4f6f8;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}.topbar[data-v-7e06e9af],.activity[data-v-7e06e9af]{display:grid;gap:16px;grid-template-columns:minmax(0,1fr) auto;align-items:start}h1[data-v-7e06e9af],h2[data-v-7e06e9af],p[data-v-7e06e9af]{margin:0}h1[data-v-7e06e9af]{font-size:24px;font-weight:700}h2[data-v-7e06e9af]{font-size:14px}p[data-v-7e06e9af],small[data-v-7e06e9af],.empty[data-v-7e06e9af]{color:#667085}.actions[data-v-7e06e9af]{display:flex;gap:8px;align-items:center}button[data-v-7e06e9af],a.primary[data-v-7e06e9af]{min-height:36px;padding:0 14px;border:1px solid #c7d0da;border-radius:6px;color:#1d2430;background:#fff;font:inherit;text-decoration:none;cursor:pointer}a.primary[data-v-7e06e9af]{display:inline-flex;align-items:center;border-color:#256f5b;color:#fff;background:#256f5b}.status[data-v-7e06e9af]{display:inline-flex;align-items:center;min-height:28px;padding:0 10px;border-radius:999px;color:#245347;background:#dff3eb;font-size:13px}.status[data-state=loading][data-v-7e06e9af]{color:#6b4f1d;background:#f7e7c5}.notice[data-v-7e06e9af]{margin-top:18px;padding:14px;border:1px solid #d6dde6;border-radius:8px;background:#fff}.metrics[data-v-7e06e9af]{display:grid;grid-template-columns:repeat(5,minmax(120px,1fr));gap:12px;margin-top:20px}article[data-v-7e06e9af],.activity>div[data-v-7e06e9af]{border:1px solid #d6dde6;border-radius:8px;background:#fff}article[data-v-7e06e9af]{display:grid;gap:8px;padding:16px}article span[data-v-7e06e9af]{color:#667085;font-size:13px}article strong[data-v-7e06e9af]{font-size:24px}.activity[data-v-7e06e9af]{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:16px}.activity>div[data-v-7e06e9af]{padding:16px}ul[data-v-7e06e9af]{display:grid;gap:10px;margin:12px 0 0;padding:0;list-style:none}li[data-v-7e06e9af]{display:flex;justify-content:space-between;gap:12px;min-width:0}li span[data-v-7e06e9af],li small[data-v-7e06e9af]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media(max-width:820px){.topbar[data-v-7e06e9af],.activity[data-v-7e06e9af]{grid-template-columns:1fr}.actions[data-v-7e06e9af]{flex-wrap:wrap}.metrics[data-v-7e06e9af]{grid-template-columns:repeat(2,minmax(0,1fr))}} diff --git a/pages/imagestudio/index.html b/pages/imagestudio/index.html new file mode 100644 index 0000000..eb29440 --- /dev/null +++ b/pages/imagestudio/index.html @@ -0,0 +1,3 @@ + + +
diff --git a/tests/test_s2_routes.py b/tests/test_s2_routes.py index 8874f08..a9908f1 100644 --- a/tests/test_s2_routes.py +++ b/tests/test_s2_routes.py @@ -37,6 +37,7 @@ from backend.routes.settings_routes import ( ) from backend.routes.storage_routes import get_storage_status from backend.routes.ui_routes import get_ui_bootstrap +from backend.routes.web_routes import get_web_manifest from backend.routes.workflow_routes import ( archive_workflow, create_profile_workflow, @@ -51,6 +52,7 @@ from backend.services.profile_service import ProfileService from backend.services.queue_service import QueueService from backend.services.settings_service import SettingsService from backend.services.ui_service import UiService +from backend.services.web_hosting_service import WebHostingService from backend.services.workflow_service import WorkflowService from core.audit_service import AuditService from core.config_service import ConfigService @@ -127,6 +129,7 @@ storage: ) self.settings_service = SettingsService(self.config_service) self.media_service = MediaService(self.config_service) + self.web_hosting_service = WebHostingService() self.ctx = RequestContext.from_astrbot( username="admin", user_id="user_001", @@ -431,6 +434,15 @@ security: self.assertFalse(response["ok"]) self.assertEqual(response["error_code"], "FORBIDDEN") + def test_settings_current_masks_absolute_paths(self): + response = get_current_settings(self.ctx, self.settings_service) + + self.assertTrue(response["ok"]) + storage = response["data"]["config"]["storage"] + self.assertEqual(storage["images_path"], "***PATH***") + self.assertEqual(storage["thumbnails_path"], "***PATH***") + self.assertNotIn(str(self.root), str(response["data"])) + def test_storage_status_and_media_signing_do_not_expose_real_paths(self): response = get_storage_status(self.ctx, self.media_service) @@ -477,6 +489,18 @@ security: self.assertFalse(missing["ok"]) self.assertEqual(missing["error_code"], "MEDIA_NOT_FOUND") + def test_web_manifest_returns_public_mounts_without_local_paths(self): + response = get_web_manifest(self.ctx, self.web_hosting_service) + + self.assertTrue(response["ok"]) + self.assertEqual( + response["data"]["standalone_web"]["url"], + "/api/v1/plugins/extensions/astrbot_plugin_imagestudio/web", + ) + self.assertIn("built", response["data"]["plugin_page"]) + self.assertNotIn(str(self.root), str(response["data"])) + self.assertNotIn("C:\\", str(response["data"])) + def test_workflow_node_image_routes_return_wrapped_responses(self): profile = self.profile_service.create_profile({"name": "Nova"}, self.ctx) diff --git a/web/.gitkeep b/web/.gitkeep deleted file mode 100644 index 8b13789..0000000 --- a/web/.gitkeep +++ /dev/null @@ -1 +0,0 @@ - diff --git a/web/assets/index-C821iZVM.js b/web/assets/index-C821iZVM.js new file mode 100644 index 0000000..4f9db9d --- /dev/null +++ b/web/assets/index-C821iZVM.js @@ -0,0 +1,17 @@ +var qr=Object.defineProperty;var Gr=(e,t,s)=>t in e?qr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;var as=(e,t,s)=>Gr(e,typeof t!="symbol"?t+"":t,s);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))n(r);new MutationObserver(r=>{for(const i of r)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&n(l)}).observe(document,{childList:!0,subtree:!0});function s(r){const i={};return r.integrity&&(i.integrity=r.integrity),r.referrerPolicy&&(i.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?i.credentials="include":r.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(r){if(r.ep)return;r.ep=!0;const i=s(r);fetch(r.href,i)}})();/** +* @vue/shared v3.5.39 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function Hs(e){const t=Object.create(null);for(const s of e.split(","))t[s]=1;return s=>s in t}const G={},dt=[],Fe=()=>{},$n=()=>!1,ts=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),ss=e=>e.startsWith("onUpdate:"),se=Object.assign,Ns=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},Jr=Object.prototype.hasOwnProperty,L=(e,t)=>Jr.call(e,t),I=Array.isArray,ht=e=>Nt(e)==="[object Map]",Hn=e=>Nt(e)==="[object Set]",on=e=>Nt(e)==="[object Date]",D=e=>typeof e=="function",z=e=>typeof e=="string",De=e=>typeof e=="symbol",U=e=>e!==null&&typeof e=="object",Nn=e=>(U(e)||D(e))&&D(e.then)&&D(e.catch),Ln=Object.prototype.toString,Nt=e=>Ln.call(e),kr=e=>Nt(e).slice(8,-1),Bn=e=>Nt(e)==="[object Object]",Ls=e=>z(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Et=Hs(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ns=e=>{const t=Object.create(null);return(s=>t[s]||(t[s]=e(s)))},Yr=/-\w/g,me=ns(e=>e.replace(Yr,t=>t.slice(1).toUpperCase())),zr=/\B([A-Z])/g,ot=ns(e=>e.replace(zr,"-$1").toLowerCase()),Kn=ns(e=>e.charAt(0).toUpperCase()+e.slice(1)),ds=ns(e=>e?`on${Kn(e)}`:""),Re=(e,t)=>!Object.is(e,t),hs=(e,...t)=>{for(let s=0;s{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:s})},Xr=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let fn;const rs=()=>fn||(fn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Bs(e){if(I(e)){const t={};for(let s=0;s{if(s){const n=s.split(Qr);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function rt(e){let t="";if(z(e))t=e;else if(I(e))for(let s=0;s!!(e&&e.__v_isRef===!0),Y=e=>z(e)?e:e==null?"":I(e)||U(e)&&(e.toString===Ln||!D(e.toString))?Wn(e)?Y(e.value):JSON.stringify(e,qn,2):String(e),qn=(e,t)=>Wn(t)?qn(e,t.value):ht(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[n,r],i)=>(s[ps(n,i)+" =>"]=r,s),{})}:Hn(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>ps(s))}:De(t)?ps(t):U(t)&&!I(t)&&!Bn(t)?String(t):t,ps=(e,t="")=>{var s;return De(e)?`Symbol(${(s=e.description)!=null?s:t})`:e};/** +* @vue/reactivity v3.5.39 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let te;class ii{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&te&&(te.active?(this.parent=te,this.index=(te.scopes||(te.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t0&&--this._on===0){if(te===this)te=this.prevScope;else{let t=te;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let s,n;for(s=0,n=this.effects.length;s0)return;if(At){let t=At;for(At=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;Ot;){let t=Ot;for(Ot=void 0;t;){const s=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=s}}if(e)throw e}function Yn(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function zn(e){let t,s=e.depsTail,n=s;for(;n;){const r=n.prevDep;n.version===-1?(n===s&&(s=r),Ws(n),oi(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=r}e.deps=t,e.depsTail=s}function Es(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Xn(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Xn(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Ft)||(e.globalVersion=Ft,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Es(e))))return;e.flags|=2;const t=e.dep,s=q,n=be;q=e,be=!0;try{Yn(e);const r=e.fn(e._value);(t.version===0||Re(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{q=s,be=n,zn(e),e.flags&=-3}}function Ws(e,t=!1){const{dep:s,prevSub:n,nextSub:r}=e;if(n&&(n.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=n,e.nextSub=void 0),s.subs===e&&(s.subs=n,!n&&s.computed)){s.computed.flags&=-5;for(let i=s.computed.deps;i;i=i.nextDep)Ws(i,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function oi(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let be=!0;const Zn=[];function je(){Zn.push(be),be=!1}function $e(){const e=Zn.pop();be=e===void 0?!0:e}function cn(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=q;q=void 0;try{t()}finally{q=s}}}let Ft=0;class fi{constructor(t,s){this.sub=t,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class qs{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!q||!be||q===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==q)s=this.activeLink=new fi(q,this),q.deps?(s.prevDep=q.depsTail,q.depsTail.nextDep=s,q.depsTail=s):q.deps=q.depsTail=s,Qn(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const n=s.nextDep;n.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=n),s.prevDep=q.depsTail,s.nextDep=void 0,q.depsTail.nextDep=s,q.depsTail=s,q.deps===s&&(q.deps=n)}return s}trigger(t){this.version++,Ft++,this.notify(t)}notify(t){Us();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{Vs()}}}function Qn(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)Qn(n)}const s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}const Os=new WeakMap,it=Symbol(""),As=Symbol(""),Dt=Symbol("");function re(e,t,s){if(be&&q){let n=Os.get(e);n||Os.set(e,n=new Map);let r=n.get(s);r||(n.set(s,r=new qs),r.map=n,r.key=s),r.track()}}function Be(e,t,s,n,r,i){const l=Os.get(e);if(!l){Ft++;return}const o=c=>{c&&c.trigger()};if(Us(),t==="clear")l.forEach(o);else{const c=I(e),d=c&&Ls(s);if(c&&s==="length"){const a=Number(n);l.forEach((p,C)=>{(C==="length"||C===Dt||!De(C)&&C>=a)&&o(p)})}else switch((s!==void 0||l.has(void 0))&&o(l.get(s)),d&&o(l.get(Dt)),t){case"add":c?d&&o(l.get("length")):(o(l.get(it)),ht(e)&&o(l.get(As)));break;case"delete":c||(o(l.get(it)),ht(e)&&o(l.get(As)));break;case"set":ht(e)&&o(l.get(it));break}}Vs()}function ct(e){const t=N(e);return t===e?t:(re(t,"iterate",Dt),ge(e)?t:t.map(ve))}function is(e){return re(e=N(e),"iterate",Dt),e}function Pe(e,t){return Ue(e)?_t(lt(e)?ve(t):t):ve(t)}const ci={__proto__:null,[Symbol.iterator](){return _s(this,Symbol.iterator,e=>Pe(this,e))},concat(...e){return ct(this).concat(...e.map(t=>I(t)?ct(t):t))},entries(){return _s(this,"entries",e=>(e[1]=Pe(this,e[1]),e))},every(e,t){return He(this,"every",e,t,void 0,arguments)},filter(e,t){return He(this,"filter",e,t,s=>s.map(n=>Pe(this,n)),arguments)},find(e,t){return He(this,"find",e,t,s=>Pe(this,s),arguments)},findIndex(e,t){return He(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return He(this,"findLast",e,t,s=>Pe(this,s),arguments)},findLastIndex(e,t){return He(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return He(this,"forEach",e,t,void 0,arguments)},includes(...e){return ms(this,"includes",e)},indexOf(...e){return ms(this,"indexOf",e)},join(e){return ct(this).join(e)},lastIndexOf(...e){return ms(this,"lastIndexOf",e)},map(e,t){return He(this,"map",e,t,void 0,arguments)},pop(){return St(this,"pop")},push(...e){return St(this,"push",e)},reduce(e,...t){return un(this,"reduce",e,t)},reduceRight(e,...t){return un(this,"reduceRight",e,t)},shift(){return St(this,"shift")},some(e,t){return He(this,"some",e,t,void 0,arguments)},splice(...e){return St(this,"splice",e)},toReversed(){return ct(this).toReversed()},toSorted(e){return ct(this).toSorted(e)},toSpliced(...e){return ct(this).toSpliced(...e)},unshift(...e){return St(this,"unshift",e)},values(){return _s(this,"values",e=>Pe(this,e))}};function _s(e,t,s){const n=is(e),r=n[t]();return n!==e&&!ge(e)&&(r._next=r.next,r.next=()=>{const i=r._next();return i.done||(i.value=s(i.value)),i}),r}const ui=Array.prototype;function He(e,t,s,n,r,i){const l=is(e),o=l!==e&&!ge(e),c=l[t];if(c!==ui[t]){const p=c.apply(e,i);return o?ve(p):p}let d=s;l!==e&&(o?d=function(p,C){return s.call(this,Pe(e,p),C,e)}:s.length>2&&(d=function(p,C){return s.call(this,p,C,e)}));const a=c.call(l,d,n);return o&&r?r(a):a}function un(e,t,s,n){const r=is(e),i=r!==e&&!ge(e);let l=s,o=!1;r!==e&&(i?(o=n.length===0,l=function(d,a,p){return o&&(o=!1,d=Pe(e,d)),s.call(this,d,Pe(e,a),p,e)}):s.length>3&&(l=function(d,a,p){return s.call(this,d,a,p,e)}));const c=r[t](l,...n);return o?Pe(e,c):c}function ms(e,t,s){const n=N(e);re(n,"iterate",Dt);const r=n[t](...s);return(r===-1||r===!1)&&Ys(s[0])?(s[0]=N(s[0]),n[t](...s)):r}function St(e,t,s=[]){je(),Us();const n=N(e)[t].apply(e,s);return Vs(),$e(),n}const ai=Hs("__proto__,__v_isRef,__isVue"),er=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(De));function di(e){De(e)||(e=String(e));const t=N(this);return re(t,"has",e),t.hasOwnProperty(e)}class tr{constructor(t=!1,s=!1){this._isReadonly=t,this._isShallow=s}get(t,s,n){if(s==="__v_skip")return t.__v_skip;const r=this._isReadonly,i=this._isShallow;if(s==="__v_isReactive")return!r;if(s==="__v_isReadonly")return r;if(s==="__v_isShallow")return i;if(s==="__v_raw")return n===(r?i?Si:ir:i?rr:nr).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const l=I(t);if(!r){let c;if(l&&(c=ci[s]))return c;if(s==="hasOwnProperty")return di}const o=Reflect.get(t,s,ie(t)?t:n);if((De(s)?er.has(s):ai(s))||(r||re(t,"get",s),i))return o;if(ie(o)){const c=l&&Ls(s)?o:o.value;return r&&U(c)?Ms(c):c}return U(o)?r?Ms(o):Js(o):o}}class sr extends tr{constructor(t=!1){super(!1,t)}set(t,s,n,r){let i=t[s];const l=I(t)&&Ls(s);if(!this._isShallow){const d=Ue(i);if(!ge(n)&&!Ue(n)&&(i=N(i),n=N(n)),!l&&ie(i)&&!ie(n))return d||(i.value=n),!0}const o=l?Number(s)e,Vt=e=>Reflect.getPrototypeOf(e);function mi(e,t,s){return function(...n){const r=this.__v_raw,i=N(r),l=ht(i),o=e==="entries"||e===Symbol.iterator&&l,c=e==="keys"&&l,d=r[e](...n),a=s?Ps:t?_t:ve;return!t&&re(i,"iterate",c?As:it),se(Object.create(d),{next(){const{value:p,done:C}=d.next();return C?{value:p,done:C}:{value:o?[a(p[0]),a(p[1])]:a(p),done:C}}})}}function Wt(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function bi(e,t){const s={get(r){const i=this.__v_raw,l=N(i),o=N(r);e||(Re(r,o)&&re(l,"get",r),re(l,"get",o));const{has:c}=Vt(l),d=t?Ps:e?_t:ve;if(c.call(l,r))return d(i.get(r));if(c.call(l,o))return d(i.get(o));i!==l&&i.get(r)},get size(){const r=this.__v_raw;return!e&&re(N(r),"iterate",it),r.size},has(r){const i=this.__v_raw,l=N(i),o=N(r);return e||(Re(r,o)&&re(l,"has",r),re(l,"has",o)),r===o?i.has(r):i.has(r)||i.has(o)},forEach(r,i){const l=this,o=l.__v_raw,c=N(o),d=t?Ps:e?_t:ve;return!e&&re(c,"iterate",it),o.forEach((a,p)=>r.call(i,d(a),d(p),l))}};return se(s,e?{add:Wt("add"),set:Wt("set"),delete:Wt("delete"),clear:Wt("clear")}:{add(r){const i=N(this),l=Vt(i),o=N(r),c=!t&&!ge(r)&&!Ue(r)?o:r;return l.has.call(i,c)||Re(r,c)&&l.has.call(i,r)||Re(o,c)&&l.has.call(i,o)||(i.add(c),Be(i,"add",c,c)),this},set(r,i){!t&&!ge(i)&&!Ue(i)&&(i=N(i));const l=N(this),{has:o,get:c}=Vt(l);let d=o.call(l,r);d||(r=N(r),d=o.call(l,r));const a=c.call(l,r);return l.set(r,i),d?Re(i,a)&&Be(l,"set",r,i):Be(l,"add",r,i),this},delete(r){const i=N(this),{has:l,get:o}=Vt(i);let c=l.call(i,r);c||(r=N(r),c=l.call(i,r)),o&&o.call(i,r);const d=i.delete(r);return c&&Be(i,"delete",r,void 0),d},clear(){const r=N(this),i=r.size!==0,l=r.clear();return i&&Be(r,"clear",void 0,void 0),l}}),["keys","values","entries",Symbol.iterator].forEach(r=>{s[r]=mi(r,e,t)}),s}function Gs(e,t){const s=bi(e,t);return(n,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?n:Reflect.get(L(s,r)&&r in n?s:n,r,i)}const vi={get:Gs(!1,!1)},yi={get:Gs(!1,!0)},xi={get:Gs(!0,!1)};const nr=new WeakMap,rr=new WeakMap,ir=new WeakMap,Si=new WeakMap;function wi(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Js(e){return Ue(e)?e:ks(e,!1,pi,vi,nr)}function Ci(e){return ks(e,!1,_i,yi,rr)}function Ms(e){return ks(e,!0,gi,xi,ir)}function ks(e,t,s,n,r){if(!U(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const i=r.get(e);if(i)return i;const l=wi(kr(e));if(l===0)return e;const o=new Proxy(e,l===2?n:s);return r.set(e,o),o}function lt(e){return Ue(e)?lt(e.__v_raw):!!(e&&e.__v_isReactive)}function Ue(e){return!!(e&&e.__v_isReadonly)}function ge(e){return!!(e&&e.__v_isShallow)}function Ys(e){return e?!!e.__v_raw:!1}function N(e){const t=e&&e.__v_raw;return t?N(t):e}function Ti(e){return!L(e,"__v_skip")&&Object.isExtensible(e)&&Un(e,"__v_skip",!0),e}const ve=e=>U(e)?Js(e):e,_t=e=>U(e)?Ms(e):e;function ie(e){return e?e.__v_isRef===!0:!1}function Ee(e){return Ei(e,!1)}function Ei(e,t){return ie(e)?e:new Oi(e,t)}class Oi{constructor(t,s){this.dep=new qs,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?t:N(t),this._value=s?t:ve(t),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(t){const s=this._rawValue,n=this.__v_isShallow||ge(t)||Ue(t);t=n?t:N(t),Re(t,s)&&(this._rawValue=t,this._value=n?t:ve(t),this.dep.trigger())}}function Ai(e){return ie(e)?e.value:e}const Pi={get:(e,t,s)=>t==="__v_raw"?e:Ai(Reflect.get(e,t,s)),set:(e,t,s,n)=>{const r=e[t];return ie(r)&&!ie(s)?(r.value=s,!0):Reflect.set(e,t,s,n)}};function lr(e){return lt(e)?e:new Proxy(e,Pi)}class Mi{constructor(t,s,n){this.fn=t,this.setter=s,this._value=void 0,this.dep=new qs(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Ft-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&q!==this)return kn(this,!0),!0}get value(){const t=this.dep.track();return Xn(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Ri(e,t,s=!1){let n,r;return D(e)?n=e:(n=e.get,r=e.set),new Mi(n,r,s)}const qt={},kt=new WeakMap;let nt;function Ii(e,t=!1,s=nt){if(s){let n=kt.get(s);n||kt.set(s,n=[]),n.push(e)}}function Fi(e,t,s=G){const{immediate:n,deep:r,once:i,scheduler:l,augmentJob:o,call:c}=s,d=A=>r?A:ge(A)||r===!1||r===0?Ge(A,1):Ge(A);let a,p,C,E,M=!1,x=!1;if(ie(e)?(p=()=>e.value,M=ge(e)):lt(e)?(p=()=>d(e),M=!0):I(e)?(x=!0,M=e.some(A=>lt(A)||ge(A)),p=()=>e.map(A=>{if(ie(A))return A.value;if(lt(A))return d(A);if(D(A))return c?c(A,2):A()})):D(e)?t?p=c?()=>c(e,2):e:p=()=>{if(C){je();try{C()}finally{$e()}}const A=nt;nt=a;try{return c?c(e,3,[E]):e(E)}finally{nt=A}}:p=Fe,t&&r){const A=p,k=r===!0?1/0:r;p=()=>Ge(A(),k)}const J=li(),B=()=>{a.stop(),J&&J.active&&Ns(J.effects,a)};if(i&&t){const A=t;t=(...k)=>{const ue=A(...k);return B(),ue}}let j=x?new Array(e.length).fill(qt):qt;const H=A=>{if(!(!(a.flags&1)||!a.dirty&&!A))if(t){const k=a.run();if(A||r||M||(x?k.some((ue,ae)=>Re(ue,j[ae])):Re(k,j))){C&&C();const ue=nt;nt=a;try{const ae=[k,j===qt?void 0:x&&j[0]===qt?[]:j,E];j=k,c?c(t,3,ae):t(...ae)}finally{nt=ue}}}else a.run()};return o&&o(H),a=new Gn(p),a.scheduler=l?()=>l(H,!1):H,E=A=>Ii(A,!1,a),C=a.onStop=()=>{const A=kt.get(a);if(A){if(c)c(A,4);else for(const k of A)k();kt.delete(a)}},t?n?H(!0):j=a.run():l?l(H.bind(null,!0),!0):a.run(),B.pause=a.pause.bind(a),B.resume=a.resume.bind(a),B.stop=B,B}function Ge(e,t=1/0,s){if(t<=0||!U(e)||e.__v_skip||(s=s||new Map,(s.get(e)||0)>=t))return e;if(s.set(e,t),t--,ie(e))Ge(e.value,t,s);else if(I(e))for(let n=0;n{Ge(n,t,s)});else if(Bn(e)){for(const n in e)Ge(e[n],t,s);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&Ge(e[n],t,s)}return e}/** +* @vue/runtime-core v3.5.39 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function Lt(e,t,s,n){try{return n?e(...n):e()}catch(r){ls(r,t,s)}}function ye(e,t,s,n){if(D(e)){const r=Lt(e,t,s,n);return r&&Nn(r)&&r.catch(i=>{ls(i,t,s)}),r}if(I(e)){const r=[];for(let i=0;i>>1,r=oe[n],i=jt(r);i=jt(s)?oe.push(e):oe.splice($i(t),0,e),e.flags|=1,fr()}}function fr(){Yt||(Yt=or.then(ur))}function Hi(e){I(e)?pt.push(...e):qe&&e.id===-1?qe.splice(at+1,0,e):e.flags&1||(pt.push(e),e.flags|=1),fr()}function an(e,t,s=Ae+1){for(;sjt(s)-jt(n));if(pt.length=0,qe){qe.push(...t);return}for(qe=t,at=0;ate.id==null?e.flags&2?-1:1/0:e.id;function ur(e){try{for(Ae=0;Ae{n._d&&Sn(-1);const i=zt(t);let l;try{l=e(...r)}finally{zt(i),n._d&&Sn(1)}return l};return n._n=!0,n._c=!0,n._d=!0,n}function Qe(e,t,s,n){const r=e.dirs,i=t&&t.dirs;for(let l=0;l1)return s&&D(t)?t.call(n&&n.proxy):t}}const Bi=Symbol.for("v-scx"),Ki=()=>Gt(Bi);function bs(e,t,s){return dr(e,t,s)}function dr(e,t,s=G){const{immediate:n,deep:r,flush:i,once:l}=s,o=se({},s),c=t&&n||!t&&i!=="post";let d;if(Ht){if(i==="sync"){const E=Ki();d=E.__watcherHandles||(E.__watcherHandles=[])}else if(!c){const E=()=>{};return E.stop=Fe,E.resume=Fe,E.pause=Fe,E}}const a=fe;o.call=(E,M,x)=>ye(E,a,M,x);let p=!1;i==="post"?o.scheduler=E=>{ce(E,a&&a.suspense)}:i!=="sync"&&(p=!0,o.scheduler=(E,M)=>{M?E():zs(E)}),o.augmentJob=E=>{t&&(E.flags|=4),p&&(E.flags|=2,a&&(E.id=a.uid,E.i=a))};const C=Fi(e,t,o);return Ht&&(d?d.push(C):c&&C()),C}function Ui(e,t,s){const n=this.proxy,r=z(e)?e.includes(".")?hr(n,e):()=>n[e]:e.bind(n,n);let i;D(t)?i=t:(i=t.handler,s=t);const l=Bt(this),o=dr(r,i.bind(n),s);return l(),o}function hr(e,t){const s=t.split(".");return()=>{let n=e;for(let r=0;re.__isTeleport,vs=Symbol("_leaveCb");function Xs(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Xs(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function qi(e,t){return D(e)?se({name:e.name},t,{setup:e}):e}function pr(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function dn(e,t){let s;return!!((s=Object.getOwnPropertyDescriptor(e,t))&&!s.configurable)}const Xt=new WeakMap;function Pt(e,t,s,n,r=!1){if(I(e)){e.forEach((x,J)=>Pt(x,t&&(I(t)?t[J]:t),s,n,r));return}if(Mt(n)&&!r){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&Pt(e,t,s,n.component.subTree);return}const i=n.shapeFlag&4?en(n.component):n.el,l=r?null:i,{i:o,r:c}=e,d=t&&t.r,a=o.refs===G?o.refs={}:o.refs,p=o.setupState,C=N(p),E=p===G?$n:x=>dn(a,x)?!1:L(C,x),M=(x,J)=>!(J&&dn(a,J));if(d!=null&&d!==c){if(hn(t),z(d))a[d]=null,E(d)&&(p[d]=null);else if(ie(d)){const x=t;M(d,x.k)&&(d.value=null),x.k&&(a[x.k]=null)}}if(D(c)){je();try{Lt(c,o,12,[l,a])}finally{$e()}}else{const x=z(c),J=ie(c);if(x||J){const B=()=>{if(e.f){const j=x?E(c)?p[c]:a[c]:M()||!e.k?c.value:a[e.k];if(r)I(j)&&Ns(j,i);else if(I(j))j.includes(i)||j.push(i);else if(x)a[c]=[i],E(c)&&(p[c]=a[c]);else{const H=[i];M(c,e.k)&&(c.value=H),e.k&&(a[e.k]=H)}}else x?(a[c]=l,E(c)&&(p[c]=l)):J&&(M(c,e.k)&&(c.value=l),e.k&&(a[e.k]=l))};if(l){const j=()=>{B(),Xt.delete(e)};j.id=-1,Xt.set(e,j),ce(j,s)}else hn(e),B()}}}function hn(e){const t=Xt.get(e);t&&(t.flags|=8,Xt.delete(e))}rs().requestIdleCallback;rs().cancelIdleCallback;const Mt=e=>!!e.type.__asyncLoader,gr=e=>e.type.__isKeepAlive;function Gi(e,t){_r(e,"a",t)}function Ji(e,t){_r(e,"da",t)}function _r(e,t,s=fe){const n=e.__wdc||(e.__wdc=()=>{let r=s;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(os(t,n,s),s){let r=s.parent;for(;r&&r.parent;)gr(r.parent.vnode)&&ki(n,t,s,r),r=r.parent}}function ki(e,t,s,n){const r=os(t,e,n,!0);br(()=>{Ns(n[t],r)},s)}function os(e,t,s=fe,n=!1){if(s){const r=s[e]||(s[e]=[]),i=t.__weh||(t.__weh=(...l)=>{je();const o=Bt(s),c=ye(t,s,e,l);return o(),$e(),c});return n?r.unshift(i):r.push(i),i}}const Ve=e=>(t,s=fe)=>{(!Ht||e==="sp")&&os(e,(...n)=>t(...n),s)},Yi=Ve("bm"),mr=Ve("m"),zi=Ve("bu"),Xi=Ve("u"),Zi=Ve("bum"),br=Ve("um"),Qi=Ve("sp"),el=Ve("rtg"),tl=Ve("rtc");function sl(e,t=fe){os("ec",e,t)}const nl=Symbol.for("v-ndc");function ys(e,t,s,n){let r;const i=s,l=I(e);if(l||z(e)){const o=l&<(e);let c=!1,d=!1;o&&(c=!ge(e),d=Ue(e),e=is(e)),r=new Array(e.length);for(let a=0,p=e.length;at(o,c,void 0,i));else{const o=Object.keys(e);r=new Array(o.length);for(let c=0,d=o.length;ce?Lr(e)?en(e):Rs(e.parent):null,Rt=se(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Rs(e.parent),$root:e=>Rs(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>yr(e),$forceUpdate:e=>e.f||(e.f=()=>{zs(e.update)}),$nextTick:e=>e.n||(e.n=ji.bind(e.proxy)),$watch:e=>Ui.bind(e)}),xs=(e,t)=>e!==G&&!e.__isScriptSetup&&L(e,t),rl={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:n,data:r,props:i,accessCache:l,type:o,appContext:c}=e;if(t[0]!=="$"){const C=l[t];if(C!==void 0)switch(C){case 1:return n[t];case 2:return r[t];case 4:return s[t];case 3:return i[t]}else{if(xs(n,t))return l[t]=1,n[t];if(r!==G&&L(r,t))return l[t]=2,r[t];if(L(i,t))return l[t]=3,i[t];if(s!==G&&L(s,t))return l[t]=4,s[t];Is&&(l[t]=0)}}const d=Rt[t];let a,p;if(d)return t==="$attrs"&&re(e.attrs,"get",""),d(e);if((a=o.__cssModules)&&(a=a[t]))return a;if(s!==G&&L(s,t))return l[t]=4,s[t];if(p=c.config.globalProperties,L(p,t))return p[t]},set({_:e},t,s){const{data:n,setupState:r,ctx:i}=e;return xs(r,t)?(r[t]=s,!0):n!==G&&L(n,t)?(n[t]=s,!0):L(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:n,appContext:r,props:i,type:l}},o){let c;return!!(s[o]||e!==G&&o[0]!=="$"&&L(e,o)||xs(t,o)||L(i,o)||L(n,o)||L(Rt,o)||L(r.config.globalProperties,o)||(c=l.__cssModules)&&c[o])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:L(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function pn(e){return I(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}let Is=!0;function il(e){const t=yr(e),s=e.proxy,n=e.ctx;Is=!1,t.beforeCreate&&gn(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:l,watch:o,provide:c,inject:d,created:a,beforeMount:p,mounted:C,beforeUpdate:E,updated:M,activated:x,deactivated:J,beforeDestroy:B,beforeUnmount:j,destroyed:H,unmounted:A,render:k,renderTracked:ue,renderTriggered:ae,errorCaptured:_e,serverPrefetch:ke,expose:xe,inheritAttrs:We,components:Ye,directives:ze,filters:ft}=t;if(d&&ll(d,n,null),l)for(const W in l){const F=l[W];D(F)&&(n[W]=F.bind(s))}if(r){const W=r.call(s,s);U(W)&&(e.data=Js(W))}if(Is=!0,i)for(const W in i){const F=i[W],Xe=D(F)?F.bind(s,s):D(F.get)?F.get.bind(s,s):Fe,Kt=!D(F)&&D(F.set)?F.set.bind(s):Fe,Ze=Kr({get:Xe,set:Kt});Object.defineProperty(n,W,{enumerable:!0,configurable:!0,get:()=>Ze.value,set:Se=>Ze.value=Se})}if(o)for(const W in o)vr(o[W],n,s,W);if(c){const W=D(c)?c.call(s):c;Reflect.ownKeys(W).forEach(F=>{Li(F,W[F])})}a&&gn(a,e,"c");function Z(W,F){I(F)?F.forEach(Xe=>W(Xe.bind(s))):F&&W(F.bind(s))}if(Z(Yi,p),Z(mr,C),Z(zi,E),Z(Xi,M),Z(Gi,x),Z(Ji,J),Z(sl,_e),Z(tl,ue),Z(el,ae),Z(Zi,j),Z(br,A),Z(Qi,ke),I(xe))if(xe.length){const W=e.exposed||(e.exposed={});xe.forEach(F=>{Object.defineProperty(W,F,{get:()=>s[F],set:Xe=>s[F]=Xe,enumerable:!0})})}else e.exposed||(e.exposed={});k&&e.render===Fe&&(e.render=k),We!=null&&(e.inheritAttrs=We),Ye&&(e.components=Ye),ze&&(e.directives=ze),ke&&pr(e)}function ll(e,t,s=Fe){I(e)&&(e=Fs(e));for(const n in e){const r=e[n];let i;U(r)?"default"in r?i=Gt(r.from||n,r.default,!0):i=Gt(r.from||n):i=Gt(r),ie(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:l=>i.value=l}):t[n]=i}}function gn(e,t,s){ye(I(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,s)}function vr(e,t,s,n){let r=n.includes(".")?hr(s,n):()=>s[n];if(z(e)){const i=t[e];D(i)&&bs(r,i)}else if(D(e))bs(r,e.bind(s));else if(U(e))if(I(e))e.forEach(i=>vr(i,t,s,n));else{const i=D(e.handler)?e.handler.bind(s):t[e.handler];D(i)&&bs(r,i,e)}}function yr(e){const t=e.type,{mixins:s,extends:n}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:l}}=e.appContext,o=i.get(t);let c;return o?c=o:!r.length&&!s&&!n?c=t:(c={},r.length&&r.forEach(d=>Zt(c,d,l,!0)),Zt(c,t,l)),U(t)&&i.set(t,c),c}function Zt(e,t,s,n=!1){const{mixins:r,extends:i}=t;i&&Zt(e,i,s,!0),r&&r.forEach(l=>Zt(e,l,s,!0));for(const l in t)if(!(n&&l==="expose")){const o=ol[l]||s&&s[l];e[l]=o?o(e[l],t[l]):t[l]}return e}const ol={data:_n,props:mn,emits:mn,methods:Ct,computed:Ct,beforeCreate:le,created:le,beforeMount:le,mounted:le,beforeUpdate:le,updated:le,beforeDestroy:le,beforeUnmount:le,destroyed:le,unmounted:le,activated:le,deactivated:le,errorCaptured:le,serverPrefetch:le,components:Ct,directives:Ct,watch:cl,provide:_n,inject:fl};function _n(e,t){return t?e?function(){return se(D(e)?e.call(this,this):e,D(t)?t.call(this,this):t)}:t:e}function fl(e,t){return Ct(Fs(e),Fs(t))}function Fs(e){if(I(e)){const t={};for(let s=0;st==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${me(t)}Modifiers`]||e[`${ot(t)}Modifiers`];function hl(e,t,...s){if(e.isUnmounted)return;const n=e.vnode.props||G;let r=s;const i=t.startsWith("update:"),l=i&&dl(n,t.slice(7));l&&(l.trim&&(r=s.map(a=>z(a)?a.trim():a)),l.number&&(r=s.map(Xr)));let o,c=n[o=ds(t)]||n[o=ds(me(t))];!c&&i&&(c=n[o=ds(ot(t))]),c&&ye(c,e,6,r);const d=n[o+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[o])return;e.emitted[o]=!0,ye(d,e,6,r)}}const pl=new WeakMap;function Sr(e,t,s=!1){const n=s?pl:t.emitsCache,r=n.get(e);if(r!==void 0)return r;const i=e.emits;let l={},o=!1;if(!D(e)){const c=d=>{const a=Sr(d,t,!0);a&&(o=!0,se(l,a))};!s&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!i&&!o?(U(e)&&n.set(e,null),null):(I(i)?i.forEach(c=>l[c]=null):se(l,i),U(e)&&n.set(e,l),l)}function fs(e,t){return!e||!ts(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),L(e,t[0].toLowerCase()+t.slice(1))||L(e,ot(t))||L(e,t))}function bn(e){const{type:t,vnode:s,proxy:n,withProxy:r,propsOptions:[i],slots:l,attrs:o,emit:c,render:d,renderCache:a,props:p,data:C,setupState:E,ctx:M,inheritAttrs:x}=e,J=zt(e);let B,j;try{if(s.shapeFlag&4){const A=r||n,k=A;B=Me(d.call(k,A,a,p,E,C,M)),j=o}else{const A=t;B=Me(A.length>1?A(p,{attrs:o,slots:l,emit:c}):A(p,null)),j=t.props?o:gl(o)}}catch(A){It.length=0,ls(A,e,1),B=Ke(Je)}let H=B;if(j&&x!==!1){const A=Object.keys(j),{shapeFlag:k}=H;A.length&&k&7&&(i&&A.some(ss)&&(j=_l(j,i)),H=mt(H,j,!1,!0))}return s.dirs&&(H=mt(H,null,!1,!0),H.dirs=H.dirs?H.dirs.concat(s.dirs):s.dirs),s.transition&&Xs(H,s.transition),B=H,zt(J),B}const gl=e=>{let t;for(const s in e)(s==="class"||s==="style"||ts(s))&&((t||(t={}))[s]=e[s]);return t},_l=(e,t)=>{const s={};for(const n in e)(!ss(n)||!(n.slice(9)in t))&&(s[n]=e[n]);return s};function ml(e,t,s){const{props:n,children:r,component:i}=e,{props:l,children:o,patchFlag:c}=t,d=i.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&c>=0){if(c&1024)return!0;if(c&16)return n?vn(n,l,d):!!l;if(c&8){const a=t.dynamicProps;for(let p=0;pObject.create(Cr),Er=e=>Object.getPrototypeOf(e)===Cr;function vl(e,t,s,n=!1){const r={},i=Tr();e.propsDefaults=Object.create(null),Or(e,t,r,i);for(const l in e.propsOptions[0])l in r||(r[l]=void 0);s?e.props=n?r:Ci(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function yl(e,t,s,n){const{props:r,attrs:i,vnode:{patchFlag:l}}=e,o=N(r),[c]=e.propsOptions;let d=!1;if((n||l>0)&&!(l&16)){if(l&8){const a=e.vnode.dynamicProps;for(let p=0;p{c=!0;const[C,E]=Ar(p,t,!0);se(l,C),E&&o.push(...E)};!s&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}if(!i&&!c)return U(e)&&n.set(e,dt),dt;if(I(i))for(let a=0;ae==="_"||e==="_ctx"||e==="$stable",Qs=e=>I(e)?e.map(Me):[Me(e)],Sl=(e,t,s)=>{if(t._n)return t;const n=Ni((...r)=>Qs(t(...r)),s);return n._c=!1,n},Pr=(e,t,s)=>{const n=e._ctx;for(const r in e){if(Zs(r))continue;const i=e[r];if(D(i))t[r]=Sl(r,i,n);else if(i!=null){const l=Qs(i);t[r]=()=>l}}},Mr=(e,t)=>{const s=Qs(t);e.slots.default=()=>s},Rr=(e,t,s)=>{for(const n in t)(s||!Zs(n))&&(e[n]=t[n])},wl=(e,t,s)=>{const n=e.slots=Tr();if(e.vnode.shapeFlag&32){const r=t._;r?(Rr(n,t,s),s&&Un(n,"_",r,!0)):Pr(t,n)}else t&&Mr(e,t)},Cl=(e,t,s)=>{const{vnode:n,slots:r}=e;let i=!0,l=G;if(n.shapeFlag&32){const o=t._;o?s&&o===1?i=!1:Rr(r,t,s):(i=!t.$stable,Pr(t,r)),l=t}else t&&(Mr(e,t),l={default:1});if(i)for(const o in r)!Zs(o)&&l[o]==null&&delete r[o]},ce=Pl;function Tl(e){return El(e)}function El(e,t){const s=rs();s.__VUE__=!0;const{insert:n,remove:r,patchProp:i,createElement:l,createText:o,createComment:c,setText:d,setElementText:a,parentNode:p,nextSibling:C,setScopeId:E=Fe,insertStaticContent:M}=e,x=(f,u,h,b=null,m=null,g=null,S=void 0,y=null,v=!!u.dynamicChildren)=>{if(f===u)return;f&&!wt(f,u)&&(b=Ut(f),Se(f,m,g,!0),f=null),u.patchFlag===-2&&(v=!1,u.dynamicChildren=null);const{type:_,ref:P,shapeFlag:w}=u;switch(_){case cs:J(f,u,h,b);break;case Je:B(f,u,h,b);break;case ws:f==null&&j(u,h,b,S);break;case he:Ye(f,u,h,b,m,g,S,y,v);break;default:w&1?k(f,u,h,b,m,g,S,y,v):w&6?ze(f,u,h,b,m,g,S,y,v):(w&64||w&128)&&_.process(f,u,h,b,m,g,S,y,v,yt)}P!=null&&m?Pt(P,f&&f.ref,g,u||f,!u):P==null&&f&&f.ref!=null&&Pt(f.ref,null,g,f,!0)},J=(f,u,h,b)=>{if(f==null)n(u.el=o(u.children),h,b);else{const m=u.el=f.el;u.children!==f.children&&d(m,u.children)}},B=(f,u,h,b)=>{f==null?n(u.el=c(u.children||""),h,b):u.el=f.el},j=(f,u,h,b)=>{[f.el,f.anchor]=M(f.children,u,h,b,f.el,f.anchor)},H=({el:f,anchor:u},h,b)=>{let m;for(;f&&f!==u;)m=C(f),n(f,h,b),f=m;n(u,h,b)},A=({el:f,anchor:u})=>{let h;for(;f&&f!==u;)h=C(f),r(f),f=h;r(u)},k=(f,u,h,b,m,g,S,y,v)=>{if(u.type==="svg"?S="svg":u.type==="math"&&(S="mathml"),f==null)ue(u,h,b,m,g,S,y,v);else{const _=f.el&&f.el._isVueCE?f.el:null;try{_&&_._beginPatch(),ke(f,u,m,g,S,y,v)}finally{_&&_._endPatch()}}},ue=(f,u,h,b,m,g,S,y)=>{let v,_;const{props:P,shapeFlag:w,transition:O,dirs:R}=f;if(v=f.el=l(f.type,g,P&&P.is,P),w&8?a(v,f.children):w&16&&_e(f.children,v,null,b,m,Ss(f,g),S,y),R&&Qe(f,null,b,"created"),ae(v,f,f.scopeId,S,b),P){for(const V in P)V!=="value"&&!Et(V)&&i(v,V,null,P[V],g,b);"value"in P&&i(v,"value",null,P.value,g),(_=P.onVnodeBeforeMount)&&Oe(_,b,f)}R&&Qe(f,null,b,"beforeMount");const $=Ol(m,O);$&&O.beforeEnter(v),n(v,u,h),((_=P&&P.onVnodeMounted)||$||R)&&ce(()=>{try{_&&Oe(_,b,f),$&&O.enter(v),R&&Qe(f,null,b,"mounted")}finally{}},m)},ae=(f,u,h,b,m)=>{if(h&&E(f,h),b)for(let g=0;g{for(let _=v;_{const y=u.el=f.el;let{patchFlag:v,dynamicChildren:_,dirs:P}=u;v|=f.patchFlag&16;const w=f.props||G,O=u.props||G;let R;if(h&&et(h,!1),(R=O.onVnodeBeforeUpdate)&&Oe(R,h,u,f),P&&Qe(u,f,h,"beforeUpdate"),h&&et(h,!0),_&&(!f.dynamicChildren||f.dynamicChildren.length!==_.length)&&(v=0,S=!1,_=null),(w.innerHTML&&O.innerHTML==null||w.textContent&&O.textContent==null)&&a(y,""),_?xe(f.dynamicChildren,_,y,h,b,Ss(u,m),g):S||F(f,u,y,null,h,b,Ss(u,m),g,!1),v>0){if(v&16)We(y,w,O,h,m);else if(v&2&&w.class!==O.class&&i(y,"class",null,O.class,m),v&4&&i(y,"style",w.style,O.style,m),v&8){const $=u.dynamicProps;for(let V=0;V<$.length;V++){const K=$[V],X=w[K],Q=O[K];(Q!==X||K==="value")&&i(y,K,X,Q,m,h)}}v&1&&f.children!==u.children&&a(y,u.children)}else!S&&_==null&&We(y,w,O,h,m);((R=O.onVnodeUpdated)||P)&&ce(()=>{R&&Oe(R,h,u,f),P&&Qe(u,f,h,"updated")},b)},xe=(f,u,h,b,m,g,S)=>{for(let y=0;y{if(u!==h){if(u!==G)for(const g in u)!Et(g)&&!(g in h)&&i(f,g,u[g],null,m,b);for(const g in h){if(Et(g))continue;const S=h[g],y=u[g];S!==y&&g!=="value"&&i(f,g,y,S,m,b)}"value"in h&&i(f,"value",u.value,h.value,m)}},Ye=(f,u,h,b,m,g,S,y,v)=>{const _=u.el=f?f.el:o(""),P=u.anchor=f?f.anchor:o("");let{patchFlag:w,dynamicChildren:O,slotScopeIds:R}=u;R&&(y=y?y.concat(R):R),f==null?(n(_,h,b),n(P,h,b),_e(u.children||[],h,P,m,g,S,y,v)):w>0&&w&64&&O&&f.dynamicChildren&&f.dynamicChildren.length===O.length?(xe(f.dynamicChildren,O,h,m,g,S,y),(u.key!=null||m&&u===m.subTree)&&Ir(f,u,!0)):F(f,u,h,P,m,g,S,y,v)},ze=(f,u,h,b,m,g,S,y,v)=>{u.slotScopeIds=y,f==null?u.shapeFlag&512?m.ctx.activate(u,h,b,S,v):ft(u,h,b,m,g,S,v):bt(f,u,v)},ft=(f,u,h,b,m,g,S)=>{const y=f.component=Nl(f,b,m);if(gr(f)&&(y.ctx.renderer=yt),Bl(y,!1,S),y.asyncDep){if(m&&m.registerDep(y,Z,S),!f.el){const v=y.subTree=Ke(Je);B(null,v,u,h),f.placeholder=v.el}}else Z(y,f,u,h,m,g,S)},bt=(f,u,h)=>{const b=u.component=f.component;if(ml(f,u,h))if(b.asyncDep&&!b.asyncResolved){W(b,u,h);return}else b.next=u,b.update();else u.el=f.el,b.vnode=u},Z=(f,u,h,b,m,g,S)=>{const y=()=>{if(f.isMounted){let{next:w,bu:O,u:R,parent:$,vnode:V}=f;{const Ce=Fr(f);if(Ce){w&&(w.el=V.el,W(f,w,S)),Ce.asyncDep.then(()=>{ce(()=>{f.isUnmounted||_()},m)});return}}let K=w,X;et(f,!1),w?(w.el=V.el,W(f,w,S)):w=V,O&&hs(O),(X=w.props&&w.props.onVnodeBeforeUpdate)&&Oe(X,$,w,V),et(f,!0);const Q=bn(f),we=f.subTree;f.subTree=Q,x(we,Q,p(we.el),Ut(we),f,m,g),w.el=Q.el,K===null&&bl(f,Q.el),R&&ce(R,m),(X=w.props&&w.props.onVnodeUpdated)&&ce(()=>Oe(X,$,w,V),m)}else{let w;const{el:O,props:R}=u,{bm:$,m:V,parent:K,root:X,type:Q}=f,we=Mt(u);et(f,!1),$&&hs($),!we&&(w=R&&R.onVnodeBeforeMount)&&Oe(w,K,u),et(f,!0);{X.ce&&X.ce._hasShadowRoot()&&X.ce._injectChildStyle(Q,f.parent?f.parent.type:void 0);const Ce=f.subTree=bn(f);x(null,Ce,h,b,f,m,g),u.el=Ce.el}if(V&&ce(V,m),!we&&(w=R&&R.onVnodeMounted)){const Ce=u;ce(()=>Oe(w,K,Ce),m)}(u.shapeFlag&256||K&&Mt(K.vnode)&&K.vnode.shapeFlag&256)&&f.a&&ce(f.a,m),f.isMounted=!0,u=h=b=null}};f.scope.on();const v=f.effect=new Gn(y);f.scope.off();const _=f.update=v.run.bind(v),P=f.job=v.runIfDirty.bind(v);P.i=f,P.id=f.uid,v.scheduler=()=>zs(P),et(f,!0),_()},W=(f,u,h)=>{u.component=f;const b=f.vnode.props;f.vnode=u,f.next=null,yl(f,u.props,b,h),Cl(f,u.children,h),je(),an(f),$e()},F=(f,u,h,b,m,g,S,y,v=!1)=>{const _=f&&f.children,P=f?f.shapeFlag:0,w=u.children,{patchFlag:O,shapeFlag:R}=u;if(O>0){if(O&128){Kt(_,w,h,b,m,g,S,y,v);return}else if(O&256){Xe(_,w,h,b,m,g,S,y,v);return}}R&8?(P&16&&vt(_,m,g),w!==_&&a(h,w)):P&16?R&16?Kt(_,w,h,b,m,g,S,y,v):vt(_,m,g,!0):(P&8&&a(h,""),R&16&&_e(w,h,b,m,g,S,y,v))},Xe=(f,u,h,b,m,g,S,y,v)=>{f=f||dt,u=u||dt;const _=f.length,P=u.length,w=Math.min(_,P);let O;for(O=0;OP?vt(f,m,g,!0,!1,w):_e(u,h,b,m,g,S,y,v,w)},Kt=(f,u,h,b,m,g,S,y,v)=>{let _=0;const P=u.length;let w=f.length-1,O=P-1;for(;_<=w&&_<=O;){const R=f[_],$=u[_]=v?Le(u[_]):Me(u[_]);if(wt(R,$))x(R,$,h,null,m,g,S,y,v);else break;_++}for(;_<=w&&_<=O;){const R=f[w],$=u[O]=v?Le(u[O]):Me(u[O]);if(wt(R,$))x(R,$,h,null,m,g,S,y,v);else break;w--,O--}if(_>w){if(_<=O){const R=O+1,$=RO)for(;_<=w;)Se(f[_],m,g,!0),_++;else{const R=_,$=_,V=new Map;for(_=$;_<=O;_++){const de=u[_]=v?Le(u[_]):Me(u[_]);de.key!=null&&V.set(de.key,_)}let K,X=0;const Q=O-$+1;let we=!1,Ce=0;const xt=new Array(Q);for(_=0;_=Q){Se(de,m,g,!0);continue}let Te;if(de.key!=null)Te=V.get(de.key);else for(K=$;K<=O;K++)if(xt[K-$]===0&&wt(de,u[K])){Te=K;break}Te===void 0?Se(de,m,g,!0):(xt[Te-$]=_+1,Te>=Ce?Ce=Te:we=!0,x(de,u[Te],h,null,m,g,S,y,v),X++)}const nn=we?Al(xt):dt;for(K=nn.length-1,_=Q-1;_>=0;_--){const de=$+_,Te=u[de],rn=u[de+1],ln=de+1{const{el:g,type:S,transition:y,children:v,shapeFlag:_}=f;if(_&6){Ze(f.component.subTree,u,h,b);return}if(_&128){f.suspense.move(u,h,b);return}if(_&64){S.move(f,u,h,yt);return}if(S===he){n(g,u,h);for(let w=0;wy.enter(g),m));else{const{leave:w,delayLeave:O,afterLeave:R}=y,$=()=>{f.ctx.isUnmounted?r(g):n(g,u,h)},V=()=>{const K=g._isLeaving||!!g[vs];g._isLeaving&&g[vs](!0),y.persisted&&!K?$():w(g,()=>{$(),R&&R()})};O?O(g,$,V):V()}else n(g,u,h)},Se=(f,u,h,b=!1,m=!1)=>{const{type:g,props:S,ref:y,children:v,dynamicChildren:_,shapeFlag:P,patchFlag:w,dirs:O,cacheIndex:R,memo:$}=f;if(w===-2&&(m=!1),y!=null&&(je(),Pt(y,null,h,f,!0),$e()),R!=null&&(u.renderCache[R]=void 0),P&256){u.ctx.deactivate(f);return}const V=P&1&&O,K=!Mt(f);let X;if(K&&(X=S&&S.onVnodeBeforeUnmount)&&Oe(X,u,f),P&6)Wr(f.component,h,b);else{if(P&128){f.suspense.unmount(h,b);return}V&&Qe(f,null,u,"beforeUnmount"),P&64?f.type.remove(f,u,h,yt,b):_&&!_.hasOnce&&(g!==he||w>0&&w&64)?vt(_,u,h,!1,!0):(g===he&&w&384||!m&&P&16)&&vt(v,u,h),b&&tn(f)}const Q=$!=null&&R==null;(K&&(X=S&&S.onVnodeUnmounted)||V||Q)&&ce(()=>{X&&Oe(X,u,f),V&&Qe(f,null,u,"unmounted"),Q&&(f.el=null)},h)},tn=f=>{const{type:u,el:h,anchor:b,transition:m}=f;if(u===he){Vr(h,b);return}if(u===ws){A(f);return}const g=()=>{r(h),m&&!m.persisted&&m.afterLeave&&m.afterLeave()};if(f.shapeFlag&1&&m&&!m.persisted){const{leave:S,delayLeave:y}=m,v=()=>S(h,g);y?y(f.el,g,v):v()}else g()},Vr=(f,u)=>{let h;for(;f!==u;)h=C(f),r(f),f=h;r(u)},Wr=(f,u,h)=>{const{bum:b,scope:m,job:g,subTree:S,um:y,m:v,a:_}=f;xn(v),xn(_),b&&hs(b),m.stop(),g&&(g.flags|=8,Se(S,f,u,h)),y&&ce(y,u),ce(()=>{f.isUnmounted=!0},u)},vt=(f,u,h,b=!1,m=!1,g=0)=>{for(let S=g;S{if(f.shapeFlag&6)return Ut(f.component.subTree);if(f.shapeFlag&128)return f.suspense.next();const u=C(f.anchor||f.el),h=u&&u[Vi];return h?C(h):u};let us=!1;const sn=(f,u,h)=>{let b;f==null?u._vnode&&(Se(u._vnode,null,null,!0),b=u._vnode.component):x(u._vnode||null,f,u,null,null,null,h),u._vnode=f,us||(us=!0,an(b),cr(),us=!1)},yt={p:x,um:Se,m:Ze,r:tn,mt:ft,mc:_e,pc:F,pbc:xe,n:Ut,o:e};return{render:sn,hydrate:void 0,createApp:al(sn)}}function Ss({type:e,props:t},s){return s==="svg"&&e==="foreignObject"||s==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:s}function et({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Ol(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ir(e,t,s=!1){const n=e.children,r=t.children;if(I(n)&&I(r))for(let i=0;i>1,e[s[o]]0&&(t[n]=s[i-1]),s[i]=n)}}for(i=s.length,l=s[i-1];i-- >0;)s[i]=l,l=t[l];return s}function Fr(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Fr(t)}function xn(e){if(e)for(let t=0;te.__isSuspense;function Pl(e,t){t&&t.pendingBranch?I(e)?t.effects.push(...e):t.effects.push(e):Hi(e)}const he=Symbol.for("v-fgt"),cs=Symbol.for("v-txt"),Je=Symbol.for("v-cmt"),ws=Symbol.for("v-stc"),It=[];let pe=null;function ee(e=!1){It.push(pe=e?null:[])}function Ml(){It.pop(),pe=It[It.length-1]||null}let $t=1;function Sn(e,t=!1){$t+=e,e<0&&pe&&t&&(pe.hasOnce=!0)}function $r(e){return e.dynamicChildren=$t>0?pe||dt:null,Ml(),$t>0&&pe&&pe.push(e),e}function ne(e,t,s,n,r,i){return $r(T(e,t,s,n,r,i,!0))}function Rl(e,t,s,n,r){return $r(Ke(e,t,s,n,r,!0))}function Hr(e){return e?e.__v_isVNode===!0:!1}function wt(e,t){return e.type===t.type&&e.key===t.key}const Nr=({key:e})=>e??null,Jt=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?z(e)||ie(e)||D(e)?{i:Ie,r:e,k:t,f:!!s}:e:null);function T(e,t=null,s=null,n=0,r=null,i=e===he?0:1,l=!1,o=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Nr(t),ref:t&&Jt(t),scopeId:ar,slotScopeIds:null,children:s,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:n,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Ie};return o?(Qt(c,s),i&128&&e.normalize(c)):s&&(c.shapeFlag|=z(s)?8:16),$t>0&&!l&&pe&&(c.patchFlag>0||i&6)&&c.patchFlag!==32&&pe.push(c),c}const Ke=Il;function Il(e,t=null,s=null,n=0,r=null,i=!1){if((!e||e===nl)&&(e=Je),Hr(e)){const o=mt(e,t,!0);return s&&Qt(o,s),$t>0&&!i&&pe&&(o.shapeFlag&6?pe[pe.indexOf(e)]=o:pe.push(o)),o.patchFlag=-2,o}if(Wl(e)&&(e=e.__vccOpts),t){t=Fl(t);let{class:o,style:c}=t;o&&!z(o)&&(t.class=rt(o)),U(c)&&(Ys(c)&&!I(c)&&(c=se({},c)),t.style=Bs(c))}const l=z(e)?1:jr(e)?128:Wi(e)?64:U(e)?4:D(e)?2:0;return T(e,t,s,n,r,l,i,!0)}function Fl(e){return e?Ys(e)||Er(e)?se({},e):e:null}function mt(e,t,s=!1,n=!1){const{props:r,ref:i,patchFlag:l,children:o,transition:c}=e,d=t?jl(r||{},t):r,a={__v_isVNode:!0,__v_skip:!0,type:e.type,props:d,key:d&&Nr(d),ref:t&&t.ref?s&&i?I(i)?i.concat(Jt(t)):[i,Jt(t)]:Jt(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==he?l===-1?16:l|16:l,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&mt(e.ssContent),ssFallback:e.ssFallback&&mt(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&n&&Xs(a,c.clone(a)),a}function Dl(e=" ",t=0){return Ke(cs,null,e,t)}function ut(e="",t=!1){return t?(ee(),Rl(Je,null,e)):Ke(Je,null,e)}function Me(e){return e==null||typeof e=="boolean"?Ke(Je):I(e)?Ke(he,null,e.slice()):Hr(e)?Le(e):Ke(cs,null,String(e))}function Le(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:mt(e)}function Qt(e,t){let s=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(I(t))s=16;else if(typeof t=="object")if(n&65){const r=t.default;r&&(r._c&&(r._d=!1),Qt(e,r()),r._c&&(r._d=!0));return}else{s=32;const r=t._;!r&&!Er(t)?t._ctx=Ie:r===3&&Ie&&(Ie.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(D(t)){if(n&65){Qt(e,{default:t});return}t={default:t,_ctx:Ie},s=32}else t=String(t),n&64?(s=16,t=[Dl(t)]):s=8;e.children=t,e.shapeFlag|=s}function jl(...e){const t={};for(let s=0;sfe||Ie;let es,js;{const e=rs(),t=(s,n)=>{let r;return(r=e[s])||(r=e[s]=[]),r.push(n),i=>{r.length>1?r.forEach(l=>l(i)):r[0](i)}};es=t("__VUE_INSTANCE_SETTERS__",s=>fe=s),js=t("__VUE_SSR_SETTERS__",s=>Ht=s)}const Bt=e=>{const t=fe;return es(e),e.scope.on(),()=>{e.scope.off(),es(t)}},wn=()=>{fe&&fe.scope.off(),es(null)};function Lr(e){return e.vnode.shapeFlag&4}let Ht=!1;function Bl(e,t=!1,s=!1){t&&js(t);const{props:n,children:r}=e.vnode,i=Lr(e);vl(e,n,i,t),wl(e,r,s||t);const l=i?Kl(e,t):void 0;return t&&js(!1),l}function Kl(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,rl);const{setup:n}=s;if(n){je();const r=e.setupContext=n.length>1?Vl(e):null,i=Bt(e),l=Lt(n,e,0,[e.props,r]),o=Nn(l);if($e(),i(),(o||e.sp)&&!Mt(e)&&pr(e),o){if(l.then(wn,wn),t)return l.then(c=>{Cn(e,c)}).catch(c=>{ls(c,e,0)});e.asyncDep=l}else Cn(e,l)}else Br(e)}function Cn(e,t,s){D(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:U(t)&&(e.setupState=lr(t)),Br(e)}function Br(e,t,s){const n=e.type;e.render||(e.render=n.render||Fe);{const r=Bt(e);je();try{il(e)}finally{$e(),r()}}}const Ul={get(e,t){return re(e,"get",""),e[t]}};function Vl(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,Ul),slots:e.slots,emit:e.emit,expose:t}}function en(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(lr(Ti(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in Rt)return Rt[s](e)},has(t,s){return s in t||s in Rt}})):e.proxy}function Wl(e){return D(e)&&"__vccOpts"in e}const Kr=(e,t)=>Ri(e,t,Ht),ql="3.5.39";/** +* @vue/runtime-dom v3.5.39 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let $s;const Tn=typeof window<"u"&&window.trustedTypes;if(Tn)try{$s=Tn.createPolicy("vue",{createHTML:e=>e})}catch{}const Ur=$s?e=>$s.createHTML(e):e=>e,Gl="http://www.w3.org/2000/svg",Jl="http://www.w3.org/1998/Math/MathML",Ne=typeof document<"u"?document:null,En=Ne&&Ne.createElement("template"),kl={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,n)=>{const r=t==="svg"?Ne.createElementNS(Gl,e):t==="mathml"?Ne.createElementNS(Jl,e):s?Ne.createElement(e,{is:s}):Ne.createElement(e);return e==="select"&&n&&n.multiple!=null&&r.setAttribute("multiple",n.multiple),r},createText:e=>Ne.createTextNode(e),createComment:e=>Ne.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ne.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,n,r,i){const l=s?s.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),s),!(r===i||!(r=r.nextSibling)););else{En.innerHTML=Ur(n==="svg"?`${e}`:n==="mathml"?`${e}`:e);const o=En.content;if(n==="svg"||n==="mathml"){const c=o.firstChild;for(;c.firstChild;)o.appendChild(c.firstChild);o.removeChild(c)}t.insertBefore(o,s)}return[l?l.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},Yl=Symbol("_vtc");function zl(e,t,s){const n=e[Yl];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const On=Symbol("_vod"),Xl=Symbol("_vsh"),Zl=Symbol(""),Ql=/(?:^|;)\s*display\s*:/;function eo(e,t,s){const n=e.style,r=z(s);let i=!1;if(s&&!r){if(t)if(z(t))for(const l of t.split(";")){const o=l.slice(0,l.indexOf(":")).trim();s[o]==null&&Tt(n,o,"")}else for(const l in t)s[l]==null&&Tt(n,l,"");for(const l in s){l==="display"&&(i=!0);const o=s[l];o!=null?so(e,l,!z(t)&&t?t[l]:void 0,o)||Tt(n,l,o):Tt(n,l,"")}}else if(r){if(t!==s){const l=n[Zl];l&&(s+=";"+l),n.cssText=s,i=Ql.test(s)}}else t&&e.removeAttribute("style");On in e&&(e[On]=i?n.display:"",e[Xl]&&(n.display="none"))}const An=/\s*!important$/;function Tt(e,t,s){if(I(s))s.forEach(n=>Tt(e,t,n));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const n=to(e,t);An.test(s)?e.setProperty(ot(n),s.replace(An,""),"important"):e[n]=s}}const Pn=["Webkit","Moz","ms"],Cs={};function to(e,t){const s=Cs[t];if(s)return s;let n=me(t);if(n!=="filter"&&n in e)return Cs[t]=n;n=Kn(n);for(let r=0;rTs||(co.then(()=>Ts=0),Ts=Date.now());function ao(e,t){const s=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=s.attached)return;const r=s.value;if(I(r)){const i=n.stopImmediatePropagation;n.stopImmediatePropagation=()=>{i.call(n),n._stopped=!0};const l=r.slice(),o=[n];for(let c=0;ce.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,ho=(e,t,s,n,r,i)=>{const l=r==="svg";t==="class"?zl(e,n,l):t==="style"?eo(e,s,n):ts(t)?ss(t)||io(e,t,s,n,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):po(e,t,n,l))?(In(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Rn(e,t,n,l,i,t!=="value")):e._isVueCE&&(go(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!z(n)))?In(e,me(t),n,i,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),Rn(e,t,n,l))};function po(e,t,s,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&Dn(t)&&D(s));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return Dn(t)&&z(s)?!1:t in e}function go(e,t){const s=e._def.props;if(!s)return!1;const n=me(t);return Array.isArray(s)?s.some(r=>me(r)===n):Object.keys(s).some(r=>me(r)===n)}const _o=se({patchProp:ho},kl);let jn;function mo(){return jn||(jn=Tl(_o))}const bo=((...e)=>{const t=mo().createApp(...e),{mount:s}=t;return t.mount=n=>{const r=yo(n);if(!r)return;const i=t._component;!D(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const l=s(r,!1,vo(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),l},t});function vo(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function yo(e){return z(e)?document.querySelector(e):e}const xo="/api/v1/plugins/extensions/astrbot_plugin_imagestudio",tt={uiBootstrap:"ui/bootstrap",dashboardSummary:"dashboard/summary",profiles:"profiles",quickProfileDraft:"profiles/quick-draft",jobs:"jobs",settingsSchema:"settings/schema",settingsCurrent:"settings/current",storageStatus:"storage/status",mediaSign:"media/sign",webManifest:"web/manifest"};class So extends Error{constructor(s,n,r={}){super(n);as(this,"code");as(this,"details");this.name="ApiClientError",this.code=s,this.details=r}}async function st(e,t){return wo(e,{method:"GET",query:t})}async function wo(e,t={}){const n=await(await fetch(Co(e,t.query),{method:t.method??"GET",headers:t.body===void 0?void 0:{"Content-Type":"application/json"},body:t.body===void 0?void 0:JSON.stringify(t.body)})).json();if(!n.ok)throw new So(n.error_code,n.message,n.details);return n.data}function Co(e,t){const s=e.replace(/^\/+/,""),n=new URL(`${xo}/${s}`,window.location.origin);for(const[r,i]of Object.entries(t??{}))i!==void 0&&n.searchParams.set(r,String(i));return`${n.pathname}${n.search}`}const To={class:"web-shell"},Eo={class:"sidebar"},Oo={class:"brand"},Ao={class:"workspace"},Po={class:"topbar"},Mo={key:0,class:"notice"},Ro={key:1,class:"notice"},Io={key:0,class:"dashboard-grid"},Fo={key:1,class:"list-view"},Do={key:0,class:"empty"},jo={key:2,class:"list-view"},$o={key:0,class:"empty"},Ho={key:3,class:"settings-view"},No={class:"settings-sections"},Lo={class:"inspector"},Bo=qi({__name:"App",setup(e){const t=Ee("dashboard"),s=Ee(null),n=Ee(null),r=Ee(null),i=Ee(null),l=Ee(null),o=Ee(null),c=Ee(null),d=Ee(!0),a=Ee(""),p=Kr(()=>{var x;const M=(x=n.value)==null?void 0:x.queue;return M?M.pending+M.running+M.failed+M.dead_letter:0});mr(C);async function C(){d.value=!0,a.value="";try{const[M,x,J,B,j,H,A]=await Promise.all([st(tt.uiBootstrap),st(tt.dashboardSummary),st(tt.profiles,{page:1,page_size:20}),st(tt.jobs,{page:1,page_size:20}),st(tt.settingsSchema),st(tt.settingsCurrent),st(tt.storageStatus)]);s.value=M,n.value=x,r.value=J,i.value=B,l.value=j,o.value=H,c.value=A}catch(M){a.value=M instanceof Error?M.message:"加载失败"}finally{d.value=!1}}function E(M=0){return M<1024?`${M} B`:M<1024*1024?`${(M/1024).toFixed(1)} KB`:M<1024*1024*1024?`${(M/1024/1024).toFixed(1)} MB`:`${(M/1024/1024/1024).toFixed(1)} GB`}return(M,x)=>{var J,B,j,H,A,k,ue,ae,_e,ke,xe,We,Ye,ze,ft,bt,Z,W;return ee(),ne("main",To,[T("aside",Eo,[T("div",Oo,[T("strong",null,Y(((J=s.value)==null?void 0:J.display_name)??"ImageStudio"),1),T("span",null,Y(((B=s.value)==null?void 0:B.dashboard_user)??"AstrBot"),1)]),T("nav",null,[T("button",{type:"button",class:rt({active:t.value==="dashboard"}),onClick:x[0]||(x[0]=F=>t.value="dashboard")}," 概览 ",2),T("button",{type:"button",class:rt({active:t.value==="profiles"}),onClick:x[1]||(x[1]=F=>t.value="profiles")}," 角色 ",2),T("button",{type:"button",class:rt({active:t.value==="jobs"}),onClick:x[2]||(x[2]=F=>t.value="jobs")}," 队列 ",2),T("button",{type:"button",class:rt({active:t.value==="settings"}),onClick:x[3]||(x[3]=F=>t.value="settings")}," 设置 ",2)])]),T("section",Ao,[T("header",Po,[T("div",null,[T("h1",null,Y(t.value==="dashboard"?"ImageStudio":""),1),T("p",null,Y(((j=n.value)==null?void 0:j.plugin_status)??"loading"),1)]),T("button",{type:"button",onClick:C},"刷新")]),a.value?(ee(),ne("section",Mo,Y(a.value),1)):d.value?(ee(),ne("section",Ro,"加载中")):(ee(),ne(he,{key:2},[t.value==="dashboard"?(ee(),ne("section",Io,[T("article",null,[x[4]||(x[4]=T("span",null,"角色",-1)),T("strong",null,Y(((H=n.value)==null?void 0:H.active_profiles)??0),1)]),T("article",null,[x[5]||(x[5]=T("span",null,"队列",-1)),T("strong",null,Y(p.value),1)]),T("article",null,[x[6]||(x[6]=T("span",null,"存储",-1)),T("strong",null,Y(E(((A=c.value)==null?void 0:A.total_bytes)??((k=n.value)==null?void 0:k.storage.total_bytes))),1)]),T("article",null,[x[7]||(x[7]=T("span",null,"图片",-1)),T("strong",null,Y(((ue=n.value)==null?void 0:ue.recent_images.length)??0),1)])])):ut("",!0),t.value==="profiles"?(ee(),ne("section",Fo,[T("header",null,[x[8]||(x[8]=T("h2",null,"角色",-1)),T("span",null,Y(((ae=r.value)==null?void 0:ae.total)??0),1)]),T("ul",null,[(ee(!0),ne(he,null,ys(((_e=r.value)==null?void 0:_e.items)??[],F=>(ee(),ne("li",{key:F.profile_id},[T("strong",null,Y(F.name),1),T("span",null,Y(F.status),1)]))),128)),(ke=r.value)!=null&&ke.items.length?ut("",!0):(ee(),ne("li",Do,"暂无角色"))])])):ut("",!0),t.value==="jobs"?(ee(),ne("section",jo,[T("header",null,[x[9]||(x[9]=T("h2",null,"队列",-1)),T("span",null,Y(((xe=i.value)==null?void 0:xe.total)??0),1)]),T("ul",null,[(ee(!0),ne(he,null,ys(((We=i.value)==null?void 0:We.items)??[],F=>(ee(),ne("li",{key:F.task_id},[T("strong",null,Y(F.task_id),1),T("span",null,Y(F.status),1)]))),128)),(Ye=i.value)!=null&&Ye.items.length?ut("",!0):(ee(),ne("li",$o,"暂无任务"))])])):ut("",!0),t.value==="settings"?(ee(),ne("section",Ho,[T("div",No,[(ee(!0),ne(he,null,ys(((ze=l.value)==null?void 0:ze.sections)??[],F=>(ee(),ne("article",{key:F.key},[T("h2",null,Y(F.title),1),T("span",null,Y(F.fields.length),1)]))),128))]),T("pre",null,Y(JSON.stringify(((ft=o.value)==null?void 0:ft.config)??{},null,2)),1)])):ut("",!0)],64))]),T("aside",Lo,[x[13]||(x[13]=T("h2",null,"运行",-1)),T("dl",null,[T("div",null,[x[10]||(x[10]=T("dt",null,"Pending",-1)),T("dd",null,Y(((bt=n.value)==null?void 0:bt.queue.pending)??0),1)]),T("div",null,[x[11]||(x[11]=T("dt",null,"Running",-1)),T("dd",null,Y(((Z=n.value)==null?void 0:Z.queue.running)??0),1)]),T("div",null,[x[12]||(x[12]=T("dt",null,"Failed",-1)),T("dd",null,Y(((W=n.value)==null?void 0:W.queue.failed)??0),1)])])])])}}}),Ko=(e,t)=>{const s=e.__vccOpts||e;for(const[n,r]of t)s[n]=r;return s},Uo=Ko(Bo,[["__scopeId","data-v-34b16aee"]]);bo(Uo).mount("#app"); diff --git a/web/assets/index-DlB5CKB0.css b/web/assets/index-DlB5CKB0.css new file mode 100644 index 0000000..e2499b7 --- /dev/null +++ b/web/assets/index-DlB5CKB0.css @@ -0,0 +1 @@ +.web-shell[data-v-34b16aee]{box-sizing:border-box;display:grid;grid-template-columns:220px minmax(0,1fr) 260px;min-height:100vh;color:#1b2430;background:#f5f6f8;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}.sidebar[data-v-34b16aee],.inspector[data-v-34b16aee]{background:#fff}.sidebar[data-v-34b16aee]{border-right:1px solid #d9e0e8;padding:20px}.inspector[data-v-34b16aee]{border-left:1px solid #d9e0e8;padding:20px}.brand[data-v-34b16aee]{display:grid;gap:4px;margin-bottom:24px}.brand strong[data-v-34b16aee]{font-size:19px}.brand span[data-v-34b16aee],p[data-v-34b16aee],dt[data-v-34b16aee],.empty[data-v-34b16aee]{color:#667085}nav[data-v-34b16aee]{display:grid;gap:6px}button[data-v-34b16aee]{min-height:36px;border:1px solid transparent;border-radius:6px;color:#1b2430;background:transparent;font:inherit;text-align:left;cursor:pointer}nav button[data-v-34b16aee]{padding:0 10px}button.active[data-v-34b16aee]{border-color:#b8d8cf;color:#164f43;background:#e5f4ef}.workspace[data-v-34b16aee]{min-width:0;padding:24px}.topbar[data-v-34b16aee]{display:flex;justify-content:space-between;gap:16px;align-items:center}.topbar button[data-v-34b16aee]{padding:0 14px;border-color:#c7d0da;background:#fff}h1[data-v-34b16aee],h2[data-v-34b16aee],p[data-v-34b16aee],dl[data-v-34b16aee],dd[data-v-34b16aee]{margin:0}h1[data-v-34b16aee]{min-height:30px;font-size:26px}h2[data-v-34b16aee]{font-size:15px}.notice[data-v-34b16aee],article[data-v-34b16aee],.list-view[data-v-34b16aee],pre[data-v-34b16aee]{border:1px solid #d9e0e8;border-radius:8px;background:#fff}.notice[data-v-34b16aee]{margin-top:18px;padding:14px}.dashboard-grid[data-v-34b16aee]{display:grid;grid-template-columns:repeat(4,minmax(130px,1fr));gap:12px;margin-top:18px}article[data-v-34b16aee]{display:grid;gap:8px;padding:16px}article span[data-v-34b16aee]{color:#667085;font-size:13px}article strong[data-v-34b16aee]{font-size:24px}.list-view[data-v-34b16aee],.settings-view[data-v-34b16aee]{margin-top:18px}.list-view[data-v-34b16aee]{padding:16px}.list-view header[data-v-34b16aee]{display:flex;justify-content:space-between}ul[data-v-34b16aee]{display:grid;gap:10px;margin:14px 0 0;padding:0;list-style:none}li[data-v-34b16aee]{display:flex;justify-content:space-between;gap:12px;min-width:0}li strong[data-v-34b16aee],li span[data-v-34b16aee]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.settings-sections[data-v-34b16aee]{display:grid;grid-template-columns:repeat(3,minmax(120px,1fr));gap:12px}pre[data-v-34b16aee]{overflow:auto;max-height:420px;margin:12px 0 0;padding:14px;font-size:12px}dl[data-v-34b16aee]{display:grid;gap:12px;margin-top:14px}dl div[data-v-34b16aee]{display:flex;justify-content:space-between}@media(max-width:1100px){.web-shell[data-v-34b16aee]{grid-template-columns:190px minmax(0,1fr)}.inspector[data-v-34b16aee]{display:none}}@media(max-width:760px){.web-shell[data-v-34b16aee]{grid-template-columns:1fr}.sidebar[data-v-34b16aee]{border-right:0;border-bottom:1px solid #d9e0e8}nav[data-v-34b16aee]{grid-template-columns:repeat(4,minmax(0,1fr))}nav button[data-v-34b16aee]{text-align:center}.dashboard-grid[data-v-34b16aee],.settings-sections[data-v-34b16aee]{grid-template-columns:1fr}} diff --git a/web/index.html b/web/index.html new file mode 100644 index 0000000..a7b6930 --- /dev/null +++ b/web/index.html @@ -0,0 +1,3 @@ + + +